@luzmo/analytics-components-kit 1.0.1-alpha.30 → 1.0.1-alpha.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/components/{async-directive-C_bp5UcZ-B5_19oN_.js → async-directive-BfcqVjDp-BCT-lA4F.js} +8 -8
  2. package/components/{async-directive-C_bp5UcZ-mUPcBvyn.cjs → async-directive-BfcqVjDp-C8C45jl6.cjs} +3 -3
  3. package/components/{base-D76d76ww-D0dTUBua.js → base-D76d76ww-BGkuhs54.js} +59 -47
  4. package/components/{base-D76d76ww-BEIhYtgV.cjs → base-D76d76ww-tT6yr8eb.cjs} +9 -9
  5. package/components/{button-base-WsJSnMie-B1TLbPwk.cjs → button-base-DbkDzb71-CY6MJGqE.cjs} +2 -2
  6. package/components/{button-base-WsJSnMie-CyGPs7kd.js → button-base-DbkDzb71-R8oqSqlY.js} +4 -4
  7. package/components/calculate-data-item-icon-BtUWtDx3.cjs +20 -0
  8. package/components/calculate-data-item-icon-DauSiV8c.js +97 -0
  9. package/components/{checkbox-mixin-CmeCReJh-wY0R8cuc.cjs → checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs} +3 -3
  10. package/components/{checkbox-mixin-CmeCReJh-C94-rm4F.js → checkbox-mixin-Do7EgtpQ-hne79zc-.js} +2 -2
  11. package/components/{de-BaTUIQk1.js → de-CCq00pbq.js} +55 -1
  12. package/components/de-DcZysUyZ.cjs +20 -0
  13. package/components/{directive-helpers-Bx_ey3Gk-BxvL9t9F.cjs → directive-helpers-Cm6gitnu-BeggOiwf.cjs} +4 -4
  14. package/components/{directive-helpers-Bx_ey3Gk-Csi4AxXe.js → directive-helpers-Cm6gitnu-CeYtlPO9.js} +53 -19
  15. package/components/display-settings/index.cjs +1 -1
  16. package/components/display-settings/index.js +18 -17
  17. package/components/display-settings-binning/display-settings-binning.d.ts +0 -1
  18. package/components/display-settings-binning/index.cjs +3 -2
  19. package/components/display-settings-binning/index.js +21 -21
  20. package/components/display-settings-datetime/index.cjs +2 -2
  21. package/components/display-settings-datetime/index.js +37 -35
  22. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +0 -1
  23. package/components/display-settings-grand-totals/index.cjs +4 -3
  24. package/components/display-settings-grand-totals/index.js +21 -21
  25. package/components/display-settings-numeric/index.cjs +14 -14
  26. package/components/display-settings-numeric/index.js +32 -30
  27. package/components/display-settings-period-over-period/index.cjs +6 -6
  28. package/components/display-settings-period-over-period/index.js +36 -34
  29. package/components/draggable-data-item/index.cjs +3 -3
  30. package/components/draggable-data-item/index.js +15 -13
  31. package/components/draggable-data-item-level/index.cjs +9 -9
  32. package/components/draggable-data-item-level/index.js +96 -167
  33. package/components/droppable-slot/index.cjs +7 -7
  34. package/components/droppable-slot/index.js +32 -30
  35. package/components/edit-item/index.cjs +11 -11
  36. package/components/edit-item/index.js +13 -12
  37. package/components/edit-option/index.cjs +1 -1
  38. package/components/edit-option/index.js +1 -1
  39. package/components/edit-option-action-button-group/index.cjs +2 -1
  40. package/components/edit-option-action-button-group/index.js +44 -43
  41. package/components/edit-option-base-CSJNbo2E.cjs +53 -0
  42. package/components/{edit-option-base-DOezOLDd.js → edit-option-base-DeQjGX4i.js} +5 -4
  43. package/components/edit-option-color-picker/index.cjs +23 -23
  44. package/components/edit-option-color-picker/index.js +50 -50
  45. package/components/edit-option-multi-language-field/index.cjs +1 -1
  46. package/components/edit-option-multi-language-field/index.js +3 -3
  47. package/components/edit-option-number-field/index.cjs +2 -2
  48. package/components/edit-option-number-field/index.js +3 -3
  49. package/components/edit-option-picker/index.cjs +2 -2
  50. package/components/edit-option-picker/index.js +4 -4
  51. package/components/edit-option-position-picker/index.cjs +1 -1
  52. package/components/edit-option-position-picker/index.js +3 -3
  53. package/components/edit-option-positions-number-field/index.cjs +1 -1
  54. package/components/edit-option-positions-number-field/index.js +7 -7
  55. package/components/edit-option-radio-button-group/index.cjs +4 -4
  56. package/components/edit-option-radio-button-group/index.js +4 -4
  57. package/components/edit-option-slider/index.cjs +2 -2
  58. package/components/edit-option-slider/index.js +27 -27
  59. package/components/edit-option-switch/index.cjs +3 -3
  60. package/components/edit-option-switch/index.js +5 -5
  61. package/components/edit-option-text-field/index.cjs +2 -2
  62. package/components/edit-option-text-field/index.js +3 -3
  63. package/components/es-CGiBfBKJ.cjs +20 -0
  64. package/components/{es-D37mTCZB.js → es-DBmbFw-L.js} +55 -1
  65. package/components/filter-data-item-picker/filter-data-item-picker.d.ts +88 -0
  66. package/components/filter-data-item-picker/index.cjs +47 -0
  67. package/components/filter-data-item-picker/index.d.ts +7 -0
  68. package/components/filter-data-item-picker/index.js +193 -0
  69. package/components/filter-expression-picker/filter-expression-picker.d.ts +74 -0
  70. package/components/filter-expression-picker/index.cjs +20 -0
  71. package/components/filter-expression-picker/index.d.ts +7 -0
  72. package/components/filter-expression-picker/index.js +30 -0
  73. package/components/filter-group/filter-group.d.ts +26 -0
  74. package/components/filter-group/index.d.ts +7 -0
  75. package/components/filter-item/filter-item.d.ts +76 -0
  76. package/components/filter-item/index.cjs +52 -0
  77. package/components/filter-item/index.d.ts +7 -0
  78. package/components/filter-item/index.js +271 -0
  79. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
  80. package/components/filter-parameter-picker/index.d.ts +7 -0
  81. package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
  82. package/components/filter-value-picker/index.cjs +51 -0
  83. package/components/filter-value-picker/index.d.ts +7 -0
  84. package/components/filter-value-picker/index.js +149 -0
  85. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +43 -0
  86. package/components/filter-value-picker-datetime/index.cjs +288 -0
  87. package/components/filter-value-picker-datetime/index.d.ts +7 -0
  88. package/components/filter-value-picker-datetime/index.js +2820 -0
  89. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +82 -0
  90. package/components/filter-value-picker-hierarchy/index.cjs +46 -0
  91. package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
  92. package/components/filter-value-picker-hierarchy/index.js +278 -0
  93. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +83 -0
  94. package/components/filter-value-picker-numeric/index.cjs +46 -0
  95. package/components/filter-value-picker-numeric/index.d.ts +7 -0
  96. package/components/filter-value-picker-numeric/index.js +274 -0
  97. package/components/flow-D-0MTYCm-BOBCoA5Z.js +546 -0
  98. package/components/flow-D-0MTYCm-BW5krWol.cjs +48 -0
  99. package/components/{focusable-BNESohBR-DbTLvYXr.cjs → focusable-BxtpnzWp-CkK9AeMt.cjs} +2 -2
  100. package/components/{focusable-BNESohBR-DYvAZYXL.js → focusable-BxtpnzWp-DJQkL8Zv.js} +1 -1
  101. package/components/focusable-DB6Uhr-C.js +275 -0
  102. package/components/focusable-_wp5pWO-.cjs +20 -0
  103. package/components/{fr-BWJHvkss.js → fr-BOwMikLT.js} +55 -1
  104. package/components/fr-DZbYwMlh.cjs +20 -0
  105. package/components/{get-css-variable-Bhbr-Kr1.js → get-css-variable-YlLiVgo8.js} +2 -2
  106. package/components/{if-defined-DbhS35z5.js → if-defined-B4gwZxx6.js} +1 -1
  107. package/components/{if-defined-D-1p2bLN-Bn-33APC.js → if-defined-DOaE2coe-CNT45Xcl.js} +1 -1
  108. package/components/{if-defined-D-1p2bLN-0_AoRnT2.cjs → if-defined-DOaE2coe-Cvlu5s9n.cjs} +1 -1
  109. package/components/{if-defined-CF8baNdl.cjs → if-defined-DqthfJme.cjs} +2 -2
  110. package/components/{index-Dwp251OJ.js → index-5mZhN-HJ.js} +7 -6
  111. package/components/{index-B3jkBlKY.js → index-BC1LV3vH.js} +3 -3
  112. package/components/{index-BXMPi13W.js → index-BCBLJ-ei.js} +82 -82
  113. package/components/{index-B9dQtvu7.js → index-BHJH1eGn.js} +3 -3
  114. package/components/index-BHXq1-M1.cjs +195 -0
  115. package/components/{index-C2-2RrwB.cjs → index-BKwbYw6x.cjs} +3 -3
  116. package/components/index-BOqSYlku.cjs +38 -0
  117. package/components/{index-D5rT-qy9.cjs → index-Bafc5poK.cjs} +12 -28
  118. package/components/{index-CqFCIIIl.js → index-BbuNpVBr.js} +3 -3
  119. package/components/{index-CRx2nPkq.js → index-Bmpw4rGV.js} +3 -3
  120. package/components/{index-D8Na-686.cjs → index-BoXbQm2o.cjs} +1 -1
  121. package/components/{index-uRWe553S.cjs → index-BtIWR_s6.cjs} +4 -4
  122. package/components/index-BwsEWpIS.js +494 -0
  123. package/components/{index-CF84gqsb.cjs → index-C2PPSv8E.cjs} +4 -4
  124. package/components/{index-CbeVu32V.js → index-C3N6qTxJ.js} +3 -3
  125. package/components/index-C5m9vRp5.js +598 -0
  126. package/components/{index-bZQXFqxv.cjs → index-CBOAQ3-E.cjs} +10 -10
  127. package/components/{index-_McOOiwL.cjs → index-CSm0I7Gz.cjs} +4 -4
  128. package/components/index-CTHlwZ9E.cjs +274 -0
  129. package/components/{index-Brg_sVUg.js → index-CTVNGPeT.js} +1 -1
  130. package/components/{index-Rjoe8cIs.js → index-Cb5l6iK_.js} +110 -173
  131. package/components/{index-BkCJwWm3.cjs → index-CeENkpNK.cjs} +3 -3
  132. package/components/{index-BnbhRpm9.js → index-CnRQGFHT.js} +3 -3
  133. package/components/{index-BKcvEgWr.cjs → index-CnpJUw_z.cjs} +3 -3
  134. package/components/{index-DJik7S7b.js → index-CsDgk_sj.js} +2 -2
  135. package/components/{index-fl13NYnO.js → index-CskV_bXp.js} +2 -2
  136. package/components/index-CyWwLYEO.js +1789 -0
  137. package/components/index-D9yzIoGv.js +1666 -0
  138. package/components/{index-Bwxvaqxq.cjs → index-DF-s3cEL.cjs} +11 -11
  139. package/components/{index-CVuJ-LUO.cjs → index-DSQyBS9Z.cjs} +2 -2
  140. package/components/{index-Bb8vxGZY.js → index-Desl7GJ0.js} +19 -15
  141. package/components/{index-0HUnZcem.cjs → index-DtohCwyO.cjs} +2 -2
  142. package/components/index-TQG9Xdxu.cjs +20 -0
  143. package/components/index-c2uKLWDt.cjs +157 -0
  144. package/components/{index-C9-QEfA9.cjs → index-j8UKjHqY.cjs} +4 -4
  145. package/components/{index-DZZMSlYS.js → index-rQxtPaJl.js} +6 -6
  146. package/components/index.cjs +1 -1
  147. package/components/index.js +41 -27
  148. package/components/localized-decorator-ClAOFk8M.cjs +28 -0
  149. package/components/localized-decorator-DGnMToFa.js +48 -0
  150. package/components/{luzmo-icons-U09GB75o.js → luzmo-icons-CPucBq6e.js} +89 -89
  151. package/components/luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs +47 -0
  152. package/components/{luzmo-icons-BLN3xVgr-Tz5XXgbL.js → luzmo-icons-DbwDQtuO-QG0fLECn.js} +67 -25
  153. package/components/luzmo-icons-Nyf1P71v.cjs +31 -0
  154. package/components/nl-0V96M02q.cjs +20 -0
  155. package/components/nl-CY0iO3Ch.js +158 -0
  156. package/components/observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs +36 -0
  157. package/components/observe-slot-presence-CmVi0zTc-DCFuXW7v.js +87 -0
  158. package/components/{observe-slot-text-CVKLDesL-BB2RmFgc.cjs → observe-slot-text-BPfIQQtz-DHOh38Ve.cjs} +4 -4
  159. package/components/{observe-slot-text-CVKLDesL-CXUeCmXW.js → observe-slot-text-BPfIQQtz-v6B-1BYh.js} +5 -5
  160. package/components/pending-state-DTX7ggyF-BQGaWUEI.cjs +80 -0
  161. package/components/pending-state-DTX7ggyF-KolnwUB7.js +321 -0
  162. package/components/{periods.const-CDIkC5CK.cjs → periods.const-BbgInj9J.cjs} +1 -1
  163. package/components/{periods.const-GHh5bPfs.js → periods.const-D2cMP5hH.js} +1 -1
  164. package/components/{popover-DRyjN9y_-w1zh4tvw.js → popover-DjX0aAnY-B_ujTfos.js} +2 -2
  165. package/components/{popover-DRyjN9y_-7mF_fAOh.cjs → popover-DjX0aAnY-CSUMV_Ay.cjs} +3 -3
  166. package/components/property-CxtZroGf.js +600 -0
  167. package/components/property-Dlf9S6Jz.cjs +42 -0
  168. package/components/{query-assigned-nodes-C76XVPWY-k1jDPyUQ.cjs → query-assigned-nodes-C76XVPWY-BW2w3V7-.cjs} +1 -1
  169. package/components/{query-assigned-nodes-C76XVPWY-BWouxGZs.js → query-assigned-nodes-C76XVPWY-DxNwGHfW.js} +1 -1
  170. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  171. package/components/{scatter-plot-options.config-lrkd9qj4.js → scatter-plot-options.config-Corlzno1.js} +78 -48
  172. package/components/set-locale-5FFfQpVQ.cjs +52 -0
  173. package/components/set-locale-DAGnJZD8.js +188 -0
  174. package/components/{sized-mixin-DMuOVsw0.js → sized-mixin-C7R5uRbF.js} +1 -1
  175. package/components/sized-mixin-ZTphZKLm.cjs +20 -0
  176. package/components/slot-menu/index.cjs +1 -1
  177. package/components/slot-menu/index.js +12 -11
  178. package/components/slot-menu-list/index.cjs +3 -3
  179. package/components/slot-menu-list/index.js +15 -14
  180. package/components/{state-e2n-fyrr.js → state-BVYsk_HZ.js} +1 -1
  181. package/components/{state-QgHgNZLe.cjs → state-CrfOw8Zp.cjs} +2 -2
  182. package/components/{streaming-listener-C8Ctj0Q6-lanbGKR9.js → streaming-listener-CP-JE6Fa-9MH0gENR.js} +3 -3
  183. package/components/{streaming-listener-C8Ctj0Q6-BhMxS69F.cjs → streaming-listener-CP-JE6Fa-DMzr1X1m.cjs} +3 -3
  184. package/components/{task-fQFUVV8e.cjs → task-CdvrMX8r.cjs} +2 -2
  185. package/components/{task-gE27tBDv.js → task-DH8UFyxP.js} +1 -1
  186. package/components/{text-field-C0pFjPG1-BCVbGXp7.cjs → text-field-BIADXoLC-B8w9TVmS.cjs} +8 -8
  187. package/components/{text-field-C0pFjPG1-B4TRivuD.js → text-field-BIADXoLC-B9oE05VF.js} +11 -10
  188. package/custom-elements.json +1891 -34
  189. package/index.d.ts +7 -0
  190. package/item-definitions/scatter-plot/scatter-plot-options.config.d.ts +3 -0
  191. package/package.json +46 -1
  192. package/utils/data-broker/index.d.ts +179 -0
  193. package/utils/data-item-types/calculate-data-item-icon.d.ts +3 -0
  194. package/utils/filters/expressions.d.ts +15 -0
  195. package/utils/filters/index.d.ts +1 -0
  196. package/utils/localize/set-locale.d.ts +4 -2
  197. package/utils/types/column.types.d.ts +1 -1
  198. package/components/de-DgHoh7KS.cjs +0 -20
  199. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +0 -2
  200. package/components/edit-option-base-jkkFevzT.cjs +0 -53
  201. package/components/es-ByW01bzN.cjs +0 -20
  202. package/components/focusable-Cu_m_GTh.cjs +0 -42
  203. package/components/focusable-Dw_pMNQL.js +0 -852
  204. package/components/fr-DnFUAglm.cjs +0 -20
  205. package/components/index-CqynTbW1.cjs +0 -217
  206. package/components/index-DFnzlbHX.js +0 -779
  207. package/components/index-hogChFy0.cjs +0 -195
  208. package/components/luzmo-icons-BDClm1AE.cjs +0 -31
  209. package/components/luzmo-icons-BLN3xVgr-Cr3OrsqW.cjs +0 -47
  210. package/components/nl-CWxJcTNT.js +0 -104
  211. package/components/nl-CpfDNK5c.cjs +0 -20
  212. package/components/scatter-plot-options.config-DkJLutNb.cjs +0 -20
  213. package/components/set-locale-ByIApH40.cjs +0 -60
  214. package/components/set-locale-DJYT4V7U.js +0 -212
  215. package/components/sized-mixin-Cqlxwicw.cjs +0 -20
  216. /package/components/{divider.module-DwOuLGU3-B19eHVg2.js → divider.module-DoQWQEIJ-B19eHVg2.js} +0 -0
  217. /package/components/{divider.module-DwOuLGU3-Bg8RrFkc.cjs → divider.module-DoQWQEIJ-Bg8RrFkc.cjs} +0 -0
