/**
 * Copyright (c) 2014, 2015, Oracle and/or its affiliates.
 * All rights reserved.
 */
"use strict";
define(["ojs/ojcore","jquery","ojL10n!ojtranslations/nls/localeElements","ojs/ojmessaging"],function(b,f,a){b.Ja={};o_("LocaleData",b.Ja,b);b.Ja.HO=function(a){b.Ja.$G=a};o_("LocaleData.setBundle",b.Ja.HO,b);b.Ja.u2=function(){return b.Ja.vJ("firstDay")};o_("LocaleData.getFirstDayOfWeek",b.Ja.u2,b);b.Ja.Pna=function(){return b.Ja.vJ("weekendStart")};o_("LocaleData.getWeekendStart",b.Ja.Pna,b);b.Ja.Ona=function(){return b.Ja.vJ("weekendEnd")};o_("LocaleData.getWeekendEnd",b.Ja.Ona,b);b.Ja.qy=function(a){if(null==
a||"abbreviated"!==a&&"narrow"!==a)a="wide";a=b.Ja.AI().days["stand-alone"][a];return[a.sun,a.mon,a.tue,a.wed,a.thu,a.fri,a.sat]};o_("LocaleData.getDayNames",b.Ja.qy,b);b.Ja.sy=function(a){if(null==a||"abbreviated"!==a&&"narrow"!==a)a="wide";a=b.Ja.AI().months["stand-alone"][a];return[a["1"],a["2"],a["3"],a["4"],a["5"],a["6"],a["7"],a["8"],a["9"],a["10"],a["11"],a["12"]]};o_("LocaleData.getMonthNames",b.Ja.sy,b);b.Ja.v3=function(){var a=b.Ja.AI().dateFormats["long"].toUpperCase(),c=a.indexOf("M"),
a=a.indexOf("Y");return c<a};o_("LocaleData.isMonthPriorToYear",b.Ja.v3,b);b.Ja.vJ=function(a){var c=b.Ja.bk(),d=b.Ja.Rda()||"001";a=c.supplemental.weekData[a];d=a[d];void 0===d&&(d=a["001"]);return d};b.Ja.AI=function(){var a=b.Ja.bk().main,c,d;for(d in a)if(a.hasOwnProperty(d)){c=a[d];break}return c.dates.calendars.gregorian};b.Ja.Rda=function(){var a=b.ba.qg();if(a&&(a=a.toUpperCase().split(/-|_/),2<=a.length)){var c=a[1];if(4==c.length){if(3<=a.length)return a[2]}else return c}return null};b.Ja.bk=
function(){var c=b.Ja.$G;return c?c:b.Cs()?(b.l.assert(void 0!==a,"LocaleElements module must be loaded"),a):{}};b.Ja.q9=function(b){a=b};b.pa={};o_("Validation",b.pa,b);b.pa.GH={};b.pa.wM={};b.pa.pU={};b.pa.tU={};b.pa.Bz={converter:{name:"oj.ConverterFactory",type:b.Pj},validator:{name:"oj.ValidatorFactory",type:b.Zc}};b.pa.bm=function(a,c){var d;a&&!c?d=b.pa.yB(a,b.pa.GH):a&&c&&(d=b.pa.Nt(a,c,b.pa.GH,b.pa.Bz.converter));return d};o_("Validation.converterFactory",b.pa.bm,b);b.pa.Fr=function(a,c){var d;
a&&!c?d=b.pa.yB(a,b.pa.wM):a&&c&&(d=b.pa.Nt(a,c,b.pa.wM,b.pa.Bz.validator));return d};o_("Validation.validatorFactory",b.pa.Fr,b);b.pa.o2=function(a){return b.pa.yB(a,b.pa.pU)};o_("Validation.getDefaultConverterFactory",b.pa.o2,b);b.pa.Bna=function(a){return b.pa.yB(a,b.pa.tU)};o_("Validation.getDefaultValidatorFactory",b.pa.Bna,b);b.pa.vS=function(a,c){var d=b.pa.Bz.converter;b.pa.Nt(a,c,b.pa.pU,d);b.pa.Nt(a,c,b.pa.GH,d)};b.pa.Ds=function(a,c){var d=b.pa.Bz.validator;b.pa.Nt(a,c,b.pa.tU,d);b.pa.Nt(a,
c,b.pa.wM,d)};b.pa.Eba=function(a,c,d){if(c&&!b.pa.Fia(a,c))throw Error("Factory instance does not implement the methods expected by the factory of type "+d);};b.pa.yB=function(a,c){b.l.vo(a);var d=null;a&&(a=a.toLowerCase(),d=(c[a]||{}).instance||null);return d};b.pa.Fia=function(a,c){var d=!0,e;b.l.Df(a);b.l.Df(c);for(e in c)if(c.hasOwnProperty(e)&&"function"===typeof c[e]&&!a[e]&&"function"!==typeof a[e]){d=!1;break}return d};b.pa.Nt=function(a,c,d,e){b.l.vo(a);b.l.Df(c);if(a){var f={};f.instance=
c;b.pa.Eba(c,e.type,e.name);d[a.toLowerCase()]=f}};b.Pj={CONVERTER_TYPE_NUMBER:"number",CONVERTER_TYPE_DATETIME:"datetime",createConverter:function(){}};o_("ConverterFactory",b.Pj,b);b.Zc={VALIDATOR_TYPE_REQUIRED:"required",VALIDATOR_TYPE_REGEXP:"regexp",VALIDATOR_TYPE_NUMBERRANGE:"numberRange",VALIDATOR_TYPE_LENGTH:"length",VALIDATOR_TYPE_DATETIMERANGE:"dateTimeRange",VALIDATOR_TYPE_DATERESTRICTION:"dateRestriction",createValidator:function(){}};o_("ValidatorFactory",b.Zc,b);b.qe=function(a){this.Init(a)};
o_("Converter",b.qe,b);b.b.ga(b.qe,b.b,"oj.Converter");b.qe.prototype.Init=function(a){b.qe.q.Init.call(this);this.gb=a};b.b.g("Converter.prototype.Init",{Init:b.qe.prototype.Init});b.qe.prototype.uc=function(){b.l.Wb();return null};b.b.g("Converter.prototype.getHint",{uc:b.qe.prototype.uc});b.qe.prototype.Mh=function(){return this.gb||{}};b.b.g("Converter.prototype.getOptions",{Mh:b.qe.prototype.Mh});b.qe.prototype.parse=function(){b.l.Wb();return null};b.b.g("Converter.prototype.parse",{parse:b.qe.prototype.parse});
b.qe.prototype.format=function(){b.l.Wb();return null};b.b.g("Converter.prototype.format",{format:b.qe.prototype.format});b.qe.prototype.resolvedOptions=function(){var a={};f.extend(a,this.gb);return a};b.b.g("Converter.prototype.resolvedOptions",{resolvedOptions:b.qe.prototype.resolvedOptions});b.Je=function(a,c){var d=new b.X(a,c,b.X.Qb.ERROR);this.Init(d)};o_("ConverterError",b.Je,b);b.Je.prototype=Error();b.Je.prototype.Init=function(a){var b=a.detail,c=a.summary;this.Et=a;this.name="Converter Error";
this.message=b||c};b.b.g("ConverterError.prototype.Init",{Init:b.Je.prototype.Init});b.Je.prototype.uu=function(){return this.Et};b.b.g("ConverterError.prototype.getMessage",{uu:b.Je.prototype.uu});b.Xh=function(){this.Init()};o_("NumberConverter",b.Xh,b);b.b.ga(b.Xh,b.qe,"oj.NumberConverter");b.Xh.prototype.Init=function(a){b.Xh.q.Init.call(this,a)};b.b.g("NumberConverter.prototype.Init",{Init:b.Xh.prototype.Init});b.Xh.prototype.format=function(a){return b.Xh.q.format.call(this,a)};b.b.g("NumberConverter.prototype.format",
{format:b.Xh.prototype.format});b.Xh.prototype.parse=function(a){return b.Xh.q.parse.call(this,a)};b.b.g("NumberConverter.prototype.parse",{parse:b.Xh.prototype.parse});b.Pb=function(a){this.Init(a)};o_("DateTimeConverter",b.Pb,b);b.b.ga(b.Pb,b.qe,"oj.DateTimeConverter");b.Pb.prototype.Init=function(a){b.Pb.q.Init.call(this,a)};b.b.g("DateTimeConverter.prototype.Init",{Init:b.Pb.prototype.Init});b.Pb.prototype.format=function(a){return b.Pb.q.format.call(this,a)};b.b.g("DateTimeConverter.prototype.format",
{format:b.Pb.prototype.format});b.Pb.prototype.Fy=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isHourInDaySet",{Fy:b.Pb.prototype.Fy});b.Pb.prototype.Ey=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isHourInAMPMSet",{Ey:b.Pb.prototype.Ey});b.Pb.prototype.Hy=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isMinuteSet",{Hy:b.Pb.prototype.Hy});b.Pb.prototype.Jy=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isSecondSet",{Jy:b.Pb.prototype.Jy});b.Pb.prototype.Gy=
function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isMilliSecondSet",{Gy:b.Pb.prototype.Gy});b.Pb.prototype.Ky=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isYearSet",{Ky:b.Pb.prototype.Ky});b.Pb.prototype.Iy=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isMonthSet",{Iy:b.Pb.prototype.Iy});b.Pb.prototype.Dy=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isDaySet",{Dy:b.Pb.prototype.Dy});b.Pb.prototype.Cy=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.isDayNameSet",
{Cy:b.Pb.prototype.Cy});b.Pb.prototype.wo=function(){b.l.Wb()};b.b.g("DateTimeConverter.prototype.calculateWeek",{wo:b.Pb.prototype.wo});b.Pb.prototype.parse=function(a){return b.Pb.q.parse.call(this,a)};b.b.g("DateTimeConverter.prototype.parse",{parse:b.Pb.prototype.parse});b.Zf=function(){this.Init()};o_("Validator",b.Zf,b);b.b.ga(b.Zf,b.b,"oj.Validator");b.Zf.prototype.Init=function(){b.Zf.q.Init.call(this)};b.b.g("Validator.prototype.Init",{Init:b.Zf.prototype.Init});b.Zf.prototype.validate=function(){b.l.Wb()};
b.b.g("Validator.prototype.validate",{validate:b.Zf.prototype.validate});b.Zf.prototype.uc=function(){b.l.Wb()};b.b.g("Validator.prototype.getHint",{uc:b.Zf.prototype.uc});b.yh=function(a,c){var d=new b.X(a,c,b.X.Qb.ERROR);this.Init(d)};o_("ValidatorError",b.yh,b);b.yh.prototype=Error();b.yh.prototype.Init=function(a){var b=a.detail,c=a.summary;this.Et=a;this.name="Validator Error";this.message=b||c};b.b.g("ValidatorError.prototype.Init",{Init:b.yh.prototype.Init});b.yh.prototype.uu=function(){return this.Et};
b.b.g("ValidatorError.prototype.getMessage",{uu:b.yh.prototype.uu});b.ef=function(a){this.Init(a)};o_("RequiredValidator",b.ef,b);b.b.ga(b.ef,b.Zf,"oj.RequiredValidator");b.ef.JF="oj-validator.required.detail";b.ef.KF="oj-validator.required.summary";b.ef.prototype.Init=function(a){b.ef.q.Init.call(this);this.gb=a};b.b.g("RequiredValidator.prototype.Init",{Init:b.ef.prototype.Init});b.ef.prototype.validate=function(a){var c,d,e={},e="";if("number"===typeof a&&0===a||a&&0!==a.length)return!0;this.gb&&
(c=this.gb.messageDetail||this.gb.message||null,d=this.gb.messageSummary||null,e=this.gb.label||"");e={label:e};a=d?b.ha.Ib(d,e):b.ha.A(this.nJ(),e);c=c?b.ha.Ib(c,e):b.ha.A(this.GI(),e);throw new b.yh(a,c);};b.b.g("RequiredValidator.prototype.validate",{validate:b.ef.prototype.validate});b.ef.prototype.uc=function(){var a="";this.gb&&this.gb.hint&&(a=b.ha.A(this.gb.hint));return a};b.b.g("RequiredValidator.prototype.getHint",{uc:b.ef.prototype.uc});b.ef.prototype.nJ=function(){return b.ef.KF};b.ef.prototype.GI=
function(){return b.ef.JF};b.Qi=function(a){this.Init(a)};o_("DateRestrictionValidator",b.Qi,b);b.b.ga(b.Qi,b.Zf,"oj.DateRestrictionValidator");b.Qi.prototype.Init=function(a){b.Qi.q.Init.call(this);this.nba=a.dayFormatter;this.Gc=b.ob.getConverterInstance(a.converter);a&&(this.uha=a.messageSummary||null,this.tha=a.messageDetail||null)};b.b.g("DateRestrictionValidator.prototype.Init",{Init:b.Qi.prototype.Init});b.Qi.prototype.Nfa=function(a){var b=this.nba;if(b){var c=a.getFullYear(),d=a.getMonth()+
1;a=a.getDate();return(b=b({fullYear:c,month:d,date:a}))&&b.disabled}return!1};b.Qi.prototype.validate=function(a){var c="",d="",d=b.ha,c=this.uha,e=this.tha,f=a?this.Gc.format(a):a,n=a?b.ob.isoToLocalDate(a):null;if(null===a)return a;if(this.Nfa(n))throw c=c?d.Ib(c,{value:f}):d.A("oj-validator.restriction.date.messageSummary",{value:f}),d=e?d.Ib(e,{value:f}):d.A("oj-validator.restriction.date.messageDetail",{value:f}),new b.yh(c,d);return a};b.b.g("DateRestrictionValidator.prototype.validate",{validate:b.Qi.prototype.validate});
b.Qi.prototype.uc=function(){return null};b.b.g("DateRestrictionValidator.prototype.getHint",{uc:b.Qi.prototype.uc});b.Qj=function(a){this.Init(a)};o_("DateTimeRangeValidator",b.Qj,b);b.b.ga(b.Qj,b.Zf,"oj.DateTimeRangeValidator");b.Qj.prototype.Init=function(a){b.Qj.q.Init.call(this);this.Gc=b.ob.getConverterInstance(a.converter);this.$g=a.min||null;this.Gh=a.max||null;a&&(this.Ow=a.hint||{},this.iw=a.messageSummary||{},this.hw=a.messageDetail||{})};b.b.g("DateTimeRangeValidator.prototype.Init",{Init:b.Qj.prototype.Init});
b.Qj.prototype.validate=function(a){var c=this.iw,d=this.hw,e=d.rangeOverflow,d=d.rangeUnderflow,f=c.rangeOverflow,c=c.rangeUnderflow,n=b.ob,p=this.$g,r=this.Gh,s="",q="",t=b.ha,w=null,x,u,v;if(null===a)return a;w=this.Gc.format(a);x=n.isoToLocalDate(a);p&&(u=this.Gc?this.Gc.format(p):p,p=n.isoToLocalDate(n._minMaxIsoString(p,a)));r&&(v=this.Gc?this.Gc.format(r):r,r=n.isoToLocalDate(n._minMaxIsoString(r,a)));if(null!==p&&null!==r){if(x>=p&&x<=r||p>r)return a}else if(null!==p){if(x>=p)return a}else if(null===
r||x<=r)return a;null!==r&&x>r?(w={value:w,max:v},s=f?f:t.A("oj-validator.range.datetime.messageSummary.rangeOverflow"),q=e?t.Ib(e,w):t.A("oj-validator.range.datetime.messageDetail.rangeOverflow",w)):null!==p&&x<p&&(w={value:w,min:u},s=c?c:t.A("oj-validator.range.datetime.messageSummary.rangeUnderflow"),q=d?t.Ib(d,w):t.A("oj-validator.range.datetime.messageDetail.rangeUnderflow",w));throw new b.yh(s,q);};b.b.g("DateTimeRangeValidator.prototype.validate",{validate:b.Qj.prototype.validate});b.Qj.prototype.uc=
function(){var a=null,c=this.Ow,d=c.inRange,e=c.min,c=c.max,f=this.$g,n=this.Gh,p=f&&this.Gc?this.Gc.format(f):f,r=n&&this.Gc?this.Gc.format(n):n,s=null,q=b.ha;null!==f&&null!==n?(s={min:p,max:r},a=d?q.Ib(d,s):q.A("oj-validator.range.datetime.hint.inRange",s)):null!==f?(s={min:p},a=e?q.Ib(e,s):q.A("oj-validator.range.datetime.hint.min",s)):null!==n&&(s={max:r},a=c?q.Ib(c,s):q.A("oj-validator.range.datetime.hint.max",s));return a};b.b.g("DateTimeRangeValidator.prototype.getHint",{uc:b.Qj.prototype.uc});
b.n6=function(){return{createConverter:function(a){return new b.Gd(a)}}}();b.pa.vS(b.Pj.CONVERTER_TYPE_NUMBER,b.n6);b.J5=function(){return{createConverter:function(a){return new b.ab(a)}}}();b.pa.vS(b.Pj.CONVERTER_TYPE_DATETIME,b.J5);b.t6=function(){return{createValidator:function(a){return new b.ef(a)}}}();b.pa.Ds(b.Zc.VALIDATOR_TYPE_REQUIRED,b.t6);b.s6=function(){return{createValidator:function(a){return new b.df(a)}}}();b.pa.Ds(b.Zc.VALIDATOR_TYPE_REGEXP,b.s6);b.K5=function(){return{createValidator:function(a){return new b.Qj(a)}}}();
b.pa.Ds(b.Zc.VALIDATOR_TYPE_DATETIMERANGE,b.K5);b.I5=function(){return{createValidator:function(a){return new b.Qi(a)}}}();b.pa.Ds(b.Zc.VALIDATOR_TYPE_DATERESTRICTION,b.I5);b.o6=function(){return{createValidator:function(a){return new b.Sj(a)}}}();b.pa.Ds(b.Zc.VALIDATOR_TYPE_NUMBERRANGE,b.o6);b.d6=function(){return{createValidator:function(a){return new b.il(a)}}}();b.pa.Ds(b.Zc.VALIDATOR_TYPE_LENGTH,b.d6);var d={Yk:{latn:"0123456789",arab:"\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669",
thai:"\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59"},A5:/^(?:(en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))|(art-lojban|cel-gaulish|no-(?:bok|nyn)|zh-(?:guoyu|hakka|min|min-nan|xiang)))$|^(x(?:-[0-9a-z]{1,8})+)$|^(?:((?:[a-z]{2,3}(?:(?:-[a-z]{3}){1,3})?)|[a-z]{4}|[a-z]{5,8})(?:-([a-z]{4}))?(?:-([a-z]{2}|[0-9]{3}))?((?:-(?:[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*)?((?:-[0-9a-wy-z](?:-[a-z0-9]{2,8}){1,})*)?(-x(?:-[0-9a-z]{1,8})+)?)$/i,
fpa:/^\s+|\s+$|\u200f|\u200e/g,gpa:/\s+|\u200f|\u200e/g,eqa:["0","00","000"],eR:/^\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})?$/,tJ:function(a){if(!a||"string"!==typeof a)return null;var b=d.eR.exec(a);null===b&&d.qla(a);return void 0!==b[1]?b[1]:null},dateToLocalIso:function(a){return d.nd(a.getFullYear(),4)+"-"+d.nd(a.getMonth()+1,2)+"-"+d.nd(a.getDate(),2)+"T"+d.nd(a.getHours(),2)+":"+d.nd(a.getMinutes(),
2)+":"+d.nd(a.getSeconds(),2)+"."+d.nd(a.getMilliseconds(),3)},isoToLocalDate:function(a){if(!a||"string"!==typeof a)return null;null!==d.tJ(a)&&d.rla();return this._isoToLocalDateIgnoreTimezone(a)},_isoToLocalDateIgnoreTimezone:function(a){var b=a.split("T"),c=a.indexOf("T");a=new Date;var d=[a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0];if(""!==b[0]){var e=b[0].split("-");for(a=0;a<e.length;a++)d[a]=parseInt(e[a],10),1===a&&d[a]--}if(-1!==c){b=b[1].split(".");c=b[0].split(":");for(a=0;a<c.length;a++)d[3+
a]=parseInt(c[a],10);2===b.length&&b[1]&&(d[6]=parseInt(b[1],10))}return new Date(d[0],d[1],d[2],d[3],d[4],d[5],d[6])},rla:function(){var a;a=Error("time zone is not supported");a.errorInfo={errorCode:"timeZoneNotSupported"};throw a;},qla:function(a){var b;b=Error("The string "+a+" is not a valid ISO 8601 string.");b.errorInfo={errorCode:"invalidISOString",parameterMap:{isoStr:a}};throw b;},trim:function(a){return(a+"").replace(d.fpa,"")},cl:function(a){return(a+"").replace(d.gpa,"")},az:function(a,
b){return 0===a.indexOf(b)},Dg:function(a){return a.split("\u00a0").join(" ").toUpperCase()},nd:function(a,b){var c;c=a+"";return 1<b&&c.length<b?(c=d.eqa[b-2]+c,c.substr(c.length-b,b)):c},Ena:function(a,b){if(void 0===b)return"latn";var c=d.br(b,"nu")||"";void 0===a.numbers["symbols-numberSystem-"+c]&&(c="latn");return c},vE:function(a){a=d.A5.exec(a);if(!a)return null;var b=a[4],b=b?b.split("-"):null,c=null;b&&(c=b.shift());var e=a[7];(e=e?e.split("-"):null)&&e.shift();var f=a[9];if(f=f?f.split("-"):
null)f.shift(),f.shift();var n=a[3];(n=n?n.split("-"):null)&&n.shift();return{language:{language:c,vra:b||[]},Qra:a[5]||null,region:a[6]||null,variant:e||null,ura:d.Yoa(a[8]),Nra:f||n||[],yra:{Bra:a[1]||null,Ora:a[2]||null}}},Yoa:function(a){if(!a)return[];for(var b=[],c,d,e=!1,f=!1,p="",r=!1,s=0,q=a.length;s<q;s++)d=a[s],"-"!==d||e?e&&!f?(f=!0,c.singleton=d):"-"===d?r?1===p.length?(f=r=!1,b.push(c),c={singleton:null,extension:[]}):(c.extension.push(p),p=""):(p="",r=!0):p+=d:(e=!0,c={singleton:null,
extension:[]});c.extension.push(p);b.push(c);return b},br:function(a,b){var c=d.vE(a||"en-US");if(null===c||void 0===c)return null;var c=c.extension,e,f;for(f in c)if("u"===c[f].singleton){for(var n in c[f].extension)if(c[f].extension[n]===b){n++;e=c[f].extension[n];break}break}return e},zra:function(a){var b=0,c;for(c in a)b++;return b},rg:function(a){a=a.main;var b,c;for(c in a){b=c;break}return a[b]},su:function(a){a=a.main;var b,c;for(c in a){b=c;break}return b},hm:function(a,b){if(void 0===a)throw Error("Internal "+
b+" error. Default options missing.");return function(c,d,e,f){if(void 0!==a[c]){f=a[c];switch(d){case "boolean":f=Boolean(f);break;case "string":f=String(f);break;case "number":f=Number(f);break;default:throw Error("Internal error. Wrong value type.");}if(void 0!==e&&-1===e.indexOf(f)){d=[];for(f=0;f<e.length;f++)d.push(e[f]);e=new RangeError("The value '"+a[c]+"' is out of range for '"+b+"' options property '"+c+"'. Valid values: "+d);e.errorInfo={errorCode:"optionOutOfRange",parameterMap:{propertyName:c,
propertyValue:a[c],propertyValueValid:d,caller:b}};throw e;}}return f}}};b.ab=function(a){this.Init(a)};o_("IntlDateTimeConverter",b.ab,b);b.b.ga(b.ab,b.Pb,"oj.IntlDateTimeConverter");b.ab.Q6=new Date(1998,10,29,15,45,31);b.ab.prototype.Init=function(a){b.ab.q.Init.call(this,a)};b.b.g("IntlDateTimeConverter.prototype.Init",{Init:b.ab.prototype.Init});b.ab.prototype.Kl=function(){this.by||(this.by=e.le());return this.by};b.ab.prototype.format=function(a){var c=b.Ja.bk(),d=b.ba.qg(),e=this.resolvedOptions();
if(null==a||"string"===typeof a&&0===b.Ea.trim(""+a).length)return"";try{return this.Kl().format(a,c,e,d)}catch(f){throw a=this.Zn(f,a),a;}};b.b.g("IntlDateTimeConverter.prototype.format",{format:b.ab.prototype.format});b.ab.prototype.XD=function(a,c){var d=b.Ja.bk(),e=b.ba.qg();try{return this.Kl().XD(a,d,c,e)}catch(f){throw d=this.Zn(f,a),d;}};b.b.g("IntlDateTimeConverter.prototype.formatRelative",{XD:b.ab.prototype.XD});b.ab.prototype.uc=function(){var a=this.resolvedOptions().patternFromOptions||
this.Mh().pattern;return a?a.toLowerCase():""};b.b.g("IntlDateTimeConverter.prototype.getHint",{uc:b.ab.prototype.uc});b.ab.prototype.OI=function(){var a="";try{a=this.format(b.ob.dateToLocalIso(b.ab.Q6))}catch(c){c instanceof b.Je&&(a="")}finally{return a}};b.ab.prototype.Mh=function(){return b.ab.q.Mh.call(this)};b.b.g("IntlDateTimeConverter.prototype.getOptions",{Mh:b.ab.prototype.Mh});b.ab.prototype.resolvedOptions=function(){var a,c=b.ba.qg(),d=this.Mh();if(c!==this.Bt||!this.Fx){a=b.Ja.bk();
try{if(!a)return b.r.error("locale bundle for the current locale %s is unavailable",c),{};this.Fx=this.Kl().resolvedOptions(a,d,c);this.Bt=c}catch(e){throw a=this.Zn(e),a;}}return this.Fx};b.b.g("IntlDateTimeConverter.prototype.resolvedOptions",{resolvedOptions:b.ab.prototype.resolvedOptions});b.ab.prototype.Fy=function(){var a=this.resolvedOptions(),b=a.hour12;return a.hour&&!b?!0:!1};b.b.g("IntlDateTimeConverter.prototype.isHourInDaySet",{Fy:b.ab.prototype.Fy});b.ab.prototype.Ey=function(){var a=
this.resolvedOptions(),b=a.hour12;return a.hour&&b?!0:!1};b.b.g("IntlDateTimeConverter.prototype.isHourInAMPMSet",{Ey:b.ab.prototype.Ey});b.ab.prototype.Hy=function(){return this.uq("minute")};b.b.g("IntlDateTimeConverter.prototype.isMinuteSet",{Hy:b.ab.prototype.Hy});b.ab.prototype.Jy=function(){return this.uq("second")};b.b.g("IntlDateTimeConverter.prototype.isSecondSet",{Jy:b.ab.prototype.Jy});b.ab.prototype.Gy=function(){return this.uq("millisecond")};b.b.g("IntlDateTimeConverter.prototype.isMilliSecondSet",
{Gy:b.ab.prototype.Gy});b.ab.prototype.Ky=function(){return this.uq("year")};b.b.g("IntlDateTimeConverter.prototype.isYearSet",{Ky:b.ab.prototype.Ky});b.ab.prototype.Iy=function(){return this.uq("month")};b.b.g("IntlDateTimeConverter.prototype.isMonthSet",{Iy:b.ab.prototype.Iy});b.ab.prototype.Dy=function(){return this.uq("day")};b.b.g("IntlDateTimeConverter.prototype.isDaySet",{Dy:b.ab.prototype.Dy});b.ab.prototype.Cy=function(){return this.uq("weekday")};b.b.g("IntlDateTimeConverter.prototype.isDayNameSet",
{Cy:b.ab.prototype.Cy});b.ab.prototype.wo=function(a){return this.Kl().wo(a,b.Ja.bk(),b.ba.qg())};b.b.g("IntlDateTimeConverter.prototype.calculateWeek",{wo:b.ab.prototype.wo});b.ab.prototype.parse=function(a){var c,d;if(null==a||""===a)return null;var e=b.Ja.bk(),f=b.ba.qg(),n=this.resolvedOptions();try{return c=this.Kl().parse(a,e,n,f),(d=c.value)&&c.warning&&b.r.warn("The value "+a+" was leniently parsed to represent a date "+d.toString?d.toString():d),d}catch(p){throw a=this.Zn(p,a),a;}};b.b.g("IntlDateTimeConverter.prototype.parse",
{parse:b.ab.prototype.parse});b.ab.prototype.Zn=function(a,c){var d=a.errorInfo,e,f,n,p;if(d)if(e=d.errorCode,d=d.parameterMap,b.l.Df(d),n=d.propertyName,a instanceof TypeError){if("optionTypesMismatch"===e||"optionTypeInvalid"===e)f=b.ob.Bs(e,d)}else a instanceof RangeError?"optionOutOfRange"===e?f=b.ob.Bs(e,d):"datetimeOutOfRange"===e&&(e=b.ha.A("oj-converter.datetime.datetimeOutOfRange.summary",{propertyName:n,value:d.value}),f=b.ha.A("oj-converter.datetime.datetimeOutOfRange.detail",{minValue:d.minValue,
maxValue:d.maxValue}),f=new b.Je(e,f)):a instanceof SyntaxError?"optionValueInvalid"===e&&(f=b.ob.Bs(e,d)):a instanceof Error&&("dateFormatMismatch"===e?p="oj-converter.datetime.dateFormatMismatch.summary":"timeFormatMismatch"===e?p="oj-converter.datetime.timeFormatMismatch.summary":"datetimeFormatMismatch"===e?p="oj-converter.datetime.datetimeFormatMismatch.summary":"dateToWeekdayMismatch"===e&&(e=b.ha.A("oj-converter.datetime.dateToWeekdayMismatch.summary",{date:d.date,weekday:d.weekday}),f=b.ha.A("oj-converter.datetime.dateToWeekdayMismatch.detail"),
f=new b.Je(e,f)),p&&(e=b.ha.A(p,{value:c||d.value,format:d.format}),f=b.ha.A("oj-converter.hint.detail",{exampleValue:this.OI()}),f=new b.Je(e,f)));f||(f=e=a.message,f=new b.Je(e,f));return f};b.ab.prototype.uq=function(a){return this.resolvedOptions()[a]?!0:!1};b.Sj=function(a){this.Init(a)};o_("NumberRangeValidator",b.Sj,b);b.b.ga(b.Sj,b.Zf,"oj.NumberRangeValidator");b.Sj.prototype.Init=function(a){b.Sj.q.Init.call(this);a&&(this.$g=a.min,this.Gh=a.max,this.Gc=b.ob.getConverterInstance(a.converter),
this.Ow=a.hint||{},this.iw=a.messageSummary||{},this.hw=a.messageDetail||{})};b.b.g("NumberRangeValidator.prototype.Init",{Init:b.Sj.prototype.Init});b.Sj.prototype.validate=function(a){var c=a?a.toString():a,d=parseFloat(c),e=this.iw,f=this.hw,n=f.rangeOverflow,f=f.rangeUnderflow,p=e.rangeOverflow,e=e.rangeUnderflow,r=void 0!==this.$g?parseFloat(this.$g):null,s=void 0!==this.Gh?parseFloat(this.Gh):null,q=r&&this.Gc?this.Gc.format(r):r,t=s&&this.Gc?this.Gc.format(s):s,w="",x="",u=null,v=b.ha;if(null===
a)return a;if(null!==r&&null!==s){if(d>=r&&d<=s||r>s)return c}else if(null!==r){if(d>=r)return c}else if(null===s||d<=s)return c;null!==s&&d>s?(u={value:a,max:t},w=p?p:v.A("oj-validator.range.number.messageSummary.rangeOverflow"),x=n?v.Ib(n,u):v.A("oj-validator.range.number.messageDetail.rangeOverflow",u)):null!==r&&d<r&&(u={value:a,min:q},w=e?e:v.A("oj-validator.range.number.messageSummary.rangeUnderflow"),x=f?v.Ib(f,u):v.A("oj-validator.range.number.messageDetail.rangeUnderflow",u));throw new b.yh(w,
x);};b.b.g("NumberRangeValidator.prototype.validate",{validate:b.Sj.prototype.validate});b.Sj.prototype.uc=function(){var a=null,c=this.Ow,d=c.inRange,e=c.min,c=c.max,f=b.ha,n=void 0!==this.$g?parseFloat(this.$g):null,p=void 0!==this.Gh?parseFloat(this.Gh):null,r=n&&this.Gc?this.Gc.format(n):n,s=p&&this.Gc?this.Gc.format(p):p;null!==n&&null!==p?a=d?f.Ib(d,{min:r,max:s}):f.A("oj-validator.range.number.hint.inRange",{min:r,max:s}):null!==n?a=e?f.Ib(e,{min:r}):f.A("oj-validator.range.number.hint.min",
{min:r}):null!==p&&(a=c?f.Ib(c,{max:s}):f.A("oj-validator.range.number.hint.max",{max:s}));return a};b.b.g("NumberRangeValidator.prototype.getHint",{uc:b.Sj.prototype.uc});b.Gd=function(a){this.Init(a)};o_("IntlNumberConverter",b.Gd,b);b.b.ga(b.Gd,b.Xh,"oj.IntlNumberConverter");b.Gd.prototype.Init=function(a){b.Gd.q.Init.call(this,a)};b.b.g("IntlNumberConverter.prototype.Init",{Init:b.Gd.prototype.Init});b.Gd.prototype.Kl=function(){this.by||(this.by=c.le());return this.by};b.Gd.prototype.format=
function(a){if(null==a||"string"===typeof a&&0===b.Ea.trim(""+a).length||"number"===typeof a&&isNaN(a))return"";var c=b.Ja.bk(),d=b.ba.qg(),e=this.resolvedOptions();try{return this.Kl().format(a,c,e,d)}catch(f){throw a=this.Zn(f,a),a;}};b.b.g("IntlNumberConverter.prototype.format",{format:b.Gd.prototype.format});b.Gd.prototype.uc=function(){return null};b.b.g("IntlNumberConverter.prototype.getHint",{uc:b.Gd.prototype.uc});b.Gd.prototype.Mh=function(){return b.Gd.q.Mh.call(this)};b.b.g("IntlNumberConverter.prototype.getOptions",
{Mh:b.Gd.prototype.Mh});b.Gd.prototype.parse=function(a){var c=b.Ja.bk(),d=b.ba.qg(),e=this.resolvedOptions();if(null==a||""===a)return null;try{return this.Kl().parse(b.Ea.trim(a),c,e,d)}catch(f){throw a=this.Zn(f,a),a;}};b.b.g("IntlNumberConverter.prototype.parse",{parse:b.Gd.prototype.parse});b.Gd.prototype.resolvedOptions=function(){var a,c=b.ba.qg();if(c!==this.Bt||!this.Fx){a=b.Ja.bk();try{if(!a)return b.r.error("locale bundle for the current locale %s is unavailable",c),{};this.Fx=this.Kl().resolvedOptions(a,
this.Mh(),c);this.Bt=c}catch(d){throw a=this.Zn(d),a;}}return this.Fx};b.b.g("IntlNumberConverter.prototype.resolvedOptions",{resolvedOptions:b.Gd.prototype.resolvedOptions});b.Gd.prototype.Zn=function(a,c){var d=a.errorInfo,e,f,n;if(d)if(e=d.errorCode,d=d.parameterMap,b.l.Df(d),a instanceof TypeError){if("optionTypesMismatch"===e||"optionTypeInvalid"===e)f=b.ob.Bs(e,d)}else a instanceof RangeError?"optionOutOfRange"===e&&(f=b.ob.Bs(e,d)):a instanceof SyntaxError?"optionValueInvalid"===e&&(f=b.ob.Bs(e,
d)):a instanceof Error&&("decimalFormatMismatch"===e?n="oj-converter.number.decimalFormatMismatch.summary":"currencyFormatMismatch"===e?n="oj-converter.number.currencyFormatMismatch.summary":"percentFormatMismatch"===e?n="oj-converter.number.percentFormatMismatch.summary":"unsupportedParseFormat"===e&&(e=b.ha.A("oj-converter.number.decimalFormatUnsupportedParse.summary"),f=b.ha.A("oj-converter.number.decimalFormatUnsupportedParse.detail"),f=new b.Je(e,f)),n&&(e=b.ha.A(n,{value:c||d.value,format:d.format}),
f=b.ha.A("oj-converter.hint.detail",{exampleValue:this.OI()}),f=new b.Je(e,f)));f||(f=e=a.message,f=new b.Je(e,f));return f};b.Gd.prototype.OI=function(){var a="";try{a=this.format(12345.98765)}catch(c){c instanceof b.Je&&(a="")}finally{return a}};var c;c=function(){function a(){return{format:function(a,b,d,e){if(2>=arguments.length||void 0===d)d={useGrouping:!0,style:"decimal"};s(d,"OraNumberConverter.format");var g={};r(b,g,d,e);return c(a,d,b,g,e)},parse:function(a,b,c,e){if("number"===typeof a)return a;
if("[object Number]"===Object.prototype.toString.call(a))return Number(a);if(2>=arguments.length||void 0===c)c={useGrouping:!0,style:"decimal"};var g=a;s(c,"OraNumberConverter.parse");var h=d.rg(b),q={},k=d.br(e,"nu");void 0===d.Yk[k]&&(k="latn");if("latn"!==k){var l,t=[];for(l=0;l<a.length;l++){var w=d.Yk[k].indexOf(a[l]);-1!==w?t.push(w):t.push(a[l])}a=t.join("")}r(b,q,c,e);l=h.numbers[q.numberingSystem].decimal;k=h.numbers[q.numberingSystem].group;t=NaN;t=a.replace(/ /g,"");if(z.test(t))return t=
parseFloat(a);var D=f(a,c,q,h),t=D[0],w=D[1],t=t||"+";if(D[2])return t=parseFloat(t+w),x(t,c,q,g);var w=w.replace(/ /g,""),A=q.exponential,u=w.indexOf(A.toLowerCase());0>u&&(u=w.indexOf(d.Dg(A)));0>u?(D=w,w=null):(D=w.substr(0,u),w=w.substr(u+A.length));u=D.indexOf(l);0>u?(A=D,l=null):(A=D.substr(0,u),l=D.substr(u+l.length));A=A.split(k).join("");D=k.replace(/\u00A0/g," ");k!==D&&(A=A.split(D).join(""));k=t+A;null!==l&&(k+="."+l);null!==w&&(l=p(w,h,q),k+="e"+(l[0]||"+")+l[1]);E.test(k)?t=parseFloat(k):
(k=n(a,q,h),t=parseFloat(k[0]+k[1]));return x(t,c,q,g)},resolvedOptions:function(a,b,c){if(3>arguments.length||void 0===c)c=d.su(a);if(2>arguments.length||void 0===b)b={useGrouping:!0,style:"decimal"};var e={};s(b,"OraNumberConverter.resolvedOptions");r(a,e,b,c);e.numberingSystemKey=d.br(c,"nu");void 0===d.Yk[e.numberingSystemKey]&&(e.numberingSystemKey="latn");e={locale:c,style:void 0===b.style?"decimal":b.style,useGrouping:void 0===b.useGrouping?!0:b.useGrouping,minimumIntegerDigits:e.minimumIntegerDigits,
minimumFractionDigits:e.minimumFractionDigits,maximumFractionDigits:e.maximumFractionDigits,numberingSystem:e.numberingSystemKey};"decimal"===b.style&&void 0!==b.decimalFormat&&(e.decimalFormat=b.decimalFormat);"currency"===b.style&&(e.currency=b.currency,e.currencyDisplay=void 0===b.currencyDisplay?"symbol":b.currencyDisplay);void 0!==b.pattern&&(e.pattern=b.pattern);return e}}}var b,c,e,f,n,p,r,s,q,t,w,x,u,v,y,B,M,I,F,D,A,z=/^[+\-]?infinity$/i,E=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,J=/([^+-.0-9]*)([+\-]?\d*\.?\d*(E[+\-]?\d+)?).*$/,
C=/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,N=/(^0\.0*)([^0].*$)/,Q={trillion:[1E14,1E13,1E12],billion:[1E11,1E10,1E9],million:[1E8,1E7,1E6],thousand:[1E5,1E4,1E3]},H={trillion:1E12,billion:1E9,million:1E6,thousand:1E3};b=function(a,b,c){var d;for(d=a.length;d<b;d+=1)a=c?"0"+a:a+"0";return a};t=function(a,b,c,d){var e=new RangeError(a+" is out of range.  Enter a value between "+b+" and "+c+" for "+d);e.errorInfo={errorCode:"numberOptionOutOfRange",parameterMap:{value:a,minValue:b,maxValue:c,propertyName:d}};
throw e;};w=function(a,b,c,d,e){a=a[b];return void 0!==a?(a=Number(a),(isNaN(a)||a<c||a>d)&&t(a,c,d,b),Math.floor(a)):e};r=function(a,b,c,g){var f=d.rg(a);g=d.Ena(f,g);b.numberingSystemKey=g;b.numberingSystem="symbols-numberSystem-"+g;if(void 0!==c.pattern&&0<c.pattern.length)g=c.pattern;else{var h;switch(c.style){case "decimal":h="decimalFormats-numberSystem-";break;case "currency":h="currencyFormats-numberSystem-";break;case "percent":h="percentFormats-numberSystem-";break;default:h="decimalFormats-numberSystem-"}h+=
b.numberingSystemKey;g=f.numbers[h].standard;var q=c.decimalFormat;void 0!==q&&(b.shortDecimalFormat=f.numbers[h][q].decimalFormat)}h=d.vE(d.su(a)).language.language;b.plurals=a.supplemental.plurals;b.lang=h;b.pat=g;b.minusSign=f.numbers[b.numberingSystem].minusSign;b.decimalSeparator=f.numbers[b.numberingSystem].decimal;b.exponential=f.numbers[b.numberingSystem].exponential;b.groupingSeparator=f.numbers[b.numberingSystem].group;b.currencyDisplay=c.currencyDisplay;void 0!==c.currency&&(b.currencyCode=
c.currency.toUpperCase());b.style=c.style;e(c,g,f,b);void 0===c.pattern&&(b.minimumIntegerDigits=w(c,"minimumIntegerDigits",1,21,b.minimumIntegerDigits),void 0!==c.maximumFractionDigits&&(b.maximumFractionDigits=w(c,"maximumFractionDigits",0,20,b.maximumFractionDigits),b.maximumFractionDigits<b.minimumFractionDigits&&(b.minimumFractionDigits=b.maximumFractionDigits)),void 0!==c.minimumFractionDigits&&(b.minimumFractionDigits=w(c,"minimumFractionDigits",0,20,b.minimumFractionDigits)),b.maximumFractionDigits<
b.minimumFractionDigits&&(b.maximumFractionDigits=b.minimumFractionDigits))};q=function(a){var b=new TypeError('The property "currency" is required whenthe property "'+a+'" is "currency". An accepted value is a three-letter ISO 4217 currency code.');b.errorInfo={errorCode:"optionTypesMismatch",parameterMap:{propertyName:a,propertyValue:"currency",requiredPropertyName:"currency",requiredPropertyValueValid:"a three-letter ISO 4217 currency code"}};throw b;};u=function(){var a;a=Error("long and short decimalFormats are not supported for parsing");
a.errorInfo={errorCode:"unsupportedParseFormat",parameterMap:{value:"decimal"}};throw a;};s=function(a,b){var c=d.hm(a,b),e=c("style","string",["currency","decimal","percent","perMill"],"decimal");"decimal"===e&&(e=c("decimalFormat","string",["standard","short","long"]),"OraNumberConverter.parse"===b&&void 0!==e&&"standard"!==e&&u());c=c("currency","string");"currency"===e&&void 0===c&&q("style")};B=function(a,b,c){function d(a){var b=0,c=0,e=0,g="";if("0"!==a[0]){for(;"0"!==a[b]&&b<a.length;)b++;
g=a.substr(0,b);e=b}for(b=e;b<a.length;b++)if("0"===a[b])c++;else break;return[g,c]}var e=function(a){var b,c,d;for(b in Q)for(d=Q[b].length,c=0;c<d;c++)if(Q[b][c]<=a)return[b,Q[b][c]];return[a,null]}(a),g="";if(null!==e[1]){var g=c.plurals[c.lang](Math.floor(a/H[e[0]])),f=""+e[1]+"-count-"+g,f=c.shortDecimalFormat[f];void 0===f&&(f=""+e[1]+"-count-other",f=c.shortDecimalFormat[f]);var h=d(f),q=h[1],g=h[0];if(q<f.length){var k=1*Math.pow(10,q),k=e[1]/k*10;a/=k}}e="";void 0!==f&&(e=f.substr(q+h[0].length));
return e=g+v(a,b,c)+e};y=function(a,c){var d=a+"",e=0,g=d.split(/e/i),f=g[0];N.lastIndex=0;var q=N.exec(f);null!==q?(e=q[1].length-1,f=q[2]):f=f.replace(".","");var q=1<g.length?parseInt(g[1],10):0,g=parseInt(f,10),k=c.minimumIntegerDigits+c.maximumFractionDigits;f.length>k&&(k-=f.length,g=Math.round(g*Math.pow(10,k)));k=c.minimumIntegerDigits+c.minimumFractionDigits;g=b(g+"",k,!1);q=-1!==d.indexOf(".")?q-(c.minimumIntegerDigits-d.indexOf(".")+e):q-(k-f.length-c.minimumFractionDigits);d=Math.abs(q);
d=b(d+"",c.minExponentDigits,!0);0>q&&(d=c.minusSign+d);e=g.slice(0,c.minimumIntegerDigits);return e=0<g.slice(c.minimumIntegerDigits).length?e+(c.decimalSeparator+g.slice(c.minimumIntegerDigits)+c.exponential+d):e+(c.exponential+d)};v=function(a,c,d){var e=d.groupingSize,g,f=(a+"").split(/e/i),q=1<f.length?parseInt(f[1],10):0;g=f[0];var f=g.split("."),k=1<f.length?f[1]:"";if(1<f.length&&k.length>q){var p=Math.min(d.maximumFractionDigits,k.length-q);g=Math.pow(10,p);g=Math.round(a*g)/g;isFinite(g)||
(g=a);a=g}f=(a+"").split(/e/i);q=1<f.length?parseInt(f[1],10):0;g=f[0];f=g.split(".");g=f[0];k=1<f.length?f[1]:"";0<q?(k=b(k,q,!1),g+=k.slice(0,q),k=k.substr(q)):0>q&&(q=-q,g=b(g,q+1,!0),k=g.slice(-q,g.length)+k,g=g.slice(0,-q));k=0<p?d.decimalSeparator+(k.length>p?k.slice(0,p):b(k,p,!1)):0<d.minimumFractionDigits?d.decimalSeparator:"";k=b(k,d.decimalSeparator.length+d.minimumFractionDigits,!1);a=d.groupingSeparator;p="";!1===c.useGrouping&&void 0===c.pattern&&(a="");g=b(g,d.minimumIntegerDigits,
!0);c=g.length-1;for(k=1<k.length?k:"";0<=c;){if(0===e||e>c)return e=g.slice(0,c+1)+(p.length?a+p+k:k);p=g.slice(c-e+1,c+1)+(p.length?a+p:"");c-=e}return e=g.slice(0,c+1)+a+p+k};c=function(a,b,c,e,g){c=d.rg(c);if(!isFinite(a))return Infinity===a||-Infinity===a?c.numbers[e.numberingSystem].infinity:c.numbers[e.numberingSystem].nan;c=Math.abs(a);!0===e.isPercent||"percent"===b.style?c*=100:!0===e.isPerMill&&(c*=1E3);c="decimal"===b.style&&void 0!==b.decimalFormat&&"standard"!==b.decimalFormat?B(c,b,
e):!0===e.useExponentialNotation?y(c,e):v(c,b,e);b="";b=0>a?b+(e.negativePrefix+c+e.negativeSuffix):b+(e.positivePrefix+c+e.positiveSuffix);a=d.br(g,"nu");void 0===d.Yk[a]&&(a="latn");if("latn"!==a){g=[];for(e=0;e<b.length;e++)"0"<=b[e]&&"9">=b[e]?g.push(d.Yk[a][b[e]]):g.push(b[e]);return g.join("")}return b};f=function(a,b,c,e){a=d.cl(a);var g="",f=!1,h=new RegExp("^"+e.numbers[c.numberingSystem].plusSign.replace(C,"\\$1"));a=a.replace(h,"");var q=d.cl(c.positivePrefix),k=d.cl(c.positiveSuffix),
p=d.cl(c.negativePrefix),h=d.cl(c.negativeSuffix),m=new RegExp("^"+(q||"").replace(C,"\\$1")),l=new RegExp((k||"").replace(C,"\\$1")+"$"),t=new RegExp("^"+(p||"").replace(C,"\\$1")),r=new RegExp((h||"").replace(C,"\\$1")+"$");if(!0===t.test(a)&&!0===r.test(a))a=a.replace(t,""),a=a.replace(r,""),g="-",f=!0;else if(!0===m.test(a)&&!0===l.test(a))a=a.replace(m,""),a=a.replace(l,""),g="+",f=!0;else if("currency"===b.style){b=m=c.currencyCode;var s;void 0!==e.numbers.currencies[m]&&(b=e.numbers.currencies[m].symbol);
void 0===c.currencyDisplay||"symbol"===c.currencyDisplay?s=b:"code"===c.currencyDisplay&&(s=m);void 0!==s&&(m=(q||"").replace(s,""),k=(k||"").replace(s,""),p=(p||"").replace(s,""),s=(h||"").replace(s,""),m=new RegExp(("^"+m).replace(C,"\\$1")),l=new RegExp(k.replace(C,"\\$1")+"$"),t=new RegExp(("^"+p).replace(C,"\\$1")),r=new RegExp(s.replace(C,"\\$1")+"$"),!0===t.test(a)&&!0===r.test(a)?(a=a.replace(t,""),a=a.replace(r,""),g="-",f=!0):!0===m.test(a)&&!0===l.test(a)&&(a=a.replace(m,""),a=a.replace(l,
""),g="+",f=!0))}f?c=[g,a]:(c=n(a,c,e),c[2]=!0);return c};n=function(a,b,c){var e=c.numbers[b.numberingSystem].group,g=c.numbers[b.numberingSystem].decimal,f=c.numbers[b.numberingSystem].minusSign,h="",q="";b=d.Dg(c.numbers[b.numberingSystem].exponential);a=d.Dg(a);a=a.split(b).join("E");a=a.split(e).join("");b=e.replace(/\u00A0/g," ");e!==b&&(a=a.split(b).join(""));a=a.split(g).join(".");"."===a.charAt(0)&&(a=a.substr(1),q=".");a=a.replace(f,"-");e=J.exec(a);q+=e[2];d.az(q,"-")?(q=q.substr(1),h=
"-"):d.az(a,"+")&&(q=q.substr(1),h="+");return[h,q]};p=function(a,b,c){var e=b.numbers[c.numberingSystem].minusSign;b=b.numbers[c.numberingSystem].plusSign;var g;a=d.cl(a);e=d.cl(e);b=d.cl(b);d.az(a,e)?g=["-",a.substr(e.length)]:d.az(a,d.cl(b))&&(g=["+",a.substr(b.length)]);return g||["",a]};var L,G,O,P;A=function(a){var b;b=new SyntaxError('Unexpected character(s) encountered in the pattern "'+a+' An example of a valid pattern is "#,##0.###".');b.errorInfo={errorCode:"optionValueInvalid",parameterMap:{propertyName:"pattern",
propertyValue:a,propertyValueHint:"#,##0.###"}};throw b;};I=function(a,b,c){return null!==(new RegExp(c,"i")).exec(a.substr(b,c.length))};D=function(a,b){var c={};null!==L&&(b.positivePrefix=F(L,a,b,c));null!==G&&(b.positiveSuffix=F(G,a,b,c));null!==O&&(b.negativePrefix=F(O,a,b,c));null!==P&&(b.negativeSuffix=F(P,a,b,c));void 0!==c.name&&(b.positiveSuffix="\u00a0"+c.name,b.positivePrefix="","ar"===b.lang?(b.negativeSuffix=a.numbers[b.numberingSystem].minusSign+"\u00a0"+c.name,b.negativePrefix=""):
(b.negativeSuffix="\u00a0"+c.name,b.negativePrefix=a.numbers[b.numberingSystem].minusSign))};F=function(a,b,c,d){for(var e="",g=0;g<a.length;){var f=a.charAt(g++);if("'"!==f){switch(f){case "\u00a4":var h=f=c.currencyCode,q=f;void 0!==b.numbers.currencies[f]&&(h=b.numbers.currencies[f].displayName,q=b.numbers.currencies[f].symbol);void 0===c.currencyDisplay||"symbol"===c.currencyDisplay?f=q:"code"!==c.currencyDisplay&&(f=h,d.name=f);break;case "%":f=b.numbers[c.numberingSystem].percentSign;break;
case "\u2030":f=b.numbers[c.numberingSystem].perMille;break;case "-":f=b.numbers[c.numberingSystem].minusSign}e=e.concat(f)}}return e};e=function(a,b,c,d){for(var e=!1,g=!1,f=0,h=0,k=!0,p=1;0<=p&&h<b.length;--p){for(var m=!1,l="",t="",r=-1,n=1,s=0,w=0,x=0,u=-1,v,F=0,k=!0,z=h;z<b.length;++z){var y=b.charAt(z);switch(F){case 0:case 2:if(m){if("'"===y){z+1<b.length&&"'"===b.charAt(z+1)?(++z,k?l=l.concat("''"):t=t.concat("''")):m=!1;continue}}else if("#"===y||"0"===y||","===y||"."===y){F=1;--z;continue}else if("\u00a4"===
y){void 0===a.currency&&q("pattern");a.style="currency";(y=z+1<b.length&&"\u00a4"===b.charAt(z+1))&&++z;k?l=l.concat(y?"'\u00a4\u00a4":"'\u00a4"):t=t.concat(y?"'\u00a4\u00a4":"'\u00a4");continue}else if("'"===y){if("'"===y){z+1<b.length&&"'"===b.charAt(z+1)?(++z,k?l=l.concat("''"):t=t.concat("''")):m=!0;continue}}else if(";"===y){0!==F&&0!==p||A(b);h=z+1;z=b.length;continue}else if("%"===y){a.style="percent";1!==n&&A(b);d.isPercent=!0;n=100;k?l=l.concat("'%"):t=t.concat("'%");continue}else if("\u2030"===
y){1!==n&&A(b);a.style="perMill";d.isPerMill=!0;n=1E3;k?l=l.concat("'\u2030"):t=t.concat("'\u2030");continue}else if("-"===y){k?l=l.concat("'-"):t=t.concat("'-");continue}k?l=l.concat(y):t=t.concat(y);break;case 1:if(1===p)++f;else{0===--f&&(F=2,k=!1);continue}if("#"===y)0<w?++x:++s,0<=u&&0>r&&++u;else if("0"===y)0<x&&A(b),++w,0<=u&&0>r&&++u;else if(","===y)u=0;else if("."===y)0<=r&&A(b),r=s+w+x;else if(I(b,z,"E")){g&&A(b);g=!0;v=0;for(z+=1;z<b.length&&"0"===b.charAt(z);)++v,++f,++z;(1>s+w||1>v)&&
A(b);F=2;k=!1;--z}else F=2,k=!1,--z,--f}}0===w&&0<s&&0<=r&&(w=r,0===w&&++w,x=s-w,s=w-1,w=1);(0>r&&0<x||0<=r&&(r<s||r>s+w)||0===u||m)&&A(b);1===p?(L=l,G=t,O=L,P=G,m=s+w+x,d.minimumIntegerDigits=(0<=r?r:m)-s,d.maximumIntegerDigits=g?s+d.minimumIntegerDigits:2147483647,d.maximumFractionDigits=0<=r?m-r:0,d.minimumFractionDigits=0<=r?s+w-r:0,d.groupingSize=0<u?u:0):(O=l,P=t,e=!0)}0===b.length&&(L=G="",d.minimumIntegerDigits=0,d.maximumIntegerDigits=2147483647,d.minimumFractionDigits=0,d.maximumFractionDigits=
2147483647);d.useExponentialNotation=g;d.minExponentDigits=v;if(!e||0===O.localeCompare(L)&&0===P.localeCompare(G))"currency"===a.style&&"ar"===d.lang?(P=G+"'\u200f-",O=L):(P=G,O="'-"+L);D(c,d)};x=function(a,b,c,d){if(isNaN(a)){var e;a="Unparsable number "+d+" The expected number pattern is "+c.pat;switch(b.style){case "decimal":e="decimalFormatMismatch";break;case "currency":e="currencyFormatMismatch";break;case "percent":e="percentFormatMismatch"}b=Error(a);b.errorInfo={errorCode:e,parameterMap:{value:d,
format:c.pat}};throw b;}!0===c.isPercent||"percent"===b.style?a/=100:!0===c.isPerMill&&(a/=1E3);return a};return{le:function(){M||(M=a());return M}}}();b.df=function(a){this.Init(a)};o_("RegExpValidator",b.df,b);b.b.ga(b.df,b.Zf,"oj.RegExpValidator");b.df.JF="oj-validator.regExp.detail";b.df.KF="oj-validator.regExp.summary";b.df.prototype.Init=function(a){b.df.q.Init.call(this);this.gb=a};b.b.g("RegExpValidator.prototype.Init",{Init:b.df.prototype.Init});b.df.prototype.validate=function(a){var c=
this.gb&&this.gb.pattern||"",d,e,f;if(null===a||void 0===a||""===a)return!0;a=a?a.toString():a;var n;n=a.match("^("+c+")$");if(null===n||n[0]!==a)throw this.gb&&(e=this.gb.messageSummary||null,f=this.gb.messageDetail||null,d=this.gb&&this.gb.label||""),a={label:d,pattern:c,value:a},e=e?b.ha.Ib(e,a):b.ha.A(this.nJ(),a),f=f?b.ha.Ib(f,a):b.ha.A(this.GI(),a),new b.yh(e,f);return!0};b.b.g("RegExpValidator.prototype.validate",{validate:b.df.prototype.validate});b.df.prototype.uc=function(){var a=null,c=
{};this.gb&&this.gb.hint&&(c={pattern:this.gb.pattern},a=b.ha.Ib(this.gb.hint,c));return a};b.b.g("RegExpValidator.prototype.getHint",{uc:b.df.prototype.uc});b.df.prototype.nJ=function(){return b.df.KF};b.df.prototype.GI=function(){return b.df.JF};b.ob={};o_("IntlConverterUtils",b.ob,b);b.ob.isoToLocalDate=function(a){return d.isoToLocalDate(a)};b.ob.dateToLocalIso=function(a){return d.dateToLocalIso(a)};b.ob._isoToLocalDateIgnoreTimezone=function(a){return d._isoToLocalDateIgnoreTimezone(a)};b.ob.tJ=
function(a){return d.tJ(a)};b.ob.getConverterInstance=function(a){var c="",d={},e=null;a&&("object"===typeof a&&(a instanceof b.qe||a.parse&&"function"===typeof a.parse||a.format&&"function"===typeof a.format?e=a:(c=a.type,d=a.options||{})),e||(c=c||a)&&"string"===typeof c&&(a=b.pa.bm(c),e=a.createConverter(d)));return e};b.ob._minMaxIsoString=function(a,b){if(a){b=b||this.dateToLocalIso(new Date);var c=b.indexOf("T");0===a.indexOf("T")&&0<c&&(a=b.substring(0,c)+a)}return a};b.ob.Bs=function(a,c){b.l.Df(c);
var d="",e="",f=c.propertyName,n;"optionTypesMismatch"===a?(e=c.requiredPropertyName,n=c.requiredPropertyValueValid,d=b.ha.A("oj-converter.optionTypesMismatch.summary",{propertyName:f,propertyValue:c.propertyValue,requiredPropertyName:e}),e=b.ob.FB(e,n)):"optionTypeInvalid"===a?(f=c.propertyName,n=c.propertyValueValid,d=b.ha.A("oj-converter.optionTypeInvalid.summary",{propertyName:f}),e=b.ob.FB(f,n)):"optionOutOfRange"===a?(d=b.ha.A("oj-converter.optionOutOfRange.summary",{propertyName:f,propertyValue:c.propertyValue}),
n=c.propertyValueValid,e=b.ob.FB(f,n)):"optionValueInvalid"===a&&(d=b.ha.A("oj-converter.optionValueInvalid.summary",{propertyName:f,propertyValue:c.propertyValue}),n=c.propertyValueHint,e=b.ob.FB(f,n));return new b.Je(d,e)};b.ob.FB=function(a,c){var d;return c?("string"===typeof c?d="oj-converter.optionHint.detail":(d="oj-converter.optionHint.detail-plural",c=c.join(b.ha.A("oj-converter.plural-separator"))),b.ha.A(d,{propertyName:a,propertyValueValid:c})):""};b.ob.Eqa=function(){return""};var e;
e=function(){function a(){return{format:function(a,b,c,e){var g;if("number"===typeof a)g=new Date(a);else if("string"===typeof a){if(""===d.trim(a))return null;g=d.isoToLocalDate(a)}else return null;if(2>=arguments.length||void 0===c)c={year:"numeric",month:"numeric",day:"numeric"};g=m(g,b,c);var f=d.br(e,"nu");void 0===d.Yk[f]&&(f="latn");if("latn"!==f){var h,q=[];for(h=0;h<g.length;h++)"0"<=g[h]&&"9">=g[h]?q.push(d.Yk[f][g[h]]):q.push(g[h]);return q.join("")}return g},XD:function(a,b,c){return p(a,
b,c)},parse:function(a,b,c,d){return n(a,b,c,d)},resolvedOptions:function(a,b,g){if(3>arguments.length||void 0===g)g=d.su(a);if(2>arguments.length||void 0===b)b={year:"numeric",month:"numeric",day:"numeric"};var f=!1,h;h=d.br(g,"nu");void 0===d.Yk[h]&&(h="latn");if(void 0!==b&&void 0!==b.pattern)return h=s(g,h,b.pattern),h.pattern=b.pattern,h;if(void 0!==b){h={locale:g,numberingSystem:h,calendar:"gregorian"};var q=0;for(q in b)q++;if(0==q)return h.year="numeric",h.month="numeric",h.day="numeric",
h;var q=d.hm(b,"OraDateTimeConverter.resolvedOptions"),p=q("year","string",["2-digit","numeric"]);void 0!==p&&(h.year=p,f=!0);p=q("era","string",["narrow","short","long"]);void 0!==p&&(h.era=p,f=!0);p=q("month","string",["2-digit","numeric","narrow","short","long"]);void 0!==p&&(h.month=p,f=!0);p=q("day","string",["2-digit","numeric"]);void 0!==p&&(h.day=p,f=!0);p=q("weekday","string",["narrow","short","long"]);void 0!==p&&(h.weekday=p,f=!0);p=q("hour","string",["2-digit","numeric"]);void 0!==p&&
(h.hour=p,f=!0,p=q("hour12","boolean",[!0,!1]),void 0===p&&(p=w(a)),h.hour12=p);p=q("minute","string",["2-digit","numeric"]);void 0!==p&&(h.minute=p,f=!0);p=q("second","string",["2-digit","numeric"]);void 0!==p&&(h.second=p,f=!0);h["two-digit-year-start"]=t(b);if(!f){var f=u(b,a,e.resolvedOptions),p=q("formatType","string",["date","time","datetime"],"date"),m=q("dateFormat","string",["short","medium","long","full"],"short"),q=q("timeFormat","string",["short","medium","long","full"],"short");h.formatType=
p;if("datetime"===p||"date"===p)h.dateFormat=m;if("datetime"===p||"time"===p)h.timeFormat=q;h.patternFromOptions=f;return h}h.patternFromOptions=c(b,a,"OraDateTimeConverter.resolvedOptions");return h}q=c({year:"numeric",month:"numeric",day:"numeric"},a,"OraDateTimeConverter.resolvedOptions");return{calendar:"gregorian",locale:g,numberingSystem:h,year:"numeric",month:"numeric",day:"numeric",patternFromOptions:q}},wo:function(a){a=d.isoToLocalDate(a);var b=new Date(a.getTime());b.setDate(b.getDate()+
4-(b.getDay()||7));a=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((a-b)/864E5)/7)+1}}}var b,c,f,m,n,p,r,s,q,t,w,x,u,v={},y,B,M,I,F,D,A,z,E,J,C,N,Q,H,L,G,O,P,W,K,V,Z,X,R,U,ha,Y,T,aa,fa,ba,S,ca,da,ga,ja,ka,la,qa,ma,na,oa=/(\d{1,4})\D+?(\d{1,4})/g,pa=/(\d{1,4})\D+?(\d{1,4})\D+?(\d{1,4})/g,ra=/^[M][^M]|[^M]M[^M]/g,xa=/^[L][^L]|[^L]L[^L]/g,sa=/^[d][^d]|[^d]d[^d]/g,ta=/(?:^|[^h])h[^h]|[^H]H[^H]|[^k]k[^k]|[^K]K[^K]/,ua=/(\d{1,2})(?:\D+?(\d{1,2}))?(?:\D+?(\d{1,2}))?(?:\D+?(\d{1,3}))?/g,
va=/h|H|K|k/g,wa=/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,ia=/ccccc|cccc|ccc|cc|c|EEEEE|EEEE|EEE|EE|E|dd|d|MMMMM|MMMM|MMM|MM|M|LLLLL|LLLL|LLL|LL|L|yyyy|yy|y|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|aa|a|SSS|SS|S|zzzz|zzz|zz|z|GGGGG|GGGG|GGG|GG|G/g,ya=/\s?(?:\(|\[)??z{1,4}(?:\)|\])?/g,za={0:"sun",1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat"},ea={MMM:{token:"months",style:"format",mLen:"abbreviated",matchIndex:0,key:"month",value:"short",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},MMMM:{token:"months",style:"format",
mLen:"wide",matchIndex:0,key:"month",value:"long",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},MMMMM:{token:"months",style:"format",mLen:"narrow",matchIndex:0,key:"month",value:"narrow",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLL:{token:"months",style:"stand-alone",mLen:"abbreviated",matchIndex:1,key:"month",value:"short",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLLL:{token:"months",style:"stand-alone",mLen:"wide",matchIndex:1,key:"month",value:"long",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},
LLLLL:{token:"months",style:"stand-alone",mLen:"narrow",matchIndex:1,key:"month",value:"narrow",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},E:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},EE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},EEE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},
EEEE:{token:"days",style:"format",dLen:"wide",matchIndex:0,key:"weekday",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},EEEEE:{token:"days",style:"format",dLen:"narrow",matchIndex:0,key:"weekday",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},c:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},cc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},ccc:{token:"days",
style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},cccc:{token:"days",style:"stand-alone",dLen:"wide",matchIndex:1,key:"weekday",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},ccccc:{token:"days",style:"stand-alone",dLen:"narrow",matchIndex:1,key:"weekday",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},h:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},hh:{token:"time",timePart:"hour",start1:0,
end1:11,start2:1,end2:12,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},K:{token:"time",timePart:"hour",start1:0,end1:11,start2:0,end2:11,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},KK:{token:"time",timePart:"hour",start1:0,end1:11,start2:0,end2:11,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},H:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},HH:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"2-digit",
regExp:"(\\d\\d?)"},k:{token:"time",timePart:"hour",start1:0,end1:23,start2:1,end2:24,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},kk:{token:"time",timePart:"hour",start1:0,end1:23,start2:1,end2:24,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},m:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"numeric",regExp:"(\\d\\d?)"},mm:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"2-digit",regExp:"(\\d\\d?)"},s:{token:"time",timePart:"second",
start1:0,end1:59,start2:0,end2:59,key:"second",value:"numeric",regExp:"(\\d\\d?)"},ss:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"2-digit",regExp:"(\\d\\d?)"},S:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},SS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},SSS:{token:"time",timePart:"millisec",start1:0,
end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},d:{token:"dayOfMonth",key:"day",value:"numeric",getPartIdx:2,regExp:"(\\d\\d?)"},dd:{token:"dayOfMonth",key:"day",value:"2-digit",getPartIdx:2,regExp:"(\\d\\d?)"},M:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:"(\\d\\d?)"},MM:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:"(\\d\\d?)"},L:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:"(\\d\\d?)"},LL:{token:"monthIndex",
key:"month",value:"2-digit",getPartIdx:1,regExp:"(\\d\\d?)"},y:{token:"year",key:"year",value:"numeric",regExp:"(\\d{1,4})"},yy:{token:"year",key:"year",value:"2-digit",regExp:"(\\d\\d?)"},yyyy:{token:"year",key:"year",value:"numeric",regExp:"(\\d{1,4})"},a:{token:"ampm",key:"hour12",value:!0,regExp:"(\\D*)"},z:{token:"tz",key:"timeZoneName",value:"short",regExp:"([+-]?\\d{1,4})"},zz:{token:"tz",key:"timeZoneName",value:"short",regExp:"([+-]?\\d{1,4})"},zzz:{token:"tz",key:"timeZoneName",value:"short",
regExp:"([+-]?\\d{1,4})"},zzzz:{token:"tz",key:"timeZoneName",value:"long",regExp:"([+-]?\\d{1,4})"},G:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GG:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GGG:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GGGG:{token:"era",key:"era",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},GGGGG:{token:"era",key:"era",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},"/":{token:"slash",regExp:"(\\/)"}};t=function(a){a=
a["two-digit-year-start"];if(void 0===a||isNaN(a))a=1950;return a=parseInt(a,10)};w=function(a){var b=d.vE(d.su(a)).region||"001";return"h"===a.supplemental.prefferedHours[b]};y=function(a){return 0==a%400?!0:0==a%100?!1:0==a%4?!0:!1};B=function(a,b){switch(b){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return y(a)?29:28;default:return 30}};u=function(a,b,c){b=d.rg(b);var e=d.hm(a,c);a=e("formatType","string",["date","time","datetime"],"date");c=e("dateFormat","string",["short",
"medium","long","full"],"short");var e=e("timeFormat","string",["short","medium","long","full"],"short"),g=b.dates.calendars.gregorian;b=g.dateFormats;var g=g.timeFormats,f,h,q;switch(c){case "full":f=b.full;break;case "long":f=b["long"];break;case "medium":f=b.medium;break;case "short":f=b["short"]}switch(e){case "full":h=g.full;break;case "long":h=g["long"];break;case "medium":h=g.medium;break;case "short":h=g["short"]}void 0===f||"datetime"!==a&&"date"!==a||(q=f);void 0===h||"datetime"!==a&&"time"!==
a||(h=h.replace(ya,""),q=q?q+" "+h:h);return q};b=function(a,b){for(var c=0,d=!1,e=0,g=a.length;e<g;e++){var f=a.charAt(e);switch(f){case "'":d?b.push("'"):c++;d=!1;break;case "\\":d&&b.push("\\");d=!d;break;default:b.push(f),d=!1}}return c};r=function(a,b,c){var d;d=void 0!==b.year||void 0!==b.month||void 0!==b.weekday||void 0!==b.day;b=void 0!==b.hour||void 0!==b.minute||void 0!==b.second;d=d&&b?"MM/dd/yy hh:mm:ss a":d?"MM/dd/yy":"hh:mm:ss a";c=new SyntaxError("Unexpected character(s) "+c+' encountered in the pattern "'+
a+' An example of a valid pattern is "'+d+'".');c.errorInfo={errorCode:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:a,"propertyValueHint ":d}};throw c;};A=function(a,b,c,e){b=d.rg(b).dates.calendars.gregorian.dateTimeFormats.availableFormats;c="weekday era year month day hour minute second timeZoneName".split(" ");var g={"2-digit":0,numeric:1,narrow:2,"short":3,"long":4},f=-Infinity,h=void 0,q,k,p;for(p in b){k=!1;var m={};m.pattern=b[p];for(var l=0;null!==(q=ia.exec(p));)q=
q[0],"h"!==q&&"hh"!==q||e?"H"!==q&&"HH"!==q||!e?void 0!==ea[q]&&(m[ea[q].key]=ea[q].value):k=!0:k=!0;if(!k){for(var t in c)k=a[c[t]],q=m[c[t]],void 0===k&&void 0!==q?l-=20:void 0!==k&&void 0===q?l-=120:void 0!==k&&void 0!==q&&(k=Math.max(Math.min(g[q]-g[k],2),-2),2===k?l-=6:1===k?l-=3:-1===k?l-=6:-2===k&&(l-=8));l>f&&(f=l,h=m)}}return void 0!==h?h.pattern:null};I=function(a,b,c){var e="",g="",f={},h={};a=d.hm(a,c);c=a("era","string",["narrow","short","long"]);e+=z(f,"era",c,{narrow:"GGGGG","short":"GGG",
"long":"GGGG"});c=a("year","string",["2-digit","numeric"]);e+=z(f,"year",c,{"2-digit":"yy",numeric:"y"});c=a("month","string",["2-digit","numeric","narrow","short","long"]);e+=z(f,"month",c,{"2-digit":"MM",numeric:"M",narrow:"MMMMM","short":"MMM","long":"MMMM"});c=a("weekday","string",["narrow","short","long"]);e+=z(f,"weekday",c,{narrow:"EEEEE","short":"E","long":"EEEE"});c=a("day","string",["2-digit","numeric"]);var e=e+z(f,"day",c,{"2-digit":"dd",numeric:"d"}),q=a("hour12","boolean",[!0,!1]);void 0===
q&&(q=w(b));c=a("hour","string",["2-digit","numeric"]);g=!0===q?g+z(h,"hour",c,{"2-digit":"hh",numeric:"h"}):g+z(h,"hour",c,{"2-digit":"HH",numeric:"H"});c=a("minute","string",["2-digit","numeric"]);g+=z(h,"minute",c,{"2-digit":"mm",numeric:"m"});c=a("second","string",["2-digit","numeric"]);g+=z(h,"second",c,{"2-digit":"ss",numeric:"s"});return[e,g,f,h]};z=function(a,b,c,d){return void 0!==c?(a[b]=c,d[c]):""};F=function(a,b,c){var e=a;b=d.hm(b,c);c=b("year","string",["2-digit","numeric"]);var g={"2-digit":"yy",
numeric:"yyyy"};void 0!==c&&(e=e.replace(/y{1,4}/,g[c]));c=b("month","string",["2-digit","numeric","narrow","short","long"]);if(void 0!==c){var g={"2-digit":"MM",numeric:"M",narrow:"MMMMM","short":"MMM","long":"MMMM"},f={"2-digit":"LL",numeric:"L",narrow:"LLLLL","short":"LLL","long":"LLLL"};void 0!==g[c]&&2<g[c].length?(e=e.replace(/M{3,5}/,g[c]),e=e.replace(/L{3,5}/,f[c])):"2-digit"===c&&(ra.lastIndex=0,(c=ra.test(a))&&(e=e.replace("M","MM")),(c=xa.test(a))&&(e=e.replace("L","LL")))}c=b("weekday",
"string",["narrow","short","long"]);void 0!==c&&(e=e.replace(/E{1,5}/,{narrow:"EEEEE","short":"EEE","long":"EEEE"}[c]),e=e.replace(/c{1,5}/,{narrow:"ccccc","short":"ccc","long":"cccc"}[c]));c=b("day","string",["2-digit","numeric"]);void 0!==c&&"2-digit"===c&&(sa.lastIndex=0,(c=sa.test(a))&&(e=e.replace("d","dd")));return e};D=function(a,b,c){var e=a;"2-digit"===d.hm(b,c)("hour","string",["2-digit","numeric"])&&(ta.lastIndex=0,b=ta.exec(a),null!==b&&(e=b[0].length-2,e=a.replace(b[0][e],b[0][e]+b[0][e])));
return e};ja=function(a,b,c){var d,e=0;for(d in b)e++;if(1<e)return null;for(d=a.length;0<d;d--)if(b=c[a.substr(0,d)],void 0!==b)return b;return a};c=function(a,b,c){var e=d.rg(b),g=d.su(b),f=d.hm(a,c),h=f("formatMatcher","string",["basic","munger"],"munger"),q=0;for(q in a)q++;0==q&&(a={year:"numeric",month:"numeric",day:"numeric"});q=I(a,b,c);if(void 0!==v[g]){var k=v[g].dates.calendars.gregorian.dateTimeFormats[q[0]+q[1]];if(void 0!==k)return k}if(""===q[0]&&""===q[1])return u(a,b,c);var e=e.dates.calendars.gregorian.dateTimeFormats.availableFormats,
k=e[q[0]],p=f("hour12","boolean",[!0,!1]);void 0===p&&(p=w(b));void 0===k&&""!==q[0]&&(k=ja(q[0],q[2],e),null===k&&(k=A(q[2],b,0,p)),null!==k?"basic"!==h&&(k=F(k,a,c)):k=q[0]);f=e[q[1]];void 0===f&&""!==q[1]&&(f=ja(q[1],q[3],e),null===f&&(f=A(q[3],b,0,p)),null!==f?"basic"!==h&&(f=D(f,a,c)):f=q[1]);a=k||"";void 0!==f&&(a=""!==a?a+(" "+f):f);void 0===v[g]&&(v[g]={},v[g].dates={},v[g].dates.calendars={},v[g].dates.calendars.gregorian={},v[g].dates.calendars.gregorian.dateTimeFormats={});return v[g].dates.calendars.gregorian.dateTimeFormats[q[0]+
q[1]]=a};m=function(a,e,g){function f(a,b){switch(b){case 0:return a.getFullYear();case 1:return a.getMonth()+1;case 2:return a.getDate();case 3:return za[a.getDay()]}}function q(a,b,c,e){b=f(b,c);a.push(1<e?d.nd(b,e):b)}function p(a,b,c,e,g){var f;switch(e.timePart){case "hour":f=11===e.end1?b.getHours()%12:b.getHours();"h"===g||"hh"===g?0===f&&(f=12):"k"!==g&&"kk"!==g||0!==f||(f=24);break;case "minute":f=b.getMinutes();break;case "second":f=b.getSeconds();break;case "millisec":f=b.getMilliseconds()}a.push(1<
c?d.nd(f,c):f)}var m=d.rg(e),l=g.pattern||c(g,e,"OraDateTimeConverter.format");e=[];for(var t,n=0,m=m.dates.calendars.gregorian;;){t=ia.lastIndex;var s=ia.exec(l);t=l.slice(t,s?s.index:l.length);n+=b(t,e);if(!s)break;if(n%2)e.push(s[0]);else{t=s[0];var s=t.length,w=ea[t];switch(w.token){case "days":t=m[w.token][w.style][w.dLen];e.push(t[f(a,3)]);break;case "months":t=m[w.token][w.style][w.mLen];e.push(t[f(a,1)]);break;case "dayOfMonth":case "monthIndex":e.push(q(e,a,w.getPartIdx,s));break;case "year":t=
a.getFullYear();2==s&&(t%=100);e.push(d.nd(t,s));break;case "time":p(e,a,s,w,t);break;case "ampm":t=12>a.getHours()?m.dayPeriods.format.wide.am:m.dayPeriods.format.wide.pm;e.push(t);break;case "tz":break;case "era":t=m.eras.eraAbbr;e.push(t["1"]);break;case "slash":e.push("/");break;default:r(l,g,t)}}}return e.join("")};C=function(a,b){return a.getFullYear()==b.getFullYear()};N=function(a,b){return 1==b.getFullYear()-a.getFullYear()};Q=function(a,b){return N(b,a)};H=function(a,b){return C(a,b)&&a.getMonth()===
b.getMonth()};L=function(a,b){return C(a,b)?1==b.getMonth()-a.getMonth():N(a,b)?11==a.getMonth()&&0==b.getMonth():!1};G=function(a,b){return L(b,a)};E=function(a,b){var c=a.getDate(),d=b.getDate();L(a,b)&&(d+=B(a.getFullYear,a.getMonth()));return d-c};J=function(a,b){var c=d.vE(d.su(a)).region||"001",c=b-a.supplemental.weekData.firstDay[c];0>c&&(c+=7);return c};O=function(a,b,c){if(b>c){var d=b;b=c;c=d}if(!H(b,c)&&!L(b,c))return!1;a=E(b,c)+J(a,b.getDay());return 0<=a&&6>=a};P=function(a,b,c){if(!H(b,
c)&&!L(b,c))return!1;a=E(b,c)+J(a,b.getDay());return 7<=a&&13>=a};W=function(a,b,c){return P(a,c,b)};K=function(a,b){return C(a,b)&&H(a,b)&&a.getDate()===b.getDate()};V=function(a,b){return H(a,b)||L(a,b)?1===E(a,b):!1};Z=function(a,b){return V(b,a)};p=function(a,b,c){if("number"===typeof a)a=new Date(a);else if("string"===typeof a){if(""===d.trim(a))return null;a=d.isoToLocalDate(a)}else return null;var e=d.rg(b).dates.fields;c=d.hm(c,"OraDateTimeConverter.formatRelative");c("formatUsing","string",
["displayName"]);c=c("dateField","string",["day","week","month","year"]);var g=new Date;switch(c){case "day":if(K(g,a))return e.day["relative-type-0"];if(V(g,a))return e.day["relative-type-1"];if(Z(g,a))return e.day["relative-type--1"];break;case "week":if(O(b,g,a))return e.week["relative-type-0"];if(P(b,g,a))return e.week["relative-type-1"];if(W(b,g,a))return e.week["relative-type--1"];break;case "month":if(H(g,a))return e.month["relative-type-0"];if(L(g,a))return e.month["relative-type-1"];if(G(g,
a))return e.month["relative-type--1"];break;case "year":if(C(g,a))return e.year["relative-type-0"];if(N(g,a))return e.year["relative-type-1"];if(Q(g,a))return e.year["relative-type--1"]}return null};ka=function(a,b){var c;c=Error("The weekday "+a+" does not match the date "+b);c.errorInfo={errorCode:"dateToWeekdayMismatch",parameterMap:{weekday:a,date:b}};throw c;};ga=function(a,b,c){var d;2===c?(d='The value "'+a+'" does not match the expected date-time format "'+b+'"',c="datetimeFormatMismatch"):
0===c?(d='The value "'+a+'" does not match the expected date format "'+b+'"',c="dateFormatMismatch"):(d='The value "'+a+'" does not match the expected time format "'+b+'"',c="timeFormatMismatch");d=Error(d);d.errorInfo={errorCode:c,parameterMap:{value:a,format:b}};throw d;};X=function(a,b){100>b&&(b+=100*Math.floor(a/100)+(b<a%100?100:0));return b};ca=function(a,b){var c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},e;for(e in a)if(d.trim(d.Dg(a[e]))==d.trim(b))return c[e];return-1};da=function(a,b){for(var c in a)if(d.trim(d.Dg(a[c]))===
d.trim(b))return c-1;return-1};aa=function(a,b,c){var e=d.rg(a),g;a=e.dates.calendars.gregorian.days.format;e=e.dates.calendars.gregorian.days["stand-alone"];switch(c){case 0:g=[a.abbreviated,a.wide];break;case 1:g=[e.abbreviated,e.wide]}b=d.Dg(b);c=ca(g[0],b);-1===c&&(c=ca(g[1],b));return c};fa=function(a,b,c){var e=-1,g=d.rg(a);a=g.dates.calendars.gregorian.months.format;g=g.dates.calendars.gregorian.months["stand-alone"];switch(c){case 0:c=[a.wide,a.abbreviated];break;case 1:c=[g.wide,g.abbreviated];
break;case 2:c=[a.wide,a.abbreviated,g.wide,g.abbreviated];break;default:return-1}b=d.Dg(b);for(var f in c)if(e=da(c[f],b),-1!==e)break;return e};ba=function(a,c){for(var d=a.replace(wa,"\\\\$1"),e=["^"],g=[],f=0,q=0,k;null!==(k=ia.exec(d));){var p=d.slice(f,k.index),f=ia.lastIndex,q=q+b(p,e);if(q%2)e.push(k[0]);else{var p=k[0],m;void 0!==ea[p]?m=ea[p].regExp:r(a,c,p);m&&e.push(m);g.push(k[0])}}b(d.slice(f),e);e.push("$");d={regExp:e.join("").replace(/\s+/g,"\\s+"),groups:g};return{}[a]=d};S=function(a,
b,c,d,e,g,f){if(b<c||b>d)throw b=new RangeError(e+" is out of range.  Enter a value between "+g+" and "+f+" for "+a),b.errorInfo={errorCode:"datetimeOutOfRange",parameterMap:{value:e,minValue:g,maxValue:f,propertyName:a}},b;};R=function(a,b){for(var c in a)for(var d in a[c])if(d===b)return parseInt(c,10);return 0};T=function(a,b,c,e,g){var f=d.rg(e).dates.calendars.gregorian.dayPeriods.format.wide.pm,h=e=ua.lastIndex=0,q=0,k=0,p=ua.exec(b);null===p&&ga(b,c,g);void 0!==p[1]&&(e=parseInt(p[1],10));
void 0!==p[2]&&(h=parseInt(p[2],10));void 0!==p[3]&&(q=parseInt(p[3],10));void 0!==p[4]&&(k=parseInt(p[4],10));va.lastIndex=0;p=va.exec(c);switch(p[0]){case "h":12===e&&(e=0);S("hour",e,0,11,e,1,12);b=d.Dg(b).indexOf(d.Dg(f));-1!==b&&12>e&&(e+=12);break;case "K":S("hour",e,0,11,e,0,11);b=d.Dg(b).indexOf(d.Dg(f));-1!==b&&12>e&&(e+=12);break;case "H":S("hour",e,0,23,e,0,23);break;case "k":24===e&&(e=0),S("hour",e,0,23,e,1,24)}S("minute",h,0,59,h,0,59);S("second",q,0,59,q,0,59);S("millisec",k,0,999,
k,0,999);a.setHours(e,h,q,k)};na=function(a,b){var c=d.rg(b),e=c.dates.calendars.gregorian.days.format,c=c.dates.calendars.gregorian.days["stand-alone"],e=[e.wide,e.abbreviated,c.wide,c.abbreviated],c=!1,g,f,h;for(f in e){for(h in e[f])if(g=e[f][h],(new RegExp(g+"\\b","i")).test(a)){c=!0;break}if(c)break;g=null}return g};ha=function(a,b,c,d,e){pa.lastIndex=0;var g=pa.exec(a);null===g&&ga(a,b,e?2:0);var f=[{y:b.indexOf("y")},{M:b.indexOf("M")},{d:b.indexOf("d")}];f.sort(function(a,b){for(var c in a)break;
for(var d in b)break;return a[c]-b[d]});var h,q,k,p,m,l,r=!1,n=!1;for(l=1;3>=l;l++){var s=g[l];if(2<s.length||31<s)h=s,r=!0,p=l-1}r||(p=R(f,"y"),h=g[R(f,"y")+1]);for(l=0;3>l;l++)if(l!==p&&12<g[l+1]){k=g[l+1];n=!0;m=l;break}if(n){for(l=0;3>l;l++)if(l!==m&&l!==p){q=g[l+1];break}void 0===q&&(q=g[R(f,"M")+1])}else p===R(f,"d")?(k=g[R(f,"y")+1],q=g[R(f,"M")+1]):p===R(f,"M")?(k=g[R(f,"d")+1],q=g[R(f,"y")+1]):(k=g[R(f,"d")+1],q=g[R(f,"M")+1]);q-=1;g=B(h,q);S("month",q,0,11,q+1,1,12);S("day",k,1,g,k,1,g);
h=X(t(c),parseInt(h,10));S("year",h,0,9999,h,0,9999);c=new Date(h,q,k);h=na(a,d);null!=h&&(q=aa(d,h,0),c.getDay()!==q&&ka(h,c.getDate()));c={value:c,warning:"lenient parsing was used"};e&&(a=a.substr(pa.lastIndex),0===a.length?c.value.setHours(0,0,0,0):T(c.value,a,b,d,2));return c};Y=function(a,b,c,e,g){var f=a;a=d.Dg(a);var h=d.rg(e),q=h.dates.calendars.gregorian.months.format,h=h.dates.calendars.gregorian.months["stand-alone"],q=[q.wide,q.abbreviated,h.wide,h.abbreviated],h=!1,k,p,l,m;for(p in q){k=
[];for(l in q[p])m=d.Dg(q[p][l]),k.push({idx:l,name:m});k.sort(function(a,b){return b.idx-a.idx});for(l in k)if(m=k[l].name,-1!=a.indexOf(m)){h=!0;a=a.replace(m,"");break}if(h)break}if(!h)return ha(f,b,c,e,g);l=fa(e,m,2);S("month",l,0,11,l,1,12);m=na(f,e);p=new RegExp(m+"\\W","i");null!==m&&(a=a.replace(p,""));oa.lastIndex=0;q=oa.exec(a);null===q&&ga(f,b,g?2:0);f=[{y:b.indexOf("y")},{d:b.indexOf("d")}];f.sort(function(a,b){for(var c in a)break;for(var d in b)break;return a[c]-b[d]});var r,n,h=!1;
for(p=1;2>=p;p++)if(k=q[p],2<k.length||31<k)r=k,h=!0,n=p-1;h||(n=R(f,"y"),r=q[R(f,"y")+1]);n=n===R(f,"d")?q[R(f,"y")+1]:q[R(f,"d")+1];r=X(t(c),parseInt(r,10));S("year",r,0,9999,r,0,9999);c=new Date(r,l,n);null!=m&&(p=aa(e,m,0),c.getDay()!==p&&ka(m,c.getDate()));r=B(r,l);S("day",n,1,r,n,1,r);r={value:c,warning:"lenient parsing was used"};g&&(a=a.substr(oa.lastIndex),0===a.length?r.value.setHours(0,0,0,0):T(r.value,a,b,e,2));return r};U=function(a,b,c,d){switch(q(c,"OraDateTimeConverter.parse")){case 0:return Y(a,
b,c,d,!1);case 1:return c=new Date,T(c,a,b,d,1),{value:c,warning:"lenient parsing was used"};case 2:return Y(a,b,c,d,!0)}return null};ma=function(a,b,c,e,g,f,h,q,k,p,m){g=d.rg(a).dates.calendars.gregorian[b][g];a="months"===b?fa(a,c,f):aa(a,c,f);S(m,a,h,q,c,g[e][k],g[e][p]);return a};qa=function(a,b,c,d,e){b[c.timePart]=a;"h"===e||"hh"===e?12===a&&(b[c.timePart]=0):"k"===e||"kk"===e?24===a&&(b[c.timePart]=0):"S"===e&&(b[c.timePart]=a*Math.pow(10,3-d));S(c.timePart,b[c.timePart],c.start1,c.end1,a,
c.start2,c.end2)};f=function(a,b,c,e){var g=d.rg(e);a=d.trim(a);var f=g.dates.calendars.gregorian.eras.eraAbbr["1"],h=d.cl(f);a=a.replace(f,h);var f=ba(b,c),q=(new RegExp(f.regExp)).exec(a);if(null===q)return U(a,b,c,e);var k=f.groups,p=h=f=null,m=null,l;l=null;for(var r=!1,n,s,w={hour:0,minute:0,second:0,millisec:0},g=g.dates.calendars.gregorian.dayPeriods.format.wide.pm,D=t(c),x=0,A=k.length;x<A;x++){var u=q[x+1];if(u){var v=k[x],F=v.length;n=parseInt(u,10);var z=ea[v];switch(z.token){case "months":h=
ma(e,z.token,u,z.mLen,z.style,z.matchIndex,0,11,"1","12","month name");break;case "days":s=u;m=ma(e,z.token,u,z.dLen,z.style,z.matchIndex,0,6,"sun","sat","weekday");break;case "time":qa(n,w,z,F,v);break;case "dayOfMonth":p=n;if(31<p)return U(a,b,c,e);break;case "monthIndex":h=n-1;if(11<h)return U(a,b,c,e);break;case "year":f=X(D,n);S("year",f,0,9999,f,0,9999);break;case "ampm":r=d.Dg(u)===d.Dg(g);break;case "tz":l=n/100<<0,S("TZ Offset",l,-12,13,n,-12,13),n=Math.abs(n%100),S("TZ Offset",n,0,59,n,
0,59),l=60*l+(d.az(u,"-")?-n:n)}}}a=new Date;b=a.getFullYear();null===f&&(f=b);null===h&&null===p?(h=a.getMonth(),p=a.getDate()):null===p&&(p=1);b=B(f,h);S("day",p,1,b,p,1,b);a.setFullYear(f,h,p);null!==m&&a.getDay()!==m&&ka(s,a.getDate());r&&12>w.hour&&(w.hour+=12);a.setHours(w.hour,w.minute,w.second,w.millisec);null!==l&&(s=a.getMinutes()-(l+a.getTimezoneOffset()),a.setHours(a.getHours()+(s/60<<0),s%60));return{value:a}};s=function(a,c,d){var e=d.replace(wa,"\\\\$1"),g=["^"],f=0,q=0;for(a={locale:a,
numberingSystem:c,calendar:"gregorian"};null!==(c=ia.exec(e));){var k=e.slice(q,c.index),q=ia.lastIndex,f=f+b(k,g);if(!(f%2)&&(c=c[0],"/"!==c&&"zzzz"!==c&&"zzz"!==c&&"zz"!==c&&"z"!==c))if(void 0!==ea[c])if(a[ea[c].key]=ea[c].value,"kk"===c||"HH"===c||"H"===c||"k"===c)a.hour12=!1;else{if("KK"===c||"hh"===c||"h"===c||"K"===c)a.hour12=!0}else r(d,a,c)}return a};x=function(a){a=s("","",a);var b=void 0!==a.hour||void 0!==a.minute||void 0!==a.second;return void 0===a.year&&void 0===a.month&&void 0===a.weekday&&
void 0===a.day||!b?b?1:0:2};q=function(a,b){if(void 0!==a.pattern)return x(a.pattern);var c=d.hm(a,b),e=void 0!==c("hour","string",["2-digit","numeric"])||void 0!==c("minute","string",["2-digit","numeric"])||void 0!==c("second","string",["2-digit","numeric"]),g=void 0!==c("year","string",["2-digit","numeric"])||void 0!==c("month","string",["2-digit","numeric","narrow","short","long"])||void 0!==c("day","string",["2-digit","numeric"])||void 0!==c("weekday","string",["narrow","short","long"]);if(g&&
e)return 2;if(e)return 1;if(g)return 0;c=c("formatType","string",["date","time","datetime"],"date");return"datetime"===c?2:"time"===c?1:0};la=function(a,b){var c,e;switch(a){case 0:e=d.nd(b.getFullYear(),4)+"-"+d.nd(b.getMonth()+1,2)+"-"+d.nd(b.getDate(),2);break;case 1:e="T"+d.nd(b.getHours(),2)+":"+d.nd(b.getMinutes(),2)+":"+d.nd(b.getSeconds(),2);c=b.getMilliseconds();0<c&&(e+="."+c);break;default:e=d.nd(b.getFullYear(),4)+"-"+d.nd(b.getMonth()+1,2)+"-"+d.nd(b.getDate(),2)+"T"+d.nd(b.getHours(),
2)+":"+d.nd(b.getMinutes(),2)+":"+d.nd(b.getSeconds(),2),c=b.getMilliseconds(),0<c&&(e+="."+c)}return e};n=function(a,b,e,g){var h=d.br(g,"nu");void 0===d.Yk[h]&&(h="latn");if("latn"!==h){var p,m=[];for(p=0;p<a.length;p++){var t=d.Yk[h].indexOf(a[p]);-1!=t?m.push(t):m.push(a[p])}a=m.join("")}if(2>=arguments.length||void 0===e)e={year:"numeric",month:"numeric",day:"numeric"};h=q(e,"OraDateTimeConverter.parse");m=e.pattern||c(e,b,"OraDateTimeConverter.parse");p={};if(!0===d.eR.test(a))return m=d.isoToLocalDate(a),
p.value=la(h,m),p;m=f(a,m,e,b);t=m.value;p.warning=m.warning;p.value=la(h,t);return p};return{le:function(){M||(M=a());return M}}}();b.il=function(a){this.Init(a)};o_("LengthValidator",b.il,b);b.b.ga(b.il,b.Zf,"oj.LengthValidator");b.il.prototype.Init=function(a){b.il.q.Init.call(this);this.$g=a.min;this.Gh=a.max;a&&(this.Ow=a.hint||{},this.iw=a.messageSummary||{},this.hw=a.messageDetail||{})};b.b.g("LengthValidator.prototype.Init",{Init:b.il.prototype.Init});b.il.prototype.uc=function(){var a=null,
c=this.Ow,d=c.inRange,e=c.min,f=c.max,c=c.exact,n=b.ha,p=void 0!==this.$g?parseInt(this.$g,10):null,r=void 0!==this.Gh?parseInt(this.Gh,10):null;null!==p&&null!==r?p!==r?(a={min:p,max:r},a=d?n.Ib(d,a):n.A("oj-validator.length.hint.inRange",a)):(a={length:p},a=c?n.Ib(c,a):n.A("oj-validator.length.hint.exact",a)):null!==p?(a={min:p},a=e?n.Ib(e,a):n.A("oj-validator.length.hint.min",a)):null!==r&&(a={max:r},a=f?n.Ib(f,a):n.A("oj-validator.length.hint.max",a));return a};b.il.prototype.validate=function(a){var c=
"",d="",c=""+a,e=c.length,f=this.hw,n=this.iw,d=f.tooShort,f=f.tooLong,p=n.tooShort,r=n.tooLong,n=b.ha,s=void 0!==this.$g?parseInt(this.$g,10):null,q=void 0!==this.Gh?parseInt(this.Gh,10):null;if((null===s||e>=this.$g)&&(null===q||e<=this.Gh))return c;e<this.$g?(a={value:a,min:s},c=p?n.Ib(p,a):n.A("oj-validator.length.messageSummary.tooShort"),d=d?n.Ib(d,a):n.A("oj-validator.length.messageDetail.tooShort",a)):(a={value:a,max:q},c=r?n.Ib(r,a):n.A("oj-validator.length.messageSummary.tooLong"),d=f?n.Ib(f,
a):n.A("oj-validator.length.messageDetail.tooLong",a));throw new b.yh(c,d);};b.b.g("LengthValidator.prototype.validate",{validate:b.il.prototype.validate})});