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