UNPKG

iobroker.lovelace

Version:

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

3 lines 15.2 kB
/*! For license information please see 26635.4dc5211e48cb1151.js.LICENSE.txt */ "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["26635"],{78344:function(t){var r=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new r("Argument is not a string")}},87265:function(t,r,e){var a=e(61896),n=String,o=TypeError;t.exports=function(t){if(void 0===t||a(t))return t;throw new o(n(t)+" is not an object or undefined")}},87038:function(t,r,e){var a=e(59069),n=TypeError;t.exports=function(t){if("Uint8Array"===a(t))return t;throw new n("Argument is not an Uint8Array")}},15419:function(t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=r+"+/",a=r+"-_",n=function(t){for(var r={},e=0;e<64;e++)r[t.charAt(e)]=e;return r};t.exports={i2c:e,c2i:n(e),i2cUrl:a,c2iUrl:n(a)}},93474:function(t){var r=TypeError;t.exports=function(t){var e=t&&t.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new r("Incorrect `alphabet` option")}},96526:function(t,r,e){var a=e(1569),n=e(29660),o=e(72878),i=e(72616),s=e(36888).trim,l=e(91430),c=o("".charAt),d=a.parseFloat,u=a.Symbol,h=u&&u.iterator,f=1/d(l+"-0")!=-1/0||h&&!n((function(){d(Object(h))}));t.exports=f?function(t){var r=s(i(t)),e=d(r);return 0===e&&"-"===c(r,0)?-0:e}:d},47057:function(t,r,e){var a=e(1569),n=e(72878),o=e(87265),i=e(78344),s=e(39129),l=e(15419),c=e(93474),d=e(38511),u=l.c2i,h=l.c2iUrl,f=a.SyntaxError,p=a.TypeError,v=n("".charAt),b=function(t,r){for(var e=t.length;r<e;r++){var a=v(t,r);if(" "!==a&&"\t"!==a&&"\n"!==a&&"\f"!==a&&"\r"!==a)break}return r},m=function(t,r,e){var a=t.length;a<4&&(t+=2===a?"AA":"A");var n=(r[v(t,0)]<<18)+(r[v(t,1)]<<12)+(r[v(t,2)]<<6)+r[v(t,3)],o=[n>>16&255,n>>8&255,255&n];if(2===a){if(e&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===a){if(e&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},g=function(t,r,e){for(var a=r.length,n=0;n<a;n++)t[e+n]=r[n];return e+a};t.exports=function(t,r,e,a){i(t),o(r);var n="base64"===c(r)?u:h,l=r?r.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new p("Incorrect `lastChunkHandling` option");e&&d(e.buffer);var w=e||[],y=0,x=0,C="",A=0;if(a)for(;;){if((A=b(t,A))===t.length){if(C.length>0){if("stop-before-partial"===l)break;if("loose"!==l)throw new f("Missing padding");if(1===C.length)throw new f("Malformed padding: exactly one additional character");y=g(w,m(C,n,!1),y)}x=t.length;break}var _=v(t,A);if(++A,"="===_){if(C.length<2)throw new f("Padding is too early");if(A=b(t,A),2===C.length){if(A===t.length){if("stop-before-partial"===l)break;throw new f("Malformed padding: only one =")}"="===v(t,A)&&(++A,A=b(t,A))}if(A<t.length)throw new f("Unexpected character after padding");y=g(w,m(C,n,"strict"===l),y),x=t.length;break}if(!s(n,_))throw new f("Unexpected character");var k=a-y;if(1===k&&2===C.length||2===k&&3===C.length)break;if(4===(C+=_).length&&(y=g(w,m(C,n,!1),y),C="",x=A,y===a))break}return{bytes:w,read:x,written:y}}},35303:function(t,r,e){var a=e(1569),n=e(72878),o=a.Uint8Array,i=a.SyntaxError,s=a.parseInt,l=Math.min,c=/[^\da-f]/i,d=n(c.exec),u=n("".slice);t.exports=function(t,r){var e=t.length;if(e%2!=0)throw new i("String should be an even number of characters");for(var a=r?l(r.length,e/2):e/2,n=r||new o(a),h=0,f=0;f<a;){var p=u(t,h,h+=2);if(d(c,p))throw new i("String should only contain hex characters");n[f++]=s(p,16)}return{bytes:n,read:h}}},95078:function(t,r,e){var a=e(40810),n=e(96526);a({global:!0,forced:parseFloat!==n},{parseFloat:n})},92789:function(t,r,e){e(13492)("Uint8",(function(t){return function(r,e,a){return t(this,r,e,a)}}))},21917:function(t,r,e){var a=e(40810),n=e(1569),o=e(47057),i=e(87038);n.Uint8Array&&a({target:"Uint8Array",proto:!0},{setFromBase64:function(t){i(this);var r=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:r.read,written:r.written}}})},56193:function(t,r,e){var a=e(40810),n=e(1569),o=e(78344),i=e(87038),s=e(38511),l=e(35303);n.Uint8Array&&a({target:"Uint8Array",proto:!0},{setFromHex:function(t){i(this),o(t),s(this.buffer);var r=l(t,this).read;return{read:r,written:r/2}}})},25020:function(t,r,e){var a=e(40810),n=e(1569),o=e(72878),i=e(87265),s=e(87038),l=e(38511),c=e(15419),d=e(93474),u=c.i2c,h=c.i2cUrl,f=o("".charAt);n.Uint8Array&&a({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),r=arguments.length?i(arguments[0]):void 0,e="base64"===d(r)?u:h,a=!!r&&!!r.omitPadding;l(this.buffer);for(var n,o="",c=0,p=t.length,v=function(t){return f(e,n>>6*t&63)};c+2<p;c+=3)n=(t[c]<<16)+(t[c+1]<<8)+t[c+2],o+=v(3)+v(2)+v(1)+v(0);return c+2===p?(n=(t[c]<<16)+(t[c+1]<<8),o+=v(3)+v(2)+v(1)+(a?"":"=")):c+1===p&&(n=t[c]<<16,o+=v(3)+v(2)+(a?"":"==")),o}})},86913:function(t,r,e){var a=e(40810),n=e(1569),o=e(72878),i=e(87038),s=e(38511),l=o(1..toString);n.Uint8Array&&a({target:"Uint8Array",proto:!0},{toHex:function(){i(this),s(this.buffer);for(var t="",r=0,e=this.length;r<e;r++){var a=l(this[r],16);t+=1===a.length?"0"+a:a}return t}})},54835:function(t,r,e){var a=e(9065),n=e(50778),o=e(57243);let i,s=t=>t;class l extends o.oi{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return(0,o.dy)(i||(i=s`<span class="shadow"></span>`))}}let c;const d=(0,o.iv)(c||(c=(t=>t)`.shadow,.shadow::after,.shadow::before,:host{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::after,.shadow::before{content:"";transition-property:box-shadow,opacity;--_level:var(--md-elevation-level, 0);--_shadow-color:var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}`));let u=class extends l{};u.styles=[d],u=(0,a.__decorate)([(0,n.Mo)("md-elevation")],u)},57618:function(t,r,e){var a=e(9065),n=e(50778),o=(e(63721),e(71695),e(47021),e(57243)),i=e(19799);const s=["focusin","focusout","pointerdown"];class l extends o.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new i.J(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){var r,e;if(!t[c]){switch(t.type){default:return;case"focusin":this.visible=null!==(r=null===(e=this.control)||void 0===e?void 0:e.matches(":focus-visible"))&&void 0!==r&&r;break;case"focusout":case"pointerdown":this.visible=!1}t[c]=!0}}onControlChange(t,r){if(!o.sk)for(const e of s)null==t||t.removeEventListener(e,this),null==r||r.addEventListener(e,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}(0,a.__decorate)([(0,n.Cb)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const c=Symbol("handledByFocusRing");let d;const u=(0,o.iv)(d||(d=(t=>t)`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`));let h=class extends l{};h.styles=[u],h=(0,a.__decorate)([(0,n.Mo)("md-focus-ring")],h)},13823:function(t,r,e){e.d(r,{T:()=>c});e(63721),e(71695),e(19134),e(92519),e(42179),e(89256),e(24931),e(88463),e(57449),e(19814),e(97003),e(47021);var a=e(57243);e(19083),e(61006);const n=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],o=n.map(s);function i(t){return o.includes(t)}function s(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function c(t){var r;if(a.sk)return t;class e extends t{constructor(){super(...arguments),this[r]=new Set}attributeChangedCallback(t,r,e){if(!i(t))return void super.attributeChangedCallback(t,r,e);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const a=u(t);null===e?delete this.dataset[a]:this.dataset[a]=e,this.requestUpdate(u(t),r)}getAttribute(t){return i(t)?super.getAttribute(d(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),i(t)&&(super.removeAttribute(d(t)),this.requestUpdate())}}return r=l,function(t){for(const r of n){const e=s(r),a=d(e),n=u(e);t.createProperty(r,{attribute:e,noAccessor:!0}),t.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(t.prototype,r,{configurable:!0,enumerable:!0,get(){var t;return null!==(t=this.dataset[n])&&void 0!==t?t:null},set(t){var e;const a=null!==(e=this.dataset[n])&&void 0!==e?e:null;t!==a&&(null===t?delete this.dataset[n]:this.dataset[n]=t,this.requestUpdate(r,a))}})}}(e),e}function d(t){return`data-${t}`}function u(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}},79679:function(t,r,e){function a(t,r){!r.bubbles||t.shadowRoot&&!r.composed||r.stopPropagation();const e=Reflect.construct(r.constructor,[r.type,r]),a=t.dispatchEvent(e);return a||r.preventDefault(),a}e.d(r,{e:()=>a})},61073:function(t,r,e){e.d(r,{N:()=>o,b:()=>a});e(67351),e(63721);const a=Symbol("internals"),n=Symbol("privateInternals");function o(t){return class extends t{get[a](){return this[n]||(this[n]=this.attachInternals()),this[n]}}}},19484:function(t,r,e){e.d(r,{$u:()=>i,hz:()=>l});e(22152),e(63721),e(52247);var a=e(9065),n=e(50778),o=e(61073);const i=Symbol("getFormValue"),s=Symbol("getFormState");function l(t){class r extends t{get form(){return this[o.b].form}get labels(){return this[o.b].labels}get name(){var t;return null!==(t=this.getAttribute("name"))&&void 0!==t?t:""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,r,e){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,r,e);else{const e="disabled"===t?null!==r:r;this.requestUpdate(t,e)}}requestUpdate(t,r,e){super.requestUpdate(t,r,e),this[o.b].setFormValue(this[i](),this[s]())}[i](){throw new Error("Implement [getFormValue]")}[s](){return this[i]()}formDisabledCallback(t){this.disabled=t}}return r.formAssociated=!0,(0,a.__decorate)([(0,n.Cb)({noAccessor:!0})],r.prototype,"name",null),(0,a.__decorate)([(0,n.Cb)({type:Boolean,noAccessor:!0})],r.prototype,"disabled",null),r}},94763:function(t,r,e){e.d(r,{p:()=>o});var a=e(34151),n=e(13809);function o(t,r,e){const o=(0,n.j)(t,r,e)/7;return(0,a.u)(null==e?void 0:e.roundingMethod)(o)}},92903:function(t,r,e){e.d(r,{XM:()=>a.XM,Xe:()=>a.Xe,pX:()=>a.pX});var a=e(45779)},79840:function(t,r,e){e.d(r,{i0:()=>i,dy:()=>c});e(52247),e(71695),e(92745),e(52805),e(9359),e(48136),e(47021);var a=e(2841);const n=Symbol.for(""),o=t=>{if((null==t?void 0:t.r)===n)return null==t?void 0:t._$litStatic$},i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:n}),s=new Map,l=t=>(r,...e)=>{const a=e.length;let n,i;const l=[],c=[];let d,u=0,h=!1;for(;u<a;){for(d=r[u];u<a&&void 0!==(i=e[u],n=o(i));)d+=n+r[++u],h=!0;u!==a&&c.push(i),l.push(d),u++}if(u===a&&l.push(r[a]),h){const t=l.join("$$lit$$");void 0===(r=s.get(t))&&(l.raw=l,s.set(t,r=l)),e=c}return t(r,...e)},c=l(a.dy);l(a.YP)}}]); //# sourceMappingURL=26635.4dc5211e48cb1151.js.map