`}renderRipple(){return ze` `}renderFocusRing(){return ze` `}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return ze`
`}focus(){this.listItemRoot?.focus()}}$t(Rr),Rr.shadowRootOptions={...Ye.shadowRootOptions,delegatesFocus:!0},e([E({type:Boolean,reflect:!0})],Rr.prototype,"disabled",void 0),e([E({type:Boolean,attribute:"md-menu-item",reflect:!0})],Rr.prototype,"isMenuItem",void 0),e([E({type:Boolean})],Rr.prototype,"selected",void 0),e([E()],Rr.prototype,"value",void 0),e([I(".list-item")],Rr.prototype,"listItemRoot",void 0),e([R({slot:"headline"})],Rr.prototype,"headlineElements",void 0),e([R({slot:"supporting-text"})],Rr.prototype,"supportingTextElements",void 0),e([function(e){return(t,i)=>{const{slot:r}=e??{},o="slot"+(r?`[name=${r}]`:":not([name])");return T(t,i,{get(){const t=this.renderRoot?.querySelector(o);return t?.assignedNodes(e)??[]}})}}({slot:""})],Rr.prototype,"defaultElements",void 0),e([E({attribute:"typeahead-text"})],Rr.prototype,"typeaheadText",null),e([E({attribute:"display-text"})],Rr.prototype,"displayText",null);let Or=class extends Rr{};Or.styles=[Ar],Or=e([t("md-select-option")],Or);const Lr=(e,t,i)=>{const r=new Map;for(let o=t;o<=i;o++)r.set(e[o],o);return r},zr=dt(class extends ct{constructor(e){if(super(e),e.type!==at)throw Error("repeat() can only be used in text expressions")}ht(e,t,i){let r;void 0===i?i=t:void 0!==t&&(r=t);const o=[],s=[];let a=0;for(const t of e)o[a]=r?r(t,a):a,s[a]=i(t,a),a++;return{values:s,keys:o}}render(e,t,i){return this.ht(e,t,i).values}update(e,[t,i,r]){const o=(e=>e._$AH)(e),{values:s,keys:a}=this.ht(t,i,r);if(!Array.isArray(o))return this.dt=a,s;const n=this.dt??=[],l=[];let d,c,h=0,p=o.length-1,u=0,f=s.length-1;for(;h<=p&&u<=f;)if(null===o[h])h++;else if(null===o[p])p--;else if(n[h]===a[u])l[u]=Zt(o[h],s[u]),h++,u++;else if(n[p]===a[f])l[f]=Zt(o[p],s[f]),p--,f--;else if(n[h]===a[f])l[f]=Zt(o[h],s[f]),Gt(e,l[f+1],o[h]),h++,f--;else if(n[p]===a[u])l[u]=Zt(o[p],s[u]),Gt(e,o[h],o[p]),p--,u++;else if(void 0===d&&(d=Lr(a,u,f),c=Lr(n,h,p)),d.has(n[h]))if(d.has(n[p])){const t=c.get(a[u]),i=void 0!==t?o[t]:null;if(null===i){const t=Gt(e,o[h]);Zt(t,s[u]),l[u]=t}else l[u]=Zt(i,s[u]),Gt(e,o[h],i),o[t]=null;u++}else Jt(o[p]),p--;else Jt(o[h]),h++;for(;u<=f;){const t=Gt(e,l[f+1]);Zt(t,s[u]),l[u++]=t}for(;h<=p;){const e=o[h++];null!==e&&Jt(e)}return this.dt=a,Xt(e,l),Q}});class Pr extends ct{constructor(e){if(super(e),this.et=ee,e.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ee||null==e)return this.vt=void 0,this.et=e;if(e===Q)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Pr.directiveName="unsafeHTML",Pr.resultType=1;const Ur=dt(Pr);function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Br(){return new DOMException("The request is not allowed","NotAllowedError")}var Nr=Mr((async function(e){try{await async function(e){if(!navigator.clipboard)throw Br();return navigator.clipboard.writeText(e)}(e)}catch(t){try{await async function(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const i=window.getSelection(),r=window.document.createRange();i.removeAllRanges(),r.selectNode(t),i.addRange(r);let o=!1;try{o=window.document.execCommand("copy")}finally{i.removeAllRanges(),window.document.body.removeChild(t)}if(!o)throw Br()}(e)}catch(e){throw e||t||Br()}}})),Hr=[{redirect:"add_matter_device",name:"Add Matter device",badge:"Add Matter device to",description:"add a Matter device to your instance",introduced:"2023.3",params:{brand:"string?",domain:"string?"}},{redirect:"supervisor_add_addon_repository",name:"Add repository",badge:"Add add-on repository to",description:"show the add add-on repository dialog with a specific repository URL pre-filled",introduced:"supervisor-2021.03.4",params:{repository_url:"url"},example:{repository_url:"https://github.com/hassio-addons/repository"}},{redirect:"add_zwave_device",name:"Add Z-Wave device",badge:"Add Z-Wave device to",description:"add a Z-Wave device to your instance",introduced:"2022.11",params:{brand:"string?",domain:"string?"}},{redirect:"add_zigbee_device",name:"Add Zigbee device",badge:"Add Zigbee device to",description:"add a Zigbee device to your instance",introduced:"2022.11",params:{brand:"string?",domain:"string?"}},{redirect:"supervisor_store",name:"Add-on store",badge:"Open add-on store of",description:"show the add-on store",introduced:"supervisor-2021.02.12"},{redirect:"supervisor_addon",name:"Add-on: dashboard",badge:"Show add-on on",description:"show the dashboard of an add-on",introduced:"supervisor-2021.02.10",params:{addon:"string",repository_url:"url?"},example:{addon:"core_samba"}},{redirect:"supervisor_ingress",name:"Add-on: ingress URL",badge:"Open Add-on ingress URL of",description:"Open the ingress URL of an add-on",introduced:"supervisor-2021.05.0",params:{addon:"string"},example:{addon:"core_ssh"}},{redirect:"analytics",name:"Analytics",badge:"Show analytics settings of",description:"manage your analytics preferences",introduced:"2022.5"},{redirect:"automations",badge:"Show automations of",name:"Automations",description:"show your automations",introduced:"2021.3"},{redirect:"backup",badge:"Back up",name:"Backup",description:"Back up your Home Assistant installation",introduced:"2022.4"},{redirect:"blueprints",name:"Blueprints: dashboard",badge:"Show blueprints of",description:"show your blueprints",introduced:"2021.3"},{redirect:"blueprint_import",name:"Blueprints: start import",badge:"Import blueprint to",description:"show the blueprint import dialog with a specific blueprint pre-filled",introduced:"2021.3",params:{blueprint_url:"url"},example:{blueprint_url:"https://github.com/home-assistant/core/blob/master/homeassistant/components/automation/blueprints/motion_light.yaml"}},{redirect:"calendar",name:"Calendar",badge:"Show calendars of",description:"show your calendar",introduced:"2023.1"},{redirect:"companion_app",name:"Companion app",badge:"Show app settings of",description:"open the settings of your companion app",introduced:"2023.8"},{redirect:"application_credentials",name:"Credentials",badge:"Show credentials of",description:"Manage your application credentials",introduced:"2022.6"},{redirect:"supervisor",name:"Dashboard",badge:"Show supervisor dashboard of",description:"show your Supervisor dashboard",deprecated:!0,introduced:"supervisor-2021.02.10"},{redirect:"lovelace_resources",name:"Dashboard resources",badge:"Show dashboard resources of",description:"show your dashboard resources",introduced:"2021.3"},{redirect:"lovelace_dashboards",name:"Dashboards",badge:"Show dashboard configs of",description:"show your dashboard configs",introduced:"2021.3"},{redirect:"developer_assist",name:"Developer tools: Assist",badge:"Show Assist dev tools of",description:"show your Assist developer tools",introduced:"2023.8"},{redirect:"developer_call_service",name:"Developer tools: call service",badge:"Call service on",description:"show your service developer tools with a specific service selected",introduced:"2021.3",params:{service:"string"},example:{service:"homeassistant.turn_on"}},{redirect:"developer_events",name:"Developer tools: events",badge:"Show event dev tools of",description:"show your event developer tools",introduced:"2021.3"},{redirect:"developer_services",name:"Developer tools: services",badge:"Show service dev tools of",description:"show your service developer tools",introduced:"2021.3"},{redirect:"developer_states",name:"Developer tools: states",badge:"Show state dev tools of",description:"show your state developer tools",introduced:"2021.3"},{redirect:"developer_statistics",name:"Developer tools: statistics",badge:"Show statistics dev tools of",description:"show your statistics developer tools",introduced:"2021.10"},{redirect:"developer_template",name:"Developer tools: templates",badge:"Show template dev tools of",description:"show your template developer tools",introduced:"2021.3"},{redirect:"devices",name:"Devices",badge:"Show devices of",description:"show your devices",introduced:"2021.3"},{redirect:"energy",name:"Energy",badge:"Show energy panel of",description:"show your Energy panel",introduced:"2021.8"},{redirect:"config_energy",name:"Energy configuration",badge:"Show energy config of",description:"show your energy configuration panel",introduced:"2021.8"},{redirect:"entities",name:"Entities",badge:"Show entities of",description:"show your entities",introduced:"2021.3"},{redirect:"areas",name:"Floors & areas",badge:"Show floors and areas of",description:"show your floors and areas",introduced:"2021.3"},{redirect:"general",name:"General settings",badge:"Show settings of",description:"show your general Home Assistant settings",introduced:"2021.3"},{redirect:"hacs_repository",component:"hacs",name:"HACS: Repository",badge:"Open HACS repository on",description:"open a repository inside the Home Assistant Community Store",custom:!0,introduced:"2022.8",params:{owner:"string",repository:"string",category:"string?"},example:{owner:"hacs",repository:"integration",category:"integration"}},{redirect:"hardware",name:"Hardware",badge:"Show hardware of",description:"show hardware information",introduced:"2022.5"},{redirect:"helpers",name:"Helpers",badge:"Show helpers of",description:"show your helper entities",introduced:"2021.3"},{redirect:"history",name:"History",badge:"Show history of",description:"show your history panel",introduced:"2021.3"},{redirect:"cloud",name:"Home Assistant Cloud",badge:"Show Cloud config of",description:"show your Home Assistant Cloud configuration",introduced:"2021.3",component:"cloud"},{redirect:"integration",name:"Integration",badge:"Show integration on",description:"show an integration",introduced:"2023.6",params:{domain:"string"},example:{domain:"hue"}},{redirect:"brand",name:"Integrations: add by brand",badge:"Add integration to",description:"start setting up a new integration of a specific brand",introduced:"2022.10",params:{brand:"string"},example:{brand:"google"}},{redirect:"config_flow_start",name:"Integrations: add integration",badge:"Add integration to",description:"start setting up a new integration",introduced:"2021.3",params:{domain:"string"},example:{domain:"hue"}},{redirect:"integrations",name:"Integrations: dashboard",badge:"Show integrations of",description:"show your integrations",introduced:"2021.3"},{redirect:"labels",name:"Labels",badge:"Show labels of",description:"show your labels",introduced:"2024.4"},{redirect:"logbook",name:"Logbook",badge:"Show logbook of",description:"show your logbook panel",introduced:"2021.3"},{redirect:"logs",name:"Logs",badge:"Show logs of",description:"show your Home Assistant logs",introduced:"2021.3",params:{provider:"string?"}},{redirect:"media_browser",name:"Media",badge:"Browse media on",description:"browse available media",introduced:"2022.3"},{redirect:"config_mqtt",name:"MQTT configuration",badge:"Show MQTT config of",description:"show your MQTT configuration panel",introduced:"2021.3"},{redirect:"network",name:"Network",badge:"Show network config of",description:"manage your systems network configuration",introduced:"2022.5"},{redirect:"oauth",deprecated:!0,name:"OAuth2 Authorize Callback",badge:"OAuth2 callback to",description:"(replaced in UI)",introduced:"2022.6",params:{code:"string?",error:"string?",state:"string"}},{redirect:"people",name:"People",badge:"List people of",description:"show a list of your people",introduced:"2021.3"},{redirect:"repairs",name:"Repairs",badge:"Show repairs of",description:"show your repairs",introduced:"2022.8"},{redirect:"scenes",name:"Scenes",badge:"Show scenes of",description:"show your scenes",introduced:"2021.3"},{redirect:"scripts",name:"Scripts",badge:"Show scripts of",description:"show your scripts",introduced:"2021.3"},{redirect:"server_controls",name:"Server controls",badge:"Show server controls of",description:"show your server controls",introduced:"2021.3"},{redirect:"config",name:"Settings",badge:"Show settings of",description:"show your settings menu",introduced:"2021.3"},{redirect:"storage",name:"Storage",badge:"Show storage info of",description:"show storage information",introduced:"2022.5"},{redirect:"supervisor_snapshots",deprecated:!0,name:"Supervisor: backups",badge:"Show backups of",description:"Deprecated, use 'supervisor_backups' instead",introduced:"supervisor-2021.02.10"},{redirect:"supervisor_backups",name:"Supervisor: backups",deprecated:!0,badge:"Show backups of",description:"show your Supervisor backups",introduced:"supervisor-2021.08.1"},{redirect:"supervisor_info",name:"Supervisor: info",badge:"Show Supervisor info of",description:"show your Supervisor system information",deprecated:!0,introduced:"supervisor-2021.02.12"},{redirect:"supervisor_logs",name:"Supervisor: logs",badge:"Show Supervisor logs of",description:"show your Supervisor system logs",deprecated:!0,introduced:"supervisor-2021.02.12"},{redirect:"system_dashboard",name:"System dashboard",badge:"Show system dashboard of",description:"show the system dashboard",introduced:"2022.5"},{redirect:"system_health",name:"System info",badge:"Show system info of",description:"show information about your system",introduced:"2022.5"},{redirect:"tags",name:"Tags",badge:"Show tags of",description:"show your tags",introduced:"2021.3"},{redirect:"updates",name:"Updates",badge:"Manage updates of",description:"manage your pending updates",introduced:"2022.5"},{redirect:"profile",name:"User profile",badge:"Show user profile on",description:"show your Home Assistant user's profile",introduced:"2021.3"},{redirect:"users",name:"Users",badge:"Show users of",description:"show your users",introduced:"2021.3"},{redirect:"info",name:"Version info",badge:"Show version info of",description:"show your Home Assistant version information",introduced:"2021.3"},{redirect:"voice_assistants",name:"Voice assistants",badge:"List voice assistants of",description:"show your voice assistants",introduced:"2023.5"},{redirect:"config_zwave_js",name:"Z-Wave JS configuration",badge:"show Z-Wave JS config of",description:"show your Z-Wave JS configuration panel",introduced:"2021.3"},{redirect:"config_zha",name:"ZHA configuration",badge:"Show Zigbee config of",description:"show your ZHA configuration panel",introduced:"2021.3"},{redirect:"zones",name:"Zones",badge:"Show zones of",description:"show your zones",introduced:"2021.3"}];var Dr={},Fr={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.BLANK_URL=Fr.relativeFirstCharacters=Fr.urlSchemeRegex=Fr.ctrlCharactersRegex=Fr.htmlCtrlEntityRegex=Fr.htmlEntitiesRegex=Fr.invalidProtocolRegex=void 0,Fr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Fr.htmlEntitiesRegex=/(\w+)(^\w|;)?/g,Fr.htmlCtrlEntityRegex=/&(newline|tab);/gi,Fr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Fr.urlSchemeRegex=/^.+(:|:)/gim,Fr.relativeFirstCharacters=[".","/"],Fr.BLANK_URL="about:blank",Object.defineProperty(Dr,"__esModule",{value:!0});var Vr=Dr.sanitizeUrl=void 0,qr=Fr;Vr=Dr.sanitizeUrl=function(e){if(!e)return qr.BLANK_URL;var t,i,r=e;do{t=(r=(i=r,i.replace(qr.ctrlCharactersRegex,"").replace(qr.htmlEntitiesRegex,(function(e,t){return String.fromCharCode(t)}))).replace(qr.htmlCtrlEntityRegex,"").replace(qr.ctrlCharactersRegex,"").trim()).match(qr.ctrlCharactersRegex)||r.match(qr.htmlEntitiesRegex)||r.match(qr.htmlCtrlEntityRegex)}while(t&&t.length>0);var o=r;if(!o)return qr.BLANK_URL;if(function(e){return qr.relativeFirstCharacters.indexOf(e[0])>-1}(o))return o;var s=o.match(qr.urlSchemeRegex);if(!s)return o;var a=s[0];return qr.invalidProtocolRegex.test(a)?qr.BLANK_URL:o};const Wr=(e,t)=>{if("string"!==e&&"string?"!==e)return"url"===e||"url?"===e?(e=>{if(-1===e.indexOf("://"))return"Please enter your full URL, including the protocol part (https://).";try{new URL(e)}catch(e){return"Invalid URL."}return e!==Vr(e)?"Invalid URL.":void 0})(t):"Unknown param type"},jr=e=>e.charAt(0).toUpperCase()+e.slice(1);let Kr;const Gr=(()=>{const e={},t=new URLSearchParams(location.search);for(const[i,r]of t.entries())e[i]=r;return e})();Gr.redirect&&(Kr=Hr.find((e=>e.redirect===Gr.redirect))),Kr||(Kr=Hr.find((e=>void 0===e.params)));const Zr=Hr.filter((e=>!e.deprecated));let Yr=class extends Ye{constructor(){super(...arguments),this._redirect=Kr,this._paramsValues={}}createRenderRoot(){for(;this.lastChild;)this.removeChild(this.lastChild);return this}render(){var e;const t=this._createHTML(),i=Ur(t);return ze`