@webwriter/quiz 1.1.5 → 2.0.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 (165) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +778 -0
  3. package/assets/icons/grip-horizontal.svg +8 -0
  4. package/assets/icons/grip-vertical.svg +8 -0
  5. package/assets/icons/truefalse.svg +6 -0
  6. package/custom-elements.json +2779 -0
  7. package/custom.d.ts +5 -1
  8. package/dist/api/index.d.ts +27 -0
  9. package/dist/api/index.js +40 -0
  10. package/dist/migrate.js +1434 -0
  11. package/dist/widgets/webwriter-choice-item.js +4095 -3818
  12. package/dist/widgets/webwriter-choice.js +2179 -5598
  13. package/dist/widgets/webwriter-gap-item.js +3987 -0
  14. package/dist/widgets/webwriter-gap.js +2908 -0
  15. package/dist/widgets/webwriter-mark.js +4347 -3368
  16. package/dist/widgets/webwriter-order-item.js +4038 -3197
  17. package/dist/widgets/webwriter-order.js +2885 -4200
  18. package/dist/widgets/webwriter-pairing-item.js +1070 -2330
  19. package/dist/widgets/webwriter-pairing.js +2968 -4231
  20. package/dist/widgets/webwriter-quiz-hint.js +2469 -0
  21. package/dist/widgets/webwriter-quiz.js +3337 -4364
  22. package/dist/widgets/webwriter-speech.js +6100 -5120
  23. package/dist/widgets/webwriter-task-prompt.js +4787 -2068
  24. package/dist/widgets/webwriter-task.js +2264 -8157
  25. package/dist/widgets/webwriter-text.js +4075 -4132
  26. package/dist/widgets/webwriter-true-false.js +4674 -0
  27. package/editing-config.json +106 -0
  28. package/lit-localize.json +20 -14
  29. package/localization/de.xlf +395 -65
  30. package/localization/es.xlf +396 -61
  31. package/localization/fr.xlf +396 -61
  32. package/localization/generated/de.ts +97 -15
  33. package/localization/generated/es.ts +97 -15
  34. package/localization/generated/fr.ts +98 -16
  35. package/localization/generated/index.d.ts +5 -0
  36. package/localization/generated/it.ts +96 -14
  37. package/localization/generated/locale-codes.js +0 -48
  38. package/localization/generated/nl.ts +99 -17
  39. package/localization/it.xlf +396 -61
  40. package/localization/nl.xlf +396 -61
  41. package/package.json +120 -254
  42. package/scripts/apply-translations.mjs +97 -0
  43. package/src/api/index.ts +72 -0
  44. package/src/lib/artboard.ts +686 -0
  45. package/src/lib/draggable-grid.ts +432 -0
  46. package/src/lib/encrypted-property.ts +202 -0
  47. package/src/lib/hint-popup.ts +152 -0
  48. package/src/lib/utils.ts +97 -0
  49. package/src/lib/webwriter-quirks.ts +121 -0
  50. package/src/migrate/index.ts +622 -0
  51. package/src/migrate/legacy-solution.ts +362 -0
  52. package/src/snippets/order.html +8 -7
  53. package/src/widgets/choice/webwriter-choice-item.ts +316 -0
  54. package/src/widgets/choice/webwriter-choice.ts +328 -0
  55. package/src/widgets/choice/webwriter-true-false.ts +113 -0
  56. package/src/widgets/dnd/webwriter-dnd-draggable.ts +28 -0
  57. package/src/widgets/dnd/webwriter-dnd-dropzone.ts +9 -0
  58. package/src/widgets/dnd/webwriter-dnd.ts +36 -0
  59. package/src/widgets/gap/webwriter-gap-item.ts +250 -0
  60. package/src/widgets/gap/webwriter-gap.ts +447 -0
  61. package/src/widgets/order/webwriter-order-item.ts +243 -0
  62. package/src/widgets/order/webwriter-order.ts +282 -0
  63. package/src/widgets/pairing/webwriter-pairing-item.ts +46 -0
  64. package/src/widgets/pairing/webwriter-pairing.ts +934 -0
  65. package/src/widgets/speech/audio-player.ts +325 -0
  66. package/src/widgets/speech/audio-recorder.ts +285 -0
  67. package/src/widgets/speech/waveform.ts +113 -0
  68. package/src/widgets/speech/webwriter-speech.ts +87 -0
  69. package/src/widgets/webwriter-mark.ts +366 -424
  70. package/src/widgets/webwriter-quiz-hint.ts +36 -0
  71. package/src/widgets/webwriter-quiz.ts +318 -280
  72. package/src/widgets/webwriter-task-prompt.ts +43 -18
  73. package/src/widgets/webwriter-task.ts +212 -551
  74. package/src/widgets/webwriter-text.ts +286 -172
  75. package/tsconfig.api.json +12 -0
  76. package/tsconfig.json +7 -6
  77. package/dist/widgets/webwriter-choice.css +0 -444
  78. package/dist/widgets/webwriter-cloze-gap.css +0 -444
  79. package/dist/widgets/webwriter-cloze-gap.js +0 -5727
  80. package/dist/widgets/webwriter-cloze.css +0 -444
  81. package/dist/widgets/webwriter-cloze.js +0 -3653
  82. package/dist/widgets/webwriter-mark.css +0 -444
  83. package/dist/widgets/webwriter-order.css +0 -444
  84. package/dist/widgets/webwriter-pairing-item.css +0 -444
  85. package/dist/widgets/webwriter-pairing.css +0 -444
  86. package/dist/widgets/webwriter-quiz.css +0 -444
  87. package/dist/widgets/webwriter-task-explainer.css +0 -444
  88. package/dist/widgets/webwriter-task-explainer.js +0 -2769
  89. package/dist/widgets/webwriter-task-hint.css +0 -444
  90. package/dist/widgets/webwriter-task-hint.js +0 -2708
  91. package/dist/widgets/webwriter-task.css +0 -444
  92. package/dist/widgets/webwriter-text.css +0 -444
  93. package/localization/bg.xlf +0 -72
  94. package/localization/cs.xlf +0 -72
  95. package/localization/da.xlf +0 -72
  96. package/localization/el.xlf +0 -72
  97. package/localization/et.xlf +0 -72
  98. package/localization/fi.xlf +0 -72
  99. package/localization/generated/bg.ts +0 -31
  100. package/localization/generated/cs.ts +0 -31
  101. package/localization/generated/da.ts +0 -31
  102. package/localization/generated/el.ts +0 -31
  103. package/localization/generated/et.ts +0 -31
  104. package/localization/generated/fi.ts +0 -31
  105. package/localization/generated/hu.ts +0 -31
  106. package/localization/generated/id.ts +0 -31
  107. package/localization/generated/ja.ts +0 -31
  108. package/localization/generated/ko.ts +0 -31
  109. package/localization/generated/lt.ts +0 -31
  110. package/localization/generated/lv.ts +0 -31
  111. package/localization/generated/nb.ts +0 -31
  112. package/localization/generated/pl.ts +0 -31
  113. package/localization/generated/pt-BR.ts +0 -31
  114. package/localization/generated/pt-PT.ts +0 -31
  115. package/localization/generated/ro.ts +0 -31
  116. package/localization/generated/ru.ts +0 -31
  117. package/localization/generated/sk.ts +0 -31
  118. package/localization/generated/sl.ts +0 -31
  119. package/localization/generated/sv.ts +0 -31
  120. package/localization/generated/tr.ts +0 -31
  121. package/localization/generated/uk.ts +0 -31
  122. package/localization/generated/zh-hans.ts +0 -31
  123. package/localization/hu.xlf +0 -72
  124. package/localization/id.xlf +0 -72
  125. package/localization/ja.xlf +0 -72
  126. package/localization/ko.xlf +0 -72
  127. package/localization/lt.xlf +0 -72
  128. package/localization/lv.xlf +0 -72
  129. package/localization/nb.xlf +0 -72
  130. package/localization/pl.xlf +0 -72
  131. package/localization/pt-BR.xlf +0 -72
  132. package/localization/pt-PT.xlf +0 -72
  133. package/localization/ro.xlf +0 -72
  134. package/localization/ru.xlf +0 -72
  135. package/localization/sk.xlf +0 -72
  136. package/localization/sl.xlf +0 -72
  137. package/localization/sv.xlf +0 -72
  138. package/localization/tr.xlf +0 -72
  139. package/localization/uk.xlf +0 -72
  140. package/localization/zh-hans.xlf +0 -72
  141. package/src/lib/combobox.ts +0 -456
  142. package/src/lib/highlighter-fill.svg +0 -6
  143. package/src/snippets/Beispiel-Choice.html +0 -57
  144. package/src/snippets/Beispiel-Mark.html +0 -14
  145. package/src/snippets/Beispiel-Order.html +0 -52
  146. package/src/snippets/Beispiel-Text.html +0 -20
  147. package/src/snippets/blank.html +0 -1
  148. package/src/snippets/choice.html +0 -8
  149. package/src/snippets/cloze.html +0 -4
  150. package/src/snippets/mark.html +0 -4
  151. package/src/snippets/pairing.html +0 -10
  152. package/src/snippets/speech.html +0 -4
  153. package/src/snippets/text.html +0 -4
  154. package/src/snippets/wordsearch.html +0 -4
  155. package/src/widgets/webwriter-choice-item.ts +0 -257
  156. package/src/widgets/webwriter-choice.ts +0 -353
  157. package/src/widgets/webwriter-cloze-gap.ts +0 -216
  158. package/src/widgets/webwriter-cloze.ts +0 -136
  159. package/src/widgets/webwriter-order-item.ts +0 -441
  160. package/src/widgets/webwriter-order.ts +0 -327
  161. package/src/widgets/webwriter-pairing-item.ts +0 -161
  162. package/src/widgets/webwriter-pairing.ts +0 -193
  163. package/src/widgets/webwriter-speech.ts +0 -273
  164. package/src/widgets/webwriter-task-explainer.ts +0 -43
  165. package/src/widgets/webwriter-task-hint.ts +0 -23
