intlayer-editor 8.4.0 → 8.4.1

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 (27) hide show
  1. package/client/dist/assets/{CodeBlockShiki-k-_aip9S.js → CodeBlockShiki-BpWMMgAf.js} +1 -1
  2. package/client/dist/assets/{MarkdownMetadataRendererInternal-DRejf1v9.js → MarkdownMetadataRendererInternal-DMFHkj2h.js} +4 -4
  3. package/client/dist/assets/{esm-B-khX_jr.js → esm-DNFnzQnW.js} +233 -249
  4. package/client/dist/assets/getContentNodeByKeyPath-BDFNqZy_.js +58 -0
  5. package/client/dist/assets/{index-CZPUiNfr.js → index-B9llXyVT.js} +925 -893
  6. package/client/dist/index.html +3 -3
  7. package/package.json +14 -14
  8. package/server/dist/checkPortAvailability-BQTphbYJ.cjs +2 -0
  9. package/server/dist/checkPortAvailability-BQTphbYJ.cjs.map +1 -0
  10. package/server/dist/controllers/configuration.controller.cjs +1 -1
  11. package/server/dist/controllers/configuration.controller.cjs.map +1 -1
  12. package/server/dist/controllers/configuration.controller.d.ts +1 -1
  13. package/server/dist/controllers/dictionary.controller.cjs +1 -1
  14. package/server/dist/controllers/dictionary.controller.cjs.map +1 -1
  15. package/server/dist/controllers/dictionary.controller.d.ts +1 -1
  16. package/server/dist/httpStatusCodes-Bscj19Pj.d.ts +407 -0
  17. package/server/dist/index.cjs +7 -7
  18. package/server/dist/index.cjs.map +1 -1
  19. package/server/dist/responseData-DcKPpb9v.d.ts +87 -0
  20. package/server/dist/routes/config.routes.cjs +1 -1
  21. package/server/dist/routes/config.routes.cjs.map +1 -1
  22. package/server/dist/routes/dictionary.routes.cjs +1 -1
  23. package/server/dist/routes/dictionary.routes.cjs.map +1 -1
  24. package/server/dist/utils/checkPortAvailability.cjs +1 -2
  25. package/server/dist/utils/httpStatusCodes.d.ts +2 -407
  26. package/server/dist/utils/responseData.d.ts +2 -87
  27. package/client/dist/assets/getContentNodeByKeyPath-C6o6zIBZ.js +0 -155
@@ -1,5 +1,5 @@
1
1
  import { r as __exportAll } from "./chunk-CC9Q-vWm.js";
2
- import { n as configuration_default, r as e$18, t as t$13 } from "./getContentNodeByKeyPath-C6o6zIBZ.js";
2
+ import { n as configuration_default, r as e$18, t as t$12 } from "./getContentNodeByKeyPath-BDFNqZy_.js";
3
3
  import { t as __vitePreload } from "./preload-helper-CoI0IUIE.js";
4
4
  //#region ../@intlayer/core/dist/esm/interpreter/getCondition.mjs
