iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 21.6 kB
JavaScript
/*! For license information please see 45743.f0d4e58ba51b8fe1.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[45743],{35370:function(t,e,i){var o=i(26198);t.exports=function(t,e,i){for(var n=0,r=arguments.length>2?i:o(e),s=new t(r);r>n;)s[n]=e[n++];return s}},65722:function(t,e,i){i.d(e,{A:function(){return o}});i(89463),i(66412),i(16280),i(3362),i(62953);function o(t){var e,i,o,r=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,o=Symbol.iterator);r--;){if(i&&null!=(e=t[i]))return e.call(t);if(o&&null!=(e=t[o]))return new n(e.call(t));i="@@asyncIterator",o="@@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)}},93900:function(t,e,i){i.a(t,async function(t,e){try{i(3362),i(27495),i(62953);var o=i(5124),n=i(67576),r=i(6412),s=i(63672),a=i(17051),l=i(42462),c=i(28438),d=i(98779),h=i(27259),u=i(25877),p=i(31247),f=i(4444),v=i(92070),g=i(9395),b=i(717),w=i(17060),m=i(88496),y=i(91470),k=t([m,w]);[m,w]=k.then?(await k)():k;let x,A,O,P=t=>t;var $=Object.defineProperty,C=Object.getOwnPropertyDescriptor,_=(t,e,i,o)=>{for(var n,r=o>1?void 0:o?C(e,i):e,s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&$(e,i,r),r};let D=class extends b.A{firstUpdated(){this.open&&(this.addOpenListeners(),this.dialog.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(t){const e=new c.L({source:t});if(this.dispatchEvent(e),e.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.dialog,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.dialog,"hide"),this.open=!1,this.dialog.close(),(0,f.I7)(this);const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout(()=>i.focus()),this.dispatchEvent(new a.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,u.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this)}handleDialogCancel(t){t.preventDefault(),!this.dialog.classList.contains("hide")&&t.target===this.dialog&&(0,u.a0)(this)&&this.requestClose(this.dialog)}handleDialogClick(t){const e=t.target.closest('[data-dialog="close"]');e&&(t.stopPropagation(),this.requestClose(e))}async handleDialogPointerDown(t){t.target===this.dialog&&(this.lightDismiss?this.requestClose(this.dialog):await(0,h.Ud)(this.dialog,"pulse"))}handleOpenChange(){this.open&&!this.dialog.open?this.show():!this.open&&this.dialog.open&&(this.open=!0,this.requestClose(this.dialog))}async show(){const t=new d.k;this.dispatchEvent(t),t.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.dialog.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.dialog.focus()}),await(0,h.Ud)(this.dialog,"show"),this.dispatchEvent(new l.q))}render(){var t;const e=!this.withoutHeader,i=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return(0,o.qy)(x||(x=P` <dialog aria-labelledby="${0}" aria-describedby="${0}" part="dialog" class="${0}" ="${0}" ="${0}" ="${0}"> ${0} <div part="body" class="body"><slot></slot></div> ${0} </dialog> `),null!==(t=this.ariaLabelledby)&&void 0!==t?t:"title",(0,s.J)(this.ariaDescribedby),(0,r.H)({dialog:!0,open:this.open}),this.handleDialogCancel,this.handleDialogClick,this.handleDialogPointerDown,e?(0,o.qy)(A||(A=P` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${0} </slot> </h2> <div part="header-actions" class="header-actions"> <slot name="header-actions"></slot> <wa-button part="close-button" exportparts="base:close-button__base" class="close" appearance="plain" ="${0}"> <wa-icon name="xmark" label="${0}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `),this.label.length>0?this.label:String.fromCharCode(8203),t=>this.requestClose(t.target),this.localize.term("close")):"",i?(0,o.qy)(O||(O=P` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `)):"")}constructor(){super(...arguments),this.localize=new w.c(this),this.hasSlotController=new v.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!1,this.withFooter=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.requestClose(this.dialog))}}};D.css=y.A,_([(0,n.P)(".dialog")],D.prototype,"dialog",2),_([(0,n.MZ)({type:Boolean,reflect:!0})],D.prototype,"open",2),_([(0,n.MZ)({reflect:!0})],D.prototype,"label",2),_([(0,n.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],D.prototype,"withoutHeader",2),_([(0,n.MZ)({attribute:"light-dismiss",type:Boolean})],D.prototype,"lightDismiss",2),_([(0,n.MZ)({attribute:"aria-labelledby"})],D.prototype,"ariaLabelledby",2),_([(0,n.MZ)({attribute:"aria-describedby"})],D.prototype,"ariaDescribedby",2),_([(0,n.MZ)({attribute:"with-footer",type:Boolean})],D.prototype,"withFooter",2),_([(0,g.w)("open",{waitUntilFirstUpdate:!0})],D.prototype,"handleOpenChange",1),D=_([(0,n.EM)("wa-dialog")],D),o.S$||(document.addEventListener("click",t=>{const e=t.target.closest("[data-dialog]");if(e instanceof Element){const[t,i]=(0,p.v)(e.getAttribute("data-dialog")||"");if("open"===t&&null!=i&&i.length){const t=e.getRootNode().getElementById(i);"wa-dialog"===(null==t?void 0:t.localName)?t.open=!0:console.warn(`A dialog with an ID of "${i}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),e()}catch(x){e(x)}})},91470:function(t,e,i){i.d(e,{A:function(){return n}});let o;var n=(0,i(5124).AH)(o||(o=(t=>t)`:host{--width:31rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.dialog{display:flex;flex-direction:column;top:0;right:0;bottom:0;left:0;width:var(--width);max-width:calc(100% - var(--wa-space-2xl));max-height:calc(100% - var(--wa-space-2xl));color:inherit;background-color:var(--wa-color-surface-raised);border-radius:var(--wa-panel-border-radius);border:none;box-shadow:var(--wa-shadow-l);padding:0;margin:auto}.dialog.show{animation:show-dialog var(--show-duration) ease}.dialog.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.dialog.hide{animation:show-dialog var(--hide-duration) ease reverse}.dialog.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.dialog.pulse{animation:pulse 250ms ease}.dialog:focus{outline:0} screen and (max-width:420px){.dialog{max-height:80vh}}.open{display:flex;opacity:1}.header{flex:0 0 auto;display:flex;flex-wrap:nowrap;padding-inline-start:var(--spacing);padding-block-end:0;padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block))}.title{align-self:center;flex:1 1 auto;font-family:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);margin:0}.header-actions{align-self:start;display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:end;gap:var(--wa-space-2xs);padding-inline-start:var(--spacing)}.header-actions ::slotted(wa-button),.header-actions wa-button{flex:0 0 auto;display:flex;align-items:center}.body{flex:1 1 auto;display:block;padding:var(--spacing);overflow:auto;-webkit-overflow-scrolling:touch}.body:focus{outline:0}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:var(--wa-space-xs);justify-content:end;padding:var(--spacing);padding-block-start:0}.footer ::slotted(wa-button:not(:first-of-type)){margin-inline-start:var(--wa-spacing-xs)}.dialog::backdrop{background-color:var(--wa-color-overlay-modal,rgb(0 0 0 / .25));-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)} pulse{0%{scale:1}50%{scale:1.02}100%{scale:1}} show-dialog{from{opacity:0;scale:0.8}to{opacity:1;scale:1}} show-backdrop{from{opacity:0}to{opacity:1}} (forced-colors:active){.dialog{border:solid 1px #fff}}`))},68825:function(t,e,i){i(62953);var o=i(67576),n=i(9395),r=i(717);let s;var a=(0,i(5124).AH)(s||(s=(t=>t)`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){display:block;border-top:solid var(--width) var(--color);margin:var(--spacing) 0}:host([orientation=vertical]){display:inline-block;height:100%;border-inline-start:solid var(--width) var(--color);margin:0 var(--spacing);min-block-size:1lh}`)),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=(t,e,i,o)=>{for(var n,r=o>1?void 0:o?c(e,i):e,s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&l(e,i,r),r};let h=class extends r.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};h.css=a,d([(0,o.MZ)({reflect:!0})],h.prototype,"orientation",2),d([(0,n.w)("orientation")],h.prototype,"handleVerticalChange",1),h=d([(0,o.EM)("wa-divider")],h)},65686:function(t,e,i){i.a(t,async function(t,o){try{i.d(e,{A:function(){return w}});i(62953);var n=i(5124),r=i(67576),s=i(89784),a=i(717),l=i(17060),c=i(42320),d=t([l]);l=(d.then?(await d)():d)[0];let f,v,g,b=t=>t;var h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p=(t,e,i,o)=>{for(var n,r=o>1?void 0:o?u(e,i):e,s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&h(e,i,r),r};let w=class extends a.A{updated(t){if(super.updated(t),t.has("value")){const t=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),e=2*Math.PI*t,i=e-this.value/100*e;this.indicatorOffset=`${i}px`}}render(){return(0,n.qy)(f||(f=b` <div part="base" class="progress-ring" role="progressbar" aria-label="${0}" aria-describedby="label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${0}" style="${0}"> <svg class="image"> <circle part="track" class="track"></circle> <circle part="indicator" class="indicator" style="${0}"></circle> </svg> <slot id="label" part="label" class="label"></slot> </div> `),this.label.length>0?this.label:this.localize.term("progress"),this.value,(0,s.W)({"--percentage":this.value/100}),(0,s.W)({"stroke-dashoffset":this.indicatorOffset}))}constructor(){super(...arguments),this.localize=new l.c(this),this.value=0,this.label=""}};w.css=c.A,p([(0,r.P)(".indicator")],w.prototype,"indicator",2),p([(0,r.wk)()],w.prototype,"indicatorOffset",2),p([(0,r.MZ)({type:Number,reflect:!0})],w.prototype,"value",2),p([(0,r.MZ)()],w.prototype,"label",2),w=p([(0,r.EM)("wa-progress-ring")],w),null===(v=(g=w).disableWarning)||void 0===v||v.call(g,"change-in-update"),o()}catch(f){o(f)}})},42320:function(t,e,i){i.d(e,{A:function(){return n}});let o;var n=(0,i(5124).AH)(o||(o=(t=>t)`:host{--size:8rem;--track-width:0.25em;--track-color:var(--wa-color-neutral-fill-normal);--indicator-width:var(--track-width);--indicator-color:var(--wa-color-brand-fill-loud);--indicator-transition-duration:0.35s;display:inline-flex}.progress-ring{display:inline-flex;align-items:center;justify-content:center;position:relative}.image{width:var(--size);height:var(--size);rotate:-90deg;transform-origin:50% 50%}.indicator,.track{--radius:calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * 0.5);--circumference:calc(var(--radius) * 2 * 3.141592654);fill:none;r:var(--radius);cx:calc(var(--size)/ 2);cy:calc(var(--size)/ 2)}.track{stroke:var(--track-color);stroke-width:var(--track-width)}.indicator{stroke:var(--indicator-color);stroke-width:var(--indicator-width);stroke-linecap:round;transition-property:stroke-dashoffset;transition-duration:var(--indicator-transition-duration);stroke-dasharray:var(--circumference) var(--circumference);stroke-dashoffset:calc(var(--circumference) - var(--percentage) * var(--circumference))}.label{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;user-select:none;-webkit-user-select:none}`))},95010:function(t,e,i){i.d(e,{q:function(){return n},N:function(){return r}});i(54743),i(11745),i(16573),i(78100),i(77936),i(21489),i(48140),i(75044),i(21903),i(91134),i(28845),i(373),i(37467),i(44732),i(79577),i(16632),i(34226),i(9486),i(20456);let o=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&i[t]];return e};function n(t,e,i){const o=t=>Object.is(t,-0)?0:t;return o(t<e?e:t>i?i:t)}function r(t=""){return`${t}${o()}`}},31247:function(t,e,i){i.d(e,{v:function(){return o}});i(18111),i(22489),i(61701),i(42762);function o(t){return t.split(" ").map(t=>t.trim()).filter(t=>""!==t)}},4444:function(t,e,i){i.d(e,{JG:function(){return n},Rt:function(){return s},I7:function(){return r}});i(27495),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(25440),i(62953);const o=new Set;function n(t){if(o.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function r(t){o.delete(t),0===o.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function s(t,e,i="vertical",o="smooth"){const n=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),r=n.top+e.scrollTop,s=n.left+e.scrollLeft,a=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==i&&"both"!==i||(s<a?e.scrollTo({left:s,behavior:o}):s+t.clientWidth>l&&e.scrollTo({left:s-e.offsetWidth+t.clientWidth,behavior:o})),"vertical"!==i&&"both"!==i||(r<c?e.scrollTo({top:r,behavior:o}):r+t.clientHeight>d&&e.scrollTo({top:r-e.offsetHeight+t.clientHeight,behavior:o}))}},88696:function(t,e,i){i.a(t,async function(t,o){try{i.d(e,{P:function(){return l}});var n=i(69235),r=(i(3362),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953),i(37540)),s=i(42017),a=t([n]);n=(a.then?(await a)():a)[0];class l{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return c(this,t)}constructor(t,{target:e,config:i,callback:o,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=i,this.o=null!=n?n:this.o,this.callback=o,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const c=(0,s.u$)(class extends r.Kq{render(t,e){}update(t,[e,i]){this.controller=e,this.part=t,this.observe=i,!1===i?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});o()}catch(l){o(l)}})},95192:function(t,e,i){i.d(e,{IU:function(){return c},Jt:function(){return a},Yd:function(){return o},hZ:function(){return l},y$:function(){return n}});i(44114),i(18111),i(7588),i(61701),i(3362),i(62953);function o(t){return new Promise((e,i)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>i(t.error)})}function n(t,e){let i;return(n,r)=>(()=>{if(i)return i;const n=indexedDB.open(t);return n.onupgradeneeded=()=>n.result.createObjectStore(e),i=o(n),i.then(t=>{t.onclose=()=>i=void 0},()=>{}),i})().then(t=>r(t.transaction(e,n).objectStore(e)))}let r;function s(){return r||(r=n("keyval-store","keyval")),r}function a(t,e=s()){return e("readonly",e=>o(e.get(t)))}function l(t,e,i=s()){return i("readwrite",i=>(i.put(e,t),o(i.transaction)))}function c(t=s()){return t("readwrite",t=>(t.clear(),o(t.transaction)))}},37540:function(t,e,i){i.d(e,{Kq:function(){return h}});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);var o=i(63937),n=i(42017);const r=(t,e)=>{const i=t._$AN;if(void 0===i)return!1;for(const n of i){var o;null!==(o=n._$AO)&&void 0!==o&&o.call(n,e,!1),r(n,e)}return!0},s=t=>{let e,i;do{var o;if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null===(o=i)||void 0===o?void 0:o.size))},a=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),d(e)}};function l(t){void 0!==this._$AN?(s(this),this._$AM=t,a(this)):this._$AM=t}function c(t,e=!1,i=0){const o=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(o))for(let a=i;a<o.length;a++)r(o[a],!1),s(o[a]);else null!=o&&(r(o,!1),s(o));else r(this,t)}const d=t=>{var e,i;t.type==n.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=c),null!==(i=t._$AQ)&&void 0!==i||(t._$AQ=l))};class h extends n.WL{_$AT(t,e,i){super._$AT(t,e,i),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,o;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),e&&(r(this,t),s(this))}setValue(t){if((0,o.Rt)(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(){}constructor(){super(...arguments),this._$AN=void 0}}},89784:function(t,e,i){i.d(e,{W:function(){return a}});i(16280),i(74423),i(72712),i(18111),i(18237),i(27495),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(25440),i(62953);var o=i(5055),n=i(42017);const r="important",s=" !"+r,a=(0,n.u$)(class extends n.WL{render(t){return Object.keys(t).reduce((e,i)=>{const o=t[i];return null==o?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const o of this.ft)null==e[o]&&(this.ft.delete(o),o.includes("-")?i.removeProperty(o):i[o]=null);for(const o in e){const t=e[o];if(null!=t){this.ft.add(o);const e="string"==typeof t&&t.endsWith(s);o.includes("-")||e?i.setProperty(o,e?t.slice(0,-11):t,e?r:""):i[o]=t}}return o.c0}constructor(t){var e;if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})},91450:function(t,e,i){i.d(e,{T:function(){return u}});i(18111),i(20116),i(3362),i(62953);var o=i(5055),n=i(63937),r=i(37540);i(65722);class s{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,n.sO)(t)&&"function"==typeof t.then,d=1073741823;class h extends r.Kq{render(...t){var e;return null!==(e=t.find(t=>!c(t)))&&void 0!==e?e:o.c0}update(t,e){const i=this._$Cbt;let n=i.length;this._$Cbt=e;const r=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let o=0;o<e.length&&!(o>this._$Cwt);o++){const t=e[o];if(!c(t))return this._$Cwt=o,t;o<n&&t===i[o]||(this._$Cwt=d,n=0,Promise.resolve(t).then(async e=>{for(;s.get();)await s.get();const i=r.deref();if(void 0!==i){const o=i._$Cbt.indexOf(t);o>-1&&o<i._$Cwt&&(i._$Cwt=o,i.setValue(e))}}))}return o.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 s(this),this._$CX=new a}}const u=(0,l.u$)(h)}}]);