landingpage/rootfs/usr/share/www/frontend_es5/904.hb_mMQs0Glg.js

2 lines
6.4 KiB
JavaScript

(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[904],{87114:function(e,a,t){"use strict";t(71499),t(81027),t(18193),t(36016),t(98185),Object.defineProperty(a,"__esModule",{value:!0}),a.CanonicalCodeForDisplayNames=function(e,a){if("language"===e)return(0,r.CanonicalizeLocaleList)([a])[0];if("region"===e){if(t=a,!n.test(t))throw RangeError("invalid region");return a.toUpperCase()}var t;if("script"===e){if(s=a,!l.test(s))throw RangeError("invalid script");return"".concat(a[0].toUpperCase()).concat(a.slice(1).toLowerCase())}var s;if("calendar"===e){if(!function(e){return i.test(e)}(a))throw RangeError("invalid calendar");return a.toLowerCase()}if("dateTimeField"===e){if(!(0,o.IsValidDateTimeFieldCode)(a))throw RangeError("invalid dateTimeField");return a}if((0,r.invariant)("currency"===e,"invalid type"),!(0,r.IsWellFormedCurrencyCode)(a))throw RangeError("invalid currency");return a.toUpperCase()};var r=t(97555),o=t(96622),n=/^([a-z]{2}|[0-9]{3})$/i,l=/^[a-z]{4}$/i,i=/^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i},96622:function(e,a,t){"use strict";t(39805),Object.defineProperty(a,"__esModule",{value:!0}),a.IsValidDateTimeFieldCode=function(e){return r.indexOf(e)>=0};var r=["era","year","quarter","month","weekOfYear","weekday","day","dayPeriod","hour","minute","second","timeZoneName"]},54121:function(e,a,t){"use strict";var r=t(22711).default;t(42942),t(48062),t(30008),t(71499),t(52427),t(95737),t(89682),t(45670),t(39790),t(36016),t(98185),t(7760),t(74268),t(24545),t(51855),t(82130),t(31743),t(22328),t(4959),t(62435),t(99019),t(43037),t(15129),t(96858),Object.defineProperty(a,"__esModule",{value:!0}),a.DisplayNames=void 0;var o=t(79192),n=t(97555),l=t(87114),i=t(96622),s=t(70517),c=function(){function e(a,t){if(void 0===this.constructor)throw TypeError("Constructor Intl.DisplayNames requires 'new'");var o=(0,n.CanonicalizeLocaleList)(a);t=(0,n.GetOptionsObject)(t);var l=Object.create(null),i=e.localeData,c=(0,n.GetOption)(t,"localeMatcher","string",["lookup","best fit"],"best fit");l.localeMatcher=c;var u=(0,s.ResolveLocale)(Array.from(e.availableLocales),o,l,[],e.localeData,e.getDefaultLocale),d=(0,n.GetOption)(t,"style","string",["narrow","short","long"],"long");f(this,"style",d);var p=(0,n.GetOption)(t,"type","string",["language","region","script","currency","calendar","dateTimeField"],void 0);if(void 0===p)throw TypeError('Intl.DisplayNames constructor requires "type" option');f(this,"type",p),f(this,"fallback",(0,n.GetOption)(t,"fallback","string",["code","none"],"code")),f(this,"locale",u.locale);var y=u.dataLocale,v=i[y];(0,n.invariant)(!!v,"Missing locale data for ".concat(y)),f(this,"localeData",v),(0,n.invariant)(void 0!==v,"locale data for ".concat(u.locale," does not exist."));var g=v.types;(0,n.invariant)("object"===r(g)&&null!=g,"invalid types data");var b=g[p];(0,n.invariant)("object"===r(b)&&null!=b,"invalid typeFields data");var m=(0,n.GetOption)(t,"languageDisplay","string",["dialect","standard"],"dialect");if("language"===p){f(this,"languageDisplay",m);var h=g[p][m];(0,n.invariant)("object"===r(h)&&null!=h,"invalid language typeFields data")}var _="language"===p?g[p][m][d]:g[p][d];(0,n.invariant)("object"===r(_)&&null!=_,"invalid styleFields data"),f(this,"fields",_)}return e.supportedLocalesOf=function(a,t){return(0,n.SupportedLocales)(e.availableLocales,(0,n.CanonicalizeLocaleList)(a),t)},e.__addLocaleData=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];for(var r=0,o=a;r<o.length;r++){var n=o[r],l=n.data,i=n.locale,s=new Intl.Locale(i).minimize().toString();e.localeData[i]=e.localeData[s]=l,e.availableLocales.add(s),e.availableLocales.add(i),e.__defaultLocale||(e.__defaultLocale=s)}},e.prototype.of=function(e){p(this,"of");var a=d(this,"type"),t=(0,n.ToString)(e);if(!function(e,a){switch(e){case"language":return/^[a-z]{2,3}(-[a-z]{4})?(-([a-z]{2}|\d{3}))?(-([a-z\d]{5,8}|\d[a-z\d]{3}))*$/i.test(a);case"region":return/^([a-z]{2}|\d{3})$/i.test(a);case"script":return/^[a-z]{4}$/i.test(a);case"currency":return(0,n.IsWellFormedCurrencyCode)(a);case"calendar":return/^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i.test(a);case"dateTimeField":return(0,i.IsValidDateTimeFieldCode)(a)}}(a,t))throw RangeError("invalid code for Intl.DisplayNames.prototype.of");var r,o=(0,n.getMultiInternalSlots)(u,this,"localeData","style","fallback"),s=o.localeData,c=o.style,f=o.fallback,y=(0,l.CanonicalCodeForDisplayNames)(a,t);if("language"===a){r=function(e,a,t,r,o){var n=a.types.language[e],l=n[t][r]||n.long[r];if(void 0!==l)return l;var i=/-([a-z]{2}|\d{3})\b/i.exec(r);if(i){var s=r.substring(0,i.index)+r.substring(i.index+i[0].length),c=i[1],u=n[t][s]||n.long[s];if(void 0===u||!c)return u;var d=a.types.region,f=d[t][c]||d.long[c];if(f||"code"===o)return a.patterns.locale.replace("{0}",u).replace("{1}",f||c)}}(d(this,"languageDisplay"),s,c,y,f)}else{var v=s.types[a];r=v[c][y]||v.long[y]}return void 0!==r?r:"code"===f?t:void 0},e.prototype.resolvedOptions=function(){return p(this,"resolvedOptions"),o.__assign({},(0,n.getMultiInternalSlots)(u,this,"locale","style","type","fallback","languageDisplay"))},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.polyfilled=!0,e}();a.DisplayNames=c;try{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Intl.DisplayNames",configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(c,"length",{value:2,writable:!1,enumerable:!1,configurable:!0})}catch(y){}var u=new WeakMap;function d(e,a){return(0,n.getInternalSlot)(u,e,a)}function f(e,a,t){(0,n.setInternalSlot)(u,e,a,t)}function p(e,a){if(!(e instanceof c))throw TypeError("Method Intl.DisplayNames.prototype.".concat(a," called on incompatible receiver"))}},24904:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=t(54121);Object.defineProperty(Intl,"DisplayNames",{value:r.DisplayNames,enumerable:!1,writable:!0,configurable:!0})},22711:function(e,a,t){function r(a){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(a)}t(42942),t(48062),t(67336),t(95737),t(39790),t(99019),t(96858),e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
//# sourceMappingURL=904.hb_mMQs0Glg.js.map