5
5
  var e$17 = (e, t) => {
@@ -8,10 +8,10 @@ var e$17 = (e, t) => {
8
8
  };
9
9
  //#endregion
10
10
  //#region ../@intlayer/core/dist/esm/interpreter/getContent/deepTransform.mjs
11
- var t$12 = (n, r) => {
12
- for (let e of r.plugins ?? []) if (e.canHandle(n)) return e.transform(n, r, (e, n) => t$12(e, n));
11
+ var t$11 = (n, r) => {
12
+ for (let e of r.plugins ?? []) if (e.canHandle(n)) return e.transform(n, r, (e, n) => t$11(e, n));
13
13
  if (typeof n != `object` || !n || n.$$typeof !== void 0 || n.__v_isVNode !== void 0 || n._isVNode !== void 0 || n.isJSX !== void 0 || typeof n == `function`) return n;
14
- if (Array.isArray(n)) return n.map((n, i) => t$12(n, {
14
+ if (Array.isArray(n)) return n.map((n, i) => t$11(n, {
15
15
  ...r,
16
16
  children: n,
17
17
  keyPath: [...r.keyPath, {
@@ -29,7 +29,7 @@ var t$12 = (n, r) => {
29
29
  key: a
30
30
  }]
31
31
  };
32
- i[a] = t$12(n[a], o);
32
+ i[a] = t$11(n[a], o);
33
33
  }
34
34
  return i;
35
35
  };
@@ -41,10 +41,10 @@ var e$16 = (e, t) => {
41
41
  let n = !e.startsWith(`>`) && !e.startsWith(`<`) && !e.startsWith(`=`) && parseFloat(e) === t || e.startsWith(`=`) && parseFloat(e.slice(1)) === t, r = e.startsWith(`>`) && t > parseFloat(e.slice(1)), i = e.startsWith(`>=`) && t >= parseFloat(e.slice(2)), a = e.startsWith(`<`) && t < parseFloat(e.slice(1)), o = e.startsWith(`<=`) && t <= parseFloat(e.slice(2));
42
42
  if (n || r || i || a || o) return e;
43
43
  }
44
- }, t$11 = (t, n) => t[e$16(t, n) ?? `fallback`];
44
+ }, t$10 = (t, n) => t[e$16(t, n) ?? `fallback`];
45
45
  //#endregion
46
46
  //#region ../@intlayer/core/dist/esm/interpreter/getGender.mjs
47
- var e$15 = (e) => e === `m` || e === `male` ? `male` : e === `f` || e === `female` ? `female` : `fallback`, t$10 = (t, n) => {
47
+ var e$15 = (e) => e === `m` || e === `male` ? `male` : e === `f` || e === `female` ? `female` : `fallback`, t$9 = (t, n) => {
48
48
  let r = Object.keys(t), i = r[r.length - 1];
49
49
  return t[e$15(n)] ?? t.fallback ?? t[i];
50
50
  };
@@ -52,81 +52,27 @@ var e$15 = (e) => e === `m` || e === `male` ? `male` : e === `f` || e === `femal
52
52
  //#region ../@intlayer/core/dist/esm/interpreter/getInsertion.mjs
53
53
  var e$14 = (e, t) => e.replace(/\{\{\s*(.*?)\s*\}\}/g, (e, n) => (t[n.trim()] ?? ``).toString());
54
54
  //#endregion
55
- //#region ../@intlayer/config/dist/esm/logger.mjs
56
- var e$13, n$9 = (t) => e$13 === void 0 ? t : e$13, r$7 = (e, t) => {
57
- let r = t?.isVerbose ?? !1, i = t?.config?.mode ?? `default`, a = t?.level ?? `info`, o = n$9(t?.config?.prefix), s = t?.config?.log ?? console.log, c = t?.config?.info ?? console.info, l = t?.config?.warn ?? console.warn, u = t?.config?.error ?? console.error, d = t?.config?.debug ?? console.debug;
58
- if (i === `disabled` || r && i !== `verbose`) return;
59
- let f = o ? [o, ...[e].flat()] : [e].flat();
60
- if (a === `debug`) return d(...f);
61
- if (a === `info`) return c(...f);
62
- if (a === `warn`) return l(...f);
63
- if (a === `error`) return u(...f);
64
- s(...f);
65
- }, i$5 = function(e) {
66
- return e.RESET = `\x1B[0m`, e.GREY = `\x1B[90m`, e.GREY_DARK = `\x1B[38;5;239m`, e.GREY_LIGHT = `\x1B[38;5;252m`, e.BLUE = `\x1B[34m`, e.RED = `\x1B[31m`, e.GREEN = `\x1B[32m`, e.YELLOW = `\x1B[38;5;226m`, e.MAGENTA = `\x1B[35m`, e.BEIGE = `\x1B[38;5;3m`, e.ORANGE = `\x1B[38;5;208m`, e.CYAN = `\x1B[36m`, e.WHITE = `\x1B[37m`, e.BOLD = `\x1B[1m`, e;
67
- }({}), o$7 = (e, t) => (n, i) => r$7(n, {
68
- ...i ?? {},
69
- config: {
70
- ...e?.log,
71
- ...t?.config,
72
- ...i?.config ?? {}
73
- }
74
- }), s$6 = (e, t, n) => t ? `${t}${e}${n ? typeof n == `boolean` ? i$5.RESET : n : i$5.RESET}` : e, l$5 = (e, t = i$5.BEIGE, n = i$5.RESET) => [e].flat().map((e) => s$6(e, t, n)).join(`, `);
75
- s$6(`✗`, i$5.RED);
76
- s$6(`✓`, i$5.GREEN);
77
- s$6(`⏲`, i$5.BLUE);
78
- //#endregion
79
- //#region .intlayer/main/dictionaries.mjs
80
- var dictionaries = {};
81
- var getDictionaries = () => dictionaries;
82
- //#endregion
83
- //#region ../@intlayer/core/dist/esm/interpreter/getIntlayer.mjs
84
- var a$4 = (e = ``) => new Proxy(() => e, {
85
- get: (t, n) => {
86
- if (n === `toJSON` || n === Symbol.toPrimitive || n === `toString`) return () => e;
87
- if (n !== `then`) return a$4(e ? `${e}.${String(n)}` : String(n));
88
- },
89
- apply: () => e
90
- }), o$6 = (o, s, c) => {
91
- let l = getDictionaries()[o];
92
- return l ? n$7(l, s, c) : (o$7(configuration_default)(`Dictionary ${l$5(o)} was not found. Using fallback proxy.`, {
93
- level: `warn`,
94
- isVerbose: !0
95
- }), a$4(o));
96
- };
97
- //#endregion
98
- //#region ../@intlayer/core/dist/esm/interpreter/getNesting.mjs
99
- var t$8 = (t, n, r) => {
100
- let i = o$6(t, r?.locale, r?.plugins);
101
- if (typeof n == `string`) {
102
- let e = n.split(`.`), t = i;
103
- for (let n of e) if (t = t?.[n], t === void 0) return i;
104
- return t;
105
- }
106
- return i;
107
- };
108
- //#endregion
109
55
  //#region ../@intlayer/core/dist/esm/interpreter/getTranslation.mjs
110
- var e$12 = (e) => {
56
+ var e$13 = (e) => {
111
57
  if (typeof e != `object` || !e || e instanceof Promise || typeof e.then == `function` || e.$$typeof !== void 0 || e.__v_isVNode !== void 0 || e._isVNode !== void 0 || e.isJSX !== void 0) return !1;
112
58
  let t = Object.getPrototypeOf(e);
113
59
  return t === Object.prototype || t === null || Array.isArray(e);
114
- }, t$7 = (n, r) => {
60
+ }, t$8 = (n, r) => {
115
61
  if (n === void 0) return r;
116
62
  if (r === void 0 || Array.isArray(n)) return n;
117
- if (e$12(n) && e$12(r)) {
63
+ if (e$13(n) && e$13(r)) {
118
64
  let e = { ...n };
119
- for (let i of Object.keys(r)) i === `__proto__` || i === `constructor` || (Object.hasOwn(n, i) ? e[i] = t$7(n[i], r[i]) : e[i] = r[i]);
65
+ for (let i of Object.keys(r)) i === `__proto__` || i === `constructor` || (Object.hasOwn(n, i) ? e[i] = t$8(n[i], r[i]) : e[i] = r[i]);
120
66
  return e;
121
67
  }
122
68
  return n;
123
69
  }, n$8 = (t, r = /* @__PURE__ */ new WeakSet()) => {
124
- if (typeof t != `object` || !t || r.has(t) || (r.add(t), !e$12(t))) return t;
70
+ if (typeof t != `object` || !t || r.has(t) || (r.add(t), !e$13(t))) return t;
125
71
  if (Array.isArray(t)) return t.map((e) => n$8(e, r));
126
72
  let i = {};
127
73
  for (let [e, a] of Object.entries(t)) a !== void 0 && (i[e] = n$8(a, r));
128
74
  return i;
129
- }, r$6 = (e, r, i) => {
75
+ }, r$7 = (e, r, i) => {
130
76
  let a = [], o = (t) => e[t], s = o(r);
131
77
  if (typeof s == `string`) return s;
132
78
  if (s !== void 0 && a.push(s), r.includes(`-`)) {
@@ -157,11 +103,67 @@ var e$12 = (e) => {
157
103
  }
158
104
  if (a.length === 0) return;
159
105
  let c = a.filter((e) => e !== void 0).map((e) => n$8(e));
160
- return c.length === 1 || Array.isArray(c[0]) ? c[0] : c.reduce((e, n) => t$7(e, n));
106
+ return c.length === 1 || Array.isArray(c[0]) ? c[0] : c.reduce((e, n) => t$8(e, n));
161
107
  };
162
108
  //#endregion
163
- //#region ../@intlayer/core/dist/esm/interpreter/getContent/plugins.mjs
164
- var s$5 = (e, t) => ({
109
+ //#region ../@intlayer/config/dist/esm/logger.mjs
110
+ var e$12, n$7 = (t) => e$12 === void 0 ? t : e$12, r$6 = (e, t) => {
111
+ let r = t?.isVerbose ?? !1, i = t?.config?.mode ?? `default`, a = t?.level ?? `info`, o = n$7(t?.config?.prefix), s = t?.config?.log ?? console.log, c = t?.config?.info ?? console.info, l = t?.config?.warn ?? console.warn, u = t?.config?.error ?? console.error, d = t?.config?.debug ?? console.debug;
112
+ if (i === `disabled` || r && i !== `verbose`) return;
113
+ let f = o ? [o, ...[e].flat()] : [e].flat();
114
+ if (a === `debug`) return d(...f);
115
+ if (a === `info`) return c(...f);
116
+ if (a === `warn`) return l(...f);
117
+ if (a === `error`) return u(...f);
118
+ s(...f);
119
+ }, i$5 = function(e) {
120
+ return e.RESET = `\x1B[0m`, e.GREY = `\x1B[90m`, e.GREY_DARK = `\x1B[38;5;239m`, e.GREY_LIGHT = `\x1B[38;5;252m`, e.BLUE = `\x1B[34m`, e.RED = `\x1B[31m`, e.GREEN = `\x1B[32m`, e.YELLOW = `\x1B[38;5;226m`, e.MAGENTA = `\x1B[35m`, e.BEIGE = `\x1B[38;5;3m`, e.ORANGE = `\x1B[38;5;208m`, e.CYAN = `\x1B[36m`, e.WHITE = `\x1B[37m`, e.BOLD = `\x1B[1m`, e;
121
+ }({}), o$5 = (e, t) => (n, i) => r$6(n, {
122
+ ...i ?? {},
123
+ config: {
124
+ ...e?.log,
125
+ ...t?.config,
126
+ ...i?.config ?? {}
127
+ }
128
+ }), s$3 = (e, t, n) => t ? `${t}${e}${n ? typeof n == `boolean` ? i$5.RESET : n : i$5.RESET}` : e, l$3 = (e, t = i$5.BEIGE, n = i$5.RESET) => [e].flat().map((e) => s$3(e, t, n)).join(`, `);
129
+ s$3(`✗`, i$5.RED);
130
+ s$3(`✓`, i$5.GREEN);
131
+ s$3(`⏲`, i$5.BLUE);
132
+ //#endregion
133
+ //#region .intlayer/main/dictionaries.mjs
134
+ var dictionaries = {};
135
+ var getDictionaries = () => dictionaries;
136
+ //#endregion
137
+ //#region ../@intlayer/core/dist/esm/getContent-DKqtIZGL.mjs
138
+ var d$4 = (e, t, n = S$2(t)) => {
139
+ let r = {
140
+ dictionaryKey: e.key,
141
+ dictionaryPath: e.filePath,
142
+ keyPath: [],
143
+ plugins: n
144
+ };
145
+ return C$1(e.content, r, n);
146
+ }, f$3 = (e = ``) => new Proxy(() => e, {
147
+ get: (t, n) => {
148
+ if (n === `toJSON` || n === Symbol.toPrimitive || n === `toString`) return () => e;
149
+ if (n !== `then`) return f$3(e ? `${e}.${String(n)}` : String(n));
150
+ },
151
+ apply: () => e
152
+ }), p$2 = (e, t, n) => {
153
+ let r = getDictionaries()[e];
154
+ return r ? d$4(r, t, n) : (o$5(configuration_default)(`Dictionary ${l$3(e)} was not found. Using fallback proxy.`, {
155
+ level: `warn`,
156
+ isVerbose: !0
157
+ }), f$3(e));
158
+ }, m$2 = (e, t, n) => {
159
+ let r = p$2(e, n?.locale, n?.plugins);
160
+ if (typeof t == `string`) {
161
+ let e = t.split(`.`), n = r;
162
+ for (let t of e) if (n = n?.[t], n === void 0) return r;
163
+ return n;
164
+ }
165
+ return r;
166
+ }, h$3 = (e, t) => ({
165
167
  id: `translation-plugin`,
166
168
  canHandle: (e) => typeof e == `object` && e?.nodeType === e$18.Translation,
167
169
  transform: (n, r, i) => {
@@ -177,30 +179,30 @@ var s$5 = (e, t) => ({
177
179
  };
178
180
  s[e] = i(s[e], t);
179
181
  }
180
- return r$6(s, e, t);
182
+ return r$7(s, e, t);
181
183
  }
182
- }), c$5 = {
184
+ }), g$2 = {
183
185
  id: `enumeration-plugin`,
184
186
  canHandle: (e) => typeof e == `object` && e?.nodeType === e$18.Enumeration,
185
- transform: (e, n, r) => {
187
+ transform: (e, t, r) => {
186
188
  let i = { ...e[e$18.Enumeration] };
187
189
  for (let e in i) {
188
- let t = i[e];
189
- i[e] = r(t, {
190
- ...n,
191
- children: t,
192
- keyPath: [...n.keyPath, {
190
+ let n = i[e];
191
+ i[e] = r(n, {
192
+ ...t,
193
+ children: n,
194
+ keyPath: [...t.keyPath, {
193
195
  type: e$18.Enumeration,
194
196
  key: e
195
197
  }]
196
198
  });
197
199
  }
198
200
  return (e) => {
199
- let n = t$11(i, typeof e == `number` ? e : e.count);
200
- return typeof n == `function` && typeof e == `object` ? n(e) : n;
201
+ let t = t$10(i, typeof e == `number` ? e : e.count);
202
+ return typeof t == `function` && typeof e == `object` ? t(e) : t;
201
203
  };
202
204
  }
203
- }, l$4 = {
205
+ }, _$2 = {
204
206
  id: `condition-plugin`,
205
207
  canHandle: (e) => typeof e == `object` && e?.nodeType === e$18.Condition,
206
208
  transform: (t, n, r) => {
@@ -221,22 +223,22 @@ var s$5 = (e, t) => ({
221
223
  return typeof n == `function` && typeof t == `object` ? n(t) : n;
222
224
  };
223
225
  }
224
- }, u$5 = {
226
+ }, v$2 = {
225
227
  id: `insertion-plugin`,
226
228
  canHandle: (e) => typeof e == `object` && e?.nodeType === e$18.Insertion,
227
229
  transform: (e, t, n) => {
228
- let i = [...t.keyPath, { type: e$18.Insertion }], a = e[e$18.Insertion], s = {
230
+ let r = [...t.keyPath, { type: e$18.Insertion }], a = e[e$18.Insertion], s = {
229
231
  id: `insertion-string-plugin`,
230
232
  canHandle: (e) => typeof e == `string`,
231
- transform: (e, n, i) => {
232
- let a = i(e, {
233
+ transform: (e, n, r) => {
234
+ let a = r(e, {
233
235
  ...n,
234
236
  children: e,
235
237
  plugins: [...(t.plugins ?? []).filter((e) => e.id !== `intlayer-node-plugin`)]
236
238
  });
237
239
  return (e) => {
238
240
  let o = e$14(a, e);
239
- return i(o, {
241
+ return r(o, {
240
242
  ...n,
241
243
  plugins: t.plugins,
242
244
  children: o
@@ -247,69 +249,55 @@ var s$5 = (e, t) => ({
247
249
  return n(a, {
248
250
  ...t,
249
251
  children: a,
250
- keyPath: i,
252
+ keyPath: r,
251
253
  plugins: [s, ...t.plugins ?? []]
252
254
  });
253
255
  }
254
- }, d$5 = {
256
+ }, y$3 = {
255
257
  id: `gender-plugin`,
256
258
  canHandle: (e) => typeof e == `object` && e?.nodeType === e$18.Gender,
257
- transform: (e, t, r) => {
259
+ transform: (e, t, n) => {
258
260
  let i = { ...e[e$18.Gender] };
259
261
  for (let e in i) {
260
- let n = i[e];
261
- i[e] = r(n, {
262
+ let r = i[e];
263
+ i[e] = n(r, {
262
264
  ...t,
263
- children: n,
265
+ children: r,
264
266
  keyPath: [...t.keyPath, {
265
267
  type: e$18.Gender,
266
268
  key: e
267
269
  }]
268
270
  });
269
271
  }
270
- return (e) => t$10(i, e);
272
+ return (e) => t$9(i, e);
271
273
  }
272
- }, f$3 = (e) => ({
274
+ }, b$3 = (e) => ({
273
275
  id: `nested-plugin`,
274
276
  canHandle: (e) => typeof e == `object` && (e?.nodeType === e$18.Nested || e?.nodeType === `nested`),
275
- transform: (t, n) => t$8(t.nested.dictionaryKey, t.nested.path, {
277
+ transform: (t, n) => m$2(t.nested.dictionaryKey, t.nested.path, {
276
278
  ...n,
277
279
  locale: e ?? n.locale
278
280
  })
279
- }), p$2 = {
281
+ }), x$2 = {
280
282
  id: `file-plugin`,
281
283
  canHandle: (e) => typeof e == `object` && e?.nodeType === e$18.File,
282
284
  transform: (e, t, n) => n(e.content, {
283
285
  ...t,
284
286
  children: e.content
285
287
  })
286
- };
287
- //#endregion
288
- //#region ../@intlayer/core/dist/esm/interpreter/getContent/getContent.mjs
289
- var l$3 = (e, l = !0) => [
290
- s$5(e ?? configuration_default.internationalization.defaultLocale, l ? configuration_default.internationalization.defaultLocale : void 0),
291
- c$5,
292
- l$4,
293
- u$5,
294
- f$3(e ?? configuration_default.internationalization.defaultLocale),
295
- p$2,
296
- d$5
297
- ], u$4 = (t, n, r = []) => t$12(t, {
288
+ }, S$2 = (e, t = !0) => [
289
+ h$3(e ?? configuration_default.internationalization.defaultLocale, t ? configuration_default.internationalization.defaultLocale : void 0),
290
+ g$2,
291
+ _$2,
292
+ v$2,
293
+ b$3(e ?? configuration_default.internationalization.defaultLocale),
294
+ x$2,
295
+ y$3
296
+ ], C$1 = (e, n, r = []) => t$11(e, {
298
297
  ...n,
299
298
  plugins: r
300
299
  });
301
300
  //#endregion
302
- //#region ../@intlayer/core/dist/esm/interpreter/getDictionary.mjs
303
- var n$7 = (n, r, i = l$3(r)) => {
304
- let a = {
305
- dictionaryKey: n.key,
306
- dictionaryPath: n.filePath,
307
- keyPath: [],
308
- plugins: i
309
- };
310
- return u$4(n.content, a, i);
311
- };
312
- //#endregion
313
301
  //#region ../@intlayer/core/dist/esm/utils/isSameKeyPath.mjs
314
302
  var e$11 = (e, t) => e.every((e, n) => t[n] && t[n].key === e.key && t[n].type === e.type);
315
303
  //#endregion
@@ -358,7 +346,7 @@ var e$7 = `__intlayer_editor_manager__`, t$6 = `__intlayer_editor_manager_events
358
346
  n[e$7] = t;
359
347
  }
360
348
  n$6().dispatchEvent(new CustomEvent(`change`, { detail: t }));
361
- }, a$3 = (e) => {
349
+ }, a$2 = (e) => {
362
350
  let t = n$6(), r = (t) => {
363
351
  e(t.detail);
364
352
  };
@@ -367,7 +355,7 @@ var e$7 = `__intlayer_editor_manager__`, t$6 = `__intlayer_editor_manager_events
367
355
  };
368
356
  };
369
357
  //#endregion
370
- //#region ../@intlayer/editor/dist/esm/_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs
358
+ //#region ../@intlayer/editor/dist/esm/decorate-BWURH4oJ.mjs
371
359
  function e$6(e, t, n, r) {
372
360
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
373
361
  if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
@@ -381,10 +369,10 @@ function e$6(e, t, n, r) {
381
369
  * Copyright 2019 Google LLC
382
370
  * SPDX-License-Identifier: BSD-3-Clause
383
371
  */
384
- var t$5 = globalThis, e$5 = t$5.ShadowRoot && (void 0 === t$5.ShadyCSS || t$5.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$4 = Symbol(), o$5 = /* @__PURE__ */ new WeakMap();
372
+ var t$5 = globalThis, e$5 = t$5.ShadowRoot && (void 0 === t$5.ShadyCSS || t$5.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$4 = /* @__PURE__ */ new WeakMap();
385
373
  var n$5 = class {
386
374
  constructor(t, e, o) {
387
- if (this._$cssResult$ = !0, o !== s$4) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
375
+ if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
388
376
  this.cssText = t, this.t = e;
389
377
  }
390
378
  get styleSheet() {
@@ -392,7 +380,7 @@ var n$5 = class {
392
380
  const s = this.t;
393
381
  if (e$5 && void 0 === t) {
394
382
  const e = void 0 !== s && 1 === s.length;
395
- e && (t = o$5.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$5.set(s, t));
383
+ e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
396
384
  }
397
385
  return t;
398
386
  }
@@ -400,19 +388,19 @@ var n$5 = class {
400
388
  return this.cssText;
401
389
  }
402
390
  };
403
- var r$4 = (t) => new n$5("string" == typeof t ? t : t + "", void 0, s$4), i$3 = (t, ...e) => {
391
+ var r$4 = (t) => new n$5("string" == typeof t ? t : t + "", void 0, s$2), i$3 = (t, ...e) => {
404
392
  return new n$5(1 === t.length ? t[0] : e.reduce((e, s, o) => e + ((t) => {
405
393
  if (!0 === t._$cssResult$) return t.cssText;
406
394
  if ("number" == typeof t) return t;
407
395
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
408
- })(s) + t[o + 1], t[0]), t, s$4);
396
+ })(s) + t[o + 1], t[0]), t, s$2);
409
397
  }, S$1 = (s, o) => {
410
398
  if (e$5) s.adoptedStyleSheets = o.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
411
399
  else for (const e of o) {
412
400
  const o = document.createElement("style"), n = t$5.litNonce;
413
401
  void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
414
402
  }
415
- }, c$4 = e$5 ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
403
+ }, c$2 = e$5 ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
416
404
  let e = "";
417
405
  for (const s of t.cssRules) e += s.cssText;
418
406
  return r$4(e);
@@ -423,7 +411,7 @@ var r$4 = (t) => new n$5("string" == typeof t ? t : t + "", void 0, s$4), i$3 =
423
411
  * @license
424
412
  * Copyright 2017 Google LLC
425
413
  * SPDX-License-Identifier: BSD-3-Clause
426
- */ var { is: i$2, defineProperty: e$4, getOwnPropertyDescriptor: h$1, getOwnPropertyNames: r$3, getOwnPropertySymbols: o$4, getPrototypeOf: n$4 } = Object, a$2 = globalThis, c$3 = a$2.trustedTypes, l$2 = c$3 ? c$3.emptyScript : "", p$1 = a$2.reactiveElementPolyfillSupport, d$4 = (t, s) => t, u$3 = {
414
+ */ var { is: i$2, defineProperty: e$4, getOwnPropertyDescriptor: h$2, getOwnPropertyNames: r$3, getOwnPropertySymbols: o$3, getPrototypeOf: n$4 } = Object, a$1 = globalThis, c$1 = a$1.trustedTypes, l$2 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$3 = (t, s) => t, u$2 = {
427
415
  toAttribute(t, s) {
428
416
  switch (s) {
429
417
  case Boolean:
@@ -452,30 +440,30 @@ var r$4 = (t) => new n$5("string" == typeof t ? t : t + "", void 0, s$4), i$3 =
452
440
  }
453
441
  return i;
454
442
  }
455
- }, f$2 = (t, s) => !i$2(t, s), b$1 = {
443
+ }, f$2 = (t, s) => !i$2(t, s), b$2 = {
456
444
  attribute: !0,
457
445
  type: String,
458
- converter: u$3,
446
+ converter: u$2,
459
447
  reflect: !1,
460
448
  useDefault: !1,
461
449
  hasChanged: f$2
462
450
  };
463
- Symbol.metadata ??= Symbol("metadata"), a$2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
464
- var y$1 = class extends HTMLElement {
451
+ Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
452
+ var y$2 = class extends HTMLElement {
465
453
  static addInitializer(t) {
466
454
  this._$Ei(), (this.l ??= []).push(t);
467
455
  }
468
456
  static get observedAttributes() {
469
457
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
470
458
  }
471
- static createProperty(t, s = b$1) {
459
+ static createProperty(t, s = b$2) {
472
460
  if (s.state && (s.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = !0), this.elementProperties.set(t, s), !s.noAccessor) {
473
461
  const i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
474
462
  void 0 !== h && e$4(this.prototype, t, h);
475
463
  }
476
464
  }
477
465
  static getPropertyDescriptor(t, s, i) {
478
- const { get: e, set: r } = h$1(this.prototype, t) ?? {
466
+ const { get: e, set: r } = h$2(this.prototype, t) ?? {
479
467
  get() {
480
468
  return this[s];
481
469
  },
@@ -494,17 +482,17 @@ var y$1 = class extends HTMLElement {
494
482
  };
495
483
  }
496
484
  static getPropertyOptions(t) {
497
- return this.elementProperties.get(t) ?? b$1;
485
+ return this.elementProperties.get(t) ?? b$2;
498
486
  }
499
487
  static _$Ei() {
500
- if (this.hasOwnProperty(d$4("elementProperties"))) return;
488
+ if (this.hasOwnProperty(d$3("elementProperties"))) return;
501
489
  const t = n$4(this);
502
490
  t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
503
491
  }
504
492
  static finalize() {
505
- if (this.hasOwnProperty(d$4("finalized"))) return;
506
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$4("properties"))) {
507
- const t = this.properties, s = [...r$3(t), ...o$4(t)];
493
+ if (this.hasOwnProperty(d$3("finalized"))) return;
494
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$3("properties"))) {
495
+ const t = this.properties, s = [...r$3(t), ...o$3(t)];
508
496
  for (const i of s) this.createProperty(i, t[i]);
509
497
  }
510
498
  const t = this[Symbol.metadata];
@@ -523,8 +511,8 @@ var y$1 = class extends HTMLElement {
523
511
  const i = [];
524
512
  if (Array.isArray(s)) {
525
513
  const e = new Set(s.flat(Infinity).reverse());
526
- for (const s of e) i.unshift(c$4(s));
527
- } else void 0 !== s && i.push(c$4(s));
514
+ for (const s of e) i.unshift(c$2(s));
515
+ } else void 0 !== s && i.push(c$2(s));
528
516
  return i;
529
517
  }
530
518
  static _$Eu(t, s) {
@@ -565,14 +553,14 @@ var y$1 = class extends HTMLElement {
565
553
  _$ET(t, s) {
566
554
  const i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
567
555
  if (void 0 !== e && !0 === i.reflect) {
568
- const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$3).toAttribute(s, i.type);
556
+ const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$2).toAttribute(s, i.type);
569
557
  this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
570
558
  }
571
559
  }
572
560
  _$AK(t, s) {
573
561
  const i = this.constructor, e = i._$Eh.get(t);
574
562
  if (void 0 !== e && this._$Em !== e) {
575
- const t = i.getPropertyOptions(e), h = "function" == typeof t.converter ? { fromAttribute: t.converter } : void 0 !== t.converter?.fromAttribute ? t.converter : u$3;
563
+ const t = i.getPropertyOptions(e), h = "function" == typeof t.converter ? { fromAttribute: t.converter } : void 0 !== t.converter?.fromAttribute ? t.converter : u$2;
576
564
  this._$Em = e;
577
565
  const r = h.fromAttribute(s, t.type);
578
566
  this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
@@ -646,7 +634,7 @@ var y$1 = class extends HTMLElement {
646
634
  updated(t) {}
647
635
  firstUpdated(t) {}
648
636
  };
649
- y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$4("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$4("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$1 }), (a$2.reactiveElementVersions ??= []).push("2.1.2");
637
+ y$2.elementStyles = [], y$2.shadowRootOptions = { mode: "open" }, y$2[d$3("elementProperties")] = /* @__PURE__ */ new Map(), y$2[d$3("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$2 }), (a$1.reactiveElementVersions ??= []).push("2.1.2");
650
638
  //#endregion
651
639
  //#region ../../node_modules/.bun/lit-html@3.3.2/node_modules/lit-html/lit-html.js
652
640
  /**
@@ -654,27 +642,27 @@ y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$4("eleme
654
642
  * Copyright 2017 Google LLC
655
643
  * SPDX-License-Identifier: BSD-3-Clause
656
644
  */
657
- var t$4 = globalThis, i$1 = (t) => t, s$3 = t$4.trustedTypes, e$3 = s$3 ? s$3.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, h = "$lit$", o$3 = `lit$${Math.random().toFixed(9).slice(2)}$`, n$3 = "?" + o$3, r$2 = `<${n$3}>`, l$1 = document, c$2 = () => l$1.createComment(""), a$1 = (t) => null === t || "object" != typeof t && "function" != typeof t, u$2 = Array.isArray, d$3 = (t) => u$2(t) || "function" == typeof t?.[Symbol.iterator], f$1 = "[ \n\f\r]", v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(`>|${f$1}(?:([^\\s"'>=/]+)(${f$1}*=${f$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, x = (t) => (i, ...s) => ({
645
+ var t$4 = globalThis, i$1 = (t) => t, s$1 = t$4.trustedTypes, e$3 = s$1 ? s$1.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, h$1 = "$lit$", o$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, n$3 = "?" + o$2, r$2 = `<${n$3}>`, l$1 = document, c = () => l$1.createComment(""), a = (t) => null === t || "object" != typeof t && "function" != typeof t, u$1 = Array.isArray, d$2 = (t) => u$1(t) || "function" == typeof t?.[Symbol.iterator], f$1 = "[ \n\f\r]", v$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$1 = /-->/g, m$1 = />/g, p = RegExp(`>|${f$1}(?:([^\\s"'>=/]+)(${f$1}*=${f$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), g$1 = /'/g, $ = /"/g, y$1 = /^(?:script|style|textarea|title)$/i, x$1 = (t) => (i, ...s) => ({
658
646
  _$litType$: t,
659
647
  strings: i,
660
648
  values: s
661
- }), b = x(1);
662
- x(2);
663
- x(3);
649
+ }), b$1 = x$1(1);
650
+ x$1(2);
651
+ x$1(3);
664
652
  var E = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), C = /* @__PURE__ */ new WeakMap(), P = l$1.createTreeWalker(l$1, 129);
665
653
  function V(t, i) {
666
- if (!u$2(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
654
+ if (!u$1(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
667
655
  return void 0 !== e$3 ? e$3.createHTML(i) : i;
668
656
  }
669
657
  var N = (t, i) => {
670
658
  const s = t.length - 1, e = [];
671
- let n, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = v;
659
+ let n, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = v$1;
672
660
  for (let i = 0; i < s; i++) {
673
661
  const s = t[i];
674
662
  let a, u, d = -1, f = 0;
675
- for (; f < s.length && (c.lastIndex = f, u = c.exec(s), null !== u);) f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n ?? v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : "\"" === u[3] ? $ : g) : c === $ || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
663
+ for (; f < s.length && (c.lastIndex = f, u = c.exec(s), null !== u);) f = c.lastIndex, c === v$1 ? "!--" === u[1] ? c = _$1 : void 0 !== u[1] ? c = m$1 : void 0 !== u[2] ? (y$1.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n ?? v$1, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : "\"" === u[3] ? $ : g$1) : c === $ || c === g$1 ? c = p : c === _$1 || c === m$1 ? c = v$1 : (c = p, n = void 0);
676
664
  const x = c === p && t[i + 1].startsWith("/>") ? " " : "";
677
- l += c === v ? s + r$2 : d >= 0 ? (e.push(a), s.slice(0, d) + h + s.slice(d) + o$3 + x) : s + o$3 + (-2 === d ? i : x);
665
+ l += c === v$1 ? s + r$2 : d >= 0 ? (e.push(a), s.slice(0, d) + h$1 + s.slice(d) + o$2 + x) : s + o$2 + (-2 === d ? i : x);
678
666
  }
679
667
  return [V(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
680
668
  };
@@ -690,8 +678,8 @@ var S = class S {
690
678
  }
691
679
  for (; null !== (r = P.nextNode()) && d.length < u;) {
692
680
  if (1 === r.nodeType) {
693
- if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(h)) {
694
- const i = v[a++], s = r.getAttribute(t).split(o$3), e = /([.?@])?(.*)/.exec(i);
681
+ if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(h$1)) {
682
+ const i = v[a++], s = r.getAttribute(t).split(o$2), e = /([.?@])?(.*)/.exec(i);
695
683
  d.push({
696
684
  type: 1,
697
685
  index: l,
@@ -699,19 +687,19 @@ var S = class S {
699
687
  strings: s,
700
688
  ctor: "." === e[1] ? I : "?" === e[1] ? L : "@" === e[1] ? z : H
701
689
  }), r.removeAttribute(t);
702
- } else t.startsWith(o$3) && (d.push({
690
+ } else t.startsWith(o$2) && (d.push({
703
691
  type: 6,
704
692
  index: l
705
693
  }), r.removeAttribute(t));
706
- if (y.test(r.tagName)) {
707
- const t = r.textContent.split(o$3), i = t.length - 1;
694
+ if (y$1.test(r.tagName)) {
695
+ const t = r.textContent.split(o$2), i = t.length - 1;
708
696
  if (i > 0) {
709
- r.textContent = s$3 ? s$3.emptyScript : "";
710
- for (let s = 0; s < i; s++) r.append(t[s], c$2()), P.nextNode(), d.push({
697
+ r.textContent = s$1 ? s$1.emptyScript : "";
698
+ for (let s = 0; s < i; s++) r.append(t[s], c()), P.nextNode(), d.push({
711
699
  type: 2,
712
700
  index: ++l
713
701
  });
714
- r.append(t[i], c$2());
702
+ r.append(t[i], c());
715
703
  }
716
704
  }
717
705
  } else if (8 === r.nodeType) if (r.data === n$3) d.push({
@@ -720,10 +708,10 @@ var S = class S {
720
708
  });
721
709
  else {
722
710
  let t = -1;
723
- for (; -1 !== (t = r.data.indexOf(o$3, t + 1));) d.push({
711
+ for (; -1 !== (t = r.data.indexOf(o$2, t + 1));) d.push({
724
712
  type: 7,
725
713
  index: l
726
- }), t += o$3.length - 1;
714
+ }), t += o$2.length - 1;
727
715
  }
728
716
  l++;
729
717
  }
@@ -736,7 +724,7 @@ var S = class S {
736
724
  function M(t, i, s = t, e) {
737
725
  if (i === E) return i;
738
726
  let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
739
- const o = a$1(i) ? void 0 : i._$litDirective$;
727
+ const o = a(i) ? void 0 : i._$litDirective$;
740
728
  return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = M(t, h._$AS(t, i.values), h, e)), i;
741
729
  }
742
730
  var R = class {
@@ -786,7 +774,7 @@ var k = class k {
786
774
  return this._$AB;
787
775
  }
788
776
  _$AI(t, i = this) {
789
- t = M(this, t, i), a$1(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d$3(t) ? this.k(t) : this._(t);
777
+ t = M(this, t, i), a(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d$2(t) ? this.k(t) : this._(t);
790
778
  }
791
779
  O(t) {
792
780
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -795,7 +783,7 @@ var k = class k {
795
783
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
796
784
  }
797
785
  _(t) {
798
- this._$AH !== A && a$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l$1.createTextNode(t)), this._$AH = t;
786
+ this._$AH !== A && a(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l$1.createTextNode(t)), this._$AH = t;
799
787
  }
800
788
  $(t) {
801
789
  const { values: i, _$litType$: s } = t, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = S.createElement(V(s.h, s.h[0]), this.options)), s);
@@ -810,10 +798,10 @@ var k = class k {
810
798
  return void 0 === i && C.set(t.strings, i = new S(t)), i;
811
799
  }
812
800
  k(t) {
813
- u$2(this._$AH) || (this._$AH = [], this._$AR());
801
+ u$1(this._$AH) || (this._$AH = [], this._$AR());
814
802
  const i = this._$AH;
815
803
  let s, e = 0;
816
- for (const h of t) e === i.length ? i.push(s = new k(this.O(c$2()), this.O(c$2()), this, this.options)) : s = i[e], s._$AI(h), e++;
804
+ for (const h of t) e === i.length ? i.push(s = new k(this.O(c()), this.O(c()), this, this.options)) : s = i[e], s._$AI(h), e++;
817
805
  e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
818
806
  }
819
807
  _$AR(t = this._$AA.nextSibling, s) {
@@ -839,11 +827,11 @@ var H = class {
839
827
  _$AI(t, i = this, s, e) {
840
828
  const h = this.strings;
841
829
  let o = !1;
842
- if (void 0 === h) t = M(this, t, i, 0), o = !a$1(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
830
+ if (void 0 === h) t = M(this, t, i, 0), o = !a(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
843
831
  else {
844
832
  const e = t;
845
833
  let n, r;
846
- for (t = h[0], n = 0; n < h.length - 1; n++) r = M(this, e[s + n], i, n), r === E && (r = this._$AH[n]), o ||= !a$1(r) || r !== this._$AH[n], r === A ? t = A : t !== A && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
834
+ for (t = h[0], n = 0; n < h.length - 1; n++) r = M(this, e[s + n], i, n), r === E && (r = this._$AH[n]), o ||= !a(r) || r !== this._$AH[n], r === A ? t = A : t !== A && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
847
835
  }
848
836
  o && !e && this.j(t);
849
837
  }
@@ -897,7 +885,7 @@ var D = (t, i, s) => {
897
885
  let h = e._$litPart$;
898
886
  if (void 0 === h) {
899
887
  const t = s?.renderBefore ?? null;
900
- e._$litPart$ = h = new k(i.insertBefore(c$2(), t), t, void 0, s ?? {});
888
+ e._$litPart$ = h = new k(i.insertBefore(c(), t), t, void 0, s ?? {});
901
889
  }
902
890
  return h._$AI(t), h;
903
891
  };
@@ -907,8 +895,8 @@ var D = (t, i, s) => {
907
895
  * @license
908
896
  * Copyright 2017 Google LLC
909
897
  * SPDX-License-Identifier: BSD-3-Clause
910
- */ var s$2 = globalThis;
911
- var i = class extends y$1 {
898
+ */ var s = globalThis;
899
+ var i = class extends y$2 {
912
900
  constructor() {
913
901
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
914
902
  }
@@ -930,23 +918,23 @@ var i = class extends y$1 {
930
918
  return E;
931
919
  }
932
920
  };
933
- i._$litElement$ = !0, i["finalized"] = !0, s$2.litElementHydrateSupport?.({ LitElement: i });
934
- var o$2 = s$2.litElementPolyfillSupport;
935
- o$2?.({ LitElement: i });
936
- (s$2.litElementVersions ??= []).push("4.2.2");
921
+ i._$litElement$ = !0, i["finalized"] = !0, s.litElementHydrateSupport?.({ LitElement: i });
922
+ var o$1 = s.litElementPolyfillSupport;
923
+ o$1?.({ LitElement: i });
924
+ (s.litElementVersions ??= []).push("4.2.2");
937
925
  //#endregion
938
926
  //#region ../../node_modules/.bun/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js
939
927
  /**
940
928
  * @license
941
929
  * Copyright 2017 Google LLC
942
930
  * SPDX-License-Identifier: BSD-3-Clause
943
- */ var o$1 = {
931
+ */ var o = {
944
932
  attribute: !0,
945
933
  type: String,
946
- converter: u$3,
934
+ converter: u$2,
947
935
  reflect: !1,
948
936
  hasChanged: f$2
949
- }, r$1 = (t = o$1, e, r) => {
937
+ }, r$1 = (t = o, e, r) => {
950
938
  const { kind: n, metadata: i } = r;
951
939
  let s = globalThis.litPropertyMetadata.get(i);
952
940
  if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), "setter" === n && ((t = Object.create(t)).wrapped = !0), s.set(r.name, t), "accessor" === n) {
@@ -1030,7 +1018,7 @@ var e$2 = (e, t, c) => (c.configurable = !0, c.enumerable = !0, Reflect.decorate
1030
1018
  }
1031
1019
  //#endregion
1032
1020
  //#region ../@intlayer/editor/dist/esm/components/ContentSelectorWrapper.mjs
1033
- var d$2 = class extends i {
1021
+ var d$1 = class extends i {
1034
1022
  constructor(...e) {
1035
1023
  super(...e), this.keyPathJson = `[]`, this.dictionaryKey = ``, this._editorEnabled = !1, this._isInIframe = !1, this._isSelected = !1, this._editedValue = void 0, this._unsubManager = null, this._unsubEnabled = null, this._unsubFocused = null, this._unsubEditedContent = null;
1036
1024
  }
@@ -1058,7 +1046,7 @@ var d$2 = class extends i {
1058
1046
  }
1059
1047
  _subscribeToManager() {
1060
1048
  let e = r$5();
1061
- e && this._setupManagerSubscriptions(e), this._unsubManager = a$3((e) => {
1049
+ e && this._setupManagerSubscriptions(e), this._unsubManager = a$2((e) => {
1062
1050
  this._unsubEnabled?.(), this._unsubFocused?.(), this._unsubEditedContent?.(), this._unsubEnabled = null, this._unsubFocused = null, this._unsubEditedContent = null, e ? this._setupManagerSubscriptions(e) : (this._editorEnabled = !1, this._isSelected = !1, this._editedValue = void 0);
1063
1051
  });
1064
1052
  }
@@ -1127,9 +1115,9 @@ var d$2 = class extends i {
1127
1115
  n.stopPropagation(), r$5()?.messenger.send(`${e$9.INTLAYER_HOVERED_CONTENT_CHANGED}/post`, null);
1128
1116
  }
1129
1117
  render() {
1130
- if (!this._isInIframe || !this._editorEnabled) return b`<slot></slot>`;
1131
- let e = this._editedValue, t = typeof e == `string` || typeof e == `number` || typeof e == `boolean` ? e : b`<slot></slot>`;
1132
- return b`
1118
+ if (!this._isInIframe || !this._editorEnabled) return b$1`<slot></slot>`;
1119
+ let e = this._editedValue, t = typeof e == `string` || typeof e == `number` || typeof e == `boolean` ? e : b$1`<slot></slot>`;
1120
+ return b$1`
1133
1121
  <intlayer-content-selector
1134
1122
  ?is-selecting=${this._isSelected}
1135
1123
  @intlayer:press=${this._handlePress}
@@ -1144,16 +1132,16 @@ var d$2 = class extends i {
1144
1132
  e$6([n$2({
1145
1133
  type: String,
1146
1134
  attribute: `key-path`
1147
- })], d$2.prototype, `keyPathJson`, void 0), e$6([n$2({
1135
+ })], d$1.prototype, `keyPathJson`, void 0), e$6([n$2({
1148
1136
  type: String,
1149
1137
  attribute: `dictionary-key`
1150
- })], d$2.prototype, `dictionaryKey`, void 0), e$6([r()], d$2.prototype, `_editorEnabled`, void 0), e$6([r()], d$2.prototype, `_isInIframe`, void 0), e$6([r()], d$2.prototype, `_isSelected`, void 0), e$6([r()], d$2.prototype, `_editedValue`, void 0);
1138
+ })], d$1.prototype, `dictionaryKey`, void 0), e$6([r()], d$1.prototype, `_editorEnabled`, void 0), e$6([r()], d$1.prototype, `_isInIframe`, void 0), e$6([r()], d$1.prototype, `_isSelected`, void 0), e$6([r()], d$1.prototype, `_editedValue`, void 0);
1151
1139
  var f = () => {
1152
- typeof customElements > `u` || customElements.get(`intlayer-content-selector-wrapper`) || customElements.define(`intlayer-content-selector-wrapper`, d$2);
1140
+ typeof customElements > `u` || customElements.get(`intlayer-content-selector-wrapper`) || customElements.define(`intlayer-content-selector-wrapper`, d$1);
1153
1141
  };
1154
1142
  //#endregion
1155
1143
  //#region ../@intlayer/editor/dist/esm/components/EditedContent.mjs
1156
- var u$1 = class extends i {
1144
+ var u = class extends i {
1157
1145
  constructor(...e) {
1158
1146
  super(...e), this.dictionaryKey = ``, this.keyPathJson = `[]`, this.locale = ``, this._editedText = null, this._unsubManager = null, this._unsubEditedContent = null;
1159
1147
  }
@@ -1191,11 +1179,11 @@ var u$1 = class extends i {
1191
1179
  return;
1192
1180
  }
1193
1181
  if (typeof n == `object`) {
1194
- let e = this.locale || void 0, r = u$4(n, {
1182
+ let e = this.locale || void 0, r = C$1(n, {
1195
1183
  locale: e,
1196
1184
  dictionaryKey: this.dictionaryKey,
1197
1185
  keyPath: t
1198
- }, l$3(e));
1186
+ }, S$2(e));
1199
1187
  typeof r == `string` || typeof r == `number` ? this._editedText = String(r) : (console.error(`[intlayer-edited-content] Incorrect edited content format. Expected string. Value: ${JSON.stringify(r)}`), this._editedText = null);
1200
1188
  return;
1201
1189
  }
@@ -1208,17 +1196,17 @@ var u$1 = class extends i {
1208
1196
  }
1209
1197
  _subscribeToManager() {
1210
1198
  let n = r$5();
1211
- n && this._setupManagerSubscriptions(n), this._unsubManager = a$3((e) => {
1199
+ n && this._setupManagerSubscriptions(n), this._unsubManager = a$2((e) => {
1212
1200
  this._unsubEditedContent?.(), this._unsubEditedContent = null, e ? this._setupManagerSubscriptions(e) : this._editedText = null;
1213
1201
  });
1214
1202
  }
1215
1203
  render() {
1216
- return b`
1204
+ return b$1`
1217
1205
  <intlayer-content-selector-wrapper
1218
1206
  key-path=${this.keyPathJson}
1219
1207
  dictionary-key=${this.dictionaryKey}
1220
1208
  >
1221
- ${this._editedText === null ? b`<slot></slot>` : this._editedText}
1209
+ ${this._editedText === null ? b$1`<slot></slot>` : this._editedText}
1222
1210
  </intlayer-content-selector-wrapper>
1223
1211
  `;
1224
1212
  }
@@ -1226,15 +1214,15 @@ var u$1 = class extends i {
1226
1214
  e$6([n$2({
1227
1215
  type: String,
1228
1216
  attribute: `dictionary-key`
1229
- })], u$1.prototype, `dictionaryKey`, void 0), e$6([n$2({
1217
+ })], u.prototype, `dictionaryKey`, void 0), e$6([n$2({
1230
1218
  type: String,
1231
1219
  attribute: `key-path`
1232
- })], u$1.prototype, `keyPathJson`, void 0), e$6([n$2({
1220
+ })], u.prototype, `keyPathJson`, void 0), e$6([n$2({
1233
1221
  type: String,
1234
1222
  attribute: `locale`
1235
- })], u$1.prototype, `locale`, void 0), e$6([r()], u$1.prototype, `_editedText`, void 0);
1236
- var d$1 = () => {
1237
- typeof customElements > `u` || customElements.get(`intlayer-edited-content`) || customElements.define(`intlayer-edited-content`, u$1);
1223
+ })], u.prototype, `locale`, void 0), e$6([r()], u.prototype, `_editedText`, void 0);
1224
+ var d = () => {
1225
+ typeof customElements > `u` || customElements.get(`intlayer-edited-content`) || customElements.define(`intlayer-edited-content`, u);
1238
1226
  };
1239
1227
  //#endregion
1240
1228
  //#region ../@intlayer/editor/dist/esm/core/CrossFrameMessenger.mjs
@@ -1486,7 +1474,7 @@ var l = class {
1486
1474
  let i = this.editedContent.value ?? {}, a = (this.localeDictionaries.value ?? {})[e]?.content, c = structuredClone(i[e]?.content ?? a), l = n;
1487
1475
  if (!r) {
1488
1476
  let e = 0, t = n.slice(0, -1), r = n[n.length - 1], i = r.key;
1489
- for (; t$13(c, l) !== void 0;) e++, i = e === 0 ? r.key : `${r.key} (${e})`, l = [...t, {
1477
+ for (; t$12(c, l) !== void 0;) e++, i = e === 0 ? r.key : `${r.key} (${e})`, l = [...t, {
1490
1478
  ...r,
1491
1479
  key: i
1492
1480
  }];
@@ -1500,8 +1488,8 @@ var l = class {
1500
1488
  }
1501
1489
  });
1502
1490
  }
1503
- renameContent(e, t$14, n = []) {
1504
- let r = this.editedContent.value ?? {}, i = (this.localeDictionaries.value ?? {})[e]?.content, a = t(structuredClone(r[e]?.content ?? i), t$14, n);
1491
+ renameContent(e, t$13, n = []) {
1492
+ let r = this.editedContent.value ?? {}, i = (this.localeDictionaries.value ?? {})[e]?.content, a = t(structuredClone(r[e]?.content ?? i), t$13, n);
1505
1493
  this.editedContent.set({
1506
1494
  ...r,
1507
1495
  [e]: {
@@ -1511,7 +1499,7 @@ var l = class {
1511
1499
  });
1512
1500
  }
1513
1501
  removeContent(e, t) {
1514
- let n = this.editedContent.value ?? {}, r = (this.localeDictionaries.value ?? {})[e]?.content, i = t$1(structuredClone(n[e]?.content ?? r), t, t$13(r, t));
1502
+ let n = this.editedContent.value ?? {}, r = (this.localeDictionaries.value ?? {})[e]?.content, i = t$1(structuredClone(n[e]?.content ?? r), t, t$12(r, t));
1515
1503
  this.editedContent.set({
1516
1504
  ...n,
1517
1505
  [e]: {
@@ -1535,10 +1523,10 @@ var l = class {
1535
1523
  let n = this.editedContent.value;
1536
1524
  if (!n) return;
1537
1525
  let r = t.filter((e) => e.type !== e$18.Translation), i = this.localeDictionaries.value;
1538
- if (e.includes(`:local:`) || e.includes(`:remote:`)) return i && !(e in i) ? void 0 : t$13(n[e]?.content ?? {}, r, this.currentLocale.value);
1526
+ if (e.includes(`:local:`) || e.includes(`:remote:`)) return i && !(e in i) ? void 0 : t$12(n[e]?.content ?? {}, r, this.currentLocale.value);
1539
1527
  let o = Object.keys(n).filter((t) => t.startsWith(`${e}:`) && (!i || t in i));
1540
1528
  for (let e of o) {
1541
- let t = t$13(n[e]?.content ?? {}, r, this.currentLocale.value);
1529
+ let t = t$12(n[e]?.content ?? {}, r, this.currentLocale.value);
1542
1530
  if (t) return t;
1543
1531
  }
1544
1532
  }
@@ -1575,8 +1563,31 @@ var l = class {
1575
1563
  }
1576
1564
  };
1577
1565
  //#endregion
1578
- //#region ../@intlayer/editor/dist/esm/components/IntlayerEditor.mjs
1579
- var s$1 = class extends i {
1566
+ //#region ../@intlayer/editor/dist/esm/components-RtOXxg9h.mjs
1567
+ var m = () => {
1568
+ let { editor: e } = configuration_default ?? {};
1569
+ return {
1570
+ allowedOrigins: [e?.editorURL, e?.cmsURL].filter(Boolean),
1571
+ postMessageFn: (e, t) => {
1572
+ typeof window > `u` || window.self !== window.top && window.parent?.postMessage(e, t);
1573
+ }
1574
+ };
1575
+ };
1576
+ var h = 0;
1577
+ var g = () => {
1578
+ h++;
1579
+ let t = r$5();
1580
+ if (t) return t;
1581
+ let r = new l({
1582
+ mode: `client`,
1583
+ messenger: m(),
1584
+ configuration: configuration_default
1585
+ });
1586
+ return i$4(r), x(), r.start(), r;
1587
+ }, _ = () => {
1588
+ h = Math.max(0, h - 1), !(h > 0) && (r$5()?.stop(), i$4(null));
1589
+ };
1590
+ var v = class extends i {
1580
1591
  constructor(...e) {
1581
1592
  super(...e), this._initialized = !1, this._unsubManager = null;
1582
1593
  }
@@ -1587,28 +1598,26 @@ var s$1 = class extends i {
1587
1598
  super.connectedCallback(), this._init();
1588
1599
  }
1589
1600
  disconnectedCallback() {
1590
- super.disconnectedCallback(), this._unsubManager?.(), this._unsubManager = null, this._initialized &&= (c(), !1);
1601
+ super.disconnectedCallback(), this._unsubManager?.(), this._unsubManager = null, this._initialized &&= (_(), !1);
1591
1602
  }
1592
1603
  updated(e) {
1593
1604
  e.has(`configuration`) && !this._initialized && this._init(), e.has(`locale`) && this.locale && this._syncLocale(this.locale);
1594
1605
  }
1595
1606
  _init() {
1596
- this._initialized || (s(), this._initialized = !0, this.locale && this._syncLocale(this.locale));
1607
+ this._initialized || (g(), this._initialized = !0, this.locale && this._syncLocale(this.locale));
1597
1608
  }
1598
1609
  _syncLocale(n) {
1599
1610
  let r = r$5();
1600
- r ? r.currentLocale.set(n) : (this._unsubManager?.(), this._unsubManager = a$3((e) => {
1611
+ r ? r.currentLocale.set(n) : (this._unsubManager?.(), this._unsubManager = a$2((e) => {
1601
1612
  e && (this._unsubManager?.(), this._unsubManager = null, e.currentLocale.set(n));
1602
1613
  }));
1603
1614
  }
1604
1615
  };
1605
- e$6([n$2({ attribute: !1 })], s$1.prototype, `configuration`, void 0), e$6([n$2({ type: String })], s$1.prototype, `locale`, void 0);
1606
- var c$1 = () => {
1607
- typeof customElements > `u` || customElements.get(`intlayer-editor`) || customElements.define(`intlayer-editor`, s$1);
1616
+ e$6([n$2({ attribute: !1 })], v.prototype, `configuration`, void 0), e$6([n$2({ type: String })], v.prototype, `locale`, void 0);
1617
+ var y = () => {
1618
+ typeof customElements > `u` || customElements.get(`intlayer-editor`) || customElements.define(`intlayer-editor`, v);
1608
1619
  };
1609
- //#endregion
1610
- //#region ../@intlayer/editor/dist/esm/components/ContentSelector.mjs
1611
- var u = class extends i {
1620
+ var b = class extends i {
1612
1621
  constructor(...e) {
1613
1622
  super(...e), this.isSelecting = !1, this.pressDuration = 250, this._isHovered = !1, this._isSelectingState = !1, this._pressTimer = null, this._clickOutsideHandler = null;
1614
1623
  }
@@ -1670,7 +1679,7 @@ var u = class extends i {
1670
1679
  this._isSelectingState = !1;
1671
1680
  }
1672
1681
  render() {
1673
- return b`
1682
+ return b$1`
1674
1683
  <span
1675
1684
  class="wrapper"
1676
1685
  ?data-active=${this.isSelecting || this._isSelectingState || this._isHovered}
@@ -1695,45 +1704,20 @@ var u = class extends i {
1695
1704
  e$6([n$2({
1696
1705
  type: Boolean,
1697
1706
  attribute: `is-selecting`
1698
- })], u.prototype, `isSelecting`, void 0), e$6([n$2({
1707
+ })], b.prototype, `isSelecting`, void 0), e$6([n$2({
1699
1708
  type: Number,
1700
1709
  attribute: `press-duration`
1701
- })], u.prototype, `pressDuration`, void 0), e$6([r()], u.prototype, `_isHovered`, void 0), e$6([r()], u.prototype, `_isSelectingState`, void 0), e$6([e$1(`.wrapper`)], u.prototype, `_wrapper`, void 0);
1702
- var d = () => {
1703
- typeof customElements > `u` || (customElements.get(`intlayer-content-selector`) || customElements.define(`intlayer-content-selector`, u), f(), d$1(), c$1());
1704
- };
1705
- //#endregion
1706
- //#region ../@intlayer/editor/dist/esm/core/initEditorClient.mjs
1707
- var a = () => {
1708
- let { editor: e } = configuration_default ?? {};
1709
- return {
1710
- allowedOrigins: [e?.editorURL, e?.cmsURL].filter(Boolean),
1711
- postMessageFn: (e, t) => {
1712
- typeof window > `u` || window.self !== window.top && window.parent?.postMessage(e, t);
1713
- }
1714
- };
1715
- };
1716
- var o = 0;
1717
- var s = () => {
1718
- o++;
1719
- let s = r$5();
1720
- if (s) return s;
1721
- let c = new l({
1722
- mode: `client`,
1723
- messenger: a(),
1724
- configuration: configuration_default
1725
- });
1726
- return i$4(c), d(), c.start(), c;
1727
- }, c = () => {
1728
- o = Math.max(0, o - 1), !(o > 0) && (r$5()?.stop(), i$4(null));
1710
+ })], b.prototype, `pressDuration`, void 0), e$6([r()], b.prototype, `_isHovered`, void 0), e$6([r()], b.prototype, `_isSelectingState`, void 0), e$6([e$1(`.wrapper`)], b.prototype, `_wrapper`, void 0);
1711
+ var x = () => {
1712
+ typeof customElements > `u` || (customElements.get(`intlayer-content-selector`) || customElements.define(`intlayer-content-selector`, b), f(), d(), y());
1729
1713
  };
1730
1714
  //#endregion
1731
1715
  //#region ../@intlayer/editor/dist/esm/index.mjs
1732
1716
  var esm_exports = /* @__PURE__ */ __exportAll({
1733
1717
  getGlobalEditorManager: () => r$5,
1734
- initEditorClient: () => s,
1735
- onGlobalEditorManagerChange: () => a$3,
1736
- stopEditorClient: () => c
1718
+ initEditorClient: () => g,
1719
+ onGlobalEditorManagerChange: () => a$2,
1720
+ stopEditorClient: () => _
1737
1721
  });
1738
1722
  //#endregion
1739
- export { i$4 as a, e$11 as c, d$5 as d, f$3 as f, i$5 as g, s$5 as h, e as i, n$7 as l, p$2 as m, d as n, e$8 as o, l$4 as p, l as r, e$9 as s, esm_exports as t, c$5 as u };
1723
+ export { i$4 as a, e$11 as c, d$4 as d, g$2 as f, i$5 as g, y$3 as h, e as i, _$2 as l, x$2 as m, x as n, e$8 as o, h$3 as p, l as r, e$9 as s, esm_exports as t, b$3 as u };