/*! For license information please see 29773.a6b23e71c327fc3e.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["29773"],{26218:function(t,a,e){e.d(a,{a:function(){return i}});e(16280);const o=(0,e(77796).n)(t=>{history.replaceState({scrollPosition:t},"")},300);function i(t){return(a,e)=>{if("object"==typeof e)throw new Error("This decorator does not support this compilation type.");const i=a.connectedCallback;a.connectedCallback=function(){i.call(this);const a=this[e];a&&this.updateComplete.then(()=>{const e=this.renderRoot.querySelector(t);e&&setTimeout(()=>{e.scrollTop=a},0)})};const r=Object.getOwnPropertyDescriptor(a,e);let s;if(void 0===r)s={get(){var t;return this[`__${String(e)}`]||(null===(t=history.state)||void 0===t?void 0:t.scrollPosition)},set(t){o(t),this[`__${String(e)}`]=t},configurable:!0,enumerable:!0};else{const t=r.set;s=Object.assign(Object.assign({},r),{},{set(a){o(a),this[`__${String(e)}`]=a,null==t||t.call(this,a)}})}Object.defineProperty(a,e,s)}}},77796:function(t,a,e){e.d(a,{n:function(){return o}});e(62953);const o=(t,a,e=!0,o=!0)=>{let i,r=0;const s=(...s)=>{const n=()=>{r=!1===e?0:Date.now(),i=void 0,t(...s)},l=Date.now();r||!1!==e||(r=l);const c=a-(l-r);c<=0||c>a?(i&&(clearTimeout(i),i=void 0),r=l,t(...s)):i||!1===o||(i=window.setTimeout(n,c))};return s.cancel=()=>{clearTimeout(i),i=void 0,r=0},s}},76776:function(t,a,e){e(62953);var o=e(40445),i=e(96196),r=e(77845);let s,n,l,c=t=>t;class h extends i.WF{render(){return(0,i.qy)(s||(s=c` ${0} <slot></slot> `),this.header?(0,i.qy)(n||(n=c`<h1 class="card-header">${0}</h1>`),this.header):i.s6)}constructor(...t){super(...t),this.raised=!1}}h.styles=(0,i.AH)(l||(l=c`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, var(--ha-font-size-2xl));letter-spacing:-.012em;line-height:var(--ha-line-height-expanded);padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4);display:block;margin-block-start:0;margin-block-end:0;font-weight:var(--ha-font-weight-normal)}
    :host
      ::slotted(
        .card-content:not(:nth-child(1 of .card-content, .card-header))
      ),
    slot:not(:first-child)::slotted(.card-content) {
      padding-top: 0;
      margin-top: calc(var(--ha-space-2) * -1);
    }
    :host ::slotted(.card-content){padding:var(--ha-space-4)}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:var(--ha-space-2)}`)),(0,o.Cg)([(0,r.MZ)()],h.prototype,"header",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],h.prototype,"raised",void 0),h=(0,o.Cg)([(0,r.EM)("ha-card")],h)},70947:function(t,a,e){e(62953);var o=e(40445),i=e(90075),r=(e(43776),e(96196)),s=e(77845);e(67094);let n,l,c=t=>t;class h extends i.A{renderCheckboxIcon(){return(0,r.qy)(n||(n=c` <ha-svg-icon id="check" part="checkmark" .path="${0}"></ha-svg-icon> `),this.checked?"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z":"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z")}static get styles(){return[i.A.styles,(0,r.AH)(l||(l=c`:host{min-height:var(--ha-space-10)}#check{visibility:visible;flex-shrink:0}#icon ::slotted(*){color:var(--ha-color-on-neutral-normal)}:host([variant=danger]) #icon ::slotted(*){color:var(--ha-color-on-danger-quiet)}:host([selected]){font-weight:var(--ha-font-weight-medium);color:var(--primary-color);background-color:var(--ha-color-fill-primary-quiet-resting);--icon-primary-color:var(--primary-color)}:host([selected]:hover){background-color:var(--ha-color-fill-primary-quiet-hover)}`))]}constructor(...t){super(...t),this.selected=!1}}(0,o.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],h.prototype,"selected",void 0),h=(0,o.Cg)([(0,s.EM)("ha-dropdown-item")],h)},29823:function(t,a,e){e.a(t,async function(t,a){try{e(3362),e(62953);var o=e(40445),i=e(52254),r=e(96196),s=e(77845),n=t([i]);i=(n.then?(await n)():n)[0];let l,c=t=>t;class h extends i.A{get anchorElement(){var t;return null===(t=this.popup)||void 0===t?void 0:t.anchor}set anchorElement(t){this.popup&&(this.popup.anchor&&"ha-icon-button"===this.popup.anchor.localName&&(this.popup.anchor.selected=!1),this.popup.anchor=t)}getTrigger(){return this.anchorElement?this.anchorElement:super.getTrigger()}async showMenu(){await super.showMenu();const t=this.getTrigger();t&&"ha-icon-button"===t.localName&&(t.selected=!0)}async hideMenu(){const t=this.getTrigger();t&&"ha-icon-button"===t.localName&&(t.selected=!1),await super.hideMenu()}static get styles(){return[i.A.styles,(0,r.AH)(l||(l=c`:host{font-size:var(--ha-dropdown-font-size, var(--ha-font-size-m));--wa-color-surface-raised:var(
            --card-background-color,
            var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff)),
          )}#menu{padding:var(--ha-space-1)}wa-popup::part(popup){z-index:200}`))]}constructor(...t){super(...t),this.dropdownTag="ha-dropdown",this.dropdownItemTag="ha-dropdown-item"}}(0,o.Cg)([(0,s.MZ)({attribute:!1})],h.prototype,"dropdownTag",void 0),(0,o.Cg)([(0,s.MZ)({attribute:!1})],h.prototype,"dropdownItemTag",void 0),h=(0,o.Cg)([(0,s.EM)("ha-dropdown")],h),a()}catch(l){a(l)}})},90248:function(t,a,e){e.a(t,async function(t,o){try{e.r(a),e.d(a,{HaIconButtonArrowPrev:function(){return v}});e(62953);var i=e(40445),r=e(96196),s=e(77845),n=e(63091),l=e(26300),c=t([l]);l=(c.then?(await c)():c)[0];let h,d=t=>t;const p="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",u="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";class v extends r.WF{render(){var t;return(0,r.qy)(h||(h=d` <ha-icon-button .disabled="${0}" .label="${0}" .path="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"></ha-icon-button> `),this.disabled,this.label||(null===(t=this.hass)||void 0===t?void 0:t.localize("ui.common.back"))||"Back",this._icon,this.href,this.target,this.rel,this.download)}constructor(...t){super(...t),this.disabled=!1,this._icon="rtl"===n.G.document.dir?u:p}}(0,i.Cg)([(0,s.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],v.prototype,"disabled",void 0),(0,i.Cg)([(0,s.MZ)()],v.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)()],v.prototype,"href",void 0),(0,i.Cg)([(0,s.MZ)()],v.prototype,"target",void 0),(0,i.Cg)([(0,s.MZ)()],v.prototype,"rel",void 0),(0,i.Cg)([(0,s.MZ)()],v.prototype,"download",void 0),(0,i.Cg)([(0,s.wk)()],v.prototype,"_icon",void 0),v=(0,i.Cg)([(0,s.EM)("ha-icon-button-arrow-prev")],v),o()}catch(h){o(h)}})},26300:function(t,a,e){e.a(t,async function(t,o){try{e.r(a),e.d(a,{HaIconButton:function(){return g}});e(62953);var i=e(40445),r=e(96196),s=e(77845),n=e(32288),l=e(18350),c=(e(67094),t([l]));l=(c.then?(await c)():c)[0];let h,d,p,u,v=t=>t;class g extends r.WF{render(){return(0,r.qy)(h||(h=v` <ha-button appearance="plain" variant="neutral" aria-label="${0}" title="${0}" aria-haspopup="${0}" .disabled="${0}" .iconTag="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"> ${0} </ha-button> `),(0,n.J)(this.label),(0,n.J)(this.hideTitle?void 0:this.label),(0,n.J)(this.ariaHasPopup),this.disabled,this.path?"ha-svg-icon":"span",this.href,this.target,this.rel,this.download,this.path?(0,r.qy)(d||(d=v`<ha-svg-icon .path="${0}"></ha-svg-icon>`),this.path):(0,r.qy)(p||(p=v`<span><slot></slot></span>`)))}constructor(...t){super(...t),this.disabled=!1,this.hideTitle=!1,this.selected=!1}}g.shadowRootOptions={mode:"open",delegatesFocus:!0},g.styles=(0,r.AH)(u||(u=v`:host{display:inline-block;outline:0;--ha-button-height:var(--ha-icon-button-size, 48px)}ha-button{position:relative;isolation:isolate;--wa-form-control-padding-inline:var(
        --ha-icon-button-padding-inline,
        --ha-space-2
      );--wa-color-on-normal:currentColor;--wa-color-fill-quiet:transparent;--ha-button-label-overflow:visible}ha-button::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:50%;background-color:currentColor;opacity:0;pointer-events:none}ha-button::part(base){width:var(--wa-form-control-height);aspect-ratio:1;outline-offset:-4px}ha-button::part(label){display:flex}:host([selected]) ha-button::after{opacity:.1}@media (hover:hover){:host(:hover:not([disabled])) ha-button::after{opacity:.1}}`)),(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],g.prototype,"disabled",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],g.prototype,"path",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],g.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)({type:String,attribute:"aria-haspopup"})],g.prototype,"ariaHasPopup",void 0),(0,i.Cg)([(0,s.MZ)({attribute:"hide-title",type:Boolean})],g.prototype,"hideTitle",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],g.prototype,"selected",void 0),(0,i.Cg)([(0,s.MZ)()],g.prototype,"href",void 0),(0,i.Cg)([(0,s.MZ)()],g.prototype,"target",void 0),(0,i.Cg)([(0,s.MZ)()],g.prototype,"rel",void 0),(0,i.Cg)([(0,s.MZ)()],g.prototype,"download",void 0),g=(0,i.Cg)([(0,s.EM)("ha-icon-button")],g),o()}catch(h){o(h)}})},2846:function(t,a,e){e.d(a,{G:function(){return p},J:function(){return d}});var o=e(40445),i=e(12415),r=e(82553),s=e(96196),n=e(77845);e(54276);let l,c,h=t=>t;const d=[r.R,(0,s.AH)(l||(l=h`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`))];class p extends i.n{renderRipple(){return"text"===this.type?s.s6:(0,s.qy)(c||(c=h`<ha-ripple part="ripple" for="item" ?disabled="${0}"></ha-ripple>`),this.disabled&&"link"!==this.type)}}p.styles=d,p=(0,o.Cg)([(0,n.EM)("ha-md-list-item")],p)},17308:function(t,a,e){var o=e(40445),i=e(49838),r=e(11245),s=e(96196),n=e(77845);let l;class c extends i.B{}c.styles=[r.R,(0,s.AH)(l||(l=(t=>t)`:host{--md-sys-color-surface:var(--card-background-color)}`))],c=(0,o.Cg)([(0,n.EM)("ha-md-list")],c)},2054:function(t,a,e){e.a(t,async function(t,a){try{e(16280),e(62953);var o=e(40445),i=e(96196),r=e(77845),s=e(1087),n=e(44249),l=e(26300),c=t([l]);l=(c.then?(await c)():c)[0];let h,d,p,u=t=>t;const v="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";class g extends i.WF{connectedCallback(){super.connectedCallback(),this._attachNotifOnConnect&&(this._attachNotifOnConnect=!1,this._subscribeNotifications())}disconnectedCallback(){super.disconnectedCallback(),this._unsubNotifications&&(this._attachNotifOnConnect=!0,this._unsubNotifications(),this._unsubNotifications=void 0)}render(){if(!this._show)return i.s6;const t=this._hasNotifications&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);return(0,i.qy)(h||(h=u` <ha-icon-button .label="${0}" .path="${0}" @click="${0}"></ha-icon-button> ${0} `),this.hass.localize("ui.sidebar.sidebar_toggle"),v,this._toggleMenu,t?(0,i.qy)(d||(d=u`<div class="dot"></div>`)):"")}willUpdate(t){if(super.willUpdate(t),!t.has("narrow")&&!t.has("hass"))return;const a=t.has("hass")?t.get("hass"):this.hass,e=t.has("narrow")?t.get("narrow"):this.narrow,o=!1===(null==a?void 0:a.kioskMode)&&(e||"always_hidden"===(null==a?void 0:a.dockedSidebar)),i=!1===this.hass.kioskMode&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);this.hasUpdated&&o===i||(this._show=i||this._alwaysVisible,i?this._subscribeNotifications():this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0))}_subscribeNotifications(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,n.V)(this.hass.connection,t=>{this._hasNotifications=t.length>0})}_toggleMenu(){(0,s.r)(this,"hass-toggle-menu")}constructor(...t){super(...t),this.narrow=!1,this._hasNotifications=!1,this._show=!1,this._alwaysVisible=!1,this._attachNotifOnConnect=!1}}g.styles=(0,i.AH)(p||(p=u`:host{position:relative}.dot{pointer-events:none;position:absolute;background-color:var(--accent-color);width:12px;height:12px;top:9px;right:7px;inset-inline-end:7px;inset-inline-start:initial;border-radius:var(--ha-border-radius-circle);border:2px solid var(--app-header-background-color)}`)),(0,o.Cg)([(0,r.MZ)({type:Boolean})],g.prototype,"narrow",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,o.Cg)([(0,r.wk)()],g.prototype,"_hasNotifications",void 0),(0,o.Cg)([(0,r.wk)()],g.prototype,"_show",void 0),g=(0,o.Cg)([(0,r.EM)("ha-menu-button")],g),a()}catch(h){a(h)}})},54276:function(t,a,e){e(62953);var o=e(40445),i=e(76482),r=e(91382),s=e(96245),n=e(96196),l=e(77845);let c;class h extends r.n{attach(t){super.attach(t),this.attachableTouchController.attach(t)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(t,a){null==t||t.removeEventListener("touchend",this._handleTouchEnd),null==a||a.addEventListener("touchend",this._handleTouchEnd)}constructor(...t){super(...t),this.attachableTouchController=new i.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}h.styles=[s.R,(0,n.AH)(c||(c=(t=>t)`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.12);--md-ripple-hover-color:var(
          --ha-ripple-hover-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        );--md-ripple-pressed-color:var(
          --ha-ripple-pressed-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        )}`))],h=(0,o.Cg)([(0,l.EM)("ha-ripple")],h)},67094:function(t,a,e){e.r(a),e.d(a,{HaSvgIcon:function(){return d}});var o=e(40445),i=e(96196),r=e(77845);let s,n,l,c,h=t=>t;class d extends i.WF{render(){return(0,i.JW)(s||(s=h` <svg viewBox="${0}" preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${0} ${0} </g> </svg>`),this.viewBox||"0 0 24 24",this.path?(0,i.JW)(n||(n=h`<path class="primary-path" d="${0}"></path>`),this.path):i.s6,this.secondaryPath?(0,i.JW)(l||(l=h`<path class="secondary-path" d="${0}"></path>`),this.secondaryPath):i.s6)}}d.styles=(0,i.AH)(c||(c=h`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:var(--icon-primary-color,currentcolor);width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}path.primary-path{opacity:var(--icon-primary-opactity, 1)}path.secondary-path{fill:var(--icon-secondary-color,currentcolor);opacity:var(--icon-secondary-opactity, .5)}`)),(0,o.Cg)([(0,r.MZ)()],d.prototype,"path",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],d.prototype,"secondaryPath",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],d.prototype,"viewBox",void 0),d=(0,o.Cg)([(0,r.EM)("ha-svg-icon")],d)},44249:function(t,a,e){e.d(a,{V:function(){return o}});e(62953);const o=(t,a)=>{const e=new i,o=t.subscribeMessage(t=>a(e.processMessage(t)),{type:"persistent_notification/subscribe"});return()=>{o.then(t=>null==t?void 0:t())}};class i{processMessage(t){if("removed"===t.type)for(const a of Object.keys(t.notifications))delete this.notifications[a];else this.notifications=Object.assign(Object.assign({},this.notifications),t.notifications);return Object.values(this.notifications)}constructor(){this.notifications={}}}},81310:function(t,a,e){e.a(t,async function(t,a){try{e(62953);var o=e(40445),i=e(96196),r=e(77845),s=e(94333),n=e(26218),l=e(91926),c=e(90248),h=e(2054),d=e(14503),p=t([c,h]);[c,h]=p.then?(await p)():p;let u,v,g,b,f,m=t=>t;class y extends i.WF{render(){var t;return(0,i.qy)(u||(u=m` <div class="toolbar ${0}"> <div class="toolbar-content"> ${0} <div class="main-title"> <slot name="header">${0}</slot> </div> <slot name="toolbar-icon"></slot> </div> </div> <div class="${0}" @scroll="${0}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `),(0,s.H)({narrow:this.narrow}),this.mainPage||null!==(t=history.state)&&void 0!==t&&t.root?(0,i.qy)(v||(v=m` <ha-menu-button .hass="${0}" .narrow="${0}"></ha-menu-button> `),this.hass,this.narrow):this.backPath?(0,i.qy)(g||(g=m` <ha-icon-button-arrow-prev href="${0}" .hass="${0}"></ha-icon-button-arrow-prev> `),this.backPath,this.hass):(0,i.qy)(b||(b=m` <ha-icon-button-arrow-prev .hass="${0}" @click="${0}"></ha-icon-button-arrow-prev> `),this.hass,this._backTapped),this.header,(0,s.H)({content:!0,"ha-scrollbar":this.scrollable,"not-scrollable":!this.scrollable}),this._saveScrollPos)}_saveScrollPos(t){this._savedScrollPos=t.target.scrollTop}_backTapped(){this.backCallback?this.backCallback():(0,l.O)()}static get styles(){return[d.dp,(0,i.AH)(f||(f=m`:host{display:block;height:100%;background-color:var(--primary-background-color);overflow:hidden;position:relative}:host([narrow]){width:100%;position:fixed}.toolbar{background-color:var(--app-header-background-color);padding-top:var(--safe-area-inset-top);padding-right:var(--safe-area-inset-right)}:host([narrow]) .toolbar{padding-left:var(--safe-area-inset-left)}.toolbar-content{display:flex;align-items:center;font-size:var(--ha-font-size-xl);height:var(--header-height);font-weight:var(--ha-font-weight-normal);color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box;padding:8px 12px}.toolbar a{color:var(--sidebar-text-color);text-decoration:none}::slotted([slot=toolbar-icon]),ha-icon-button-arrow-prev,ha-menu-button{display:flex;align-items:center;pointer-events:auto;color:var(--sidebar-icon-color)}.main-title{margin-inline-start:var(--ha-space-6);line-height:var(--ha-line-height-normal);min-width:0;flex-grow:1;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.narrow .main-title{margin-inline-start:var(--ha-space-2)}.content{position:relative;width:calc(100% - var(--safe-area-inset-right,0px));height:calc(100% - 1px - var(--header-height,0px) - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));padding-bottom:var(--safe-area-inset-bottom,0px);margin-right:var(--safe-area-inset-right);overflow-y:auto;overflow:auto;-webkit-overflow-scrolling:touch}.content.not-scrollable{overflow:hidden;display:flex;flex-direction:column}:host([narrow]) .content{width:calc(100% - var(--safe-area-inset-left,0px) - var(--safe-area-inset-right,0px));margin-left:var(--safe-area-inset-left)}#fab{position:absolute;right:calc(16px + var(--safe-area-inset-right,0px));inset-inline-end:calc(16px + var(--safe-area-inset-right,0px));inset-inline-start:initial;bottom:calc(16px + var(--safe-area-inset-bottom,0px));z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--ha-space-2)}:host([narrow]) #fab.tabs{bottom:calc(84px + var(--safe-area-inset-bottom,0px))}#fab[is-wide]{bottom:calc(24px + var(--safe-area-inset-bottom,0px));right:calc(24px + var(--safe-area-inset-right,0px));inset-inline-end:calc(24px + var(--safe-area-inset-right,0px));inset-inline-start:initial}`))]}constructor(...t){super(...t),this.mainPage=!1,this.narrow=!1,this.scrollable=!0}}(0,o.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,o.Cg)([(0,r.MZ)()],y.prototype,"header",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,attribute:"main-page"})],y.prototype,"mainPage",void 0),(0,o.Cg)([(0,r.MZ)({type:String,attribute:"back-path"})],y.prototype,"backPath",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"backCallback",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],y.prototype,"narrow",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean})],y.prototype,"scrollable",void 0),(0,o.Cg)([(0,n.a)(".content")],y.prototype,"_savedScrollPos",void 0),(0,o.Cg)([(0,r.Ls)({passive:!0})],y.prototype,"_saveScrollPos",null),y=(0,o.Cg)([(0,r.EM)("hass-subpage")],y),a()}catch(u){a(u)}})},54706:function(t,a,e){e.d(a,{E:function(){return r}});e(74423),e(18111),e(13579),e(3362),e(62953);var o=e(40445),i=e(77845);const r=t=>{class a extends t{connectedCallback(){super.connectedCallback(),this._checkSubscribed()}disconnectedCallback(){if(super.disconnectedCallback(),this.__unsubs){for(;this.__unsubs.length;){const t=this.__unsubs.pop();t instanceof Promise?t.then(t=>t()):t()}this.__unsubs=void 0}}updated(t){if(super.updated(t),t.has("hass"))this._checkSubscribed();else if(this.hassSubscribeRequiredHostProps)for(const a of t.keys())if(this.hassSubscribeRequiredHostProps.includes(a))return void this._checkSubscribed()}hassSubscribe(){return[]}_checkSubscribed(){var t;void 0!==this.__unsubs||!this.isConnected||void 0===this.hass||null!==(t=this.hassSubscribeRequiredHostProps)&&void 0!==t&&t.some(t=>void 0===this[t])||(this.__unsubs=this.hassSubscribe())}}return(0,o.Cg)([(0,i.MZ)({attribute:!1})],a.prototype,"hass",void 0),a}},84985:function(t,a,e){e.a(t,async function(t,o){try{e.r(a);e(26910),e(18111),e(22489),e(27495),e(17642),e(58004),e(33853),e(45876),e(32475),e(15024),e(31698),e(62953),e(48408),e(14603),e(47566),e(98721);var i=e(40445),r=(e(71786),e(96196)),s=e(77845),n=e(22786),l=e(36312),c=e(91926),h=e(6030),d=(e(76776),e(29823)),p=(e(70947),e(55782)),u=e(81310),v=e(54706),g=e(98712),b=e(49066),f=e(19642),m=t([d,u,g]);[d,u,g]=m.then?(await m)():m;let y,w,x,k,_,C=t=>t;const A="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z";class M extends((0,v.E)(r.WF)){connectedCallback(){super.connectedCallback();"system-health"===(0,h.p9)("dialog")&&((0,c.o)("/config/repairs",{replace:!0}),(0,f.h)(this))}hassSubscribe(){return[(0,p.TP)(this.hass.connection,t=>{this._repairsIssues=t.issues.sort((t,a)=>p.Qk[t.severity]-p.Qk[a.severity]);const a=new Set;for(const e of this._repairsIssues)a.add(e.domain);this.hass.loadBackendTranslation("issues",[...a])})]}render(){const t=this._getFilteredIssues(this._showIgnored,this._repairsIssues);return(0,r.qy)(y||(y=C` <hass-subpage .backPath="${0}" .hass="${0}" .narrow="${0}" .header="${0}"> <div slot="toolbar-icon"> <ha-dropdown @wa-select="${0}"> <ha-icon-button slot="trigger" .label="${0}" .path="${0}"></ha-icon-button> <ha-dropdown-item type="checkbox" value="toggle_ignored" .checked="${0}"> ${0} </ha-dropdown-item> <wa-divider></wa-divider> ${0} <ha-dropdown-item value="integration_startup_time"> ${0} </ha-dropdown-item> </ha-dropdown> </div> <div class="content"> <ha-card outlined> <div class="card-content"> ${0} </div> </ha-card> </div> </hass-subpage> `),this._searchParms.has("historyBack")?void 0:"/config/system",this.hass,this.narrow,this.hass.localize("ui.panel.config.repairs.caption"),this._handleDropdownSelect,this.hass.localize("ui.common.menu"),A,this._showIgnored,this.hass.localize("ui.panel.config.repairs.show_ignored"),(0,l.x)(this.hass,"system_health")||(0,l.x)(this.hass,"hassio")?(0,r.qy)(w||(w=C` <ha-dropdown-item value="system_information"> ${0} </ha-dropdown-item> `),this.hass.localize("ui.panel.config.repairs.system_information")):r.s6,this.hass.localize("ui.panel.config.repairs.integration_startup_time"),t.length?(0,r.qy)(x||(x=C` <ha-config-repairs .hass="${0}" .narrow="${0}" .repairsIssues="${0}"></ha-config-repairs> `),this.hass,this.narrow,t):(0,r.qy)(k||(k=C` <div class="no-repairs"> ${0} </div> `),this.hass.localize("ui.panel.config.repairs.no_repairs")))}_showSystemInformationDialog(){(0,f.h)(this)}_showIntegrationStartupDialog(){(0,b.R)(this)}_toggleIgnored(){this._showIgnored=!this._showIgnored}_handleDropdownSelect(t){var a;switch(null===(a=t.detail)||void 0===a||null===(a=a.item)||void 0===a?void 0:a.value){case"toggle_ignored":this._toggleIgnored();break;case"system_information":this._showSystemInformationDialog();break;case"integration_startup_time":this._showIntegrationStartupDialog()}}constructor(...t){super(...t),this.narrow=!1,this._repairsIssues=[],this._searchParms=new URLSearchParams(window.location.search),this._showIgnored=!1,this._getFilteredIssues=(0,n.A)((t,a)=>t?a:a.filter(t=>!t.ignored))}}M.styles=(0,r.AH)(_||(_=C`.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}ha-card{max-width:600px;margin:0 auto;height:100%;justify-content:space-between;flex-direction:column;display:flex;margin-bottom:max(24px,var(--safe-area-inset-bottom))}.card-content{display:flex;justify-content:space-between;flex-direction:column;padding:0}.no-repairs{padding:16px}li[divider]{border-bottom-color:var(--divider-color)}`)),(0,i.Cg)([(0,s.MZ)({attribute:!1})],M.prototype,"hass",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],M.prototype,"narrow",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_repairsIssues",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_searchParms",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_showIgnored",void 0),M=(0,i.Cg)([(0,s.EM)("ha-config-repairs-dashboard")],M),o()}catch(y){o(y)}})},49066:function(t,a,e){e.d(a,{R:function(){return r}});e(3362),e(62953);var o=e(1087);const i=()=>Promise.all([e.e("83431"),e.e("26767"),e.e("34121"),e.e("56209")]).then(e.bind(e,37352)),r=t=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-integration-startup",dialogImport:i,dialogParams:{}})}},19642:function(t,a,e){e.d(a,{h:function(){return r}});e(3362),e(62953);var o=e(1087);const i=()=>Promise.all([e.e("67159"),e.e("14771")]).then(e.bind(e,2814)),r=t=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-system-information",dialogImport:i,dialogParams:void 0})}},69235:function(t,a,e){e.a(t,async function(t,a){try{e(3362),e(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await e.e("71055").then(e.bind(e,52370))).default),a()}catch(o){a(o)}},1)},14503:function(t,a,e){e.d(a,{RF:function(){return p},dp:function(){return g},kO:function(){return v},nA:function(){return u},og:function(){return d}});var o=e(96196);let i,r,s,n,l,c,h=t=>t;const d=(0,o.AH)(i||(i=h`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`)),p=(0,o.AH)(r||(r=h`:host{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}.header{transition:box-shadow .2s linear,width var(--ha-animation-duration-normal) ease,padding-left var(--ha-animation-duration-normal) ease,padding-right var(--ha-animation-duration-normal) ease}@media (prefers-reduced-motion:reduce){.header{transition:box-shadow .2s linear}}h1{font-family:var(--ha-font-family-heading);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-2xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed)}h2{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal)}h3{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error{color:var(--error-color)}.warning{color:var(--error-color)}${0} .card-actions a{text-decoration:none}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-center,.layout.center-justified{justify-content:center}.flex{flex:1;flex-basis:0.000000001px}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`),d),u=(0,o.AH)(s||(s=h`ha-adaptive-dialog,ha-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:600px;--mdc-dialog-max-width:min(600px, 95vw);--justify-action-buttons:space-between;--dialog-container-padding:var(--safe-area-inset-top, 0) var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0) var(--safe-area-inset-left, 0);--dialog-surface-padding:0px}ha-adaptive-dialog .form,ha-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--mdc-dialog-min-width:100vw;--mdc-dialog-max-width:100vw;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--dialog-container-padding:0px;--dialog-surface-padding:var(--safe-area-inset-top, 0) var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0) var(--safe-area-inset-left, 0);--vertical-align-dialog:flex-end}ha-dialog{--ha-dialog-border-radius:var(--ha-border-radius-square)}}.error{color:var(--error-color)}`)),v=(0,o.AH)(n||(n=h`ha-adaptive-dialog,ha-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc(
      100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--mdc-dialog-max-height:calc(
      100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--ha-dialog-max-height:calc(
      100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--ha-dialog-max-height:calc(
      100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    )}@media all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--ha-dialog-max-height:100vh;--ha-dialog-max-height:100svh}}`)),g=(0,o.AH)(l||(l=h`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.ha-scrollbar{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`));(0,o.AH)(c||(c=h`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`))},35370:function(t,a,e){var o=e(26198);t.exports=function(t,a,e){for(var i=0,r=arguments.length>2?e:o(a),s=new t(r);r>i;)s[i]=a[i++];return s}},71786:function(t,a,e){e(62953);var o=e(77845),i=e(9395),r=e(12754);let s;var n=(0,e(96196).AH)(s||(s=(t=>t)`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){display:block;border-top:solid var(--width) var(--color);margin:var(--spacing) 0}:host([orientation=vertical]){display:inline-block;height:100%;border-inline-start:solid var(--width) var(--color);margin:0 var(--spacing);min-block-size:1lh}`)),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=(t,a,e,o)=>{for(var i,r=o>1?void 0:o?c(a,e):a,s=t.length-1;s>=0;s--)(i=t[s])&&(r=(o?i(a,e,r):i(r))||r);return o&&r&&l(a,e,r),r};let d=class extends r.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};d.css=n,h([(0,o.MZ)({reflect:!0})],d.prototype,"orientation",2),h([(0,i.w)("orientation")],d.prototype,"handleVerticalChange",1),d=h([(0,o.EM)("wa-divider")],d)},25423:function(t,a,e){e.d(a,{U:function(){return i},Z:function(){return r}});e(44114),e(62953);var o=e(27525);const i={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class r{get items(){const t=this.getPossibleItems(),a=[];for(const e of t){if(this.isItem(e)){a.push(e);continue}const t=e.item;t&&this.isItem(t)&&a.push(t)}return a}activateNextItem(){const t=this.items,a=(0,o.A6)(t,this.isActivatable);return a&&(a.item.tabIndex=-1),(0,o.wm)(t,a,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,a=(0,o.A6)(t,this.isActivatable);return a&&(a.item.tabIndex=-1),(0,o.u9)(t,a,this.isActivatable,this.wrapNavigation())}constructor(t){this.handleKeydown=t=>{const a=t.key;if(t.defaultPrevented||!this.isNavigableKey(a))return;const e=this.items;if(!e.length)return;const r=(0,o.A6)(e,this.isActivatable);t.preventDefault();const s=this.isRtl(),n=s?i.ArrowRight:i.ArrowLeft,l=s?i.ArrowLeft:i.ArrowRight;let c=null;switch(a){case i.ArrowDown:case l:c=(0,o.wm)(e,r,this.isActivatable,this.wrapNavigation());break;case i.ArrowUp:case n:c=(0,o.u9)(e,r,this.isActivatable,this.wrapNavigation());break;case i.Home:c=(0,o.zT)(e,this.isActivatable);break;case i.End:c=(0,o.RZ)(e,this.isActivatable)}c&&r&&r.item!==c&&(r.item.tabIndex=-1)},this.onDeactivateItems=()=>{const t=this.items;for(const a of t)this.deactivateItem(a)},this.onRequestActivation=t=>{this.onDeactivateItems();const a=t.target;this.activateItem(a),a.focus()},this.onSlotchange=()=>{const t=this.items;let a=!1;for(const o of t){!(!o.disabled&&o.tabIndex>-1)||a?o.tabIndex=-1:(a=!0,o.tabIndex=0)}if(a)return;const e=(0,o.c7)(t,this.isActivatable);e&&(e.tabIndex=0)};const{isItem:a,getPossibleItems:e,isRtl:r,deactivateItem:s,activateItem:n,isNavigableKey:l,isActivatable:c,wrapNavigation:h}=t;this.isItem=a,this.getPossibleItems=e,this.isRtl=r,this.deactivateItem=s,this.activateItem=n,this.isNavigableKey=l,this.isActivatable=c,this.wrapNavigation=null!=h?h:()=>!0}}},11245:function(t,a,e){e.d(a,{R:function(){return i}});let o;const i=(0,e(96196).AH)(o||(o=(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,a,e){e.d(a,{B:function(){return h}});e(31436),e(17642),e(58004),e(33853),e(45876),e(32475),e(15024),e(31698),e(62953);var o=e(40445),i=e(96196),r=e(77845),s=e(25423);let n,l=t=>t;const c=new Set(Object.values(s.U));class h extends i.WF{get items(){return this.listController.items}render(){return(0,i.qy)(n||(n=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 s.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=>c.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),i.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,o.Cg)([(0,r.KN)({flatten:!0})],h.prototype,"slotItems",void 0)}}]);
//# sourceMappingURL=29773.a6b23e71c327fc3e.js.map