@ea-lab/reactive-json 0.7.0 → 1.0.0-alpha.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 (89) hide show
  1. package/README.md +1 -3
  2. package/dist/TemplateSystem-kQJEKjik.js +3568 -0
  3. package/dist/assets/VariablesDebug.css +1 -4
  4. package/dist/assets/reset.css +4 -0
  5. package/dist/assets/usePagination.css +1 -0
  6. package/dist/component/action/HashChangeListener.js +29 -7
  7. package/dist/component/action/MessageListener.js +26 -8
  8. package/dist/component/action/ReactOnEvent.js +64 -8
  9. package/dist/component/action/Redirect.js +9 -5
  10. package/dist/component/action/SetAttributeValue.js +37 -5
  11. package/dist/component/action/ToggleAttributeValue.js +56 -5
  12. package/dist/component/action/UnsetAttribute.js +20 -5
  13. package/dist/component/action/UnsetAttributeValue.js +58 -5
  14. package/dist/component/action/index.js +19 -15
  15. package/dist/component/dataMapping/index.js +6 -3
  16. package/dist/component/dataMapping/simpleMapping.js +93 -2
  17. package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +110 -13
  18. package/dist/component/element/debug/index.js +2 -2
  19. package/dist/component/element/html/FolderSortableTree.js +131 -8
  20. package/dist/component/element/html/FormatNumeral.js +57 -6
  21. package/dist/component/element/html/Html.js +1 -1
  22. package/dist/component/element/html/LabelFromValue.js +25 -6
  23. package/dist/component/element/html/PreformattedMarkup.js +50 -7
  24. package/dist/component/element/html/SortableTreeItemCollapseButton.js +10 -5
  25. package/dist/component/element/html/index.js +12 -10
  26. package/dist/component/element/index.js +35 -30
  27. package/dist/component/element/special/Count.js +21 -10
  28. package/dist/component/element/special/DataFilter.js +75 -6
  29. package/dist/component/element/special/DelayedActions.js +46 -7
  30. package/dist/component/element/special/Phantom.js +12 -3
  31. package/dist/component/element/special/ReactiveJsonBasicComponentWrapper.js +29 -0
  32. package/dist/component/element/special/ReactiveJsonSubroot.js +4 -3
  33. package/dist/component/element/special/Switch.js +78 -8
  34. package/dist/component/element/special/index.js +16 -10
  35. package/dist/component/hook/index.js +1 -1
  36. package/dist/component/hook/usePagination.js +172 -4
  37. package/dist/component/index.js +85 -63
  38. package/dist/component/reaction/addData.js +23 -3
  39. package/dist/component/reaction/fetchData.js +12 -2
  40. package/dist/component/reaction/index.js +34 -12
  41. package/dist/component/reaction/moveData.js +34 -2
  42. package/dist/component/reaction/postMessage.js +23 -2
  43. package/dist/component/reaction/redirectNow.js +6 -2
  44. package/dist/component/reaction/removeData.js +27 -2
  45. package/dist/component/reaction/setClipboardData.js +16 -2
  46. package/dist/component/reaction/setData.js +22 -3
  47. package/dist/component/reaction/submitData.js +25 -2
  48. package/dist/component/reaction/utility/httpRequestCommon.js +3 -2
  49. package/dist/component/reaction/utility/index.js +1 -1
  50. package/dist/coreComponentsPlugin.js +5 -2
  51. package/dist/dnd-kit-sortable-tree.esm-Cz1RJyIg.js +4135 -0
  52. package/dist/engine/Actions.js +4 -7
  53. package/dist/engine/ParsingDebugDisplay/ParsingDebugDisplay.js +692 -3
  54. package/dist/engine/ReactiveJsonRoot.js +8 -6
  55. package/dist/engine/TemplateSystem.js +3 -3
  56. package/dist/engine/View.js +2 -7
  57. package/dist/engine/index.js +38 -37
  58. package/dist/engine/utility/alterData.js +7 -1
  59. package/dist/engine/utility/analyzeDataOverrideReferences.js +41 -2
  60. package/dist/engine/utility/formElementsCommon.js +34 -0
  61. package/dist/engine/utility/formatString.js +19 -3
  62. package/dist/engine/utility/index.js +12 -11
  63. package/dist/httpRequestCommon-BFntjNdS.js +1799 -0
  64. package/dist/index-BA09SSaJ.js +26 -0
  65. package/dist/index-Bzk15m61.js +19 -0
  66. package/dist/index-CACLSxWi.js +8 -0
  67. package/dist/index-NNBvIV0S.js +1873 -0
  68. package/dist/index-OhHUX6nj.js +460 -0
  69. package/dist/main.js +124 -102
  70. package/package.json +4 -4
  71. package/dist/HashChangeListener-D6HwdXBJ.js +0 -8526
  72. package/dist/ParsingDebugDisplay-8f4yL4Jw.js +0 -696
  73. package/dist/VariablesDebug-pv5GGWel.js +0 -9262
  74. package/dist/component/action/Popover.js +0 -6
  75. package/dist/component/action/Tooltip.js +0 -5
  76. package/dist/component/element/form/CheckBoxField.js +0 -8
  77. package/dist/component/element/form/DateField.js +0 -8
  78. package/dist/component/element/form/NumberField.js +0 -8
  79. package/dist/component/element/form/SelectField.js +0 -8
  80. package/dist/component/element/form/TextAreaField.js +0 -8
  81. package/dist/component/element/form/TextField.js +0 -8
  82. package/dist/component/element/form/formElementsCommon.js +0 -4
  83. package/dist/component/element/form/index.js +0 -10
  84. package/dist/component/element/html/AccordionItem.js +0 -6
  85. package/dist/component/element/html/Modal.js +0 -8
  86. package/dist/component/element/html/Tabs.js +0 -8
  87. package/dist/component/element/special/BootstrapElement.js +0 -5
  88. package/dist/engine/PaginationProvider.js +0 -30
  89. package/dist/usePagination-Bb6lefHG.js +0 -353
