2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[27],{4433:function(e,t,a){a(39805),a(18193),a(36016),a(43037),Object.defineProperty(t,"__esModule",{value:!0}),t.GetOperands=function(e){(0,l.invariant)("string"==typeof e,"GetOperands should have been called with a string");var t=(0,l.ToNumber)(e);(0,l.invariant)(isFinite(t),"n should be finite");var a,r,n,i=e.indexOf("."),o="";-1===i?(a=t,r=0,n=0):(a=e.slice(0,i),o=e.slice(i,e.length),r=(0,l.ToNumber)(o),n=o.length);var u,c,s=Math.abs((0,l.ToNumber)(a));if(0!==r){var f=o.replace(/0+$/,"");u=f.length,c=(0,l.ToNumber)(f)}else u=0,c=0;return{Number:t,IntegerDigits:s,NumberOfFractionDigits:n,NumberOfFractionDigitsWithoutTrailing:u,FractionDigits:r,FractionDigitsWithoutTrailing:c}};var l=a(97555)},1332:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.InitializePluralRules=function(e,t,a,n){var i=n.availableLocales,o=n.relevantExtensionKeys,u=n.localeData,c=n.getDefaultLocale,s=n.getInternalSlots,f=(0,l.CanonicalizeLocaleList)(t),b=Object.create(null),d=(0,l.CoerceOptionsToObject)(a),p=s(e);p.initializedPluralRules=!0;var v=(0,l.GetOption)(d,"localeMatcher","string",["best fit","lookup"],"best fit");b.localeMatcher=v,p.type=(0,l.GetOption)(d,"type","string",["cardinal","ordinal"],"cardinal"),(0,l.SetNumberFormatDigitOptions)(p,d,0,3,"standard");var g=(0,r.ResolveLocale)(i,f,b,o,u,c);return p.locale=g.locale,e};var l=a(97555),r=a(70517)},71037:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvePlural=function(e,t,a){var n=a.getInternalSlots,i=a.PluralRuleSelect,o=n(e);if((0,l.invariant)("Object"===(0,l.Type)(o),"pl has to be an object"),(0,l.invariant)("initializedPluralRules"in o,"pluralrules must be initialized"),(0,l.invariant)("Number"===(0,l.Type)(t),"n must be a number"),!isFinite(t))return"other";var u=o.locale,c=o.type,s=(0,l.FormatNumericToString)(o,t).formattedString,f=(0,r.GetOperands)(s);return i(u,c,t,f)};var l=a(97555),r=a(4433)},87376:function(e,t,a){a(95737),a(39790),a(99019),a(15129),a(96858),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=l.get(e);t||(t=Object.create(null),l.set(e,t));return t};var l=new WeakMap},69140:function(e,t,a){a(42942),a(48062),a(30008),a(71499),a(81027),a(95737),a(89682),a(45670),a(39790),a(7760),a(74268),a(24545),a(51855),a(82130),a(31743),a(22328),a(4959),a(62435),a(99019),a(96858),Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var l=a(79192),r=a(97555),n=a(1332),i=a(71037),o=l.__importDefault(a(87376));function u(e,t){if(!(e instanceof s))throw new TypeError("Method Intl.PluralRules.prototype.".concat(t," called on incompatible receiver ").concat(String(e)))}function c(e,t,a,l){var r=l.IntegerDigits,n=l.NumberOfFractionDigits,i=l.FractionDigits;return s.localeData[e].fn(n?"".concat(r,".").concat(i):r,"ordinal"===t)}var s=function(){function e(t,a){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");return(0,n.InitializePluralRules)(this,t,a,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:o.default})}return e.prototype.resolvedOptions=function(){u(this,"resolvedOptions");var t=Object.create(null),a=(0,o.default)(this);return t.locale=a.locale,t.type=a.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach((function(e){var l=a[e];void 0!==l&&(t[e]=l)})),t.pluralCategories=l.__spreadArray([],e.localeData[t.locale].categories[t.type],!0),t},e.prototype.select=function(e){u(this,"select");var t=(0,r.ToNumber)(e);return(0,i.ResolvePlural)(this,t,{getInternalSlots:o.default,PluralRuleSelect:c})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,a){return(0,r.SupportedLocales)(e.availableLocales,(0,r.CanonicalizeLocaleList)(t),a)},e.__addLocaleData=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];for(var l=0,r=t;l<r.length;l++){var n=r[l],i=n.data,o=n.locale;e.localeData[o]=i,e.availableLocales.add(o),e.__defaultLocale||(e.__defaultLocale=o)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=[],e.polyfilled=!0,e}();t.PluralRules=s;try{"undefined"!=typeof Symbol&&Object.defineProperty(s.prototype,Symbol.toStringTag,{value:"Intl.PluralRules",writable:!1,enumerable:!1,configurable:!0});try{Object.defineProperty(s,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(f){}Object.defineProperty(s.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(s.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(s,"name",{value:"PluralRules",writable:!1,enumerable:!1,configurable:!0})}catch(b){}},50027:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var l=a(69140);Object.defineProperty(Intl,"PluralRules",{value:l.PluralRules,writable:!0,enumerable:!1,configurable:!0})}}]);
|
|
//# sourceMappingURL=27.VLKgvcjvI6Q.js.map
|