perf(markers): keep the CSS note short — comments ship to the browser

The long explanation inside the css`` template cost 518 gzipped bytes in
the initial chunk: the template minifier leaves comments in this file, so
every character of them is downloaded by every user. The reasoning now
lives in docs/DEVELOPMENT.md and in the commit above; the stylesheet
keeps one line and the issue number.

Measured: 300 577 B with the long notes, 300 111 B with the short ones,
300 059 B on dev before the fix.

Issue: #524
User-Visible: no
This commit is contained in:
Codex
2026-09-11 08:33:18 +03:00
parent cd47a59d3f
commit b59e245e32
43 changed files with 386 additions and 404 deletions
@@ -1,309 +1,309 @@
{
"schema": 1,
"fingerprint": "ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765",
"fingerprint": "01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 300577,
"initialViewGzipBytes": 300111,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 302882,
"initialPanelGzipBytes": 302417,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2305,
"initialPanelOnlyGzipBytes": 2306,
"lazyFiles": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/de-VLLexfNZ.js",
"houseplan-assets/editor-DxwvfCN0.js",
"houseplan-assets/fr-sa0yIASm.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js",
"houseplan-assets/hp-zigbee-topology-overlay-BsRS5Mqx.js",
"houseplan-assets/iso-scene-render-CccMMhjh.js",
"houseplan-assets/live-interaction-runtime-DjugMgAq.js",
"houseplan-assets/pdf-export-BxY-xCel.js",
"houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js",
"houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/de-CGmJeX35.js",
"houseplan-assets/editor-DOIvkcRF.js",
"houseplan-assets/fr-YQGvl8ot.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js",
"houseplan-assets/hp-zigbee-topology-overlay-CjC-dDKe.js",
"houseplan-assets/iso-scene-render-D8pu5hB2.js",
"houseplan-assets/live-interaction-runtime-Cpm6-a35.js",
"houseplan-assets/pdf-export-i0nkBnJT.js",
"houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js",
"houseplan-assets/zigbee-topology-runtime-D3yFy__8.js"
],
"lazyGzipBytes": 418153,
"lazyGzipBytes": 418156,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/editor-DxwvfCN0.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/editor-DOIvkcRF.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js"
],
"lazyEditorGzipBytes": 205708,
"lazyEditorGzipBytes": 205715,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js"
],
"lazyOnboardingGzipBytes": 14184,
"lazyLocaleFiles": [
"houseplan-assets/de-VLLexfNZ.js",
"houseplan-assets/fr-sa0yIASm.js"
"houseplan-assets/de-CGmJeX35.js",
"houseplan-assets/fr-YQGvl8ot.js"
],
"lazyLocaleGzipBytes": 54857,
"lazyLocaleGzipBytes": 54856,
"lazyIsometricFiles": [
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/iso-scene-render-CccMMhjh.js"
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/iso-scene-render-D8pu5hB2.js"
],
"lazyIsometricGzipBytes": 13457,
"lazyIsometricGzipBytes": 13456,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js"
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js"
],
"lazyFurnitureArtGzipBytes": 10250,
"lazyFurnitureArtGzipBytes": 10251,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/pdf-export-BxY-xCel.js"
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/pdf-export-i0nkBnJT.js"
],
"lazyPdfGzipBytes": 120366,
"files": [
{
"path": "houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"sha256": "576bbc6b2cc1e44839881fa20dd9fff9a1222f865448b26c5367a02c4d57284a",
"path": "houseplan-assets/backdrop-pick-C2JRayLO.js",
"sha256": "46e0e43e1f7326e28c7b3e7a52c23f42ed9e87c7c661895be647dd670b070a7b",
"rawBytes": 21134,
"gzipBytes": 7147,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-VLLexfNZ.js",
"sha256": "ea2cf39e832157c796f0f419eddfe112ea85671f897c30422a93a2526b4593df",
"path": "houseplan-assets/de-CGmJeX35.js",
"sha256": "3bf4c1c7d0a908f3daf28718071435ba5987a879352819981f18ce9abf55db7c",
"rawBytes": 91441,
"gzipBytes": 27713,
"gzipBytes": 27711,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-DxwvfCN0.js",
"sha256": "03ef45f8ca06d3caa0b2a083b82a0189dd78a51a0a36de3903e05586e7516e47",
"path": "houseplan-assets/editor-DOIvkcRF.js",
"sha256": "4489c7d40bf5139f3aac0b1d473b41d57b226905bb9ada9196733e9c098a20bd",
"rawBytes": 3832,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-sa0yIASm.js",
"sha256": "aa8d30728b71a0d28378d056d4a5f13bca6e995f97443510302c097d4a5c0699",
"path": "houseplan-assets/fr-YQGvl8ot.js",
"sha256": "41566fef46d36b50f04a211331ebe9774a09d789ae34cc378a695fa407992066",
"rawBytes": 93719,
"gzipBytes": 27144,
"gzipBytes": 27145,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"sha256": "26925f6dfbc834d634bc634770ee2de220aa617c065b7a10945cb716f88cfcaf",
"path": "houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"sha256": "c396e5c3f90b4685dd7cb22e83f7037bb3481e6ab2c8449f545d42d93b3fd567",
"rawBytes": 33655,
"gzipBytes": 10250,
"gzipBytes": 10251,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-B08tQ2iB.js",
"sha256": "d699a561e07585dc1cf90708632355dc5d19cfc09a1700ffc3db88abbe1bf2c0",
"path": "houseplan-assets/guard-C_eGRLOc.js",
"sha256": "95e852507b368b7ca2a72f8e0f9922d3c40154dded34aec2fb9451d7cabc4f9e",
"rawBytes": 518,
"gzipBytes": 370,
"gzipBytes": 369,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-D0jk3o_K.js",
"sha256": "6b8371e61f30688bf1b3671ed27c8b80119df432af13e6c5da481be80b97afc9",
"rawBytes": 1080267,
"gzipBytes": 299772,
"path": "houseplan-assets/houseplan-card-BDim0_77.js",
"sha256": "86babf7fa6cc36fcae062f104ceb46ba687497f6b83e3704af5109f1f392ee33",
"rawBytes": 1079508,
"gzipBytes": 299307,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-VLLexfNZ.js",
"houseplan-assets/editor-DxwvfCN0.js",
"houseplan-assets/fr-sa0yIASm.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js",
"houseplan-assets/hp-zigbee-topology-overlay-BsRS5Mqx.js",
"houseplan-assets/iso-scene-render-CccMMhjh.js",
"houseplan-assets/live-interaction-runtime-DjugMgAq.js",
"houseplan-assets/pdf-export-BxY-xCel.js",
"houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js"
"houseplan-assets/de-CGmJeX35.js",
"houseplan-assets/editor-DOIvkcRF.js",
"houseplan-assets/fr-YQGvl8ot.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js",
"houseplan-assets/hp-zigbee-topology-overlay-CjC-dDKe.js",
"houseplan-assets/iso-scene-render-D8pu5hB2.js",
"houseplan-assets/live-interaction-runtime-Cpm6-a35.js",
"houseplan-assets/pdf-export-i0nkBnJT.js",
"houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"sha256": "eba46a060a4e1f4251bdd325404dc60dc60d1d61760a5b65cedda28f90e34c51",
"path": "houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"sha256": "8c1ab713915cb43f600265abab01eeee96b9aa750dfd2c1b699baf35ba97a020",
"rawBytes": 672339,
"gzipBytes": 178932,
"gzipBytes": 178934,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js"
"houseplan-assets/zigbee-topology-runtime-D3yFy__8.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js",
"sha256": "934460727e0eefc0a3034af6b273fad466823f3b28c38e1039232367592e5d4e",
"path": "houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js",
"sha256": "a26c4ed7d03aa73bc3b8c6f56b617b134e212279500fb7f9aab081c784354aad",
"rawBytes": 28287,
"gzipBytes": 7037,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-BsRS5Mqx.js",
"sha256": "64939778e4086df63abe3d4e8a3116962b264d4f0ee0c5184f08f0c0bfdf376a",
"path": "houseplan-assets/hp-zigbee-topology-overlay-CjC-dDKe.js",
"sha256": "976a0ad055df0a606421b8f436399d31fe5340d2776cf86869e28b9f933871ad",
"rawBytes": 11034,
"gzipBytes": 3730,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js",
"houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js"
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js",
"houseplan-assets/zigbee-topology-runtime-D3yFy__8.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CccMMhjh.js",
"sha256": "c11e4b107da8102344d6999650fc0c069d0c0fbb59af01c313d44c3c7c4e6903",
"path": "houseplan-assets/iso-scene-render-D8pu5hB2.js",
"sha256": "5d368ca7f046514aaa777ff82216370c25146cc6a1a65b611e4825c2251c8906",
"rawBytes": 38562,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-DjugMgAq.js",
"sha256": "2dbe23d9ee303be1140dbccbedd3616c29e4f89538b07220fb4026239bf9fef5",
"path": "houseplan-assets/live-interaction-runtime-Cpm6-a35.js",
"sha256": "1c5a1bba0d72a7c74605b1d7b00ab9961f8105021996fa3d06a5b6f29ba67408",
"rawBytes": 5196,
"gzipBytes": 2127,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-BxY-xCel.js",
"sha256": "b595eee94a34d3e10e7ba12520062f39144fa8dd68a31318679d45d68a8d80aa",
"path": "houseplan-assets/pdf-export-i0nkBnJT.js",
"sha256": "54b438deddc6b3865018ee2895814e222e62f25ce92a5fe02cc8df3195ee344b",
"rawBytes": 237254,
"gzipBytes": 110116,
"gzipBytes": 110115,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-C5vWd7lx.js",
"sha256": "c26cac6a394f9a023a49af7a3597c9e08dab5fcef1cd153132bb80f87fbdab4e",
"path": "houseplan-assets/summary-panel-editor-BnlZ4Ip9.js",
"sha256": "2d40920947eb8dcbf7e4760cc3ade20051023bcfd4694034b8e9c3abb9901528",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3400,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js"
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-nnK4peUR.js",
"sha256": "7a9f1a763bf85e363bd5eb9fde91f94e8aa8e20e08a54f544ed06576bbf6e8da",
"path": "houseplan-assets/summary-panel-metrics-Br5mofDx.js",
"sha256": "90dfec5b2d65a11540eb913bef627c39a38c1e5ced08151374f7300f87919df7",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1307,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js",
"sha256": "8c97c663bdc659ad68a9a8cbb73b07237b750d42096aeaf7736fd157775402ac",
"path": "houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js",
"sha256": "e133dccc339b5d39f0881487ffa590e32e724d734b59c1ba850cff63ead3637a",
"rawBytes": 72272,
"gzipBytes": 19727,
"gzipBytes": 19726,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-C5vWd7lx.js",
"houseplan-assets/summary-panel-metrics-nnK4peUR.js"
"houseplan-assets/summary-panel-editor-BnlZ4Ip9.js",
"houseplan-assets/summary-panel-metrics-Br5mofDx.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-BrdakkCO.js",
"sha256": "2b70bb09cc3bd85cef479fe8135844e454dbb9d47c359584f68f15c88df6091d",
"path": "houseplan-assets/zigbee-topology-COAw1gBJ.js",
"sha256": "adb74a283df76a5a8e75be903ebf664870e581dfff090c4166f2c33456931887",
"rawBytes": 18961,
"gzipBytes": 7426,
"gzipBytes": 7431,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js",
"sha256": "8026b2637d3f9f7cbbd836d7f0ee2608e78d967df4b8081a8f9a946702818e6e",
"path": "houseplan-assets/zigbee-topology-runtime-D3yFy__8.js",
"sha256": "b2e269b8649bf727239c9a8ae734695b7f820f5944c37136fda6b1fb15be5fcb",
"rawBytes": 3941,
"gzipBytes": 1764,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js"
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "8a0de07efe43bee3b80fba47439783accc2d689621efb43eb92bd948c331f37e",
"sha256": "649d25b0ce4253620cacddaef7f37ad8841cb35c2d899bb5f2d0b4cc2a97b6c3",
"rawBytes": 1205,
"gzipBytes": 805,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "c5cddd44a2af9872e9d352b2915f8889858a3c3c88947409955a16c2cf392858",
"sha256": "3723fa0578252896d6bedebde3d4d234f78488a68cdb0342194eecaae950a66d",
"rawBytes": 6124,
"gzipBytes": 2305,
"gzipBytes": 2306,
"isEntry": true,
"imports": [
"houseplan-card.js"
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-D0jk3o_K.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__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-BDim0_77.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 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{dS as r,dT as t,dU as e}from"./houseplan-card-D0jk3o_K.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};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{dS as r,dT as t,dU as e}from"./houseplan-card-BDim0_77.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};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{b as a,A as e}from"./houseplan-card-D0jk3o_K.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-sGYqBGeH.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{b as a,A as e}from"./houseplan-card-BDim0_77.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-CopXSPU7.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-D0jk3o_K.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-BDim0_77.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,d="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{n as t,b as n}from"./zigbee-topology-BrdakkCO.js";import{B as e}from"./houseplan-card-D0jk3o_K.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{n as t,b as n}from"./zigbee-topology-COAw1gBJ.js";import{B as e}from"./houseplan-card-BDim0_77.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";try{await import("./houseplan-assets/houseplan-card-D0jk3o_K.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 houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";try{await import("./houseplan-assets/houseplan-card-BDim0_77.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 houseplan-card.js: the implementation chunk is unavailable",e)}
File diff suppressed because one or more lines are too long
+134 -134
View File
@@ -1,309 +1,309 @@
{
"schema": 1,
"fingerprint": "ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765",
"fingerprint": "01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 300577,
"initialViewGzipBytes": 300111,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 302882,
"initialPanelGzipBytes": 302417,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2305,
"initialPanelOnlyGzipBytes": 2306,
"lazyFiles": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/de-VLLexfNZ.js",
"houseplan-assets/editor-DxwvfCN0.js",
"houseplan-assets/fr-sa0yIASm.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js",
"houseplan-assets/hp-zigbee-topology-overlay-BsRS5Mqx.js",
"houseplan-assets/iso-scene-render-CccMMhjh.js",
"houseplan-assets/live-interaction-runtime-DjugMgAq.js",
"houseplan-assets/pdf-export-BxY-xCel.js",
"houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js",
"houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/de-CGmJeX35.js",
"houseplan-assets/editor-DOIvkcRF.js",
"houseplan-assets/fr-YQGvl8ot.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js",
"houseplan-assets/hp-zigbee-topology-overlay-CjC-dDKe.js",
"houseplan-assets/iso-scene-render-D8pu5hB2.js",
"houseplan-assets/live-interaction-runtime-Cpm6-a35.js",
"houseplan-assets/pdf-export-i0nkBnJT.js",
"houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js",
"houseplan-assets/zigbee-topology-runtime-D3yFy__8.js"
],
"lazyGzipBytes": 418153,
"lazyGzipBytes": 418156,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/editor-DxwvfCN0.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/editor-DOIvkcRF.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js"
],
"lazyEditorGzipBytes": 205708,
"lazyEditorGzipBytes": 205715,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js"
],
"lazyOnboardingGzipBytes": 14184,
"lazyLocaleFiles": [
"houseplan-assets/de-VLLexfNZ.js",
"houseplan-assets/fr-sa0yIASm.js"
"houseplan-assets/de-CGmJeX35.js",
"houseplan-assets/fr-YQGvl8ot.js"
],
"lazyLocaleGzipBytes": 54857,
"lazyLocaleGzipBytes": 54856,
"lazyIsometricFiles": [
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/iso-scene-render-CccMMhjh.js"
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/iso-scene-render-D8pu5hB2.js"
],
"lazyIsometricGzipBytes": 13457,
"lazyIsometricGzipBytes": 13456,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js"
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js"
],
"lazyFurnitureArtGzipBytes": 10250,
"lazyFurnitureArtGzipBytes": 10251,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/pdf-export-BxY-xCel.js"
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/pdf-export-i0nkBnJT.js"
],
"lazyPdfGzipBytes": 120366,
"files": [
{
"path": "houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"sha256": "576bbc6b2cc1e44839881fa20dd9fff9a1222f865448b26c5367a02c4d57284a",
"path": "houseplan-assets/backdrop-pick-C2JRayLO.js",
"sha256": "46e0e43e1f7326e28c7b3e7a52c23f42ed9e87c7c661895be647dd670b070a7b",
"rawBytes": 21134,
"gzipBytes": 7147,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-VLLexfNZ.js",
"sha256": "ea2cf39e832157c796f0f419eddfe112ea85671f897c30422a93a2526b4593df",
"path": "houseplan-assets/de-CGmJeX35.js",
"sha256": "3bf4c1c7d0a908f3daf28718071435ba5987a879352819981f18ce9abf55db7c",
"rawBytes": 91441,
"gzipBytes": 27713,
"gzipBytes": 27711,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-DxwvfCN0.js",
"sha256": "03ef45f8ca06d3caa0b2a083b82a0189dd78a51a0a36de3903e05586e7516e47",
"path": "houseplan-assets/editor-DOIvkcRF.js",
"sha256": "4489c7d40bf5139f3aac0b1d473b41d57b226905bb9ada9196733e9c098a20bd",
"rawBytes": 3832,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-sa0yIASm.js",
"sha256": "aa8d30728b71a0d28378d056d4a5f13bca6e995f97443510302c097d4a5c0699",
"path": "houseplan-assets/fr-YQGvl8ot.js",
"sha256": "41566fef46d36b50f04a211331ebe9774a09d789ae34cc378a695fa407992066",
"rawBytes": 93719,
"gzipBytes": 27144,
"gzipBytes": 27145,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"sha256": "26925f6dfbc834d634bc634770ee2de220aa617c065b7a10945cb716f88cfcaf",
"path": "houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"sha256": "c396e5c3f90b4685dd7cb22e83f7037bb3481e6ab2c8449f545d42d93b3fd567",
"rawBytes": 33655,
"gzipBytes": 10250,
"gzipBytes": 10251,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-B08tQ2iB.js",
"sha256": "d699a561e07585dc1cf90708632355dc5d19cfc09a1700ffc3db88abbe1bf2c0",
"path": "houseplan-assets/guard-C_eGRLOc.js",
"sha256": "95e852507b368b7ca2a72f8e0f9922d3c40154dded34aec2fb9451d7cabc4f9e",
"rawBytes": 518,
"gzipBytes": 370,
"gzipBytes": 369,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-D0jk3o_K.js",
"sha256": "6b8371e61f30688bf1b3671ed27c8b80119df432af13e6c5da481be80b97afc9",
"rawBytes": 1080267,
"gzipBytes": 299772,
"path": "houseplan-assets/houseplan-card-BDim0_77.js",
"sha256": "86babf7fa6cc36fcae062f104ceb46ba687497f6b83e3704af5109f1f392ee33",
"rawBytes": 1079508,
"gzipBytes": 299307,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-VLLexfNZ.js",
"houseplan-assets/editor-DxwvfCN0.js",
"houseplan-assets/fr-sa0yIASm.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js",
"houseplan-assets/hp-zigbee-topology-overlay-BsRS5Mqx.js",
"houseplan-assets/iso-scene-render-CccMMhjh.js",
"houseplan-assets/live-interaction-runtime-DjugMgAq.js",
"houseplan-assets/pdf-export-BxY-xCel.js",
"houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js"
"houseplan-assets/de-CGmJeX35.js",
"houseplan-assets/editor-DOIvkcRF.js",
"houseplan-assets/fr-YQGvl8ot.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js",
"houseplan-assets/hp-zigbee-topology-overlay-CjC-dDKe.js",
"houseplan-assets/iso-scene-render-D8pu5hB2.js",
"houseplan-assets/live-interaction-runtime-Cpm6-a35.js",
"houseplan-assets/pdf-export-i0nkBnJT.js",
"houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-CPHsPq8i.js",
"sha256": "eba46a060a4e1f4251bdd325404dc60dc60d1d61760a5b65cedda28f90e34c51",
"path": "houseplan-assets/houseplan-editor-runtime-D1RbNx_N.js",
"sha256": "8c1ab713915cb43f600265abab01eeee96b9aa750dfd2c1b699baf35ba97a020",
"rawBytes": 672339,
"gzipBytes": 178932,
"gzipBytes": 178934,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js"
"houseplan-assets/zigbee-topology-runtime-D3yFy__8.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-CYnWHSzo.js",
"sha256": "934460727e0eefc0a3034af6b273fad466823f3b28c38e1039232367592e5d4e",
"path": "houseplan-assets/houseplan-onboarding-runtime-BgeIy-zz.js",
"sha256": "a26c4ed7d03aa73bc3b8c6f56b617b134e212279500fb7f9aab081c784354aad",
"rawBytes": 28287,
"gzipBytes": 7037,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-D5Q4Lp1s.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/backdrop-pick-C2JRayLO.js",
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-BsRS5Mqx.js",
"sha256": "64939778e4086df63abe3d4e8a3116962b264d4f0ee0c5184f08f0c0bfdf376a",
"path": "houseplan-assets/hp-zigbee-topology-overlay-CjC-dDKe.js",
"sha256": "976a0ad055df0a606421b8f436399d31fe5340d2776cf86869e28b9f933871ad",
"rawBytes": 11034,
"gzipBytes": 3730,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js",
"houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js"
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js",
"houseplan-assets/zigbee-topology-runtime-D3yFy__8.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CccMMhjh.js",
"sha256": "c11e4b107da8102344d6999650fc0c069d0c0fbb59af01c313d44c3c7c4e6903",
"path": "houseplan-assets/iso-scene-render-D8pu5hB2.js",
"sha256": "5d368ca7f046514aaa777ff82216370c25146cc6a1a65b611e4825c2251c8906",
"rawBytes": 38562,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-B08tQ2iB.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/guard-C_eGRLOc.js",
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-DjugMgAq.js",
"sha256": "2dbe23d9ee303be1140dbccbedd3616c29e4f89538b07220fb4026239bf9fef5",
"path": "houseplan-assets/live-interaction-runtime-Cpm6-a35.js",
"sha256": "1c5a1bba0d72a7c74605b1d7b00ab9961f8105021996fa3d06a5b6f29ba67408",
"rawBytes": 5196,
"gzipBytes": 2127,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-BxY-xCel.js",
"sha256": "b595eee94a34d3e10e7ba12520062f39144fa8dd68a31318679d45d68a8d80aa",
"path": "houseplan-assets/pdf-export-i0nkBnJT.js",
"sha256": "54b438deddc6b3865018ee2895814e222e62f25ce92a5fe02cc8df3195ee344b",
"rawBytes": 237254,
"gzipBytes": 110116,
"gzipBytes": 110115,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-DKbkMWv0.js",
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/furniture-plan-art.generated-CXpui1FZ.js",
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-C5vWd7lx.js",
"sha256": "c26cac6a394f9a023a49af7a3597c9e08dab5fcef1cd153132bb80f87fbdab4e",
"path": "houseplan-assets/summary-panel-editor-BnlZ4Ip9.js",
"sha256": "2d40920947eb8dcbf7e4760cc3ade20051023bcfd4694034b8e9c3abb9901528",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3400,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js"
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-nnK4peUR.js",
"sha256": "7a9f1a763bf85e363bd5eb9fde91f94e8aa8e20e08a54f544ed06576bbf6e8da",
"path": "houseplan-assets/summary-panel-metrics-Br5mofDx.js",
"sha256": "90dfec5b2d65a11540eb913bef627c39a38c1e5ced08151374f7300f87919df7",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1307,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-sGYqBGeH.js",
"sha256": "8c97c663bdc659ad68a9a8cbb73b07237b750d42096aeaf7736fd157775402ac",
"path": "houseplan-assets/summary-panel-runtime-loaded-CopXSPU7.js",
"sha256": "e133dccc339b5d39f0881487ffa590e32e724d734b59c1ba850cff63ead3637a",
"rawBytes": 72272,
"gzipBytes": 19727,
"gzipBytes": 19726,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-C5vWd7lx.js",
"houseplan-assets/summary-panel-metrics-nnK4peUR.js"
"houseplan-assets/summary-panel-editor-BnlZ4Ip9.js",
"houseplan-assets/summary-panel-metrics-Br5mofDx.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-BrdakkCO.js",
"sha256": "2b70bb09cc3bd85cef479fe8135844e454dbb9d47c359584f68f15c88df6091d",
"path": "houseplan-assets/zigbee-topology-COAw1gBJ.js",
"sha256": "adb74a283df76a5a8e75be903ebf664870e581dfff090c4166f2c33456931887",
"rawBytes": 18961,
"gzipBytes": 7426,
"gzipBytes": 7431,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DqQtbpDf.js",
"sha256": "8026b2637d3f9f7cbbd836d7f0ee2608e78d967df4b8081a8f9a946702818e6e",
"path": "houseplan-assets/zigbee-topology-runtime-D3yFy__8.js",
"sha256": "b2e269b8649bf727239c9a8ae734695b7f820f5944c37136fda6b1fb15be5fcb",
"rawBytes": 3941,
"gzipBytes": 1764,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js",
"houseplan-assets/zigbee-topology-BrdakkCO.js"
"houseplan-assets/houseplan-card-BDim0_77.js",
"houseplan-assets/zigbee-topology-COAw1gBJ.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "8a0de07efe43bee3b80fba47439783accc2d689621efb43eb92bd948c331f37e",
"sha256": "649d25b0ce4253620cacddaef7f37ad8841cb35c2d899bb5f2d0b4cc2a97b6c3",
"rawBytes": 1205,
"gzipBytes": 805,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-D0jk3o_K.js"
"houseplan-assets/houseplan-card-BDim0_77.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "c5cddd44a2af9872e9d352b2915f8889858a3c3c88947409955a16c2cf392858",
"sha256": "3723fa0578252896d6bedebde3d4d234f78488a68cdb0342194eecaae950a66d",
"rawBytes": 6124,
"gzipBytes": 2305,
"gzipBytes": 2306,
"isEntry": true,
"imports": [
"houseplan-card.js"
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-D0jk3o_K.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__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-BDim0_77.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 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{dS as r,dT as t,dU as e}from"./houseplan-card-D0jk3o_K.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};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{dS as r,dT as t,dU as e}from"./houseplan-card-BDim0_77.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};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{b as a,A as e}from"./houseplan-card-D0jk3o_K.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-sGYqBGeH.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{b as a,A as e}from"./houseplan-card-BDim0_77.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-CopXSPU7.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-D0jk3o_K.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-BDim0_77.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,d="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";import{n as t,b as n}from"./zigbee-topology-BrdakkCO.js";import{B as e}from"./houseplan-card-D0jk3o_K.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";import{n as t,b as n}from"./zigbee-topology-COAw1gBJ.js";import{B as e}from"./houseplan-card-BDim0_77.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ff98640cc5310e1e90e00b0cf23e42c8b1ac0953c6ad38786af6378331273765";try{await import("./houseplan-assets/houseplan-card-D0jk3o_K.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 houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="01538edd433a3c3c159516d08c776b8888b73f4ec8a927564dbe25ce417cf700";try{await import("./houseplan-assets/houseplan-card-BDim0_77.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 houseplan-card.js: the implementation chunk is unavailable",e)}
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -8
View File
@@ -209,11 +209,7 @@ export const devicesStyles = css`
border-radius: 9999px;
background: transparent;
box-shadow: var(--device-shell-shadow);
/* #524: тень оболочки выражена в --dev-size, а он — в cqw. Пока
box-shadow стоял в переходах, любой пересчёт контейнерных запросов
запускал некомпозируемый переход на КАЖДОМ маркере: на плане владельца
61 штука разом роняли Firefox до 9,4 к/с. Сама тень не изменилась —
она просто применяется сразу. */
/* no box-shadow here: cqw-sized, restarts on every container resize (#524) */
transition: border-color .15s, opacity .2s;
pointer-events: auto;
/* Normative production fallback: never add a per-marker backdrop blur. */
@@ -266,9 +262,7 @@ export const devicesStyles = css`
var(--device-core-inset-shadow),
0 0 0 var(--device-ring-width) var(--device-ring-color);
line-height: 0;
/* #524: то же и у ядра — кольцо выделения и внутренняя тень заданы
через --dev-size. Кольцо появляется мгновенно; плавное стоило бы
перерисовки кадра на каждый маркер при каждом пересчёте контейнера. */
/* same rule as the shell: the ring is cqw-sized, so it applies at once (#524) */
transition: background .15s, color .15s, opacity .2s;
pointer-events: none;
}