@pure-ds/storybook 0.1.0

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 (129) hide show
  1. package/.storybook/addons/description/preview.js +15 -0
  2. package/.storybook/addons/description/register.js +60 -0
  3. package/.storybook/addons/html-preview/Panel.jsx +327 -0
  4. package/.storybook/addons/html-preview/constants.js +6 -0
  5. package/.storybook/addons/html-preview/preview.js +178 -0
  6. package/.storybook/addons/html-preview/register.js +16 -0
  7. package/.storybook/addons/pds-configurator/SearchTool.js +44 -0
  8. package/.storybook/addons/pds-configurator/Tool.js +30 -0
  9. package/.storybook/addons/pds-configurator/constants.js +9 -0
  10. package/.storybook/addons/pds-configurator/preview.js +159 -0
  11. package/.storybook/addons/pds-configurator/register.js +24 -0
  12. package/.storybook/docs.css +35 -0
  13. package/.storybook/htmlPreview.css +103 -0
  14. package/.storybook/htmlPreview.js +271 -0
  15. package/.storybook/main.js +160 -0
  16. package/.storybook/preview-body.html +48 -0
  17. package/.storybook/preview-head.html +11 -0
  18. package/.storybook/preview.js +1563 -0
  19. package/README.md +266 -0
  20. package/bin/index.js +40 -0
  21. package/dist/pds-reference.json +2101 -0
  22. package/package.json +45 -0
  23. package/pds.config.js +6 -0
  24. package/public/assets/css/app.css +1216 -0
  25. package/public/assets/data/auto-design-advanced.json +704 -0
  26. package/public/assets/data/auto-design-simple.json +123 -0
  27. package/public/assets/img/icon-512x512.png +0 -0
  28. package/public/assets/img/logo-trans.png +0 -0
  29. package/public/assets/img/logo.png +0 -0
  30. package/public/assets/js/app.js +15088 -0
  31. package/public/assets/js/app.js.map +7 -0
  32. package/public/assets/js/lit.js +1176 -0
  33. package/public/assets/js/lit.js.map +7 -0
  34. package/public/assets/js/pds.js +9801 -0
  35. package/public/assets/js/pds.js.map +7 -0
  36. package/public/assets/pds/components/pds-calendar.js +837 -0
  37. package/public/assets/pds/components/pds-drawer.js +857 -0
  38. package/public/assets/pds/components/pds-icon.js +338 -0
  39. package/public/assets/pds/components/pds-jsonform.js +1775 -0
  40. package/public/assets/pds/components/pds-richtext.js +1035 -0
  41. package/public/assets/pds/components/pds-scrollrow.js +331 -0
  42. package/public/assets/pds/components/pds-splitpanel.js +401 -0
  43. package/public/assets/pds/components/pds-tabstrip.js +251 -0
  44. package/public/assets/pds/components/pds-toaster.js +446 -0
  45. package/public/assets/pds/components/pds-upload.js +657 -0
  46. package/public/assets/pds/custom-elements.json +2003 -0
  47. package/public/assets/pds/icons/pds-icons.svg +498 -0
  48. package/public/assets/pds/pds-css-complete.json +1861 -0
  49. package/public/assets/pds/pds-runtime-config.json +11 -0
  50. package/public/assets/pds/pds.css-data.json +2152 -0
  51. package/public/assets/pds/styles/pds-components.css +1944 -0
  52. package/public/assets/pds/styles/pds-components.css.js +3895 -0
  53. package/public/assets/pds/styles/pds-primitives.css +352 -0
  54. package/public/assets/pds/styles/pds-primitives.css.js +711 -0
  55. package/public/assets/pds/styles/pds-styles.css +3761 -0
  56. package/public/assets/pds/styles/pds-styles.css.js +7529 -0
  57. package/public/assets/pds/styles/pds-tokens.css +699 -0
  58. package/public/assets/pds/styles/pds-tokens.css.js +1405 -0
  59. package/public/assets/pds/styles/pds-utilities.css +763 -0
  60. package/public/assets/pds/styles/pds-utilities.css.js +1533 -0
  61. package/public/assets/pds/vscode-custom-data.json +824 -0
  62. package/scripts/build-pds-reference.mjs +807 -0
  63. package/scripts/generate-stories.js +542 -0
  64. package/scripts/package-build.js +86 -0
  65. package/src/js/app.js +17 -0
  66. package/src/js/common/ask.js +208 -0
  67. package/src/js/common/common.js +20 -0
  68. package/src/js/common/font-loader.js +200 -0
  69. package/src/js/common/msg.js +90 -0
  70. package/src/js/lit.js +40 -0
  71. package/src/js/pds-core/pds-config.js +1162 -0
  72. package/src/js/pds-core/pds-enhancer-metadata.js +75 -0
  73. package/src/js/pds-core/pds-enhancers.js +357 -0
  74. package/src/js/pds-core/pds-enums.js +86 -0
  75. package/src/js/pds-core/pds-generator.js +5317 -0
  76. package/src/js/pds-core/pds-ontology.js +256 -0
  77. package/src/js/pds-core/pds-paths.js +109 -0
  78. package/src/js/pds-core/pds-query.js +571 -0
  79. package/src/js/pds-core/pds-registry.js +129 -0
  80. package/src/js/pds-core/pds.d.ts +129 -0
  81. package/src/js/pds.d.ts +408 -0
  82. package/src/js/pds.js +1579 -0
  83. package/src/pds-core/pds-api.js +105 -0
  84. package/stories/GettingStarted.md +96 -0
  85. package/stories/GettingStarted.stories.js +144 -0
  86. package/stories/WhatIsPDS.md +194 -0
  87. package/stories/WhatIsPDS.stories.js +144 -0
  88. package/stories/components/PdsCalendar.stories.js +263 -0
  89. package/stories/components/PdsDrawer.stories.js +623 -0
  90. package/stories/components/PdsIcon.stories.js +78 -0
  91. package/stories/components/PdsJsonform.stories.js +1444 -0
  92. package/stories/components/PdsRichtext.stories.js +367 -0
  93. package/stories/components/PdsScrollrow.stories.js +140 -0
  94. package/stories/components/PdsSplitpanel.stories.js +502 -0
  95. package/stories/components/PdsTabstrip.stories.js +442 -0
  96. package/stories/components/PdsToaster.stories.js +186 -0
  97. package/stories/components/PdsUpload.stories.js +66 -0
  98. package/stories/enhancements/Dropdowns.stories.js +185 -0
  99. package/stories/enhancements/InteractiveStates.stories.js +625 -0
  100. package/stories/enhancements/MeshGradients.stories.js +320 -0
  101. package/stories/enhancements/OpenGroups.stories.js +227 -0
  102. package/stories/enhancements/RangeSliders.stories.js +232 -0
  103. package/stories/enhancements/RequiredFields.stories.js +189 -0
  104. package/stories/enhancements/Toggles.stories.js +167 -0
  105. package/stories/foundations/Colors.stories.js +283 -0
  106. package/stories/foundations/Icons.stories.js +305 -0
  107. package/stories/foundations/SmartSurfaces.stories.js +367 -0
  108. package/stories/foundations/Spacing.stories.js +175 -0
  109. package/stories/foundations/Typography.stories.js +960 -0
  110. package/stories/foundations/ZIndex.stories.js +325 -0
  111. package/stories/patterns/BorderEffects.stories.js +72 -0
  112. package/stories/patterns/Layout.stories.js +99 -0
  113. package/stories/patterns/Utilities.stories.js +107 -0
  114. package/stories/primitives/Accordion.stories.js +359 -0
  115. package/stories/primitives/Alerts.stories.js +64 -0
  116. package/stories/primitives/Badges.stories.js +183 -0
  117. package/stories/primitives/Buttons.stories.js +229 -0
  118. package/stories/primitives/Cards.stories.js +353 -0
  119. package/stories/primitives/FormGroups.stories.js +569 -0
  120. package/stories/primitives/Forms.stories.js +131 -0
  121. package/stories/primitives/Media.stories.js +203 -0
  122. package/stories/primitives/Tables.stories.js +232 -0
  123. package/stories/reference/ReferenceCatalog.stories.js +28 -0
  124. package/stories/reference/reference-catalog.js +413 -0
  125. package/stories/reference/reference-docs.js +302 -0
  126. package/stories/reference/reference-helpers.js +310 -0
  127. package/stories/utilities/GridSystem.stories.js +208 -0
  128. package/stories/utils/PdsAsk.stories.js +420 -0
  129. package/stories/utils/toast-utils.js +148 -0
