UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 8.77 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[3668],{55081:function(e,t,r){var n=r(46518),o=r(44576);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},89463:function(e,t,r){var n=r(46518),o=r(43724),a=r(44576),i=r(69565),l=r(79504),s=r(39297),c=r(94901),u=r(1625),f=r(655),d=r(62106),b=r(77740),y=a.Symbol,p=y&&y.prototype;if(o&&c(y)&&(!("description"in p)||void 0!==y().description)){var v={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),t=u(p,this)?new y(e):void 0===e?y():y(e);return""===e&&(v[t]=!0),t};b(h,y);var m=h.for;h.for={for:function(e){var t=f(e),r=i(m,this,t);return""===t&&(v[r]=!0),r}}.for,h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(y("description detection")),w=l(p.valueOf),T=l(p.toString),S=/^Symbol\((.*)\)[^)]+$/,E=l("".replace),O=l("".slice);d(p,"description",{configurable:!0,get:function(){var e=w(this);if(s(v,e))return"";var t=T(e),r=g?O(t,7,-1):E(t,S,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:h})}},9375:function(e,t,r){r.r(t);r(89463),r(16280),r(44114),r(55081),r(18111),r(22489),r(61701),r(33110),r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(88454),r(29452),r(62953);var n,o=r(32838);function a(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function i(e){return Intl.getCanonicalLocales(e)}function l(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function s(e,t,r,n,o){if("object"!=typeof e)throw new TypeError("Options must be an object");let i=e[t];if(void 0!==i){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(i=Boolean(i)),"string"===r&&(i=a(i)),void 0!==n&&!n.filter(e=>e==i).length)throw new RangeError(`${i} is not within ${n.join(", ")}`);return i}return o}function c(e,t){const r=t&&t.cache?t.cache:v,n=t&&t.serializer?t.serializer:y;return(t&&t.strategy?t.strategy:b)(e,{cache:r,serializer:n})}function u(e,t,r,n){const o=null==(a=n)||"number"==typeof a||"boolean"==typeof a?n:r(n);var a;let i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function f(e,t,r){const n=Array.prototype.slice.call(arguments,3),o=r(n);let a=t.get(o);return void 0===a&&(a=e.apply(this,n),t.set(o,a)),a}function d(e,t,r,n,o){return r.bind(t,e,n,o)}function b(e,t){return d(e,this,1===e.length?u:f,t.cache.create(),t.serializer)}const y=function(){return JSON.stringify(arguments)};var p=class{get(e){return this.cache[e]}set(e,t){this.cache[e]=t}constructor(){this.cache=Object.create(null)}};const v={create:function(){return new p}},h={variadic:function(e,t){return d(e,this,f,t.cache.create(),t.serializer)},monadic:function(e,t){return d(e,this,u,t.cache.create(),t.serializer)}};function m(e,t,r=Error){if(!e)throw new r(t)}const g=c((...e)=>new Intl.NumberFormat(...e),{strategy:h.variadic}),w=c((...e)=>new Intl.PluralRules(...e),{strategy:h.variadic});c((...e)=>new Intl.Locale(...e),{strategy:h.variadic}),c((...e)=>new Intl.ListFormat(...e),{strategy:h.variadic});const T=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function S(e,t,r,{getInternalSlots:n,availableLocales:a,relevantExtensionKeys:c,localeData:u,getDefaultLocale:f}){const d=n(e);d.initializedRelativeTimeFormat=!0;const b=i(t),y=Object.create(null),p=function(e){return void 0===e?Object.create(null):l(e)}(r);y.localeMatcher=s(p,"localeMatcher","string",["best fit","lookup"],"best fit");const v=s(p,"numberingSystem","string",void 0,void 0);if(void 0!==v&&!T.test(v))throw new RangeError(`Invalid numbering system ${v}`);y.nu=v;const h=(0,o.Bg)(a,b,y,c,u,f),{locale:S,nu:E}=h;d.locale=S,d.style=s(p,"style","string",["long","narrow","short"],"long"),d.numeric=s(p,"numeric","string",["always","auto"],"always");const O=u[h.dataLocale];return m(!!O,`Missing locale data for ${h.dataLocale}`),d.fields=O,d.numberFormat=g(t),d.pluralRules=w(t),d.numberingSystem=E,e}function E(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":void 0}function O(e,t,r){const n=function(e){const t=[];let r=e.indexOf("{"),n=0,o=0;const a=e.length;for(;r<e.length&&r>-1;)n=e.indexOf("}",r),m(n>r,`Invalid pattern ${e}`),r>o&&t.push({type:"literal",value:e.substring(o,r)}),t.push({type:e.substring(r+1,n),value:void 0}),o=n+1,r=e.indexOf("{",o);return o<a&&t.push({type:"literal",value:e.substring(o,a)}),t}(e),o=[];for(const a of n)if("literal"===a.type)o.push({type:"literal",value:a.value});else{m("0"===a.type,`Malformed pattern ${e}`);for(const e of r)o.push({type:e.type,value:e.value,unit:t})}return o}function _(e,t,r,{getInternalSlots:n}){if(m("Number"===E(t),"value must be number, instead got "+typeof t,TypeError),m("String"===E(r),"unit must be number, instead got "+typeof t,TypeError),isNaN(t)||!isFinite(t))throw new RangeError(`Invalid value ${t}`);const o=function(e){if(m("String"===E(e),"unit must be a string"),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw new RangeError("invalid unit");return e}(r),{fields:i,style:l,numeric:s,pluralRules:c,numberFormat:u}=n(e);let f=o;"short"===l?f=`${o}-short`:"narrow"===l&&(f=`${o}-narrow`),f in i||(f=o);const d=i[f];if("auto"===s&&a(t)in d)return[{type:"literal",value:d[a(t)]}];let b="future";var y,p;y=t,p=-0,((Object.is?Object.is(y,p):y===p?0!==y||1/y==1/p:y!=y&&p!=p)||t<0)&&(b="past");const v=d[b],h="function"==typeof u.formatToParts?u.formatToParts(Math.abs(t)):[{type:"literal",value:u.format(Math.abs(t)),unit:r}];return O(v[c.select(t)],o,h)}const L=new WeakMap;function j(e){let t=L.get(e);return t||(t=Object.create(null),L.set(e,t)),t}var I=(n=class e{format(e,t){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!j(this).initializedRelativeTimeFormat)throw new TypeError("format was called on a invalid context");return _(this,Number(e),a(t),{getInternalSlots:j}).map(e=>e.value).join("")}formatToParts(e,t){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!j(this).initializedRelativeTimeFormat)throw new TypeError("formatToParts was called on a invalid context");return _(this,Number(e),a(t),{getInternalSlots:j})}resolvedOptions(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");const e=j(this);if(!e.initializedRelativeTimeFormat)throw new TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}}static supportedLocalesOf(t,r){return function(e,t,r){let n="best fit";return void 0!==r&&(n=s(r=l(r),"localeMatcher","string",["lookup","best fit"],"best fit")),(0,o.s8)(Array.from(e),t)}(e.availableLocales,i(t),r)}static __addLocaleData(...t){for(const{data:r,locale:n}of t){const t=new Intl.Locale(n).minimize().toString();e.localeData[n]=e.localeData[t]=r,e.availableLocales.add(t),e.availableLocales.add(n),e.__defaultLocale||(e.__defaultLocale=t)}}static getDefaultLocale(){return e.__defaultLocale}constructor(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");return S(this,t,r,{getInternalSlots:j,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}},n.localeData={},n.availableLocales=new Set,n.__defaultLocale="",n.relevantExtensionKeys=["nu"],n.polyfilled=!0,n);try{"undefined"!=typeof Symbol&&Object.defineProperty(I.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(I.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(F){}!function(e,t,{value:r}){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})}(("undefined"==typeof Intl&&Object.defineProperty(globalThis,"Intl",{configurable:!0,enumerable:!1,writable:!0,value:{}}),Intl),"RelativeTimeFormat",{value:I});const R=globalThis.__FORMATJS_RELATIVETIMEFORMAT_DATA__;if(R){for(const e of R)I.__addLocaleData(e);delete globalThis.__FORMATJS_RELATIVETIMEFORMAT_DATA__}}}]);