iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
17 lines • 37 kB
JavaScript
/*! For license information please see 57441.cea9ca4e96bebe01.js.LICENSE.txt */
export const __rspack_esm_id=57441;export const __rspack_esm_ids=[57441];export const __webpack_modules__={12451(t,e,i){i.d(e,{O:()=>s,i:()=>r.is});var a=i(5124),r=i(12130);class s extends a.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:()=>c,U9:()=>l,hP:()=>a,is:()=>r});i(44114);const a=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=()=>{},n={get passive(){return s=!0,!1}};document.addEventListener("x",o,n),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],a=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(a),document.body.removeEventListener("check-if-focused",s),-1!==r.indexOf(t)}},77957(t,e,i){var a=i(76080),r=i(79504),s=i(47055),o=i(48981),n=i(56969),l=i(26198),c=i(2360),d=i(35370),h=Array,u=r([].push);t.exports=function(t,e,i,r){for(var p,m,f,v=o(t),g=s(v),b=a(e,i),y=c(null),w=l(g),x=0;w>x;x++)f=g[x],(m=n(b(f,x,v)))in y?u(y[m],f):y[m]=[f];if(r&&(p=r(v))!==h)for(m in y)y[m]=d(p,y[m]);return y}},46058(t,e,i){var a=i(46518),r=i(77957),s=i(6469);a({target:"Array",proto:!0},{group:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("group")},97577(t,e,i){i.d(e,{A:()=>y});var a=i(5124),r=i(22441),s=i(6412),o=i(63672),n=i(34514),l=i(40991),c=i(92070),d=i(49546),h=i(9395),u=i(62676),p=i(15477),m=i(31896),f=(i(38625),a.AH`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}: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)}`),v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,b=(t,e,i,a)=>{for(var r,s=a>1?void 0:a?g(e,i):e,o=t.length-1;o>=0;o--)(r=t[o])&&(s=(a?r(e,i,s):r(s))||s);return a&&s&&v(e,i,s),s};let y=class extends u.q{static get validators(){const t=a.S$?[]:[(0,d.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...t]}get value(){return this._value??"on"}set value(t){this._value=t}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??this.defaultChecked}set checked(t){this._checked=Boolean(t),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("checked")||t.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=!!a.S$||this.hasSlotController.test("hint"),e=!!this.hint||!!t,i=!this.checked&&this.indeterminate,r=i?"indeterminate":"check",l=i?"indeterminate":"check";return a.qy` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${this.title}" name="${(0,o.J)(this.name)}" value="${(0,o.J)(this._value)}" .indeterminate="${(0,n.V)(this.indeterminate)}" .checked="${(0,n.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}" aria-describedby="hint" ="${this.handleClick}"> <wa-icon part="${l}-icon icon" library="system" name="${r}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${e?"false":"true"}" class="${(0,s.H)({"has-slotted":e})}"> ${this.hint} </slot> `}constructor(){super(...arguments),this.hasSlotController=new c.X(this,"hint"),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};y.css=[p.A,m.A,f],y.shadowRootOptions={...u.q.shadowRootOptions,delegatesFocus:!0},b([(0,r.P)('input[type="checkbox"]')],y.prototype,"input",2),b([(0,r.MZ)()],y.prototype,"title",2),b([(0,r.MZ)({reflect:!0})],y.prototype,"name",2),b([(0,r.MZ)({reflect:!0})],y.prototype,"value",1),b([(0,r.MZ)({reflect:!0})],y.prototype,"size",2),b([(0,h.w)("size")],y.prototype,"handleSizeChange",1),b([(0,r.MZ)({type:Boolean})],y.prototype,"disabled",2),b([(0,r.MZ)({type:Boolean,reflect:!0})],y.prototype,"indeterminate",2),b([(0,r.MZ)({type:Boolean,attribute:!1})],y.prototype,"checked",1),b([(0,r.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],y.prototype,"defaultChecked",2),b([(0,r.MZ)({type:Boolean,reflect:!0})],y.prototype,"required",2),b([(0,r.MZ)()],y.prototype,"hint",2),b([(0,h.w)(["checked","defaultChecked"])],y.prototype,"handleDefaultCheckedChange",1),b([(0,h.w)(["checked","indeterminate"])],y.prototype,"handleStateChange",1),b([(0,h.w)("disabled")],y.prototype,"handleDisabledChange",1),y=b([(0,r.EM)("wa-checkbox")],y),y.disableWarning?.("change-in-update")},29344(t,e,i){i.a(t,async function(t,a){try{i.d(e,{A:()=>k});var r=i(5124),s=i(22441),o=i(6412),n=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),b=t([v]);v=(b.then?(await b)():b)[0];var y=Object.defineProperty,w=Object.getOwnPropertyDescriptor,x=(t,e,i,a)=>{for(var r,s=a>1?void 0:a?w(e,i):e,o=t.length-1;o>=0;o--)(r=t[o])&&(s=(a?r(e,i,s):r(s))||s);return a&&s&&y(e,i,s),s};let k=class extends p.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){return this._value??"on"}set value(t){this._value=t}handleSizeChange(){(0,c.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??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(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 r.qy` <label part="base" class="${(0,o.H)({checked:this.checked,disabled:this.disabled})}"> <input class="input" type="checkbox" title="${this.title}" name="${(0,n.J)(this.name)}" value="${(0,n.J)(this.value)}" .checked="${(0,l.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" role="switch" aria-checked="${this.checked?"true":"false"}" aria-describedby="hint" ="${this.handleClick}" ="${this.handleKeyDown}"> <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,o.H)({"has-slotted":e})}" aria-hidden="${e?"false":"true"}">${this.hint}</slot> `}constructor(){super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.localize=new v.c(this),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint="",this.withHint=!1}};k.shadowRootOptions={...p.q.shadowRootOptions,delegatesFocus:!0},k.css=[m.A,f.A,g.A],x([(0,s.P)('input[type="checkbox"]')],k.prototype,"input",2),x([(0,s.MZ)()],k.prototype,"title",2),x([(0,s.MZ)({reflect:!0})],k.prototype,"name",2),x([(0,s.MZ)({reflect:!0})],k.prototype,"value",1),x([(0,s.MZ)({reflect:!0})],k.prototype,"size",2),x([(0,u.w)("size")],k.prototype,"handleSizeChange",1),x([(0,s.MZ)({type:Boolean})],k.prototype,"disabled",2),x([(0,s.MZ)({type:Boolean,attribute:!1})],k.prototype,"checked",1),x([(0,s.MZ)({type:Boolean,attribute:"checked",reflect:!0})],k.prototype,"defaultChecked",2),x([(0,s.MZ)({type:Boolean,reflect:!0})],k.prototype,"required",2),x([(0,s.MZ)({attribute:"hint"})],k.prototype,"hint",2),x([(0,s.MZ)({attribute:"with-hint",type:Boolean})],k.prototype,"withHint",2),x([(0,u.w)(["checked","defaultChecked"])],k.prototype,"handleStateChange",1),x([(0,u.w)("disabled",{waitUntilFirstUpdate:!0})],k.prototype,"handleDisabledChange",1),k=x([(0,s.EM)("wa-switch")],k),k.disableWarning?.("change-in-update"),a()}catch(t){a(t)}})},19978(t,e,i){i.d(e,{A:()=>a});var a=i(5124).AH`: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)} (forced-colors:active){:checked+.switch .thumb,:checked:enabled+.switch:hover .thumb{background-color:ButtonText}}`},49546(t,e,i){i.d(e,{Y:()=>a});i(44114);const a=(t={})=>{let{validationElement:e,validationProperty:i}=t;e||(e=Object.assign(document.createElement("input"),{required:!0})),i||(i="value");const a={observedAttributes:["required"],message:e.validationMessage,checkValidity(t){const e={message:"",isValid:!0,invalidKeys:[]};if(!(t.required??t.hasAttribute("required")))return e;return!t[i]&&(e.message="function"==typeof a.message?a.message(t):a.message||"",e.isValid=!1,e.invalidKeys.push("valueMissing")),e}};return a}},75275(t,e,i){var a=i(62826),r=i(22441),s=i(5124),o=i(76482);const n=["focusin","focusout","pointerdown"];class l extends s.WF{get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[c]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[c]=!0}}onControlChange(t,e){if(!s.S$)for(const i of n)t?.removeEventListener(i,this),e?.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new o.i(this,this.onControlChange.bind(this))}}(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const c=Symbol("handledByFocusRing"),d=s.AH`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)} outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}} outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}} inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}} inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}{:host{animation:none}}`;let h=class extends l{};h.styles=[d],h=(0,a.Cg)([(0,r.EM)("md-focus-ring")],h)},1024(t,e,i){i.d(e,{n:()=>c});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var a=i(5124);i(74423);const r=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],s=r.map(n);function o(t){return s.includes(t)}function n(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function c(t){var e;if(a.S$)return t;class i extends t{attributeChangedCallback(t,e,i){if(!o(t))return void super.attributeChangedCallback(t,e,i);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const a=h(t);null===i?delete this.dataset[a]:this.dataset[a]=i,this.requestUpdate(h(t),e)}getAttribute(t){return o(t)?super.getAttribute(d(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),o(t)&&(super.removeAttribute(d(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of r){const i=n(e),a=d(i),r=h(i);t.createProperty(e,{attribute:i,noAccessor:!0}),t.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[r]??null},set(t){const i=this.dataset[r]??null;t!==i&&(null===t?delete this.dataset[r]:this.dataset[r]=t,this.requestUpdate(e,i))}})}}(i),i}function d(t){return`data-${t}`}function h(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},25423(t,e,i){i.d(e,{U:()=>r,Z:()=>s});i(44114);var a=i(27525);const r={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class s{get items(){const t=this.getPossibleItems(),e=[];for(const i of t){if(this.isItem(i)){e.push(i);continue}const t=i.item;t&&this.isItem(t)&&e.push(t)}return e}activateNextItem(){const t=this.items,e=(0,a.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,a.wm)(t,e,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,e=(0,a.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,a.u9)(t,e,this.isActivatable,this.wrapNavigation())}constructor(t){this.handleKeydown=t=>{const e=t.key;if(t.defaultPrevented||!this.isNavigableKey(e))return;const i=this.items;if(!i.length)return;const s=(0,a.A6)(i,this.isActivatable);t.preventDefault();const o=this.isRtl(),n=o?r.ArrowRight:r.ArrowLeft,l=o?r.ArrowLeft:r.ArrowRight;let c=null;switch(e){case r.ArrowDown:case l:c=(0,a.wm)(i,s,this.isActivatable,this.wrapNavigation());break;case r.ArrowUp:case n:c=(0,a.u9)(i,s,this.isActivatable,this.wrapNavigation());break;case r.Home:c=(0,a.zT)(i,this.isActivatable);break;case r.End:c=(0,a.RZ)(i,this.isActivatable)}c&&s&&s.item!==c&&(s.item.tabIndex=-1)},this.onDeactivateItems=()=>{const t=this.items;for(const e of t)this.deactivateItem(e)},this.onRequestActivation=t=>{this.onDeactivateItems();const e=t.target;this.activateItem(e),e.focus()},this.onSlotchange=()=>{const t=this.items;let e=!1;for(const i of t){!(!i.disabled&&i.tabIndex>-1)||e?i.tabIndex=-1:(e=!0,i.tabIndex=0)}if(e)return;const i=(0,a.c7)(t,this.isActivatable);i&&(i.tabIndex=0)};const{isItem:e,getPossibleItems:i,isRtl:s,deactivateItem:o,activateItem:n,isNavigableKey:l,isActivatable:c,wrapNavigation:d}=t;this.isItem=e,this.getPossibleItems=i,this.isRtl=s,this.deactivateItem=o,this.activateItem=n,this.isNavigableKey=l,this.isActivatable=c,this.wrapNavigation=d??(()=>!0)}}},27525(t,e,i){function a(t,e=p){const i=n(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 a=t[i];if(0===a.tabIndex&&e(a))return{item:a,index:i}}return null}function n(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 a=t[i];if(e(a))return a}return null}function c(t,e,i=p,r=!0){if(e){const a=function(t,e,i=p,a=!0){for(let r=1;r<t.length;r++){const s=(r+e)%t.length;if(s<e&&!a)return null;const o=t[s];if(i(o))return o}return t[e]?t[e]:null}(t,e.index,i,r);return a&&(a.tabIndex=0,a.focus()),a}return a(t,i)}function d(t,e,i=p,a=!0){if(e){const r=function(t,e,i=p,a=!0){for(let r=1;r<t.length;r++){const s=(e-r+t.length)%t.length;if(s>e&&!a)return null;const o=t[s];if(i(o))return o}return t[e]?t[e]:null}(t,e.index,i,a);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}i.d(e,{A6:()=>o,Ex:()=>l,RN:()=>h,RZ:()=>r,c7:()=>n,cG:()=>u,u9:()=>d,ub:()=>s,wm:()=>c,zT:()=>a})},11245(t,e,i){i.d(e,{R:()=>a});const a=i(5124).AH`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`},49838(t,e,i){i.d(e,{B:()=>l});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var a=i(62826),r=i(5124),s=i(22441),o=i(25423);const n=new Set(Object.values(o.U));class l extends r.WF{get items(){return this.listController.items}render(){return r.qy` <slot -items="${this.listController.onDeactivateItems}" -activation="${this.listController.onRequestActivation}" ="${this.listController.onSlotchange}"> </slot> `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}constructor(){super(),this.listController=new o.Z({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>n.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),r.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,a.Cg)([(0,s.KN)({flatten:!0})],l.prototype,"slotItems",void 0)},82553(t,e,i){i.d(e,{R:()=>a});const a=i(5124).AH`: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))}{.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`},58168(t,e,i){i.d(e,{n:()=>f});var a=i(62826),r=(i(75275),i(22441)),s=i(5124);class o extends s.WF{render(){return s.qy` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" ="${this.handleTextSlotChange}"></slot> <slot class="default-slot" ="${this.handleTextSlotChange}"></slot> <slot name="headline" ="${this.handleTextSlotChange}"></slot> <slot name="supporting-text" ="${this.handleTextSlotChange}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `}handleTextSlotChange(){let t=!1,e=0;for(const i of this.textSlots)if(n(i)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function n(t){for(const e of t.assignedNodes({flatten:!0})){const t=e.nodeType===Node.ELEMENT_NODE,i=e.nodeType===Node.TEXT_NODE&&e.textContent?.match(/\S/);if(t||i)return!0}return!1}(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],o.prototype,"multiline",void 0),(0,a.Cg)([(0,r.YG)(".text slot")],o.prototype,"textSlots",void 0);const l=s.AH`: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 c=class extends o{};c.styles=[l],c=(0,a.Cg)([(0,r.EM)("md-item")],c);i(71970);var d=i(6412),h=i(7872),u=i(1024),p=i(27525);const m=(0,u.n)(s.WF);class f extends m{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem(s.qy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=h.eu`a`;break;case"button":i=h.eu`button`;break;default:i=h.eu`li`}const a="text"!==this.type,r=e&&this.target?this.target:s.s6;return h.qy`
<${i}
id="item"
tabindex="${this.isDisabled||!a?-1:0}"
?disabled=${this.isDisabled}
role="listitem"
aria-selected=${this.ariaSelected||s.s6}
aria-checked=${this.ariaChecked||s.s6}
aria-expanded=${this.ariaExpanded||s.s6}
aria-haspopup=${this.ariaHasPopup||s.s6}
class="list-item ${(0,d.H)(this.getRenderClasses())}"
href=${this.href||s.s6}
target=${r}
=${this.onFocus}
>${t}</${i}>
`}renderRipple(){return"text"===this.type?s.s6:s.qy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?s.s6:s.qy` <md-focus-ring -changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return s.qy` <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,p.cG)())}focus(){this.listItemRoot?.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=""}}f.shadowRootOptions={...s.WF.shadowRootOptions,delegatesFocus:!0},(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],f.prototype,"disabled",void 0),(0,a.Cg)([(0,r.MZ)({reflect:!0})],f.prototype,"type",void 0),(0,a.Cg)([(0,r.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],f.prototype,"isListItem",void 0),(0,a.Cg)([(0,r.MZ)()],f.prototype,"href",void 0),(0,a.Cg)([(0,r.MZ)()],f.prototype,"target",void 0),(0,a.Cg)([(0,r.P)(".list-item")],f.prototype,"listItemRoot",void 0)},71970(t,e,i){var a=i(62826),r=i(22441),s=i(91382),o=i(96245);let n=class extends s.n{};n.styles=[o.R],n=(0,a.Cg)([(0,r.EM)("md-ripple")],n)},74985(t,e,i){i.d(e,{P:()=>n});i(88454),i(29452);var a=i(5055),r=i(42017),s=i(63937);const o=t=>(0,s.ps)(t)?t._$litType$.h:t.strings,n=(0,r.u$)(class extends r.WL{render(t){return[t]}update(t,[e]){const i=(0,s.qb)(this.it)?o(this.it):null,r=(0,s.qb)(e)?o(e):null;if(null!==i&&(null===r||i!==r)){const e=(0,s.cN)(t).pop();let r=this.et.get(i);if(void 0===r){const t=document.createDocumentFragment();r=(0,a.XX)(a.s6,t),r.setConnected(!1),this.et.set(i,r)}(0,s.mY)(r,[e]),(0,s.Dx)(r,void 0,e)}if(null!==r){if(null===i||i!==r){const e=this.et.get(r);if(void 0!==e){const i=(0,s.cN)(e).pop();(0,s.Jz)(t),(0,s.Dx)(t,void 0,i),(0,s.mY)(t,[i])}}this.it=e}else this.it=void 0;return this.render(e)}constructor(t){super(t),this.et=new WeakMap}})},89784(t,e,i){i.d(e,{W:()=>n});i(74423),i(18111),i(18237),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var a=i(5055),r=i(42017);const s="important",o=" !"+s,n=(0,r.u$)(class extends r.WL{render(t){return Object.keys(t).reduce((e,i)=>{const a=t[i];return null==a?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}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 a=e[t];if(null!=a){this.ft.add(t);const e="string"==typeof a&&a.endsWith(o);t.includes("-")||e?i.setProperty(t,e?a.slice(0,-11):a,e?s:""):i[t]=a}}return a.c0}constructor(t){if(super(t),t.type!==r.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.")}})}};