@vodafone_de/brix-components 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2485 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import require$$0 from "react";
3
+ import styled from "styled-components";
4
+ import { g as getCssVar, a as getBodySize } from "./index-BoPDwZgt.js";
5
+ const spacingNone = "None";
6
+ const spacingSm = "Sm";
7
+ const spacingMd = "Md";
8
+ const textBodyMd = "md";
9
+ const textBodySm = "sm";
10
+ function getDefaultExportFromCjs(x) {
11
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
12
+ }
13
+ var lib$3 = {};
14
+ var htmlToDom = {};
15
+ var domparser = {};
16
+ var utilities$2 = {};
17
+ var lib$2 = {};
18
+ var lib$1 = {};
19
+ var hasRequiredLib$3;
20
+ function requireLib$3() {
21
+ if (hasRequiredLib$3) return lib$1;
22
+ hasRequiredLib$3 = 1;
23
+ (function(exports) {
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
26
+ var ElementType;
27
+ (function(ElementType2) {
28
+ ElementType2["Root"] = "root";
29
+ ElementType2["Text"] = "text";
30
+ ElementType2["Directive"] = "directive";
31
+ ElementType2["Comment"] = "comment";
32
+ ElementType2["Script"] = "script";
33
+ ElementType2["Style"] = "style";
34
+ ElementType2["Tag"] = "tag";
35
+ ElementType2["CDATA"] = "cdata";
36
+ ElementType2["Doctype"] = "doctype";
37
+ })(ElementType = exports.ElementType || (exports.ElementType = {}));
38
+ function isTag(elem) {
39
+ return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
40
+ }
41
+ exports.isTag = isTag;
42
+ exports.Root = ElementType.Root;
43
+ exports.Text = ElementType.Text;
44
+ exports.Directive = ElementType.Directive;
45
+ exports.Comment = ElementType.Comment;
46
+ exports.Script = ElementType.Script;
47
+ exports.Style = ElementType.Style;
48
+ exports.Tag = ElementType.Tag;
49
+ exports.CDATA = ElementType.CDATA;
50
+ exports.Doctype = ElementType.Doctype;
51
+ })(lib$1);
52
+ return lib$1;
53
+ }
54
+ var node = {};
55
+ var hasRequiredNode;
56
+ function requireNode() {
57
+ if (hasRequiredNode) return node;
58
+ hasRequiredNode = 1;
59
+ var __extends = node && node.__extends || /* @__PURE__ */ function() {
60
+ var extendStatics = function(d, b) {
61
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
62
+ d2.__proto__ = b2;
63
+ } || function(d2, b2) {
64
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
65
+ };
66
+ return extendStatics(d, b);
67
+ };
68
+ return function(d, b) {
69
+ if (typeof b !== "function" && b !== null)
70
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
71
+ extendStatics(d, b);
72
+ function __() {
73
+ this.constructor = d;
74
+ }
75
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
76
+ };
77
+ }();
78
+ var __assign = node && node.__assign || function() {
79
+ __assign = Object.assign || function(t) {
80
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
81
+ s = arguments[i];
82
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
83
+ t[p] = s[p];
84
+ }
85
+ return t;
86
+ };
87
+ return __assign.apply(this, arguments);
88
+ };
89
+ Object.defineProperty(node, "__esModule", { value: true });
90
+ node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.CDATA = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
91
+ var domelementtype_1 = /* @__PURE__ */ requireLib$3();
92
+ var Node = (
93
+ /** @class */
94
+ function() {
95
+ function Node2() {
96
+ this.parent = null;
97
+ this.prev = null;
98
+ this.next = null;
99
+ this.startIndex = null;
100
+ this.endIndex = null;
101
+ }
102
+ Object.defineProperty(Node2.prototype, "parentNode", {
103
+ // Read-write aliases for properties
104
+ /**
105
+ * Same as {@link parent}.
106
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
107
+ */
108
+ get: function() {
109
+ return this.parent;
110
+ },
111
+ set: function(parent) {
112
+ this.parent = parent;
113
+ },
114
+ enumerable: false,
115
+ configurable: true
116
+ });
117
+ Object.defineProperty(Node2.prototype, "previousSibling", {
118
+ /**
119
+ * Same as {@link prev}.
120
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
121
+ */
122
+ get: function() {
123
+ return this.prev;
124
+ },
125
+ set: function(prev) {
126
+ this.prev = prev;
127
+ },
128
+ enumerable: false,
129
+ configurable: true
130
+ });
131
+ Object.defineProperty(Node2.prototype, "nextSibling", {
132
+ /**
133
+ * Same as {@link next}.
134
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
135
+ */
136
+ get: function() {
137
+ return this.next;
138
+ },
139
+ set: function(next) {
140
+ this.next = next;
141
+ },
142
+ enumerable: false,
143
+ configurable: true
144
+ });
145
+ Node2.prototype.cloneNode = function(recursive) {
146
+ if (recursive === void 0) {
147
+ recursive = false;
148
+ }
149
+ return cloneNode(this, recursive);
150
+ };
151
+ return Node2;
152
+ }()
153
+ );
154
+ node.Node = Node;
155
+ var DataNode = (
156
+ /** @class */
157
+ function(_super) {
158
+ __extends(DataNode2, _super);
159
+ function DataNode2(data) {
160
+ var _this = _super.call(this) || this;
161
+ _this.data = data;
162
+ return _this;
163
+ }
164
+ Object.defineProperty(DataNode2.prototype, "nodeValue", {
165
+ /**
166
+ * Same as {@link data}.
167
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
168
+ */
169
+ get: function() {
170
+ return this.data;
171
+ },
172
+ set: function(data) {
173
+ this.data = data;
174
+ },
175
+ enumerable: false,
176
+ configurable: true
177
+ });
178
+ return DataNode2;
179
+ }(Node)
180
+ );
181
+ node.DataNode = DataNode;
182
+ var Text = (
183
+ /** @class */
184
+ function(_super) {
185
+ __extends(Text2, _super);
186
+ function Text2() {
187
+ var _this = _super !== null && _super.apply(this, arguments) || this;
188
+ _this.type = domelementtype_1.ElementType.Text;
189
+ return _this;
190
+ }
191
+ Object.defineProperty(Text2.prototype, "nodeType", {
192
+ get: function() {
193
+ return 3;
194
+ },
195
+ enumerable: false,
196
+ configurable: true
197
+ });
198
+ return Text2;
199
+ }(DataNode)
200
+ );
201
+ node.Text = Text;
202
+ var Comment = (
203
+ /** @class */
204
+ function(_super) {
205
+ __extends(Comment2, _super);
206
+ function Comment2() {
207
+ var _this = _super !== null && _super.apply(this, arguments) || this;
208
+ _this.type = domelementtype_1.ElementType.Comment;
209
+ return _this;
210
+ }
211
+ Object.defineProperty(Comment2.prototype, "nodeType", {
212
+ get: function() {
213
+ return 8;
214
+ },
215
+ enumerable: false,
216
+ configurable: true
217
+ });
218
+ return Comment2;
219
+ }(DataNode)
220
+ );
221
+ node.Comment = Comment;
222
+ var ProcessingInstruction = (
223
+ /** @class */
224
+ function(_super) {
225
+ __extends(ProcessingInstruction2, _super);
226
+ function ProcessingInstruction2(name, data) {
227
+ var _this = _super.call(this, data) || this;
228
+ _this.name = name;
229
+ _this.type = domelementtype_1.ElementType.Directive;
230
+ return _this;
231
+ }
232
+ Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
233
+ get: function() {
234
+ return 1;
235
+ },
236
+ enumerable: false,
237
+ configurable: true
238
+ });
239
+ return ProcessingInstruction2;
240
+ }(DataNode)
241
+ );
242
+ node.ProcessingInstruction = ProcessingInstruction;
243
+ var NodeWithChildren = (
244
+ /** @class */
245
+ function(_super) {
246
+ __extends(NodeWithChildren2, _super);
247
+ function NodeWithChildren2(children) {
248
+ var _this = _super.call(this) || this;
249
+ _this.children = children;
250
+ return _this;
251
+ }
252
+ Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
253
+ // Aliases
254
+ /** First child of the node. */
255
+ get: function() {
256
+ var _a;
257
+ return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
258
+ },
259
+ enumerable: false,
260
+ configurable: true
261
+ });
262
+ Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
263
+ /** Last child of the node. */
264
+ get: function() {
265
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
266
+ },
267
+ enumerable: false,
268
+ configurable: true
269
+ });
270
+ Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
271
+ /**
272
+ * Same as {@link children}.
273
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
274
+ */
275
+ get: function() {
276
+ return this.children;
277
+ },
278
+ set: function(children) {
279
+ this.children = children;
280
+ },
281
+ enumerable: false,
282
+ configurable: true
283
+ });
284
+ return NodeWithChildren2;
285
+ }(Node)
286
+ );
287
+ node.NodeWithChildren = NodeWithChildren;
288
+ var CDATA = (
289
+ /** @class */
290
+ function(_super) {
291
+ __extends(CDATA2, _super);
292
+ function CDATA2() {
293
+ var _this = _super !== null && _super.apply(this, arguments) || this;
294
+ _this.type = domelementtype_1.ElementType.CDATA;
295
+ return _this;
296
+ }
297
+ Object.defineProperty(CDATA2.prototype, "nodeType", {
298
+ get: function() {
299
+ return 4;
300
+ },
301
+ enumerable: false,
302
+ configurable: true
303
+ });
304
+ return CDATA2;
305
+ }(NodeWithChildren)
306
+ );
307
+ node.CDATA = CDATA;
308
+ var Document = (
309
+ /** @class */
310
+ function(_super) {
311
+ __extends(Document2, _super);
312
+ function Document2() {
313
+ var _this = _super !== null && _super.apply(this, arguments) || this;
314
+ _this.type = domelementtype_1.ElementType.Root;
315
+ return _this;
316
+ }
317
+ Object.defineProperty(Document2.prototype, "nodeType", {
318
+ get: function() {
319
+ return 9;
320
+ },
321
+ enumerable: false,
322
+ configurable: true
323
+ });
324
+ return Document2;
325
+ }(NodeWithChildren)
326
+ );
327
+ node.Document = Document;
328
+ var Element = (
329
+ /** @class */
330
+ function(_super) {
331
+ __extends(Element2, _super);
332
+ function Element2(name, attribs, children, type) {
333
+ if (children === void 0) {
334
+ children = [];
335
+ }
336
+ if (type === void 0) {
337
+ type = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
338
+ }
339
+ var _this = _super.call(this, children) || this;
340
+ _this.name = name;
341
+ _this.attribs = attribs;
342
+ _this.type = type;
343
+ return _this;
344
+ }
345
+ Object.defineProperty(Element2.prototype, "nodeType", {
346
+ get: function() {
347
+ return 1;
348
+ },
349
+ enumerable: false,
350
+ configurable: true
351
+ });
352
+ Object.defineProperty(Element2.prototype, "tagName", {
353
+ // DOM Level 1 aliases
354
+ /**
355
+ * Same as {@link name}.
356
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
357
+ */
358
+ get: function() {
359
+ return this.name;
360
+ },
361
+ set: function(name) {
362
+ this.name = name;
363
+ },
364
+ enumerable: false,
365
+ configurable: true
366
+ });
367
+ Object.defineProperty(Element2.prototype, "attributes", {
368
+ get: function() {
369
+ var _this = this;
370
+ return Object.keys(this.attribs).map(function(name) {
371
+ var _a, _b;
372
+ return {
373
+ name,
374
+ value: _this.attribs[name],
375
+ namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
376
+ prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name]
377
+ };
378
+ });
379
+ },
380
+ enumerable: false,
381
+ configurable: true
382
+ });
383
+ return Element2;
384
+ }(NodeWithChildren)
385
+ );
386
+ node.Element = Element;
387
+ function isTag(node2) {
388
+ return (0, domelementtype_1.isTag)(node2);
389
+ }
390
+ node.isTag = isTag;
391
+ function isCDATA(node2) {
392
+ return node2.type === domelementtype_1.ElementType.CDATA;
393
+ }
394
+ node.isCDATA = isCDATA;
395
+ function isText(node2) {
396
+ return node2.type === domelementtype_1.ElementType.Text;
397
+ }
398
+ node.isText = isText;
399
+ function isComment(node2) {
400
+ return node2.type === domelementtype_1.ElementType.Comment;
401
+ }
402
+ node.isComment = isComment;
403
+ function isDirective(node2) {
404
+ return node2.type === domelementtype_1.ElementType.Directive;
405
+ }
406
+ node.isDirective = isDirective;
407
+ function isDocument(node2) {
408
+ return node2.type === domelementtype_1.ElementType.Root;
409
+ }
410
+ node.isDocument = isDocument;
411
+ function hasChildren(node2) {
412
+ return Object.prototype.hasOwnProperty.call(node2, "children");
413
+ }
414
+ node.hasChildren = hasChildren;
415
+ function cloneNode(node2, recursive) {
416
+ if (recursive === void 0) {
417
+ recursive = false;
418
+ }
419
+ var result;
420
+ if (isText(node2)) {
421
+ result = new Text(node2.data);
422
+ } else if (isComment(node2)) {
423
+ result = new Comment(node2.data);
424
+ } else if (isTag(node2)) {
425
+ var children = recursive ? cloneChildren(node2.children) : [];
426
+ var clone_1 = new Element(node2.name, __assign({}, node2.attribs), children);
427
+ children.forEach(function(child) {
428
+ return child.parent = clone_1;
429
+ });
430
+ if (node2.namespace != null) {
431
+ clone_1.namespace = node2.namespace;
432
+ }
433
+ if (node2["x-attribsNamespace"]) {
434
+ clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
435
+ }
436
+ if (node2["x-attribsPrefix"]) {
437
+ clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
438
+ }
439
+ result = clone_1;
440
+ } else if (isCDATA(node2)) {
441
+ var children = recursive ? cloneChildren(node2.children) : [];
442
+ var clone_2 = new CDATA(children);
443
+ children.forEach(function(child) {
444
+ return child.parent = clone_2;
445
+ });
446
+ result = clone_2;
447
+ } else if (isDocument(node2)) {
448
+ var children = recursive ? cloneChildren(node2.children) : [];
449
+ var clone_3 = new Document(children);
450
+ children.forEach(function(child) {
451
+ return child.parent = clone_3;
452
+ });
453
+ if (node2["x-mode"]) {
454
+ clone_3["x-mode"] = node2["x-mode"];
455
+ }
456
+ result = clone_3;
457
+ } else if (isDirective(node2)) {
458
+ var instruction = new ProcessingInstruction(node2.name, node2.data);
459
+ if (node2["x-name"] != null) {
460
+ instruction["x-name"] = node2["x-name"];
461
+ instruction["x-publicId"] = node2["x-publicId"];
462
+ instruction["x-systemId"] = node2["x-systemId"];
463
+ }
464
+ result = instruction;
465
+ } else {
466
+ throw new Error("Not implemented yet: ".concat(node2.type));
467
+ }
468
+ result.startIndex = node2.startIndex;
469
+ result.endIndex = node2.endIndex;
470
+ if (node2.sourceCodeLocation != null) {
471
+ result.sourceCodeLocation = node2.sourceCodeLocation;
472
+ }
473
+ return result;
474
+ }
475
+ node.cloneNode = cloneNode;
476
+ function cloneChildren(childs) {
477
+ var children = childs.map(function(child) {
478
+ return cloneNode(child, true);
479
+ });
480
+ for (var i = 1; i < children.length; i++) {
481
+ children[i].prev = children[i - 1];
482
+ children[i - 1].next = children[i];
483
+ }
484
+ return children;
485
+ }
486
+ return node;
487
+ }
488
+ var hasRequiredLib$2;
489
+ function requireLib$2() {
490
+ if (hasRequiredLib$2) return lib$2;
491
+ hasRequiredLib$2 = 1;
492
+ (function(exports) {
493
+ var __createBinding = lib$2 && lib$2.__createBinding || (Object.create ? function(o, m, k, k2) {
494
+ if (k2 === void 0) k2 = k;
495
+ var desc = Object.getOwnPropertyDescriptor(m, k);
496
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
497
+ desc = { enumerable: true, get: function() {
498
+ return m[k];
499
+ } };
500
+ }
501
+ Object.defineProperty(o, k2, desc);
502
+ } : function(o, m, k, k2) {
503
+ if (k2 === void 0) k2 = k;
504
+ o[k2] = m[k];
505
+ });
506
+ var __exportStar = lib$2 && lib$2.__exportStar || function(m, exports2) {
507
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
508
+ };
509
+ Object.defineProperty(exports, "__esModule", { value: true });
510
+ exports.DomHandler = void 0;
511
+ var domelementtype_1 = /* @__PURE__ */ requireLib$3();
512
+ var node_js_1 = /* @__PURE__ */ requireNode();
513
+ __exportStar(/* @__PURE__ */ requireNode(), exports);
514
+ var defaultOpts = {
515
+ withStartIndices: false,
516
+ withEndIndices: false,
517
+ xmlMode: false
518
+ };
519
+ var DomHandler = (
520
+ /** @class */
521
+ function() {
522
+ function DomHandler2(callback, options, elementCB) {
523
+ this.dom = [];
524
+ this.root = new node_js_1.Document(this.dom);
525
+ this.done = false;
526
+ this.tagStack = [this.root];
527
+ this.lastNode = null;
528
+ this.parser = null;
529
+ if (typeof options === "function") {
530
+ elementCB = options;
531
+ options = defaultOpts;
532
+ }
533
+ if (typeof callback === "object") {
534
+ options = callback;
535
+ callback = void 0;
536
+ }
537
+ this.callback = callback !== null && callback !== void 0 ? callback : null;
538
+ this.options = options !== null && options !== void 0 ? options : defaultOpts;
539
+ this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
540
+ }
541
+ DomHandler2.prototype.onparserinit = function(parser) {
542
+ this.parser = parser;
543
+ };
544
+ DomHandler2.prototype.onreset = function() {
545
+ this.dom = [];
546
+ this.root = new node_js_1.Document(this.dom);
547
+ this.done = false;
548
+ this.tagStack = [this.root];
549
+ this.lastNode = null;
550
+ this.parser = null;
551
+ };
552
+ DomHandler2.prototype.onend = function() {
553
+ if (this.done)
554
+ return;
555
+ this.done = true;
556
+ this.parser = null;
557
+ this.handleCallback(null);
558
+ };
559
+ DomHandler2.prototype.onerror = function(error) {
560
+ this.handleCallback(error);
561
+ };
562
+ DomHandler2.prototype.onclosetag = function() {
563
+ this.lastNode = null;
564
+ var elem = this.tagStack.pop();
565
+ if (this.options.withEndIndices) {
566
+ elem.endIndex = this.parser.endIndex;
567
+ }
568
+ if (this.elementCB)
569
+ this.elementCB(elem);
570
+ };
571
+ DomHandler2.prototype.onopentag = function(name, attribs) {
572
+ var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : void 0;
573
+ var element = new node_js_1.Element(name, attribs, void 0, type);
574
+ this.addNode(element);
575
+ this.tagStack.push(element);
576
+ };
577
+ DomHandler2.prototype.ontext = function(data) {
578
+ var lastNode = this.lastNode;
579
+ if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {
580
+ lastNode.data += data;
581
+ if (this.options.withEndIndices) {
582
+ lastNode.endIndex = this.parser.endIndex;
583
+ }
584
+ } else {
585
+ var node2 = new node_js_1.Text(data);
586
+ this.addNode(node2);
587
+ this.lastNode = node2;
588
+ }
589
+ };
590
+ DomHandler2.prototype.oncomment = function(data) {
591
+ if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {
592
+ this.lastNode.data += data;
593
+ return;
594
+ }
595
+ var node2 = new node_js_1.Comment(data);
596
+ this.addNode(node2);
597
+ this.lastNode = node2;
598
+ };
599
+ DomHandler2.prototype.oncommentend = function() {
600
+ this.lastNode = null;
601
+ };
602
+ DomHandler2.prototype.oncdatastart = function() {
603
+ var text = new node_js_1.Text("");
604
+ var node2 = new node_js_1.CDATA([text]);
605
+ this.addNode(node2);
606
+ text.parent = node2;
607
+ this.lastNode = text;
608
+ };
609
+ DomHandler2.prototype.oncdataend = function() {
610
+ this.lastNode = null;
611
+ };
612
+ DomHandler2.prototype.onprocessinginstruction = function(name, data) {
613
+ var node2 = new node_js_1.ProcessingInstruction(name, data);
614
+ this.addNode(node2);
615
+ };
616
+ DomHandler2.prototype.handleCallback = function(error) {
617
+ if (typeof this.callback === "function") {
618
+ this.callback(error, this.dom);
619
+ } else if (error) {
620
+ throw error;
621
+ }
622
+ };
623
+ DomHandler2.prototype.addNode = function(node2) {
624
+ var parent = this.tagStack[this.tagStack.length - 1];
625
+ var previousSibling = parent.children[parent.children.length - 1];
626
+ if (this.options.withStartIndices) {
627
+ node2.startIndex = this.parser.startIndex;
628
+ }
629
+ if (this.options.withEndIndices) {
630
+ node2.endIndex = this.parser.endIndex;
631
+ }
632
+ parent.children.push(node2);
633
+ if (previousSibling) {
634
+ node2.prev = previousSibling;
635
+ previousSibling.next = node2;
636
+ }
637
+ node2.parent = parent;
638
+ this.lastNode = null;
639
+ };
640
+ return DomHandler2;
641
+ }()
642
+ );
643
+ exports.DomHandler = DomHandler;
644
+ exports.default = DomHandler;
645
+ })(lib$2);
646
+ return lib$2;
647
+ }
648
+ var constants = {};
649
+ var hasRequiredConstants;
650
+ function requireConstants() {
651
+ if (hasRequiredConstants) return constants;
652
+ hasRequiredConstants = 1;
653
+ (function(exports) {
654
+ Object.defineProperty(exports, "__esModule", { value: true });
655
+ exports.CARRIAGE_RETURN_PLACEHOLDER_REGEX = exports.CARRIAGE_RETURN_PLACEHOLDER = exports.CARRIAGE_RETURN_REGEX = exports.CARRIAGE_RETURN = exports.CASE_SENSITIVE_TAG_NAMES_MAP = exports.CASE_SENSITIVE_TAG_NAMES = void 0;
656
+ exports.CASE_SENSITIVE_TAG_NAMES = [
657
+ "animateMotion",
658
+ "animateTransform",
659
+ "clipPath",
660
+ "feBlend",
661
+ "feColorMatrix",
662
+ "feComponentTransfer",
663
+ "feComposite",
664
+ "feConvolveMatrix",
665
+ "feDiffuseLighting",
666
+ "feDisplacementMap",
667
+ "feDropShadow",
668
+ "feFlood",
669
+ "feFuncA",
670
+ "feFuncB",
671
+ "feFuncG",
672
+ "feFuncR",
673
+ "feGaussianBlur",
674
+ "feImage",
675
+ "feMerge",
676
+ "feMergeNode",
677
+ "feMorphology",
678
+ "feOffset",
679
+ "fePointLight",
680
+ "feSpecularLighting",
681
+ "feSpotLight",
682
+ "feTile",
683
+ "feTurbulence",
684
+ "foreignObject",
685
+ "linearGradient",
686
+ "radialGradient",
687
+ "textPath"
688
+ ];
689
+ exports.CASE_SENSITIVE_TAG_NAMES_MAP = exports.CASE_SENSITIVE_TAG_NAMES.reduce(function(accumulator, tagName) {
690
+ accumulator[tagName.toLowerCase()] = tagName;
691
+ return accumulator;
692
+ }, {});
693
+ exports.CARRIAGE_RETURN = "\r";
694
+ exports.CARRIAGE_RETURN_REGEX = new RegExp(exports.CARRIAGE_RETURN, "g");
695
+ exports.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(), "__");
696
+ exports.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(exports.CARRIAGE_RETURN_PLACEHOLDER, "g");
697
+ })(constants);
698
+ return constants;
699
+ }
700
+ var hasRequiredUtilities$2;
701
+ function requireUtilities$2() {
702
+ if (hasRequiredUtilities$2) return utilities$2;
703
+ hasRequiredUtilities$2 = 1;
704
+ Object.defineProperty(utilities$2, "__esModule", { value: true });
705
+ utilities$2.formatAttributes = formatAttributes;
706
+ utilities$2.escapeSpecialCharacters = escapeSpecialCharacters;
707
+ utilities$2.revertEscapedCharacters = revertEscapedCharacters;
708
+ utilities$2.formatDOM = formatDOM;
709
+ var domhandler_1 = /* @__PURE__ */ requireLib$2();
710
+ var constants_1 = requireConstants();
711
+ function getCaseSensitiveTagName(tagName) {
712
+ return constants_1.CASE_SENSITIVE_TAG_NAMES_MAP[tagName];
713
+ }
714
+ function formatAttributes(attributes) {
715
+ var map = {};
716
+ var index = 0;
717
+ var attributesLength = attributes.length;
718
+ for (; index < attributesLength; index++) {
719
+ var attribute = attributes[index];
720
+ map[attribute.name] = attribute.value;
721
+ }
722
+ return map;
723
+ }
724
+ function formatTagName(tagName) {
725
+ tagName = tagName.toLowerCase();
726
+ var caseSensitiveTagName = getCaseSensitiveTagName(tagName);
727
+ if (caseSensitiveTagName) {
728
+ return caseSensitiveTagName;
729
+ }
730
+ return tagName;
731
+ }
732
+ function escapeSpecialCharacters(html) {
733
+ return html.replace(constants_1.CARRIAGE_RETURN_REGEX, constants_1.CARRIAGE_RETURN_PLACEHOLDER);
734
+ }
735
+ function revertEscapedCharacters(text) {
736
+ return text.replace(constants_1.CARRIAGE_RETURN_PLACEHOLDER_REGEX, constants_1.CARRIAGE_RETURN);
737
+ }
738
+ function formatDOM(nodes, parent, directive) {
739
+ if (parent === void 0) {
740
+ parent = null;
741
+ }
742
+ var domNodes = [];
743
+ var current;
744
+ var index = 0;
745
+ var nodesLength = nodes.length;
746
+ for (; index < nodesLength; index++) {
747
+ var node2 = nodes[index];
748
+ switch (node2.nodeType) {
749
+ case 1: {
750
+ var tagName = formatTagName(node2.nodeName);
751
+ current = new domhandler_1.Element(tagName, formatAttributes(node2.attributes));
752
+ current.children = formatDOM(
753
+ // template children are on content
754
+ tagName === "template" ? node2.content.childNodes : node2.childNodes,
755
+ current
756
+ );
757
+ break;
758
+ }
759
+ case 3:
760
+ current = new domhandler_1.Text(revertEscapedCharacters(node2.nodeValue));
761
+ break;
762
+ case 8:
763
+ current = new domhandler_1.Comment(node2.nodeValue);
764
+ break;
765
+ default:
766
+ continue;
767
+ }
768
+ var prev = domNodes[index - 1] || null;
769
+ if (prev) {
770
+ prev.next = current;
771
+ }
772
+ current.parent = parent;
773
+ current.prev = prev;
774
+ current.next = null;
775
+ domNodes.push(current);
776
+ }
777
+ if (directive) {
778
+ current = new domhandler_1.ProcessingInstruction(directive.substring(0, directive.indexOf(" ")).toLowerCase(), directive);
779
+ current.next = domNodes[0] || null;
780
+ current.parent = parent;
781
+ domNodes.unshift(current);
782
+ if (domNodes[1]) {
783
+ domNodes[1].prev = domNodes[0];
784
+ }
785
+ }
786
+ return domNodes;
787
+ }
788
+ return utilities$2;
789
+ }
790
+ var hasRequiredDomparser;
791
+ function requireDomparser() {
792
+ if (hasRequiredDomparser) return domparser;
793
+ hasRequiredDomparser = 1;
794
+ Object.defineProperty(domparser, "__esModule", { value: true });
795
+ domparser.default = domparser$1;
796
+ var utilities_1 = requireUtilities$2();
797
+ var HTML = "html";
798
+ var HEAD = "head";
799
+ var BODY = "body";
800
+ var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
801
+ var HEAD_TAG_REGEX = /<head[^]*>/i;
802
+ var BODY_TAG_REGEX = /<body[^]*>/i;
803
+ var parseFromDocument = function(html, tagName) {
804
+ throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
805
+ };
806
+ var parseFromString = function(html, tagName) {
807
+ throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
808
+ };
809
+ var DOMParser = typeof window === "object" && window.DOMParser;
810
+ if (typeof DOMParser === "function") {
811
+ var domParser_1 = new DOMParser();
812
+ var mimeType_1 = "text/html";
813
+ parseFromString = function(html, tagName) {
814
+ if (tagName) {
815
+ html = "<".concat(tagName, ">").concat(html, "</").concat(tagName, ">");
816
+ }
817
+ return domParser_1.parseFromString(html, mimeType_1);
818
+ };
819
+ parseFromDocument = parseFromString;
820
+ }
821
+ if (typeof document === "object" && document.implementation) {
822
+ var htmlDocument_1 = document.implementation.createHTMLDocument();
823
+ parseFromDocument = function(html, tagName) {
824
+ if (tagName) {
825
+ var element = htmlDocument_1.documentElement.querySelector(tagName);
826
+ if (element) {
827
+ element.innerHTML = html;
828
+ }
829
+ return htmlDocument_1;
830
+ }
831
+ htmlDocument_1.documentElement.innerHTML = html;
832
+ return htmlDocument_1;
833
+ };
834
+ }
835
+ var template = typeof document === "object" && document.createElement("template");
836
+ var parseFromTemplate;
837
+ if (template && template.content) {
838
+ parseFromTemplate = function(html) {
839
+ template.innerHTML = html;
840
+ return template.content.childNodes;
841
+ };
842
+ }
843
+ function domparser$1(html) {
844
+ var _a, _b;
845
+ html = (0, utilities_1.escapeSpecialCharacters)(html);
846
+ var match = html.match(FIRST_TAG_REGEX);
847
+ var firstTagName = match && match[1] ? match[1].toLowerCase() : "";
848
+ switch (firstTagName) {
849
+ case HTML: {
850
+ var doc = parseFromString(html);
851
+ if (!HEAD_TAG_REGEX.test(html)) {
852
+ var element = doc.querySelector(HEAD);
853
+ (_a = element === null || element === void 0 ? void 0 : element.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(element);
854
+ }
855
+ if (!BODY_TAG_REGEX.test(html)) {
856
+ var element = doc.querySelector(BODY);
857
+ (_b = element === null || element === void 0 ? void 0 : element.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(element);
858
+ }
859
+ return doc.querySelectorAll(HTML);
860
+ }
861
+ case HEAD:
862
+ case BODY: {
863
+ var elements = parseFromDocument(html).querySelectorAll(firstTagName);
864
+ if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
865
+ return elements[0].parentNode.childNodes;
866
+ }
867
+ return elements;
868
+ }
869
+ // low-level tag or text
870
+ default: {
871
+ if (parseFromTemplate) {
872
+ return parseFromTemplate(html);
873
+ }
874
+ var element = parseFromDocument(html, BODY).querySelector(BODY);
875
+ return element.childNodes;
876
+ }
877
+ }
878
+ }
879
+ return domparser;
880
+ }
881
+ var hasRequiredHtmlToDom;
882
+ function requireHtmlToDom() {
883
+ if (hasRequiredHtmlToDom) return htmlToDom;
884
+ hasRequiredHtmlToDom = 1;
885
+ var __importDefault = htmlToDom && htmlToDom.__importDefault || function(mod) {
886
+ return mod && mod.__esModule ? mod : { "default": mod };
887
+ };
888
+ Object.defineProperty(htmlToDom, "__esModule", { value: true });
889
+ htmlToDom.default = HTMLDOMParser;
890
+ var domparser_1 = __importDefault(requireDomparser());
891
+ var utilities_1 = requireUtilities$2();
892
+ var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
893
+ function HTMLDOMParser(html) {
894
+ if (typeof html !== "string") {
895
+ throw new TypeError("First argument must be a string");
896
+ }
897
+ if (!html) {
898
+ return [];
899
+ }
900
+ var match = html.match(DIRECTIVE_REGEX);
901
+ var directive = match ? match[1] : void 0;
902
+ return (0, utilities_1.formatDOM)((0, domparser_1.default)(html), null, directive);
903
+ }
904
+ return htmlToDom;
905
+ }
906
+ var attributesToProps = {};
907
+ var lib = {};
908
+ var possibleStandardNamesOptimized = {};
909
+ var hasRequiredPossibleStandardNamesOptimized;
910
+ function requirePossibleStandardNamesOptimized() {
911
+ if (hasRequiredPossibleStandardNamesOptimized) return possibleStandardNamesOptimized;
912
+ hasRequiredPossibleStandardNamesOptimized = 1;
913
+ var SAME = 0;
914
+ possibleStandardNamesOptimized.SAME = SAME;
915
+ var CAMELCASE = 1;
916
+ possibleStandardNamesOptimized.CAMELCASE = CAMELCASE;
917
+ possibleStandardNamesOptimized.possibleStandardNames = {
918
+ accept: 0,
919
+ acceptCharset: 1,
920
+ "accept-charset": "acceptCharset",
921
+ accessKey: 1,
922
+ action: 0,
923
+ allowFullScreen: 1,
924
+ alt: 0,
925
+ as: 0,
926
+ async: 0,
927
+ autoCapitalize: 1,
928
+ autoComplete: 1,
929
+ autoCorrect: 1,
930
+ autoFocus: 1,
931
+ autoPlay: 1,
932
+ autoSave: 1,
933
+ capture: 0,
934
+ cellPadding: 1,
935
+ cellSpacing: 1,
936
+ challenge: 0,
937
+ charSet: 1,
938
+ checked: 0,
939
+ children: 0,
940
+ cite: 0,
941
+ class: "className",
942
+ classID: 1,
943
+ className: 1,
944
+ cols: 0,
945
+ colSpan: 1,
946
+ content: 0,
947
+ contentEditable: 1,
948
+ contextMenu: 1,
949
+ controls: 0,
950
+ controlsList: 1,
951
+ coords: 0,
952
+ crossOrigin: 1,
953
+ dangerouslySetInnerHTML: 1,
954
+ data: 0,
955
+ dateTime: 1,
956
+ default: 0,
957
+ defaultChecked: 1,
958
+ defaultValue: 1,
959
+ defer: 0,
960
+ dir: 0,
961
+ disabled: 0,
962
+ disablePictureInPicture: 1,
963
+ disableRemotePlayback: 1,
964
+ download: 0,
965
+ draggable: 0,
966
+ encType: 1,
967
+ enterKeyHint: 1,
968
+ for: "htmlFor",
969
+ form: 0,
970
+ formMethod: 1,
971
+ formAction: 1,
972
+ formEncType: 1,
973
+ formNoValidate: 1,
974
+ formTarget: 1,
975
+ frameBorder: 1,
976
+ headers: 0,
977
+ height: 0,
978
+ hidden: 0,
979
+ high: 0,
980
+ href: 0,
981
+ hrefLang: 1,
982
+ htmlFor: 1,
983
+ httpEquiv: 1,
984
+ "http-equiv": "httpEquiv",
985
+ icon: 0,
986
+ id: 0,
987
+ innerHTML: 1,
988
+ inputMode: 1,
989
+ integrity: 0,
990
+ is: 0,
991
+ itemID: 1,
992
+ itemProp: 1,
993
+ itemRef: 1,
994
+ itemScope: 1,
995
+ itemType: 1,
996
+ keyParams: 1,
997
+ keyType: 1,
998
+ kind: 0,
999
+ label: 0,
1000
+ lang: 0,
1001
+ list: 0,
1002
+ loop: 0,
1003
+ low: 0,
1004
+ manifest: 0,
1005
+ marginWidth: 1,
1006
+ marginHeight: 1,
1007
+ max: 0,
1008
+ maxLength: 1,
1009
+ media: 0,
1010
+ mediaGroup: 1,
1011
+ method: 0,
1012
+ min: 0,
1013
+ minLength: 1,
1014
+ multiple: 0,
1015
+ muted: 0,
1016
+ name: 0,
1017
+ noModule: 1,
1018
+ nonce: 0,
1019
+ noValidate: 1,
1020
+ open: 0,
1021
+ optimum: 0,
1022
+ pattern: 0,
1023
+ placeholder: 0,
1024
+ playsInline: 1,
1025
+ poster: 0,
1026
+ preload: 0,
1027
+ profile: 0,
1028
+ radioGroup: 1,
1029
+ readOnly: 1,
1030
+ referrerPolicy: 1,
1031
+ rel: 0,
1032
+ required: 0,
1033
+ reversed: 0,
1034
+ role: 0,
1035
+ rows: 0,
1036
+ rowSpan: 1,
1037
+ sandbox: 0,
1038
+ scope: 0,
1039
+ scoped: 0,
1040
+ scrolling: 0,
1041
+ seamless: 0,
1042
+ selected: 0,
1043
+ shape: 0,
1044
+ size: 0,
1045
+ sizes: 0,
1046
+ span: 0,
1047
+ spellCheck: 1,
1048
+ src: 0,
1049
+ srcDoc: 1,
1050
+ srcLang: 1,
1051
+ srcSet: 1,
1052
+ start: 0,
1053
+ step: 0,
1054
+ style: 0,
1055
+ summary: 0,
1056
+ tabIndex: 1,
1057
+ target: 0,
1058
+ title: 0,
1059
+ type: 0,
1060
+ useMap: 1,
1061
+ value: 0,
1062
+ width: 0,
1063
+ wmode: 0,
1064
+ wrap: 0,
1065
+ about: 0,
1066
+ accentHeight: 1,
1067
+ "accent-height": "accentHeight",
1068
+ accumulate: 0,
1069
+ additive: 0,
1070
+ alignmentBaseline: 1,
1071
+ "alignment-baseline": "alignmentBaseline",
1072
+ allowReorder: 1,
1073
+ alphabetic: 0,
1074
+ amplitude: 0,
1075
+ arabicForm: 1,
1076
+ "arabic-form": "arabicForm",
1077
+ ascent: 0,
1078
+ attributeName: 1,
1079
+ attributeType: 1,
1080
+ autoReverse: 1,
1081
+ azimuth: 0,
1082
+ baseFrequency: 1,
1083
+ baselineShift: 1,
1084
+ "baseline-shift": "baselineShift",
1085
+ baseProfile: 1,
1086
+ bbox: 0,
1087
+ begin: 0,
1088
+ bias: 0,
1089
+ by: 0,
1090
+ calcMode: 1,
1091
+ capHeight: 1,
1092
+ "cap-height": "capHeight",
1093
+ clip: 0,
1094
+ clipPath: 1,
1095
+ "clip-path": "clipPath",
1096
+ clipPathUnits: 1,
1097
+ clipRule: 1,
1098
+ "clip-rule": "clipRule",
1099
+ color: 0,
1100
+ colorInterpolation: 1,
1101
+ "color-interpolation": "colorInterpolation",
1102
+ colorInterpolationFilters: 1,
1103
+ "color-interpolation-filters": "colorInterpolationFilters",
1104
+ colorProfile: 1,
1105
+ "color-profile": "colorProfile",
1106
+ colorRendering: 1,
1107
+ "color-rendering": "colorRendering",
1108
+ contentScriptType: 1,
1109
+ contentStyleType: 1,
1110
+ cursor: 0,
1111
+ cx: 0,
1112
+ cy: 0,
1113
+ d: 0,
1114
+ datatype: 0,
1115
+ decelerate: 0,
1116
+ descent: 0,
1117
+ diffuseConstant: 1,
1118
+ direction: 0,
1119
+ display: 0,
1120
+ divisor: 0,
1121
+ dominantBaseline: 1,
1122
+ "dominant-baseline": "dominantBaseline",
1123
+ dur: 0,
1124
+ dx: 0,
1125
+ dy: 0,
1126
+ edgeMode: 1,
1127
+ elevation: 0,
1128
+ enableBackground: 1,
1129
+ "enable-background": "enableBackground",
1130
+ end: 0,
1131
+ exponent: 0,
1132
+ externalResourcesRequired: 1,
1133
+ fill: 0,
1134
+ fillOpacity: 1,
1135
+ "fill-opacity": "fillOpacity",
1136
+ fillRule: 1,
1137
+ "fill-rule": "fillRule",
1138
+ filter: 0,
1139
+ filterRes: 1,
1140
+ filterUnits: 1,
1141
+ floodOpacity: 1,
1142
+ "flood-opacity": "floodOpacity",
1143
+ floodColor: 1,
1144
+ "flood-color": "floodColor",
1145
+ focusable: 0,
1146
+ fontFamily: 1,
1147
+ "font-family": "fontFamily",
1148
+ fontSize: 1,
1149
+ "font-size": "fontSize",
1150
+ fontSizeAdjust: 1,
1151
+ "font-size-adjust": "fontSizeAdjust",
1152
+ fontStretch: 1,
1153
+ "font-stretch": "fontStretch",
1154
+ fontStyle: 1,
1155
+ "font-style": "fontStyle",
1156
+ fontVariant: 1,
1157
+ "font-variant": "fontVariant",
1158
+ fontWeight: 1,
1159
+ "font-weight": "fontWeight",
1160
+ format: 0,
1161
+ from: 0,
1162
+ fx: 0,
1163
+ fy: 0,
1164
+ g1: 0,
1165
+ g2: 0,
1166
+ glyphName: 1,
1167
+ "glyph-name": "glyphName",
1168
+ glyphOrientationHorizontal: 1,
1169
+ "glyph-orientation-horizontal": "glyphOrientationHorizontal",
1170
+ glyphOrientationVertical: 1,
1171
+ "glyph-orientation-vertical": "glyphOrientationVertical",
1172
+ glyphRef: 1,
1173
+ gradientTransform: 1,
1174
+ gradientUnits: 1,
1175
+ hanging: 0,
1176
+ horizAdvX: 1,
1177
+ "horiz-adv-x": "horizAdvX",
1178
+ horizOriginX: 1,
1179
+ "horiz-origin-x": "horizOriginX",
1180
+ ideographic: 0,
1181
+ imageRendering: 1,
1182
+ "image-rendering": "imageRendering",
1183
+ in2: 0,
1184
+ in: 0,
1185
+ inlist: 0,
1186
+ intercept: 0,
1187
+ k1: 0,
1188
+ k2: 0,
1189
+ k3: 0,
1190
+ k4: 0,
1191
+ k: 0,
1192
+ kernelMatrix: 1,
1193
+ kernelUnitLength: 1,
1194
+ kerning: 0,
1195
+ keyPoints: 1,
1196
+ keySplines: 1,
1197
+ keyTimes: 1,
1198
+ lengthAdjust: 1,
1199
+ letterSpacing: 1,
1200
+ "letter-spacing": "letterSpacing",
1201
+ lightingColor: 1,
1202
+ "lighting-color": "lightingColor",
1203
+ limitingConeAngle: 1,
1204
+ local: 0,
1205
+ markerEnd: 1,
1206
+ "marker-end": "markerEnd",
1207
+ markerHeight: 1,
1208
+ markerMid: 1,
1209
+ "marker-mid": "markerMid",
1210
+ markerStart: 1,
1211
+ "marker-start": "markerStart",
1212
+ markerUnits: 1,
1213
+ markerWidth: 1,
1214
+ mask: 0,
1215
+ maskContentUnits: 1,
1216
+ maskUnits: 1,
1217
+ mathematical: 0,
1218
+ mode: 0,
1219
+ numOctaves: 1,
1220
+ offset: 0,
1221
+ opacity: 0,
1222
+ operator: 0,
1223
+ order: 0,
1224
+ orient: 0,
1225
+ orientation: 0,
1226
+ origin: 0,
1227
+ overflow: 0,
1228
+ overlinePosition: 1,
1229
+ "overline-position": "overlinePosition",
1230
+ overlineThickness: 1,
1231
+ "overline-thickness": "overlineThickness",
1232
+ paintOrder: 1,
1233
+ "paint-order": "paintOrder",
1234
+ panose1: 0,
1235
+ "panose-1": "panose1",
1236
+ pathLength: 1,
1237
+ patternContentUnits: 1,
1238
+ patternTransform: 1,
1239
+ patternUnits: 1,
1240
+ pointerEvents: 1,
1241
+ "pointer-events": "pointerEvents",
1242
+ points: 0,
1243
+ pointsAtX: 1,
1244
+ pointsAtY: 1,
1245
+ pointsAtZ: 1,
1246
+ prefix: 0,
1247
+ preserveAlpha: 1,
1248
+ preserveAspectRatio: 1,
1249
+ primitiveUnits: 1,
1250
+ property: 0,
1251
+ r: 0,
1252
+ radius: 0,
1253
+ refX: 1,
1254
+ refY: 1,
1255
+ renderingIntent: 1,
1256
+ "rendering-intent": "renderingIntent",
1257
+ repeatCount: 1,
1258
+ repeatDur: 1,
1259
+ requiredExtensions: 1,
1260
+ requiredFeatures: 1,
1261
+ resource: 0,
1262
+ restart: 0,
1263
+ result: 0,
1264
+ results: 0,
1265
+ rotate: 0,
1266
+ rx: 0,
1267
+ ry: 0,
1268
+ scale: 0,
1269
+ security: 0,
1270
+ seed: 0,
1271
+ shapeRendering: 1,
1272
+ "shape-rendering": "shapeRendering",
1273
+ slope: 0,
1274
+ spacing: 0,
1275
+ specularConstant: 1,
1276
+ specularExponent: 1,
1277
+ speed: 0,
1278
+ spreadMethod: 1,
1279
+ startOffset: 1,
1280
+ stdDeviation: 1,
1281
+ stemh: 0,
1282
+ stemv: 0,
1283
+ stitchTiles: 1,
1284
+ stopColor: 1,
1285
+ "stop-color": "stopColor",
1286
+ stopOpacity: 1,
1287
+ "stop-opacity": "stopOpacity",
1288
+ strikethroughPosition: 1,
1289
+ "strikethrough-position": "strikethroughPosition",
1290
+ strikethroughThickness: 1,
1291
+ "strikethrough-thickness": "strikethroughThickness",
1292
+ string: 0,
1293
+ stroke: 0,
1294
+ strokeDasharray: 1,
1295
+ "stroke-dasharray": "strokeDasharray",
1296
+ strokeDashoffset: 1,
1297
+ "stroke-dashoffset": "strokeDashoffset",
1298
+ strokeLinecap: 1,
1299
+ "stroke-linecap": "strokeLinecap",
1300
+ strokeLinejoin: 1,
1301
+ "stroke-linejoin": "strokeLinejoin",
1302
+ strokeMiterlimit: 1,
1303
+ "stroke-miterlimit": "strokeMiterlimit",
1304
+ strokeWidth: 1,
1305
+ "stroke-width": "strokeWidth",
1306
+ strokeOpacity: 1,
1307
+ "stroke-opacity": "strokeOpacity",
1308
+ suppressContentEditableWarning: 1,
1309
+ suppressHydrationWarning: 1,
1310
+ surfaceScale: 1,
1311
+ systemLanguage: 1,
1312
+ tableValues: 1,
1313
+ targetX: 1,
1314
+ targetY: 1,
1315
+ textAnchor: 1,
1316
+ "text-anchor": "textAnchor",
1317
+ textDecoration: 1,
1318
+ "text-decoration": "textDecoration",
1319
+ textLength: 1,
1320
+ textRendering: 1,
1321
+ "text-rendering": "textRendering",
1322
+ to: 0,
1323
+ transform: 0,
1324
+ typeof: 0,
1325
+ u1: 0,
1326
+ u2: 0,
1327
+ underlinePosition: 1,
1328
+ "underline-position": "underlinePosition",
1329
+ underlineThickness: 1,
1330
+ "underline-thickness": "underlineThickness",
1331
+ unicode: 0,
1332
+ unicodeBidi: 1,
1333
+ "unicode-bidi": "unicodeBidi",
1334
+ unicodeRange: 1,
1335
+ "unicode-range": "unicodeRange",
1336
+ unitsPerEm: 1,
1337
+ "units-per-em": "unitsPerEm",
1338
+ unselectable: 0,
1339
+ vAlphabetic: 1,
1340
+ "v-alphabetic": "vAlphabetic",
1341
+ values: 0,
1342
+ vectorEffect: 1,
1343
+ "vector-effect": "vectorEffect",
1344
+ version: 0,
1345
+ vertAdvY: 1,
1346
+ "vert-adv-y": "vertAdvY",
1347
+ vertOriginX: 1,
1348
+ "vert-origin-x": "vertOriginX",
1349
+ vertOriginY: 1,
1350
+ "vert-origin-y": "vertOriginY",
1351
+ vHanging: 1,
1352
+ "v-hanging": "vHanging",
1353
+ vIdeographic: 1,
1354
+ "v-ideographic": "vIdeographic",
1355
+ viewBox: 1,
1356
+ viewTarget: 1,
1357
+ visibility: 0,
1358
+ vMathematical: 1,
1359
+ "v-mathematical": "vMathematical",
1360
+ vocab: 0,
1361
+ widths: 0,
1362
+ wordSpacing: 1,
1363
+ "word-spacing": "wordSpacing",
1364
+ writingMode: 1,
1365
+ "writing-mode": "writingMode",
1366
+ x1: 0,
1367
+ x2: 0,
1368
+ x: 0,
1369
+ xChannelSelector: 1,
1370
+ xHeight: 1,
1371
+ "x-height": "xHeight",
1372
+ xlinkActuate: 1,
1373
+ "xlink:actuate": "xlinkActuate",
1374
+ xlinkArcrole: 1,
1375
+ "xlink:arcrole": "xlinkArcrole",
1376
+ xlinkHref: 1,
1377
+ "xlink:href": "xlinkHref",
1378
+ xlinkRole: 1,
1379
+ "xlink:role": "xlinkRole",
1380
+ xlinkShow: 1,
1381
+ "xlink:show": "xlinkShow",
1382
+ xlinkTitle: 1,
1383
+ "xlink:title": "xlinkTitle",
1384
+ xlinkType: 1,
1385
+ "xlink:type": "xlinkType",
1386
+ xmlBase: 1,
1387
+ "xml:base": "xmlBase",
1388
+ xmlLang: 1,
1389
+ "xml:lang": "xmlLang",
1390
+ xmlns: 0,
1391
+ "xml:space": "xmlSpace",
1392
+ xmlnsXlink: 1,
1393
+ "xmlns:xlink": "xmlnsXlink",
1394
+ xmlSpace: 1,
1395
+ y1: 0,
1396
+ y2: 0,
1397
+ y: 0,
1398
+ yChannelSelector: 1,
1399
+ z: 0,
1400
+ zoomAndPan: 1
1401
+ };
1402
+ return possibleStandardNamesOptimized;
1403
+ }
1404
+ var hasRequiredLib$1;
1405
+ function requireLib$1() {
1406
+ if (hasRequiredLib$1) return lib;
1407
+ hasRequiredLib$1 = 1;
1408
+ const RESERVED = 0;
1409
+ const STRING = 1;
1410
+ const BOOLEANISH_STRING = 2;
1411
+ const BOOLEAN = 3;
1412
+ const OVERLOADED_BOOLEAN = 4;
1413
+ const NUMERIC = 5;
1414
+ const POSITIVE_NUMERIC = 6;
1415
+ function getPropertyInfo(name) {
1416
+ return properties.hasOwnProperty(name) ? properties[name] : null;
1417
+ }
1418
+ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
1419
+ this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
1420
+ this.attributeName = attributeName;
1421
+ this.attributeNamespace = attributeNamespace;
1422
+ this.mustUseProperty = mustUseProperty;
1423
+ this.propertyName = name;
1424
+ this.type = type;
1425
+ this.sanitizeURL = sanitizeURL;
1426
+ this.removeEmptyString = removeEmptyString;
1427
+ }
1428
+ const properties = {};
1429
+ const reservedProps = [
1430
+ "children",
1431
+ "dangerouslySetInnerHTML",
1432
+ // TODO: This prevents the assignment of defaultValue to regular
1433
+ // elements (not just inputs). Now that ReactDOMInput assigns to the
1434
+ // defaultValue property -- do we need this?
1435
+ "defaultValue",
1436
+ "defaultChecked",
1437
+ "innerHTML",
1438
+ "suppressContentEditableWarning",
1439
+ "suppressHydrationWarning",
1440
+ "style"
1441
+ ];
1442
+ reservedProps.forEach((name) => {
1443
+ properties[name] = new PropertyInfoRecord(
1444
+ name,
1445
+ RESERVED,
1446
+ false,
1447
+ // mustUseProperty
1448
+ name,
1449
+ // attributeName
1450
+ null,
1451
+ // attributeNamespace
1452
+ false,
1453
+ // sanitizeURL
1454
+ false
1455
+ // removeEmptyString
1456
+ );
1457
+ });
1458
+ [
1459
+ ["acceptCharset", "accept-charset"],
1460
+ ["className", "class"],
1461
+ ["htmlFor", "for"],
1462
+ ["httpEquiv", "http-equiv"]
1463
+ ].forEach(([name, attributeName]) => {
1464
+ properties[name] = new PropertyInfoRecord(
1465
+ name,
1466
+ STRING,
1467
+ false,
1468
+ // mustUseProperty
1469
+ attributeName,
1470
+ // attributeName
1471
+ null,
1472
+ // attributeNamespace
1473
+ false,
1474
+ // sanitizeURL
1475
+ false
1476
+ // removeEmptyString
1477
+ );
1478
+ });
1479
+ ["contentEditable", "draggable", "spellCheck", "value"].forEach((name) => {
1480
+ properties[name] = new PropertyInfoRecord(
1481
+ name,
1482
+ BOOLEANISH_STRING,
1483
+ false,
1484
+ // mustUseProperty
1485
+ name.toLowerCase(),
1486
+ // attributeName
1487
+ null,
1488
+ // attributeNamespace
1489
+ false,
1490
+ // sanitizeURL
1491
+ false
1492
+ // removeEmptyString
1493
+ );
1494
+ });
1495
+ [
1496
+ "autoReverse",
1497
+ "externalResourcesRequired",
1498
+ "focusable",
1499
+ "preserveAlpha"
1500
+ ].forEach((name) => {
1501
+ properties[name] = new PropertyInfoRecord(
1502
+ name,
1503
+ BOOLEANISH_STRING,
1504
+ false,
1505
+ // mustUseProperty
1506
+ name,
1507
+ // attributeName
1508
+ null,
1509
+ // attributeNamespace
1510
+ false,
1511
+ // sanitizeURL
1512
+ false
1513
+ // removeEmptyString
1514
+ );
1515
+ });
1516
+ [
1517
+ "allowFullScreen",
1518
+ "async",
1519
+ // Note: there is a special case that prevents it from being written to the DOM
1520
+ // on the client side because the browsers are inconsistent. Instead we call focus().
1521
+ "autoFocus",
1522
+ "autoPlay",
1523
+ "controls",
1524
+ "default",
1525
+ "defer",
1526
+ "disabled",
1527
+ "disablePictureInPicture",
1528
+ "disableRemotePlayback",
1529
+ "formNoValidate",
1530
+ "hidden",
1531
+ "loop",
1532
+ "noModule",
1533
+ "noValidate",
1534
+ "open",
1535
+ "playsInline",
1536
+ "readOnly",
1537
+ "required",
1538
+ "reversed",
1539
+ "scoped",
1540
+ "seamless",
1541
+ // Microdata
1542
+ "itemScope"
1543
+ ].forEach((name) => {
1544
+ properties[name] = new PropertyInfoRecord(
1545
+ name,
1546
+ BOOLEAN,
1547
+ false,
1548
+ // mustUseProperty
1549
+ name.toLowerCase(),
1550
+ // attributeName
1551
+ null,
1552
+ // attributeNamespace
1553
+ false,
1554
+ // sanitizeURL
1555
+ false
1556
+ // removeEmptyString
1557
+ );
1558
+ });
1559
+ [
1560
+ "checked",
1561
+ // Note: `option.selected` is not updated if `select.multiple` is
1562
+ // disabled with `removeAttribute`. We have special logic for handling this.
1563
+ "multiple",
1564
+ "muted",
1565
+ "selected"
1566
+ // NOTE: if you add a camelCased prop to this list,
1567
+ // you'll need to set attributeName to name.toLowerCase()
1568
+ // instead in the assignment below.
1569
+ ].forEach((name) => {
1570
+ properties[name] = new PropertyInfoRecord(
1571
+ name,
1572
+ BOOLEAN,
1573
+ true,
1574
+ // mustUseProperty
1575
+ name,
1576
+ // attributeName
1577
+ null,
1578
+ // attributeNamespace
1579
+ false,
1580
+ // sanitizeURL
1581
+ false
1582
+ // removeEmptyString
1583
+ );
1584
+ });
1585
+ [
1586
+ "capture",
1587
+ "download"
1588
+ // NOTE: if you add a camelCased prop to this list,
1589
+ // you'll need to set attributeName to name.toLowerCase()
1590
+ // instead in the assignment below.
1591
+ ].forEach((name) => {
1592
+ properties[name] = new PropertyInfoRecord(
1593
+ name,
1594
+ OVERLOADED_BOOLEAN,
1595
+ false,
1596
+ // mustUseProperty
1597
+ name,
1598
+ // attributeName
1599
+ null,
1600
+ // attributeNamespace
1601
+ false,
1602
+ // sanitizeURL
1603
+ false
1604
+ // removeEmptyString
1605
+ );
1606
+ });
1607
+ [
1608
+ "cols",
1609
+ "rows",
1610
+ "size",
1611
+ "span"
1612
+ // NOTE: if you add a camelCased prop to this list,
1613
+ // you'll need to set attributeName to name.toLowerCase()
1614
+ // instead in the assignment below.
1615
+ ].forEach((name) => {
1616
+ properties[name] = new PropertyInfoRecord(
1617
+ name,
1618
+ POSITIVE_NUMERIC,
1619
+ false,
1620
+ // mustUseProperty
1621
+ name,
1622
+ // attributeName
1623
+ null,
1624
+ // attributeNamespace
1625
+ false,
1626
+ // sanitizeURL
1627
+ false
1628
+ // removeEmptyString
1629
+ );
1630
+ });
1631
+ ["rowSpan", "start"].forEach((name) => {
1632
+ properties[name] = new PropertyInfoRecord(
1633
+ name,
1634
+ NUMERIC,
1635
+ false,
1636
+ // mustUseProperty
1637
+ name.toLowerCase(),
1638
+ // attributeName
1639
+ null,
1640
+ // attributeNamespace
1641
+ false,
1642
+ // sanitizeURL
1643
+ false
1644
+ // removeEmptyString
1645
+ );
1646
+ });
1647
+ const CAMELIZE = /[\-\:]([a-z])/g;
1648
+ const capitalize = (token) => token[1].toUpperCase();
1649
+ [
1650
+ "accent-height",
1651
+ "alignment-baseline",
1652
+ "arabic-form",
1653
+ "baseline-shift",
1654
+ "cap-height",
1655
+ "clip-path",
1656
+ "clip-rule",
1657
+ "color-interpolation",
1658
+ "color-interpolation-filters",
1659
+ "color-profile",
1660
+ "color-rendering",
1661
+ "dominant-baseline",
1662
+ "enable-background",
1663
+ "fill-opacity",
1664
+ "fill-rule",
1665
+ "flood-color",
1666
+ "flood-opacity",
1667
+ "font-family",
1668
+ "font-size",
1669
+ "font-size-adjust",
1670
+ "font-stretch",
1671
+ "font-style",
1672
+ "font-variant",
1673
+ "font-weight",
1674
+ "glyph-name",
1675
+ "glyph-orientation-horizontal",
1676
+ "glyph-orientation-vertical",
1677
+ "horiz-adv-x",
1678
+ "horiz-origin-x",
1679
+ "image-rendering",
1680
+ "letter-spacing",
1681
+ "lighting-color",
1682
+ "marker-end",
1683
+ "marker-mid",
1684
+ "marker-start",
1685
+ "overline-position",
1686
+ "overline-thickness",
1687
+ "paint-order",
1688
+ "panose-1",
1689
+ "pointer-events",
1690
+ "rendering-intent",
1691
+ "shape-rendering",
1692
+ "stop-color",
1693
+ "stop-opacity",
1694
+ "strikethrough-position",
1695
+ "strikethrough-thickness",
1696
+ "stroke-dasharray",
1697
+ "stroke-dashoffset",
1698
+ "stroke-linecap",
1699
+ "stroke-linejoin",
1700
+ "stroke-miterlimit",
1701
+ "stroke-opacity",
1702
+ "stroke-width",
1703
+ "text-anchor",
1704
+ "text-decoration",
1705
+ "text-rendering",
1706
+ "underline-position",
1707
+ "underline-thickness",
1708
+ "unicode-bidi",
1709
+ "unicode-range",
1710
+ "units-per-em",
1711
+ "v-alphabetic",
1712
+ "v-hanging",
1713
+ "v-ideographic",
1714
+ "v-mathematical",
1715
+ "vector-effect",
1716
+ "vert-adv-y",
1717
+ "vert-origin-x",
1718
+ "vert-origin-y",
1719
+ "word-spacing",
1720
+ "writing-mode",
1721
+ "xmlns:xlink",
1722
+ "x-height"
1723
+ // NOTE: if you add a camelCased prop to this list,
1724
+ // you'll need to set attributeName to name.toLowerCase()
1725
+ // instead in the assignment below.
1726
+ ].forEach((attributeName) => {
1727
+ const name = attributeName.replace(CAMELIZE, capitalize);
1728
+ properties[name] = new PropertyInfoRecord(
1729
+ name,
1730
+ STRING,
1731
+ false,
1732
+ // mustUseProperty
1733
+ attributeName,
1734
+ null,
1735
+ // attributeNamespace
1736
+ false,
1737
+ // sanitizeURL
1738
+ false
1739
+ // removeEmptyString
1740
+ );
1741
+ });
1742
+ [
1743
+ "xlink:actuate",
1744
+ "xlink:arcrole",
1745
+ "xlink:role",
1746
+ "xlink:show",
1747
+ "xlink:title",
1748
+ "xlink:type"
1749
+ // NOTE: if you add a camelCased prop to this list,
1750
+ // you'll need to set attributeName to name.toLowerCase()
1751
+ // instead in the assignment below.
1752
+ ].forEach((attributeName) => {
1753
+ const name = attributeName.replace(CAMELIZE, capitalize);
1754
+ properties[name] = new PropertyInfoRecord(
1755
+ name,
1756
+ STRING,
1757
+ false,
1758
+ // mustUseProperty
1759
+ attributeName,
1760
+ "http://www.w3.org/1999/xlink",
1761
+ false,
1762
+ // sanitizeURL
1763
+ false
1764
+ // removeEmptyString
1765
+ );
1766
+ });
1767
+ [
1768
+ "xml:base",
1769
+ "xml:lang",
1770
+ "xml:space"
1771
+ // NOTE: if you add a camelCased prop to this list,
1772
+ // you'll need to set attributeName to name.toLowerCase()
1773
+ // instead in the assignment below.
1774
+ ].forEach((attributeName) => {
1775
+ const name = attributeName.replace(CAMELIZE, capitalize);
1776
+ properties[name] = new PropertyInfoRecord(
1777
+ name,
1778
+ STRING,
1779
+ false,
1780
+ // mustUseProperty
1781
+ attributeName,
1782
+ "http://www.w3.org/XML/1998/namespace",
1783
+ false,
1784
+ // sanitizeURL
1785
+ false
1786
+ // removeEmptyString
1787
+ );
1788
+ });
1789
+ ["tabIndex", "crossOrigin"].forEach((attributeName) => {
1790
+ properties[attributeName] = new PropertyInfoRecord(
1791
+ attributeName,
1792
+ STRING,
1793
+ false,
1794
+ // mustUseProperty
1795
+ attributeName.toLowerCase(),
1796
+ // attributeName
1797
+ null,
1798
+ // attributeNamespace
1799
+ false,
1800
+ // sanitizeURL
1801
+ false
1802
+ // removeEmptyString
1803
+ );
1804
+ });
1805
+ const xlinkHref = "xlinkHref";
1806
+ properties[xlinkHref] = new PropertyInfoRecord(
1807
+ "xlinkHref",
1808
+ STRING,
1809
+ false,
1810
+ // mustUseProperty
1811
+ "xlink:href",
1812
+ "http://www.w3.org/1999/xlink",
1813
+ true,
1814
+ // sanitizeURL
1815
+ false
1816
+ // removeEmptyString
1817
+ );
1818
+ ["src", "href", "action", "formAction"].forEach((attributeName) => {
1819
+ properties[attributeName] = new PropertyInfoRecord(
1820
+ attributeName,
1821
+ STRING,
1822
+ false,
1823
+ // mustUseProperty
1824
+ attributeName.toLowerCase(),
1825
+ // attributeName
1826
+ null,
1827
+ // attributeNamespace
1828
+ true,
1829
+ // sanitizeURL
1830
+ true
1831
+ // removeEmptyString
1832
+ );
1833
+ });
1834
+ const {
1835
+ CAMELCASE,
1836
+ SAME,
1837
+ possibleStandardNames: possibleStandardNamesOptimized2
1838
+ } = requirePossibleStandardNamesOptimized();
1839
+ const ATTRIBUTE_NAME_START_CHAR = ":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";
1840
+ const ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
1841
+ const isCustomAttribute = RegExp.prototype.test.bind(
1842
+ // eslint-disable-next-line no-misleading-character-class
1843
+ new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
1844
+ );
1845
+ const possibleStandardNames = Object.keys(
1846
+ possibleStandardNamesOptimized2
1847
+ ).reduce((accumulator, standardName) => {
1848
+ const propName = possibleStandardNamesOptimized2[standardName];
1849
+ if (propName === SAME) {
1850
+ accumulator[standardName] = standardName;
1851
+ } else if (propName === CAMELCASE) {
1852
+ accumulator[standardName.toLowerCase()] = standardName;
1853
+ } else {
1854
+ accumulator[standardName] = propName;
1855
+ }
1856
+ return accumulator;
1857
+ }, {});
1858
+ lib.BOOLEAN = BOOLEAN;
1859
+ lib.BOOLEANISH_STRING = BOOLEANISH_STRING;
1860
+ lib.NUMERIC = NUMERIC;
1861
+ lib.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
1862
+ lib.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
1863
+ lib.RESERVED = RESERVED;
1864
+ lib.STRING = STRING;
1865
+ lib.getPropertyInfo = getPropertyInfo;
1866
+ lib.isCustomAttribute = isCustomAttribute;
1867
+ lib.possibleStandardNames = possibleStandardNames;
1868
+ return lib;
1869
+ }
1870
+ var utilities$1 = {};
1871
+ var cjs$1 = {};
1872
+ var inlineStyleParser;
1873
+ var hasRequiredInlineStyleParser;
1874
+ function requireInlineStyleParser() {
1875
+ if (hasRequiredInlineStyleParser) return inlineStyleParser;
1876
+ hasRequiredInlineStyleParser = 1;
1877
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
1878
+ var NEWLINE_REGEX = /\n/g;
1879
+ var WHITESPACE_REGEX = /^\s*/;
1880
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
1881
+ var COLON_REGEX = /^:\s*/;
1882
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
1883
+ var SEMICOLON_REGEX = /^[;\s]*/;
1884
+ var TRIM_REGEX = /^\s+|\s+$/g;
1885
+ var NEWLINE = "\n";
1886
+ var FORWARD_SLASH = "/";
1887
+ var ASTERISK = "*";
1888
+ var EMPTY_STRING = "";
1889
+ var TYPE_COMMENT = "comment";
1890
+ var TYPE_DECLARATION = "declaration";
1891
+ inlineStyleParser = function(style, options) {
1892
+ if (typeof style !== "string") {
1893
+ throw new TypeError("First argument must be a string");
1894
+ }
1895
+ if (!style) return [];
1896
+ options = options || {};
1897
+ var lineno = 1;
1898
+ var column = 1;
1899
+ function updatePosition(str) {
1900
+ var lines = str.match(NEWLINE_REGEX);
1901
+ if (lines) lineno += lines.length;
1902
+ var i = str.lastIndexOf(NEWLINE);
1903
+ column = ~i ? str.length - i : column + str.length;
1904
+ }
1905
+ function position() {
1906
+ var start = { line: lineno, column };
1907
+ return function(node2) {
1908
+ node2.position = new Position(start);
1909
+ whitespace();
1910
+ return node2;
1911
+ };
1912
+ }
1913
+ function Position(start) {
1914
+ this.start = start;
1915
+ this.end = { line: lineno, column };
1916
+ this.source = options.source;
1917
+ }
1918
+ Position.prototype.content = style;
1919
+ function error(msg) {
1920
+ var err = new Error(
1921
+ options.source + ":" + lineno + ":" + column + ": " + msg
1922
+ );
1923
+ err.reason = msg;
1924
+ err.filename = options.source;
1925
+ err.line = lineno;
1926
+ err.column = column;
1927
+ err.source = style;
1928
+ if (options.silent) ;
1929
+ else {
1930
+ throw err;
1931
+ }
1932
+ }
1933
+ function match(re) {
1934
+ var m = re.exec(style);
1935
+ if (!m) return;
1936
+ var str = m[0];
1937
+ updatePosition(str);
1938
+ style = style.slice(str.length);
1939
+ return m;
1940
+ }
1941
+ function whitespace() {
1942
+ match(WHITESPACE_REGEX);
1943
+ }
1944
+ function comments(rules) {
1945
+ var c;
1946
+ rules = rules || [];
1947
+ while (c = comment()) {
1948
+ if (c !== false) {
1949
+ rules.push(c);
1950
+ }
1951
+ }
1952
+ return rules;
1953
+ }
1954
+ function comment() {
1955
+ var pos = position();
1956
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
1957
+ var i = 2;
1958
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
1959
+ ++i;
1960
+ }
1961
+ i += 2;
1962
+ if (EMPTY_STRING === style.charAt(i - 1)) {
1963
+ return error("End of comment missing");
1964
+ }
1965
+ var str = style.slice(2, i - 2);
1966
+ column += 2;
1967
+ updatePosition(str);
1968
+ style = style.slice(i);
1969
+ column += 2;
1970
+ return pos({
1971
+ type: TYPE_COMMENT,
1972
+ comment: str
1973
+ });
1974
+ }
1975
+ function declaration() {
1976
+ var pos = position();
1977
+ var prop = match(PROPERTY_REGEX);
1978
+ if (!prop) return;
1979
+ comment();
1980
+ if (!match(COLON_REGEX)) return error("property missing ':'");
1981
+ var val = match(VALUE_REGEX);
1982
+ var ret = pos({
1983
+ type: TYPE_DECLARATION,
1984
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
1985
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
1986
+ });
1987
+ match(SEMICOLON_REGEX);
1988
+ return ret;
1989
+ }
1990
+ function declarations() {
1991
+ var decls = [];
1992
+ comments(decls);
1993
+ var decl;
1994
+ while (decl = declaration()) {
1995
+ if (decl !== false) {
1996
+ decls.push(decl);
1997
+ comments(decls);
1998
+ }
1999
+ }
2000
+ return decls;
2001
+ }
2002
+ whitespace();
2003
+ return declarations();
2004
+ };
2005
+ function trim(str) {
2006
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
2007
+ }
2008
+ return inlineStyleParser;
2009
+ }
2010
+ var hasRequiredCjs$1;
2011
+ function requireCjs$1() {
2012
+ if (hasRequiredCjs$1) return cjs$1;
2013
+ hasRequiredCjs$1 = 1;
2014
+ var __importDefault = cjs$1 && cjs$1.__importDefault || function(mod) {
2015
+ return mod && mod.__esModule ? mod : { "default": mod };
2016
+ };
2017
+ Object.defineProperty(cjs$1, "__esModule", { value: true });
2018
+ cjs$1.default = StyleToObject;
2019
+ var inline_style_parser_1 = __importDefault(requireInlineStyleParser());
2020
+ function StyleToObject(style, iterator) {
2021
+ var styleObject = null;
2022
+ if (!style || typeof style !== "string") {
2023
+ return styleObject;
2024
+ }
2025
+ var declarations = (0, inline_style_parser_1.default)(style);
2026
+ var hasIterator = typeof iterator === "function";
2027
+ declarations.forEach(function(declaration) {
2028
+ if (declaration.type !== "declaration") {
2029
+ return;
2030
+ }
2031
+ var property = declaration.property, value = declaration.value;
2032
+ if (hasIterator) {
2033
+ iterator(property, value, declaration);
2034
+ } else if (value) {
2035
+ styleObject = styleObject || {};
2036
+ styleObject[property] = value;
2037
+ }
2038
+ });
2039
+ return styleObject;
2040
+ }
2041
+ return cjs$1;
2042
+ }
2043
+ var utilities = {};
2044
+ var hasRequiredUtilities$1;
2045
+ function requireUtilities$1() {
2046
+ if (hasRequiredUtilities$1) return utilities;
2047
+ hasRequiredUtilities$1 = 1;
2048
+ Object.defineProperty(utilities, "__esModule", { value: true });
2049
+ utilities.camelCase = void 0;
2050
+ var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
2051
+ var HYPHEN_REGEX = /-([a-z])/g;
2052
+ var NO_HYPHEN_REGEX = /^[^-]+$/;
2053
+ var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
2054
+ var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
2055
+ var skipCamelCase = function(property) {
2056
+ return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
2057
+ };
2058
+ var capitalize = function(match, character) {
2059
+ return character.toUpperCase();
2060
+ };
2061
+ var trimHyphen = function(match, prefix) {
2062
+ return "".concat(prefix, "-");
2063
+ };
2064
+ var camelCase = function(property, options) {
2065
+ if (options === void 0) {
2066
+ options = {};
2067
+ }
2068
+ if (skipCamelCase(property)) {
2069
+ return property;
2070
+ }
2071
+ property = property.toLowerCase();
2072
+ if (options.reactCompat) {
2073
+ property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
2074
+ } else {
2075
+ property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
2076
+ }
2077
+ return property.replace(HYPHEN_REGEX, capitalize);
2078
+ };
2079
+ utilities.camelCase = camelCase;
2080
+ return utilities;
2081
+ }
2082
+ var cjs;
2083
+ var hasRequiredCjs;
2084
+ function requireCjs() {
2085
+ if (hasRequiredCjs) return cjs;
2086
+ hasRequiredCjs = 1;
2087
+ var __importDefault = cjs && cjs.__importDefault || function(mod) {
2088
+ return mod && mod.__esModule ? mod : { "default": mod };
2089
+ };
2090
+ var style_to_object_1 = __importDefault(requireCjs$1());
2091
+ var utilities_1 = requireUtilities$1();
2092
+ function StyleToJS(style, options) {
2093
+ var output = {};
2094
+ if (!style || typeof style !== "string") {
2095
+ return output;
2096
+ }
2097
+ (0, style_to_object_1.default)(style, function(property, value) {
2098
+ if (property && value) {
2099
+ output[(0, utilities_1.camelCase)(property, options)] = value;
2100
+ }
2101
+ });
2102
+ return output;
2103
+ }
2104
+ StyleToJS.default = StyleToJS;
2105
+ cjs = StyleToJS;
2106
+ return cjs;
2107
+ }
2108
+ var hasRequiredUtilities;
2109
+ function requireUtilities() {
2110
+ if (hasRequiredUtilities) return utilities$1;
2111
+ hasRequiredUtilities = 1;
2112
+ (function(exports) {
2113
+ var __importDefault = utilities$1 && utilities$1.__importDefault || function(mod) {
2114
+ return mod && mod.__esModule ? mod : { "default": mod };
2115
+ };
2116
+ Object.defineProperty(exports, "__esModule", { value: true });
2117
+ exports.returnFirstArg = exports.canTextBeChildOfNode = exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports.PRESERVE_CUSTOM_ATTRIBUTES = void 0;
2118
+ exports.isCustomComponent = isCustomComponent;
2119
+ exports.setStyleProp = setStyleProp;
2120
+ var react_1 = require$$0;
2121
+ var style_to_js_1 = __importDefault(requireCjs());
2122
+ var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
2123
+ "annotation-xml",
2124
+ "color-profile",
2125
+ "font-face",
2126
+ "font-face-src",
2127
+ "font-face-uri",
2128
+ "font-face-format",
2129
+ "font-face-name",
2130
+ "missing-glyph"
2131
+ ]);
2132
+ function isCustomComponent(tagName, props) {
2133
+ if (!tagName.includes("-")) {
2134
+ return Boolean(props && typeof props.is === "string");
2135
+ }
2136
+ if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName)) {
2137
+ return false;
2138
+ }
2139
+ return true;
2140
+ }
2141
+ var styleOptions = {
2142
+ reactCompat: true
2143
+ };
2144
+ function setStyleProp(style, props) {
2145
+ if (typeof style !== "string") {
2146
+ return;
2147
+ }
2148
+ if (!style.trim()) {
2149
+ props.style = {};
2150
+ return;
2151
+ }
2152
+ try {
2153
+ props.style = (0, style_to_js_1.default)(style, styleOptions);
2154
+ } catch (error) {
2155
+ props.style = {};
2156
+ }
2157
+ }
2158
+ exports.PRESERVE_CUSTOM_ATTRIBUTES = Number(react_1.version.split(".")[0]) >= 16;
2159
+ exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
2160
+ "tr",
2161
+ "tbody",
2162
+ "thead",
2163
+ "tfoot",
2164
+ "colgroup",
2165
+ "table",
2166
+ "head",
2167
+ "html",
2168
+ "frameset"
2169
+ ]);
2170
+ var canTextBeChildOfNode = function(node2) {
2171
+ return !exports.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
2172
+ };
2173
+ exports.canTextBeChildOfNode = canTextBeChildOfNode;
2174
+ var returnFirstArg = function(arg) {
2175
+ return arg;
2176
+ };
2177
+ exports.returnFirstArg = returnFirstArg;
2178
+ })(utilities$1);
2179
+ return utilities$1;
2180
+ }
2181
+ var hasRequiredAttributesToProps;
2182
+ function requireAttributesToProps() {
2183
+ if (hasRequiredAttributesToProps) return attributesToProps;
2184
+ hasRequiredAttributesToProps = 1;
2185
+ Object.defineProperty(attributesToProps, "__esModule", { value: true });
2186
+ attributesToProps.default = attributesToProps$1;
2187
+ var react_property_1 = requireLib$1();
2188
+ var utilities_1 = requireUtilities();
2189
+ var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
2190
+ var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
2191
+ var valueOnlyInputs = {
2192
+ reset: true,
2193
+ submit: true
2194
+ };
2195
+ function attributesToProps$1(attributes, nodeName) {
2196
+ if (attributes === void 0) {
2197
+ attributes = {};
2198
+ }
2199
+ var props = {};
2200
+ var isInputValueOnly = Boolean(attributes.type && valueOnlyInputs[attributes.type]);
2201
+ for (var attributeName in attributes) {
2202
+ var attributeValue = attributes[attributeName];
2203
+ if ((0, react_property_1.isCustomAttribute)(attributeName)) {
2204
+ props[attributeName] = attributeValue;
2205
+ continue;
2206
+ }
2207
+ var attributeNameLowerCased = attributeName.toLowerCase();
2208
+ var propName = getPropName(attributeNameLowerCased);
2209
+ if (propName) {
2210
+ var propertyInfo = (0, react_property_1.getPropertyInfo)(propName);
2211
+ if (UNCONTROLLED_COMPONENT_ATTRIBUTES.includes(propName) && UNCONTROLLED_COMPONENT_NAMES.includes(nodeName) && !isInputValueOnly) {
2212
+ propName = getPropName("default" + attributeNameLowerCased);
2213
+ }
2214
+ props[propName] = attributeValue;
2215
+ switch (propertyInfo && propertyInfo.type) {
2216
+ case react_property_1.BOOLEAN:
2217
+ props[propName] = true;
2218
+ break;
2219
+ case react_property_1.OVERLOADED_BOOLEAN:
2220
+ if (attributeValue === "") {
2221
+ props[propName] = true;
2222
+ }
2223
+ break;
2224
+ }
2225
+ continue;
2226
+ }
2227
+ if (utilities_1.PRESERVE_CUSTOM_ATTRIBUTES) {
2228
+ props[attributeName] = attributeValue;
2229
+ }
2230
+ }
2231
+ (0, utilities_1.setStyleProp)(attributes.style, props);
2232
+ return props;
2233
+ }
2234
+ function getPropName(attributeName) {
2235
+ return react_property_1.possibleStandardNames[attributeName];
2236
+ }
2237
+ return attributesToProps;
2238
+ }
2239
+ var domToReact = {};
2240
+ var hasRequiredDomToReact;
2241
+ function requireDomToReact() {
2242
+ if (hasRequiredDomToReact) return domToReact;
2243
+ hasRequiredDomToReact = 1;
2244
+ var __importDefault = domToReact && domToReact.__importDefault || function(mod) {
2245
+ return mod && mod.__esModule ? mod : { "default": mod };
2246
+ };
2247
+ Object.defineProperty(domToReact, "__esModule", { value: true });
2248
+ domToReact.default = domToReact$1;
2249
+ var react_1 = require$$0;
2250
+ var attributes_to_props_1 = __importDefault(requireAttributesToProps());
2251
+ var utilities_1 = requireUtilities();
2252
+ var React = {
2253
+ cloneElement: react_1.cloneElement,
2254
+ createElement: react_1.createElement,
2255
+ isValidElement: react_1.isValidElement
2256
+ };
2257
+ function domToReact$1(nodes, options) {
2258
+ if (options === void 0) {
2259
+ options = {};
2260
+ }
2261
+ var reactElements = [];
2262
+ var hasReplace = typeof options.replace === "function";
2263
+ var transform = options.transform || utilities_1.returnFirstArg;
2264
+ var _a = options.library || React, cloneElement = _a.cloneElement, createElement = _a.createElement, isValidElement = _a.isValidElement;
2265
+ var nodesLength = nodes.length;
2266
+ for (var index = 0; index < nodesLength; index++) {
2267
+ var node2 = nodes[index];
2268
+ if (hasReplace) {
2269
+ var replaceElement = options.replace(node2, index);
2270
+ if (isValidElement(replaceElement)) {
2271
+ if (nodesLength > 1) {
2272
+ replaceElement = cloneElement(replaceElement, {
2273
+ key: replaceElement.key || index
2274
+ });
2275
+ }
2276
+ reactElements.push(transform(replaceElement, node2, index));
2277
+ continue;
2278
+ }
2279
+ }
2280
+ if (node2.type === "text") {
2281
+ var isWhitespace = !node2.data.trim().length;
2282
+ if (isWhitespace && node2.parent && !(0, utilities_1.canTextBeChildOfNode)(node2.parent)) {
2283
+ continue;
2284
+ }
2285
+ if (options.trim && isWhitespace) {
2286
+ continue;
2287
+ }
2288
+ reactElements.push(transform(node2.data, node2, index));
2289
+ continue;
2290
+ }
2291
+ var element = node2;
2292
+ var props = {};
2293
+ if (skipAttributesToProps(element)) {
2294
+ (0, utilities_1.setStyleProp)(element.attribs.style, element.attribs);
2295
+ props = element.attribs;
2296
+ } else if (element.attribs) {
2297
+ props = (0, attributes_to_props_1.default)(element.attribs, element.name);
2298
+ }
2299
+ var children = void 0;
2300
+ switch (node2.type) {
2301
+ case "script":
2302
+ case "style":
2303
+ if (node2.children[0]) {
2304
+ props.dangerouslySetInnerHTML = {
2305
+ __html: node2.children[0].data
2306
+ };
2307
+ }
2308
+ break;
2309
+ case "tag":
2310
+ if (node2.name === "textarea" && node2.children[0]) {
2311
+ props.defaultValue = node2.children[0].data;
2312
+ } else if (node2.children && node2.children.length) {
2313
+ children = domToReact$1(node2.children, options);
2314
+ }
2315
+ break;
2316
+ // skip all other cases (e.g., comment)
2317
+ default:
2318
+ continue;
2319
+ }
2320
+ if (nodesLength > 1) {
2321
+ props.key = index;
2322
+ }
2323
+ reactElements.push(transform(createElement(node2.name, props, children), node2, index));
2324
+ }
2325
+ return reactElements.length === 1 ? reactElements[0] : reactElements;
2326
+ }
2327
+ function skipAttributesToProps(node2) {
2328
+ return utilities_1.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && (0, utilities_1.isCustomComponent)(node2.name, node2.attribs);
2329
+ }
2330
+ return domToReact;
2331
+ }
2332
+ var hasRequiredLib;
2333
+ function requireLib() {
2334
+ if (hasRequiredLib) return lib$3;
2335
+ hasRequiredLib = 1;
2336
+ (function(exports) {
2337
+ var __importDefault = lib$3 && lib$3.__importDefault || function(mod) {
2338
+ return mod && mod.__esModule ? mod : { "default": mod };
2339
+ };
2340
+ Object.defineProperty(exports, "__esModule", { value: true });
2341
+ exports.htmlToDOM = exports.domToReact = exports.attributesToProps = exports.Text = exports.ProcessingInstruction = exports.Element = exports.Comment = void 0;
2342
+ exports.default = HTMLReactParser2;
2343
+ var html_dom_parser_1 = __importDefault(requireHtmlToDom());
2344
+ exports.htmlToDOM = html_dom_parser_1.default;
2345
+ var attributes_to_props_1 = __importDefault(requireAttributesToProps());
2346
+ exports.attributesToProps = attributes_to_props_1.default;
2347
+ var dom_to_react_1 = __importDefault(requireDomToReact());
2348
+ exports.domToReact = dom_to_react_1.default;
2349
+ var domhandler_1 = /* @__PURE__ */ requireLib$2();
2350
+ Object.defineProperty(exports, "Comment", { enumerable: true, get: function() {
2351
+ return domhandler_1.Comment;
2352
+ } });
2353
+ Object.defineProperty(exports, "Element", { enumerable: true, get: function() {
2354
+ return domhandler_1.Element;
2355
+ } });
2356
+ Object.defineProperty(exports, "ProcessingInstruction", { enumerable: true, get: function() {
2357
+ return domhandler_1.ProcessingInstruction;
2358
+ } });
2359
+ Object.defineProperty(exports, "Text", { enumerable: true, get: function() {
2360
+ return domhandler_1.Text;
2361
+ } });
2362
+ var domParserOptions = { lowerCaseAttributeNames: false };
2363
+ function HTMLReactParser2(html, options) {
2364
+ if (typeof html !== "string") {
2365
+ throw new TypeError("First argument must be a string");
2366
+ }
2367
+ if (!html) {
2368
+ return [];
2369
+ }
2370
+ return (0, dom_to_react_1.default)((0, html_dom_parser_1.default)(html, (options === null || options === void 0 ? void 0 : options.htmlparser2) || domParserOptions), options);
2371
+ }
2372
+ })(lib$3);
2373
+ return lib$3;
2374
+ }
2375
+ var libExports = requireLib();
2376
+ const HTMLReactParser = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
2377
+ const parse = HTMLReactParser.default || HTMLReactParser;
2378
+ const renderInlineRichTextFromOpenText = (fromCms) => {
2379
+ if (typeof fromCms === "string") {
2380
+ return parse(fromCms);
2381
+ }
2382
+ if (Array.isArray(fromCms)) {
2383
+ return fromCms.map(renderInlineRichTextFromOpenText);
2384
+ }
2385
+ return fromCms;
2386
+ };
2387
+ const getSpacing = (spacing) => getCssVar(`spacing${spacing}`);
2388
+ const getBottomSpacing = ({
2389
+ bottomSpacing
2390
+ }) => {
2391
+ if (!bottomSpacing) {
2392
+ return {};
2393
+ }
2394
+ return {
2395
+ marginBottom: getSpacing(bottomSpacing)
2396
+ };
2397
+ };
2398
+ const baseWeight300 = "fontWeightLight";
2399
+ const baseWeight400 = "fontWeightRegular";
2400
+ const baseWeight700 = "fontWeightBold";
2401
+ const fontWeights = {
2402
+ light: baseWeight300,
2403
+ regular: baseWeight400,
2404
+ bold: baseWeight700
2405
+ };
2406
+ const getFontWeight = (weight) => getCssVar(fontWeights[weight]);
2407
+ const fontWeightBold = "bold";
2408
+ const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "corners", "description", "expanded", "filterItems", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "images", "isActive", "isChecked", "isDisabled", "isFullscreen", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "lg", "loadingSpinnerChild", "mapId", "md", "message", "more", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "screenReaderInstruction", "showList", "size", "sm", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "weight", "width"];
2409
+ const filterProps = (propsNotPassToDom = []) => {
2410
+ const shouldForwardProp = (prop) => {
2411
+ if ("string" !== typeof prop) {
2412
+ return false;
2413
+ }
2414
+ return ![...propsNotPassToDom, ...propsNotPassToDomDefault].includes(prop);
2415
+ };
2416
+ return shouldForwardProp;
2417
+ };
2418
+ const BodyStyled = styled.p.withConfig({
2419
+ shouldForwardProp: filterProps(),
2420
+ displayName: "BodyStyled",
2421
+ componentId: "sc-1n7n7pv-0"
2422
+ })({
2423
+ outline: "none",
2424
+ color: "inherit",
2425
+ verticalAlign: "baseline"
2426
+ }, ({
2427
+ size = textBodyMd
2428
+ }) => getBodySize(size), ({
2429
+ weight,
2430
+ tag
2431
+ }) => {
2432
+ if ("strong" === tag) {
2433
+ return {
2434
+ fontWeight: getFontWeight(fontWeightBold)
2435
+ };
2436
+ }
2437
+ if (!weight) {
2438
+ return {};
2439
+ }
2440
+ return {
2441
+ fontWeight: getFontWeight(weight)
2442
+ };
2443
+ }, ({
2444
+ tag
2445
+ }) => {
2446
+ if ("sup" === tag) {
2447
+ return {
2448
+ verticalAlign: "super",
2449
+ fontSize: "smaller"
2450
+ };
2451
+ }
2452
+ if ("span" === tag) {
2453
+ return {
2454
+ display: "inline-block"
2455
+ };
2456
+ }
2457
+ return {};
2458
+ }, ({
2459
+ align
2460
+ }) => ({
2461
+ textAlign: align
2462
+ }), getBottomSpacing);
2463
+ const bodyAlignLeft = "left";
2464
+ const bodyAlignCenter = "center";
2465
+ const bodyAlignRight = "right";
2466
+ const Body = ({
2467
+ tag = "p",
2468
+ bottomSpacing,
2469
+ ...props
2470
+ }) => {
2471
+ if (!bottomSpacing) {
2472
+ bottomSpacing = textBodySm === props.size ? spacingSm : spacingMd;
2473
+ }
2474
+ return /* @__PURE__ */ jsx(BodyStyled, { ...props, bottomSpacing, as: tag, tag, children: renderInlineRichTextFromOpenText(props.children) });
2475
+ };
2476
+ export {
2477
+ Body as B,
2478
+ getSpacing as a,
2479
+ bodyAlignLeft as b,
2480
+ bodyAlignCenter as c,
2481
+ bodyAlignRight as d,
2482
+ filterProps as f,
2483
+ getBottomSpacing as g,
2484
+ spacingNone as s
2485
+ };