define("ojtranslations/nls/localeElements",{root:{supplemental:{weekData:{firstDay:{"001":1,AE:6,BH:6,BR:0,DZ:6,EG:6,IQ:6,JO:6,KW:6,LB:1,LY:6,MA:6,OM:6,QA:6,SA:0,SD:6,SY:6,TN:0,YE:0,BY:1,BG:1,ES:1,CZ:1,DK:1,AT:1,CH:1,DE:1,LU:1,CY:1,GR:1,AU:0,CA:0,GB:1,IE:0,IN:0,MT:0,NZ:0,PH:0,SG:0,US:0,ZA:0,AR:0,CL:1,CO:0,CR:1,DO:0,EC:1,GT:0,HN:0,MX:0,NI:0,PA:0,PE:0,PR:0,PY:0,SV:0,UY:1,VE:0,EE:1,FI:1,BE:1,FR:1,IL:0,HR:1,HU:1,ID:0,IS:1,IT:1,JP:0,KR:0,LT:1,LV:1,MK:1,MY:1,NO:1,NL:1,PL:1,PT:1,RO:1,RU:1,SK:1,SI:1,AL:1,BA:1,ME:1,RS:1,SE:1,TH:0,TR:1,UA:1,VN:1,CN:0,HK:0,MO:0,TW:0},weekendStart:{"001":6,AE:5,BH:5,DZ:5,EG:5,IQ:5,JO:5,KW:5,LY:5,MA:5,OM:5,QA:5,SA:5,SD:5,SY:5,TN:5,YE:5,IN:0,IL:5},weekendEnd:{"001":0,AE:6,BH:6,DZ:6,EG:6,IQ:6,JO:6,KW:6,LY:6,MA:6,OM:6,QA:6,SA:6,SD:6,SY:6,TN:6,YE:6,IL:6}},prefferedHours:{"001":"H",AE:"h",BH:"h",DZ:"h",EG:"h",IQ:"h",JO:"h",KW:"h",LB:"h",LY:"h",MA:"H",OM:"h",QA:"h",SA:"h",SD:"h",SY:"h",TN:"h",YE:"h",BG:"H",ES:"H",CZ:"H",DK:"H",AT:"H",CH:"H",DE:"H",LU:"H",CY:"h",GR:"h",AU:"h",CA:"h",GB:"H",IE:"H",IN:"h",NZ:"h",PH:"h",SG:"h",US:"h",ZA:"h",AR:"H",BO:"H",CL:"H",CO:"h",CR:"H",CU:"H",DO:"h",EC:"H",GT:"H",HN:"H",MX:"H",NI:"H",PA:"h",PE:"H",PR:"h",SV:"H",UY:"H",VE:"h",EE:"H",FI:"H",BE:"H",FR:"H",IL:"H",HR:"H",ID:"H",IS:"H",IT:"H",JP:"H",KR:"h",LT:"H",LV:"H",MK:"H",MY:"h",NL:"H",PT:"H",RO:"H",RU:"H",SK:"H",SI:"H",AL:"h",BA:"H",ME:"H",RS:"H",SE:"H",TR:"H",UA:"H",CN:"h",HK:"h",MO:"h",TW:"h"},plurals:{ar:function(e){return 0===e?"zero":1===e?"one":2===e?"two":e%100===Math.floor(e%100)&&e%100>=3&&e%100<=10?"few":e%100===Math.floor(e%100)&&e%100>=11&&e%100<=99?"many":"other"},as:function(e){return 0===Math.floor(Math.abs(e))||1===e?"one":"other"},be:function(e){return e%10==1&&e%100!=11?"one":e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":e%10==0||e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||e%100===Math.floor(e%100)&&e%100>=11&&e%100<=14?"many":"other"},bg:function(e){return 1===e?"one":"other"},bn:function(e){return 0===Math.floor(Math.abs(e))||1===e?"one":"other"},bo:function(e){return"other"},brx:function(e){return 1===e?"one":"other"},ca:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},cs:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":t===Math.floor(t)&&t>=2&&t<=4&&0===n?"few":0!==n?"many":"other"},da:function(e){var t=Math.floor(Math.abs(e)),n=parseInt(e.toString().replace(/^[^.]*.?|0+$/g,""),10);return 1===e||0!==n&&(0===t||1===t)?"one":"other"},de:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},el:function(e){return 1===e?"one":"other"},en:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},es:function(e){return 1===e?"one":"other"},et:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},fi:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},fr:function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?"one":"other"},ga:function(e){return 1===e?"one":2===e?"two":e===Math.floor(e)&&e>=3&&e<=6?"few":e===Math.floor(e)&&e>=7&&e<=10?"many":"other"},gu:function(e){return 0===Math.floor(Math.abs(e))||1===e?"one":"other"},he:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":2===t&&0===n?"two":0!==n||e>=0&&e<=10||e%10!=0?"other":"many"},hi:function(e){return 0===Math.floor(Math.abs(e))||1===e?"one":"other"},hr:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length,i=parseInt(e.toString().replace(/^[^.]*.?/,""),10);return 0===n&&t%10==1&&(t%100!=11||i%10==1&&i%100!=11)?"one":0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&(!(t%100>=12&&t%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"},hu:function(e){return 1===e?"one":"other"},id:function(e){return"other"},is:function(e){var t=Math.floor(Math.abs(e)),n=parseInt(e.toString().replace(/^[^.]*.?|0+$/g,""),10);return 0!==n||t%10!=1||t%100==11&&0===n?"other":"one"},it:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},ja:function(e){return"other"},kn:function(e){return 0===Math.floor(Math.abs(e))||1===e?"one":"other"},ko:function(e){return"other"},kok:function(e){return"other"},ks:function(e){return 1===e?"one":"other"},lt:function(e){var t=parseInt(e.toString().replace(/^[^.]*.?/,""),10);return e%10!=1||e%100>=11&&e%100<=19?e%10===Math.floor(e%10)&&e%10>=2&&e%10<=9&&!(e%100>=11&&e%100<=19)?"few":0!==t?"many":"other":"one"},lv:function(e){var t=e.toString().replace(/^[^.]*.?/,"").length,n=parseInt(e.toString().replace(/^[^.]*.?/,""),10);return e%10==0||e%100===Math.floor(e%100)&&e%100>=11&&e%100<=19||2===t&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?"zero":e%10==1&&(e%100!=11||2===t&&n%10==1&&(n%100!=11||2!==t&&n%10==1))?"one":"other"},mk:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length,i=parseInt(e.toString().replace(/^[^.]*.?/,""),10);return 0!==n||t%10!=1&&i%10!=1?"other":"one"},ml:function(e){return 1===e?"one":"other"},mr:function(e){return 0===Math.floor(Math.abs(e))||1===e?"one":"other"},ms:function(e){return"other"},mt:function(e){return 1===e?"one":0===e||e%100===Math.floor(e%100)&&e%100>=2&&e%100<=10?"few":e%100===Math.floor(e%100)&&e%100>=11&&e%100<=19?"many":"other"},nb:function(e){return 1===e?"one":"other"},ne:function(e){return 1===e?"one":"other"},nl:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},nn:function(e){return 1===e?"one":"other"},no:function(e){return 1===e?"one":"other"},or:function(e){return 1===e?"one":"other"},pa:function(e){return e===Math.floor(e)&&e>=0&&e<=1?"one":"other"},pl:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?"few":0===n&&1!==t&&(t%10===Math.floor(t%10)&&t%10>=0&&t%10<=1||0===n&&(t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||0===n&&t%100===Math.floor(t%100)&&t%100>=12&&t%100<=14))?"many":"other"},pt:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length,i=parseInt(e.toString().replace(/^[^.]*.?|0+$/g,""),10);return 1===t&&(0===n||0===t&&1===i)?"one":"other"},"pt-PT":function(e){var t=e.toString().replace(/^[^.]*.?/,"").length;return 1===e&&0===t?"one":"other"},ro:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":0!==n||0===e||1!==e&&e%100===Math.floor(e%100)&&e%100>=1&&e%100<=19?"few":"other"},ru:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 0===n&&t%10==1&&t%100!=11?"one":0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?"few":0===n&&(t%10==0||0===n&&(t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||0===n&&t%100===Math.floor(t%100)&&t%100>=11&&t%100<=14))?"many":"other"},sk:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":t===Math.floor(t)&&t>=2&&t<=4&&0===n?"few":0!==n?"many":"other"},sl:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 0===n&&t%100==1?"one":0===n&&t%100==2?"two":0===n&&(t%100===Math.floor(t%100)&&t%100>=3&&t%100<=4||0!==n)?"few":"other"},sq:function(e){return 1===e?"one":"other"},sr:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length,i=parseInt(e.toString().replace(/^[^.]*.?/,""),10);return 0===n&&t%10==1&&(t%100!=11||i%10==1&&i%100!=11)?"one":0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&(!(t%100>=12&&t%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"},sv:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},ta:function(e){return 1===e?"one":"other"},te:function(e){return 1===e?"one":"other"},th:function(e){return"other"},tr:function(e){return 1===e?"one":"other"},uk:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 0===n&&t%10==1&&t%100!=11?"one":0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?"few":0===n&&(t%10==0||0===n&&(t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||0===n&&t%100===Math.floor(t%100)&&t%100>=11&&t%100<=14))?"many":"other"},ur:function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*.?/,"").length;return 1===t&&0===n?"one":"other"},vi:function(e){return"other"},zh:function(e){return"other"}},currencyData:{fractions:{IDR:{_rounding:"0",_digits:"0"},JPY:{_rounding:"0",_digits:"0"},KRW:{_rounding:"0",_digits:"0"}}}}},ar:1,"ar-AE":1,"ar-BH":1,"ar-DZ":1,"ar-EG":1,"ar-IQ":1,"ar-JO":1,"ar-KW":1,"ar-LB":1,"ar-LY":1,"ar-MA":1,"ar-OM":1,"ar-QA":1,"ar-SA":1,"ar-SD":1,"ar-SY":1,"ar-TN":1,"ar-YE":1,as:1,be:1,"be-BY":1,bg:1,"bg-BG":1,bn:1,bo:1,"bo-IN":1,brx:1,ca:1,"ca-ES":1,cs:1,"cs-CZ":1,da:1,"da-DK":1,de:1,"de-AT":1,"de-CH":1,"de-DE":1,"de-LU":1,el:1,"el-CY":1,"el-GR":1,en:1,"en-AU":1,"en-CA":1,"en-GB":1,"en-IE":1,"en-IN":1,"en-MT":1,"en-NZ":1,"en-PH":1,"en-SG":1,"en-US":1,"en-ZA":1,es:1,"es-AR":1,"es-BO":1,"es-CL":1,"es-CO":1,"es-CR":1,"es-CU":1,"es-DO":1,"es-EC":1,"es-ES":1,"es-GT":1,"es-HN":1,"es-MX":1,"es-NI":1,"es-PA":1,"es-PE":1,"es-PR":1,"es-PY":1,"es-SV":1,"es-US":1,"es-UY":1,"es-VE":1,et:1,"et-EE":1,fi:1,"fi-FI":1,fr:1,"fr-BE":1,"fr-CA":1,"fr-CH":1,"fr-FR":1,"fr-LU":1,ga:1,"ga-IE":1,gu:1,he:1,"he-IL":1,hi:1,"hi-IN":1,hr:1,"hr-HR":1,hu:1,"hu-HU":1,id:1,"id-ID":1,is:1,"is-IS":1,it:1,"it-CH":1,"it-IT":1,ja:1,"ja-JP":1,kn:1,ko:1,"ko-KR":1,kok:1,ks:1,lt:1,"lt-LT":1,lv:1,"lv-LV":1,mk:1,"mk-MK":1,ml:1,mr:1,ms:1,"ms-MY":1,mt:1,"mt-MT":1,nb:1,"nb-NO":1,ne:1,"ne-IN":1,nl:1,"nl-BE":1,"nl-NL":1,nn:1,"nn-NO":1,no:1,"no-NO":1,or:1,pa:1,pl:1,"pl-PL":1,pt:1,"pt-BR":1,"pt-PT":1,ro:1,"ro-RO":1,ru:1,"ru-RU":1,sk:1,"sk-SK":1,sl:1,"sl-SI":1,sq:1,"sq-AL":1,sr:1,"sr-Cyrl":1,"sr-Cyrl-BA":1,"sr-Cyrl-ME":1,"sr-Cyrl-RS":1,"sr-Latn":1,"sr-Latn-BA":1,"sr-Latn-ME":1,"sr-Latn-RS":1,sv:1,"sv-SE":1,ta:1,te:1,th:1,"th-TH":1,tr:1,"tr-TR":1,uk:1,"uk-UA":1,ur:1,"ur-IN":1,vi:1,"vi-VN":1,zh:1,"zh-Hans":1,"zh-Hans-CN":1,"zh-Hans-SG":1,"zh-Hant":1,"zh-Hant-HK":1,"zh-Hant-MO":1,"zh-Hant-TW":1,__noOverlay:!0,__defaultNoOverlayLocale:"en-US"}),define("ojs/ojmessaging",["ojs/ojcore","jquery"],function(e,t){"use strict";return e.Message=function(e,t,n){this.Init(e,t,n)},e.Message.SEVERITY_TYPE={CONFIRMATION:"confirmation",INFO:"info",WARNING:"warning",ERROR:"error",FATAL:"fatal"},e.Message.SEVERITY_LEVEL={FATAL:5,ERROR:4,WARNING:3,INFO:2,CONFIRMATION:1},e.Object.createSubclass(e.Message,e.Object,"oj.Message"),e.Message.prototype.Init=function(t,n,i){e.Message.superclass.Init.call(this),this.summary=t,this.detail=n,this.severity=i||e.Message.SEVERITY_TYPE.ERROR},e.Message.getSeverityLevel=function(t){var n=t;if(n)if("string"==typeof t){var i=e.Message._LEVEL_TO_TYPE.indexOf(n,1);n=-1===i?e.Message.SEVERITY_LEVEL.ERROR:i}else"number"==typeof n&&(ne.Message.SEVERITY_LEVEL.FATAL)&&(n=e.Message.SEVERITY_LEVEL.ERROR);return n||e.Message.SEVERITY_LEVEL.ERROR},e.Message.getSeverityType=function(t){var n=t;return n&&("string"==typeof n?-1===e.Message._LEVEL_TO_TYPE.indexOf(n,1)&&(n=e.Message.SEVERITY_TYPE.ERROR):"number"==typeof n&&(n=ne.Message.SEVERITY_LEVEL.FATAL?e.Message.SEVERITY_TYPE.ERROR:e.Message._LEVEL_TO_TYPE[t])),n||e.Message.SEVERITY_TYPE.ERROR},e.Message.getMaxSeverity=function(n){var i=-1;return n&&n.length>0&&t.each(n,function(t,n){var r=e.Message.getSeverityLevel(n.severity);i=i=e.Message.SEVERITY_LEVEL.ERROR)},e.Message._LEVEL_TO_TYPE=["none",e.Message.SEVERITY_TYPE.CONFIRMATION,e.Message.SEVERITY_TYPE.INFO,e.Message.SEVERITY_TYPE.WARNING,e.Message.SEVERITY_TYPE.ERROR,e.Message.SEVERITY_TYPE.FATAL],e.Message,e.ComponentMessage=function(e,t,n,i){this.Init(e,t,n,i)},e.Object.createSubclass(e.ComponentMessage,e.Message,"oj.ComponentMessage"),e.ComponentMessage.DISPLAY={SHOWN:"shown",HIDDEN:"hidden"},e.ComponentMessage._DEFAULT_OPTIONS={display:e.ComponentMessage.DISPLAY.SHOWN,context:""},e.ComponentMessage.prototype.Init=function(n,i,r,o){e.ComponentMessage.superclass.Init.call(this,n,i,r),this._options=t.extend({},e.ComponentMessage._DEFAULT_OPTIONS,o)},e.ComponentMessage.prototype.clone=function(){return new e.ComponentMessage(this.summary,this.detail,this.severity,this._options)},e.ComponentMessage.prototype.canDisplay=function(){return!(this._options&&this._options.display&&this._options.display===e.ComponentMessage.DISPLAY.HIDDEN)},e.ComponentMessage.prototype._forceDisplayToShown=function(){return!(!this._options||e.ComponentMessage.DISPLAY.HIDDEN!==this._options.display||(this._options.display=e.ComponentMessage.DISPLAY.SHOWN,0))},e.ComponentMessage.prototype._isMessageAddedByComponent=function(){return!(!this._options||!this._options.context)},e.Message}),define("ojs/ojlocaledata",["ojs/ojcore","ojL10n!ojtranslations/nls/localeElements"],function(e,t){"use strict";var n={setBundle:function(e){n._bundle=e},getFirstDayOfWeek:function(){return n._getWeekData("firstDay")},getWeekendStart:function(){return n._getWeekData("weekendStart")},getWeekendEnd:function(){return n._getWeekData("weekendEnd")},getDayNames:function(e){(null==e||"abbreviated"!==e&&"narrow"!==e)&&(e="wide");var t=n._getCalendarData().days["stand-alone"][e];return[t.sun,t.mon,t.tue,t.wed,t.thu,t.fri,t.sat]},getMonthNames:function(e){(null==e||"abbreviated"!==e&&"narrow"!==e)&&(e="wide");var t=n._getCalendarData().months["stand-alone"][e];return[t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12]]},isMonthPriorToYear:function(){var e=n._getCalendarData().dateFormats.long.toUpperCase();return e.indexOf("M")=2){var i=n[1];if(4!==i.length)return i;if(n.length>=3)return n[2]}}return null},__getBundle:function(){var i=n._bundle;return i||(e.__isAmdLoaderPresent()?(e.Assert.assert(void 0!==t,"LocaleElements module must be loaded"),t):{})},__updateBundle:function(e){t=e}};return n}),define("ojs/ojvalidation-base",["ojs/ojcore","jquery","ojs/ojtranslation","ojs/ojmessaging","ojs/ojlocaledata","ojs/ojlogger"],function(e,t,n,i,r,o){"use strict";e.OraI18nUtils={},e.OraI18nUtils.numeringSystems={latn:"0123456789",arab:"٠١٢٣٤٥٦٧٨٩",thai:"๐๑๒๓๔๕๖๗๘๙"},e.OraI18nUtils.regexTrim=/^\s+|\s+$|\u200f|\u200e/g,e.OraI18nUtils.regexTrimNumber=/\s+|\u200f|\u200e/g,e.OraI18nUtils.regexTrimRightZeros=/0+$/g,e.OraI18nUtils.zeros=["0","00","000"],e.OraI18nUtils._ISO_DATE_REGEXP=/^[+-]?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}(?::?\d{2})?)?)?$|^T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}(?::?\d{2})?)?$/,e.OraI18nUtils.getLocalTimeZoneOffset=function(){var t=(new Date).getTimezoneOffset();return e.OraI18nUtils.getTimeStringFromOffset("Etc/GMT",t,!1,!1)},e.OraI18nUtils.dateToLocalIso=function(t){var n=t;"number"==typeof n&&(n=new Date(n));var i=e.OraI18nUtils.padZeros(n.getFullYear(),4)+"-"+e.OraI18nUtils.padZeros(n.getMonth()+1,2)+"-"+e.OraI18nUtils.padZeros(n.getDate(),2)+"T"+e.OraI18nUtils.padZeros(n.getHours(),2)+":"+e.OraI18nUtils.padZeros(n.getMinutes(),2)+":"+e.OraI18nUtils.padZeros(n.getSeconds(),2);return n.getMilliseconds()>0&&(i+="."+e.OraI18nUtils.trimRightZeros(e.OraI18nUtils.padZeros(n.getMilliseconds(),3))),i},e.OraI18nUtils.partsToIsoString=function(t){var n=e.OraI18nUtils.padZeros(t[0],4)+"-"+e.OraI18nUtils.padZeros(t[1],2)+"-"+e.OraI18nUtils.padZeros(t[2],2)+"T"+e.OraI18nUtils.padZeros(t[3],2)+":"+e.OraI18nUtils.padZeros(t[4],2)+":"+e.OraI18nUtils.padZeros(t[5],2);return t[6]>0&&(n+="."+e.OraI18nUtils.trimRightZeros(e.OraI18nUtils.padZeros(t[6],3))),n},e.OraI18nUtils.isoToLocalDate=function(e){return e&&"string"==typeof e?this._isoToLocalDateIgnoreTimezone(e):null},e.OraI18nUtils._isoToLocalDateIgnoreTimezone=function(t){var n=e.OraI18nUtils._IsoStrParts(t);return new Date(n[0],n[1]-1,n[2],n[3],n[4],n[5],n[6])},e.OraI18nUtils._IsoStrParts=function(t){!1===e.OraI18nUtils._ISO_DATE_REGEXP.test(t)&&e.OraI18nUtils._throwInvalidISOStringSyntax(t);var n,i=t.split("T"),r=t.indexOf("T"),o=new Date,a=!1,s=[o.getFullYear(),o.getMonth()+1,o.getDate(),0,0,0,0];if(""!==i[0]){e.OraI18nUtils.startsWith(i[0],"-")&&(i[0]=i[0].substr(1),a=!0);var l=i[0].split("-");for(n=0;n12)&&e.OraI18nUtils._throwInvalidISOStringRange(t,"month",u,1,12),2===n){var c=e.OraI18nUtils._getDaysInMonth(s[0],s[1]-1);(u<1||u>c)&&e.OraI18nUtils._throwInvalidISOStringRange(t,"day",u,1,c)}s[n]=u}a&&(s[0]=-s[0])}if(-1!==r){var p=i[1].split("."),d=p[0].split(":");for(n=0;n24)&&e.OraI18nUtils._throwInvalidISOStringRange(t,"hour",h,0,24),1===n&&(h<0||h>59)&&e.OraI18nUtils._throwInvalidISOStringRange(t,"minute",h,0,59),2===n&&(h<0||h>59)&&e.OraI18nUtils._throwInvalidISOStringRange(t,"second",h,0,59),s[3+n]=h}2===p.length&&p[1]&&(s[6]=parseInt(e.OraI18nUtils.zeroPad(p[1],3,!1),10))}return s},e.OraI18nUtils.getISOStrFormatInfo=function(t){var n={format:null,dateTime:null,timeZone:"",isoStrParts:null},i=e.OraI18nUtils._ISO_DATE_REGEXP.exec(t);if(null===i&&e.OraI18nUtils._throwInvalidISOStringSyntax(t),void 0===i[1]&&void 0===i[2])return n.format="local",n.dateTime=t,n.isoStrParts=e.OraI18nUtils._IsoStrParts(n.dateTime),n;n.timeZone=void 0!==i[1]?i[1]:i[2],"Z"===n.timeZone?n.format="zulu":n.format="offset";var r=t.length,o=n.timeZone.length;return n.dateTime=t.substring(0,r-o),n.isoStrParts=e.OraI18nUtils._IsoStrParts(n.dateTime),n},e.OraI18nUtils._isLeapYear=function(e){return e%400==0||e%100!=0&&e%4==0},e.OraI18nUtils._getDaysInMonth=function(t,n){switch(n){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return e.OraI18nUtils._isLeapYear(t)?29:28;default:return 30}},e.OraI18nUtils._throwInvalidISOStringRange=function(e,t,n,i,r){var o=new RangeError("The string "+e+" is not a valid ISO 8601 string: "+n+" is out of range. Enter a value between "+i+" and "+r+" for "+t),a={errorCode:"isoStringOutOfRange",parameterMap:{isoString:e,value:n,minValue:i,maxValue:r,propertyName:t}};throw o.errorInfo=a,o},e.OraI18nUtils._throwInvalidISOStringSyntax=function(e){var t=new Error("The string "+e+" is not a valid ISO 8601 string syntax."),n={errorCode:"invalidISOString",parameterMap:{isoStr:e}};throw t.errorInfo=n,t},e.OraI18nUtils.trim=function(t){return(t+"").replace(e.OraI18nUtils.regexTrim,"")},e.OraI18nUtils.trimRightZeros=function(t){return(t+"").replace(e.OraI18nUtils.regexTrimRightZeros,"")},e.OraI18nUtils.trimNumber=function(t){return(t+"").replace(e.OraI18nUtils.regexTrimNumber,"")},e.OraI18nUtils.startsWith=function(e,t){return 0===e.indexOf(t)},e.OraI18nUtils.toUpper=function(e){return e.split(" ").join(" ").toUpperCase()},e.OraI18nUtils.padZeros=function(t,n){var i=t+"",r=!1;return t<0&&(i=i.substr(1),r=!0),n>1&&i.length=0:n<0,a=Math.abs(n),s=Math.floor(a/60),l=a%60,u=o?"-":"+";r&&(s=e.OraI18nUtils.zeroPad(s,2,!0));var c=t+u+s;return(l>0||r)&&(c+=":"+e.OraI18nUtils.zeroPad(l,2,!0)),c},e.OraI18nUtils.getNumberingSystemKey=function(t,n){if(void 0===n)return"latn";var i=e.OraI18nUtils.getNumberingExtension(n),r="symbols-numberSystem-"+i;return void 0===t.numbers[r]&&(i="latn"),i},e.OraI18nUtils.getBCP47Lang=function(e){return e.split("-")[0]},e.OraI18nUtils.getBCP47Region=function(e){var t=e.split("-");return 3===t.length?t[2]:2===t.length&&2===t[1].length?t[1]:"001"},e.OraI18nUtils.getNumberingExtension=function(e){var t=e||"en-US",n=t.indexOf("-u-nu-"),i="latn";return-1!==n&&(i=t.substr(n+6,4)),i},e.OraI18nUtils.haveSamePropertiesLength=function(e){return Object.keys(e).length},e.OraI18nUtils.getLocaleElementsMainNode=function(e){var t=e.main;return t[Object.keys(t)[0]]},e.OraI18nUtils.getLocaleElementsMainNodeKey=function(e){var t=e.main;return Object.keys(t)[0]},e.OraI18nUtils._toBoolean=function(e){if("string"==typeof e)switch(e.toLowerCase().trim()){case"true":case"1":return!0;case"false":case"0":return!1;default:return e}return e},e.OraI18nUtils.getGetOption=function(t,n){if(void 0===t)throw new Error("Internal "+n+" error. Default options missing.");return function(i,r,o,a){if(void 0!==t[i]){var s=t[i];switch(r){case"boolean":s=e.OraI18nUtils._toBoolean(s);break;case"string":s=String(s);break;case"number":s=Number(s);break;default:throw new Error("Internal error. Wrong value type.")}if(void 0!==o&&-1===o.indexOf(s)){for(var l=[],u=0;u6&&p[6]?"."+p[6]+(8===p.length&&p[7]?p[7]:""):"")}return s},e.OraI18nUtils._normalizeIsoString=function(e){if(!e)throw new Error("Provided invalid arguments");var t,n=(new Date).toISOString(),i=n.substring(0,n.indexOf("T")),r=e.indexOf("T"),o=-1===r?e:e.substring(0,r);return(o=o||i)+(-1!==r?(t=e.substring(r)).split(":").length>1?t:t+":00":"T00:00:00.000")},e.OraI18nUtils.formatString=function(e,t){for(var n=t.length,i=e,r=0;r0&&(i=e.charCodeAt(0)),i>=1536&&i<=1791)return"";if(i>=2304&&i<=2431)return e.charAt(0);if(i>=3584&&i<=3711)return e.charAt(0);if(i>=4352&&i<=4607||i>=12592&&i<=12687||i>=43360&&i<=43391||i>=44032&&i<=55295)return e;if(void 0!==t&&t.length>0&&(i=t.charCodeAt(0)),i>=11904&&i<=12255||i>=12288&&i<=12591||i>=12688&&i<=12799||i>=13056&&i<=19903||i>=19968&&i<=40959||i>=63744&&i<=64255)return t;if(i>=55296&&i<=56319){if(t.length<2)return"";if((r=t.charCodeAt(1))<56320||r>57343)return"";if((n=1024*(i-55296)+(r-56320)+65536)>=110592&&n<=110847||n>=127488&&n<=127743||n>=131072&&n<=173791||n>=173824&&n<=177983||n>=177984&&n<=178207||n>=178208&&n<=183983||n>=194560&&n<=195103)return t}return i="",r="",void 0!==e&&e.length>0&&(i=e.charAt(0).toUpperCase()),void 0!==t&&t.length>0&&(r=t.charAt(0).toUpperCase()),i+r},e.Validation={},e.Validation._converterFactories={},e.Validation._validatorFactories={},e.Validation._defaultConverterFactories={},e.Validation._defaultValidatorFactories={},e.Validation._CONTRACTS={converter:{name:"oj.ConverterFactory",type:e.ConverterFactory},validator:{name:"oj.ValidatorFactory",type:e.ValidatorFactory}},e.Validation.converterFactory=function(t,n){var i;return t&&!n?i=e.Validation._getFactory(t,e.Validation._converterFactories):t&&n&&(i=e.Validation._registerFactory(t,n,e.Validation._converterFactories,e.Validation._CONTRACTS.converter)),i},e.Validation.validatorFactory=function(t,n){var i;return t&&!n?i=e.Validation._getFactory(t,e.Validation._validatorFactories):t&&n&&(i=e.Validation._registerFactory(t,n,e.Validation._validatorFactories,e.Validation._CONTRACTS.validator)),i},e.Validation.getDefaultConverterFactory=function(t){return e.Validation._getFactory(t,e.Validation._defaultConverterFactories)},e.Validation.getDefaultValidatorFactory=function(t){return e.Validation._getFactory(t,e.Validation._defaultValidatorFactories)},e.Validation.__registerDefaultConverterFactory=function(t,n){var i=e.Validation._CONTRACTS.converter;e.Validation._registerFactory(t,n,e.Validation._defaultConverterFactories,i),e.Validation._registerFactory(t,n,e.Validation._converterFactories,i)},e.Validation.__registerDefaultValidatorFactory=function(t,n){var i=e.Validation._CONTRACTS.validator;e.Validation._registerFactory(t,n,e.Validation._defaultValidatorFactories,i),e.Validation._registerFactory(t,n,e.Validation._validatorFactories,i)},e.Validation._doImplementsCheck=function(t,n,i){if(n&&!e.Validation._quacksLike(t,n))throw new Error("Factory instance does not implement the methods expected by the factory of type "+i)},e.Validation._getFactory=function(t,n){return e.Assert.assertString(t),(n[t.toLowerCase()]||{}).instance||null},e.Validation._quacksLike=function(t,n){var i=!0;e.Assert.assertObject(t),e.Assert.assertObject(n);for(var r=Object.keys(n),o=0;o.5?u/(2-a-s):u/(a+s),a){case e:r=(t-n)/u+(t0&&(e=t.substring(0,n)+e)}return e},e.IntlConverterUtils.__getConverterOptionError=function(t,i){e.Assert.assertObject(i);var r,o="",a="",s=i.propertyName;if("optionTypesMismatch"===t){var l=i.requiredPropertyName;r=i.requiredPropertyValueValid,o=n.getTranslatedString("oj-converter.optionTypesMismatch.summary",{propertyName:s,propertyValue:i.propertyValue,requiredPropertyName:l}),a=e.IntlConverterUtils._getOptionValueDetailMessage(l,r)}else"optionTypeInvalid"===t?(s=i.propertyName,r=i.propertyValueValid,o=n.getTranslatedString("oj-converter.optionTypeInvalid.summary",{propertyName:s}),a=e.IntlConverterUtils._getOptionValueDetailMessage(s,r)):"optionOutOfRange"===t?(o=n.getTranslatedString("oj-converter.optionOutOfRange.summary",{propertyName:s,propertyValue:i.propertyValue}),r=i.propertyValueValid,a=e.IntlConverterUtils._getOptionValueDetailMessage(s,r)):"optionValueInvalid"===t&&(o=n.getTranslatedString("oj-converter.optionValueInvalid.summary",{propertyName:s,propertyValue:i.propertyValue}),r=i.propertyValueHint,a=e.IntlConverterUtils._getOptionValueDetailMessage(s,r));return new e.ConverterError(o,a)},e.IntlConverterUtils._getOptionValueDetailMessage=function(e,t){var i;return t?("string"==typeof t?i="oj-converter.optionHint.detail":(i="oj-converter.optionHint.detail-plural",t=t.join(n.getTranslatedString("oj-converter.plural-separator"))),n.getTranslatedString(i,{propertyName:e,propertyValueValid:t})):""},e.IntlConverterUtils.__getNullFormattedValue=function(){return""},e.IntlConverterUtils._copyTimeOver=function(t,n){return e.OraI18nUtils._copyTimeOver(t,n)},e.IntlConverterUtils._clearTime=function(t){return e.OraI18nUtils._clearTime(t)},e.IntlConverterUtils._dateTime=function(t,n,i){return e.OraI18nUtils._dateTime(t,n,i)},e.IntlConverterUtils._normalizeIsoString=function(t){return e.OraI18nUtils._normalizeIsoString(t)},e.IntlConverterUtils.getInitials=function(t,n){return e.OraI18nUtils.getInitials(t,n)},e.LengthValidator=function(e){this.Init(e)},e.LengthValidator.defaults={countBy:"codeUnit"},e.Object.createSubclass(e.LengthValidator,e.Validator,"oj.LengthValidator"),e.LengthValidator.prototype.Init=function(t){var n=t.countBy;if(e.LengthValidator.superclass.Init.call(this),this._min=void 0!==t.min?parseInt(t.min,10):null,this._max=void 0!==t.max?parseInt(t.max,10):null,isNaN(this._min))throw new Error("length validator's min option is not a number. min option is "+t.min);if(isNaN(this._max))throw new Error("length validator's max option is not a number. max option is "+t.min);if(null!==this._min&&this._min<0)throw new Error("length validator's min option cannot be less than 0. min option is "+t.min);if(null!==this._max&&this._max<1)throw new Error("length validator's max option cannot be less than 1. max option is "+t.max);this._countBy=void 0===n?e.LengthValidator.defaults.countBy:n,t&&(this._hint=t.hint||{},this._customMessageSummary=t.messageSummary||{},this._customMessageDetail=t.messageDetail||{})},e.LengthValidator.prototype.getHint=function(){var e,t=null,i=this._hint,r=i.exact,o=i.inRange,a=i.max,s=i.min,l=this._max,u=this._min,c=n;return null!==u&&null!==l?u!==l?(e={min:u,max:l},t=o?c.applyParameters(o,e):c.getTranslatedString("oj-validator.length.hint.inRange",e)):(e={length:u},t=r?c.applyParameters(r,e):c.getTranslatedString("oj-validator.length.hint.exact",e)):null!==u?(e={min:u},t=s?c.applyParameters(s,e):c.getTranslatedString("oj-validator.length.hint.min",e)):null!==l&&(e={max:l},t=a?c.applyParameters(a,e):c.getTranslatedString("oj-validator.length.hint.max",e)),t},e.LengthValidator.prototype.validate=function(t){var i,r=this._customMessageDetail,o=this._customMessageSummary,a="",s=this._max,l=o.tooLong,u=o.tooShort,c=r.tooLong,p=r.tooShort,d=this._min,h="",m=n,g=""+t,f=this._getLength(g);if((null===d||f>=this._min)&&(null===s||f<=this._max))return g;throw f=0&&this._converter.compareISODates(t,m)<=0||this._converter.compareISODates(h,m)>0)return t}else if(null!==h){if(this._converter.compareISODates(t,h)>=0)return t}else if(null===m||this._converter.compareISODates(t,m)<=0)return t;throw null!==m&&this._converter.compareISODates(t,m)>0?(v={value:y,max:r},g=c||_.getTranslatedString("oj-validator.range."+this._translationKey+".messageSummary.rangeOverflow"),f=l?_.applyParameters(l,v):_.getTranslatedString("oj-validator.range."+this._translationKey+".messageDetail.rangeOverflow",v)):null!==h&&this._converter.compareISODates(t,h)<0&&(v={value:y,min:n},g=p||_.getTranslatedString("oj-validator.range."+this._translationKey+".messageSummary.rangeUnderflow"),f=u?_.applyParameters(u,v):_.getTranslatedString("oj-validator.range."+this._translationKey+".messageDetail.rangeUnderflow",v)),new e.ValidatorError(g,f)},e.DateTimeRangeValidator.prototype.getHint=function(){var e=null,t=this._hint,n=t.inRange,r=t.min,o=t.max,a=this._min,s=this._max,l=a&&this._converter?this._converter.format(a):a,u=s&&this._converter?this._converter.format(s):s,c=null,p=i;return null!==a&&null!==s?(c={min:l,max:u},e=n?p.applyParameters(n,c):p.getTranslatedString("oj-validator.range."+this._translationKey+".hint.inRange",c)):null!==a?(c={min:l},e=r?p.applyParameters(r,c):p.getTranslatedString("oj-validator.range."+this._translationKey+".hint.min",c)):null!==s&&(c={max:u},e=o?p.applyParameters(o,c):p.getTranslatedString("oj-validator.range."+this._translationKey+".hint.max",c)),e},e.DateTimeConverterFactory=function(){return{createConverter:function(t){return function(t){return new e.IntlDateTimeConverter(t)}(t)}}}(),a.Validation.__registerDefaultConverterFactory(e.ConverterFactory.CONVERTER_TYPE_DATETIME,e.DateTimeConverterFactory),e.DateTimeRangeValidatorFactory=function(){return{createValidator:function(t){return function(t){return new e.DateTimeRangeValidator(t)}(t)}}}(),a.Validation.__registerDefaultValidatorFactory(e.ValidatorFactory.VALIDATOR_TYPE_DATETIMERANGE,e.DateTimeRangeValidatorFactory),e.DateRestrictionValidatorFactory=function(){return{createValidator:function(t){return function(t){return new e.DateRestrictionValidator(t)}(t)}}}(),a.Validation.__registerDefaultValidatorFactory(e.ValidatorFactory.VALIDATOR_TYPE_DATERESTRICTION,e.DateRestrictionValidatorFactory),e.IntlDateTimeConverter=function(e){this.Init(e)},e.Object.createSubclass(e.IntlDateTimeConverter,e.DateTimeConverter,"oj.IntlDateTimeConverter"),e.IntlDateTimeConverter._DEFAULT_DATE=new Date(1998,10,29,15,45,31),e.IntlDateTimeConverter.prototype.Init=function(t){e.IntlDateTimeConverter.superclass.Init.call(this,t)},e.IntlDateTimeConverter.prototype._getWrapped=function(){return this._wrapped||(this._wrapped=l.getInstance()),this._wrapped},e.IntlDateTimeConverter.prototype.format=function(t){var i=o.__getBundle(),r=n.getLocale(),a=this.resolvedOptions();if(null==t||"string"==typeof t&&0===e.StringUtils.trim(""+t).length)return e.IntlConverterUtils.__getNullFormattedValue();try{return this._getWrapped().format(t,i,a,r)}catch(e){throw this._processConverterError(e,t)}},e.IntlDateTimeConverter.prototype.formatRelative=function(e,t){var i=o.__getBundle(),r=n.getLocale();try{return this._getWrapped().formatRelative(e,i,t,r)}catch(t){throw this._processConverterError(t,e)}},e.IntlDateTimeConverter.prototype.getHint=function(){return null},e.IntlDateTimeConverter.prototype._getHintValue=function(){var t="";try{t=this.format(a.IntlConverterUtils.dateToLocalIso(e.IntlDateTimeConverter._DEFAULT_DATE))}catch(n){n instanceof e.ConverterError&&(t="")}return t},e.IntlDateTimeConverter.prototype.getOptions=function(){return e.IntlDateTimeConverter.superclass.getOptions.call(this)},e.IntlDateTimeConverter.prototype.resolvedOptions=function(){var e,t=n.getLocale(),i=this.getOptions();if(t!==this._locale||!this._resolvedOptions){e=o.__getBundle();try{if(!e)return s.error("locale bundle for the current locale %s is unavailable",t),{};this._resolvedOptions=this._getWrapped().resolvedOptions(e,i,t),this._locale=t}catch(e){throw this._processConverterError(e)}}return this._resolvedOptions},e.IntlDateTimeConverter.prototype.isHourInDaySet=function(){var e=this.resolvedOptions(),t=e.hour,n=e.hour12;return!(!t||n)},e.IntlDateTimeConverter.prototype.isHourInAMPMSet=function(){var e=this.resolvedOptions(),t=e.hour,n=e.hour12;return!(!t||!n)},e.IntlDateTimeConverter.prototype.isMinuteSet=function(){return this._isOptionSet("minute")},e.IntlDateTimeConverter.prototype.isSecondSet=function(){return this._isOptionSet("second")},e.IntlDateTimeConverter.prototype.isMilliSecondSet=function(){return this._isOptionSet("millisecond")},e.IntlDateTimeConverter.prototype.isYearSet=function(){return this._isOptionSet("year")},e.IntlDateTimeConverter.prototype.isMonthSet=function(){return this._isOptionSet("month")},e.IntlDateTimeConverter.prototype.isDaySet=function(){return this._isOptionSet("day")},e.IntlDateTimeConverter.prototype.isDayNameSet=function(){return this._isOptionSet("weekday")},e.IntlDateTimeConverter.prototype.calculateWeek=function(e){return this._getWrapped().calculateWeek(e,o.__getBundle(),n.getLocale())},e.IntlDateTimeConverter.prototype.parse=function(e){if(null==e||""===e)return null;var t=o.__getBundle(),i=n.getLocale(),r=this.resolvedOptions();try{var a=this._getWrapped().parse(e,t,r,i),l=a.value;return l&&a.warning&&s.warn("The value "+e+" was leniently parsed to represent a date "+l.toString?l.toString():l),l}catch(t){throw this._processConverterError(t,e)}},e.IntlDateTimeConverter.prototype.compareISODates=function(t,n){var i=e.StringUtils.isString;if(!i(t)||!i(n))throw new Error("Invalid arguments for compareISODates ",t,n);return this._getWrapped().compareISODates(t,n,o.__getBundle())},e.IntlDateTimeConverter.prototype._processConverterError=function(t,n){var r,o,s,l,u=t.errorInfo;if(u){var c=u.errorCode,p=u.parameterMap||{};e.Assert.assertObject(p);var d=p.propertyName;d=i.getTranslatedString("oj-converter.datetime.datetimeOutOfRange."+d),p.propertyName=d,t instanceof TypeError?"optionTypesMismatch"!==c&&"optionTypeInvalid"!==c||(s=a.IntlConverterUtils.__getConverterOptionError(c,p)):t instanceof RangeError?"optionOutOfRange"===c?s=a.IntlConverterUtils.__getConverterOptionError(c,p):"datetimeOutOfRange"===c?(r=i.getTranslatedString("oj-converter.datetime.datetimeOutOfRange.summary",{propertyName:d,value:p.value}),o=i.getTranslatedString("oj-converter.datetime.datetimeOutOfRange.detail",{minValue:p.minValue,maxValue:p.maxValue}),s=new e.ConverterError(r,o)):"isoStringOutOfRange"===c&&(r=i.getTranslatedString("oj-converter.datetime.invalidISOString.invalidRangeSummary",{isoStr:p.isoString,propertyName:d,value:p.value}),o=i.getTranslatedString("oj-converter.datetime.datetimeOutOfRange.detail",{minValue:p.minValue,maxValue:p.maxValue}),s=new e.ConverterError(r,o)):t instanceof SyntaxError?"optionValueInvalid"===c&&(s=a.IntlConverterUtils.__getConverterOptionError(c,p)):t instanceof Error&&("dateFormatMismatch"===c?l="oj-converter.datetime.dateFormatMismatch.summary":"timeFormatMismatch"===c?l="oj-converter.datetime.timeFormatMismatch.summary":"datetimeFormatMismatch"===c?l="oj-converter.datetime.datetimeFormatMismatch.summary":"invalidTimeZoneID"===c?(r=i.getTranslatedString("oj-converter.datetime.invalidTimeZoneID.summary",{timeZoneID:p.timeZoneID}),o=i.getTranslatedString("oj-converter.hint.detail",{exampleValue:this._getHintValue()}),s=new e.ConverterError(r,o)):"nonExistingTime"===c?l="oj-converter.datetime.nonExistingTime.summary":"missingTimeZoneData"===c?l="oj-converter.datetime.missingTimeZoneData.summary":"dateToWeekdayMismatch"===c?(r=i.getTranslatedString("oj-converter.datetime.dateToWeekdayMismatch.summary",{date:p.date,weekday:p.weekday}),o=i.getTranslatedString("oj-converter.datetime.dateToWeekdayMismatch.detail"),s=new e.ConverterError(r,o)):"invalidISOString"===c&&(r=i.getTranslatedString("oj-converter.datetime.invalidISOString.summary",{isoStr:p.isoStr}),o=i.getTranslatedString("oj-converter.datetime.invalidISOString.detail"),s=new e.ConverterError(r,o)),l&&(r=i.getTranslatedString(l,{value:n||p.value,format:p.format}),o=i.getTranslatedString("oj-converter.hint.detail",{exampleValue:this._getHintValue()}),s=new e.ConverterError(r,o)))}return s||(r=t.message,o=t.message,s=new e.ConverterError(r,o)),s},e.IntlDateTimeConverter.prototype._isOptionSet=function(e){return!!this.resolvedOptions()[e]},e.IntlDateTimeConverter.prototype.getAvailableTimeZones=function(){return this._getWrapped().getAvailableTimeZones(o.__getBundle())},e.IntlDateTimeConverter.prototype._getTimePositioning=function(e){var t;return t=null===e?this.resolvedOptions():e,this._getWrapped().getTimePositioning(o.__getBundle(),t,n.getLocale())},l=function(){function t(e){var t=e["two-digit-year-start"];return(void 0===t||isNaN(t))&&(t=1950),t=parseInt(t,10)}function n(t){var n=t._ojLocale_,i=e.OraI18nUtils.getBCP47Region(n);return"h"===t.supplemental.prefferedHours[i]}function i(t,n,i){var r,o,a,s=e.OraI18nUtils.getLocaleElementsMainNode(n),l=e.OraI18nUtils.getGetOption(t,i),u=l("formatType","string",["date","time","datetime"],"date"),c=l("dateFormat","string",["short","medium","long","full"],"short"),p=l("timeFormat","string",["short","medium","long","full"],"short"),d=s.dates.calendars.gregorian,h=d.dateFormats,m=d.timeFormats;switch(c){case"full":r=h.full;break;case"long":r=h.long;break;case"medium":r=h.medium;break;case"short":r=h.short}switch(p){case"full":o=m.full;break;case"long":o=m.long;break;case"medium":o=m.medium;break;case"short":o=m.short}return void 0===r||"datetime"!==u&&"date"!==u||(a=r),void 0===o||"datetime"!==u&&"time"!==u||(Oe&&(o=o.replace(be,"")),a=a?a+" "+o:o),a}function r(e,t){for(var n=0,i=!1,r=0,o=e.length;ru&&(u=g,o=m)}}return void 0!==o?o.pattern:null}function s(e,t,n,i){return void 0!==n?(e[t]=n,i[n]):""}function c(e,t,n){var i;if(Object.keys(t).length>1)return null;for(var r=e.length;r>0;r--)if(void 0!==(i=n[e.substr(0,r)]))return i;return e}function p(t,r,o,l){function u(n){if(void 0!==v){var i=(r=m,a=o,s="symbols-numberSystem-"+e.OraI18nUtils.getNumberingSystemKey(r,a),r.numbers[s].decimal);i=void 0===d&&void 0===h&&void 0===y?"S":"ss"+i+"SSS",n=n.replace("ss",i),void 0===y&&(t.second=void 0)}var r,a,s,l=f("timeZoneName","string",["short","long"]);return void 0!==l&&(n=n.replace(/v/,{short:"z",long:"zzzz"}[l])),n}var p,d,h,m=e.OraI18nUtils.getLocaleElementsMainNode(r),g=e.OraI18nUtils.getLocaleElementsMainNodeKey(r),f=e.OraI18nUtils.getGetOption(t,l),_=f("formatMatcher","string",["basic","munger"],"munger");0===Object.keys(t).length&&(t={year:"numeric",month:"numeric",day:"numeric"});var v=f("millisecond","string",["numeric","2-digit"]),y=f("second","string",["numeric","2-digit"]);void 0!==v&&(d=f("hour","string",["numeric","2-digit"]),h=f("minute","string",["numeric","2-digit"]),t.second="2-digit");var E=function(t,i,r){var o="",a="",l={},u={},c=e.OraI18nUtils.getGetOption(t,r),p=c("era","string",["narrow","short","long"]);o+=s(l,"era",p,{narrow:"GGGGG",short:"GGG",long:"GGGG"}),o+=s(l,"year",p=c("year","string",["2-digit","numeric"]),{"2-digit":"yy",numeric:"y"}),o+=s(l,"month",p=c("month","string",["2-digit","numeric","narrow","short","long"]),{"2-digit":"MM",numeric:"M",narrow:"MMMMM",short:"MMM",long:"MMMM"}),o+=s(l,"weekday",p=c("weekday","string",["narrow","short","long"]),{narrow:"EEEEE",short:"E",long:"EEEE"}),o+=s(l,"day",p=c("day","string",["2-digit","numeric"]),{"2-digit":"dd",numeric:"d"});var d=c("hour12","boolean",[!0,!1]);return void 0===d&&(d=n(i)),a+=s(u,"hour",p=c("hour","string",["2-digit","numeric"]),!0===d?{"2-digit":"hh",numeric:"h"}:{"2-digit":"HH",numeric:"H"}),a+=s(u,"minute",p=c("minute","string",["2-digit","numeric"]),{"2-digit":"mm",numeric:"m"}),a+=s(u,"second",p=c("second","string",["2-digit","numeric"]),{"2-digit":"ss",numeric:"s"}),[o,a+=s(u,"timeZoneName",p=c("timeZoneName","string",["short","long"]),{short:"v",long:"v"}),l,u]}(t,r,l);if(void 0!==le[g]){var S=le[g].dates.calendars.gregorian.dateTimeFormats[E[0]+E[1]];if(void 0!==S)return S=u(S)}if(""===E[0]&&""===E[1])return i(t,r,l);var b=m.dates.calendars.gregorian.dateTimeFormats.availableFormats,O=b[E[0]],C=f("hour12","boolean",[!0,!1]);void 0===C&&(C=n(r)),void 0===O&&""!==E[0]&&(null===(O=c(E[0],E[2],b))&&(O=a(E[2],r,0,C)),null!==O?"basic"!==_&&(O=function(t,n,i){var r=t,o=e.OraI18nUtils.getGetOption(n,i),a=o("year","string",["2-digit","numeric"]),s={"2-digit":"yy",numeric:"yyyy"};if(void 0!==a&&(r=r.replace(/y{1,4}/,s[a])),void 0!==(a=o("month","string",["2-digit","numeric","narrow","short","long"]))&&(void 0!==(s={"2-digit":"MM",numeric:"M",narrow:"MMMMM",short:"MMM",long:"MMMM"})[a]&&s[a].length>2?r=(r=r.replace(/M{3,5}/,s[a])).replace(/L{3,5}/,{"2-digit":"LL",numeric:"L",narrow:"LLLLL",short:"LLL",long:"LLLL"}[a]):"2-digit"===a&&(de.lastIndex=0,de.test(t)&&(r=r.replace("M","MM")),he.test(t)&&(r=r.replace("L","LL")))),void 0!==(a=o("weekday","string",["narrow","short","long"]))&&(r=(r=r.replace(/E{1,5}/,{narrow:"EEEEE",short:"EEE",long:"EEEE"}[a])).replace(/c{1,5}/,{narrow:"ccccc",short:"ccc",long:"cccc"}[a])),void 0!==(a=o("day","string",["2-digit","numeric"]))&&"2-digit"===a){me.lastIndex=0,_e.lastIndex=0;var l=_e.test(t);!0===me.test(t)&&!1===l&&(r=r.replace("d","dd"))}return r}(O,t,l)):O=E[0]);var T=b[E[1]];return void 0===T&&""!==E[1]&&(null===(T=c(E[1],E[3],b))&&(T=a(E[3],r,0,C)),null!==T?"basic"!==_&&(T=function(t,n,i){var r=t;if("2-digit"===e.OraI18nUtils.getGetOption(n,i)("hour","string",["2-digit","numeric"])){ge.lastIndex=0,fe.lastIndex=0;var o=t.replace(fe,""),a=ge.exec(o);if(null!==a){ye.lastIndex=0;var s=ye.exec(a[0]),l=s[0]+s[0];r=t.replace(s[0],l)}}return r}(T,t,l)):T=E[1]),p=O||"",void 0!==T&&(""!==p?p+=" "+T:p=T),void 0===le[g]&&(le[g]={},le[g].dates={},le[g].dates.calendars={},le[g].dates.calendars.gregorian={},le[g].dates.calendars.gregorian.dateTimeFormats={}),le[g].dates.calendars.gregorian.dateTimeFormats[E[0]+E[1]]=p,p=u(p)}function d(e){var t=e.split(" "),n=t[0].split("-"),i=new Date(n[0],n[1]-1,n[2]);return t.length>1&&(n=t[1].split(":"),i.setHours(n[0]),i.setMinutes(n[1])),i.getTime()}function h(e,t,n){var i=new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5]).getTime(),r=t.split("/"),o=r[0],a=r[1],s=n[o];if(void 0===s)return null;if(void 0===(s=s[a]))return null;for(var l,u,c=s.length,p=0;p=(l=d(h)))return g;if(void 0!==h&&void 0!==m&&(l=d(h),u=d(m),i>=l&&i1?e.OraI18nUtils.padZeros(s,r):s)}function u(n,r,o){var a,s,l,u=r.timeZone,c=S("dst","boolean",[!0,!1],!1),p=!o;if(void 0!==u)l=f(s=g(u,t),n,c,p,!0),a=-s.ofset(l);else if(i.format!==Ae)switch(i.format){case Me:var d=_(i.timeZone),h=d[0],m=d[1];a=60*h+(e.OraI18nUtils.startsWith(i.timeZone,"-")?-m:m);break;case Ie:default:a=0}return a}var c,d,h,v=i.isoStrParts,y=0===i.dateTime.indexOf("T"),E=e.OraI18nUtils.getLocaleElementsMainNode(t),S=e.OraI18nUtils.getGetOption(n,"OraDateTimeConverter.format");d=n.pattern||p(n,t,a,"OraDateTimeConverter.format"),c=[];var b,O,C,T,I,A=0,P=E.dates.calendars.gregorian,D=n.timeZone;for(i.format!==Ae&&void 0!==D&&ee(i,n,t);;){var M=Se.lastIndex,U=Se.exec(d);if(A+=r(d.slice(M,U?U.index:d.length),c),!U)break;if(A%2)c.push(U[0]);else{var N=U[0],L=N.length,R=Re[N];switch(R.token){case"days":h=P[R.token][R.style][R.dLen],c.push(h[s(v,3)]);break;case"months":h=P[R.token][R.style][R.mLen],c.push(h[s(v,1)]);break;case"dayOfMonth":case"monthIndex":c.push((b=c,O=v,C=R.getPartIdx,T=L,I=s(O,C),void b.push(T>1?e.OraI18nUtils.padZeros(I,T):I))); break;case"year":h=v[0],2===L&&(h%=100),c.push(e.OraI18nUtils.padZeros(h,L));break;case"time":l(c,v,L,R,N);break;case"ampm":h=v[3]<12?P.dayPeriods.format.wide.am:P.dayPeriods.format.wide.pm,c.push(h);break;case"tzhm":0===(h=u(v,n,y))?"XX"===R.key?c.push("Z"):c.push("+0000"):void 0!==h&&c.push((h<=0?"-":"+")+e.OraI18nUtils.padZeros(Math.floor(Math.abs(h/60)),2)+e.OraI18nUtils.padZeros(Math.floor(Math.abs(h%60)),2));break;case"tzhsepm":0===(h=u(v,n,y))?c.push("Z"):void 0!==h&&c.push((h<=0?"-":"+")+e.OraI18nUtils.padZeros(Math.floor(Math.abs(h/60)),2)+":"+e.OraI18nUtils.padZeros(Math.floor(Math.abs(h%60)),2));break;case"tzh":0===(h=u(v,n,y))?c.push("Z"):void 0!==h&&c.push((h<=0?"-":"+")+e.OraI18nUtils.padZeros(Math.floor(Math.abs(h/60)),2));break;case"tzid":h=void 0!==D?D:i.format===Ie?Ue:"",c.push(h);break;case"tzAbbrev":h=m(t,v,n,0,y),c.push(h);break;case"tzFull":h=m(t,v,n,1,y),c.push(h);break;case"era":h=P.eras.eraAbbr,c.push(h[1]);break;case"slash":c.push("/");break;default:o(d,n,N)}}}return c.join("")}function y(e,t){return e.getFullYear()===t.getFullYear()}function E(e,t){return t.getFullYear()-e.getFullYear()==1}function S(e,t){return y(e,t)&&e.getMonth()===t.getMonth()}function b(e,t){return y(e,t)?t.getMonth()-e.getMonth()==1:!!E(e,t)&&11===e.getMonth()&&0===t.getMonth()}function O(t,n){var i=t.getDate(),r=n.getDate();return b(t,n)&&(r+=e.OraI18nUtils._getDaysInMonth(t.getFullYear,t.getMonth())),r-i}function C(t,n){var i=t._ojLocale_,r=e.OraI18nUtils.getBCP47Region(i),o=t.supplemental.weekData.firstDay,a=o[r];void 0===a&&(a=o["001"]);var s=n-a;return s<0&&(s+=7),s}function T(e,t,n){if(!S(t,n)&&!b(t,n))return!1;var i=O(t,n)+C(e,t.getDay());return i>=7&&i<=13}function I(e,t){return y(e,t)&&S(e,t)&&e.getDate()===t.getDate()}function A(e,t){return!(!S(e,t)&&!b(e,t))&&1===O(e,t)}function P(e,t){return A(t,e)}function D(t,n,i){var r=e.OraI18nUtils._IsoStrParts(t),o=e.OraI18nUtils._IsoStrParts(n);return i?(r=Date.UTC(r[0],r[1]-1,r[2],0,0,0,0),o=Date.UTC(o[0],o[1]-1,o[2],0,0,0,0)):(r=Date.UTC(r[0],r[1]-1,r[2],r[3],r[4],r[5],r[6]),o=Date.UTC(o[0],o[1]-1,o[2],o[3],o[4],o[5],o[6])),r-o}function M(e,t){return e.replace(/\{(\d+)\}/g,function(){return t[arguments[1]]})}function U(t,n,i,r){var o=e.OraI18nUtils.getLocaleElementsMainNode(r).dates.fields,a=e.OraI18nUtils.getGetOption(i,"OraDateTimeConverter.formatRelative")("dateField","string",["day","week","month","year","hour","minute","second"]),s=e.OraI18nUtils.isoToLocalDate(t),l=e.OraI18nUtils.isoToLocalDate(n);switch(a){case"day":return I(s,l)?o.day["relative-type-0"]:A(s,l)?o.day["relative-type-1"]:P(s,l)?o.day["relative-type--1"]:L(t,n,r,"day");case"week":return function(e,t,n){if(t>n){var i=t;t=n,n=i}if(!S(t,n)&&!b(t,n))return!1;var r=O(t,n)+C(e,t.getDay());return r>=0&&r<=6}(r,s,l)?o.week["relative-type-0"]:T(r,s,l)?o.week["relative-type-1"]:function(e,t,n){return T(e,n,t)}(r,s,l)?o.week["relative-type--1"]:L(t,n,r,"week");case"month":return S(s,l)?o.month["relative-type-0"]:b(s,l)?o.month["relative-type-1"]:b(l,s)?o.month["relative-type--1"]:L(t,n,r,"month");case"year":return y(s,l)?o.year["relative-type-0"]:E(s,l)?o.year["relative-type-1"]:function(e,t){return E(t,e)}(s,l)?o.year["relative-type--1"]:L(t,n,r,"year");case"hour":return L(t,n,r,"hour");case"minute":return L(t,n,r,"minute");case"second":return L(t,n,r,"second")}return null}function N(e){return e.split("-")[0]}function L(t,n,i,r){var o,a,s,l=e.OraI18nUtils.getLocaleElementsMainNodeKey(i),u=e.OraI18nUtils.getLocaleElementsMainNode(i),c=N(l),p=i.supplemental.plurals,d=u.dates.fields,h=D(n,t,!1),m=Math.abs(h),g=(a=function(e){return 4800*e/146097}((o=m)/864e5),s=a/12,{year:Math.round(s),month:Math.round(a),week:Math.round(o/6048e5),day:Math.round(o/864e5),hour:Math.round(o/36e5),minute:Math.round(o/6e4),second:Math.round(o/1e3),millisecond:o});if(null===r&&(r=(g.second-7)o=d[l]["relative-type--1"];else{if(!(f>1&&f<7))return v(i,{year:"numeric",month:"numeric",day:"numeric"},g,"en-US");o=p[l]}}return r?o:(a=v(i,{hour:"numeric",minute:"numeric"},g,"en-US"),c=M(c=c.replace(/'/g,""),[a,o]))}(r,t,n,o("dateOnly","boolean",[!0,!1],!1)):void 0!==s?U(r,t,i,n):L(r,t,n,null)}function w(e,t){var n=new Error("The weekday "+e+" does not match the date "+t),i={errorCode:"dateToWeekdayMismatch",parameterMap:{weekday:e,date:t}};throw n.errorInfo=i,n}function V(e,t,n){var i,r;2===n?(i='The value "'+e+'" does not match the expected date-time format "'+t+'"',r="datetimeFormatMismatch"):0===n?(i='The value "'+e+'" does not match the expected date format "'+t+'"',r="dateFormatMismatch"):(i='The value "'+e+'" does not match the expected time format "'+t+'"',r="timeFormatMismatch");var o=new Error(i),a={errorCode:r,parameterMap:{value:e,format:t}};throw o.errorInfo=a,o}function j(e,t){if(t<100){var n=e%100;t+=100*Math.floor(e/100)+(ti){var s=new RangeError(r+" is out of range. Enter a value between "+o+" and "+a+" for "+e),l={errorCode:"datetimeOutOfRange",parameterMap:{value:r,minValue:o,maxValue:a,propertyName:e}};throw s.errorInfo=l,s}}function G(e,t){for(var n=0;n2||v>31)&&(l=v,f=!0,p=h-1)}for(f||(p=G(m,"y"),l=s[G(m,"y")+1]),h=0;h<3;h++)if(h!==p&&s[h+1]>12){c=s[h+1],_=!0,d=h;break}if(_){for(h=0;h<3;h++)if(h!==d&&h!==p){u=s[h+1];break}void 0===u&&(u=s[G(m,"M")+1])}else p===G(m,"d")?(c=s[G(m,"y")+1],u=s[G(m,"M")+1]):p===G(m,"M")?(c=s[G(m,"d")+1],u=s[G(m,"y")+1]):(c=s[G(m,"d")+1],u=s[G(m,"M")+1]);u-=1;var y=e.OraI18nUtils._getDaysInMonth(l,u);_&&g!==d&&u>12&&H("month",c,0,11,c,1,12),H("month",u,0,11,u+1,1,12),H("day",c,1,y,c,1,y),H("year",l=j(t(r),parseInt(l,10)),0,9999,l,0,9999);var E=new Date(l,u,c),S=W(n,o);if(null!==S){var b=B(o,S,0);E.getDay()!==b&&w(S,E.getDate())}var O={value:E,offset:"",warning:"lenient parsing was used"};if(a){var C=n.substr(pe.lastIndex);0===C.length?O.value.setHours(0,0,0,0):Y(O.value,C,i,o,2)}return O.value=e.OraI18nUtils.dateToLocalIso(O.value),O}(s,i,r,o,a);var v=F(o,c,2);H("month",v,0,11,v,1,12);var y=W(s,o),E=new RegExp(y+"\\W","i");null!==y&&(n=n.replace(E,"")),ce.lastIndex=0;var S=ce.exec(n);null===S&&V(s,i,a?2:0);var b,O,C,T=[{y:i.indexOf("y")},{d:i.indexOf("d")}];T.sort(function(e,t){var n=Object.keys(e)[0],i=Object.keys(t)[0];return e[n]-t[i]});var I=!1;for(u=1;u<=2;u++){var A=S[u];(A.length>2||A>31)&&(b=A,I=!0,C=u-1)}I||(C=G(T,"y"),b=S[G(T,"y")+1]),O=C===G(T,"d")?S[G(T,"y")+1]:S[G(T,"d")+1],H("year",b=j(t(r),parseInt(b,10)),0,9999,b,0,9999);var P=new Date(b,v,O);if(null!==y){var D=B(o,y,0);P.getDay()!==D&&w(y,P.getDate())}var M=e.OraI18nUtils._getDaysInMonth(b,v);H("day",O,1,M,O,1,M);var U={value:P,offset:"",warning:"lenient parsing was used"};if(a){var N=n.substr(ce.lastIndex);0===N.length?U.value.setHours(0,0,0,0):Y(U.value,N,i,o,2)}return U.value=e.OraI18nUtils.dateToLocalIso(U.value),U}function z(t,n,i,r){switch(J(i,"OraDateTimeConverter.parse")){case 0:return Z(t,n,i,r,!1);case 1:var o=new Date;return Y(o,t,n,r,1),{value:e.OraI18nUtils.dateToLocalIso(o),offset:"",warning:"lenient parsing was used"};case 2:return Z(t,n,i,r,!0)}return null}function q(t,n,i,r,o,a,s,l,u,c,p){var d,h=e.OraI18nUtils.getLocaleElementsMainNode(t).dates.calendars.gregorian[n][o];return H(p,d="months"===n?F(t,i,a):B(t,i,a),s,l,i,h[r][u],h[r][c]),d}function K(e,t,n,i){var r=t;r[n.timePart]=e,"h"===i||"hh"===i?12===e&&(r[n.timePart]=0):"k"!==i&&"kk"!==i||24===e&&(r[n.timePart]=0),H(n.timePart,r[n.timePart],n.start1,n.end1,e,n.start2,n.end2)}function $(n,i,a,s){var l=e.OraI18nUtils.getLocaleElementsMainNode(s),u=l.dates.calendars.gregorian.eras.eraAbbr[1],c=e.OraI18nUtils.trimNumber(u);n=n.replace(u,c);var p=e.OraI18nUtils.getGetOption(a,"OraDateTimeConverter.parse")("lenientParse","string",["none","full"],"full"),d=J(a,"OraDateTimeConverter.parse"),h=function(e,t){for(var n=e.replace(Ee,"\\\\$1"),i=["^"],a=[],s=0,l=0,u=Se.exec(n);null!==u;){var c=n.slice(s,u.index);if(s=Se.lastIndex,(l+=r(c,i))%2)i.push(u[0]);else{var p,d=u[0];void 0!==Re[d]?p=Re[d].regExp:o(e,t,d),p&&i.push(p),a.push(u[0])}u=Se.exec(n)}r(n.slice(s),i),i.push("$");var h={regExp:i.join("").replace(/\s+/g,"\\s+"),groups:a};return h}(i,a),m=new RegExp(h.regExp).exec(n);if(null===m){if("full"===p)return z(n,i,a,s);V(n,i,d)}for(var _,v=h.groups,y=null,E=null,S=null,b=null,O="",C=null,T=!1,I={hour:0,minute:0,second:0,millisec:0},A=l.dates.calendars.gregorian.dayPeriods.format.wide.pm,P=t(a),D=0,M=v.length;D31&&"full"===p)try{return z(n,i,a,s)}catch(t){var x=e.OraI18nUtils._getDaysInMonth(y,E);H("day",S,1,x,S,1,x)}break;case"monthIndex":if((E=L-1)>11&&"full"===p)try{return z(n,i,a,s)}catch(e){H("month",E,0,11,E+1,1,12)}break;case"year":H("year",y=j(P,L),0,9999,y,0,9999);break;case"ampm":T=-1!==e.OraI18nUtils.toUpper(U).indexOf(e.OraI18nUtils.toUpper(A));break;case"tzhm":O=U.substr(-2),O=U.substr(0,3)+":"+O;break;case"tzhsepm":O=U;break;case"tzh":O=U+":00";break;case"tzid":C=U}}}var k=new Date;null===y&&(y=k.getFullYear()),null===E&&null===S?(E=k.getMonth(),S=k.getDate()):null===S&&(S=1),H("month",E,0,11,E+1,1,12);var B=e.OraI18nUtils._getDaysInMonth(y,E);H("day",S,1,B,S,1,B),k.setFullYear(y,E,S),null!==b&&k.getDay()!==b&&w(_,k.getDate()),T&&I.hour<12&&(I.hour+=12);var F=[y,E+1,S,I.hour,I.minute,I.second,I.millisec],G=e.OraI18nUtils.partsToIsoString(F);if(null!==C){var Y=g(C,s),W=f(Y,F,!1,!0,!0);O=-Y.ofset(W),O=e.OraI18nUtils.getTimeStringFromOffset("",O,!1,!0)}return""!==O&&(G+=O),{value:G}}function X(e,t,n){for(var i=n.replace(Ee,"\\\\$1"),a=["^"],s=0,l=0,u={locale:e,numberingSystem:t,calendar:"gregorian"},c=Se.exec(i);null!==c;){var p=i.slice(l,c.index);if(l=Se.lastIndex,(s+=r(p,a))%2==0){var d=c[0];"/"!==d&&"zzzz"!==d&&"zzz"!==d&&"zz"!==d&&"z"!==d&&(void 0!==Re[d]?(void 0!==Re[d].key&&(u[Re[d].key]=Re[d].value),"kk"===d||"HH"===d||"H"===d||"k"===d?u.hour12=!1:"KK"!==d&&"hh"!==d&&"h"!==d&&"K"!==d||(u.hour12=!0)):o(n,u,d))}c=Se.exec(i)}return u}function J(t,n){if(void 0!==t.pattern)return function(e){var t=X("","",e),n=void 0!==t.year||void 0!==t.month||void 0!==t.weekday||void 0!==t.day,i=void 0!==t.hour||void 0!==t.minute||void 0!==t.second||void 0!==t.millisecond;return n&&i?2:i?1:0}(t.pattern);var i=e.OraI18nUtils.getGetOption(t,n),r=void 0!==i("hour","string",["2-digit","numeric"])||void 0!==i("minute","string",["2-digit","numeric"])||void 0!==i("second","string",["2-digit","numeric"])||void 0!==i("millisecond","string",["numeric"]),o=void 0!==i("year","string",["2-digit","numeric"])||void 0!==i("month","string",["2-digit","numeric","narrow","short","long"])||void 0!==i("day","string",["2-digit","numeric"])||void 0!==i("weekday","string",["narrow","short","long"]);if(o&&r)return 2;if(r)return 1;if(o)return 0;var a=i("formatType","string",["date","time","datetime"],"date");return"datetime"===a?2:"time"===a?1:0}function Q(e,t){var n=f(e,t,!1,!0,!1),i=e.ofset(n),r=e.ofset(n+1);return Math.max(i,r)}function ee(t,n,i){var r,o,a,s,l=t.isoStrParts,u=t.format,c=g(n.timeZone,i);switch(r=Date.UTC(l[0],l[1]-1,l[2],l[3],l[4],l[5]),u){case Me:var p=_(t.timeZone),d=p[0],h=p[1];o=60*d+(d<0?-h:h);break;case Ie:o=0}r-=6e4*((a=Q(c,l))+o);var m=e.OraI18nUtils.getGetOption(n,"OraDateTimeConverter")("dst","boolean",[!0,!1],!1),f=0===t.dateTime.indexOf("T");s=c.parse(r,m,!f,!1),a=-c.ofset(s),a-=o;var v=new Date(Date.UTC(l[0],l[1]-1,l[2],l[3],l[4],l[5])),y=v.getUTCMinutes()+a;v.setUTCHours(v.getUTCHours()+(y/60<<0),y%60),l[0]=v.getUTCFullYear(),l[1]=v.getUTCMonth()+1,l[2]=v.getUTCDate(),l[3]=v.getUTCHours(),l[4]=v.getUTCMinutes(),l[5]=v.getUTCSeconds()}function te(t,n){var i,r="";switch(t){case 0:r=e.OraI18nUtils.padZeros(n[0],4)+"-"+e.OraI18nUtils.padZeros(n[1],2)+"-"+e.OraI18nUtils.padZeros(n[2],2);break;case 1:r="T"+e.OraI18nUtils.padZeros(n[3],2)+":"+e.OraI18nUtils.padZeros(n[4],2)+":"+e.OraI18nUtils.padZeros(n[5],2),(i=n[6])>0&&(r+="."+e.OraI18nUtils.trimRightZeros(e.OraI18nUtils.padZeros(i,3)));break;default:r=e.OraI18nUtils.padZeros(n[0],4)+"-"+e.OraI18nUtils.padZeros(n[1],2)+"-"+e.OraI18nUtils.padZeros(n[2],2)+"T"+e.OraI18nUtils.padZeros(n[3],2)+":"+e.OraI18nUtils.padZeros(n[4],2)+":"+e.OraI18nUtils.padZeros(n[5],2),(i=n[6])>0&&(r+="."+e.OraI18nUtils.trimRightZeros(e.OraI18nUtils.padZeros(i,3)))}return r}function ne(t,n,i,r,o,a){var s=g(t,o),l=f(s,n,i,r,a),u=s.ofset(l);return e.OraI18nUtils.getTimeStringFromOffset("",u,!0,!0)}function ie(t,n,i,r){var o,a,s=e.OraI18nUtils.getNumberingExtension(r);if(void 0===e.OraI18nUtils.numeringSystems[s]&&(s="latn"),"latn"!==s){for(var l=[],u=0;u0?2:1):(a=i.pattern||p(i,n,r,"OraDateTimeConverter.parse"),o=J(i,"OraDateTimeConverter.parse"),d=(_=$(t,a,i,n)).value),h=e.OraI18nUtils.getISOStrFormatInfo(d),void 0!==i.timeZone&&h.format!==Ae&&ee(h,i,n),d=function(t,n,i,r){var o,a,s,l=e.OraI18nUtils.getGetOption(i,"OraDateTimeConverter.parse"),u=l("isoStrFormat","string",[Ie,Me,De,Ae,Pe],Pe),c=l("dst","boolean",[!0,!1],!1),p=!0,d=n.isoStrParts,h=n.timeZone,m=i.timeZone,_=n.format,v=i.isoStrFormat,y=te(t,d);if(0===t||"local"===v)return y;switch(1===t&&(p=!1),u){case Me:void 0===m&&_===Me?y+=h:void 0===m&&_===Ae?y+="":void 0===m&&_===Ie?y+="+00:00":void 0!==m&&(y+=s=ne(m,d,c,p,r,!0));break;case Ie:var E=0;if(void 0===m){if(_===Me){s=h.split(":");var S=parseInt(s[0],10),b=parseInt(s[1],10);E=-(E=60*S+(e.OraI18nUtils.startsWith(s[0],"-")?-b:b))}}else a=f(o=g(m,r),d,c,p,!0),E=s=o.ofset(a);if(0!==E){var O=new Date(Date.UTC(d[0],d[1]-1,d[2],d[3],d[4],d[5],d[6]));E=O.getUTCMinutes()+E,O.setUTCHours(O.getUTCHours()+(E/60<<0),E%60),d[0]=O.getUTCFullYear(),d[1]=O.getUTCMonth()+1,d[2]=O.getUTCDate(),d[3]=O.getUTCHours(),d[4]=O.getUTCMinutes(),d[5]=O.getUTCSeconds(),y=te(t,d)}y+="Z";break;case Pe:void 0!==m?y+=s=ne(m,d,c,p,r,!0):(s=h)&&(y+=s)}return y}(o,h,i,n),_.value=d,_}function re(e,r,o,a,s,u,c,d){var h={locale:d,numberingSystem:c,calendar:"gregorian"};if(0===Object.keys(e).length)return h.year="numeric",h.month="numeric",h.day="numeric",h.lenientParse="full",h;void 0!==o&&(h.timeZone=o,void 0!==s&&(h.isoStrFormat=s)),function(e,t){var n=t,i=e("formatUsing","string",["displayName","calendar"]);void 0!==i&&(n.formatUsing=i),void 0!==(i=e("dateField","string",["day","week","month","year","hour","minute","second"]))&&(n.dateField=i),void 0!==(i=e("relativeTime","string",["fromNow","toNow"]))&&(n.relativeTime=i),void 0!==(i=e("dateOnly","boolean",[!0,!1]))&&(n.dateOnly=i)}(r,h);var m=function(e,t,i,r){var o,a=t,s=!1;return void 0!==i&&(a.dst=i),void 0!==(o=e("year","string",["2-digit","numeric"]))&&(a.year=o,s=!0),void 0!==(o=e("era","string",["narrow","short","long"]))&&(a.era=o,s=!0),void 0!==(o=e("month","string",["2-digit","numeric","narrow","short","long"]))&&(a.month=o,s=!0),void 0!==(o=e("day","string",["2-digit","numeric"]))&&(a.day=o,s=!0),void 0!==(o=e("weekday","string",["narrow","short","long"]))&&(a.weekday=o,s=!0),void 0!==(o=e("hour","string",["2-digit","numeric"]))&&(a.hour=o,s=!0,void 0===(o=e("hour12","boolean",[!0,!1]))&&(o=n(r)),a.hour12=o),void 0!==(o=e("minute","string",["2-digit","numeric"]))&&(a.minute=o,s=!0),void 0!==(o=e("second","string",["2-digit","numeric"]))&&(a.second=o,s=!0),void 0!==(o=e("millisecond","string",["numeric"]))&&(a.millisecond=o,s=!0),s}(r,h,a,u);if(h["two-digit-year-start"]=t(e),!m)return function(e,t,n,r){var o=e,a=i(t,n,l.resolvedOptions),s=r("formatType","string",["date","time","datetime"],"date"),u=r("dateFormat","string",["short","medium","long","full"],"short"),c=r("timeFormat","string",["short","medium","long","full"],"short");o.formatType=s,"datetime"!==s&&"date"!==s||(o.dateFormat=u),"datetime"!==s&&"time"!==s||(o.timeFormat=c),o.patternFromOptions=a,o.lenientParse=r("lenientParse","string",["none","full"],"full")}(h,e,u,r),h;if(void 0!==o){var g=r("timeZoneName","string",["short","long"]);void 0!==g&&(h.timeZoneName=g)}return h.lenientParse=r("lenientParse","string",["none","full"],"full"),h.patternFromOptions=p(h,u,d,"OraDateTimeConverter.resolvedOptions"),h}function oe(n,i,r){var o,a,s;(arguments.length<3||void 0===r)&&(r=e.OraI18nUtils.getLocaleElementsMainNodeKey(n)),(arguments.length<2||void 0===i)&&(i={year:"numeric",month:"numeric",day:"numeric"});var l=e.OraI18nUtils.getGetOption(i,"OraDateTimeConverter.resolvedOptions");void 0!==i&&(a=l("isoStrFormat","string",[Ie,Me,De,Ae,Pe],Pe),s=l("dst","boolean",[!0,!1],!1),o=i.timeZone);var u=e.OraI18nUtils.getNumberingExtension(r);return void 0===e.OraI18nUtils.numeringSystems[u]&&(u="latn"),void 0!==i&&void 0!==i.pattern?function(e,n,i,r,o,a,s){var l=X(r,o,a.pattern);return l.pattern=a.pattern,void 0!==e&&(l.isoStrFormat=e),void 0!==n&&(l.timeZone=n),void 0!==i&&(l.dst=i),l["two-digit-year-start"]=t(a),l.lenientParse=s("lenientParse","string",["none","full"],"full"),l}(a,o,s,r,u,i,l):void 0!==i?re(i,l,o,s,a,n,u,r):function(e,t,n){return{calendar:"gregorian",locale:t,numberingSystem:n,year:"numeric",month:"numeric",day:"numeric",patternFromOptions:p({year:"numeric",month:"numeric",day:"numeric"},e,t,"OraDateTimeConverter.resolvedOptions"),lenientParse:"full"}}(n,r,u)}function ae(){return{format:function(t,n,i,r){var o;if("number"==typeof t)o=e.OraI18nUtils.dateToLocalIso(new Date(t));else{if("string"!=typeof t)return null;if(""===(o=e.OraI18nUtils.trim(t)))return null}(arguments.length<=2||void 0===i)&&(i={year:"numeric",month:"numeric",day:"numeric"});var a=v(n,i,e.OraI18nUtils.getISOStrFormatInfo(o),r),s=e.OraI18nUtils.getNumberingExtension(r);if(void 0===e.OraI18nUtils.numeringSystems[s]&&(s="latn"),"latn"!==s){for(var l=[],u=0;u="0"&&a[u]<="9"?l.push(e.OraI18nUtils.numeringSystems[s][a[u]]):l.push(a[u]);return l.join("")}return a},formatRelative:function(e,t,n){return R(e,t,n)},parse:function(e,t,n,i){return ie(e,t,n,i)},resolvedOptions:function(e,t,n){return oe(e,t,n)},calculateWeek:function(t){var n,i=e.OraI18nUtils.isoToLocalDate(t),r=new Date(i.getTime());return r.setDate(r.getDate()+4-(r.getDay()||7)),n=r.getTime(),r.setMonth(0),r.setDate(1),Math.floor(Math.round((n-r)/864e5)/7)+1},getAvailableTimeZones:function(t){return function(t){function n(n,i,r,o){var a=n.split("/"),s=a[0],l=a[1],u="",c="",p={},d=o[s];void 0!==d&&void 0!==(u=d[l])&&void 0!==(u=u.exemplarCity)&&(u=" "+u);var m=s+"/"+l,g=t.supplemental.metazones,_=h(f,m,g);void 0!==r&&(_=r[_]),null!=_&&void 0!==_.long&&(void 0===(c=_.long.generic)&&(c=_.long.standard),void 0!==c&&(c=" - "+c));var v="("+Ue+")";return 0!==i&&(v="("+(v=e.OraI18nUtils.getTimeStringFromOffset(Ue,i,!0,!0))+")"),void 0===u||void 0===c?null:(p.offsetLocName=v+u+c,p.locName=u+c,p)}function i(e){for(var i,o=Object.keys(e),a=0;a0;){t-=1,e*=60;var r=Math.floor(e+y);n+=v[r],e-=r,r&&(i+=n,n="")}return i}(i-r,Math.min(t,10));r>0;)n=v[r%60]+n,r=Math.floor(r/60);return e<0&&(n="-"+n), n&&o?n+o:(o||"-"!==n)&&(n||o)||"0"}function t(e){return e>96?e-87:e>64?e-29:e-48}function n(e){var n=0,i=e.split("."),r=i[0],o=i[1]||"",a=1,s=0,l=1;for(45===e.charCodeAt(0)&&(n=1,l=-1);n=0?s:-s)_)return;a=e(a,1),i=t.replace("/etc//i","").toUpperCase()+"|"+a+"|0|"}void 0!==i&&this._set(o(t,i))}function l(e){return(e||"").toLowerCase().replace(/\//g,"_")}function u(e,t){var n=l(e);return void 0===d[n]&&function(e,t){var n=new s(e,t),i=l(n.name);d[i]=n}(e,t),d[l(e)]||null}function c(){return{getZone:function(e,t){var n=t.supplemental.timeZoneData;void 0===n&&function(){var e=new Error("TimeZone data is missing. Please call require 'ojs/ojtimezonedata' in order to load the TimeZone data.");throw e.errorInfo={errorCode:"missingTimeZoneData"},e}();var i=u(e,n);if(!i){var r=n.links[e];r&&(i=u(r,n))}return i||function(e){var t=new Error("invalid timeZone ID: "+e),n={errorCode:"invalidTimeZoneID",parameterMap:{timeZoneID:e}};throw t.errorInfo=n,t}(e),i}}}var p,d={},h=/^Etc\/GMT/i,m=6e4,g=60*m,f=-840,_=720,v="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",y=1e-6;return s.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets},parse:function(e,t,n,i){for(var r=this.offsets,o=this.untils,s=o.length-1,l=0;l=d&&ec){if(!0!==i)return l+1;a()}if(e>=h&&e=0&&e=d&&r<=h||d>h)return n}else if(null!==d){if(r>=d)return n}else if(null===h||r<=h)return n;throw null!==h&&null!==d&&d===h?(v={value:t,num:g},_=u?y.applyParameters(u,v):y.getTranslatedString("oj-validator.range.number.messageDetail.exact",v),r>h?f=c||y.getTranslatedString("oj-validator.range.number.messageSummary.rangeOverflow"):rh?(v={value:t,max:g},f=c||y.getTranslatedString("oj-validator.range.number.messageSummary.rangeOverflow"),_=s?y.applyParameters(s,v):y.getTranslatedString("oj-validator.range.number.messageDetail.rangeOverflow",v)):(v={value:t,min:m},f=p||y.getTranslatedString("oj-validator.range.number.messageSummary.rangeUnderflow"),_=l?y.applyParameters(l,v):y.getTranslatedString("oj-validator.range.number.messageDetail.rangeUnderflow",v)),new e.ValidatorError(f,_)},e.NumberRangeValidator.prototype.getHint=function(){var e=null,t=this._hint,n=t.inRange,r=t.exact,o=t.min,a=t.max,s=i,l=void 0!==this._min?parseFloat(this._min):null,u=void 0!==this._max?parseFloat(this._max):null,c=l&&this._converter?this._converter.format(l):l,p=u&&this._converter?this._converter.format(u):u;return null!==l&&null!==u?e=l!==u?n?s.applyParameters(n,{min:c,max:p}):s.getTranslatedString("oj-validator.range.number.hint.inRange",{min:c,max:p}):r?s.applyParameters(r,{num:c}):s.getTranslatedString("oj-validator.range.number.hint.exact",{num:c}):null!==l?e=o?s.applyParameters(o,{min:c}):s.getTranslatedString("oj-validator.range.number.hint.min",{min:c}):null!==u&&(e=a?s.applyParameters(a,{max:p}):s.getTranslatedString("oj-validator.range.number.hint.max",{max:p})),e},e.NumberConverterFactory=function(){return{createConverter:function(t){return function(t){return new e.IntlNumberConverter(t)}(t)}}}(),a.Validation.__registerDefaultConverterFactory(e.ConverterFactory.CONVERTER_TYPE_NUMBER,e.NumberConverterFactory),e.NumberRangeValidatorFactory=function(){return{createValidator:function(t){return function(t){return new e.NumberRangeValidator(t)}(t)}}}(),a.Validation.__registerDefaultValidatorFactory(e.ValidatorFactory.VALIDATOR_TYPE_NUMBERRANGE,e.NumberRangeValidatorFactory),e.IntlNumberConverter=function(e){this.Init(e)},e.Object.createSubclass(e.IntlNumberConverter,e.NumberConverter,"oj.IntlNumberConverter"),e.IntlNumberConverter.prototype.Init=function(t){e.IntlNumberConverter.superclass.Init.call(this,t)},e.IntlNumberConverter.prototype._getWrapped=function(){return this._wrapped||(this._wrapped=l.getInstance()),this._wrapped},e.IntlNumberConverter.prototype.format=function(t){if(null==t||"string"==typeof t&&0===e.StringUtils.trim(""+t).length||"number"==typeof t&&isNaN(t))return a.IntlConverterUtils.__getNullFormattedValue();var r,l=n.getLocale(),u=o.__getBundle(),c=this.resolvedOptions();try{r=this._getWrapped().format(t,u,c,l)}catch(e){throw this._processConverterError(e,t)}if("NaN"===r){var p=i.getTranslatedString("oj-converter.number.invalidNumberFormat.summary",{value:t}),d=i.getTranslatedString("oj-converter.number.invalidNumberFormat.detail");s.error(p+" "+d)}return r},e.IntlNumberConverter.prototype.getHint=function(){return null},e.IntlNumberConverter.prototype.getOptions=function(){return e.IntlNumberConverter.superclass.getOptions.call(this)},e.IntlNumberConverter.prototype.parse=function(t){var i,r,a;if(null==t||""===t)return null;i=n.getLocale(),r=o.__getBundle(),a=this.resolvedOptions();try{return this._getWrapped().parse(e.StringUtils.trim(t),r,a,i)}catch(e){throw this._processConverterError(e,t)}},e.IntlNumberConverter.prototype.resolvedOptions=function(){var t,i=n.getLocale();if(i!==this._locale||!this._resolvedOptions){t=e.LocaleData.__getBundle();try{if(!t)return s.error("locale bundle for the current locale %s is unavailable",i),{};this._resolvedOptions=this._getWrapped().resolvedOptions(t,this.getOptions(),i),this._locale=i}catch(e){throw this._processConverterError(e)}}return this._resolvedOptions},e.IntlNumberConverter.prototype._processConverterError=function(t,n){var r,o,s,l,u=t.errorInfo;if(u){var c=u.errorCode,p=u.parameterMap;switch(e.Assert.assertObject(p),c){case"optionTypesMismatch":case"optionTypeInvalid":case"optionOutOfRange":case"optionValueInvalid":r=a.IntlConverterUtils.__getConverterOptionError(c,p);break;case"decimalFormatMismatch":s="oj-converter.number.decimalFormatMismatch.summary";break;case"currencyFormatMismatch":s="oj-converter.number.currencyFormatMismatch.summary";break;case"percentFormatMismatch":s="oj-converter.number.percentFormatMismatch.summary";break;case"unsupportedParseFormat":l=i.getTranslatedString("oj-converter.number.shortLongUnsupportedParse.summary"),o=i.getTranslatedString("oj-converter.number.shortLongUnsupportedParse.detail"),r=new e.ConverterError(l,o)}s&&(l=i.getTranslatedString(s,{value:n||p.value,format:p.format}),o=i.getTranslatedString("oj-converter.hint.detail",{exampleValue:this._getHintValue()}),r=new e.ConverterError(l,o))}return r||(l=t.message,o=t.message,r=new e.ConverterError(l,o)),r},e.IntlNumberConverter.prototype._getHintValue=function(){var t="";try{t=this.format(12345.98765)}catch(n){n instanceof e.ConverterError&&(t="",s.error("error retrieving hint value in format"))}return t};var l=function(){function t(e,t,n){var i;for(i=e.length;ii)&&function(e,t,n,i){var r=new RangeError(e+" is out of range. Enter a value between "+t+" and "+n+" for "+i),o={errorCode:"numberOptionOutOfRange",parameterMap:{value:e,minValue:t,maxValue:n,propertyName:i}};throw r.errorInfo=o,r}(o,n,i,t),Math.floor(o)):r}function i(e){var t=e||"en-US",n=t.indexOf("-u-nu-"),i="latn";return-1!==n&&(i=t.substr(n+6,4)),i}function r(t,r,a,l){var u,c=r,p=e.OraI18nUtils.getLocaleElementsMainNode(t),d=function(e,t){if(void 0===t)return"latn";var n=i(t),r="symbols-numberSystem-"+n;return void 0===e.numbers[r]&&(n="latn"),n}(p,l);c.numberingSystemKey=d,c.numberingSystem="symbols-numberSystem-"+d;var h=a.lenientParse;if(c.lenientParse=h||"full",c.style=a.style,void 0!==a.pattern&&a.pattern.length>0)u=a.pattern;else{var m;switch(c.style){case"decimal":m="decimalFormats-numberSystem-";break;case"currency":m="currencyFormats-numberSystem-";break;case"percent":m="percentFormats-numberSystem-";break;default:m="decimalFormats-numberSystem-"}m+=c.numberingSystemKey,u=p.numbers[m].standard;var _=a.decimalFormat;void 0===_&&(_=a.currencyFormat),void 0===_||"decimal"!==c.style&&"currency"!==c.style||(c.shortDecimalFormat=p.numbers["decimalFormats-numberSystem-latn"][_].decimalFormat)}var v=p.numbers[c.numberingSystem].decimal,y=p.numbers[c.numberingSystem].group,E=a.separators;if(void 0!==E){c.separators=E;var T=E.decimal,I=E.group;void 0!==T&&""!==T&&(v=E.decimal),void 0!==I&&(y=E.group)}var A=e.OraI18nUtils.getLocaleElementsMainNodeKey(t),P=A.split("-")[0];if(c.plurals=t.supplemental.plurals,c.lang=P,c.pat=u,c.minusSign=p.numbers[c.numberingSystem].minusSign,c.decimalSeparator=v,c.exponential=p.numbers[c.numberingSystem].exponential,c.groupingSeparator=y,c.currencyDisplay=a.currencyDisplay,void 0!==a.currency&&(c.currencyCode=a.currency.toUpperCase()),void 0!==a.unit&&(c.unit=a.unit.toLowerCase()),function(e,t,n,i){for(var r,a=i,s=!1,l=!1,u=0,c=0,p=!0,d=1;d>=0&&c0?I+=1:E+=1,A>=0&&v<0&&(A+=1);else if(U===x)I>0&&g(t),T+=1,A>=0&&v<0&&(A+=1);else if(U===k)P=A,A=0;else{if(U!==B){if(V=M,j=W,X=t.substr(V,j.length),null!==new RegExp(j,"i").exec(X)){for(l&&g(t),l=!0,r=0,M+=W.length;M=0&&g(t),v=E+T+I}}}if(0===T&&E>0&&v>=0){var L=v;0===L&&(L+=1),I=E-L,E=L-1,T=1}if((v<0&&I>0||v>=0&&(vE+T)||0===A||h)&&g(t),1===d){O=S=m,C=b=_;var R=E+T+I,w=v>=0?v:R;a.minimumIntegerDigits=w-E,a.maximumIntegerDigits=l?E+a.minimumIntegerDigits:K,a.maximumFractionDigits=v>=0?R-v:0,a.minimumFractionDigits=v>=0?E+T-v:0,a.groupingSize=A>0?A:0,a.groupingSize0=P}else O=m,C=_,s=!0}var V,j,X;0===t.length&&(S="",b="",a.minimumIntegerDigits=0,a.maximumIntegerDigits=K,a.minimumFractionDigits=0,a.maximumFractionDigits=$),a.useExponentialNotation=l,a.minExponentDigits=r,(!s||0===O.localeCompare(S)&&0===C.localeCompare(b))&&("currency"===a.style&&"ar"===a.lang?(C=b+"'‏-",O=S):(C=b,O="'-"+S)),!function(e,t){var n=t,i={};null!==S&&(n.positivePrefix=f(S,e,n,i)),null!==b&&(n.positiveSuffix=f(b,e,n,i)),null!==O&&(n.negativePrefix=f(O,e,n,i)),null!==C&&(n.negativeSuffix=f(C,e,n,i)),void 0!==i.name&&(n.positiveSuffix=" "+i.name,n.positivePrefix="","ar"===n.lang?(n.negativeSuffix=e.numbers[n.numberingSystem].minusSign+" "+i.name,n.negativePrefix=""):(n.negativeSuffix=" "+i.name,n.negativePrefix=e.numbers[n.numberingSystem].minusSign))}(n,a)}(a,u,p,c),void 0===a.pattern&&(c.minimumIntegerDigits=n(a,"minimumIntegerDigits",1,21,c.minimumIntegerDigits),void 0!==a.maximumFractionDigits&&(c.maximumFractionDigits=n(a,"maximumFractionDigits",0,20,c.maximumFractionDigits),c.maximumFractionDigits1?parseInt(l[1],10):0,p=(l=(s=l[0]).split(".")).length>1?l[1]:"",d=Math.min(i.maximumFractionDigits,p.length-c);l.length>1&&p.length>c&&(e=u(e,d,n.roundingMode||"DEFAULT")),c=(l=(s=Math.abs(e)+"").split(/e/i)).length>1?parseInt(l[1],10):0,s=(l=(s=l[0]).split("."))[0],p=l.length>1?l[1]:"",c>0?(s+=(p=t(p,c,!1)).slice(0,c),p=p.substr(c)):c<0&&(p=(s=t(s,(c=-c)+1,!0)).slice(-c,s.length)+p,s=s.slice(0,-c)),d>0&&p.length>0?(p=p.length>d?p.slice(0,d):t(p,d,!1),!0===M.test(p)&&(p=p.slice(0,i.minimumFractionDigits)),p=a+p):p=i.minimumFractionDigits>0?a:"",p=t(p,a.length+i.minimumFractionDigits,!1);var h=i.groupingSeparator,m="";!1===n.useGrouping&&void 0===n.pattern&&(h="");var g=(s=t(s,i.minimumIntegerDigits,!0)).length-1;for(p=p.length>1?p:"";g>=0;){if(0===r||r>g)return s.slice(0,g+1)+(m.length?h+m+p:p);m=s.slice(g-r+1,g+1)+(m.length?h+m:""),g-=r,o>0&&(r=o)}return s.slice(0,g+1)+h+m+p}function u(e,t,n){var i,r=n,o=e.toString().split(".");if(void 0===o[1])return Math.abs(e);if("DEFAULT"!==n){if("HALF_UP"===n||"HALF_EVEN"===n||"HALF_DOWN"===n){if("5"===o[1][t]){var a=o[1].substr(t);(a=parseInt(a,10))>5&&(r="HALF_UP")}else r="DEFAULT";e=Math.abs(e)}i=function(e,t,n){if(0===t)return Math[n](e);var i=e.toString().split("e"),r=i[0],o=i[1],a=r+"e"+(o?parseInt(o,10)-t:-t),s=parseFloat(a),l=Math[n](s);return i=l.toString().split("e"),r=i[0],o=i[1],a=r+"e"+(o?parseInt(o,10)+t:t),s=parseFloat(a)}(e,-t,r=function(e,t,n,i){var r=L[t];if("HALF_EVEN"===t){var o;if(0===n){var a=e[0].length;o=parseInt(e[0][a-1],10)}else o=parseInt(e[1][n-1],10);r=o%2==0?L.HALF_DOWN:L.HALF_UP}else"UP"===t&&i<0?r=L.DOWN:"DOWN"===t&&i<0&&(r=L.UP);return r}(o,r,t,e))}else{var s=Math.pow(10,t);if(i=Math.round(e*s)/s,!isFinite(i))return e}return Math.abs(i)}function c(n,r,o,a,s){var u=e.OraI18nUtils.getLocaleElementsMainNode(o);if(!isFinite(n))return n===1/0?u.numbers[a.numberingSystem].infinity:n===-1/0?u.numbers[a.numberingSystem].infinity:"NaN";var c=n;!0===a.isPercent||"percent"===a.style?c*=100:!0===a.isPerMill&&(c*=1e3);var p=r.decimalFormat;void 0===p&&(p=r.currencyFormat);var d=a.style;c="decimal"!==d&&"currency"!==d||void 0===p||"standard"===p?!0===a.useExponentialNotation?function(e,n){var i=e+"",r=0,o=i.split(/e/i),a=o[0];D.lastIndex=0;var s=D.exec(a);null!==s?(r=s[1].length-1,a=s[2]):a=a.replace(".","");var l=o.length>1?parseInt(o[1],10):0,u=parseInt(a,10),c=n.minimumIntegerDigits+n.maximumFractionDigits;if(a.length>c){c-=a.length;var p=Math.pow(10,c);u=Math.round(u*p)}var d=n.minimumIntegerDigits+n.minimumFractionDigits;u=t(u+="",d,!1),l-=-1!==i.indexOf(".")?n.minimumIntegerDigits-i.indexOf(".")+r:d-a.length-n.minimumFractionDigits;var h=Math.abs(l);h=t(h+"",n.minExponentDigits,!0),l<0&&(h=n.minusSign+h);var m=u.slice(0,n.minimumIntegerDigits);return m+=u.slice(n.minimumIntegerDigits).length>0?n.decimalSeparator+u.slice(n.minimumIntegerDigits)+n.exponential+h:n.exponential+h}(c,a):"unit"===d?function(t,n,i,r){var o,a,s=Math.abs(t);s>=j?(o="digital-tera",a=s/j):s>=V?(o="digital-giga",a=s/V):s>=w?(o="digital-mega",a=s/w):s>=R?(o="digital-kilo",a=s/R):(o="digital-",a=s),o+=i.unit;var u=i.lang,c=i.plurals[u](a);c="unitPattern-count-"+c,t<0&&(a=-a);var p=l(a,n,i),d=r.units.narrow[o][c];return p=e.OraI18nUtils.formatString(d,[p])}(c,r,a,u):l(c,r,a):function(e,t,n){var i,r,o,a=Math.abs(e),s=function(e){for(var t=Object.keys(U),n=0;n="0"&&h[g]<="9"?f.push(e.OraI18nUtils.numeringSystems[m][h[g]]):f.push(h[g]);return f.join("")}return h}function p(t,n){var i=n.groupingSeparator,r=n.decimalSeparator,o=n.minusSign,a="",s="",l=e.OraI18nUtils.toUpper(n.exponential),u=e.OraI18nUtils.toUpper(t),c=i;u=(u=u.split(l).join("E")).split(c).join("");var p=c.replace(/\u00A0/g," ");c!==p&&(u=u.split(p).join("")),"."===(u=u.split(r).join(".")).charAt(0)&&(u=u.substr(1),s="."),u=u.replace(o,"-");var d=s+A.exec(u)[2];return e.OraI18nUtils.startsWith(d,"-")?(d=d.substr("-".length),a="-"):e.OraI18nUtils.startsWith(u,"+")&&(d=d.substr("+".length),a="+"),[a,d]}function d(t,n,i,r){return isNaN(t)&&h(i.style,i,r),!0===i.isPercent||"percent"===i.style?t/=100:!0===i.isPerMill&&(t/=1e3),e.OraI18nUtils.getGetOption(n,"OraNumberConverter.parse")("roundDuringParse","boolean",[!0,!1],!1)&&(t=function(e,t,n){var i=t.maximumFractionDigits,r=e<0,o=n.roundingMode||"DEFAULT",a=u(e,i,o);return r?-a:a}(t,i,n)),t}function h(e,t,n){var i,r="Unparsable number "+n+" The expected number pattern is "+t.pat;switch(e){case"decimal":i="decimalFormatMismatch";break;case"currency":i="currencyFormatMismatch";break;case"percent":i="percentFormatMismatch"}var o=new Error(r),a={errorCode:i,parameterMap:{value:n,format:t.pat}};throw o.errorInfo=a,o}function m(t,n,o,a){var s=e.OraI18nUtils.getLocaleElementsMainNode(n),l={},u=function(t,n){var r,o=i(n);if(void 0===e.OraI18nUtils.numeringSystems[o])return t;var a=[];for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,r,i),t.apply(this,arguments)}}function l(e,t,n){var i,r=t.prototype;i=e.prototype=Object.create(r),i.constructor=e,i._super=r,n&&pe(i,n)}function u(e,t){return function(){return e.apply(t,arguments)}}function c(e,t){return typeof e==me?e.apply(t?t[0]||i:i,t):e}function p(e,t){return e===i?t:e}function d(e,t,n){a(f(t),function(t){e.addEventListener(t,n,!1)})}function h(e,t,n){a(f(t),function(t){e.removeEventListener(t,n,!1)})}function m(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function g(e,t){return e.indexOf(t)>-1}function f(e){return e.trim().split(/\s+/g)}function _(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;in[t]}):i.sort()),i}function E(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=D(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=M(i);t.timeStamp=_e(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=R(s,l),t.distance=L(s,l),A(n,t),t.offsetDirection=N(t.deltaX,t.deltaY);var u=U(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=fe(u.x)>fe(u.y)?u.x:u.y,t.scale=a?V(a.pointers,i):1,t.rotation=a?w(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,P(n,t);var c=e.element;m(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function A(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==Me&&o.eventType!==Ne||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}function P(e,t){var n,r,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(t.eventType!=Le&&(l>De||s.velocity===i)){var u=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,p=U(l,u,c);r=p.x,o=p.y,n=fe(p.x)>fe(p.y)?p.x:p.y,a=N(u,c),e.lastInterval=t}else n=s.velocity,r=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}function D(e){for(var t=[],n=0;nr;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:ge(n/t),y:ge(i/t)}}function U(e,t,n){return{x:t/e||0,y:n/e||0}}function N(e,t){return e===t?Re:fe(e)>=fe(t)?0>e?we:Ve:0>t?je:xe}function L(e,t,n){n||(n=He);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function R(e,t,n){n||(n=He);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function w(e,t){return R(t[1],t[0],Ge)+R(e[1],e[0],Ge)}function V(e,t){return L(t[0],t[1],Ge)/L(e[0],e[1],Ge)}function j(){this.evEl=We,this.evWin=Ze,this.pressed=!1,O.apply(this,arguments)}function x(){this.evEl=Ke,this.evWin=$e,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function k(){this.evTarget=Je,this.evWin=Qe,this.started=!1,O.apply(this,arguments)}function B(e,t){var n=v(e.touches),i=v(e.changedTouches);return t&(Ne|Le)&&(n=y(n.concat(i),"identifier",!0)),[n,i]}function F(){this.evTarget=tt,this.targetIds={},O.apply(this,arguments)}function H(e,t){var n=v(e.touches),i=this.targetIds;if(t&(Me|Ue)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=v(e.changedTouches),s=[],l=this.target;if(o=n.filter(function(e){return m(e.target,l)}),t===Me)for(r=0;r-1&&i.splice(e,1)};setTimeout(r,nt)}}function Z(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i=o&&it>=a)return!0}return!1}function z(e,t){this.manager=e,this.set(t)}function q(e){if(g(e,ut))return ut;var t=g(e,ct),n=g(e,pt);return t&&n?ut:t||n?t?ct:pt:g(e,lt)?lt:st}function K(){if(!ot)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){t[i]=!n||e.CSS.supports("touch-action",i)}),t}function $(e){this.options=pe({},this.defaults,e||{}),this.id=S(),this.manager=null,this.options.enable=p(this.options.enable,!0),this.state=ht,this.simultaneous={},this.requireFail=[]}function X(e){return e&vt?"cancel":e&ft?"end":e>?"move":e&mt?"start":""}function J(e){return e==xe?"down":e==je?"up":e==we?"left":e==Ve?"right":""}function Q(e,t){var n=t.manager;return n?n.get(e):e}function ee(){$.apply(this,arguments)}function te(){ee.apply(this,arguments),this.pX=null,this.pY=null}function ne(){ee.apply(this,arguments)}function ie(){$.apply(this,arguments),this._timer=null,this._input=null}function re(){ee.apply(this,arguments)}function oe(){ee.apply(this,arguments)}function ae(){$.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function se(e,t){return t=t||{},t.recognizers=p(t.recognizers,se.defaults.preset),new le(e,t)}function le(e,t){this.options=pe({},se.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=C(this),this.touchAction=new z(this,this.options.touchAction),ue(this,!0),a(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ue(e,t){var n=e.element;if(n.style){var i;a(e.options.cssProps,function(r,o){i=E(n.style,o),t?(e.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=e.oldCssProps[i]||""}),t||(e.oldCssProps={})}}function ce(e,n){var i=t.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}var pe,de=["","webkit","Moz","MS","ms","o"],he=t.createElement("div"),me="function",ge=Math.round,fe=Math.abs,_e=Date.now;pe="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;ns&&(t.push(e),s=t.length-1):r&(Ne|Le)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var Xe={touchstart:Me,touchmove:Ue,touchend:Ne,touchcancel:Le},Je="touchstart",Qe="touchstart touchmove touchend touchcancel";l(k,O,{handler:function(e){var t=Xe[e.type];if(t===Me&&(this.started=!0),this.started){var n=B.call(this,e,t);t&(Ne|Le)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Te,srcEvent:e})}}});var et={touchstart:Me,touchmove:Ue,touchend:Ne,touchcancel:Le},tt="touchstart touchmove touchend touchcancel";l(F,O,{handler:function(e){var t=et[e.type],n=H.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Te,srcEvent:e})}});var nt=2500,it=25;l(G,O,{handler:function(e,t,n){var i=n.pointerType==Te,r=n.pointerType==Ae;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Y.call(this,t,n);else if(r&&Z.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var rt=E(he.style,"touchAction"),ot=rt!==i,at="compute",st="auto",lt="manipulation",ut="none",ct="pan-x",pt="pan-y",dt=K();z.prototype={set:function(e){e==at&&(e=this.compute()),ot&&this.manager.element.style&&dt[e]&&(this.manager.element.style[rt]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return a(this.manager.recognizers,function(t){c(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),q(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var i=this.actions,r=g(i,ut)&&!dt[ut],o=g(i,pt)&&!dt[pt],a=g(i,ct)&&!dt[ct];if(r){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}return a&&o?void 0:r||o&&n&ke||a&&n&Be?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ht=1,mt=2,gt=4,ft=8,_t=ft,vt=16,yt=32;$.prototype={defaults:{},set:function(e){return pe(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(o(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=Q(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return o(e,"dropRecognizeWith",this)?this:(e=Q(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(o(e,"requireFailure",this))return this;var t=this.requireFail;return e=Q(e,this),-1===_(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(o(e,"dropRequireFailure",this))return this;e=Q(e,this);var t=_(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;ft>i&&t(n.options.event+X(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),i>=ft&&t(n.options.event+X(i))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=yt)},canEmit:function(){for(var e=0;eo?we:Ve,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?Re:0>a?je:xe,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return ee.prototype.attrTest.call(this,e)&&(this.state&mt||!(this.state&mt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=J(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),l(ne,ee,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ut]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&mt)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),l(ie,$,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[st]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distancet.time;if(this._input=e,!i||!n||e.eventType&(Ne|Le)&&!o)this.reset();else if(e.eventType&Me)this.reset(),this._timer=r(function(){this.state=_t,this.tryEmit()},t.time,this);else if(e.eventType&Ne)return _t;return yt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===_t&&(e&&e.eventType&Ne?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=_e(),this.manager.emit(this.options.event,this._input)))}}),l(re,ee,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ut]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&mt)}}),l(oe,ee,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ke|Be,pointers:1},getTouchAction:function(){return te.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(ke|Be)?t=e.overallVelocity:n&ke?t=e.overallVelocityX:n&Be&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&fe(t)>this.options.velocity&&e.eventType&Ne},emit:function(e){var t=J(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),l(ae,$,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[lt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},i=t.split("."),t=i.shift(),i.length){for(r=a[t]=e.widget.extend({},this.options[t]),o=0;o0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(u)?(s=!n.disabled,s&&(l=e(n).closest("fieldset")[0],l&&(s=!l.disabled))):s="a"===u?n.href||i:i,s&&e(n).is(":visible")&&t(e(n)))},e.extend(e.expr[":"],{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable}),!function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/tabbable",["jquery","./version","./focusable"],e):e(jQuery)}(function(e){return e.extend(e.expr[":"],{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||n>=0)&&e.ui.focusable(t,i)}})}),function(){"use strict";function e(e){var t=A.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!t&&e}function t(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function n(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function i(e,t,r){r=r?r:new Set;for(var o=e;o;){if(o.nodeType===Node.ELEMENT_NODE){var a=o;t(a);var s=a.localName;if("link"===s&&"import"===a.getAttribute("rel")){if(o=a.import,o instanceof Node&&!r.has(o))for(r.add(o),o=o.firstChild;o;o=o.nextSibling)i(o,t,r);o=n(e,a);continue}if("template"===s){o=n(e,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,t,r)}o=o.firstChild?o.firstChild:n(e,o)}}function r(e,t,n){e[t]=n}function o(){this.a=new Map,this.s=new Map,this.f=[],this.b=!1}function a(e,t,n){e.a.set(t,n),e.s.set(n.constructor,n)}function s(e,t){e.b=!0,e.f.push(t)}function l(e,t){e.b&&i(t,function(t){return u(e,t)})}function u(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n=0?n.push(s):(i[s]=t[s],r=!0)}r&&this.BatchedPropertySet(e,i);for(var l=0;l1)for(i.pop();i.length;){var r=i.join(".");t.hasAttribute(r)&&e.BaseCustomElementBridge.getInstance(t).throwError(t,"Cannot set overlapping attributes '"+n+"' and '"+r+"'."),i.pop()}},e.BaseCustomElementBridge.__GetPropertyMetadata=function(e,t){for(var n=t,i=e.split("."),r=0;r1&&r1&&!t[s]&&(o=r={});for(var l=0;l0?r:void 0}},e.BaseCustomElementBridge._registry={},e.BaseCustomElementBridge.DESC_KEY_CSS="css",e.BaseCustomElementBridge.DESC_KEY_META="metadata",e.BaseCustomElementBridge.DESC_KEY_PARSE_FUN="parseFunction",e.BaseCustomElementBridge.DESC_KEY_VIEW="view",e.BaseCustomElementBridge.DESC_KEY_VIEW_MODEL="viewModel",e.BaseCustomElementBridge._GLOBAL_PROPERTIES=["accesskey","autocapitalize","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","is","itemid","itemprop","itemref","itemscope","itemtype","lang","slot","spellcheck","style","tabindex","title","translate"],e.BaseCustomElementBridge._INSTANCE_KEY="_ojBridge",e.BaseCustomElementBridge.__DelayedPromise=function(){var e,t,n;this.getPromise=function(){return e||(e=new Promise(function(e,i){t=e,n=i})),e},this.rejectPromise=function(e){n&&n(e)},this.resolvePromise=function(e){t&&t(e)}}}),define("ojs/ojcomponentcore",["ojs/ojcore","ojs/ojtranslation","jquery","ojs/ojmessaging","ojs/ojlogger","jqueryui-amd/widget","jqueryui-amd/unique-id","jqueryui-amd/keycode","jqueryui-amd/focusable","jqueryui-amd/tabbable","ojs/ojcustomelement"],function(e,t,n,i,r){"use strict";function o(e,t){var i=function(){var e=n(this),i=e.data(_);if(null!=i)for(var r=0;r-1&&e.is("."+v))},e.Components.__getDefaultOptions=function(t){for(var n={},i=e.Components.getDefaultOptions(),r=t.length-1;r>=0;r--){var o=i[t[r]];void 0!==o&&(n=l(n,o,!0))}return n},e.Components.getComponentElementByNode=function(t){return function t(n,i){if(null==n)return null;var r=1===n.nodeType,o=e.Composite&&!i?e.Composite.getContainingComposite(n):null;if(o)return o;if(r&&n.hasAttribute("data-oj-internal"))return n.parentNode instanceof Element&&n.parentNode.hasAttribute("data-oj-surrogate-id")?(n=document.querySelector("[data-oj-popup-"+n.id+"-parent]"),t(n,i)):t(n.parentNode,i);if(p(n))return n;if(r&&n.classList.contains("oj-component")){if(c(n=n.querySelector(".oj-component-initnode:not([data-oj-internal])")||n))return n}else if(r&&n.hasAttribute("data-oj-containerid"))return n=document.getElementById(n.getAttribute("data-oj-containerid")),t(n,i);return t(n.parentNode,i)}(t,!!(arguments.length>1&&arguments[1]))},e.Components.getSubIdByNode=function(t,n){return e.Components.callComponentMethod(t,"getSubIdByNode",n)},e.Components.getNodeBySubId=function(t,n){return e.Components.callComponentMethod(t,"getNodeBySubId",n)},e.Components.getComponentOption=function(t,n){if(!p(t))throw new Error("node is not a component element");return u(t)?t.getProperty?t.getProperty.call(t,n):void 0:e.Components.__GetWidgetConstructor(t)("option",n)},e.Components.setComponentOption=function(t,n,i){if(!p(t))throw new Error("node is not a component element");u(t)?t.setProperty&&t.setProperty.call(t,n,i):e.Components.__GetWidgetConstructor(t)("option",n,i)},e.Components.callComponentMethod=function(t,i,r){if(!p(t))throw new Error("node is not a component element");return u(t)?t[i]?t[i].apply(t,[].slice.call(arguments,2)):void 0:e.Components.__GetWidgetConstructor(t).apply(n(t),[].slice.call(arguments,1))};var S,b={isDefaultPrevented:function(){return!1},preventDefault:function(){this.isDefaultPrevented=f},stopPropagation:function(){this.isPropagationStopped=f},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=f}};n.widget("oj.baseComponent",{options:{contextMenu:null,rootAttributes:null,optionChange:void 0,destroy:void 0},refresh:function(){this._propertyContext=null,this._SetupContextMenu()},_createWidget:function(e,t){e&&(this.OuterWrapper=e._wrapper),this._originalDefaults=this.options||{},this._constructorOptions=e||{},this._super(e,t),this._AfterCreateEvent()},_SetRootAttributes:function(){var e=this.options.rootAttributes;if(e){var t=this.widget();if(null==t)return;var i=e.class;i&&t.addClass(i);var r=e.style;if(r){var o=t.attr("style");o?t.attr("style",o+";"+r):t.attr("style",r)}delete(e=n.extend({},e)).class,delete e.style,t.attr(e),delete e.id;var a=Object.keys(e);if(a.length)throw new Error("Unsupported values passed to rootAttributes option: "+a.toString())}},_create:function(){this._SaveAttributes(this.element),this._InitOptions(this._originalDefaults,this._constructorOptions),delete this._originalDefaults,delete this._constructorOptions,this._ComponentCreate(),this._AfterCreate(),this._SetupResources(),this.element.addClass(v)},_InitOptions:function(e,t){this._setupDefaultOptions(e,t),this._initContextMenuOption(t)},_ComponentCreate:function(){var e,t,n;e=this.element,t=this.widgetName,(n=e.data(_))||(n=[],e.data(_,n)),n.indexOf(t)<0&&n.push(t),this.activeableEventNamespace=this.eventNamespace+"activeable",this.hoverableEventNamespace=this.eventNamespace+"hoverable"},_AfterCreate:function(){this._SetRootAttributes(),this.contextMenuEventNamespace=this.eventNamespace+"contextMenu",this.activeableEventNamespace=this.eventNamespace+"activeable",this.hoverableEventNamespace=this.eventNamespace+"hoverable"},_AfterCreateEvent:n.noop,_setOptionClasses:function(){},_setOptionDisabled:function(){},_classes:function(){return""},_removeClass:function(){return this},_addClass:function(){return this},_toggleClass:function(){return this},_SaveAttributes:function(e){},_SaveAllAttributes:function(e){var t=this;this._savedAttributes=[],n.each(e,function(e,i){var r={},o={element:i,attributes:r},a=i.attributes;t._savedAttributes.push(o),n.each(a,function(e,t){var n=t.name;r[n]={attr:t.value}})})},_GetSavedAttributes:function(e){var t=this._savedAttributes;if(void 0===t)return null;for(var n=e[0],i=0,r=t.length;i2?i=Array.prototype.slice.call(arguments,1):2===arguments.length&&("object"==typeof(i=arguments[1])||i instanceof Array||(i=[i]));var r=this.option("translations."+e);return null==r?e:t.applyParameters(r.toString(),i)},getNodeBySubId:function(e){return null!=e&&null!=e.subId||!this.element?null:this.element[0]},getSubIdByNode:function(e){return null},destroy:function(){if(this._IsCustomElement())throw new Error("destroy cannot be called on a custom element");this._trigger("destroy"),e.DomUtils.dispatchEvent(this.element[0],new CustomEvent("_ojDestroy")),this._ReleaseResources(),this._super(),this.element.removeClass(v),this.widget().removeClass("oj-disabled"),this._removeStateClasses(this.element),function(e,t){var n=e.data(_);if(n){var i=n.indexOf(t);i>=0&&(n.splice(i,1),0===n.length&&e.removeData(_))}}(this.element,this.widgetName),this._RestoreAttributes(),this._initialCmDomAttr?this.element.attr("contextmenu",this._initialCmDomAttr):this.element.removeAttr("contextmenu"),this._propertyContext=null},option:function(t,i){if(0===arguments.length)return n.widget.extend({},this.options);var o,a=arguments[0],s=a,l=null,u={};if("string"==typeof a){s={};var c=a.split(".");if(a=c.shift(),c.length){var p;l=c.join(".");try{arguments.length>1&&(this._settingNestedKey=l),p=n.widget.extend({},this.options[a]),s[a]=p}finally{this._settingNestedKey=null}for(o=0;o0&&(m?this._internalSetOptions(g,u):this._setOptions(g,u)),this},_internalSetOptions:function(e,t){for(var n=Object.keys(e),i=0;i0)return t[0]}else if(this.options.contextMenu)return n(this.options.contextMenu).first()[0];return null},_NotifyContextMenuGesture:function(e,t,n){this._OpenContextMenu(t,n)},_OpenContextMenu:function(t,i,r,o,a){var s=this._GetContextMenu();if(s||(s=this._contextMenuGestureInit&&n(this._contextMenuGestureInit).is(":visible")?this._contextMenuGestureInit:this._GetDefaultContextMenu()),s){var l={mouse:{my:"start top",at:"start bottom",of:t,collision:"flipfit"},touch:{my:"start>40 center",at:"start bottom",of:t,collision:"flipfit"},keyboard:{my:"start top",at:"start bottom",of:"launcher",collision:"flipfit"}},u={launcher:this.element,position:l[i]},c={initialFocus:"menu"},p=a?n.extend(u,r,c):n.extend(!0,u,r,c);if(s.__openingContextMenu=!0,"OJ-MENU"===s.tagName)s.open(t,p,o);else{var d=e.Components.__GetWidgetConstructor(s,"ojMenu");(d&&d("instance")).open(t,p,o);var h=function(e){e.preventDefault()};s.addEventListener("contextmenu",h),window.setTimeout(function(){s.removeEventListener("contextmenu",h)},50)}s.__openingContextMenu=!1}},_GetDefaultContextMenu:function(){return null},_removeStateClasses:function(e){e.removeClass("oj-hover oj-focus oj-focus-highlight oj-active"),e.find(".oj-hover").removeClass("oj-hover"),e.find(".oj-focus").removeClass("oj-focus"),e.find(".oj-focus-highlight").removeClass("oj-focus-highlight"),e.find(".oj-active").removeClass("oj-active")},_isRealMouseEvent:function(){return!e.DomUtils.recentTouchEnd()},_AddHoverable:function(e){var t;n.isPlainObject(e)?t=e.element:(t=e,e={});var i=e.afterToggle||n.noop;t.on("mouseenter"+this.hoverableEventNamespace,this._hoverStartHandler.bind(this,i)).on("mouseleave"+this.hoverableEventNamespace,this._hoverAndActiveEndHandler.bind(this,"oj-hover",i))},_RemoveHoverable:function(e){e&&e.off(this.hoverableEventNamespace)},_AddActiveable:function(t){var i;n.isPlainObject(t)?i=t.element:(i=t,t={});var r=t.afterToggle||n.noop;e.DomUtils.isTouchSupported()&&i.on("touchstart"+this.activeableEventNamespace,this._activeStartHandler.bind(this,r)).on("touchend"+this.activeableEventNamespace+" touchcancel"+this.activeableEventNamespace,this._hoverAndActiveEndHandler.bind(this,"oj-active",r)),i.on("mousedown"+this.activeableEventNamespace,this._activeStartHandler.bind(this,r)).on("mouseup"+this.activeableEventNamespace,this._hoverAndActiveEndHandler.bind(this,"oj-active",r)).on("mouseenter"+this.activeableEventNamespace,this._activeStartHandler.bind(this,r)).on("mouseleave"+this.activeableEventNamespace,this._hoverAndActiveEndHandler.bind(this,"oj-active",r))},_RemoveActiveable:function(e){e&&(e.off(this.activeableEventNamespace),S=null)},_activeStartHandler:function(e,t){var i=n(t.currentTarget);("mouseenter"!==t.type||this._isTargetInActiveElement(t.currentTarget))&&(i.hasClass("oj-disabled")||"touchstart"!==t.type&&!this._isRealMouseEvent(t)||(i.addClass("oj-active"),e(t.type),"mousedown"===t.type&&(S=t.currentTarget,this.document.one("mouseup",function(){S=null}))))},_hoverStartHandler:function(e,t){var i=n(t.currentTarget);!i.hasClass("oj-disabled")&&this._isRealMouseEvent(t)&&(i.addClass("oj-hover"),e(t.type))},_hoverAndActiveEndHandler:function(e,t,i){("oj-active"!==e||"mouseleave"!==i.type||this._isTargetInActiveElement(i.currentTarget))&&(n(i.currentTarget).removeClass(e),t(i.type))},_isTargetInActiveElement:function(e){return S===e||null!=S&&n.contains(S,e)},_hoverable:function(){},_focusable:function(t){n.isPlainObject(t)||(t={element:t}),t.component=this,e.DomUtils.makeFocusable(t)},_UnregisterChildNode:function(e){if(e){n(e).off(this.eventNamespace);var t=this.bindings;t&&(this.bindings=n(t.not(e)))}},_GetReadingDirection:function(){return e.DomUtils.getReadingDirection()},_NotifyAttached:function(){this._propertyContext=null},_NotifyDetached:function(){this._propertyContext=null,this._removeStateClasses(this.widget())},_NotifyInitShown:function(){},_NotifyShown:function(){},_NotifyHidden:function(){},_IsEffectivelyDisabled:function(){return!(!this.options.disabled&&!this._ancestorDisabled)},__setAncestorComponentDisabled:function(e){this._ancestorDisabled=e},_getTranslationSectionLoader:function(){var e=[],i=this,r=0;this._traverseWidgetHierarchy(function(o){var a=0===r?i._GetTranslationsSectionName():o.widgetFullName;r+=1;var s=t.getComponentTranslations(a);null==s||n.isEmptyObject(s)||e.push(a)});var o=e.length;return o>0?function(){if(1===o)return t.getComponentTranslations(e[0]);for(var i={},r=o-1;r>=0;r--)n.widget.extend(i,t.getComponentTranslations(e[r]));return i}:null},_getDynamicPropertyContext:function(){if(!this._propertyContext){var t={};this._propertyContext=t;var n=this.element[0];t.containers=function(t){for(var n=t,i=[];n;){var r=n.getAttribute,o=r?r.call(n,e.Components._OJ_CONTAINER_ATTR):null;null!=o&&i.push(o),n=n.parentNode}return i}(n),t.element=n,t.isCustomElement=this._IsCustomElement()}return this._propertyContext},_setupDefaultOptions:function(e,t){var i=this.options,r=this._getTranslationSectionLoader(),o=t.translations;null==r||void 0!==o&&!n.isPlainObject(o)||d(this,void 0,t.translations,i,"translations",r),this._loadGlobalDefaultOptions(e,t)},_loadGlobalDefaultOptions:function(t,i){var r=this.options,o=[];this._traverseWidgetHierarchy(function(e){o.push(e.widgetName)}),o.push("default");var a=e.Components.__getDefaultOptions(o);if(!n.isEmptyObject(a))for(var s=this,l=function(){return s._getDynamicPropertyContext()},u=Object.keys(a),c=0;c0&&(a[e.ComponentMessaging._DISPLAY_TYPE.NOTEWINDOW]=this._createMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.NOTEWINDOW,n)),r.length>0&&(a[e.ComponentMessaging._DISPLAY_TYPE.PLACEHOLDER]=this._createMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.PLACEHOLDER,r)),o.length>0&&(a[e.ComponentMessaging._DISPLAY_TYPE.INLINE]=this._createMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.INLINE,o)),a[e.ComponentMessaging._DISPLAY_TYPE.NONE]=this._createMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.NONE,i),this._strategies=a},e.ComponentMessaging.prototype._reactivate=function(){var t,i=this._getResolvedMessagingDisplayOptions(),r=this;n.each(i,function(n,i){n+="",t=r._strategies[n],i&&i.length>0?t?t&&t.reactivate(i):(t=r._createMessagingStrategy(n,i),r._strategies[n]=t,t.activate(r)):t&&e.ComponentMessaging._DISPLAY_TYPE.NONE!==n&&(t.deactivate(),delete r._strategies[n])})},e.MessagingStrategy=function(e){this.Init(e)},e.Object.createSubclass(e.MessagingStrategy,e.Object,"oj.MessagingStrategy"),e.MessagingStrategy.prototype.Init=function(t){e.Assert.assertArray(t),e.MessagingStrategy.superclass.Init.call(this),this._displayOptions=t},e.MessagingStrategy.prototype.activate=function(e){this._componentMessaging=e},e.MessagingStrategy.prototype.deactivate=function(){},e.MessagingStrategy.prototype.close=function(){},e.MessagingStrategy.prototype.reactivate=function(e){this.Init(e)},e.MessagingStrategy.prototype.shouldUpdate=function(e){return!0},e.MessagingStrategy.prototype.update=function(){},e.MessagingStrategy.prototype.GetLauncher=function(){return this._componentMessaging._getLauncher()},e.MessagingStrategy.prototype.GetContentElement=function(){return this._componentMessaging._getContentElement()},e.MessagingStrategy.prototype.GetComponent=function(){return this._componentMessaging._getComponent()},e.MessagingStrategy.prototype.GetMessages=function(){return this.GetValidityState().getMessages()},e.MessagingStrategy.prototype.GetMaxSeverity=function(){return this.GetValidityState().getMaxSeverity()},e.MessagingStrategy.prototype.GetConverterHint=function(){var e=[],t=this._getMessagingContent(),n=t&&t.converterHint;return n&&e.push(n),e},e.MessagingStrategy.prototype.GetValidatorHints=function(){var e=[],t=this._getMessagingContent(),i=t&&t.validatorHint||[];return n.each(i,function(t,n){e.push(n)}),e},e.MessagingStrategy.prototype.GetTitle=function(){var e=this._getMessagingContent();return e&&e.title||""},e.MessagingStrategy.prototype.GetValidityState=function(){var e=this._getMessagingContent();return e&&e.validityState||null},e.MessagingStrategy.prototype.HasMessages=function(){var e=this.GetMessages();return!!(e&&e.length>0)},e.MessagingStrategy.prototype.ShowMessages=function(){return-1!==this._displayOptions.indexOf("messages")},e.MessagingStrategy.prototype.ShowConverterHint=function(){return-1!==this._displayOptions.indexOf("converterHint")},e.MessagingStrategy.prototype.ShowValidatorHint=function(){return-1!==this._displayOptions.indexOf("validatorHint")},e.MessagingStrategy.prototype.ShowTitle=function(){return-1!==this._displayOptions.indexOf("title")||-1!==this._displayOptions.indexOf("helpInstruction")},e.MessagingStrategy.prototype.IsInvalid=function(){return this.GetValidityState().isInvalid()},e.MessagingStrategy.prototype._getMessagingContent=function(){return this._componentMessaging?this._componentMessaging._getMessagingContent():{}},e.DefaultMessagingStrategy=function(e){this.Init(e)},e.ComponentMessaging.registerMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.NONE,e.DefaultMessagingStrategy),e.DefaultMessagingStrategy._SELECTOR_STATE_INVALID="oj-invalid",e.DefaultMessagingStrategy._SELECTOR_STATE_WARNING="oj-warning",e.Object.createSubclass(e.DefaultMessagingStrategy,e.MessagingStrategy,"oj.DefaultMessagingStrategy"),e.DefaultMessagingStrategy.prototype.update=function(){e.DefaultMessagingStrategy.superclass.update.call(this);var t=this.GetLauncher(),n=this.GetMaxSeverity(),r=[],o=[],a=!1,s=this.GetComponent().widget();t&&(this.IsInvalid()?(r.push(e.DefaultMessagingStrategy._SELECTOR_STATE_WARNING),o.push(e.DefaultMessagingStrategy._SELECTOR_STATE_INVALID),a=!0):this.HasMessages()&&n===i.SEVERITY_LEVEL.WARNING?(r.push(e.DefaultMessagingStrategy._SELECTOR_STATE_INVALID),o.push(e.DefaultMessagingStrategy._SELECTOR_STATE_WARNING)):(r.push(e.DefaultMessagingStrategy._SELECTOR_STATE_INVALID),r.push(e.DefaultMessagingStrategy._SELECTOR_STATE_WARNING)),s.removeClass(r.join(" ")).addClass(o.join(" ")),this.GetContentElement().attr({"aria-invalid":a}))},e.DefaultMessagingStrategy.prototype.deactivate=function(){this.GetComponent().widget().removeClass(e.DefaultMessagingStrategy._SELECTOR_STATE_INVALID).removeClass(e.DefaultMessagingStrategy._SELECTOR_STATE_WARNING),this.GetContentElement().removeAttr("aria-invalid"),e.DefaultMessagingStrategy.superclass.deactivate.call(this)},e.PlaceholderMessagingStrategy=function(e){this.Init(e)},e.ComponentMessaging.registerMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.PLACEHOLDER,e.PlaceholderMessagingStrategy),e.Object.createSubclass(e.PlaceholderMessagingStrategy,e.MessagingStrategy,"oj.PlaceholderMessagingStrategy"),e.PlaceholderMessagingStrategy.prototype.Init=function(t){e.PlaceholderMessagingStrategy.superclass.Init.call(this,t)},e.PlaceholderMessagingStrategy.prototype.activate=function(t){e.PlaceholderMessagingStrategy.superclass.activate.call(this,t),this._refreshPlaceholder()},e.PlaceholderMessagingStrategy.prototype.reactivate=function(t){e.PlaceholderMessagingStrategy.superclass.reactivate.call(this,t),this._refreshPlaceholder()},e.PlaceholderMessagingStrategy.prototype.shouldUpdate=function(e){return!(!e||void 0===e.converterHint)},e.PlaceholderMessagingStrategy.prototype.update=function(){e.PlaceholderMessagingStrategy.superclass.update.call(this),this._refreshPlaceholder()},e.PlaceholderMessagingStrategy.prototype._refreshPlaceholder=function(){var e=this.GetLauncher();if(this.ShowPlaceholderContent()&&e){var t=this.GetConverterHint(),n=t.length?t[0]:"",i={internalMessagingSet:!0};this.GetComponent().option({placeholder:n},{_context:i})}},e.PlaceholderMessagingStrategy.prototype.ShowPlaceholderContent=function(){return this.ShowConverterHint(); },e.ComponentValidity=function(e,t){this.Init(e,t)},e.ComponentValidity.isInvalid=function(e){return i.getMaxSeverity(e)>=i.SEVERITY_LEVEL.ERROR},e.Object.createSubclass(e.ComponentValidity,e.Object,"oj.ComponentValidity"),e.ComponentValidity.prototype.Init=function(t,n){e.ComponentValidity.superclass.Init.call(this),this._initialize(t,n)},e.ComponentValidity.prototype.isInvalid=function(){return this._invalid},e.ComponentValidity.prototype.getMessages=function(){return this._messages},e.ComponentValidity.prototype.getMaxSeverity=function(){return this._maxSeverity},e.ComponentValidity.prototype.update=function(e,t){this._initialize(e,t)},e.ComponentValidity.prototype._initialize=function(t,n){this._compValid=t,this._compMessages=n,this._messages=this._getImmediateMessages(),this._maxSeverity=i.getMaxSeverity(this._messages),this._invalid=e.ComponentValidity.isInvalid(this._messages)},e.ComponentValidity.prototype._getImmediateMessages=function(){for(var t=this._compMessages||[],n=[],i=0;i",e.DomUtils._HTML_END_TAG="",e.DomUtils._LEGAL_ELEMENTS={SPAN:1,B:1,I:1,EM:1,BR:1,HR:1,LI:1,OL:1,UL:1,P:1,TT:1,BIG:1,SMALL:1,PRE:1},e.DomUtils._LEGAL_ATTRIBUTES={class:1,style:1},e.DomUtils.isHTMLContent=function(t){return 0===t.indexOf(e.DomUtils._HTML_START_TAG)&&t.lastIndexOf(e.DomUtils._HTML_END_TAG)===t.length-7},e.DomUtils.cleanHtml=function(t){var i=n(document.createElement("span")).get(0);return i.innerHTML=t,t&&t.indexOf("<")>=0&&e.DomUtils._cleanElementHtml(i),i},e.DomUtils._cleanElementHtml=function(t){for(var i=t.childNodes,r=i.length-1;r>=0;r--){var o=i.item(r);if(o&&1===o.nodeType)if(e.DomUtils._LEGAL_ELEMENTS[o.nodeName]){for(var a=o.attributes,s=a.length-1;s>=0;s--){var l=a[s];void 0!==n(o).attr(l.name)&&(e.DomUtils._LEGAL_ATTRIBUTES[l.name]||o.removeAttribute(l.nodeName))}e.DomUtils._cleanElementHtml(o)}else o&&t.removeChild(o)}},e.DomUtils.isAncestor=function(e,t){for(var n=t.parentNode;n;){if(n===e)return!0;n=n.parentNode}return!1},e.DomUtils.isAncestorOrSelf=function(t,n){return n===t||e.DomUtils.isAncestor(t,n)},e.DomUtils.addResizeListener=function(t,i,r){var o=n(t),a=o.data(e.DomUtils._RESIZE_TRACKER_KEY);null==a&&(a=new e.DomUtils._ResizeTracker(t),o.data(e.DomUtils._RESIZE_TRACKER_KEY,a),a.start()),a.addListener(i,r)},e.DomUtils.removeResizeListener=function(t,i){var r=n(t),o=r.data(e.DomUtils._RESIZE_TRACKER_KEY);null!=o&&(o.removeListener(i),o.isEmpty()&&(o.stop(),r.removeData(e.DomUtils._RESIZE_TRACKER_KEY)))},e.DomUtils.fixResizeListeners=function(t){n(t).find(".oj-helper-detect-expansion").parent().each(function(t,i){var r=n(i).data(e.DomUtils._RESIZE_TRACKER_KEY);null!=r&&r.init(!0)})},e.DomUtils.isMetaKeyPressed=function(t){var n=e.AgentUtils.getAgentInfo();return e.AgentUtils.OS.MAC===n.os?t.metaKey:t.ctrlKey},e.DomUtils.dispatchEvent=function(e,t){var n="disabled",i=e[n];try{e[n]=!1,e.dispatchEvent(t)}finally{e[n]=i}},e.DomUtils._invokeAfterPaint=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,0)}).bind(window),e.DomUtils._cancelInvokeAfterPaint=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||function(e){return window.clearTimeout(e)}).bind(window),e.DomUtils._ResizeTracker=function(t){function i(e){var t=!1;if(null!=m.offsetParent){var n=m.offsetWidth,i=m.offsetHeight;d===n&&h===i||(c=u,o(n,i),t=!0,e&&r(!0))}return t}function r(n){var i=t.offsetWidth,r=t.offsetHeight;a.has()&&(n?(null!==p&&e.DomUtils._cancelInvokeAfterPaint(p),p=e.DomUtils._invokeAfterPaint(function(){p=null,a.fire(i,r)})):a.fire(i,r));for(var o=0;o=0?(l.splice(t,1),s.splice(t,1)[0].stop()):a.remove(e)},this.isEmpty=function(){return!a.has()&&0===l.length},this.start=function(){if(_=function(e){e.stopPropagation(),i(!0)||c>0&&null!=m.offsetParent&&(0===m.scrollLeft||0===m.scrollTop)&&(c-=1,o(d,h))}.bind(this),t.attachEvent)f=function(){r(!1)}.bind(this),t.attachEvent("onresize",f);else{var e=t.childNodes[0];(m=document.createElement("div")).className="oj-helper-detect-expansion";var n=document.createElement("div");m.appendChild(n),null!=e?t.insertBefore(m,e):t.appendChild(m),m.addEventListener("scroll",_,!1),(g=document.createElement("div")).className="oj-helper-detect-contraction";var a=document.createElement("div");a.style.width="200%",a.style.height="200%",g.appendChild(a),t.insertBefore(g,m),g.addEventListener("scroll",_,!1),this.init(!1)}},this.stop=function(){null!=p&&(e.DomUtils._cancelInvokeAfterPaint(p),p=null),null!=m?(m.removeEventListener("scroll",_),g.removeEventListener("scroll",_),m.parentNode&&t.removeChild(m),g.parentNode&&t.removeChild(g)):t.detachEvent("onresize",f)},this.init=function(e){var t=i(e);e&&!t&&null!=m.offsetParent&&o(d,h)}},e.DomUtils._RESIZE_TRACKER_KEY="_ojResizeTracker",e.DomUtils.isValidIdentifier=function(e){return/^[A-Za-z][0-9A-Z_a-z-]*$/.test(e)},e.DomUtils._collapsingListenerManager=function(e,t){var n=null,i=null,r=function(){e.apply(null,n),i=null},o=function(){n=Array.prototype.slice.call(arguments),null==i&&(i=window.setTimeout(r,t))};this.getCallback=function(){return o},this.stop=function(){null!=i&&(window.clearTimeout(i),i=null)}},e.DomUtils.isTouchSupported=function(){return"ontouchstart"in window||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints>0},e.DomUtils.setInKoCleanExternal=function(t){e.DomUtils._koCleanNode=t},e.DomUtils.unwrap=function(t,n){var i=e.DomUtils._koCleanNode;i&&t.get(0)===i||(n?n.replaceWith(t):t.unwrap())},e.DomUtils.isChromeEvent=function(t){function i(t){var i=t.target,r=n(i),o=i.getBoundingClientRect(),a=e.DomUtils.getScrollBarWidth(),s="ltr"===e.DomUtils.getReadingDirection();return!(!s||"HTML"!==i.nodeName&&"visible"===r.css("overflow-x")||!(t.clientX>o.right-a))||!s&&"HTML"===i.nodeName&&t.clientX>o.left-a||!s&&"visible"!==r.css("overflow-x")&&t.clientXo.bottom-a}if(!("clientX"in t&&"clientY"in t))return!1;var r=e.AgentUtils.getAgentInfo();return e.AgentUtils.OS.ANDROID!==r.os&&e.AgentUtils.OS.IOS!==r.os&&(e.AgentUtils.ENGINE.GECKO===r.engine?function(e){try{return!e.originalTarget.localName}catch(e){return!0}}(t):e.AgentUtils.ENGINE.WEBKIT===r.engine||e.AgentUtils.ENGINE.BLINK===r.engine?i(t):e.AgentUtils.BROWSER.IE===r.browser&&i(t))},e.DomUtils.getScrollBarWidth=function(){var t=e.DomUtils._scrollBarWidth;if(n.isNumeric(t))return t;var i=n("
");n(document.body).append(i),i.width(50).height(50).css({overflow:"scroll",visibility:"hidden",position:"absolute"});var r=n("
");r.height(1),i.append(r);var o=r.width(),a=i.width();return i.remove(),t=a-o,e.DomUtils._scrollBarWidth=t,t},e.DomUtils.getReadingDirection=function(){var e=document.documentElement.getAttribute("dir");return e&&(e=e.toLowerCase()),"rtl"===e?"rtl":"ltr"},e.DomUtils.getScrollLeft=function(t){if("rtl"===e.DomUtils.getReadingDirection()){var n=e.AgentUtils.getAgentInfo().browser;return n===e.AgentUtils.BROWSER.FIREFOX||n===e.AgentUtils.BROWSER.IE||n===e.AgentUtils.BROWSER.EDGE?Math.abs(t.scrollLeft):Math.max(0,t.scrollWidth-t.clientWidth-t.scrollLeft)}return t.scrollLeft},e.DomUtils.setScrollLeft=function(t,n){if("rtl"===e.DomUtils.getReadingDirection()){var i=e.AgentUtils.getAgentInfo().browser;i===e.AgentUtils.BROWSER.FIREFOX?t.scrollLeft=-n:i===e.AgentUtils.BROWSER.IE||i===e.AgentUtils.BROWSER.EDGE?t.scrollLeft=n:t.scrollLeft=Math.max(0,t.scrollWidth-t.clientWidth-n)}else t.scrollLeft=n},e.DomUtils.getCSSLengthAsInt=function(e){if(!isNaN(e))return parseInt(e,10);if(e&&e.length>0&&"auto"!==e){var t=parseInt(e,10);return isNaN(t)&&(t=0),t}return 0},e.DomUtils.getCSSLengthAsFloat=function(e){if(!isNaN(e))return parseFloat(e);if(e&&e.length>0){var t=parseFloat(e);return isNaN(t)&&(t=0),t}return 0},e.DomUtils._LOGICAL_PARENT_DATA="oj-logical-parent",e.DomUtils.getLogicalParent=function(t){if(t)return t.data(e.DomUtils._LOGICAL_PARENT_DATA)},e.DomUtils.setLogicalParent=function(t,n){t&&(null===n?t.removeData(e.DomUtils._LOGICAL_PARENT_DATA):t.data(e.DomUtils._LOGICAL_PARENT_DATA,n))},e.DomUtils.isLogicalAncestorOrSelf=function(t,i){e.Assert.assertDomElement(t),e.Assert.assertDomElement(i);for(var r=i;r;){if(r===t)return!0;var o=e.DomUtils.getLogicalParent(n(r));r=o?o[0]:r.parentNode}return!1},e.DomUtils.validateURL=function(e,t){var n=t||["http:","https:"],i=document.createElement("a");i.href=e;var r=i.protocol;if(null!=r&&(r=r.toLowerCase()),n.indexOf(r)<0&&""!==r)throw new Error(r+" is not a valid URL protocol")},e.DomUtils._supressNativeContextMenu=function(){n(document.body).hasClass("oj-hybrid")&&document.body.addEventListener("contextmenu",function(e){e.preventDefault()},!0)},e.DomUtils._supressNativeContextMenu(),e.DomUtils.PRESS_HOLD_THRESHOLD=750,e.DomUtils.recentTouchEnd=function(){function e(){t=Date.now()}var t=0;return document.addEventListener("touchend",e,!0),document.addEventListener("touchcancel",e,!0),function(){return Date.now()-t<500}}(),e.DomUtils.recentTouchStart=function(){var t=0,n=e.DomUtils.PRESS_HOLD_THRESHOLD+50;return document.addEventListener("touchstart",function(){t=Date.now()},!0),function(){return Date.now()-tC+e.DomUtils.PRESS_HOLD_THRESHOLD)&&(C=t,O=!1)},!0),document.addEventListener("touchstart",function(){C=Date.now(),O=!0},!0),document.addEventListener("mouseup",function(){C=Date.now(),O=!1},!0),document.addEventListener("touchend",function(){C=Date.now(),O=!1},!0),function(){return Date.now()-C<(O?T:600)}),e.DomUtils.makeFocusable=(I=0,A=(e.ThemeUtils.parseJSONFromFontFamily("oj-focus-config")||{}).focusHighlightPolicy,P=function(t,n){switch(t?t():A){case"all":return!0;case"none":return!1;default:return!(e.DomUtils.recentPointer()||n&&n())}},function(e){var t=e.element,i="ojFocusable";if(e.remove){t.removeClass("oj-focus oj-focus-highlight");var r=t.data(i);if(null==r)return;var o=".ojFocusable"+(""+r).split(",").join(" .ojFocusable");t.off(o).removeData(i)}else{var a=e.afterToggle||n.noop,s=e.applyHighlight?function(t){t.addClass("oj-focus"),P(e.getFocusHighlightPolicy,e.recentPointer)&&t.addClass("oj-focus-highlight"),a("focusin")}:function(e){e.addClass("oj-focus"),a("focusin")};(e.setupHandlers||function(r,o){var a=e.component,s=function(e){r(n(e.currentTarget))},l=function(e){o(n(e.currentTarget))};if(a)a._on(t,{focusin:s,focusout:l});else{var u=I;I+=1;var c=t.data(i);t.data(i,null==c?u:c+","+u);var p={},d=".ojFocusable"+u;p["focusin"+d]=s,p["focusout"+d]=l,t.on(p)}})(s,function(e){e.removeClass("oj-focus oj-focus-highlight"),a("focusout")})}}),e.FocusUtils={},e.FocusUtils._TABBABLE=":tabbable,iframe",e.FocusUtils.containsFocus=function(t){var n=document.activeElement;return!(!t||!n)&&e.DomUtils.isAncestorOrSelf(t,n)},e.FocusUtils.focusElement=function(e){e.focus()},e.FocusUtils.focusFirstTabStop=function(t){var n=e.FocusUtils.getFirstTabStop(t);return n&&e.FocusUtils.focusElement(n),n},e.FocusUtils.isFirstActiveElement=function(t){var i=n(t).find(e.FocusUtils._TABBABLE);if(null==i||0===i.length)return!1;var r=i[0];return document.activeElement===r||r.name===document.activeElement.name&&"radio"===r.type&&"radio"===document.activeElement.type},e.FocusUtils.isLastActiveElement=function(t){var i=n(t).find(e.FocusUtils._TABBABLE);if(null==i||0===i.length)return!1;var r=i[i.length-1];return document.activeElement===r||r.name===document.activeElement.name&&"radio"===r.type&&"radio"===document.activeElement.type},e.FocusUtils.getFirstTabStop=function(t){var i=n(t);if(i.is(e.FocusUtils._TABBABLE))return t;var r=i.find(e.FocusUtils._TABBABLE);if(r&&r.length>0){if(r[0].classList.contains("oj-radio")){var o=r.filter(".oj-selected.oj-radio");return o&&o.length?o[0]:r[0]}return r[0]}return null},e.FocusUtils.getLastTabStop=function(t){var i=n(t).find(e.FocusUtils._TABBABLE);if(i&&i.length>0){if(i[i.length-1].classList.contains("oj-radio")){var r=i.filter(".oj-selected.oj-radio");return r&&r.length?r[r.length-1]:i[i.length-1]}return i[i.length-1]}return null},e.FocusUtils.isFocusable=function(t){return!(!n(t).is(":focusable")||"A"===t.nodeName&&!t.hasAttribute("tabindex")&&e.AgentUtils.getAgentInfo().browser===e.AgentUtils.BROWSER.SAFARI)},e.GestureUtils={},e.GestureUtils._EVENT_NAMESPACE=".contextMenu",e.GestureUtils.stopDetectContextMenuGesture=function(t){t._clickListener&&(n(t).off(e.GestureUtils._EVENT_NAMESPACE).removeClass("oj-menu-context-menu-launcher")[0].removeEventListener("click",t._clickListener,!0),clearTimeout(t._contextMenuPressHoldTimer),delete t._clickListener,delete t._contextMenuPressHoldTimer)},e.GestureUtils.startDetectContextMenuGesture=function(t,i){function r(e,r,o){return(c=o)&&n(t).one("touchend"+m,function(){g=!0,setTimeout(function(){g=!1},50)}),"touchstart"===h&&"contextmenu"===e.type||"contextmenu"===h&&"touchstart"===e.type||"keydown"===h&&"contextmenu"===e.type?("keydown"===h&&"contextmenu"===e.type&&e.preventDefault(),h=null,void clearTimeout(l)):void(e.isDefaultPrevented()||e.originalEvent&&e.originalEvent.defaultPrevented||(i(e,r),e.isDefaultPrevented()&&("touchstart"!==e.type&&"contextmenu"!==e.type&&"keydown"!==e.type||(h=e.type,l=setTimeout(function(){h=null},d)))))}var o,a,s,l,u=e.DomUtils.PRESS_HOLD_THRESHOLD,c=!1,p=!1,d=300,h=null,m=e.GestureUtils._EVENT_NAMESPACE,g=!1,f=function(e){c&&(e.preventDefault(),e.stopPropagation(),c=!1)};t._clickListener=f,t.addEventListener("click",f,!0),n(t).on("touchstart"+m+" mousedown"+m,function(e){if("mousedown"!==e.type||!g){if(c=!1,"touchstart"===e.type&&1===e.originalEvent.touches.length){var n=e.originalEvent.touches[0];a=n.pageX,s=n.pageY,p=!0,o=setTimeout(r.bind(void 0,e,"touch",!0),u),t._contextMenuPressHoldTimer=o}return!0}}).on("touchmove"+m,function(e){var t=e.originalEvent.touches[0];return(Math.abs(a-t.pageX)>5||Math.abs(s-t.pageY)>5)&&(p=!1,clearTimeout(o)),!0}).on("touchend"+m+" touchcancel"+m,function(){return p=!1,clearTimeout(o),!0}).on("keydown"+m+" contextmenu"+m,function(e){return("contextmenu"===e.type||121===e.which&&e.shiftKey)&&r(e,p?"touch":"keydown"===e.type?"keyboard":"mouse",!1),!0}),e.DomUtils.isTouchSupported()&&n(t).addClass("oj-menu-context-menu-launcher")},n(document).ready(function(){!function(){var e=document.createElement("div");e.style.border="1px solid",e.style.borderColor="red green",e.style.position="absolute",e.style.top="-999px",e.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=)";var t=document.body;t.appendChild(e);var n=window.getComputedStyle(e),i=n.backgroundImage;n.borderTopColor!==n.borderRightColor&&(null==i||"none"!==i&&"url (invalid-url:)"!==i)||t.classList.add("oj-hicontrast"),t.removeChild(e)}()}),e.Test={},e.Test.ready=!1,e.Test.domNodeForLocator=function(t){var i=t;if(e.StringUtils.isString(t)){var r=t;try{i=JSON.parse(r)}catch(e){return null}}if(i&&i.element){var o=n(i.element);if(o&&o.length>0){delete i.element;var a=i;return e.Components.getNodeBySubId(o[0],a)}}return null},e.Test.getOpenPopupCount=function(){return e.ZOrderUtils.getOpenPopupCount()},e.Test.findOpenPopups=function(){return e.ZOrderUtils.findOpenPopups()},e.Test.compareStackingContexts=function(t,n){return e.ZOrderUtils.compareStackingContexts(t,n)},n.cleanData=(D=n.cleanData,function(t){for(var n=[],i=0;i0&&D(n)}),e.Components}),define("ojs/ojanimation",["ojs/ojcore","jquery","ojs/ojthemeutils","ojs/ojlogger","promise","ojs/ojcomponentcore"],function(e,t,n,i){"use strict";return e.AnimationUtils={},e.AnimationUtils,e.AnimationUtils._getName=function(t,n){if(!e.AnimationUtils._nameMap){e.AnimationUtils._nameMap={};var i=e.AnimationUtils._nameMap,r=t.style;i.backfaceVisibility=void 0!==r.webkitBackfaceVisibility?"webkitBackfaceVisibility":"backfaceVisibility",i.transform=void 0!==r.webkitTransform?"webkitTransform":"transform",i.transformOrigin=void 0!==r.webkitTransformOrigin?"webkitTransformOrigin":"transformOrigin",i.transition=void 0!==r.webkitTransition?"webkitTransition":"transition",i.transitionend=void 0!==r.webkitTransition?"webkitTransitionEnd":"transitionend"}return e.AnimationUtils._nameMap[n]||n},e.AnimationUtils._getElementStyle=function(t,n){return t.style[e.AnimationUtils._getName(t,n)]},e.AnimationUtils._setElementStyle=function(t,n,i){t.style[e.AnimationUtils._getName(t,n)]=i},e.AnimationUtils._animate=function(n,i,r,o,a,s){var l=[].concat(a),u=function(t,u){function c(){m||(h&&(window.cancelAnimationFrame(h),h=0),n.removeEventListener(e.AnimationUtils._getName(n,"transitionend"),d),t&&t(!0),m=!0)}function p(){h=0,e.AnimationUtils._applyState(n,r,g>1)}var d=function(t){var n=0===t.propertyName.indexOf("-webkit-")?t.propertyName.substr(8):t.propertyName;n=e.AnimationUtils._getCamelCasePropName(n);var i=l.indexOf(n);i>-1&&(l.length>1?l.splice(i,1):c())},h=0,m=!1;null==r&&(r={}),null==r.css&&(r.css={}),r.css.transition=e.AnimationUtils._createTransitionValue(n,a,o);var g=e.AnimationUtils._saveStyle(n,i,r,o,s||a);e.AnimationUtils._applyState(n,i,g>1),n.addEventListener(e.AnimationUtils._getName(n,"transitionend"),d); var f=o.duration,_=o.delay,v=o._skipPromise;null==i?p():(o._noReflow||(e.AnimationUtils._x=n.offsetWidth),h=window.requestAnimationFrame(p));var y=e.AnimationUtils._getTotalTiming(f,_);v||setTimeout(c,y+100)};return o._skipPromise?(u(null),null):new Promise(u).then(function(){i&&i.addClass&&t(n).removeClass(i.addClass),r&&r.addClass&&t(n).removeClass(r.addClass),e.AnimationUtils._restoreStyle(n)})},e.AnimationUtils._saveCssValues=function(t,n,i,r){for(var o=Object.keys(n),a=Object.prototype.hasOwnProperty,s=0;s1)n._ojEffectCount=i-1;else{var r=n._ojSavedStyle;if(r){for(var o=Object.keys(r),a=0;a=0){for(var t="",n=e.split("-"),i=0;i0;){var r=n.substr(0,i+1);t.push(r.trim()),i=(n=n.slice(i+1)).indexOf(")")}return t},e.AnimationUtils._getTransformFuncName=function(e){var t=e.indexOf("(");return t>=1?e.substr(0,t):e},e.AnimationUtils._applyTransform=function(t,n){for(var i=e.AnimationUtils._getElementStyle(t,"transform"),r=e.AnimationUtils._splitTransform(i),o=e.AnimationUtils._splitTransform(n),a=[],s=0;s-1?t:1e3*t},e.AnimationUtils._getTotalTiming=function(t,n){var i=e.AnimationUtils._getTimingValue(t);return i>0?i+(n?e.AnimationUtils._getTimingValue(n):0):0},e.AnimationUtils._calcCssTime=function(t,n,i){for(var r=t.split(","),o=n.split(","),a=i.split(","),s=r.length,l=o.length,u=a.length,c=0,p=0;p0?setTimeout(g,t+100):g()});setTimeout(function(){C&&(window.cancelAnimationFrame(C),C=0,g())},1e3)})},e.AnimationUtils._mergeOptions=function(i,r){return null==e.AnimationUtils._defaultOptions&&(e.AnimationUtils._defaultOptions=n.parseJSONFromFontFamily("oj-animation-effect-default-options")),t.extend({duration:"400ms"},e.AnimationUtils._defaultOptions?e.AnimationUtils._defaultOptions[i]:null,r)},e.AnimationUtils._createTransitionValue=function(t,n,i){var r="";if(n)for(var o=0;o0?", ":"")+e.AnimationUtils._getHyphenatedPropName(a)+" "+i.duration,i.timingFunction&&(r+=" "+i.timingFunction),i.delay&&(r+=" "+i.delay)}return r},e.AnimationUtils._fade=function(t,n,i,r,o){var a=e.AnimationUtils._mergeOptions(i,n),s={css:{opacity:r}},l={css:{opacity:o}};return a&&(a.startOpacity&&(s.css.opacity=a.startOpacity),a.endOpacity&&(l.css.opacity=a.endOpacity)),e.AnimationUtils._animate(t,s,l,a,["opacity"])},e.AnimationUtils.fadeIn=function(t,n){return e.AnimationUtils._fade(t,n,"fadeIn",0,1)},e.AnimationUtils.fadeOut=function(t,n){return e.AnimationUtils._fade(t,n,"fadeOut",1,0)},e.AnimationUtils.expand=function(t,n){return e.AnimationUtils._expandCollapse(t,n,!0)},e.AnimationUtils.collapse=function(t,n){return e.AnimationUtils._expandCollapse(t,n,!1)},e.AnimationUtils._wrapRowContent=function(e,t){var n,i,r=[],o=e.children,a=[],s=[];for(e._ojSavedHeight=e.style.height,i=0;i").css({position:"absolute",overflow:"hidden"}),c=t("
"),p="static"===window.getComputedStyle(n).position?{left:n.offsetLeft,top:n.offsetTop}:{left:0,top:0};n.insertBefore(u[0],n.firstChild),u.css({left:p.left+"px",top:p.top+"px",width:s+"px",height:l+"px"}),u.prepend(c);var d=o.css,h=a.css;return e.AnimationUtils._setRippleOptions(d,c,u,r),d.transform="scale(0) translateZ(0)",d.opacity=r.startOpacity||c.css("opacity"),h.transform="scale(1) translateZ(0)",h.opacity=r.endOpacity||0,r.persist="all",e.AnimationUtils._animate(c[0],o,a,r,["transform","opacity"]).then(function(){u.remove()})},e.AnimationUtils._setRippleOptions=function(t,n,i,r){var o=t,a=n.width(),s=i.width(),l=i.height();if(r.diameter){var u=r.diameter,c=parseInt(u,10);isNaN(c)||(a="%"===u.charAt(u.length-1)?Math.floor(Math.min(s,l)*(c/100)):c,o.width=a+"px",o.height=a+"px")}var p,d="static"===i.css("position")?i.position():{left:0,top:0};null!=(p=e.AnimationUtils._calcRippleOffset(r.offsetX,a,s,d.left))&&(o.left=p+"px"),null!=(p=e.AnimationUtils._calcRippleOffset(r.offsetY,a,l,d.top))&&(o.top=p+"px"),r.color&&(o.backgroundColor=r.color)},e.AnimationUtils._calcRippleOffset=function(e,t,n,i){var r,o=e||"50%",a=parseInt(o,10);return isNaN(a)||(r="%"===o.charAt(o.length-1)?n*(a/100)-t/2:a-t/2,r=Math.floor(r+i)),r},e.AnimationUtils._removeRipple=function(n,r){var o=r||{},a=o.removeEffect||"fadeOut",s=t(".oj-animation-rippler",n);return 0!==s.length?a in{fadeOut:1,collapse:1,zoomOut:1,slideOut:1}?e.AnimationUtils[a](s,o).then(function(){s.remove()}):s.remove():void i.warn("No rippler so returning")},e.AnimationUtils._calcBackfaceAngle=function(e){var t,n=e.match(/^([+-]?\d*\.?\d*)(.*)$/),r=parseFloat(n[1]),o=n[2];switch(o){case"deg":t=r-180+o;break;case"grad":t=r-200+o;break;case"rad":t=r-3.1416+o;break;case"turn":t=r-.5+o;break;default:i.error("Unknown angle unit in flip animation: "+o)}return t},e.AnimationUtils._flip=function(n,i,r,o,a){if(i&&"children"===i.flipTarget){var s,l=[],u=t(n).children(),c=t.extend({},i);delete c.flipTarget;var p=t.extend({},c);p.startAngle=e.AnimationUtils._calcBackfaceAngle(i.startAngle||o),p.endAngle=e.AnimationUtils._calcBackfaceAngle(i.endAngle||a);for(var d=0;d
"),o=i.children()[0];return e("body").append(i),t=o.offsetWidth,i.css("overflow","scroll"),n=o.offsetWidth,t===n&&(n=i[0].clientWidth),i.remove(),r=t-n},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),r="scroll"===n||"auto"===n&&t.width0?"right":"center",vertical:s<0?"top":i>0?"bottom":"middle"};ho(a(i),a(s))?p.important="horizontal":p.important="vertical",r.using.call(this,e,p)}),l.offset(e.extend(T,{using:s}))})},e.ui.position={fit:{left:function(e,t){var n,i=t.within,r=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=e.left-t.collisionPosition.marginLeft,l=r-s,u=s+t.collisionWidth-a-r;t.collisionWidth>a?l>0&&u<=0?(n=e.left+l+t.collisionWidth-a-r,e.left+=l-n):u>0&&l<=0?e.left=r:l>u?e.left=r+a-t.collisionWidth:e.left=r:l>0?e.left+=l:u>0?e.left-=u:e.left=o(e.left-s,e.left)},top:function(e,t){var n,i=t.within,r=i.isWindow?i.scrollTop:i.offset.top,a=t.within.height,s=e.top-t.collisionPosition.marginTop,l=r-s,u=s+t.collisionHeight-a-r;t.collisionHeight>a?l>0&&u<=0?(n=e.top+l+t.collisionHeight-a-r,e.top+=l-n):u>0&&l<=0?e.top=r:l>u?e.top=r+a-t.collisionHeight:e.top=r:l>0?e.top+=l:u>0?e.top-=u:e.top=o(e.top-s,e.top)}},flip:{left:function(e,t){var n,i,r=t.within,o=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=e.left-t.collisionPosition.marginLeft,c=u-l,p=u+t.collisionWidth-s-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,h="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,m=-2*t.offset[0];c<0?(n=e.left+d+h+m+t.collisionWidth-s-o,(n<0||n0&&(i=e.left-t.collisionPosition.marginLeft+d+h+m-l,(i>0||a(i)0&&(n=e.top-t.collisionPosition.marginTop+h+m+g-l,(n>0||a(n)0)return e.ZOrderUtils.VISIT_RESULT.REJECT;var r=e.ZOrderUtils.getEvents(n);return r&&t.isFunction(r[e.PopupService.EVENT.POPUP_REFRESH])&&r[e.PopupService.EVENT.POPUP_REFRESH](),e.ZOrderUtils.VISIT_RESULT.ACCEPT},e.PopupServiceImpl.prototype.destroy=function(){e.PopupServiceImpl.superclass.destroy.call(this)},e.PopupServiceImpl._FOCUS_WITHIN_SELECTOR="oj-focus-within",e.PopupServiceImpl._REDISTRIBUTE_EVENTS=["focus","mousedown","keydown"],e.PopupServiceImpl._COPY_SAFE_EVENT_PROPERTIES=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","relatedTarget","shiftKey","target","timeStamp","view","which","button","buttons","clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","toElement","char","charCode","key","keyCode"],e.PopupServiceImpl._REFRESH_DELAY=10,e.ZOrderUtils={},e.ZOrderUtils.STATUS={UNKNOWN:0,BEFORE_OPEN:.5,OPENING:1,OPEN:2,BEFORE_CLOSE:2.5,CLOSING:3,CLOSE:4},e.ZOrderUtils._STATUS_DATA="oj-popup-status",e.ZOrderUtils.getStatus=function(n){n instanceof Element&&(n=t(n));var i=n.data(e.ZOrderUtils._STATUS_DATA);return isNaN(i)?e.ZOrderUtils.STATUS.UNKNOWN:i},e.ZOrderUtils.setStatus=function(n,i){n instanceof Element&&(n=t(n)),i>e.ZOrderUtils.STATUS.UNKNOWN&&i<=e.ZOrderUtils.STATUS.CLOSE&&n.data(e.ZOrderUtils._STATUS_DATA,i)},e.ZOrderUtils.getFirstAncestorLayer=function(t){if(!t)return e.ZOrderUtils.getDefaultLayer();for(var n=t;n&&n.length>0&&n.attr(e.ZOrderUtils._SURROGATE_ATTR)!==e.ZOrderUtils._DEFAULT_LAYER_ID;){if(e.ZOrderUtils._hasSurrogate(n[0]))return n;n=n.parent()}return e.ZOrderUtils.getDefaultLayer()},e.ZOrderUtils.getDefaultLayer=function(){var n=t(document.getElementById(e.ZOrderUtils._DEFAULT_LAYER_ID));return n.length>0?n:((n=t("
")).attr("role","presentation"),n.attr("id",e.ZOrderUtils._DEFAULT_LAYER_ID),n.prependTo(t(document.body)),n)},e.ZOrderUtils.addToAncestorLayer=function(n,r,o,a,s,l){var u=n[0];if(e.ZOrderUtils._hasSurrogate(u.parentNode))throw new Error("JET Popup is already open - id: "+u.getAttribute("id")); var c=e.ZOrderUtils.getFirstAncestorLayer(s===e.PopupService.LAYER_LEVEL.TOP_LEVEL?null:r),p=t("
"),d=n.attr("id");e.StringUtils.isEmptyOrUndefined(d)?p.uniqueId():p.attr("id",[d,"layer"].join("_")),p.attr("role","presentation"),p.addClass(a),n.after(p),e.ZOrderUtils._createSurrogate(p,l),i.subtreeDetached(u),n.appendTo(p),n.data(e.ZOrderUtils._LAYER_ID_DATA,p.attr("id")),p.appendTo(c),i.subtreeAttached(u),e.ZOrderUtils.applyModality(p,o)},e.ZOrderUtils._getSurrogate=function(t){var n=t.attr(e.ZOrderUtils._SURROGATE_ATTR);if(n)return document.getElementById(n)},e.ZOrderUtils.applyEvents=function(n,r,o){o||(o=t(e.ZOrderUtils._getSurrogate(n))),n.data(e.ZOrderUtils._EVENTS_DATA,r),o.length>0&&r&&t.isFunction(r[e.PopupService.EVENT.POPUP_REMOVE])&&i.setComponentOption(o[0],"beforeDestroy",r[e.PopupService.EVENT.POPUP_REMOVE])},e.ZOrderUtils.getEvents=function(t){return t.data(e.ZOrderUtils._EVENTS_DATA)},e.ZOrderUtils._createSurrogate=function(n,i){var r="script";i&&(r="oj-surrogate");var o=t(document.createElement(r)),a=n.attr("id");e.StringUtils.isEmptyOrUndefined(a)||o.attr("id",[a,"surrogate"].join("_")),i&&o.attr("data-oj-binding-provider","none"),o.insertBefore(n),i||o.ojSurrogate();var s=o.attr("id");return n.attr(e.ZOrderUtils._SURROGATE_ATTR,s),o},e.ZOrderUtils._removeSurrogate=function(n){var r=n.attr(e.ZOrderUtils._SURROGATE_ATTR);n.removeAttr(e.ZOrderUtils._SURROGATE_ATTR);var o=t(document.getElementById(r)),a=o.length>0;return a&&(n.insertAfter(o),i.setComponentOption(o[0],"beforeDestroy",null),o.remove()),a},e.ZOrderUtils.getOpenPopupLayer=function(n){var i=n.parent();if(!i||0===i.length){var r=n.data(e.ZOrderUtils._LAYER_ID_DATA);i=t(document.getElementById(r))}return i},e.ZOrderUtils.removeFromAncestorLayer=function(t){var n=e.ZOrderUtils.getOpenPopupLayer(t);e.ZOrderUtils.preOrderVisit(n,e.ZOrderUtils._closeDescendantPopupsCallback),e.ZOrderUtils._removeOverlayFromAncestorLayer(n),n.removeData(e.ZOrderUtils._EVENTS_DATA),n.removeData(e.ZOrderUtils._MODALITY_DATA),t.removeData(e.ZOrderUtils._LAYER_ID_DATA);var r=t[0];i.subtreeDetached(r),e.ZOrderUtils._removeSurrogate(n)&&r&&r.parentElement?(e.DomUtils.unwrap(t,n),i.subtreeAttached(r)):n.remove()},e.ZOrderUtils._closeDescendantPopupsCallback=function(n,i){if(i.level>0)return e.ZOrderUtils.VISIT_RESULT.REJECT;var r=n.data(e.ZOrderUtils._EVENTS_DATA);return r&&t.isFunction(r[e.PopupService.EVENT.POPUP_CLOSE])&&r[e.PopupService.EVENT.POPUP_CLOSE](),e.ZOrderUtils.VISIT_RESULT.ACCEPT},e.ZOrderUtils.applyModality=function(t,n){var i=t.data(e.ZOrderUtils._MODALITY_DATA);t.data(e.ZOrderUtils._MODALITY_DATA,n),e.StringUtils.isEmptyOrUndefined(i)?e.PopupService.MODALITY.MODAL===n?e.ZOrderUtils._addOverlayToAncestorLayer(t):e.ZOrderUtils._removeOverlayFromAncestorLayer(t):i!==n&&(n!==i&&n===e.PopupService.MODALITY.MODAL?e.ZOrderUtils._addOverlayToAncestorLayer(t):e.ZOrderUtils._removeOverlayFromAncestorLayer(t)),n===e.PopupService.MODALITY.MODAL?t.attr("aria-modal","true"):t.removeAttr("aria-modal")},e.ZOrderUtils.hasModalDialogOpen=function(){for(var n=e.ZOrderUtils.getDefaultLayer().children(),i=n.length-1;i>-1;i--)if(t(n[i]).hasClass(e.ZOrderUtils._OVERLAY_SELECTOR))return!0;return!1},e.ZOrderUtils._addOverlayToAncestorLayer=function(n){var i=t("
");i.addClass(e.ZOrderUtils._OVERLAY_SELECTOR),i.addClass(n[0].className),i.attr("role","presentation");var r=n.attr("id");e.StringUtils.isEmptyOrUndefined(r)?i.uniqueId():i.attr("id",[r,"overlay"].join("_")),n.before(i);var o=i.attr("id");n.attr(e.ZOrderUtils._OVERLAY_ATTR,o)},e.ZOrderUtils._removeOverlayFromAncestorLayer=function(n){var i=n.attr(e.ZOrderUtils._OVERLAY_ATTR);e.StringUtils.isEmptyOrUndefined(i)||(n.removeAttr(e.ZOrderUtils._OVERLAY_ATTR),t(document.getElementById(i)).remove())},e.ZOrderUtils.VISIT_RESULT={ACCEPT:0,REJECT:1,COMPLETE:2},e.ZOrderUtils._VISIT_TRAVERSAL={PRE_ORDER:0,POST_ORDER:1},e.ZOrderUtils.postOrderVisit=function(t,n,i){var r=i;i||(r={}),r.level=0,r.type=e.ZOrderUtils._VISIT_TRAVERSAL.POST_ORDER,e.ZOrderUtils._visitTree(t,n,r)},e.ZOrderUtils.preOrderVisit=function(t,n,i){var r=i;i||(r={}),r.level=0,r.type=e.ZOrderUtils._VISIT_TRAVERSAL.PRE_ORDER,e.ZOrderUtils._visitTree(t,n,r)},e.ZOrderUtils._visitTree=function(n,i,r){for(var o=r.level,a=n.children(),s=a.length-1;s>-1;s--){var l=t(a[s]);if(e.ZOrderUtils._hasSurrogate(l[0])){var u;if(r.type===e.ZOrderUtils._VISIT_TRAVERSAL.PRE_ORDER){if((u=i(l,r))===e.ZOrderUtils.VISIT_RESULT.COMPLETE)return u;if(u===e.ZOrderUtils.VISIT_RESULT.REJECT)break}if(r.level=o+1,u=e.ZOrderUtils._visitTree(l,i,r),r.level=o,u===e.ZOrderUtils.VISIT_RESULT.COMPLETE)return u;if(r.type===e.ZOrderUtils._VISIT_TRAVERSAL.POST_ORDER){if((u=i(l,r))===e.ZOrderUtils.VISIT_RESULT.COMPLETE)return u;if(u===e.ZOrderUtils.VISIT_RESULT.REJECT)break}}}return e.ZOrderUtils.VISIT_RESULT.ACCEPT},e.ZOrderUtils._hasSurrogate=function(t){return!(!t||1!==t.nodeType||!t.hasAttribute(e.ZOrderUtils._SURROGATE_ATTR))},e.ZOrderUtils.hasPopupsOpen=function(){return e.ZOrderUtils.getDefaultLayer().children().length>0},e.ZOrderUtils.getOpenPopupCount=function(){var t={popupCount:0},n=e.ZOrderUtils.getDefaultLayer();return e.ZOrderUtils.preOrderVisit(n,e.ZOrderUtils._openPopupCountCallback,t),t.popupCount},e.ZOrderUtils._openPopupCountCallback=function(t,n){return n.popupCount+=1,e.ZOrderUtils.VISIT_RESULT.ACCEPT},e.ZOrderUtils.findOpenPopups=function(){var n={},i=[];n.popups=i;var r=e.ZOrderUtils.getDefaultLayer();return e.ZOrderUtils.preOrderVisit(r,e.ZOrderUtils._openPopupsCallback,n),i=n.popups,t(i)},e.ZOrderUtils._openPopupsCallback=function(t,n){return n.popups.push(t[0]),e.ZOrderUtils.VISIT_RESULT.ACCEPT},e.ZOrderUtils.isAboveTopModalLayer=function(n){if(!n||!e.ZOrderUtils.hasPopupsOpen())return!0;var i=function(){var n={topLayer:null},i=e.ZOrderUtils.getDefaultLayer();if(e.ZOrderUtils.preOrderVisit(i,function(n,i){if(i.level>0)return e.ZOrderUtils.VISIT_RESULT.REJECT;var r=i.topLayer;return r?e.ZOrderUtils.compareStackingContexts(t(n),t(r))>0&&(i.topLayer=n):i.topLayer=n,e.ZOrderUtils.VISIT_RESULT.ACCEPT},n),n.topLayer)return n.topLayer[0]}();if(!i)return!0;var r=function(n){var i={topModalPopup:null};if(n.hasAttribute(e.ZOrderUtils._OVERLAY_ATTR)&&(i.topModalPopup=t(n)),e.ZOrderUtils.postOrderVisit(t(n),function(t,n){return t[0].hasAttribute(e.ZOrderUtils._OVERLAY_ATTR)?(n.topModalPopup=t,e.ZOrderUtils.VISIT_RESULT.COMPLETE):e.ZOrderUtils.VISIT_RESULT.ACCEPT},i),i.topModalPopup)return i.topModalPopup[0]}(i);return!r||e.DomUtils.isAncestorOrSelf(r,n)||e.ZOrderUtils.compareStackingContexts(t(r),t(n))<0},e.ZOrderUtils.compareStackingContexts=function(n,i){function r(n,i){var r,o=["absolute","relative","fixed"],a=n.parents(),s=[];for(r=a.length-1;r>-1;r--)s.push(t(a[r]));(a=s).push(n);var l=[],u=0;for(r=0;r-1&&h>0?(l.push({weight:[u,h,m],order:[m]}),u+=1):d<1?(l.push({weight:[u,1,m],order:[m]}),u+=1):i&&l.push({weight:[0,0,m],order:[m]})}return l}function o(e,t){for(var n=Math.max(e.length,t.length),i=0;i0&&n.remove()}},e.PopupLiveRegion.prototype.announce=function(n){if(!e.StringUtils.isEmpty(n)){var i=e.PopupLiveRegion._getLiveRegion();i.children().remove(),t("
").text(n).appendTo(i)}},e.PopupLiveRegion._getLiveRegion=function(){var n=t(document.getElementById(e.PopupLiveRegion._POPUP_LIVE_REGION_ID));return 0===n.length&&((n=t("
")).attr({id:e.PopupLiveRegion._POPUP_LIVE_REGION_ID,role:"log","aria-live":"polite","aria-relevant":"additions"}),n.addClass("oj-helper-hidden-accessible"),n.appendTo(document.body)),n},e.PopupLiveRegion._POPUP_LIVE_REGION_ID="__oj_popup_arialiveregion",e.PopupSkipLink=function(n,i,r,o,a){e.Assert.assertPrototype(n,t),e.Assert.assertString(i),e.Assert.assertFunction(r),e.Assert.assertStringOrNull(o),this._options={insertBefore:!1,preventKeyEvents:!0},a&&(this._options=Object.assign({},this._options,a)),this._sibling=n,this._message=i,this._callback=r,this._id=o,this.Init()},e.Object.createSubclass(e.PopupSkipLink,e.Object,"oj.PopupSkipLink"),e.PopupSkipLink.prototype.Init=function(){e.PopupSkipLink.superclass.Init.call(this);var n=this._sibling,i=this._callback,r=this._message,o=this._options.insertBefore,a=this._options.preventKeyEvents;this._message=null;var s=this._id;this._id=null;var l=t(document.getElementById(s));l.length<1&&(l=t("").attr({tabindex:"-1",href:"#",role:"link"})),l.attr("id",s),l.addClass("oj-helper-hidden-accessible"),l.text(r),o?l.insertBefore(n):l.insertAfter(n),l.on("click",e.PopupSkipLink._activateHandler.bind(this,i)),a&&l.on("keydown keyup keypress",e.PopupSkipLink._keyHandler),n.data(e.PopupSkipLink._SKIPLINK_ATTR,l)},e.PopupSkipLink._activateHandler=function(t,n){e.ZOrderUtils.eatEvent(n),window.setImmediate(t)},e.PopupSkipLink._keyHandler=function(n){n.keyCode===t.ui.keyCode.ENTER&&e.ZOrderUtils.eatEvent(n)},e.PopupSkipLink.prototype.destroy=function(){var t=this._sibling;if(delete this._sibling,delete this._callback,t){var n=t.data(e.PopupSkipLink._SKIPLINK_ATTR);t.removeData(e.PopupSkipLink._SKIPLINK_ATTR),n&&(n.off("click keydown keyup keypress"),n.remove())}},e.PopupSkipLink.prototype.getLink=function(){var t,n=this._sibling;return n&&(t=n.data(e.PopupSkipLink._SKIPLINK_ATTR)),t},e.PopupSkipLink._SKIPLINK_ATTR="oj-skiplink",e.PopupWhenReadyMediator=function(e,t,n,i){this._element=e,this._operation=t,this._widgetName=n,this._isCustomElement=!!i,this.Init()},e.Object.createSubclass(e.PopupWhenReadyMediator,e.Object,"oj.PopupWhenReadyMediator"),e.PopupWhenReadyMediator.prototype.Init=function(){e.PopupWhenReadyMediator.superclass.Init.call(this),this._resolvedQueue=[],this._callback=this._eventHandler.bind(this);var t=this._operation,i=["oj"];this._isCustomElement?(i.push(t.charAt(0).toUpperCase()),i.push(t.slice(1))):i.push(t);var r=i.join("");this._eventType=r,this._element.on(r,this._callback);var o=n.getContext(this._element[0]).getBusyContext(),a={description:this._getBusyStateDescription.bind(this,this._element,this._operation,this._widgetName)},s=o.addBusyState(a);this.AddPromiseExecutor(s),this._whenReadyPromise=new Promise(this.AddPromiseExecutor.bind(this))},e.PopupWhenReadyMediator.prototype._getBusyStateDescription=function(e,t,n){return n+" identified by '"+e.attr("id")+"' is busy animating on the '"+t+"' operation."},e.PopupWhenReadyMediator.prototype._deliverResolved=function(e){var t=this._resolvedQueue;this._resolvedQueue=null;var n=e||this._operation;this._operation=null;for(var i=0;i",i?"-":"+");else for(var l=0;l",i?"-":"+"))}}return r},e.PositionUtils.normalizePositionOf=function(e,t,n){return"event"===e?n:null==e||"launcher"===e?t:e},e.PositionUtils._normalizeEventForPosition=function(e){t.each(["pageX","pageY"],function(t,n){if(e&&void 0===e[n]&&e.originalEvent){var i,r=e.originalEvent,o=r.type;if(i="touchstart"===o||"touchmove"===o?"touches":"touchend"===o?"changedTouches":null){var a=r[i][0];a&&(e[n]=a[n])}}})},e.PositionUtils._ALIGN_RULE_PROPERTIES=["my","at"],e.PositionUtils._SUB_ALIGN_RULE_PROPERTIES=["vertical","horizontal"],e.PositionUtils.isAligningPositionClipped=function(t){if(t.target&&t.target.height>0&&t.target.width>0){var n=t.target.element;return!e.PositionUtils.isWithinViewport(n)}return!1},e.PositionUtils.isWithinViewport=function(n){function i(t,n){var i;if(["hidden","scroll","auto"].indexOf(n.overflowY)>-1){if(t.bottom-n.top<-1)return!1;if(i="auto"===n.overflowX&&n.scrollWidth>n.innerWidth||"scroll"===n.overflowX?e.DomUtils.getScrollBarWidth():0,n.bottom-i-t.top<1)return!1}return!(["hidden","scroll","auto"].indexOf(n.overflowX)>-1&&(i="auto"===n.overflowY&&n.scrollHeight>n.innerHeight||"scroll"===n.overflowY?e.DomUtils.getScrollBarWidth():0,t.right-(n.left+("rtl"===e.DomUtils.getReadingDirection()?i:0))<-1||t.left-(n.right-("ltr"===e.DomUtils.getReadingDirection()?i:0))>-1))}function r(e){var n=e[0];if(1===n.nodeType){var i=t.extend({},n.getBoundingClientRect());return i.overflowX=e.css("overflow-x"),i.overflowY=e.css("overflow-y"),i.innerHeight=e.innerHeight(),i.innerWidth=e.innerWidth(),i.scrollHeight=n.scrollHeight,i.scrollWidth=n.scrollWidth,i}return{height:0,width:0}}function o(t){return["fixed","absolute","relative"].indexOf(t.css("position"))>-1&&(Math.abs(e.DomUtils.getCSSLengthAsInt(t.css("top")))>0||Math.abs(e.DomUtils.getCSSLengthAsInt(t.css("bottom")))>0||Math.abs(e.DomUtils.getCSSLengthAsInt(t.css("left")))>0||Math.abs(e.DomUtils.getCSSLengthAsInt(t.css("right")))>0)}if(!n)return!1;if(t.isWindow(n[0])||o(n))return!0;for(var a,s=r(n),l=!0,u=n.parent();l&&u&&u.length>0&&"BODY"!==u[0].nodeName&&1===u[0].nodeType&&!o(u);){if("visible"!==(a=u).css("overflow-x")||"visible"!==a.css("overflow-y")){var c=r(u);c.height>0&&c.width>0&&(l=i(s,c))}u=u.parent()}return l},e.PositionUtils._ANIMATION_TRANSFORM_ORIGIN_RULES={"right-top":"right top","right-middle":"right center","right-bottom":"right bottom","left-top":"left top","left-middle":"left center","left-bottom":"left bottom","center-top":"center top","center-middle":"center center","center-bottom":"center bottom"},e.PositionUtils._ALIGN_MNEMONIC_DATA="oj-popup-align-mnemonic",e.PositionUtils.captureTransformOriginAnimationEffectsOption=function(t,n){var i=[n.horizontal,n.vertical].join("-");t.data(e.PositionUtils._ALIGN_MNEMONIC_DATA,i)},e.PositionUtils.addTransformOriginAnimationEffectsOption=function(t,n){var i,r;e.StringUtils.isString(n)?(r=!0,i=n):(r=!1,i=JSON.stringify(n));var o=/#myPosition/g;if(i.match(o)){var a=t.data(e.PositionUtils._ALIGN_MNEMONIC_DATA);e.StringUtils.isEmptyOrUndefined(a)&&(a="center-middle");var s=e.PositionUtils._ANIMATION_TRANSFORM_ORIGIN_RULES[a];i=i.replace(o,s),n=r?i:JSON.parse(i)}return n},e.PositionUtils._JQUI_MNEMONIC_GRP_REGX=/^(\w+)(\+|-)?(\d+)?/,e.PositionUtils._VERTICAL_ENUM_TST_REGX=/^top$|^center$|^bottom$/,e.PositionUtils._HORIZONTAL_ENUM_TST_REGX=/^start$|^left$|^center$|^end$|^right$/,e.PositionUtils._COLLISION_ENUM_TST_REGX=/^none$|^flip$|^flipfit$|^fit$|^flipcenter$/,e.PositionUtils._parsePositionNmnemonic=function(t,n){var i=[null,Number.NaN],r=e.PositionUtils._JQUI_MNEMONIC_GRP_REGX.exec(t);if(r[1]&&n.test(r[1])&&(i[0]=r[1],r[2])){var o=parseInt(r[3],10);isNaN(o)||(o*="-"===r[2]?-1:1,i[1]=o)}return i},e.PositionUtils._parseJSON=function(t){if(e.StringUtils.isString(t)&&/^{/.test(t)&&/}$/.test(t))try{return JSON.parse(t)}catch(e){}return null},e.PositionUtils._coerceMyAtToJet=function(n,i,r,o){var a=e.PositionUtils._parseJSON(i);a&&(i=a),(a=e.PositionUtils._parseJSON(r))&&(r=a),o||(o={});var s,l=t.extend({},o),u={x:0,y:0};if(r&&"x"in r&&"y"in r&&(u.x=e.DomUtils.getCSSLengthAsInt(r.x),u.y=e.DomUtils.getCSSLengthAsInt(r.y)),e.StringUtils.isString(i)){var c=i.split(/\s/);c.length>0&&!e.StringUtils.isEmpty(c[0])&&(s=e.PositionUtils._parsePositionNmnemonic(c[0],e.PositionUtils._HORIZONTAL_ENUM_TST_REGX))[0]&&(l.horizontal=s[0],isNaN(s[1])||(u.x=s[1])),c.length>1&&!e.StringUtils.isEmpty(c[1])&&(s=e.PositionUtils._parsePositionNmnemonic(c[1],e.PositionUtils._VERTICAL_ENUM_TST_REGX))[0]&&(l.vertical=s[0],isNaN(s[1])||(u.y=s[1]))}else i&&("horizontal"in i&&(s=e.PositionUtils._parsePositionNmnemonic(i.horizontal,e.PositionUtils._HORIZONTAL_ENUM_TST_REGX))[0]&&(l.horizontal=s[0],isNaN(s[1])||(u.x=s[1])),"vertical"in i&&(s=e.PositionUtils._parsePositionNmnemonic(i.vertical,e.PositionUtils._VERTICAL_ENUM_TST_REGX))[0]&&(l.vertical=s[0],isNaN(s[1])||(u.y=s[1])));var p={};return p[n]=l,p.offset=u,p},e.PositionUtils._coerceCollisionToJet=function(t,n){var i=n;return e.PositionUtils._COLLISION_ENUM_TST_REGX.test(t)&&(i=t),{collision:i}},e.PositionUtils._coerceOfToJet=function(n,i){var r=e.PositionUtils._parseJSON(n);r&&(n=r);var o=i;return e.StringUtils.isString(n)?o=n:t.isWindow(n)?o="window":n instanceof Element||n instanceof t?((n=t(n)).uniqueId(),o="#"+function(e){for(var t=[],n=/\w|_|-/,i=0;i0?"+":""),i.push(Math.floor(o).toString()))}return i.join("")}var r={};["my","at"].forEach(function(e){if(n[e]){var t=[];t.push(i(e,"horizontal")),t.push(" "),t.push(i(e,"vertical")),r[e]=t.join("")}});var o=n.of;if(e.StringUtils.isString(o))r.of="window"===o?window:o;else if(o&&!e.StringUtils.isString(o)&&"x"in o&&"y"in o){var a=o.x,s=o.y,l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,1,a,s,a,s,!1,!1,!1,!1,0,null),r.of=t.Event(l,{pageX:a,pageY:s})}else r.of=o;return n.collision&&(r.collision=n.collision),n.using&&(r.using=n.using),r},t.ui.position.flipcenter={left:function(n,i){var r=n.left;t.ui.position.flip.left.call(this,n,i);var o=i.within,a=o.isWindow?o.scrollLeft:o.offset.left,s=o.width,l=n.left-i.collisionPosition.marginLeft,u=a-l,c=l+i.collisionWidth-s-a;(u>0||c>0)&&("right"===i.at[0]?r-=i.targetWidth/2:"left"===i.at[0]&&(r+=i.targetWidth/2),r-=("rtl"===e.DomUtils.getReadingDirection()?-1:1)*(i.elemWidth/2),n.left=Math.max(0,r))},top:function(e,n){var i=e.top;t.ui.position.flip.top.call(this,e,n);var r=n.within,o=r.isWindow?r.scrollTop:r.offset.top,a=n.within.height,s=e.top-n.collisionPosition.marginTop,l=o-s,u=s+n.collisionHeight-a-o;(l>0||u>0)&&("top"===n.at[1]?i+=n.targetHeight/2:"bottom"===n.at[1]&&(i-=n.targetHeight/2),i+=n.elemHeight/2,e.top=Math.max(0,i))}};var o=t.ui.position.flip.left;t.ui.position.flip={left:o.bind(this),top:function(e,t){var n,i,r=t.within,o=r.offset.top+r.scrollTop,a=r.height,s=r.isWindow?r.scrollTop:r.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-s,c=l+t.collisionHeight-a-s;n="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,i="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0;var p,d,h=-2*t.offset[1];u<0?((p=e.top+n+i+h+t.collisionHeight-a-o)<0||pc&&(e.top+=n+i+h):c>0&&((d=e.top-t.collisionPosition.marginTop+n+i+h-s)>0||Math.abs(d)");r.addClass([n,"content"].join("-")),r.attr("role","presentation"),r.append(i[0].childNodes),r.appendTo(i),this._content=r,this._setChrome(),this._setupFocus(i);var o=this.options;o.position=e.PositionUtils.coerceToJet(o.position)},_AfterCreate:function(){this._super(),this.element.uniqueId(),this._createTail()},_destroy:function(){e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN&&this._closeImplicitly(),this._setWhenReady("none"),this._destroyTail(),delete this._popupServiceEvents;var t=this.element;t.hide().attr("aria-hidden","true").removeUniqueId();var n=this._content;delete this._content,t.append(n[0].childNodes),n.remove();var i=this._closeDelayTimer;i&&(delete this._closeDelayTimer,i()),this._super()},open:function(t,n){if(!this._isOperationPending("open",[t,n])){e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN&&this._closeImplicitly();var i=this.element,r=e.ZOrderUtils.getStatus(i);if(r===e.ZOrderUtils.STATUS.CLOSE||r===e.ZOrderUtils.STATUS.UNKNOWN)if(e.ZOrderUtils.setStatus(i,e.ZOrderUtils.STATUS.BEFORE_OPEN),!1!==this._trigger("beforeOpen")){this._setWhenReady("open"),this._setLauncher(t);var o=this._launcher,a=this.options;(n=n||a.position).of||(this._hasPositionOfLauncherOverride=!0,n.of=o),this._setPosition(n),this._setAutoDismiss(a.autoDismiss),this._addDescribedBy(),this._IsCustomElement()&&i[0].hasAttribute("role")||i.attr("role",a.role);var s=this._getPositionAsJqUi(),l=this._getRootStyle(),u=[l,"layer"].join("-"),c=a.tail;"none"!==c&&(u+=" "+[l,"tail",c].join("-"));var p={};p[e.PopupService.OPTION.POPUP]=i,p[e.PopupService.OPTION.LAUNCHER]=o,p[e.PopupService.OPTION.POSITION]=s,p[e.PopupService.OPTION.EVENTS]=this._getPopupServiceEvents(),p[e.PopupService.OPTION.LAYER_SELECTORS]=u,p[e.PopupService.OPTION.MODALITY]=a.modality,p[e.PopupService.OPTION.CUSTOM_ELEMENT]=this._IsCustomElement(),e.PopupService.getInstance().open(p)}else e.ZOrderUtils.setStatus(this.element,r)}},_beforeOpenHandler:function(t){var n=t[e.PopupService.OPTION.POPUP],i=t[e.PopupService.OPTION.POSITION];n.show(),n.position(i);var r=this.options.animation;if(r&&r.open){var a=r.actionPrefix,s=a?[a,"open"].join("-"):"open";return o.startAnimation(n[0],s,e.PositionUtils.addTransformOriginAnimationEffectsOption(n,r.open),this)}},_afterOpenHandler:function(t){var n=t[e.PopupService.OPTION.POPUP],i=t[e.PopupService.OPTION.LAUNCHER];this._initVoiceOverAssist(),this._trigger("open"),this._intialFocus(),this._on(n,{keydown:this._keyHandler}),i&&i.length>0&&this._on(i,{keydown:this._keyHandler})},_GetContextMenu:function(){if(!this._IsCustomElement())return this._super();var t=e.BaseCustomElementBridge.getSlotMap(this._content[0]).contextMenu;return t&&t.length>0?t[0]:void 0},close:function(){if(!this._isOperationPending("close",[])){var t=this.element,n=e.ZOrderUtils.getStatus(t);if(n===e.ZOrderUtils.STATUS.OPEN)if(e.ZOrderUtils.setStatus(t,e.ZOrderUtils.STATUS.BEFORE_CLOSE),!1!==this._trigger("beforeClose")||this._ignoreBeforeCloseResultant){this._setWhenReady("close");var i=this._launcher;this._off(t,"keydown"),i&&i.length>0&&this._off(i,"keydown"),this._restoreFocus(),this._destroyVoiceOverAssist();var r={};r[e.PopupService.OPTION.POPUP]=t,e.PopupService.getInstance().close(r)}else e.ZOrderUtils.setStatus(t,n)}},_beforeCloseHandler:function(t){var n=t[e.PopupService.OPTION.POPUP],i=this.options.animation;if(!this._ignoreBeforeCloseResultant&&i&&i.close){var r=i.actionPrefix,a=r?[r,"close"].join("-"):"close";return o.startAnimation(n[0],a,e.PositionUtils.addTransformOriginAnimationEffectsOption(n,i.close),this).then(function(){n.hide()})}n.hide()},_afterCloseHandler:function(e){this._removeDescribedBy(),this._setAutoDismiss(),delete this._launcher,this._trigger("close"),this._hasPositionOfLauncherOverride&&(this.options.position.of=null,delete this._hasPositionOfLauncherOverride)},isOpen:function(){var t=e.ZOrderUtils.getStatus(this.element);return t===e.ZOrderUtils.STATUS.OPENING||t===e.ZOrderUtils.STATUS.OPEN||t===e.ZOrderUtils.STATUS.BEFORE_CLOSE||t===e.ZOrderUtils.STATUS.CLOSING},refresh:function(){if(this._super(),e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN&&this._reposition()){var t=this.element;e.PopupService.getInstance().triggerOnDescendents(t,e.PopupService.EVENT.POPUP_REFRESH)}},_setOption:function(t,n){var i=this.options;switch(t){case"tail":n!==i.tail&&this._setTail(n);break;case"chrome":n!==i.chrome&&this._setChrome(n);break;case"position":return this._setPosition(n),void this.refresh();case"autoDismiss": e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN&&n!==i.autoDismiss&&this._setAutoDismiss(n);break;case"modality":if(e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN){var r=this.element,o={};o[e.PopupService.OPTION.POPUP]=r,o[e.PopupService.OPTION.MODALITY]=n,e.PopupService.getInstance().changeOptions(o)}}this._superApply(arguments)},_getRootStyle:function(){return"oj-popup"},_setTail:function(e){this._destroyTail(),this._createTail(e),this._reposition()},_createTail:function(n){var i=n||this.options.tail;if("none"!==i){var r=this._getRootStyle(),o=[r,"tail"].join("-"),a=[o,i].join("-"),s=t("
").hide();s.addClass(o).addClass(a),s.attr("role","presentation"),this._tailId=s.attr("id",this._getSubId("tail")).attr("id");var l=this.element;if(s.appendTo(l),l.addClass(a),e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN){var u=[r,"layer"].join("-");u+=" "+a;var c={};c[e.PopupService.OPTION.POPUP]=l,c[e.PopupService.OPTION.LAYER_SELECTORS]=u,e.PopupService.getInstance().changeOptions(c)}}},_getTail:function(){var e=this._tailId;return e?t(document.getElementById(e)):null},_destroyTail:function(){var t=this._getTail();t&&t.remove(),delete this._tailId;var n=this.options.tail,i=this._getRootStyle(),r=[i,"tail",n].join("-"),o=this.element;if(o.removeClass(r),e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN){var a=[i,"layer"].join("-"),s={};s[e.PopupService.OPTION.POPUP]=o,s[e.PopupService.OPTION.LAYER_SELECTORS]=a,e.PopupService.getInstance().changeOptions(s)}},_setChrome:function(e){var t=e||this.options.chrome,n=[this._getRootStyle(),"no-chrome"].join("-"),i=this.element;"default"===t&&i.hasClass(n)?i.removeClass(n):"none"!==t||i.hasClass(n)||i.addClass(n)},_setLauncher:function(n){var i=n;if(i?"string"===t.type(i)?i=t(i):1===i.nodeType&&(i=t(i)):i=t(document.activeElement),i instanceof t&&i.length>1)for(var r=this.element,o=0;o0){var o=r[0],a=r[r.length-1],s=this.element;o!==i&&s[0]!==i||!e.shiftKey?a!==i||e.shiftKey||(e.preventDefault(),a===o?(s.attr("tabindex","-1"),s.focus()):t(o).focus()):(e.preventDefault(),o===a&&o===i?(s.attr("tabindex","-1"),s.focus()):t(a).focus())}else e.preventDefault(),"modeless"===this.options.modality?this._launcher.focus():this.close()}}},_setAutoDismiss:function(t){var n=this._focusLossCallback,i=this._getPopupServiceEvents();if(n&&(delete i[e.PopupService.EVENT.POPUP_AUTODISMISS],delete this._focusLossCallback),"focusLoss"===t&&(n=this._dismissalHandler.bind(this),this._focusLossCallback=n,i[e.PopupService.EVENT.POPUP_AUTODISMISS]=n),e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN){var r=this.element,o={};o[e.PopupService.OPTION.POPUP]=r,o[e.PopupService.OPTION.EVENTS]=i,e.PopupService.getInstance().changeOptions(o)}},_dismissalHandler:function(t){if(e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN){var n=this._launcher,i=this.element.parent(),r=t.target,o=this._focusSkipLink;if(o){var a=o.getLink();if(a&&e.DomUtils.isAncestorOrSelf(a[0],r))return}if(!e.DomUtils.isAncestorOrSelf(n[0],r)&&!e.DomUtils.isAncestorOrSelf(i[0],r)){if(e.FocusUtils.isFocusable(r)){if("mousedown"===t.type||"touchstart"===t.type)return;this._ignoreRestoreFocus=!0}this.close()}}},_addDescribedBy:function(){var e=this._launcher,n=this.element.attr("id"),i=e.attr("aria-describedby"),r=i?i.split(/\s+/):[];r.push(n),i=t.trim(r.join(" ")),e.attr("aria-describedby",i)},_removeDescribedBy:function(){var e=this._launcher,n=this.element;if(e&&0!==e.length){var i=n.attr("id"),r=e.attr("aria-describedby"),o=r?r.split(/\s+/):[],a=t.inArray(i,o);-1!==a&&o.splice(a,1),(r=t.trim(o.join(" ")))?e.attr("aria-describedby",r):e.removeAttr("aria-describedby")}},_initVoiceOverAssist:function(){var t,n=e.AgentUtils.getAgentInfo().os===e.AgentUtils.OS.IOS||e.AgentUtils.getAgentInfo().os===e.AgentUtils.OS.ANDROID,i=this._liveRegion;i||(i=new e.PopupLiveRegion,this._liveRegion=i);var r=this._deriveInitialFocus();if(t=n?this.getTranslatedString("none"===r?"ariaLiveRegionInitialFocusNoneTouch":"ariaLiveRegionInitialFocusFirstFocusableTouch"):this.getTranslatedString("none"===r?"ariaLiveRegionInitialFocusNone":"ariaLiveRegionInitialFocusFirstFocusable"),i.announce(t),n){var o=this._getSubId("focusSkipLink"),a=this._launcher,s=this._intialFocus.bind(this,!0);t=this.getTranslatedString("ariaFocusSkipLink"),this._focusSkipLink=new e.PopupSkipLink(a,t,s,o);var l=this._content,u=this._getSubId("closeSkipLink");s=this._closeImplicitly.bind(this),t=this.getTranslatedString("ariaCloseSkipLink"),this._closeSkipLink=new e.PopupSkipLink(l,t,s,u)}},_destroyVoiceOverAssist:function(){this._liveRegion.destroy(),delete this._liveRegion;var e=this._focusSkipLink;e&&(e.destroy(),delete this._focusSkipLink);var t=this._closeSkipLink;t&&(t.destroy(),delete this._closeSkipLink)},_getSubId:function(t){var n=this.element.attr("id");return e.StringUtils.isEmptyOrUndefined(n)&&(n=this.uuid),[n,t].join("_")},_surrogateRemoveHandler:function(){var t=this.element;e.ZOrderUtils.getStatus(t)===e.ZOrderUtils.STATUS.OPEN&&t.remove()},_getPopupServiceEvents:function(){if(!this._popupServiceEvents){var t={};this._popupServiceEvents=t,t[e.PopupService.EVENT.POPUP_CLOSE]=this._closeImplicitly.bind(this),t[e.PopupService.EVENT.POPUP_REMOVE]=this._surrogateRemoveHandler.bind(this),t[e.PopupService.EVENT.POPUP_REFRESH]=this.refresh.bind(this),t[e.PopupService.EVENT.POPUP_BEFORE_OPEN]=this._beforeOpenHandler.bind(this),t[e.PopupService.EVENT.POPUP_AFTER_OPEN]=this._afterOpenHandler.bind(this),t[e.PopupService.EVENT.POPUP_BEFORE_CLOSE]=this._beforeCloseHandler.bind(this),t[e.PopupService.EVENT.POPUP_AFTER_CLOSE]=this._afterCloseHandler.bind(this)}return this._popupServiceEvents},_closeImplicitly:function(){this._ignoreBeforeCloseResultant=!0,this.close(),delete this._ignoreBeforeCloseResultant},_setWhenReady:function(t){var n=this._whenReadyMediator;n&&(n.destroy(),delete this._whenReadyMediator),["open","close"].indexOf(t)<0||(this._whenReadyMediator=new e.PopupWhenReadyMediator(this.element,t,"ojPopup",this._IsCustomElement()))},_isOperationPending:function(e,t){var n=this._whenReadyMediator;return!!n&&n.isOperationPending(this,e,e,t)},_setupFocus:function(e){var n=this;this._focusable({applyHighlight:!0,setupHandlers:function(i,r){n._on(e,{focus:function(e){i(t(e.currentTarget))},blur:function(e){r(t(e.currentTarget))}})}})},_NotifyDetached:function(){e.ZOrderUtils.getStatus(this.element)===e.ZOrderUtils.STATUS.OPEN&&this._closeImplicitly(),this._super()}}),r.setDefaultOptions({ojPopup:{modality:r.createDynamicPropertyGetter(function(){return(i.parseJSONFromFontFamily("oj-popup-option-defaults")||{}).modality}),animation:r.createDynamicPropertyGetter(function(){return(i.parseJSONFromFontFamily("oj-popup-option-defaults")||{}).animation})}}),l.extension._WIDGET_NAME="ojPopup",e.CustomElementBridge.register("oj-popup",{metadata:l})}),define("ojs/ojlabel",["ojs/ojcore","jquery","hammerjs","ojs/ojlogger","ojs/ojcontext","ojs/ojjquery-hammer","ojs/ojcomponentcore","ojs/ojpopup"],function(e,t,n,i,r){"use strict";var o={properties:{for:{type:"string"},help:{type:"object",value:{definition:null,source:null},properties:{definition:{type:"string"},source:{type:"string"}}},labelId:{type:"string"},showRequired:{type:"boolean",value:!1},translations:{type:"object",value:{},properties:{tooltipHelp:{type:"string"},tooltipRequired:{type:"string"}}}},methods:{refresh:{},setProperty:{},getProperty:{},setProperties:{},getNodeBySubId:{},getSubIdByNode:{}},extension:{}};e.__registerWidget("oj.ojLabel",t.oj.baseComponent,{version:"1.0.0",defaultElement:"
"},e.InlineMessagingStrategy.prototype._removeMessagingContentRootDom=function(){if(null!=this.$messagingContentRoot){var e=this.$messagingContentRoot[0];this._removeAriaDescribedBy(this.$messagingContentRoot),e.parentNode.removeChild(e),this.$messagingContentRoot=null}},e.InlineMessagingStrategy.prototype._addAriaDescribedBy=function(n){var i,r,o,a,s=(r=this.GetLauncher())[0];e.Assert.assertPrototype(r,t),e.Assert.assertPrototype(n,t),o=n.uniqueId()[0].getAttribute("id"),(a=(i=s.getAttribute("aria-describedby"))?i.split(/\s+/):[]).push(o),null==(i=a.join(" ").trim())?s.removeAttribute("aria-describedby"):s.setAttribute("aria-describedby",i)},e.InlineMessagingStrategy.prototype._addAriaLive=function(n){e.Assert.assertPrototype(n,t),n[0].setAttribute("aria-live","polite")},e.InlineMessagingStrategy.prototype._removeAriaDescribedBy=function(n){var i,r,o,a,s;o=this.GetLauncher(),e.Assert.assertPrototype(o,t),e.Assert.assertPrototype(n,t),a=n[0].getAttribute("id"),-1!==(r=(s=(i=o[0].getAttribute("aria-describedby"))?i.split(/\s+/):[]).indexOf(a))&&s.splice(r,1),(i=s.join(" ").trim())?o[0].setAttribute("aria-describedby",i):o[0].removeAttribute("aria-describedby")},e.InlineMessagingStrategy.prototype._buildInlineHtml=function(){var e;return this.ShowMessages()?(e=this.GetComponent().document[0],this._buildMessagesHtml(e)):""},e.InlineMessagingStrategy.prototype._buildMessagesHtml=function(t){var n,i,r="";return this.HasMessages()&&(i=this.GetMessages(),n=this.GetMaxSeverity(),r=e.PopupMessagingStrategyUtils.buildMessagesHtml(t,i,n,!0)),r},e.PopupMessagingStrategy=function(e){this.Init(e)},e.ComponentMessaging.registerMessagingStrategy(e.ComponentMessaging._DISPLAY_TYPE.NOTEWINDOW,e.PopupMessagingStrategy),e.Object.createSubclass(e.PopupMessagingStrategy,e.MessagingStrategy,"oj.PopupMessagingStrategy"),e.PopupMessagingStrategy._DEFAULTS_BY_COMPONENT={ojRadioset:{position:"launcher",events:{open:"focusin mouseenter press",close:"mouseleave"}},ojCheckboxset:{position:"launcher",events:{open:"focusin mouseenter press",close:"mouseleave"}},ojInputText:{position:"launcher",events:{open:"focusin"}},ojTextArea:{position:"launcher",events:{open:"focusin"}},ojInputPassword:{position:"launcher",events:{open:"focusin"}},ojSwitch:{position:"launcher",events:{open:"focusin mouseenter",close:"mouseleave"}},ojSlider:{position:"launcher",events:{open:"focusin mouseenter",close:"mouseleave"}},ojColorSpectrum:{position:"launcher",events:{open:"focusin mouseenter",close:"mouseleave"}},ojColorPalette:{position:"launcher",events:{open:"focusin mouseenter",close:"mouseleave"}},default:{position:"launcher-wrapper",events:{open:"focusin"}}},e.PopupMessagingStrategy._SELECTOR_FORMCONTROL_HINT="oj-form-control-hint",e.PopupMessagingStrategy._SELECTOR_FORMCONTROL_HINT_CONVERTER="oj-form-control-hint-converter",e.PopupMessagingStrategy._SELECTOR_FORMCONTROL_HINT_VALIDATOR="oj-form-control-hint-validator",e.PopupMessagingStrategy._SELECTOR_FORMCONTROL_HINT_TITLE="oj-form-control-hint-title",e.PopupMessagingStrategy._OPEN_NAMESPACE=".ojPopupMessagingOpen",e.PopupMessagingStrategy._CLOSE_NAMESPACE=".ojPopupMessagingClose",e.PopupMessagingStrategy.prototype.activate=function(t){e.PopupMessagingStrategy.superclass.activate.call(this,t),this._initMessagingPopup()},e.PopupMessagingStrategy.prototype.reactivate=function(t){e.PopupMessagingStrategy.superclass.reactivate.call(this,t),this._updatePopupIfOpenOrComponentHasFocus()},e.PopupMessagingStrategy.prototype.update=function(){e.PopupMessagingStrategy.superclass.update.call(this),this._updatePopupIfOpenOrComponentHasFocus()},e.PopupMessagingStrategy.prototype.deactivate=function(){this._unregisterLauncherEvents(),this._destroyTooltip(),e.PopupMessagingStrategy.superclass.deactivate.call(this)},e.PopupMessagingStrategy.prototype.close=function(){this._closePopup()},e.PopupMessagingStrategy.prototype._closePopup=function(){this._queueAction(function(e){return this._isPopupInitialized()?(e&&this._setActionResolver(this.$messagingContentRoot,"close",e),void this.$messagingContentRoot.ojPopup("close")):void(e&&e(!0))}.bind(this))},e.PopupMessagingStrategy.prototype._initMessagingPopup=function(){this._openPopupCallback||this._registerLauncherEvents()},e.PopupMessagingStrategy.prototype._addAnimateEventListeners=function(e){var t=function(e,t,n){var i=this.GetComponent();i&&i._trigger&&(t.stopPropagation(),i._trigger(e,null,n)||t.preventDefault())};e.on("ojanimatestart.notewindow",t.bind(this,"animateStart")),e.on("ojanimateend.notewindow",t.bind(this,"animateEnd"))},e.PopupMessagingStrategy.prototype._removeAnimateEventListeners=function(e){e.off("ojanimatestart.notewindow"),e.off("ojanimateend.notewindow")},e.PopupMessagingStrategy.prototype._setBusyState=function(e){var t=this.GetComponent(),n=t?t.element:null,i=n?n[0]:null,o=r.getContext(i).getBusyContext(),a="The page is waiting for note window ";return i&&i.id&&(a+='for "'+i.id+'" '),a+="to "+e,o.addBusyState({description:a})},e.PopupMessagingStrategy.prototype._setActionResolver=function(e,t,n){var i;this._actionCount>1&&(i=e.ojPopup("option","animation"),e.ojPopup("option","animation",null));var r=this._setBusyState(t);e.one("oj"+t,function(){i&&e.ojPopup("option","animation",i),r(),n(!0)})},e.PopupMessagingStrategy.prototype._queueAction=function(e){if(this.GetComponent()._IsCustomElement()){var t=this,n=function(e){var n=new Promise(e);return n.then(function(){t._actionCount-=1}),n};this._actionCount?(this._actionCount+=1,this._actionPromise=this._actionPromise.then(function(){return n(e)})):(this._actionCount=1,this._actionPromise=n(e))}else e(null)},e.PopupMessagingStrategy.prototype._openPopup=function(t){this._queueAction(function(n){var i,r,o;if(this._canOpenPopup()&&(r=this._buildPopupHtml(),!e.StringUtils.isEmptyOrUndefined(r))){var a=this._getPopupElement(),s=a.ojPopup("isOpen");if((i=e.PopupMessagingStrategyPoolUtils.getPopupContentNode(a)).innerHTML="",i.innerHTML=r,!s)return o=this.GetLauncher(),t&&"press"===t.type&&this._openPopupOnPressEvent(o),n&&this._setActionResolver(a,"open",n),void a.ojPopup("open",o);s&&a.ojPopup("refresh")}n&&n(!0)}.bind(this))},e.PopupMessagingStrategy.prototype._openPopupOnPressEvent=function(e){this._inPressEvent=!0,e[0].addEventListener("click",this._eatChangeAndClickOnPress,!0),e[0].addEventListener("change",this._eatChangeAndClickOnPress,!0),e.one("touchend",function(){setTimeout(function(){this._inPressEvent=!1},50)})},e.PopupMessagingStrategy.prototype._eatChangeAndClickOnPress=function(e){this._inPressEvent&&(e.preventDefault(),e.stopPropagation(),"click"===e.type&&(this._inPressEvent=!1))},e.PopupMessagingStrategy.prototype._canOpenPopup=function(){var e=this.GetComponent().options,t=e.disabled||!1,n=e.readOnly||!1;return!(t||n)},e.PopupMessagingStrategy.prototype._updatePopupIfOpenOrComponentHasFocus=function(){var t,n,i,r;t=this._buildPopupHtml(),null!=this.GetLauncher()&&(i=this.GetLauncher()[0].contains(document.activeElement),this._isPopupInitialized()?(r=this._getPopupElement()).ojPopup("isOpen")&&(t?((n=e.PopupMessagingStrategyPoolUtils.getPopupContentNode(r)).innerHTML="",n.innerHTML=t,r.ojPopup("refresh")):r.ojPopup("close")):i&&t&&this._openPopup(void 0))},e.PopupMessagingStrategy.prototype._unregisterLauncherEvents=function(){var t=this.GetLauncher();t.off(e.PopupMessagingStrategy._OPEN_NAMESPACE),t.off(e.PopupMessagingStrategy._CLOSE_NAMESPACE),t[0].removeEventListener("click",this._eatChangeAndClickOnPress,!0),t[0].removeEventListener("change",this._eatChangeAndClickOnPress,!0),e.DomUtils.isTouchSupported()&&(t.ojHammer().off("press"),t.ojHammer("destroy"),t.off("contextmenu",this._eatContextMenuOnOpenPopupListener),this._eatContextMenuOnOpenPopupListener=null,this._inPressEvent=null),this._openPopupCallback=null,this._closePopupCallback=null},e.PopupMessagingStrategy.prototype._registerLauncherEvents=function(){var t,i,r,o,a,s,l,u,c=this.GetLauncher();(o=(r=e.PopupMessagingStrategy._DEFAULTS_BY_COMPONENT[this.GetComponent().widgetName])?r.events:e.PopupMessagingStrategy._DEFAULTS_BY_COMPONENT.default.events).open&&((l=this._openPopupCallback)||(l=this._openPopup.bind(this),this._openPopupCallback=l),u=o.open.indexOf("press"),s=this._getNamespacedEvents(o.open.replace("press",""),e.PopupMessagingStrategy._OPEN_NAMESPACE),c.on(s,l),e.DomUtils.isTouchSupported()&&-1!==u&&(this._eatContextMenuOnOpenPopupListener=function(){return!1},c.on("contextmenu",this._eatContextMenuOnOpenPopupListener),a={recognizers:[[n.Press,{time:750}]]},c.ojHammer(a).on("press",l))),o.close&&((i=this._closePopupCallback)||(i=this._closePopup.bind(this),this._closePopupCallback=i),t=this._getNamespacedEvents(o.close,e.PopupMessagingStrategy._CLOSE_NAMESPACE),c.on(t,i))},e.PopupMessagingStrategy.prototype._getNamespacedEvents=function(e,t){var n,i,r;if(""===e||""===t)return e;r=(n=e.split(" ")).length,i=[];for(var o=0;o"+o+"
":""},e.PopupMessagingStrategy.prototype._isPopupInitialized=function(){return!!this.$messagingContentRoot&&a.isComponentInitialized(this.$messagingContentRoot,"ojPopup")},e.PopupMessagingStrategyUtils={},e.PopupMessagingStrategyUtils.buildHintHtml=function(t,n,i,r,o){var a;if(i){a=t.createElement("div");for(var s=o.split(" "),l=0,u=s.length;l=l.SEVERITY_LEVEL.CONFIRMATION;a--)for(g=f[a]||[],s=0;s0){var n=(t=e.PopupMessagingStrategyPoolUtils.getNextFreePopup())[0];t.ojPopup("destroy"),n.parentNode.removeChild(n)}},e.PopupMessagingStrategyPoolUtils._getPool=function(){var n=t("#"+e.PopupMessagingStrategyPoolUtils._MESSAGING_POPUP_POOL_ID);if(n.length>0)return n;var i=(n=t("
"))[0];return i.setAttribute("id",e.PopupMessagingStrategyPoolUtils._MESSAGING_POPUP_POOL_ID),i.setAttribute("role","presentation"),document.body.appendChild(i),n},e.PopupMessagingStrategyPoolUtils._getFreePoolCount=function(){return e.PopupMessagingStrategyPoolUtils._getPool().find("."+e.PopupMessagingStrategyPoolUtils._SELECTOR_MESSAGING).length},e.PopupMessagingStrategyPoolUtils._getPopupContentHtml=function(){return'
'},e.PopupMessagingStrategyPoolUtils._SELECTOR_MESSAGING_CONTAINER="oj-messaging-popup-container",e.PopupMessagingStrategyPoolUtils._SELECTOR_MESSAGING="oj-messaging-popup",e.PopupMessagingStrategyPoolUtils._MESSAGING_POPUP_POOL_ID="__oj_messaging_popup_pool"}),define("ojs/ojinputtext",["ojs/ojcore","jquery","ojs/ojvalidation-base","ojs/ojlogger","ojs/ojeditablevalue"],function(e,t,n,i){"use strict";var r={properties:{asyncValidators:{type:"Array",value:[]},autocomplete:{type:"string",value:"on",extension:{_COPY_TO_INNER_ELEM:!0}},autofocus:{type:"boolean",value:!1,extension:{_COPY_TO_INNER_ELEM:!0}},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},displayOptions:{type:"object",properties:{converterHint:{type:"Array|string",value:["placeholder","notewindow"]},helpInstruction:{type:"Array|string",value:["notewindow"]},messages:{type:"Array|string",value:["inline"]},validatorHint:{type:"Array|string",value:["notewindow"]}}},help:{type:"object",properties:{instruction:{type:"string",value:""}}},helpHints:{type:"object",properties:{definition:{type:"string",value:""},source:{type:"string",value:""}}},labelHint:{type:"string",value:""},labelledBy:{type:"string"},messagesCustom:{type:"Array",writeback:!0,value:[]},name:{type:"string",value:"",extension:{_COPY_TO_INNER_ELEM:!0}},placeholder:{type:"string"},rawValue:{type:"string",writeback:!0,readOnly:!0},readonly:{type:"boolean",value:!1},required:{type:"boolean",value:!1},translations:{type:"object",value:{},properties:{regexp:{type:"object",properties:{messageDetail:{type:"string"},messageSummary:{type:"string"}}},required:{type:"object",properties:{hint:{type:"string"},messageDetail:{type:"string"},messageSummary:{type:"string"}}}}},valid:{type:"string",writeback:!0,enumValues:["invalidHidden","invalidShown","pending","valid"],readOnly:!0},validators:{type:"Array",value:[]},value:{type:"string",writeback:!0}},methods:{refresh:{},validate:{},reset:{},showMessages:{},setProperty:{},getProperty:{},setProperties:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAnimateStart:{},ojAnimateEnd:{}},extension:{}},o={properties:{asyncValidators:{type:"Array",value:[]},autocomplete:{type:"string",value:"on",extension:{_COPY_TO_INNER_ELEM:!0}},autofocus:{type:"boolean",value:!1,extension:{_COPY_TO_INNER_ELEM:!0}},clearIcon:{type:"string",enumValues:["always","conditional","never"],value:"never"},converter:{type:"object",properties:{type:{type:"string"},options:{type:"object"}}},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},displayOptions:{type:"object",properties:{converterHint:{type:"Array|string",value:["placeholder","notewindow"]},helpInstruction:{type:"Array|string",value:["notewindow"]},messages:{type:"Array|string",value:["inline"]},validatorHint:{type:"Array|string",value:["notewindow"]}}},help:{type:"object",properties:{instruction:{type:"string",value:""}}},helpHints:{type:"object",properties:{definition:{type:"string",value:""},source:{type:"string", value:""}}},labelHint:{type:"string",value:""},labelledBy:{type:"string"},list:{type:"string",extension:{_COPY_TO_INNER_ELEM:!0}},messagesCustom:{type:"Array",writeback:!0,value:[]},name:{type:"string",value:"",extension:{_COPY_TO_INNER_ELEM:!0}},placeholder:{type:"string"},rawValue:{type:"string",writeback:!0,readOnly:!0},readonly:{type:"boolean",value:!1},required:{type:"boolean",value:!1},translations:{type:"object",value:{},properties:{regexp:{type:"object",properties:{messageDetail:{type:"string"},messageSummary:{type:"string"}}},required:{type:"object",properties:{hint:{type:"string"},messageDetail:{type:"string"},messageSummary:{type:"string"}}}}},valid:{type:"string",writeback:!0,enumValues:["invalidHidden","invalidShown","pending","valid"],readOnly:!0},validators:{type:"Array",value:[]},value:{type:"any",writeback:!0},virtualKeyboard:{type:"string",enumValues:["auto","email","number","search","tel","text","url"],value:"auto"}},methods:{refresh:{},validate:{},reset:{},showMessages:{},setProperty:{},getProperty:{},setProperties:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAnimateStart:{},ojAnimateEnd:{}},extension:{}},a={properties:{asyncValidators:{type:"Array",value:[]},autocomplete:{type:"string",value:"on",extension:{_COPY_TO_INNER_ELEM:!0}},autofocus:{type:"boolean",value:!1,extension:{_COPY_TO_INNER_ELEM:!0}},converter:{type:"object",properties:{type:{type:"string"},options:{type:"object"}}},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},displayOptions:{type:"object",properties:{converterHint:{type:"Array|string",value:["placeholder","notewindow"]},helpInstruction:{type:"Array|string",value:["notewindow"]},messages:{type:"Array|string",value:["inline"]},validatorHint:{type:"Array|string",value:["notewindow"]}}},help:{type:"object",properties:{instruction:{type:"string",value:""}}},helpHints:{type:"object",properties:{definition:{type:"string",value:""},source:{type:"string",value:""}}},labelHint:{type:"string",value:""},labelledBy:{type:"string"},messagesCustom:{type:"Array",writeback:!0,value:[]},name:{type:"string",value:"",extension:{_COPY_TO_INNER_ELEM:!0}},placeholder:{type:"string"},rawValue:{type:"string",writeback:!0,readOnly:!0},readonly:{type:"boolean",value:!1},required:{type:"boolean",value:!1},resizeBehavior:{type:"string",enumValues:["both","horizontal","none","vertical"],value:"none"},rows:{type:"number",extension:{_COPY_TO_INNER_ELEM:!0}},translations:{type:"object",value:{},properties:{regexp:{type:"object",properties:{messageDetail:{type:"string"},messageSummary:{type:"string"}}},required:{type:"object",properties:{hint:{type:"string"},messageDetail:{type:"string"},messageSummary:{type:"string"}}}}},valid:{type:"string",writeback:!0,enumValues:["invalidHidden","invalidShown","pending","valid"],readOnly:!0},validators:{type:"Array",value:[]},value:{type:"any",writeback:!0}},methods:{refresh:{},validate:{},reset:{},showMessages:{},setProperty:{},getProperty:{},setProperties:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAnimateStart:{},ojAnimateEnd:{}},extension:{}};e.__registerWidget("oj.inputBase",t.oj.editableValue,{version:"1.0.0",widgetEventPrefix:"oj",_ATTR_CHECK:[],_CLASS_NAMES:"",_WIDGET_CLASS_NAMES:"",_ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES:"",_GET_INIT_OPTIONS_PROPS_FOR_WIDGET:[{attribute:"disabled",validateOption:!0},{attribute:"pattern"},{attribute:"placeholder"},{attribute:"value"},{attribute:"readonly",option:"readOnly",validateOption:!0},{attribute:"required",coerceDomValue:!0,validateOption:!0},{attribute:"title"},{attribute:"spellcheck"}],_INPUT_HELPER_KEY:"",_BLUR_HANDLER_KEY:"blur",_KEYDOWN_HANDLER_KEY:"keydown",_KEYUP_HANDLER_KEY:"keyup",_COMPOSITIONSTART_HANDLER_KEY:"compositionstart",_COMPOSITIONEND_HANDLER_KEY:"compositionend",_INPUT_HANDLER_KEY:"input",_DROP_HANDLER_KEY:"drop",options:{asyncValidators:[],autocomplete:void 0,autofocus:!1,labelledBy:null,name:"",placeholder:"",rawValue:void 0,readOnly:!1,required:!1,validators:[]},_SaveAttributes:function(e){var t=this._superApply(arguments);return this._processAttrCheck(),t},_InitOptions:function(t,n){this._super(t,n),this._IsCustomElement()||e.EditableValueUtils.initializeOptionsFromDom(this._GET_INIT_OPTIONS_PROPS_FOR_WIDGET,n,this)},_ComponentCreate:function(){var e=this._superApply(arguments),t=this.options.readOnly;return this._rtl="rtl"===this._GetReadingDirection(),"boolean"==typeof t&&this.element.prop("readonly",t),this._DoWrapElement()?(this._wrapElementInRootDomElement(),this._DoWrapElementAndTriggers()&&this._WrapElement(),this._focusable({element:this._wrapper,applyHighlight:!0})):this._focusable({element:this.element,applyHighlight:!0}),this._defaultRegExpValidator={},this._defaultRegExpAsyncValidator={},this._eventHandlers=null,e},_AfterCreate:function(){var n=this._superApply(arguments),i=this;return this._refreshRequired(this.options.required),this._CLASS_NAMES&&this.element.addClass(this._CLASS_NAMES),this._attachDetachEventHandlers(),this._AppendInputHelper(),t.each(["disabled","readOnly"],function(e,t){i.options[t]&&i._processOptions(t,i.options[t])}),this._IsCustomElement()&&e.EditableValueUtils._setInputId(this._GetContentElement()[0],this.widget()[0].id,this.options.labelledBy),n},_IsRequired:function(){return this.options.required},_AfterSetOptionRequired:e.EditableValueUtils._AfterSetOptionRequired,_AfterSetOptionValidators:e.EditableValueUtils._AfterSetOptionValidators,_AfterSetOptionAsyncValidators:e.EditableValueUtils._AfterSetOptionAsyncValidators,_AfterSetOptionConverter:e.EditableValueUtils._AfterSetOptionConverter,_ResetConverter:e.EditableValueUtils._ResetConverter,_GetConverter:e.EditableValueUtils._GetConverter,_GetNormalizedValidatorsFromOption:e.EditableValueUtils._GetNormalizedValidatorsFromOption,_GetNormalizedAsyncValidatorsFromOption:e.EditableValueUtils._GetNormalizedAsyncValidatorsFromOption,_processOptions:function(e,t){"disabled"===e&&this.element.prop("disabled",t),"readOnly"===e&&(this.element.prop("readonly",t),this._refreshStateTheming("readOnly",t)),"disabled"!==e&&"readOnly"!==e||this._attachDetachEventHandlers()},_setOption:function(t,n,i){var r=this._superApply(arguments);if("disabled"===t||"readOnly"===t)this._processOptions(t,n);else if("pattern"===t)this._defaultRegExpValidator[e.ValidatorFactory.VALIDATOR_TYPE_REGEXP]=this._getImplicitRegExpValidator(),this._AfterSetOptionValidators();else if("labelledBy"===t&&this.options.labelledBy){var o=this._GetContentElement()[0].id;this._labelledByChangedForInputComp(this.options.labelledBy,o)}return r},_AfterSetOption:function(t,n,i){switch(this._superApply(arguments),t){case"readOnly":this._AfterSetOptionDisabledReadOnly(t,e.EditableValueUtils.readOnlyOptionOptions);break;case"required":this._AfterSetOptionRequired(t);break;case"validators":this._AfterSetOptionValidators(t);break;case"asyncValidators":this._AfterSetOptionAsyncValidators(t);break;case"converter":this._AfterSetOptionConverter(t)}},_destroy:function(){var t=this._superApply(arguments);return this.element.off("blur drop keydown keyup compositionstart compositionend input"),this._inputHelper&&this._inputHelper.remove(),this._DoWrapElement()&&!this._IsCustomElement()&&(this._DoWrapElementAndTriggers()?e.DomUtils.unwrap(this.element,this._wrapper):e.DomUtils.unwrap(this.element)),t},_SetLoading:function(){this._super(),this.element.prop("readonly",!0),this._refreshStateTheming("readOnly",!0)},_ClearLoading:function(){this._super(),this.element.prop("readonly",this.options.readOnly),this._refreshStateTheming("readOnly",this.options.readOnly)},_attachDetachEventHandlers:function(){if(this.options.readOnly||this.options.disabled){if(this._eventHandlers)for(var e=[this._BLUR_HANDLER_KEY,this._KEYDOWN_HANDLER_KEY,this._KEYUP_HANDLER_KEY,this._COMPOSITIONSTART_HANDLER_KEY,this._COMPOSITIONEND_HANDLER_KEY,this._INPUT_HANDLER_KEY,this._DROP_HANDLER_KEY],n=0,i=e.length;n").addClass(this._WIDGET_CLASS_NAMES)),this._wrapper=this.element.parent())},_WrapElement:function(){return t(this.element).wrap(t("
").addClass(this._ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES)).parent()},_AppendInputHelper:function(){if(this._INPUT_HELPER_KEY&&this._DoWrapElement()){var e=this.element.attr("aria-describedby")||"",n=this._GetSubId(this._INPUT_HELPER_KEY);e+=" "+n,this.element.attr("aria-describedby",e),this._inputHelper=t(""),this._AppendInputHelperParent().append(this._inputHelper)}},_EscapeXSS:function(e){return t(""+e+"").text()},_AppendInputHelperParent:function(){return this.widget()},_GetImplicitSyncValidators:function(){var n=this._superApply(arguments);return this.options.pattern&&(this._defaultRegExpValidator[e.ValidatorFactory.VALIDATOR_TYPE_REGEXP]=this._getImplicitRegExpValidator()),t.extend(this._defaultRegExpValidator,n)},_GetImplicitAsyncValidators:function(){var e=this._superApply(arguments);return t.extend(this._defaultRegExpAsyncValidator,e)},_CanSetValue:function(){return!!this._super()&&!this.options.readOnly},_refreshStateTheming:function(e,t){-1!==Object.keys(this._OPTION_TO_CSS_MAPPING).indexOf(e)&&this.widget().toggleClass(this._OPTION_TO_CSS_MAPPING[e],!!t)},_getImplicitRegExpValidator:function(){if(!this.options.pattern)return null;var i={pattern:this.options.pattern,label:this._getLabelText()};return t.extend(i,this.options.translations.regexp||{}),n.Validation.validatorFactory(e.ValidatorFactory.VALIDATOR_TYPE_REGEXP).createValidator(i)},_GetSubId:function(e){return this.uuid+"_"+e},_IsRTL:function(){return this._rtl},refresh:function(){var e=this._superApply(arguments);return this._rtl="rtl"===this._GetReadingDirection(),this._refreshRequired(this.options.required),e},_refreshRequired:e.EditableValueUtils._refreshRequired,_labelledByChangedForInputComp:e.EditableValueUtils._labelledByChangedForInputComp,_ValidateReturnBoolean:e.EditableValueUtils._ValidateReturnBoolean,_ValidateReturnPromise:e.EditableValueUtils._ValidateReturnPromise,getNodeBySubId:function(e){return this._super(e)},validate:e.EditableValueUtils.validate,_AriaRequiredUnsupported:function(){return!1},widget:function(){return this._DoWrapElement()?this._wrapper:this.element}},!0),e.__registerWidget("oj.ojInputPassword",t.oj.inputBase,{version:"1.0.0",defaultElement:"",widgetEventPrefix:"oj",_ATTR_CHECK:[{attr:"type",setMandatory:"password"}],_CLASS_NAMES:"oj-inputpassword-input",_WIDGET_CLASS_NAMES:"oj-inputpassword oj-form-control oj-component",options:{converter:null,pattern:"",value:void 0},getNodeBySubId:function(e){var t=this._superApply(arguments);return t||"oj-inputpassword-input"===e.subId&&(t=this.element?this.element[0]:null),t||null},_GetDefaultStyleClass:function(){return"oj-inputpassword"}}),e.__registerWidget("oj.ojInputText",t.oj.inputBase,{version:"1.0.0",defaultElement:"",widgetEventPrefix:"oj",_ATTR_CHECK:[{attr:"type",setMandatory:"text"}],_CLASS_NAMES:"oj-inputtext-input",_WIDGET_CLASS_NAMES:"oj-inputtext oj-form-control oj-component",_ALLOWED_TYPES:["email","number","search","tel","text","url"],_CLICK_HANDLER_KEY:"click",options:{clearIcon:"never",converter:null,list:"",pattern:"",virtualKeyboard:"auto"},_ComponentCreate:function(){var e=this._super(),t=this.options.clearIcon;return this._processClearIconAttr(t),this._AddHoverable(this._wrapper),this._SetInputType(this._ALLOWED_TYPES),e},_processClearIconAttr:function(e){var t=this._wrapper[0],n=t.querySelector("a.oj-inputtext-clear-icon-btn");if("never"===e||this.options.disabled||this.options.readOnly)n&&t.removeChild(n),t.classList.remove("oj-inputtext-clearicon-visible"),t.classList.remove("oj-inputtext-clearicon-conditional");else{var i,r;null===n&&((n=document.createElement("a")).className="oj-inputtext-clear-icon-btn oj-component-icon oj-clickable-icon-nocontext",n.setAttribute("tabindex","-1"),n.setAttribute("aria-hidden","true"),n.setAttribute("target","_blank"),(i=document.createElement("span")).className="oj-inputtext-clear-icon",n.appendChild(i),t.appendChild(n),n.addEventListener(this._CLICK_HANDLER_KEY,this._onClearIconClickHandler.bind(this))),"always"===e?t.classList.add("oj-inputtext-clearicon-visible"):(t.classList.remove("oj-inputtext-clearicon-visible"),t.classList.add("oj-inputtext-clearicon-conditional"),(r=t.classList.contains("oj-complete")?this.element[0].value:this.options.value)&&""!==r?t.classList.remove("oj-form-control-empty-clearicon"):t.classList.add("oj-form-control-empty-clearicon"))}},_AfterSetOption:function(e,t){switch(this._super(e,t),e){case"clearIcon":case"value":case"disabled":case"readOnly":this._processClearIconAttr(this.options.clearIcon);break;case"virtualKeyboard":this._SetInputType(this._ALLOWED_TYPES)}},_onInputHandler:function(e){this._super(e);var t=e.target,n=this._wrapper[0];"conditional"===this.options.clearIcon&&(""!==t.value?n.classList.remove("oj-form-control-empty-clearicon"):n.classList.add("oj-form-control-empty-clearicon"))},_onClearIconClickHandler:function(e){var t=this.element[0];t.value="",this._SetRawValue(t.value,e),t.focus(),this._wrapper[0].classList.add("oj-form-control-empty-clearicon")},_onBlurHandler:function(t){var n=this._wrapper[0],i=t.relatedTarget;i&&i.classList.contains("oj-inputtext-clear-icon-btn")&&i.parentElement&&e.DomUtils.isAncestorOrSelf(n,i.parentElement)?n.classList.add("oj-focus"):this._super(t)},getNodeBySubId:function(e){var t=this._superApply(arguments);return t||"oj-inputtext-input"===e.subId&&(t=this.element?this.element[0]:null),t||null},_GetDefaultStyleClass:function(){return"oj-inputtext"},_GetTranslationsSectionName:function(){return"oj-inputBase"},_SetInputType:e.EditableValueUtils._SetInputType}),e.__registerWidget("oj.ojTextArea",t.oj.inputBase,{version:"1.0.0",defaultElement:"