@@ -0,0 +1,1176 @@
1
+ // node_modules/@lit/reactive-element/css-tag.js
2
+ var t = globalThis;
3
+ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
4
+ var s = Symbol();
5
+ var o = /* @__PURE__ */ new WeakMap();
6
+ var n = class {
7
+ constructor(t6, e8, o11) {
8
+ if (this._$cssResult$ = true, o11 !== s)
9
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = t6, this.t = e8;
11
+ }
12
+ get styleSheet() {
13
+ let t6 = this.o;
14
+ const s8 = this.t;
15
+ if (e && void 0 === t6) {
16
+ const e8 = void 0 !== s8 && 1 === s8.length;
17
+ e8 && (t6 = o.get(s8)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o.set(s8, t6));
18
+ }
19
+ return t6;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ };
25
+ var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
26
+ var i = (t6, ...e8) => {
27
+ const o11 = 1 === t6.length ? t6[0] : e8.reduce((e9, s8, o12) => e9 + ((t7) => {
28
+ if (true === t7._$cssResult$)
29
+ return t7.cssText;
30
+ if ("number" == typeof t7)
31
+ return t7;
32
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + t7 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
+ })(s8) + t6[o12 + 1], t6[0]);
34
+ return new n(o11, t6, s);
35
+ };
36
+ var S = (s8, o11) => {
37
+ if (e)
38
+ s8.adoptedStyleSheets = o11.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet);
39
+ else
40
+ for (const e8 of o11) {
41
+ const o12 = document.createElement("style"), n8 = t.litNonce;
42
+ void 0 !== n8 && o12.setAttribute("nonce", n8), o12.textContent = e8.cssText, s8.appendChild(o12);
43
+ }
44
+ };
45
+ var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
46
+ let e8 = "";
47
+ for (const s8 of t7.cssRules)
48
+ e8 += s8.cssText;
49
+ return r(e8);
50
+ })(t6) : t6;
51
+
52
+ // node_modules/@lit/reactive-element/reactive-element.js
53
+ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
54
+ var a = globalThis;
55
+ var c2 = a.trustedTypes;
56
+ var l = c2 ? c2.emptyScript : "";
57
+ var p = a.reactiveElementPolyfillSupport;
58
+ var d = (t6, s8) => t6;
59
+ var u = { toAttribute(t6, s8) {
60
+ switch (s8) {
61
+ case Boolean:
62
+ t6 = t6 ? l : null;
63
+ break;
64
+ case Object:
65
+ case Array:
66
+ t6 = null == t6 ? t6 : JSON.stringify(t6);
67
+ }
68
+ return t6;
69
+ }, fromAttribute(t6, s8) {
70
+ let i9 = t6;
71
+ switch (s8) {
72
+ case Boolean:
73
+ i9 = null !== t6;
74
+ break;
75
+ case Number:
76
+ i9 = null === t6 ? null : Number(t6);
77
+ break;
78
+ case Object:
79
+ case Array:
80
+ try {
81
+ i9 = JSON.parse(t6);
82
+ } catch (t7) {
83
+ i9 = null;
84
+ }
85
+ }
86
+ return i9;
87
+ } };
88
+ var f = (t6, s8) => !i2(t6, s8);
89
+ var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
90
+ Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
91
+ var y = class extends HTMLElement {
92
+ static addInitializer(t6) {
93
+ this._$Ei(), (this.l ??= []).push(t6);
94
+ }
95
+ static get observedAttributes() {
96
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
97
+ }
98
+ static createProperty(t6, s8 = b) {
99
+ if (s8.state && (s8.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s8 = Object.create(s8)).wrapped = true), this.elementProperties.set(t6, s8), !s8.noAccessor) {
100
+ const i9 = Symbol(), h6 = this.getPropertyDescriptor(t6, i9, s8);
101
+ void 0 !== h6 && e2(this.prototype, t6, h6);
102
+ }
103
+ }
104
+ static getPropertyDescriptor(t6, s8, i9) {
105
+ const { get: e8, set: r6 } = h(this.prototype, t6) ?? { get() {
106
+ return this[s8];
107
+ }, set(t7) {
108
+ this[s8] = t7;
109
+ } };
110
+ return { get: e8, set(s9) {
111
+ const h6 = e8?.call(this);
112
+ r6?.call(this, s9), this.requestUpdate(t6, h6, i9);
113
+ }, configurable: true, enumerable: true };
114
+ }
115
+ static getPropertyOptions(t6) {
116
+ return this.elementProperties.get(t6) ?? b;
117
+ }
118
+ static _$Ei() {
119
+ if (this.hasOwnProperty(d("elementProperties")))
120
+ return;
121
+ const t6 = n2(this);
122
+ t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
123
+ }
124
+ static finalize() {
125
+ if (this.hasOwnProperty(d("finalized")))
126
+ return;
127
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
128
+ const t7 = this.properties, s8 = [...r2(t7), ...o2(t7)];
129
+ for (const i9 of s8)
130
+ this.createProperty(i9, t7[i9]);
131
+ }
132
+ const t6 = this[Symbol.metadata];
133
+ if (null !== t6) {
134
+ const s8 = litPropertyMetadata.get(t6);
135
+ if (void 0 !== s8)
136
+ for (const [t7, i9] of s8)
137
+ this.elementProperties.set(t7, i9);
138
+ }
139
+ this._$Eh = /* @__PURE__ */ new Map();
140
+ for (const [t7, s8] of this.elementProperties) {
141
+ const i9 = this._$Eu(t7, s8);
142
+ void 0 !== i9 && this._$Eh.set(i9, t7);
143
+ }
144
+ this.elementStyles = this.finalizeStyles(this.styles);
145
+ }
146
+ static finalizeStyles(s8) {
147
+ const i9 = [];
148
+ if (Array.isArray(s8)) {
149
+ const e8 = new Set(s8.flat(1 / 0).reverse());
150
+ for (const s9 of e8)
151
+ i9.unshift(c(s9));
152
+ } else
153
+ void 0 !== s8 && i9.push(c(s8));
154
+ return i9;
155
+ }
156
+ static _$Eu(t6, s8) {
157
+ const i9 = s8.attribute;
158
+ return false === i9 ? void 0 : "string" == typeof i9 ? i9 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
159
+ }
160
+ constructor() {
161
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
162
+ }
163
+ _$Ev() {
164
+ this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this));
165
+ }
166
+ addController(t6) {
167
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
168
+ }
169
+ removeController(t6) {
170
+ this._$EO?.delete(t6);
171
+ }
172
+ _$E_() {
173
+ const t6 = /* @__PURE__ */ new Map(), s8 = this.constructor.elementProperties;
174
+ for (const i9 of s8.keys())
175
+ this.hasOwnProperty(i9) && (t6.set(i9, this[i9]), delete this[i9]);
176
+ t6.size > 0 && (this._$Ep = t6);
177
+ }
178
+ createRenderRoot() {
179
+ const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
180
+ return S(t6, this.constructor.elementStyles), t6;
181
+ }
182
+ connectedCallback() {
183
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.());
184
+ }
185
+ enableUpdating(t6) {
186
+ }
187
+ disconnectedCallback() {
188
+ this._$EO?.forEach((t6) => t6.hostDisconnected?.());
189
+ }
190
+ attributeChangedCallback(t6, s8, i9) {
191
+ this._$AK(t6, i9);
192
+ }
193
+ _$ET(t6, s8) {
194
+ const i9 = this.constructor.elementProperties.get(t6), e8 = this.constructor._$Eu(t6, i9);
195
+ if (void 0 !== e8 && true === i9.reflect) {
196
+ const h6 = (void 0 !== i9.converter?.toAttribute ? i9.converter : u).toAttribute(s8, i9.type);
197
+ this._$Em = t6, null == h6 ? this.removeAttribute(e8) : this.setAttribute(e8, h6), this._$Em = null;
198
+ }
199
+ }
200
+ _$AK(t6, s8) {
201
+ const i9 = this.constructor, e8 = i9._$Eh.get(t6);
202
+ if (void 0 !== e8 && this._$Em !== e8) {
203
+ const t7 = i9.getPropertyOptions(e8), h6 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
204
+ this._$Em = e8;
205
+ const r6 = h6.fromAttribute(s8, t7.type);
206
+ this[e8] = r6 ?? this._$Ej?.get(e8) ?? r6, this._$Em = null;
207
+ }
208
+ }
209
+ requestUpdate(t6, s8, i9) {
210
+ if (void 0 !== t6) {
211
+ const e8 = this.constructor, h6 = this[t6];
212
+ if (i9 ??= e8.getPropertyOptions(t6), !((i9.hasChanged ?? f)(h6, s8) || i9.useDefault && i9.reflect && h6 === this._$Ej?.get(t6) && !this.hasAttribute(e8._$Eu(t6, i9))))
213
+ return;
214
+ this.C(t6, s8, i9);
215
+ }
216
+ false === this.isUpdatePending && (this._$ES = this._$EP());
217
+ }
218
+ C(t6, s8, { useDefault: i9, reflect: e8, wrapped: h6 }, r6) {
219
+ i9 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t6) && (this._$Ej.set(t6, r6 ?? s8 ?? this[t6]), true !== h6 || void 0 !== r6) || (this._$AL.has(t6) || (this.hasUpdated || i9 || (s8 = void 0), this._$AL.set(t6, s8)), true === e8 && this._$Em !== t6 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t6));
220
+ }
221
+ async _$EP() {
222
+ this.isUpdatePending = true;
223
+ try {
224
+ await this._$ES;
225
+ } catch (t7) {
226
+ Promise.reject(t7);
227
+ }
228
+ const t6 = this.scheduleUpdate();
229
+ return null != t6 && await t6, !this.isUpdatePending;
230
+ }
231
+ scheduleUpdate() {
232
+ return this.performUpdate();
233
+ }
234
+ performUpdate() {
235
+ if (!this.isUpdatePending)
236
+ return;
237
+ if (!this.hasUpdated) {
238
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
239
+ for (const [t8, s9] of this._$Ep)
240
+ this[t8] = s9;
241
+ this._$Ep = void 0;
242
+ }
243
+ const t7 = this.constructor.elementProperties;
244
+ if (t7.size > 0)
245
+ for (const [s9, i9] of t7) {
246
+ const { wrapped: t8 } = i9, e8 = this[s9];
247
+ true !== t8 || this._$AL.has(s9) || void 0 === e8 || this.C(s9, void 0, i9, e8);
248
+ }
249
+ }
250
+ let t6 = false;
251
+ const s8 = this._$AL;
252
+ try {
253
+ t6 = this.shouldUpdate(s8), t6 ? (this.willUpdate(s8), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s8)) : this._$EM();
254
+ } catch (s9) {
255
+ throw t6 = false, this._$EM(), s9;
256
+ }
257
+ t6 && this._$AE(s8);
258
+ }
259
+ willUpdate(t6) {
260
+ }
261
+ _$AE(t6) {
262
+ this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
263
+ }
264
+ _$EM() {
265
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
266
+ }
267
+ get updateComplete() {
268
+ return this.getUpdateComplete();
269
+ }
270
+ getUpdateComplete() {
271
+ return this._$ES;
272
+ }
273
+ shouldUpdate(t6) {
274
+ return true;
275
+ }
276
+ update(t6) {
277
+ this._$Eq &&= this._$Eq.forEach((t7) => this._$ET(t7, this[t7])), this._$EM();
278
+ }
279
+ updated(t6) {
280
+ }
281
+ firstUpdated(t6) {
282
+ }
283
+ };
284
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.1");
285
+
286
+ // node_modules/lit-html/lit-html.js
287
+ var t2 = globalThis;
288
+ var i3 = t2.trustedTypes;
289
+ var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
290
+ var e3 = "$lit$";
291
+ var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
292
+ var o3 = "?" + h2;
293
+ var n3 = `<${o3}>`;
294
+ var r3 = document;
295
+ var l2 = () => r3.createComment("");
296
+ var c3 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
297
+ var a2 = Array.isArray;
298
+ var u2 = (t6) => a2(t6) || "function" == typeof t6?.[Symbol.iterator];
299
+ var d2 = "[ \n\f\r]";
300
+ var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
301
+ var v = /-->/g;
302
+ var _ = />/g;
303
+ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
304
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
305
+ var p2 = /'/g;
306
+ var g = /"/g;
307
+ var $ = /^(?:script|style|textarea|title)$/i;
308
+ var y2 = (t6) => (i9, ...s8) => ({ _$litType$: t6, strings: i9, values: s8 });
309
+ var x = y2(1);
310
+ var b2 = y2(2);
311
+ var w = y2(3);
312
+ var T = Symbol.for("lit-noChange");
313
+ var E = Symbol.for("lit-nothing");
314
+ var A = /* @__PURE__ */ new WeakMap();
315
+ var C = r3.createTreeWalker(r3, 129);
316
+ function P(t6, i9) {
317
+ if (!a2(t6) || !t6.hasOwnProperty("raw"))
318
+ throw Error("invalid template strings array");
319
+ return void 0 !== s2 ? s2.createHTML(i9) : i9;
320
+ }
321
+ var V = (t6, i9) => {
322
+ const s8 = t6.length - 1, o11 = [];
323
+ let r6, l4 = 2 === i9 ? "<svg>" : 3 === i9 ? "<math>" : "", c8 = f2;
324
+ for (let i10 = 0; i10 < s8; i10++) {
325
+ const s9 = t6[i10];
326
+ let a4, u6, d3 = -1, y3 = 0;
327
+ for (; y3 < s9.length && (c8.lastIndex = y3, u6 = c8.exec(s9), null !== u6); )
328
+ y3 = c8.lastIndex, c8 === f2 ? "!--" === u6[1] ? c8 = v : void 0 !== u6[1] ? c8 = _ : void 0 !== u6[2] ? ($.test(u6[2]) && (r6 = RegExp("</" + u6[2], "g")), c8 = m) : void 0 !== u6[3] && (c8 = m) : c8 === m ? ">" === u6[0] ? (c8 = r6 ?? f2, d3 = -1) : void 0 === u6[1] ? d3 = -2 : (d3 = c8.lastIndex - u6[2].length, a4 = u6[1], c8 = void 0 === u6[3] ? m : '"' === u6[3] ? g : p2) : c8 === g || c8 === p2 ? c8 = m : c8 === v || c8 === _ ? c8 = f2 : (c8 = m, r6 = void 0);
329
+ const x2 = c8 === m && t6[i10 + 1].startsWith("/>") ? " " : "";
330
+ l4 += c8 === f2 ? s9 + n3 : d3 >= 0 ? (o11.push(a4), s9.slice(0, d3) + e3 + s9.slice(d3) + h2 + x2) : s9 + h2 + (-2 === d3 ? i10 : x2);
331
+ }
332
+ return [P(t6, l4 + (t6[s8] || "<?>") + (2 === i9 ? "</svg>" : 3 === i9 ? "</math>" : "")), o11];
333
+ };
334
+ var N = class _N {
335
+ constructor({ strings: t6, _$litType$: s8 }, n8) {
336
+ let r6;
337
+ this.parts = [];
338
+ let c8 = 0, a4 = 0;
339
+ const u6 = t6.length - 1, d3 = this.parts, [f5, v3] = V(t6, s8);
340
+ if (this.el = _N.createElement(f5, n8), C.currentNode = this.el.content, 2 === s8 || 3 === s8) {
341
+ const t7 = this.el.content.firstChild;
342
+ t7.replaceWith(...t7.childNodes);
343
+ }
344
+ for (; null !== (r6 = C.nextNode()) && d3.length < u6; ) {
345
+ if (1 === r6.nodeType) {
346
+ if (r6.hasAttributes())
347
+ for (const t7 of r6.getAttributeNames())
348
+ if (t7.endsWith(e3)) {
349
+ const i9 = v3[a4++], s9 = r6.getAttribute(t7).split(h2), e8 = /([.?@])?(.*)/.exec(i9);
350
+ d3.push({ type: 1, index: c8, name: e8[2], strings: s9, ctor: "." === e8[1] ? H : "?" === e8[1] ? I : "@" === e8[1] ? L : k }), r6.removeAttribute(t7);
351
+ } else
352
+ t7.startsWith(h2) && (d3.push({ type: 6, index: c8 }), r6.removeAttribute(t7));
353
+ if ($.test(r6.tagName)) {
354
+ const t7 = r6.textContent.split(h2), s9 = t7.length - 1;
355
+ if (s9 > 0) {
356
+ r6.textContent = i3 ? i3.emptyScript : "";
357
+ for (let i9 = 0; i9 < s9; i9++)
358
+ r6.append(t7[i9], l2()), C.nextNode(), d3.push({ type: 2, index: ++c8 });
359
+ r6.append(t7[s9], l2());
360
+ }
361
+ }
362
+ } else if (8 === r6.nodeType)
363
+ if (r6.data === o3)
364
+ d3.push({ type: 2, index: c8 });
365
+ else {
366
+ let t7 = -1;
367
+ for (; -1 !== (t7 = r6.data.indexOf(h2, t7 + 1)); )
368
+ d3.push({ type: 7, index: c8 }), t7 += h2.length - 1;
369
+ }
370
+ c8++;
371
+ }
372
+ }
373
+ static createElement(t6, i9) {
374
+ const s8 = r3.createElement("template");
375
+ return s8.innerHTML = t6, s8;
376
+ }
377
+ };
378
+ function S2(t6, i9, s8 = t6, e8) {
379
+ if (i9 === T)
380
+ return i9;
381
+ let h6 = void 0 !== e8 ? s8._$Co?.[e8] : s8._$Cl;
382
+ const o11 = c3(i9) ? void 0 : i9._$litDirective$;
383
+ return h6?.constructor !== o11 && (h6?._$AO?.(false), void 0 === o11 ? h6 = void 0 : (h6 = new o11(t6), h6._$AT(t6, s8, e8)), void 0 !== e8 ? (s8._$Co ??= [])[e8] = h6 : s8._$Cl = h6), void 0 !== h6 && (i9 = S2(t6, h6._$AS(t6, i9.values), h6, e8)), i9;
384
+ }
385
+ var M = class {
386
+ constructor(t6, i9) {
387
+ this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i9;
388
+ }
389
+ get parentNode() {
390
+ return this._$AM.parentNode;
391
+ }
392
+ get _$AU() {
393
+ return this._$AM._$AU;
394
+ }
395
+ u(t6) {
396
+ const { el: { content: i9 }, parts: s8 } = this._$AD, e8 = (t6?.creationScope ?? r3).importNode(i9, true);
397
+ C.currentNode = e8;
398
+ let h6 = C.nextNode(), o11 = 0, n8 = 0, l4 = s8[0];
399
+ for (; void 0 !== l4; ) {
400
+ if (o11 === l4.index) {
401
+ let i10;
402
+ 2 === l4.type ? i10 = new R(h6, h6.nextSibling, this, t6) : 1 === l4.type ? i10 = new l4.ctor(h6, l4.name, l4.strings, this, t6) : 6 === l4.type && (i10 = new z(h6, this, t6)), this._$AV.push(i10), l4 = s8[++n8];
403
+ }
404
+ o11 !== l4?.index && (h6 = C.nextNode(), o11++);
405
+ }
406
+ return C.currentNode = r3, e8;
407
+ }
408
+ p(t6) {
409
+ let i9 = 0;
410
+ for (const s8 of this._$AV)
411
+ void 0 !== s8 && (void 0 !== s8.strings ? (s8._$AI(t6, s8, i9), i9 += s8.strings.length - 2) : s8._$AI(t6[i9])), i9++;
412
+ }
413
+ };
414
+ var R = class _R {
415
+ get _$AU() {
416
+ return this._$AM?._$AU ?? this._$Cv;
417
+ }
418
+ constructor(t6, i9, s8, e8) {
419
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t6, this._$AB = i9, this._$AM = s8, this.options = e8, this._$Cv = e8?.isConnected ?? true;
420
+ }
421
+ get parentNode() {
422
+ let t6 = this._$AA.parentNode;
423
+ const i9 = this._$AM;
424
+ return void 0 !== i9 && 11 === t6?.nodeType && (t6 = i9.parentNode), t6;
425
+ }
426
+ get startNode() {
427
+ return this._$AA;
428
+ }
429
+ get endNode() {
430
+ return this._$AB;
431
+ }
432
+ _$AI(t6, i9 = this) {
433
+ t6 = S2(this, t6, i9), c3(t6) ? t6 === E || null == t6 || "" === t6 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t6 !== this._$AH && t6 !== T && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : u2(t6) ? this.k(t6) : this._(t6);
434
+ }
435
+ O(t6) {
436
+ return this._$AA.parentNode.insertBefore(t6, this._$AB);
437
+ }
438
+ T(t6) {
439
+ this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
440
+ }
441
+ _(t6) {
442
+ this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(r3.createTextNode(t6)), this._$AH = t6;
443
+ }
444
+ $(t6) {
445
+ const { values: i9, _$litType$: s8 } = t6, e8 = "number" == typeof s8 ? this._$AC(t6) : (void 0 === s8.el && (s8.el = N.createElement(P(s8.h, s8.h[0]), this.options)), s8);
446
+ if (this._$AH?._$AD === e8)
447
+ this._$AH.p(i9);
448
+ else {
449
+ const t7 = new M(e8, this), s9 = t7.u(this.options);
450
+ t7.p(i9), this.T(s9), this._$AH = t7;
451
+ }
452
+ }
453
+ _$AC(t6) {
454
+ let i9 = A.get(t6.strings);
455
+ return void 0 === i9 && A.set(t6.strings, i9 = new N(t6)), i9;
456
+ }
457
+ k(t6) {
458
+ a2(this._$AH) || (this._$AH = [], this._$AR());
459
+ const i9 = this._$AH;
460
+ let s8, e8 = 0;
461
+ for (const h6 of t6)
462
+ e8 === i9.length ? i9.push(s8 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s8 = i9[e8], s8._$AI(h6), e8++;
463
+ e8 < i9.length && (this._$AR(s8 && s8._$AB.nextSibling, e8), i9.length = e8);
464
+ }
465
+ _$AR(t6 = this._$AA.nextSibling, i9) {
466
+ for (this._$AP?.(false, true, i9); t6 !== this._$AB; ) {
467
+ const i10 = t6.nextSibling;
468
+ t6.remove(), t6 = i10;
469
+ }
470
+ }
471
+ setConnected(t6) {
472
+ void 0 === this._$AM && (this._$Cv = t6, this._$AP?.(t6));
473
+ }
474
+ };
475
+ var k = class {
476
+ get tagName() {
477
+ return this.element.tagName;
478
+ }
479
+ get _$AU() {
480
+ return this._$AM._$AU;
481
+ }
482
+ constructor(t6, i9, s8, e8, h6) {
483
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t6, this.name = i9, this._$AM = e8, this.options = h6, s8.length > 2 || "" !== s8[0] || "" !== s8[1] ? (this._$AH = Array(s8.length - 1).fill(new String()), this.strings = s8) : this._$AH = E;
484
+ }
485
+ _$AI(t6, i9 = this, s8, e8) {
486
+ const h6 = this.strings;
487
+ let o11 = false;
488
+ if (void 0 === h6)
489
+ t6 = S2(this, t6, i9, 0), o11 = !c3(t6) || t6 !== this._$AH && t6 !== T, o11 && (this._$AH = t6);
490
+ else {
491
+ const e9 = t6;
492
+ let n8, r6;
493
+ for (t6 = h6[0], n8 = 0; n8 < h6.length - 1; n8++)
494
+ r6 = S2(this, e9[s8 + n8], i9, n8), r6 === T && (r6 = this._$AH[n8]), o11 ||= !c3(r6) || r6 !== this._$AH[n8], r6 === E ? t6 = E : t6 !== E && (t6 += (r6 ?? "") + h6[n8 + 1]), this._$AH[n8] = r6;
495
+ }
496
+ o11 && !e8 && this.j(t6);
497
+ }
498
+ j(t6) {
499
+ t6 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
500
+ }
501
+ };
502
+ var H = class extends k {
503
+ constructor() {
504
+ super(...arguments), this.type = 3;
505
+ }
506
+ j(t6) {
507
+ this.element[this.name] = t6 === E ? void 0 : t6;
508
+ }
509
+ };
510
+ var I = class extends k {
511
+ constructor() {
512
+ super(...arguments), this.type = 4;
513
+ }
514
+ j(t6) {
515
+ this.element.toggleAttribute(this.name, !!t6 && t6 !== E);
516
+ }
517
+ };
518
+ var L = class extends k {
519
+ constructor(t6, i9, s8, e8, h6) {
520
+ super(t6, i9, s8, e8, h6), this.type = 5;
521
+ }
522
+ _$AI(t6, i9 = this) {
523
+ if ((t6 = S2(this, t6, i9, 0) ?? E) === T)
524
+ return;
525
+ const s8 = this._$AH, e8 = t6 === E && s8 !== E || t6.capture !== s8.capture || t6.once !== s8.once || t6.passive !== s8.passive, h6 = t6 !== E && (s8 === E || e8);
526
+ e8 && this.element.removeEventListener(this.name, this, s8), h6 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
527
+ }
528
+ handleEvent(t6) {
529
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
530
+ }
531
+ };
532
+ var z = class {
533
+ constructor(t6, i9, s8) {
534
+ this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i9, this.options = s8;
535
+ }
536
+ get _$AU() {
537
+ return this._$AM._$AU;
538
+ }
539
+ _$AI(t6) {
540
+ S2(this, t6);
541
+ }
542
+ };
543
+ var Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z };
544
+ var j = t2.litHtmlPolyfillSupport;
545
+ j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.1");
546
+ var B = (t6, i9, s8) => {
547
+ const e8 = s8?.renderBefore ?? i9;
548
+ let h6 = e8._$litPart$;
549
+ if (void 0 === h6) {
550
+ const t7 = s8?.renderBefore ?? null;
551
+ e8._$litPart$ = h6 = new R(i9.insertBefore(l2(), t7), t7, void 0, s8 ?? {});
552
+ }
553
+ return h6._$AI(t6), h6;
554
+ };
555
+
556
+ // node_modules/lit-element/lit-element.js
557
+ var s3 = globalThis;
558
+ var i4 = class extends y {
559
+ constructor() {
560
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
561
+ }
562
+ createRenderRoot() {
563
+ const t6 = super.createRenderRoot();
564
+ return this.renderOptions.renderBefore ??= t6.firstChild, t6;
565
+ }
566
+ update(t6) {
567
+ const r6 = this.render();
568
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this._$Do = B(r6, this.renderRoot, this.renderOptions);
569
+ }
570
+ connectedCallback() {
571
+ super.connectedCallback(), this._$Do?.setConnected(true);
572
+ }
573
+ disconnectedCallback() {
574
+ super.disconnectedCallback(), this._$Do?.setConnected(false);
575
+ }
576
+ render() {
577
+ return T;
578
+ }
579
+ };
580
+ i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
581
+ var o4 = s3.litElementPolyfillSupport;
582
+ o4?.({ LitElement: i4 });
583
+ (s3.litElementVersions ??= []).push("4.2.1");
584
+
585
+ // node_modules/lit-html/directive.js
586
+ var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
587
+ var e4 = (t6) => (...e8) => ({ _$litDirective$: t6, values: e8 });
588
+ var i5 = class {
589
+ constructor(t6) {
590
+ }
591
+ get _$AU() {
592
+ return this._$AM._$AU;
593
+ }
594
+ _$AT(t6, e8, i9) {
595
+ this._$Ct = t6, this._$AM = e8, this._$Ci = i9;
596
+ }
597
+ _$AS(t6, e8) {
598
+ return this.update(t6, e8);
599
+ }
600
+ update(t6, e8) {
601
+ return this.render(...e8);
602
+ }
603
+ };
604
+
605
+ // node_modules/lit-html/directive-helpers.js
606
+ var { I: t4 } = Z;
607
+ var i6 = (o11) => null === o11 || "object" != typeof o11 && "function" != typeof o11;
608
+ var f3 = (o11) => void 0 === o11.strings;
609
+ var r4 = () => document.createComment("");
610
+ var s4 = (o11, i9, n8) => {
611
+ const e8 = o11._$AA.parentNode, l4 = void 0 === i9 ? o11._$AB : i9._$AA;
612
+ if (void 0 === n8) {
613
+ const i10 = e8.insertBefore(r4(), l4), d3 = e8.insertBefore(r4(), l4);
614
+ n8 = new t4(i10, d3, o11, o11.options);
615
+ } else {
616
+ const t6 = n8._$AB.nextSibling, i10 = n8._$AM, d3 = i10 !== o11;
617
+ if (d3) {
618
+ let t7;
619
+ n8._$AQ?.(o11), n8._$AM = o11, void 0 !== n8._$AP && (t7 = o11._$AU) !== i10._$AU && n8._$AP(t7);
620
+ }
621
+ if (t6 !== l4 || d3) {
622
+ let o12 = n8._$AA;
623
+ for (; o12 !== t6; ) {
624
+ const t7 = o12.nextSibling;
625
+ e8.insertBefore(o12, l4), o12 = t7;
626
+ }
627
+ }
628
+ }
629
+ return n8;
630
+ };
631
+ var v2 = (o11, t6, i9 = o11) => (o11._$AI(t6, i9), o11);
632
+ var u3 = {};
633
+ var m2 = (o11, t6 = u3) => o11._$AH = t6;
634
+ var p3 = (o11) => o11._$AH;
635
+ var M2 = (o11) => {
636
+ o11._$AR(), o11._$AA.remove();
637
+ };
638
+
639
+ // node_modules/lit-html/directives/repeat.js
640
+ var u4 = (e8, s8, t6) => {
641
+ const r6 = /* @__PURE__ */ new Map();
642
+ for (let l4 = s8; l4 <= t6; l4++)
643
+ r6.set(e8[l4], l4);
644
+ return r6;
645
+ };
646
+ var c4 = e4(class extends i5 {
647
+ constructor(e8) {
648
+ if (super(e8), e8.type !== t3.CHILD)
649
+ throw Error("repeat() can only be used in text expressions");
650
+ }
651
+ dt(e8, s8, t6) {
652
+ let r6;
653
+ void 0 === t6 ? t6 = s8 : void 0 !== s8 && (r6 = s8);
654
+ const l4 = [], o11 = [];
655
+ let i9 = 0;
656
+ for (const s9 of e8)
657
+ l4[i9] = r6 ? r6(s9, i9) : i9, o11[i9] = t6(s9, i9), i9++;
658
+ return { values: o11, keys: l4 };
659
+ }
660
+ render(e8, s8, t6) {
661
+ return this.dt(e8, s8, t6).values;
662
+ }
663
+ update(s8, [t6, r6, c8]) {
664
+ const d3 = p3(s8), { values: p4, keys: a4 } = this.dt(t6, r6, c8);
665
+ if (!Array.isArray(d3))
666
+ return this.ut = a4, p4;
667
+ const h6 = this.ut ??= [], v3 = [];
668
+ let m4, y3, x2 = 0, j2 = d3.length - 1, k2 = 0, w2 = p4.length - 1;
669
+ for (; x2 <= j2 && k2 <= w2; )
670
+ if (null === d3[x2])
671
+ x2++;
672
+ else if (null === d3[j2])
673
+ j2--;
674
+ else if (h6[x2] === a4[k2])
675
+ v3[k2] = v2(d3[x2], p4[k2]), x2++, k2++;
676
+ else if (h6[j2] === a4[w2])
677
+ v3[w2] = v2(d3[j2], p4[w2]), j2--, w2--;
678
+ else if (h6[x2] === a4[w2])
679
+ v3[w2] = v2(d3[x2], p4[w2]), s4(s8, v3[w2 + 1], d3[x2]), x2++, w2--;
680
+ else if (h6[j2] === a4[k2])
681
+ v3[k2] = v2(d3[j2], p4[k2]), s4(s8, d3[x2], d3[j2]), j2--, k2++;
682
+ else if (void 0 === m4 && (m4 = u4(a4, k2, w2), y3 = u4(h6, x2, j2)), m4.has(h6[x2]))
683
+ if (m4.has(h6[j2])) {
684
+ const e8 = y3.get(a4[k2]), t7 = void 0 !== e8 ? d3[e8] : null;
685
+ if (null === t7) {
686
+ const e9 = s4(s8, d3[x2]);
687
+ v2(e9, p4[k2]), v3[k2] = e9;
688
+ } else
689
+ v3[k2] = v2(t7, p4[k2]), s4(s8, d3[x2], t7), d3[e8] = null;
690
+ k2++;
691
+ } else
692
+ M2(d3[j2]), j2--;
693
+ else
694
+ M2(d3[x2]), x2++;
695
+ for (; k2 <= w2; ) {
696
+ const e8 = s4(s8, v3[w2 + 1]);
697
+ v2(e8, p4[k2]), v3[k2++] = e8;
698
+ }
699
+ for (; x2 <= j2; ) {
700
+ const e8 = d3[x2++];
701
+ null !== e8 && M2(e8);
702
+ }
703
+ return this.ut = a4, m2(s8, v3), T;
704
+ }
705
+ });
706
+
707
+ // node_modules/lit-html/directives/keyed.js
708
+ var i7 = e4(class extends i5 {
709
+ constructor() {
710
+ super(...arguments), this.key = E;
711
+ }
712
+ render(r6, t6) {
713
+ return this.key = r6, t6;
714
+ }
715
+ update(r6, [t6, e8]) {
716
+ return t6 !== this.key && (m2(r6), this.key = t6), e8;
717
+ }
718
+ });
719
+
720
+ // node_modules/lit-html/directives/class-map.js
721
+ var e5 = e4(class extends i5 {
722
+ constructor(t6) {
723
+ if (super(t6), t6.type !== t3.ATTRIBUTE || "class" !== t6.name || t6.strings?.length > 2)
724
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
725
+ }
726
+ render(t6) {
727
+ return " " + Object.keys(t6).filter((s8) => t6[s8]).join(" ") + " ";
728
+ }
729
+ update(s8, [i9]) {
730
+ if (void 0 === this.st) {
731
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s8.strings && (this.nt = new Set(s8.strings.join(" ").split(/\s/).filter((t6) => "" !== t6)));
732
+ for (const t6 in i9)
733
+ i9[t6] && !this.nt?.has(t6) && this.st.add(t6);
734
+ return this.render(i9);
735
+ }
736
+ const r6 = s8.element.classList;
737
+ for (const t6 of this.st)
738
+ t6 in i9 || (r6.remove(t6), this.st.delete(t6));
739
+ for (const t6 in i9) {
740
+ const s9 = !!i9[t6];
741
+ s9 === this.st.has(t6) || this.nt?.has(t6) || (s9 ? (r6.add(t6), this.st.add(t6)) : (r6.remove(t6), this.st.delete(t6)));
742
+ }
743
+ return T;
744
+ }
745
+ });
746
+
747
+ // node_modules/lit-html/async-directive.js
748
+ var s5 = (i9, t6) => {
749
+ const e8 = i9._$AN;
750
+ if (void 0 === e8)
751
+ return false;
752
+ for (const i10 of e8)
753
+ i10._$AO?.(t6, false), s5(i10, t6);
754
+ return true;
755
+ };
756
+ var o5 = (i9) => {
757
+ let t6, e8;
758
+ do {
759
+ if (void 0 === (t6 = i9._$AM))
760
+ break;
761
+ e8 = t6._$AN, e8.delete(i9), i9 = t6;
762
+ } while (0 === e8?.size);
763
+ };
764
+ var r5 = (i9) => {
765
+ for (let t6; t6 = i9._$AM; i9 = t6) {
766
+ let e8 = t6._$AN;
767
+ if (void 0 === e8)
768
+ t6._$AN = e8 = /* @__PURE__ */ new Set();
769
+ else if (e8.has(i9))
770
+ break;
771
+ e8.add(i9), c5(t6);
772
+ }
773
+ };
774
+ function h3(i9) {
775
+ void 0 !== this._$AN ? (o5(this), this._$AM = i9, r5(this)) : this._$AM = i9;
776
+ }
777
+ function n4(i9, t6 = false, e8 = 0) {
778
+ const r6 = this._$AH, h6 = this._$AN;
779
+ if (void 0 !== h6 && 0 !== h6.size)
780
+ if (t6)
781
+ if (Array.isArray(r6))
782
+ for (let i10 = e8; i10 < r6.length; i10++)
783
+ s5(r6[i10], false), o5(r6[i10]);
784
+ else
785
+ null != r6 && (s5(r6, false), o5(r6));
786
+ else
787
+ s5(this, i9);
788
+ }
789
+ var c5 = (i9) => {
790
+ i9.type == t3.CHILD && (i9._$AP ??= n4, i9._$AQ ??= h3);
791
+ };
792
+ var f4 = class extends i5 {
793
+ constructor() {
794
+ super(...arguments), this._$AN = void 0;
795
+ }
796
+ _$AT(i9, t6, e8) {
797
+ super._$AT(i9, t6, e8), r5(this), this.isConnected = i9._$AU;
798
+ }
799
+ _$AO(i9, t6 = true) {
800
+ i9 !== this.isConnected && (this.isConnected = i9, i9 ? this.reconnected?.() : this.disconnected?.()), t6 && (s5(this, i9), o5(this));
801
+ }
802
+ setValue(t6) {
803
+ if (f3(this._$Ct))
804
+ this._$Ct._$AI(t6, this);
805
+ else {
806
+ const i9 = [...this._$Ct._$AH];
807
+ i9[this._$Ci] = t6, this._$Ct._$AI(i9, this, 0);
808
+ }
809
+ }
810
+ disconnected() {
811
+ }
812
+ reconnected() {
813
+ }
814
+ };
815
+
816
+ // node_modules/lit-html/directives/ref.js
817
+ var e6 = () => new h4();
818
+ var h4 = class {
819
+ };
820
+ var o6 = /* @__PURE__ */ new WeakMap();
821
+ var n5 = e4(class extends f4 {
822
+ render(i9) {
823
+ return E;
824
+ }
825
+ update(i9, [s8]) {
826
+ const e8 = s8 !== this.G;
827
+ return e8 && void 0 !== this.G && this.rt(void 0), (e8 || this.lt !== this.ct) && (this.G = s8, this.ht = i9.options?.host, this.rt(this.ct = i9.element)), E;
828
+ }
829
+ rt(t6) {
830
+ if (this.isConnected || (t6 = void 0), "function" == typeof this.G) {
831
+ const i9 = this.ht ?? globalThis;
832
+ let s8 = o6.get(i9);
833
+ void 0 === s8 && (s8 = /* @__PURE__ */ new WeakMap(), o6.set(i9, s8)), void 0 !== s8.get(this.G) && this.G.call(this.ht, void 0), s8.set(this.G, t6), void 0 !== t6 && this.G.call(this.ht, t6);
834
+ } else
835
+ this.G.value = t6;
836
+ }
837
+ get lt() {
838
+ return "function" == typeof this.G ? o6.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
839
+ }
840
+ disconnected() {
841
+ this.lt === this.ct && this.rt(void 0);
842
+ }
843
+ reconnected() {
844
+ this.rt(this.ct);
845
+ }
846
+ });
847
+
848
+ // node_modules/lit-html/directives/if-defined.js
849
+ var o7 = (o11) => o11 ?? E;
850
+
851
+ // node_modules/lit-html/directives/private-async-helpers.js
852
+ var s6 = class {
853
+ constructor(t6) {
854
+ this.G = t6;
855
+ }
856
+ disconnect() {
857
+ this.G = void 0;
858
+ }
859
+ reconnect(t6) {
860
+ this.G = t6;
861
+ }
862
+ deref() {
863
+ return this.G;
864
+ }
865
+ };
866
+ var i8 = class {
867
+ constructor() {
868
+ this.Y = void 0, this.Z = void 0;
869
+ }
870
+ get() {
871
+ return this.Y;
872
+ }
873
+ pause() {
874
+ this.Y ??= new Promise((t6) => this.Z = t6);
875
+ }
876
+ resume() {
877
+ this.Z?.(), this.Y = this.Z = void 0;
878
+ }
879
+ };
880
+
881
+ // node_modules/lit-html/directives/until.js
882
+ var n6 = (t6) => !i6(t6) && "function" == typeof t6.then;
883
+ var h5 = 1073741823;
884
+ var c6 = class extends f4 {
885
+ constructor() {
886
+ super(...arguments), this._$Cwt = h5, this._$Cbt = [], this._$CK = new s6(this), this._$CX = new i8();
887
+ }
888
+ render(...s8) {
889
+ return s8.find((t6) => !n6(t6)) ?? T;
890
+ }
891
+ update(s8, i9) {
892
+ const e8 = this._$Cbt;
893
+ let r6 = e8.length;
894
+ this._$Cbt = i9;
895
+ const o11 = this._$CK, c8 = this._$CX;
896
+ this.isConnected || this.disconnected();
897
+ for (let t6 = 0; t6 < i9.length && !(t6 > this._$Cwt); t6++) {
898
+ const s9 = i9[t6];
899
+ if (!n6(s9))
900
+ return this._$Cwt = t6, s9;
901
+ t6 < r6 && s9 === e8[t6] || (this._$Cwt = h5, r6 = 0, Promise.resolve(s9).then(async (t7) => {
902
+ for (; c8.get(); )
903
+ await c8.get();
904
+ const i10 = o11.deref();
905
+ if (void 0 !== i10) {
906
+ const e9 = i10._$Cbt.indexOf(s9);
907
+ e9 > -1 && e9 < i10._$Cwt && (i10._$Cwt = e9, i10.setValue(t7));
908
+ }
909
+ }));
910
+ }
911
+ return T;
912
+ }
913
+ disconnected() {
914
+ this._$CK.disconnect(), this._$CX.pause();
915
+ }
916
+ reconnected() {
917
+ this._$CK.reconnect(this), this._$CX.resume();
918
+ }
919
+ };
920
+ var m3 = e4(c6);
921
+
922
+ // node_modules/lit-html/directives/unsafe-html.js
923
+ var e7 = class extends i5 {
924
+ constructor(i9) {
925
+ if (super(i9), this.it = E, i9.type !== t3.CHILD)
926
+ throw Error(this.constructor.directiveName + "() can only be used in child bindings");
927
+ }
928
+ render(r6) {
929
+ if (r6 === E || null == r6)
930
+ return this._t = void 0, this.it = r6;
931
+ if (r6 === T)
932
+ return r6;
933
+ if ("string" != typeof r6)
934
+ throw Error(this.constructor.directiveName + "() called with a non-string value");
935
+ if (r6 === this.it)
936
+ return this._t;
937
+ this.it = r6;
938
+ const s8 = [r6];
939
+ return s8.raw = s8, this._t = { _$litType$: this.constructor.resultType, strings: s8, values: [] };
940
+ }
941
+ };
942
+ e7.directiveName = "unsafeHTML", e7.resultType = 1;
943
+ var o8 = e4(e7);
944
+
945
+ // node_modules/lit-html/directives/unsafe-svg.js
946
+ var t5 = class extends e7 {
947
+ };
948
+ t5.directiveName = "unsafeSVG", t5.resultType = 2;
949
+ var o9 = e4(t5);
950
+
951
+ // src/js/common/msg.js
952
+ var isLocal = ["127.0.0.1", "localhost"].includes(window.location.hostname);
953
+ var isStrTagged = (val) => typeof val !== "string" && "strTag" in val;
954
+ function collateStrings(strings) {
955
+ let s8 = "";
956
+ for (let i9 = 0; i9 <= strings.length - 1; i9++) {
957
+ s8 += strings[i9];
958
+ if (i9 < strings.length - 1)
959
+ s8 += `{${i9}}`;
960
+ }
961
+ return s8;
962
+ }
963
+ function replacePlaceholders(str, callback) {
964
+ return str.replace(/\{(\d+)\}/g, (match, index) => callback(index));
965
+ }
966
+ var joinStringsAndValues = (strings, values, options) => {
967
+ const matchString = collateStrings(strings);
968
+ const tra = getTrans(matchString, options);
969
+ return replacePlaceholders(tra, (index) => {
970
+ return values[index];
971
+ });
972
+ };
973
+ function getTrans(t6, options = {}) {
974
+ window.__strings = window.__strings ?? {};
975
+ const tra = window.__strings[t6]?.content;
976
+ if (!tra && isLocal) {
977
+ console.log("\u{1F310}", t6, options.desc ? `(${options.desc})` : ``);
978
+ }
979
+ if (window.env?.DEBUG_TRANSLATIONS)
980
+ return `__${tra ?? t6}`;
981
+ return tra ?? t6;
982
+ }
983
+ var msg = (template, options = {}) => {
984
+ if (!template)
985
+ return "";
986
+ return isStrTagged(template) ? joinStringsAndValues(template.strings, template.values, options) : getTrans(template, options);
987
+ };
988
+
989
+ // node_modules/lit-html/static.js
990
+ var a3 = Symbol.for("");
991
+ var o10 = (t6) => {
992
+ if (t6?.r === a3)
993
+ return t6?._$litStatic$;
994
+ };
995
+ var s7 = (t6) => ({ _$litStatic$: t6, r: a3 });
996
+ var l3 = /* @__PURE__ */ new Map();
997
+ var n7 = (t6) => (r6, ...e8) => {
998
+ const a4 = e8.length;
999
+ let s8, i9;
1000
+ const n8 = [], u6 = [];
1001
+ let c8, $3 = 0, f5 = false;
1002
+ for (; $3 < a4; ) {
1003
+ for (c8 = r6[$3]; $3 < a4 && void 0 !== (i9 = e8[$3], s8 = o10(i9)); )
1004
+ c8 += s8 + r6[++$3], f5 = true;
1005
+ $3 !== a4 && u6.push(i9), n8.push(c8), $3++;
1006
+ }
1007
+ if ($3 === a4 && n8.push(r6[a4]), f5) {
1008
+ const t7 = n8.join("$$lit$$");
1009
+ void 0 === (r6 = l3.get(t7)) && (n8.raw = n8, l3.set(t7, r6 = n8)), e8 = u6;
1010
+ }
1011
+ return t6(r6, ...e8);
1012
+ };
1013
+ var u5 = n7(x);
1014
+ var c7 = n7(b2);
1015
+ var $2 = n7(w);
1016
+
1017
+ // src/js/lit.js
1018
+ var html = x;
1019
+ var css = i;
1020
+ async function loadLocale(locale) {
1021
+ try {
1022
+ window.__strings = await fetch(`/assets/locales/${locale}.json`).then((r6) => r6.json());
1023
+ } catch {
1024
+ window.__strings = {};
1025
+ }
1026
+ }
1027
+ export {
1028
+ i4 as LitElement,
1029
+ e5 as classMap,
1030
+ e6 as createRef,
1031
+ css,
1032
+ html,
1033
+ o7 as ifDefined,
1034
+ i7 as keyed,
1035
+ loadLocale,
1036
+ msg,
1037
+ E as nothing,
1038
+ n5 as ref,
1039
+ B as render,
1040
+ c4 as repeat,
1041
+ u5 as staticHtml,
1042
+ b2 as svg,
1043
+ o8 as unsafeHTML,
1044
+ o9 as unsafeSVG,
1045
+ s7 as unsafeStatic,
1046
+ m3 as until
1047
+ };
1048
+ /*! Bundled license information:
1049
+
1050
+ @lit/reactive-element/css-tag.js:
1051
+ (**
1052
+ * @license
1053
+ * Copyright 2019 Google LLC
1054
+ * SPDX-License-Identifier: BSD-3-Clause
1055
+ *)
1056
+
1057
+ @lit/reactive-element/reactive-element.js:
1058
+ (**
1059
+ * @license
1060
+ * Copyright 2017 Google LLC
1061
+ * SPDX-License-Identifier: BSD-3-Clause
1062
+ *)
1063
+
1064
+ lit-html/lit-html.js:
1065
+ (**
1066
+ * @license
1067
+ * Copyright 2017 Google LLC
1068
+ * SPDX-License-Identifier: BSD-3-Clause
1069
+ *)
1070
+
1071
+ lit-element/lit-element.js:
1072
+ (**
1073
+ * @license
1074
+ * Copyright 2017 Google LLC
1075
+ * SPDX-License-Identifier: BSD-3-Clause
1076
+ *)
1077
+
1078
+ lit-html/is-server.js:
1079
+ (**
1080
+ * @license
1081
+ * Copyright 2022 Google LLC
1082
+ * SPDX-License-Identifier: BSD-3-Clause
1083
+ *)
1084
+
1085
+ lit-html/directive.js:
1086
+ (**
1087
+ * @license
1088
+ * Copyright 2017 Google LLC
1089
+ * SPDX-License-Identifier: BSD-3-Clause
1090
+ *)
1091
+
1092
+ lit-html/directive-helpers.js:
1093
+ (**
1094
+ * @license
1095
+ * Copyright 2020 Google LLC
1096
+ * SPDX-License-Identifier: BSD-3-Clause
1097
+ *)
1098
+
1099
+ lit-html/directives/repeat.js:
1100
+ (**
1101
+ * @license
1102
+ * Copyright 2017 Google LLC
1103
+ * SPDX-License-Identifier: BSD-3-Clause
1104
+ *)
1105
+
1106
+ lit-html/directives/keyed.js:
1107
+ (**
1108
+ * @license
1109
+ * Copyright 2021 Google LLC
1110
+ * SPDX-License-Identifier: BSD-3-Clause
1111
+ *)
1112
+
1113
+ lit-html/directives/class-map.js:
1114
+ (**
1115
+ * @license
1116
+ * Copyright 2018 Google LLC
1117
+ * SPDX-License-Identifier: BSD-3-Clause
1118
+ *)
1119
+
1120
+ lit-html/async-directive.js:
1121
+ (**
1122
+ * @license
1123
+ * Copyright 2017 Google LLC
1124
+ * SPDX-License-Identifier: BSD-3-Clause
1125
+ *)
1126
+
1127
+ lit-html/directives/ref.js:
1128
+ (**
1129
+ * @license
1130
+ * Copyright 2020 Google LLC
1131
+ * SPDX-License-Identifier: BSD-3-Clause
1132
+ *)
1133
+
1134
+ lit-html/directives/if-defined.js:
1135
+ (**
1136
+ * @license
1137
+ * Copyright 2018 Google LLC
1138
+ * SPDX-License-Identifier: BSD-3-Clause
1139
+ *)
1140
+
1141
+ lit-html/directives/private-async-helpers.js:
1142
+ (**
1143
+ * @license
1144
+ * Copyright 2021 Google LLC
1145
+ * SPDX-License-Identifier: BSD-3-Clause
1146
+ *)
1147
+
1148
+ lit-html/directives/until.js:
1149
+ (**
1150
+ * @license
1151
+ * Copyright 2017 Google LLC
1152
+ * SPDX-License-Identifier: BSD-3-Clause
1153
+ *)
1154
+
1155
+ lit-html/directives/unsafe-html.js:
1156
+ (**
1157
+ * @license
1158
+ * Copyright 2017 Google LLC
1159
+ * SPDX-License-Identifier: BSD-3-Clause
1160
+ *)
1161
+
1162
+ lit-html/directives/unsafe-svg.js:
1163
+ (**
1164
+ * @license
1165
+ * Copyright 2017 Google LLC
1166
+ * SPDX-License-Identifier: BSD-3-Clause
1167
+ *)
1168
+
1169
+ lit-html/static.js:
1170
+ (**
1171
+ * @license
1172
+ * Copyright 2020 Google LLC
1173
+ * SPDX-License-Identifier: BSD-3-Clause
1174
+ *)
1175
+ */
1176
+ //# sourceMappingURL=lit.js.map