2 lines
6.8 KiB
JavaScript
2 lines
6.8 KiB
JavaScript
|
export const id=7048;export const ids=[7048];export const modules={87048:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=a(2624),o=a(95466),n=a(77021);(0,n.defineProperty)(Intl,"NumberFormat",{value:r.NumberFormat}),(0,n.defineProperty)(Number.prototype,"toLocaleString",{value:function(e,t){return(0,o.toLocaleString)(this,e,t)}})},2624:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFormat=void 0;var r=a(43204),o=a(77021),n=a(54129),i=a(13649),m=r.__importDefault(a(75505)),l=["locale","numberingSystem","style","currency","currencyDisplay","currencySign","unit","unitDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping","notation","compactDisplay","signDisplay"];function u(e){return(0,o.FormatNumericToParts)(this,s(e),{getInternalSlots:m.default})}t.NumberFormat=function(e,a){if(!this||!(0,o.OrdinaryHasInstance)(t.NumberFormat,this))return new t.NumberFormat(e,a);(0,o.InitializeNumberFormat)(this,e,a,{getInternalSlots:m.default,localeData:t.NumberFormat.localeData,availableLocales:t.NumberFormat.availableLocales,getDefaultLocale:t.NumberFormat.getDefaultLocale,currencyDigitsData:n.currencyDigitsData,numberingSystemNames:i.numberingSystemNames});var r=(0,m.default)(this),l=r.dataLocale,u=t.NumberFormat.localeData[l];return(0,o.invariant)(void 0!==u,"Cannot load locale-dependent data for ".concat(l,".")),r.pl=new Intl.PluralRules(l,{minimumFractionDigits:r.minimumFractionDigits,maximumFractionDigits:r.maximumFractionDigits,minimumIntegerDigits:r.minimumIntegerDigits,minimumSignificantDigits:r.minimumSignificantDigits,maximumSignificantDigits:r.maximumSignificantDigits}),this};try{Object.defineProperty(u,"name",{value:"formatToParts",enumerable:!1,writable:!1,configurable:!0})}catch(e){}(0,o.defineProperty)(t.NumberFormat.prototype,"formatToParts",{value:u}),(0,o.defineProperty)(t.NumberFormat.prototype,"formatRange",{value:function(e,t){return(0,o.FormatNumericRange)(this,e,t,{getInternalSlots:m.default})}}),(0,o.defineProperty)(t.NumberFormat.prototype,"formatRangeToParts",{value:function(e,t){return(0,o.FormatNumericRangeToParts)(this,e,t,{getInternalSlots:m.default})}}),(0,o.defineProperty)(t.NumberFormat.prototype,"resolvedOptions",{value:function(){if("object"!=typeof this||!(0,o.OrdinaryHasInstance)(t.NumberFormat,this))throw TypeError("Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver");for(var e=(0,m.default)(this),a={},r=0,n=l;r<n.length;r++){var i=n[r],u=e[i];void 0!==u&&(a[i]=u)}return"morePrecision"===e.roundingType?a.roundingPriority="morePrecision":"lessPrecision"===e.roundingType?a.roundingPriority="lessPrecision":a.roundingPriority="auto",a}});var c={enumerable:!1,configurable:!0,get:function(){if("object"!=typeof this||!(0,o.OrdinaryHasInstance)(t.NumberFormat,this))throw TypeError("Intl.NumberFormat format property accessor called on incompatible receiver");var e=(0,m.default)(this),a=this,r=e.boundFormat;if(void 0===r){r=function(e){var t=s(e);return a.formatToParts(t).map((function(e){return e.value})).join("")};try{Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,writable:!1,value:""})}catch(e){}e.boundFormat=r}return r}};try{Object.defineProperty(c.get,"name",{configurable:!0,enumerable:!1,writable:!1,value:"get format"})}catch(e){}function s(e){return"bigint"==typeof e?e:(0,o.ToNumber)(e)}Object.defineProperty(t.NumberFormat.prototype,"format",c),(0,o.defineProperty)(t.NumberFormat,"supportedLocalesOf",{value:function(e,a){return(0,o.SupportedLocales)(t.NumberFormat.availableLocales,(0,o.CanonicalizeLocaleList)(e),a)}}),t.NumberFormat.__addLocaleData=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];for(var r=0,o=e;r<o.length;r++){var n=o[r],i=n.data,m=n.locale,l=new Intl.Locale(m).minimize().toString();t.NumberFormat.localeData[m]=t.NumberFormat.localeData[l]=i,t.NumberFormat.availableLocales.add(l),t.NumberFormat.availableLocales.add(m),t.NumberFormat.__defaultLocale||(t.NumberFormat.__defaultLocale=l)}},t.N
|
||
|
//# sourceMappingURL=7048.1i8odnlXQEw.js.map
|