iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
19 lines • 30.2 kB
JavaScript
/*! For license information please see 99713.ab77e4c0fd436e5e.js.LICENSE.txt */
export const __webpack_ids__=["99713"];export const __webpack_modules__={4918:function(t,e,r){r.d(e,{a:()=>m});var i=r(9065),o=r(80573),s={ROOT:"mdc-form-field"},a={LABEL_SELECTOR:".mdc-form-field > label"};const n=function(t){function e(r){var o=t.call(this,(0,i.__assign)((0,i.__assign)({},e.defaultAdapter),r))||this;return o.click=function(){o.handleClick()},o}return(0,i.__extends)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(o.K);var l=r(11911),d=r(88618),c=r(78611),h=r(57243),p=r(15093),u=r(35359);class m extends l.H{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=n}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof d.Wg){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof d.Wg){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return h.dy` <div class="mdc-form-field ${(0,u.$)(t)}"> <slot></slot> <label class="mdc-label" ="${this._labelClick}">${this.label}</label> </div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}(0,i.__decorate)([(0,p.Cb)({type:Boolean})],m.prototype,"alignEnd",void 0),(0,i.__decorate)([(0,p.Cb)({type:Boolean})],m.prototype,"spaceBetween",void 0),(0,i.__decorate)([(0,p.Cb)({type:Boolean})],m.prototype,"nowrap",void 0),(0,i.__decorate)([(0,p.Cb)({type:String}),(0,c.P)((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],m.prototype,"label",void 0),(0,i.__decorate)([(0,p.IO)(".mdc-form-field")],m.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,p.vZ)("",!0,"*")],m.prototype,"slottedInputs",void 0),(0,i.__decorate)([(0,p.IO)("label")],m.prototype,"labelEl",void 0)},6394:function(t,e,r){r.d(e,{W:()=>i});const i=r(57243).iv`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`},87319:function(t,e,r){var i=r(9065),o=r(15093),s=r(65703),a=r(46289);let n=class extends s.K{};n.styles=[a.W],n=(0,i.__decorate)([(0,o.Mo)("mwc-list-item")],n)},12582:function(t,e,r){r.d(e,{Z:()=>i});r(9359),r(31526),r(70104);function i(t){if(!t||"object"!=typeof t)return t;if("[object Date]"==Object.prototype.toString.call(t))return new Date(t.getTime());if(Array.isArray(t))return t.map(i);var e={};return Object.keys(t).forEach((function(r){e[r]=i(t[r])})),e}},31126:function(t,e,r){var i=r(71998);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},68107:function(t,e,r){var i=r(40810),o=r(73994),s=r(63983),a=r(71998),n=r(4576);i({target:"Iterator",proto:!0,real:!0},{every:function(t){a(this),s(t);var e=n(this),r=0;return!o(e,(function(e,i){if(!t(e,r++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},32517:function(t,e,r){var i=r(1569),o=r(85779),s=r(27803),a=r(31126),n=r(29660),l=i.RegExp,d=l.prototype;o&&n((function(){var t=!0;try{l(".","d")}catch(e){t=!1}var e={},r="",i=t?"dgimsy":"gimsy",o=function(t,i){Object.defineProperty(e,t,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(d,"flags").get.call(e)!==i||r!==i}))&&s(d,"flags",{configurable:!0,get:a})},60738:function(t,e,r){r.d(e,{F_:()=>c,HQ:()=>l,kr:()=>o});class i extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=null!=r&&r}}function o(t){return t}class s{constructor(t,e,r,i){var o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=null!==(o=t.subscribe)&&void 0!==o&&o}else this.context=e,this.callback=r,this.subscribe=null!=i&&i;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new i(this.context,this.t,this.subscribe))}}r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);class a{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}}class n extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class l extends a{constructor(t,e,r){super(void 0!==e.context?e.initialValue:r),this.onContextRequest=t=>{const e=t.composedPath()[0];t.context===this.context&&e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{const e=t.composedPath()[0];if(t.context!==this.context||e===this.host)return;const r=new Set;for(const[t,{consumerHost:e}]of this.subscriptions)r.has(t)||(r.add(t),e.dispatchEvent(new i(this.context,t,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new n(this.context))}}r(92745);var d=r(64026);function c({context:t,subscribe:e}){return(0,d.eZ)({finisher:(r,i)=>{r.addInitializer((r=>{new s(r,{context:t,callback:t=>{r[i]=t},subscribe:e})}))}})}},1231:function(t,e,r){r.d(e,{B:()=>l});var i=r(9065),o=r(15093),s=r(57243);class a extends s.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],a.prototype,"inset",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],a.prototype,"insetStart",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],a.prototype,"insetEnd",void 0);const n=s.iv`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}{:host::before{background:CanvasText}}`;let l=class extends a{};l.styles=[n],l=(0,i.__decorate)([(0,o.Mo)("md-divider")],l)},54835:function(t,e,r){var i=r(9065),o=r(15093),s=r(57243);class a extends s.oi{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return s.dy`<span class="shadow"></span>`}}const n=s.iv`.shadow,.shadow::after,.shadow::before,:host{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::after,.shadow::before{content:"";transition-property:box-shadow,opacity;--_level:var(--md-elevation-level, 0);--_shadow-color:var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}`;let l=class extends a{};l.styles=[n],l=(0,i.__decorate)([(0,o.Mo)("md-elevation")],l)},57618:function(t,e,r){var i=r(9065),o=r(15093),s=r(57243),a=r(19799);const n=["focusin","focusout","pointerdown"];class l extends s.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new a.J(this,this.onControlChange.bind(this))}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[d]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[d]=!0}}onControlChange(t,e){if(!s.sk)for(const r of n)t?.removeEventListener(r,this),e?.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing"),c=s.iv`: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=[c],h=(0,i.__decorate)([(0,o.Mo)("md-focus-ring")],h)},13823:function(t,e,r){r.d(e,{T:()=>d});r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);var i=r(57243);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(n);function a(t){return s.includes(t)}function n(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(i.sk)return t;class r extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(t,e,r){if(!a(t))return void super.attributeChangedCallback(t,e,r);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const i=h(t);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(h(t),e)}getAttribute(t){return a(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),a(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}}return e=l,function(t){for(const e of o){const r=n(e),i=c(r),o=h(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[o]??null},set(t){const r=this.dataset[o]??null;t!==r&&(null===t?delete this.dataset[o]:this.dataset[o]=t,this.requestUpdate(e,r))}})}}(r),r}function c(t){return`data-${t}`}function h(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}},43895:function(t,e,r){r.d(e,{_:()=>o});r(92745),r(9359),r(31526);var i=r(7162);class o{constructor(t,e){this.host=t,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.CLICK_SELECTION}))},this.onKeydown=t=>{if(this.host.href&&"Enter"===t.code){const t=this.getInteractiveElement();t instanceof HTMLAnchorElement&&t.click()}if(t.defaultPrevented)return;const e=t.code;this.host.keepOpen&&"Escape"!==e||(0,i.kE)(e)&&(t.preventDefault(),this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.KEYDOWN,key:e})))},this.getHeadlineElements=e.getHeadlineElements,this.getSupportingTextElements=e.getSupportingTextElements,this.getDefaultElements=e.getDefaultElements,this.getInteractiveElement=e.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(null!==this.internalTypeaheadText)return this.internalTypeaheadText;const t=this.getHeadlineElements(),e=[];return t.forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),0===e.length&&this.getDefaultElements().forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),0===e.length&&this.getSupportingTextElements().forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),e.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:return"li"}}get role(){return"option"===this.host.type?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(t){this.internalTypeaheadText=t}}},99072:function(t,e,r){r.d(e,{W:()=>i});const i=r(57243).iv`:host{display:flex;--md-ripple-hover-color:var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, .3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;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}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-menu-item-one-line-container-height,56px);padding-top:var(--md-menu-item-top-space,12px);padding-bottom:var(--md-menu-item-bottom-space,12px);padding-inline-start:var(--md-menu-item-leading-space,16px);padding-inline-end:var(--md-menu-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-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-menu-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-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-menu-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}.list-item{background-color:var(--md-menu-item-container-color,transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color,var(--md-sys-color-secondary-container,#e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color,var(--md-sys-color-on-secondary-container,#1d192b))}{:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}`},28674:function(t,e,r){r.d(e,{i:()=>u});var i=r(9065),o=r(15093),s=(r(57618),r(26499),r(23111),r(57243)),a=r(35359),n=r(79840),l=r(13823),d=r(43895);const c=(0,l.T)(s.oi);class h extends c{constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new d._(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(t){this.menuItemController.setTypeaheadText(t)}render(){return this.renderListItem(s.dy` <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 r;switch(this.menuItemController.tagName){case"a":r=n.i0`a`;break;case"button":r=n.i0`button`;break;default:r=n.i0`li`}const i=e&&this.target?this.target:s.Ld;return n.dy`
<${r}
id="item"
tabindex=${this.disabled&&!e?-1:0}
role=${this.menuItemController.role}
aria-label=${this.ariaLabel||s.Ld}
aria-selected=${this.ariaSelected||s.Ld}
aria-checked=${this.ariaChecked||s.Ld}
aria-expanded=${this.ariaExpanded||s.Ld}
aria-haspopup=${this.ariaHasPopup||s.Ld}
class="list-item ${(0,a.$)(this.getRenderClasses())}"
href=${this.href||s.Ld}
target=${i}
=${this.menuItemController.onClick}
=${this.menuItemController.onKeydown}
>${t}</${r}>
`}renderRipple(){return s.dy` <md-ripple part="ripple" for="item" ?disabled="${this.disabled}"></md-ripple>`}renderFocusRing(){return s.dy` <md-focus-ring part="focus-ring" for="item" inward></md-focus-ring>`}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return s.dy` <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> `}focus(){this.listItemRoot?.focus()}}h.shadowRootOptions={...s.oi.shadowRootOptions,delegatesFocus:!0},(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],h.prototype,"disabled",void 0),(0,i.__decorate)([(0,o.Cb)()],h.prototype,"type",void 0),(0,i.__decorate)([(0,o.Cb)()],h.prototype,"href",void 0),(0,i.__decorate)([(0,o.Cb)()],h.prototype,"target",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"keep-open"})],h.prototype,"keepOpen",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],h.prototype,"selected",void 0),(0,i.__decorate)([(0,o.IO)(".list-item")],h.prototype,"listItemRoot",void 0),(0,i.__decorate)([(0,o.NH)({slot:"headline"})],h.prototype,"headlineElements",void 0),(0,i.__decorate)([(0,o.NH)({slot:"supporting-text"})],h.prototype,"supportingTextElements",void 0),(0,i.__decorate)([(0,o.vZ)({slot:""})],h.prototype,"defaultElements",void 0),(0,i.__decorate)([(0,o.Cb)({attribute:"typeahead-text"})],h.prototype,"typeaheadText",null);var p=r(99072);let u=class extends h{};u.styles=[p.W],u=(0,i.__decorate)([(0,o.Mo)("md-menu-item")],u)},27608:function(t,e,r){r.d(e,{MT:()=>o,RV:()=>i,U2:()=>n,ZH:()=>d,t8:()=>l});r(92745),r(9359),r(31526),r(70104);function i(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function o(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const o=i(r);return(t,r)=>o.then((i=>r(i.transaction(e,t).objectStore(e))))}let s;function a(){return s||(s=o("keyval-store","keyval")),s}function n(t,e=a()){return e("readonly",(e=>i(e.get(t))))}function l(t,e,r=a()){return r("readwrite",(r=>(r.put(e,t),i(r.transaction))))}function d(t=a()){return t("readwrite",(t=>(t.clear(),i(t.transaction))))}},94571:function(t,e,r){r.d(e,{C:()=>p});r(9359),r(1331);var i=r(2841),o=r(53232),s=r(1714);class a{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class n{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var l=r(45779);const d=t=>!(0,o.pt)(t)&&"function"==typeof t.then,c=1073741823;class h extends s.sR{constructor(){super(...arguments),this._$C_t=c,this._$Cwt=[],this._$Cq=new a(this),this._$CK=new n}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:i.Jb}update(t,e){const r=this._$Cwt;let o=r.length;this._$Cwt=e;const s=this._$Cq,a=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const i=e[t];if(!d(i))return this._$C_t=t,i;t<o&&i===r[t]||(this._$C_t=c,o=0,Promise.resolve(i).then((async t=>{for(;a.get();)await a.get();const e=s.deref();if(void 0!==e){const r=e._$Cwt.indexOf(i);r>-1&&r<e._$C_t&&(e._$C_t=r,e.setValue(t))}})))}return i.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const p=(0,l.XM)(h)},79840:function(t,e,r){r.d(e,{i0:()=>a,dy:()=>d});r(92745),r(9359),r(48136);var i=r(2841);const o=Symbol.for(""),s=t=>{if((null==t?void 0:t.r)===o)return null==t?void 0:t._$litStatic$},a=(t,...e)=>({_$litStatic$:e.reduce(((e,r,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(r)+t[i+1]),t[0]),r:o}),n=new Map,l=t=>(e,...r)=>{const i=r.length;let o,a;const l=[],d=[];let c,h=0,p=!1;for(;h<i;){for(c=e[h];h<i&&void 0!==(a=r[h],o=s(a));)c+=o+e[++h],p=!0;h!==i&&d.push(a),l.push(c),h++}if(h===i&&l.push(e[i]),p){const t=l.join("$$lit$$");void 0===(e=n.get(t))&&(l.raw=l,n.set(t,e=l)),r=d}return t(e,...r)},d=l(i.dy);l(i.YP)}};
//# sourceMappingURL=99713.ab77e4c0fd436e5e.js.map