iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
20 lines • 31.2 kB
JavaScript
/*! For license information please see 42981.a9a166adbc95a4bd.js.LICENSE.txt */
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[42981],{35370:function(t,e,i){var r=i(26198);t.exports=function(t,e,i){for(var o=0,s=arguments.length>2?i:r(e),n=new t(s);s>o;)n[o]=e[o++];return n}},77957:function(t,e,i){var r=i(76080),o=i(79504),s=i(47055),n=i(48981),a=i(56969),l=i(26198),d=i(2360),c=i(35370),h=Array,u=o([].push);t.exports=function(t,e,i,o){for(var p,m,f,v=n(t),g=s(v),b=r(e,i),y=d(null),w=l(g),x=0;w>x;x++)f=g[x],(m=a(b(f,x,v)))in y?u(y[m],f):y[m]=[f];if(o&&(p=o(v))!==h)for(m in y)y[m]=c(p,y[m]);return y}},69479:function(t,e,i){var r=i(43724),o=i(62106),s=i(65213),n=i(67979);r&&!s.correct&&(o(RegExp.prototype,"flags",{configurable:!0,get:n}),s.correct=!0)},46058:function(t,e,i){var r=i(46518),o=i(77957),s=i(6469);r({target:"Array",proto:!0},{group:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),s("group")},52630:function(t,e,i){i.a(t,async function(t,r){try{i.d(e,{A:function(){return I}});i(74423),i(44114),i(18111),i(22489),i(3362),i(27495),i(62953);var o=i(5124),s=i(67576),n=i(6412),a=i(17051),l=i(42462),d=i(28438),c=i(98779),h=i(27259),u=i(25877),p=i(984),m=i(95010),f=i(9395),v=i(717),g=i(40158),b=i(51920),y=t([g]);g=(y.then?(await y)():y)[0];let A,k=t=>t;var w=Object.defineProperty,x=Object.getOwnPropertyDescriptor,C=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?x(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&w(e,i,s),s};let I=class extends v.A{connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.addEventListener("mouseout",this.handleMouseOut),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||(this.id=(0,m.N)("wa-tooltip-")),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}addToAriaLabelledBy(t,e){const i=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);i.includes(e)||(i.push(e),t.setAttribute("aria-labelledby",i.join(" ")))}removeFromAriaLabelledBy(t,e){const i=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(t=>t!==e);i.length>0?t.setAttribute("aria-labelledby",i.join(" ")):t.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;const t=new c.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),(0,u.AZ)(this),this.body.hidden=!1,this.popup.active=!0,await(0,h.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const t=new d.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),await(0,h.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.body.hidden=!0,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:r}=this.eventController;e&&(this.addToAriaLabelledBy(e,this.id),e.addEventListener("blur",this.handleBlur,{capture:!0,signal:r}),e.addEventListener("focus",this.handleFocus,{capture:!0,signal:r}),e.addEventListener("click",this.handleClick,{signal:r}),e.addEventListener("mouseover",this.handleMouseOver,{signal:r}),e.addEventListener("mouseout",this.handleMouseOut,{signal:r})),i&&(this.removeFromAriaLabelledBy(i,this.id),i.removeEventListener("blur",this.handleBlur,{capture:!0}),i.removeEventListener("focus",this.handleFocus,{capture:!0}),i.removeEventListener("click",this.handleClick),i.removeEventListener("mouseover",this.handleMouseOver),i.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=e}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,(0,p.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,p.l)(this,"wa-after-hide")}render(){return(0,o.qy)(A||(A=k` <wa-popup part="base" exportparts="
popup:base__popup,
arrow:base__arrow
" class="${0}" placement="${0}" distance="${0}" skidding="${0}" flip shift ?arrow="${0}" hover-bridge .anchor="${0}"> <div part="body" class="body"> <slot></slot> </div> </wa-popup> `),(0,n.H)({tooltip:!0,"tooltip-open":this.open}),this.placement,this.distance,this.skidding,!this.withoutArrow,this.anchor)}constructor(){super(...arguments),this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger="hover focus",this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){var t;const e=Boolean(null===(t=this.anchor)||void 0===t?void 0:t.matches(":hover")),i=this.matches(":hover");if(e||i)return;clearTimeout(this.hoverTimeout),e||i||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}};I.css=b.A,I.dependencies={"wa-popup":g.A},C([(0,s.P)("slot:not([name])")],I.prototype,"defaultSlot",2),C([(0,s.P)(".body")],I.prototype,"body",2),C([(0,s.P)("wa-popup")],I.prototype,"popup",2),C([(0,s.MZ)()],I.prototype,"placement",2),C([(0,s.MZ)({type:Boolean,reflect:!0})],I.prototype,"disabled",2),C([(0,s.MZ)({type:Number})],I.prototype,"distance",2),C([(0,s.MZ)({type:Boolean,reflect:!0})],I.prototype,"open",2),C([(0,s.MZ)({type:Number})],I.prototype,"skidding",2),C([(0,s.MZ)({attribute:"show-delay",type:Number})],I.prototype,"showDelay",2),C([(0,s.MZ)({attribute:"hide-delay",type:Number})],I.prototype,"hideDelay",2),C([(0,s.MZ)()],I.prototype,"trigger",2),C([(0,s.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],I.prototype,"withoutArrow",2),C([(0,s.MZ)()],I.prototype,"for",2),C([(0,s.wk)()],I.prototype,"anchor",2),C([(0,f.w)("open",{waitUntilFirstUpdate:!0})],I.prototype,"handleOpenChange",1),C([(0,f.w)("for")],I.prototype,"handleForChange",1),C([(0,f.w)(["distance","placement","skidding"])],I.prototype,"handleOptionsChange",1),C([(0,f.w)("disabled")],I.prototype,"handleDisabledChange",1),I=C([(0,s.EM)("wa-tooltip")],I),r()}catch(A){r(A)}})},51920:function(t,e,i){i.d(e,{A:function(){return o}});let r;var o=(0,i(5124).AH)(r||(r=(t=>t)`:host{--max-width:30ch;display:inline-block;position:absolute;color:var(--wa-tooltip-content-color);font-size:var(--wa-tooltip-font-size);line-height:var(--wa-tooltip-line-height);text-align:start;white-space:normal}.tooltip{--arrow-size:var(--wa-tooltip-arrow-size);--arrow-color:var(--wa-tooltip-background-color)}.tooltip::part(popup){z-index:1000}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.body{display:block;width:max-content;max-width:var(--max-width);border-radius:var(--wa-tooltip-border-radius);background-color:var(--wa-tooltip-background-color);border:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);padding:.25em .5em;user-select:none;-webkit-user-select:none}.tooltip{--popup-border-width:var(--wa-tooltip-border-width)}.tooltip::part(arrow){border-bottom:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);border-right:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color)}`))},984:function(t,e,i){i.d(e,{l:function(){return r}});i(3362);function r(t,e){return new Promise(i=>{t.addEventListener(e,function r(o){o.target===t&&(t.removeEventListener(e,r),i())})})}},95010:function(t,e,i){i.d(e,{q:function(){return o},N:function(){return s}});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 r=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&i[t]];return e};function o(t,e,i){const r=t=>Object.is(t,-0)?0:t;return r(t<e?e:t>i?i:t)}function s(t=""){return`${t}${r()}`}},75275:function(t,e,i){var r=i(40445),o=i(67576),s=(i(89463),i(62953),i(5124)),n=i(76482);const a=["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){var e,i;if(!t[d]){switch(t.type){default:return;case"focusin":this.visible=null!==(e=null===(i=this.control)||void 0===i?void 0:i.matches(":focus-visible"))&&void 0!==e&&e;break;case"focusout":case"pointerdown":this.visible=!1}t[d]=!0}}onControlChange(t,e){if(!s.S$)for(const i of a)null==t||t.removeEventListener(i,this),null==e||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 n.i(this,this.onControlChange.bind(this))}}(0,r.Cg)([(0,o.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing");let c;const h=(0,s.AH)(c||(c=(t=>t)`: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)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`));let u=class extends l{};u.styles=[h],u=(0,r.Cg)([(0,o.EM)("md-focus-ring")],u)},1024:function(t,e,i){i.d(e,{n:function(){return d}});i(89463),i(27495),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(25440),i(62953);var r=i(5124);i(74423);const o=["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=o.map(a);function n(t){return s.includes(t)}function a(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(r.S$)return t;class i extends t{attributeChangedCallback(t,e,i){if(!n(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 r=h(t);null===i?delete this.dataset[r]:this.dataset[r]=i,this.requestUpdate(h(t),e)}getAttribute(t){return n(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),n(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of o){const i=a(e),r=c(i),o=h(i);t.createProperty(e,{attribute:i,noAccessor:!0}),t.createProperty(Symbol(r),{attribute:r,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){var t;return null!==(t=this.dataset[o])&&void 0!==t?t:null},set(t){var i;const r=null!==(i=this.dataset[o])&&void 0!==i?i:null;t!==r&&(null===t?delete this.dataset[o]:this.dataset[o]=t,this.requestUpdate(e,r))}})}}(i),i}function c(t){return`data-${t}`}function h(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},25423:function(t,e,i){i.d(e,{U:function(){return o},Z:function(){return s}});i(44114),i(62953);var r=i(27525);const o={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,r.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,r.wm)(t,e,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,e=(0,r.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,r.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,r.A6)(i,this.isActivatable);t.preventDefault();const n=this.isRtl(),a=n?o.ArrowRight:o.ArrowLeft,l=n?o.ArrowLeft:o.ArrowRight;let d=null;switch(e){case o.ArrowDown:case l:d=(0,r.wm)(i,s,this.isActivatable,this.wrapNavigation());break;case o.ArrowUp:case a:d=(0,r.u9)(i,s,this.isActivatable,this.wrapNavigation());break;case o.Home:d=(0,r.zT)(i,this.isActivatable);break;case o.End:d=(0,r.RZ)(i,this.isActivatable)}d&&s&&s.item!==d&&(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 r of t){!(!r.disabled&&r.tabIndex>-1)||e?r.tabIndex=-1:(e=!0,r.tabIndex=0)}if(e)return;const i=(0,r.c7)(t,this.isActivatable);i&&(i.tabIndex=0)};const{isItem:e,getPossibleItems:i,isRtl:s,deactivateItem:n,activateItem:a,isNavigableKey:l,isActivatable:d,wrapNavigation:c}=t;this.isItem=e,this.getPossibleItems=i,this.isRtl=s,this.deactivateItem=n,this.activateItem=a,this.isNavigableKey=l,this.isActivatable=d,this.wrapNavigation=null!=c?c:()=>!0}}},27525:function(t,e,i){i.d(e,{A6:function(){return n},Ex:function(){return l},RN:function(){return h},RZ:function(){return o},c7:function(){return a},cG:function(){return u},u9:function(){return c},ub:function(){return s},wm:function(){return d},zT:function(){return r}});i(62953);function r(t,e=p){const i=a(t,e);return i&&(i.tabIndex=0,i.focus()),i}function o(t,e=p){const i=l(t,e);return i&&(i.tabIndex=0,i.focus()),i}function s(t,e=p){const i=n(t,e);return i&&(i.item.tabIndex=-1),i}function n(t,e=p){for(let i=0;i<t.length;i++){const r=t[i];if(0===r.tabIndex&&e(r))return{item:r,index:i}}return null}function a(t,e=p){for(const i of t)if(e(i))return i;return null}function l(t,e=p){for(let i=t.length-1;i>=0;i--){const r=t[i];if(e(r))return r}return null}function d(t,e,i=p,o=!0){if(e){const r=function(t,e,i=p,r=!0){for(let o=1;o<t.length;o++){const s=(o+e)%t.length;if(s<e&&!r)return null;const n=t[s];if(i(n))return n}return t[e]?t[e]:null}(t,e.index,i,o);return r&&(r.tabIndex=0,r.focus()),r}return r(t,i)}function c(t,e,i=p,r=!0){if(e){const o=function(t,e,i=p,r=!0){for(let o=1;o<t.length;o++){const s=(e-o+t.length)%t.length;if(s>e&&!r)return null;const n=t[s];if(i(n))return n}return t[e]?t[e]:null}(t,e.index,i,r);return o&&(o.tabIndex=0,o.focus()),o}return o(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}},11245:function(t,e,i){i.d(e,{R:function(){return o}});let r;const o=(0,i(5124).AH)(r||(r=(t=>t)`: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:function(t,e,i){i.d(e,{B:function(){return c}});i(93775),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);var r=i(40445),o=i(5124),s=i(67576),n=i(25423);let a,l=t=>t;const d=new Set(Object.values(n.U));class c extends o.WF{get items(){return this.listController.items}render(){return(0,o.qy)(a||(a=l` <slot @deactivate-items="${0}" @request-activation="${0}" @slotchange="${0}"> </slot> `),this.listController.onDeactivateItems,this.listController.onRequestActivation,this.listController.onSlotchange)}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}constructor(){super(),this.listController=new n.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=>d.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),o.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,r.Cg)([(0,s.KN)({flatten:!0})],c.prototype,"slotItems",void 0)},82553:function(t,e,i){i.d(e,{R:function(){return o}});let r;const o=(0,i(5124).AH)(r||(r=(t=>t)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`))},58168:function(t,e,i){i.d(e,{n:function(){return R}});i(62953);var r=i(40445),o=(i(75275),i(67576)),s=(i(27495),i(5124));let n,a=t=>t;class l extends s.WF{render(){return(0,s.qy)(n||(n=a` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${0}"></slot> <slot class="default-slot" @slotchange="${0}"></slot> <slot name="headline" @slotchange="${0}"></slot> <slot name="supporting-text" @slotchange="${0}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){let t=!1,e=0;for(const i of this.textSlots)if(d(i)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function d(t){for(const i of t.assignedNodes({flatten:!0})){var e;const t=i.nodeType===Node.ELEMENT_NODE,r=i.nodeType===Node.TEXT_NODE&&(null===(e=i.textContent)||void 0===e?void 0:e.match(/\S/));if(t||r)return!0}return!1}(0,r.Cg)([(0,o.MZ)({type:Boolean,reflect:!0})],l.prototype,"multiline",void 0),(0,r.Cg)([(0,o.YG)(".text slot")],l.prototype,"textSlots",void 0);let c;const h=(0,s.AH)(c||(c=(t=>t)`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`));let u=class extends l{};u.styles=[h],u=(0,r.Cg)([(0,o.EM)("md-item")],u);i(71970);var p=i(6412),m=i(7872),f=i(1024),v=i(27525);let g,b,y,w,x,C,A,k,I=t=>t;const E=(0,f.n)(s.WF);class R extends E{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,s.qy)(g||(g=I` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=(0,m.eu)(b||(b=I`a`));break;case"button":i=(0,m.eu)(y||(y=I`button`));break;default:i=(0,m.eu)(w||(w=I`li`))}const r="text"!==this.type,o=e&&this.target?this.target:s.s6;return(0,m.qy)(x||(x=I`
<${0}
id="item"
tabindex="${0}"
?disabled=${0}
role="listitem"
aria-selected=${0}
aria-checked=${0}
aria-expanded=${0}
aria-haspopup=${0}
class="list-item ${0}"
href=${0}
target=${0}
@focus=${0}
>${0}</${0}>
`),i,this.isDisabled||!r?-1:0,this.isDisabled,this.ariaSelected||s.s6,this.ariaChecked||s.s6,this.ariaExpanded||s.s6,this.ariaHasPopup||s.s6,(0,p.H)(this.getRenderClasses()),this.href||s.s6,o,this.onFocus,t,i)}renderRipple(){return"text"===this.type?s.s6:(0,s.qy)(C||(C=I` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?s.s6:(0,s.qy)(A||(A=I` <md-focus-ring @visibility-changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,s.qy)(k||(k=I` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,v.cG)())}focus(){var t;null===(t=this.listItemRoot)||void 0===t||t.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}R.shadowRootOptions=Object.assign(Object.assign({},s.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,r.Cg)([(0,o.MZ)({type:Boolean,reflect:!0})],R.prototype,"disabled",void 0),(0,r.Cg)([(0,o.MZ)({reflect:!0})],R.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],R.prototype,"isListItem",void 0),(0,r.Cg)([(0,o.MZ)()],R.prototype,"href",void 0),(0,r.Cg)([(0,o.MZ)()],R.prototype,"target",void 0),(0,r.Cg)([(0,o.P)(".list-item")],R.prototype,"listItemRoot",void 0)},71970:function(t,e,i){var r=i(40445),o=i(67576),s=i(91382),n=i(96245);let a=class extends s.n{};a.styles=[n.R],a=(0,r.Cg)([(0,o.EM)("md-ripple")],a)},95192:function(t,e,i){i.d(e,{IU:function(){return d},Jt:function(){return a},Yd:function(){return r},hZ:function(){return l},y$:function(){return o}});i(44114),i(18111),i(7588),i(61701),i(3362),i(62953);function r(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,s)=>(()=>{if(i)return i;const o=indexedDB.open(t);return o.onupgradeneeded=()=>o.result.createObjectStore(e),i=r(o),i.then(t=>{t.onclose=()=>i=void 0},()=>{}),i})().then(t=>s(t.transaction(e,o).objectStore(e)))}let s;function n(){return s||(s=o("keyval-store","keyval")),s}function a(t,e=n()){return e("readonly",e=>r(e.get(t)))}function l(t,e,i=n()){return i("readwrite",i=>(i.put(e,t),r(i.transaction)))}function d(t=n()){return t("readwrite",t=>(t.clear(),r(t.transaction)))}}}]);