feat: арт мебели в ленивый чанк — стартовый граф 299 658 → 289 727 Б

Каталог (id, группа, размеры) остаётся eager; SVG-пути 44 дизайнерских
символов — отдельный чанк за FurnitureArtRuntime (ready|pending|fallback,
нонс на повторе, отпечаток сборки, осевший отказ). Запуск при приёме плана,
бут-вуаль ждёт арт в пределах BOOT_MAX_MS, редактор отдаёт арт рантайму
синхронно (adopt при загрузке чанка). Магнит проверяет каталог, не арт.
Потолок initial View 300 500 → 290 500. Семь свидетелей, смок
smoke_furniture_lazy_art, golden-harness требует все предметы после бута.
Ядро −2 строки.

Issue: #474
User-Visible: no
This commit is contained in:
Codex
2026-09-06 16:10:46 +03:00
parent a31d8981a7
commit 9b4e1efb1d
55 changed files with 1811 additions and 969 deletions
@@ -1,215 +1,232 @@
{
"schema": 1,
"fingerprint": "884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87",
"fingerprint": "0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64",
"entry": "houseplan-card.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CODdCIWj.js",
"houseplan-assets/houseplan-card-Bhpi71t0.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 299595,
"initialViewGzipBytes": 289760,
"lazyFiles": [
"houseplan-assets/backdrop-pick-BnsHKWaS.js",
"houseplan-assets/de-3MG52yOu.js",
"houseplan-assets/editor-BWu14hMI.js",
"houseplan-assets/fr-w8JLXMgW.js",
"houseplan-assets/guard-BR4mAQsM.js",
"houseplan-assets/houseplan-editor-runtime-Ak2xnYks.js",
"houseplan-assets/houseplan-onboarding-runtime-BjgK4V8E.js",
"houseplan-assets/hp-zigbee-topology-overlay-CKKJLQ66.js",
"houseplan-assets/iso-scene-render-DXu89PMK.js",
"houseplan-assets/live-interaction-runtime-D5KHv4hp.js",
"houseplan-assets/zigbee-topology-BUFPOnoy.js",
"houseplan-assets/zigbee-topology-runtime-Jy73PIeo.js"
"houseplan-assets/backdrop-pick-CV_as5Xh.js",
"houseplan-assets/de-D9kcw9QI.js",
"houseplan-assets/editor-CT75Pe-x.js",
"houseplan-assets/fr-D7aFj5IX.js",
"houseplan-assets/furniture-plan-art.generated-Bs3YknKY.js",
"houseplan-assets/guard-BgTQLSGB.js",
"houseplan-assets/houseplan-editor-runtime-BvuzmUE5.js",
"houseplan-assets/houseplan-onboarding-runtime-THgxWVEp.js",
"houseplan-assets/hp-zigbee-topology-overlay-CI1RuCwl.js",
"houseplan-assets/iso-scene-render-DQnNhHBF.js",
"houseplan-assets/live-interaction-runtime-DNx7W_iY.js",
"houseplan-assets/zigbee-topology-B-C5QCCD.js",
"houseplan-assets/zigbee-topology-runtime-C4ZtGWbD.js"
],
"lazyGzipBytes": 264984,
"lazyGzipBytes": 275381,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-BnsHKWaS.js",
"houseplan-assets/editor-BWu14hMI.js",
"houseplan-assets/guard-BR4mAQsM.js",
"houseplan-assets/houseplan-editor-runtime-Ak2xnYks.js",
"houseplan-assets/zigbee-topology-BUFPOnoy.js"
"houseplan-assets/backdrop-pick-CV_as5Xh.js",
"houseplan-assets/editor-CT75Pe-x.js",
"houseplan-assets/furniture-plan-art.generated-Bs3YknKY.js",
"houseplan-assets/guard-BgTQLSGB.js",
"houseplan-assets/houseplan-editor-runtime-BvuzmUE5.js",
"houseplan-assets/zigbee-topology-B-C5QCCD.js"
],
"lazyEditorGzipBytes": 187115,
"lazyEditorGzipBytes": 197465,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-BnsHKWaS.js",
"houseplan-assets/houseplan-onboarding-runtime-BjgK4V8E.js"
"houseplan-assets/backdrop-pick-CV_as5Xh.js",
"houseplan-assets/houseplan-onboarding-runtime-THgxWVEp.js"
],
"lazyOnboardingGzipBytes": 14328,
"lazyOnboardingGzipBytes": 14323,
"lazyLocaleFiles": [
"houseplan-assets/de-3MG52yOu.js",
"houseplan-assets/fr-w8JLXMgW.js"
"houseplan-assets/de-D9kcw9QI.js",
"houseplan-assets/fr-D7aFj5IX.js"
],
"lazyLocaleGzipBytes": 50178,
"lazyLocaleGzipBytes": 50237,
"lazyIsometricFiles": [
"houseplan-assets/guard-BR4mAQsM.js",
"houseplan-assets/iso-scene-render-DXu89PMK.js"
"houseplan-assets/guard-BgTQLSGB.js",
"houseplan-assets/iso-scene-render-DQnNhHBF.js"
],
"lazyIsometricGzipBytes": 13467,
"lazyIsometricGzipBytes": 13463,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-Bs3YknKY.js"
],
"lazyFurnitureArtGzipBytes": 10254,
"files": [
{
"path": "houseplan-assets/backdrop-pick-BnsHKWaS.js",
"sha256": "a1a1925a3567418f9f3e3b6541987ecf947ab98d672476a7ecd24468180ed8c7",
"path": "houseplan-assets/backdrop-pick-CV_as5Xh.js",
"sha256": "4fea377a7c8633abf3a619c1fe8218df648376fa7effbd59a51f6102be3d01af",
"rawBytes": 21592,
"gzipBytes": 7359,
"gzipBytes": 7357,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-3MG52yOu.js",
"sha256": "d85a610248c36842c44cc0b851c62f8aeb8e9431cd71c12b9900d8372b17f8dd",
"rawBytes": 84260,
"gzipBytes": 25368,
"path": "houseplan-assets/de-D9kcw9QI.js",
"sha256": "7371299fa8b9eeb09138acec33d1bf89a1ab890df042ed57b0bd2921c4c6fe29",
"rawBytes": 84392,
"gzipBytes": 25401,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-BWu14hMI.js",
"sha256": "e793d2607239b96cbf314e36e4dd1c03017b5c9c7ae47b9d710dd7f47423011d",
"path": "houseplan-assets/editor-CT75Pe-x.js",
"sha256": "ab5edd25d3cd65ad5b312f897ed1a74e6a15331d99d531bf6c1165f6606cc5a3",
"rawBytes": 3837,
"gzipBytes": 1589,
"gzipBytes": 1586,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-w8JLXMgW.js",
"sha256": "78da22924a9d38e19e0787ce4c171bfba7df6c18f5460ccd4a2726bc1c415d8e",
"rawBytes": 86301,
"gzipBytes": 24810,
"path": "houseplan-assets/fr-D7aFj5IX.js",
"sha256": "2b946e58a3bee760c5e9cb67a1882456227345d4c091bb2452a0d5c2994e4120",
"rawBytes": 86420,
"gzipBytes": 24836,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-BR4mAQsM.js",
"sha256": "31e7c009b3f724ca776293fef20b8ccc3d9f58d6afecb7d1d20be169e827d0a0",
"path": "houseplan-assets/furniture-plan-art.generated-Bs3YknKY.js",
"sha256": "b939f374bee1fa1629e6be4bf9cb8d80051b1d13d03990f296dcc77d199a63e7",
"rawBytes": 33655,
"gzipBytes": 10254,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-BgTQLSGB.js",
"sha256": "dc0c81d0a7167dd708b220e776cab0ad48ec6a1b462918ff984acd347e7beae4",
"rawBytes": 518,
"gzipBytes": 371,
"gzipBytes": 369,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CODdCIWj.js",
"sha256": "6011cb913b94cd0bb918c28928886a514af39a2162214423e467faf4b8ac31fe",
"rawBytes": 1072122,
"gzipBytes": 298799,
"path": "houseplan-assets/houseplan-card-Bhpi71t0.js",
"sha256": "5e21b20e0a8a762637f9d4360db79ae24d214e3c0ca1dbd59cca4d98116657a7",
"rawBytes": 1041955,
"gzipBytes": 288965,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-3MG52yOu.js",
"houseplan-assets/editor-BWu14hMI.js",
"houseplan-assets/fr-w8JLXMgW.js",
"houseplan-assets/houseplan-editor-runtime-Ak2xnYks.js",
"houseplan-assets/houseplan-onboarding-runtime-BjgK4V8E.js",
"houseplan-assets/hp-zigbee-topology-overlay-CKKJLQ66.js",
"houseplan-assets/iso-scene-render-DXu89PMK.js",
"houseplan-assets/live-interaction-runtime-D5KHv4hp.js"
"houseplan-assets/de-D9kcw9QI.js",
"houseplan-assets/editor-CT75Pe-x.js",
"houseplan-assets/fr-D7aFj5IX.js",
"houseplan-assets/furniture-plan-art.generated-Bs3YknKY.js",
"houseplan-assets/houseplan-editor-runtime-BvuzmUE5.js",
"houseplan-assets/houseplan-onboarding-runtime-THgxWVEp.js",
"houseplan-assets/hp-zigbee-topology-overlay-CI1RuCwl.js",
"houseplan-assets/iso-scene-render-DQnNhHBF.js",
"houseplan-assets/live-interaction-runtime-DNx7W_iY.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-Ak2xnYks.js",
"sha256": "f124de9f93faf2aac6f6dcc8d7dfc5d40e7f4d887274843446f6aadb19dae52a",
"rawBytes": 640495,
"gzipBytes": 170365,
"path": "houseplan-assets/houseplan-editor-runtime-BvuzmUE5.js",
"sha256": "06105a4f3e351baeea2b1dac6ec266c0f9bbf53cba6ff6516ec14ae424239f4c",
"rawBytes": 640655,
"gzipBytes": 170475,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BnsHKWaS.js",
"houseplan-assets/guard-BR4mAQsM.js",
"houseplan-assets/houseplan-card-CODdCIWj.js",
"houseplan-assets/zigbee-topology-BUFPOnoy.js"
"houseplan-assets/backdrop-pick-CV_as5Xh.js",
"houseplan-assets/furniture-plan-art.generated-Bs3YknKY.js",
"houseplan-assets/guard-BgTQLSGB.js",
"houseplan-assets/houseplan-card-Bhpi71t0.js",
"houseplan-assets/zigbee-topology-B-C5QCCD.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-Jy73PIeo.js"
"houseplan-assets/zigbee-topology-runtime-C4ZtGWbD.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BjgK4V8E.js",
"sha256": "7c7a9304466c21ec27ec027f5b3947e0c307538a016f20f4a407e9a43a81a18c",
"path": "houseplan-assets/houseplan-onboarding-runtime-THgxWVEp.js",
"sha256": "568a4fd971e96b124d91fae6f250e196cc6da4458e079bbbef0f27a76865fd81",
"rawBytes": 28071,
"gzipBytes": 6969,
"gzipBytes": 6966,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BnsHKWaS.js",
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/backdrop-pick-CV_as5Xh.js",
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-CKKJLQ66.js",
"sha256": "e6be2493d605f81e321c5ccd18cfba70dd86ed1816ea54deefa77be48c5e40dd",
"path": "houseplan-assets/hp-zigbee-topology-overlay-CI1RuCwl.js",
"sha256": "55c0f380d7812d8a5dd2cda810d7938eb3b7e2871c23d2d48efe965099b72ba7",
"rawBytes": 11034,
"gzipBytes": 3732,
"gzipBytes": 3730,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js",
"houseplan-assets/zigbee-topology-BUFPOnoy.js",
"houseplan-assets/zigbee-topology-runtime-Jy73PIeo.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js",
"houseplan-assets/zigbee-topology-B-C5QCCD.js",
"houseplan-assets/zigbee-topology-runtime-C4ZtGWbD.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-DXu89PMK.js",
"sha256": "96f20eb2404fd8f6c116de5bfff6a2b109bcd0a250e918eecdf0968df3c6ed9c",
"path": "houseplan-assets/iso-scene-render-DQnNhHBF.js",
"sha256": "49dc2cb9a2866fa2ed4a0cdd7acb5324efff7ddaac932c137bab2907b3f405e0",
"rawBytes": 38593,
"gzipBytes": 13096,
"gzipBytes": 13094,
"isEntry": false,
"imports": [
"houseplan-assets/guard-BR4mAQsM.js",
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/guard-BgTQLSGB.js",
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-D5KHv4hp.js",
"sha256": "da0e12640b26ae3ebe05677db6238847813d5c8a7ec0dc7c7149922bc7deac66",
"path": "houseplan-assets/live-interaction-runtime-DNx7W_iY.js",
"sha256": "f6bc3e6f1d8e8528f93c10927e0f81f2cf8d08a3cdc364253cb436ccbc768cc5",
"rawBytes": 5196,
"gzipBytes": 2129,
"gzipBytes": 2126,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-BUFPOnoy.js",
"sha256": "b497afdec2059b962c9f1a329e7f417650bfa5b28e684544c1ae415340fd208f",
"path": "houseplan-assets/zigbee-topology-B-C5QCCD.js",
"sha256": "f6ba19da3cacff0d88bddf98cf1ee260706ebe3c25c34cfbb24fc8b81c05528e",
"rawBytes": 18961,
"gzipBytes": 7431,
"gzipBytes": 7424,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-Jy73PIeo.js",
"sha256": "ba8f56e776f1d47bea1c211a262154c31c4e13483857e3397ad9f951a8d7f8ce",
"path": "houseplan-assets/zigbee-topology-runtime-C4ZtGWbD.js",
"sha256": "71762abfaa68282eba7d584d945c9a9343775143161e8fe9f63bdc90dca1e883",
"rawBytes": 3941,
"gzipBytes": 1765,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js",
"houseplan-assets/zigbee-topology-BUFPOnoy.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js",
"houseplan-assets/zigbee-topology-B-C5QCCD.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "6e4f5e3ebbe429b4d330f3aff542aa4867fd87f0f249a5185c7429a00670b6d5",
"sha256": "76b219cf7fbba29d64cea0af6400a2ad9d07ab0e08dd46bcd00e4e0856350f0f",
"rawBytes": 1183,
"gzipBytes": 796,
"gzipBytes": 795,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CODdCIWj.js"
"houseplan-assets/houseplan-card-Bhpi71t0.js"
],
"dynamicImports": []
}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87";import{t as e,l as o,x as t,dK as s,A as a,dL as i,dM as l,dN as n,dJ as r,b as c}from"./houseplan-card-CODdCIWj.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64";import{t as e,l as o,x as t,dM as s,A as a,dN as i,dO as l,dP as n,dL as r,b as c}from"./houseplan-card-Bhpi71t0.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87";import{dH as r,dI as t,dJ as e}from"./houseplan-card-CODdCIWj.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64";import{dJ as r,dK as t,dL as s}from"./houseplan-card-Bhpi71t0.js";const a={},e=r(class extends t{constructor(){super(...arguments),this.ot=a}render(r,t){return t()}update(r,[t,a]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,a)}});export{e as i};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87";import{l as t,aZ as s,A as e,x as o,b as a,cg as l,ch as i,ci as h,cj as c,aW as n,ck as r,cp as p,cl as d,cm as _,cn as u,co as g,dg as m,aV as b,aX as $,dh as v}from"./houseplan-card-CODdCIWj.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-BnsHKWaS.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?a`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64";import{l as t,a_ as s,A as e,x as o,b as a,ch as l,ci as i,cj as h,ck as c,aX as n,cl as r,cq as p,cm as d,cn as _,co as u,cp as g,dh as m,aW as b,aY as $,di as v}from"./houseplan-card-Bhpi71t0.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-CV_as5Xh.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?a`<hp-help data-help-key=${l}
.text=${o(h,l)} .ariaLabel=${o(h,i)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=l(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...f(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await y(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const a=await w(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return D(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),a=this.host._spaceDialog,l=a?.saved?.find(s=>s.name===t);if(o&&a&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==a.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
${s.map(s=>{return a`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87";import{n as t,b as n}from"./zigbee-topology-BUFPOnoy.js";import{F as e}from"./houseplan-card-CODdCIWj.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64";import{n as t,b as n}from"./zigbee-topology-B-C5QCCD.js";import{F as e}from"./houseplan-card-Bhpi71t0.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="884182570484410d7ab1a7212b07de9f2b4e5683c0d859f4e9d3feaae9318c87";try{await import("./houseplan-assets/houseplan-card-CODdCIWj.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale entry: the main chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0a474ab88fe7bfa881df73dfd02ba12a180d097f529b6740c83c620d3b78ca64";try{await import("./houseplan-assets/houseplan-card-Bhpi71t0.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale entry: the main chunk is unavailable",e)}