@@ -1,852 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- /**
21
- * @license
22
- * Copyright 2019 Google LLC
23
- * SPDX-License-Identifier: BSD-3-Clause
24
- */
25
- const U = globalThis, z = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rt = Symbol(), Z = /* @__PURE__ */ new WeakMap();
26
- let pt = class {
27
- constructor(t, e, s) {
28
- if (this._$cssResult$ = !0, s !== rt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
29
- this.cssText = t, this.t = e;
30
- }
31
- get styleSheet() {
32
- let t = this.o;
33
- const e = this.t;
34
- if (z && t === void 0) {
35
- const s = e !== void 0 && e.length === 1;
36
- s && (t = Z.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Z.set(e, t));
37
- }
38
- return t;
39
- }
40
- toString() {
41
- return this.cssText;
42
- }
43
- };
44
- const ft = (o) => new pt(typeof o == "string" ? o : o + "", void 0, rt), mt = (o, t) => {
45
- if (z) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
46
- else for (const e of t) {
47
- const s = document.createElement("style"), i = U.litNonce;
48
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
49
- }
50
- }, J = z ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
51
- let e = "";
52
- for (const s of t.cssRules) e += s.cssText;
53
- return ft(e);
54
- })(o) : o;
55
- /**
56
- * @license
57
- * Copyright 2017 Google LLC
58
- * SPDX-License-Identifier: BSD-3-Clause
59
- */
60
- const { is: bt, defineProperty: $t, getOwnPropertyDescriptor: _t, getOwnPropertyNames: gt, getOwnPropertySymbols: At, getPrototypeOf: yt } = Object, b = globalThis, G = b.trustedTypes, vt = G ? G.emptyScript : "", k = b.reactiveElementPolyfillSupport, w = (o, t) => o, N = { toAttribute(o, t) {
61
- switch (t) {
62
- case Boolean:
63
- o = o ? vt : null;
64
- break;
65
- case Object:
66
- case Array:
67
- o = o == null ? o : JSON.stringify(o);
68
- }
69
- return o;
70
- }, fromAttribute(o, t) {
71
- let e = o;
72
- switch (t) {
73
- case Boolean:
74
- e = o !== null;
75
- break;
76
- case Number:
77
- e = o === null ? null : Number(o);
78
- break;
79
- case Object:
80
- case Array:
81
- try {
82
- e = JSON.parse(o);
83
- } catch {
84
- e = null;
85
- }
86
- }
87
- return e;
88
- } }, V = (o, t) => !bt(o, t), Q = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: V };
89
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), b.litPropertyMetadata ?? (b.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
90
- let A = class extends HTMLElement {
91
- static addInitializer(t) {
92
- this._$Ei(), (this.l ?? (this.l = [])).push(t);
93
- }
94
- static get observedAttributes() {
95
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
96
- }
97
- static createProperty(t, e = Q) {
98
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
99
- const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
100
- i !== void 0 && $t(this.prototype, t, i);
101
- }
102
- }
103
- static getPropertyDescriptor(t, e, s) {
104
- const { get: i, set: r } = _t(this.prototype, t) ?? { get() {
105
- return this[e];
106
- }, set(n) {
107
- this[e] = n;
108
- } };
109
- return { get() {
110
- return i == null ? void 0 : i.call(this);
111
- }, set(n) {
112
- const l = i == null ? void 0 : i.call(this);
113
- r.call(this, n), this.requestUpdate(t, l, s);
114
- }, configurable: !0, enumerable: !0 };
115
- }
116
- static getPropertyOptions(t) {
117
- return this.elementProperties.get(t) ?? Q;
118
- }
119
- static _$Ei() {
120
- if (this.hasOwnProperty(w("elementProperties"))) return;
121
- const t = yt(this);
122
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
123
- }
124
- static finalize() {
125
- if (this.hasOwnProperty(w("finalized"))) return;
126
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
127
- const e = this.properties, s = [...gt(e), ...At(e)];
128
- for (const i of s) this.createProperty(i, e[i]);
129
- }
130
- const t = this[Symbol.metadata];
131
- if (t !== null) {
132
- const e = litPropertyMetadata.get(t);
133
- if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
134
- }
135
- this._$Eh = /* @__PURE__ */ new Map();
136
- for (const [e, s] of this.elementProperties) {
137
- const i = this._$Eu(e, s);
138
- i !== void 0 && this._$Eh.set(i, e);
139
- }
140
- this.elementStyles = this.finalizeStyles(this.styles);
141
- }
142
- static finalizeStyles(t) {
143
- const e = [];
144
- if (Array.isArray(t)) {
145
- const s = new Set(t.flat(1 / 0).reverse());
146
- for (const i of s) e.unshift(J(i));
147
- } else t !== void 0 && e.push(J(t));
148
- return e;
149
- }
150
- static _$Eu(t, e) {
151
- const s = e.attribute;
152
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
153
- }
154
- constructor() {
155
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
156
- }
157
- _$Ev() {
158
- var t;
159
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
160
- }
161
- addController(t) {
162
- var e;
163
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
164
- }
165
- removeController(t) {
166
- var e;
167
- (e = this._$EO) == null || e.delete(t);
168
- }
169
- _$E_() {
170
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
171
- for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
172
- t.size > 0 && (this._$Ep = t);
173
- }
174
- createRenderRoot() {
175
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
176
- return mt(t, this.constructor.elementStyles), t;
177
- }
178
- connectedCallback() {
179
- var t;
180
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
181
- var s;
182
- return (s = e.hostConnected) == null ? void 0 : s.call(e);
183
- });
184
- }
185
- enableUpdating(t) {
186
- }
187
- disconnectedCallback() {
188
- var t;
189
- (t = this._$EO) == null || t.forEach((e) => {
190
- var s;
191
- return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
192
- });
193
- }
194
- attributeChangedCallback(t, e, s) {
195
- this._$AK(t, s);
196
- }
197
- _$EC(t, e) {
198
- var r;
199
- const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
200
- if (i !== void 0 && s.reflect === !0) {
201
- const n = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : N).toAttribute(e, s.type);
202
- this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
203
- }
204
- }
205
- _$AK(t, e) {
206
- var r;
207
- const s = this.constructor, i = s._$Eh.get(t);
208
- if (i !== void 0 && this._$Em !== i) {
209
- const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter : N;
210
- this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
211
- }
212
- }
213
- requestUpdate(t, e, s) {
214
- if (t !== void 0) {
215
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? V)(this[t], e)) return;
216
- this.P(t, e, s);
217
- }
218
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
219
- }
220
- P(t, e, s) {
221
- this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
222
- }
223
- async _$ET() {
224
- this.isUpdatePending = !0;
225
- try {
226
- await this._$ES;
227
- } catch (e) {
228
- Promise.reject(e);
229
- }
230
- const t = this.scheduleUpdate();
231
- return t != null && await t, !this.isUpdatePending;
232
- }
233
- scheduleUpdate() {
234
- return this.performUpdate();
235
- }
236
- performUpdate() {
237
- var s;
238
- if (!this.isUpdatePending) return;
239
- if (!this.hasUpdated) {
240
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
241
- for (const [r, n] of this._$Ep) this[r] = n;
242
- this._$Ep = void 0;
243
- }
244
- const i = this.constructor.elementProperties;
245
- if (i.size > 0) for (const [r, n] of i) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
246
- }
247
- let t = !1;
248
- const e = this._$AL;
249
- try {
250
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
251
- var r;
252
- return (r = i.hostUpdate) == null ? void 0 : r.call(i);
253
- }), this.update(e)) : this._$EU();
254
- } catch (i) {
255
- throw t = !1, this._$EU(), i;
256
- }
257
- t && this._$AE(e);
258
- }
259
- willUpdate(t) {
260
- }
261
- _$AE(t) {
262
- var e;
263
- (e = this._$EO) == null || e.forEach((s) => {
264
- var i;
265
- return (i = s.hostUpdated) == null ? void 0 : i.call(s);
266
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
267
- }
268
- _$EU() {
269
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
270
- }
271
- get updateComplete() {
272
- return this.getUpdateComplete();
273
- }
274
- getUpdateComplete() {
275
- return this._$ES;
276
- }
277
- shouldUpdate(t) {
278
- return !0;
279
- }
280
- update(t) {
281
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
282
- }
283
- updated(t) {
284
- }
285
- firstUpdated(t) {
286
- }
287
- };
288
- A.elementStyles = [], A.shadowRootOptions = { mode: "open" }, A[w("elementProperties")] = /* @__PURE__ */ new Map(), A[w("finalized")] = /* @__PURE__ */ new Map(), k == null || k({ ReactiveElement: A }), (b.reactiveElementVersions ?? (b.reactiveElementVersions = [])).push("2.0.4");
289
- /**
290
- * @license
291
- * Copyright 2017 Google LLC
292
- * SPDX-License-Identifier: BSD-3-Clause
293
- */
294
- const x = globalThis, R = x.trustedTypes, X = R ? R.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, at = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, lt = "?" + m, Et = `<${lt}>`, g = document, C = () => g.createComment(""), P = (o) => o === null || typeof o != "object" && typeof o != "function", B = Array.isArray, wt = (o) => B(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", L = `[
295
- \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, tt = />/g, $ = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
296
- \f\r"'\`<>=]|("|')|))|$)`, "g"), et = /'/g, st = /"/g, ht = /^(?:script|style|textarea|title)$/i, ct = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), Bt = ct(1), qt = ct(2), y = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), it = /* @__PURE__ */ new WeakMap(), _ = g.createTreeWalker(g, 129);
297
- function dt(o, t) {
298
- if (!B(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
299
- return X !== void 0 ? X.createHTML(t) : t;
300
- }
301
- const xt = (o, t) => {
302
- const e = o.length - 1, s = [];
303
- let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = E;
304
- for (let l = 0; l < e; l++) {
305
- const a = o[l];
306
- let c, u, h = -1, p = 0;
307
- for (; p < a.length && (n.lastIndex = p, u = n.exec(a), u !== null); ) p = n.lastIndex, n === E ? u[1] === "!--" ? n = Y : u[1] !== void 0 ? n = tt : u[2] !== void 0 ? (ht.test(u[2]) && (i = RegExp("</" + u[2], "g")), n = $) : u[3] !== void 0 && (n = $) : n === $ ? u[0] === ">" ? (n = i ?? E, h = -1) : u[1] === void 0 ? h = -2 : (h = n.lastIndex - u[2].length, c = u[1], n = u[3] === void 0 ? $ : u[3] === '"' ? st : et) : n === st || n === et ? n = $ : n === Y || n === tt ? n = E : (n = $, i = void 0);
308
- const f = n === $ && o[l + 1].startsWith("/>") ? " " : "";
309
- r += n === E ? a + Et : h >= 0 ? (s.push(c), a.slice(0, h) + at + a.slice(h) + m + f) : a + m + (h === -2 ? l : f);
310
- }
311
- return [dt(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
312
- };
313
- class T {
314
- constructor({ strings: t, _$litType$: e }, s) {
315
- let i;
316
- this.parts = [];
317
- let r = 0, n = 0;
318
- const l = t.length - 1, a = this.parts, [c, u] = xt(t, e);
319
- if (this.el = T.createElement(c, s), _.currentNode = this.el.content, e === 2 || e === 3) {
320
- const h = this.el.content.firstChild;
321
- h.replaceWith(...h.childNodes);
322
- }
323
- for (; (i = _.nextNode()) !== null && a.length < l; ) {
324
- if (i.nodeType === 1) {
325
- if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(at)) {
326
- const p = u[n++], f = i.getAttribute(h).split(m), O = /([.?@])?(.*)/.exec(p);
327
- a.push({ type: 1, index: r, name: O[2], strings: f, ctor: O[1] === "." ? Ct : O[1] === "?" ? Pt : O[1] === "@" ? Tt : H }), i.removeAttribute(h);
328
- } else h.startsWith(m) && (a.push({ type: 6, index: r }), i.removeAttribute(h));
329
- if (ht.test(i.tagName)) {
330
- const h = i.textContent.split(m), p = h.length - 1;
331
- if (p > 0) {
332
- i.textContent = R ? R.emptyScript : "";
333
- for (let f = 0; f < p; f++) i.append(h[f], C()), _.nextNode(), a.push({ type: 2, index: ++r });
334
- i.append(h[p], C());
335
- }
336
- }
337
- } else if (i.nodeType === 8) if (i.data === lt) a.push({ type: 2, index: r });
338
- else {
339
- let h = -1;
340
- for (; (h = i.data.indexOf(m, h + 1)) !== -1; ) a.push({ type: 7, index: r }), h += m.length - 1;
341
- }
342
- r++;
343
- }
344
- }
345
- static createElement(t, e) {
346
- const s = g.createElement("template");
347
- return s.innerHTML = t, s;
348
- }
349
- }
350
- function v(o, t, e = o, s) {
351
- var n, l;
352
- if (t === y) return t;
353
- let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
354
- const r = P(t) ? void 0 : t._$litDirective$;
355
- return (i == null ? void 0 : i.constructor) !== r && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = v(o, i._$AS(o, t.values), i, s)), t;
356
- }
357
- class St {
358
- constructor(t, e) {
359
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
360
- }
361
- get parentNode() {
362
- return this._$AM.parentNode;
363
- }
364
- get _$AU() {
365
- return this._$AM._$AU;
366
- }
367
- u(t) {
368
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? g).importNode(e, !0);
369
- _.currentNode = i;
370
- let r = _.nextNode(), n = 0, l = 0, a = s[0];
371
- for (; a !== void 0; ) {
372
- if (n === a.index) {
373
- let c;
374
- a.type === 2 ? c = new M(r, r.nextSibling, this, t) : a.type === 1 ? c = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (c = new Mt(r, this, t)), this._$AV.push(c), a = s[++l];
375
- }
376
- n !== (a == null ? void 0 : a.index) && (r = _.nextNode(), n++);
377
- }
378
- return _.currentNode = g, i;
379
- }
380
- p(t) {
381
- let e = 0;
382
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
383
- }
384
- }
385
- class M {
386
- get _$AU() {
387
- var t;
388
- return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
389
- }
390
- constructor(t, e, s, i) {
391
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
392
- }
393
- get parentNode() {
394
- let t = this._$AA.parentNode;
395
- const e = this._$AM;
396
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
397
- }
398
- get startNode() {
399
- return this._$AA;
400
- }
401
- get endNode() {
402
- return this._$AB;
403
- }
404
- _$AI(t, e = this) {
405
- t = v(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== y && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wt(t) ? this.k(t) : this._(t);
406
- }
407
- O(t) {
408
- return this._$AA.parentNode.insertBefore(t, this._$AB);
409
- }
410
- T(t) {
411
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
412
- }
413
- _(t) {
414
- this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
415
- }
416
- $(t) {
417
- var r;
418
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = T.createElement(dt(s.h, s.h[0]), this.options)), s);
419
- if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
420
- else {
421
- const n = new St(i, this), l = n.u(this.options);
422
- n.p(e), this.T(l), this._$AH = n;
423
- }
424
- }
425
- _$AC(t) {
426
- let e = it.get(t.strings);
427
- return e === void 0 && it.set(t.strings, e = new T(t)), e;
428
- }
429
- k(t) {
430
- B(this._$AH) || (this._$AH = [], this._$AR());
431
- const e = this._$AH;
432
- let s, i = 0;
433
- for (const r of t) i === e.length ? e.push(s = new M(this.O(C()), this.O(C()), this, this.options)) : s = e[i], s._$AI(r), i++;
434
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
435
- }
436
- _$AR(t = this._$AA.nextSibling, e) {
437
- var s;
438
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
439
- const i = t.nextSibling;
440
- t.remove(), t = i;
441
- }
442
- }
443
- setConnected(t) {
444
- var e;
445
- this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
446
- }
447
- }
448
- class H {
449
- get tagName() {
450
- return this.element.tagName;
451
- }
452
- get _$AU() {
453
- return this._$AM._$AU;
454
- }
455
- constructor(t, e, s, i, r) {
456
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
457
- }
458
- _$AI(t, e = this, s, i) {
459
- const r = this.strings;
460
- let n = !1;
461
- if (r === void 0) t = v(this, t, e, 0), n = !P(t) || t !== this._$AH && t !== y, n && (this._$AH = t);
462
- else {
463
- const l = t;
464
- let a, c;
465
- for (t = r[0], a = 0; a < r.length - 1; a++) c = v(this, l[s + a], e, a), c === y && (c = this._$AH[a]), n || (n = !P(c) || c !== this._$AH[a]), c === d ? t = d : t !== d && (t += (c ?? "") + r[a + 1]), this._$AH[a] = c;
466
- }
467
- n && !i && this.j(t);
468
- }
469
- j(t) {
470
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
471
- }
472
- }
473
- class Ct extends H {
474
- constructor() {
475
- super(...arguments), this.type = 3;
476
- }
477
- j(t) {
478
- this.element[this.name] = t === d ? void 0 : t;
479
- }
480
- }
481
- class Pt extends H {
482
- constructor() {
483
- super(...arguments), this.type = 4;
484
- }
485
- j(t) {
486
- this.element.toggleAttribute(this.name, !!t && t !== d);
487
- }
488
- }
489
- class Tt extends H {
490
- constructor(t, e, s, i, r) {
491
- super(t, e, s, i, r), this.type = 5;
492
- }
493
- _$AI(t, e = this) {
494
- if ((t = v(this, t, e, 0) ?? d) === y) return;
495
- const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== d && (s === d || i);
496
- i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
497
- }
498
- handleEvent(t) {
499
- var e;
500
- typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
501
- }
502
- }
503
- class Mt {
504
- constructor(t, e, s) {
505
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
506
- }
507
- get _$AU() {
508
- return this._$AM._$AU;
509
- }
510
- _$AI(t) {
511
- v(this, t);
512
- }
513
- }
514
- const F = x.litHtmlPolyfillSupport;
515
- F == null || F(T, M), (x.litHtmlVersions ?? (x.litHtmlVersions = [])).push("3.2.1");
516
- const Ot = (o, t, e) => {
517
- const s = (e == null ? void 0 : e.renderBefore) ?? t;
518
- let i = s._$litPart$;
519
- if (i === void 0) {
520
- const r = (e == null ? void 0 : e.renderBefore) ?? null;
521
- s._$litPart$ = i = new M(t.insertBefore(C(), r), r, void 0, e ?? {});
522
- }
523
- return i._$AI(o), i;
524
- };
525
- /**
526
- * @license
527
- * Copyright 2017 Google LLC
528
- * SPDX-License-Identifier: BSD-3-Clause
529
- */
530
- let S = class extends A {
531
- constructor() {
532
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
533
- }
534
- createRenderRoot() {
535
- var e;
536
- const t = super.createRenderRoot();
537
- return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
538
- }
539
- update(t) {
540
- const e = this.render();
541
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ot(e, this.renderRoot, this.renderOptions);
542
- }
543
- connectedCallback() {
544
- var t;
545
- super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
546
- }
547
- disconnectedCallback() {
548
- var t;
549
- super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
550
- }
551
- render() {
552
- return y;
553
- }
554
- };
555
- var ot;
556
- S._$litElement$ = !0, S.finalized = !0, (ot = globalThis.litElementHydrateSupport) == null || ot.call(globalThis, { LitElement: S });
557
- const D = globalThis.litElementPolyfillSupport;
558
- D == null || D({ LitElement: S });
559
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
560
- /**
561
- * @license
562
- * Copyright 2017 Google LLC
563
- * SPDX-License-Identifier: BSD-3-Clause
564
- */
565
- const Ut = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: V }, Nt = (o = Ut, t, e) => {
566
- const { kind: s, metadata: i } = e;
567
- let r = globalThis.litPropertyMetadata.get(i);
568
- if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
569
- const { name: n } = e;
570
- return { set(l) {
571
- const a = t.get.call(this);
572
- t.set.call(this, l), this.requestUpdate(n, a, o);
573
- }, init(l) {
574
- return l !== void 0 && this.P(n, void 0, o), l;
575
- } };
576
- }
577
- if (s === "setter") {
578
- const { name: n } = e;
579
- return function(l) {
580
- const a = this[n];
581
- t.call(this, l), this.requestUpdate(n, a, o);
582
- };
583
- }
584
- throw Error("Unsupported decorator location: " + s);
585
- };
586
- function q(o) {
587
- return (t, e) => typeof e == "object" ? Nt(o, t, e) : ((s, i, r) => {
588
- const n = i.hasOwnProperty(r);
589
- return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
590
- })(o, t, e);
591
- }
592
- const I = /* @__PURE__ */ new Set(), Rt = () => {
593
- const o = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
594
- I.forEach((t) => {
595
- t.setAttribute("dir", o);
596
- });
597
- }, Ht = new MutationObserver(Rt);
598
- Ht.observe(document.documentElement, {
599
- attributes: !0,
600
- attributeFilter: ["dir"]
601
- });
602
- const kt = (o) => o.startManagingContentDirection !== void 0 || o.tagName === "LUZMO-THEME";
603
- function Lt(o) {
604
- class t extends o {
605
- /**
606
- * @private
607
- */
608
- get isLTR() {
609
- return this.dir === "ltr";
610
- }
611
- hasVisibleFocusInTree() {
612
- const i = ((r = document) => {
613
- var a;
614
- let n = r.activeElement;
615
- for (; n != null && n.shadowRoot && n.shadowRoot.activeElement; )
616
- n = n.shadowRoot.activeElement;
617
- const l = n ? [n] : [];
618
- for (; n; ) {
619
- const c = n.assignedSlot || n.parentElement || ((a = n.getRootNode()) == null ? void 0 : a.host);
620
- c && l.push(c), n = c;
621
- }
622
- return l;
623
- })(this.getRootNode())[0];
624
- if (!i)
625
- return !1;
626
- try {
627
- return i.matches(":focus-visible") || i.matches(".focus-visible");
628
- } catch {
629
- return i.matches(".focus-visible");
630
- }
631
- }
632
- connectedCallback() {
633
- if (!this.hasAttribute("dir")) {
634
- let s = this.assignedSlot || this.parentNode;
635
- for (; s !== document.documentElement && !kt(s); )
636
- s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
637
- s.parentNode || // DOM Element detected
638
- s.host;
639
- if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
640
- I.add(this);
641
- else {
642
- const { localName: i } = s;
643
- i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
644
- s.startManagingContentDirection(this);
645
- }) : s.startManagingContentDirection(this);
646
- }
647
- this._dirParent = s;
648
- }
649
- super.connectedCallback();
650
- }
651
- disconnectedCallback() {
652
- super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? I.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
653
- }
654
- }
655
- return t;
656
- }
657
- class Ft extends Lt(S) {
658
- }
659
- let j = !0;
660
- try {
661
- document.body.querySelector(":focus-visible");
662
- } catch {
663
- j = !1, Promise.resolve().then(() => Dt);
664
- }
665
- const ut = (o) => {
666
- var t, e;
667
- const s = (n) => {
668
- if (n.shadowRoot == null || Object.hasOwn(n.dataset, "jsFocusVisible"))
669
- return () => {
670
- };
671
- if (self.applyFocusVisiblePolyfill)
672
- self.applyFocusVisiblePolyfill(n.shadowRoot), n.manageAutoFocus && n.manageAutoFocus();
673
- else {
674
- const l = () => {
675
- self.applyFocusVisiblePolyfill && n.shadowRoot && self.applyFocusVisiblePolyfill(n.shadowRoot), n.manageAutoFocus && n.manageAutoFocus();
676
- };
677
- return self.addEventListener(
678
- "focus-visible-polyfill-ready",
679
- l,
680
- { once: !0 }
681
- ), () => {
682
- self.removeEventListener(
683
- "focus-visible-polyfill-ready",
684
- l
685
- );
686
- };
687
- }
688
- return () => {
689
- };
690
- }, i = Symbol("endPolyfillCoordination");
691
- class r extends (e = o, t = i, e) {
692
- constructor() {
693
- super(...arguments), this[t] = null;
694
- }
695
- // Attempt to coordinate with the polyfill when connected to the
696
- // document:
697
- connectedCallback() {
698
- super.connectedCallback && super.connectedCallback(), j || requestAnimationFrame(() => {
699
- this[i] == null && (this[i] = s(this));
700
- });
701
- }
702
- disconnectedCallback() {
703
- super.disconnectedCallback && super.disconnectedCallback(), j || requestAnimationFrame(() => {
704
- this[i] != null && (this[i](), this[i] = null);
705
- });
706
- }
707
- }
708
- return r;
709
- }, Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
710
- __proto__: null,
711
- FocusVisiblePolyfillMixin: ut
712
- }, Symbol.toStringTag, { value: "Module" }));
713
- var It = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, W = (o, t, e, s) => {
714
- for (var i = s > 1 ? void 0 : s ? jt(t, e) : t, r = o.length - 1, n; r >= 0; r--)
715
- (n = o[r]) && (i = (s ? n(t, e, i) : n(i)) || i);
716
- return s && i && It(t, e, i), i;
717
- };
718
- function nt() {
719
- return new Promise((o) => requestAnimationFrame(() => o()));
720
- }
721
- class K extends ut(Ft) {
722
- constructor() {
723
- super(...arguments), this.disabled = !1, this.autofocus = !1, this._tabIndex = 0, this.manipulatingTabindex = !1, this.autofocusReady = Promise.resolve();
724
- }
725
- get tabIndex() {
726
- if (this.focusElement === this) {
727
- const e = this.hasAttribute("tabindex") ? Number(this.getAttribute("tabindex")) : Number.NaN;
728
- return Number.isNaN(e) ? -1 : e;
729
- }
730
- const t = Number.parseFloat(
731
- this.hasAttribute("tabindex") && this.getAttribute("tabindex") || "0"
732
- );
733
- return this.disabled || t < 0 ? -1 : this.focusElement ? this._tabIndex : t;
734
- }
735
- set tabIndex(t) {
736
- var e;
737
- if (this.manipulatingTabindex) {
738
- this.manipulatingTabindex = !1;
739
- return;
740
- }
741
- if (this.focusElement === this) {
742
- if (this.disabled)
743
- this._tabIndex = t;
744
- else if (t !== this._tabIndex) {
745
- this._tabIndex = t;
746
- const s = "" + t;
747
- this.manipulatingTabindex = !0, this.setAttribute("tabindex", s);
748
- }
749
- return;
750
- }
751
- if (t === -1 ? this.addEventListener(
752
- "pointerdown",
753
- this.onPointerdownManagementOfTabIndex
754
- ) : (this.manipulatingTabindex = !0, this.removeEventListener(
755
- "pointerdown",
756
- this.onPointerdownManagementOfTabIndex
757
- )), t === -1 || this.disabled) {
758
- if (this.manipulatingTabindex = !0, this.setAttribute("tabindex", "-1"), this.removeAttribute("focusable"), this.selfManageFocusElement)
759
- return;
760
- t === -1 ? (e = this.focusElement) == null || e.removeAttribute("tabindex") : (this._tabIndex = t, this.manageFocusElementTabindex(t));
761
- return;
762
- }
763
- this.setAttribute("focusable", ""), this.hasAttribute("tabindex") ? this.removeAttribute("tabindex") : this.manipulatingTabindex = !1, this._tabIndex = t, this.manageFocusElementTabindex(t);
764
- }
765
- onPointerdownManagementOfTabIndex() {
766
- this.tabIndex === -1 && setTimeout(() => {
767
- this.tabIndex = 0, this.focus({ preventScroll: !0 }), this.tabIndex = -1;
768
- });
769
- }
770
- async manageFocusElementTabindex(t) {
771
- this.focusElement || await this.updateComplete, t === null ? this.focusElement.removeAttribute("tabindex") : this.focusElement !== this && (this.focusElement.tabIndex = t);
772
- }
773
- /**
774
- * @private
775
- */
776
- get focusElement() {
777
- throw new Error("Must implement focusElement getter!");
778
- }
779
- /**
780
- * @public
781
- * @returns whether the component should manage its focusElement tab-index or not
782
- * Needed for action-menu to be supported in action-group in an accessible way
783
- */
784
- get selfManageFocusElement() {
785
- return !1;
786
- }
787
- focus(t) {
788
- this.disabled || !this.focusElement || (this.focusElement === this ? Reflect.apply(HTMLElement.prototype.focus, this, [t]) : this.focusElement.focus(t));
789
- }
790
- blur() {
791
- const t = this.focusElement || this;
792
- t === this ? HTMLElement.prototype.blur.apply(this) : t.blur();
793
- }
794
- click() {
795
- if (this.disabled)
796
- return;
797
- const t = this.focusElement || this;
798
- t === this ? HTMLElement.prototype.click.apply(this) : t.click();
799
- }
800
- manageAutoFocus() {
801
- this.autofocus && (this.dispatchEvent(
802
- new KeyboardEvent("keydown", {
803
- code: "Tab"
804
- })
805
- ), this.focusElement.focus());
806
- }
807
- firstUpdated(t) {
808
- super.firstUpdated(t), (!this.hasAttribute("tabindex") || this.getAttribute("tabindex") !== "-1") && this.setAttribute("focusable", "");
809
- }
810
- update(t) {
811
- t.has("disabled") && this.handleDisabledChanged(
812
- this.disabled,
813
- t.get("disabled")
814
- ), super.update(t);
815
- }
816
- updated(t) {
817
- super.updated(t), t.has("disabled") && this.disabled && this.blur();
818
- }
819
- async handleDisabledChanged(t, e) {
820
- const s = () => this.focusElement !== this && this.focusElement.disabled !== void 0;
821
- t ? (this.manipulatingTabindex = !0, this.setAttribute("tabindex", "-1"), await this.updateComplete, s() ? this.focusElement.disabled = !0 : this.setAttribute("aria-disabled", "true")) : e && (this.manipulatingTabindex = !0, this.focusElement === this ? this.setAttribute("tabindex", "" + this._tabIndex) : this.removeAttribute("tabindex"), await this.updateComplete, s() ? this.focusElement.disabled = !1 : this.removeAttribute("aria-disabled"));
822
- }
823
- async getUpdateComplete() {
824
- const t = await super.getUpdateComplete();
825
- return await this.autofocusReady, t;
826
- }
827
- connectedCallback() {
828
- super.connectedCallback(), this.autofocus && (this.autofocusReady = new Promise(async (t) => {
829
- await nt(), await nt(), t();
830
- }), this.updateComplete.then(() => {
831
- this.manageAutoFocus();
832
- }));
833
- }
834
- }
835
- W([
836
- q({ type: Boolean, reflect: !0 })
837
- ], K.prototype, "disabled", 2);
838
- W([
839
- q({ type: Boolean })
840
- ], K.prototype, "autofocus", 2);
841
- W([
842
- q({ type: Number })
843
- ], K.prototype, "tabIndex", 1);
844
- export {
845
- d as E,
846
- Ft as L,
847
- qt as b,
848
- V as f,
849
- q as n,
850
- ft as r,
851
- Bt as x
852
- };