`}renderRipple(){return J` `}renderFocusRing(){return J` `}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return J`
`}focus(){this.listItemRoot?.focus()}}De(Pi),Pi.shadowRootOptions={...me.shadowRootOptions,delegatesFocus:!0},e([E({type:Boolean,reflect:!0})],Pi.prototype,"disabled",void 0),e([E({type:Boolean,attribute:"md-menu-item",reflect:!0})],Pi.prototype,"isMenuItem",void 0),e([E({type:Boolean})],Pi.prototype,"selected",void 0),e([E()],Pi.prototype,"value",void 0),e([k(".list-item")],Pi.prototype,"listItemRoot",void 0),e([R({slot:"headline"})],Pi.prototype,"headlineElements",void 0),e([R({slot:"supporting-text"})],Pi.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:""})],Pi.prototype,"defaultElements",void 0),e([E({attribute:"typeahead-text"})],Pi.prototype,"typeaheadText",null),e([E({attribute:"display-text"})],Pi.prototype,"displayText",null);let Ui=class extends Pi{};Ui.styles=[Ti],Ui=e([t("md-select-option")],Ui);const Bi=(e,t,i)=>{const r=new Map;for(let o=t;o<=i;o++)r.set(e[o],o);return r},Mi=Ae(class extends Ee{constructor(e){if(super(e),2!==e.type)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let r;void 0===i?i=t:void 0!==t&&(r=t);const o=[],a=[];let s=0;for(const t of e)o[s]=r?r(t,s):s,a[s]=i(t,s),s++;return{values:a,keys:o}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,r]){const o=(e=>e._$AH)(e),{values:a,keys:s}=this.dt(t,i,r);if(!Array.isArray(o))return this.ut=s,a;const n=this.ut??=[],l=[];let d,c,h=0,p=o.length-1,u=0,f=a.length-1;for(;h<=p&&u<=f;)if(null===o[h])h++;else if(null===o[p])p--;else if(n[h]===s[u])l[u]=ct(o[h],a[u]),h++,u++;else if(n[p]===s[f])l[f]=ct(o[p],a[f]),p--,f--;else if(n[h]===s[f])l[f]=ct(o[h],a[f]),dt(e,l[f+1],o[h]),h++,f--;else if(n[p]===s[u])l[u]=ct(o[p],a[u]),dt(e,o[h],o[p]),p--,u++;else if(void 0===d&&(d=Bi(s,u,f),c=Bi(n,h,p)),d.has(n[h]))if(d.has(n[p])){const t=c.get(s[u]),i=void 0!==t?o[t]:null;if(null===i){const t=dt(e,o[h]);ct(t,a[u]),l[u]=t}else l[u]=ct(i,a[u]),dt(e,o[h],i),o[t]=null;u++}else ut(o[p]),p--;else ut(o[h]),h++;for(;u<=f;){const t=dt(e,l[f+1]);ct(t,a[u]),l[u++]=t}for(;h<=p;){const e=o[h++];null!==e&&ut(e)}return this.ut=s,pt(e,l),Q}});class Di extends Ee{constructor(e){if(super(e),this.it=ee,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ee||null==e)return this._t=void 0,this.it=e;if(e===Q)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Di.directiveName="unsafeHTML",Di.resultType=1;const Ni=Ae(Di);var Fi,Hi,Vi,qi,Wi=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(Hi)return Fi;function e(){return new DOMException("The request is not allowed","NotAllowedError")}return Hi=1,Fi=async function(t){try{await async function(t){if(!navigator.clipboard)throw e();return navigator.clipboard.writeText(t)}(t)}catch(i){try{await async function(t){const i=document.createElement("span");i.textContent=t,i.style.whiteSpace="pre",i.style.webkitUserSelect="auto",i.style.userSelect="all",document.body.appendChild(i);const r=window.getSelection(),o=window.document.createRange();r.removeAllRanges(),o.selectNode(i),r.addRange(o);let a=!1;try{a=window.document.execCommand("copy")}finally{r.removeAllRanges(),window.document.body.removeChild(i)}if(!a)throw e()}(t)}catch(t){throw t||i||e()}}}}()),ji=[{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_services",name:"Developer tools: actions",badge:"Show action dev tools of",description:"show your action developer tools",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_events",name:"Developer tools: events",badge:"Show event dev tools of",description:"show your event developer tools",introduced:"2021.3"},{redirect:"developer_call_service",name:"Developer tools: perform action",badge:"Perform action on",description:"show your service developer tools with a specific action selected",introduced:"2021.3",params:{service:"string"},example:{service:"homeassistant.turn_on"}},{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"}],Ki={},Gi={},Zi=function(){if(qi)return Ki;qi=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.sanitizeUrl=void 0;var e=(Vi||(Vi=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.BLANK_URL=Gi.relativeFirstCharacters=Gi.whitespaceEscapeCharsRegex=Gi.urlSchemeRegex=Gi.ctrlCharactersRegex=Gi.htmlCtrlEntityRegex=Gi.htmlEntitiesRegex=Gi.invalidProtocolRegex=void 0,Gi.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Gi.htmlEntitiesRegex=/(\w+)(^\w|;)?/g,Gi.htmlCtrlEntityRegex=/&(newline|tab);/gi,Gi.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Gi.urlSchemeRegex=/^.+(:|:)/gim,Gi.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Gi.relativeFirstCharacters=[".","/"],Gi.BLANK_URL="about:blank"),Gi);function t(e){try{return decodeURIComponent(e)}catch(t){return e}}return Ki.sanitizeUrl=function(i){if(!i)return e.BLANK_URL;var r,o,a=t(i);do{r=(a=t(a=(o=a,o.replace(e.ctrlCharactersRegex,"").replace(e.htmlEntitiesRegex,(function(e,t){return String.fromCharCode(t)}))).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim())).match(e.ctrlCharactersRegex)||a.match(e.htmlEntitiesRegex)||a.match(e.htmlCtrlEntityRegex)||a.match(e.whitespaceEscapeCharsRegex)}while(r&&r.length>0);var s=a;if(!s)return e.BLANK_URL;if(function(t){return e.relativeFirstCharacters.indexOf(t[0])>-1}(s))return s;var n=s.match(e.urlSchemeRegex);if(!n)return s;var l=n[0];return e.invalidProtocolRegex.test(l)?e.BLANK_URL:s},Ki}();const Yi=(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!==Zi.sanitizeUrl(e)?"Invalid URL.":void 0})(t):"Unknown param type"};let Xi;const Ji=(()=>{const e={},t=new URLSearchParams(location.search);for(const[i,r]of t.entries())e[i]=r;return e})();Ji.redirect&&(Xi=ji.find((e=>e.redirect===Ji.redirect))),Xi||(Xi=ji.find((e=>void 0===e.params)));const Qi=ji.filter((e=>!e.deprecated));let er=class extends me{constructor(){super(...arguments),this._redirect=Xi,this._paramsValues={}}createRenderRoot(){for(;this.lastChild;)this.removeChild(this.lastChild);return this}render(){var e;const t=this._createHTML(),i=Ni(t);return J`