@@ -1,3653 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
6
- var __typeError = (msg2) => {
7
- throw TypeError(msg2);
8
- };
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
- var __glob = (map) => (path) => {
12
- var fn = map[path];
13
- if (fn) return fn();
14
- throw new Error("Module not found in bundle: " + path);
15
- };
16
- var __esm = (fn, res) => function __init() {
17
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
18
- };
19
- var __export = (target, all) => {
20
- for (var name in all)
21
- __defProp(target, name, { get: all[name], enumerable: true });
22
- };
23
- var __decoratorStart = (base) => [, , , __create(base?.[__knownSymbol("metadata")] ?? null)];
24
- var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
25
- var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
26
- var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
27
- var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
28
- var __runInitializers = (array, flags, self, value) => {
29
- for (var i8 = 0, fns = array[flags >> 1], n8 = fns && fns.length; i8 < n8; i8++) flags & 1 ? fns[i8].call(self) : value = fns[i8].call(self, value);
30
- return value;
31
- };
32
- var __decorateElement = (array, flags, name, decorators, target, extra) => {
33
- var fn, it, done, ctx, access, k3 = flags & 7, s4 = !!(flags & 8), p4 = !!(flags & 16);
34
- var j3 = k3 > 3 ? array.length + 1 : k3 ? s4 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5];
35
- var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []);
36
- var desc = k3 && (!p4 && !s4 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p4) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() {
37
- return __privateGet(this, extra);
38
- }, set [name](x3) {
39
- return __privateSet(this, extra, x3);
40
- } }, name));
41
- k3 ? p4 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name);
42
- for (var i8 = decorators.length - 1; i8 >= 0; i8--) {
43
- ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers);
44
- if (k3) {
45
- ctx.static = s4, ctx.private = p4, access = ctx.access = { has: p4 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 };
46
- if (k3 ^ 3) access.get = p4 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name];
47
- if (k3 > 2) access.set = p4 ? (x3, y4) => __privateSet(x3, target, y4, k3 ^ 4 ? extra : desc.set) : (x3, y4) => x3[name] = y4;
48
- }
49
- it = (0, decorators[i8])(k3 ? k3 < 4 ? p4 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
50
- if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p4 ? extra = it : desc[key] = it : target = it);
51
- else if (typeof it !== "object" || it === null) __typeError("Object expected");
52
- else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
53
- }
54
- return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p4 ? k3 ^ 4 ? extra : desc : target;
55
- };
56
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
57
- var __accessCheck = (obj, member, msg2) => member.has(obj) || __typeError("Cannot " + msg2);
58
- var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
59
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
60
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
61
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
62
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
63
-
64
- // localization/generated/bg.ts
65
- var bg_exports = {};
66
- __export(bg_exports, {
67
- templates: () => templates2
68
- });
69
- var templates2;
70
- var init_bg = __esm({
71
- "localization/generated/bg.ts"() {
72
- templates2 = {
73
- "s159928724265eb05": `\u0414\u043E\u0431\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043E\u043F\u0446\u0438\u044F`,
74
- "s1b23c41934894f30": `\u041E\u0431\u044F\u0441\u043D\u0435\u043D\u0438\u0435`,
75
- "s255857544a9d5ec0": `\u041D\u0443\u043B\u0438\u0440\u0430\u043D\u0435 \u043D\u0430`,
76
- "s4802e47fe2e95134": `\u041E\u043F\u0446\u0438\u044F`,
77
- "s54393bfa280ea55b": `\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0430`,
78
- "s7254ca27b16ae2d8": `\u0424\u0430\u043B\u0448\u0438\u0432`,
79
- "s80dc9f56411917df": `\u0422\u0435\u043A\u0441\u0442 \u0437\u0430 \u043F\u043E\u0434\u0447\u0435\u0440\u0442\u0430\u0432\u0430\u043D\u0435`,
80
- "s85ea99fb52be3385": `\u0418\u0441\u0442\u0438\u043D\u0441\u043A\u0438`,
81
- "sb3d4f79d9d8b71e5": `\u041F\u043E\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430`,
82
- "sc56e9323f076a11e": `\u0422\u0435\u043A\u0441\u0442 \u0437\u0430 \u0434\u043E\u0431\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0440\u043E\u043F\u0443\u0441\u043A\u0438`,
83
- "scd1dd6ff53d0d01a": `\u041E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E`,
84
- "sd26e8d4eef55e341": `\u041F\u0440\u043E\u0432\u0435\u0440\u0435\u0442\u0435 \u043E\u0442\u0433\u043E\u0432\u043E\u0440\u0438\u0442\u0435 \u0441\u0438`,
85
- "saf8b589e65febbd2": `Save answer`,
86
- "sb0aadaa04e658ad6": `Choice`,
87
- "s2ba5f4d8f3bd7c57": `Order`,
88
- "s2492f5fb1b05b45e": `Text`,
89
- "s49c940aecfef3ea0": `Mark`,
90
- "saa3efba1f0c816b7": `Speech`
91
- };
92
- }
93
- });
94
-
95
- // localization/generated/cs.ts
96
- var cs_exports = {};
97
- __export(cs_exports, {
98
- templates: () => templates3
99
- });
100
- var templates3;
101
- var init_cs = __esm({
102
- "localization/generated/cs.ts"() {
103
- templates3 = {
104
- "s159928724265eb05": `P\u0159idat mo\u017Enost`,
105
- "s1b23c41934894f30": `Vysv\u011Btlen\xED`,
106
- "s255857544a9d5ec0": `Obnoven\xED`,
107
- "s4802e47fe2e95134": `Mo\u017Enost`,
108
- "s54393bfa280ea55b": `Prompt`,
109
- "s7254ca27b16ae2d8": `False`,
110
- "s80dc9f56411917df": `Text ke zv\xFDrazn\u011Bn\xED`,
111
- "s85ea99fb52be3385": `Pravda`,
112
- "sb3d4f79d9d8b71e5": `Odeslat`,
113
- "sc56e9323f076a11e": `Text, do kter\xE9ho se p\u0159id\xE1vaj\xED mezery`,
114
- "scd1dd6ff53d0d01a": `Zkuste to znovu`,
115
- "sd26e8d4eef55e341": `Zkontrolujte sv\xE9 odpov\u011Bdi`,
116
- "saf8b589e65febbd2": `Save answer`,
117
- "sb0aadaa04e658ad6": `Choice`,
118
- "s2ba5f4d8f3bd7c57": `Order`,
119
- "s2492f5fb1b05b45e": `Text`,
120
- "s49c940aecfef3ea0": `Mark`,
121
- "saa3efba1f0c816b7": `Speech`
122
- };
123
- }
124
- });
125
-
126
- // localization/generated/da.ts
127
- var da_exports = {};
128
- __export(da_exports, {
129
- templates: () => templates4
130
- });
131
- var templates4;
132
- var init_da = __esm({
133
- "localization/generated/da.ts"() {
134
- templates4 = {
135
- "s159928724265eb05": `Tilf\xF8j mulighed`,
136
- "s1b23c41934894f30": `Forklaring`,
137
- "s255857544a9d5ec0": `Nulstil`,
138
- "s4802e47fe2e95134": `Mulighed`,
139
- "s54393bfa280ea55b": `Prompt`,
140
- "s7254ca27b16ae2d8": `Falsk`,
141
- "s80dc9f56411917df": `Tekst til at fremh\xE6ve`,
142
- "s85ea99fb52be3385": `Sandt`,
143
- "sb3d4f79d9d8b71e5": `Send ind`,
144
- "sc56e9323f076a11e": `Tekst til at tilf\xF8je mellemrum til`,
145
- "scd1dd6ff53d0d01a": `Pr\xF8v igen`,
146
- "sd26e8d4eef55e341": `Tjek dine svar`,
147
- "saf8b589e65febbd2": `Save answer`,
148
- "sb0aadaa04e658ad6": `Choice`,
149
- "s2ba5f4d8f3bd7c57": `Order`,
150
- "s2492f5fb1b05b45e": `Text`,
151
- "s49c940aecfef3ea0": `Mark`,
152
- "saa3efba1f0c816b7": `Speech`
153
- };
154
- }
155
- });
156
-
157
- // localization/generated/de.ts
158
- var de_exports = {};
159
- __export(de_exports, {
160
- templates: () => templates5
161
- });
162
- var templates5;
163
- var init_de = __esm({
164
- "localization/generated/de.ts"() {
165
- templates5 = {
166
- "s159928724265eb05": `Option hinzuf\xFCgen`,
167
- "s1b23c41934894f30": `Erl\xE4uterung`,
168
- "s2492f5fb1b05b45e": `Text`,
169
- "s255857544a9d5ec0": `Zur\xFCcksetzen`,
170
- "s2ba5f4d8f3bd7c57": `Sortieren`,
171
- "s4802e47fe2e95134": `Option`,
172
- "s49c940aecfef3ea0": `Markieren`,
173
- "s54393bfa280ea55b": `Aufgabe`,
174
- "s7254ca27b16ae2d8": `Falsch`,
175
- "s80dc9f56411917df": `Hervorzuhebender Text`,
176
- "s85ea99fb52be3385": `Wahr`,
177
- "saa3efba1f0c816b7": `Sprechen`,
178
- "sb0aadaa04e658ad6": `Ausw\xE4hlen`,
179
- "sb3d4f79d9d8b71e5": `Einreichen`,
180
- "sc56e9323f076a11e": `Text zum Hinzuf\xFCgen von L\xFCcken`,
181
- "scd1dd6ff53d0d01a": `Erneut versuchen`,
182
- "sd26e8d4eef55e341": `\xDCberpr\xFCfen Sie Ihre Antworten`,
183
- "saf8b589e65febbd2": `Save answer`
184
- };
185
- }
186
- });
187
-
188
- // localization/generated/el.ts
189
- var el_exports = {};
190
- __export(el_exports, {
191
- templates: () => templates6
192
- });
193
- var templates6;
194
- var init_el = __esm({
195
- "localization/generated/el.ts"() {
196
- templates6 = {
197
- "s159928724265eb05": `\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2`,
198
- "s1b23c41934894f30": `\u0395\u03C0\u03B5\u03BE\u03AE\u03B3\u03B7\u03C3\u03B7`,
199
- "s255857544a9d5ec0": `\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC`,
200
- "s4802e47fe2e95134": `\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,
201
- "s54393bfa280ea55b": `\u03A0\u03C1\u03BF\u03C4\u03C1\u03BF\u03C0\u03AE`,
202
- "s7254ca27b16ae2d8": `\u03A8\u03B5\u03C5\u03B4\u03AD\u03C2`,
203
- "s80dc9f56411917df": `\u039A\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03B3\u03B9\u03B1 \u03B5\u03C0\u03B9\u03C3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7`,
204
- "s85ea99fb52be3385": `\u0391\u03BB\u03AE\u03B8\u03B5\u03B9\u03B1`,
205
- "sb3d4f79d9d8b71e5": `\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE`,
206
- "sc56e9323f076a11e": `\u039A\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03BA\u03B5\u03BD\u03AC`,
207
- "scd1dd6ff53d0d01a": `\u0394\u03BF\u03BA\u03B9\u03BC\u03AC\u03C3\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC`,
208
- "sd26e8d4eef55e341": `\u0395\u03BB\u03AD\u03B3\u03BE\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03B1\u03C0\u03B1\u03BD\u03C4\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2`,
209
- "saf8b589e65febbd2": `Save answer`,
210
- "sb0aadaa04e658ad6": `Choice`,
211
- "s2ba5f4d8f3bd7c57": `Order`,
212
- "s2492f5fb1b05b45e": `Text`,
213
- "s49c940aecfef3ea0": `Mark`,
214
- "saa3efba1f0c816b7": `Speech`
215
- };
216
- }
217
- });
218
-
219
- // localization/generated/es.ts
220
- var es_exports = {};
221
- __export(es_exports, {
222
- templates: () => templates7
223
- });
224
- var templates7;
225
- var init_es = __esm({
226
- "localization/generated/es.ts"() {
227
- templates7 = {
228
- "s159928724265eb05": `A\xF1adir opci\xF3n`,
229
- "s1b23c41934894f30": `Explicaci\xF3n`,
230
- "s255857544a9d5ec0": `Restablecer`,
231
- "s4802e47fe2e95134": `Opci\xF3n`,
232
- "s54393bfa280ea55b": `Pregunte a`,
233
- "s7254ca27b16ae2d8": `Falso`,
234
- "s80dc9f56411917df": `Texto a destacar`,
235
- "s85ea99fb52be3385": `Verdadero`,
236
- "sb3d4f79d9d8b71e5": `Enviar`,
237
- "sc56e9323f076a11e": `Texto al que a\xF1adir huecos`,
238
- "scd1dd6ff53d0d01a": `Int\xE9ntalo de nuevo`,
239
- "sd26e8d4eef55e341": `Comprueba tus respuestas`,
240
- "saf8b589e65febbd2": `Save answer`,
241
- "sb0aadaa04e658ad6": `Choice`,
242
- "s2ba5f4d8f3bd7c57": `Order`,
243
- "s2492f5fb1b05b45e": `Text`,
244
- "s49c940aecfef3ea0": `Mark`,
245
- "saa3efba1f0c816b7": `Speech`
246
- };
247
- }
248
- });
249
-
250
- // localization/generated/et.ts
251
- var et_exports = {};
252
- __export(et_exports, {
253
- templates: () => templates8
254
- });
255
- var templates8;
256
- var init_et = __esm({
257
- "localization/generated/et.ts"() {
258
- templates8 = {
259
- "s159928724265eb05": `Lisa v\xF5imalus`,
260
- "s1b23c41934894f30": `Selgitus`,
261
- "s255857544a9d5ec0": `Reset`,
262
- "s4802e47fe2e95134": `Valik`,
263
- "s54393bfa280ea55b": `Prompt`,
264
- "s7254ca27b16ae2d8": `Vale`,
265
- "s80dc9f56411917df": `Teksti esilet\xF5stmine`,
266
- "s85ea99fb52be3385": `T\xF5si`,
267
- "sb3d4f79d9d8b71e5": `Esita`,
268
- "sc56e9323f076a11e": `Tekst, millele lisada l\xFCngad`,
269
- "scd1dd6ff53d0d01a": `Proovi uuesti`,
270
- "sd26e8d4eef55e341": `Kontrollige oma vastuseid`,
271
- "saf8b589e65febbd2": `Save answer`,
272
- "sb0aadaa04e658ad6": `Choice`,
273
- "s2ba5f4d8f3bd7c57": `Order`,
274
- "s2492f5fb1b05b45e": `Text`,
275
- "s49c940aecfef3ea0": `Mark`,
276
- "saa3efba1f0c816b7": `Speech`
277
- };
278
- }
279
- });
280
-
281
- // localization/generated/fi.ts
282
- var fi_exports = {};
283
- __export(fi_exports, {
284
- templates: () => templates9
285
- });
286
- var templates9;
287
- var init_fi = __esm({
288
- "localization/generated/fi.ts"() {
289
- templates9 = {
290
- "s159928724265eb05": `Lis\xE4\xE4 vaihtoehto`,
291
- "s1b23c41934894f30": `Selitys`,
292
- "s255857544a9d5ec0": `Nollaa`,
293
- "s4802e47fe2e95134": `Vaihtoehto`,
294
- "s54393bfa280ea55b": `Kehotus`,
295
- "s7254ca27b16ae2d8": `False`,
296
- "s80dc9f56411917df": `Korostettava teksti`,
297
- "s85ea99fb52be3385": `Totta`,
298
- "sb3d4f79d9d8b71e5": `L\xE4het\xE4`,
299
- "sc56e9323f076a11e": `Teksti, johon lis\xE4t\xE4\xE4n aukkoja`,
300
- "scd1dd6ff53d0d01a": `Yrit\xE4 uudelleen`,
301
- "sd26e8d4eef55e341": `Tarkista vastauksesi`,
302
- "saf8b589e65febbd2": `Save answer`,
303
- "sb0aadaa04e658ad6": `Choice`,
304
- "s2ba5f4d8f3bd7c57": `Order`,
305
- "s2492f5fb1b05b45e": `Text`,
306
- "s49c940aecfef3ea0": `Mark`,
307
- "saa3efba1f0c816b7": `Speech`
308
- };
309
- }
310
- });
311
-
312
- // localization/generated/fr.ts
313
- var fr_exports = {};
314
- __export(fr_exports, {
315
- templates: () => templates10
316
- });
317
- var templates10;
318
- var init_fr = __esm({
319
- "localization/generated/fr.ts"() {
320
- templates10 = {
321
- "s159928724265eb05": `Ajouter une option`,
322
- "s1b23c41934894f30": `Explication`,
323
- "s255857544a9d5ec0": `Remise \xE0 z\xE9ro`,
324
- "s4802e47fe2e95134": `Option`,
325
- "s54393bfa280ea55b": `Prompt`,
326
- "s7254ca27b16ae2d8": `Faux`,
327
- "s80dc9f56411917df": `Texte \xE0 mettre en \xE9vidence`,
328
- "s85ea99fb52be3385": `Vrai`,
329
- "sb3d4f79d9d8b71e5": `Soumettre`,
330
- "sc56e9323f076a11e": `Texte \xE0 ajouter aux lacunes`,
331
- "scd1dd6ff53d0d01a": `R\xE9essayer`,
332
- "sd26e8d4eef55e341": `V\xE9rifiez vos r\xE9ponses`,
333
- "saf8b589e65febbd2": `Save answer`,
334
- "sb0aadaa04e658ad6": `Choice`,
335
- "s2ba5f4d8f3bd7c57": `Order`,
336
- "s2492f5fb1b05b45e": `Text`,
337
- "s49c940aecfef3ea0": `Mark`,
338
- "saa3efba1f0c816b7": `Speech`
339
- };
340
- }
341
- });
342
-
343
- // localization/generated/hu.ts
344
- var hu_exports = {};
345
- __export(hu_exports, {
346
- templates: () => templates11
347
- });
348
- var templates11;
349
- var init_hu = __esm({
350
- "localization/generated/hu.ts"() {
351
- templates11 = {
352
- "s159928724265eb05": `Opci\xF3 hozz\xE1ad\xE1sa`,
353
- "s1b23c41934894f30": `Magyar\xE1zat`,
354
- "s255857544a9d5ec0": `Reset`,
355
- "s4802e47fe2e95134": `Opci\xF3`,
356
- "s54393bfa280ea55b": `Prompt`,
357
- "s7254ca27b16ae2d8": `Hamis`,
358
- "s80dc9f56411917df": `Kiemelend\u0151 sz\xF6veg`,
359
- "s85ea99fb52be3385": `Igaz`,
360
- "sb3d4f79d9d8b71e5": `K\xFCldje be a`,
361
- "sc56e9323f076a11e": `H\xE9zagok hozz\xE1ad\xE1s\xE1ra szolg\xE1l\xF3 sz\xF6veg`,
362
- "scd1dd6ff53d0d01a": `Pr\xF3b\xE1lja \xFAjra`,
363
- "sd26e8d4eef55e341": `Ellen\u0151rizze v\xE1laszait`,
364
- "saf8b589e65febbd2": `Save answer`,
365
- "sb0aadaa04e658ad6": `Choice`,
366
- "s2ba5f4d8f3bd7c57": `Order`,
367
- "s2492f5fb1b05b45e": `Text`,
368
- "s49c940aecfef3ea0": `Mark`,
369
- "saa3efba1f0c816b7": `Speech`
370
- };
371
- }
372
- });
373
-
374
- // localization/generated/id.ts
375
- var id_exports = {};
376
- __export(id_exports, {
377
- templates: () => templates12
378
- });
379
- var templates12;
380
- var init_id = __esm({
381
- "localization/generated/id.ts"() {
382
- templates12 = {
383
- "s159928724265eb05": `Tambahkan Opsi`,
384
- "s1b23c41934894f30": `Penjelasan`,
385
- "s255857544a9d5ec0": `Atur ulang`,
386
- "s4802e47fe2e95134": `Opsi`,
387
- "s54393bfa280ea55b": `Cepat`,
388
- "s7254ca27b16ae2d8": `Salah`,
389
- "s80dc9f56411917df": `Teks untuk Disorot`,
390
- "s85ea99fb52be3385": `Benar`,
391
- "sb3d4f79d9d8b71e5": `Kirim`,
392
- "sc56e9323f076a11e": `Teks yang akan ditambahkan celah`,
393
- "scd1dd6ff53d0d01a": `Coba lagi`,
394
- "sd26e8d4eef55e341": `Periksa jawaban Anda`,
395
- "saf8b589e65febbd2": `Save answer`,
396
- "sb0aadaa04e658ad6": `Choice`,
397
- "s2ba5f4d8f3bd7c57": `Order`,
398
- "s2492f5fb1b05b45e": `Text`,
399
- "s49c940aecfef3ea0": `Mark`,
400
- "saa3efba1f0c816b7": `Speech`
401
- };
402
- }
403
- });
404
-
405
- // localization/generated/it.ts
406
- var it_exports = {};
407
- __export(it_exports, {
408
- templates: () => templates13
409
- });
410
- var templates13;
411
- var init_it = __esm({
412
- "localization/generated/it.ts"() {
413
- templates13 = {
414
- "s159928724265eb05": `Aggiungi opzione`,
415
- "s1b23c41934894f30": `Spiegazione`,
416
- "s255857544a9d5ec0": `Reset`,
417
- "s4802e47fe2e95134": `Opzione`,
418
- "s54393bfa280ea55b": `Prompt`,
419
- "s7254ca27b16ae2d8": `Falso`,
420
- "s80dc9f56411917df": `Testo da evidenziare`,
421
- "s85ea99fb52be3385": `Vero`,
422
- "sb3d4f79d9d8b71e5": `Invia`,
423
- "sc56e9323f076a11e": `Testo a cui aggiungere spazi vuoti`,
424
- "scd1dd6ff53d0d01a": `Riprova`,
425
- "sd26e8d4eef55e341": `Controllare le risposte`,
426
- "saf8b589e65febbd2": `Save answer`,
427
- "sb0aadaa04e658ad6": `Choice`,
428
- "s2ba5f4d8f3bd7c57": `Order`,
429
- "s2492f5fb1b05b45e": `Text`,
430
- "s49c940aecfef3ea0": `Mark`,
431
- "saa3efba1f0c816b7": `Speech`
432
- };
433
- }
434
- });
435
-
436
- // localization/generated/ja.ts
437
- var ja_exports = {};
438
- __export(ja_exports, {
439
- templates: () => templates14
440
- });
441
- var templates14;
442
- var init_ja = __esm({
443
- "localization/generated/ja.ts"() {
444
- templates14 = {
445
- "s159928724265eb05": `\u30AA\u30D7\u30B7\u30E7\u30F3\u8FFD\u52A0`,
446
- "s1b23c41934894f30": `\u8AAC\u660E`,
447
- "s255857544a9d5ec0": `\u30EA\u30BB\u30C3\u30C8`,
448
- "s4802e47fe2e95134": `\u30AA\u30D7\u30B7\u30E7\u30F3`,
449
- "s54393bfa280ea55b": `\u30D7\u30ED\u30F3\u30D7\u30C8`,
450
- "s7254ca27b16ae2d8": `\u507D`,
451
- "s80dc9f56411917df": `\u30CF\u30A4\u30E9\u30A4\u30C8\u3059\u308B\u30C6\u30AD\u30B9\u30C8`,
452
- "s85ea99fb52be3385": `\u771F`,
453
- "sb3d4f79d9d8b71e5": `\u6295\u7A3F\u3059\u308B`,
454
- "sc56e9323f076a11e": `\u30AE\u30E3\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B\u30C6\u30AD\u30B9\u30C8`,
455
- "scd1dd6ff53d0d01a": `\u518D\u8A66\u884C`,
456
- "sd26e8d4eef55e341": `\u7B54\u3048\u3092\u30C1\u30A7\u30C3\u30AF\u3059\u308B`,
457
- "saf8b589e65febbd2": `Save answer`,
458
- "sb0aadaa04e658ad6": `Choice`,
459
- "s2ba5f4d8f3bd7c57": `Order`,
460
- "s2492f5fb1b05b45e": `Text`,
461
- "s49c940aecfef3ea0": `Mark`,
462
- "saa3efba1f0c816b7": `Speech`
463
- };
464
- }
465
- });
466
-
467
- // localization/generated/ko.ts
468
- var ko_exports = {};
469
- __export(ko_exports, {
470
- templates: () => templates15
471
- });
472
- var templates15;
473
- var init_ko = __esm({
474
- "localization/generated/ko.ts"() {
475
- templates15 = {
476
- "s159928724265eb05": `\uC635\uC158 \uCD94\uAC00`,
477
- "s1b23c41934894f30": `\uC124\uBA85`,
478
- "s255857544a9d5ec0": `\uCD08\uAE30\uD654`,
479
- "s4802e47fe2e95134": `\uC635\uC158`,
480
- "s54393bfa280ea55b": `\uD504\uB86C\uD504\uD2B8`,
481
- "s7254ca27b16ae2d8": `False`,
482
- "s80dc9f56411917df": `\uAC15\uC870 \uD45C\uC2DC\uD560 \uD14D\uC2A4\uD2B8`,
483
- "s85ea99fb52be3385": `True`,
484
- "sb3d4f79d9d8b71e5": `\uC81C\uCD9C\uD558\uAE30`,
485
- "sc56e9323f076a11e": `\uACF5\uBC31\uC744 \uCD94\uAC00\uD560 \uD14D\uC2A4\uD2B8`,
486
- "scd1dd6ff53d0d01a": `\uB2E4\uC2DC \uC2DC\uB3C4`,
487
- "sd26e8d4eef55e341": `\uB2F5\uBCC0 \uD655\uC778`,
488
- "saf8b589e65febbd2": `Save answer`,
489
- "sb0aadaa04e658ad6": `Choice`,
490
- "s2ba5f4d8f3bd7c57": `Order`,
491
- "s2492f5fb1b05b45e": `Text`,
492
- "s49c940aecfef3ea0": `Mark`,
493
- "saa3efba1f0c816b7": `Speech`
494
- };
495
- }
496
- });
497
-
498
- // localization/generated/lt.ts
499
- var lt_exports = {};
500
- __export(lt_exports, {
501
- templates: () => templates16
502
- });
503
- var templates16;
504
- var init_lt = __esm({
505
- "localization/generated/lt.ts"() {
506
- templates16 = {
507
- "s159928724265eb05": `Prid\u0117ti parinkt\u012F`,
508
- "s1b23c41934894f30": `Paai\u0161kinimas`,
509
- "s255857544a9d5ec0": `I\u0161 naujo nustatyti`,
510
- "s4802e47fe2e95134": `Galimyb\u0117`,
511
- "s54393bfa280ea55b": `Paraginimas`,
512
- "s7254ca27b16ae2d8": `Klaidingas`,
513
- "s80dc9f56411917df": `Teksto pary\u0161kinimas`,
514
- "s85ea99fb52be3385": `Tiesa`,
515
- "sb3d4f79d9d8b71e5": `Pateikti`,
516
- "sc56e9323f076a11e": `Tekstas, prie kurio pridedami tarpai`,
517
- "scd1dd6ff53d0d01a": `Pabandykite dar kart\u0105`,
518
- "sd26e8d4eef55e341": `Patikrinkite savo atsakymus`,
519
- "saf8b589e65febbd2": `Save answer`,
520
- "sb0aadaa04e658ad6": `Choice`,
521
- "s2ba5f4d8f3bd7c57": `Order`,
522
- "s2492f5fb1b05b45e": `Text`,
523
- "s49c940aecfef3ea0": `Mark`,
524
- "saa3efba1f0c816b7": `Speech`
525
- };
526
- }
527
- });
528
-
529
- // localization/generated/lv.ts
530
- var lv_exports = {};
531
- __export(lv_exports, {
532
- templates: () => templates17
533
- });
534
- var templates17;
535
- var init_lv = __esm({
536
- "localization/generated/lv.ts"() {
537
- templates17 = {
538
- "s159928724265eb05": `Pievienot iesp\u0113ju`,
539
- "s1b23c41934894f30": `Paskaidrojums`,
540
- "s255857544a9d5ec0": `Atiestat\u012Bt`,
541
- "s4802e47fe2e95134": `Iesp\u0113ja`,
542
- "s54393bfa280ea55b": `Uzaicin\u0101jums`,
543
- "s7254ca27b16ae2d8": `Viltus`,
544
- "s80dc9f56411917df": `Teksta izcel\u0161ana`,
545
- "s85ea99fb52be3385": `True`,
546
- "sb3d4f79d9d8b71e5": `Iesniegt`,
547
- "sc56e9323f076a11e": `Teksts, kam pievienot atstarpes`,
548
- "scd1dd6ff53d0d01a": `M\u0113\u0123iniet v\u0113lreiz`,
549
- "sd26e8d4eef55e341": `P\u0101rbaudiet savas atbildes`,
550
- "saf8b589e65febbd2": `Save answer`,
551
- "sb0aadaa04e658ad6": `Choice`,
552
- "s2ba5f4d8f3bd7c57": `Order`,
553
- "s2492f5fb1b05b45e": `Text`,
554
- "s49c940aecfef3ea0": `Mark`,
555
- "saa3efba1f0c816b7": `Speech`
556
- };
557
- }
558
- });
559
-
560
- // localization/generated/nb.ts
561
- var nb_exports = {};
562
- __export(nb_exports, {
563
- templates: () => templates18
564
- });
565
- var templates18;
566
- var init_nb = __esm({
567
- "localization/generated/nb.ts"() {
568
- templates18 = {
569
- "s159928724265eb05": `Legg til alternativ`,
570
- "s1b23c41934894f30": `Forklaring`,
571
- "s255857544a9d5ec0": `Tilbakestill`,
572
- "s4802e47fe2e95134": `Alternativ`,
573
- "s54393bfa280ea55b": `Sp\xF8r`,
574
- "s7254ca27b16ae2d8": `Falsk`,
575
- "s80dc9f56411917df": `Tekst som skal fremheves`,
576
- "s85ea99fb52be3385": `Sant`,
577
- "sb3d4f79d9d8b71e5": `Send inn`,
578
- "sc56e9323f076a11e": `Tekst for \xE5 legge til mellomrom`,
579
- "scd1dd6ff53d0d01a": `Pr\xF8v igjen`,
580
- "sd26e8d4eef55e341": `Sjekk svarene dine`,
581
- "saf8b589e65febbd2": `Save answer`,
582
- "sb0aadaa04e658ad6": `Choice`,
583
- "s2ba5f4d8f3bd7c57": `Order`,
584
- "s2492f5fb1b05b45e": `Text`,
585
- "s49c940aecfef3ea0": `Mark`,
586
- "saa3efba1f0c816b7": `Speech`
587
- };
588
- }
589
- });
590
-
591
- // localization/generated/nl.ts
592
- var nl_exports = {};
593
- __export(nl_exports, {
594
- templates: () => templates19
595
- });
596
- var templates19;
597
- var init_nl = __esm({
598
- "localization/generated/nl.ts"() {
599
- templates19 = {
600
- "s159928724265eb05": `Optie toevoegen`,
601
- "s1b23c41934894f30": `Uitleg`,
602
- "s255857544a9d5ec0": `Reset`,
603
- "s4802e47fe2e95134": `Optie`,
604
- "s54393bfa280ea55b": `Prompt`,
605
- "s7254ca27b16ae2d8": `Valse`,
606
- "s80dc9f56411917df": `Te markeren tekst`,
607
- "s85ea99fb52be3385": `Echt`,
608
- "sb3d4f79d9d8b71e5": `Stuur in`,
609
- "sc56e9323f076a11e": `Tekst om gaten aan toe te voegen`,
610
- "scd1dd6ff53d0d01a": `Probeer het opnieuw`,
611
- "sd26e8d4eef55e341": `Controleer je antwoorden`,
612
- "saf8b589e65febbd2": `Save answer`,
613
- "sb0aadaa04e658ad6": `Choice`,
614
- "s2ba5f4d8f3bd7c57": `Order`,
615
- "s2492f5fb1b05b45e": `Text`,
616
- "s49c940aecfef3ea0": `Mark`,
617
- "saa3efba1f0c816b7": `Speech`
618
- };
619
- }
620
- });
621
-
622
- // localization/generated/pl.ts
623
- var pl_exports = {};
624
- __export(pl_exports, {
625
- templates: () => templates20
626
- });
627
- var templates20;
628
- var init_pl = __esm({
629
- "localization/generated/pl.ts"() {
630
- templates20 = {
631
- "s159928724265eb05": `Dodaj opcj\u0119`,
632
- "s1b23c41934894f30": `Wyja\u015Bnienie`,
633
- "s255857544a9d5ec0": `Reset`,
634
- "s4802e47fe2e95134": `Opcja`,
635
- "s54393bfa280ea55b": `Podpowied\u017A`,
636
- "s7254ca27b16ae2d8": `Fa\u0142sz`,
637
- "s80dc9f56411917df": `Tekst do pod\u015Bwietlenia`,
638
- "s85ea99fb52be3385": `Prawda`,
639
- "sb3d4f79d9d8b71e5": `Prze\u015Blij`,
640
- "sc56e9323f076a11e": `Tekst do dodania przerw`,
641
- "scd1dd6ff53d0d01a": `Spr\xF3buj ponownie`,
642
- "sd26e8d4eef55e341": `Sprawd\u017A swoje odpowiedzi`,
643
- "saf8b589e65febbd2": `Save answer`,
644
- "sb0aadaa04e658ad6": `Choice`,
645
- "s2ba5f4d8f3bd7c57": `Order`,
646
- "s2492f5fb1b05b45e": `Text`,
647
- "s49c940aecfef3ea0": `Mark`,
648
- "saa3efba1f0c816b7": `Speech`
649
- };
650
- }
651
- });
652
-
653
- // localization/generated/pt-BR.ts
654
- var pt_BR_exports = {};
655
- __export(pt_BR_exports, {
656
- templates: () => templates21
657
- });
658
- var templates21;
659
- var init_pt_BR = __esm({
660
- "localization/generated/pt-BR.ts"() {
661
- templates21 = {
662
- "s159928724265eb05": `Adicionar op\xE7\xE3o`,
663
- "s1b23c41934894f30": `Explica\xE7\xE3o`,
664
- "s255857544a9d5ec0": `Redefinir`,
665
- "s4802e47fe2e95134": `Op\xE7\xE3o`,
666
- "s54393bfa280ea55b": `Prompt`,
667
- "s7254ca27b16ae2d8": `Falso`,
668
- "s80dc9f56411917df": `Texto para destacar`,
669
- "s85ea99fb52be3385": `Verdadeiro`,
670
- "sb3d4f79d9d8b71e5": `Enviar`,
671
- "sc56e9323f076a11e": `Texto para adicionar lacunas`,
672
- "scd1dd6ff53d0d01a": `Tente novamente`,
673
- "sd26e8d4eef55e341": `Verifique suas respostas`,
674
- "saf8b589e65febbd2": `Save answer`,
675
- "sb0aadaa04e658ad6": `Choice`,
676
- "s2ba5f4d8f3bd7c57": `Order`,
677
- "s2492f5fb1b05b45e": `Text`,
678
- "s49c940aecfef3ea0": `Mark`,
679
- "saa3efba1f0c816b7": `Speech`
680
- };
681
- }
682
- });
683
-
684
- // localization/generated/pt-PT.ts
685
- var pt_PT_exports = {};
686
- __export(pt_PT_exports, {
687
- templates: () => templates22
688
- });
689
- var templates22;
690
- var init_pt_PT = __esm({
691
- "localization/generated/pt-PT.ts"() {
692
- templates22 = {
693
- "s159928724265eb05": `Adicionar op\xE7\xE3o`,
694
- "s1b23c41934894f30": `Explica\xE7\xE3o`,
695
- "s255857544a9d5ec0": `Reiniciar`,
696
- "s4802e47fe2e95134": `Op\xE7\xE3o`,
697
- "s54393bfa280ea55b": `Prompt`,
698
- "s7254ca27b16ae2d8": `Falso`,
699
- "s80dc9f56411917df": `Texto a real\xE7ar`,
700
- "s85ea99fb52be3385": `Verdadeiro`,
701
- "sb3d4f79d9d8b71e5": `Enviar`,
702
- "sc56e9323f076a11e": `Texto para adicionar lacunas`,
703
- "scd1dd6ff53d0d01a": `Tentar novamente`,
704
- "sd26e8d4eef55e341": `Verifique as suas respostas`,
705
- "saf8b589e65febbd2": `Save answer`,
706
- "sb0aadaa04e658ad6": `Choice`,
707
- "s2ba5f4d8f3bd7c57": `Order`,
708
- "s2492f5fb1b05b45e": `Text`,
709
- "s49c940aecfef3ea0": `Mark`,
710
- "saa3efba1f0c816b7": `Speech`
711
- };
712
- }
713
- });
714
-
715
- // localization/generated/ro.ts
716
- var ro_exports = {};
717
- __export(ro_exports, {
718
- templates: () => templates23
719
- });
720
- var templates23;
721
- var init_ro = __esm({
722
- "localization/generated/ro.ts"() {
723
- templates23 = {
724
- "s159928724265eb05": `Adaug\u0103 op\u021Biune`,
725
- "s1b23c41934894f30": `Explica\u021Bie`,
726
- "s255857544a9d5ec0": `Resetare`,
727
- "s4802e47fe2e95134": `Op\u021Biune`,
728
- "s54393bfa280ea55b": `Prompt`,
729
- "s7254ca27b16ae2d8": `Fals`,
730
- "s80dc9f56411917df": `Text pentru eviden\u021Biere`,
731
- "s85ea99fb52be3385": `Adev\u0103rat`,
732
- "sb3d4f79d9d8b71e5": `Trimite`,
733
- "sc56e9323f076a11e": `Text la care s\u0103 ad\u0103uga\u021Bi spa\u021Bii libere`,
734
- "scd1dd6ff53d0d01a": `\xCEncerca\u021Bi din nou`,
735
- "sd26e8d4eef55e341": `Verific\u0103-\u021Bi r\u0103spunsurile`,
736
- "saf8b589e65febbd2": `Save answer`,
737
- "sb0aadaa04e658ad6": `Choice`,
738
- "s2ba5f4d8f3bd7c57": `Order`,
739
- "s2492f5fb1b05b45e": `Text`,
740
- "s49c940aecfef3ea0": `Mark`,
741
- "saa3efba1f0c816b7": `Speech`
742
- };
743
- }
744
- });
745
-
746
- // localization/generated/ru.ts
747
- var ru_exports = {};
748
- __export(ru_exports, {
749
- templates: () => templates24
750
- });
751
- var templates24;
752
- var init_ru = __esm({
753
- "localization/generated/ru.ts"() {
754
- templates24 = {
755
- "s159928724265eb05": `\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E`,
756
- "s1b23c41934894f30": `\u041F\u043E\u044F\u0441\u043D\u0435\u043D\u0438\u0435`,
757
- "s255857544a9d5ec0": `\u0421\u0431\u0440\u043E\u0441`,
758
- "s4802e47fe2e95134": `\u0412\u0430\u0440\u0438\u0430\u043D\u0442`,
759
- "s54393bfa280ea55b": `\u0421\u043F\u0440\u0430\u0432\u043A\u0430`,
760
- "s7254ca27b16ae2d8": `\u041B\u043E\u0436\u044C`,
761
- "s80dc9f56411917df": `\u0422\u0435\u043A\u0441\u0442 \u0434\u043B\u044F \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u044F`,
762
- "s85ea99fb52be3385": `\u041F\u0440\u0430\u0432\u0434\u0430`,
763
- "sb3d4f79d9d8b71e5": `\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C`,
764
- "sc56e9323f076a11e": `\u0422\u0435\u043A\u0441\u0442 \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0431\u0435\u043B\u043E\u0432`,
765
- "scd1dd6ff53d0d01a": `\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437`,
766
- "sd26e8d4eef55e341": `\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0441\u0432\u043E\u0438 \u043E\u0442\u0432\u0435\u0442\u044B`,
767
- "saf8b589e65febbd2": `Save answer`,
768
- "sb0aadaa04e658ad6": `Choice`,
769
- "s2ba5f4d8f3bd7c57": `Order`,
770
- "s2492f5fb1b05b45e": `Text`,
771
- "s49c940aecfef3ea0": `Mark`,
772
- "saa3efba1f0c816b7": `Speech`
773
- };
774
- }
775
- });
776
-
777
- // localization/generated/sk.ts
778
- var sk_exports = {};
779
- __export(sk_exports, {
780
- templates: () => templates25
781
- });
782
- var templates25;
783
- var init_sk = __esm({
784
- "localization/generated/sk.ts"() {
785
- templates25 = {
786
- "s159928724265eb05": `Prida\u0165 mo\u017Enos\u0165`,
787
- "s1b23c41934894f30": `Vysvetlenie`,
788
- "s255857544a9d5ec0": `Obnovenie`,
789
- "s4802e47fe2e95134": `Mo\u017Enos\u0165`,
790
- "s54393bfa280ea55b": `Prompt`,
791
- "s7254ca27b16ae2d8": `False`,
792
- "s80dc9f56411917df": `Text na zv\xFDraznenie`,
793
- "s85ea99fb52be3385": `Pravda`,
794
- "sb3d4f79d9d8b71e5": `Odosla\u0165`,
795
- "sc56e9323f076a11e": `Text na pridanie medzier`,
796
- "scd1dd6ff53d0d01a": `Sk\xFAste to znova`,
797
- "sd26e8d4eef55e341": `Skontrolujte svoje odpovede`,
798
- "saf8b589e65febbd2": `Save answer`,
799
- "sb0aadaa04e658ad6": `Choice`,
800
- "s2ba5f4d8f3bd7c57": `Order`,
801
- "s2492f5fb1b05b45e": `Text`,
802
- "s49c940aecfef3ea0": `Mark`,
803
- "saa3efba1f0c816b7": `Speech`
804
- };
805
- }
806
- });
807
-
808
- // localization/generated/sl.ts
809
- var sl_exports = {};
810
- __export(sl_exports, {
811
- templates: () => templates26
812
- });
813
- var templates26;
814
- var init_sl = __esm({
815
- "localization/generated/sl.ts"() {
816
- templates26 = {
817
- "s159928724265eb05": `Dodajanje mo\u017Enosti`,
818
- "s1b23c41934894f30": `Razlaga:`,
819
- "s255857544a9d5ec0": `Ponastavitev`,
820
- "s4802e47fe2e95134": `Mo\u017Enost`,
821
- "s54393bfa280ea55b": `Poziv`,
822
- "s7254ca27b16ae2d8": `La\u017Eno`,
823
- "s80dc9f56411917df": `Besedilo za poudarjanje`,
824
- "s85ea99fb52be3385": `Resni\u010Dno`,
825
- "sb3d4f79d9d8b71e5": `Po\u0161lji`,
826
- "sc56e9323f076a11e": `Besedilo za dodajanje presledkov`,
827
- "scd1dd6ff53d0d01a": `Poskusite znova`,
828
- "sd26e8d4eef55e341": `Preverite svoje odgovore`,
829
- "saf8b589e65febbd2": `Save answer`,
830
- "sb0aadaa04e658ad6": `Choice`,
831
- "s2ba5f4d8f3bd7c57": `Order`,
832
- "s2492f5fb1b05b45e": `Text`,
833
- "s49c940aecfef3ea0": `Mark`,
834
- "saa3efba1f0c816b7": `Speech`
835
- };
836
- }
837
- });
838
-
839
- // localization/generated/sv.ts
840
- var sv_exports = {};
841
- __export(sv_exports, {
842
- templates: () => templates27
843
- });
844
- var templates27;
845
- var init_sv = __esm({
846
- "localization/generated/sv.ts"() {
847
- templates27 = {
848
- "s159928724265eb05": `L\xE4gg till alternativ`,
849
- "s1b23c41934894f30": `F\xF6rklaring`,
850
- "s255857544a9d5ec0": `\xC5terst\xE4llning`,
851
- "s4802e47fe2e95134": `Alternativ`,
852
- "s54393bfa280ea55b": `Fr\xE5gest\xE4llning`,
853
- "s7254ca27b16ae2d8": `Falsk`,
854
- "s80dc9f56411917df": `Text att lyfta fram`,
855
- "s85ea99fb52be3385": `Sant`,
856
- "sb3d4f79d9d8b71e5": `Skicka in`,
857
- "sc56e9323f076a11e": `Text att l\xE4gga till luckor i`,
858
- "scd1dd6ff53d0d01a": `F\xF6rs\xF6k igen`,
859
- "sd26e8d4eef55e341": `Kontrollera dina svar`,
860
- "saf8b589e65febbd2": `Save answer`,
861
- "sb0aadaa04e658ad6": `Choice`,
862
- "s2ba5f4d8f3bd7c57": `Order`,
863
- "s2492f5fb1b05b45e": `Text`,
864
- "s49c940aecfef3ea0": `Mark`,
865
- "saa3efba1f0c816b7": `Speech`
866
- };
867
- }
868
- });
869
-
870
- // localization/generated/tr.ts
871
- var tr_exports = {};
872
- __export(tr_exports, {
873
- templates: () => templates28
874
- });
875
- var templates28;
876
- var init_tr = __esm({
877
- "localization/generated/tr.ts"() {
878
- templates28 = {
879
- "s159928724265eb05": `Se\xE7enek Ekle`,
880
- "s1b23c41934894f30": `A\xE7\u0131klama`,
881
- "s255857544a9d5ec0": `S\u0131f\u0131rla`,
882
- "s4802e47fe2e95134": `Opsiyon`,
883
- "s54393bfa280ea55b": `\u0130stem`,
884
- "s7254ca27b16ae2d8": `Yanl\u0131\u015F`,
885
- "s80dc9f56411917df": `Vurgulanacak Metin`,
886
- "s85ea99fb52be3385": `Do\u011Fru`,
887
- "sb3d4f79d9d8b71e5": `G\xF6nder`,
888
- "sc56e9323f076a11e": `Bo\u015Fluk eklenecek metin`,
889
- "scd1dd6ff53d0d01a": `Tekrar deneyin`,
890
- "sd26e8d4eef55e341": `Cevaplar\u0131n\u0131z\u0131 kontrol edin`,
891
- "saf8b589e65febbd2": `Save answer`,
892
- "sb0aadaa04e658ad6": `Choice`,
893
- "s2ba5f4d8f3bd7c57": `Order`,
894
- "s2492f5fb1b05b45e": `Text`,
895
- "s49c940aecfef3ea0": `Mark`,
896
- "saa3efba1f0c816b7": `Speech`
897
- };
898
- }
899
- });
900
-
901
- // localization/generated/uk.ts
902
- var uk_exports = {};
903
- __export(uk_exports, {
904
- templates: () => templates29
905
- });
906
- var templates29;
907
- var init_uk = __esm({
908
- "localization/generated/uk.ts"() {
909
- templates29 = {
910
- "s159928724265eb05": `\u0414\u043E\u0434\u0430\u0442\u0438 \u043E\u043F\u0446\u0456\u044E`,
911
- "s1b23c41934894f30": `\u041F\u043E\u044F\u0441\u043D\u0435\u043D\u043D\u044F`,
912
- "s255857544a9d5ec0": `\u041F\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F`,
913
- "s4802e47fe2e95134": `\u0412\u0430\u0440\u0456\u0430\u043D\u0442`,
914
- "s54393bfa280ea55b": `\u0428\u0432\u0438\u0434\u043A\u043E`,
915
- "s7254ca27b16ae2d8": `\u041D\u0435\u043F\u0440\u0430\u0432\u0434\u0430.`,
916
- "s80dc9f56411917df": `\u0422\u0435\u043A\u0441\u0442 \u0434\u043B\u044F \u0432\u0438\u0434\u0456\u043B\u0435\u043D\u043D\u044F`,
917
- "s85ea99fb52be3385": `\u041F\u0440\u0430\u0432\u0434\u0430.`,
918
- "sb3d4f79d9d8b71e5": `\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438`,
919
- "sc56e9323f076a11e": `\u0422\u0435\u043A\u0441\u0442, \u0434\u043E \u044F\u043A\u043E\u0433\u043E \u043F\u043E\u0442\u0440\u0456\u0431\u043D\u043E \u0434\u043E\u0434\u0430\u0442\u0438 \u043F\u0440\u043E\u0431\u0456\u043B\u0438`,
920
- "scd1dd6ff53d0d01a": `\u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437.`,
921
- "sd26e8d4eef55e341": `\u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0441\u0432\u043E\u0457 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0456`,
922
- "saf8b589e65febbd2": `Save answer`,
923
- "sb0aadaa04e658ad6": `Choice`,
924
- "s2ba5f4d8f3bd7c57": `Order`,
925
- "s2492f5fb1b05b45e": `Text`,
926
- "s49c940aecfef3ea0": `Mark`,
927
- "saa3efba1f0c816b7": `Speech`
928
- };
929
- }
930
- });
931
-
932
- // localization/generated/zh-hans.ts
933
- var zh_hans_exports = {};
934
- __export(zh_hans_exports, {
935
- templates: () => templates30
936
- });
937
- var templates30;
938
- var init_zh_hans = __esm({
939
- "localization/generated/zh-hans.ts"() {
940
- templates30 = {
941
- "s159928724265eb05": `\u6DFB\u52A0\u9009\u9879`,
942
- "s1b23c41934894f30": `\u8BF4\u660E`,
943
- "s255857544a9d5ec0": `\u91CD\u7F6E`,
944
- "s4802e47fe2e95134": `\u9009\u9879`,
945
- "s54393bfa280ea55b": `\u63D0\u793A`,
946
- "s7254ca27b16ae2d8": `\u5047\u7684`,
947
- "s80dc9f56411917df": `\u7A81\u51FA\u663E\u793A\u6587\u672C`,
948
- "s85ea99fb52be3385": `\u6B63\u786E`,
949
- "sb3d4f79d9d8b71e5": `\u63D0\u4EA4`,
950
- "sc56e9323f076a11e": `\u4E3A\u6587\u672C\u6DFB\u52A0\u95F4\u9699`,
951
- "scd1dd6ff53d0d01a": `\u518D\u8BD5\u4E00\u6B21`,
952
- "sd26e8d4eef55e341": `\u68C0\u67E5\u7B54\u6848`,
953
- "saf8b589e65febbd2": `Save answer`,
954
- "sb0aadaa04e658ad6": `Choice`,
955
- "s2ba5f4d8f3bd7c57": `Order`,
956
- "s2492f5fb1b05b45e": `Text`,
957
- "s49c940aecfef3ea0": `Mark`,
958
- "saa3efba1f0c816b7": `Speech`
959
- };
960
- }
961
- });
962
-
963
- // node_modules/@lit/reactive-element/css-tag.js
964
- var t = globalThis;
965
- var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
966
- var s = Symbol();
967
- var o = /* @__PURE__ */ new WeakMap();
968
- var n = class {
969
- constructor(t7, e10, o9) {
970
- if (this._$cssResult$ = true, o9 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
971
- this.cssText = t7, this.t = e10;
972
- }
973
- get styleSheet() {
974
- let t7 = this.o;
975
- const s4 = this.t;
976
- if (e && void 0 === t7) {
977
- const e10 = void 0 !== s4 && 1 === s4.length;
978
- e10 && (t7 = o.get(s4)), void 0 === t7 && ((this.o = t7 = new CSSStyleSheet()).replaceSync(this.cssText), e10 && o.set(s4, t7));
979
- }
980
- return t7;
981
- }
982
- toString() {
983
- return this.cssText;
984
- }
985
- };
986
- var r = (t7) => new n("string" == typeof t7 ? t7 : t7 + "", void 0, s);
987
- var i = (t7, ...e10) => {
988
- const o9 = 1 === t7.length ? t7[0] : e10.reduce(((e11, s4, o10) => e11 + ((t8) => {
989
- if (true === t8._$cssResult$) return t8.cssText;
990
- if ("number" == typeof t8) return t8;
991
- throw Error("Value passed to 'css' function must be a 'css' function result: " + t8 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
992
- })(s4) + t7[o10 + 1]), t7[0]);
993
- return new n(o9, t7, s);
994
- };
995
- var S = (s4, o9) => {
996
- if (e) s4.adoptedStyleSheets = o9.map(((t7) => t7 instanceof CSSStyleSheet ? t7 : t7.styleSheet));
997
- else for (const e10 of o9) {
998
- const o10 = document.createElement("style"), n8 = t.litNonce;
999
- void 0 !== n8 && o10.setAttribute("nonce", n8), o10.textContent = e10.cssText, s4.appendChild(o10);
1000
- }
1001
- };
1002
- var c = e ? (t7) => t7 : (t7) => t7 instanceof CSSStyleSheet ? ((t8) => {
1003
- let e10 = "";
1004
- for (const s4 of t8.cssRules) e10 += s4.cssText;
1005
- return r(e10);
1006
- })(t7) : t7;
1007
-
1008
- // node_modules/@lit/reactive-element/reactive-element.js
1009
- var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
1010
- var a = globalThis;
1011
- var c2 = a.trustedTypes;
1012
- var l = c2 ? c2.emptyScript : "";
1013
- var p = a.reactiveElementPolyfillSupport;
1014
- var d = (t7, s4) => t7;
1015
- var u = { toAttribute(t7, s4) {
1016
- switch (s4) {
1017
- case Boolean:
1018
- t7 = t7 ? l : null;
1019
- break;
1020
- case Object:
1021
- case Array:
1022
- t7 = null == t7 ? t7 : JSON.stringify(t7);
1023
- }
1024
- return t7;
1025
- }, fromAttribute(t7, s4) {
1026
- let i8 = t7;
1027
- switch (s4) {
1028
- case Boolean:
1029
- i8 = null !== t7;
1030
- break;
1031
- case Number:
1032
- i8 = null === t7 ? null : Number(t7);
1033
- break;
1034
- case Object:
1035
- case Array:
1036
- try {
1037
- i8 = JSON.parse(t7);
1038
- } catch (t8) {
1039
- i8 = null;
1040
- }
1041
- }
1042
- return i8;
1043
- } };
1044
- var f = (t7, s4) => !i2(t7, s4);
1045
- var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
1046
- Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
1047
- var b = class extends HTMLElement {
1048
- static addInitializer(t7) {
1049
- this._$Ei(), (this.l ??= []).push(t7);
1050
- }
1051
- static get observedAttributes() {
1052
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1053
- }
1054
- static createProperty(t7, s4 = y) {
1055
- if (s4.state && (s4.attribute = false), this._$Ei(), this.elementProperties.set(t7, s4), !s4.noAccessor) {
1056
- const i8 = Symbol(), r8 = this.getPropertyDescriptor(t7, i8, s4);
1057
- void 0 !== r8 && e2(this.prototype, t7, r8);
1058
- }
1059
- }
1060
- static getPropertyDescriptor(t7, s4, i8) {
1061
- const { get: e10, set: h4 } = r2(this.prototype, t7) ?? { get() {
1062
- return this[s4];
1063
- }, set(t8) {
1064
- this[s4] = t8;
1065
- } };
1066
- return { get() {
1067
- return e10?.call(this);
1068
- }, set(s5) {
1069
- const r8 = e10?.call(this);
1070
- h4.call(this, s5), this.requestUpdate(t7, r8, i8);
1071
- }, configurable: true, enumerable: true };
1072
- }
1073
- static getPropertyOptions(t7) {
1074
- return this.elementProperties.get(t7) ?? y;
1075
- }
1076
- static _$Ei() {
1077
- if (this.hasOwnProperty(d("elementProperties"))) return;
1078
- const t7 = n2(this);
1079
- t7.finalize(), void 0 !== t7.l && (this.l = [...t7.l]), this.elementProperties = new Map(t7.elementProperties);
1080
- }
1081
- static finalize() {
1082
- if (this.hasOwnProperty(d("finalized"))) return;
1083
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
1084
- const t8 = this.properties, s4 = [...h(t8), ...o2(t8)];
1085
- for (const i8 of s4) this.createProperty(i8, t8[i8]);
1086
- }
1087
- const t7 = this[Symbol.metadata];
1088
- if (null !== t7) {
1089
- const s4 = litPropertyMetadata.get(t7);
1090
- if (void 0 !== s4) for (const [t8, i8] of s4) this.elementProperties.set(t8, i8);
1091
- }
1092
- this._$Eh = /* @__PURE__ */ new Map();
1093
- for (const [t8, s4] of this.elementProperties) {
1094
- const i8 = this._$Eu(t8, s4);
1095
- void 0 !== i8 && this._$Eh.set(i8, t8);
1096
- }
1097
- this.elementStyles = this.finalizeStyles(this.styles);
1098
- }
1099
- static finalizeStyles(s4) {
1100
- const i8 = [];
1101
- if (Array.isArray(s4)) {
1102
- const e10 = new Set(s4.flat(1 / 0).reverse());
1103
- for (const s5 of e10) i8.unshift(c(s5));
1104
- } else void 0 !== s4 && i8.push(c(s4));
1105
- return i8;
1106
- }
1107
- static _$Eu(t7, s4) {
1108
- const i8 = s4.attribute;
1109
- return false === i8 ? void 0 : "string" == typeof i8 ? i8 : "string" == typeof t7 ? t7.toLowerCase() : void 0;
1110
- }
1111
- constructor() {
1112
- super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
1113
- }
1114
- _$Ev() {
1115
- this._$ES = new Promise(((t7) => this.enableUpdating = t7)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t7) => t7(this)));
1116
- }
1117
- addController(t7) {
1118
- (this._$EO ??= /* @__PURE__ */ new Set()).add(t7), void 0 !== this.renderRoot && this.isConnected && t7.hostConnected?.();
1119
- }
1120
- removeController(t7) {
1121
- this._$EO?.delete(t7);
1122
- }
1123
- _$E_() {
1124
- const t7 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
1125
- for (const i8 of s4.keys()) this.hasOwnProperty(i8) && (t7.set(i8, this[i8]), delete this[i8]);
1126
- t7.size > 0 && (this._$Ep = t7);
1127
- }
1128
- createRenderRoot() {
1129
- const t7 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1130
- return S(t7, this.constructor.elementStyles), t7;
1131
- }
1132
- connectedCallback() {
1133
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(((t7) => t7.hostConnected?.()));
1134
- }
1135
- enableUpdating(t7) {
1136
- }
1137
- disconnectedCallback() {
1138
- this._$EO?.forEach(((t7) => t7.hostDisconnected?.()));
1139
- }
1140
- attributeChangedCallback(t7, s4, i8) {
1141
- this._$AK(t7, i8);
1142
- }
1143
- _$EC(t7, s4) {
1144
- const i8 = this.constructor.elementProperties.get(t7), e10 = this.constructor._$Eu(t7, i8);
1145
- if (void 0 !== e10 && true === i8.reflect) {
1146
- const r8 = (void 0 !== i8.converter?.toAttribute ? i8.converter : u).toAttribute(s4, i8.type);
1147
- this._$Em = t7, null == r8 ? this.removeAttribute(e10) : this.setAttribute(e10, r8), this._$Em = null;
1148
- }
1149
- }
1150
- _$AK(t7, s4) {
1151
- const i8 = this.constructor, e10 = i8._$Eh.get(t7);
1152
- if (void 0 !== e10 && this._$Em !== e10) {
1153
- const t8 = i8.getPropertyOptions(e10), r8 = "function" == typeof t8.converter ? { fromAttribute: t8.converter } : void 0 !== t8.converter?.fromAttribute ? t8.converter : u;
1154
- this._$Em = e10, this[e10] = r8.fromAttribute(s4, t8.type), this._$Em = null;
1155
- }
1156
- }
1157
- requestUpdate(t7, s4, i8) {
1158
- if (void 0 !== t7) {
1159
- if (i8 ??= this.constructor.getPropertyOptions(t7), !(i8.hasChanged ?? f)(this[t7], s4)) return;
1160
- this.P(t7, s4, i8);
1161
- }
1162
- false === this.isUpdatePending && (this._$ES = this._$ET());
1163
- }
1164
- P(t7, s4, i8) {
1165
- this._$AL.has(t7) || this._$AL.set(t7, s4), true === i8.reflect && this._$Em !== t7 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t7);
1166
- }
1167
- async _$ET() {
1168
- this.isUpdatePending = true;
1169
- try {
1170
- await this._$ES;
1171
- } catch (t8) {
1172
- Promise.reject(t8);
1173
- }
1174
- const t7 = this.scheduleUpdate();
1175
- return null != t7 && await t7, !this.isUpdatePending;
1176
- }
1177
- scheduleUpdate() {
1178
- return this.performUpdate();
1179
- }
1180
- performUpdate() {
1181
- if (!this.isUpdatePending) return;
1182
- if (!this.hasUpdated) {
1183
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
1184
- for (const [t9, s5] of this._$Ep) this[t9] = s5;
1185
- this._$Ep = void 0;
1186
- }
1187
- const t8 = this.constructor.elementProperties;
1188
- if (t8.size > 0) for (const [s5, i8] of t8) true !== i8.wrapped || this._$AL.has(s5) || void 0 === this[s5] || this.P(s5, this[s5], i8);
1189
- }
1190
- let t7 = false;
1191
- const s4 = this._$AL;
1192
- try {
1193
- t7 = this.shouldUpdate(s4), t7 ? (this.willUpdate(s4), this._$EO?.forEach(((t8) => t8.hostUpdate?.())), this.update(s4)) : this._$EU();
1194
- } catch (s5) {
1195
- throw t7 = false, this._$EU(), s5;
1196
- }
1197
- t7 && this._$AE(s4);
1198
- }
1199
- willUpdate(t7) {
1200
- }
1201
- _$AE(t7) {
1202
- this._$EO?.forEach(((t8) => t8.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t7)), this.updated(t7);
1203
- }
1204
- _$EU() {
1205
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
1206
- }
1207
- get updateComplete() {
1208
- return this.getUpdateComplete();
1209
- }
1210
- getUpdateComplete() {
1211
- return this._$ES;
1212
- }
1213
- shouldUpdate(t7) {
1214
- return true;
1215
- }
1216
- update(t7) {
1217
- this._$Ej &&= this._$Ej.forEach(((t8) => this._$EC(t8, this[t8]))), this._$EU();
1218
- }
1219
- updated(t7) {
1220
- }
1221
- firstUpdated(t7) {
1222
- }
1223
- };
1224
- b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ??= []).push("2.0.4");
1225
-
1226
- // node_modules/lit-html/lit-html.js
1227
- var t2 = globalThis;
1228
- var i3 = t2.trustedTypes;
1229
- var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t7) => t7 }) : void 0;
1230
- var e3 = "$lit$";
1231
- var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
1232
- var o3 = "?" + h2;
1233
- var n3 = `<${o3}>`;
1234
- var r3 = document;
1235
- var l2 = () => r3.createComment("");
1236
- var c3 = (t7) => null === t7 || "object" != typeof t7 && "function" != typeof t7;
1237
- var a2 = Array.isArray;
1238
- var u2 = (t7) => a2(t7) || "function" == typeof t7?.[Symbol.iterator];
1239
- var d2 = "[ \n\f\r]";
1240
- var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
1241
- var v = /-->/g;
1242
- var _ = />/g;
1243
- var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
1244
- \f\r"'\`<>=]|("|')|))|$)`, "g");
1245
- var p2 = /'/g;
1246
- var g = /"/g;
1247
- var $ = /^(?:script|style|textarea|title)$/i;
1248
- var y2 = (t7) => (i8, ...s4) => ({ _$litType$: t7, strings: i8, values: s4 });
1249
- var x = y2(1);
1250
- var b2 = y2(2);
1251
- var w = y2(3);
1252
- var T = Symbol.for("lit-noChange");
1253
- var E = Symbol.for("lit-nothing");
1254
- var A = /* @__PURE__ */ new WeakMap();
1255
- var C = r3.createTreeWalker(r3, 129);
1256
- function P(t7, i8) {
1257
- if (!a2(t7) || !t7.hasOwnProperty("raw")) throw Error("invalid template strings array");
1258
- return void 0 !== s2 ? s2.createHTML(i8) : i8;
1259
- }
1260
- var V = (t7, i8) => {
1261
- const s4 = t7.length - 1, o9 = [];
1262
- let r8, l5 = 2 === i8 ? "<svg>" : 3 === i8 ? "<math>" : "", c6 = f2;
1263
- for (let i9 = 0; i9 < s4; i9++) {
1264
- const s5 = t7[i9];
1265
- let a5, u5, d4 = -1, y4 = 0;
1266
- for (; y4 < s5.length && (c6.lastIndex = y4, u5 = c6.exec(s5), null !== u5); ) y4 = c6.lastIndex, c6 === f2 ? "!--" === u5[1] ? c6 = v : void 0 !== u5[1] ? c6 = _ : void 0 !== u5[2] ? ($.test(u5[2]) && (r8 = RegExp("</" + u5[2], "g")), c6 = m) : void 0 !== u5[3] && (c6 = m) : c6 === m ? ">" === u5[0] ? (c6 = r8 ?? f2, d4 = -1) : void 0 === u5[1] ? d4 = -2 : (d4 = c6.lastIndex - u5[2].length, a5 = u5[1], c6 = void 0 === u5[3] ? m : '"' === u5[3] ? g : p2) : c6 === g || c6 === p2 ? c6 = m : c6 === v || c6 === _ ? c6 = f2 : (c6 = m, r8 = void 0);
1267
- const x3 = c6 === m && t7[i9 + 1].startsWith("/>") ? " " : "";
1268
- l5 += c6 === f2 ? s5 + n3 : d4 >= 0 ? (o9.push(a5), s5.slice(0, d4) + e3 + s5.slice(d4) + h2 + x3) : s5 + h2 + (-2 === d4 ? i9 : x3);
1269
- }
1270
- return [P(t7, l5 + (t7[s4] || "<?>") + (2 === i8 ? "</svg>" : 3 === i8 ? "</math>" : "")), o9];
1271
- };
1272
- var N = class _N {
1273
- constructor({ strings: t7, _$litType$: s4 }, n8) {
1274
- let r8;
1275
- this.parts = [];
1276
- let c6 = 0, a5 = 0;
1277
- const u5 = t7.length - 1, d4 = this.parts, [f4, v3] = V(t7, s4);
1278
- if (this.el = _N.createElement(f4, n8), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
1279
- const t8 = this.el.content.firstChild;
1280
- t8.replaceWith(...t8.childNodes);
1281
- }
1282
- for (; null !== (r8 = C.nextNode()) && d4.length < u5; ) {
1283
- if (1 === r8.nodeType) {
1284
- if (r8.hasAttributes()) for (const t8 of r8.getAttributeNames()) if (t8.endsWith(e3)) {
1285
- const i8 = v3[a5++], s5 = r8.getAttribute(t8).split(h2), e10 = /([.?@])?(.*)/.exec(i8);
1286
- d4.push({ type: 1, index: c6, name: e10[2], strings: s5, ctor: "." === e10[1] ? H : "?" === e10[1] ? I : "@" === e10[1] ? L : k }), r8.removeAttribute(t8);
1287
- } else t8.startsWith(h2) && (d4.push({ type: 6, index: c6 }), r8.removeAttribute(t8));
1288
- if ($.test(r8.tagName)) {
1289
- const t8 = r8.textContent.split(h2), s5 = t8.length - 1;
1290
- if (s5 > 0) {
1291
- r8.textContent = i3 ? i3.emptyScript : "";
1292
- for (let i8 = 0; i8 < s5; i8++) r8.append(t8[i8], l2()), C.nextNode(), d4.push({ type: 2, index: ++c6 });
1293
- r8.append(t8[s5], l2());
1294
- }
1295
- }
1296
- } else if (8 === r8.nodeType) if (r8.data === o3) d4.push({ type: 2, index: c6 });
1297
- else {
1298
- let t8 = -1;
1299
- for (; -1 !== (t8 = r8.data.indexOf(h2, t8 + 1)); ) d4.push({ type: 7, index: c6 }), t8 += h2.length - 1;
1300
- }
1301
- c6++;
1302
- }
1303
- }
1304
- static createElement(t7, i8) {
1305
- const s4 = r3.createElement("template");
1306
- return s4.innerHTML = t7, s4;
1307
- }
1308
- };
1309
- function S2(t7, i8, s4 = t7, e10) {
1310
- if (i8 === T) return i8;
1311
- let h4 = void 0 !== e10 ? s4._$Co?.[e10] : s4._$Cl;
1312
- const o9 = c3(i8) ? void 0 : i8._$litDirective$;
1313
- return h4?.constructor !== o9 && (h4?._$AO?.(false), void 0 === o9 ? h4 = void 0 : (h4 = new o9(t7), h4._$AT(t7, s4, e10)), void 0 !== e10 ? (s4._$Co ??= [])[e10] = h4 : s4._$Cl = h4), void 0 !== h4 && (i8 = S2(t7, h4._$AS(t7, i8.values), h4, e10)), i8;
1314
- }
1315
- var M = class {
1316
- constructor(t7, i8) {
1317
- this._$AV = [], this._$AN = void 0, this._$AD = t7, this._$AM = i8;
1318
- }
1319
- get parentNode() {
1320
- return this._$AM.parentNode;
1321
- }
1322
- get _$AU() {
1323
- return this._$AM._$AU;
1324
- }
1325
- u(t7) {
1326
- const { el: { content: i8 }, parts: s4 } = this._$AD, e10 = (t7?.creationScope ?? r3).importNode(i8, true);
1327
- C.currentNode = e10;
1328
- let h4 = C.nextNode(), o9 = 0, n8 = 0, l5 = s4[0];
1329
- for (; void 0 !== l5; ) {
1330
- if (o9 === l5.index) {
1331
- let i9;
1332
- 2 === l5.type ? i9 = new R(h4, h4.nextSibling, this, t7) : 1 === l5.type ? i9 = new l5.ctor(h4, l5.name, l5.strings, this, t7) : 6 === l5.type && (i9 = new z(h4, this, t7)), this._$AV.push(i9), l5 = s4[++n8];
1333
- }
1334
- o9 !== l5?.index && (h4 = C.nextNode(), o9++);
1335
- }
1336
- return C.currentNode = r3, e10;
1337
- }
1338
- p(t7) {
1339
- let i8 = 0;
1340
- for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t7, s4, i8), i8 += s4.strings.length - 2) : s4._$AI(t7[i8])), i8++;
1341
- }
1342
- };
1343
- var R = class _R {
1344
- get _$AU() {
1345
- return this._$AM?._$AU ?? this._$Cv;
1346
- }
1347
- constructor(t7, i8, s4, e10) {
1348
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t7, this._$AB = i8, this._$AM = s4, this.options = e10, this._$Cv = e10?.isConnected ?? true;
1349
- }
1350
- get parentNode() {
1351
- let t7 = this._$AA.parentNode;
1352
- const i8 = this._$AM;
1353
- return void 0 !== i8 && 11 === t7?.nodeType && (t7 = i8.parentNode), t7;
1354
- }
1355
- get startNode() {
1356
- return this._$AA;
1357
- }
1358
- get endNode() {
1359
- return this._$AB;
1360
- }
1361
- _$AI(t7, i8 = this) {
1362
- t7 = S2(this, t7, i8), c3(t7) ? t7 === E || null == t7 || "" === t7 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t7 !== this._$AH && t7 !== T && this._(t7) : void 0 !== t7._$litType$ ? this.$(t7) : void 0 !== t7.nodeType ? this.T(t7) : u2(t7) ? this.k(t7) : this._(t7);
1363
- }
1364
- O(t7) {
1365
- return this._$AA.parentNode.insertBefore(t7, this._$AB);
1366
- }
1367
- T(t7) {
1368
- this._$AH !== t7 && (this._$AR(), this._$AH = this.O(t7));
1369
- }
1370
- _(t7) {
1371
- this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t7 : this.T(r3.createTextNode(t7)), this._$AH = t7;
1372
- }
1373
- $(t7) {
1374
- const { values: i8, _$litType$: s4 } = t7, e10 = "number" == typeof s4 ? this._$AC(t7) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
1375
- if (this._$AH?._$AD === e10) this._$AH.p(i8);
1376
- else {
1377
- const t8 = new M(e10, this), s5 = t8.u(this.options);
1378
- t8.p(i8), this.T(s5), this._$AH = t8;
1379
- }
1380
- }
1381
- _$AC(t7) {
1382
- let i8 = A.get(t7.strings);
1383
- return void 0 === i8 && A.set(t7.strings, i8 = new N(t7)), i8;
1384
- }
1385
- k(t7) {
1386
- a2(this._$AH) || (this._$AH = [], this._$AR());
1387
- const i8 = this._$AH;
1388
- let s4, e10 = 0;
1389
- for (const h4 of t7) e10 === i8.length ? i8.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i8[e10], s4._$AI(h4), e10++;
1390
- e10 < i8.length && (this._$AR(s4 && s4._$AB.nextSibling, e10), i8.length = e10);
1391
- }
1392
- _$AR(t7 = this._$AA.nextSibling, i8) {
1393
- for (this._$AP?.(false, true, i8); t7 && t7 !== this._$AB; ) {
1394
- const i9 = t7.nextSibling;
1395
- t7.remove(), t7 = i9;
1396
- }
1397
- }
1398
- setConnected(t7) {
1399
- void 0 === this._$AM && (this._$Cv = t7, this._$AP?.(t7));
1400
- }
1401
- };
1402
- var k = class {
1403
- get tagName() {
1404
- return this.element.tagName;
1405
- }
1406
- get _$AU() {
1407
- return this._$AM._$AU;
1408
- }
1409
- constructor(t7, i8, s4, e10, h4) {
1410
- this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t7, this.name = i8, this._$AM = e10, this.options = h4, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
1411
- }
1412
- _$AI(t7, i8 = this, s4, e10) {
1413
- const h4 = this.strings;
1414
- let o9 = false;
1415
- if (void 0 === h4) t7 = S2(this, t7, i8, 0), o9 = !c3(t7) || t7 !== this._$AH && t7 !== T, o9 && (this._$AH = t7);
1416
- else {
1417
- const e11 = t7;
1418
- let n8, r8;
1419
- for (t7 = h4[0], n8 = 0; n8 < h4.length - 1; n8++) r8 = S2(this, e11[s4 + n8], i8, n8), r8 === T && (r8 = this._$AH[n8]), o9 ||= !c3(r8) || r8 !== this._$AH[n8], r8 === E ? t7 = E : t7 !== E && (t7 += (r8 ?? "") + h4[n8 + 1]), this._$AH[n8] = r8;
1420
- }
1421
- o9 && !e10 && this.j(t7);
1422
- }
1423
- j(t7) {
1424
- t7 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t7 ?? "");
1425
- }
1426
- };
1427
- var H = class extends k {
1428
- constructor() {
1429
- super(...arguments), this.type = 3;
1430
- }
1431
- j(t7) {
1432
- this.element[this.name] = t7 === E ? void 0 : t7;
1433
- }
1434
- };
1435
- var I = class extends k {
1436
- constructor() {
1437
- super(...arguments), this.type = 4;
1438
- }
1439
- j(t7) {
1440
- this.element.toggleAttribute(this.name, !!t7 && t7 !== E);
1441
- }
1442
- };
1443
- var L = class extends k {
1444
- constructor(t7, i8, s4, e10, h4) {
1445
- super(t7, i8, s4, e10, h4), this.type = 5;
1446
- }
1447
- _$AI(t7, i8 = this) {
1448
- if ((t7 = S2(this, t7, i8, 0) ?? E) === T) return;
1449
- const s4 = this._$AH, e10 = t7 === E && s4 !== E || t7.capture !== s4.capture || t7.once !== s4.once || t7.passive !== s4.passive, h4 = t7 !== E && (s4 === E || e10);
1450
- e10 && this.element.removeEventListener(this.name, this, s4), h4 && this.element.addEventListener(this.name, this, t7), this._$AH = t7;
1451
- }
1452
- handleEvent(t7) {
1453
- "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t7) : this._$AH.handleEvent(t7);
1454
- }
1455
- };
1456
- var z = class {
1457
- constructor(t7, i8, s4) {
1458
- this.element = t7, this.type = 6, this._$AN = void 0, this._$AM = i8, this.options = s4;
1459
- }
1460
- get _$AU() {
1461
- return this._$AM._$AU;
1462
- }
1463
- _$AI(t7) {
1464
- S2(this, t7);
1465
- }
1466
- };
1467
- 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 };
1468
- var j = t2.litHtmlPolyfillSupport;
1469
- j?.(N, R), (t2.litHtmlVersions ??= []).push("3.2.1");
1470
- var B = (t7, i8, s4) => {
1471
- const e10 = s4?.renderBefore ?? i8;
1472
- let h4 = e10._$litPart$;
1473
- if (void 0 === h4) {
1474
- const t8 = s4?.renderBefore ?? null;
1475
- e10._$litPart$ = h4 = new R(i8.insertBefore(l2(), t8), t8, void 0, s4 ?? {});
1476
- }
1477
- return h4._$AI(t7), h4;
1478
- };
1479
-
1480
- // node_modules/lit-element/lit-element.js
1481
- var r4 = class extends b {
1482
- constructor() {
1483
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1484
- }
1485
- createRenderRoot() {
1486
- const t7 = super.createRenderRoot();
1487
- return this.renderOptions.renderBefore ??= t7.firstChild, t7;
1488
- }
1489
- update(t7) {
1490
- const s4 = this.render();
1491
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t7), this._$Do = B(s4, this.renderRoot, this.renderOptions);
1492
- }
1493
- connectedCallback() {
1494
- super.connectedCallback(), this._$Do?.setConnected(true);
1495
- }
1496
- disconnectedCallback() {
1497
- super.disconnectedCallback(), this._$Do?.setConnected(false);
1498
- }
1499
- render() {
1500
- return T;
1501
- }
1502
- };
1503
- r4._$litElement$ = true, r4["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: r4 });
1504
- var i4 = globalThis.litElementPolyfillSupport;
1505
- i4?.({ LitElement: r4 });
1506
- (globalThis.litElementVersions ??= []).push("4.1.1");
1507
-
1508
- // node_modules/@webwriter/lit/index.js
1509
- var __create2 = Object.create;
1510
- var __defProp2 = Object.defineProperty;
1511
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1512
- var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
1513
- var __typeError2 = (msg2) => {
1514
- throw TypeError(msg2);
1515
- };
1516
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1517
- var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
1518
- var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
1519
- var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
1520
- var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
1521
- var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
1522
- var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
1523
- var __runInitializers2 = (array, flags, self, value) => {
1524
- for (var i32 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i32 < n52; i32++) flags & 1 ? fns[i32].call(self) : value = fns[i32].call(self, value);
1525
- return value;
1526
- };
1527
- var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
1528
- var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
1529
- var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
1530
- var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
1531
- var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
1532
- return __privateGet2(this, extra);
1533
- }, set [name](x22) {
1534
- return __privateSet2(this, extra, x22);
1535
- } }, name));
1536
- k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
1537
- for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
1538
- ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
1539
- if (k22) {
1540
- ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
1541
- if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
1542
- if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
1543
- }
1544
- it = (0, decorators[i32])(k22 ? k22 < 4 ? p22 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
1545
- if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
1546
- else if (typeof it !== "object" || it === null) __typeError2("Object expected");
1547
- else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
1548
- }
1549
- return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
1550
- };
1551
- var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
1552
- var __accessCheck2 = (obj, member, msg2) => member.has(obj) || __typeError2("Cannot " + msg2);
1553
- var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
1554
- var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
1555
- var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1556
- var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
1557
- var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
1558
- var t3 = globalThis;
1559
- var e4 = t3.ShadowRoot && (void 0 === t3.ShadyCSS || t3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
1560
- var s3 = Symbol();
1561
- var o4 = /* @__PURE__ */ new WeakMap();
1562
- var n4 = class {
1563
- constructor(t22, e42, o42) {
1564
- if (this._$cssResult$ = true, o42 !== s3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1565
- this.cssText = t22, this.t = e42;
1566
- }
1567
- get styleSheet() {
1568
- let t22 = this.o;
1569
- const s22 = this.t;
1570
- if (e4 && void 0 === t22) {
1571
- const e42 = void 0 !== s22 && 1 === s22.length;
1572
- e42 && (t22 = o4.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o4.set(s22, t22));
1573
- }
1574
- return t22;
1575
- }
1576
- toString() {
1577
- return this.cssText;
1578
- }
1579
- };
1580
- var r5 = (t22) => new n4("string" == typeof t22 ? t22 : t22 + "", void 0, s3);
1581
- var S3 = (s22, o42) => {
1582
- if (e4) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
1583
- else for (const e42 of o42) {
1584
- const o52 = document.createElement("style"), n52 = t3.litNonce;
1585
- void 0 !== n52 && o52.setAttribute("nonce", n52), o52.textContent = e42.cssText, s22.appendChild(o52);
1586
- }
1587
- };
1588
- var c4 = e4 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
1589
- let e42 = "";
1590
- for (const s22 of t32.cssRules) e42 += s22.cssText;
1591
- return r5(e42);
1592
- })(t22) : t22;
1593
- var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h3, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
1594
- var a3 = globalThis;
1595
- var c22 = a3.trustedTypes;
1596
- var l3 = c22 ? c22.emptyScript : "";
1597
- var p3 = a3.reactiveElementPolyfillSupport;
1598
- var d3 = (t22, s22) => t22;
1599
- var u3 = { toAttribute(t22, s22) {
1600
- switch (s22) {
1601
- case Boolean:
1602
- t22 = t22 ? l3 : null;
1603
- break;
1604
- case Object:
1605
- case Array:
1606
- t22 = null == t22 ? t22 : JSON.stringify(t22);
1607
- }
1608
- return t22;
1609
- }, fromAttribute(t22, s22) {
1610
- let i32 = t22;
1611
- switch (s22) {
1612
- case Boolean:
1613
- i32 = null !== t22;
1614
- break;
1615
- case Number:
1616
- i32 = null === t22 ? null : Number(t22);
1617
- break;
1618
- case Object:
1619
- case Array:
1620
- try {
1621
- i32 = JSON.parse(t22);
1622
- } catch (t32) {
1623
- i32 = null;
1624
- }
1625
- }
1626
- return i32;
1627
- } };
1628
- var f3 = (t22, s22) => !i22(t22, s22);
1629
- var y3 = { attribute: true, type: String, converter: u3, reflect: false, hasChanged: f3 };
1630
- Symbol.metadata ??= Symbol("metadata"), a3.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
1631
- var b3 = class extends HTMLElement {
1632
- static addInitializer(t22) {
1633
- this._$Ei(), (this.l ??= []).push(t22);
1634
- }
1635
- static get observedAttributes() {
1636
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1637
- }
1638
- static createProperty(t22, s22 = y3) {
1639
- if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
1640
- const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22);
1641
- void 0 !== r42 && e22(this.prototype, t22, r42);
1642
- }
1643
- }
1644
- static getPropertyDescriptor(t22, s22, i32) {
1645
- const { get: e42, set: h4 } = r22(this.prototype, t22) ?? { get() {
1646
- return this[s22];
1647
- }, set(t32) {
1648
- this[s22] = t32;
1649
- } };
1650
- return { get() {
1651
- return e42?.call(this);
1652
- }, set(s32) {
1653
- const r42 = e42?.call(this);
1654
- h4.call(this, s32), this.requestUpdate(t22, r42, i32);
1655
- }, configurable: true, enumerable: true };
1656
- }
1657
- static getPropertyOptions(t22) {
1658
- return this.elementProperties.get(t22) ?? y3;
1659
- }
1660
- static _$Ei() {
1661
- if (this.hasOwnProperty(d3("elementProperties"))) return;
1662
- const t22 = n22(this);
1663
- t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
1664
- }
1665
- static finalize() {
1666
- if (this.hasOwnProperty(d3("finalized"))) return;
1667
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d3("properties"))) {
1668
- const t32 = this.properties, s22 = [...h3(t32), ...o22(t32)];
1669
- for (const i32 of s22) this.createProperty(i32, t32[i32]);
1670
- }
1671
- const t22 = this[Symbol.metadata];
1672
- if (null !== t22) {
1673
- const s22 = litPropertyMetadata.get(t22);
1674
- if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
1675
- }
1676
- this._$Eh = /* @__PURE__ */ new Map();
1677
- for (const [t32, s22] of this.elementProperties) {
1678
- const i32 = this._$Eu(t32, s22);
1679
- void 0 !== i32 && this._$Eh.set(i32, t32);
1680
- }
1681
- this.elementStyles = this.finalizeStyles(this.styles);
1682
- }
1683
- static finalizeStyles(s22) {
1684
- const i32 = [];
1685
- if (Array.isArray(s22)) {
1686
- const e42 = new Set(s22.flat(1 / 0).reverse());
1687
- for (const s32 of e42) i32.unshift(c4(s32));
1688
- } else void 0 !== s22 && i32.push(c4(s22));
1689
- return i32;
1690
- }
1691
- static _$Eu(t22, s22) {
1692
- const i32 = s22.attribute;
1693
- return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
1694
- }
1695
- constructor() {
1696
- super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
1697
- }
1698
- _$Ev() {
1699
- this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
1700
- }
1701
- addController(t22) {
1702
- (this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
1703
- }
1704
- removeController(t22) {
1705
- this._$EO?.delete(t22);
1706
- }
1707
- _$E_() {
1708
- const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
1709
- for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
1710
- t22.size > 0 && (this._$Ep = t22);
1711
- }
1712
- createRenderRoot() {
1713
- const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1714
- return S3(t22, this.constructor.elementStyles), t22;
1715
- }
1716
- connectedCallback() {
1717
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
1718
- }
1719
- enableUpdating(t22) {
1720
- }
1721
- disconnectedCallback() {
1722
- this._$EO?.forEach((t22) => t22.hostDisconnected?.());
1723
- }
1724
- attributeChangedCallback(t22, s22, i32) {
1725
- this._$AK(t22, i32);
1726
- }
1727
- _$EC(t22, s22) {
1728
- const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
1729
- if (void 0 !== e42 && true === i32.reflect) {
1730
- const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u3).toAttribute(s22, i32.type);
1731
- this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null;
1732
- }
1733
- }
1734
- _$AK(t22, s22) {
1735
- const i32 = this.constructor, e42 = i32._$Eh.get(t22);
1736
- if (void 0 !== e42 && this._$Em !== e42) {
1737
- const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u3;
1738
- this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null;
1739
- }
1740
- }
1741
- requestUpdate(t22, s22, i32) {
1742
- if (void 0 !== t22) {
1743
- if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f3)(this[t22], s22)) return;
1744
- this.P(t22, s22, i32);
1745
- }
1746
- false === this.isUpdatePending && (this._$ES = this._$ET());
1747
- }
1748
- P(t22, s22, i32) {
1749
- this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
1750
- }
1751
- async _$ET() {
1752
- this.isUpdatePending = true;
1753
- try {
1754
- await this._$ES;
1755
- } catch (t32) {
1756
- Promise.reject(t32);
1757
- }
1758
- const t22 = this.scheduleUpdate();
1759
- return null != t22 && await t22, !this.isUpdatePending;
1760
- }
1761
- scheduleUpdate() {
1762
- return this.performUpdate();
1763
- }
1764
- performUpdate() {
1765
- if (!this.isUpdatePending) return;
1766
- if (!this.hasUpdated) {
1767
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
1768
- for (const [t42, s32] of this._$Ep) this[t42] = s32;
1769
- this._$Ep = void 0;
1770
- }
1771
- const t32 = this.constructor.elementProperties;
1772
- if (t32.size > 0) for (const [s32, i32] of t32) true !== i32.wrapped || this._$AL.has(s32) || void 0 === this[s32] || this.P(s32, this[s32], i32);
1773
- }
1774
- let t22 = false;
1775
- const s22 = this._$AL;
1776
- try {
1777
- t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
1778
- } catch (s32) {
1779
- throw t22 = false, this._$EU(), s32;
1780
- }
1781
- t22 && this._$AE(s22);
1782
- }
1783
- willUpdate(t22) {
1784
- }
1785
- _$AE(t22) {
1786
- this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
1787
- }
1788
- _$EU() {
1789
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
1790
- }
1791
- get updateComplete() {
1792
- return this.getUpdateComplete();
1793
- }
1794
- getUpdateComplete() {
1795
- return this._$ES;
1796
- }
1797
- shouldUpdate(t22) {
1798
- return true;
1799
- }
1800
- update(t22) {
1801
- this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
1802
- }
1803
- updated(t22) {
1804
- }
1805
- firstUpdated(t22) {
1806
- }
1807
- };
1808
- b3.elementStyles = [], b3.shadowRootOptions = { mode: "open" }, b3[d3("elementProperties")] = /* @__PURE__ */ new Map(), b3[d3("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: b3 }), (a3.reactiveElementVersions ??= []).push("2.0.4");
1809
- var n32 = globalThis;
1810
- var c32 = n32.trustedTypes;
1811
- var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
1812
- var f22 = "$lit$";
1813
- var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
1814
- var m2 = "?" + v2;
1815
- var _2 = `<${m2}>`;
1816
- var w2 = document;
1817
- var lt = () => w2.createComment("");
1818
- var st = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
1819
- var g2 = Array.isArray;
1820
- var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
1821
- var x2 = "[ \n\f\r]";
1822
- var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
1823
- var E2 = /-->/g;
1824
- var k2 = />/g;
1825
- var O = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
1826
- \f\r"'\`<>=]|("|')|))|$)`, "g");
1827
- var S22 = /'/g;
1828
- var j2 = /"/g;
1829
- var M2 = /^(?:script|style|textarea|title)$/i;
1830
- var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
1831
- var ke = P2(1);
1832
- var Oe = P2(2);
1833
- var Se = P2(3);
1834
- var R2 = Symbol.for("lit-noChange");
1835
- var D = Symbol.for("lit-nothing");
1836
- var V2 = /* @__PURE__ */ new WeakMap();
1837
- var I2 = w2.createTreeWalker(w2, 129);
1838
- function N2(t22, i32) {
1839
- if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
1840
- return void 0 !== h22 ? h22.createHTML(i32) : i32;
1841
- }
1842
- var U = (t22, i32) => {
1843
- const s22 = t22.length - 1, e42 = [];
1844
- let h4, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
1845
- for (let i42 = 0; i42 < s22; i42++) {
1846
- const s32 = t22[i42];
1847
- let r42, l22, c42 = -1, a22 = 0;
1848
- for (; a22 < s32.length && (n52.lastIndex = a22, l22 = n52.exec(s32), null !== l22); ) a22 = n52.lastIndex, n52 === T2 ? "!--" === l22[1] ? n52 = E2 : void 0 !== l22[1] ? n52 = k2 : void 0 !== l22[2] ? (M2.test(l22[2]) && (h4 = RegExp("</" + l22[2], "g")), n52 = O) : void 0 !== l22[3] && (n52 = O) : n52 === O ? ">" === l22[0] ? (n52 = h4 ?? T2, c42 = -1) : void 0 === l22[1] ? c42 = -2 : (c42 = n52.lastIndex - l22[2].length, r42 = l22[1], n52 = void 0 === l22[3] ? O : '"' === l22[3] ? j2 : S22) : n52 === j2 || n52 === S22 ? n52 = O : n52 === E2 || n52 === k2 ? n52 = T2 : (n52 = O, h4 = void 0);
1849
- const u22 = n52 === O && t22[i42 + 1].startsWith("/>") ? " " : "";
1850
- o42 += n52 === T2 ? s32 + _2 : c42 >= 0 ? (e42.push(r42), s32.slice(0, c42) + f22 + s32.slice(c42) + v2 + u22) : s32 + v2 + (-2 === c42 ? i42 : u22);
1851
- }
1852
- return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
1853
- };
1854
- var B2 = class _B {
1855
- constructor({ strings: t22, _$litType$: i32 }, s22) {
1856
- let e42;
1857
- this.parts = [];
1858
- let h4 = 0, o42 = 0;
1859
- const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U(t22, i32);
1860
- if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
1861
- const t32 = this.el.content.firstChild;
1862
- t32.replaceWith(...t32.childNodes);
1863
- }
1864
- for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) {
1865
- if (1 === e42.nodeType) {
1866
- if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
1867
- const i42 = a22[o42++], s32 = e42.getAttribute(t32).split(v2), n62 = /([.?@])?(.*)/.exec(i42);
1868
- r42.push({ type: 1, index: h4, name: n62[2], strings: s32, ctor: "." === n62[1] ? Y : "?" === n62[1] ? Z2 : "@" === n62[1] ? q : G }), e42.removeAttribute(t32);
1869
- } else t32.startsWith(v2) && (r42.push({ type: 6, index: h4 }), e42.removeAttribute(t32));
1870
- if (M2.test(e42.tagName)) {
1871
- const t32 = e42.textContent.split(v2), i42 = t32.length - 1;
1872
- if (i42 > 0) {
1873
- e42.textContent = c32 ? c32.emptyScript : "";
1874
- for (let s32 = 0; s32 < i42; s32++) e42.append(t32[s32], lt()), I2.nextNode(), r42.push({ type: 2, index: ++h4 });
1875
- e42.append(t32[i42], lt());
1876
- }
1877
- }
1878
- } else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h4 });
1879
- else {
1880
- let t32 = -1;
1881
- for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h4 }), t32 += v2.length - 1;
1882
- }
1883
- h4++;
1884
- }
1885
- }
1886
- static createElement(t22, i32) {
1887
- const s22 = w2.createElement("template");
1888
- return s22.innerHTML = t22, s22;
1889
- }
1890
- };
1891
- function z2(t22, i32, s22 = t22, e42) {
1892
- if (i32 === R2) return i32;
1893
- let h4 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
1894
- const o42 = st(i32) ? void 0 : i32._$litDirective$;
1895
- return h4?.constructor !== o42 && (h4?._$AO?.(false), void 0 === o42 ? h4 = void 0 : (h4 = new o42(t22), h4._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h4 : s22.l = h4), void 0 !== h4 && (i32 = z2(t22, h4._$AS(t22, i32.values), h4, e42)), i32;
1896
- }
1897
- var F = class {
1898
- constructor(t22, i32) {
1899
- this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
1900
- }
1901
- get parentNode() {
1902
- return this._$AM.parentNode;
1903
- }
1904
- get _$AU() {
1905
- return this._$AM._$AU;
1906
- }
1907
- u(t22) {
1908
- const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
1909
- I2.currentNode = e42;
1910
- let h4 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0];
1911
- for (; void 0 !== r42; ) {
1912
- if (o42 === r42.index) {
1913
- let i42;
1914
- 2 === r42.type ? i42 = new et(h4, h4.nextSibling, this, t22) : 1 === r42.type ? i42 = new r42.ctor(h4, r42.name, r42.strings, this, t22) : 6 === r42.type && (i42 = new K(h4, this, t22)), this._$AV.push(i42), r42 = s22[++n52];
1915
- }
1916
- o42 !== r42?.index && (h4 = I2.nextNode(), o42++);
1917
- }
1918
- return I2.currentNode = w2, e42;
1919
- }
1920
- p(t22) {
1921
- let i32 = 0;
1922
- for (const s22 of this._$AV) void 0 !== s22 && (void 0 !== s22.strings ? (s22._$AI(t22, s22, i32), i32 += s22.strings.length - 2) : s22._$AI(t22[i32])), i32++;
1923
- }
1924
- };
1925
- var et = class _et {
1926
- get _$AU() {
1927
- return this._$AM?._$AU ?? this.v;
1928
- }
1929
- constructor(t22, i32, s22, e42) {
1930
- this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t22, this._$AB = i32, this._$AM = s22, this.options = e42, this.v = e42?.isConnected ?? true;
1931
- }
1932
- get parentNode() {
1933
- let t22 = this._$AA.parentNode;
1934
- const i32 = this._$AM;
1935
- return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
1936
- }
1937
- get startNode() {
1938
- return this._$AA;
1939
- }
1940
- get endNode() {
1941
- return this._$AB;
1942
- }
1943
- _$AI(t22, i32 = this) {
1944
- t22 = z2(this, t22, i32), st(t22) ? t22 === D || null == t22 || "" === t22 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t22 !== this._$AH && t22 !== R2 && this._(t22) : void 0 !== t22._$litType$ ? this.$(t22) : void 0 !== t22.nodeType ? this.T(t22) : $2(t22) ? this.k(t22) : this._(t22);
1945
- }
1946
- O(t22) {
1947
- return this._$AA.parentNode.insertBefore(t22, this._$AB);
1948
- }
1949
- T(t22) {
1950
- this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
1951
- }
1952
- _(t22) {
1953
- this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
1954
- }
1955
- $(t22) {
1956
- const { values: i32, _$litType$: s22 } = t22, e42 = "number" == typeof s22 ? this._$AC(t22) : (void 0 === s22.el && (s22.el = B2.createElement(N2(s22.h, s22.h[0]), this.options)), s22);
1957
- if (this._$AH?._$AD === e42) this._$AH.p(i32);
1958
- else {
1959
- const t32 = new F(e42, this), s32 = t32.u(this.options);
1960
- t32.p(i32), this.T(s32), this._$AH = t32;
1961
- }
1962
- }
1963
- _$AC(t22) {
1964
- let i32 = V2.get(t22.strings);
1965
- return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
1966
- }
1967
- k(t22) {
1968
- g2(this._$AH) || (this._$AH = [], this._$AR());
1969
- const i32 = this._$AH;
1970
- let s22, e42 = 0;
1971
- for (const h4 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt()), this.O(lt()), this, this.options)) : s22 = i32[e42], s22._$AI(h4), e42++;
1972
- e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
1973
- }
1974
- _$AR(t22 = this._$AA.nextSibling, i32) {
1975
- for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
1976
- const i42 = t22.nextSibling;
1977
- t22.remove(), t22 = i42;
1978
- }
1979
- }
1980
- setConnected(t22) {
1981
- void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
1982
- }
1983
- };
1984
- var G = class {
1985
- get tagName() {
1986
- return this.element.tagName;
1987
- }
1988
- get _$AU() {
1989
- return this._$AM._$AU;
1990
- }
1991
- constructor(t22, i32, s22, e42, h4) {
1992
- this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t22, this.name = i32, this._$AM = e42, this.options = h4, s22.length > 2 || "" !== s22[0] || "" !== s22[1] ? (this._$AH = Array(s22.length - 1).fill(new String()), this.strings = s22) : this._$AH = D;
1993
- }
1994
- _$AI(t22, i32 = this, s22, e42) {
1995
- const h4 = this.strings;
1996
- let o42 = false;
1997
- if (void 0 === h4) t22 = z2(this, t22, i32, 0), o42 = !st(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22);
1998
- else {
1999
- const e52 = t22;
2000
- let n52, r42;
2001
- for (t22 = h4[0], n52 = 0; n52 < h4.length - 1; n52++) r42 = z2(this, e52[s22 + n52], i32, n52), r42 === R2 && (r42 = this._$AH[n52]), o42 ||= !st(r42) || r42 !== this._$AH[n52], r42 === D ? t22 = D : t22 !== D && (t22 += (r42 ?? "") + h4[n52 + 1]), this._$AH[n52] = r42;
2002
- }
2003
- o42 && !e42 && this.j(t22);
2004
- }
2005
- j(t22) {
2006
- t22 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
2007
- }
2008
- };
2009
- var Y = class extends G {
2010
- constructor() {
2011
- super(...arguments), this.type = 3;
2012
- }
2013
- j(t22) {
2014
- this.element[this.name] = t22 === D ? void 0 : t22;
2015
- }
2016
- };
2017
- var Z2 = class extends G {
2018
- constructor() {
2019
- super(...arguments), this.type = 4;
2020
- }
2021
- j(t22) {
2022
- this.element.toggleAttribute(this.name, !!t22 && t22 !== D);
2023
- }
2024
- };
2025
- var q = class extends G {
2026
- constructor(t22, i32, s22, e42, h4) {
2027
- super(t22, i32, s22, e42, h4), this.type = 5;
2028
- }
2029
- _$AI(t22, i32 = this) {
2030
- if ((t22 = z2(this, t22, i32, 0) ?? D) === R2) return;
2031
- const s22 = this._$AH, e42 = t22 === D && s22 !== D || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h4 = t22 !== D && (s22 === D || e42);
2032
- e42 && this.element.removeEventListener(this.name, this, s22), h4 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
2033
- }
2034
- handleEvent(t22) {
2035
- "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
2036
- }
2037
- };
2038
- var K = class {
2039
- constructor(t22, i32, s22) {
2040
- this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
2041
- }
2042
- get _$AU() {
2043
- return this._$AM._$AU;
2044
- }
2045
- _$AI(t22) {
2046
- z2(this, t22);
2047
- }
2048
- };
2049
- var Re = n32.litHtmlPolyfillSupport;
2050
- Re?.(B2, et), (n32.litHtmlVersions ??= []).push("3.2.0");
2051
- var Q = (t22, i32, s22) => {
2052
- const e42 = s22?.renderBefore ?? i32;
2053
- let h4 = e42._$litPart$;
2054
- if (void 0 === h4) {
2055
- const t32 = s22?.renderBefore ?? null;
2056
- e42._$litPart$ = h4 = new et(i32.insertBefore(lt(), t32), t32, void 0, s22 ?? {});
2057
- }
2058
- return h4._$AI(t22), h4;
2059
- };
2060
- var h32 = class extends b3 {
2061
- constructor() {
2062
- super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
2063
- }
2064
- createRenderRoot() {
2065
- const t22 = super.createRenderRoot();
2066
- return this.renderOptions.renderBefore ??= t22.firstChild, t22;
2067
- }
2068
- update(t22) {
2069
- const e42 = this.render();
2070
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q(e42, this.renderRoot, this.renderOptions);
2071
- }
2072
- connectedCallback() {
2073
- super.connectedCallback(), this.o?.setConnected(true);
2074
- }
2075
- disconnectedCallback() {
2076
- super.disconnectedCallback(), this.o?.setConnected(false);
2077
- }
2078
- render() {
2079
- return R2;
2080
- }
2081
- };
2082
- h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
2083
- var f32 = globalThis.litElementPolyfillSupport;
2084
- f32?.({ LitElement: h32 });
2085
- (globalThis.litElementVersions ??= []).push("4.1.0");
2086
- var o32 = { attribute: true, type: String, converter: u3, reflect: false, hasChanged: f3 };
2087
- var r32 = (t22 = o32, e42, r42) => {
2088
- const { kind: n52, metadata: i32 } = r42;
2089
- let s22 = globalThis.litPropertyMetadata.get(i32);
2090
- if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) {
2091
- const { name: o42 } = r42;
2092
- return { set(r52) {
2093
- const n62 = e42.get.call(this);
2094
- e42.set.call(this, r52), this.requestUpdate(o42, n62, t22);
2095
- }, init(e52) {
2096
- return void 0 !== e52 && this.P(o42, void 0, t22), e52;
2097
- } };
2098
- }
2099
- if ("setter" === n52) {
2100
- const { name: o42 } = r42;
2101
- return function(r52) {
2102
- const n62 = this[o42];
2103
- e42.call(this, r52), this.requestUpdate(o42, n62, t22);
2104
- };
2105
- }
2106
- throw Error("Unsupported decorator location: " + n52);
2107
- };
2108
- function n42(t22) {
2109
- return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o52) => {
2110
- const r42 = e52.hasOwnProperty(o52);
2111
- return e52.constructor.createProperty(o52, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o52) : void 0;
2112
- })(t22, e42, o42);
2113
- }
2114
- var appliedClassMixins = /* @__PURE__ */ new WeakMap();
2115
- function wasMixinPreviouslyApplied(mixin, superClass) {
2116
- let klass = superClass;
2117
- while (klass) {
2118
- if (appliedClassMixins.get(klass) === mixin) {
2119
- return true;
2120
- }
2121
- klass = Object.getPrototypeOf(klass);
2122
- }
2123
- return false;
2124
- }
2125
- function dedupeMixin(mixin) {
2126
- return (superClass) => {
2127
- if (wasMixinPreviouslyApplied(mixin, superClass)) {
2128
- return superClass;
2129
- }
2130
- const mixedClass = mixin(superClass);
2131
- appliedClassMixins.set(mixedClass, mixin);
2132
- return mixedClass;
2133
- };
2134
- }
2135
- var version = "3.0.0";
2136
- var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
2137
- if (!versions.includes(version)) {
2138
- versions.push(version);
2139
- }
2140
- var ScopedElementsMixinImplementation = (superclass) => (
2141
- /** @type {ScopedElementsHost} */
2142
- class ScopedElementsHost extends superclass {
2143
- /**
2144
- * Obtains the scoped elements definitions map if specified.
2145
- *
2146
- * @type {ScopedElementsMap=}
2147
- */
2148
- static scopedElements;
2149
- static get scopedElementsVersion() {
2150
- return version;
2151
- }
2152
- /** @type {CustomElementRegistry=} */
2153
- static __registry;
2154
- /**
2155
- * Obtains the CustomElementRegistry associated to the ShadowRoot.
2156
- *
2157
- * @returns {CustomElementRegistry=}
2158
- */
2159
- get registry() {
2160
- return (
2161
- /** @type {typeof ScopedElementsHost} */
2162
- this.constructor.__registry
2163
- );
2164
- }
2165
- /**
2166
- * Set the CustomElementRegistry associated to the ShadowRoot
2167
- *
2168
- * @param {CustomElementRegistry} registry
2169
- */
2170
- set registry(registry2) {
2171
- this.constructor.__registry = registry2;
2172
- }
2173
- /**
2174
- * @param {ShadowRootInit} options
2175
- * @returns {ShadowRoot}
2176
- */
2177
- attachShadow(options) {
2178
- const { scopedElements } = (
2179
- /** @type {typeof ScopedElementsHost} */
2180
- this.constructor
2181
- );
2182
- const shouldCreateRegistry = !this.registry || // @ts-ignore
2183
- this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
2184
- if (shouldCreateRegistry) {
2185
- this.registry = new CustomElementRegistry();
2186
- for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
2187
- this.registry.define(tagName, klass);
2188
- }
2189
- }
2190
- return super.attachShadow({
2191
- ...options,
2192
- // The polyfill currently expects the registry to be passed as `customElements`
2193
- customElements: this.registry,
2194
- // But the proposal has moved forward, and renamed it to `registry`
2195
- // For backwards compatibility, we pass it as both
2196
- registry: this.registry
2197
- });
2198
- }
2199
- }
2200
- );
2201
- var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
2202
- var ScopedElementsMixinImplementation2 = (superclass) => (
2203
- /** @type {ScopedElementsHost} */
2204
- class ScopedElementsHost extends ScopedElementsMixin(superclass) {
2205
- createRenderRoot() {
2206
- const { shadowRootOptions, elementStyles } = (
2207
- /** @type {TypeofLitElement} */
2208
- this.constructor
2209
- );
2210
- const shadowRoot = this.attachShadow(shadowRootOptions);
2211
- this.renderOptions.creationScope = shadowRoot;
2212
- S3(shadowRoot, elementStyles);
2213
- this.renderOptions.renderBefore ??= shadowRoot.firstChild;
2214
- return shadowRoot;
2215
- }
2216
- }
2217
- );
2218
- var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
2219
- var _lang_dec;
2220
- var _contentEditable_dec;
2221
- var _a;
2222
- var _init;
2223
- var _contentEditable;
2224
- var _lang;
2225
- var LitElementWw = class extends (_a = ScopedElementsMixin2(h32), _contentEditable_dec = [n42({ type: String, attribute: true, reflect: true })], _lang_dec = [n42({ type: String, attribute: true, reflect: true })], _a) {
2226
- constructor() {
2227
- super(...arguments);
2228
- __runInitializers2(_init, 5, this);
2229
- __publicField2(this, "options");
2230
- __publicField2(this, "actions", {});
2231
- __publicField2(this, "localize");
2232
- __privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this);
2233
- __privateAdd2(this, _lang, "");
2234
- __publicField2(this, "_inTransaction", false);
2235
- }
2236
- get lang() {
2237
- return (__privateGet2(this, _lang) || this.parentElement?.closest("[lang]")?.lang) ?? "";
2238
- }
2239
- set lang(value) {
2240
- __privateSet2(this, _lang, value);
2241
- this.localize.setLocale(value).finally(() => this.requestUpdate("lang"));
2242
- }
2243
- connectedCallback() {
2244
- super.connectedCallback();
2245
- this.localize.setLocale(this.lang).finally(() => this.requestUpdate());
2246
- this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
2247
- }
2248
- };
2249
- _init = __decoratorStart2(_a);
2250
- _contentEditable = /* @__PURE__ */ new WeakMap();
2251
- _lang = /* @__PURE__ */ new WeakMap();
2252
- __decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
2253
- __decorateElement2(_init, 3, "lang", _lang_dec, LitElementWw);
2254
- __decoratorMetadata2(_init, LitElementWw);
2255
- __publicField2(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
2256
- __publicField2(LitElementWw, "scopedElements", {});
2257
- __publicField2(LitElementWw, "options", {});
2258
- __publicField2(LitElementWw, "actions", {});
2259
-
2260
- // node_modules/@lit/reactive-element/decorators/custom-element.js
2261
- var t4 = (t7) => (e10, o9) => {
2262
- void 0 !== o9 ? o9.addInitializer((() => {
2263
- customElements.define(t7, e10);
2264
- })) : customElements.define(t7, e10);
2265
- };
2266
-
2267
- // node_modules/@lit/reactive-element/decorators/property.js
2268
- var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
2269
- var r6 = (t7 = o5, e10, r8) => {
2270
- const { kind: n8, metadata: i8 } = r8;
2271
- let s4 = globalThis.litPropertyMetadata.get(i8);
2272
- if (void 0 === s4 && globalThis.litPropertyMetadata.set(i8, s4 = /* @__PURE__ */ new Map()), s4.set(r8.name, t7), "accessor" === n8) {
2273
- const { name: o9 } = r8;
2274
- return { set(r9) {
2275
- const n9 = e10.get.call(this);
2276
- e10.set.call(this, r9), this.requestUpdate(o9, n9, t7);
2277
- }, init(e11) {
2278
- return void 0 !== e11 && this.P(o9, void 0, t7), e11;
2279
- } };
2280
- }
2281
- if ("setter" === n8) {
2282
- const { name: o9 } = r8;
2283
- return function(r9) {
2284
- const n9 = this[o9];
2285
- e10.call(this, r9), this.requestUpdate(o9, n9, t7);
2286
- };
2287
- }
2288
- throw Error("Unsupported decorator location: " + n8);
2289
- };
2290
- function n5(t7) {
2291
- return (e10, o9) => "object" == typeof o9 ? r6(t7, e10, o9) : ((t8, e11, o10) => {
2292
- const r8 = e11.hasOwnProperty(o10);
2293
- return e11.constructor.createProperty(o10, r8 ? { ...t8, wrapped: true } : t8), r8 ? Object.getOwnPropertyDescriptor(e11, o10) : void 0;
2294
- })(t7, e10, o9);
2295
- }
2296
-
2297
- // node_modules/@lit/reactive-element/decorators/state.js
2298
- function r7(r8) {
2299
- return n5({ ...r8, state: true, attribute: false });
2300
- }
2301
-
2302
- // node_modules/@lit/reactive-element/decorators/base.js
2303
- var e5 = (e10, t7, c6) => (c6.configurable = true, c6.enumerable = true, Reflect.decorate && "object" != typeof t7 && Object.defineProperty(e10, t7, c6), c6);
2304
-
2305
- // node_modules/@lit/reactive-element/decorators/query.js
2306
- function e6(e10, r8) {
2307
- return (n8, s4, i8) => {
2308
- const o9 = (t7) => t7.renderRoot?.querySelector(e10) ?? null;
2309
- if (r8) {
2310
- const { get: e11, set: r9 } = "object" == typeof s4 ? n8 : i8 ?? (() => {
2311
- const t7 = Symbol();
2312
- return { get() {
2313
- return this[t7];
2314
- }, set(e12) {
2315
- this[t7] = e12;
2316
- } };
2317
- })();
2318
- return e5(n8, s4, { get() {
2319
- let t7 = e11.call(this);
2320
- return void 0 === t7 && (t7 = o9(this), (null !== t7 || this.hasUpdated) && r9.call(this, t7)), t7;
2321
- } });
2322
- }
2323
- return e5(n8, s4, { get() {
2324
- return o9(this);
2325
- } });
2326
- };
2327
- }
2328
-
2329
- // node_modules/lit-html/directive.js
2330
- var t5 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
2331
- var e7 = (t7) => (...e10) => ({ _$litDirective$: t7, values: e10 });
2332
- var i5 = class {
2333
- constructor(t7) {
2334
- }
2335
- get _$AU() {
2336
- return this._$AM._$AU;
2337
- }
2338
- _$AT(t7, e10, i8) {
2339
- this._$Ct = t7, this._$AM = e10, this._$Ci = i8;
2340
- }
2341
- _$AS(t7, e10) {
2342
- return this.update(t7, e10);
2343
- }
2344
- update(t7, e10) {
2345
- return this.render(...e10);
2346
- }
2347
- };
2348
-
2349
- // node_modules/lit-html/directives/style-map.js
2350
- var n6 = "important";
2351
- var i6 = " !" + n6;
2352
- var o6 = e7(class extends i5 {
2353
- constructor(t7) {
2354
- if (super(t7), t7.type !== t5.ATTRIBUTE || "style" !== t7.name || t7.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
2355
- }
2356
- render(t7) {
2357
- return Object.keys(t7).reduce(((e10, r8) => {
2358
- const s4 = t7[r8];
2359
- return null == s4 ? e10 : e10 + `${r8 = r8.includes("-") ? r8 : r8.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
2360
- }), "");
2361
- }
2362
- update(e10, [r8]) {
2363
- const { style: s4 } = e10.element;
2364
- if (void 0 === this.ft) return this.ft = new Set(Object.keys(r8)), this.render(r8);
2365
- for (const t7 of this.ft) null == r8[t7] && (this.ft.delete(t7), t7.includes("-") ? s4.removeProperty(t7) : s4[t7] = null);
2366
- for (const t7 in r8) {
2367
- const e11 = r8[t7];
2368
- if (null != e11) {
2369
- this.ft.add(t7);
2370
- const r9 = "string" == typeof e11 && e11.endsWith(i6);
2371
- t7.includes("-") || r9 ? s4.setProperty(t7, r9 ? e11.slice(0, -11) : e11, r9 ? n6 : "") : s4[t7] = e11;
2372
- }
2373
- }
2374
- return T;
2375
- }
2376
- });
2377
-
2378
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
2379
- var icon_button_styles_default = i`
2380
- :host {
2381
- display: inline-block;
2382
- color: var(--sl-color-neutral-600);
2383
- }
2384
-
2385
- .icon-button {
2386
- flex: 0 0 auto;
2387
- display: flex;
2388
- align-items: center;
2389
- background: none;
2390
- border: none;
2391
- border-radius: var(--sl-border-radius-medium);
2392
- font-size: inherit;
2393
- color: inherit;
2394
- padding: var(--sl-spacing-x-small);
2395
- cursor: pointer;
2396
- transition: var(--sl-transition-x-fast) color;
2397
- -webkit-appearance: none;
2398
- }
2399
-
2400
- .icon-button:hover:not(.icon-button--disabled),
2401
- .icon-button:focus-visible:not(.icon-button--disabled) {
2402
- color: var(--sl-color-primary-600);
2403
- }
2404
-
2405
- .icon-button:active:not(.icon-button--disabled) {
2406
- color: var(--sl-color-primary-700);
2407
- }
2408
-
2409
- .icon-button:focus {
2410
- outline: none;
2411
- }
2412
-
2413
- .icon-button--disabled {
2414
- opacity: 0.5;
2415
- cursor: not-allowed;
2416
- }
2417
-
2418
- .icon-button:focus-visible {
2419
- outline: var(--sl-focus-ring);
2420
- outline-offset: var(--sl-focus-ring-offset);
2421
- }
2422
-
2423
- .icon-button__icon {
2424
- pointer-events: none;
2425
- }
2426
- `;
2427
-
2428
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js
2429
- var icon_styles_default = i`
2430
- :host {
2431
- display: inline-block;
2432
- width: 1em;
2433
- height: 1em;
2434
- box-sizing: content-box !important;
2435
- }
2436
-
2437
- svg {
2438
- display: block;
2439
- height: 100%;
2440
- width: 100%;
2441
- }
2442
- `;
2443
-
2444
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js
2445
- var basePath = "";
2446
- function setBasePath(path) {
2447
- basePath = path;
2448
- }
2449
- function getBasePath(subpath = "") {
2450
- if (!basePath) {
2451
- const scripts = [...document.getElementsByTagName("script")];
2452
- const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
2453
- if (configScript) {
2454
- setBasePath(configScript.getAttribute("data-shoelace"));
2455
- } else {
2456
- const fallbackScript = scripts.find((s4) => {
2457
- return /shoelace(\.min)?\.js($|\?)/.test(s4.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s4.src);
2458
- });
2459
- let path = "";
2460
- if (fallbackScript) {
2461
- path = fallbackScript.getAttribute("src");
2462
- }
2463
- setBasePath(path.split("/").slice(0, -1).join("/"));
2464
- }
2465
- }
2466
- return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
2467
- }
2468
-
2469
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js
2470
- var library = {
2471
- name: "default",
2472
- resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
2473
- };
2474
- var library_default_default = library;
2475
-
2476
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js
2477
- var icons = {
2478
- caret: `
2479
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2480
- <polyline points="6 9 12 15 18 9"></polyline>
2481
- </svg>
2482
- `,
2483
- check: `
2484
- <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
2485
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
2486
- <g stroke="currentColor">
2487
- <g transform="translate(3.428571, 3.428571)">
2488
- <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
2489
- <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
2490
- </g>
2491
- </g>
2492
- </g>
2493
- </svg>
2494
- `,
2495
- "chevron-down": `
2496
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
2497
- <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
2498
- </svg>
2499
- `,
2500
- "chevron-left": `
2501
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
2502
- <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
2503
- </svg>
2504
- `,
2505
- "chevron-right": `
2506
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
2507
- <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
2508
- </svg>
2509
- `,
2510
- copy: `
2511
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
2512
- <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
2513
- </svg>
2514
- `,
2515
- eye: `
2516
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
2517
- <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
2518
- <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
2519
- </svg>
2520
- `,
2521
- "eye-slash": `
2522
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
2523
- <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
2524
- <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
2525
- <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
2526
- </svg>
2527
- `,
2528
- eyedropper: `
2529
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
2530
- <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
2531
- </svg>
2532
- `,
2533
- "grip-vertical": `
2534
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
2535
- <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
2536
- </svg>
2537
- `,
2538
- indeterminate: `
2539
- <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
2540
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
2541
- <g stroke="currentColor" stroke-width="2">
2542
- <g transform="translate(2.285714, 6.857143)">
2543
- <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
2544
- </g>
2545
- </g>
2546
- </g>
2547
- </svg>
2548
- `,
2549
- "person-fill": `
2550
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
2551
- <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
2552
- </svg>
2553
- `,
2554
- "play-fill": `
2555
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
2556
- <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
2557
- </svg>
2558
- `,
2559
- "pause-fill": `
2560
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
2561
- <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
2562
- </svg>
2563
- `,
2564
- radio: `
2565
- <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
2566
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
2567
- <g fill="currentColor">
2568
- <circle cx="8" cy="8" r="3.42857143"></circle>
2569
- </g>
2570
- </g>
2571
- </svg>
2572
- `,
2573
- "star-fill": `
2574
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
2575
- <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
2576
- </svg>
2577
- `,
2578
- "x-lg": `
2579
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
2580
- <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
2581
- </svg>
2582
- `,
2583
- "x-circle-fill": `
2584
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
2585
- <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
2586
- </svg>
2587
- `
2588
- };
2589
- var systemLibrary = {
2590
- name: "system",
2591
- resolver: (name) => {
2592
- if (name in icons) {
2593
- return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
2594
- }
2595
- return "";
2596
- }
2597
- };
2598
- var library_system_default = systemLibrary;
2599
-
2600
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js
2601
- var registry = [library_default_default, library_system_default];
2602
- var watchedIcons = [];
2603
- function watchIcon(icon) {
2604
- watchedIcons.push(icon);
2605
- }
2606
- function unwatchIcon(icon) {
2607
- watchedIcons = watchedIcons.filter((el) => el !== icon);
2608
- }
2609
- function getIconLibrary(name) {
2610
- return registry.find((lib) => lib.name === name);
2611
- }
2612
-
2613
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KAW7D32O.js
2614
- var __defProp3 = Object.defineProperty;
2615
- var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
2616
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2617
- var __hasOwnProp = Object.prototype.hasOwnProperty;
2618
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
2619
- var __typeError3 = (msg2) => {
2620
- throw TypeError(msg2);
2621
- };
2622
- var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2623
- var __spreadValues = (a5, b4) => {
2624
- for (var prop in b4 || (b4 = {}))
2625
- if (__hasOwnProp.call(b4, prop))
2626
- __defNormalProp3(a5, prop, b4[prop]);
2627
- if (__getOwnPropSymbols)
2628
- for (var prop of __getOwnPropSymbols(b4)) {
2629
- if (__propIsEnum.call(b4, prop))
2630
- __defNormalProp3(a5, prop, b4[prop]);
2631
- }
2632
- return a5;
2633
- };
2634
- var __decorateClass = (decorators, target, key, kind) => {
2635
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc3(target, key) : target;
2636
- for (var i8 = decorators.length - 1, decorator; i8 >= 0; i8--)
2637
- if (decorator = decorators[i8])
2638
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2639
- if (kind && result) __defProp3(target, key, result);
2640
- return result;
2641
- };
2642
- var __accessCheck3 = (obj, member, msg2) => member.has(obj) || __typeError3("Cannot " + msg2);
2643
- var __privateGet3 = (obj, member, getter) => (__accessCheck3(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
2644
- var __privateAdd3 = (obj, member, value) => member.has(obj) ? __typeError3("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
2645
- var __privateSet3 = (obj, member, value, setter) => (__accessCheck3(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
2646
-
2647
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GMYPQTFK.js
2648
- function watch(propertyName, options) {
2649
- const resolvedOptions = __spreadValues({
2650
- waitUntilFirstUpdate: false
2651
- }, options);
2652
- return (proto, decoratedFnName) => {
2653
- const { update } = proto;
2654
- const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
2655
- proto.update = function(changedProps) {
2656
- watchedProperties.forEach((property) => {
2657
- const key = property;
2658
- if (changedProps.has(key)) {
2659
- const oldValue = changedProps.get(key);
2660
- const newValue = this[key];
2661
- if (oldValue !== newValue) {
2662
- if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
2663
- this[decoratedFnName](oldValue, newValue);
2664
- }
2665
- }
2666
- }
2667
- });
2668
- update.call(this, changedProps);
2669
- };
2670
- };
2671
- }
2672
-
2673
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js
2674
- var component_styles_default = i`
2675
- :host {
2676
- box-sizing: border-box;
2677
- }
2678
-
2679
- :host *,
2680
- :host *::before,
2681
- :host *::after {
2682
- box-sizing: inherit;
2683
- }
2684
-
2685
- [hidden] {
2686
- display: none !important;
2687
- }
2688
- `;
2689
-
2690
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.EMG3ZSPT.js
2691
- var _hasRecordedInitialProperties;
2692
- var ShoelaceElement = class extends r4 {
2693
- constructor() {
2694
- super();
2695
- __privateAdd3(this, _hasRecordedInitialProperties, false);
2696
- this.initialReflectedProperties = /* @__PURE__ */ new Map();
2697
- Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
2698
- this.constructor.define(name, component);
2699
- });
2700
- }
2701
- emit(name, options) {
2702
- const event = new CustomEvent(name, __spreadValues({
2703
- bubbles: true,
2704
- cancelable: false,
2705
- composed: true,
2706
- detail: {}
2707
- }, options));
2708
- this.dispatchEvent(event);
2709
- return event;
2710
- }
2711
- /* eslint-enable */
2712
- static define(name, elementConstructor = this, options = {}) {
2713
- const currentlyRegisteredConstructor = customElements.get(name);
2714
- if (!currentlyRegisteredConstructor) {
2715
- try {
2716
- customElements.define(name, elementConstructor, options);
2717
- } catch (_err) {
2718
- customElements.define(name, class extends elementConstructor {
2719
- }, options);
2720
- }
2721
- return;
2722
- }
2723
- let newVersion = " (unknown version)";
2724
- let existingVersion = newVersion;
2725
- if ("version" in elementConstructor && elementConstructor.version) {
2726
- newVersion = " v" + elementConstructor.version;
2727
- }
2728
- if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
2729
- existingVersion = " v" + currentlyRegisteredConstructor.version;
2730
- }
2731
- if (newVersion && existingVersion && newVersion === existingVersion) {
2732
- return;
2733
- }
2734
- console.warn(
2735
- `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
2736
- );
2737
- }
2738
- attributeChangedCallback(name, oldValue, newValue) {
2739
- if (!__privateGet3(this, _hasRecordedInitialProperties)) {
2740
- this.constructor.elementProperties.forEach(
2741
- (obj, prop) => {
2742
- if (obj.reflect && this[prop] != null) {
2743
- this.initialReflectedProperties.set(prop, this[prop]);
2744
- }
2745
- }
2746
- );
2747
- __privateSet3(this, _hasRecordedInitialProperties, true);
2748
- }
2749
- super.attributeChangedCallback(name, oldValue, newValue);
2750
- }
2751
- willUpdate(changedProperties) {
2752
- super.willUpdate(changedProperties);
2753
- this.initialReflectedProperties.forEach((value, prop) => {
2754
- if (changedProperties.has(prop) && this[prop] == null) {
2755
- this[prop] = value;
2756
- }
2757
- });
2758
- }
2759
- };
2760
- _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
2761
- ShoelaceElement.version = "2.19.1";
2762
- ShoelaceElement.dependencies = {};
2763
- __decorateClass([
2764
- n5()
2765
- ], ShoelaceElement.prototype, "dir", 2);
2766
- __decorateClass([
2767
- n5()
2768
- ], ShoelaceElement.prototype, "lang", 2);
2769
-
2770
- // node_modules/lit-html/directive-helpers.js
2771
- var { I: t6 } = Z;
2772
- var e8 = (o9, t7) => void 0 === t7 ? void 0 !== o9?._$litType$ : o9?._$litType$ === t7;
2773
-
2774
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5YPURQKE.js
2775
- var CACHEABLE_ERROR = Symbol();
2776
- var RETRYABLE_ERROR = Symbol();
2777
- var parser;
2778
- var iconCache = /* @__PURE__ */ new Map();
2779
- var SlIcon = class extends ShoelaceElement {
2780
- constructor() {
2781
- super(...arguments);
2782
- this.initialRender = false;
2783
- this.svg = null;
2784
- this.label = "";
2785
- this.library = "default";
2786
- }
2787
- /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
2788
- async resolveIcon(url, library2) {
2789
- var _a3;
2790
- let fileData;
2791
- if (library2 == null ? void 0 : library2.spriteSheet) {
2792
- this.svg = x`<svg part="svg">
2793
- <use part="use" href="${url}"></use>
2794
- </svg>`;
2795
- return this.svg;
2796
- }
2797
- try {
2798
- fileData = await fetch(url, { mode: "cors" });
2799
- if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
2800
- } catch (e10) {
2801
- return RETRYABLE_ERROR;
2802
- }
2803
- try {
2804
- const div = document.createElement("div");
2805
- div.innerHTML = await fileData.text();
2806
- const svg = div.firstElementChild;
2807
- if (((_a3 = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a3.toLowerCase()) !== "svg") return CACHEABLE_ERROR;
2808
- if (!parser) parser = new DOMParser();
2809
- const doc = parser.parseFromString(svg.outerHTML, "text/html");
2810
- const svgEl = doc.body.querySelector("svg");
2811
- if (!svgEl) return CACHEABLE_ERROR;
2812
- svgEl.part.add("svg");
2813
- return document.adoptNode(svgEl);
2814
- } catch (e10) {
2815
- return CACHEABLE_ERROR;
2816
- }
2817
- }
2818
- connectedCallback() {
2819
- super.connectedCallback();
2820
- watchIcon(this);
2821
- }
2822
- firstUpdated() {
2823
- this.initialRender = true;
2824
- this.setIcon();
2825
- }
2826
- disconnectedCallback() {
2827
- super.disconnectedCallback();
2828
- unwatchIcon(this);
2829
- }
2830
- getIconSource() {
2831
- const library2 = getIconLibrary(this.library);
2832
- if (this.name && library2) {
2833
- return {
2834
- url: library2.resolver(this.name),
2835
- fromLibrary: true
2836
- };
2837
- }
2838
- return {
2839
- url: this.src,
2840
- fromLibrary: false
2841
- };
2842
- }
2843
- handleLabelChange() {
2844
- const hasLabel = typeof this.label === "string" && this.label.length > 0;
2845
- if (hasLabel) {
2846
- this.setAttribute("role", "img");
2847
- this.setAttribute("aria-label", this.label);
2848
- this.removeAttribute("aria-hidden");
2849
- } else {
2850
- this.removeAttribute("role");
2851
- this.removeAttribute("aria-label");
2852
- this.setAttribute("aria-hidden", "true");
2853
- }
2854
- }
2855
- async setIcon() {
2856
- var _a3;
2857
- const { url, fromLibrary } = this.getIconSource();
2858
- const library2 = fromLibrary ? getIconLibrary(this.library) : void 0;
2859
- if (!url) {
2860
- this.svg = null;
2861
- return;
2862
- }
2863
- let iconResolver = iconCache.get(url);
2864
- if (!iconResolver) {
2865
- iconResolver = this.resolveIcon(url, library2);
2866
- iconCache.set(url, iconResolver);
2867
- }
2868
- if (!this.initialRender) {
2869
- return;
2870
- }
2871
- const svg = await iconResolver;
2872
- if (svg === RETRYABLE_ERROR) {
2873
- iconCache.delete(url);
2874
- }
2875
- if (url !== this.getIconSource().url) {
2876
- return;
2877
- }
2878
- if (e8(svg)) {
2879
- this.svg = svg;
2880
- if (library2) {
2881
- await this.updateComplete;
2882
- const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
2883
- if (typeof library2.mutator === "function" && shadowSVG) {
2884
- library2.mutator(shadowSVG);
2885
- }
2886
- }
2887
- return;
2888
- }
2889
- switch (svg) {
2890
- case RETRYABLE_ERROR:
2891
- case CACHEABLE_ERROR:
2892
- this.svg = null;
2893
- this.emit("sl-error");
2894
- break;
2895
- default:
2896
- this.svg = svg.cloneNode(true);
2897
- (_a3 = library2 == null ? void 0 : library2.mutator) == null ? void 0 : _a3.call(library2, this.svg);
2898
- this.emit("sl-load");
2899
- }
2900
- }
2901
- render() {
2902
- return this.svg;
2903
- }
2904
- };
2905
- SlIcon.styles = [component_styles_default, icon_styles_default];
2906
- __decorateClass([
2907
- r7()
2908
- ], SlIcon.prototype, "svg", 2);
2909
- __decorateClass([
2910
- n5({ reflect: true })
2911
- ], SlIcon.prototype, "name", 2);
2912
- __decorateClass([
2913
- n5()
2914
- ], SlIcon.prototype, "src", 2);
2915
- __decorateClass([
2916
- n5()
2917
- ], SlIcon.prototype, "label", 2);
2918
- __decorateClass([
2919
- n5({ reflect: true })
2920
- ], SlIcon.prototype, "library", 2);
2921
- __decorateClass([
2922
- watch("label")
2923
- ], SlIcon.prototype, "handleLabelChange", 1);
2924
- __decorateClass([
2925
- watch(["name", "src", "library"])
2926
- ], SlIcon.prototype, "setIcon", 1);
2927
-
2928
- // node_modules/lit-html/directives/class-map.js
2929
- var e9 = e7(class extends i5 {
2930
- constructor(t7) {
2931
- if (super(t7), t7.type !== t5.ATTRIBUTE || "class" !== t7.name || t7.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
2932
- }
2933
- render(t7) {
2934
- return " " + Object.keys(t7).filter(((s4) => t7[s4])).join(" ") + " ";
2935
- }
2936
- update(s4, [i8]) {
2937
- if (void 0 === this.st) {
2938
- this.st = /* @__PURE__ */ new Set(), void 0 !== s4.strings && (this.nt = new Set(s4.strings.join(" ").split(/\s/).filter(((t7) => "" !== t7))));
2939
- for (const t7 in i8) i8[t7] && !this.nt?.has(t7) && this.st.add(t7);
2940
- return this.render(i8);
2941
- }
2942
- const r8 = s4.element.classList;
2943
- for (const t7 of this.st) t7 in i8 || (r8.remove(t7), this.st.delete(t7));
2944
- for (const t7 in i8) {
2945
- const s5 = !!i8[t7];
2946
- s5 === this.st.has(t7) || this.nt?.has(t7) || (s5 ? (r8.add(t7), this.st.add(t7)) : (r8.remove(t7), this.st.delete(t7)));
2947
- }
2948
- return T;
2949
- }
2950
- });
2951
-
2952
- // node_modules/lit-html/static.js
2953
- var a4 = Symbol.for("");
2954
- var o7 = (t7) => {
2955
- if (t7?.r === a4) return t7?._$litStatic$;
2956
- };
2957
- var i7 = (t7, ...r8) => ({ _$litStatic$: r8.reduce(((r9, e10, a5) => r9 + ((t8) => {
2958
- if (void 0 !== t8._$litStatic$) return t8._$litStatic$;
2959
- throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t8}. Use 'unsafeStatic' to pass non-literal values, but
2960
- take care to ensure page security.`);
2961
- })(e10) + t7[a5 + 1]), t7[0]), r: a4 });
2962
- var l4 = /* @__PURE__ */ new Map();
2963
- var n7 = (t7) => (r8, ...e10) => {
2964
- const a5 = e10.length;
2965
- let s4, i8;
2966
- const n8 = [], u5 = [];
2967
- let c6, $4 = 0, f4 = false;
2968
- for (; $4 < a5; ) {
2969
- for (c6 = r8[$4]; $4 < a5 && void 0 !== (i8 = e10[$4], s4 = o7(i8)); ) c6 += s4 + r8[++$4], f4 = true;
2970
- $4 !== a5 && u5.push(i8), n8.push(c6), $4++;
2971
- }
2972
- if ($4 === a5 && n8.push(r8[a5]), f4) {
2973
- const t8 = n8.join("$$lit$$");
2974
- void 0 === (r8 = l4.get(t8)) && (n8.raw = n8, l4.set(t8, r8 = n8)), e10 = u5;
2975
- }
2976
- return t7(r8, ...e10);
2977
- };
2978
- var u4 = n7(x);
2979
- var c5 = n7(b2);
2980
- var $3 = n7(w);
2981
-
2982
- // node_modules/lit-html/directives/if-defined.js
2983
- var o8 = (o9) => o9 ?? E;
2984
-
2985
- // node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MMEGYRNV.js
2986
- var SlIconButton = class extends ShoelaceElement {
2987
- constructor() {
2988
- super(...arguments);
2989
- this.hasFocus = false;
2990
- this.label = "";
2991
- this.disabled = false;
2992
- }
2993
- handleBlur() {
2994
- this.hasFocus = false;
2995
- this.emit("sl-blur");
2996
- }
2997
- handleFocus() {
2998
- this.hasFocus = true;
2999
- this.emit("sl-focus");
3000
- }
3001
- handleClick(event) {
3002
- if (this.disabled) {
3003
- event.preventDefault();
3004
- event.stopPropagation();
3005
- }
3006
- }
3007
- /** Simulates a click on the icon button. */
3008
- click() {
3009
- this.button.click();
3010
- }
3011
- /** Sets focus on the icon button. */
3012
- focus(options) {
3013
- this.button.focus(options);
3014
- }
3015
- /** Removes focus from the icon button. */
3016
- blur() {
3017
- this.button.blur();
3018
- }
3019
- render() {
3020
- const isLink = this.href ? true : false;
3021
- const tag = isLink ? i7`a` : i7`button`;
3022
- return u4`
3023
- <${tag}
3024
- part="base"
3025
- class=${e9({
3026
- "icon-button": true,
3027
- "icon-button--disabled": !isLink && this.disabled,
3028
- "icon-button--focused": this.hasFocus
3029
- })}
3030
- ?disabled=${o8(isLink ? void 0 : this.disabled)}
3031
- type=${o8(isLink ? void 0 : "button")}
3032
- href=${o8(isLink ? this.href : void 0)}
3033
- target=${o8(isLink ? this.target : void 0)}
3034
- download=${o8(isLink ? this.download : void 0)}
3035
- rel=${o8(isLink && this.target ? "noreferrer noopener" : void 0)}
3036
- role=${o8(isLink ? void 0 : "button")}
3037
- aria-disabled=${this.disabled ? "true" : "false"}
3038
- aria-label="${this.label}"
3039
- tabindex=${this.disabled ? "-1" : "0"}
3040
- @blur=${this.handleBlur}
3041
- @focus=${this.handleFocus}
3042
- @click=${this.handleClick}
3043
- >
3044
- <sl-icon
3045
- class="icon-button__icon"
3046
- name=${o8(this.name)}
3047
- library=${o8(this.library)}
3048
- src=${o8(this.src)}
3049
- aria-hidden="true"
3050
- ></sl-icon>
3051
- </${tag}>
3052
- `;
3053
- }
3054
- };
3055
- SlIconButton.styles = [component_styles_default, icon_button_styles_default];
3056
- SlIconButton.dependencies = { "sl-icon": SlIcon };
3057
- __decorateClass([
3058
- e6(".icon-button")
3059
- ], SlIconButton.prototype, "button", 2);
3060
- __decorateClass([
3061
- r7()
3062
- ], SlIconButton.prototype, "hasFocus", 2);
3063
- __decorateClass([
3064
- n5()
3065
- ], SlIconButton.prototype, "name", 2);
3066
- __decorateClass([
3067
- n5()
3068
- ], SlIconButton.prototype, "library", 2);
3069
- __decorateClass([
3070
- n5()
3071
- ], SlIconButton.prototype, "src", 2);
3072
- __decorateClass([
3073
- n5()
3074
- ], SlIconButton.prototype, "href", 2);
3075
- __decorateClass([
3076
- n5()
3077
- ], SlIconButton.prototype, "target", 2);
3078
- __decorateClass([
3079
- n5()
3080
- ], SlIconButton.prototype, "download", 2);
3081
- __decorateClass([
3082
- n5()
3083
- ], SlIconButton.prototype, "label", 2);
3084
- __decorateClass([
3085
- n5({ type: Boolean, reflect: true })
3086
- ], SlIconButton.prototype, "disabled", 2);
3087
-
3088
- // node_modules/bootstrap-icons/icons/textarea.svg
3089
- var textarea_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-textarea" viewBox="0 0 16 16">%0A <path d="M1.5 2.5A1.5 1.5 0 0 1 3 1h10a1.5 1.5 0 0 1 1.5 1.5v3.563a2 2 0 0 1 0 3.874V13.5A1.5 1.5 0 0 1 13 15H3a1.5 1.5 0 0 1-1.5-1.5V9.937a2 2 0 0 1 0-3.874zm1 3.563a2 2 0 0 1 0 3.874V13.5a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V9.937a2 2 0 0 1 0-3.874V2.5A.5.5 0 0 0 13 2H3a.5.5 0 0 0-.5.5zM2 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2m12 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/>%0A</svg>';
3090
-
3091
- // localization/generated/locale-codes.js
3092
- var sourceLocale = `en`;
3093
- var targetLocales = [
3094
- `bg`,
3095
- `cs`,
3096
- `da`,
3097
- `de`,
3098
- `el`,
3099
- `es`,
3100
- `et`,
3101
- `fi`,
3102
- `fr`,
3103
- `hu`,
3104
- `id`,
3105
- `it`,
3106
- `ja`,
3107
- `ko`,
3108
- `lt`,
3109
- `lv`,
3110
- `nb`,
3111
- `nl`,
3112
- `pl`,
3113
- `pt-BR`,
3114
- `pt-PT`,
3115
- `ro`,
3116
- `ru`,
3117
- `sk`,
3118
- `sl`,
3119
- `sv`,
3120
- `tr`,
3121
- `uk`,
3122
- `zh-hans`
3123
- ];
3124
-
3125
- // node_modules/@lit/localize/internal/locale-status-event.js
3126
- var LOCALE_STATUS_EVENT = "lit-localize-status";
3127
-
3128
- // node_modules/@lit/localize/internal/str-tag.js
3129
- var isStrTagged = (val) => typeof val !== "string" && "strTag" in val;
3130
- var joinStringsAndValues = (strings, values, valueOrder) => {
3131
- let concat = strings[0];
3132
- for (let i8 = 1; i8 < strings.length; i8++) {
3133
- concat += values[valueOrder ? valueOrder[i8 - 1] : i8 - 1];
3134
- concat += strings[i8];
3135
- }
3136
- return concat;
3137
- };
3138
-
3139
- // node_modules/@lit/localize/internal/default-msg.js
3140
- var defaultMsg = ((template) => isStrTagged(template) ? joinStringsAndValues(template.strings, template.values) : template);
3141
-
3142
- // node_modules/@lit/localize/init/install.js
3143
- var msg = defaultMsg;
3144
- var installed = false;
3145
- function _installMsgImplementation(impl) {
3146
- if (installed) {
3147
- throw new Error("lit-localize can only be configured once");
3148
- }
3149
- msg = impl;
3150
- installed = true;
3151
- }
3152
-
3153
- // node_modules/@lit/localize/internal/deferred.js
3154
- var Deferred = class {
3155
- constructor() {
3156
- this.settled = false;
3157
- this.promise = new Promise((resolve, reject) => {
3158
- this._resolve = resolve;
3159
- this._reject = reject;
3160
- });
3161
- }
3162
- resolve(value) {
3163
- this.settled = true;
3164
- this._resolve(value);
3165
- }
3166
- reject(error) {
3167
- this.settled = true;
3168
- this._reject(error);
3169
- }
3170
- };
3171
-
3172
- // node_modules/@lit/localize/internal/fnv1a64.js
3173
- var hl = [];
3174
- for (let i8 = 0; i8 < 256; i8++) {
3175
- hl[i8] = (i8 >> 4 & 15).toString(16) + (i8 & 15).toString(16);
3176
- }
3177
- function fnv1a64(str) {
3178
- let t0 = 0, v0 = 8997, t1 = 0, v1 = 33826, t22 = 0, v22 = 40164, t32 = 0, v3 = 52210;
3179
- for (let i8 = 0; i8 < str.length; i8++) {
3180
- v0 ^= str.charCodeAt(i8);
3181
- t0 = v0 * 435;
3182
- t1 = v1 * 435;
3183
- t22 = v22 * 435;
3184
- t32 = v3 * 435;
3185
- t22 += v0 << 8;
3186
- t32 += v1 << 8;
3187
- t1 += t0 >>> 16;
3188
- v0 = t0 & 65535;
3189
- t22 += t1 >>> 16;
3190
- v1 = t1 & 65535;
3191
- v3 = t32 + (t22 >>> 16) & 65535;
3192
- v22 = t22 & 65535;
3193
- }
3194
- return hl[v3 >> 8] + hl[v3 & 255] + hl[v22 >> 8] + hl[v22 & 255] + hl[v1 >> 8] + hl[v1 & 255] + hl[v0 >> 8] + hl[v0 & 255];
3195
- }
3196
-
3197
- // node_modules/@lit/localize/internal/id-generation.js
3198
- var HASH_DELIMITER = "";
3199
- var HTML_PREFIX = "h";
3200
- var STRING_PREFIX = "s";
3201
- function generateMsgId(strings, isHtmlTagged) {
3202
- return (isHtmlTagged ? HTML_PREFIX : STRING_PREFIX) + fnv1a64(typeof strings === "string" ? strings : strings.join(HASH_DELIMITER));
3203
- }
3204
-
3205
- // node_modules/@lit/localize/internal/runtime-msg.js
3206
- var expressionOrders = /* @__PURE__ */ new WeakMap();
3207
- var hashCache = /* @__PURE__ */ new Map();
3208
- function runtimeMsg(templates31, template, options) {
3209
- if (templates31) {
3210
- const id = options?.id ?? generateId(template);
3211
- const localized = templates31[id];
3212
- if (localized) {
3213
- if (typeof localized === "string") {
3214
- return localized;
3215
- } else if ("strTag" in localized) {
3216
- return joinStringsAndValues(
3217
- localized.strings,
3218
- // Cast `template` because its type wasn't automatically narrowed (but
3219
- // we know it must be the same type as `localized`).
3220
- template.values,
3221
- localized.values
3222
- );
3223
- } else {
3224
- let order = expressionOrders.get(localized);
3225
- if (order === void 0) {
3226
- order = localized.values;
3227
- expressionOrders.set(localized, order);
3228
- }
3229
- return {
3230
- ...localized,
3231
- values: order.map((i8) => template.values[i8])
3232
- };
3233
- }
3234
- }
3235
- }
3236
- return defaultMsg(template);
3237
- }
3238
- function generateId(template) {
3239
- const strings = typeof template === "string" ? template : template.strings;
3240
- let id = hashCache.get(strings);
3241
- if (id === void 0) {
3242
- id = generateMsgId(strings, typeof template !== "string" && !("strTag" in template));
3243
- hashCache.set(strings, id);
3244
- }
3245
- return id;
3246
- }
3247
-
3248
- // node_modules/@lit/localize/init/runtime.js
3249
- function dispatchStatusEvent(detail) {
3250
- window.dispatchEvent(new CustomEvent(LOCALE_STATUS_EVENT, { detail }));
3251
- }
3252
- var activeLocale = "";
3253
- var loadingLocale;
3254
- var sourceLocale2;
3255
- var validLocales;
3256
- var loadLocale;
3257
- var templates;
3258
- var loading = new Deferred();
3259
- loading.resolve();
3260
- var requestId = 0;
3261
- var configureLocalization = (config) => {
3262
- _installMsgImplementation(((template, options) => runtimeMsg(templates, template, options)));
3263
- activeLocale = sourceLocale2 = config.sourceLocale;
3264
- validLocales = new Set(config.targetLocales);
3265
- validLocales.add(config.sourceLocale);
3266
- loadLocale = config.loadLocale;
3267
- return { getLocale, setLocale };
3268
- };
3269
- var getLocale = () => {
3270
- return activeLocale;
3271
- };
3272
- var setLocale = (newLocale) => {
3273
- if (newLocale === (loadingLocale ?? activeLocale)) {
3274
- return loading.promise;
3275
- }
3276
- if (!validLocales || !loadLocale) {
3277
- throw new Error("Internal error");
3278
- }
3279
- if (!validLocales.has(newLocale)) {
3280
- throw new Error("Invalid locale code");
3281
- }
3282
- requestId++;
3283
- const thisRequestId = requestId;
3284
- loadingLocale = newLocale;
3285
- if (loading.settled) {
3286
- loading = new Deferred();
3287
- }
3288
- dispatchStatusEvent({ status: "loading", loadingLocale: newLocale });
3289
- const localePromise = newLocale === sourceLocale2 ? (
3290
- // We could switch to the source locale synchronously, but we prefer to
3291
- // queue it on a microtask so that switching locales is consistently
3292
- // asynchronous.
3293
- Promise.resolve({ templates: void 0 })
3294
- ) : loadLocale(newLocale);
3295
- localePromise.then((mod) => {
3296
- if (requestId === thisRequestId) {
3297
- activeLocale = newLocale;
3298
- loadingLocale = void 0;
3299
- templates = mod.templates;
3300
- dispatchStatusEvent({ status: "ready", readyLocale: newLocale });
3301
- loading.resolve();
3302
- }
3303
- }, (err) => {
3304
- if (requestId === thisRequestId) {
3305
- dispatchStatusEvent({
3306
- status: "error",
3307
- errorLocale: newLocale,
3308
- errorMessage: err.toString()
3309
- });
3310
- loading.reject(err);
3311
- }
3312
- });
3313
- return loading.promise;
3314
- };
3315
-
3316
- // import("./**/*.ts") in localization/generated/index.js
3317
- var globImport_ts = __glob({
3318
- "./bg.ts": () => Promise.resolve().then(() => (init_bg(), bg_exports)),
3319
- "./cs.ts": () => Promise.resolve().then(() => (init_cs(), cs_exports)),
3320
- "./da.ts": () => Promise.resolve().then(() => (init_da(), da_exports)),
3321
- "./de.ts": () => Promise.resolve().then(() => (init_de(), de_exports)),
3322
- "./el.ts": () => Promise.resolve().then(() => (init_el(), el_exports)),
3323
- "./es.ts": () => Promise.resolve().then(() => (init_es(), es_exports)),
3324
- "./et.ts": () => Promise.resolve().then(() => (init_et(), et_exports)),
3325
- "./fi.ts": () => Promise.resolve().then(() => (init_fi(), fi_exports)),
3326
- "./fr.ts": () => Promise.resolve().then(() => (init_fr(), fr_exports)),
3327
- "./hu.ts": () => Promise.resolve().then(() => (init_hu(), hu_exports)),
3328
- "./id.ts": () => Promise.resolve().then(() => (init_id(), id_exports)),
3329
- "./it.ts": () => Promise.resolve().then(() => (init_it(), it_exports)),
3330
- "./ja.ts": () => Promise.resolve().then(() => (init_ja(), ja_exports)),
3331
- "./ko.ts": () => Promise.resolve().then(() => (init_ko(), ko_exports)),
3332
- "./lt.ts": () => Promise.resolve().then(() => (init_lt(), lt_exports)),
3333
- "./lv.ts": () => Promise.resolve().then(() => (init_lv(), lv_exports)),
3334
- "./nb.ts": () => Promise.resolve().then(() => (init_nb(), nb_exports)),
3335
- "./nl.ts": () => Promise.resolve().then(() => (init_nl(), nl_exports)),
3336
- "./pl.ts": () => Promise.resolve().then(() => (init_pl(), pl_exports)),
3337
- "./pt-BR.ts": () => Promise.resolve().then(() => (init_pt_BR(), pt_BR_exports)),
3338
- "./pt-PT.ts": () => Promise.resolve().then(() => (init_pt_PT(), pt_PT_exports)),
3339
- "./ro.ts": () => Promise.resolve().then(() => (init_ro(), ro_exports)),
3340
- "./ru.ts": () => Promise.resolve().then(() => (init_ru(), ru_exports)),
3341
- "./sk.ts": () => Promise.resolve().then(() => (init_sk(), sk_exports)),
3342
- "./sl.ts": () => Promise.resolve().then(() => (init_sl(), sl_exports)),
3343
- "./sv.ts": () => Promise.resolve().then(() => (init_sv(), sv_exports)),
3344
- "./tr.ts": () => Promise.resolve().then(() => (init_tr(), tr_exports)),
3345
- "./uk.ts": () => Promise.resolve().then(() => (init_uk(), uk_exports)),
3346
- "./zh-hans.ts": () => Promise.resolve().then(() => (init_zh_hans(), zh_hans_exports))
3347
- });
3348
-
3349
- // localization/generated/index.js
3350
- var generated_default = configureLocalization({ sourceLocale, targetLocales, loadLocale: (locale) => globImport_ts(`./${locale}.ts`) });
3351
-
3352
- // src/widgets/webwriter-cloze.ts
3353
- var _addGapButton_dec, _a2, _WebwriterCloze_decorators, _init2, _addGapButton;
3354
- _WebwriterCloze_decorators = [t4("webwriter-cloze")];
3355
- var WebwriterCloze = class extends (_a2 = LitElementWw, _addGapButton_dec = [e6("#add-gap")], _a2) {
3356
- constructor() {
3357
- super(...arguments);
3358
- __publicField(this, "localize", generated_default);
3359
- __privateAdd(this, _addGapButton, __runInitializers(_init2, 8, this)), __runInitializers(_init2, 11, this);
3360
- __publicField(this, "observer");
3361
- __publicField(this, "toggleGap", () => {
3362
- const sel = document.getSelection();
3363
- const selectedElement = sel.anchorNode.childNodes.item(sel.anchorOffset);
3364
- if (selectedElement?.nodeName.toLowerCase() === "webwriter-cloze-gap") {
3365
- const gap = selectedElement;
3366
- selectedElement.replaceWith(document.createTextNode(gap.value));
3367
- } else if (this.contains(sel.anchorNode)) {
3368
- if (sel.anchorNode !== this) {
3369
- const textContent = sel.toString();
3370
- sel.deleteFromDocument();
3371
- const textNode = sel.anchorNode;
3372
- const at = sel.anchorOffset;
3373
- const clozeGap = document.createElement("webwriter-cloze-gap");
3374
- clozeGap.classList.add("webwriter-new");
3375
- clozeGap.setAttribute("value", textContent);
3376
- const afterTextNode = textNode.splitText(at);
3377
- afterTextNode.textContent = afterTextNode.textContent.trimStart();
3378
- textNode.textContent = textNode.textContent.trimEnd();
3379
- textNode.parentElement.insertBefore(clozeGap, afterTextNode);
3380
- } else {
3381
- const clozeGap = document.createElement("webwriter-cloze-gap");
3382
- clozeGap.setAttribute("value", "");
3383
- this.append(clozeGap);
3384
- }
3385
- }
3386
- });
3387
- }
3388
- connectedCallback() {
3389
- super.connectedCallback();
3390
- document.addEventListener("selectionchange", (e10) => {
3391
- const sel = document.getSelection();
3392
- const node = document.getSelection()?.anchorNode;
3393
- const el = node.nodeType === node.TEXT_NODE ? node.parentElement : node;
3394
- this.addGapButton.toggleAttribute("data-visible", el?.closest("webwriter-cloze") ? true : false);
3395
- if (el?.closest("webwriter-cloze") && !sel.isCollapsed) {
3396
- this.addGapButton.toggleAttribute("data-highlighting", true);
3397
- } else {
3398
- this.addGapButton.toggleAttribute("data-highlighting", false);
3399
- }
3400
- });
3401
- this.observer = new MutationObserver(() => this.requestUpdate());
3402
- this.observer.observe(this, { characterData: true, childList: true, subtree: true });
3403
- }
3404
- disconnectedCallback() {
3405
- super.disconnectedCallback();
3406
- this.observer?.disconnect();
3407
- }
3408
- render() {
3409
- return x`
3410
- <slot style=${o6({ "--placeholder": `"${msg("Text to add gaps to")}"` })} ?data-empty=${!this.textContent.trim() && !this.querySelectorAll("& > p *:not(br)").length}></slot>
3411
- <sl-icon-button class="author-only" id="add-gap" src=${textarea_default} @click=${this.toggleGap}></sl-icon-button>
3412
- `;
3413
- }
3414
- };
3415
- _init2 = __decoratorStart(_a2);
3416
- _addGapButton = new WeakMap();
3417
- __decorateElement(_init2, 4, "addGapButton", _addGapButton_dec, WebwriterCloze, _addGapButton);
3418
- WebwriterCloze = __decorateElement(_init2, 0, "WebwriterCloze", _WebwriterCloze_decorators, WebwriterCloze);
3419
- __publicField(WebwriterCloze, "shadowRootOptions", { ...LitElementWw.shadowRootOptions, delegatesFocus: false });
3420
- __publicField(WebwriterCloze, "scopedElements", {
3421
- "sl-icon-button": SlIconButton
3422
- });
3423
- __publicField(WebwriterCloze, "styles", i`
3424
- :host {
3425
- min-height: 1rem;
3426
- position: relative;
3427
- }
3428
-
3429
- slot {
3430
- display: block;
3431
- cursor: text;
3432
- }
3433
-
3434
- slot[data-empty]:after {
3435
- content: var(--placeholder);
3436
- position: absolute;
3437
- left: 0;
3438
- top: 0;
3439
- color: darkgray;
3440
- pointer-events: none;
3441
- user-select: none;
3442
- }
3443
-
3444
- slot::after, slot::before {
3445
- content: ' ';
3446
- }
3447
-
3448
- #add-gap {
3449
- position: absolute;
3450
- right: 0;
3451
- top: 0;
3452
- background: rgba(255, 255, 255, 0.85);
3453
-
3454
- &[data-highlighting]::part(base) {
3455
- background: var(--sl-color-primary-100);
3456
- }
3457
- }
3458
-
3459
- :host(:not([contenteditable=true]):not([contenteditable=""])) .author-only {
3460
- display: none;
3461
- }
3462
- `);
3463
- __runInitializers(_init2, 1, WebwriterCloze);
3464
- export {
3465
- WebwriterCloze
3466
- };
3467
- /*! Bundled license information:
3468
-
3469
- @lit/reactive-element/css-tag.js:
3470
- (**
3471
- * @license
3472
- * Copyright 2019 Google LLC
3473
- * SPDX-License-Identifier: BSD-3-Clause
3474
- *)
3475
-
3476
- @lit/reactive-element/reactive-element.js:
3477
- lit-html/lit-html.js:
3478
- lit-element/lit-element.js:
3479
- @lit/reactive-element/decorators/custom-element.js:
3480
- @lit/reactive-element/decorators/property.js:
3481
- @lit/reactive-element/decorators/state.js:
3482
- @lit/reactive-element/decorators/event-options.js:
3483
- @lit/reactive-element/decorators/base.js:
3484
- @lit/reactive-element/decorators/query.js:
3485
- @lit/reactive-element/decorators/query-all.js:
3486
- @lit/reactive-element/decorators/query-async.js:
3487
- @lit/reactive-element/decorators/query-assigned-nodes.js:
3488
- lit-html/directive.js:
3489
- (**
3490
- * @license
3491
- * Copyright 2017 Google LLC
3492
- * SPDX-License-Identifier: BSD-3-Clause
3493
- *)
3494
-
3495
- lit-html/is-server.js:
3496
- (**
3497
- * @license
3498
- * Copyright 2022 Google LLC
3499
- * SPDX-License-Identifier: BSD-3-Clause
3500
- *)
3501
-
3502
- @webwriter/lit/index.js:
3503
- (*! Bundled license information:
3504
-
3505
- @lit/reactive-element/css-tag.js:
3506
- (**
3507
- * @license
3508
- * Copyright 2019 Google LLC
3509
- * SPDX-License-Identifier: BSD-3-Clause
3510
- *)
3511
-
3512
- @lit/reactive-element/reactive-element.js:
3513
- (**
3514
- * @license
3515
- * Copyright 2017 Google LLC
3516
- * SPDX-License-Identifier: BSD-3-Clause
3517
- *)
3518
-
3519
- lit-html/lit-html.js:
3520
- (**
3521
- * @license
3522
- * Copyright 2017 Google LLC
3523
- * SPDX-License-Identifier: BSD-3-Clause
3524
- *)
3525
-
3526
- lit-element/lit-element.js:
3527
- (**
3528
- * @license
3529
- * Copyright 2017 Google LLC
3530
- * SPDX-License-Identifier: BSD-3-Clause
3531
- *)
3532
-
3533
- lit-html/is-server.js:
3534
- (**
3535
- * @license
3536
- * Copyright 2022 Google LLC
3537
- * SPDX-License-Identifier: BSD-3-Clause
3538
- *)
3539
-
3540
- @lit/reactive-element/decorators/custom-element.js:
3541
- (**
3542
- * @license
3543
- * Copyright 2017 Google LLC
3544
- * SPDX-License-Identifier: BSD-3-Clause
3545
- *)
3546
-
3547
- @lit/reactive-element/decorators/property.js:
3548
- (**
3549
- * @license
3550
- * Copyright 2017 Google LLC
3551
- * SPDX-License-Identifier: BSD-3-Clause
3552
- *)
3553
-
3554
- @lit/reactive-element/decorators/state.js:
3555
- (**
3556
- * @license
3557
- * Copyright 2017 Google LLC
3558
- * SPDX-License-Identifier: BSD-3-Clause
3559
- *)
3560
-
3561
- @lit/reactive-element/decorators/event-options.js:
3562
- (**
3563
- * @license
3564
- * Copyright 2017 Google LLC
3565
- * SPDX-License-Identifier: BSD-3-Clause
3566
- *)
3567
-
3568
- @lit/reactive-element/decorators/base.js:
3569
- (**
3570
- * @license
3571
- * Copyright 2017 Google LLC
3572
- * SPDX-License-Identifier: BSD-3-Clause
3573
- *)
3574
-
3575
- @lit/reactive-element/decorators/query.js:
3576
- (**
3577
- * @license
3578
- * Copyright 2017 Google LLC
3579
- * SPDX-License-Identifier: BSD-3-Clause
3580
- *)
3581
-
3582
- @lit/reactive-element/decorators/query-all.js:
3583
- (**
3584
- * @license
3585
- * Copyright 2017 Google LLC
3586
- * SPDX-License-Identifier: BSD-3-Clause
3587
- *)
3588
-
3589
- @lit/reactive-element/decorators/query-async.js:
3590
- (**
3591
- * @license
3592
- * Copyright 2017 Google LLC
3593
- * SPDX-License-Identifier: BSD-3-Clause
3594
- *)
3595
-
3596
- @lit/reactive-element/decorators/query-assigned-elements.js:
3597
- (**
3598
- * @license
3599
- * Copyright 2021 Google LLC
3600
- * SPDX-License-Identifier: BSD-3-Clause
3601
- *)
3602
-
3603
- @lit/reactive-element/decorators/query-assigned-nodes.js:
3604
- (**
3605
- * @license
3606
- * Copyright 2017 Google LLC
3607
- * SPDX-License-Identifier: BSD-3-Clause
3608
- *)
3609
- *)
3610
-
3611
- @lit/reactive-element/decorators/query-assigned-elements.js:
3612
- @lit/localize/internal/locale-status-event.js:
3613
- @lit/localize/internal/str-tag.js:
3614
- @lit/localize/internal/types.js:
3615
- @lit/localize/internal/default-msg.js:
3616
- @lit/localize/internal/localized-controller.js:
3617
- @lit/localize/internal/localized-decorator.js:
3618
- @lit/localize/internal/runtime-msg.js:
3619
- @lit/localize/init/runtime.js:
3620
- @lit/localize/init/transform.js:
3621
- (**
3622
- * @license
3623
- * Copyright 2021 Google LLC
3624
- * SPDX-License-Identifier: BSD-3-Clause
3625
- *)
3626
-
3627
- lit-html/directives/style-map.js:
3628
- lit-html/directives/class-map.js:
3629
- lit-html/directives/if-defined.js:
3630
- (**
3631
- * @license
3632
- * Copyright 2018 Google LLC
3633
- * SPDX-License-Identifier: BSD-3-Clause
3634
- *)
3635
-
3636
- lit-html/directive-helpers.js:
3637
- lit-html/static.js:
3638
- @lit/localize/internal/deferred.js:
3639
- @lit/localize/internal/id-generation.js:
3640
- @lit/localize/lit-localize.js:
3641
- (**
3642
- * @license
3643
- * Copyright 2020 Google LLC
3644
- * SPDX-License-Identifier: BSD-3-Clause
3645
- *)
3646
-
3647
- @lit/localize/internal/fnv1a64.js:
3648
- (**
3649
- * @license
3650
- * Copyright 2014 Travis Webb
3651
- * SPDX-License-Identifier: MIT
3652
- *)
3653
- */