UNPKG

iobroker.lovelace

Version:

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

5 lines 41.2 kB
/*! For license information please see 99812.cb8c387d1dac7c31.js.LICENSE.txt */ export const __rspack_esm_id=99812;export const __rspack_esm_ids=[99812];export const __webpack_modules__={12451(t,e,i){i.d(e,{O:()=>n,i:()=>o.is});var s=i(5124),o=i(12130);class n extends s.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(t,e,i){i.d(e,{SE:()=>l,U9:()=>h,hP:()=>s,is:()=>o});i(44114);const s=t=>t.nodeType===Node.ELEMENT_NODE;function o(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let n=!1;const r=()=>{},a={get passive(){return n=!0,!1}};document.addEventListener("x",r,a),document.removeEventListener("x",r);const h=(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},l=t=>{const e=h();if(!e.length)return!1;const i=e[e.length-1],s=new Event("check-if-focused",{bubbles:!0,composed:!0});let o=[];const n=t=>{o=t.composedPath()};return document.body.addEventListener("check-if-focused",n),i.dispatchEvent(s),document.body.removeEventListener("check-if-focused",n),-1!==o.indexOf(t)}},77957(t,e,i){var s=i(76080),o=i(79504),n=i(47055),r=i(48981),a=i(56969),h=i(26198),l=i(2360),c=i(35370),d=Array,p=o([].push);t.exports=function(t,e,i,o){for(var u,f,g,m=r(t),_=n(m),v=s(e,i),b=l(null),w=h(_),y=0;w>y;y++)g=_[y],(f=a(v(g,y,m)))in b?p(b[f],g):b[f]=[g];if(o&&(u=o(m))!==d)for(f in b)b[f]=c(u,b[f]);return b}},48646(t,e,i){var s=i(69565),o=i(28551),n=i(1767),r=i(50851);t.exports=function(t,e){e&&"string"==typeof t||o(t);var i=r(t);return n(o(void 0!==i?s(i,t):t))}},30531(t,e,i){var s=i(46518),o=i(69565),n=i(79306),r=i(28551),a=i(1767),h=i(48646),l=i(19462),c=i(9539),d=i(96395),p=i(30684),u=i(84549);var f=!d&&!p("flatMap",function(){}),g=!d&&!f&&u("flatMap",TypeError),m=d||f||g||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t.return()}catch(t){return!0}}(),_=l(function(){for(var t,e,i=this.iterator,s=this.mapper;;){if(e=this.inner)try{if(!(t=r(o(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){c(i,"throw",t)}if(t=r(o(this.next,i)),this.done=!!t.done)return;try{this.inner=h(s(t.value,this.counter++),!1)}catch(t){c(i,"throw",t)}}});s({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(t){r(this);try{n(t)}catch(t){c(this,"throw",t)}return g?o(g,this,t):new _(a(this),{mapper:t,inner:null})}})},46058(t,e,i){var s=i(46518),o=i(77957),n=i(6469);s({target:"Array",proto:!0},{group:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("group")},61366(t,e,i){i.a(t,async function(t,e){try{i(74423),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var s=i(5124),o=i(22441),n=i(6412),r=i(63672),a=i(17051),h=i(42462),l=i(28438),c=i(98779),d=i(27259),p=i(25877),u=i(984),f=i(95010),g=i(9395),m=i(717),_=i(40158),v=i(10416),b=t([_]);_=(b.then?(await b)():b)[0];var w=Object.defineProperty,y=Object.getOwnPropertyDescriptor,z=(t,e,i,s)=>{for(var o,n=s>1?void 0:s?y(e,i):e,r=t.length-1;r>=0;r--)(o=t[r])&&(n=(s?o(e,i,n):o(n))||n);return s&&n&&w(e,i,n),n};const x=new Set;let C=class extends m.A{connectedCallback(){super.connectedCallback(),this.id||(this.id=(0,f.N)("wa-popover-")),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.for&&this.anchor&&(this.anchor=null,this.handleForChange())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,p.Fw)(this),this.eventController.abort()}firstUpdated(){this.open&&this.handleOpenChange()}updated(t){t.has("open")&&this.customStates.set("open",this.open)}async handleOpenChange(){if(this.open){const t=new c.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);x.forEach(t=>t.open=!1),document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),document.addEventListener("click",this.handleDocumentClick,{signal:this.eventController.signal}),this.trapFocus?this.dialog.showModal():this.dialog.show(),this.popup.active=!0,x.add(this),(0,p.AZ)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.dialog.focus()}),this.popup.popup||await this.popup.updateComplete,await(0,d.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new h.q)}else{const t=new l.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!0);document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick),x.delete(this),(0,p.Fw)(this),await(0,d.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.dialog.close(),this.dispatchEvent(new a.Z)}}handleForChange(){const t=this.getRootNode();if(!t)return;const e=this.for?t.getElementById(this.for):null,i=this.anchor;if(e===i)return;const{signal:s}=this.eventController;e&&e.addEventListener("click",this.handleAnchorClick,{signal:s}),i&&i.removeEventListener("click",this.handleAnchorClick),this.anchor=e,this.for&&!e&&console.warn(`A popover was assigned to an element with an ID of "${this.for}" but the element could not be found.`,this)}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}async show(){if(!this.open)return this.open=!0,(0,u.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,u.l)(this,"wa-after-hide")}handleDialogCancel(t){t.preventDefault(),this.dialog.classList.contains("hide")||(this.open=!1)}render(){return s.qy` <dialog aria-labelledby="${(0,r.J)(this.ariaLabelledby)}" aria-describedby="${(0,r.J)(this.ariaDescribedby)}" part="dialog" class="dialog" @cancel="${this.handleDialogCancel}"> <wa-popup part="popup" exportparts=" popup:popup__popup, arrow:popup__arrow " class="${(0,n.H)({popover:!0,"popover-open":this.open})}" placement="${this.placement}" distance="${this.distance}" skidding="${this.skidding}" flip shift ?arrow="${!this.withoutArrow}" .anchor="${this.anchor}" .autoSize="${this.autoSize}" .autoSizePadding="${this.autoSizePadding}"> <div part="body" class="body" @click="${this.handleBodyClick}"> <slot></slot> </div> </wa-popup> </dialog> `}constructor(){super(...arguments),this.anchor=null,this.placement="top",this.open=!1,this.distance=8,this.skidding=0,this.for=null,this.withoutArrow=!1,this.autoSizePadding=0,this.trapFocus=!1,this.eventController=new AbortController,this.handleAnchorClick=()=>{this.open=!this.open},this.handleBodyClick=t=>{t.stopPropagation();t.target.closest('[data-popover="close"]')&&(this.open=!1)},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,p.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.open=!1,this.anchor&&"function"==typeof this.anchor.focus&&this.anchor.focus())},this.handleDocumentClick=t=>{this.anchor&&t.composedPath().includes(this.anchor)||t.composedPath().includes(this)||(this.open=!1)}}};C.css=v.A,C.dependencies={"wa-popup":_.A},z([(0,o.P)("dialog")],C.prototype,"dialog",2),z([(0,o.P)(".body")],C.prototype,"body",2),z([(0,o.P)("wa-popup")],C.prototype,"popup",2),z([(0,o.wk)()],C.prototype,"anchor",2),z([(0,o.MZ)()],C.prototype,"placement",2),z([(0,o.MZ)({type:Boolean,reflect:!0})],C.prototype,"open",2),z([(0,o.MZ)({type:Number})],C.prototype,"distance",2),z([(0,o.MZ)({type:Number})],C.prototype,"skidding",2),z([(0,o.MZ)()],C.prototype,"for",2),z([(0,o.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],C.prototype,"withoutArrow",2),z([(0,o.MZ)({attribute:"auto-size"})],C.prototype,"autoSize",2),z([(0,o.MZ)({attribute:"auto-size-padding",type:Number})],C.prototype,"autoSizePadding",2),z([(0,o.MZ)({attribute:"trap-focus",type:Boolean})],C.prototype,"trapFocus",2),z([(0,o.MZ)({attribute:"aria-labelledby"})],C.prototype,"ariaLabelledby",2),z([(0,o.MZ)({attribute:"aria-describedby"})],C.prototype,"ariaDescribedby",2),z([(0,g.w)("open",{waitUntilFirstUpdate:!0})],C.prototype,"handleOpenChange",1),z([(0,g.w)("for")],C.prototype,"handleForChange",1),z([(0,g.w)(["distance","placement","skidding"])],C.prototype,"handleOptionsChange",1),C=z([(0,o.EM)("wa-popover")],C),e()}catch(t){e(t)}})},10416(t,e,i){i.d(e,{A:()=>s});var s=i(5124).AH`:host{--arrow-size:0.375rem;--max-width:25rem;--show-duration:100ms;--hide-duration:100ms;display:contents;font-size:var(--wa-font-size-m);line-height:var(--wa-line-height-normal);text-align:start;white-space:normal}.dialog{display:none;position:fixed;inset:0;width:100%;height:100%;margin:0;padding:0;border:none;background:0 0;overflow:visible;pointer-events:none}.dialog:focus{outline:0}.dialog[open]{display:block}.popover{--arrow-size:inherit;--popup-border-width:var(--wa-panel-border-width);--show-duration:inherit;--hide-duration:inherit;pointer-events:auto}.popover::part(arrow){background-color:var(--wa-color-surface-default);border-top:none;border-left:none;border-bottom:solid var(--wa-panel-border-width) var(--wa-color-surface-border);border-right:solid var(--wa-panel-border-width) var(--wa-color-surface-border);box-shadow:none}.popover[placement^=top]::part(popup){transform-origin:bottom}.popover[placement^=bottom]::part(popup){transform-origin:top}.popover[placement^=left]::part(popup){transform-origin:right}.popover[placement^=right]::part(popup){transform-origin:left}.body{display:flex;flex-direction:column;width:auto;max-width:min(var(--max-width),100vw);padding:var(--wa-space-l);background-color:var(--wa-color-surface-default);border:var(--wa-panel-border-width) solid var(--wa-color-surface-border);border-radius:var(--wa-panel-border-radius);border-style:var(--wa-panel-border-style);box-shadow:var(--wa-shadow-l);color:var(--wa-color-text-normal);user-select:none;-webkit-user-select:none}.popover[data-current-placement^=bottom] .body,.popover[data-current-placement^=top] .body{max-width:min(var(--max-width),100vw - (var(--wa-space-m) * 2));margin-inline:var(--wa-space-m)}.popover[data-current-placement^=left] .body,.popover[data-current-placement^=right] .body{max-height:calc(100vh - (var(--wa-space-m) * 2));margin-block:var(--wa-space-m)}`},99324(t,e,i){i.a(t,async function(t,e){try{var s=i(5124),o=i(22441),n=i(6412),r=i(63672),a=i(34514),h=i(40991),l=i(92070),c=i(41268),d=i(9395),p=i(62676),u=i(15477),f=i(31896),g=i(32565),m=i(17060),_=i(9054),v=t([m]);m=(v.then?(await v)():v)[0];var b=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var o,n=s>1?void 0:s?w(e,i):e,r=t.length-1;r>=0;r--)(o=t[r])&&(n=(s?o(e,i,n):o(n))||n);return s&&n&&b(e,i,n),n};let z=class extends p.q{static get validators(){return[...super.validators,(0,c.i)()]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,h.b)(this.localName,this.size)}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{if(this.setTextareaDimensions(),this.updateResizeObserver(),this.didSSR&&this.input&&this.value!==this.input.value){const t=this.input.value;this.value=t}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.countAnnounceTimeout),this.resizeObserver?.disconnect(),this.resizeObserver=void 0}updateResizeObserver(){const t="none"!==this.resize;this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),t&&this.input&&("auto"===this.resize?(this.resizeObserver=new ResizeObserver(t=>{const e=t[0]?.contentRect.width??0;e!==this.lastObservedWidth&&(this.lastObservedWidth=e,requestAnimationFrame(()=>this.setTextareaDimensions()))}),this.resizeObserver.observe(this)):(this.resizeObserver=new ResizeObserver(()=>this.setTextareaDimensions()),this.resizeObserver.observe(this.input)))}handleBlur(){this.checkValidity()}handleChange(t){this.valueHasChanged=!0,this.value=this.input.value,this.setTextareaDimensions(),this.checkValidity(),this.relayNativeEvent(t,{bubbles:!0,composed:!0})}handleInput(t){this.valueHasChanged=!0,this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0}),this.scheduleCountAnnouncement()}scheduleCountAnnouncement(){clearTimeout(this.countAnnounceTimeout),this.countAnnounceTimeout=setTimeout(()=>{const t=(this.value??"").length;this.announcedCountText=null!=this.maxlength?this.localize.term("numCharactersRemaining",this.maxlength-t):this.localize.term("numCharacters",t)},1e3)}setTextareaDimensions(){if("none"===this.resize)return this.base.style.width="",void(this.base.style.height="");if("auto"===this.resize){this.sizeAdjuster.style.height=`${this.input.clientHeight}px`,this.input.style.height="auto";const t=this.input.scrollHeight;return this.input.style.height=`${t}px`,this.sizeAdjuster.style.height=`${t}px`,this.base.style.width="",void(this.base.style.height="")}if(this.input.style.width){const t=Number(this.input.style.width.split(/px/)[0])+2;this.base.style.width=`${t}px`}if(this.input.style.height){const t=Number(this.input.style.height.split(/px/)[0])+2;this.base.style.height=`${t}px`}}handleRowsChange(){this.setTextareaDimensions()}async handleValueChange(){await this.updateComplete,this.checkValidity(),this.setTextareaDimensions()}updated(t){t.has("resize")&&(this.setTextareaDimensions(),this.updateResizeObserver()),super.updated(t),t.has("value")&&this.customStates.set("blank",!this.value)}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.input.scrollTop=t.top),void("number"==typeof t.left&&(this.input.scrollLeft=t.left))):{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,s="preserve"){const o=e??this.input.selectionStart,n=i??this.input.selectionEnd;this.input.setRangeText(t,o,n,s),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaDimensions())}formResetCallback(){this._value=null,this.input&&(this.input.value=this.value||""),super.formResetCallback()}render(){const t=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,e=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,i=!!this.label||!!t,o=!!this.hint||!!e,h=(this.value??"").length,l=null!=this.maxlength?this.localize.term("numCharactersRemaining",this.maxlength-h):this.localize.term("numCharacters",h);return s.qy` <label part="form-control-label label" class="${(0,n.H)({label:!0,"has-label":i})}" for="input" aria-hidden="${i?"false":"true"}"> <slot name="label">${this.label}</slot> </label> <div part="base" class="textarea"> <textarea part="textarea" id="input" class="control" title="${this.title}" name="${(0,r.J)(this.name)}" .value="${(0,a.V)(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${(0,r.J)(this.placeholder)}" rows="${(0,r.J)(this.rows)}" minlength="${(0,r.J)(this.minlength)}" maxlength="${(0,r.J)(this.maxlength)}" autocapitalize="${(0,r.J)(this.autocapitalize)}" autocorrect="${(0,r.J)(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${(0,r.J)(this.spellcheck)}" enterkeyhint="${(0,r.J)(this.enterkeyhint)}" inputmode="${(0,r.J)(this.inputmode)}" aria-describedby="hint" @change="${this.handleChange}" @input="${this.handleInput}" @blur="${this.handleBlur}"></textarea> <div part="textarea-adjuster" class="size-adjuster" ?hidden="${"auto"!==this.resize}"></div> </div> <div class="${(0,n.H)({footer:!0,"has-count":this.withCount})}"> <slot id="hint" name="hint" part="hint" aria-hidden="${o?"false":"true"}" class="${(0,n.H)({"has-slotted":o})}">${this.hint}</slot> ${this.withCount?s.qy` <div part="count" class="count" aria-hidden="true">${l}</div> <div class="wa-visually-hidden-force" aria-live="polite">${this.announcedCountText}</div> `:""} </div> `}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new l.X(this,"hint","label"),this.localize=new m.c(this),this.announcedCountText="",this.title="",this.name=null,this._value=null,this.defaultValue=this.getAttribute("value")??"",this.size="m",this.appearance="outlined",this.label="",this.hint="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1,this.withCount=!1,this.lastObservedWidth=0}};z.css=[_.A,u.A,f.A,g.A],y([(0,o.wk)()],z.prototype,"announcedCountText",2),y([(0,o.P)(".control")],z.prototype,"input",2),y([(0,o.P)('[part~="base"]')],z.prototype,"base",2),y([(0,o.P)(".size-adjuster")],z.prototype,"sizeAdjuster",2),y([(0,o.MZ)()],z.prototype,"title",2),y([(0,o.MZ)({reflect:!0})],z.prototype,"name",2),y([(0,o.wk)()],z.prototype,"value",1),y([(0,o.MZ)({attribute:"value",reflect:!0})],z.prototype,"defaultValue",2),y([(0,o.MZ)({reflect:!0})],z.prototype,"size",2),y([(0,d.w)("size")],z.prototype,"handleSizeChange",1),y([(0,o.MZ)({reflect:!0})],z.prototype,"appearance",2),y([(0,o.MZ)()],z.prototype,"label",2),y([(0,o.MZ)({attribute:"hint"})],z.prototype,"hint",2),y([(0,o.MZ)()],z.prototype,"placeholder",2),y([(0,o.MZ)({type:Number})],z.prototype,"rows",2),y([(0,o.MZ)({reflect:!0})],z.prototype,"resize",2),y([(0,o.MZ)({type:Boolean})],z.prototype,"disabled",2),y([(0,o.MZ)({type:Boolean,reflect:!0})],z.prototype,"readonly",2),y([(0,o.MZ)({type:Boolean,reflect:!0})],z.prototype,"required",2),y([(0,o.MZ)({type:Number})],z.prototype,"minlength",2),y([(0,o.MZ)({type:Number})],z.prototype,"maxlength",2),y([(0,o.MZ)()],z.prototype,"autocapitalize",2),y([(0,o.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],z.prototype,"autocorrect",2),y([(0,o.MZ)()],z.prototype,"autocomplete",2),y([(0,o.MZ)({type:Boolean})],z.prototype,"autofocus",2),y([(0,o.MZ)()],z.prototype,"enterkeyhint",2),y([(0,o.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],z.prototype,"spellcheck",2),y([(0,o.MZ)()],z.prototype,"inputmode",2),y([(0,o.MZ)({attribute:"with-label",type:Boolean})],z.prototype,"withLabel",2),y([(0,o.MZ)({attribute:"with-hint",type:Boolean})],z.prototype,"withHint",2),y([(0,o.MZ)({attribute:"with-count",type:Boolean,reflect:!0})],z.prototype,"withCount",2),y([(0,d.w)("rows",{waitUntilFirstUpdate:!0})],z.prototype,"handleRowsChange",1),y([(0,d.w)("value",{waitUntilFirstUpdate:!0})],z.prototype,"handleValueChange",1),z=y([(0,o.EM)("wa-textarea")],z),z.disableWarning?.("change-in-update"),e()}catch(t){e(t)}})},9054(t,e,i){i.d(e,{A:()=>s});var s=i(5124).AH`:host{border-width:0}.textarea{display:grid;align-items:center;margin:0;border:none;outline:0;cursor:inherit;font:inherit;background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);-webkit-appearance:none;outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.textarea:focus-within{outline-color:var(--wa-color-focus)}:host([appearance=outlined]) .textarea{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .textarea{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .textarea{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}textarea{display:block;width:100%;border:none;background:0 0;font:inherit;color:inherit;padding:calc(var(--wa-form-control-padding-block) - ((1lh - 1em)/ 2)) var(--wa-form-control-padding-inline);min-height:calc(var(--wa-form-control-height) - var(--border-width) * 2);box-shadow:none;margin:0}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea:focus{outline:0}.control,.size-adjuster{grid-area:1/1/2/2}.size-adjuster{visibility:hidden;pointer-events:none;opacity:0;padding:0}textarea::-webkit-search-cancel-button,textarea::-webkit-search-decoration,textarea::-webkit-search-results-button,textarea::-webkit-search-results-decoration{-webkit-appearance:none}:host([resize=none]) textarea{resize:none}:host([resize=vertical]) textarea,textarea{resize:vertical}:host([resize=horizontal]) textarea{resize:horizontal}:host([resize=both]) textarea{resize:both}:host([resize=auto]) textarea{height:auto;resize:none;overflow-y:hidden}.footer{display:flex;align-items:baseline;gap:1em}.footer.has-count [part=hint]{flex:1 1 auto;min-width:0}.count{flex:0 0 auto;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller);margin-inline-start:auto}`},32565(t,e,i){i.d(e,{A:()=>s});var s=i(5124).AH`.wa-visually-hidden-force,.wa-visually-hidden-hint::part(hint),.wa-visually-hidden-label::part(form-control-label),.wa-visually-hidden-label::part(label),.wa-visually-hidden:not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`},88696(t,e,i){i.d(e,{P:()=>n});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var s=i(37540),o=i(42017);class n{handleChanges(t){this.value=this.callback?.(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 r(this,t)}constructor(t,{target:e,config:i,callback:s,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=i,this.o=o??this.o,this.callback=s,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 r=(0,o.u$)(class extends s.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(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){!1!==this.observe&&!1===this.observing&&(this.controller?.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}})},17568(t,e,i){i.d(e,{V:()=>a});var s=i(38826);i(74423),i(44114),i(18111),i(61701);function o(t){return"horizontal"===t?"row":"column"}class n extends s.YS{_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{itemSize:{width:"300px",height:"300px"},gap:"8px",padding:"match-gap"})}get _gap(){return this._gaps.row}get _idealSize(){return this._itemSize[(0,s.oV)(this.direction)]}get _idealSize1(){return this._itemSize[(0,s.oV)(this.direction)]}get _idealSize2(){return this._itemSize[(0,s.vD)(this.direction)]}get _gap1(){return this._gaps[t=this.direction,"horizontal"===t?"column":"row"];var t}get _gap2(){return this._gaps[o(this.direction)]}get _padding1(){const t=this._padding,[e,i]="horizontal"===this.direction?["left","right"]:["top","bottom"];return[t[e],t[i]]}get _padding2(){const t=this._padding,[e,i]="horizontal"===this.direction?["top","bottom"]:["left","right"];return[t[e],t[i]]}set itemSize(t){const e=this._itemSize;"string"==typeof t&&(t={width:t,height:t});const i=parseInt(t.width),s=parseInt(t.height);i!==e.width&&(e.width=i,this._triggerReflow()),s!==e.height&&(e.height=s,this._triggerReflow())}set gap(t){this._setGap(t)}_setGap(t){const e=t.split(" ").map(t=>function(t){return"auto"===t?1/0:parseInt(t)}(t)),i=this._gaps;e[0]!==i.row&&(i.row=e[0],this._triggerReflow()),void 0===e[1]?e[0]!==i.column&&(i.column=e[0],this._triggerReflow()):e[1]!==i.column&&(i.column=e[1],this._triggerReflow())}set padding(t){const e=this._padding,i=t.split(" ").map(t=>function(t){return"match-gap"===t?1/0:parseInt(t)}(t));1===i.length?(e.top=e.right=e.bottom=e.left=i[0],this._triggerReflow()):2===i.length?(e.top=e.bottom=i[0],e.right=e.left=i[1],this._triggerReflow()):3===i.length?(e.top=i[0],e.right=e.left=i[1],e.bottom=i[2],this._triggerReflow()):4===i.length&&(["top","right","bottom","left"].forEach((t,s)=>e[t]=i[s]),this._triggerReflow())}constructor(){super(...arguments),this._itemSize={},this._gaps={},this._padding={}}}class r extends n{_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{flex:!1,justify:"start"})}set gap(t){super._setGap(t)}_updateLayout(){const t=this.justify,[e,i]=this._padding1,[n,r]=this._padding2;["_gap1","_gap2"].forEach(e=>{const i=this[e];if(i===1/0&&!["space-between","space-around","space-evenly"].includes(t))throw new Error("grid layout: gap can only be set to 'auto' when justify is set to 'space-between', 'space-around' or 'space-evenly'");if(i===1/0&&"_gap2"===e)throw new Error(`grid layout: ${o(this.direction)}-gap cannot be set to 'auto' when direction is set to ${this.direction}`)});const a=this.flex||["start","center","end"].includes(t),h={rolumns:-1,itemSize1:-1,itemSize2:-1,gap1:this._gap1===1/0?-1:this._gap1,gap2:a?this._gap2:0,padding1:{start:e===1/0?this._gap1:e,end:i===1/0?this._gap1:i},padding2:a?{start:n===1/0?this._gap2:n,end:r===1/0?this._gap2:r}:{start:0,end:0},positions:[]},l=this._viewDim2-h.padding2.start-h.padding2.end;if(l<=0)h.rolumns=0;else{const o=a?h.gap2:0;let n,r=0,c=0;if(l>=this._idealSize2&&(r=Math.floor((l-this._idealSize2)/(this._idealSize2+o))+1,c=r*this._idealSize2+(r-1)*o),this.flex){(l-c)/(this._idealSize2+o)>=.5&&(r+=1),h.rolumns=r,h.itemSize2=Math.round((l-o*(r-1))/r);switch(!0===this.flex?"area":this.flex.preserve){case"aspect-ratio":h.itemSize1=Math.round(this._idealSize1/this._idealSize2*h.itemSize2);break;case(0,s.oV)(this.direction):h.itemSize1=Math.round(this._idealSize1);break;default:h.itemSize1=Math.round(this._idealSize1*this._idealSize2/h.itemSize2)}}else h.itemSize1=this._idealSize1,h.itemSize2=this._idealSize2,h.rolumns=r;if(a){const e=h.rolumns*h.itemSize2+(h.rolumns-1)*h.gap2;n=this.flex||"start"===t?h.padding2.start:"end"===t?this._viewDim2-h.padding2.end-e:Math.round(this._viewDim2/2-e/2)}else{const s=l-h.rolumns*h.itemSize2;"space-between"===t?(h.gap2=Math.round(s/(h.rolumns-1)),n=0):"space-around"===t?(h.gap2=Math.round(s/h.rolumns),n=Math.round(h.gap2/2)):(h.gap2=Math.round(s/(h.rolumns+1)),n=h.gap2),this._gap1===1/0&&(h.gap1=h.gap2,e===1/0&&(h.padding1.start=n),i===1/0&&(h.padding1.end=n))}for(let t=0;t<h.rolumns;t++)h.positions.push(n),n+=h.itemSize2+h.gap2}this._metrics=h}constructor(){super(...arguments),this._metrics=null,this.flex=null,this.justify=null}}const a=t=>Object.assign({type:h},t);class h extends r{get _delta(){return this._metrics.itemSize1+this._metrics.gap1}_getItemSize(t){return{[this._sizeDim]:this._metrics.itemSize1,[this._secondarySizeDim]:this._metrics.itemSize2}}_getActiveItems(){const t=this._metrics,{rolumns:e}=t;if(0===e)this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;else{const{padding1:i}=t,s=Math.max(0,this._scrollPosition-this._overhang),o=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang),n=Math.max(0,Math.floor((s-i.start)/this._delta)),r=Math.max(0,Math.ceil((o-i.start)/this._delta));this._first=n*e,this._last=Math.min(r*e-1,this.items.length-1),this._physicalMin=i.start+this._delta*n,this._physicalMax=i.start+this._delta*r}}_getItemPosition(t){const{rolumns:e,padding1:i,positions:o,itemSize1:n,itemSize2:r}=this._metrics;return{[this._positionDim]:i.start+Math.floor(t/e)*this._delta,[this._secondaryPositionDim]:o[t%e],[(0,s.oV)(this.direction)]:n,[(0,s.vD)(this.direction)]:r}}_updateScrollSize(){const{rolumns:t,gap1:e,padding1:i,itemSize1:s}=this._metrics;let o=1;if(t>0){const n=Math.ceil(this.items.length/t);o=i.start+n*s+(n-1)*e+i.end}this._scrollSize=o}}},38826(t,e,i){i.d(e,{YS:()=>n,oV:()=>s,vD:()=>o});i(45367),i(92731);function s(t){return"horizontal"===t?"width":"height"}function o(t){return"horizontal"===t?"height":"width"}class n{_getDefaultConfig(){return{direction:"vertical"}}set config(t){Object.assign(this,Object.assign({},this._getDefaultConfig(),t))}get config(){return{direction:this.direction}}get items(){return this._items}set items(t){this._setItems(t)}_setItems(t){t!==this._items&&(this._items=t,this._scheduleReflow())}get direction(){return this._direction}set direction(t){(t="horizontal"===t?t:"vertical")!==this._direction&&(this._direction=t,this._sizeDim="horizontal"===t?"width":"height",this._secondarySizeDim="horizontal"===t?"height":"width",this._positionDim="horizontal"===t?"left":"top",this._secondaryPositionDim="horizontal"===t?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(t){const{_viewDim1:e,_viewDim2:i}=this;Object.assign(this._viewportSize,t),i!==this._viewDim2?this._scheduleLayoutUpdate():e!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(t){Object.assign(this._latestCoords,t);const e=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(e-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(t=!1){(t||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(t){this._pin=t,this._triggerReflow()}get pin(){if(null!==this._pin){const{index:t,block:e}=this._pin;return{index:Math.max(0,Math.min(t,this.items.length-1)),block:e}}return null}_clampScrollPosition(t){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(t,this.totalScrollSize[s(this.direction)]-this._viewDim1))}unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then(()=>this.reflowIfNeeded())}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(null!==this.pin){const t=this._scrollPosition,{index:e,block:i}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:e,block:i||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=t-this._scrollPosition}}_calculateScrollIntoViewPosition(t){const{block:e}=t,i=Math.min(this.items.length,Math.max(0,t.index)),s=this._getItemPosition(i)[this._positionDim];let o=s;if("start"!==e){const t=this._getItemSize(i)[this._sizeDim];if("center"===e)o=s-.5*this._viewDim1+.5*t;else{const i=s-this._viewDim1+t;if("end"===e)o=i;else{const t=this._scrollPosition;o=Math.abs(t-s)<Math.abs(t-i)?s:i}}}return o+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(o)}getScrollIntoViewCoordinates(t){return{[this._positionDim]:this._calculateScrollIntoViewPosition(t)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){const t=new Map;if(-1!==this._first&&-1!==this._last)for(let e=this._first;e<=this._last;e++)t.set(e,this._getItemPosition(e));const e={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:t};this._scrollError&&(e.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(e)}get _num(){return-1===this._first||-1===this._last?0:this._last-this._first+1}_checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{const t=Math.max(0,this._scrollPosition-this._overhang),e=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>t||this._physicalMax<e?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(t){if(-1===this._first||-1===this._last)return;let e=this._first;for(;e<this._last&&Math.round(this._getItemPosition(e)[this._positionDim]+this._getItemSize(e)[this._sizeDim])<=Math.round(this._scrollPosition);)e++;let i=this._last;for(;i>this._first&&Math.round(this._getItemPosition(i)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)i--;e===this._firstVisible&&i===this._lastVisible||(this._firstVisible=e,this._lastVisible=i,t&&t.emit&&this._sendVisibilityChangedMessage())}constructor(t,e){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=t,Promise.resolve().then(()=>this.config=e||this._getDefaultConfig())}}},99731(t,e,i){i.d(e,{Y:()=>l});var s=i(62826),o=i(22441),n=(i(18111),i(22489),i(20116),i(5124)),r=i(99591);class a extends n.WF{get chips(){return this.childElements.filter(t=>t instanceof r.v)}render(){return n.qy`<slot @slotchange="${this.updateTabIndices}"></slot>`}handleKeyDown(t){const e="ArrowLeft"===t.key,i="ArrowRight"===t.key,s="Home"===t.key,o="End"===t.key;if(!(e||i||s||o))return;const{chips:n}=this;if(n.length<2)return;if(t.preventDefault(),s||o){return n[s?0:n.length-1].focus({trailing:o}),void this.updateTabIndices()}const r="rtl"===getComputedStyle(this).direction?e:i,a=n.find(t=>t.matches(":focus-within"));if(!a){return(r?n[0]:n[n.length-1]).focus({trailing:!r}),void this.updateTabIndices()}const h=n.indexOf(a);let l=r?h+1:h-1;for(;l!==h;){l>=n.length?l=0:l<0&&(l=n.length-1);const t=n[l];if(!t.disabled||t.alwaysFocusable){t.focus({trailing:!r}),this.updateTabIndices();break}r?l++:l--}}updateTabIndices(){const{chips:t}=this;let e;for(const i of t){const t=i.alwaysFocusable||!i.disabled;i.matches(":focus-within")&&t?e=i:(t&&!e&&(e=i),i.tabIndex=-1)}e&&(e.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),n.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,s.Cg)([(0,o.KN)()],a.prototype,"childElements",void 0);const h=n.AH`:host{display:flex;flex-wrap:wrap;gap:8px}`;let l=class extends a{};l.styles=[h],l=(0,s.Cg)([(0,o.EM)("md-chip-set")],l)},27525(t,e,i){function s(t,e=u){const i=a(t,e);return i&&(i.tabIndex=0,i.focus()),i}function o(t,e=u){const i=h(t,e);return i&&(i.tabIndex=0,i.focus()),i}function n(t,e=u){const i=r(t,e);return i&&(i.item.tabIndex=-1),i}function r(t,e=u){for(let i=0;i<t.length;i++){const s=t[i];if(0===s.tabIndex&&e(s))return{item:s,index:i}}return null}function a(t,e=u){for(const i of t)if(e(i))return i;return null}function h(t,e=u){for(let i=t.length-1;i>=0;i--){const s=t[i];if(e(s))return s}return null}function l(t,e,i=u,o=!0){if(e){const s=function(t,e,i=u,s=!0){for(let o=1;o<t.length;o++){const n=(o+e)%t.length;if(n<e&&!s)return null;const r=t[n];if(i(r))return r}return t[e]?t[e]:null}(t,e.index,i,o);return s&&(s.tabIndex=0,s.focus()),s}return s(t,i)}function c(t,e,i=u,s=!0){if(e){const o=function(t,e,i=u,s=!0){for(let o=1;o<t.length;o++){const n=(e-o+t.length)%t.length;if(n>e&&!s)return null;const r=t[n];if(i(r))return r}return t[e]?t[e]:null}(t,e.index,i,s);return o&&(o.tabIndex=0,o.focus()),o}return o(t,i)}function d(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function p(){return new Event("request-activation",{bubbles:!0,composed:!0})}function u(t){return!t.disabled}i.d(e,{A6:()=>r,Ex:()=>h,RN:()=>d,RZ:()=>o,c7:()=>a,cG:()=>p,u9:()=>c,ub:()=>n,wm:()=>l,zT:()=>s})},95192(t,e,i){i.d(e,{IU:()=>l,Jt:()=>a,Yd:()=>s,hZ:()=>h,y$:()=>o});i(44114),i(18111),i(7588),i(61701);function s(t){return new Promise((e,i)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>i(t.error)})}function o(t,e){let i;return(o,n)=>(()=>{if(i)return i;const o=indexedDB.open(t);return o.onupgradeneeded=()=>o.result.createObjectStore(e),i=s(o),i.then(t=>{t.onclose=()=>i=void 0},()=>{}),i})().then(t=>n(t.transaction(e,o).objectStore(e)))}let n;function r(){return n||(n=o("keyval-store","keyval")),n}function a(t,e=r()){return e("readonly",e=>s(e.get(t)))}function h(t,e,i=r()){return i("readwrite",i=>(i.put(e,t),s(i.transaction)))}function l(t=r()){return t("readwrite",t=>(t.clear(),s(t.transaction)))}},37540(t,e,i){i.d(e,{Kq:()=>d});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var s=i(63937),o=i(42017);const n=(t,e)=>{const i=t._$AN;if(void 0===i)return!1;for(const t of i)t._$AO?.(e,!1),n(t,e);return!0},r=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===i?.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),c(e)}};function h(t){void 0!==this._$AN?(r(this),this._$AM=t,a(this)):this._$AM=t}function l(t,e=!1,i=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let t=i;t<s.length;t++)n(s[t],!1),r(s[t]);else null!=s&&(n(s,!1),r(s));else n(this,t)}const c=t=>{t.type==o.OA.CHILD&&(t._$AP??=l,t._$AQ??=h)};class d extends o.WL{_$AT(t,e,i){super._$AT(t,e,i),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(n(this,t),r(this))}setValue(t){if((0,s.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(t,e,i){i.d(e,{W:()=>a});i(74423),i(18111),i(18237),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var s=i(5055),o=i(42017);const n="important",r=" !"+n,a=(0,o.u$)(class extends o.WL{render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return null==s?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}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 t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?i.removeProperty(t):i[t]=null);for(const t in e){const s=e[t];if(null!=s){this.ft.add(t);const e="string"==typeof s&&s.endsWith(r);t.includes("-")||e?i.setProperty(t,e?s.slice(0,-11):s,e?n:""):i[t]=s}}return s.c0}constructor(t){if(super(t),t.type!==o.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})},91450(t,e,i){i.d(e,{T:()=>p});i(18111),i(20116);var s=i(5055),o=i(63937),n=i(37540);class r{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(){this.Y??=new Promise(t=>this.Z=t)}resume(){this.Z?.(),this.Y=this.Z=void 0}constructor(){this.Y=void 0,this.Z=void 0}}var h=i(42017);const l=t=>!(0,o.sO)(t)&&"function"==typeof t.then,c=1073741823;class d extends n.Kq{render(...t){return t.find(t=>!l(t))??s.c0}update(t,e){const i=this._$Cbt;let o=i.length;this._$Cbt=e;const n=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const s=e[t];if(!l(s))return this._$Cwt=t,s;t<o&&s===i[t]||(this._$Cwt=c,o=0,Promise.resolve(s).then(async t=>{for(;r.get();)await r.get();const e=n.deref();if(void 0!==e){const i=e._$Cbt.indexOf(s);i>-1&&i<e._$Cwt&&(e._$Cwt=i,e.setValue(t))}}))}return s.c0}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}constructor(){super(...arguments),this._$Cwt=c,this._$Cbt=[],this._$CK=new r(this),this._$CX=new a}}const p=(0,h.u$)(d)}};