@planningcenter/tapestry 4.6.0-rc.6 → 4.6.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 (54) hide show
  1. package/dist/components/DataTable/ActiveFilters.d.ts +6 -2
  2. package/dist/components/DataTable/ActiveFilters.d.ts.map +1 -1
  3. package/dist/components/DataTable/ActiveFilters.js +24 -6
  4. package/dist/components/DataTable/ActiveFilters.js.map +1 -1
  5. package/dist/components/DataTable/DataTable.d.ts +4 -3
  6. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTable.js +2 -2
  8. package/dist/components/DataTable/DataTable.js.map +1 -1
  9. package/dist/components/DataTable/FilterTypes.d.ts +2 -2
  10. package/dist/components/DataTable/FilterTypes.d.ts.map +1 -1
  11. package/dist/components/DataTable/OperatorSelect.d.ts +9 -0
  12. package/dist/components/DataTable/OperatorSelect.d.ts.map +1 -0
  13. package/dist/components/DataTable/OperatorSelect.js +33 -0
  14. package/dist/components/DataTable/OperatorSelect.js.map +1 -0
  15. package/dist/components/button/Button.d.ts +12 -5
  16. package/dist/components/button/Button.d.ts.map +1 -1
  17. package/dist/components/button/Button.js +0 -1
  18. package/dist/components/button/Button.js.map +1 -1
  19. package/dist/components/field/Field.d.ts +3 -1
  20. package/dist/components/field/Field.d.ts.map +1 -1
  21. package/dist/components/field/Field.js +2 -2
  22. package/dist/components/field/Field.js.map +1 -1
  23. package/dist/components/input/Input.d.ts +12 -3
  24. package/dist/components/input/Input.d.ts.map +1 -1
  25. package/dist/components/input/Input.js +2 -2
  26. package/dist/components/input/Input.js.map +1 -1
  27. package/dist/components/input-text-base/InputTextBase.d.ts +3 -1
  28. package/dist/components/input-text-base/InputTextBase.d.ts.map +1 -1
  29. package/dist/components/input-text-base/InputTextBase.js +2 -2
  30. package/dist/components/input-text-base/InputTextBase.js.map +1 -1
  31. package/dist/components/search-input/SearchInput.d.ts +2 -0
  32. package/dist/components/search-input/SearchInput.d.ts.map +1 -1
  33. package/dist/components/search-input/SearchInput.js +2 -2
  34. package/dist/components/search-input/SearchInput.js.map +1 -1
  35. package/dist/components/select/Select.d.ts +2 -0
  36. package/dist/components/select/Select.d.ts.map +1 -1
  37. package/dist/components/select/Select.js +2 -2
  38. package/dist/components/select/Select.js.map +1 -1
  39. package/dist/index.css +1 -1
  40. package/dist/index.css.map +1 -1
  41. package/dist/packages/tapestry-render/dist/{buildComponent-DDhu-82j.js → buildComponent-C5PfOgH9.js} +343 -351
  42. package/dist/packages/tapestry-render/dist/buildComponent-C5PfOgH9.js.map +1 -0
  43. package/dist/packages/tapestry-render/dist/index.js +2 -2
  44. package/dist/packages/tapestry-render/dist/index.js.map +1 -1
  45. package/dist/packages/tapestry-render/dist/legacy.js +2 -2
  46. package/dist/packages/tapestry-render/dist/legacy.js.map +1 -1
  47. package/dist/reactRender.css +958 -958
  48. package/dist/reactRender.css.map +1 -1
  49. package/dist/reactRenderLegacy.css +958 -958
  50. package/dist/reactRenderLegacy.css.map +1 -1
  51. package/dist/unstable.css +4219 -4219
  52. package/dist/unstable.css.map +1 -1
  53. package/package.json +3 -3
  54. package/dist/packages/tapestry-render/dist/buildComponent-DDhu-82j.js.map +0 -1
@@ -2,47 +2,47 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import React from 'react';
3
3
  import { getComponent as o } from './registry.js';
4
4
 
