iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 18.7 kB
JavaScript
/*! For license information please see 82125.91d6a9226bfdb984.js.LICENSE.txt */
export const __rspack_esm_id=82125;export const __rspack_esm_ids=[82125];export const __webpack_modules__={32172(e,t,a){a.d(t,{p:()=>i});a(18111),a(7588),a(45367),a(92731),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698);function i(e){return(t,a)=>{if("object"==typeof a)throw new Error("This decorator does not support this compilation type.");const i=String(a),s=t;if(s._transformers){if(!s.hasOwnProperty("_transformers")){const e=s._transformers;s._transformers=new Map,e.forEach((e,t)=>s._transformers.set(t,e))}}else{s._transformers=new Map,s._watching=new Map;const e=s.willUpdate;s.willUpdate=function(t){e.call(this,t);const a=new Set;t.forEach((e,t)=>{const i=this._watching.get(t);void 0!==i&&i.forEach(e=>a.add(e))}),a.forEach(e=>{this[e]=this[`__original_${String(e)}`]})}}s._transformers.set(a,e.transformer),e.watch&&e.watch.forEach(e=>{let t=s._watching.get(e);t||(t=new Set,s._watching.set(e,t)),t.add(a)});const r=Object.getOwnPropertyDescriptor(t,a);let n;if(void 0===r)n={get(){return this[`__transform_${i}`]},set(e){const t=this[`__transform_${i}`],a=this._transformers.get(i);this[`__transform_${i}`]=a?a.call(this,e):e,this[`__original_${i}`]=e,this.requestUpdate(i,t)},configurable:!0,enumerable:!0};else{const e=r.set;n={...r,set(t){const a=this[`__transform_${i}`],s=this._transformers.get(i);this[`__transform_${i}`]=s?s.call(this,t):t,this[`__original_${i}`]=t,this.requestUpdate(i,a),e?.call(this,t)}}}Object.defineProperty(t,a,n)}}},69093(e,t,a){a.d(t,{t:()=>s});var i=a(71727);const s=e=>(0,i.m)(e.entity_id)},76774(e,t,a){a.d(t,{q:()=>i});const i=(e,t)=>{const a=e.area_id;return a?t[a]:void 0}},82286(e,t,a){a.d(t,{$:()=>i});const i=(e,t)=>s(e.attributes,t),s=(e,t)=>0!==(e.supported_features&t)},20058(e,t,a){a.a(e,async function(e,i){try{a.d(t,{QL:()=>l,ZQ:()=>h,ZV:()=>f,ty:()=>c,x:()=>o});var s=a(74487),r=(a(74423),a(18111),a(61701),a(46927)),n=e([s]);s=(n.then?(await n)():n)[0];const o=e=>c(e.attributes),c=(e,t)=>!!e.unit_of_measurement||!!e.state_class||(t||[]).includes(e.device_class||""),d=e=>{switch(e.number_format){case r.jG.comma_decimal:return["en-US","en"];case r.jG.decimal_comma:return["de","es","it"];case r.jG.space_comma:return["fr","sv","cs"];case r.jG.quote_decimal:return["de-CH"];case r.jG.system:return;default:return e.language}},f=(e,t,a)=>l(e,t,a).map(e=>e.value).join(""),l=(e,t,a)=>{const i=t?d(t):void 0;return t?.number_format===r.jG.none||Number.isNaN(Number(e))?Number.isNaN(Number(e))||""===e||t?.number_format!==r.jG.none?[{type:"literal",value:e}]:new Intl.NumberFormat("en-US",b(e,{...a,useGrouping:!1})).formatToParts(Number(e)):new Intl.NumberFormat(i,b(e,a)).formatToParts(Number(e))},h=(e,t)=>{const a=t?.display_precision;return null!=a?{maximumFractionDigits:a,minimumFractionDigits:a}:Number.isInteger(Number(e?.attributes?.step))&&Number.isInteger(Number(e?.state))?{maximumFractionDigits:0}:void 0},b=(e,t)=>{const a={maximumFractionDigits:2,...t};if("string"!=typeof e)return a;if(!t||void 0===t.minimumFractionDigits&&void 0===t.maximumFractionDigits){const t=e.indexOf(".")>-1?e.split(".")[1].length:0;a.minimumFractionDigits=t,a.maximumFractionDigits=t}return a};i()}catch(e){i(e)}})},59174(e,t,a){a.a(e,async function(e,t){try{var i=a(62826),s=a(35211),r=a(5124),n=a(22441),o=a(91450),c=a(22792),d=a(85694),f=a(44144),l=(a(47680),e([d]));d=(l.then?(await l)():l)[0];class h extends r.WF{render(){if(this.icon)return r.qy`<ha-icon .icon="${this.icon}"></ha-icon>`;if(!this.domain)return r.s6;if(!this._connection||!this._hassConfig)return this._renderFallback();const e=(0,d._4)(this._connection.connection,this._hassConfig.config,this.domain,this.deviceClass,this.state).then(e=>e?r.qy`<ha-icon .icon="${e}"></ha-icon>`:this._renderFallback());return r.qy`${(0,o.T)(e)}`}_renderFallback(){if(this.domain&&this.domain in d.l)return r.qy` <ha-svg-icon .path="${d.l[this.domain]}"></ha-svg-icon> `;if(this.brandFallback){const e=(0,f.MR)({domain:this.domain,type:"icon",darkOptimized:this._hassUi?.themes.darkMode},this._hassConfig?.auth.data.hassUrl);return r.qy` <img alt="" src="${e}" crossorigin="anonymous" referrerpolicy="no-referrer"> `}return r.qy`<ha-svg-icon .path="${d.lW}"></ha-svg-icon>`}}h.styles=r.AH`img{width:var(--mdc-icon-size,24px)}`,(0,i.Cg)([(0,n.MZ)()],h.prototype,"domain",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],h.prototype,"deviceClass",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],h.prototype,"state",void 0),(0,i.Cg)([(0,n.MZ)()],h.prototype,"icon",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"brand-fallback",type:Boolean})],h.prototype,"brandFallback",void 0),(0,i.Cg)([(0,n.wk)(),(0,s.Fg)({context:c.WF,subscribe:!0})],h.prototype,"_hassConfig",void 0),(0,i.Cg)([(0,n.wk)(),(0,s.Fg)({context:c.Wq,subscribe:!0})],h.prototype,"_connection",void 0),(0,i.Cg)([(0,n.wk)(),(0,s.Fg)({context:c.EK,subscribe:!0})],h.prototype,"_hassUi",void 0),h=(0,i.Cg)([(0,n.EM)("ha-domain-icon")],h),t()}catch(e){t(e)}})},47680(e,t,a){a.r(t),a.d(t,{HaIcon:()=>$});a(74423);var i=a(62826),s=a(5124),r=a(22441),n=a(1087),o=a(9899),c=a(700),d=(a(44114),a(18111),a(7588),a(95192)),f=a(7553);const l=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 h;const b=()=>(h||(h=u().catch(e=>{throw h=void 0,e})),h),u=async()=>{const e=(0,d.y$)("hass-icon-db","mdi-icon-store"),t=await(0,d.Jt)("_version",e);return t?t!==l.version&&(await(0,d.IU)(e),(0,d.hZ)("_version",l.version,e)):(0,d.hZ)("_version",l.version,e),e},m=["mdi","hass","hassio","hademo"];let p=[];a(67094);const _={},g={},v=(0,o.s)(()=>(async e=>{const t=Object.keys(e),a=await Promise.allSettled(Object.values(e));(await b())("readwrite",i=>{a.forEach((a,s)=>{"fulfilled"===a.status&&Object.entries(a.value).forEach(([e,t])=>{i.put(t,e)}),delete e[t[s]]})})})(g),2e3),w={},y={"home-assistant":()=>a.e(58781).then(a.bind(a,53580)).then(e=>e.mdiHomeAssistant),"music-assistant":()=>a.e(56009).then(a.bind(a,10576)).then(e=>e.mdiMusicAssistant),esphome:()=>a.e(88800).then(a.bind(a,45091)).then(e=>e.mdiEsphomeLogo)};class $ extends s.WF{willUpdate(e){super.willUpdate(e),e.has("icon")&&(this._path=void 0,this._secondaryPath=void 0,this._viewBox=void 0,this._loadIcon())}render(){return this.icon?this._legacy?s.qy` <iron-icon .icon="${this.icon}"></iron-icon>`:s.qy`<ha-svg-icon .path="${this._path}" .secondaryPath="${this._secondaryPath}" .viewBox="${this._viewBox}"></ha-svg-icon>`:s.s6}async _loadIcon(){if(!this.icon)return;const e=this.icon,[t,a]=this.icon.split(":",2);let i,s=a;if(!t||!s)return;if(!m.includes(t)){const a=c.y[t];return a?void(a&&"function"==typeof a.getIcon&&this._setCustomPath(a.getIcon(s),e)):void(this._legacy=!0)}if(this._legacy=!1,s in _){const e=_[s];let a;e.newName?(a=`Icon ${t}:${s} was renamed to ${t}:${e.newName}, please change your config, it will be removed in version ${e.removeIn}.`,s=e.newName):a=`Icon ${t}:${s} was removed from MDI, please replace this icon with an other icon in your config, it will be removed in version ${e.removeIn}.`,console.warn(a),(0,n.r)(this,"write_log",{level:"warning",message:a})}if(s in w)return void(this._path=w[s]);if(s in y){const t=await y[s]();return this.icon===e&&(this._path=t),void(w[s]=t)}try{i=await(e=>new Promise((t,a)=>{if(p.push([e,t,a]),p.length>1)return;const i=b();(0,f.h)(1e3,(async()=>{(await i)("readonly",e=>{for(const[t,a,i]of p)(0,d.Yd)(e.get(t)).then(e=>a(e)).catch(e=>i(e));p=[]})})()).catch(e=>{for(const[,,t]of p)t(e);p=[]})}))(s)}catch(e){i=void 0}if(i)return this.icon===e&&(this._path=i),void(w[s]=i);const r=(e=>{let t;for(const a of l.parts){if(void 0!==a.start&&e<a.start)break;t=a}return t.file})(s);if(r in g)return void this._setPath(g[r],s,e);const o=fetch(`/static/mdi/${r}.json`).then(e=>e.json());g[r]=o,this._setPath(o,s,e),o.catch(()=>{delete g[r]}),v()}async _setCustomPath(e,t){const a=await e;this.icon===t&&(this._path=a.path,this._secondaryPath=a.secondaryPath,this._viewBox=a.viewBox)}async _setPath(e,t,a){try{const i=await e;this.icon===a&&(this._path=i[t]),w[t]=i[t]}catch(e){}}constructor(...e){super(...e),this._legacy=!1}}$.styles=s.AH`:host{fill:currentcolor}`,(0,i.Cg)([(0,r.MZ)()],$.prototype,"icon",void 0),(0,i.Cg)([(0,r.wk)()],$.prototype,"_path",void 0),(0,i.Cg)([(0,r.wk)()],$.prototype,"_secondaryPath",void 0),(0,i.Cg)([(0,r.wk)()],$.prototype,"_viewBox",void 0),(0,i.Cg)([(0,r.wk)()],$.prototype,"_legacy",void 0),$=(0,i.Cg)([(0,r.EM)("ha-icon")],$)},700(e,t,a){a.d(t,{y:()=>n});const i=window;"customIconsets"in i||(i.customIconsets={});const s=i.customIconsets,r=window;"customIcons"in r||(r.customIcons={});const n=new Proxy(r.customIcons,{get:(e,t)=>e[t]??(s[t]?{getIcon:s[t]}:void 0)})},76698(e,t,a){a.a(e,async function(e,i){try{a.r(t);a(74423),a(18111),a(22489),a(20116),a(61701),a(13579);var s=a(62826),r=a(35211),n=a(5124),o=a(22441),c=a(22786),d=a(32172),f=a(65522),l=a(37981),h=a(76774),b=a(52220),u=a(18350),m=a(72554),p=(a(93444),a(59174)),_=(a(3109),a(17308),a(2846),a(65829)),g=a(22792),v=a(58594),w=a(89441),y=a(86045),$=e([u,m,p,_]);[u,m,p,_]=$.then?(await $)():$;class C extends((0,w.O)(n.WF)){render(){return this.params?n.qy` <ha-dialog open width="small" .headerTitle="${this._i18n.localize(`ui.panel.config.zwave_js.rebuild_network_routes.details.${this.params.type}`,{count:this._progress?this._progress.length:0})}"> ${this._configEntries?this._progress&&0!==this._progress.length?this._zwaveDevices?n.qy`<ha-md-list> ${this._filteredDevices(this._progress,this._zwaveDevices).map(e=>n.qy` <ha-md-list-item> <ha-domain-icon slot="start" .domain="${e.domain}" brand-fallback></ha-domain-icon> <span slot="headline">${e.name}</span> <span slot="supporting-text">${e.areaName}</span> </ha-md-list-item> `)} </ha-md-list>`:n.s6:n.qy`<p> ${this._i18n.localize("ui.panel.config.zwave_js.rebuild_network_routes.details.no_devices")} </p>`:n.qy` <ha-fade-in .delay="${500}"><ha-spinner size="large"></ha-spinner></ha-fade-in> `} </ha-dialog> `:n.s6}static get styles(){return[n.AH`ha-md-list{gap:var(--ha-space-2);min-height:300px}ha-md-list-item{--md-list-item-two-line-container-height:0;--md-list-item-top-space:var(--ha-space-1);--md-list-item-bottom-space:var(--ha-space-1);--md-list-item-leading-space:var(--ha-space-2);--md-list-item-trailing-space:var(--ha-space-2);border:var(--ha-border-width-sm) solid var(--ha-color-border-neutral-normal);border-radius:var(--ha-border-radius-lg);background:var(--ha-color-fill-neutral-quiet-resting)}ha-domain-icon{margin-top:var(--ha-space-2)}ha-fade-in{display:flex;justify-content:center;align-items:center;min-height:300px}`]}constructor(...e){super(...e),this._filteredDevices=(0,c.A)((e,t)=>{const a=t.filter(t=>{try{return!!t.identifiers.find(t=>"zwave_js"===t[0]&&e.includes(parseInt(t[1].split("-")[1])))}catch(e){return console.warn(`Unexpected identifier format for device ${t.id}, skipping device in rebuild network routes progress dialog.`,e),!1}}),i=(0,v.g2)(Object.values(this._registries.entities)),s=Object.fromEntries(this._configEntries.map(e=>[e.entry_id,e]));return a.map(e=>{const t=(0,l.T)(e,this._i18n.localize,this._states,i[e.id])||this._i18n.localize("ui.components.device-picker.unnamed_device"),a=(0,h.q)(e,this._registries.areas),r=a?(0,f.A)(a):void 0,n=e.primary_config_entry?s?.[e.primary_config_entry]:void 0;return{name:t,areaName:r,domain:n?.domain}}).sort((e,t)=>(0,b.SH)([e.name,e.areaName].filter(Boolean).join(" "),[t.name,t.areaName].filter(Boolean).join(" "),this._i18n.locale.language))})}}(0,s.Cg)([(0,o.wk)(),(0,r.Fg)({context:g.D5,subscribe:!0})],C.prototype,"_i18n",void 0),(0,s.Cg)([(0,o.wk)(),(0,r.Fg)({context:g.g5,subscribe:!0})],C.prototype,"_configEntries",void 0),(0,s.Cg)([(0,o.wk)(),(0,r.Fg)({context:g.xJ,subscribe:!0}),(0,d.p)({transformer:function(e){return this.params&&e?Object.values(e).filter(e=>e.config_entries.includes(this.params.configEntryId)&&e.identifiers.some(e=>"zwave_js"===e[0])):void 0}})],C.prototype,"_zwaveDevices",void 0),(0,s.Cg)([(0,o.wk)(),(0,r.Fg)({context:y.o,subscribe:!0}),(0,d.p)({transformer:function(e){return this.params&&e?e[this.params.type]:void 0}})],C.prototype,"_progress",void 0),(0,s.Cg)([(0,r.Fg)({context:g.iN,subscribe:!0})],C.prototype,"_states",void 0),(0,s.Cg)([(0,r.Fg)({context:g.Hd,subscribe:!0})],C.prototype,"_registries",void 0),C=(0,s.Cg)([(0,o.EM)("dialog-zwave_js-rebuild-network-routes-detail")],C),i()}catch(e){i(e)}})},53580(e,t,a){a.d(t,{mdiHomeAssistant:()=>i});const i="m12.151 1.5882c-.3262 0-.6523.1291-.8996.3867l-8.3848 8.7354c-.0619.0644-.1223.1368-.1807.2154-.0588.0789-.1151.1638-.1688.2534-.2593.4325-.4552.9749-.5232 1.4555-.0026.018-.0076.0369-.0094.0548-.0121.0987-.0184.1944-.0184.2857v8.0124a1.2731 1.2731 0 001.2731 1.2731h7.8313l-3.4484-3.593a1.7399 1.7399 0 111.0803-1.125l2.6847 2.7972v-10.248a1.7399 1.7399 0 111.5276-0v7.187l2.6702-2.782a1.7399 1.7399 0 111.0566 1.1505l-3.7269 3.8831v2.7299h8.174a1.2471 1.2471 0 001.2471-1.2471v-8.0375c0-.0912-.0059-.1868-.0184-.2855-.0603-.4935-.2636-1.0617-.5326-1.5105-.0537-.0896-.1101-.1745-.1684-.253-.0588-.079-.1191-.1513-.181-.2158l-8.3848-8.7363c-.2473-.2577-.5735-.3866-.8995-.3864"},95192(e,t,a){a.d(t,{IU:()=>d,Jt:()=>o,Yd:()=>i,hZ:()=>c,y$:()=>s});a(44114),a(18111),a(7588),a(61701);function i(e){return new Promise((t,a)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>a(e.error)})}function s(e,t){let a;return(s,r)=>(()=>{if(a)return a;const s=indexedDB.open(e);return s.onupgradeneeded=()=>s.result.createObjectStore(t),a=i(s),a.then(e=>{e.onclose=()=>a=void 0},()=>{}),a})().then(e=>r(e.transaction(t,s).objectStore(t)))}let r;function n(){return r||(r=s("keyval-store","keyval")),r}function o(e,t=n()){return t("readonly",t=>i(t.get(e)))}function c(e,t,a=n()){return a("readwrite",a=>(a.put(t,e),i(a.transaction)))}function d(e=n()){return e("readwrite",e=>(e.clear(),i(e.transaction)))}},91450(e,t,a){a.d(t,{T:()=>h});a(18111),a(20116);var i=a(5055),s=a(63937),r=a(37540);class n{disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}constructor(e){this.G=e}}class o{get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}constructor(){this.Y=void 0,this.Z=void 0}}var c=a(42017);const d=e=>!(0,s.sO)(e)&&"function"==typeof e.then,f=1073741823;class l extends r.Kq{render(...e){return e.find(e=>!d(e))??i.c0}update(e,t){const a=this._$Cbt;let s=a.length;this._$Cbt=t;const r=this._$CK,n=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){const i=t[e];if(!d(i))return this._$Cwt=e,i;e<s&&i===a[e]||(this._$Cwt=f,s=0,Promise.resolve(i).then(async e=>{for(;n.get();)await n.get();const t=r.deref();if(void 0!==t){const a=t._$Cbt.indexOf(i);a>-1&&a<t._$Cwt&&(t._$Cwt=a,t.setValue(e))}}))}return i.c0}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}constructor(){super(...arguments),this._$Cwt=f,this._$Cbt=[],this._$CK=new n(this),this._$CX=new o}}const h=(0,c.u$)(l)}};