@@ -0,0 +1,1873 @@
1
+ import { g as Te } from "./_commonjsHelpers-DaMA6jEr.js";
2
+ import he from "react";
3
+ var F = {}, L = {}, z = {}, D = {}, x = {}, X = {}, Y;
4
+ function ve() {
5
+ return Y || (Y = 1, function(r) {
6
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.Doctype = r.CDATA = r.Tag = r.Style = r.Script = r.Comment = r.Directive = r.Text = r.Root = r.isTag = r.ElementType = void 0;
7
+ var s;
8
+ (function(u) {
9
+ u.Root = "root", u.Text = "text", u.Directive = "directive", u.Comment = "comment", u.Script = "script", u.Style = "style", u.Tag = "tag", u.CDATA = "cdata", u.Doctype = "doctype";
10
+ })(s = r.ElementType || (r.ElementType = {}));
11
+ function f(u) {
12
+ return u.type === s.Tag || u.type === s.Script || u.type === s.Style;
13
+ }
14
+ r.isTag = f, r.Root = s.Root, r.Text = s.Text, r.Directive = s.Directive, r.Comment = s.Comment, r.Script = s.Script, r.Style = s.Style, r.Tag = s.Tag, r.CDATA = s.CDATA, r.Doctype = s.Doctype;
15
+ }(X)), X;
16
+ }
17
+ var m = {}, Z;
18
+ function K() {
19
+ if (Z) return m;
20
+ Z = 1;
21
+ var r = m && m.__extends || /* @__PURE__ */ function() {
22
+ var e = function(i, a) {
23
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, b) {
24
+ _.__proto__ = b;
25
+ } || function(_, b) {
26
+ for (var O in b) Object.prototype.hasOwnProperty.call(b, O) && (_[O] = b[O]);
27
+ }, e(i, a);
28
+ };
29
+ return function(i, a) {
30
+ if (typeof a != "function" && a !== null)
31
+ throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
32
+ e(i, a);
33
+ function _() {
34
+ this.constructor = i;
35
+ }
36
+ i.prototype = a === null ? Object.create(a) : (_.prototype = a.prototype, new _());
37
+ };
38
+ }(), s = m && m.__assign || function() {
39
+ return s = Object.assign || function(e) {
40
+ for (var i, a = 1, _ = arguments.length; a < _; a++) {
41
+ i = arguments[a];
42
+ for (var b in i) Object.prototype.hasOwnProperty.call(i, b) && (e[b] = i[b]);
43
+ }
44
+ return e;
45
+ }, s.apply(this, arguments);
46
+ };
47
+ Object.defineProperty(m, "__esModule", { value: !0 }), m.cloneNode = m.hasChildren = m.isDocument = m.isDirective = m.isComment = m.isText = m.isCDATA = m.isTag = m.Element = m.Document = m.CDATA = m.NodeWithChildren = m.ProcessingInstruction = m.Comment = m.Text = m.DataNode = m.Node = void 0;
48
+ var f = /* @__PURE__ */ ve(), u = (
49
+ /** @class */
50
+ function() {
51
+ function e() {
52
+ this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
53
+ }
54
+ return Object.defineProperty(e.prototype, "parentNode", {
55
+ // Read-write aliases for properties
56
+ /**
57
+ * Same as {@link parent}.
58
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
59
+ */
60
+ get: function() {
61
+ return this.parent;
62
+ },
63
+ set: function(i) {
64
+ this.parent = i;
65
+ },
66
+ enumerable: !1,
67
+ configurable: !0
68
+ }), Object.defineProperty(e.prototype, "previousSibling", {
69
+ /**
70
+ * Same as {@link prev}.
71
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
72
+ */
73
+ get: function() {
74
+ return this.prev;
75
+ },
76
+ set: function(i) {
77
+ this.prev = i;
78
+ },
79
+ enumerable: !1,
80
+ configurable: !0
81
+ }), Object.defineProperty(e.prototype, "nextSibling", {
82
+ /**
83
+ * Same as {@link next}.
84
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
85
+ */
86
+ get: function() {
87
+ return this.next;
88
+ },
89
+ set: function(i) {
90
+ this.next = i;
91
+ },
92
+ enumerable: !1,
93
+ configurable: !0
94
+ }), e.prototype.cloneNode = function(i) {
95
+ return i === void 0 && (i = !1), P(this, i);
96
+ }, e;
97
+ }()
98
+ );
99
+ m.Node = u;
100
+ var d = (
101
+ /** @class */
102
+ function(e) {
103
+ r(i, e);
104
+ function i(a) {
105
+ var _ = e.call(this) || this;
106
+ return _.data = a, _;
107
+ }
108
+ return Object.defineProperty(i.prototype, "nodeValue", {
109
+ /**
110
+ * Same as {@link data}.
111
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
112
+ */
113
+ get: function() {
114
+ return this.data;
115
+ },
116
+ set: function(a) {
117
+ this.data = a;
118
+ },
119
+ enumerable: !1,
120
+ configurable: !0
121
+ }), i;
122
+ }(u)
123
+ );
124
+ m.DataNode = d;
125
+ var p = (
126
+ /** @class */
127
+ function(e) {
128
+ r(i, e);
129
+ function i() {
130
+ var a = e !== null && e.apply(this, arguments) || this;
131
+ return a.type = f.ElementType.Text, a;
132
+ }
133
+ return Object.defineProperty(i.prototype, "nodeType", {
134
+ get: function() {
135
+ return 3;
136
+ },
137
+ enumerable: !1,
138
+ configurable: !0
139
+ }), i;
140
+ }(d)
141
+ );
142
+ m.Text = p;
143
+ var T = (
144
+ /** @class */
145
+ function(e) {
146
+ r(i, e);
147
+ function i() {
148
+ var a = e !== null && e.apply(this, arguments) || this;
149
+ return a.type = f.ElementType.Comment, a;
150
+ }
151
+ return Object.defineProperty(i.prototype, "nodeType", {
152
+ get: function() {
153
+ return 8;
154
+ },
155
+ enumerable: !1,
156
+ configurable: !0
157
+ }), i;
158
+ }(d)
159
+ );
160
+ m.Comment = T;
161
+ var o = (
162
+ /** @class */
163
+ function(e) {
164
+ r(i, e);
165
+ function i(a, _) {
166
+ var b = e.call(this, _) || this;
167
+ return b.name = a, b.type = f.ElementType.Directive, b;
168
+ }
169
+ return Object.defineProperty(i.prototype, "nodeType", {
170
+ get: function() {
171
+ return 1;
172
+ },
173
+ enumerable: !1,
174
+ configurable: !0
175
+ }), i;
176
+ }(d)
177
+ );
178
+ m.ProcessingInstruction = o;
179
+ var t = (
180
+ /** @class */
181
+ function(e) {
182
+ r(i, e);
183
+ function i(a) {
184
+ var _ = e.call(this) || this;
185
+ return _.children = a, _;
186
+ }
187
+ return Object.defineProperty(i.prototype, "firstChild", {
188
+ // Aliases
189
+ /** First child of the node. */
190
+ get: function() {
191
+ var a;
192
+ return (a = this.children[0]) !== null && a !== void 0 ? a : null;
193
+ },
194
+ enumerable: !1,
195
+ configurable: !0
196
+ }), Object.defineProperty(i.prototype, "lastChild", {
197
+ /** Last child of the node. */
198
+ get: function() {
199
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
200
+ },
201
+ enumerable: !1,
202
+ configurable: !0
203
+ }), Object.defineProperty(i.prototype, "childNodes", {
204
+ /**
205
+ * Same as {@link children}.
206
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
207
+ */
208
+ get: function() {
209
+ return this.children;
210
+ },
211
+ set: function(a) {
212
+ this.children = a;
213
+ },
214
+ enumerable: !1,
215
+ configurable: !0
216
+ }), i;
217
+ }(u)
218
+ );
219
+ m.NodeWithChildren = t;
220
+ var n = (
221
+ /** @class */
222
+ function(e) {
223
+ r(i, e);
224
+ function i() {
225
+ var a = e !== null && e.apply(this, arguments) || this;
226
+ return a.type = f.ElementType.CDATA, a;
227
+ }
228
+ return Object.defineProperty(i.prototype, "nodeType", {
229
+ get: function() {
230
+ return 4;
231
+ },
232
+ enumerable: !1,
233
+ configurable: !0
234
+ }), i;
235
+ }(t)
236
+ );
237
+ m.CDATA = n;
238
+ var l = (
239
+ /** @class */
240
+ function(e) {
241
+ r(i, e);
242
+ function i() {
243
+ var a = e !== null && e.apply(this, arguments) || this;
244
+ return a.type = f.ElementType.Root, a;
245
+ }
246
+ return Object.defineProperty(i.prototype, "nodeType", {
247
+ get: function() {
248
+ return 9;
249
+ },
250
+ enumerable: !1,
251
+ configurable: !0
252
+ }), i;
253
+ }(t)
254
+ );
255
+ m.Document = l;
256
+ var c = (
257
+ /** @class */
258
+ function(e) {
259
+ r(i, e);
260
+ function i(a, _, b, O) {
261
+ b === void 0 && (b = []), O === void 0 && (O = a === "script" ? f.ElementType.Script : a === "style" ? f.ElementType.Style : f.ElementType.Tag);
262
+ var w = e.call(this, b) || this;
263
+ return w.name = a, w.attribs = _, w.type = O, w;
264
+ }
265
+ return Object.defineProperty(i.prototype, "nodeType", {
266
+ get: function() {
267
+ return 1;
268
+ },
269
+ enumerable: !1,
270
+ configurable: !0
271
+ }), Object.defineProperty(i.prototype, "tagName", {
272
+ // DOM Level 1 aliases
273
+ /**
274
+ * Same as {@link name}.
275
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
276
+ */
277
+ get: function() {
278
+ return this.name;
279
+ },
280
+ set: function(a) {
281
+ this.name = a;
282
+ },
283
+ enumerable: !1,
284
+ configurable: !0
285
+ }), Object.defineProperty(i.prototype, "attributes", {
286
+ get: function() {
287
+ var a = this;
288
+ return Object.keys(this.attribs).map(function(_) {
289
+ var b, O;
290
+ return {
291
+ name: _,
292
+ value: a.attribs[_],
293
+ namespace: (b = a["x-attribsNamespace"]) === null || b === void 0 ? void 0 : b[_],
294
+ prefix: (O = a["x-attribsPrefix"]) === null || O === void 0 ? void 0 : O[_]
295
+ };
296
+ });
297
+ },
298
+ enumerable: !1,
299
+ configurable: !0
300
+ }), i;
301
+ }(t)
302
+ );
303
+ m.Element = c;
304
+ function v(e) {
305
+ return (0, f.isTag)(e);
306
+ }
307
+ m.isTag = v;
308
+ function S(e) {
309
+ return e.type === f.ElementType.CDATA;
310
+ }
311
+ m.isCDATA = S;
312
+ function A(e) {
313
+ return e.type === f.ElementType.Text;
314
+ }
315
+ m.isText = A;
316
+ function y(e) {
317
+ return e.type === f.ElementType.Comment;
318
+ }
319
+ m.isComment = y;
320
+ function h(e) {
321
+ return e.type === f.ElementType.Directive;
322
+ }
323
+ m.isDirective = h;
324
+ function R(e) {
325
+ return e.type === f.ElementType.Root;
326
+ }
327
+ m.isDocument = R;
328
+ function g(e) {
329
+ return Object.prototype.hasOwnProperty.call(e, "children");
330
+ }
331
+ m.hasChildren = g;
332
+ function P(e, i) {
333
+ i === void 0 && (i = !1);
334
+ var a;
335
+ if (A(e))
336
+ a = new p(e.data);
337
+ else if (y(e))
338
+ a = new T(e.data);
339
+ else if (v(e)) {
340
+ var _ = i ? k(e.children) : [], b = new c(e.name, s({}, e.attribs), _);
341
+ _.forEach(function(C) {
342
+ return C.parent = b;
343
+ }), e.namespace != null && (b.namespace = e.namespace), e["x-attribsNamespace"] && (b["x-attribsNamespace"] = s({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (b["x-attribsPrefix"] = s({}, e["x-attribsPrefix"])), a = b;
344
+ } else if (S(e)) {
345
+ var _ = i ? k(e.children) : [], O = new n(_);
346
+ _.forEach(function(E) {
347
+ return E.parent = O;
348
+ }), a = O;
349
+ } else if (R(e)) {
350
+ var _ = i ? k(e.children) : [], w = new l(_);
351
+ _.forEach(function(E) {
352
+ return E.parent = w;
353
+ }), e["x-mode"] && (w["x-mode"] = e["x-mode"]), a = w;
354
+ } else if (h(e)) {
355
+ var M = new o(e.name, e.data);
356
+ e["x-name"] != null && (M["x-name"] = e["x-name"], M["x-publicId"] = e["x-publicId"], M["x-systemId"] = e["x-systemId"]), a = M;
357
+ } else
358
+ throw new Error("Not implemented yet: ".concat(e.type));
359
+ return a.startIndex = e.startIndex, a.endIndex = e.endIndex, e.sourceCodeLocation != null && (a.sourceCodeLocation = e.sourceCodeLocation), a;
360
+ }
361
+ m.cloneNode = P;
362
+ function k(e) {
363
+ for (var i = e.map(function(_) {
364
+ return P(_, !0);
365
+ }), a = 1; a < i.length; a++)
366
+ i[a].prev = i[a - 1], i[a - 1].next = i[a];
367
+ return i;
368
+ }
369
+ return m;
370
+ }
371
+ var J;
372
+ function me() {
373
+ return J || (J = 1, function(r) {
374
+ var s = x && x.__createBinding || (Object.create ? function(o, t, n, l) {
375
+ l === void 0 && (l = n);
376
+ var c = Object.getOwnPropertyDescriptor(t, n);
377
+ (!c || ("get" in c ? !t.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
378
+ return t[n];
379
+ } }), Object.defineProperty(o, l, c);
380
+ } : function(o, t, n, l) {
381
+ l === void 0 && (l = n), o[l] = t[n];
382
+ }), f = x && x.__exportStar || function(o, t) {
383
+ for (var n in o) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && s(t, o, n);
384
+ };
385
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.DomHandler = void 0;
386
+ var u = /* @__PURE__ */ ve(), d = /* @__PURE__ */ K();
387
+ f(/* @__PURE__ */ K(), r);
388
+ var p = {
389
+ withStartIndices: !1,
390
+ withEndIndices: !1,
391
+ xmlMode: !1
392
+ }, T = (
393
+ /** @class */
394
+ function() {
395
+ function o(t, n, l) {
396
+ this.dom = [], this.root = new d.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof n == "function" && (l = n, n = p), typeof t == "object" && (n = t, t = void 0), this.callback = t ?? null, this.options = n ?? p, this.elementCB = l ?? null;
397
+ }
398
+ return o.prototype.onparserinit = function(t) {
399
+ this.parser = t;
400
+ }, o.prototype.onreset = function() {
401
+ this.dom = [], this.root = new d.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
402
+ }, o.prototype.onend = function() {
403
+ this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
404
+ }, o.prototype.onerror = function(t) {
405
+ this.handleCallback(t);
406
+ }, o.prototype.onclosetag = function() {
407
+ this.lastNode = null;
408
+ var t = this.tagStack.pop();
409
+ this.options.withEndIndices && (t.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(t);
410
+ }, o.prototype.onopentag = function(t, n) {
411
+ var l = this.options.xmlMode ? u.ElementType.Tag : void 0, c = new d.Element(t, n, void 0, l);
412
+ this.addNode(c), this.tagStack.push(c);
413
+ }, o.prototype.ontext = function(t) {
414
+ var n = this.lastNode;
415
+ if (n && n.type === u.ElementType.Text)
416
+ n.data += t, this.options.withEndIndices && (n.endIndex = this.parser.endIndex);
417
+ else {
418
+ var l = new d.Text(t);
419
+ this.addNode(l), this.lastNode = l;
420
+ }
421
+ }, o.prototype.oncomment = function(t) {
422
+ if (this.lastNode && this.lastNode.type === u.ElementType.Comment) {
423
+ this.lastNode.data += t;
424
+ return;
425
+ }
426
+ var n = new d.Comment(t);
427
+ this.addNode(n), this.lastNode = n;
428
+ }, o.prototype.oncommentend = function() {
429
+ this.lastNode = null;
430
+ }, o.prototype.oncdatastart = function() {
431
+ var t = new d.Text(""), n = new d.CDATA([t]);
432
+ this.addNode(n), t.parent = n, this.lastNode = t;
433
+ }, o.prototype.oncdataend = function() {
434
+ this.lastNode = null;
435
+ }, o.prototype.onprocessinginstruction = function(t, n) {
436
+ var l = new d.ProcessingInstruction(t, n);
437
+ this.addNode(l);
438
+ }, o.prototype.handleCallback = function(t) {
439
+ if (typeof this.callback == "function")
440
+ this.callback(t, this.dom);
441
+ else if (t)
442
+ throw t;
443
+ }, o.prototype.addNode = function(t) {
444
+ var n = this.tagStack[this.tagStack.length - 1], l = n.children[n.children.length - 1];
445
+ this.options.withStartIndices && (t.startIndex = this.parser.startIndex), this.options.withEndIndices && (t.endIndex = this.parser.endIndex), n.children.push(t), l && (t.prev = l, l.next = t), t.parent = n, this.lastNode = null;
446
+ }, o;
447
+ }()
448
+ );
449
+ r.DomHandler = T, r.default = T;
450
+ }(x)), x;
451
+ }
452
+ var $ = {}, Q;
453
+ function Re() {
454
+ return Q || (Q = 1, function(r) {
455
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.CARRIAGE_RETURN_PLACEHOLDER_REGEX = r.CARRIAGE_RETURN_PLACEHOLDER = r.CARRIAGE_RETURN_REGEX = r.CARRIAGE_RETURN = r.CASE_SENSITIVE_TAG_NAMES_MAP = r.CASE_SENSITIVE_TAG_NAMES = void 0, r.CASE_SENSITIVE_TAG_NAMES = [
456
+ "animateMotion",
457
+ "animateTransform",
458
+ "clipPath",
459
+ "feBlend",
460
+ "feColorMatrix",
461
+ "feComponentTransfer",
462
+ "feComposite",
463
+ "feConvolveMatrix",
464
+ "feDiffuseLighting",
465
+ "feDisplacementMap",
466
+ "feDropShadow",
467
+ "feFlood",
468
+ "feFuncA",
469
+ "feFuncB",
470
+ "feFuncG",
471
+ "feFuncR",
472
+ "feGaussianBlur",
473
+ "feImage",
474
+ "feMerge",
475
+ "feMergeNode",
476
+ "feMorphology",
477
+ "feOffset",
478
+ "fePointLight",
479
+ "feSpecularLighting",
480
+ "feSpotLight",
481
+ "feTile",
482
+ "feTurbulence",
483
+ "foreignObject",
484
+ "linearGradient",
485
+ "radialGradient",
486
+ "textPath"
487
+ ], r.CASE_SENSITIVE_TAG_NAMES_MAP = r.CASE_SENSITIVE_TAG_NAMES.reduce(function(s, f) {
488
+ return s[f.toLowerCase()] = f, s;
489
+ }, {}), r.CARRIAGE_RETURN = "\r", r.CARRIAGE_RETURN_REGEX = new RegExp(r.CARRIAGE_RETURN, "g"), r.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(), "__"), r.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(r.CARRIAGE_RETURN_PLACEHOLDER, "g");
490
+ }($)), $;
491
+ }
492
+ var ee;
493
+ function ge() {
494
+ if (ee) return D;
495
+ ee = 1, Object.defineProperty(D, "__esModule", { value: !0 }), D.formatAttributes = u, D.escapeSpecialCharacters = p, D.revertEscapedCharacters = T, D.formatDOM = o;
496
+ var r = /* @__PURE__ */ me(), s = Re();
497
+ function f(t) {
498
+ return s.CASE_SENSITIVE_TAG_NAMES_MAP[t];
499
+ }
500
+ function u(t) {
501
+ for (var n = {}, l = 0, c = t.length; l < c; l++) {
502
+ var v = t[l];
503
+ n[v.name] = v.value;
504
+ }
505
+ return n;
506
+ }
507
+ function d(t) {
508
+ t = t.toLowerCase();
509
+ var n = f(t);
510
+ return n || t;
511
+ }
512
+ function p(t) {
513
+ return t.replace(s.CARRIAGE_RETURN_REGEX, s.CARRIAGE_RETURN_PLACEHOLDER);
514
+ }
515
+ function T(t) {
516
+ return t.replace(s.CARRIAGE_RETURN_PLACEHOLDER_REGEX, s.CARRIAGE_RETURN);
517
+ }
518
+ function o(t, n, l) {
519
+ n === void 0 && (n = null);
520
+ for (var c = [], v, S = 0, A = t.length; S < A; S++) {
521
+ var y = t[S];
522
+ switch (y.nodeType) {
523
+ case 1: {
524
+ var h = d(y.nodeName);
525
+ v = new r.Element(h, u(y.attributes)), v.children = o(
526
+ // template children are on content
527
+ h === "template" ? y.content.childNodes : y.childNodes,
528
+ v
529
+ );
530
+ break;
531
+ }
532
+ case 3:
533
+ v = new r.Text(T(y.nodeValue));
534
+ break;
535
+ case 8:
536
+ v = new r.Comment(y.nodeValue);
537
+ break;
538
+ default:
539
+ continue;
540
+ }
541
+ var R = c[S - 1] || null;
542
+ R && (R.next = v), v.parent = n, v.prev = R, v.next = null, c.push(v);
543
+ }
544
+ return l && (v = new r.ProcessingInstruction(l.substring(0, l.indexOf(" ")).toLowerCase(), l), v.next = c[0] || null, v.parent = n, c.unshift(v), c[1] && (c[1].prev = c[0])), c;
545
+ }
546
+ return D;
547
+ }
548
+ var te;
549
+ function be() {
550
+ if (te) return z;
551
+ te = 1, Object.defineProperty(z, "__esModule", { value: !0 }), z.default = y;
552
+ var r = ge(), s = "html", f = "head", u = "body", d = /<([a-zA-Z]+[0-9]?)/, p = /<head[^]*>/i, T = /<body[^]*>/i, o = function(h, R) {
553
+ throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
554
+ }, t = function(h, R) {
555
+ throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
556
+ }, n = typeof window == "object" && window.DOMParser;
557
+ if (typeof n == "function") {
558
+ var l = new n(), c = "text/html";
559
+ t = function(h, R) {
560
+ return R && (h = "<".concat(R, ">").concat(h, "</").concat(R, ">")), l.parseFromString(h, c);
561
+ }, o = t;
562
+ }
563
+ if (typeof document == "object" && document.implementation) {
564
+ var v = document.implementation.createHTMLDocument();
565
+ o = function(h, R) {
566
+ if (R) {
567
+ var g = v.documentElement.querySelector(R);
568
+ return g && (g.innerHTML = h), v;
569
+ }
570
+ return v.documentElement.innerHTML = h, v;
571
+ };
572
+ }
573
+ var S = typeof document == "object" && document.createElement("template"), A;
574
+ S && S.content && (A = function(h) {
575
+ return S.innerHTML = h, S.content.childNodes;
576
+ });
577
+ function y(h) {
578
+ var R, g;
579
+ h = (0, r.escapeSpecialCharacters)(h);
580
+ var P = h.match(d), k = P && P[1] ? P[1].toLowerCase() : "";
581
+ switch (k) {
582
+ case s: {
583
+ var e = t(h);
584
+ if (!p.test(h)) {
585
+ var i = e.querySelector(f);
586
+ (R = i == null ? void 0 : i.parentNode) === null || R === void 0 || R.removeChild(i);
587
+ }
588
+ if (!T.test(h)) {
589
+ var i = e.querySelector(u);
590
+ (g = i == null ? void 0 : i.parentNode) === null || g === void 0 || g.removeChild(i);
591
+ }
592
+ return e.querySelectorAll(s);
593
+ }
594
+ case f:
595
+ case u: {
596
+ var a = o(h).querySelectorAll(k);
597
+ return T.test(h) && p.test(h) ? a[0].parentNode.childNodes : a;
598
+ }
599
+ // low-level tag or text
600
+ default: {
601
+ if (A)
602
+ return A(h);
603
+ var i = o(h, u).querySelector(u);
604
+ return i.childNodes;
605
+ }
606
+ }
607
+ }
608
+ return z;
609
+ }
610
+ var re;
611
+ function Ce() {
612
+ if (re) return L;
613
+ re = 1;
614
+ var r = L && L.__importDefault || function(p) {
615
+ return p && p.__esModule ? p : { default: p };
616
+ };
617
+ Object.defineProperty(L, "__esModule", { value: !0 }), L.default = d;
618
+ var s = r(be()), f = ge(), u = /<(![a-zA-Z\s]+)>/;
619
+ function d(p) {
620
+ if (typeof p != "string")
621
+ throw new TypeError("First argument must be a string");
622
+ if (!p)
623
+ return [];
624
+ var T = p.match(u), o = T ? T[1] : void 0;
625
+ return (0, f.formatDOM)((0, s.default)(p), null, o);
626
+ }
627
+ return L;
628
+ }
629
+ var V = {}, N = {}, G = {}, ne;
630
+ function Ae() {
631
+ if (ne) return G;
632
+ ne = 1;
633
+ var r = 0;
634
+ G.SAME = r;
635
+ var s = 1;
636
+ return G.CAMELCASE = s, G.possibleStandardNames = {
637
+ accept: 0,
638
+ acceptCharset: 1,
639
+ "accept-charset": "acceptCharset",
640
+ accessKey: 1,
641
+ action: 0,
642
+ allowFullScreen: 1,
643
+ alt: 0,
644
+ as: 0,
645
+ async: 0,
646
+ autoCapitalize: 1,
647
+ autoComplete: 1,
648
+ autoCorrect: 1,
649
+ autoFocus: 1,
650
+ autoPlay: 1,
651
+ autoSave: 1,
652
+ capture: 0,
653
+ cellPadding: 1,
654
+ cellSpacing: 1,
655
+ challenge: 0,
656
+ charSet: 1,
657
+ checked: 0,
658
+ children: 0,
659
+ cite: 0,
660
+ class: "className",
661
+ classID: 1,
662
+ className: 1,
663
+ cols: 0,
664
+ colSpan: 1,
665
+ content: 0,
666
+ contentEditable: 1,
667
+ contextMenu: 1,
668
+ controls: 0,
669
+ controlsList: 1,
670
+ coords: 0,
671
+ crossOrigin: 1,
672
+ dangerouslySetInnerHTML: 1,
673
+ data: 0,
674
+ dateTime: 1,
675
+ default: 0,
676
+ defaultChecked: 1,
677
+ defaultValue: 1,
678
+ defer: 0,
679
+ dir: 0,
680
+ disabled: 0,
681
+ disablePictureInPicture: 1,
682
+ disableRemotePlayback: 1,
683
+ download: 0,
684
+ draggable: 0,
685
+ encType: 1,
686
+ enterKeyHint: 1,
687
+ for: "htmlFor",
688
+ form: 0,
689
+ formMethod: 1,
690
+ formAction: 1,
691
+ formEncType: 1,
692
+ formNoValidate: 1,
693
+ formTarget: 1,
694
+ frameBorder: 1,
695
+ headers: 0,
696
+ height: 0,
697
+ hidden: 0,
698
+ high: 0,
699
+ href: 0,
700
+ hrefLang: 1,
701
+ htmlFor: 1,
702
+ httpEquiv: 1,
703
+ "http-equiv": "httpEquiv",
704
+ icon: 0,
705
+ id: 0,
706
+ innerHTML: 1,
707
+ inputMode: 1,
708
+ integrity: 0,
709
+ is: 0,
710
+ itemID: 1,
711
+ itemProp: 1,
712
+ itemRef: 1,
713
+ itemScope: 1,
714
+ itemType: 1,
715
+ keyParams: 1,
716
+ keyType: 1,
717
+ kind: 0,
718
+ label: 0,
719
+ lang: 0,
720
+ list: 0,
721
+ loop: 0,
722
+ low: 0,
723
+ manifest: 0,
724
+ marginWidth: 1,
725
+ marginHeight: 1,
726
+ max: 0,
727
+ maxLength: 1,
728
+ media: 0,
729
+ mediaGroup: 1,
730
+ method: 0,
731
+ min: 0,
732
+ minLength: 1,
733
+ multiple: 0,
734
+ muted: 0,
735
+ name: 0,
736
+ noModule: 1,
737
+ nonce: 0,
738
+ noValidate: 1,
739
+ open: 0,
740
+ optimum: 0,
741
+ pattern: 0,
742
+ placeholder: 0,
743
+ playsInline: 1,
744
+ poster: 0,
745
+ preload: 0,
746
+ profile: 0,
747
+ radioGroup: 1,
748
+ readOnly: 1,
749
+ referrerPolicy: 1,
750
+ rel: 0,
751
+ required: 0,
752
+ reversed: 0,
753
+ role: 0,
754
+ rows: 0,
755
+ rowSpan: 1,
756
+ sandbox: 0,
757
+ scope: 0,
758
+ scoped: 0,
759
+ scrolling: 0,
760
+ seamless: 0,
761
+ selected: 0,
762
+ shape: 0,
763
+ size: 0,
764
+ sizes: 0,
765
+ span: 0,
766
+ spellCheck: 1,
767
+ src: 0,
768
+ srcDoc: 1,
769
+ srcLang: 1,
770
+ srcSet: 1,
771
+ start: 0,
772
+ step: 0,
773
+ style: 0,
774
+ summary: 0,
775
+ tabIndex: 1,
776
+ target: 0,
777
+ title: 0,
778
+ type: 0,
779
+ useMap: 1,
780
+ value: 0,
781
+ width: 0,
782
+ wmode: 0,
783
+ wrap: 0,
784
+ about: 0,
785
+ accentHeight: 1,
786
+ "accent-height": "accentHeight",
787
+ accumulate: 0,
788
+ additive: 0,
789
+ alignmentBaseline: 1,
790
+ "alignment-baseline": "alignmentBaseline",
791
+ allowReorder: 1,
792
+ alphabetic: 0,
793
+ amplitude: 0,
794
+ arabicForm: 1,
795
+ "arabic-form": "arabicForm",
796
+ ascent: 0,
797
+ attributeName: 1,
798
+ attributeType: 1,
799
+ autoReverse: 1,
800
+ azimuth: 0,
801
+ baseFrequency: 1,
802
+ baselineShift: 1,
803
+ "baseline-shift": "baselineShift",
804
+ baseProfile: 1,
805
+ bbox: 0,
806
+ begin: 0,
807
+ bias: 0,
808
+ by: 0,
809
+ calcMode: 1,
810
+ capHeight: 1,
811
+ "cap-height": "capHeight",
812
+ clip: 0,
813
+ clipPath: 1,
814
+ "clip-path": "clipPath",
815
+ clipPathUnits: 1,
816
+ clipRule: 1,
817
+ "clip-rule": "clipRule",
818
+ color: 0,
819
+ colorInterpolation: 1,
820
+ "color-interpolation": "colorInterpolation",
821
+ colorInterpolationFilters: 1,
822
+ "color-interpolation-filters": "colorInterpolationFilters",
823
+ colorProfile: 1,
824
+ "color-profile": "colorProfile",
825
+ colorRendering: 1,
826
+ "color-rendering": "colorRendering",
827
+ contentScriptType: 1,
828
+ contentStyleType: 1,
829
+ cursor: 0,
830
+ cx: 0,
831
+ cy: 0,
832
+ d: 0,
833
+ datatype: 0,
834
+ decelerate: 0,
835
+ descent: 0,
836
+ diffuseConstant: 1,
837
+ direction: 0,
838
+ display: 0,
839
+ divisor: 0,
840
+ dominantBaseline: 1,
841
+ "dominant-baseline": "dominantBaseline",
842
+ dur: 0,
843
+ dx: 0,
844
+ dy: 0,
845
+ edgeMode: 1,
846
+ elevation: 0,
847
+ enableBackground: 1,
848
+ "enable-background": "enableBackground",
849
+ end: 0,
850
+ exponent: 0,
851
+ externalResourcesRequired: 1,
852
+ fill: 0,
853
+ fillOpacity: 1,
854
+ "fill-opacity": "fillOpacity",
855
+ fillRule: 1,
856
+ "fill-rule": "fillRule",
857
+ filter: 0,
858
+ filterRes: 1,
859
+ filterUnits: 1,
860
+ floodOpacity: 1,
861
+ "flood-opacity": "floodOpacity",
862
+ floodColor: 1,
863
+ "flood-color": "floodColor",
864
+ focusable: 0,
865
+ fontFamily: 1,
866
+ "font-family": "fontFamily",
867
+ fontSize: 1,
868
+ "font-size": "fontSize",
869
+ fontSizeAdjust: 1,
870
+ "font-size-adjust": "fontSizeAdjust",
871
+ fontStretch: 1,
872
+ "font-stretch": "fontStretch",
873
+ fontStyle: 1,
874
+ "font-style": "fontStyle",
875
+ fontVariant: 1,
876
+ "font-variant": "fontVariant",
877
+ fontWeight: 1,
878
+ "font-weight": "fontWeight",
879
+ format: 0,
880
+ from: 0,
881
+ fx: 0,
882
+ fy: 0,
883
+ g1: 0,
884
+ g2: 0,
885
+ glyphName: 1,
886
+ "glyph-name": "glyphName",
887
+ glyphOrientationHorizontal: 1,
888
+ "glyph-orientation-horizontal": "glyphOrientationHorizontal",
889
+ glyphOrientationVertical: 1,
890
+ "glyph-orientation-vertical": "glyphOrientationVertical",
891
+ glyphRef: 1,
892
+ gradientTransform: 1,
893
+ gradientUnits: 1,
894
+ hanging: 0,
895
+ horizAdvX: 1,
896
+ "horiz-adv-x": "horizAdvX",
897
+ horizOriginX: 1,
898
+ "horiz-origin-x": "horizOriginX",
899
+ ideographic: 0,
900
+ imageRendering: 1,
901
+ "image-rendering": "imageRendering",
902
+ in2: 0,
903
+ in: 0,
904
+ inlist: 0,
905
+ intercept: 0,
906
+ k1: 0,
907
+ k2: 0,
908
+ k3: 0,
909
+ k4: 0,
910
+ k: 0,
911
+ kernelMatrix: 1,
912
+ kernelUnitLength: 1,
913
+ kerning: 0,
914
+ keyPoints: 1,
915
+ keySplines: 1,
916
+ keyTimes: 1,
917
+ lengthAdjust: 1,
918
+ letterSpacing: 1,
919
+ "letter-spacing": "letterSpacing",
920
+ lightingColor: 1,
921
+ "lighting-color": "lightingColor",
922
+ limitingConeAngle: 1,
923
+ local: 0,
924
+ markerEnd: 1,
925
+ "marker-end": "markerEnd",
926
+ markerHeight: 1,
927
+ markerMid: 1,
928
+ "marker-mid": "markerMid",
929
+ markerStart: 1,
930
+ "marker-start": "markerStart",
931
+ markerUnits: 1,
932
+ markerWidth: 1,
933
+ mask: 0,
934
+ maskContentUnits: 1,
935
+ maskUnits: 1,
936
+ mathematical: 0,
937
+ mode: 0,
938
+ numOctaves: 1,
939
+ offset: 0,
940
+ opacity: 0,
941
+ operator: 0,
942
+ order: 0,
943
+ orient: 0,
944
+ orientation: 0,
945
+ origin: 0,
946
+ overflow: 0,
947
+ overlinePosition: 1,
948
+ "overline-position": "overlinePosition",
949
+ overlineThickness: 1,
950
+ "overline-thickness": "overlineThickness",
951
+ paintOrder: 1,
952
+ "paint-order": "paintOrder",
953
+ panose1: 0,
954
+ "panose-1": "panose1",
955
+ pathLength: 1,
956
+ patternContentUnits: 1,
957
+ patternTransform: 1,
958
+ patternUnits: 1,
959
+ pointerEvents: 1,
960
+ "pointer-events": "pointerEvents",
961
+ points: 0,
962
+ pointsAtX: 1,
963
+ pointsAtY: 1,
964
+ pointsAtZ: 1,
965
+ prefix: 0,
966
+ preserveAlpha: 1,
967
+ preserveAspectRatio: 1,
968
+ primitiveUnits: 1,
969
+ property: 0,
970
+ r: 0,
971
+ radius: 0,
972
+ refX: 1,
973
+ refY: 1,
974
+ renderingIntent: 1,
975
+ "rendering-intent": "renderingIntent",
976
+ repeatCount: 1,
977
+ repeatDur: 1,
978
+ requiredExtensions: 1,
979
+ requiredFeatures: 1,
980
+ resource: 0,
981
+ restart: 0,
982
+ result: 0,
983
+ results: 0,
984
+ rotate: 0,
985
+ rx: 0,
986
+ ry: 0,
987
+ scale: 0,
988
+ security: 0,
989
+ seed: 0,
990
+ shapeRendering: 1,
991
+ "shape-rendering": "shapeRendering",
992
+ slope: 0,
993
+ spacing: 0,
994
+ specularConstant: 1,
995
+ specularExponent: 1,
996
+ speed: 0,
997
+ spreadMethod: 1,
998
+ startOffset: 1,
999
+ stdDeviation: 1,
1000
+ stemh: 0,
1001
+ stemv: 0,
1002
+ stitchTiles: 1,
1003
+ stopColor: 1,
1004
+ "stop-color": "stopColor",
1005
+ stopOpacity: 1,
1006
+ "stop-opacity": "stopOpacity",
1007
+ strikethroughPosition: 1,
1008
+ "strikethrough-position": "strikethroughPosition",
1009
+ strikethroughThickness: 1,
1010
+ "strikethrough-thickness": "strikethroughThickness",
1011
+ string: 0,
1012
+ stroke: 0,
1013
+ strokeDasharray: 1,
1014
+ "stroke-dasharray": "strokeDasharray",
1015
+ strokeDashoffset: 1,
1016
+ "stroke-dashoffset": "strokeDashoffset",
1017
+ strokeLinecap: 1,
1018
+ "stroke-linecap": "strokeLinecap",
1019
+ strokeLinejoin: 1,
1020
+ "stroke-linejoin": "strokeLinejoin",
1021
+ strokeMiterlimit: 1,
1022
+ "stroke-miterlimit": "strokeMiterlimit",
1023
+ strokeWidth: 1,
1024
+ "stroke-width": "strokeWidth",
1025
+ strokeOpacity: 1,
1026
+ "stroke-opacity": "strokeOpacity",
1027
+ suppressContentEditableWarning: 1,
1028
+ suppressHydrationWarning: 1,
1029
+ surfaceScale: 1,
1030
+ systemLanguage: 1,
1031
+ tableValues: 1,
1032
+ targetX: 1,
1033
+ targetY: 1,
1034
+ textAnchor: 1,
1035
+ "text-anchor": "textAnchor",
1036
+ textDecoration: 1,
1037
+ "text-decoration": "textDecoration",
1038
+ textLength: 1,
1039
+ textRendering: 1,
1040
+ "text-rendering": "textRendering",
1041
+ to: 0,
1042
+ transform: 0,
1043
+ typeof: 0,
1044
+ u1: 0,
1045
+ u2: 0,
1046
+ underlinePosition: 1,
1047
+ "underline-position": "underlinePosition",
1048
+ underlineThickness: 1,
1049
+ "underline-thickness": "underlineThickness",
1050
+ unicode: 0,
1051
+ unicodeBidi: 1,
1052
+ "unicode-bidi": "unicodeBidi",
1053
+ unicodeRange: 1,
1054
+ "unicode-range": "unicodeRange",
1055
+ unitsPerEm: 1,
1056
+ "units-per-em": "unitsPerEm",
1057
+ unselectable: 0,
1058
+ vAlphabetic: 1,
1059
+ "v-alphabetic": "vAlphabetic",
1060
+ values: 0,
1061
+ vectorEffect: 1,
1062
+ "vector-effect": "vectorEffect",
1063
+ version: 0,
1064
+ vertAdvY: 1,
1065
+ "vert-adv-y": "vertAdvY",
1066
+ vertOriginX: 1,
1067
+ "vert-origin-x": "vertOriginX",
1068
+ vertOriginY: 1,
1069
+ "vert-origin-y": "vertOriginY",
1070
+ vHanging: 1,
1071
+ "v-hanging": "vHanging",
1072
+ vIdeographic: 1,
1073
+ "v-ideographic": "vIdeographic",
1074
+ viewBox: 1,
1075
+ viewTarget: 1,
1076
+ visibility: 0,
1077
+ vMathematical: 1,
1078
+ "v-mathematical": "vMathematical",
1079
+ vocab: 0,
1080
+ widths: 0,
1081
+ wordSpacing: 1,
1082
+ "word-spacing": "wordSpacing",
1083
+ writingMode: 1,
1084
+ "writing-mode": "writingMode",
1085
+ x1: 0,
1086
+ x2: 0,
1087
+ x: 0,
1088
+ xChannelSelector: 1,
1089
+ xHeight: 1,
1090
+ "x-height": "xHeight",
1091
+ xlinkActuate: 1,
1092
+ "xlink:actuate": "xlinkActuate",
1093
+ xlinkArcrole: 1,
1094
+ "xlink:arcrole": "xlinkArcrole",
1095
+ xlinkHref: 1,
1096
+ "xlink:href": "xlinkHref",
1097
+ xlinkRole: 1,
1098
+ "xlink:role": "xlinkRole",
1099
+ xlinkShow: 1,
1100
+ "xlink:show": "xlinkShow",
1101
+ xlinkTitle: 1,
1102
+ "xlink:title": "xlinkTitle",
1103
+ xlinkType: 1,
1104
+ "xlink:type": "xlinkType",
1105
+ xmlBase: 1,
1106
+ "xml:base": "xmlBase",
1107
+ xmlLang: 1,
1108
+ "xml:lang": "xmlLang",
1109
+ xmlns: 0,
1110
+ "xml:space": "xmlSpace",
1111
+ xmlnsXlink: 1,
1112
+ "xmlns:xlink": "xmlnsXlink",
1113
+ xmlSpace: 1,
1114
+ y1: 0,
1115
+ y2: 0,
1116
+ y: 0,
1117
+ yChannelSelector: 1,
1118
+ z: 0,
1119
+ zoomAndPan: 1
1120
+ }, G;
1121
+ }
1122
+ var ie;
1123
+ function Se() {
1124
+ if (ie) return N;
1125
+ ie = 1;
1126
+ const r = 0, s = 1, f = 2, u = 3, d = 4, p = 5, T = 6;
1127
+ function o(e) {
1128
+ return n.hasOwnProperty(e) ? n[e] : null;
1129
+ }
1130
+ function t(e, i, a, _, b, O, w) {
1131
+ this.acceptsBooleans = i === f || i === u || i === d, this.attributeName = _, this.attributeNamespace = b, this.mustUseProperty = a, this.propertyName = e, this.type = i, this.sanitizeURL = O, this.removeEmptyString = w;
1132
+ }
1133
+ const n = {};
1134
+ [
1135
+ "children",
1136
+ "dangerouslySetInnerHTML",
1137
+ // TODO: This prevents the assignment of defaultValue to regular
1138
+ // elements (not just inputs). Now that ReactDOMInput assigns to the
1139
+ // defaultValue property -- do we need this?
1140
+ "defaultValue",
1141
+ "defaultChecked",
1142
+ "innerHTML",
1143
+ "suppressContentEditableWarning",
1144
+ "suppressHydrationWarning",
1145
+ "style"
1146
+ ].forEach((e) => {
1147
+ n[e] = new t(
1148
+ e,
1149
+ r,
1150
+ !1,
1151
+ // mustUseProperty
1152
+ e,
1153
+ // attributeName
1154
+ null,
1155
+ // attributeNamespace
1156
+ !1,
1157
+ // sanitizeURL
1158
+ !1
1159
+ // removeEmptyString
1160
+ );
1161
+ }), [
1162
+ ["acceptCharset", "accept-charset"],
1163
+ ["className", "class"],
1164
+ ["htmlFor", "for"],
1165
+ ["httpEquiv", "http-equiv"]
1166
+ ].forEach(([e, i]) => {
1167
+ n[e] = new t(
1168
+ e,
1169
+ s,
1170
+ !1,
1171
+ // mustUseProperty
1172
+ i,
1173
+ // attributeName
1174
+ null,
1175
+ // attributeNamespace
1176
+ !1,
1177
+ // sanitizeURL
1178
+ !1
1179
+ // removeEmptyString
1180
+ );
1181
+ }), ["contentEditable", "draggable", "spellCheck", "value"].forEach((e) => {
1182
+ n[e] = new t(
1183
+ e,
1184
+ f,
1185
+ !1,
1186
+ // mustUseProperty
1187
+ e.toLowerCase(),
1188
+ // attributeName
1189
+ null,
1190
+ // attributeNamespace
1191
+ !1,
1192
+ // sanitizeURL
1193
+ !1
1194
+ // removeEmptyString
1195
+ );
1196
+ }), [
1197
+ "autoReverse",
1198
+ "externalResourcesRequired",
1199
+ "focusable",
1200
+ "preserveAlpha"
1201
+ ].forEach((e) => {
1202
+ n[e] = new t(
1203
+ e,
1204
+ f,
1205
+ !1,
1206
+ // mustUseProperty
1207
+ e,
1208
+ // attributeName
1209
+ null,
1210
+ // attributeNamespace
1211
+ !1,
1212
+ // sanitizeURL
1213
+ !1
1214
+ // removeEmptyString
1215
+ );
1216
+ }), [
1217
+ "allowFullScreen",
1218
+ "async",
1219
+ // Note: there is a special case that prevents it from being written to the DOM
1220
+ // on the client side because the browsers are inconsistent. Instead we call focus().
1221
+ "autoFocus",
1222
+ "autoPlay",
1223
+ "controls",
1224
+ "default",
1225
+ "defer",
1226
+ "disabled",
1227
+ "disablePictureInPicture",
1228
+ "disableRemotePlayback",
1229
+ "formNoValidate",
1230
+ "hidden",
1231
+ "loop",
1232
+ "noModule",
1233
+ "noValidate",
1234
+ "open",
1235
+ "playsInline",
1236
+ "readOnly",
1237
+ "required",
1238
+ "reversed",
1239
+ "scoped",
1240
+ "seamless",
1241
+ // Microdata
1242
+ "itemScope"
1243
+ ].forEach((e) => {
1244
+ n[e] = new t(
1245
+ e,
1246
+ u,
1247
+ !1,
1248
+ // mustUseProperty
1249
+ e.toLowerCase(),
1250
+ // attributeName
1251
+ null,
1252
+ // attributeNamespace
1253
+ !1,
1254
+ // sanitizeURL
1255
+ !1
1256
+ // removeEmptyString
1257
+ );
1258
+ }), [
1259
+ "checked",
1260
+ // Note: `option.selected` is not updated if `select.multiple` is
1261
+ // disabled with `removeAttribute`. We have special logic for handling this.
1262
+ "multiple",
1263
+ "muted",
1264
+ "selected"
1265
+ // NOTE: if you add a camelCased prop to this list,
1266
+ // you'll need to set attributeName to name.toLowerCase()
1267
+ // instead in the assignment below.
1268
+ ].forEach((e) => {
1269
+ n[e] = new t(
1270
+ e,
1271
+ u,
1272
+ !0,
1273
+ // mustUseProperty
1274
+ e,
1275
+ // attributeName
1276
+ null,
1277
+ // attributeNamespace
1278
+ !1,
1279
+ // sanitizeURL
1280
+ !1
1281
+ // removeEmptyString
1282
+ );
1283
+ }), [
1284
+ "capture",
1285
+ "download"
1286
+ // NOTE: if you add a camelCased prop to this list,
1287
+ // you'll need to set attributeName to name.toLowerCase()
1288
+ // instead in the assignment below.
1289
+ ].forEach((e) => {
1290
+ n[e] = new t(
1291
+ e,
1292
+ d,
1293
+ !1,
1294
+ // mustUseProperty
1295
+ e,
1296
+ // attributeName
1297
+ null,
1298
+ // attributeNamespace
1299
+ !1,
1300
+ // sanitizeURL
1301
+ !1
1302
+ // removeEmptyString
1303
+ );
1304
+ }), [
1305
+ "cols",
1306
+ "rows",
1307
+ "size",
1308
+ "span"
1309
+ // NOTE: if you add a camelCased prop to this list,
1310
+ // you'll need to set attributeName to name.toLowerCase()
1311
+ // instead in the assignment below.
1312
+ ].forEach((e) => {
1313
+ n[e] = new t(
1314
+ e,
1315
+ T,
1316
+ !1,
1317
+ // mustUseProperty
1318
+ e,
1319
+ // attributeName
1320
+ null,
1321
+ // attributeNamespace
1322
+ !1,
1323
+ // sanitizeURL
1324
+ !1
1325
+ // removeEmptyString
1326
+ );
1327
+ }), ["rowSpan", "start"].forEach((e) => {
1328
+ n[e] = new t(
1329
+ e,
1330
+ p,
1331
+ !1,
1332
+ // mustUseProperty
1333
+ e.toLowerCase(),
1334
+ // attributeName
1335
+ null,
1336
+ // attributeNamespace
1337
+ !1,
1338
+ // sanitizeURL
1339
+ !1
1340
+ // removeEmptyString
1341
+ );
1342
+ });
1343
+ const c = /[\-\:]([a-z])/g, v = (e) => e[1].toUpperCase();
1344
+ [
1345
+ "accent-height",
1346
+ "alignment-baseline",
1347
+ "arabic-form",
1348
+ "baseline-shift",
1349
+ "cap-height",
1350
+ "clip-path",
1351
+ "clip-rule",
1352
+ "color-interpolation",
1353
+ "color-interpolation-filters",
1354
+ "color-profile",
1355
+ "color-rendering",
1356
+ "dominant-baseline",
1357
+ "enable-background",
1358
+ "fill-opacity",
1359
+ "fill-rule",
1360
+ "flood-color",
1361
+ "flood-opacity",
1362
+ "font-family",
1363
+ "font-size",
1364
+ "font-size-adjust",
1365
+ "font-stretch",
1366
+ "font-style",
1367
+ "font-variant",
1368
+ "font-weight",
1369
+ "glyph-name",
1370
+ "glyph-orientation-horizontal",
1371
+ "glyph-orientation-vertical",
1372
+ "horiz-adv-x",
1373
+ "horiz-origin-x",
1374
+ "image-rendering",
1375
+ "letter-spacing",
1376
+ "lighting-color",
1377
+ "marker-end",
1378
+ "marker-mid",
1379
+ "marker-start",
1380
+ "overline-position",
1381
+ "overline-thickness",
1382
+ "paint-order",
1383
+ "panose-1",
1384
+ "pointer-events",
1385
+ "rendering-intent",
1386
+ "shape-rendering",
1387
+ "stop-color",
1388
+ "stop-opacity",
1389
+ "strikethrough-position",
1390
+ "strikethrough-thickness",
1391
+ "stroke-dasharray",
1392
+ "stroke-dashoffset",
1393
+ "stroke-linecap",
1394
+ "stroke-linejoin",
1395
+ "stroke-miterlimit",
1396
+ "stroke-opacity",
1397
+ "stroke-width",
1398
+ "text-anchor",
1399
+ "text-decoration",
1400
+ "text-rendering",
1401
+ "underline-position",
1402
+ "underline-thickness",
1403
+ "unicode-bidi",
1404
+ "unicode-range",
1405
+ "units-per-em",
1406
+ "v-alphabetic",
1407
+ "v-hanging",
1408
+ "v-ideographic",
1409
+ "v-mathematical",
1410
+ "vector-effect",
1411
+ "vert-adv-y",
1412
+ "vert-origin-x",
1413
+ "vert-origin-y",
1414
+ "word-spacing",
1415
+ "writing-mode",
1416
+ "xmlns:xlink",
1417
+ "x-height"
1418
+ // NOTE: if you add a camelCased prop to this list,
1419
+ // you'll need to set attributeName to name.toLowerCase()
1420
+ // instead in the assignment below.
1421
+ ].forEach((e) => {
1422
+ const i = e.replace(c, v);
1423
+ n[i] = new t(
1424
+ i,
1425
+ s,
1426
+ !1,
1427
+ // mustUseProperty
1428
+ e,
1429
+ null,
1430
+ // attributeNamespace
1431
+ !1,
1432
+ // sanitizeURL
1433
+ !1
1434
+ // removeEmptyString
1435
+ );
1436
+ }), [
1437
+ "xlink:actuate",
1438
+ "xlink:arcrole",
1439
+ "xlink:role",
1440
+ "xlink:show",
1441
+ "xlink:title",
1442
+ "xlink:type"
1443
+ // NOTE: if you add a camelCased prop to this list,
1444
+ // you'll need to set attributeName to name.toLowerCase()
1445
+ // instead in the assignment below.
1446
+ ].forEach((e) => {
1447
+ const i = e.replace(c, v);
1448
+ n[i] = new t(
1449
+ i,
1450
+ s,
1451
+ !1,
1452
+ // mustUseProperty
1453
+ e,
1454
+ "http://www.w3.org/1999/xlink",
1455
+ !1,
1456
+ // sanitizeURL
1457
+ !1
1458
+ // removeEmptyString
1459
+ );
1460
+ }), [
1461
+ "xml:base",
1462
+ "xml:lang",
1463
+ "xml:space"
1464
+ // NOTE: if you add a camelCased prop to this list,
1465
+ // you'll need to set attributeName to name.toLowerCase()
1466
+ // instead in the assignment below.
1467
+ ].forEach((e) => {
1468
+ const i = e.replace(c, v);
1469
+ n[i] = new t(
1470
+ i,
1471
+ s,
1472
+ !1,
1473
+ // mustUseProperty
1474
+ e,
1475
+ "http://www.w3.org/XML/1998/namespace",
1476
+ !1,
1477
+ // sanitizeURL
1478
+ !1
1479
+ // removeEmptyString
1480
+ );
1481
+ }), ["tabIndex", "crossOrigin"].forEach((e) => {
1482
+ n[e] = new t(
1483
+ e,
1484
+ s,
1485
+ !1,
1486
+ // mustUseProperty
1487
+ e.toLowerCase(),
1488
+ // attributeName
1489
+ null,
1490
+ // attributeNamespace
1491
+ !1,
1492
+ // sanitizeURL
1493
+ !1
1494
+ // removeEmptyString
1495
+ );
1496
+ });
1497
+ const S = "xlinkHref";
1498
+ n[S] = new t(
1499
+ "xlinkHref",
1500
+ s,
1501
+ !1,
1502
+ // mustUseProperty
1503
+ "xlink:href",
1504
+ "http://www.w3.org/1999/xlink",
1505
+ !0,
1506
+ // sanitizeURL
1507
+ !1
1508
+ // removeEmptyString
1509
+ ), ["src", "href", "action", "formAction"].forEach((e) => {
1510
+ n[e] = new t(
1511
+ e,
1512
+ s,
1513
+ !1,
1514
+ // mustUseProperty
1515
+ e.toLowerCase(),
1516
+ // attributeName
1517
+ null,
1518
+ // attributeNamespace
1519
+ !0,
1520
+ // sanitizeURL
1521
+ !0
1522
+ // removeEmptyString
1523
+ );
1524
+ });
1525
+ const {
1526
+ CAMELCASE: A,
1527
+ SAME: y,
1528
+ possibleStandardNames: h
1529
+ } = Ae(), g = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD" + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", P = RegExp.prototype.test.bind(
1530
+ // eslint-disable-next-line no-misleading-character-class
1531
+ new RegExp("^(data|aria)-[" + g + "]*$")
1532
+ ), k = Object.keys(
1533
+ h
1534
+ ).reduce((e, i) => {
1535
+ const a = h[i];
1536
+ return a === y ? e[i] = i : a === A ? e[i.toLowerCase()] = i : e[i] = a, e;
1537
+ }, {});
1538
+ return N.BOOLEAN = u, N.BOOLEANISH_STRING = f, N.NUMERIC = p, N.OVERLOADED_BOOLEAN = d, N.POSITIVE_NUMERIC = T, N.RESERVED = r, N.STRING = s, N.getPropertyInfo = o, N.isCustomAttribute = P, N.possibleStandardNames = k, N;
1539
+ }
1540
+ var U = {}, j = {}, W, ae;
1541
+ function Oe() {
1542
+ if (ae) return W;
1543
+ ae = 1;
1544
+ var r = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, s = /\n/g, f = /^\s*/, u = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, d = /^:\s*/, p = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, T = /^[;\s]*/, o = /^\s+|\s+$/g, t = `
1545
+ `, n = "/", l = "*", c = "", v = "comment", S = "declaration";
1546
+ W = function(y, h) {
1547
+ if (typeof y != "string")
1548
+ throw new TypeError("First argument must be a string");
1549
+ if (!y) return [];
1550
+ h = h || {};
1551
+ var R = 1, g = 1;
1552
+ function P(C) {
1553
+ var E = C.match(s);
1554
+ E && (R += E.length);
1555
+ var I = C.lastIndexOf(t);
1556
+ g = ~I ? C.length - I : g + C.length;
1557
+ }
1558
+ function k() {
1559
+ var C = { line: R, column: g };
1560
+ return function(E) {
1561
+ return E.position = new e(C), _(), E;
1562
+ };
1563
+ }
1564
+ function e(C) {
1565
+ this.start = C, this.end = { line: R, column: g }, this.source = h.source;
1566
+ }
1567
+ e.prototype.content = y;
1568
+ function i(C) {
1569
+ var E = new Error(
1570
+ h.source + ":" + R + ":" + g + ": " + C
1571
+ );
1572
+ if (E.reason = C, E.filename = h.source, E.line = R, E.column = g, E.source = y, !h.silent) throw E;
1573
+ }
1574
+ function a(C) {
1575
+ var E = C.exec(y);
1576
+ if (E) {
1577
+ var I = E[0];
1578
+ return P(I), y = y.slice(I.length), E;
1579
+ }
1580
+ }
1581
+ function _() {
1582
+ a(f);
1583
+ }
1584
+ function b(C) {
1585
+ var E;
1586
+ for (C = C || []; E = O(); )
1587
+ E !== !1 && C.push(E);
1588
+ return C;
1589
+ }
1590
+ function O() {
1591
+ var C = k();
1592
+ if (!(n != y.charAt(0) || l != y.charAt(1))) {
1593
+ for (var E = 2; c != y.charAt(E) && (l != y.charAt(E) || n != y.charAt(E + 1)); )
1594
+ ++E;
1595
+ if (E += 2, c === y.charAt(E - 1))
1596
+ return i("End of comment missing");
1597
+ var I = y.slice(2, E - 2);
1598
+ return g += 2, P(I), y = y.slice(E), g += 2, C({
1599
+ type: v,
1600
+ comment: I
1601
+ });
1602
+ }
1603
+ }
1604
+ function w() {
1605
+ var C = k(), E = a(u);
1606
+ if (E) {
1607
+ if (O(), !a(d)) return i("property missing ':'");
1608
+ var I = a(p), _e = C({
1609
+ type: S,
1610
+ property: A(E[0].replace(r, c)),
1611
+ value: I ? A(I[0].replace(r, c)) : c
1612
+ });
1613
+ return a(T), _e;
1614
+ }
1615
+ }
1616
+ function M() {
1617
+ var C = [];
1618
+ b(C);
1619
+ for (var E; E = w(); )
1620
+ E !== !1 && (C.push(E), b(C));
1621
+ return C;
1622
+ }
1623
+ return _(), M();
1624
+ };
1625
+ function A(y) {
1626
+ return y ? y.replace(o, c) : c;
1627
+ }
1628
+ return W;
1629
+ }
1630
+ var oe;
1631
+ function Pe() {
1632
+ if (oe) return j;
1633
+ oe = 1;
1634
+ var r = j && j.__importDefault || function(u) {
1635
+ return u && u.__esModule ? u : { default: u };
1636
+ };
1637
+ Object.defineProperty(j, "__esModule", { value: !0 }), j.default = f;
1638
+ var s = r(Oe());
1639
+ function f(u, d) {
1640
+ var p = null;
1641
+ if (!u || typeof u != "string")
1642
+ return p;
1643
+ var T = (0, s.default)(u), o = typeof d == "function";
1644
+ return T.forEach(function(t) {
1645
+ if (t.type === "declaration") {
1646
+ var n = t.property, l = t.value;
1647
+ o ? d(n, l, t) : l && (p = p || {}, p[n] = l);
1648
+ }
1649
+ }), p;
1650
+ }
1651
+ return j;
1652
+ }
1653
+ var q = {}, le;
1654
+ function ke() {
1655
+ if (le) return q;
1656
+ le = 1, Object.defineProperty(q, "__esModule", { value: !0 }), q.camelCase = void 0;
1657
+ var r = /^--[a-zA-Z0-9_-]+$/, s = /-([a-z])/g, f = /^[^-]+$/, u = /^-(webkit|moz|ms|o|khtml)-/, d = /^-(ms)-/, p = function(n) {
1658
+ return !n || f.test(n) || r.test(n);
1659
+ }, T = function(n, l) {
1660
+ return l.toUpperCase();
1661
+ }, o = function(n, l) {
1662
+ return "".concat(l, "-");
1663
+ }, t = function(n, l) {
1664
+ return l === void 0 && (l = {}), p(n) ? n : (n = n.toLowerCase(), l.reactCompat ? n = n.replace(d, o) : n = n.replace(u, o), n.replace(s, T));
1665
+ };
1666
+ return q.camelCase = t, q;
1667
+ }
1668
+ var B, se;
1669
+ function we() {
1670
+ if (se) return B;
1671
+ se = 1;
1672
+ var r = B && B.__importDefault || function(d) {
1673
+ return d && d.__esModule ? d : { default: d };
1674
+ }, s = r(Pe()), f = ke();
1675
+ function u(d, p) {
1676
+ var T = {};
1677
+ return !d || typeof d != "string" || (0, s.default)(d, function(o, t) {
1678
+ o && t && (T[(0, f.camelCase)(o, p)] = t);
1679
+ }), T;
1680
+ }
1681
+ return u.default = u, B = u, B;
1682
+ }
1683
+ var ue;
1684
+ function Ee() {
1685
+ return ue || (ue = 1, function(r) {
1686
+ var s = U && U.__importDefault || function(l) {
1687
+ return l && l.__esModule ? l : { default: l };
1688
+ };
1689
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.returnFirstArg = r.canTextBeChildOfNode = r.ELEMENTS_WITH_NO_TEXT_CHILDREN = r.PRESERVE_CUSTOM_ATTRIBUTES = void 0, r.isCustomComponent = p, r.setStyleProp = o;
1690
+ var f = he, u = s(we()), d = /* @__PURE__ */ new Set([
1691
+ "annotation-xml",
1692
+ "color-profile",
1693
+ "font-face",
1694
+ "font-face-src",
1695
+ "font-face-uri",
1696
+ "font-face-format",
1697
+ "font-face-name",
1698
+ "missing-glyph"
1699
+ ]);
1700
+ function p(l, c) {
1701
+ return l.includes("-") ? !d.has(l) : !!(c && typeof c.is == "string");
1702
+ }
1703
+ var T = {
1704
+ reactCompat: !0
1705
+ };
1706
+ function o(l, c) {
1707
+ if (typeof l == "string") {
1708
+ if (!l.trim()) {
1709
+ c.style = {};
1710
+ return;
1711
+ }
1712
+ try {
1713
+ c.style = (0, u.default)(l, T);
1714
+ } catch {
1715
+ c.style = {};
1716
+ }
1717
+ }
1718
+ }
1719
+ r.PRESERVE_CUSTOM_ATTRIBUTES = Number(f.version.split(".")[0]) >= 16, r.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
1720
+ "tr",
1721
+ "tbody",
1722
+ "thead",
1723
+ "tfoot",
1724
+ "colgroup",
1725
+ "table",
1726
+ "head",
1727
+ "html",
1728
+ "frameset"
1729
+ ]);
1730
+ var t = function(l) {
1731
+ return !r.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(l.name);
1732
+ };
1733
+ r.canTextBeChildOfNode = t;
1734
+ var n = function(l) {
1735
+ return l;
1736
+ };
1737
+ r.returnFirstArg = n;
1738
+ }(U)), U;
1739
+ }
1740
+ var ce;
1741
+ function ye() {
1742
+ if (ce) return V;
1743
+ ce = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.default = p;
1744
+ var r = Se(), s = Ee(), f = ["checked", "value"], u = ["input", "select", "textarea"], d = {
1745
+ reset: !0,
1746
+ submit: !0
1747
+ };
1748
+ function p(o, t) {
1749
+ o === void 0 && (o = {});
1750
+ var n = {}, l = !!(o.type && d[o.type]);
1751
+ for (var c in o) {
1752
+ var v = o[c];
1753
+ if ((0, r.isCustomAttribute)(c)) {
1754
+ n[c] = v;
1755
+ continue;
1756
+ }
1757
+ var S = c.toLowerCase(), A = T(S);
1758
+ if (A) {
1759
+ var y = (0, r.getPropertyInfo)(A);
1760
+ switch (f.includes(A) && u.includes(t) && !l && (A = T("default" + S)), n[A] = v, y && y.type) {
1761
+ case r.BOOLEAN:
1762
+ n[A] = !0;
1763
+ break;
1764
+ case r.OVERLOADED_BOOLEAN:
1765
+ v === "" && (n[A] = !0);
1766
+ break;
1767
+ }
1768
+ continue;
1769
+ }
1770
+ s.PRESERVE_CUSTOM_ATTRIBUTES && (n[c] = v);
1771
+ }
1772
+ return (0, s.setStyleProp)(o.style, n), n;
1773
+ }
1774
+ function T(o) {
1775
+ return r.possibleStandardNames[o];
1776
+ }
1777
+ return V;
1778
+ }
1779
+ var H = {}, fe;
1780
+ function Ne() {
1781
+ if (fe) return H;
1782
+ fe = 1;
1783
+ var r = H && H.__importDefault || function(o) {
1784
+ return o && o.__esModule ? o : { default: o };
1785
+ };
1786
+ Object.defineProperty(H, "__esModule", { value: !0 }), H.default = p;
1787
+ var s = he, f = r(ye()), u = Ee(), d = {
1788
+ cloneElement: s.cloneElement,
1789
+ createElement: s.createElement,
1790
+ isValidElement: s.isValidElement
1791
+ };
1792
+ function p(o, t) {
1793
+ t === void 0 && (t = {});
1794
+ for (var n = [], l = typeof t.replace == "function", c = t.transform || u.returnFirstArg, v = t.library || d, S = v.cloneElement, A = v.createElement, y = v.isValidElement, h = o.length, R = 0; R < h; R++) {
1795
+ var g = o[R];
1796
+ if (l) {
1797
+ var P = t.replace(g, R);
1798
+ if (y(P)) {
1799
+ h > 1 && (P = S(P, {
1800
+ key: P.key || R
1801
+ })), n.push(c(P, g, R));
1802
+ continue;
1803
+ }
1804
+ }
1805
+ if (g.type === "text") {
1806
+ var k = !g.data.trim().length;
1807
+ if (k && g.parent && !(0, u.canTextBeChildOfNode)(g.parent) || t.trim && k)
1808
+ continue;
1809
+ n.push(c(g.data, g, R));
1810
+ continue;
1811
+ }
1812
+ var e = g, i = {};
1813
+ T(e) ? ((0, u.setStyleProp)(e.attribs.style, e.attribs), i = e.attribs) : e.attribs && (i = (0, f.default)(e.attribs, e.name));
1814
+ var a = void 0;
1815
+ switch (g.type) {
1816
+ case "script":
1817
+ case "style":
1818
+ g.children[0] && (i.dangerouslySetInnerHTML = {
1819
+ __html: g.children[0].data
1820
+ });
1821
+ break;
1822
+ case "tag":
1823
+ g.name === "textarea" && g.children[0] ? i.defaultValue = g.children[0].data : g.children && g.children.length && (a = p(g.children, t));
1824
+ break;
1825
+ // skip all other cases (e.g., comment)
1826
+ default:
1827
+ continue;
1828
+ }
1829
+ h > 1 && (i.key = R), n.push(c(A(g.name, i, a), g, R));
1830
+ }
1831
+ return n.length === 1 ? n[0] : n;
1832
+ }
1833
+ function T(o) {
1834
+ return u.PRESERVE_CUSTOM_ATTRIBUTES && o.type === "tag" && (0, u.isCustomComponent)(o.name, o.attribs);
1835
+ }
1836
+ return H;
1837
+ }
1838
+ var de;
1839
+ function Ie() {
1840
+ return de || (de = 1, function(r) {
1841
+ var s = F && F.__importDefault || function(t) {
1842
+ return t && t.__esModule ? t : { default: t };
1843
+ };
1844
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.htmlToDOM = r.domToReact = r.attributesToProps = r.Text = r.ProcessingInstruction = r.Element = r.Comment = void 0, r.default = o;
1845
+ var f = s(Ce());
1846
+ r.htmlToDOM = f.default;
1847
+ var u = s(ye());
1848
+ r.attributesToProps = u.default;
1849
+ var d = s(Ne());
1850
+ r.domToReact = d.default;
1851
+ var p = /* @__PURE__ */ me();
1852
+ Object.defineProperty(r, "Comment", { enumerable: !0, get: function() {
1853
+ return p.Comment;
1854
+ } }), Object.defineProperty(r, "Element", { enumerable: !0, get: function() {
1855
+ return p.Element;
1856
+ } }), Object.defineProperty(r, "ProcessingInstruction", { enumerable: !0, get: function() {
1857
+ return p.ProcessingInstruction;
1858
+ } }), Object.defineProperty(r, "Text", { enumerable: !0, get: function() {
1859
+ return p.Text;
1860
+ } });
1861
+ var T = { lowerCaseAttributeNames: !1 };
1862
+ function o(t, n) {
1863
+ if (typeof t != "string")
1864
+ throw new TypeError("First argument must be a string");
1865
+ return t ? (0, d.default)((0, f.default)(t, (n == null ? void 0 : n.htmlparser2) || T), n) : [];
1866
+ }
1867
+ }(F)), F;
1868
+ }
1869
+ var De = Ie();
1870
+ const pe = /* @__PURE__ */ Te(De), Le = pe.default || pe;
1871
+ export {
1872
+ Le as p
1873
+ };