UNPKG

iobroker.lovelace

Version:

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

3 lines 35.1 kB
/*! For license information please see 17284.8c3c4c75d7ebee53.js.LICENSE.txt */ "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["17284"],{88618:function(t,e,i){i.d(e,{Wg:()=>d,qN:()=>s.q});i(71695),i(47021);var r,n,o=i(9065),a=i(50778),s=i(11911);const c=null!==(n=null===(r=window.ShadyDOM)||void 0===r?void 0:r.inUse)&&void 0!==n&&n;class d extends s.H{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||c)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}d.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,o.__decorate)([(0,a.Cb)({type:Boolean})],d.prototype,"disabled",void 0)},65703:function(t,e,i){i.d(e,{K:()=>b});i(71695),i(81804),i(22139),i(47021);var r=i(9065),n=(i(16060),i(78611)),o=i(91532),a=i(57243),s=i(50778),c=i(35359);let d,l,h,p,m,u,g,f,v,_,y=t=>t;class b extends a.oi{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new o.A((()=>(this.shouldRenderRipple=!0,this.ripple))),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:t=>{const e=t.type;this.onDown("mousedown"===e?"mouseup":"touchend",t)}}]}get text(){const t=this.textContent;return t?t.trim():""}render(){const t=this.renderText(),e=this.graphic?this.renderGraphic():(0,a.dy)(d||(d=y``)),i=this.hasMeta?this.renderMeta():(0,a.dy)(l||(l=y``));return(0,a.dy)(h||(h=y` ${0} ${0} ${0} ${0}`),this.renderRipple(),e,t,i)}renderRipple(){return this.shouldRenderRipple?(0,a.dy)(p||(p=y` <mwc-ripple .activated="${0}"> </mwc-ripple>`),this.activated):this.activated?(0,a.dy)(m||(m=y`<div class="fake-activated-ripple"></div>`)):""}renderGraphic(){const t={multi:this.multipleGraphics};return(0,a.dy)(u||(u=y` <span class="mdc-deprecated-list-item__graphic material-icons ${0}"> <slot name="graphic"></slot> </span>`),(0,c.$)(t))}renderMeta(){return(0,a.dy)(g||(g=y` <span class="mdc-deprecated-list-item__meta material-icons"> <slot name="meta"></slot> </span>`))}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return(0,a.dy)(f||(f=y` <span class="mdc-deprecated-list-item__text"> ${0} </span>`),t)}renderSingleLine(){return(0,a.dy)(v||(v=y`<slot></slot>`))}renderTwoline(){return(0,a.dy)(_||(_=y` <span class="mdc-deprecated-list-item__primary-text"> <slot></slot> </span> <span class="mdc-deprecated-list-item__secondary-text"> <slot name="secondary"></slot> </span> `))}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(t,e){const i=()=>{window.removeEventListener(t,i),this.rippleHandlers.endPress()};window.addEventListener(t,i),this.rippleHandlers.startPress(e)}fireRequestSelected(t,e){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:e,selected:t}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const t of this.listeners)for(const e of t.eventNames)t.target.addEventListener(e,t.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const t of this.listeners)for(const e of t.eventNames)t.target.removeEventListener(e,t.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const t=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(t)}}(0,r.__decorate)([(0,s.IO)("slot")],b.prototype,"slotElement",void 0),(0,r.__decorate)([(0,s.GC)("mwc-ripple")],b.prototype,"ripple",void 0),(0,r.__decorate)([(0,s.Cb)({type:String})],b.prototype,"value",void 0),(0,r.__decorate)([(0,s.Cb)({type:String,reflect:!0})],b.prototype,"group",void 0),(0,r.__decorate)([(0,s.Cb)({type:Number,reflect:!0})],b.prototype,"tabindex",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0}),(0,n.P)((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],b.prototype,"disabled",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],b.prototype,"twoline",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],b.prototype,"activated",void 0),(0,r.__decorate)([(0,s.Cb)({type:String,reflect:!0})],b.prototype,"graphic",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean})],b.prototype,"multipleGraphics",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean})],b.prototype,"hasMeta",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0}),(0,n.P)((function(t){t?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],b.prototype,"noninteractive",void 0),(0,r.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0}),(0,n.P)((function(t){const e=this.getAttribute("role"),i="gridcell"===e||"option"===e||"row"===e||"tab"===e;i&&t?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(t,"property")}))],b.prototype,"selected",void 0),(0,r.__decorate)([(0,s.SB)()],b.prototype,"shouldRenderRipple",void 0),(0,r.__decorate)([(0,s.SB)()],b.prototype,"_managingList",void 0)},46289:function(t,e,i){i.d(e,{W:()=>n});let r;const n=(0,i(57243).iv)(r||(r=(t=>t)`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding,16px);padding-right:var(--mdc-list-side-padding,16px);outline:0;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}:host:focus{outline:0}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary,#6200ee);--mdc-ripple-color:var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:.12;opacity:var(--mdc-ripple-activated-opacity, .12);background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size,24px);height:var(--mdc-list-item-meta-size,24px);margin-left:auto;margin-right:0;color:rgba(0,0,0,.38);color:var(--mdc-theme-text-hint-on-background,rgba(0,0,0,.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size,24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px)!important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit)}.mdc-deprecated-list-item__meta[dir=rtl],[dir=rtl] .mdc-deprecated-list-item__meta{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface,#000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0,0,0,.38);color:var(--mdc-theme-text-icon-on-background,rgba(0,0,0,.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size,40px);height:var(--mdc-list-item-graphic-size,40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size,40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px)!important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin,16px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic{margin-left:var(--mdc-list-item-graphic-margin,16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size,24px);height:var(--mdc-list-item-graphic-size,24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin,32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size,24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px)!important}:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic{margin-left:var(--mdc-list-item-graphic-margin,32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=large]:not([twoLine])),:host([graphic=medium]:not([twoLine])){height:72px}:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size,56px);height:var(--mdc-list-item-graphic-size,56px)}:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size,56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px)!important}:host([graphic=large]){padding-left:0px}`))},87319:function(t,e,i){var r=i(9065),n=i(50778),o=i(65703),a=i(46289);let s=class extends o.K{};s.styles=[a.W],s=(0,r.__decorate)([(0,n.Mo)("mwc-list-item")],s)},78344:function(t){var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},87265:function(t,e,i){var r=i(61896),n=String,o=TypeError;t.exports=function(t){if(void 0===t||r(t))return t;throw new o(n(t)+" is not an object or undefined")}},87038:function(t,e,i){var r=i(59069),n=TypeError;t.exports=function(t){if("Uint8Array"===r(t))return t;throw new n("Argument is not an Uint8Array")}},17743:function(t,e,i){var r=i(13053);t.exports=function(t,e,i){for(var n=0,o=arguments.length>2?i:r(e),a=new t(o);o>n;)a[n]=e[n++];return a}},57145:function(t,e,i){var r=i(31269),n=i(72878),o=i(25091),a=i(12360),s=i(70273),c=i(13053),d=i(72309),l=i(17743),h=Array,p=n([].push);t.exports=function(t,e,i,n){for(var m,u,g,f=a(t),v=o(f),_=r(e,i),y=d(null),b=c(v),w=0;b>w;w++)g=v[w],(u=s(_(g,w,f)))in y?p(y[u],g):y[u]=[g];if(n&&(m=n(f))!==h)for(u in y)y[u]=l(m,y[u]);return y}},15419:function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=e+"+/",r=e+"-_",n=function(t){for(var e={},i=0;i<64;i++)e[t.charAt(i)]=i;return e};t.exports={i2c:i,c2i:n(i),i2cUrl:r,c2iUrl:n(r)}},93474:function(t){var e=TypeError;t.exports=function(t){var i=t&&t.alphabet;if(void 0===i||"base64"===i||"base64url"===i)return i||"base64";throw new e("Incorrect `alphabet` option")}},96526:function(t,e,i){var r=i(1569),n=i(29660),o=i(72878),a=i(72616),s=i(36888).trim,c=i(91430),d=o("".charAt),l=r.parseFloat,h=r.Symbol,p=h&&h.iterator,m=1/l(c+"-0")!=-1/0||p&&!n((function(){l(Object(p))}));t.exports=m?function(t){var e=s(a(t)),i=l(e);return 0===i&&"-"===d(e,0)?-0:i}:l},37588:function(t,e,i){var r=i(68533).PROPER,n=i(29660),o=i(91430);t.exports=function(t){return n((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},47057:function(t,e,i){var r=i(1569),n=i(72878),o=i(87265),a=i(78344),s=i(39129),c=i(15419),d=i(93474),l=i(38511),h=c.c2i,p=c.c2iUrl,m=r.SyntaxError,u=r.TypeError,g=n("".charAt),f=function(t,e){for(var i=t.length;e<i;e++){var r=g(t,e);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return e},v=function(t,e,i){var r=t.length;r<4&&(t+=2===r?"AA":"A");var n=(e[g(t,0)]<<18)+(e[g(t,1)]<<12)+(e[g(t,2)]<<6)+e[g(t,3)],o=[n>>16&255,n>>8&255,255&n];if(2===r){if(i&&0!==o[1])throw new m("Extra bits");return[o[0]]}if(3===r){if(i&&0!==o[2])throw new m("Extra bits");return[o[0],o[1]]}return o},_=function(t,e,i){for(var r=e.length,n=0;n<r;n++)t[i+n]=e[n];return i+r};t.exports=function(t,e,i,r){a(t),o(e);var n="base64"===d(e)?h:p,c=e?e.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new u("Incorrect `lastChunkHandling` option");i&&l(i.buffer);var y=i||[],b=0,w=0,x="",$=0;if(r)for(;;){if(($=f(t,$))===t.length){if(x.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new m("Missing padding");if(1===x.length)throw new m("Malformed padding: exactly one additional character");b=_(y,v(x,n,!1),b)}w=t.length;break}var C=g(t,$);if(++$,"="===C){if(x.length<2)throw new m("Padding is too early");if($=f(t,$),2===x.length){if($===t.length){if("stop-before-partial"===c)break;throw new m("Malformed padding: only one =")}"="===g(t,$)&&(++$,$=f(t,$))}if($<t.length)throw new m("Unexpected character after padding");b=_(y,v(x,n,"strict"===c),b),w=t.length;break}if(!s(n,C))throw new m("Unexpected character");var A=r-b;if(1===A&&2===x.length||2===A&&3===x.length)break;if(4===(x+=C).length&&(b=_(y,v(x,n,!1),b),x="",w=$,b===r))break}return{bytes:y,read:w,written:b}}},35303:function(t,e,i){var r=i(1569),n=i(72878),o=r.Uint8Array,a=r.SyntaxError,s=r.parseInt,c=Math.min,d=/[^\da-f]/i,l=n(d.exec),h=n("".slice);t.exports=function(t,e){var i=t.length;if(i%2!=0)throw new a("String should be an even number of characters");for(var r=e?c(e.length,i/2):i/2,n=e||new o(r),p=0,m=0;m<r;){var u=h(t,p,p+=2);if(l(d,u))throw new a("String should only contain hex characters");n[m++]=s(u,16)}return{bytes:n,read:p}}},68107:function(t,e,i){var r=i(40810),n=i(73994),o=i(63983),a=i(71998),s=i(4576);r({target:"Iterator",proto:!0,real:!0},{every:function(t){a(this),o(t);var e=s(this),i=0;return!n(e,(function(e,r){if(!t(e,i++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},95078:function(t,e,i){var r=i(40810),n=i(96526);r({global:!0,forced:parseFloat!==n},{parseFloat:n})},81804:function(t,e,i){var r=i(40810),n=i(36888).trim;r({target:"String",proto:!0,forced:i(37588)("trim")},{trim:function(){return n(this)}})},92789:function(t,e,i){i(13492)("Uint8",(function(t){return function(e,i,r){return t(this,e,i,r)}}))},22139:function(t,e,i){var r=i(40810),n=i(57145),o=i(35709);r({target:"Array",proto:!0},{group:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),o("group")},21917:function(t,e,i){var r=i(40810),n=i(1569),o=i(47057),a=i(87038);n.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromBase64:function(t){a(this);var e=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written}}})},56193:function(t,e,i){var r=i(40810),n=i(1569),o=i(78344),a=i(87038),s=i(38511),c=i(35303);n.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),o(t),s(this.buffer);var e=c(t,this).read;return{read:e,written:e/2}}})},25020:function(t,e,i){var r=i(40810),n=i(1569),o=i(72878),a=i(87265),s=i(87038),c=i(38511),d=i(15419),l=i(93474),h=d.i2c,p=d.i2cUrl,m=o("".charAt);n.Uint8Array&&r({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),e=arguments.length?a(arguments[0]):void 0,i="base64"===l(e)?h:p,r=!!e&&!!e.omitPadding;c(this.buffer);for(var n,o="",d=0,u=t.length,g=function(t){return m(i,n>>6*t&63)};d+2<u;d+=3)n=(t[d]<<16)+(t[d+1]<<8)+t[d+2],o+=g(3)+g(2)+g(1)+g(0);return d+2===u?(n=(t[d]<<16)+(t[d+1]<<8),o+=g(3)+g(2)+g(1)+(r?"":"=")):d+1===u&&(n=t[d]<<16,o+=g(3)+g(2)+(r?"":"==")),o}})},86913:function(t,e,i){var r=i(40810),n=i(1569),o=i(72878),a=i(87038),s=i(38511),c=o(1..toString);n.Uint8Array&&r({target:"Uint8Array",proto:!0},{toHex:function(){a(this),s(this.buffer);for(var t="",e=0,i=this.length;e<i;e++){var r=c(this[e],16);t+=1===r.length?"0"+r:r}return t}})},14503:function(t,e,i){i.d(e,{Z:()=>r});i(63721),i(88230),i(52247),i(71695),i(40251),i(47021);function r(t){var e,i,r,o=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(i&&null!=(e=t[i]))return e.call(t);if(r&&null!=(e=t[r]))return new n(e.call(t));i="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function n(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return n=function(t){this.s=t,this.n=t.next},n.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var i=this.s.return;return void 0===i?Promise.resolve({value:t,done:!0}):e(i.apply(this.s,arguments))},throw:function(t){var i=this.s.return;return void 0===i?Promise.reject(t):e(i.apply(this.s,arguments))}},new n(t)}},48734:function(t,e,i){i.a(t,(async function(t,r){try{i.d(e,{P5:()=>m,Ve:()=>g});var n=i(16485),o=(i(71695),i(9359),i(70104),i(19423),i(19134),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(97003),i(47021),t([n]));n=(o.then?(await o)():o)[0];const s=new Set,c=new Map;let d,l="ltr",h="en";const p="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(p){const f=new MutationObserver(u);l=document.documentElement.dir||"ltr",h=document.documentElement.lang||navigator.language,f.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function m(...t){t.map((t=>{const e=t.$code.toLowerCase();c.has(e)?c.set(e,Object.assign(Object.assign({},c.get(e)),t)):c.set(e,t),d||(d=t)})),u()}function u(){p&&(l=document.documentElement.dir||"ltr",h=document.documentElement.lang||navigator.language),[...s.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}class g{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){s.add(this.host)}hostDisconnected(){s.delete(this.host)}dir(){return`${this.host.dir||l}`.toLowerCase()}lang(){return`${this.host.lang||h}`.toLowerCase()}getTranslationData(t){var e,i;const r=new Intl.Locale(t.replace(/_/g,"-")),n=null==r?void 0:r.language.toLowerCase(),o=null!==(i=null===(e=null==r?void 0:r.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:r,language:n,region:o,primary:c.get(`${n}-${o}`),secondary:c.get(n)}}exists(t,e){var i;const{primary:r,secondary:n}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(r&&r[t]||n&&n[t]||e.includeFallback&&d&&d[t])}term(t,...e){const{primary:i,secondary:r}=this.getTranslationData(this.lang());let n;if(i&&i[t])n=i[t];else if(r&&r[t])n=r[t];else{if(!d||!d[t])return console.error(`No translation found for: ${String(t)}`),String(t);n=d[t]}return"function"==typeof n?n(...e):n}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}}r()}catch(a){r(a)}}))},31027:function(t,e,i){i.d(e,{P:()=>s});i(71695),i(9359),i(31526),i(46692),i(47021);var r,n=i(52812),o=i(57243),a=i(50778),s=class extends o.oi{constructor(){super(),(0,n.Ko)(this,r,!1),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([t,e])=>{this.constructor.define(t,e)}))}emit(t,e){const i=new CustomEvent(t,(0,n.ih)({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(i),i}static define(t,e=this,i={}){const r=customElements.get(t);if(!r){try{customElements.define(t,e,i)}catch(a){customElements.define(t,class extends e{},i)}return}let n=" (unknown version)",o=n;"version"in e&&e.version&&(n=" v"+e.version),"version"in r&&r.version&&(o=" v"+r.version),n&&o&&n===o||console.warn(`Attempted to register <${t}>${n}, but <${t}>${o} has already been registered.`)}attributeChangedCallback(t,e,i){(0,n.ac)(this,r)||(this.constructor.elementProperties.forEach(((t,e)=>{t.reflect&&null!=this[e]&&this.initialReflectedProperties.set(e,this[e])})),(0,n.qx)(this,r,!0)),super.attributeChangedCallback(t,e,i)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach(((e,i)=>{t.has(i)&&null==this[i]&&(this[i]=e)}))}};r=new WeakMap,s.version="2.20.1",s.dependencies={},(0,n.u2)([(0,a.Cb)()],s.prototype,"dir",2),(0,n.u2)([(0,a.Cb)()],s.prototype,"lang",2)},15073:function(t,e,i){i.a(t,(async function(t,r){try{i.d(e,{V:()=>s});var n=i(21262),o=i(48734),a=t([o,n]);[o,n]=a.then?(await a)():a;var s=class extends o.Ve{};(0,o.P5)(n.K),r()}catch(c){r(c)}}))},21262:function(t,e,i){i.a(t,(async function(t,r){try{i.d(e,{K:()=>s});var n=i(48734),o=t([n]);n=(o.then?(await o)():o)[0];var a={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};(0,n.P5)(a);var s=a;r()}catch(c){r(c)}}))},52812:function(t,e,i){i.d(e,{EZ:()=>m,Ko:()=>v,ac:()=>f,ih:()=>p,qx:()=>_,u2:()=>u});i(63721),i(52247),i(71695),i(40251),i(47021);var r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,l=t=>{throw TypeError(t)},h=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,p=(t,e)=>{for(var i in e||(e={}))c.call(e,i)&&h(t,i,e[i]);if(s)for(var i of s(e))d.call(e,i)&&h(t,i,e[i]);return t},m=(t,e)=>n(t,a(e)),u=(t,e,i,n)=>{for(var a,s=n>1?void 0:n?o(e,i):e,c=t.length-1;c>=0;c--)(a=t[c])&&(s=(n?a(e,i,s):a(s))||s);return n&&s&&r(e,i,s),s},g=(t,e,i)=>e.has(t)||l("Cannot "+i),f=(t,e,i)=>(g(t,e,"read from private field"),i?i.call(t):e.get(t)),v=(t,e,i)=>e.has(t)?l("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),_=(t,e,i,r)=>(g(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i)},81048:function(t,e,i){i.d(e,{N:()=>n});let r;var n=(0,i(57243).iv)(r||(r=(t=>t)`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`))},62212:function(t,e,i){i.d(e,{B:()=>o,_:()=>n});i(52247);var r=i(98330);const n=(t,e,i,n,o={unsubGrace:!0})=>{if(t[e])return t[e];let a,s,c=0,d=(0,r.M)();const l=()=>{if(!i)throw new Error("Collection does not support refresh");return i(t).then((t=>d.setState(t,!0)))},h=()=>l().catch((e=>{if(t.connected)throw e})),p=()=>{s=void 0,a&&a.then((t=>{t()})),d.clearState(),t.removeEventListener("ready",l),t.removeEventListener("disconnected",m)},m=()=>{s&&(clearTimeout(s),p())};return t[e]={get state(){return d.state},refresh:l,subscribe(e){c++,1===c&&(()=>{if(void 0!==s)return clearTimeout(s),void(s=void 0);n&&(a=n(t,d)),i&&(t.addEventListener("ready",h),h()),t.addEventListener("disconnected",m)})();const r=d.subscribe(e);return void 0!==d.state&&setTimeout((()=>e(d.state)),0),()=>{r(),c--,c||(o.unsubGrace?s=setTimeout(p,5e3):p())}}},t[e]},o=(t,e,i,r,o)=>n(r,t,e,i).subscribe(o)},98330:function(t,e,i){i.d(e,{M:()=>r});i(92745),i(19423),i(40251);const r=t=>{let e=[];function i(i,r){t=r?i:Object.assign(Object.assign({},t),i);let n=e;for(let e=0;e<n.length;e++)n[e](t)}return{get state(){return t},action(e){function r(t){i(t,!1)}return function(){let i=[t];for(let t=0;t<arguments.length;t++)i.push(arguments[t]);let n=e.apply(this,i);if(null!=n)return n instanceof Promise?n.then(r):r(n)}},setState:i,clearState(){t=void 0},subscribe(t){return e.push(t),()=>{!function(t){let i=[];for(let r=0;r<e.length;r++)e[r]===t?t=null:i.push(e[r]);e=i}(t)}}}}},27608:function(t,e,i){i.d(e,{MT:()=>n,RV:()=>r,U2:()=>s,ZH:()=>d,t8:()=>c});i(71695),i(92745),i(9359),i(31526),i(70104),i(40251),i(47021);function r(t){return new Promise(((e,i)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>i(t.error)}))}function n(t,e){const i=indexedDB.open(t);i.onupgradeneeded=()=>i.result.createObjectStore(e);const n=r(i);return(t,i)=>n.then((r=>i(r.transaction(e,t).objectStore(e))))}let o;function a(){return o||(o=n("keyval-store","keyval")),o}function s(t,e=a()){return e("readonly",(e=>r(e.get(t))))}function c(t,e,i=a()){return i("readwrite",(i=>(i.put(e,t),r(i.transaction))))}function d(t=a()){return t("readwrite",(t=>(t.clear(),r(t.transaction))))}},1714:function(t,e,i){i.d(e,{sR:()=>h});i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(47021);var r=i(53232),n=i(45779);const o=(t,e)=>{var i,r;const n=t._$AN;if(void 0===n)return!1;for(const a of n)null===(r=(i=a)._$AO)||void 0===r||r.call(i,e,!1),o(a,e);return!0},a=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},s=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),l(e)}};function c(t){void 0!==this._$AN?(a(this),this._$AM=t,s(this)):this._$AM=t}function d(t,e=!1,i=0){const r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(r))for(let s=i;s<r.length;s++)o(r[s],!1),a(r[s]);else null!=r&&(o(r,!1),a(r));else o(this,t)}const l=t=>{var e,i,r,o;t.type==n.pX.CHILD&&(null!==(e=(r=t)._$AP)&&void 0!==e||(r._$AP=d),null!==(i=(o=t)._$AQ)&&void 0!==i||(o._$AQ=c))};class h extends n.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),s(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),e&&(o(this,t),a(this))}setValue(t){if((0,r.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}},53232:function(t,e,i){i.d(e,{E_:()=>f,OR:()=>c,_Y:()=>l,dZ:()=>s,fk:()=>h,hN:()=>a,hl:()=>m,i9:()=>u,pt:()=>o,ws:()=>g});var r=i(2841);const{I:n}=r.Al,o=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,s=t=>{var e;return null!=(null===(e=null==t?void 0:t._$litType$)||void 0===e?void 0:e.h)},c=t=>void 0===t.strings,d=()=>document.createComment(""),l=(t,e,i)=>{var r;const o=t._$AA.parentNode,a=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(d(),a),r=o.insertBefore(d(),a);i=new n(e,r,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,s=n!==t;if(s){let e;null===(r=i._$AQ)||void 0===r||r.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==a||s){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,a),t=e}}}return i},h=(t,e,i=t)=>(t._$AI(e,i),t),p={},m=(t,e=p)=>t._$AH=e,u=t=>t._$AH,g=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const r=t._$AB.nextSibling;for(;i!==r;){const t=i.nextSibling;i.remove(),i=t}},f=t=>{t._$AR()}},94571:function(t,e,i){i.d(e,{C:()=>p});i(71695),i(9359),i(1331),i(40251),i(47021);var r=i(2841),n=i(53232),o=i(1714);i(14503);class a{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class s{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var c=i(45779);const d=t=>!(0,n.pt)(t)&&"function"==typeof t.then,l=1073741823;class h extends o.sR{constructor(){super(...arguments),this._$C_t=l,this._$Cwt=[],this._$Cq=new a(this),this._$CK=new s}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:r.Jb}update(t,e){const i=this._$Cwt;let n=i.length;this._$Cwt=e;const o=this._$Cq,a=this._$CK;this.isConnected||this.disconnected();for(let r=0;r<e.length&&!(r>this._$C_t);r++){const t=e[r];if(!d(t))return this._$C_t=r,t;r<n&&t===i[r]||(this._$C_t=l,n=0,Promise.resolve(t).then((async e=>{for(;a.get();)await a.get();const i=o.deref();if(void 0!==i){const r=i._$Cwt.indexOf(t);r>-1&&r<i._$C_t&&(i._$C_t=r,i.setValue(e))}})))}return r.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const p=(0,c.XM)(h)}}]); //# sourceMappingURL=17284.8c3c4c75d7ebee53.js.map