@progress/kendo-react-intl
Advanced tools
Comparing version 0.6.0-dev.201805111618 to 0.6.0-dev.201805140918
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],r):"object"==typeof exports?exports.KendoReactIntl=r(require("prop-types"),require("react")):e.KendoReactIntl=r(e.PropTypes,e.React)}(window,function(e,r){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=7)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(1),a=function(){function e(e){if(this.locale=e,""===e)throw"Locale should not be empty string"}return e.prototype.format=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return 1===r.length&&r[0]instanceof Array?n.format(e,r[0],this.locale):n.format(e,r,this.locale)},e.prototype.formatDate=function(e,r){return n.formatDate(e,r,this.locale)},e.prototype.toString=function(e,r){return n.toString(e,r,this.locale)},e.prototype.parseNumber=function(e,r){return n.parseNumber(e,this.locale,r)},e.prototype.parseDate=function(e,r){return n.parseDate(e,r,this.locale)},e.prototype.formatNumber=function(e,r){return n.formatNumber(e,r,this.locale)},e.prototype.dateFieldName=function(e){return n.dateFieldName(e,this.locale)},e.prototype.dateFormatNames=function(e){return n.dateFormatNames(this.locale,e)},e.prototype.splitDateFormat=function(e){return n.splitDateFormat(e,this.locale)},e.prototype.numberSymbols=function(){return n.numberSymbols(this.locale)},e.prototype.firstDay=function(){return n.firstDay(this.locale)},e}();r.default=a},function(e,r,t){"use strict";t.r(r);var n={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"}}}};function a(e){return"string"==typeof e}var i=/\{(\d+)}?\}/g,o=function(e){var r=e.name,t=e.message;if(!r||!t)throw new Error("{ name: string, message: string } object is required!");this.name=r,this.message=t};o.prototype.formatMessage=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var t=u(e),n=this.message.replace(i,function(e,r){return t[parseInt(r,10)]});return this.name+": "+n},o.prototype.error=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return new Error(this.formatMessage(e))};var u=function(e){return e.reduce(function(e,r){return e.concat(r)},[])},s=function(e){return Object.keys(e).reduce(function(r,t){return r[t]=new o({name:t,message:e[t]}),r},{})},l=s({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."});var m=n;function c(e){return a(e)?f(e):e}function f(e){if(m[e])return m[e];if(m.supplemental.likelySubtags){var r=e.split("-"),t=r[0],n=r.slice(1),a=function(e,r){for(var t=m.supplemental.likelySubtags,n=0;n<r.length;n++){var a=t[e+"-"+r[n]];if(a)return a}if(t[e])return t[e]}(t,n),i=a?function(e,r){var t=e.split("-"),n=t[0],a=t[1],i=t[2];return m[e]||-1!==r.indexOf(i)&&m[n+"-"+i]||-1!==r.indexOf(a)&&m[n+"-"+a]||m[n]}(a,n):null;if(i)return i}throw l.NoLocale.error(e)}var d="decimal",y="currency",p="accounting",v="percent",h="scientific",g="$",M="%",b="n",S=";",w=",",F=".",x="",D="en",N="Formats-numberSystem-latn",H="symbols-numberSystem-latn",E=/([#,0.]+)/g,O=/¤/g;function T(e){return E.lastIndex=0,e.replace(O,g).replace(E,b).split(S)}function I(e){return E.lastIndex=0,E.exec(e.split(S)[0])[0].split(F)[0].split(w).slice(1).map(function(e){return e.length}).reverse()}function k(e,r){for(var t in r)t.startsWith("unitPattern")&&(e[t]=r[t].replace("{0}",b).replace("{1}",g))}function C(e,r){var t=m[e],n=t.numbers=t.numbers||{};for(var a in n.symbols=n.symbols||{},r)if(a===H)Object.assign(n.symbols,r[a]);else if(a.includes(N)){var i=a.substr(0,a.indexOf(N)),o=r[a].standard;n[i]={patterns:T(o)},i===y?(n[i].groupSize=I((r[d+N]||r[a]).standard),k(n[i],r[a]),n[p]={patterns:T(r[a][p]),groupSize:n[i].groupSize}):n[i].groupSize=I(o)}else"currencies"===a&&(n.currencies=r[a])}var A={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},z={d:[["dateTimeFormats","availableFormats","yMd"]],D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function _(e){for(var r=[],t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var a=e[t[n]];r.push(a)}return r}function P(e,r){var t={};for(var n in e){var a=t[n]={};for(var i in e[n]){var o=e[n][i];a[i]=r?o:_(o)}}return t}function L(e,r){var t=m[e].calendar;t.days=P(r.days),t.months=P(r.months),t.quarters=P(r.quarters),t.dayPeriods=P(r.dayPeriods,!0),t.eras=function(e){var r={},t=r.format={},n={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var a in e)t[n[a]]=e[a];return r}(r.eras)}function j(e,r){var t=m[e].calendar,n={};for(var a in r){var i=a.split("-"),o=i[0],u=i[1];void 0===u&&(u="wide");var s=n[o]||{},l=r[a].displayName;l&&(s[u]=l,n[o]=s)}t.dateFields=n}function q(e,r){for(var t=[],n=0;n<e.length;n++){for(var a=e[n],i=r,o=0;o<a.length;o++)i=i[a[o]];t.push(i)}return t.join(" ")}function G(e,r){var t=m[e].calendar,n=t.patterns={};for(var a in z)n[a]=q(z[a],r);for(var i in A)n[i]=A[i];var o=r.dateTimeFormats;t.dateTimeFormats={full:o.full,long:o.long,medium:o.medium,short:o.short,availableFormats:o.availableFormats},t.timeFormats=r.timeFormats,t.dateFormats=r.dateFormats}function Q(e,r){var t=m[e].calendar=m[e].calendar||{};for(var n in r)"timeZoneNames"===n?(t.gmtFormat=r[n].gmtFormat,t.gmtZeroFormat=r[n].gmtZeroFormat):"calendars"===n&&r[n].gregorian?(G(e,r[n].gregorian),L(e,r[n].gregorian)):"fields"===n&&j(e,r.fields)}function X(e){if(e.territory)return e.territory;var r,t=e.name,n=e.identity;return r=n&&n.territory?n.territory:function(e,r){var t=m.supplemental.likelySubtags,n=e.split("-");if(t){var a=t[e]||t[n[0]];a&&(n=a.split("-"))}if(r)for(var i=n.length-1;i>=1;i--){var o=n[i];o!==r.variant&&o!==r.script||n.splice(i,1)}var u=n.length;if(u>1)return n[u-1].toUpperCase()}(t,n),e.territory=r,r}function Z(e,r){for(var t in r)"numbers"===t?C(e,r[t]):"dates"===t&&Q(e,r[t])}function B(){for(var e=arguments,r=arguments.length,t=0;t<r;t++){var n=e[t];if(n.main){var a=Object.keys(n.main)[0],i=n.main[a],o=m[a]=m[a]||{};o.name=o.name||a,o.identity=o.identity||i.identity,X(o),Z(a,i)}else n.supplemental&&(n.supplemental.weekData?m.supplemental.weekData={firstDay:n.supplemental.weekData.firstDay}:Object.assign(m.supplemental,n.supplemental))}}function U(e){var r=e.name,t=m[r]=m[r]||{};if(e.likelySubtags){var n=m.supplemental=m.supplemental||{};n.likelySubtags=Object.assign(n.likelySubtags||{},e.likelySubtags)}var a=t.numbers;Object.assign(t,e),a&&e.numbers&&(t.numbers=Object.assign({},a,e.numbers))}function J(e,r){void 0===r&&(r=D);var t=f(r).calendar.dateFields;if(!t)throw l.NoDateFieldNames.error();var n=t[e.type]||{};return n[e.nameType]||n.wide}function W(e,r){var t,n=r.type,a=r.nameType,i=r.standAlone,o=r.lower,u=c(e),s=i?"stand-alone":"format",l=(o?"lower-":x)+a,m=u.calendar[n][s],f=m[l];return!f&&o&&(f=m[l]=(t=m[a],Array.isArray(t)?function(e){for(var r=[],t=0;t<e.length;t++)r.push(e[t].toLowerCase());return r}(t):function(e){var r={};for(var t in e)r[t]=e[t].toLowerCase();return r}(t))),f}function $(e){var r=e.split("-"),t=parseInt(r[0],10),n=parseInt(r[1],10)-1,a=parseInt(r[2],10);return new Date(t,n,a)}var R=l.NoCurrency,Y=l.NoCurrencyDisplay,K=l.NoSupplementalCurrency,V=l.NoCurrencyRegion,ee=l.NoValidCurrency,re=2,te="symbol",ne="XXX",ae={"001":"USD",150:"EUR"};function ie(e,r,t){var n=c(e).numbers.currencies;if(n){var a=n[r];if(a)return a;if(t)throw Y.error()}else if(t)throw R.error()}function oe(e,r){return r.length-e.length}function ue(e,r,t){void 0===t&&(t=!0);var n=ie(e,r,t);if(n){if(!n.displays){var a=[r];for(var i in n)a.push(n[i]);a.sort(oe),n.displays=a}return n.displays}}function se(e,r){var t=r.value,n=r.currency,a=r.currencyDisplay;if(void 0===a&&(a=te),"code"===a)return n;var i=ie(e,n,!0);return a===te?i["symbol-alt-narrow"]||i[te]:void 0===typeof t||1!==t?i["displayName-count-other"]:i["displayName-count-one"]}function le(e){var r=re,t=re,n=((m.supplemental.currencyData||{}).fractions||{})[e];return n&&n._digits&&(t=r=parseInt(n._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}function me(e,r){if(void 0===r&&(r=!0),ae[e])return ae[e];var t=m.supplemental.currencyData;if(t){var n=t.region[e];if(n)return function(e){for(var r,t,n,a,i=0;i<e.length;i++){var o=e[i],u=Object.keys(o)[0],s=o[u];if(u!==ne&&"false"!==s._tender&&s._from)if(s._to){if(!n){var l=$(s._from),m=$(s._to);(!t||t.to<m||t.from<l)&&(r=u,t={from:l,to:m})}}else{var c=$(s._from);(!a||a<c)&&(n=u,a=c)}}return n||r}(n);if(r)throw V.error(e)}else if(r)throw K.error()}function ce(e,r){var t=c(e),n=t.numbers;if(!n.localeCurrency){var a=me(X(t),r);if(!a&&r)throw ee.error(t.name);n.localeCurrency=a}return n.localeCurrency}var fe=l.NoWeekData,de=l.NoFirstDay,ye=["sun","mon","tue","wed","thu","fri","sat"],pe="001";function ve(e){var r=c(e);if(!isNaN(r.firstDay))return r.firstDay;var t=m.supplemental.weekData;if(!t)throw fe.error();var n=t.firstDay[X(r)]||t.firstDay[pe];if(!n)throw de.error();return r.firstDay=ye.indexOf(n),r.firstDay}function he(e){return c(e).numbers.symbols}function ge(e,r){return void 0===r&&(r={}),r.currency||(r.currency=ce(e,!0)),se(e,r)}function Me(e,r,t,n,a){var i=a.numbers.symbols,o=e.indexOf(i.decimal),u=n.groupSize.slice(),s=u.shift(),l=-1!==o?o:t+1,m=e.substring(r,l),c=e,f=m.length;if(f>=s){for(var d=f,y=[];d>-1;){var p=m.substring(d-s,d);p&&y.push(p),d-=s;var v=u.shift();if(0===(s=void 0!==v?v:s)){(p=m.substring(0,d))&&y.push(p);break}}m=y.reverse().join(i.group),c=e.substring(0,r)+m+e.substring(l)}return c}function be(e){return e===y||e===p}function Se(e,r,t){void 0===r&&(r=2),void 0===t&&(t=!1);var n=r-String(e).length,a=e;if(n>0){var i=new Array(n+1).join("0");a=t?e+i:i+e}return a}var we=20;function Fe(e,r){var t=e,n=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+n:n)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-n:-n))).toFixed(Math.min(n,we))}var xe=3,De=0,Ne=/0+$/;function He(e,r,t){var n=t.numbers.symbols,a=r.style,i=be(a);if(a===h)return(void 0!==r.minimumFractionDigits?e.toExponential(r.minimumFractionDigits):e.toExponential()).replace(F,n.decimal);var o,u=e;i&&(r.value=u,o=ge(t,r)),a===v&&(u*=100,o=n.percentSign);var s=function(e){var r,t=e.minimumFractionDigits,n=e.maximumFractionDigits,a=e.style,i=be(a);return i&&(r=le(e.currency)),void 0===t&&(t=i?r.minimumFractionDigits:0),void 0===n&&(n=a===v?Math.max(t,De):i?Math.max(t,r.maximumFractionDigits):Math.max(t,xe)),{minimumFractionDigits:t,maximumFractionDigits:n}}(r),l=s.minimumFractionDigits,m=(u=Fe(u,s.maximumFractionDigits))<0,c=u.split(F),f=c[0],d=Se(c[1]?c[1].replace(Ne,x):x,l,!0);m&&(f=f.substring(1)),r.minimumIntegerDigits&&(f=Se(f,r.minimumIntegerDigits));var y,p=!1!==r.useGrouping?Me(f,0,f.length,r,t):f;if(d&&(p+=n.decimal+d),i&&"name"===r.currencyDisplay)y=function(e,r){var t=e.numbers.currency,n=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(n=n.replace(b,"-"+b)),n}(t,e);else{var S=r.patterns;y=m?S[1]||"-"+S[0]:S[0]}return y!==b||m?function(e,r,t){for(var n=x,a=0,i=r.length;a<i;a++){var o=r.charAt(a);n+=o===b?e:o===g||o===M?t:o}return n}(p,y,o):p}var Ee="__??__",Oe="#",Te="0",Ie=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,ke=/(\.(?:[0-9]*[1-9])?)0+$/g,Ce=/\.$/,Ae=/\,/g;function ze(e){var r,t,n,a=e.number,i=e.format,o=i.indexOf(F);if(-1!==o){var u=i.lastIndexOf(Te)-o,s=i.lastIndexOf(Oe)-o,l=u>-1,m=s>-1,c=a.toString().split("e"),f=(c=(c=c[1]?Fe(a,Math.abs(c[1])):c[0]).split(F)[1]||x).length,d=-1;l||m?l&&u>s?f=u:s>u&&(m&&f>s?f=s:l&&f<u&&(f=u),d=l?u:0):(e.format=i.substring(0,o)+i.substring(o+1),o=-1,f=0),f>-1&&(a=Fe(a,f),d>-1&&(r=a,n=0===(t=d)?ke:new RegExp("(\\.[0-9]{"+t+"}[1-9]*)0+$","g"),a=r.replace(n,"$1").replace(Ce,x)))}else a=Fe(a);e.negative&&-1*a>=0&&(e.negative=!1),e.number=a,e.decimalIndex=o}function _e(e){var r=e.number,t=e.format;if(t=t.split(S),e.negative&&t[1])t=t[1],e.hasNegativeFormat=!0;else if(0===r){var n=t[2];t=n||t[0],n&&function(e){return-1===e.indexOf(Oe)&&-1===e.indexOf(Te)}(n)&&(e.constant=n)}else t=t[0];e.format=t}function Pe(e,r,t){return-1===e&&-1!==r?r:-1!==e&&-1===r?e:t?Math.min(e,r):Math.max(e,r)}function Le(e,r){var t=e.number;return-1!==e.start&&(t=function(e,r){var t=e;if(r)for(var n=r.length,a=0;a<n;a++)t=t.replace(Ee,r[a]);return t}(t=function(e,r,t){var n=e;if(r===y||r===v){n=x;for(var a=0,i=e.length;a<i;a++){var o=e.charAt(a);n+=o===g||o===M?t:o}}return n}(t=function(e,r){var t=e.start,n=e.end,a=e.negative,i=e.format,o=e.decimalIndex,u=e.lastZeroIndex,s=e.hasNegativeFormat,l=e.hasGroup,m=e.number,c=m.toString().split(F),f=i.length,d=c[0],y=c[1]||x,p=d.length,v=x;m=i.substring(0,t),a&&!s&&(m+="-");for(var h=t;h<f;h++){var g=i.charAt(h);if(-1===o){if(n-h<p){m+=d;break}}else if(-1!==u&&u<h&&(v=x),o-h<=p&&o-h>-1&&(m+=d,h=o),o===h){m+=(y?r.numbers.symbols.decimal:x)+y,h+=n-o+1;continue}g===Te?(m+=g,v=g):g===Oe&&(m+=v)}return l&&(m=Me(m,t+(a&&!s?1:0),Math.max(n,p+t),r.numbers.decimal,r)),n>=t&&(m+=i.substring(n+1)),m}(e,r),e.style,e.symbol),e.literals)),t}function je(e,r,t){var n={negative:e<0,number:Math.abs(e),format:r};return _e(n),n.constant?n.constant:(function(e){var r=e.format;if(r.indexOf("'")>-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=e.literals=[];e.format=r.replace(Ie,function(e){var r=e.charAt(0).replace("\\",x),n=e.slice(1).replace(r,x);return t.push(n),Ee})}}(n),function(e,r){var t=e.format;-1!==t.indexOf(M)&&(e.style=v,e.symbol=r.numbers.symbols.percentSign,e.number*=100),-1!==t.indexOf(g)&&(e.style=y,e.symbol=ge(r))}(n,t),function(e){e.hasGroup=e.format.indexOf(w)>-1,e.hasGroup&&(e.format=e.format.replace(Ae,x))}(n),ze(n),function(e){var r=e.format,t=r.indexOf(Oe),n=r.indexOf(Te),a=Pe(t,n,!0),i=Pe(t=r.lastIndexOf(Oe),n=r.lastIndexOf(Te));a===r.length&&(i=a),e.start=a,e.end=i,e.lastZeroIndex=n}(n),Le(n,t))}var qe=/^(n|c|p|e|a)(\d*)$/i;function Ge(e){return a(e)?function(e){var r=qe.exec(e);if(r){var t={style:d},n=r[1].toLowerCase();return"c"===n?t.style=y:"a"===n?t.style=p:"p"===n?t.style=v:"e"===n&&(t.style=h),r[2]&&(t.minimumFractionDigits=t.maximumFractionDigits=parseInt(r[2],10)),t}}(e):e}function Qe(e,r,t){if(void 0===r&&(r=b),void 0===t&&(t=D),void 0===e||null===e)return x;if(!isFinite(e))return String(e);var n,a=f(t),i=Ge(r);if(i){var o=(i||{}).style||d;n=He(e,Object.assign({},a.numbers[o],i),a)}else n=je(e,r,a);return n}function Xe(e){return"number"==typeof e}var Ze=/[eE][\-+]?[0-9]+/,Be=/\u00A0/g;function Ue(e,r){if(r.length>1){var t=(r[1]||x).replace(g,x).split(b);if(e.indexOf(t[0])>-1&&e.indexOf(t[1])>-1)return e.replace(t[0],x).replace(t[1],x)}}function Je(e,r,t){if(void 0===r&&(r=D),void 0===t&&(t={}),!e&&0!==e)return null;if(Xe(e))return e;var n,a=f(r),i=a.numbers.symbols,o=e.toString();if(Ze.test(o))return o=parseFloat(o.replace(i.decimal,F)),isNaN(o)?null:o;var u=o.indexOf("-");if(u>0)return null;var s=u>-1,l=function(e,r,t){var n,a=Ge(t)||{},i=be(a.style),o=e,u=a.currency||ce(r,i);if(u){var s=ue(r,u,i);if(s)for(var l=0;l<s.length;l++){var m=s[l];if(o.includes(m)){o=o.replace(m,x),i=!0;break}}if(i){var c=Ue(o,r.numbers.currency.patterns)||Ue(o,r.numbers.accounting.patterns);c&&(n=!0,o=c)}}return{number:o,negative:n}}(o,a,t),m=l.negative;return o=l.number,s=void 0!==m?m:s,(t.style===v||o.indexOf(i.percentSign)>-1)&&(o=o.replace(i.percentSign,x),n=!0),o=o.replace("-",x).replace(Be," ").split(i.group.replace(Be," ")).join(x).replace(i.decimal,F),o=parseFloat(o),isNaN(o)?o=null:s&&(o*=-1),o&&n&&(o/=100),o}var We=/\{(\d+)}/g;function $e(e){var r=arguments;return e.replace(We,function(e,t){return r[parseInt(t,10)+1]})}var Re=120,Ye=20,Ke=[2,1,5,3,4],Ve={};Ve[(-2).toString()]=8,Ve[(-1).toString()]=6,Ve[2..toString()]=6,Ve[1..toString()]=3;var er={numeric:1,"2-digit":2,short:3,long:4,narrow:5},rr=/[hHmsSzZoOvVxX]/;var tr=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],nr={e:"c",E:"c",M:"L",Q:"q"},ar={},ir={};function or(e){return ar[e]||(ar[e]=new RegExp(e+"+")),ar[e]}function ur(e){for(var r=[],t=e.charAt(0),n=t,a=1;a<e.length;a++){var i=e.charAt(a);i===n?t+=i:(r.push(t),t=n=i)}return r.push(t),r}function sr(e,r){var t,n,a=e.length,i=-Number.MAX_VALUE;for(var o in r){for(var u=[],s=o.replace("v","z"),l=0,m=0;m<a;m++){var c=e[m],f=(or(c[0]).exec(s)||[])[0];if(f){if(s=s.replace(f,x),f.length!==c.length){var d=Math.max(Math.min(Ke[f.length]-Ke[c.length],2),-2);l-=Ve[d]}}else l-=Re;if(u.push(f),l<i)break}s.length&&(l-=ur(s).length*Ye),l>i&&(i=l,t=u,n=r[o])}n=n.replace("v","z");for(var y=0;y<a;y++){var p=t[y];if(p&&p!==e[y]){var v=t[y][0];n=n.replace(or(v),e[y]),nr[v]&&(n=n.replace(or(nr[v]),e[y]))}}return n}function lr(e,r){var t=r.calendar.dateTimeFormats.availableFormats;if(t[e])return t[e];if(ir[r.name]&&ir[r.name][e])return ir[r.name][e];var n,a=e.search(rr);if(a>0){var i=e.substr(0,a),o=e.substr(a);n=$e(r.calendar.dateTimeFormats.short,t[o]||sr(ur(o),t),t[i]||sr(ur(i),t))}else n=sr(ur(e),t);return function(e,r,t){ir[t]||(ir[t]={}),ir[t][e]=r}(e,n,r.name),n}function mr(e,r){var t,n=r.calendar;if(a(e))t=n.patterns[e]?n.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var i=e.skeleton;i||(e.datetime?t=$e(n.dateTimeFormats[e.datetime],n.timeFormats[e.datetime],n.dateFormats[e.datetime]):e.date?t=n.dateFormats[e.date]:e.time?t=n.timeFormats[e.time]:i=function(e){for(var r=[],t=0;t<tr.length;t++){var n=tr[t],a=e[n.key];if(a){var i=n.specifier||n.getSpecifier(e);r.push(i.repeat(er[a]))}}return r.join(x)}(e)),i&&(t=lr(i,r))}return t||(t=n.patterns.d),t}function cr(e){var r;return e<=3?r="abbreviated":4===e?r="wide":5===e?r="narrow":6===e&&(r="short"),r}function fr(e,r,t,n,a){return W(e,{type:r,nameType:cr(t),standAlone:n,lower:a})}var dr={}.toString,yr="[object Date]";function pr(e){return dr.call(e)===yr}var vr={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},hr=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function gr(e,r,t,n){return r<=2?Se(e+1,r):fr(t,"months",r,n)[e]}function Mr(e,r,t,n){var a=Math.floor(e.getMonth()/3);return r<3?a+1:fr(t,"quarters",r,n)[a]}function br(e,r,t){var n=t.shortHours,a=t.optionalMinutes,i=t.separator,o=t.localizedName,u=t.zZeroOffset,s=e.getTimezoneOffset()/60;if(0===s&&u)return"Z";var l=s<=0?"+":"-",m=Math.abs(s).toString().split("."),c=m[1]||0,f=l+(n?m[0]:Se(m[0],2));(!c&&a||(f+=(i?":":x)+Se(c,2)),o)&&(f=$e(0===s?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,f));return f}function Sr(e,r,t,n){var a,i,o;return r<3?(i=e.getDay(),o=ve(t),a=(i<o?7-o+i:i-o)+1):a=fr(t,"days",r,n)[e.getDay()],a}var wr={};function Fr(e,r,t){if(void 0===t&&(t=D),!pr(e))return void 0===e||null===e?x:e;var n=f(t);return mr(r,n).replace(hr,function(r){var t=r.length;return r.includes("'")||r.includes('"')?r.slice(1,t-1):wr[r[0]](e,t,n)})}function xr(e,r,t){var n=e.getTimezoneOffset(),a=new Date(e.getTime()+6e4*(r-t)),i=a.getTimezoneOffset();return new Date(a.getTime()+6e4*(i-n))}wr.d=function(e,r){return Se(e.getDate(),r)},wr.E=function(e,r,t){return fr(t,"days",r)[e.getDay()]},wr.M=function(e,r,t){return gr(e.getMonth(),r,t,!1)},wr.L=function(e,r,t){return gr(e.getMonth(),r,t,!0)},wr.y=function(e,r){var t=e.getFullYear();return 2===r&&(t%=100),Se(t,r)},wr.h=function(e,r){return Se(e.getHours()%12||12,r)},wr.H=function(e,r){return Se(e.getHours(),r)},wr.k=function(e,r){return Se(e.getHours()||24,r)},wr.K=function(e,r){return Se(e.getHours()%12,r)},wr.m=function(e,r){return Se(e.getMinutes(),r)},wr.s=function(e,r){return Se(e.getSeconds(),r)},wr.S=function(e,r){return 0!==e.getMilliseconds()?String(e.getMilliseconds()/1e3).split(".")[1].substr(0,r):Se(x,r)},wr.a=function(e,r,t){return fr(t,"dayPeriods",r)[e.getHours()<12?"am":"pm"]},wr.z=function(e,r,t){return br(e,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},wr.Z=function(e,r,t){return br(e,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},wr.x=function(e,r,t){return br(e,t,{optionalMinutes:1===r,separator:3===r||5===r})},wr.X=function(e,r,t){return br(e,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},wr.G=function(e,r,t){var n=e.getFullYear()>=0?1:0;return fr(t,"eras",r)[n]},wr.e=Sr,wr.c=function(e,r,t){return Sr(e,r,t,!0)},wr.q=function(e,r,t){return Mr(e,r,t,!0)},wr.Q=Mr;var Dr=/([+|\-]\d{1,2})(:?)(\d{2})?/,Nr=/^\/Date\((.*?)\)\/$/,Hr=/[+-]\d*/,Er={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Or=/\d+/,Tr="{0}",Ir=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],kr=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Cr(e,r,t){return!(e>=r&&e<=t)}function Ar(e,r){for(var t=r.format,n=r.idx,a=0;t[n]===e;)a++,n++;return a>0&&(n-=1),r.idx=n,a}function zr(e,r){var t=e?Er[e]||new RegExp("^\\d{1,"+e+"}"):Or,n=r.value.substr(r.valueIdx,e).match(t);return n?(n=n[0],r.valueIdx+=n.length,parseInt(n,10)):null}function _r(e,r,t){for(var n,a,i,o=0,u=e.length,s=0,l=0;o<u;o++)a=(n=e[o]).length,i=r.value.substr(r.valueIdx,a),t&&(i=i.toLowerCase()),i===n&&a>s&&(s=a,l=o);return s?(r.valueIdx+=s,l+1):null}function Pr(e){var r=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,r=!0),r}function Lr(e,r,t){var n=t.shortHours,a=t.noSeparator,i=t.optionalMinutes,o=t.localizedName,u=t.zLiteral;if(e.UTC=!0,u&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(o&&!_r(function(e){var r=e.gmtFormat,t=e.gmtZeroFormat;if(!r)throw l.NoGMTInfo.error();return[r.replace(Tr,x).toLowerCase(),t.replace(Tr,x).toLowerCase()]}(r.calendar),e,!0))return!0;var s=Dr.exec(e.value.substr(e.valueIdx,6));if(!s)return!o;var m=s[1],c=s[3],f=parseInt(m,10),d=s[2],y=parseInt(c,10);return!!(isNaN(f)||!n&&3!==m.length||!i&&isNaN(y)||a&&d)||(isNaN(y)&&(y=null),!!(Cr(f,-12,13)||y&&Cr(y,0,59))||(e.valueIdx+=s[0].length,e.hoursOffset=f,void(e.minutesOffset=y)))}function jr(e,r,t){var n=Ar(e,r),a=fr(t,"months",n,"L"===e,!0),i=n<3?zr(2,r):_r(a,r,!0);if(null===i||Cr(i,1,12))return!0;r.month=i-1}function qr(e,r,t){var n=Ar(e,r),a=fr(t,"days",n,"c"===e,!0),i=n<3?zr(1,r):_r(a,r,!0);if(!i&&0!==i||Cr(i,1,7))return!0}var Gr={};function Qr(e,r,t){for(var n=mr(r,t).split(x),a={format:n,idx:0,value:e,valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=n.length,o=!1;a.idx<i;a.idx++){var u=n[a.idx];if(o)"'"===u&&(o=!1),Pr(a);else if(Gr[u]){if(Gr[u](a,t))return null}else if("'"===u)o=!0,Pr(a);else if(!Pr(a))return null}return a.valueIdx<e.length?null:function(e){var r,t=e.year,n=e.month,a=e.day,i=e.hours,o=e.minutes,u=e.seconds,s=e.milliseconds,l=e.pmHour,m=e.UTC,c=e.hoursOffset,f=e.minutesOffset,d=null!==i||null!==o||u||null,y=new Date;return null===t&&null===n&&null===a&&d?(t=y.getFullYear(),n=y.getMonth(),a=y.getDate()):(null===t&&(t=y.getFullYear()),null===a&&(a=1)),l&&i<12&&(i+=12),m?(c&&(i+=-c),f&&(o+=-f*(c<0?-1:1)),r=new Date(Date.UTC(t,n,a,i,o,u,s))):function(e,r){r||23!==e.getHours()||e.setHours(e.getHours()+2)}(r=new Date(t,n,a,i,o,u,s),i),t<100&&r.setFullYear(t),r.getDate()!==a&&void 0===m?null:r}(a)||null}function Xr(e){if(e&&0===e.indexOf("/D")){var r=Nr.exec(e);if(r){r=r[1];var t=Hr.exec(r.substring(1));return r=new Date(parseInt(r,10)),t&&(n=t[0],a="-"===n.substr(0,1)?-1:1,i=n.substring(1),t=a*(i=60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),r=xr(r=xr(r,r.getTimezoneOffset(),0),0,-1*t)),r}}var n,a,i}function Zr(e,r,t){if(void 0===t&&(t=D),!e)return null;if(pr(e))return e;var n=String(e).trim(),a=Xr(n);if(a)return a;for(var i=f(t),o=r||function(e){for(var r=[],t=e.patterns,n=kr.length,a=0;a<n;a++)r.push(t[kr[a]]);return r.concat(Ir)}(i.calendar),u=(o=Array.isArray(o)?o:[o]).length,s=0;s<u;s++)if(a=Qr(n,o[s],i))return a;return a}Gr.d=function(e){Ar("d",e);var r=zr(2,e);if(null===r||Cr(r,1,31))return!0;null===e.day&&(e.day=r)},Gr.E=function(e,r){if(null===_r(fr(r,"days",Ar("E",e),!1,!0),e,!0))return!0},Gr.M=function(e,r){return jr("M",e,r)},Gr.L=function(e,r){return jr("L",e,r)},Gr.y=function(e){var r=Ar("y",e),t=zr(1===r?void 0:r,e);if(null===t)return!0;if(2===r){var n=(new Date).getFullYear();(t=n-n%100+t)>2029&&(t-=100)}e.year=t},Gr.h=function(e){Ar("h",e);var r=zr(2,e);if(12===r&&(r=0),null===r||Cr(r,0,11))return!0;e.hours=r},Gr.K=function(e){Ar("K",e);var r=zr(2,e);if(null===r||Cr(r,0,11))return!0;e.hours=r},Gr.a=function(e,r){var t=fr(r,"dayPeriods",Ar("a",e),!1,!0),n=_r([t.pm],e,!0);if(!n&&!_r([t.am],e,!0))return!0;e.pmHour=n},Gr.H=function(e){Ar("H",e);var r=zr(2,e);if(null===r||Cr(r,0,23))return!0;e.hours=r},Gr.k=function(e){Ar("k",e);var r=zr(2,e);if(null===r||Cr(r,1,24))return!0;e.hours=24===r?0:r},Gr.m=function(e){Ar("m",e);var r=zr(2,e);if(null===r||Cr(r,0,59))return!0;e.minutes=r},Gr.s=function(e){Ar("s",e);var r=zr(2,e);if(null===r||Cr(r,0,59))return!0;e.seconds=r},Gr.S=function(e){var r=Ar("S",e),t=e.value.substr(e.valueIdx,r),n=null;if(isNaN(parseInt(t,10))||(n=Fe(n=parseFloat("0."+t,10),3),n*=1e3,e.valueIdx+=r),null===n||Cr(n,0,999))return!0;e.milliseconds=n},Gr.z=function(e,r){var t=Ar("z",e)<4,n=Lr(e,r,{shortHours:t,optionalMinutes:t,localizedName:!0});if(n)return n},Gr.Z=function(e,r){var t=Ar("Z",e),n=Lr(e,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(n)return n},Gr.x=function(e,r){var t=Ar("x",e),n=Lr(e,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(n)return n},Gr.X=function(e,r){var t=Ar("X",e),n=Lr(e,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(n)return n},Gr.G=function(e,r){var t=fr(r,"eras",Ar("G",e),!1,!0);if(null===_r([t[0],t[1]],e,!0))return!0},Gr.e=function(e,r){return qr("e",e,r)},Gr.c=function(e,r){return qr("c",e,r)};var Br={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Ur="literal";function Jr(e,r){var t=e[e.length-1];t&&t.type===Ur?t.pattern+=r:e.push({type:Ur,pattern:r})}function Wr(e){return"h"===e||"K"===e}function $r(e,r){void 0===r&&(r=D);for(var t=mr(e,f(r)),n=[],a=hr.lastIndex=0,i=hr.exec(t);i;){var o=i[0];if(a<i.index&&Jr(n,t.substring(a,i.index)),o.startsWith('"')||o.startsWith("'"))Jr(n,o);else{var u=o[0],s=vr[u],l={type:s,pattern:o};"hour"===s&&(l.hour12=Wr(o));var m=Br[s];if(m){var c=Xe(m.minLength)?m.minLength:m.minLength[u],d=o.length;d>=c&&(l.names={type:m.type,nameType:cr(d),standAlone:m.standAlone===u})}n.push(l)}a=hr.lastIndex,i=hr.exec(t)}return a<t.length&&Jr(n,t.substring(a)),n}var Rr=/\{(\d+)(:[^\}]+)?\}/g;function Yr(e,r,t){if(r){if(pr(e))return Fr(e,r,t);if(Xe(e))return Qe(e,r,t)}return void 0!==e&&null!==e?e:x}function Kr(e,r,t){return e.replace(Rr,function(e,n,a){return Yr(r[parseInt(n,10)],a?a.substring(1):x,t)})}t.d(r,"formatNumber",function(){return Qe}),t.d(r,"parseNumber",function(){return Je}),t.d(r,"formatDate",function(){return Fr}),t.d(r,"parseDate",function(){return Zr}),t.d(r,"splitDateFormat",function(){return $r}),t.d(r,"load",function(){return B}),t.d(r,"setData",function(){return U}),t.d(r,"dateFieldName",function(){return J}),t.d(r,"dateFormatNames",function(){return W}),t.d(r,"cldr",function(){return m}),t.d(r,"localeInfo",function(){return f}),t.d(r,"currencyDisplays",function(){return ue}),t.d(r,"currencyDisplay",function(){return se}),t.d(r,"currencyFractionOptions",function(){return le}),t.d(r,"territoryCurrencyCode",function(){return me}),t.d(r,"localeCurrency",function(){return ce}),t.d(r,"firstDay",function(){return ve}),t.d(r,"numberSymbols",function(){return he}),t.d(r,"toString",function(){return Yr}),t.d(r,"format",function(){return Kr}),t.d(r,"errors",function(){return l}),t.d(r,"IntlError",function(){return o}),t.d(r,"toIntlErrors",function(){return s})},function(r,t){r.exports=e},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(1);r.load=n.load},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(2),a=t(0);r.provideIntlService=function(e){if(!e)throw"Passed component = "+e+" is invalid.";var r=e.context&&e.context.kendoIntlService;return r||new a.default("en")},r.registerForIntl=function(e){e.contextTypes={kendoIntlService:n.object}}},function(e,t){e.exports=r},function(e,r,t){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])},function(e,r){function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(r,"__esModule",{value:!0});var i=t(5),o=t(2),u=t(0),s=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.getIntlService=function(){return new u.default(this.props.locale)},r.prototype.getChildContext=function(){return{kendoIntlService:this.getIntlService()}},r.prototype.render=function(){return i.Children.only(this.props.children)},r.propTypes={locale:o.string},r.childContextTypes={kendoIntlService:o.object},r}(i.Component);r.default=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(6);r.IntlProvider=n.default;var a=t(4);r.provideIntlService=a.provideIntlService,r.registerForIntl=a.registerForIntl;var i=t(0);r.IntlService=i.default;var o=t(3);r.load=o.load}])}); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],r):"object"==typeof exports?exports.KendoReactIntl=r(require("prop-types"),require("react")):e.KendoReactIntl=r(e.PropTypes,e.React)}(window,function(e,r){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=13)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(4),a=function(){function e(e){this.language=e}return e.prototype.toLanguageString=function(e,r){return this.language&&n.messages[this.language]&&n.messages[this.language].hasOwnProperty(e)?n.messages[this.language][e]:r},e}();r.LocalizationService=a},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(3),a=function(){function e(e){this.locale=e}return e.prototype.format=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return 1===r.length&&r[0]instanceof Array?n.format(e,r[0],this.locale):n.format(e,r,this.locale)},e.prototype.formatDate=function(e,r){return n.formatDate(e,r,this.locale)},e.prototype.toString=function(e,r){return n.toString(e,r,this.locale)},e.prototype.parseNumber=function(e,r){return n.parseNumber(e,this.locale,r)},e.prototype.parseDate=function(e,r){return n.parseDate(e,r,this.locale)},e.prototype.formatNumber=function(e,r){return n.formatNumber(e,r,this.locale)},e.prototype.dateFieldName=function(e){return n.dateFieldName(e,this.locale)},e.prototype.dateFormatNames=function(e){return n.dateFormatNames(this.locale,e)},e.prototype.splitDateFormat=function(e){return n.splitDateFormat(e,this.locale)},e.prototype.numberSymbols=function(){return n.numberSymbols(this.locale)},e.prototype.firstDay=function(){return n.firstDay(this.locale)},e}();r.IntlService=a},function(r,t){r.exports=e},function(e,r,t){"use strict";t.r(r);var n={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"}}}};function a(e){return"string"==typeof e}var i=/\{(\d+)}?\}/g,o=function(e){var r=e.name,t=e.message;if(!r||!t)throw new Error("{ name: string, message: string } object is required!");this.name=r,this.message=t};o.prototype.formatMessage=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var t=u(e),n=this.message.replace(i,function(e,r){return t[parseInt(r,10)]});return this.name+": "+n},o.prototype.error=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return new Error(this.formatMessage(e))};var u=function(e){return e.reduce(function(e,r){return e.concat(r)},[])},s=function(e){return Object.keys(e).reduce(function(r,t){return r[t]=new o({name:t,message:e[t]}),r},{})},l=s({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."});var c=n;function m(e){return a(e)?f(e):e}function f(e){if(c[e])return c[e];if(c.supplemental.likelySubtags){var r=e.split("-"),t=r[0],n=r.slice(1),a=function(e,r){for(var t=c.supplemental.likelySubtags,n=0;n<r.length;n++){var a=t[e+"-"+r[n]];if(a)return a}if(t[e])return t[e]}(t,n),i=a?function(e,r){var t=e.split("-"),n=t[0],a=t[1],i=t[2];return c[e]||-1!==r.indexOf(i)&&c[n+"-"+i]||-1!==r.indexOf(a)&&c[n+"-"+a]||c[n]}(a,n):null;if(i)return i}throw l.NoLocale.error(e)}var d="decimal",y="currency",p="accounting",v="percent",g="scientific",h="$",M="%",b="n",S=";",w=",",x=".",F="",D="en",N="Formats-numberSystem-latn",O="symbols-numberSystem-latn",H=/([#,0.]+)/g,T=/¤/g;function E(e){return H.lastIndex=0,e.replace(T,h).replace(H,b).split(S)}function k(e){return H.lastIndex=0,H.exec(e.split(S)[0])[0].split(x)[0].split(w).slice(1).map(function(e){return e.length}).reverse()}function I(e,r){for(var t in r)t.startsWith("unitPattern")&&(e[t]=r[t].replace("{0}",b).replace("{1}",h))}function z(e,r){var t=c[e],n=t.numbers=t.numbers||{};for(var a in n.symbols=n.symbols||{},r)if(a===O)Object.assign(n.symbols,r[a]);else if(a.includes(N)){var i=a.substr(0,a.indexOf(N)),o=r[a].standard;n[i]={patterns:E(o)},i===y?(n[i].groupSize=k((r[d+N]||r[a]).standard),I(n[i],r[a]),n[p]={patterns:E(r[a][p]),groupSize:n[i].groupSize}):n[i].groupSize=k(o)}else"currencies"===a&&(n.currencies=r[a])}var _={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},C={d:[["dateTimeFormats","availableFormats","yMd"]],D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function P(e){for(var r=[],t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var a=e[t[n]];r.push(a)}return r}function L(e,r){var t={};for(var n in e){var a=t[n]={};for(var i in e[n]){var o=e[n][i];a[i]=r?o:P(o)}}return t}function A(e,r){var t=c[e].calendar;t.days=L(r.days),t.months=L(r.months),t.quarters=L(r.quarters),t.dayPeriods=L(r.dayPeriods,!0),t.eras=function(e){var r={},t=r.format={},n={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var a in e)t[n[a]]=e[a];return r}(r.eras)}function j(e,r){var t=c[e].calendar,n={};for(var a in r){var i=a.split("-"),o=i[0],u=i[1];void 0===u&&(u="wide");var s=n[o]||{},l=r[a].displayName;l&&(s[u]=l,n[o]=s)}t.dateFields=n}function q(e,r){for(var t=[],n=0;n<e.length;n++){for(var a=e[n],i=r,o=0;o<a.length;o++)i=i[a[o]];t.push(i)}return t.join(" ")}function G(e,r){var t=c[e].calendar,n=t.patterns={};for(var a in C)n[a]=q(C[a],r);for(var i in _)n[i]=_[i];var o=r.dateTimeFormats;t.dateTimeFormats={full:o.full,long:o.long,medium:o.medium,short:o.short,availableFormats:o.availableFormats},t.timeFormats=r.timeFormats,t.dateFormats=r.dateFormats}function Q(e,r){var t=c[e].calendar=c[e].calendar||{};for(var n in r)"timeZoneNames"===n?(t.gmtFormat=r[n].gmtFormat,t.gmtZeroFormat=r[n].gmtZeroFormat):"calendars"===n&&r[n].gregorian?(G(e,r[n].gregorian),A(e,r[n].gregorian)):"fields"===n&&j(e,r.fields)}function X(e){if(e.territory)return e.territory;var r,t=e.name,n=e.identity;return r=n&&n.territory?n.territory:function(e,r){var t=c.supplemental.likelySubtags,n=e.split("-");if(t){var a=t[e]||t[n[0]];a&&(n=a.split("-"))}if(r)for(var i=n.length-1;i>=1;i--){var o=n[i];o!==r.variant&&o!==r.script||n.splice(i,1)}var u=n.length;if(u>1)return n[u-1].toUpperCase()}(t,n),e.territory=r,r}function Z(e,r){for(var t in r)"numbers"===t?z(e,r[t]):"dates"===t&&Q(e,r[t])}function B(){for(var e=arguments,r=arguments.length,t=0;t<r;t++){var n=e[t];if(n.main){var a=Object.keys(n.main)[0],i=n.main[a],o=c[a]=c[a]||{};o.name=o.name||a,o.identity=o.identity||i.identity,X(o),Z(a,i)}else n.supplemental&&(n.supplemental.weekData?c.supplemental.weekData={firstDay:n.supplemental.weekData.firstDay}:Object.assign(c.supplemental,n.supplemental))}}function U(e){var r=e.name,t=c[r]=c[r]||{};if(e.likelySubtags){var n=c.supplemental=c.supplemental||{};n.likelySubtags=Object.assign(n.likelySubtags||{},e.likelySubtags)}var a=t.numbers;Object.assign(t,e),a&&e.numbers&&(t.numbers=Object.assign({},a,e.numbers))}function J(e,r){void 0===r&&(r=D);var t=f(r).calendar.dateFields;if(!t)throw l.NoDateFieldNames.error();var n=t[e.type]||{};return n[e.nameType]||n.wide}function W(e,r){var t,n=r.type,a=r.nameType,i=r.standAlone,o=r.lower,u=m(e),s=i?"stand-alone":"format",l=(o?"lower-":F)+a,c=u.calendar[n][s],f=c[l];return!f&&o&&(f=c[l]=(t=c[a],Array.isArray(t)?function(e){for(var r=[],t=0;t<e.length;t++)r.push(e[t].toLowerCase());return r}(t):function(e){var r={};for(var t in e)r[t]=e[t].toLowerCase();return r}(t))),f}function $(e){var r=e.split("-"),t=parseInt(r[0],10),n=parseInt(r[1],10)-1,a=parseInt(r[2],10);return new Date(t,n,a)}var R=l.NoCurrency,Y=l.NoCurrencyDisplay,K=l.NoSupplementalCurrency,V=l.NoCurrencyRegion,ee=l.NoValidCurrency,re=2,te="symbol",ne="XXX",ae={"001":"USD",150:"EUR"};function ie(e,r,t){var n=m(e).numbers.currencies;if(n){var a=n[r];if(a)return a;if(t)throw Y.error()}else if(t)throw R.error()}function oe(e,r){return r.length-e.length}function ue(e,r,t){void 0===t&&(t=!0);var n=ie(e,r,t);if(n){if(!n.displays){var a=[r];for(var i in n)a.push(n[i]);a.sort(oe),n.displays=a}return n.displays}}function se(e,r){var t=r.value,n=r.currency,a=r.currencyDisplay;if(void 0===a&&(a=te),"code"===a)return n;var i=ie(e,n,!0);return a===te?i["symbol-alt-narrow"]||i[te]:void 0===typeof t||1!==t?i["displayName-count-other"]:i["displayName-count-one"]}function le(e){var r=re,t=re,n=((c.supplemental.currencyData||{}).fractions||{})[e];return n&&n._digits&&(t=r=parseInt(n._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}function ce(e,r){if(void 0===r&&(r=!0),ae[e])return ae[e];var t=c.supplemental.currencyData;if(t){var n=t.region[e];if(n)return function(e){for(var r,t,n,a,i=0;i<e.length;i++){var o=e[i],u=Object.keys(o)[0],s=o[u];if(u!==ne&&"false"!==s._tender&&s._from)if(s._to){if(!n){var l=$(s._from),c=$(s._to);(!t||t.to<c||t.from<l)&&(r=u,t={from:l,to:c})}}else{var m=$(s._from);(!a||a<m)&&(n=u,a=m)}}return n||r}(n);if(r)throw V.error(e)}else if(r)throw K.error()}function me(e,r){var t=m(e),n=t.numbers;if(!n.localeCurrency){var a=ce(X(t),r);if(!a&&r)throw ee.error(t.name);n.localeCurrency=a}return n.localeCurrency}var fe=l.NoWeekData,de=l.NoFirstDay,ye=["sun","mon","tue","wed","thu","fri","sat"],pe="001";function ve(e){var r=m(e);if(!isNaN(r.firstDay))return r.firstDay;var t=c.supplemental.weekData;if(!t)throw fe.error();var n=t.firstDay[X(r)]||t.firstDay[pe];if(!n)throw de.error();return r.firstDay=ye.indexOf(n),r.firstDay}function ge(e){return m(e).numbers.symbols}function he(e,r){return void 0===r&&(r={}),r.currency||(r.currency=me(e,!0)),se(e,r)}function Me(e,r,t,n,a){var i=a.numbers.symbols,o=e.indexOf(i.decimal),u=n.groupSize.slice(),s=u.shift(),l=-1!==o?o:t+1,c=e.substring(r,l),m=e,f=c.length;if(f>=s){for(var d=f,y=[];d>-1;){var p=c.substring(d-s,d);p&&y.push(p),d-=s;var v=u.shift();if(0===(s=void 0!==v?v:s)){(p=c.substring(0,d))&&y.push(p);break}}c=y.reverse().join(i.group),m=e.substring(0,r)+c+e.substring(l)}return m}function be(e){return e===y||e===p}function Se(e,r,t){void 0===r&&(r=2),void 0===t&&(t=!1);var n=r-String(e).length,a=e;if(n>0){var i=new Array(n+1).join("0");a=t?e+i:i+e}return a}var we=20;function xe(e,r){var t=e,n=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+n:n)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-n:-n))).toFixed(Math.min(n,we))}var Fe=3,De=0,Ne=/0+$/;function Oe(e,r,t){var n=t.numbers.symbols,a=r.style,i=be(a);if(a===g)return(void 0!==r.minimumFractionDigits?e.toExponential(r.minimumFractionDigits):e.toExponential()).replace(x,n.decimal);var o,u=e;i&&(r.value=u,o=he(t,r)),a===v&&(u*=100,o=n.percentSign);var s=function(e){var r,t=e.minimumFractionDigits,n=e.maximumFractionDigits,a=e.style,i=be(a);return i&&(r=le(e.currency)),void 0===t&&(t=i?r.minimumFractionDigits:0),void 0===n&&(n=a===v?Math.max(t,De):i?Math.max(t,r.maximumFractionDigits):Math.max(t,Fe)),{minimumFractionDigits:t,maximumFractionDigits:n}}(r),l=s.minimumFractionDigits,c=(u=xe(u,s.maximumFractionDigits))<0,m=u.split(x),f=m[0],d=Se(m[1]?m[1].replace(Ne,F):F,l,!0);c&&(f=f.substring(1)),r.minimumIntegerDigits&&(f=Se(f,r.minimumIntegerDigits));var y,p=!1!==r.useGrouping?Me(f,0,f.length,r,t):f;if(d&&(p+=n.decimal+d),i&&"name"===r.currencyDisplay)y=function(e,r){var t=e.numbers.currency,n=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(n=n.replace(b,"-"+b)),n}(t,e);else{var S=r.patterns;y=c?S[1]||"-"+S[0]:S[0]}return y!==b||c?function(e,r,t){for(var n=F,a=0,i=r.length;a<i;a++){var o=r.charAt(a);n+=o===b?e:o===h||o===M?t:o}return n}(p,y,o):p}var He="__??__",Te="#",Ee="0",ke=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Ie=/(\.(?:[0-9]*[1-9])?)0+$/g,ze=/\.$/,_e=/\,/g;function Ce(e){var r,t,n,a=e.number,i=e.format,o=i.indexOf(x);if(-1!==o){var u=i.lastIndexOf(Ee)-o,s=i.lastIndexOf(Te)-o,l=u>-1,c=s>-1,m=a.toString().split("e"),f=(m=(m=m[1]?xe(a,Math.abs(m[1])):m[0]).split(x)[1]||F).length,d=-1;l||c?l&&u>s?f=u:s>u&&(c&&f>s?f=s:l&&f<u&&(f=u),d=l?u:0):(e.format=i.substring(0,o)+i.substring(o+1),o=-1,f=0),f>-1&&(a=xe(a,f),d>-1&&(r=a,n=0===(t=d)?Ie:new RegExp("(\\.[0-9]{"+t+"}[1-9]*)0+$","g"),a=r.replace(n,"$1").replace(ze,F)))}else a=xe(a);e.negative&&-1*a>=0&&(e.negative=!1),e.number=a,e.decimalIndex=o}function Pe(e){var r=e.number,t=e.format;if(t=t.split(S),e.negative&&t[1])t=t[1],e.hasNegativeFormat=!0;else if(0===r){var n=t[2];t=n||t[0],n&&function(e){return-1===e.indexOf(Te)&&-1===e.indexOf(Ee)}(n)&&(e.constant=n)}else t=t[0];e.format=t}function Le(e,r,t){return-1===e&&-1!==r?r:-1!==e&&-1===r?e:t?Math.min(e,r):Math.max(e,r)}function Ae(e,r){var t=e.number;return-1!==e.start&&(t=function(e,r){var t=e;if(r)for(var n=r.length,a=0;a<n;a++)t=t.replace(He,r[a]);return t}(t=function(e,r,t){var n=e;if(r===y||r===v){n=F;for(var a=0,i=e.length;a<i;a++){var o=e.charAt(a);n+=o===h||o===M?t:o}}return n}(t=function(e,r){var t=e.start,n=e.end,a=e.negative,i=e.format,o=e.decimalIndex,u=e.lastZeroIndex,s=e.hasNegativeFormat,l=e.hasGroup,c=e.number,m=c.toString().split(x),f=i.length,d=m[0],y=m[1]||F,p=d.length,v=F;c=i.substring(0,t),a&&!s&&(c+="-");for(var g=t;g<f;g++){var h=i.charAt(g);if(-1===o){if(n-g<p){c+=d;break}}else if(-1!==u&&u<g&&(v=F),o-g<=p&&o-g>-1&&(c+=d,g=o),o===g){c+=(y?r.numbers.symbols.decimal:F)+y,g+=n-o+1;continue}h===Ee?(c+=h,v=h):h===Te&&(c+=v)}return l&&(c=Me(c,t+(a&&!s?1:0),Math.max(n,p+t),r.numbers.decimal,r)),n>=t&&(c+=i.substring(n+1)),c}(e,r),e.style,e.symbol),e.literals)),t}function je(e,r,t){var n={negative:e<0,number:Math.abs(e),format:r};return Pe(n),n.constant?n.constant:(function(e){var r=e.format;if(r.indexOf("'")>-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=e.literals=[];e.format=r.replace(ke,function(e){var r=e.charAt(0).replace("\\",F),n=e.slice(1).replace(r,F);return t.push(n),He})}}(n),function(e,r){var t=e.format;-1!==t.indexOf(M)&&(e.style=v,e.symbol=r.numbers.symbols.percentSign,e.number*=100),-1!==t.indexOf(h)&&(e.style=y,e.symbol=he(r))}(n,t),function(e){e.hasGroup=e.format.indexOf(w)>-1,e.hasGroup&&(e.format=e.format.replace(_e,F))}(n),Ce(n),function(e){var r=e.format,t=r.indexOf(Te),n=r.indexOf(Ee),a=Le(t,n,!0),i=Le(t=r.lastIndexOf(Te),n=r.lastIndexOf(Ee));a===r.length&&(i=a),e.start=a,e.end=i,e.lastZeroIndex=n}(n),Ae(n,t))}var qe=/^(n|c|p|e|a)(\d*)$/i;function Ge(e){return a(e)?function(e){var r=qe.exec(e);if(r){var t={style:d},n=r[1].toLowerCase();return"c"===n?t.style=y:"a"===n?t.style=p:"p"===n?t.style=v:"e"===n&&(t.style=g),r[2]&&(t.minimumFractionDigits=t.maximumFractionDigits=parseInt(r[2],10)),t}}(e):e}function Qe(e,r,t){if(void 0===r&&(r=b),void 0===t&&(t=D),void 0===e||null===e)return F;if(!isFinite(e))return String(e);var n,a=f(t),i=Ge(r);if(i){var o=(i||{}).style||d;n=Oe(e,Object.assign({},a.numbers[o],i),a)}else n=je(e,r,a);return n}function Xe(e){return"number"==typeof e}var Ze=/[eE][\-+]?[0-9]+/,Be=/\u00A0/g;function Ue(e,r){if(r.length>1){var t=(r[1]||F).replace(h,F).split(b);if(e.indexOf(t[0])>-1&&e.indexOf(t[1])>-1)return e.replace(t[0],F).replace(t[1],F)}}function Je(e,r,t){if(void 0===r&&(r=D),void 0===t&&(t={}),!e&&0!==e)return null;if(Xe(e))return e;var n,a=f(r),i=a.numbers.symbols,o=e.toString();if(Ze.test(o))return o=parseFloat(o.replace(i.decimal,x)),isNaN(o)?null:o;var u=o.indexOf("-");if(u>0)return null;var s=u>-1,l=function(e,r,t){var n,a=Ge(t)||{},i=be(a.style),o=e,u=a.currency||me(r,i);if(u){var s=ue(r,u,i);if(s)for(var l=0;l<s.length;l++){var c=s[l];if(o.includes(c)){o=o.replace(c,F),i=!0;break}}if(i){var m=Ue(o,r.numbers.currency.patterns)||Ue(o,r.numbers.accounting.patterns);m&&(n=!0,o=m)}}return{number:o,negative:n}}(o,a,t),c=l.negative;return o=l.number,s=void 0!==c?c:s,(t.style===v||o.indexOf(i.percentSign)>-1)&&(o=o.replace(i.percentSign,F),n=!0),o=o.replace("-",F).replace(Be," ").split(i.group.replace(Be," ")).join(F).replace(i.decimal,x),o=parseFloat(o),isNaN(o)?o=null:s&&(o*=-1),o&&n&&(o/=100),o}var We=/\{(\d+)}/g;function $e(e){var r=arguments;return e.replace(We,function(e,t){return r[parseInt(t,10)+1]})}var Re=120,Ye=20,Ke=[2,1,5,3,4],Ve={};Ve[(-2).toString()]=8,Ve[(-1).toString()]=6,Ve[2..toString()]=6,Ve[1..toString()]=3;var er={numeric:1,"2-digit":2,short:3,long:4,narrow:5},rr=/[hHmsSzZoOvVxX]/;var tr=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],nr={e:"c",E:"c",M:"L",Q:"q"},ar={},ir={};function or(e){return ar[e]||(ar[e]=new RegExp(e+"+")),ar[e]}function ur(e){for(var r=[],t=e.charAt(0),n=t,a=1;a<e.length;a++){var i=e.charAt(a);i===n?t+=i:(r.push(t),t=n=i)}return r.push(t),r}function sr(e,r){var t,n,a=e.length,i=-Number.MAX_VALUE;for(var o in r){for(var u=[],s=o.replace("v","z"),l=0,c=0;c<a;c++){var m=e[c],f=(or(m[0]).exec(s)||[])[0];if(f){if(s=s.replace(f,F),f.length!==m.length){var d=Math.max(Math.min(Ke[f.length]-Ke[m.length],2),-2);l-=Ve[d]}}else l-=Re;if(u.push(f),l<i)break}s.length&&(l-=ur(s).length*Ye),l>i&&(i=l,t=u,n=r[o])}n=n.replace("v","z");for(var y=0;y<a;y++){var p=t[y];if(p&&p!==e[y]){var v=t[y][0];n=n.replace(or(v),e[y]),nr[v]&&(n=n.replace(or(nr[v]),e[y]))}}return n}function lr(e,r){var t=r.calendar.dateTimeFormats.availableFormats;if(t[e])return t[e];if(ir[r.name]&&ir[r.name][e])return ir[r.name][e];var n,a=e.search(rr);if(a>0){var i=e.substr(0,a),o=e.substr(a);n=$e(r.calendar.dateTimeFormats.short,t[o]||sr(ur(o),t),t[i]||sr(ur(i),t))}else n=sr(ur(e),t);return function(e,r,t){ir[t]||(ir[t]={}),ir[t][e]=r}(e,n,r.name),n}function cr(e,r){var t,n=r.calendar;if(a(e))t=n.patterns[e]?n.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var i=e.skeleton;i||(e.datetime?t=$e(n.dateTimeFormats[e.datetime],n.timeFormats[e.datetime],n.dateFormats[e.datetime]):e.date?t=n.dateFormats[e.date]:e.time?t=n.timeFormats[e.time]:i=function(e){for(var r=[],t=0;t<tr.length;t++){var n=tr[t],a=e[n.key];if(a){var i=n.specifier||n.getSpecifier(e);r.push(i.repeat(er[a]))}}return r.join(F)}(e)),i&&(t=lr(i,r))}return t||(t=n.patterns.d),t}function mr(e){var r;return e<=3?r="abbreviated":4===e?r="wide":5===e?r="narrow":6===e&&(r="short"),r}function fr(e,r,t,n,a){return W(e,{type:r,nameType:mr(t),standAlone:n,lower:a})}var dr={}.toString,yr="[object Date]";function pr(e){return dr.call(e)===yr}var vr={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},gr=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function hr(e,r,t,n){return r<=2?Se(e+1,r):fr(t,"months",r,n)[e]}function Mr(e,r,t,n){var a=Math.floor(e.getMonth()/3);return r<3?a+1:fr(t,"quarters",r,n)[a]}function br(e,r,t){var n=t.shortHours,a=t.optionalMinutes,i=t.separator,o=t.localizedName,u=t.zZeroOffset,s=e.getTimezoneOffset()/60;if(0===s&&u)return"Z";var l=s<=0?"+":"-",c=Math.abs(s).toString().split("."),m=c[1]||0,f=l+(n?c[0]:Se(c[0],2));(!m&&a||(f+=(i?":":F)+Se(m,2)),o)&&(f=$e(0===s?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,f));return f}function Sr(e,r,t,n){var a,i,o;return r<3?(i=e.getDay(),o=ve(t),a=(i<o?7-o+i:i-o)+1):a=fr(t,"days",r,n)[e.getDay()],a}var wr={};function xr(e,r,t){if(void 0===t&&(t=D),!pr(e))return void 0===e||null===e?F:e;var n=f(t);return cr(r,n).replace(gr,function(r){var t=r.length;return r.includes("'")||r.includes('"')?r.slice(1,t-1):wr[r[0]](e,t,n)})}function Fr(e,r,t){var n=e.getTimezoneOffset(),a=new Date(e.getTime()+6e4*(r-t)),i=a.getTimezoneOffset();return new Date(a.getTime()+6e4*(i-n))}wr.d=function(e,r){return Se(e.getDate(),r)},wr.E=function(e,r,t){return fr(t,"days",r)[e.getDay()]},wr.M=function(e,r,t){return hr(e.getMonth(),r,t,!1)},wr.L=function(e,r,t){return hr(e.getMonth(),r,t,!0)},wr.y=function(e,r){var t=e.getFullYear();return 2===r&&(t%=100),Se(t,r)},wr.h=function(e,r){return Se(e.getHours()%12||12,r)},wr.H=function(e,r){return Se(e.getHours(),r)},wr.k=function(e,r){return Se(e.getHours()||24,r)},wr.K=function(e,r){return Se(e.getHours()%12,r)},wr.m=function(e,r){return Se(e.getMinutes(),r)},wr.s=function(e,r){return Se(e.getSeconds(),r)},wr.S=function(e,r){return 0!==e.getMilliseconds()?String(e.getMilliseconds()/1e3).split(".")[1].substr(0,r):Se(F,r)},wr.a=function(e,r,t){return fr(t,"dayPeriods",r)[e.getHours()<12?"am":"pm"]},wr.z=function(e,r,t){return br(e,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},wr.Z=function(e,r,t){return br(e,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},wr.x=function(e,r,t){return br(e,t,{optionalMinutes:1===r,separator:3===r||5===r})},wr.X=function(e,r,t){return br(e,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},wr.G=function(e,r,t){var n=e.getFullYear()>=0?1:0;return fr(t,"eras",r)[n]},wr.e=Sr,wr.c=function(e,r,t){return Sr(e,r,t,!0)},wr.q=function(e,r,t){return Mr(e,r,t,!0)},wr.Q=Mr;var Dr=/([+|\-]\d{1,2})(:?)(\d{2})?/,Nr=/^\/Date\((.*?)\)\/$/,Or=/[+-]\d*/,Hr={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Tr=/\d+/,Er="{0}",kr=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Ir=["G","g","F","Y","y","M","m","D","d","y","T","t"];function zr(e,r,t){return!(e>=r&&e<=t)}function _r(e,r){for(var t=r.format,n=r.idx,a=0;t[n]===e;)a++,n++;return a>0&&(n-=1),r.idx=n,a}function Cr(e,r){var t=e?Hr[e]||new RegExp("^\\d{1,"+e+"}"):Tr,n=r.value.substr(r.valueIdx,e).match(t);return n?(n=n[0],r.valueIdx+=n.length,parseInt(n,10)):null}function Pr(e,r,t){for(var n,a,i,o=0,u=e.length,s=0,l=0;o<u;o++)a=(n=e[o]).length,i=r.value.substr(r.valueIdx,a),t&&(i=i.toLowerCase()),i===n&&a>s&&(s=a,l=o);return s?(r.valueIdx+=s,l+1):null}function Lr(e){var r=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,r=!0),r}function Ar(e,r,t){var n=t.shortHours,a=t.noSeparator,i=t.optionalMinutes,o=t.localizedName,u=t.zLiteral;if(e.UTC=!0,u&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(o&&!Pr(function(e){var r=e.gmtFormat,t=e.gmtZeroFormat;if(!r)throw l.NoGMTInfo.error();return[r.replace(Er,F).toLowerCase(),t.replace(Er,F).toLowerCase()]}(r.calendar),e,!0))return!0;var s=Dr.exec(e.value.substr(e.valueIdx,6));if(!s)return!o;var c=s[1],m=s[3],f=parseInt(c,10),d=s[2],y=parseInt(m,10);return!!(isNaN(f)||!n&&3!==c.length||!i&&isNaN(y)||a&&d)||(isNaN(y)&&(y=null),!!(zr(f,-12,13)||y&&zr(y,0,59))||(e.valueIdx+=s[0].length,e.hoursOffset=f,void(e.minutesOffset=y)))}function jr(e,r,t){var n=_r(e,r),a=fr(t,"months",n,"L"===e,!0),i=n<3?Cr(2,r):Pr(a,r,!0);if(null===i||zr(i,1,12))return!0;r.month=i-1}function qr(e,r,t){var n=_r(e,r),a=fr(t,"days",n,"c"===e,!0),i=n<3?Cr(1,r):Pr(a,r,!0);if(!i&&0!==i||zr(i,1,7))return!0}var Gr={};function Qr(e,r,t){for(var n=cr(r,t).split(F),a={format:n,idx:0,value:e,valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=n.length,o=!1;a.idx<i;a.idx++){var u=n[a.idx];if(o)"'"===u&&(o=!1),Lr(a);else if(Gr[u]){if(Gr[u](a,t))return null}else if("'"===u)o=!0,Lr(a);else if(!Lr(a))return null}return a.valueIdx<e.length?null:function(e){var r,t=e.year,n=e.month,a=e.day,i=e.hours,o=e.minutes,u=e.seconds,s=e.milliseconds,l=e.pmHour,c=e.UTC,m=e.hoursOffset,f=e.minutesOffset,d=null!==i||null!==o||u||null,y=new Date;return null===t&&null===n&&null===a&&d?(t=y.getFullYear(),n=y.getMonth(),a=y.getDate()):(null===t&&(t=y.getFullYear()),null===a&&(a=1)),l&&i<12&&(i+=12),c?(m&&(i+=-m),f&&(o+=-f*(m<0?-1:1)),r=new Date(Date.UTC(t,n,a,i,o,u,s))):function(e,r){r||23!==e.getHours()||e.setHours(e.getHours()+2)}(r=new Date(t,n,a,i,o,u,s),i),t<100&&r.setFullYear(t),r.getDate()!==a&&void 0===c?null:r}(a)||null}function Xr(e){if(e&&0===e.indexOf("/D")){var r=Nr.exec(e);if(r){r=r[1];var t=Or.exec(r.substring(1));return r=new Date(parseInt(r,10)),t&&(n=t[0],a="-"===n.substr(0,1)?-1:1,i=n.substring(1),t=a*(i=60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),r=Fr(r=Fr(r,r.getTimezoneOffset(),0),0,-1*t)),r}}var n,a,i}function Zr(e,r,t){if(void 0===t&&(t=D),!e)return null;if(pr(e))return e;var n=String(e).trim(),a=Xr(n);if(a)return a;for(var i=f(t),o=r||function(e){for(var r=[],t=e.patterns,n=Ir.length,a=0;a<n;a++)r.push(t[Ir[a]]);return r.concat(kr)}(i.calendar),u=(o=Array.isArray(o)?o:[o]).length,s=0;s<u;s++)if(a=Qr(n,o[s],i))return a;return a}Gr.d=function(e){_r("d",e);var r=Cr(2,e);if(null===r||zr(r,1,31))return!0;null===e.day&&(e.day=r)},Gr.E=function(e,r){if(null===Pr(fr(r,"days",_r("E",e),!1,!0),e,!0))return!0},Gr.M=function(e,r){return jr("M",e,r)},Gr.L=function(e,r){return jr("L",e,r)},Gr.y=function(e){var r=_r("y",e),t=Cr(1===r?void 0:r,e);if(null===t)return!0;if(2===r){var n=(new Date).getFullYear();(t=n-n%100+t)>2029&&(t-=100)}e.year=t},Gr.h=function(e){_r("h",e);var r=Cr(2,e);if(12===r&&(r=0),null===r||zr(r,0,11))return!0;e.hours=r},Gr.K=function(e){_r("K",e);var r=Cr(2,e);if(null===r||zr(r,0,11))return!0;e.hours=r},Gr.a=function(e,r){var t=fr(r,"dayPeriods",_r("a",e),!1,!0),n=Pr([t.pm],e,!0);if(!n&&!Pr([t.am],e,!0))return!0;e.pmHour=n},Gr.H=function(e){_r("H",e);var r=Cr(2,e);if(null===r||zr(r,0,23))return!0;e.hours=r},Gr.k=function(e){_r("k",e);var r=Cr(2,e);if(null===r||zr(r,1,24))return!0;e.hours=24===r?0:r},Gr.m=function(e){_r("m",e);var r=Cr(2,e);if(null===r||zr(r,0,59))return!0;e.minutes=r},Gr.s=function(e){_r("s",e);var r=Cr(2,e);if(null===r||zr(r,0,59))return!0;e.seconds=r},Gr.S=function(e){var r=_r("S",e),t=e.value.substr(e.valueIdx,r),n=null;if(isNaN(parseInt(t,10))||(n=xe(n=parseFloat("0."+t,10),3),n*=1e3,e.valueIdx+=r),null===n||zr(n,0,999))return!0;e.milliseconds=n},Gr.z=function(e,r){var t=_r("z",e)<4,n=Ar(e,r,{shortHours:t,optionalMinutes:t,localizedName:!0});if(n)return n},Gr.Z=function(e,r){var t=_r("Z",e),n=Ar(e,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(n)return n},Gr.x=function(e,r){var t=_r("x",e),n=Ar(e,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(n)return n},Gr.X=function(e,r){var t=_r("X",e),n=Ar(e,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(n)return n},Gr.G=function(e,r){var t=fr(r,"eras",_r("G",e),!1,!0);if(null===Pr([t[0],t[1]],e,!0))return!0},Gr.e=function(e,r){return qr("e",e,r)},Gr.c=function(e,r){return qr("c",e,r)};var Br={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Ur="literal";function Jr(e,r){var t=e[e.length-1];t&&t.type===Ur?t.pattern+=r:e.push({type:Ur,pattern:r})}function Wr(e){return"h"===e||"K"===e}function $r(e,r){void 0===r&&(r=D);for(var t=cr(e,f(r)),n=[],a=gr.lastIndex=0,i=gr.exec(t);i;){var o=i[0];if(a<i.index&&Jr(n,t.substring(a,i.index)),o.startsWith('"')||o.startsWith("'"))Jr(n,o);else{var u=o[0],s=vr[u],l={type:s,pattern:o};"hour"===s&&(l.hour12=Wr(o));var c=Br[s];if(c){var m=Xe(c.minLength)?c.minLength:c.minLength[u],d=o.length;d>=m&&(l.names={type:c.type,nameType:mr(d),standAlone:c.standAlone===u})}n.push(l)}a=gr.lastIndex,i=gr.exec(t)}return a<t.length&&Jr(n,t.substring(a)),n}var Rr=/\{(\d+)(:[^\}]+)?\}/g;function Yr(e,r,t){if(r){if(pr(e))return xr(e,r,t);if(Xe(e))return Qe(e,r,t)}return void 0!==e&&null!==e?e:F}function Kr(e,r,t){return e.replace(Rr,function(e,n,a){return Yr(r[parseInt(n,10)],a?a.substring(1):F,t)})}t.d(r,"formatNumber",function(){return Qe}),t.d(r,"parseNumber",function(){return Je}),t.d(r,"formatDate",function(){return xr}),t.d(r,"parseDate",function(){return Zr}),t.d(r,"splitDateFormat",function(){return $r}),t.d(r,"load",function(){return B}),t.d(r,"setData",function(){return U}),t.d(r,"dateFieldName",function(){return J}),t.d(r,"dateFormatNames",function(){return W}),t.d(r,"cldr",function(){return c}),t.d(r,"localeInfo",function(){return f}),t.d(r,"currencyDisplays",function(){return ue}),t.d(r,"currencyDisplay",function(){return se}),t.d(r,"currencyFractionOptions",function(){return le}),t.d(r,"territoryCurrencyCode",function(){return ce}),t.d(r,"localeCurrency",function(){return me}),t.d(r,"firstDay",function(){return ve}),t.d(r,"numberSymbols",function(){return ge}),t.d(r,"toString",function(){return Yr}),t.d(r,"format",function(){return Kr}),t.d(r,"errors",function(){return l}),t.d(r,"IntlError",function(){return o}),t.d(r,"toIntlErrors",function(){return s})},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.messages=Object.create({})},function(e,t){e.exports=r},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(2),a=t(1),i=t(0);r.provideIntlService=function(e){return e.context&&e.context.kendoIntlService||new a.IntlService("en")},r.provideLocalizationService=function(e){return e.context&&e.context.kendoLocalizationService||new i.LocalizationService},r.registerForIntl=function(e){var r={kendoIntlService:n.object};e.contextTypes?Object.assign(e.contextTypes,r):e.contextTypes=r},r.registerForLocalization=function(e){var r={kendoLocalizationService:n.object};e.contextTypes?Object.assign(e.contextTypes,r):e.contextTypes=r}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(3);r.load=n.load},function(e,r,t){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])},function(e,r){function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(r,"__esModule",{value:!0});var i=t(5),o=t(2),u=t(0),s=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.getLocalizationService=function(){return new u.LocalizationService(this.props.language)},r.prototype.getChildContext=function(){return{kendoLocalizationService:this.getLocalizationService()}},r.prototype.render=function(){return i.Children.only(this.props.children)},r.propTypes={language:o.string},r.childContextTypes={kendoLocalizationService:o.object},r}(i.Component);r.LocalizationProvider=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(4),a=function(e,r,t){for(var n in e)if(e.hasOwnProperty(n)){var i=t.slice();if(i.push(n),"string"!=typeof e[n])a(e[n],r,i);else{var o=e[n];Object.defineProperty(r,i.join("."),{value:o})}}};r.loadMessages=function(e,r){var t=n.messages[r]=n.messages[r]||{};a(e,t,[])}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(9);r.loadMessages=n.loadMessages;var a=t(8);r.LocalizationProvider=a.LocalizationProvider;var i=t(0);r.LocalizationService=i.LocalizationService},function(e,r,t){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])},function(e,r){function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(r,"__esModule",{value:!0});var i=t(5),o=t(2),u=t(1),s=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.getIntlService=function(){return new u.IntlService(this.props.locale)},r.prototype.getChildContext=function(){return{kendoIntlService:this.getIntlService()}},r.prototype.render=function(){return i.Children.only(this.props.children)},r.propTypes={locale:o.string},r.childContextTypes={kendoIntlService:o.object},r}(i.Component);r.default=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(11);r.IntlProvider=n.default;var a=t(1);r.IntlService=a.IntlService},function(e,r,t){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),n(t(12)),n(t(10)),n(t(7)),n(t(6))}])}); |
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
import { IntlService } from './Intl/IntlService'; | ||
import { LocalizationService } from './Localization/LocalizationService'; | ||
/** | ||
@@ -12,11 +14,28 @@ * Provides an internationalization service. | ||
*/ | ||
export declare function provideIntlService(component: React.Component): any; | ||
export declare function provideIntlService(component: React.Component): IntlService; | ||
/** | ||
* A method which registers a component class for internationalization. | ||
* When a component of that class is a direct or indirect | ||
* Provides a localization service. | ||
* When the passed component is a direct or indirect child of | ||
* `LocalizationProvider`, the returned service uses the language of the provider. | ||
* To handle locale changes, call the method on each `render`. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization service. | ||
*/ | ||
export declare function provideLocalizationService(component: React.Component): LocalizationService; | ||
/** | ||
* A method which registers a component class or a functional stateless component for internationalization. | ||
* When a component of that type is a direct or indirect | ||
* child of `IntlProvider`, the locale of the provider is used. | ||
* Otherwise, `en` is used as a default locale. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization methods. | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
export declare function registerForIntl(componentClass: any): void; | ||
export declare function registerForIntl(component: React.ComponentClass | React.SFC): void; | ||
/** | ||
* A method which registers a component class or a functional stateless component for localization. | ||
* When a component of that type is a direct or indirect | ||
* child of `LocalizationProvider`, the language of the provider is used. | ||
* | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
export declare function registerForLocalization(component: React.ComponentClass | React.SFC): void; |
import * as PropTypes from 'prop-types'; | ||
import IntlService from './IntlService'; | ||
import { IntlService } from './Intl/IntlService'; | ||
import { LocalizationService } from './Localization/LocalizationService'; | ||
/** | ||
@@ -13,21 +14,60 @@ * Provides an internationalization service. | ||
export function provideIntlService(component) { | ||
if (!component) { | ||
throw "Passed component = " + component + " is invalid."; | ||
if (!component && process.env.NODE_ENV !== 'production') { | ||
throw "Passed component - " + component + " is invalid."; | ||
} | ||
var intlServiceFromContext = component.context && component.context.kendoIntlService; | ||
return intlServiceFromContext ? intlServiceFromContext : new IntlService('en'); | ||
return intlServiceFromContext || new IntlService('en'); | ||
} | ||
/** | ||
* A method which registers a component class for internationalization. | ||
* When a component of that class is a direct or indirect | ||
* Provides a localization service. | ||
* When the passed component is a direct or indirect child of | ||
* `LocalizationProvider`, the returned service uses the language of the provider. | ||
* To handle locale changes, call the method on each `render`. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization service. | ||
*/ | ||
export function provideLocalizationService(component) { | ||
if (!component && process.env.NODE_ENV !== 'production') { | ||
throw "Passed component - " + component + " is invalid."; | ||
} | ||
var localizationServiceFromContext = component.context && component.context.kendoLocalizationService; | ||
return localizationServiceFromContext || new LocalizationService(); | ||
} | ||
/** | ||
* A method which registers a component class or a functional stateless component for internationalization. | ||
* When a component of that type is a direct or indirect | ||
* child of `IntlProvider`, the locale of the provider is used. | ||
* Otherwise, `en` is used as a default locale. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization methods. | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
export function registerForIntl(componentClass) { | ||
componentClass.contextTypes = { | ||
export function registerForIntl(component) { | ||
var ctx = { | ||
kendoIntlService: PropTypes.object | ||
}; | ||
if (component.contextTypes) { | ||
Object.assign(component.contextTypes, ctx); | ||
} | ||
else { | ||
component.contextTypes = ctx; | ||
} | ||
} | ||
/** | ||
* A method which registers a component class or a functional stateless component for localization. | ||
* When a component of that type is a direct or indirect | ||
* child of `LocalizationProvider`, the language of the provider is used. | ||
* | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
export function registerForLocalization(component) { | ||
var ctx = { | ||
kendoLocalizationService: PropTypes.object | ||
}; | ||
if (component.contextTypes) { | ||
Object.assign(component.contextTypes, ctx); | ||
} | ||
else { | ||
component.contextTypes = ctx; | ||
} | ||
} | ||
//# sourceMappingURL=intlUtils.js.map |
@@ -1,6 +0,4 @@ | ||
import IntlProvider from './IntlProvider'; | ||
import { IntlProviderProps } from './IntlProviderProps'; | ||
import { provideIntlService, registerForIntl } from './intlUtils'; | ||
import IntlService from './IntlService'; | ||
import { load, DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart } from './coreExports'; | ||
export { IntlProvider, IntlProviderProps, IntlService, provideIntlService, registerForIntl, load, DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart }; | ||
export * from './Intl/main'; | ||
export * from './Localization/main'; | ||
export * from './coreExports'; | ||
export * from './intlUtils'; |
@@ -1,6 +0,5 @@ | ||
import IntlProvider from './IntlProvider'; | ||
import { provideIntlService, registerForIntl } from './intlUtils'; | ||
import IntlService from './IntlService'; | ||
import { load } from './coreExports'; | ||
export { IntlProvider, IntlService, provideIntlService, registerForIntl, load }; | ||
export * from './Intl/main'; | ||
export * from './Localization/main'; | ||
export * from './coreExports'; | ||
export * from './intlUtils'; | ||
//# sourceMappingURL=main.js.map |
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
import { IntlService } from './Intl/IntlService'; | ||
import { LocalizationService } from './Localization/LocalizationService'; | ||
/** | ||
@@ -12,11 +14,28 @@ * Provides an internationalization service. | ||
*/ | ||
export declare function provideIntlService(component: React.Component): any; | ||
export declare function provideIntlService(component: React.Component): IntlService; | ||
/** | ||
* A method which registers a component class for internationalization. | ||
* When a component of that class is a direct or indirect | ||
* Provides a localization service. | ||
* When the passed component is a direct or indirect child of | ||
* `LocalizationProvider`, the returned service uses the language of the provider. | ||
* To handle locale changes, call the method on each `render`. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization service. | ||
*/ | ||
export declare function provideLocalizationService(component: React.Component): LocalizationService; | ||
/** | ||
* A method which registers a component class or a functional stateless component for internationalization. | ||
* When a component of that type is a direct or indirect | ||
* child of `IntlProvider`, the locale of the provider is used. | ||
* Otherwise, `en` is used as a default locale. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization methods. | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
export declare function registerForIntl(componentClass: any): void; | ||
export declare function registerForIntl(component: React.ComponentClass | React.SFC): void; | ||
/** | ||
* A method which registers a component class or a functional stateless component for localization. | ||
* When a component of that type is a direct or indirect | ||
* child of `LocalizationProvider`, the language of the provider is used. | ||
* | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
export declare function registerForLocalization(component: React.ComponentClass | React.SFC): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var PropTypes = require("prop-types"); | ||
var IntlService_1 = require("./IntlService"); | ||
var IntlService_1 = require("./Intl/IntlService"); | ||
var LocalizationService_1 = require("./Localization/LocalizationService"); | ||
/** | ||
@@ -15,23 +16,64 @@ * Provides an internationalization service. | ||
function provideIntlService(component) { | ||
if (!component) { | ||
throw "Passed component = " + component + " is invalid."; | ||
if (!component && process.env.NODE_ENV !== 'production') { | ||
throw "Passed component - " + component + " is invalid."; | ||
} | ||
var intlServiceFromContext = component.context && component.context.kendoIntlService; | ||
return intlServiceFromContext ? intlServiceFromContext : new IntlService_1.default('en'); | ||
return intlServiceFromContext || new IntlService_1.IntlService('en'); | ||
} | ||
exports.provideIntlService = provideIntlService; | ||
/** | ||
* A method which registers a component class for internationalization. | ||
* When a component of that class is a direct or indirect | ||
* Provides a localization service. | ||
* When the passed component is a direct or indirect child of | ||
* `LocalizationProvider`, the returned service uses the language of the provider. | ||
* To handle locale changes, call the method on each `render`. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization service. | ||
*/ | ||
function provideLocalizationService(component) { | ||
if (!component && process.env.NODE_ENV !== 'production') { | ||
throw "Passed component - " + component + " is invalid."; | ||
} | ||
var localizationServiceFromContext = component.context && component.context.kendoLocalizationService; | ||
return localizationServiceFromContext || new LocalizationService_1.LocalizationService(); | ||
} | ||
exports.provideLocalizationService = provideLocalizationService; | ||
/** | ||
* A method which registers a component class or a functional stateless component for internationalization. | ||
* When a component of that type is a direct or indirect | ||
* child of `IntlProvider`, the locale of the provider is used. | ||
* Otherwise, `en` is used as a default locale. | ||
* | ||
* @param componentClass - The React component class that will use the internationalization methods. | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
function registerForIntl(componentClass) { | ||
componentClass.contextTypes = { | ||
function registerForIntl(component) { | ||
var ctx = { | ||
kendoIntlService: PropTypes.object | ||
}; | ||
if (component.contextTypes) { | ||
Object.assign(component.contextTypes, ctx); | ||
} | ||
else { | ||
component.contextTypes = ctx; | ||
} | ||
} | ||
exports.registerForIntl = registerForIntl; | ||
/** | ||
* A method which registers a component class or a functional stateless component for localization. | ||
* When a component of that type is a direct or indirect | ||
* child of `LocalizationProvider`, the language of the provider is used. | ||
* | ||
* @param component - The React component class that will use the internationalization methods. | ||
*/ | ||
function registerForLocalization(component) { | ||
var ctx = { | ||
kendoLocalizationService: PropTypes.object | ||
}; | ||
if (component.contextTypes) { | ||
Object.assign(component.contextTypes, ctx); | ||
} | ||
else { | ||
component.contextTypes = ctx; | ||
} | ||
} | ||
exports.registerForLocalization = registerForLocalization; | ||
//# sourceMappingURL=intlUtils.js.map |
@@ -1,6 +0,4 @@ | ||
import IntlProvider from './IntlProvider'; | ||
import { IntlProviderProps } from './IntlProviderProps'; | ||
import { provideIntlService, registerForIntl } from './intlUtils'; | ||
import IntlService from './IntlService'; | ||
import { load, DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart } from './coreExports'; | ||
export { IntlProvider, IntlProviderProps, IntlService, provideIntlService, registerForIntl, load, DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart }; | ||
export * from './Intl/main'; | ||
export * from './Localization/main'; | ||
export * from './coreExports'; | ||
export * from './intlUtils'; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IntlProvider_1 = require("./IntlProvider"); | ||
exports.IntlProvider = IntlProvider_1.default; | ||
var intlUtils_1 = require("./intlUtils"); | ||
exports.provideIntlService = intlUtils_1.provideIntlService; | ||
exports.registerForIntl = intlUtils_1.registerForIntl; | ||
var IntlService_1 = require("./IntlService"); | ||
exports.IntlService = IntlService_1.default; | ||
var coreExports_1 = require("./coreExports"); | ||
exports.load = coreExports_1.load; | ||
__export(require("./Intl/main")); | ||
__export(require("./Localization/main")); | ||
__export(require("./coreExports")); | ||
__export(require("./intlUtils")); | ||
//# sourceMappingURL=main.js.map |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-intl",["prop-types","react","@telerik/kendo-intl"],function(c){var r,o,n;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){r=e(t)},function(t){o=e(t)},function(t){n=e(t)}],execute:function(){!function(r){var o={};function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=r,n.c=o,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=function(){function t(t){if(""===(this.locale=t))throw"Locale should not be empty string"}return t.prototype.format=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return 1===e.length&&e[0]instanceof Array?o.format(t,e[0],this.locale):o.format(t,e,this.locale)},t.prototype.formatDate=function(t,e){return o.formatDate(t,e,this.locale)},t.prototype.toString=function(t,e){return o.toString(t,e,this.locale)},t.prototype.parseNumber=function(t,e){return o.parseNumber(t,this.locale,e)},t.prototype.parseDate=function(t,e){return o.parseDate(t,e,this.locale)},t.prototype.formatNumber=function(t,e){return o.formatNumber(t,e,this.locale)},t.prototype.dateFieldName=function(t){return o.dateFieldName(t,this.locale)},t.prototype.dateFormatNames=function(t){return o.dateFormatNames(this.locale,t)},t.prototype.splitDateFormat=function(t){return o.splitDateFormat(t,this.locale)},t.prototype.numberSymbols=function(){return o.numberSymbols(this.locale)},t.prototype.firstDay=function(){return o.firstDay(this.locale)},t}();e.default=n},function(t,e){t.exports=n},function(t,e){t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.load=o.load},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),n=r(0);e.provideIntlService=function(t){if(!t)throw"Passed component = "+t+" is invalid.";return t.context&&t.context.kendoIntlService||new n.default("en")},e.registerForIntl=function(t){t.contextTypes={kendoIntlService:o.object}}},function(t,e){t.exports=o},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(5),u=r(2),c=r(0),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getIntlService=function(){return new c.default(this.props.locale)},e.prototype.getChildContext=function(){return{kendoIntlService:this.getIntlService()}},e.prototype.render=function(){return i.Children.only(this.props.children)},e.propTypes={locale:u.string},e.childContextTypes={kendoIntlService:u.object},e}(i.Component);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(6);e.IntlProvider=o.default;var n=r(4);e.provideIntlService=n.provideIntlService,e.registerForIntl=n.registerForIntl;var i=r(0);e.IntlService=i.default;var u=r(3);e.load=u.load,function(t){for(var e in t)c(e,t[e])}(e)}])}}}); | ||
System.register("@progress/kendo-react-intl",["@telerik/kendo-intl","prop-types","react"],function(r){var n,o,i;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){i=t(e)}],execute:function(){!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=13)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=function(){function e(e){this.language=e}return e.prototype.toLanguageString=function(e,t){return this.language&&o.messages[this.language]&&o.messages[this.language].hasOwnProperty(e)?o.messages[this.language][e]:t},e}();t.LocalizationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),r=function(){function e(e){this.locale=e}return e.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 1===t.length&&t[0]instanceof Array?o.format(e,t[0],this.locale):o.format(e,t,this.locale)},e.prototype.formatDate=function(e,t){return o.formatDate(e,t,this.locale)},e.prototype.toString=function(e,t){return o.toString(e,t,this.locale)},e.prototype.parseNumber=function(e,t){return o.parseNumber(e,this.locale,t)},e.prototype.parseDate=function(e,t){return o.parseDate(e,t,this.locale)},e.prototype.formatNumber=function(e,t){return o.formatNumber(e,t,this.locale)},e.prototype.dateFieldName=function(e){return o.dateFieldName(e,this.locale)},e.prototype.dateFormatNames=function(e){return o.dateFormatNames(this.locale,e)},e.prototype.splitDateFormat=function(e){return o.splitDateFormat(e,this.locale)},e.prototype.numberSymbols=function(){return o.numberSymbols(this.locale)},e.prototype.firstDay=function(){return o.firstDay(this.locale)},e}();t.IntlService=r},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.messages=Object.create({})},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(1),i=n(0);t.provideIntlService=function(e){return e.context&&e.context.kendoIntlService||new r.IntlService("en")},t.provideLocalizationService=function(e){return e.context&&e.context.kendoLocalizationService||new i.LocalizationService},t.registerForIntl=function(e){var t={kendoIntlService:o.object};e.contextTypes?Object.assign(e.contextTypes,t):e.contextTypes=t},t.registerForLocalization=function(e){var t={kendoLocalizationService:o.object};e.contextTypes?Object.assign(e.contextTypes,t):e.contextTypes=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.load=o.load},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),c=n(2),a=n(0),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLocalizationService=function(){return new a.LocalizationService(this.props.language)},t.prototype.getChildContext=function(){return{kendoLocalizationService:this.getLocalizationService()}},t.prototype.render=function(){return i.Children.only(this.props.children)},t.propTypes={language:c.string},t.childContextTypes={kendoLocalizationService:c.object},t}(i.Component);t.LocalizationProvider=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),c=function(e,t,n){for(var o in e)if(e.hasOwnProperty(o)){var r=n.slice();if(r.push(o),"string"!=typeof e[o])c(e[o],t,r);else{var i=e[o];Object.defineProperty(t,r.join("."),{value:i})}}};t.loadMessages=function(e,t){var n=o.messages[t]=o.messages[t]||{};c(e,n,[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9);t.loadMessages=o.loadMessages;var r=n(8);t.LocalizationProvider=r.LocalizationProvider;var i=n(0);t.LocalizationService=i.LocalizationService},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),c=n(2),a=n(1),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getIntlService=function(){return new a.IntlService(this.props.locale)},t.prototype.getChildContext=function(){return{kendoIntlService:this.getIntlService()}},t.prototype.render=function(){return i.Children.only(this.props.children)},t.propTypes={locale:c.string},t.childContextTypes={kendoIntlService:c.object},t}(i.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11);t.IntlProvider=o.default;var r=n(1);t.IntlService=r.IntlService},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(12)),o(t(10)),o(t(7)),o(t(6)),function(e){for(var t in e)r(t,e[t])}(n)}])}}}); |
{ | ||
"name": "@progress/kendo-react-intl", | ||
"description": "Kendo UI for React Internationalization package", | ||
"version": "0.6.0-dev.201805111618", | ||
"version": "0.6.0-dev.201805140918", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
116480
83
1386
8
1