UNPKG

iobroker.lovelace

Version:

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

17 lines 22.9 kB
/*! For license information please see 67748.f32a7b7bc76f2b59.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[67748],{12451:function(t,e,i){i.d(e,{O:function(){return s},i:function(){return r.is}});var n=i(5124),r=i(12130);class s extends n.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},12130:function(t,e,i){i.d(e,{SE:function(){return c},U9:function(){return l},hP:function(){return n},is:function(){return r}});i(44114);const n=t=>t.nodeType===Node.ELEMENT_NODE;function r(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let s=!1;const o=()=>{},a={get passive(){return s=!0,!1}};document.addEventListener("x",o,a),document.removeEventListener("x",o);const l=(t=window.document)=>{let e=t.activeElement;const i=[];if(!e)return i;for(;e&&(i.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return i},c=t=>{const e=l();if(!e.length)return!1;const i=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let r=[];const s=t=>{r=t.composedPath()};return document.body.addEventListener("check-if-focused",s),i.dispatchEvent(n),document.body.removeEventListener("check-if-focused",s),-1!==r.indexOf(t)}},65722:function(t,e,i){i.d(e,{A:function(){return n}});i(89463),i(66412),i(16280),i(3362),i(62953);function n(t){var e,i,n,s=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,n=Symbol.iterator);s--;){if(i&&null!=(e=t[i]))return e.call(t);if(n&&null!=(e=t[n]))return new r(e.call(t));i="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function r(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 r=function(t){this.s=t,this.n=t.next},r.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 r(t)}},29344:function(t,e,i){i.a(t,async function(t,n){try{i.d(e,{A:function(){return R}});i(27495),i(62953);var r=i(5124),s=i(67576),o=i(6412),a=i(63672),l=i(34514),c=i(40991),d=i(92070),h=i(41268),u=i(9395),p=i(62676),m=i(15477),f=i(31896),v=i(17060),g=i(19978),y=t([v]);v=(y.then?(await y)():y)[0];let k,C,$,E=t=>t;var b=Object.defineProperty,w=Object.getOwnPropertyDescriptor,x=(t,e,i,n)=>{for(var r,s=n>1?void 0:n?w(e,i):e,o=t.length-1;o>=0;o--)(r=t[o])&&(s=(n?r(e,i,s):r(s))||s);return n&&s&&b(e,i,s),s};let R=class extends p.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){var t;return null!==(t=this._value)&&void 0!==t?t:"on"}set value(t){this._value=t}handleSizeChange(){(0,c.b)(this.localName,this.size)}get checked(){var t;return this.valueHasChanged?Boolean(this._checked):null!==(t=this._checked)&&void 0!==t?t:this.defaultChecked}set checked(t){this._checked=Boolean(t),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}handleKeyDown(t){const e="rtl"===this.localize.dir();"ArrowLeft"===t.key&&(t.preventDefault(),this.checked=e,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))})),"ArrowRight"===t.key&&(t.preventDefault(),this.checked=!e,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}))}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("checked")||t.has("defaultChecked"))&&this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked),this.customStates.set("checked",this.checked),this.updateValidity()}handleDisabledChange(){this.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}setValue(t,e){this.checked?this.internals.setFormValue(null!=t?t:"on",e):this.internals.setFormValue(null,null)}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}render(){const t=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,e=!!this.hint||!!t;return(0,r.qy)(k||(k=E` <label part="base" class="${0}"> <input class="input" type="checkbox" title="${0}" name="${0}" value="${0}" .checked="${0}" .disabled="${0}" .required="${0}" role="switch" aria-checked="${0}" aria-describedby="hint" @click="${0}" @keydown="${0}"> <span part="control" class="switch"> <span part="thumb" class="thumb"></span> </span> <slot part="label" class="label"></slot> </label> <slot id="hint" name="hint" part="hint" class="${0}" aria-hidden="${0}">${0}</slot> `),(0,o.H)({checked:this.checked,disabled:this.disabled}),this.title,(0,a.J)(this.name),(0,a.J)(this.value),(0,l.V)(this.checked),this.disabled,this.required,this.checked?"true":"false",this.handleClick,this.handleKeyDown,(0,o.H)({"has-slotted":e}),e?"false":"true",this.hint)}constructor(){var t;super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.localize=new v.c(this),this.title="",this.name=null,this._value=null!==(t=this.getAttribute("value"))&&void 0!==t?t:null,this.size="m",this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint="",this.withHint=!1}};R.shadowRootOptions=Object.assign(Object.assign({},p.q.shadowRootOptions),{},{delegatesFocus:!0}),R.css=[m.A,f.A,g.A],x([(0,s.P)('input[type="checkbox"]')],R.prototype,"input",2),x([(0,s.MZ)()],R.prototype,"title",2),x([(0,s.MZ)({reflect:!0})],R.prototype,"name",2),x([(0,s.MZ)({reflect:!0})],R.prototype,"value",1),x([(0,s.MZ)({reflect:!0})],R.prototype,"size",2),x([(0,u.w)("size")],R.prototype,"handleSizeChange",1),x([(0,s.MZ)({type:Boolean})],R.prototype,"disabled",2),x([(0,s.MZ)({type:Boolean,attribute:!1})],R.prototype,"checked",1),x([(0,s.MZ)({type:Boolean,attribute:"checked",reflect:!0})],R.prototype,"defaultChecked",2),x([(0,s.MZ)({type:Boolean,reflect:!0})],R.prototype,"required",2),x([(0,s.MZ)({attribute:"hint"})],R.prototype,"hint",2),x([(0,s.MZ)({attribute:"with-hint",type:Boolean})],R.prototype,"withHint",2),x([(0,u.w)(["checked","defaultChecked"])],R.prototype,"handleStateChange",1),x([(0,u.w)("disabled",{waitUntilFirstUpdate:!0})],R.prototype,"handleDisabledChange",1),R=x([(0,s.EM)("wa-switch")],R),null===(C=($=R).disableWarning)||void 0===C||C.call($,"change-in-update"),n()}catch(k){n(k)}})},19978:function(t,e,i){i.d(e,{A:function(){return r}});let n;var r=(0,i(5124).AH)(n||(n=(t=>t)`:host{--height:var(--wa-form-control-toggle-size);--width:calc(var(--height) * 1.75);--thumb-size:0.75em;display:inline-flex;line-height:var(--wa-form-control-value-line-height)}label{position:relative;display:flex;align-items:center;font:inherit;color:var(--wa-form-control-value-color);vertical-align:middle;cursor:pointer}.switch{flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color);border-radius:var(--height);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);transition-property:translate,background,border-color,box-shadow;transition-duration:var(--wa-transition-normal);transition-timing-function:var(--wa-transition-easing)}.switch .thumb{aspect-ratio:1/1;width:var(--thumb-size);height:var(--thumb-size);background-color:var(--wa-form-control-border-color);border-radius:50%;translate:calc((var(--width) - var(--height))/ -2);transition:inherit}.switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ 2)}.input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}label:not(.disabled) .input:focus-visible~.switch .thumb{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.checked .switch{background-color:var(--wa-form-control-activated-color);border-color:var(--wa-form-control-activated-color)}.checked .switch .thumb{background-color:var(--wa-color-surface-default);translate:calc((var(--width) - var(--height))/ 2)}.checked .switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ -2)}label:has(> :disabled){opacity:.5;cursor:not-allowed}[part~=label]{display:inline-block;line-height:var(--height);margin-inline-start:.5em;user-select:none;-webkit-user-select:none}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}@media (forced-colors:active){:checked+.switch .thumb,:checked:enabled+.switch:hover .thumb{background-color:ButtonText}}`))},27525:function(t,e,i){i.d(e,{A6:function(){return o},Ex:function(){return l},RN:function(){return h},RZ:function(){return r},c7:function(){return a},cG:function(){return u},u9:function(){return d},ub:function(){return s},wm:function(){return c},zT:function(){return n}});i(62953);function n(t,e=p){const i=a(t,e);return i&&(i.tabIndex=0,i.focus()),i}function r(t,e=p){const i=l(t,e);return i&&(i.tabIndex=0,i.focus()),i}function s(t,e=p){const i=o(t,e);return i&&(i.item.tabIndex=-1),i}function o(t,e=p){for(let i=0;i<t.length;i++){const n=t[i];if(0===n.tabIndex&&e(n))return{item:n,index:i}}return null}function a(t,e=p){for(const i of t)if(e(i))return i;return null}function l(t,e=p){for(let i=t.length-1;i>=0;i--){const n=t[i];if(e(n))return n}return null}function c(t,e,i=p,r=!0){if(e){const n=function(t,e,i=p,n=!0){for(let r=1;r<t.length;r++){const s=(r+e)%t.length;if(s<e&&!n)return null;const o=t[s];if(i(o))return o}return t[e]?t[e]:null}(t,e.index,i,r);return n&&(n.tabIndex=0,n.focus()),n}return n(t,i)}function d(t,e,i=p,n=!0){if(e){const r=function(t,e,i=p,n=!0){for(let r=1;r<t.length;r++){const s=(e-r+t.length)%t.length;if(s>e&&!n)return null;const o=t[s];if(i(o))return o}return t[e]?t[e]:null}(t,e.index,i,n);return r&&(r.tabIndex=0,r.focus()),r}return r(t,i)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(t){return!t.disabled}},82553:function(t,e,i){i.d(e,{R:function(){return r}});let n;const r=(0,i(5124).AH)(n||(n=(t=>t)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`))},58168:function(t,e,i){i.d(e,{n:function(){return _}});i(62953);var n=i(40445),r=(i(75275),i(67576)),s=(i(27495),i(5124));let o,a=t=>t;class l extends s.WF{render(){return(0,s.qy)(o||(o=a` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${0}"></slot> <slot class="default-slot" @slotchange="${0}"></slot> <slot name="headline" @slotchange="${0}"></slot> <slot name="supporting-text" @slotchange="${0}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){let t=!1,e=0;for(const i of this.textSlots)if(c(i)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function c(t){for(const i of t.assignedNodes({flatten:!0})){var e;const t=i.nodeType===Node.ELEMENT_NODE,n=i.nodeType===Node.TEXT_NODE&&(null===(e=i.textContent)||void 0===e?void 0:e.match(/\S/));if(t||n)return!0}return!1}(0,n.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],l.prototype,"multiline",void 0),(0,n.Cg)([(0,r.YG)(".text slot")],l.prototype,"textSlots",void 0);let d;const h=(0,s.AH)(d||(d=(t=>t)`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`));let u=class extends l{};u.styles=[h],u=(0,n.Cg)([(0,r.EM)("md-item")],u);i(71970);var p=i(6412),m=i(7872),f=i(1024),v=i(27525);let g,y,b,w,x,k,C,$,E=t=>t;const R=(0,f.n)(s.WF);class _ extends R{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,s.qy)(g||(g=E` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=(0,m.eu)(y||(y=E`a`));break;case"button":i=(0,m.eu)(b||(b=E`button`));break;default:i=(0,m.eu)(w||(w=E`li`))}const n="text"!==this.type,r=e&&this.target?this.target:s.s6;return(0,m.qy)(x||(x=E` <${0} id="item" tabindex="${0}" ?disabled=${0} role="listitem" aria-selected=${0} aria-checked=${0} aria-expanded=${0} aria-haspopup=${0} class="list-item ${0}" href=${0} target=${0} @focus=${0} >${0}</${0}> `),i,this.isDisabled||!n?-1:0,this.isDisabled,this.ariaSelected||s.s6,this.ariaChecked||s.s6,this.ariaExpanded||s.s6,this.ariaHasPopup||s.s6,(0,p.H)(this.getRenderClasses()),this.href||s.s6,r,this.onFocus,t,i)}renderRipple(){return"text"===this.type?s.s6:(0,s.qy)(k||(k=E` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?s.s6:(0,s.qy)(C||(C=E` <md-focus-ring @visibility-changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,s.qy)($||($=E` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,v.cG)())}focus(){var t;null===(t=this.listItemRoot)||void 0===t||t.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}_.shadowRootOptions=Object.assign(Object.assign({},s.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,n.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],_.prototype,"disabled",void 0),(0,n.Cg)([(0,r.MZ)({reflect:!0})],_.prototype,"type",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],_.prototype,"isListItem",void 0),(0,n.Cg)([(0,r.MZ)()],_.prototype,"href",void 0),(0,n.Cg)([(0,r.MZ)()],_.prototype,"target",void 0),(0,n.Cg)([(0,r.P)(".list-item")],_.prototype,"listItemRoot",void 0)},95192:function(t,e,i){i.d(e,{IU:function(){return c},Jt:function(){return a},Yd:function(){return n},hZ:function(){return l},y$:function(){return r}});i(44114),i(18111),i(7588),i(61701),i(3362),i(62953);function n(t){return new Promise((e,i)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>i(t.error)})}function r(t,e){let i;return(r,s)=>(()=>{if(i)return i;const r=indexedDB.open(t);return r.onupgradeneeded=()=>r.result.createObjectStore(e),i=n(r),i.then(t=>{t.onclose=()=>i=void 0},()=>{}),i})().then(t=>s(t.transaction(e,r).objectStore(e)))}let s;function o(){return s||(s=r("keyval-store","keyval")),s}function a(t,e=o()){return e("readonly",e=>n(e.get(t)))}function l(t,e,i=o()){return i("readwrite",i=>(i.put(e,t),n(i.transaction)))}function c(t=o()){return t("readwrite",t=>(t.clear(),n(t.transaction)))}},91450:function(t,e,i){i.d(e,{T:function(){return u}});i(18111),i(20116),i(3362),i(62953);var n=i(5055),r=i(63937),s=i(37540);i(65722);class o{disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}constructor(t){this.G=t}}class a{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}constructor(){this.Y=void 0,this.Z=void 0}}var l=i(42017);const c=t=>!(0,r.sO)(t)&&"function"==typeof t.then,d=1073741823;class h extends s.Kq{render(...t){var e;return null!==(e=t.find(t=>!c(t)))&&void 0!==e?e:n.c0}update(t,e){const i=this._$Cbt;let r=i.length;this._$Cbt=e;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let n=0;n<e.length&&!(n>this._$Cwt);n++){const t=e[n];if(!c(t))return this._$Cwt=n,t;n<r&&t===i[n]||(this._$Cwt=d,r=0,Promise.resolve(t).then(async e=>{for(;o.get();)await o.get();const i=s.deref();if(void 0!==i){const n=i._$Cbt.indexOf(t);n>-1&&n<i._$Cwt&&(i._$Cwt=n,i.setValue(e))}}))}return n.c0}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}constructor(){super(...arguments),this._$Cwt=d,this._$Cbt=[],this._$CK=new o(this),this._$CX=new a}}const u=(0,l.u$)(h)}}]);