5
- function Ae(t) {
5
+ function Se(t) {
6
6
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7
7
  }
8
8
  var F = {}, L = {}, z = {}, D = {}, x = {}, X = {}, J;
9
- function Ee() {
9
+ function ve() {
10
10
  return J || (J = 1, (function(t) {
11
11
  Object.defineProperty(t, "__esModule", { value: true }), t.Doctype = t.CDATA = t.Tag = t.Style = t.Script = t.Comment = t.Directive = t.Text = t.Root = t.isTag = t.ElementType = void 0;
12
12
  var o;
13
- (function(l) {
14
- l.Root = "root", l.Text = "text", l.Directive = "directive", l.Comment = "comment", l.Script = "script", l.Style = "style", l.Tag = "tag", l.CDATA = "cdata", l.Doctype = "doctype";
13
+ (function(s) {
14
+ s.Root = "root", s.Text = "text", s.Directive = "directive", s.Comment = "comment", s.Script = "script", s.Style = "style", s.Tag = "tag", s.CDATA = "cdata", s.Doctype = "doctype";
15
15
  })(o = t.ElementType || (t.ElementType = {}));
16
- function u(l) {
17
- return l.type === o.Tag || l.type === o.Script || l.type === o.Style;
16
+ function u(s) {
17
+ return s.type === o.Tag || s.type === o.Script || s.type === o.Style;
18
18
  }
19
19
  t.isTag = u, t.Root = o.Root, t.Text = o.Text, t.Directive = o.Directive, t.Comment = o.Comment, t.Script = o.Script, t.Style = o.Style, t.Tag = o.Tag, t.CDATA = o.CDATA, t.Doctype = o.Doctype;
20
20
  })(X)), X;
21
21
  }
22
- var v = {}, Q;
23
- function $() {
24
- if (Q) return v;
25
- Q = 1;
22
+ var v = {}, K;
23
+ function Q() {
24
+ if (K) return v;
25
+ K = 1;
26
26
  var t = v && v.__extends || /* @__PURE__ */ (function() {
27
27
  var e = function(i, a) {
28
- return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, b) {
29
- _.__proto__ = b;
30
- } || function(_, b) {
31
- for (var O in b) Object.prototype.hasOwnProperty.call(b, O) && (_[O] = b[O]);
28
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, b) {
29
+ T.__proto__ = b;
30
+ } || function(T, b) {
31
+ for (var O in b) Object.prototype.hasOwnProperty.call(b, O) && (T[O] = b[O]);
32
32
  }, e(i, a);
33
33
  };
34
34
  return function(i, a) {
35
35
  if (typeof a != "function" && a !== null)
36
36
  throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
37
37
  e(i, a);
38
- function _() {
38
+ function T() {
39
39
  this.constructor = i;
40
40
  }
41
- i.prototype = a === null ? Object.create(a) : (_.prototype = a.prototype, new _());
41
+ i.prototype = a === null ? Object.create(a) : (T.prototype = a.prototype, new T());
42
42
  };
43
43
  })(), o = v && v.__assign || function() {
44
44
  return o = Object.assign || function(e) {
45
- for (var i, a = 1, _ = arguments.length; a < _; a++) {
45
+ for (var i, a = 1, T = arguments.length; a < T; a++) {
46
46
  i = arguments[a];
47
47
  for (var b in i) Object.prototype.hasOwnProperty.call(i, b) && (e[b] = i[b]);
48
48
  }
@@ -50,7 +50,7 @@ function $() {
50
50
  }, o.apply(this, arguments);
51
51
  };
52
52
  Object.defineProperty(v, "__esModule", { value: true }), v.cloneNode = v.hasChildren = v.isDocument = v.isDirective = v.isComment = v.isText = v.isCDATA = v.isTag = v.Element = v.Document = v.CDATA = v.NodeWithChildren = v.ProcessingInstruction = v.Comment = v.Text = v.DataNode = v.Node = void 0;
53
- var u = /* @__PURE__ */ Ee(), l = (
53
+ var u = /* @__PURE__ */ ve(), s = (
54
54
  /** @class */
55
55
  (function() {
56
56
  function e() {
@@ -101,14 +101,14 @@ function $() {
101
101
  }, e;
102
102
  })()
103
103
  );
104
- v.Node = l;
105
- var f = (
104
+ v.Node = s;
105
+ var d = (
106
106
  /** @class */
107
107
  (function(e) {
108
108
  t(i, e);
109
109
  function i(a) {
110
- var _ = e.call(this) || this;
111
- return _.data = a, _;
110
+ var T = e.call(this) || this;
111
+ return T.data = a, T;
112
112
  }
113
113
  return Object.defineProperty(i.prototype, "nodeValue", {
114
114
  /**
@@ -124,9 +124,9 @@ function $() {
124
124
  enumerable: false,
125
125
  configurable: true
126
126
  }), i;
127
- })(l)
127
+ })(s)
128
128
  );
129
- v.DataNode = f;
129
+ v.DataNode = d;
130
130
  var p = (
131
131
  /** @class */
132
132
  (function(e) {
@@ -142,10 +142,10 @@ function $() {
142
142
  enumerable: false,
143
143
  configurable: true
144
144
  }), i;
145
- })(f)
145
+ })(d)
146
146
  );
147
147
  v.Text = p;
148
- var T = (
148
+ var y = (
149
149
  /** @class */
150
150
  (function(e) {
151
151
  t(i, e);
@@ -160,15 +160,15 @@ function $() {
160
160
  enumerable: false,
161
161
  configurable: true
162
162
  }), i;
163
- })(f)
163
+ })(d)
164
164
  );
165
- v.Comment = T;
166
- var s = (
165
+ v.Comment = y;
166
+ var l = (
167
167
  /** @class */
168
168
  (function(e) {
169
169
  t(i, e);
170
- function i(a, _) {
171
- var b = e.call(this, _) || this;
170
+ function i(a, T) {
171
+ var b = e.call(this, T) || this;
172
172
  return b.name = a, b.type = u.ElementType.Directive, b;
173
173
  }
174
174
  return Object.defineProperty(i.prototype, "nodeType", {
@@ -178,16 +178,16 @@ function $() {
178
178
  enumerable: false,
179
179
  configurable: true
180
180
  }), i;
181
- })(f)
181
+ })(d)
182
182
  );
183
- v.ProcessingInstruction = s;
183
+ v.ProcessingInstruction = l;
184
184
  var r = (
185
185
  /** @class */
186
186
  (function(e) {
187
187
  t(i, e);
188
188
  function i(a) {
189
- var _ = e.call(this) || this;
190
- return _.children = a, _;
189
+ var T = e.call(this) || this;
190
+ return T.children = a, T;
191
191
  }
192
192
  return Object.defineProperty(i.prototype, "firstChild", {
193
193
  // Aliases
@@ -219,7 +219,7 @@ function $() {
219
219
  enumerable: false,
220
220
  configurable: true
221
221
  }), i;
222
- })(l)
222
+ })(s)
223
223
  );
224
224
  v.NodeWithChildren = r;
225
225
  var n = (
@@ -258,14 +258,14 @@ function $() {
258
258
  })(r)
259
259
  );
260
260
  v.Document = c;
261
- var d = (
261
+ var f = (
262
262
  /** @class */
263
263
  (function(e) {
264
264
  t(i, e);
265
- function i(a, _, b, O) {
265
+ function i(a, T, b, O) {
266
266
  b === void 0 && (b = []), O === void 0 && (O = a === "script" ? u.ElementType.Script : a === "style" ? u.ElementType.Style : u.ElementType.Tag);
267
- var k = e.call(this, b) || this;
268
- return k.name = a, k.attribs = _, k.type = O, k;
267
+ var w = e.call(this, b) || this;
268
+ return w.name = a, w.attribs = T, w.type = O, w;
269
269
  }
270
270
  return Object.defineProperty(i.prototype, "nodeType", {
271
271
  get: function() {
@@ -290,13 +290,13 @@ function $() {
290
290
  }), Object.defineProperty(i.prototype, "attributes", {
291
291
  get: function() {
292
292
  var a = this;
293
- return Object.keys(this.attribs).map(function(_) {
293
+ return Object.keys(this.attribs).map(function(T) {
294
294
  var b, O;
295
295
  return {
296
- name: _,
297
- value: a.attribs[_],
298
- namespace: (b = a["x-attribsNamespace"]) === null || b === void 0 ? void 0 : b[_],
299
- prefix: (O = a["x-attribsPrefix"]) === null || O === void 0 ? void 0 : O[_]
296
+ name: T,
297
+ value: a.attribs[T],
298
+ namespace: (b = a["x-attribsNamespace"]) === null || b === void 0 ? void 0 : b[T],
299
+ prefix: (O = a["x-attribsPrefix"]) === null || O === void 0 ? void 0 : O[T]
300
300
  };
301
301
  });
302
302
  },
@@ -305,7 +305,7 @@ function $() {
305
305
  }), i;
306
306
  })(r)
307
307
  );
308
- v.Element = d;
308
+ v.Element = f;
309
309
  function m(e) {
310
310
  return (0, u.isTag)(e);
311
311
  }
@@ -318,10 +318,10 @@ function $() {
318
318
  return e.type === u.ElementType.Text;
319
319
  }
320
320
  v.isText = A;
321
- function y(e) {
321
+ function _(e) {
322
322
  return e.type === u.ElementType.Comment;
323
323
  }
324
- v.isComment = y;
324
+ v.isComment = _;
325
325
  function h(e) {
326
326
  return e.type === u.ElementType.Directive;
327
327
  }
@@ -339,124 +339,124 @@ function $() {
339
339
  var a;
340
340
  if (A(e))
341
341
  a = new p(e.data);
342
- else if (y(e))
343
- a = new T(e.data);
342
+ else if (_(e))
343
+ a = new y(e.data);
344
344
  else if (m(e)) {
345
- var _ = i ? w(e.children) : [], b = new d(e.name, o({}, e.attribs), _);
346
- _.forEach(function(C) {
345
+ var T = i ? k(e.children) : [], b = new f(e.name, o({}, e.attribs), T);
346
+ T.forEach(function(C) {
347
347
  return C.parent = b;
348
348
  }), e.namespace != null && (b.namespace = e.namespace), e["x-attribsNamespace"] && (b["x-attribsNamespace"] = o({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (b["x-attribsPrefix"] = o({}, e["x-attribsPrefix"])), a = b;
349
349
  } else if (S(e)) {
350
- var _ = i ? w(e.children) : [], O = new n(_);
351
- _.forEach(function(E) {
350
+ var T = i ? k(e.children) : [], O = new n(T);
351
+ T.forEach(function(E) {
352
352
  return E.parent = O;
353
353
  }), a = O;
354
354
  } else if (R(e)) {
355
- var _ = i ? w(e.children) : [], k = new c(_);
356
- _.forEach(function(E) {
357
- return E.parent = k;
358
- }), e["x-mode"] && (k["x-mode"] = e["x-mode"]), a = k;
355
+ var T = i ? k(e.children) : [], w = new c(T);
356
+ T.forEach(function(E) {
357
+ return E.parent = w;
358
+ }), e["x-mode"] && (w["x-mode"] = e["x-mode"]), a = w;
359
359
  } else if (h(e)) {
360
- var M = new s(e.name, e.data);
360
+ var M = new l(e.name, e.data);
361
361
  e["x-name"] != null && (M["x-name"] = e["x-name"], M["x-publicId"] = e["x-publicId"], M["x-systemId"] = e["x-systemId"]), a = M;
362
362
  } else
363
363
  throw new Error("Not implemented yet: ".concat(e.type));
364
364
  return a.startIndex = e.startIndex, a.endIndex = e.endIndex, e.sourceCodeLocation != null && (a.sourceCodeLocation = e.sourceCodeLocation), a;
365
365
  }
366
366
  v.cloneNode = P;
367
- function w(e) {
368
- for (var i = e.map(function(_) {
369
- return P(_, true);
367
+ function k(e) {
368
+ for (var i = e.map(function(T) {
369
+ return P(T, true);
370
370
  }), a = 1; a < i.length; a++)
371
371
  i[a].prev = i[a - 1], i[a - 1].next = i[a];
372
372
  return i;
373
373
  }
374
374
  return v;
375
375
  }
376
- var ee;
377
- function ye() {
378
- return ee || (ee = 1, (function(t) {
379
- var o = x && x.__createBinding || (Object.create ? (function(s, r, n, c) {
376
+ var $;
377
+ function ge() {
378
+ return $ || ($ = 1, (function(t) {
379
+ var o = x && x.__createBinding || (Object.create ? (function(l, r, n, c) {
380
380
  c === void 0 && (c = n);
381
- var d = Object.getOwnPropertyDescriptor(r, n);
382
- (!d || ("get" in d ? !r.__esModule : d.writable || d.configurable)) && (d = { enumerable: true, get: function() {
381
+ var f = Object.getOwnPropertyDescriptor(r, n);
382
+ (!f || ("get" in f ? !r.__esModule : f.writable || f.configurable)) && (f = { enumerable: true, get: function() {
383
383
  return r[n];
384
- } }), Object.defineProperty(s, c, d);
385
- }) : (function(s, r, n, c) {
386
- c === void 0 && (c = n), s[c] = r[n];
387
- })), u = x && x.__exportStar || function(s, r) {
388
- for (var n in s) n !== "default" && !Object.prototype.hasOwnProperty.call(r, n) && o(r, s, n);
384
+ } }), Object.defineProperty(l, c, f);
385
+ }) : (function(l, r, n, c) {
386
+ c === void 0 && (c = n), l[c] = r[n];
387
+ })), u = x && x.__exportStar || function(l, r) {
388
+ for (var n in l) n !== "default" && !Object.prototype.hasOwnProperty.call(r, n) && o(r, l, n);
389
389
  };
390
390
  Object.defineProperty(t, "__esModule", { value: true }), t.DomHandler = void 0;
391
- var l = /* @__PURE__ */ Ee(), f = /* @__PURE__ */ $();
392
- u(/* @__PURE__ */ $(), t);
391
+ var s = /* @__PURE__ */ ve(), d = /* @__PURE__ */ Q();
392
+ u(/* @__PURE__ */ Q(), t);
393
393
  var p = {
394
394
  withStartIndices: false,
395
395
  withEndIndices: false,
396
396
  xmlMode: false
397
- }, T = (
397
+ }, y = (
398
398
  /** @class */
399
399
  (function() {
400
- function s(r, n, c) {
401
- this.dom = [], this.root = new f.Document(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof n == "function" && (c = n, n = p), typeof r == "object" && (n = r, r = void 0), this.callback = r ?? null, this.options = n ?? p, this.elementCB = c ?? null;
400
+ function l(r, n, c) {
401
+ this.dom = [], this.root = new d.Document(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof n == "function" && (c = n, n = p), typeof r == "object" && (n = r, r = void 0), this.callback = r ?? null, this.options = n ?? p, this.elementCB = c ?? null;
402
402
  }
403
- return s.prototype.onparserinit = function(r) {
403
+ return l.prototype.onparserinit = function(r) {
404
404
  this.parser = r;
405
- }, s.prototype.onreset = function() {
406
- this.dom = [], this.root = new f.Document(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
407
- }, s.prototype.onend = function() {
405
+ }, l.prototype.onreset = function() {
406
+ this.dom = [], this.root = new d.Document(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
407
+ }, l.prototype.onend = function() {
408
408
  this.done || (this.done = true, this.parser = null, this.handleCallback(null));
409
- }, s.prototype.onerror = function(r) {
409
+ }, l.prototype.onerror = function(r) {
410
410
  this.handleCallback(r);
411
- }, s.prototype.onclosetag = function() {
411
+ }, l.prototype.onclosetag = function() {
412
412
  this.lastNode = null;
413
413
  var r = this.tagStack.pop();
414
414
  this.options.withEndIndices && (r.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(r);
415
- }, s.prototype.onopentag = function(r, n) {
416
- var c = this.options.xmlMode ? l.ElementType.Tag : void 0, d = new f.Element(r, n, void 0, c);
417
- this.addNode(d), this.tagStack.push(d);
418
- }, s.prototype.ontext = function(r) {
415
+ }, l.prototype.onopentag = function(r, n) {
416
+ var c = this.options.xmlMode ? s.ElementType.Tag : void 0, f = new d.Element(r, n, void 0, c);
417
+ this.addNode(f), this.tagStack.push(f);
418
+ }, l.prototype.ontext = function(r) {
419
419
  var n = this.lastNode;
420
- if (n && n.type === l.ElementType.Text)
420
+ if (n && n.type === s.ElementType.Text)
421
421
  n.data += r, this.options.withEndIndices && (n.endIndex = this.parser.endIndex);
422
422
  else {
423
- var c = new f.Text(r);
423
+ var c = new d.Text(r);
424
424
  this.addNode(c), this.lastNode = c;
425
425
  }
426
- }, s.prototype.oncomment = function(r) {
427
- if (this.lastNode && this.lastNode.type === l.ElementType.Comment) {
426
+ }, l.prototype.oncomment = function(r) {
427
+ if (this.lastNode && this.lastNode.type === s.ElementType.Comment) {
428
428
  this.lastNode.data += r;
429
429
  return;
430
430
  }
431
- var n = new f.Comment(r);
431
+ var n = new d.Comment(r);
432
432
  this.addNode(n), this.lastNode = n;
433
- }, s.prototype.oncommentend = function() {
433
+ }, l.prototype.oncommentend = function() {
434
434
  this.lastNode = null;
435
- }, s.prototype.oncdatastart = function() {
436
- var r = new f.Text(""), n = new f.CDATA([r]);
435
+ }, l.prototype.oncdatastart = function() {
436
+ var r = new d.Text(""), n = new d.CDATA([r]);
437
437
  this.addNode(n), r.parent = n, this.lastNode = r;
438
- }, s.prototype.oncdataend = function() {
438
+ }, l.prototype.oncdataend = function() {
439
439
  this.lastNode = null;
440
- }, s.prototype.onprocessinginstruction = function(r, n) {
441
- var c = new f.ProcessingInstruction(r, n);
440
+ }, l.prototype.onprocessinginstruction = function(r, n) {
441
+ var c = new d.ProcessingInstruction(r, n);
442
442
  this.addNode(c);
443
- }, s.prototype.handleCallback = function(r) {
443
+ }, l.prototype.handleCallback = function(r) {
444
444
  if (typeof this.callback == "function")
445
445
  this.callback(r, this.dom);
446
446
  else if (r)
447
447
  throw r;
448
- }, s.prototype.addNode = function(r) {
448
+ }, l.prototype.addNode = function(r) {
449
449
  var n = this.tagStack[this.tagStack.length - 1], c = n.children[n.children.length - 1];
450
450
  this.options.withStartIndices && (r.startIndex = this.parser.startIndex), this.options.withEndIndices && (r.endIndex = this.parser.endIndex), n.children.push(r), c && (r.prev = c, c.next = r), r.parent = n, this.lastNode = null;
451
- }, s;
451
+ }, l;
452
452
  })()
453
453
  );
454
- t.DomHandler = T, t.default = T;
454
+ t.DomHandler = y, t.default = y;
455
455
  })(x)), x;
456
456
  }
457
- var W = {}, te;
458
- function Se() {
459
- return te || (te = 1, (function(t) {
457
+ var W = {}, ee;
458
+ function Oe() {
459
+ return ee || (ee = 1, (function(t) {
460
460
  Object.defineProperty(t, "__esModule", { value: true }), t.CARRIAGE_RETURN_PLACEHOLDER_REGEX = t.CARRIAGE_RETURN_PLACEHOLDER = t.CARRIAGE_RETURN_REGEX = t.CARRIAGE_RETURN = t.CASE_SENSITIVE_TAG_NAMES_MAP = t.CASE_SENSITIVE_TAG_NAMES = void 0, t.CASE_SENSITIVE_TAG_NAMES = [
461
461
  "animateMotion",
462
462
  "animateTransform",
@@ -494,22 +494,22 @@ function Se() {
494
494
  }, {}), t.CARRIAGE_RETURN = "\r", t.CARRIAGE_RETURN_REGEX = new RegExp(t.CARRIAGE_RETURN, "g"), t.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(), "__"), t.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER, "g");
495
495
  })(W)), W;
496
496
  }
497
- var re;
498
- function _e() {
499
- if (re) return D;
500
- re = 1, Object.defineProperty(D, "__esModule", { value: true }), D.formatAttributes = l, D.escapeSpecialCharacters = p, D.revertEscapedCharacters = T, D.formatDOM = s;
501
- var t = /* @__PURE__ */ ye(), o = Se();
497
+ var te;
498
+ function Ee() {
499
+ if (te) return D;
500
+ te = 1, Object.defineProperty(D, "__esModule", { value: true }), D.formatAttributes = s, D.escapeSpecialCharacters = p, D.revertEscapedCharacters = y, D.formatDOM = l;
501
+ var t = /* @__PURE__ */ ge(), o = Oe();
502
502
  function u(r) {
503
503
  return o.CASE_SENSITIVE_TAG_NAMES_MAP[r];
504
504
  }
505
- function l(r) {
506
- for (var n = {}, c = 0, d = r.length; c < d; c++) {
505
+ function s(r) {
506
+ for (var n = {}, c = 0, f = r.length; c < f; c++) {
507
507
  var m = r[c];
508
508
  n[m.name] = m.value;
509
509
  }
510
510
  return n;
511
511
  }
512
- function f(r) {
512
+ function d(r) {
513
513
  r = r.toLowerCase();
514
514
  var n = u(r);
515
515
  return n || r;
@@ -517,57 +517,57 @@ function _e() {
517
517
  function p(r) {
518
518
  return r.replace(o.CARRIAGE_RETURN_REGEX, o.CARRIAGE_RETURN_PLACEHOLDER);
519
519
  }
520
- function T(r) {
520
+ function y(r) {
521
521
  return r.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX, o.CARRIAGE_RETURN);
522
522
  }
523
- function s(r, n, c) {
523
+ function l(r, n, c) {
524
524
  n === void 0 && (n = null);
525
- for (var d = [], m, S = 0, A = r.length; S < A; S++) {
526
- var y = r[S];
527
- switch (y.nodeType) {
525
+ for (var f = [], m, S = 0, A = r.length; S < A; S++) {
526
+ var _ = r[S];
527
+ switch (_.nodeType) {
528
528
  case 1: {
529
- var h = f(y.nodeName);
530
- m = new t.Element(h, l(y.attributes)), m.children = s(
529
+ var h = d(_.nodeName);
530
+ m = new t.Element(h, s(_.attributes)), m.children = l(
531
531
  // template children are on content
532
- h === "template" ? y.content.childNodes : y.childNodes,
532
+ h === "template" ? _.content.childNodes : _.childNodes,
533
533
  m
534
534
  );
535
535
  break;
536
536
  }
537
537
  case 3:
538
- m = new t.Text(T(y.nodeValue));
538
+ m = new t.Text(y(_.nodeValue));
539
539
  break;
540
540
  case 8:
541
- m = new t.Comment(y.nodeValue);
541
+ m = new t.Comment(_.nodeValue);
542
542
  break;
543
543
  default:
544
544
  continue;
545
545
  }
546
- var R = d[S - 1] || null;
547
- R && (R.next = m), m.parent = n, m.prev = R, m.next = null, d.push(m);
546
+ var R = f[S - 1] || null;
547
+ R && (R.next = m), m.parent = n, m.prev = R, m.next = null, f.push(m);
548
548
  }
549
- return c && (m = new t.ProcessingInstruction(c.substring(0, c.indexOf(" ")).toLowerCase(), c), m.next = d[0] || null, m.parent = n, d.unshift(m), d[1] && (d[1].prev = d[0])), d;
549
+ return c && (m = new t.ProcessingInstruction(c.substring(0, c.indexOf(" ")).toLowerCase(), c), m.next = f[0] || null, m.parent = n, f.unshift(m), f[1] && (f[1].prev = f[0])), f;
550
550
  }
551
551
  return D;
552
552
  }
553
- var ne;
554
- function Oe() {
555
- if (ne) return z;
556
- ne = 1, Object.defineProperty(z, "__esModule", { value: true }), z.default = y;
557
- var t = _e(), o = "html", u = "head", l = "body", f = /<([a-zA-Z]+[0-9]?)/, p = /<head[^]*>/i, T = /<body[^]*>/i, s = function(h, R) {
553
+ var re;
554
+ function Pe() {
555
+ if (re) return z;
556
+ re = 1, Object.defineProperty(z, "__esModule", { value: true }), z.default = _;
557
+ var t = Ee(), o = "html", u = "head", s = "body", d = /<([a-zA-Z]+[0-9]?)/, p = /<head[^]*>/i, y = /<body[^]*>/i, l = function(h, R) {
558
558
  throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
559
559
  }, r = function(h, R) {
560
560
  throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
561
561
  }, n = typeof window == "object" && window.DOMParser;
562
562
  if (typeof n == "function") {
563
- var c = new n(), d = "text/html";
563
+ var c = new n(), f = "text/html";
564
564
  r = function(h, R) {
565
- return R && (h = "<".concat(R, ">").concat(h, "</").concat(R, ">")), c.parseFromString(h, d);
566
- }, s = r;
565
+ return R && (h = "<".concat(R, ">").concat(h, "</").concat(R, ">")), c.parseFromString(h, f);
566
+ }, l = r;
567
567
  }
568
568
  if (typeof document == "object" && document.implementation) {
569
569
  var m = document.implementation.createHTMLDocument();
570
- s = function(h, R) {
570
+ l = function(h, R) {
571
571
  if (R) {
572
572
  var g = m.documentElement.querySelector(R);
573
573
  return g && (g.innerHTML = h), m;
@@ -579,62 +579,62 @@ function Oe() {
579
579
  S && S.content && (A = function(h) {
580
580
  return S.innerHTML = h, S.content.childNodes;
581
581
  });
582
- function y(h) {
582
+ function _(h) {
583
583
  var R, g;
584
584
  h = (0, t.escapeSpecialCharacters)(h);
585
- var P = h.match(f), w = P && P[1] ? P[1].toLowerCase() : "";
586
- switch (w) {
585
+ var P = h.match(d), k = P && P[1] ? P[1].toLowerCase() : "";
586
+ switch (k) {
587
587
  case o: {
588
588
  var e = r(h);
589
589
  if (!p.test(h)) {
590
590
  var i = e.querySelector(u);
591
591
  (R = i == null ? void 0 : i.parentNode) === null || R === void 0 || R.removeChild(i);
592
592
  }
593
- if (!T.test(h)) {
594
- var i = e.querySelector(l);
593
+ if (!y.test(h)) {
594
+ var i = e.querySelector(s);
595
595
  (g = i == null ? void 0 : i.parentNode) === null || g === void 0 || g.removeChild(i);
596
596
  }
597
597
  return e.querySelectorAll(o);
598
598
  }
599
599
  case u:
600
- case l: {
601
- var a = s(h).querySelectorAll(w);
602
- return T.test(h) && p.test(h) ? a[0].parentNode.childNodes : a;
600
+ case s: {
601
+ var a = l(h).querySelectorAll(k);
602
+ return y.test(h) && p.test(h) ? a[0].parentNode.childNodes : a;
603
603
  }
604
604
  // low-level tag or text
605
605
  default: {
606
606
  if (A)
607
607
  return A(h);
608
- var i = s(h, l).querySelector(l);
608
+ var i = l(h, s).querySelector(s);
609
609
  return i.childNodes;
610
610
  }
611
611
  }
612
612
  }
613
613
  return z;
614
614
  }
615
- var ie;
616
- function Pe() {
617
- if (ie) return L;
618
- ie = 1;
615
+ var ne;
616
+ function ke() {
617
+ if (ne) return L;
618
+ ne = 1;
619
619
  var t = L && L.__importDefault || function(p) {
620
620
  return p && p.__esModule ? p : { default: p };
621
621
  };
622
- Object.defineProperty(L, "__esModule", { value: true }), L.default = f;
623
- var o = t(Oe()), u = _e(), l = /<(![a-zA-Z\s]+)>/;
624
- function f(p) {
622
+ Object.defineProperty(L, "__esModule", { value: true }), L.default = d;
623
+ var o = t(Pe()), u = Ee(), s = /<(![a-zA-Z\s]+)>/;
624
+ function d(p) {
625
625
  if (typeof p != "string")
626
626
  throw new TypeError("First argument must be a string");
627
627
  if (!p)
628
628
  return [];
629
- var T = p.match(l), s = T ? T[1] : void 0;
630
- return (0, u.formatDOM)((0, o.default)(p), null, s);
629
+ var y = p.match(s), l = y ? y[1] : void 0;
630
+ return (0, u.formatDOM)((0, o.default)(p), null, l);
631
631
  }
632
632
  return L;
633
633
  }
634
- var V = {}, N = {}, G = {}, ae;
634
+ var V = {}, N = {}, G = {}, ie;
635
635
  function we() {
636
- if (ae) return G;
637
- ae = 1;
636
+ if (ie) return G;
637
+ ie = 1;
638
638
  var t = 0;
639
639
  G.SAME = t;
640
640
  var o = 1;
@@ -1124,16 +1124,16 @@ function we() {
1124
1124
  zoomAndPan: 1
1125
1125
  }, G;
1126
1126
  }
1127
- var oe;
1128
- function ke() {
1129
- if (oe) return N;
1130
- oe = 1;
1131
- const t = 0, o = 1, u = 2, l = 3, f = 4, p = 5, T = 6;
1132
- function s(e) {
1127
+ var ae;
1128
+ function Ne() {
1129
+ if (ae) return N;
1130
+ ae = 1;
1131
+ const t = 0, o = 1, u = 2, s = 3, d = 4, p = 5, y = 6;
1132
+ function l(e) {
1133
1133
  return n.hasOwnProperty(e) ? n[e] : null;
1134
1134
  }
1135
- function r(e, i, a, _, b, O, k) {
1136
- this.acceptsBooleans = i === u || i === l || i === f, this.attributeName = _, this.attributeNamespace = b, this.mustUseProperty = a, this.propertyName = e, this.type = i, this.sanitizeURL = O, this.removeEmptyString = k;
1135
+ function r(e, i, a, T, b, O, w) {
1136
+ this.acceptsBooleans = i === u || i === s || i === d, this.attributeName = T, this.attributeNamespace = b, this.mustUseProperty = a, this.propertyName = e, this.type = i, this.sanitizeURL = O, this.removeEmptyString = w;
1137
1137
  }
1138
1138
  const n = {};
1139
1139
  [
@@ -1248,7 +1248,7 @@ function ke() {
1248
1248
  ].forEach((e) => {
1249
1249
  n[e] = new r(
1250
1250
  e,
1251
- l,
1251
+ s,
1252
1252
  false,
1253
1253
  // mustUseProperty
1254
1254
  e.toLowerCase(),
@@ -1273,7 +1273,7 @@ function ke() {
1273
1273
  ].forEach((e) => {
1274
1274
  n[e] = new r(
1275
1275
  e,
1276
- l,
1276
+ s,
1277
1277
  true,
1278
1278
  // mustUseProperty
1279
1279
  e,
@@ -1294,7 +1294,7 @@ function ke() {
1294
1294
  ].forEach((e) => {
1295
1295
  n[e] = new r(
1296
1296
  e,
1297
- f,
1297
+ d,
1298
1298
  false,
1299
1299
  // mustUseProperty
1300
1300
  e,
@@ -1317,7 +1317,7 @@ function ke() {
1317
1317
  ].forEach((e) => {
1318
1318
  n[e] = new r(
1319
1319
  e,
1320
- T,
1320
+ y,
1321
1321
  false,
1322
1322
  // mustUseProperty
1323
1323
  e,
@@ -1345,7 +1345,7 @@ function ke() {
1345
1345
  // removeEmptyString
1346
1346
  );
1347
1347
  });
1348
- const d = /[\-\:]([a-z])/g, m = (e) => e[1].toUpperCase();
1348
+ const f = /[\-\:]([a-z])/g, m = (e) => e[1].toUpperCase();
1349
1349
  [
1350
1350
  "accent-height",
1351
1351
  "alignment-baseline",
@@ -1424,7 +1424,7 @@ function ke() {
1424
1424
  // you'll need to set attributeName to name.toLowerCase()
1425
1425
  // instead in the assignment below.
1426
1426
  ].forEach((e) => {
1427
- const i = e.replace(d, m);
1427
+ const i = e.replace(f, m);
1428
1428
  n[i] = new r(
1429
1429
  i,
1430
1430
  o,
@@ -1449,7 +1449,7 @@ function ke() {
1449
1449
  // you'll need to set attributeName to name.toLowerCase()
1450
1450
  // instead in the assignment below.
1451
1451
  ].forEach((e) => {
1452
- const i = e.replace(d, m);
1452
+ const i = e.replace(f, m);
1453
1453
  n[i] = new r(
1454
1454
  i,
1455
1455
  o,
@@ -1470,7 +1470,7 @@ function ke() {
1470
1470
  // you'll need to set attributeName to name.toLowerCase()
1471
1471
  // instead in the assignment below.
1472
1472
  ].forEach((e) => {
1473
- const i = e.replace(d, m);
1473
+ const i = e.replace(f, m);
1474
1474
  n[i] = new r(
1475
1475
  i,
1476
1476
  o,
@@ -1529,29 +1529,29 @@ function ke() {
1529
1529
  });
1530
1530
  const {
1531
1531
  CAMELCASE: A,
1532
- SAME: y,
1532
+ SAME: _,
1533
1533
  possibleStandardNames: h
1534
1534
  } = we(), 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(
1535
1535
  // eslint-disable-next-line no-misleading-character-class
1536
1536
  new RegExp("^(data|aria)-[" + g + "]*$")
1537
- ), w = Object.keys(
1537
+ ), k = Object.keys(
1538
1538
  h
1539
1539
  ).reduce((e, i) => {
1540
1540
  const a = h[i];
1541
- return a === y ? e[i] = i : a === A ? e[i.toLowerCase()] = i : e[i] = a, e;
1541
+ return a === _ ? e[i] = i : a === A ? e[i.toLowerCase()] = i : e[i] = a, e;
1542
1542
  }, {});
1543
- return N.BOOLEAN = l, N.BOOLEANISH_STRING = u, N.NUMERIC = p, N.OVERLOADED_BOOLEAN = f, N.POSITIVE_NUMERIC = T, N.RESERVED = t, N.STRING = o, N.getPropertyInfo = s, N.isCustomAttribute = P, N.possibleStandardNames = w, N;
1543
+ return N.BOOLEAN = s, N.BOOLEANISH_STRING = u, N.NUMERIC = p, N.OVERLOADED_BOOLEAN = d, N.POSITIVE_NUMERIC = y, N.RESERVED = t, N.STRING = o, N.getPropertyInfo = l, N.isCustomAttribute = P, N.possibleStandardNames = k, N;
1544
1544
  }
1545
- var U = {}, j = {}, Y, le;
1546
- function Ne() {
1547
- if (le) return Y;
1548
- le = 1;
1549
- var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, o = /\n/g, u = /^\s*/, l = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, f = /^:\s*/, p = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, T = /^[;\s]*/, s = /^\s+|\s+$/g, r = `
1550
- `, n = "/", c = "*", d = "", m = "comment", S = "declaration";
1551
- Y = function(y, h) {
1552
- if (typeof y != "string")
1545
+ var U = {}, j = {}, Y, oe;
1546
+ function Ie() {
1547
+ if (oe) return Y;
1548
+ oe = 1;
1549
+ var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, o = /\n/g, u = /^\s*/, s = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, d = /^:\s*/, p = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, y = /^[;\s]*/, l = /^\s+|\s+$/g, r = `
1550
+ `, n = "/", c = "*", f = "", m = "comment", S = "declaration";
1551
+ Y = function(_, h) {
1552
+ if (typeof _ != "string")
1553
1553
  throw new TypeError("First argument must be a string");
1554
- if (!y) return [];
1554
+ if (!_) return [];
1555
1555
  h = h || {};
1556
1556
  var R = 1, g = 1;
1557
1557
  function P(C) {
@@ -1560,30 +1560,30 @@ function Ne() {
1560
1560
  var I = C.lastIndexOf(r);
1561
1561
  g = ~I ? C.length - I : g + C.length;
1562
1562
  }
1563
- function w() {
1563
+ function k() {
1564
1564
  var C = { line: R, column: g };
1565
1565
  return function(E) {
1566
- return E.position = new e(C), _(), E;
1566
+ return E.position = new e(C), T(), E;
1567
1567
  };
1568
1568
  }
1569
1569
  function e(C) {
1570
1570
  this.start = C, this.end = { line: R, column: g }, this.source = h.source;
1571
1571
  }
1572
- e.prototype.content = y;
1572
+ e.prototype.content = _;
1573
1573
  function i(C) {
1574
1574
  var E = new Error(
1575
1575
  h.source + ":" + R + ":" + g + ": " + C
1576
1576
  );
1577
- if (E.reason = C, E.filename = h.source, E.line = R, E.column = g, E.source = y, !h.silent) throw E;
1577
+ if (E.reason = C, E.filename = h.source, E.line = R, E.column = g, E.source = _, !h.silent) throw E;
1578
1578
  }
1579
1579
  function a(C) {
1580
- var E = C.exec(y);
1580
+ var E = C.exec(_);
1581
1581
  if (E) {
1582
1582
  var I = E[0];
1583
- return P(I), y = y.slice(I.length), E;
1583
+ return P(I), _ = _.slice(I.length), E;
1584
1584
  }
1585
1585
  }
1586
- function _() {
1586
+ function T() {
1587
1587
  a(u);
1588
1588
  }
1589
1589
  function b(C) {
@@ -1593,106 +1593,106 @@ function Ne() {
1593
1593
  return C;
1594
1594
  }
1595
1595
  function O() {
1596
- var C = w();
1597
- if (!(n != y.charAt(0) || c != y.charAt(1))) {
1598
- for (var E = 2; d != y.charAt(E) && (c != y.charAt(E) || n != y.charAt(E + 1)); )
1596
+ var C = k();
1597
+ if (!(n != _.charAt(0) || c != _.charAt(1))) {
1598
+ for (var E = 2; f != _.charAt(E) && (c != _.charAt(E) || n != _.charAt(E + 1)); )
1599
1599
  ++E;
1600
- if (E += 2, d === y.charAt(E - 1))
1600
+ if (E += 2, f === _.charAt(E - 1))
1601
1601
  return i("End of comment missing");
1602
- var I = y.slice(2, E - 2);
1603
- return g += 2, P(I), y = y.slice(E), g += 2, C({
1602
+ var I = _.slice(2, E - 2);
1603
+ return g += 2, P(I), _ = _.slice(E), g += 2, C({
1604
1604
  type: m,
1605
1605
  comment: I
1606
1606
  });
1607
1607
  }
1608
1608
  }
1609
- function k() {
1610
- var C = w(), E = a(l);
1609
+ function w() {
1610
+ var C = k(), E = a(s);
1611
1611
  if (E) {
1612
- if (O(), !a(f)) return i("property missing ':'");
1613
- var I = a(p), Ce = C({
1612
+ if (O(), !a(d)) return i("property missing ':'");
1613
+ var I = a(p), be = C({
1614
1614
  type: S,
1615
- property: A(E[0].replace(t, d)),
1616
- value: I ? A(I[0].replace(t, d)) : d
1615
+ property: A(E[0].replace(t, f)),
1616
+ value: I ? A(I[0].replace(t, f)) : f
1617
1617
  });
1618
- return a(T), Ce;
1618
+ return a(y), be;
1619
1619
  }
1620
1620
  }
1621
1621
  function M() {
1622
1622
  var C = [];
1623
1623
  b(C);
1624
- for (var E; E = k(); )
1624
+ for (var E; E = w(); )
1625
1625
  E !== false && (C.push(E), b(C));
1626
1626
  return C;
1627
1627
  }
1628
- return _(), M();
1628
+ return T(), M();
1629
1629
  };
1630
- function A(y) {
1631
- return y ? y.replace(s, d) : d;
1630
+ function A(_) {
1631
+ return _ ? _.replace(l, f) : f;
1632
1632
  }
1633
1633
  return Y;
1634
1634
  }
1635
- var se;
1636
- function Ie() {
1637
- if (se) return j;
1638
- se = 1;
1639
- var t = j && j.__importDefault || function(l) {
1640
- return l && l.__esModule ? l : { default: l };
1635
+ var le;
1636
+ function De() {
1637
+ if (le) return j;
1638
+ le = 1;
1639
+ var t = j && j.__importDefault || function(s) {
1640
+ return s && s.__esModule ? s : { default: s };
1641
1641
  };
1642
1642
  Object.defineProperty(j, "__esModule", { value: true }), j.default = u;
1643
- var o = t(Ne());
1644
- function u(l, f) {
1643
+ var o = t(Ie());
1644
+ function u(s, d) {
1645
1645
  var p = null;
1646
- if (!l || typeof l != "string")
1646
+ if (!s || typeof s != "string")
1647
1647
  return p;
1648
- var T = (0, o.default)(l), s = typeof f == "function";
1649
- return T.forEach(function(r) {
1648
+ var y = (0, o.default)(s), l = typeof d == "function";
1649
+ return y.forEach(function(r) {
1650
1650
  if (r.type === "declaration") {
1651
1651
  var n = r.property, c = r.value;
1652
- s ? f(n, c, r) : c && (p = p || {}, p[n] = c);
1652
+ l ? d(n, c, r) : c && (p = p || {}, p[n] = c);
1653
1653
  }
1654
1654
  }), p;
1655
1655
  }
1656
1656
  return j;
1657
1657
  }
1658
- var q = {}, ce;
1659
- function De() {
1660
- if (ce) return q;
1661
- ce = 1, Object.defineProperty(q, "__esModule", { value: true }), q.camelCase = void 0;
1662
- var t = /^--[a-zA-Z0-9_-]+$/, o = /-([a-z])/g, u = /^[^-]+$/, l = /^-(webkit|moz|ms|o|khtml)-/, f = /^-(ms)-/, p = function(n) {
1658
+ var q = {}, se;
1659
+ function xe() {
1660
+ if (se) return q;
1661
+ se = 1, Object.defineProperty(q, "__esModule", { value: true }), q.camelCase = void 0;
1662
+ var t = /^--[a-zA-Z0-9_-]+$/, o = /-([a-z])/g, u = /^[^-]+$/, s = /^-(webkit|moz|ms|o|khtml)-/, d = /^-(ms)-/, p = function(n) {
1663
1663
  return !n || u.test(n) || t.test(n);
1664
- }, T = function(n, c) {
1664
+ }, y = function(n, c) {
1665
1665
  return c.toUpperCase();
1666
- }, s = function(n, c) {
1666
+ }, l = function(n, c) {
1667
1667
  return "".concat(c, "-");
1668
1668
  }, r = function(n, c) {
1669
- return c === void 0 && (c = {}), p(n) ? n : (n = n.toLowerCase(), c.reactCompat ? n = n.replace(f, s) : n = n.replace(l, s), n.replace(o, T));
1669
+ return c === void 0 && (c = {}), p(n) ? n : (n = n.toLowerCase(), c.reactCompat ? n = n.replace(d, l) : n = n.replace(s, l), n.replace(o, y));
1670
1670
  };
1671
1671
  return q.camelCase = r, q;
1672
1672
  }
1673
- var B, ue;
1674
- function xe() {
1675
- if (ue) return B;
1676
- ue = 1;
1677
- var t = B && B.__importDefault || function(f) {
1678
- return f && f.__esModule ? f : { default: f };
1679
- }, o = t(Ie()), u = De();
1680
- function l(f, p) {
1681
- var T = {};
1682
- return !f || typeof f != "string" || (0, o.default)(f, function(s, r) {
1683
- s && r && (T[(0, u.camelCase)(s, p)] = r);
1684
- }), T;
1673
+ var B, ce;
1674
+ function Me() {
1675
+ if (ce) return B;
1676
+ ce = 1;
1677
+ var t = B && B.__importDefault || function(d) {
1678
+ return d && d.__esModule ? d : { default: d };
1679
+ }, o = t(De()), u = xe();
1680
+ function s(d, p) {
1681
+ var y = {};
1682
+ return !d || typeof d != "string" || (0, o.default)(d, function(l, r) {
1683
+ l && r && (y[(0, u.camelCase)(l, p)] = r);
1684
+ }), y;
1685
1685
  }
1686
- return l.default = l, B = l, B;
1686
+ return s.default = s, B = s, B;
1687
1687
  }
1688
- var fe;
1689
- function Te() {
1690
- return fe || (fe = 1, (function(t) {
1688
+ var ue;
1689
+ function ye() {
1690
+ return ue || (ue = 1, (function(t) {
1691
1691
  var o = U && U.__importDefault || function(c) {
1692
1692
  return c && c.__esModule ? c : { default: c };
1693
1693
  };
1694
- Object.defineProperty(t, "__esModule", { value: true }), t.returnFirstArg = t.canTextBeChildOfNode = t.ELEMENTS_WITH_NO_TEXT_CHILDREN = t.PRESERVE_CUSTOM_ATTRIBUTES = void 0, t.isCustomComponent = p, t.setStyleProp = s;
1695
- var u = React, l = o(xe()), f = /* @__PURE__ */ new Set([
1694
+ Object.defineProperty(t, "__esModule", { value: true }), t.returnFirstArg = t.canTextBeChildOfNode = t.ELEMENTS_WITH_NO_TEXT_CHILDREN = t.PRESERVE_CUSTOM_ATTRIBUTES = void 0, t.isCustomComponent = p, t.setStyleProp = l;
1695
+ var u = React, s = o(Me()), d = /* @__PURE__ */ new Set([
1696
1696
  "annotation-xml",
1697
1697
  "color-profile",
1698
1698
  "font-face",
@@ -1702,22 +1702,22 @@ function Te() {
1702
1702
  "font-face-name",
1703
1703
  "missing-glyph"
1704
1704
  ]);
1705
- function p(c, d) {
1706
- return c.includes("-") ? !f.has(c) : !!(d && typeof d.is == "string");
1705
+ function p(c, f) {
1706
+ return c.includes("-") ? !d.has(c) : !!(f && typeof f.is == "string");
1707
1707
  }
1708
- var T = {
1708
+ var y = {
1709
1709
  reactCompat: true
1710
1710
  };
1711
- function s(c, d) {
1711
+ function l(c, f) {
1712
1712
  if (typeof c == "string") {
1713
1713
  if (!c.trim()) {
1714
- d.style = {};
1714
+ f.style = {};
1715
1715
  return;
1716
1716
  }
1717
1717
  try {
1718
- d.style = (0, l.default)(c, T);
1718
+ f.style = (0, s.default)(c, y);
1719
1719
  } catch {
1720
- d.style = {};
1720
+ f.style = {};
1721
1721
  }
1722
1722
  }
1723
1723
  }
@@ -1742,27 +1742,27 @@ function Te() {
1742
1742
  t.returnFirstArg = n;
1743
1743
  })(U)), U;
1744
1744
  }
1745
- var de;
1746
- function Re() {
1747
- if (de) return V;
1748
- de = 1, Object.defineProperty(V, "__esModule", { value: true }), V.default = p;
1749
- var t = ke(), o = Te(), u = ["checked", "value"], l = ["input", "select", "textarea"], f = {
1745
+ var fe;
1746
+ function _e() {
1747
+ if (fe) return V;
1748
+ fe = 1, Object.defineProperty(V, "__esModule", { value: true }), V.default = p;
1749
+ var t = Ne(), o = ye(), u = ["checked", "value"], s = ["input", "select", "textarea"], d = {
1750
1750
  reset: true,
1751
1751
  submit: true
1752
1752
  };
1753
- function p(s, r) {
1754
- s === void 0 && (s = {});
1755
- var n = {}, c = !!(s.type && f[s.type]);
1756
- for (var d in s) {
1757
- var m = s[d];
1758
- if ((0, t.isCustomAttribute)(d)) {
1759
- n[d] = m;
1753
+ function p(l, r) {
1754
+ l === void 0 && (l = {});
1755
+ var n = {}, c = !!(l.type && d[l.type]);
1756
+ for (var f in l) {
1757
+ var m = l[f];
1758
+ if ((0, t.isCustomAttribute)(f)) {
1759
+ n[f] = m;
1760
1760
  continue;
1761
1761
  }
1762
- var S = d.toLowerCase(), A = T(S);
1762
+ var S = f.toLowerCase(), A = y(S);
1763
1763
  if (A) {
1764
- var y = (0, t.getPropertyInfo)(A);
1765
- switch (u.includes(A) && l.includes(r) && !c && (A = T("default" + S)), n[A] = m, y && y.type) {
1764
+ var _ = (0, t.getPropertyInfo)(A);
1765
+ switch (u.includes(A) && s.includes(r) && !c && (A = y("default" + S)), n[A] = m, _ && _.type) {
1766
1766
  case t.BOOLEAN:
1767
1767
  n[A] = true;
1768
1768
  break;
@@ -1772,50 +1772,50 @@ function Re() {
1772
1772
  }
1773
1773
  continue;
1774
1774
  }
1775
- o.PRESERVE_CUSTOM_ATTRIBUTES && (n[d] = m);
1775
+ o.PRESERVE_CUSTOM_ATTRIBUTES && (n[f] = m);
1776
1776
  }
1777
- return (0, o.setStyleProp)(s.style, n), n;
1777
+ return (0, o.setStyleProp)(l.style, n), n;
1778
1778
  }
1779
- function T(s) {
1780
- return t.possibleStandardNames[s];
1779
+ function y(l) {
1780
+ return t.possibleStandardNames[l];
1781
1781
  }
1782
1782
  return V;
1783
1783
  }
1784
- var H = {}, pe;
1785
- function Me() {
1786
- if (pe) return H;
1787
- pe = 1;
1788
- var t = H && H.__importDefault || function(s) {
1789
- return s && s.__esModule ? s : { default: s };
1784
+ var H = {}, de;
1785
+ function Le() {
1786
+ if (de) return H;
1787
+ de = 1;
1788
+ var t = H && H.__importDefault || function(l) {
1789
+ return l && l.__esModule ? l : { default: l };
1790
1790
  };
1791
1791
  Object.defineProperty(H, "__esModule", { value: true }), H.default = p;
1792
- var o = React, u = t(Re()), l = Te(), f = {
1792
+ var o = React, u = t(_e()), s = ye(), d = {
1793
1793
  cloneElement: o.cloneElement,
1794
1794
  createElement: o.createElement,
1795
1795
  isValidElement: o.isValidElement
1796
1796
  };
1797
- function p(s, r) {
1797
+ function p(l, r) {
1798
1798
  r === void 0 && (r = {});
1799
- for (var n = [], c = typeof r.replace == "function", d = r.transform || l.returnFirstArg, m = r.library || f, S = m.cloneElement, A = m.createElement, y = m.isValidElement, h = s.length, R = 0; R < h; R++) {
1800
- var g = s[R];
1799
+ for (var n = [], c = typeof r.replace == "function", f = r.transform || s.returnFirstArg, m = r.library || d, S = m.cloneElement, A = m.createElement, _ = m.isValidElement, h = l.length, R = 0; R < h; R++) {
1800
+ var g = l[R];
1801
1801
  if (c) {
1802
1802
  var P = r.replace(g, R);
1803
- if (y(P)) {
1803
+ if (_(P)) {
1804
1804
  h > 1 && (P = S(P, {
1805
1805
  key: P.key || R
1806
- })), n.push(d(P, g, R));
1806
+ })), n.push(f(P, g, R));
1807
1807
  continue;
1808
1808
  }
1809
1809
  }
1810
1810
  if (g.type === "text") {
1811
- var w = !g.data.trim().length;
1812
- if (w && g.parent && !(0, l.canTextBeChildOfNode)(g.parent) || r.trim && w)
1811
+ var k = !g.data.trim().length;
1812
+ if (k && g.parent && !(0, s.canTextBeChildOfNode)(g.parent) || r.trim && k)
1813
1813
  continue;
1814
- n.push(d(g.data, g, R));
1814
+ n.push(f(g.data, g, R));
1815
1815
  continue;
1816
1816
  }
1817
1817
  var e = g, i = {};
1818
- T(e) ? ((0, l.setStyleProp)(e.attribs.style, e.attribs), i = e.attribs) : e.attribs && (i = (0, u.default)(e.attribs, e.name));
1818
+ y(e) ? ((0, s.setStyleProp)(e.attribs.style, e.attribs), i = e.attribs) : e.attribs && (i = (0, u.default)(e.attribs, e.name));
1819
1819
  var a = void 0;
1820
1820
  switch (g.type) {
1821
1821
  case "script":
@@ -1831,29 +1831,29 @@ function Me() {
1831
1831
  default:
1832
1832
  continue;
1833
1833
  }
1834
- h > 1 && (i.key = R), n.push(d(A(g.name, i, a), g, R));
1834
+ h > 1 && (i.key = R), n.push(f(A(g.name, i, a), g, R));
1835
1835
  }
1836
1836
  return n.length === 1 ? n[0] : n;
1837
1837
  }
1838
- function T(s) {
1839
- return l.PRESERVE_CUSTOM_ATTRIBUTES && s.type === "tag" && (0, l.isCustomComponent)(s.name, s.attribs);
1838
+ function y(l) {
1839
+ return s.PRESERVE_CUSTOM_ATTRIBUTES && l.type === "tag" && (0, s.isCustomComponent)(l.name, l.attribs);
1840
1840
  }
1841
1841
  return H;
1842
1842
  }
1843
- var he;
1844
- function Le() {
1845
- return he || (he = 1, (function(t) {
1843
+ var pe;
1844
+ function je() {
1845
+ return pe || (pe = 1, (function(t) {
1846
1846
  var o = F && F.__importDefault || function(r) {
1847
1847
  return r && r.__esModule ? r : { default: r };
1848
1848
  };
1849
- Object.defineProperty(t, "__esModule", { value: true }), t.htmlToDOM = t.domToReact = t.attributesToProps = t.Text = t.ProcessingInstruction = t.Element = t.Comment = void 0, t.default = s;
1850
- var u = o(Pe());
1849
+ Object.defineProperty(t, "__esModule", { value: true }), t.htmlToDOM = t.domToReact = t.attributesToProps = t.Text = t.ProcessingInstruction = t.Element = t.Comment = void 0, t.default = l;
1850
+ var u = o(ke());
1851
1851
  t.htmlToDOM = u.default;
1852
- var l = o(Re());
1853
- t.attributesToProps = l.default;
1854
- var f = o(Me());
1855
- t.domToReact = f.default;
1856
- var p = /* @__PURE__ */ ye();
1852
+ var s = o(_e());
1853
+ t.attributesToProps = s.default;
1854
+ var d = o(Le());
1855
+ t.domToReact = d.default;
1856
+ var p = /* @__PURE__ */ ge();
1857
1857
  Object.defineProperty(t, "Comment", { enumerable: true, get: function() {
1858
1858
  return p.Comment;
1859
1859
  } }), Object.defineProperty(t, "Element", { enumerable: true, get: function() {
@@ -1863,71 +1863,63 @@ function Le() {
1863
1863
  } }), Object.defineProperty(t, "Text", { enumerable: true, get: function() {
1864
1864
  return p.Text;
1865
1865
  } });
1866
- var T = { lowerCaseAttributeNames: false };
1867
- function s(r, n) {
1866
+ var y = { lowerCaseAttributeNames: false };
1867
+ function l(r, n) {
1868
1868
  if (typeof r != "string")
1869
1869
  throw new TypeError("First argument must be a string");
1870
- return r ? (0, f.default)((0, u.default)(r, (n == null ? void 0 : n.htmlparser2) || T), n) : [];
1870
+ return r ? (0, d.default)((0, u.default)(r, (n == null ? void 0 : n.htmlparser2) || y), n) : [];
1871
1871
  }
1872
1872
  })(F)), F;
1873
1873
  }
1874
- var je = Le();
1875
- const me = /* @__PURE__ */ Ae(je), He = me.default || me;
1876
- function Fe(t) {
1874
+ var He = je();
1875
+ const he = /* @__PURE__ */ Se(He), Fe = he.default || he;
1876
+ function Ge(t) {
1877
1877
  if (!Array.isArray(t)) return t;
1878
1878
  const o = t;
1879
- if (!o.some(Ge)) return o;
1880
- const u = o.filter((l) => !Ue(l)).map((l) => be(l) ? " " : l);
1879
+ if (!o.some(Ue)) return o;
1880
+ const u = o.filter((s) => !qe(s)).map((s) => Te(s) ? " " : s);
1881
1881
  return u.length === 1 ? u[0] : u;
1882
1882
  }
1883
- function Ge(t) {
1883
+ function Ue(t) {
1884
1884
  return React.isValidElement(t) && typeof t.type != "string";
1885
1885
  }
1886
- function be(t) {
1886
+ function Te(t) {
1887
1887
  return typeof t == "string" && t.trim() === "";
1888
1888
  }
1889
- function Ue(t) {
1890
- return be(t) && /[\r\n]/.test(t);
1891
- }
1892
- function Ye(t) {
1893
- const o$1 = t.dataset.tapestryReactComponentName, u = o(o$1);
1894
- if (!u) {
1895
- console.warn(`Component ${o$1} not found`);
1896
- return;
1897
- }
1898
- const { props: l, htmlChildren: f } = qe(t);
1899
- return /* @__PURE__ */ jsx(u, { ...l, children: f });
1900
- }
1901
1889
  function qe(t) {
1902
- const o = t.dataset.tapestryReactComponentProps, { children: u, ...l } = JSON.parse(o), f = Be({ element: t, props: l });
1903
- return { htmlChildren: u ? Z(u) : void 0, props: f };
1890
+ return Te(t) && /[\r\n]/.test(t);
1904
1891
  }
1905
- function Be({
1906
- element: t,
1907
- props: o
1908
- }) {
1909
- const u = { ...o };
1910
- return (t.dataset.tapestryReactNodePropKeys ? t.dataset.tapestryReactNodePropKeys.split(",") : []).forEach((f) => {
1911
- const p = u[f];
1912
- p && (u[f] = Z(p));
1913
- }), u;
1892
+ function We(t) {
1893
+ return Re({
1894
+ componentName: t.dataset.tapestryReactComponentName,
1895
+ nodePropKeys: t.dataset.tapestryReactNodePropKeys,
1896
+ rawProps: t.dataset.tapestryReactComponentProps
1897
+ });
1914
1898
  }
1915
- function Z(t) {
1916
- return Fe(He(t, { replace: ze }));
1899
+ function Re({ componentName: t, nodePropKeys: o$1, rawProps: u }) {
1900
+ const s = o(t);
1901
+ if (!s)
1902
+ return console.warn(`Component ${t} not found`), null;
1903
+ const { children: d, ...p } = JSON.parse(u);
1904
+ for (const y of (o$1 == null ? void 0 : o$1.split(",")) ?? []) {
1905
+ const l = p[y];
1906
+ typeof l == "string" && l && (p[y] = me(l));
1907
+ }
1908
+ return /* @__PURE__ */ jsx(s, { ...p, children: d ? me(d) : void 0 });
1909
+ }
1910
+ function me(t) {
1911
+ return Ge(Fe(t, { replace: Be }));
1917
1912
  }
1918
- function ze(t) {
1913
+ function Be(t) {
1919
1914
  if (!(t instanceof Object) || !("attribs" in t)) return;
1920
- const o$1 = t;
1921
- if (!o$1.attribs || o$1.attribs["data-tapestry-react-root-inner"] === void 0)
1922
- return;
1923
- const u = o$1.attribs["data-tapestry-react-component-name"], l = o(u);
1924
- if (!l)
1925
- return console.warn(`Component ${u} not found`), null;
1926
- let { children: f, ...p } = JSON.parse(
1927
- o$1.attribs["data-tapestry-react-component-props"] || "{}"
1928
- );
1929
- return f && (f = Z(f)), /* @__PURE__ */ jsx(l, { ...p, children: f });
1915
+ const { attribs: o } = t;
1916
+ if (!(!o || o["data-tapestry-react-root-inner"] === void 0))
1917
+ return Re({
1918
+ componentName: o["data-tapestry-react-component-name"],
1919
+ nodePropKeys: o["data-tapestry-react-node-prop-keys"],
1920
+ rawProps: o["data-tapestry-react-component-props"] || "{}"
1921
+ });
1930
1922
  }
1931
1923
 
1932
- export { Ye as b };
1933
- //# sourceMappingURL=buildComponent-DDhu-82j.js.map
1924
+ export { We as b };
1925
+ //# sourceMappingURL=buildComponent-C5PfOgH9.js.map