UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

5 lines 67.5 kB
/*! For license information please see 23208.7d5d3131b2dd1d10.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[23208],{86198:function(t,e,a){a.a(t,async function(t,o){try{a.d(e,{T:function(){return s}});var i=a(74487),r=a(22786),n=t([i]);i=(n.then?(await n)():n)[0];const s=(t,e)=>{try{var a,o;return null!==(a=null===(o=l(e))||void 0===o?void 0:o.of(t))&&void 0!==a?a:t}catch(i){return t}},l=(0,r.A)(t=>new Intl.DisplayNames(t.language,{type:"language",fallback:"code"}));o()}catch(s){o(s)}})},60353:function(t,e,a){a.d(e,{u:function(){return o}});class o{start(t){const e=Date.now();this._startY=t,this._startTime=e,this._lastY=t,this._lastTime=e,this._delta=0}move(t){const e=Date.now();return this._delta=this._startY-t,this._lastY=t,this._lastTime=e,this._delta}end(){const t=this.getVelocity(),e=Math.abs(t)>this._velocityThreshold;return{velocity:t,delta:this._delta,isSwipe:e,isDownwardSwipe:t>0}}getDelta(){return this._delta}getVelocity(){if(Date.now()-this._lastTime>=this._movementTimeThreshold)return 0;const t=this._lastTime-this._startTime;return t>0?(this._lastY-this._startY)/t:0}reset(){this._startY=0,this._delta=0,this._startTime=0,this._lastY=0,this._lastTime=0}constructor(t={}){var e,a;this._startY=0,this._delta=0,this._startTime=0,this._lastY=0,this._lastTime=0,this._velocityThreshold=null!==(e=t.velocitySwipeThreshold)&&void 0!==e?e:.5,this._movementTimeThreshold=null!==(a=t.movementTimeThreshold)&&void 0!==a?a:100}}},5745:function(t,e,a){var o=a(40445),i=a(99731),r=a(67576);class n extends i.Y{}n=(0,o.Cg)([(0,r.EM)("ha-chip-set")],n)},99611:function(t,e,a){a.a(t,async function(t,e){try{a(18111),a(13579),a(3362),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);var o=a(40445),i=a(1126),r=a(35211),n=a(5124),s=a(67576),l=a(1087),d=a(60353),c=a(22792),h=a(59992),u=a(14503),p=a(22348),f=t([i,h]);[i,h]=f.then?(await f)():f;let b,v,w=t=>t;const m=300,g=new Set(["ha-control-slider","ha-slider","ha-control-switch","ha-control-circular-slider","ha-hs-color-picker","ha-map","ha-more-info-control-select-container","ha-filter-chip"]),y=new Set(["volume-slider-container","forecast"]);class _ extends((0,h.V)(n.WF)){get scrollableElement(){return this._bodyElement}connectedCallback(){super.connectedCallback(),this.addEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.addEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0})}updated(t){super.updated(t),t.has("open")&&(this._drawerOpen=this.open)}render(){return(0,n.qy)(b||(b=w` <wa-drawer id="drawer" placement="bottom" .open="${0}" .lightDismiss="${0}" .ariaLabelledby="${0}" .ariaDescribedby="${0}" @keydown="${0}" @wa-show="${0}" @wa-after-show="${0}" @wa-hide="${0}" @wa-after-hide="${0}" @click="${0}" without-header @touchstart="${0}"> <div class="handle-wrapper" aria-hidden="true"> <div class="handle"></div> </div> <slot name="header"></slot> <div class="content-wrapper"> <div id="body" class="body ha-scrollbar"> <slot></slot> </div> ${0} </div> <slot name="footer"></slot> </wa-drawer> `),this._drawerOpen,!this.preventScrimClose,this.ariaLabelledBy,this.ariaDescribedBy,this._handleKeyDown,this._handleShow,this._handleAfterShow,this._handleHide,this._handleAfterHide,this._handleCloseAction,this._handleTouchStart,this.renderScrollableFades())}_startResizing(t){document.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),document.addEventListener("touchend",this._handleTouchEnd),document.addEventListener("touchcancel",this._handleTouchEnd),this._gestureRecognizer.start(t)}_animateSnapBack(){this.style.setProperty("--dialog-transition",`transform ${m}ms ease-out`),this.style.removeProperty("--dialog-transform"),setTimeout(()=>{this.style.removeProperty("--dialog-transition")},m)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.removeEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0}),this._unregisterResizeHandlers(),this._isDragging=!1}static get styles(){return[...super.styles,u.dp,(0,n.AH)(v||(v=w`wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height, auto);--show-duration:${0}ms;--hide-duration:${0}ms}wa-drawer::part(dialog){max-height:min(var(--ha-bottom-sheet-max-height,90vh),calc(100vh - max(var(--safe-area-inset-top),48px)));max-height:min(var(--ha-bottom-sheet-max-height,90dvh),calc(100dvh - max(var(--safe-area-inset-top),48px)));align-items:center;transform:var(--dialog-transform);transition:var(--dialog-transition)}@media (prefers-reduced-motion:reduce){wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height, auto);--show-duration:1ms;--hide-duration:1ms}wa-drawer::part(dialog){transition:1ms}}wa-drawer::part(dialog)::backdrop{-webkit-backdrop-filter:var(--ha-bottom-sheet-scrim-backdrop-filter,var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none)));backdrop-filter:var(--ha-bottom-sheet-scrim-backdrop-filter,var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none)));background-color:var(--ha-bottom-sheet-scrim-color,var(--mdc-dialog-scrim-color,none))}wa-drawer::part(body){max-width:var(--ha-bottom-sheet-max-width);width:100%;position:relative;border-top-left-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));border-top-right-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));background-color:var(--ha-bottom-sheet-surface-background,var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default))));-webkit-backdrop-filter:var(--ha-bottom-sheet-surface-backdrop-filter,var(--ha-dialog-surface-backdrop-filter,none));backdrop-filter:var(--ha-bottom-sheet-surface-backdrop-filter,var(--ha-dialog-surface-backdrop-filter,none));padding:var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left))}:host([flexcontent]) wa-drawer::part(body){display:flex;flex-direction:column}:host([prevent-scrim-close]) .handle-wrapper{display:none}.handle-wrapper{position:absolute;top:0;inset-inline-start:0;width:100%;padding-bottom:2px;display:flex;justify-content:center;align-items:center;pointer-events:none;z-index:1}.handle-wrapper .handle{height:16px;width:200px;display:flex;justify-content:center;align-items:center}.handle-wrapper .handle::after{content:"";border-radius:var(--ha-border-radius-md);height:4px;background:var(--ha-bottom-sheet-handle-color,var(--divider-color));width:40px}.content-wrapper{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.body{padding:var(--ha-bottom-sheet-content-padding,0);box-sizing:border-box}:host([flexcontent]) .body{flex:1;max-width:100%;display:flex;flex-direction:column;padding:var(--ha-bottom-sheet-content-padding,var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left)));box-sizing:border-box}slot[name=footer]{display:block;padding:0}::slotted([slot=footer]){display:flex;padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4);gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%;box-sizing:border-box}:host([flexcontent]) slot[name=footer]{flex-shrink:0}`),m,m)]}constructor(...t){super(...t),this.open=!1,this.flexContent=!1,this.preventScrimClose=!1,this._drawerOpen=!1,this._sliderInteractionActive=!1,this._gestureRecognizer=new d.u,this._isDragging=!1,this._escapePressed=!1,this._handleShow=async()=>{this._drawerOpen=!0,this.open=!0,(0,l.r)(this,"opened"),await this.updateComplete,requestAnimationFrame(()=>{var t;const e=this._autofocusElement;null!==(t=this._hassConfig)&&void 0!==t&&t.auth.external&&(0,p.V)(this._hassConfig.auth.external)?e&&(e.id||(e.id="ha-bottom-sheet-autofocus"),this._hassConfig.auth.external.fireMessage({type:"focus_element",payload:{element_id:e.id}})):null==e||e.focus()})},this._handleAfterShow=()=>{(0,l.r)(this,"after-show")},this._handleSliderInteractionStart=()=>{this._sliderInteractionActive=!0},this._handleSliderInteractionStop=()=>{this._sliderInteractionActive=!1},this._handleAfterHide=t=>{if(this._sliderInteractionActive)return this._drawerOpen=!0,void(this.open=!0);t.eventPhase===Event.AT_TARGET&&(this.open=!1,this._drawerOpen=!1,(0,l.r)(this,"closed"))},this._handleHide=t=>{if(t.eventPhase!==Event.AT_TARGET)return;const e=t.detail.source===t.target.drawer;if(this._sliderInteractionActive)return t.preventDefault(),this._drawerOpen=!0,this.open=!0,void(this._escapePressed=!1);this.preventScrimClose&&this._escapePressed&&e&&t.preventDefault(),this._escapePressed=!1},this._handleKeyDown=t=>{"Escape"===t.key&&(this._escapePressed=!0,this.preventScrimClose&&t.preventDefault(),t.stopPropagation(),t.currentTarget.open=!1)},this._handleCloseAction=t=>{t.composedPath().some(t=>t instanceof HTMLElement&&("close"===t.getAttribute("data-dialog")||"close"===t.getAttribute("data-drawer")))&&(this._drawerOpen=!1)},this._handleTouchStart=t=>{if(this.preventScrimClose)return;const e=t.composedPath();for(const a of e){if(a===this._drawer)break;if(a instanceof HTMLElement&&(a.scrollTop>0||g.has(a.localName)||Array.from(a.classList).some(t=>y.has(t))))return}t.stopPropagation(),this._startResizing(t.touches[0].clientY)},this._handleTouchMove=t=>{const e=t.touches[0].clientY,a=this._gestureRecognizer.move(e);a<0&&(t.preventDefault(),this._isDragging=!0,requestAnimationFrame(()=>{this._isDragging&&this.style.setProperty("--dialog-transform",`translateY(${-1*a}px)`)}))},this._handleTouchEnd=()=>{var t;this._unregisterResizeHandlers(),this._isDragging=!1;const e=this._gestureRecognizer.end();if(e.isSwipe)return void(e.isDownwardSwipe?this._drawerOpen=!1:this._animateSnapBack());const a=null===(t=this._drawer.shadowRoot)||void 0===t?void 0:t.querySelector('[part="body"]'),o=(null==a?void 0:a.offsetHeight)||0;o>0&&e.delta<0&&Math.abs(e.delta)>.5*o?this._drawerOpen=!1:this._animateSnapBack()},this._unregisterResizeHandlers=()=>{document.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),document.removeEventListener("touchcancel",this._handleTouchEnd)}}}(0,o.Cg)([(0,s.MZ)({attribute:"aria-labelledby"})],_.prototype,"ariaLabelledBy",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"aria-describedby"})],_.prototype,"ariaDescribedBy",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean})],_.prototype,"open",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],_.prototype,"flexContent",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],_.prototype,"preventScrimClose",void 0),(0,o.Cg)([(0,s.wk)()],_.prototype,"_drawerOpen",void 0),(0,o.Cg)([(0,s.wk)()],_.prototype,"_sliderInteractionActive",void 0),(0,o.Cg)([(0,s.wk)(),(0,r.Fg)({context:c.WF,subscribe:!0})],_.prototype,"_hassConfig",void 0),(0,o.Cg)([(0,s.P)("#drawer")],_.prototype,"_drawer",void 0),(0,o.Cg)([(0,s.P)("#body")],_.prototype,"_bodyElement",void 0),(0,o.Cg)([(0,s.P)("[autofocus]")],_.prototype,"_autofocusElement",void 0),_=(0,o.Cg)([(0,s.EM)("ha-bottom-sheet")],_),e()}catch(b){e(b)}})},47680:function(t,e,a){a.r(e),a.d(e,{HaIcon:function(){return S}});a(74423),a(3362),a(62953);var o=a(40445),i=a(5124),r=a(67576),n=a(1087),s=a(9899),l=a(700),d=(a(44114),a(18111),a(7588),a(96167),a(95192)),c=a(7553);const h=JSON.parse('{"version":"7.4.47","parts":[{"file":"7a7139d465f1f41cb26ab851a17caa21a9331234"},{"start":"account-supervisor-circle-","file":"9561286c4c1021d46b9006596812178190a7cc1c"},{"start":"alpha-r-c","file":"eb466b7087fb2b4d23376ea9bc86693c45c500fa"},{"start":"arrow-decision-o","file":"4b3c01b7e0723b702940c5ac46fb9e555646972b"},{"start":"baby-f","file":"2611401d85450b95ab448ad1d02c1a432b409ed2"},{"start":"battery-hi","file":"89bcd31855b34cd9d31ac693fb073277e74f1f6a"},{"start":"blur-r","file":"373709cd5d7e688c2addc9a6c5d26c2d57c02c48"},{"start":"briefcase-account-","file":"a75956cf812ee90ee4f656274426aafac81e1053"},{"start":"calendar-question-","file":"3253f2529b5ebdd110b411917bacfacb5b7063e6"},{"start":"car-lig","file":"74566af3501ad6ae58ad13a8b6921b3cc2ef879d"},{"start":"cellphone-co","file":"7677f1cfb2dd4f5562a2aa6d3ae43a2e6997b21a"},{"start":"circle-slice-2","file":"70d08c50ec4522dd75d11338db57846588263ee2"},{"start":"cloud-co","file":"141d2bfa55ca4c83f4bae2812a5da59a84fec4ff"},{"start":"cog-s","file":"5a640365f8e47c609005d5e098e0e8104286d120"},{"start":"cookie-l","file":"dd85b8eb8581b176d3acf75d1bd82e61ca1ba2fc"},{"start":"currency-eur-","file":"15362279f4ebfc3620ae55f79d2830ad86d5213e"},{"start":"delete-o","file":"239434ab8df61237277d7599ebe066c55806c274"},{"start":"draw-","file":"5605918a592070803ba2ad05a5aba06263da0d70"},{"start":"emoticon-po","file":"a838cfcec34323946237a9f18e66945f55260f78"},{"start":"fan","file":"effd56103b37a8c7f332e22de8e4d67a69b70db7"},{"start":"file-question-","file":"b2424b50bd465ae192593f1c3d086c5eec893af8"},{"start":"flask-off-","file":"3b76295cde006a18f0301dd98eed8c57e1d5a425"},{"start":"food-s","file":"1c6941474cbeb1755faaaf5771440577f4f1f9c6"},{"start":"gamepad-u","file":"c6efe18db6bc9654ae3540c7dee83218a5450263"},{"start":"google-f","file":"df341afe6ad4437457cf188499cb8d2df8ac7b9e"},{"start":"head-c","file":"282121c9e45ed67f033edcc1eafd279334c00f46"},{"start":"home-pl","file":"27e8e38fc7adcacf2a210802f27d841b49c8c508"},{"start":"inbox-","file":"0f0316ec7b1b7f7ce3eaabce26c9ef619b5a1694"},{"start":"key-v","file":"ea33462be7b953ff1eafc5dac2d166b210685a60"},{"start":"leaf-circle-","file":"33db9bbd66ce48a2db3e987fdbd37fb0482145a4"},{"start":"lock-p","file":"b89e27ed39e9d10c44259362a4b57f3c579d3ec8"},{"start":"message-s","file":"7b5ab5a5cadbe06e3113ec148f044aa701eac53a"},{"start":"moti","file":"01024d78c248d36805b565e343dd98033cc3bcaf"},{"start":"newspaper-variant-o","file":"22a6ec4a4fdd0a7c0acaf805f6127b38723c9189"},{"start":"on","file":"c73d55b412f394e64632e2011a59aa05e5a1f50d"},{"start":"paw-ou","file":"3f669bf26d16752dc4a9ea349492df93a13dcfbf"},{"start":"pigg","file":"0c24edb27eb1c90b6e33fc05f34ef3118fa94256"},{"start":"printer-pos-sy","file":"41a55cda866f90b99a64395c3bb18c14983dcf0a"},{"start":"read","file":"c7ed91552a3a64c9be88c85e807404cf705b7edf"},{"start":"robot-vacuum-variant-o","file":"917d2a35d7268c0ea9ad9ecab2778060e19d90e0"},{"start":"sees","file":"6e82d9861d8fac30102bafa212021b819f303bdb"},{"start":"shoe-f","file":"e2fe7ce02b5472301418cc90a0e631f187b9f238"},{"start":"snowflake-m","file":"a28ba9f5309090c8b49a27ca20ff582a944f6e71"},{"start":"st","file":"7e92d03f095ec27e137b708b879dfd273bd735ab"},{"start":"su","file":"61c74913720f9de59a379bdca37f1d2f0dc1f9db"},{"start":"tag-plus-","file":"8f3184156a4f38549cf4c4fffba73a6a941166ae"},{"start":"timer-a","file":"baab470d11cfb3a3cd3b063ee6503a77d12a80d0"},{"start":"transit-d","file":"8561c0d9b1ac03fab360fd8fe9729c96e8693239"},{"start":"vector-arrange-b","file":"c9a3439257d4bab33d3355f1f2e11842e8171141"},{"start":"water-ou","file":"02dbccfb8ca35f39b99f5a085b095fc1275005a0"},{"start":"webc","file":"57bafd4b97341f4f2ac20a609d023719f23a619c"},{"start":"zip","file":"65ae094e8263236fa50486584a08c03497a38d93"}]}');let u;const p=()=>(u||(u=f().catch(t=>{throw u=void 0,t})),u),f=async()=>{const t=(0,d.y$)("hass-icon-db","mdi-icon-store"),e=await(0,d.Jt)("_version",t);return e?e!==h.version&&(await(0,d.IU)(t),(0,d.hZ)("_version",h.version,t)):(0,d.hZ)("_version",h.version,t),t},b=["mdi","hass","hassio","hademo"];let v=[];a(67094);let w,m,g,y=t=>t;const _={},k={},x=(0,s.s)(()=>(async t=>{const e=Object.keys(t),a=await Promise.allSettled(Object.values(t));(await p())("readwrite",o=>{a.forEach((a,i)=>{"fulfilled"===a.status&&Object.entries(a.value).forEach(([t,e])=>{o.put(e,t)}),delete t[e[i]]})})})(k),2e3),C={},$={"home-assistant":()=>a.e(58781).then(a.bind(a,53580)).then(t=>t.mdiHomeAssistant),"music-assistant":()=>a.e(56009).then(a.bind(a,10576)).then(t=>t.mdiMusicAssistant),esphome:()=>a.e(88800).then(a.bind(a,45091)).then(t=>t.mdiEsphomeLogo)};class S extends i.WF{willUpdate(t){super.willUpdate(t),t.has("icon")&&(this._path=void 0,this._secondaryPath=void 0,this._viewBox=void 0,this._loadIcon())}render(){return this.icon?this._legacy?(0,i.qy)(w||(w=y` <iron-icon .icon="${0}"></iron-icon>`),this.icon):(0,i.qy)(m||(m=y`<ha-svg-icon .path="${0}" .secondaryPath="${0}" .viewBox="${0}"></ha-svg-icon>`),this._path,this._secondaryPath,this._viewBox):i.s6}async _loadIcon(){if(!this.icon)return;const t=this.icon,[e,a]=this.icon.split(":",2);let o,i=a;if(!e||!i)return;if(!b.includes(e)){const a=l.y[e];return a?void(a&&"function"==typeof a.getIcon&&this._setCustomPath(a.getIcon(i),t)):void(this._legacy=!0)}if(this._legacy=!1,i in _){const t=_[i];let a;t.newName?(a=`Icon ${e}:${i} was renamed to ${e}:${t.newName}, please change your config, it will be removed in version ${t.removeIn}.`,i=t.newName):a=`Icon ${e}:${i} was removed from MDI, please replace this icon with an other icon in your config, it will be removed in version ${t.removeIn}.`,console.warn(a),(0,n.r)(this,"write_log",{level:"warning",message:a})}if(i in C)return void(this._path=C[i]);if(i in $){const e=await $[i]();return this.icon===t&&(this._path=e),void(C[i]=e)}try{o=await(t=>new Promise((e,a)=>{if(v.push([t,e,a]),v.length>1)return;const o=p();(0,c.h)(1e3,(async()=>{(await o)("readonly",t=>{for(const[e,a,o]of v)(0,d.Yd)(t.get(e)).then(t=>a(t)).catch(t=>o(t));v=[]})})()).catch(t=>{for(const[,,e]of v)e(t);v=[]})}))(i)}catch(u){o=void 0}if(o)return this.icon===t&&(this._path=o),void(C[i]=o);const r=(t=>{let e;for(const a of h.parts){if(void 0!==a.start&&t<a.start)break;e=a}return e.file})(i);if(r in k)return void this._setPath(k[r],i,t);const s=fetch(`/static/mdi/${r}.json`).then(t=>t.json());k[r]=s,this._setPath(s,i,t),s.catch(()=>{delete k[r]}),x()}async _setCustomPath(t,e){const a=await t;this.icon===e&&(this._path=a.path,this._secondaryPath=a.secondaryPath,this._viewBox=a.viewBox)}async _setPath(t,e,a){try{const o=await t;this.icon===a&&(this._path=o[e]),C[e]=o[e]}catch(o){}}constructor(...t){super(...t),this._legacy=!1}}S.styles=(0,i.AH)(g||(g=y`:host{fill:currentcolor}`)),(0,o.Cg)([(0,r.MZ)()],S.prototype,"icon",void 0),(0,o.Cg)([(0,r.wk)()],S.prototype,"_path",void 0),(0,o.Cg)([(0,r.wk)()],S.prototype,"_secondaryPath",void 0),(0,o.Cg)([(0,r.wk)()],S.prototype,"_viewBox",void 0),(0,o.Cg)([(0,r.wk)()],S.prototype,"_legacy",void 0),S=(0,o.Cg)([(0,r.EM)("ha-icon")],S)},14927:function(t,e,a){a.a(t,async function(t,o){try{a.r(e),a.d(e,{HaLanguagePicker:function(){return S},getLanguageOptions:function(){return $}});var i=a(74487),r=(a(26910),a(18111),a(20116),a(61701),a(62953),a(40445)),n=a(5124),s=a(67576),l=a(22786),d=a(1087),c=a(86198),h=a(52220),u=a(28684),p=a(18350),f=a(38508),b=t([i,p,f,c]);[i,p,f,c]=b.then?(await b)():b;let v,w,m,g,y,_,k=t=>t;const x="M7,10L12,15L17,10H7Z",C=[{name:"primary",weight:10},{name:"secondary",weight:8},{name:"search_labels.english",weight:5}],$=(t,e,a,o)=>{let i=[];const r={language:"en"};if(e){const e=u.P.translations;i=t.map(t=>{var a;let i=null===(a=e[t])||void 0===a?void 0:a.nativeName;if(!i)try{i=new Intl.DisplayNames(t,{type:"language",fallback:"code"}).of(t)}catch(l){i=t}const n=(0,c.T)(t,o||{language:navigator.language}),s=(0,c.T)(t,r);return{id:t,primary:i,secondary:n!==i?n:void 0,search_labels:{english:s!==i?s:null}}})}else o&&(i=t.map(t=>{const e=(0,c.T)(t,o),a=(0,c.T)(t,r);return{id:t,primary:e,search_labels:{english:a!==e?a:null}}}));return!a&&o&&i.sort((t,e)=>(0,h.SH)(t.primary,e.primary,o.language)),i};class S extends n.WF{firstUpdated(t){super.firstUpdated(t),this._computeDefaultLanguageOptions()}_computeDefaultLanguageOptions(){this._defaultLanguages=Object.keys(u.P.translations)}render(){var t,e,a,o;const i=null!==(t=this.label)&&void 0!==t?t:(null===(e=this.hass)||void 0===e?void 0:e.localize("ui.components.language-picker.language"))||"Language",r=null!==(a=this.value)&&void 0!==a?a:this.required&&!this.disabled?this._getItems()[0].id:this.value;return(0,n.qy)(v||(v=k` <ha-generic-picker .hass="${0}" .autofocus="${0}" .notFoundLabel="${0}" .emptyLabel="${0}" .label="${0}" .value="${0}" .valueRenderer="${0}" .disabled="${0}" .helper="${0}" .getItems="${0}" .searchKeys="${0}" @value-changed="${0}" hide-clear-icon> ${0} </ha-generic-picker> `),this.hass,this.autofocus,this._notFoundLabel,(null===(o=this.hass)||void 0===o?void 0:o.localize("ui.components.language-picker.no_languages"))||"No languages available",i,r,this._valueRenderer,this.disabled,this.helper,this._getItems,C,this._changed,this.buttonStyle?(0,n.qy)(w||(w=k`<ha-button slot="field" .disabled="${0}" @click="${0}" appearance="plain" variant="neutral"> ${0} <ha-svg-icon slot="end" .path="${0}"></ha-svg-icon> </ha-button>`),this.disabled,this._openPicker,this._getLanguageName(r),x):n.s6)}_openPicker(t){t.stopPropagation(),this.genericPicker.open()}_changed(t){t.stopPropagation(),this.value=t.detail.value,(0,d.r)(this,"value-changed",{value:this.value})}constructor(...t){super(...t),this.disabled=!1,this.required=!1,this.nativeName=!1,this.buttonStyle=!1,this.noSort=!1,this._defaultLanguages=[],this._getLanguagesOptions=(0,l.A)($),this._getItems=()=>{var t,e;return this._getLanguagesOptions(null!==(t=this.languages)&&void 0!==t?t:this._defaultLanguages,this.nativeName,this.noSort,null===(e=this.hass)||void 0===e?void 0:e.locale)},this._getLanguageName=t=>{var e;return null===(e=this._getItems().find(e=>e.id===t))||void 0===e?void 0:e.primary},this._valueRenderer=t=>{var e;return(0,n.qy)(m||(m=k`<span slot="headline">${0}</span> `),null!==(e=this._getLanguageName(t))&&void 0!==e?e:t)},this._notFoundLabel=t=>{const e=(0,n.qy)(g||(g=k`<b>‘${0}’</b>`),t);return this.hass?this.hass.localize("ui.components.language-picker.no_match",{term:e}):(0,n.qy)(y||(y=k`No languages found for ${0}`),e)}}}S.styles=(0,n.AH)(_||(_=k`ha-generic-picker{width:100%;display:block}`)),(0,r.Cg)([(0,s.MZ)()],S.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)()],S.prototype,"label",void 0),(0,r.Cg)([(0,s.MZ)({type:Array})],S.prototype,"languages",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],S.prototype,"hass",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],S.prototype,"disabled",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],S.prototype,"required",void 0),(0,r.Cg)([(0,s.MZ)()],S.prototype,"helper",void 0),(0,r.Cg)([(0,s.MZ)({attribute:"native-name",type:Boolean})],S.prototype,"nativeName",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,attribute:"button-style"})],S.prototype,"buttonStyle",void 0),(0,r.Cg)([(0,s.MZ)({attribute:"no-sort",type:Boolean})],S.prototype,"noSort",void 0),(0,r.Cg)([(0,s.wk)()],S.prototype,"_defaultLanguages",void 0),(0,r.Cg)([(0,s.P)("ha-generic-picker",!0)],S.prototype,"genericPicker",void 0),S=(0,r.Cg)([(0,s.EM)("ha-language-picker")],S),o()}catch(v){o(v)}})},36866:function(t,e,a){a.a(t,async function(t,e){try{a(62953);var o=a(40445),i=a(5124),r=a(67576),n=a(91485),s=t([n]);n=(s.then?(await s)():s)[0];let l,d,c=t=>t;const h="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z";class u extends n.U{willUpdate(t){var e,a;(super.willUpdate(t),this.label||this.placeholder||this.hasUpdated&&!t.has("_i18n"))||(this.placeholder=(null===(e=this.i18n)||void 0===e||null===(a=e.localize)||void 0===a?void 0:a.call(e,"ui.common.search"))||"Search")}renderStartDefault(){return(0,i.qy)(l||(l=c`<ha-svg-icon slot="start" .path="${0}"></ha-svg-icon>`),h)}constructor(){super(),this.withClear=!0,this.autocomplete=this.autocomplete||"off"}}u.styles=[...n.U.styles,(0,i.AH)(d||(d=c`:host([appearance=outlined]) wa-input.no-label::part(base){height:40px}`))],u=(0,o.Cg)([(0,r.EM)("ha-input-search")],u),e()}catch(l){e(l)}})},700:function(t,e,a){a.d(e,{y:function(){return n}});const o=window;"customIconsets"in o||(o.customIconsets={});const i=o.customIconsets,r=window;"customIcons"in r||(r.customIcons={});const n=new Proxy(r.customIcons,{get:(t,e)=>{var a;return null!==(a=t[e])&&void 0!==a?a:i[e]?{getIcon:i[e]}:void 0}})},59992:function(t,e,a){a.a(t,async function(t,o){try{a.d(e,{V:function(){return f}});a(62953);var i=a(40445),r=a(88696),n=a(5124),s=a(6412),l=a(67576),d=t([r]);r=(d.then?(await d)():d)[0];let c,h,u=t=>t;const p=t=>void 0===t?[]:Array.isArray(t)?t:[t],f=t=>{class e extends t{get scrollableElement(){return e.DEFAULT_SCROLLABLE_ELEMENT}firstUpdated(t){var e;null===(e=super.firstUpdated)||void 0===e||e.call(this,t),this.scrollableElement&&this._updateScrollableState(this.scrollableElement),this._attachScrollableElement()}updated(t){var e;null===(e=super.updated)||void 0===e||e.call(this,t),this._attachScrollableElement()}disconnectedCallback(){this._detachScrollableElement(),this._contentScrolled=!1,this._contentScrollable=!1,super.disconnectedCallback()}renderScrollableFades(t=!1){return(0,n.qy)(c||(c=u` <div class="${0}"></div> <div class="${0}"></div> `),(0,s.H)({"fade-top":!0,rounded:t,visible:this._contentScrolled}),(0,s.H)({"fade-bottom":!0,rounded:t,visible:this._contentScrollable}))}static get styles(){var t;const e=Object.getPrototypeOf(this);return[...p(null!==(t=null==e?void 0:e.styles)&&void 0!==t?t:[]),(0,n.AH)(h||(h=u`.fade-bottom,.fade-top{position:absolute;left:0;right:0;height:var(--ha-space-2);pointer-events:none;transition:opacity 180ms ease-in-out;border-radius:var(--ha-border-radius-square);opacity:0;background:linear-gradient(to bottom,var(--ha-color-shadow-scrollable-fade),transparent)}.fade-top{top:0}.fade-bottom{bottom:0;transform:rotate(180deg)}.fade-bottom.visible,.fade-top.visible{opacity:1}.fade-bottom.rounded,.fade-top.rounded{border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}.fade-top.rounded{border-top-left-radius:var(--ha-border-radius-square);border-top-right-radius:var(--ha-border-radius-square)}.fade-bottom.rounded{border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}`))]}_attachScrollableElement(){const t=this.scrollableElement;t!==this._scrollTarget&&(this._detachScrollableElement(),t&&(this._scrollTarget=t,t.addEventListener("scroll",this._onScroll,{passive:!0}),this._resize.observe(t),this._updateScrollableState(t)))}_detachScrollableElement(){var t,e;this._scrollTarget&&(this._scrollTarget.removeEventListener("scroll",this._onScroll),null===(t=(e=this._resize).unobserve)||void 0===t||t.call(e,this._scrollTarget),this._scrollTarget=void 0)}_updateScrollableState(t){const e=parseFloat(getComputedStyle(t).getPropertyValue("--safe-area-inset-bottom"))||0,{scrollHeight:a=0,clientHeight:o=0,scrollTop:i=0}=t;this._contentScrollable=a-o>i+e+this.scrollFadeSafeAreaPadding}constructor(...t){super(...t),this._contentScrolled=!1,this._contentScrollable=!1,this._onScroll=t=>{var e;const a=t.currentTarget;this._contentScrolled=(null!==(e=a.scrollTop)&&void 0!==e?e:0)>this.scrollFadeThreshold,this._updateScrollableState(a)},this._resize=new r.P(this,{target:null,callback:t=>{var e;const a=null===(e=t[0])||void 0===e?void 0:e.target;a&&this._updateScrollableState(a)}}),this.scrollFadeSafeAreaPadding=4,this.scrollFadeThreshold=4}}return e.DEFAULT_SCROLLABLE_ELEMENT=null,(0,i.Cg)([(0,l.wk)()],e.prototype,"_contentScrolled",void 0),(0,i.Cg)([(0,l.wk)()],e.prototype,"_contentScrollable",void 0),e};o()}catch(c){o(c)}})},85614:function(t,e,a){a.d(e,{i:function(){return o}});a(3362),a(62953);const o=async()=>{await Promise.all([a.e(38085),a.e(22309)]).then(a.bind(a,40772))}},22348:function(t,e,a){a.d(e,{V:function(){return i}});var o=a(37177);const i=t=>!!t&&o.n},37177:function(t,e,a){a.d(e,{n:function(){return o}});a(27495);const o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},88438:function(t,e,a){a.d(e,{C:function(){return o}});const o="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},1126:function(t,e,a){a.a(t,async function(t,e){try{a(3362),a(27495),a(62953);var o=a(5124),i=a(67576),r=a(6412),n=a(63672),s=a(17051),l=a(42462),d=a(28438),c=a(98779),h=a(27259),u=a(25877),p=a(31247),f=a(4444),b=a(92070),v=a(9395),w=a(717),m=a(17060),g=a(88496),y=a(57024),_=t([g,m]);[g,m]=_.then?(await _)():_;let $,S,E,A=t=>t;var k=Object.defineProperty,x=Object.getOwnPropertyDescriptor,C=(t,e,a,o)=>{for(var i,r=o>1?void 0:o?x(e,a):e,n=t.length-1;n>=0;n--)(i=t[n])&&(r=(o?i(e,a,r):i(r))||r);return o&&r&&k(e,a,r),r};let M=class extends w.A{firstUpdated(){o.S$||this.open&&(this.addOpenListeners(),this.drawer.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(t){const e=new d.L({source:t});if(this.dispatchEvent(e),e.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.drawer,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.drawer,"hide"),this.open=!1,this.drawer.close(),(0,f.I7)(this);const a=this.originalTrigger;"function"==typeof(null==a?void 0:a.focus)&&setTimeout(()=>a.focus()),this.dispatchEvent(new s.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,u.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this)}handleDialogCancel(t){t.preventDefault(),!this.drawer.classList.contains("hide")&&t.target===this.drawer&&(0,u.a0)(this)&&this.requestClose(this.drawer)}handleDialogClick(t){const e=t.target.closest('[data-drawer="close"]');e&&(t.stopPropagation(),this.requestClose(e))}async handleDialogPointerDown(t){t.target===this.drawer&&(this.lightDismiss?this.requestClose(this.drawer):await(0,h.Ud)(this.drawer,"pulse"))}handleOpenChange(){this.open&&!this.drawer.open?this.show():this.drawer.open&&(this.open=!0,this.requestClose(this.drawer))}async show(){const t=new c.k;this.dispatchEvent(t),t.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.drawer.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.drawer.focus()}),await(0,h.Ud)(this.drawer,"show"),this.dispatchEvent(new l.q))}render(){var t;const e=!this.withoutHeader,a=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return(0,o.qy)($||($=A` <dialog aria-labelledby="${0}" aria-describedby="${0}" part="dialog" class="${0}" @cancel="${0}" @click="${0}" @pointerdown="${0}"> ${0} <div part="body" class="body"><slot></slot></div> ${0} </dialog> `),null!==(t=this.ariaLabelledby)&&void 0!==t?t:"title",(0,n.J)(this.ariaDescribedby),(0,r.H)({drawer:!0,open:this.open,top:"top"===this.placement,end:"end"===this.placement,bottom:"bottom"===this.placement,start:"start"===this.placement}),this.handleDialogCancel,this.handleDialogClick,this.handleDialogPointerDown,e?(0,o.qy)(S||(S=A` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${0} </slot> </h2> <div part="header-actions" class="header-actions"> <slot name="header-actions"></slot> <wa-button part="close-button" exportparts="base:close-button__base" class="close" appearance="plain" @click="${0}"> <wa-icon name="xmark" label="${0}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `),this.label.length>0?this.label:String.fromCharCode(8203),t=>this.requestClose(t.target),this.localize.term("close")):"",a?(0,o.qy)(E||(E=A` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `)):"")}constructor(){super(...arguments),this.localize=new m.c(this),this.hasSlotController=new b.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.placement="end",this.withoutHeader=!1,this.lightDismiss=!0,this.withFooter=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.requestClose(this.drawer))}}};M.css=y.A,C([(0,i.P)(".drawer")],M.prototype,"drawer",2),C([(0,i.MZ)({type:Boolean,reflect:!0})],M.prototype,"open",2),C([(0,i.MZ)({reflect:!0})],M.prototype,"label",2),C([(0,i.MZ)({reflect:!0})],M.prototype,"placement",2),C([(0,i.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],M.prototype,"withoutHeader",2),C([(0,i.MZ)({attribute:"light-dismiss",type:Boolean})],M.prototype,"lightDismiss",2),C([(0,i.MZ)({attribute:"aria-labelledby"})],M.prototype,"ariaLabelledby",2),C([(0,i.MZ)({attribute:"aria-describedby"})],M.prototype,"ariaDescribedby",2),C([(0,i.MZ)({attribute:"with-footer",type:Boolean})],M.prototype,"withFooter",2),C([(0,v.w)("open",{waitUntilFirstUpdate:!0})],M.prototype,"handleOpenChange",1),M=C([(0,i.EM)("wa-drawer")],M),o.S$||(document.addEventListener("click",t=>{const e=t.target.closest("[data-drawer]");if(e instanceof Element){const[t,a]=(0,p.v)(e.getAttribute("data-drawer")||"");if("open"===t&&null!=a&&a.length){const t=e.getRootNode().getElementById(a);"wa-drawer"===(null==t?void 0:t.localName)?t.open=!0:console.warn(`A drawer with an ID of "${a}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),e()}catch($){e($)}})},57024:function(t,e,a){a.d(e,{A:function(){return i}});let o;var i=(0,a(5124).AH)(o||(o=(t=>t)`:host{--size:25rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.drawer{display:flex;flex-direction:column;top:0;inset-inline-start:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;color:inherit;background-color:var(--wa-color-surface-raised);border:none;box-shadow:var(--wa-shadow-l);overflow:auto;padding:0;margin:0;animation-duration:var(--show-duration);animation-timing-function:ease}.drawer.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.drawer.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.drawer.show.top{animation:show-drawer-from-top var(--show-duration) ease}.drawer.hide.top{animation:show-drawer-from-top var(--hide-duration) ease reverse}.drawer.show.end{animation:show-drawer-from-end var(--show-duration) ease}.drawer.show.end:dir(rtl){animation-name:show-drawer-from-start}.drawer.hide.end{animation:show-drawer-from-end var(--hide-duration) ease reverse}.drawer.hide.end:dir(rtl){animation-name:show-drawer-from-start}.drawer.show.bottom{animation:show-drawer-from-bottom var(--show-duration) ease}.drawer.hide.bottom{animation:show-drawer-from-bottom var(--hide-duration) ease reverse}.drawer.show.start{animation:show-drawer-from-start var(--show-duration) ease}.drawer.show.start:dir(rtl){animation-name:show-drawer-from-end}.drawer.hide.start{animation:show-drawer-from-start var(--hide-duration) ease reverse}.drawer.hide.start:dir(rtl){animation-name:show-drawer-from-end}.drawer.pulse{animation:pulse 250ms ease}.drawer:focus{outline:0}.top{top:0;inset-inline-end:auto;bottom:auto;inset-inline-start:0;width:100%;height:var(--size)}.end{top:0;inset-inline-end:0;bottom:auto;inset-inline-start:auto;width:var(--size);height:100%}.bottom{top:auto;inset-inline-end:auto;bottom:0;inset-inline-start:0;width:100%;height:var(--size)}.start{top:0;inset-inline-end:auto;bottom:auto;inset-inline-start:0;width:var(--size);height:100%}.header{display:flex;flex-wrap:nowrap;padding-inline-start:var(--spacing);padding-block-end:0;padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block))}.title{align-self:center;flex:1 1 auto;font:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);margin:0}.header-actions{align-self:start;display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:end;gap:var(--wa-space-2xs);padding-inline-start:var(--spacing)}.header-actions ::slotted(wa-button),.header-actions wa-button{flex:0 0 auto;display:flex;align-items:center}.body{flex:1 1 auto;display:block;padding:var(--spacing);overflow:auto;-webkit-overflow-scrolling:touch}.body:focus{outline:0}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{display:flex;flex-wrap:wrap;gap:var(--wa-space-xs);justify-content:end;padding:var(--spacing);padding-block-start:0}.footer ::slotted(wa-button:not(:last-of-type)){margin-inline-end:var(--wa-spacing-xs)}.drawer::backdrop{background-color:var(--wa-color-overlay-modal,rgb(0 0 0 / .25));-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}@keyframes pulse{0%{scale:1}50%{scale:1.01}100%{scale:1}}@keyframes show-drawer{from{opacity:0;scale:0.8}to{opacity:1;scale:1}}@keyframes show-drawer-from-top{from{opacity:0;translate:0 -100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-end{from{opacity:0;translate:100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-bottom{from{opacity:0;translate:0 100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-start{from{opacity:0;translate:-100% 0}to{opacity:1;translate:0 0}}@keyframes show-backdrop{from{opacity:0}to{opacity:1}}@media (forced-colors:active){.drawer{border:solid 1px #fff}}`))},30006:function(t,e,a){a.a(t,async function(t,e){try{a(74423),a(27495),a(62953);var o=a(5124),i=a(67576),r=a(6412),n=a(63672),s=a(34514),l=a(37541),d=a(40991),c=a(92070),h=a(28225),u=a(41268),p=a(9395),f=a(62676),b=a(15477),v=a(31896),w=a(17060),m=(a(38625),a(96272)),g=t([w]);w=(g.then?(await g)():g)[0];let x,C,$,S,E,A,M,L=t=>t;var y=Object.defineProperty,_=Object.getOwnPropertyDescriptor,k=(t,e,a,o)=>{for(var i,r=o>1?void 0:o?_(e,a):e,n=t.length-1;n>=0;n--)(i=t[n])&&(r=(o?i(e,a,r):i(r))||r);return o&&r&&y(e,a,r),r};let P=class extends f.q{static get validators(){return[...super.validators,(0,u.i)()]}get value(){var t;return this.valueHasChanged?this._value:null!==(t=this._value)&&void 0!==t?t:this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,d.b)(this.localName,this.size)}handleChange(t){this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0})}clear(){""!==this.value&&(this.value="",this.updateComplete.then(()=>{this.dispatchEvent(new l.I),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),this.input.focus()}handleClearClick(t){t.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(t){(0,h.U)(t,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(t){if(super.updated(t),t.has("value")||t.has("defaultValue")||t.has("type")){const t=["number","date","time","datetime-local"];this.input&&t.includes(this.type)&&this.value&&this.input.value!==this.value&&(this._value=this.input.value),this.customStates.set("blank",!this.value),this.updateValidity()}}handleStepChange(){this.input.step=String(this.step),this.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,a="none"){this.input.setSelectionRange(t,e,a)}setRangeText(t,e,a,o="preserve"){const i=null!=e?e:this.input.selectionStart,r=null!=a?a:this.input.selectionEnd;this.input.setRangeText(t,i,r,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}formResetCallback(){this.value=null,this.input&&(this.input.value=this.value),super.formResetCallback()}render(){var t;const e=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,a=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,i=!!this.label||!!e,l=!!this.hint||!!a,d=this.withClear&&!this.disabled&&!this.readonly,c=(o.S$||this.hasUpdated)&&d&&("number"==typeof this.value||this.value&&this.value.length>0);return(0,o.qy)(x||(x=L` <label part="form-control-label label" class="${0}" for="input" aria-hidden="${0}"> <slot name="label">${0}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${0}" title="${0}" name="${0}" ?disabled="${0}" ?readonly="${0}" ?required="${0}" placeholder="${0}" minlength="${0}" maxlength="${0}" min="${0}" max="${0}" step="${0}" .value="${0}" autocapitalize="${0}" autocomplete="${0}" autocorrect="${0}" ?autofocus="${0}" spellcheck="${0}" pattern="${0}" enterkeyhint="${0}" inputmode="${0}" aria-describedby="hint" @change="${0}" @input="${0}" @keydown="${0}"> ${0} ${0} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${0}" aria-hidden="${0}">${0}</slot> `),(0,r.H)({label:!0,"has-label":i}),i?"false":"true",this.label,"password"===this.type&&this.passwordVisible?"text":this.type,this.title,(0,n.J)(this.name),this.disabled,this.readonly,this.required,(0,n.J)(this.placeholder),(0,n.J)(this.minlength),(0,n.J)(this.maxlength),(0,n.J)(this.min),(0,n.J)(this.max),(0,n.J)(this.step),(0,s.V)(null!==(t=this.value)&&void 0!==t?t:""),(0,n.J)(this.autocapitalize),(0,n.J)(this.autocomplete),this.autocorrect?"on":"off",this.autofocus,this.spellcheck,(0,n.J)(this.pattern),(0,n.J)(this.enterkeyhint),(0,n.J)(this.inputmode),this.handleChange,this.handleInput,this.handleKeyDown,c?(0,o.qy)(C||(C=L` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `),this.localize.term("clearEntry"),this.handleClearClick):"",this.passwordToggle&&!this.disabled?(0,o.qy)($||($=L` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> ${0} </button> </slot> `),this.localize.term(this.passwordVisible?"hidePassword":"showPassword"),this.handlePasswordToggle,this.passwordVisible?(0,o.qy)(E||(E=L` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `)):(0,o.qy)(S||(S=L` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `))):"",(0,r.H)({"has-slotted":l}),l?"false":"true",this.hint)}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new c.X(this,"hint","label"),this.localize=new w.c(this),this.title="",this.type="text",this._value=null,this.defaultValue=this.getAttribute("value")||null,this.size="m",this.appearance="outlined",this.pill=!1,this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1}};P.css=[v.A,b.A,m.A],P.shadowRootOptions=Object.assign(Object.assign({},f.q.shadowRootOptions),{},{delegatesFocus:!0}),k([(0,i.P)("input")],P.prototype,"input",2),k([(0,i.MZ)()],P.prototype,"title",2),k([(0,i.MZ)({reflect:!0})],P.prototype,"type",2),k([(0,i.wk)()],P.prototype,"value",1),k([(0,i.MZ)({attribute:"value",reflect:!0})],P.prototype,"defaultValue",2),k([(0,i.MZ)({reflect:!0})],P.prototype,"size",2),k([(0,p.w)("size")],P.prototype,"handleSizeChange",1),k([(0,i.MZ)({reflect:!0})],P.prototype,"appearance",2),k([(0,i.MZ)({type:Boolean,reflect:!0})],P.prototype,"pill",2),k([(0,i.MZ)()],P.prototype,"label",2),k([(0,i.MZ)({attribute:"hint"})],P.prototype,"hint",2),k([(0,i.MZ)({attribute:"with-clear",type:Boolean})],P.prototype,"withClear",2),k([(0,i.MZ)()],P.prototype,"placeholder",2),k([(0,i.MZ)({type:Boolean,reflect:!0})],P.prototype,"readonly",2),k([(0,i.MZ)({attribute:"password-toggle",type:Boolean})],P.prototype,"passwordToggle",2),k([(0,i.MZ)({attribute:"password-visible",type:Boolean})],P.prototype,"passwordVisible",2),k([(0,i.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],P.prototype,"withoutSpinButtons",2),k([(0,i.MZ)({type:Boolean,reflect:!0})],P.prototype,"required",2),k([(0,i.MZ)()],P.prototype,"pattern",2),k([(0,i.MZ)({type:Number})],P.prototype,"minlength",2),k([(0,i.MZ)({type:Number})],P.prototype,"maxlength",2),k([(0,i.MZ)()],P.prototype,"min",2),k([(0,i.MZ)()],P.prototype,"max",2),k([(0,i.MZ)()],P.prototype,"step",2),k([(0,i.MZ)()],P.prototype,"autocapitalize",2),k([(0,i.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],P.prototype,"autocorrect",2),k([(0,i.MZ)()],P.prototype,"autocomplete",2),k([(0,i.MZ)({type:Boolean})],P.prototype,"autofocus",2),k([(0,i.MZ)()],P.prototype,"enterkeyhint",2),k([(0,i.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],P.prototype,"spellcheck",2),k([(0,i.MZ)()],P.prototype,"inputmode",2),k([(0,i.MZ)({attribute:"with-label",type:Boolean})],P.prototype,"withLabel",2),k([(0,i.MZ)({attribute:"with-hint",type:Boolean})],P.prototype,"withHint",2),k([(0,p.w)("step",{waitUntilFirstUpdate:!0})],P.prototype,"handleStepChange",1),P=k([(0,i.EM)("wa-input")],P),null===(A=(M=P).disableWarning)||void 0===A||A.call(M,"change-in-update"),e()}catch(x){e(x)}})},96272:function(t,e,a){a.d(e,{A:function(){return i}});let o;var i=(0,a(5124).AH)(o||(o=(t=>t)`:host{border-width:0}:host(:focus){outline:0}.text-field{display:flex;align-items:stretch;justify-content:start;position:relative;transition:inherit;height:var(--wa-form-control-height);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);cursor:text;color:var(--wa-form-control-value-color);font-size:var(--wa-form-control-value-font-size);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);vertical-align:middle;width:100%;transition:background-color var(--wa-transition-normal),border-color var(--wa-transition-normal),outline-color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);background-color:var(--wa-form-control-background-color);box-shadow:var(--box-shadow);padding:0 var(--wa-form-control-padding-inline);outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.text-field:focus-within{outline-color:var(--wa-color-focus)}.text-field:has(:disabled){cursor:not-allowed;opacity:.5}:host([appearance=outlined]) .text-field{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}:host([pill]) .text-field{border-radius:var(--wa-border-radius-pill)!important}.text-field:has(:-webkit-autofill),.text-field:has(:autofill){background-color:var(--wa-color-brand-fill-quiet)!important}.text-field input,.text-field textarea{height:100%;padding:0;border:none;outline:0;box-shadow:none;margin:0;cursor:inherit;-webkit-appearance:none;font:inherit}:is(.text-field input,.text-field textarea):-webkit-autofill,:is(.text-field input,.text-field textarea):-webkit-autofill:active,:is(.text-field input,.text-field textarea):-webkit-autofill:focus,:is(.text-field input,.text-field textarea):-webkit-autofill:hover{-webkit-background-clip:text;background-color:transparent;-webkit-text-fill-color:inherit}input{flex:1 1 auto;min-width:0;height:100%;transition:inherit;background-color:rgb(118 118 118 / 0);height:calc(var(--wa-form-control-height) - var(--border-width) * 2);padding-block:0;color:inherit}input:autofill,input:autofill:active,input:autofill:focus,input:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}input::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{-webkit-appearance:none}input:focus{outline:0}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}.end,.start{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}:is(.start,.end)::slotted(wa-icon){color:var(--wa-color-neutral-on-quiet)}.start::slotted(*){margin-inline-end:var(--wa-form-control-padding-inline)}.end::slotted(*){margin-inline-start:var(--wa-form-control-padding-inline)}.clear,.password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--wa-color-neutral-on-quiet);border:none;background:0 0;padding:0;transition:var(--wa-transition-normal) color;cursor:pointer;margin-inline-start:var(--wa-form-control-padding-inline)}@media (hover:hover){:is(.clear,.password-toggle):hover{color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:is(.clear,.password-toggle):active{color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:is(.clear,.password-toggle):focus{outline:0}::-ms-reveal{display:none}:host([without-spin-buttons]) input[type=number]{-moz-appearance:textfield}:host([without-spin-buttons]) input[type=number]::-webkit-inner-spin-button,:host([without-spin-buttons]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}`))},61366:function(t,e,a){a.a(t,async function(t,e){try{a(74423),a(3362),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);var o=a(5124),i=a(67576),r=a(6412),n=a(63672),s=a(17051),l=a(42462),d=a(28438),c=a(98779),h=a(27259),u=a(25877),p=a(984),f=a(95010),b=a(9395),v=a(717),w=a(40158),m=a(10416),g=t([w]);w=(g.then?(await g)():g)[0];let x,C=t=>t;var y=Object.defineProperty,_=Object.getOwnPropertyDescriptor,k=(t,e,a,o)=>{for(var i,r=o>1?void 0:o?_(e,a):e,n=t.length-1;n>=0;n--)(i=t[n])&&(r=(o?i(e,a,r):i(r))||r);return o&&r&&y(e,a,r),r};const $=new Set;let S=class extends v.A{connectedCallback(){super.connectedCallback(),this.id||(this.id=(0,f.N)("wa-popover-")),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.for&&this.anchor&&(this.anchor=null,this.handleForChange())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),this.eventController.abort()}firstUpdated(){this.open&&this.handleOpenChange()}updated(t){t.has("open")&&this.customStates.set("open",this.open)}async handleOpenChange(){if(this.open){const t=new c.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);$.forEach(t=>t.open=!1),document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),document.addEventListener("click",this.handleDocumentClick,{signal:this.eventController.signal}),this.trapFocus?this.dialog.showModal():this.dialog.show(),this.popup.active=!0,$.add(this),(0,u.AZ)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.dialog.focus()}),this.popup.popup||await this.popup.updateComplete,await(0,h.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const t=new d.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!0);document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick),$.delete(this),(0,u.Fw)(this),await(0,h.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.dialog.close(),this.dispatchEvent(new s.Z)}}handleForChange(){const t=this.getRootNode();if(!t)return;const e=this.for?t.getElementById(this.for):null,a=this.anchor;if(e===a)return;const{signal:o}=this.eventController;e&&e.addEventListener("click",this.handleAnchorClick,{signal:o}),a&&a.removeEventListener("click",this.handleAnchorClick),this.anchor=e,this.for&&!e&&console.warn(`A popover was assigned to an element with an ID of "${this.for}" but the element could not be found.`,this)}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}async show(){if(!this.open)return this.open=!0,(0,p.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,p.l)(this,"wa-after-hide")}handleDialogCancel(t){t.preventDefault(),this.dialog.classList.contains("hide")||(this.open=!1)}render(){return(0,o.qy)(x||(x=C` <dialog aria-labelledby="${0}" aria-describedby="${0}" part="dialog" class="dialog" @cancel="${0}"> <wa-popup part="popup" exportparts="
            popup:popup__popup,
            arrow:popup__arrow
          " class="${0}" placement="${0}" distance="${0}" skidding="${0}" flip shift ?arrow="${0}" .anchor="${0}" .autoSize="${0}" .autoSizePadding="${0}"> <div part="body" class="body" @click="${0}"> <slot></slot> </div> </wa-popup> </dialog> `),(0,n.J)(this.ariaLabelledby),(0,n.J)(this.ariaDescribedby),this.handleDialogCancel,(0,r.H)({popover:!0,"popover-open":this.open}),this.placement,this.distance,this.skidding,!this.withoutArrow,this.anchor,this.autoSize,this.autoSizePadding,this.handleBodyClick)}constructor(){super(...arguments),this.anchor=null,this.placement="top",this.open=!1,this.distance=8,this.skidding=0,this.for=null,this.withoutArrow=!1,this.autoSizePadding=0,this.trapFocus=!1,this.eventController=new AbortController,this.handleAnchorClick=()=>{this.open=!this.open},this.handleBodyClick=t=>{t.stopPropagation();t.target.closest('[data-popover="close"]')&&(this.open=!1)},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.open=!1,this.anchor&&"function"==typeof this.anchor.focus&&this.anchor.focus())},this.handleDocumentClick=t=>{this.anchor&&t.composedPath().includes(this.anchor)||t.composedPath().includes(this)||(this.open=!1)}}};S.css=m.A,S.dependencies={"wa-popup":w.A},k([(0,i.P)("dialog")],S.prototype,"dialog",2),k([(0,i.P)(".body")],S.prototype,"body",2),k([(0,i.P)("wa-popup")],S.prototype,"popup",2),k([(0,i.wk)()],S.prototype,"anchor",2),k([(0,i.MZ)()],S.prototype,"placement",2),k([(0,i.MZ)({type:Boolean,reflect:!0})],S.prototype,"open",2),k([(0,i.MZ)({type:Number})],S.prototype,"distance",2),k([(0,i.MZ)({type:Number})],S.prototype,"skidding",2),k([(0,i.MZ)()],S.prototype,"for",2),k([(0,i.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],S.prototype,"withoutArrow",2),k([(0,i.MZ)({attribute:"auto-size"})],S.prototype,"autoSize",2),k([(0,i.MZ)({attribute:"auto-size-padding",type:Number})],S.prototype,"autoSizePadding",2),k([(0,i.MZ)({attribute:"trap-focus",type:Boolean})],S.prototype,"trapFocus",2),k([(0,i.MZ)({attribute:"aria-labelledby"})],S.prototype,"ariaLabelledby",2),k([(0,i.MZ)({attribute:"aria-describedby"})],S.prototype,"ariaDescribedby",2),k([(0,b.w)("open",{waitUntilFirstUpdate:!0})],S.prototype,"handleOpenChange",1),k([(0,b.w)("for")],S.prototype,"handleForChange",1),k([(0,b.w)(["distance","placement","skidding"])],S.prototype,"handleOptionsChange",1),S=k([(0,i.EM)("wa-popover")],S),e()}catch(x){e(x)}})},10416:function(t,e,a){a.d(e,{A:function(){return i}});let o;var i=(0,a(5124).AH)(o||(o=(t=>t)`:host{--arrow-size:0.375rem;--max-width:25rem;--show-duration:100ms;--hide-duration:100ms;display:contents;font-size:var(--wa-font-size-m);line-height:var(--wa-line-height-normal);text-align:start;white-space:normal}.dialog{display:none;position:fixed;inset:0;width:100%;height:100%;margin:0;padding:0;border:none;background:0 0;overflow:visible;pointer-events:none}.dialog:focus{outline:0}.dialog[open]{display:block}.popover{--arrow-size:inherit;--popup-border-width:var(--wa-panel-border-width);--show-duration:inherit;--hide-duration:inherit;pointer-events:auto}.popover::part(arrow){background-color:var(--wa-color-surface-default);border-top:none;border-left:none;border-bottom:solid var(--wa-panel-border-width) var(--wa-color-surface-border);border-right:solid var(--wa-panel-border-width) var(--wa-color-surface-border);box-shadow:none}.popover[placement^=top]::part(popup){transform-origin:bottom}.popover[placement^=bottom]::part(popup){transform-origin:top}.popover[placement^=left]::part(popup){transform-origin:right}.popover[placement^=right]::part(popup){transform-origin:left}.body{display:flex;flex-direction:column;width:auto;max-width:min(var(--max-width),100vw);padding:var(--wa-space-l);background-color:var(--wa-color-surface-default);border:var(--wa-panel-border-width) solid var(--wa-color-surface-border);border-radius:var(--wa-panel-border-radius);border-style:var(--wa-panel-border-style);box-shadow:var(--wa-shadow-l);color:var(--wa-color-text-normal);user-select:none;-webkit-user-select:none}.popover[data-current-placement^=bottom] .body,.popover[data-current-placement^=top] .body{max-width:min(var(--max-width),100vw - (var(--wa-space-m) * 2));margin-inline:var(--wa-space-m)}.popover[data-current-placement^=left] .body,.popover[data-current-placement^=right] .body{max-height:calc(100vh - (var(--wa-space-m) * 2));margin-block:var(--wa-space-m)}`))},37541:function(t,e,a){a.d(e,{I:function(){return o}});class o extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},31247:function(t,e,a){a.d(e,{v:function(){return o}});a(18111),a(22489),a(61701),a(42762);function o(t){return t.split(" ").map(t=>t.trim()).filter(t=>""!==t)}},4444:function(t,e,a){a.d(e,{JG:function(){return i},Rt:function(){return n},I7:function(){return r}});a(27495),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(25440),a(62953);const o=new Set;function i(t){if(o.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function r(t){o.delete(t),0===o.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function n(t,e,a="vertical",o="smooth"){const i=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),r=i.top+e.scrollTop,n=i.left+e.scrollLeft,s=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,c=e.scrollTop+e.offsetHeight;"horizontal"!==a&&"both"!==a||(n<s?e.scrollTo({left:n,behavior:o}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:o})),"vertical"!==a&&"both"!==a||(r<d?e.scrollTo({top:r,behavior:o}):r+t.clientHeight>c&&e.scrollTo({top:r-e.offsetHeight+t.clientHeight,behavior:o}))}},28225:function(t,e,a){a.d(e,{U:function(){return o}});a(74423),a(62953);function o(t,e){const a=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||a||setTimeout(()=>{t.defaultPrevented||t.isComposing||function(t){let e=null;"form"in t&&(e=t.form);!e&&"getForm"in t&&(e=t.getForm());if(!e)return;const a=[...e.elements];if(1===a.length)return void e.requestSubmit(null);const o=a.find(t=>"submit"===t.type&&!t.matches(":disabled"));if(!o)return;["input","button"].includes(o.localName)?e.requestSubmit(o):o.click()}(e)})}},88696:function(t,e,a){a.a(t,async function(t,o){try{a.d(e,{P:function(){return l}});var i=a(69235),r=(a(3362),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953),a(37540)),n=a(42017),s=t([i]);i=(s.then?(await s)():s)[0];class l{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return d(this,t)}constructor(t,{target:e,config:a,callback:o,skipInitial:i}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=a,this.o=null!=i?i:this.o,this.callback=o,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const d=(0,n.u$)(class extends r.Kq{render(t,e){}update(t,[e,a]){this.controller=e,this.part=t,this.observe=a,!1===a?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});o()}catch(l){o(l)}})},99731:function(t,e,a){a.d(e,{Y:function(){return u}});var o=a(40445),i=a(67576),r=(a(93775),a(18111),a(22489),a(20116),a(62953),a(5124)),n=a(99591);let s,l=t=>t;class d extends r.WF{get chips(){return this.childElements.filter(t=>t instanceof n.v)}render(){return(0,r.qy)(s||(s=l`<slot @slotchange="${0}"></slot>`),this.updateTabIndices)}handleKeyDown(t){const e="ArrowLeft"===t.key,a="ArrowRight"===t.key,o="Home"===t.key,i="End"===t.key;if(!(e||a||o||i))return;const{chips:r}=this;if(r.length<2)return;if(t.preventDefault(),o||i){return r[o?0:r.length-1].focus({trailing:i}),void this.updateTabIndices()}const n="rtl"===getComputedStyle(this).direction?e:a,s=r.find(t=>t.matches(":focus-within"));if(!s){return(n?r[0]:r[r.length-1]).focus({trailing:!n}),void this.updateTabIndices()}const l=r.indexOf(s);let d=n?l+1:l-1;for(;d!==l;){d>=r.length?d=0:d<0&&(d=r.length-1);const t=r[d];if(!t.disabled||t.alwaysFocusable){t.focus({trailing:!n}),this.updateTabIndices();break}n?d++:d--}}updateTabIndices(){const{chips:t}=this;let e;for(const a of t){const t=a.alwaysFocusable||!a.disabled;a.matches(":focus-within")&&t?e=a:(t&&!e&&(e=a),a.tabIndex=-1)}e&&(e.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),r.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,o.Cg)([(0,i.KN)()],d.prototype,"childElements",void 0);let c;const h=(0,r.AH)(c||(c=(t=>t)`:host{display:flex;flex-wrap:wrap;gap:8px}`));let u=class extends d{};u.styles=[h],u=(0,o.Cg)([(0,i.EM)("md-chip-set")],u)},27525:function(t,e,a){a.d(e,{A6:function(){return n},Ex:function(){return l},RN:function(){return h},RZ:function(){return i},c7:function(){return s},cG:function(){return u},u9:function(){return c},ub:function(){return r},wm:function(){return d},zT:function(){return o}});a(62953);function o(t,e=p){const a=s(t,e);return a&&(a.tabIndex=0,a.focus()),a}function i(t,e=p){const a=l(t,e);return a&&(a.tabIndex=0,a.focus()),a}function r(t,e=p){const a=n(t,e);return a&&(a.item.tabIndex=-1),a}function n(t,e=p){for(let a=0;a<t.length;a++){const o=t[a];if(0===o.tabIndex&&e(o))return{item:o,index:a}}return null}function s(t,e=p){for(const a of t)if(e(a))return a;return null}function l(t,e=p){for(let a=t.length-1;a>=0;a--){const o=t[a];if(e(o))return o}return null}function d(t,e,a=p,i=!0){if(e){const o=function(t,e,a=p,o=!0){for(let i=1;i<t.length;i++){const r=(i+e)%t.length;if(r<e&&!o)return null;const n=t[r];if(a(n))return n}return t[e]?t[e]:null}(t,e.index,a,i);return o&&(o.tabIndex=0,o.focus()),o}return o(t,a)}function c(t,e,a=p,o=!0){if(e){const i=function(t,e,a=p,o=!0){for(let i=1;i<t.length;i++){const r=(e-i+t.length)%t.length;if(r>e&&!o)return null;const n=t[r];if(a(n))return n}return t[e]?t[e]:null}(t,e.index,a,o);return i&&(i.tabIndex=0,i.focus()),i}return i(t,a)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(t){return!t.disabled}},95192:function(t,e,a){a.d(e,{IU:function(){return d},Jt:function(){return s},Yd:function(){return o},hZ:function(){return l},y$:function(){return i}});a(44114),a(18111),a(7588),a(61701),a(3362),a(62953);function o(t){return new Promise((e,a)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>a(t.error)})}function i(t,e){let a;return(i,r)=>(()=>{if(a)return a;const i=indexedDB.open(t);return i.onupgradeneeded=()=>i.result.createObjectStore(e),a=o(i),a.then(t=>{t.onclose=()=>a=void 0},()=>{}),a})().then(t=>r(t.transaction(e,i).objectStore(e)))}let r;function n(){return r||(r=i("keyval-store","keyval")),r}function s(t,e=n()){return e("readonly",e=>o(e.get(t)))}function l(t,e,a=n()){return a("readwrite",a=>(a.put(e,t),o(a.transaction)))}function d(t=n()){return t("readwrite",t=>(t.clear(),o(t.transaction)))}},37540:function(t,e,a){a.d(e,{Kq:function(){return h}});a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);var o=a(63937),i=a(42017);const r=(t,e)=>{const a=t._$AN;if(void 0===a)return!1;for(const i of a){var o;null!==(o=i._$AO)&&void 0!==o&&o.call(i,e,!1),r(i,e)}return!0},n=t=>{let e,a;do{var o;if(void 0===(e=t._$AM))break;a=e._$AN,a.delete(t),t=e}while(0===(null===(o=a)||void 0===o?void 0:o.size))},s=t=>{for(let e;e=t._$AM;t=e){let a=e._$AN;if(void 0===a)e._$AN=a=new Set;else if(a.has(t))break;a.add(t),c(e)}};function l(t){void 0!==this._$AN?(n(this),this._$AM=t,s(this)):this._$AM=t}function d(t,e=!1,a=0){const o=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(o))for(let s=a;s<o.length;s++)r(o[s],!1),n(o[s]);else null!=o&&(r(o,!1),n(o));else r(this,t)}const c=t=>{var e,a;t.type==i.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=d),null!==(a=t._$AQ)&&void 0!==a||(t._$AQ=l))};class h extends i.WL{_$AT(t,e,a){super._$AT(t,e,a),s(this),this.isConnected=t._$AU}_$AO(t,e=!0){var a,o;t!==this.isConnected&&(this.isConnected=t,t?null===(a=this.reconnected)||void 0===a||a.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),e&&(r(this,t),n(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}}}]);