fictoan-react 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/UseClickOutside-AZnVEg3i.js +1 -0
  2. package/dist/UseClickOutside-ILhCRGTV.cjs +1 -0
  3. package/dist/components/Accordion/Accordion.cjs +2 -1
  4. package/dist/components/Accordion/Accordion.js +26 -82
  5. package/dist/components/Accordion/index.cjs +1 -0
  6. package/dist/components/Accordion/index.js +1 -0
  7. package/dist/components/Badge/Badge.cjs +1 -0
  8. package/dist/components/Badge/Badge.js +1 -0
  9. package/dist/components/Badge/index.cjs +1 -0
  10. package/dist/components/Badge/index.js +1 -0
  11. package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.cjs +1 -0
  12. package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +1 -0
  13. package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.cjs +1 -0
  14. package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.js +1 -0
  15. package/dist/components/Breadcrumbs/index.cjs +1 -0
  16. package/dist/components/Breadcrumbs/index.js +1 -0
  17. package/dist/components/Button/Button.cjs +1 -0
  18. package/dist/components/Button/Button.js +1 -0
  19. package/dist/components/Button/index.cjs +1 -0
  20. package/dist/components/Button/index.js +1 -0
  21. package/dist/components/Callout/Callout.cjs +1 -0
  22. package/dist/components/Callout/Callout.js +1 -0
  23. package/dist/components/Callout/index.cjs +1 -0
  24. package/dist/components/Callout/index.js +1 -0
  25. package/dist/components/Card/Card.cjs +1 -0
  26. package/dist/components/Card/Card.js +1 -0
  27. package/dist/components/Card/index.cjs +1 -0
  28. package/dist/components/Card/index.js +1 -0
  29. package/dist/components/CodeBlock/CodeBlock.cjs +2 -1
  30. package/dist/components/CodeBlock/CodeBlock.js +755 -92
  31. package/dist/components/CodeBlock/index.cjs +2 -1
  32. package/dist/components/CodeBlock/index.js +2 -0
  33. package/dist/components/CodeBlock/prism.cjs +2 -0
  34. package/dist/components/CodeBlock/prism.d.ts +2 -0
  35. package/dist/components/CodeBlock/prism.js +5 -0
  36. package/dist/components/ContentWrapper/ContentWrapper.cjs +1 -0
  37. package/dist/components/ContentWrapper/ContentWrapper.js +1 -0
  38. package/dist/components/ContentWrapper/index.cjs +1 -0
  39. package/dist/components/ContentWrapper/index.js +1 -0
  40. package/dist/components/Divider/Divider.cjs +1 -0
  41. package/dist/components/Divider/Divider.js +1 -0
  42. package/dist/components/Divider/index.cjs +1 -0
  43. package/dist/components/Divider/index.js +1 -0
  44. package/dist/components/Drawer/Drawer.cjs +1 -0
  45. package/dist/components/Drawer/Drawer.js +1 -0
  46. package/dist/components/Drawer/index.cjs +1 -0
  47. package/dist/components/Drawer/index.js +1 -0
  48. package/dist/components/Element/Element.cjs +1 -0
  49. package/dist/components/Element/Element.js +1 -0
  50. package/dist/components/Element/Tags.cjs +2 -1
  51. package/dist/components/Element/Tags.d.ts +2 -1
  52. package/dist/components/Element/Tags.js +9 -7
  53. package/dist/components/Element/constants.cjs +1 -0
  54. package/dist/components/Element/constants.js +2 -1
  55. package/dist/components/Element/index.cjs +2 -1
  56. package/dist/components/Element/index.d.ts +1 -1
  57. package/dist/components/Element/index.js +4 -2
  58. package/dist/components/Form/BaseInputComponent/BaseInputComponent.cjs +1 -0
  59. package/dist/components/Form/BaseInputComponent/BaseInputComponent.js +1 -0
  60. package/dist/components/Form/BaseInputComponent/constants.cjs +1 -0
  61. package/dist/components/Form/BaseInputComponent/constants.js +2 -1
  62. package/dist/components/Form/Checkbox/Checkbox.cjs +1 -0
  63. package/dist/components/Form/Checkbox/Checkbox.js +1 -0
  64. package/dist/components/Form/Checkbox/Switch.cjs +1 -0
  65. package/dist/components/Form/Checkbox/Switch.js +1 -0
  66. package/dist/components/Form/Form/Form.cjs +1 -0
  67. package/dist/components/Form/Form/Form.js +1 -0
  68. package/dist/components/Form/Form/FormGenerator.cjs +1 -0
  69. package/dist/components/Form/Form/FormGenerator.js +1 -0
  70. package/dist/components/Form/FormItem/FormItem.cjs +1 -0
  71. package/dist/components/Form/FormItem/FormItem.js +1 -0
  72. package/dist/components/Form/FormItemGroup/FormItemGroup.cjs +1 -0
  73. package/dist/components/Form/FormItemGroup/FormItemGroup.js +1 -0
  74. package/dist/components/Form/InputField/FileUpload.cjs +1 -0
  75. package/dist/components/Form/InputField/FileUpload.js +1 -0
  76. package/dist/components/Form/InputField/InputField.cjs +1 -0
  77. package/dist/components/Form/InputField/InputField.js +1 -0
  78. package/dist/components/Form/InputLabel/InputLabel.cjs +1 -0
  79. package/dist/components/Form/InputLabel/InputLabel.js +1 -0
  80. package/dist/components/Form/PinInputField/PinInputField.cjs +1 -0
  81. package/dist/components/Form/PinInputField/PinInputField.js +1 -0
  82. package/dist/components/Form/PinInputField/index.cjs +1 -0
  83. package/dist/components/Form/PinInputField/index.js +1 -0
  84. package/dist/components/Form/RadioButton/RadioButton.cjs +1 -0
  85. package/dist/components/Form/RadioButton/RadioButton.js +1 -0
  86. package/dist/components/Form/RadioButton/RadioGroup.cjs +1 -0
  87. package/dist/components/Form/RadioButton/RadioGroup.js +1 -0
  88. package/dist/components/Form/RadioButton/RadioTabGroup.cjs +2 -1
  89. package/dist/components/Form/RadioButton/RadioTabGroup.js +32 -31
  90. package/dist/components/Form/RadioButton/constants.cjs +1 -0
  91. package/dist/components/Form/RadioButton/constants.js +2 -1
  92. package/dist/components/Form/Range/Range.cjs +1 -0
  93. package/dist/components/Form/Range/Range.js +1 -0
  94. package/dist/components/Form/Range/index.cjs +1 -0
  95. package/dist/components/Form/Range/index.js +1 -0
  96. package/dist/components/Form/Select/Select.cjs +1 -0
  97. package/dist/components/Form/Select/Select.js +1 -0
  98. package/dist/components/Form/Select/SelectWithSearch.cjs +1 -0
  99. package/dist/components/Form/Select/SelectWithSearch.js +1 -0
  100. package/dist/components/Form/Select/constants.cjs +1 -0
  101. package/dist/components/Form/Select/constants.js +2 -1
  102. package/dist/components/Form/TextArea/TextArea.cjs +1 -0
  103. package/dist/components/Form/TextArea/TextArea.js +1 -0
  104. package/dist/components/Form/index.cjs +1 -0
  105. package/dist/components/Form/index.js +1 -0
  106. package/dist/components/Meter/Meter.cjs +1 -0
  107. package/dist/components/Meter/Meter.js +1 -0
  108. package/dist/components/Meter/index.cjs +1 -0
  109. package/dist/components/Meter/index.js +1 -0
  110. package/dist/components/Notification/NotificationItem/NotificationItem.cjs +1 -0
  111. package/dist/components/Notification/NotificationItem/NotificationItem.js +1 -0
  112. package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.cjs +1 -0
  113. package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.js +1 -0
  114. package/dist/components/Notification/index.cjs +1 -0
  115. package/dist/components/Notification/index.js +1 -0
  116. package/dist/components/OptionCard/OptionCard.cjs +1 -0
  117. package/dist/components/OptionCard/OptionCard.js +1 -0
  118. package/dist/components/OptionCard/index.cjs +1 -0
  119. package/dist/components/OptionCard/index.js +1 -0
  120. package/dist/components/Portion/Portion.cjs +1 -0
  121. package/dist/components/Portion/Portion.js +1 -0
  122. package/dist/components/Portion/index.cjs +1 -0
  123. package/dist/components/Portion/index.js +1 -0
  124. package/dist/components/Portion/types.cjs +1 -0
  125. package/dist/components/Portion/types.js +2 -1
  126. package/dist/components/ProgressBar/ProgressBar.cjs +1 -0
  127. package/dist/components/ProgressBar/ProgressBar.js +1 -0
  128. package/dist/components/ProgressBar/index.cjs +1 -0
  129. package/dist/components/ProgressBar/index.js +1 -0
  130. package/dist/components/Row/Row.cjs +1 -0
  131. package/dist/components/Row/Row.js +1 -0
  132. package/dist/components/Row/index.cjs +1 -0
  133. package/dist/components/Row/index.js +1 -0
  134. package/dist/components/Sidebar/SidebarFooter/SidebarFooter.cjs +1 -0
  135. package/dist/components/Sidebar/SidebarFooter/SidebarFooter.js +1 -0
  136. package/dist/components/Sidebar/SidebarHeader/SidebarHeader.cjs +1 -0
  137. package/dist/components/Sidebar/SidebarHeader/SidebarHeader.js +1 -0
  138. package/dist/components/Sidebar/SidebarItem/SidebarItem.cjs +1 -0
  139. package/dist/components/Sidebar/SidebarItem/SidebarItem.js +1 -0
  140. package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.cjs +1 -0
  141. package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.js +1 -0
  142. package/dist/components/Sidebar/SidebarItemText/SidebarItemText.cjs +1 -0
  143. package/dist/components/Sidebar/SidebarItemText/SidebarItemText.js +1 -0
  144. package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.cjs +1 -0
  145. package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.js +1 -0
  146. package/dist/components/Sidebar/index.cjs +1 -0
  147. package/dist/components/Sidebar/index.js +1 -0
  148. package/dist/components/Spinner/Spinner.cjs +1 -0
  149. package/dist/components/Spinner/Spinner.js +1 -0
  150. package/dist/components/Spinner/index.cjs +1 -0
  151. package/dist/components/Spinner/index.js +1 -0
  152. package/dist/components/Table/Table.cjs +1 -0
  153. package/dist/components/Table/Table.js +1 -0
  154. package/dist/components/Table/TablePagination/TablePagination.cjs +1 -0
  155. package/dist/components/Table/TablePagination/TablePagination.js +1 -0
  156. package/dist/components/Table/index.cjs +1 -0
  157. package/dist/components/Table/index.js +1 -0
  158. package/dist/components/Tabs/Tabs.cjs +1 -0
  159. package/dist/components/Tabs/Tabs.js +1 -0
  160. package/dist/components/Tabs/index.cjs +1 -0
  161. package/dist/components/Tabs/index.js +1 -0
  162. package/dist/components/ThemeProvider/ThemeProvider.cjs +2 -1
  163. package/dist/components/ThemeProvider/ThemeProvider.d.ts +2 -6
  164. package/dist/components/ThemeProvider/ThemeProvider.js +69 -80
  165. package/dist/components/ThemeProvider/index.cjs +2 -1
  166. package/dist/components/ThemeProvider/index.d.ts +1 -1
  167. package/dist/components/ThemeProvider/index.js +4 -2
  168. package/dist/components/ThemeProvider/types.cjs +2 -0
  169. package/dist/components/ThemeProvider/types.d.ts +7 -0
  170. package/dist/components/ThemeProvider/types.js +2 -0
  171. package/dist/components/Toast/ToastItem/ToastItem.cjs +1 -0
  172. package/dist/components/Toast/ToastItem/ToastItem.js +1 -0
  173. package/dist/components/Toast/ToastsWrapper/ToastsWrapper.cjs +1 -0
  174. package/dist/components/Toast/ToastsWrapper/ToastsWrapper.js +1 -0
  175. package/dist/components/Toast/index.cjs +1 -0
  176. package/dist/components/Toast/index.js +1 -0
  177. package/dist/components/Typography/Heading.cjs +1 -0
  178. package/dist/components/Typography/Heading.js +1 -0
  179. package/dist/components/Typography/Text.cjs +1 -0
  180. package/dist/components/Typography/Text.js +1 -0
  181. package/dist/components/Typography/index.cjs +1 -0
  182. package/dist/components/Typography/index.js +1 -0
  183. package/dist/components/index.cjs +2 -1
  184. package/dist/components/index.d.ts +5 -5
  185. package/dist/components/index.js +7 -3
  186. package/dist/index.cjs +2 -1
  187. package/dist/index.css +1 -1
  188. package/dist/index.d.ts +6 -5
  189. package/dist/index.js +7 -2
  190. package/dist/prism-0Wl-n71z.js +1272 -0
  191. package/dist/prism-TTOBEoZv.cjs +2 -0
  192. package/package.json +1 -1
  193. package/CHANGELOG.md +0 -806
@@ -1,124 +1,787 @@
1
- import e, { useState as t, Suspense as r } from "react";
1
+ "use client";
2
+ import e, { useState as t } from "react";
2
3
  import { Element as n } from "../Element/Element.js";
3
- import { Button as o } from "../Button/Button.js";
4
- import { Badge as a } from "../Badge/Badge.js";
5
- var l = ["children", "source", "language", "showCopyButton", "showLineNumbers"];
6
- function i() {
7
- return i = Object.assign ? Object.assign.bind() : function(e2) {
4
+ import { Button as r } from "../Button/Button.js";
5
+ import { Badge as o } from "../Badge/Badge.js";
6
+ import { c as i, g as a, P as l } from "../../prism-0Wl-n71z.js";
7
+ var s = {}, c = {}, u = {};
8
+ Object.defineProperty(u, "__esModule", { value: true }), u.default = function(e4) {
9
+ var t2, n2, r2 = e4.match(h), o2 = r2 && r2[1] ? r2[1].toLowerCase() : "";
10
+ switch (o2) {
11
+ case p:
12
+ var i2 = v(e4);
13
+ if (!m.test(e4))
14
+ null === (t2 = null == (l2 = i2.querySelector(d)) ? void 0 : l2.parentNode) || void 0 === t2 || t2.removeChild(l2);
15
+ if (!y.test(e4))
16
+ null === (n2 = null == (l2 = i2.querySelector(f)) ? void 0 : l2.parentNode) || void 0 === n2 || n2.removeChild(l2);
17
+ return i2.querySelectorAll(p);
18
+ case d:
19
+ case f:
20
+ var a2 = g(e4).querySelectorAll(o2);
21
+ return y.test(e4) && m.test(e4) ? a2[0].parentNode.childNodes : a2;
22
+ default:
23
+ return T ? T(e4) : (l2 = g(e4, f).querySelector(f)).childNodes;
24
+ var l2;
25
+ }
26
+ };
27
+ var p = "html", d = "head", f = "body", h = /<([a-zA-Z]+[0-9]?)/, m = /<head[^]*>/i, y = /<body[^]*>/i, g = function(e4, t2) {
28
+ throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
29
+ }, v = function(e4, t2) {
30
+ throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
31
+ }, b = "object" == typeof window && window.DOMParser;
32
+ if ("function" == typeof b) {
33
+ var x = new b();
34
+ g = v = function(e4, t2) {
35
+ return t2 && (e4 = "<".concat(t2, ">").concat(e4, "</").concat(t2, ">")), x.parseFromString(e4, "text/html");
36
+ };
37
+ }
38
+ if ("object" == typeof document && document.implementation) {
39
+ var E = document.implementation.createHTMLDocument();
40
+ g = function(e4, t2) {
41
+ if (t2) {
42
+ var n2 = E.documentElement.querySelector(t2);
43
+ return n2 && (n2.innerHTML = e4), E;
44
+ }
45
+ return E.documentElement.innerHTML = e4, E;
46
+ };
47
+ }
48
+ var T, k = "object" == typeof document && document.createElement("template");
49
+ k && k.content && (T = function(e4) {
50
+ return k.innerHTML = e4, k.content.childNodes;
51
+ });
52
+ var w, S, C = {}, O = {}, _ = {};
53
+ w = _, Object.defineProperty(w, "__esModule", { value: true }), w.Doctype = w.CDATA = w.Tag = w.Style = w.Script = w.Comment = w.Directive = w.Text = w.Root = w.isTag = w.ElementType = void 0, function(e4) {
54
+ e4.Root = "root", e4.Text = "text", e4.Directive = "directive", e4.Comment = "comment", e4.Script = "script", e4.Style = "style", e4.Tag = "tag", e4.CDATA = "cdata", e4.Doctype = "doctype";
55
+ }(S = w.ElementType || (w.ElementType = {})), w.isTag = function(e4) {
56
+ return e4.type === S.Tag || e4.type === S.Script || e4.type === S.Style;
57
+ }, w.Root = S.Root, w.Text = S.Text, w.Directive = S.Directive, w.Comment = S.Comment, w.Script = S.Script, w.Style = S.Style, w.Tag = S.Tag, w.CDATA = S.CDATA, w.Doctype = S.Doctype;
58
+ var A, N = {}, P = i && i.__extends || (A = function(e4, t2) {
59
+ return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t3) {
60
+ e5.__proto__ = t3;
61
+ } || function(e5, t3) {
62
+ for (var n2 in t3)
63
+ Object.prototype.hasOwnProperty.call(t3, n2) && (e5[n2] = t3[n2]);
64
+ }, A(e4, t2);
65
+ }, function(e4, t2) {
66
+ if ("function" != typeof t2 && null !== t2)
67
+ throw new TypeError("Class extends value " + String(t2) + " is not a constructor or null");
68
+ function n2() {
69
+ this.constructor = e4;
70
+ }
71
+ A(e4, t2), e4.prototype = null === t2 ? Object.create(t2) : (n2.prototype = t2.prototype, new n2());
72
+ }), I = i && i.__assign || function() {
73
+ return I = Object.assign || function(e4) {
74
+ for (var t2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
75
+ for (var o2 in t2 = arguments[n2])
76
+ Object.prototype.hasOwnProperty.call(t2, o2) && (e4[o2] = t2[o2]);
77
+ return e4;
78
+ }, I.apply(this, arguments);
79
+ };
80
+ Object.defineProperty(N, "__esModule", { value: true }), N.cloneNode = N.hasChildren = N.isDocument = N.isDirective = N.isComment = N.isText = N.isCDATA = N.isTag = N.Element = N.Document = N.CDATA = N.NodeWithChildren = N.ProcessingInstruction = N.Comment = N.Text = N.DataNode = N.Node = void 0;
81
+ var M = _, D = function() {
82
+ function e4() {
83
+ this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
84
+ }
85
+ return Object.defineProperty(e4.prototype, "parentNode", { get: function() {
86
+ return this.parent;
87
+ }, set: function(e5) {
88
+ this.parent = e5;
89
+ }, enumerable: false, configurable: true }), Object.defineProperty(e4.prototype, "previousSibling", { get: function() {
90
+ return this.prev;
91
+ }, set: function(e5) {
92
+ this.prev = e5;
93
+ }, enumerable: false, configurable: true }), Object.defineProperty(e4.prototype, "nextSibling", { get: function() {
94
+ return this.next;
95
+ }, set: function(e5) {
96
+ this.next = e5;
97
+ }, enumerable: false, configurable: true }), e4.prototype.cloneNode = function(e5) {
98
+ return void 0 === e5 && (e5 = false), Z(this, e5);
99
+ }, e4;
100
+ }();
101
+ N.Node = D;
102
+ var j = function(e4) {
103
+ function t2(t3) {
104
+ var n2 = e4.call(this) || this;
105
+ return n2.data = t3, n2;
106
+ }
107
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeValue", { get: function() {
108
+ return this.data;
109
+ }, set: function(e5) {
110
+ this.data = e5;
111
+ }, enumerable: false, configurable: true }), t2;
112
+ }(D);
113
+ N.DataNode = j;
114
+ var R = function(e4) {
115
+ function t2() {
116
+ var t3 = null !== e4 && e4.apply(this, arguments) || this;
117
+ return t3.type = M.ElementType.Text, t3;
118
+ }
119
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeType", { get: function() {
120
+ return 3;
121
+ }, enumerable: false, configurable: true }), t2;
122
+ }(j);
123
+ N.Text = R;
124
+ var L = function(e4) {
125
+ function t2() {
126
+ var t3 = null !== e4 && e4.apply(this, arguments) || this;
127
+ return t3.type = M.ElementType.Comment, t3;
128
+ }
129
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeType", { get: function() {
130
+ return 8;
131
+ }, enumerable: false, configurable: true }), t2;
132
+ }(j);
133
+ N.Comment = L;
134
+ var F = function(e4) {
135
+ function t2(t3, n2) {
136
+ var r2 = e4.call(this, n2) || this;
137
+ return r2.name = t3, r2.type = M.ElementType.Directive, r2;
138
+ }
139
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeType", { get: function() {
140
+ return 1;
141
+ }, enumerable: false, configurable: true }), t2;
142
+ }(j);
143
+ N.ProcessingInstruction = F;
144
+ var B = function(e4) {
145
+ function t2(t3) {
146
+ var n2 = e4.call(this) || this;
147
+ return n2.children = t3, n2;
148
+ }
149
+ return P(t2, e4), Object.defineProperty(t2.prototype, "firstChild", { get: function() {
150
+ var e5;
151
+ return null !== (e5 = this.children[0]) && void 0 !== e5 ? e5 : null;
152
+ }, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "lastChild", { get: function() {
153
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
154
+ }, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "childNodes", { get: function() {
155
+ return this.children;
156
+ }, set: function(e5) {
157
+ this.children = e5;
158
+ }, enumerable: false, configurable: true }), t2;
159
+ }(D);
160
+ N.NodeWithChildren = B;
161
+ var z = function(e4) {
162
+ function t2() {
163
+ var t3 = null !== e4 && e4.apply(this, arguments) || this;
164
+ return t3.type = M.ElementType.CDATA, t3;
165
+ }
166
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeType", { get: function() {
167
+ return 4;
168
+ }, enumerable: false, configurable: true }), t2;
169
+ }(B);
170
+ N.CDATA = z;
171
+ var H = function(e4) {
172
+ function t2() {
173
+ var t3 = null !== e4 && e4.apply(this, arguments) || this;
174
+ return t3.type = M.ElementType.Root, t3;
175
+ }
176
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeType", { get: function() {
177
+ return 9;
178
+ }, enumerable: false, configurable: true }), t2;
179
+ }(B);
180
+ N.Document = H;
181
+ var V = function(e4) {
182
+ function t2(t3, n2, r2, o2) {
183
+ void 0 === r2 && (r2 = []), void 0 === o2 && (o2 = "script" === t3 ? M.ElementType.Script : "style" === t3 ? M.ElementType.Style : M.ElementType.Tag);
184
+ var i2 = e4.call(this, r2) || this;
185
+ return i2.name = t3, i2.attribs = n2, i2.type = o2, i2;
186
+ }
187
+ return P(t2, e4), Object.defineProperty(t2.prototype, "nodeType", { get: function() {
188
+ return 1;
189
+ }, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "tagName", { get: function() {
190
+ return this.name;
191
+ }, set: function(e5) {
192
+ this.name = e5;
193
+ }, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "attributes", { get: function() {
194
+ var e5 = this;
195
+ return Object.keys(this.attribs).map(function(t3) {
196
+ var n2, r2;
197
+ return { name: t3, value: e5.attribs[t3], namespace: null === (n2 = e5["x-attribsNamespace"]) || void 0 === n2 ? void 0 : n2[t3], prefix: null === (r2 = e5["x-attribsPrefix"]) || void 0 === r2 ? void 0 : r2[t3] };
198
+ });
199
+ }, enumerable: false, configurable: true }), t2;
200
+ }(B);
201
+ function U(e4) {
202
+ return (0, M.isTag)(e4);
203
+ }
204
+ function q(e4) {
205
+ return e4.type === M.ElementType.CDATA;
206
+ }
207
+ function W(e4) {
208
+ return e4.type === M.ElementType.Text;
209
+ }
210
+ function X(e4) {
211
+ return e4.type === M.ElementType.Comment;
212
+ }
213
+ function G(e4) {
214
+ return e4.type === M.ElementType.Directive;
215
+ }
216
+ function Y(e4) {
217
+ return e4.type === M.ElementType.Root;
218
+ }
219
+ function Z(e4, t2) {
220
+ var n2;
221
+ if (void 0 === t2 && (t2 = false), W(e4))
222
+ n2 = new R(e4.data);
223
+ else if (X(e4))
224
+ n2 = new L(e4.data);
225
+ else if (U(e4)) {
226
+ var r2 = t2 ? $(e4.children) : [], o2 = new V(e4.name, I({}, e4.attribs), r2);
227
+ r2.forEach(function(e5) {
228
+ return e5.parent = o2;
229
+ }), null != e4.namespace && (o2.namespace = e4.namespace), e4["x-attribsNamespace"] && (o2["x-attribsNamespace"] = I({}, e4["x-attribsNamespace"])), e4["x-attribsPrefix"] && (o2["x-attribsPrefix"] = I({}, e4["x-attribsPrefix"])), n2 = o2;
230
+ } else if (q(e4)) {
231
+ r2 = t2 ? $(e4.children) : [];
232
+ var i2 = new z(r2);
233
+ r2.forEach(function(e5) {
234
+ return e5.parent = i2;
235
+ }), n2 = i2;
236
+ } else if (Y(e4)) {
237
+ r2 = t2 ? $(e4.children) : [];
238
+ var a2 = new H(r2);
239
+ r2.forEach(function(e5) {
240
+ return e5.parent = a2;
241
+ }), e4["x-mode"] && (a2["x-mode"] = e4["x-mode"]), n2 = a2;
242
+ } else {
243
+ if (!G(e4))
244
+ throw new Error("Not implemented yet: ".concat(e4.type));
245
+ var l2 = new F(e4.name, e4.data);
246
+ null != e4["x-name"] && (l2["x-name"] = e4["x-name"], l2["x-publicId"] = e4["x-publicId"], l2["x-systemId"] = e4["x-systemId"]), n2 = l2;
247
+ }
248
+ return n2.startIndex = e4.startIndex, n2.endIndex = e4.endIndex, null != e4.sourceCodeLocation && (n2.sourceCodeLocation = e4.sourceCodeLocation), n2;
249
+ }
250
+ function $(e4) {
251
+ for (var t2 = e4.map(function(e5) {
252
+ return Z(e5, true);
253
+ }), n2 = 1; n2 < t2.length; n2++)
254
+ t2[n2].prev = t2[n2 - 1], t2[n2 - 1].next = t2[n2];
255
+ return t2;
256
+ }
257
+ N.Element = V, N.isTag = U, N.isCDATA = q, N.isText = W, N.isComment = X, N.isDirective = G, N.isDocument = Y, N.hasChildren = function(e4) {
258
+ return Object.prototype.hasOwnProperty.call(e4, "children");
259
+ }, N.cloneNode = Z, function(e4) {
260
+ var t2 = i && i.__createBinding || (Object.create ? function(e5, t3, n3, r3) {
261
+ void 0 === r3 && (r3 = n3);
262
+ var o3 = Object.getOwnPropertyDescriptor(t3, n3);
263
+ o3 && !("get" in o3 ? !t3.__esModule : o3.writable || o3.configurable) || (o3 = { enumerable: true, get: function() {
264
+ return t3[n3];
265
+ } }), Object.defineProperty(e5, r3, o3);
266
+ } : function(e5, t3, n3, r3) {
267
+ void 0 === r3 && (r3 = n3), e5[r3] = t3[n3];
268
+ }), n2 = i && i.__exportStar || function(e5, n3) {
269
+ for (var r3 in e5)
270
+ "default" === r3 || Object.prototype.hasOwnProperty.call(n3, r3) || t2(n3, e5, r3);
271
+ };
272
+ Object.defineProperty(e4, "__esModule", { value: true }), e4.DomHandler = void 0;
273
+ var r2 = _, o2 = N;
274
+ n2(N, e4);
275
+ var a2 = { withStartIndices: false, withEndIndices: false, xmlMode: false }, l2 = function() {
276
+ function e5(e6, t3, n3) {
277
+ this.dom = [], this.root = new o2.Document(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null, "function" == typeof t3 && (n3 = t3, t3 = a2), "object" == typeof e6 && (t3 = e6, e6 = void 0), this.callback = null != e6 ? e6 : null, this.options = null != t3 ? t3 : a2, this.elementCB = null != n3 ? n3 : null;
278
+ }
279
+ return e5.prototype.onparserinit = function(e6) {
280
+ this.parser = e6;
281
+ }, e5.prototype.onreset = function() {
282
+ this.dom = [], this.root = new o2.Document(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
283
+ }, e5.prototype.onend = function() {
284
+ this.done || (this.done = true, this.parser = null, this.handleCallback(null));
285
+ }, e5.prototype.onerror = function(e6) {
286
+ this.handleCallback(e6);
287
+ }, e5.prototype.onclosetag = function() {
288
+ this.lastNode = null;
289
+ var e6 = this.tagStack.pop();
290
+ this.options.withEndIndices && (e6.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(e6);
291
+ }, e5.prototype.onopentag = function(e6, t3) {
292
+ var n3 = this.options.xmlMode ? r2.ElementType.Tag : void 0, i2 = new o2.Element(e6, t3, void 0, n3);
293
+ this.addNode(i2), this.tagStack.push(i2);
294
+ }, e5.prototype.ontext = function(e6) {
295
+ var t3 = this.lastNode;
296
+ if (t3 && t3.type === r2.ElementType.Text)
297
+ t3.data += e6, this.options.withEndIndices && (t3.endIndex = this.parser.endIndex);
298
+ else {
299
+ var n3 = new o2.Text(e6);
300
+ this.addNode(n3), this.lastNode = n3;
301
+ }
302
+ }, e5.prototype.oncomment = function(e6) {
303
+ if (this.lastNode && this.lastNode.type === r2.ElementType.Comment)
304
+ this.lastNode.data += e6;
305
+ else {
306
+ var t3 = new o2.Comment(e6);
307
+ this.addNode(t3), this.lastNode = t3;
308
+ }
309
+ }, e5.prototype.oncommentend = function() {
310
+ this.lastNode = null;
311
+ }, e5.prototype.oncdatastart = function() {
312
+ var e6 = new o2.Text(""), t3 = new o2.CDATA([e6]);
313
+ this.addNode(t3), e6.parent = t3, this.lastNode = e6;
314
+ }, e5.prototype.oncdataend = function() {
315
+ this.lastNode = null;
316
+ }, e5.prototype.onprocessinginstruction = function(e6, t3) {
317
+ var n3 = new o2.ProcessingInstruction(e6, t3);
318
+ this.addNode(n3);
319
+ }, e5.prototype.handleCallback = function(e6) {
320
+ if ("function" == typeof this.callback)
321
+ this.callback(e6, this.dom);
322
+ else if (e6)
323
+ throw e6;
324
+ }, e5.prototype.addNode = function(e6) {
325
+ var t3 = this.tagStack[this.tagStack.length - 1], n3 = t3.children[t3.children.length - 1];
326
+ this.options.withStartIndices && (e6.startIndex = this.parser.startIndex), this.options.withEndIndices && (e6.endIndex = this.parser.endIndex), t3.children.push(e6), n3 && (e6.prev = n3, n3.next = e6), e6.parent = t3, this.lastNode = null;
327
+ }, e5;
328
+ }();
329
+ e4.DomHandler = l2, e4.default = l2;
330
+ }(O);
331
+ var K = {};
332
+ !function(e4) {
333
+ Object.defineProperty(e4, "__esModule", { value: true }), e4.CASE_SENSITIVE_TAG_NAMES_MAP = e4.CASE_SENSITIVE_TAG_NAMES = void 0, e4.CASE_SENSITIVE_TAG_NAMES = ["animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "linearGradient", "radialGradient", "textPath"], e4.CASE_SENSITIVE_TAG_NAMES_MAP = e4.CASE_SENSITIVE_TAG_NAMES.reduce(function(e5, t2) {
334
+ return e5[t2.toLowerCase()] = t2, e5;
335
+ }, {});
336
+ }(K), Object.defineProperty(C, "__esModule", { value: true }), C.formatAttributes = ee, C.formatDOM = function e2(t2, n2, r2) {
337
+ void 0 === n2 && (n2 = null);
338
+ for (var o2, i2 = [], a2 = 0, l2 = t2.length; a2 < l2; a2++) {
339
+ var s2 = t2[a2];
340
+ switch (s2.nodeType) {
341
+ case 1:
342
+ var c2 = te(s2.nodeName);
343
+ (o2 = new J.Element(c2, ee(s2.attributes))).children = e2("template" === c2 ? s2.content.childNodes : s2.childNodes, o2);
344
+ break;
345
+ case 3:
346
+ o2 = new J.Text(s2.nodeValue);
347
+ break;
348
+ case 8:
349
+ o2 = new J.Comment(s2.nodeValue);
350
+ break;
351
+ default:
352
+ continue;
353
+ }
354
+ var u2 = i2[a2 - 1] || null;
355
+ u2 && (u2.next = o2), o2.parent = n2, o2.prev = u2, o2.next = null, i2.push(o2);
356
+ }
357
+ r2 && ((o2 = new J.ProcessingInstruction(r2.substring(0, r2.indexOf(" ")).toLowerCase(), r2)).next = i2[0] || null, o2.parent = n2, i2.unshift(o2), i2[1] && (i2[1].prev = i2[0]));
358
+ return i2;
359
+ };
360
+ var J = O, Q = K;
361
+ function ee(e4) {
362
+ for (var t2 = {}, n2 = 0, r2 = e4.length; n2 < r2; n2++) {
363
+ var o2 = e4[n2];
364
+ t2[o2.name] = o2.value;
365
+ }
366
+ return t2;
367
+ }
368
+ function te(e4) {
369
+ var t2 = function(e5) {
370
+ return Q.CASE_SENSITIVE_TAG_NAMES_MAP[e5];
371
+ }(e4 = e4.toLowerCase());
372
+ return t2 || e4;
373
+ }
374
+ var ne = i && i.__importDefault || function(e4) {
375
+ return e4 && e4.__esModule ? e4 : { default: e4 };
376
+ };
377
+ Object.defineProperty(c, "__esModule", { value: true }), c.default = function(e4) {
378
+ if ("string" != typeof e4)
379
+ throw new TypeError("First argument must be a string");
380
+ if (!e4)
381
+ return [];
382
+ var t2 = e4.match(ie), n2 = t2 ? t2[1] : void 0;
383
+ return (0, oe.formatDOM)((0, re.default)(e4), null, n2);
384
+ };
385
+ var re = ne(u), oe = C, ie = /<(![a-zA-Z\s]+)>/;
386
+ var ae = {}, le = {}, se = {};
387
+ se.SAME = 0;
388
+ se.CAMELCASE = 1, se.possibleStandardNames = { accept: 0, acceptCharset: 1, "accept-charset": "acceptCharset", accessKey: 1, action: 0, allowFullScreen: 1, alt: 0, as: 0, async: 0, autoCapitalize: 1, autoComplete: 1, autoCorrect: 1, autoFocus: 1, autoPlay: 1, autoSave: 1, capture: 0, cellPadding: 1, cellSpacing: 1, challenge: 0, charSet: 1, checked: 0, children: 0, cite: 0, class: "className", classID: 1, className: 1, cols: 0, colSpan: 1, content: 0, contentEditable: 1, contextMenu: 1, controls: 0, controlsList: 1, coords: 0, crossOrigin: 1, dangerouslySetInnerHTML: 1, data: 0, dateTime: 1, default: 0, defaultChecked: 1, defaultValue: 1, defer: 0, dir: 0, disabled: 0, disablePictureInPicture: 1, disableRemotePlayback: 1, download: 0, draggable: 0, encType: 1, enterKeyHint: 1, for: "htmlFor", form: 0, formMethod: 1, formAction: 1, formEncType: 1, formNoValidate: 1, formTarget: 1, frameBorder: 1, headers: 0, height: 0, hidden: 0, high: 0, href: 0, hrefLang: 1, htmlFor: 1, httpEquiv: 1, "http-equiv": "httpEquiv", icon: 0, id: 0, innerHTML: 1, inputMode: 1, integrity: 0, is: 0, itemID: 1, itemProp: 1, itemRef: 1, itemScope: 1, itemType: 1, keyParams: 1, keyType: 1, kind: 0, label: 0, lang: 0, list: 0, loop: 0, low: 0, manifest: 0, marginWidth: 1, marginHeight: 1, max: 0, maxLength: 1, media: 0, mediaGroup: 1, method: 0, min: 0, minLength: 1, multiple: 0, muted: 0, name: 0, noModule: 1, nonce: 0, noValidate: 1, open: 0, optimum: 0, pattern: 0, placeholder: 0, playsInline: 1, poster: 0, preload: 0, profile: 0, radioGroup: 1, readOnly: 1, referrerPolicy: 1, rel: 0, required: 0, reversed: 0, role: 0, rows: 0, rowSpan: 1, sandbox: 0, scope: 0, scoped: 0, scrolling: 0, seamless: 0, selected: 0, shape: 0, size: 0, sizes: 0, span: 0, spellCheck: 1, src: 0, srcDoc: 1, srcLang: 1, srcSet: 1, start: 0, step: 0, style: 0, summary: 0, tabIndex: 1, target: 0, title: 0, type: 0, useMap: 1, value: 0, width: 0, wmode: 0, wrap: 0, about: 0, accentHeight: 1, "accent-height": "accentHeight", accumulate: 0, additive: 0, alignmentBaseline: 1, "alignment-baseline": "alignmentBaseline", allowReorder: 1, alphabetic: 0, amplitude: 0, arabicForm: 1, "arabic-form": "arabicForm", ascent: 0, attributeName: 1, attributeType: 1, autoReverse: 1, azimuth: 0, baseFrequency: 1, baselineShift: 1, "baseline-shift": "baselineShift", baseProfile: 1, bbox: 0, begin: 0, bias: 0, by: 0, calcMode: 1, capHeight: 1, "cap-height": "capHeight", clip: 0, clipPath: 1, "clip-path": "clipPath", clipPathUnits: 1, clipRule: 1, "clip-rule": "clipRule", color: 0, colorInterpolation: 1, "color-interpolation": "colorInterpolation", colorInterpolationFilters: 1, "color-interpolation-filters": "colorInterpolationFilters", colorProfile: 1, "color-profile": "colorProfile", colorRendering: 1, "color-rendering": "colorRendering", contentScriptType: 1, contentStyleType: 1, cursor: 0, cx: 0, cy: 0, d: 0, datatype: 0, decelerate: 0, descent: 0, diffuseConstant: 1, direction: 0, display: 0, divisor: 0, dominantBaseline: 1, "dominant-baseline": "dominantBaseline", dur: 0, dx: 0, dy: 0, edgeMode: 1, elevation: 0, enableBackground: 1, "enable-background": "enableBackground", end: 0, exponent: 0, externalResourcesRequired: 1, fill: 0, fillOpacity: 1, "fill-opacity": "fillOpacity", fillRule: 1, "fill-rule": "fillRule", filter: 0, filterRes: 1, filterUnits: 1, floodOpacity: 1, "flood-opacity": "floodOpacity", floodColor: 1, "flood-color": "floodColor", focusable: 0, fontFamily: 1, "font-family": "fontFamily", fontSize: 1, "font-size": "fontSize", fontSizeAdjust: 1, "font-size-adjust": "fontSizeAdjust", fontStretch: 1, "font-stretch": "fontStretch", fontStyle: 1, "font-style": "fontStyle", fontVariant: 1, "font-variant": "fontVariant", fontWeight: 1, "font-weight": "fontWeight", format: 0, from: 0, fx: 0, fy: 0, g1: 0, g2: 0, glyphName: 1, "glyph-name": "glyphName", glyphOrientationHorizontal: 1, "glyph-orientation-horizontal": "glyphOrientationHorizontal", glyphOrientationVertical: 1, "glyph-orientation-vertical": "glyphOrientationVertical", glyphRef: 1, gradientTransform: 1, gradientUnits: 1, hanging: 0, horizAdvX: 1, "horiz-adv-x": "horizAdvX", horizOriginX: 1, "horiz-origin-x": "horizOriginX", ideographic: 0, imageRendering: 1, "image-rendering": "imageRendering", in2: 0, in: 0, inlist: 0, intercept: 0, k1: 0, k2: 0, k3: 0, k4: 0, k: 0, kernelMatrix: 1, kernelUnitLength: 1, kerning: 0, keyPoints: 1, keySplines: 1, keyTimes: 1, lengthAdjust: 1, letterSpacing: 1, "letter-spacing": "letterSpacing", lightingColor: 1, "lighting-color": "lightingColor", limitingConeAngle: 1, local: 0, markerEnd: 1, "marker-end": "markerEnd", markerHeight: 1, markerMid: 1, "marker-mid": "markerMid", markerStart: 1, "marker-start": "markerStart", markerUnits: 1, markerWidth: 1, mask: 0, maskContentUnits: 1, maskUnits: 1, mathematical: 0, mode: 0, numOctaves: 1, offset: 0, opacity: 0, operator: 0, order: 0, orient: 0, orientation: 0, origin: 0, overflow: 0, overlinePosition: 1, "overline-position": "overlinePosition", overlineThickness: 1, "overline-thickness": "overlineThickness", paintOrder: 1, "paint-order": "paintOrder", panose1: 0, "panose-1": "panose1", pathLength: 1, patternContentUnits: 1, patternTransform: 1, patternUnits: 1, pointerEvents: 1, "pointer-events": "pointerEvents", points: 0, pointsAtX: 1, pointsAtY: 1, pointsAtZ: 1, prefix: 0, preserveAlpha: 1, preserveAspectRatio: 1, primitiveUnits: 1, property: 0, r: 0, radius: 0, refX: 1, refY: 1, renderingIntent: 1, "rendering-intent": "renderingIntent", repeatCount: 1, repeatDur: 1, requiredExtensions: 1, requiredFeatures: 1, resource: 0, restart: 0, result: 0, results: 0, rotate: 0, rx: 0, ry: 0, scale: 0, security: 0, seed: 0, shapeRendering: 1, "shape-rendering": "shapeRendering", slope: 0, spacing: 0, specularConstant: 1, specularExponent: 1, speed: 0, spreadMethod: 1, startOffset: 1, stdDeviation: 1, stemh: 0, stemv: 0, stitchTiles: 1, stopColor: 1, "stop-color": "stopColor", stopOpacity: 1, "stop-opacity": "stopOpacity", strikethroughPosition: 1, "strikethrough-position": "strikethroughPosition", strikethroughThickness: 1, "strikethrough-thickness": "strikethroughThickness", string: 0, stroke: 0, strokeDasharray: 1, "stroke-dasharray": "strokeDasharray", strokeDashoffset: 1, "stroke-dashoffset": "strokeDashoffset", strokeLinecap: 1, "stroke-linecap": "strokeLinecap", strokeLinejoin: 1, "stroke-linejoin": "strokeLinejoin", strokeMiterlimit: 1, "stroke-miterlimit": "strokeMiterlimit", strokeWidth: 1, "stroke-width": "strokeWidth", strokeOpacity: 1, "stroke-opacity": "strokeOpacity", suppressContentEditableWarning: 1, suppressHydrationWarning: 1, surfaceScale: 1, systemLanguage: 1, tableValues: 1, targetX: 1, targetY: 1, textAnchor: 1, "text-anchor": "textAnchor", textDecoration: 1, "text-decoration": "textDecoration", textLength: 1, textRendering: 1, "text-rendering": "textRendering", to: 0, transform: 0, typeof: 0, u1: 0, u2: 0, underlinePosition: 1, "underline-position": "underlinePosition", underlineThickness: 1, "underline-thickness": "underlineThickness", unicode: 0, unicodeBidi: 1, "unicode-bidi": "unicodeBidi", unicodeRange: 1, "unicode-range": "unicodeRange", unitsPerEm: 1, "units-per-em": "unitsPerEm", unselectable: 0, vAlphabetic: 1, "v-alphabetic": "vAlphabetic", values: 0, vectorEffect: 1, "vector-effect": "vectorEffect", version: 0, vertAdvY: 1, "vert-adv-y": "vertAdvY", vertOriginX: 1, "vert-origin-x": "vertOriginX", vertOriginY: 1, "vert-origin-y": "vertOriginY", vHanging: 1, "v-hanging": "vHanging", vIdeographic: 1, "v-ideographic": "vIdeographic", viewBox: 1, viewTarget: 1, visibility: 0, vMathematical: 1, "v-mathematical": "vMathematical", vocab: 0, widths: 0, wordSpacing: 1, "word-spacing": "wordSpacing", writingMode: 1, "writing-mode": "writingMode", x1: 0, x2: 0, x: 0, xChannelSelector: 1, xHeight: 1, "x-height": "xHeight", xlinkActuate: 1, "xlink:actuate": "xlinkActuate", xlinkArcrole: 1, "xlink:arcrole": "xlinkArcrole", xlinkHref: 1, "xlink:href": "xlinkHref", xlinkRole: 1, "xlink:role": "xlinkRole", xlinkShow: 1, "xlink:show": "xlinkShow", xlinkTitle: 1, "xlink:title": "xlinkTitle", xlinkType: 1, "xlink:type": "xlinkType", xmlBase: 1, "xml:base": "xmlBase", xmlLang: 1, "xml:lang": "xmlLang", xmlns: 0, "xml:space": "xmlSpace", xmlnsXlink: 1, "xmlns:xlink": "xmlnsXlink", xmlSpace: 1, y1: 0, y2: 0, y: 0, yChannelSelector: 1, z: 0, zoomAndPan: 1 };
389
+ function ce(e4, t2, n2, r2, o2, i2, a2) {
390
+ this.acceptsBooleans = 2 === t2 || 3 === t2 || 4 === t2, this.attributeName = r2, this.attributeNamespace = o2, this.mustUseProperty = n2, this.propertyName = e4, this.type = t2, this.sanitizeURL = i2, this.removeEmptyString = a2;
391
+ }
392
+ const ue = {};
393
+ ["children", "dangerouslySetInnerHTML", "defaultValue", "defaultChecked", "innerHTML", "suppressContentEditableWarning", "suppressHydrationWarning", "style"].forEach((e4) => {
394
+ ue[e4] = new ce(e4, 0, false, e4, null, false, false);
395
+ }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(([e4, t2]) => {
396
+ ue[e4] = new ce(e4, 1, false, t2, null, false, false);
397
+ }), ["contentEditable", "draggable", "spellCheck", "value"].forEach((e4) => {
398
+ ue[e4] = new ce(e4, 2, false, e4.toLowerCase(), null, false, false);
399
+ }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach((e4) => {
400
+ ue[e4] = new ce(e4, 2, false, e4, null, false, false);
401
+ }), ["allowFullScreen", "async", "autoFocus", "autoPlay", "controls", "default", "defer", "disabled", "disablePictureInPicture", "disableRemotePlayback", "formNoValidate", "hidden", "loop", "noModule", "noValidate", "open", "playsInline", "readOnly", "required", "reversed", "scoped", "seamless", "itemScope"].forEach((e4) => {
402
+ ue[e4] = new ce(e4, 3, false, e4.toLowerCase(), null, false, false);
403
+ }), ["checked", "multiple", "muted", "selected"].forEach((e4) => {
404
+ ue[e4] = new ce(e4, 3, true, e4, null, false, false);
405
+ }), ["capture", "download"].forEach((e4) => {
406
+ ue[e4] = new ce(e4, 4, false, e4, null, false, false);
407
+ }), ["cols", "rows", "size", "span"].forEach((e4) => {
408
+ ue[e4] = new ce(e4, 6, false, e4, null, false, false);
409
+ }), ["rowSpan", "start"].forEach((e4) => {
410
+ ue[e4] = new ce(e4, 5, false, e4.toLowerCase(), null, false, false);
411
+ });
412
+ const pe = /[\-\:]([a-z])/g, de = (e4) => e4[1].toUpperCase();
413
+ ["accent-height", "alignment-baseline", "arabic-form", "baseline-shift", "cap-height", "clip-path", "clip-rule", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "dominant-baseline", "enable-background", "fill-opacity", "fill-rule", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "glyph-name", "glyph-orientation-horizontal", "glyph-orientation-vertical", "horiz-adv-x", "horiz-origin-x", "image-rendering", "letter-spacing", "lighting-color", "marker-end", "marker-mid", "marker-start", "overline-position", "overline-thickness", "paint-order", "panose-1", "pointer-events", "rendering-intent", "shape-rendering", "stop-color", "stop-opacity", "strikethrough-position", "strikethrough-thickness", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-anchor", "text-decoration", "text-rendering", "underline-position", "underline-thickness", "unicode-bidi", "unicode-range", "units-per-em", "v-alphabetic", "v-hanging", "v-ideographic", "v-mathematical", "vector-effect", "vert-adv-y", "vert-origin-x", "vert-origin-y", "word-spacing", "writing-mode", "xmlns:xlink", "x-height"].forEach((e4) => {
414
+ const t2 = e4.replace(pe, de);
415
+ ue[t2] = new ce(t2, 1, false, e4, null, false, false);
416
+ }), ["xlink:actuate", "xlink:arcrole", "xlink:role", "xlink:show", "xlink:title", "xlink:type"].forEach((e4) => {
417
+ const t2 = e4.replace(pe, de);
418
+ ue[t2] = new ce(t2, 1, false, e4, "http://www.w3.org/1999/xlink", false, false);
419
+ }), ["xml:base", "xml:lang", "xml:space"].forEach((e4) => {
420
+ const t2 = e4.replace(pe, de);
421
+ ue[t2] = new ce(t2, 1, false, e4, "http://www.w3.org/XML/1998/namespace", false, false);
422
+ }), ["tabIndex", "crossOrigin"].forEach((e4) => {
423
+ ue[e4] = new ce(e4, 1, false, e4.toLowerCase(), null, false, false);
424
+ });
425
+ ue.xlinkHref = new ce("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false), ["src", "href", "action", "formAction"].forEach((e4) => {
426
+ ue[e4] = new ce(e4, 1, false, e4.toLowerCase(), null, true, true);
427
+ });
428
+ const { CAMELCASE: fe, SAME: he, possibleStandardNames: me } = se, ye = RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")), ge = Object.keys(me).reduce((e4, t2) => {
429
+ const n2 = me[t2];
430
+ return n2 === he ? e4[t2] = t2 : n2 === fe ? e4[t2.toLowerCase()] = t2 : e4[t2] = n2, e4;
431
+ }, {});
432
+ le.BOOLEAN = 3, le.BOOLEANISH_STRING = 2, le.NUMERIC = 5, le.OVERLOADED_BOOLEAN = 4, le.POSITIVE_NUMERIC = 6, le.RESERVED = 0, le.STRING = 1, le.getPropertyInfo = function(e4) {
433
+ return ue.hasOwnProperty(e4) ? ue[e4] : null;
434
+ }, le.isCustomAttribute = ye, le.possibleStandardNames = ge;
435
+ var ve = {}, be = {}, xe = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ee = /\n/g, Te = /^\s*/, ke = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, we = /^:\s*/, Se = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ce = /^[;\s]*/, Oe = /^\s+|\s+$/g, _e = "";
436
+ function Ae(e4) {
437
+ return e4 ? e4.replace(Oe, _e) : _e;
438
+ }
439
+ var Ne = i && i.__importDefault || function(e4) {
440
+ return e4 && e4.__esModule ? e4 : { default: e4 };
441
+ };
442
+ Object.defineProperty(be, "__esModule", { value: true });
443
+ var Pe = Ne(function(e4, t2) {
444
+ if ("string" != typeof e4)
445
+ throw new TypeError("First argument must be a string");
446
+ if (!e4)
447
+ return [];
448
+ t2 = t2 || {};
449
+ var n2 = 1, r2 = 1;
450
+ function o2(e5) {
451
+ var t3 = e5.match(Ee);
452
+ t3 && (n2 += t3.length);
453
+ var o3 = e5.lastIndexOf("\n");
454
+ r2 = ~o3 ? e5.length - o3 : r2 + e5.length;
455
+ }
456
+ function i2() {
457
+ var e5 = { line: n2, column: r2 };
458
+ return function(t3) {
459
+ return t3.position = new a2(e5), c2(), t3;
460
+ };
461
+ }
462
+ function a2(e5) {
463
+ this.start = e5, this.end = { line: n2, column: r2 }, this.source = t2.source;
464
+ }
465
+ function l2(o3) {
466
+ var i3 = new Error(t2.source + ":" + n2 + ":" + r2 + ": " + o3);
467
+ if (i3.reason = o3, i3.filename = t2.source, i3.line = n2, i3.column = r2, i3.source = e4, !t2.silent)
468
+ throw i3;
469
+ }
470
+ function s2(t3) {
471
+ var n3 = t3.exec(e4);
472
+ if (n3) {
473
+ var r3 = n3[0];
474
+ return o2(r3), e4 = e4.slice(r3.length), n3;
475
+ }
476
+ }
477
+ function c2() {
478
+ s2(Te);
479
+ }
480
+ function u2(e5) {
481
+ var t3;
482
+ for (e5 = e5 || []; t3 = p2(); )
483
+ false !== t3 && e5.push(t3);
484
+ return e5;
485
+ }
486
+ function p2() {
487
+ var t3 = i2();
488
+ if ("/" == e4.charAt(0) && "*" == e4.charAt(1)) {
489
+ for (var n3 = 2; _e != e4.charAt(n3) && ("*" != e4.charAt(n3) || "/" != e4.charAt(n3 + 1)); )
490
+ ++n3;
491
+ if (n3 += 2, _e === e4.charAt(n3 - 1))
492
+ return l2("End of comment missing");
493
+ var a3 = e4.slice(2, n3 - 2);
494
+ return r2 += 2, o2(a3), e4 = e4.slice(n3), r2 += 2, t3({ type: "comment", comment: a3 });
495
+ }
496
+ }
497
+ function d2() {
498
+ var e5 = i2(), t3 = s2(ke);
499
+ if (t3) {
500
+ if (p2(), !s2(we))
501
+ return l2("property missing ':'");
502
+ var n3 = s2(Se), r3 = e5({ type: "declaration", property: Ae(t3[0].replace(xe, _e)), value: n3 ? Ae(n3[0].replace(xe, _e)) : _e });
503
+ return s2(Ce), r3;
504
+ }
505
+ }
506
+ return a2.prototype.content = e4, c2(), function() {
507
+ var e5, t3 = [];
508
+ for (u2(t3); e5 = d2(); )
509
+ false !== e5 && (t3.push(e5), u2(t3));
510
+ return t3;
511
+ }();
512
+ });
513
+ be.default = function(e4, t2) {
514
+ var n2 = null;
515
+ if (!e4 || "string" != typeof e4)
516
+ return n2;
517
+ var r2 = (0, Pe.default)(e4), o2 = "function" == typeof t2;
518
+ return r2.forEach(function(e5) {
519
+ if ("declaration" === e5.type) {
520
+ var r3 = e5.property, i2 = e5.value;
521
+ o2 ? t2(r3, i2, e5) : i2 && ((n2 = n2 || {})[r3] = i2);
522
+ }
523
+ }), n2;
524
+ };
525
+ var Ie = {};
526
+ Object.defineProperty(Ie, "__esModule", { value: true }), Ie.camelCase = void 0;
527
+ var Me = /^--[a-zA-Z0-9-]+$/, De = /-([a-z])/g, je = /^[^-]+$/, Re = /^-(webkit|moz|ms|o|khtml)-/, Le = /^-(ms)-/, Fe = function(e4, t2) {
528
+ return t2.toUpperCase();
529
+ }, Be = function(e4, t2) {
530
+ return "".concat(t2, "-");
531
+ };
532
+ Ie.camelCase = function(e4, t2) {
533
+ return void 0 === t2 && (t2 = {}), function(e5) {
534
+ return !e5 || je.test(e5) || Me.test(e5);
535
+ }(e4) ? e4 : (e4 = e4.toLowerCase(), (e4 = t2.reactCompat ? e4.replace(Le, Be) : e4.replace(Re, Be)).replace(De, Fe));
536
+ };
537
+ var ze = (i && i.__importDefault || function(e4) {
538
+ return e4 && e4.__esModule ? e4 : { default: e4 };
539
+ })(be), He = Ie;
540
+ function Ve(e4, t2) {
541
+ var n2 = {};
542
+ return e4 && "string" == typeof e4 ? ((0, ze.default)(e4, function(e5, r2) {
543
+ e5 && r2 && (n2[(0, He.camelCase)(e5, t2)] = r2);
544
+ }), n2) : n2;
545
+ }
546
+ Ve.default = Ve;
547
+ var Ue = Ve;
548
+ !function(t2) {
549
+ var n2 = i && i.__importDefault || function(e4) {
550
+ return e4 && e4.__esModule ? e4 : { default: e4 };
551
+ };
552
+ Object.defineProperty(t2, "__esModule", { value: true }), t2.returnFirstArg = t2.canTextBeChildOfNode = t2.ELEMENTS_WITH_NO_TEXT_CHILDREN = t2.PRESERVE_CUSTOM_ATTRIBUTES = void 0, t2.isCustomComponent = function(e4, t3) {
553
+ if (!e4.includes("-"))
554
+ return Boolean(t3 && "string" == typeof t3.is);
555
+ if (a2.has(e4))
556
+ return false;
557
+ return true;
558
+ }, t2.setStyleProp = function(e4, t3) {
559
+ if ("string" != typeof e4)
560
+ return;
561
+ if (!e4.trim())
562
+ return void (t3.style = {});
563
+ try {
564
+ t3.style = (0, o2.default)(e4, l2);
565
+ } catch (e5) {
566
+ t3.style = {};
567
+ }
568
+ };
569
+ var r2 = e, o2 = n2(Ue), a2 = /* @__PURE__ */ new Set(["annotation-xml", "color-profile", "font-face", "font-face-src", "font-face-uri", "font-face-format", "font-face-name", "missing-glyph"]);
570
+ var l2 = { reactCompat: true };
571
+ t2.PRESERVE_CUSTOM_ATTRIBUTES = Number(r2.version.split(".")[0]) >= 16, t2.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set(["tr", "tbody", "thead", "tfoot", "colgroup", "table", "head", "html", "frameset"]);
572
+ t2.canTextBeChildOfNode = function(e4) {
573
+ return !t2.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e4.name);
574
+ };
575
+ t2.returnFirstArg = function(e4) {
576
+ return e4;
577
+ };
578
+ }(ve), Object.defineProperty(ae, "__esModule", { value: true }), ae.default = function(e4, t2) {
579
+ void 0 === e4 && (e4 = {});
580
+ var n2 = {}, r2 = Boolean(e4.type && Ye[e4.type]);
581
+ for (var o2 in e4) {
582
+ var i2 = e4[o2];
583
+ if ((0, qe.isCustomAttribute)(o2))
584
+ n2[o2] = i2;
585
+ else {
586
+ var a2 = o2.toLowerCase(), l2 = Ze(a2);
587
+ if (l2) {
588
+ var s2 = (0, qe.getPropertyInfo)(l2);
589
+ switch (Xe.includes(l2) && Ge.includes(t2) && !r2 && (l2 = Ze("default" + a2)), n2[l2] = i2, s2 && s2.type) {
590
+ case qe.BOOLEAN:
591
+ n2[l2] = true;
592
+ break;
593
+ case qe.OVERLOADED_BOOLEAN:
594
+ "" === i2 && (n2[l2] = true);
595
+ }
596
+ } else
597
+ We.PRESERVE_CUSTOM_ATTRIBUTES && (n2[o2] = i2);
598
+ }
599
+ }
600
+ return (0, We.setStyleProp)(e4.style, n2), n2;
601
+ };
602
+ var qe = le, We = ve, Xe = ["checked", "value"], Ge = ["input", "select", "textarea"], Ye = { reset: true, submit: true };
603
+ function Ze(e4) {
604
+ return qe.possibleStandardNames[e4];
605
+ }
606
+ var $e = {}, Ke = i && i.__importDefault || function(e4) {
607
+ return e4 && e4.__esModule ? e4 : { default: e4 };
608
+ };
609
+ Object.defineProperty($e, "__esModule", { value: true }), $e.default = function e3(t2, n2) {
610
+ void 0 === n2 && (n2 = {});
611
+ for (var r2 = [], o2 = "function" == typeof n2.replace, i2 = n2.transform || et.returnFirstArg, a2 = n2.library || tt, l2 = a2.cloneElement, s2 = a2.createElement, c2 = a2.isValidElement, u2 = t2.length, p2 = 0; p2 < u2; p2++) {
612
+ var d2 = t2[p2];
613
+ if (o2) {
614
+ var f2 = n2.replace(d2, p2);
615
+ if (c2(f2)) {
616
+ u2 > 1 && (f2 = l2(f2, { key: f2.key || p2 })), r2.push(i2(f2, d2, p2));
617
+ continue;
618
+ }
619
+ }
620
+ if ("text" !== d2.type) {
621
+ var h2 = d2, m2 = {};
622
+ nt(h2) ? ((0, et.setStyleProp)(h2.attribs.style, h2.attribs), m2 = h2.attribs) : h2.attribs && (m2 = (0, Qe.default)(h2.attribs, h2.name));
623
+ var y2 = void 0;
624
+ switch (d2.type) {
625
+ case "script":
626
+ case "style":
627
+ d2.children[0] && (m2.dangerouslySetInnerHTML = { __html: d2.children[0].data });
628
+ break;
629
+ case "tag":
630
+ "textarea" === d2.name && d2.children[0] ? m2.defaultValue = d2.children[0].data : d2.children && d2.children.length && (y2 = e3(d2.children, n2));
631
+ break;
632
+ default:
633
+ continue;
634
+ }
635
+ u2 > 1 && (m2.key = p2), r2.push(i2(s2(d2.name, m2, y2), d2, p2));
636
+ } else {
637
+ var g2 = !d2.data.trim().length;
638
+ if (g2 && d2.parent && !(0, et.canTextBeChildOfNode)(d2.parent))
639
+ continue;
640
+ if (n2.trim && g2)
641
+ continue;
642
+ r2.push(i2(d2.data, d2, p2));
643
+ }
644
+ }
645
+ return 1 === r2.length ? r2[0] : r2;
646
+ };
647
+ var Je = e, Qe = Ke(ae), et = ve, tt = { cloneElement: Je.cloneElement, createElement: Je.createElement, isValidElement: Je.isValidElement };
648
+ function nt(e4) {
649
+ return et.PRESERVE_CUSTOM_ATTRIBUTES && "tag" === e4.type && (0, et.isCustomComponent)(e4.name, e4.attribs);
650
+ }
651
+ !function(e4) {
652
+ var t2 = i && i.__importDefault || function(e5) {
653
+ return e5 && e5.__esModule ? e5 : { default: e5 };
654
+ };
655
+ Object.defineProperty(e4, "__esModule", { value: true }), e4.htmlToDOM = e4.domToReact = e4.attributesToProps = e4.Text = e4.ProcessingInstruction = e4.Element = e4.Comment = void 0, e4.default = function(e5, t3) {
656
+ if ("string" != typeof e5)
657
+ throw new TypeError("First argument must be a string");
658
+ if (!e5)
659
+ return [];
660
+ return (0, o2.default)((0, n2.default)(e5, (null == t3 ? void 0 : t3.htmlparser2) || l2), t3);
661
+ };
662
+ var n2 = t2(c);
663
+ e4.htmlToDOM = n2.default;
664
+ var r2 = t2(ae);
665
+ e4.attributesToProps = r2.default;
666
+ var o2 = t2($e);
667
+ e4.domToReact = o2.default;
668
+ var a2 = O;
669
+ Object.defineProperty(e4, "Comment", { enumerable: true, get: function() {
670
+ return a2.Comment;
671
+ } }), Object.defineProperty(e4, "Element", { enumerable: true, get: function() {
672
+ return a2.Element;
673
+ } }), Object.defineProperty(e4, "ProcessingInstruction", { enumerable: true, get: function() {
674
+ return a2.ProcessingInstruction;
675
+ } }), Object.defineProperty(e4, "Text", { enumerable: true, get: function() {
676
+ return a2.Text;
677
+ } });
678
+ var l2 = { lowerCaseAttributeNames: false };
679
+ }(s);
680
+ const rt = /* @__PURE__ */ a(s), ot = rt.default || rt;
681
+ var it = ["children", "source", "language", "showCopyButton", "showLineNumbers"];
682
+ function at() {
683
+ return at = Object.assign ? Object.assign.bind() : function(e4) {
8
684
  for (var t2 = 1; t2 < arguments.length; t2++) {
9
- var r2 = arguments[t2];
10
- for (var n2 in r2)
11
- Object.prototype.hasOwnProperty.call(r2, n2) && (e2[n2] = r2[n2]);
685
+ var n2 = arguments[t2];
686
+ for (var r2 in n2)
687
+ Object.prototype.hasOwnProperty.call(n2, r2) && (e4[r2] = n2[r2]);
12
688
  }
13
- return e2;
14
- }, i.apply(this, arguments);
15
- }
16
- function c(e2) {
17
- return (c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) {
18
- return typeof e3;
19
- } : function(e3) {
20
- return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
21
- })(e2);
22
- }
23
- function u(e2, t2) {
24
- return function(e3) {
25
- if (Array.isArray(e3))
26
- return e3;
27
- }(e2) || function(e3, t3) {
28
- var r2 = null == e3 ? null : "undefined" != typeof Symbol && e3[Symbol.iterator] || e3["@@iterator"];
29
- if (null != r2) {
30
- var n2, o2, a2, l2, i2 = [], c2 = true, u2 = false;
689
+ return e4;
690
+ }, at.apply(this, arguments);
691
+ }
692
+ function lt(e4) {
693
+ return (lt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e5) {
694
+ return typeof e5;
695
+ } : function(e5) {
696
+ return e5 && "function" == typeof Symbol && e5.constructor === Symbol && e5 !== Symbol.prototype ? "symbol" : typeof e5;
697
+ })(e4);
698
+ }
699
+ function st(e4, t2) {
700
+ return function(e5) {
701
+ if (Array.isArray(e5))
702
+ return e5;
703
+ }(e4) || function(e5, t3) {
704
+ var n2 = null == e5 ? null : "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
705
+ if (null != n2) {
706
+ var r2, o2, i2, a2, l2 = [], s2 = true, c2 = false;
31
707
  try {
32
- if (a2 = (r2 = r2.call(e3)).next, 0 === t3) {
33
- if (Object(r2) !== r2)
708
+ if (i2 = (n2 = n2.call(e5)).next, 0 === t3) {
709
+ if (Object(n2) !== n2)
34
710
  return;
35
- c2 = false;
711
+ s2 = false;
36
712
  } else
37
- for (; !(c2 = (n2 = a2.call(r2)).done) && (i2.push(n2.value), i2.length !== t3); c2 = true)
713
+ for (; !(s2 = (r2 = i2.call(n2)).done) && (l2.push(r2.value), l2.length !== t3); s2 = true)
38
714
  ;
39
- } catch (e4) {
40
- u2 = true, o2 = e4;
715
+ } catch (e6) {
716
+ c2 = true, o2 = e6;
41
717
  } finally {
42
718
  try {
43
- if (!c2 && null != r2.return && (l2 = r2.return(), Object(l2) !== l2))
719
+ if (!s2 && null != n2.return && (a2 = n2.return(), Object(a2) !== a2))
44
720
  return;
45
721
  } finally {
46
- if (u2)
722
+ if (c2)
47
723
  throw o2;
48
724
  }
49
725
  }
50
- return i2;
726
+ return l2;
51
727
  }
52
- }(e2, t2) || function(e3, t3) {
53
- if (!e3)
728
+ }(e4, t2) || function(e5, t3) {
729
+ if (!e5)
54
730
  return;
55
- if ("string" == typeof e3)
56
- return s(e3, t3);
57
- var r2 = Object.prototype.toString.call(e3).slice(8, -1);
58
- "Object" === r2 && e3.constructor && (r2 = e3.constructor.name);
59
- if ("Map" === r2 || "Set" === r2)
60
- return Array.from(e3);
61
- if ("Arguments" === r2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r2))
62
- return s(e3, t3);
63
- }(e2, t2) || function() {
731
+ if ("string" == typeof e5)
732
+ return ct(e5, t3);
733
+ var n2 = Object.prototype.toString.call(e5).slice(8, -1);
734
+ "Object" === n2 && e5.constructor && (n2 = e5.constructor.name);
735
+ if ("Map" === n2 || "Set" === n2)
736
+ return Array.from(e5);
737
+ if ("Arguments" === n2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
738
+ return ct(e5, t3);
739
+ }(e4, t2) || function() {
64
740
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
65
741
  }();
66
742
  }
67
- function s(e2, t2) {
68
- (null == t2 || t2 > e2.length) && (t2 = e2.length);
69
- for (var r2 = 0, n2 = new Array(t2); r2 < t2; r2++)
70
- n2[r2] = e2[r2];
71
- return n2;
743
+ function ct(e4, t2) {
744
+ (null == t2 || t2 > e4.length) && (t2 = e4.length);
745
+ for (var n2 = 0, r2 = new Array(t2); n2 < t2; n2++)
746
+ r2[n2] = e4[n2];
747
+ return r2;
72
748
  }
73
- function m(e2, t2) {
74
- if (null == e2)
749
+ function ut(e4, t2) {
750
+ if (null == e4)
75
751
  return {};
76
- var r2, n2, o2 = function(e3, t3) {
77
- if (null == e3)
752
+ var n2, r2, o2 = function(e5, t3) {
753
+ if (null == e5)
78
754
  return {};
79
- var r3, n3, o3 = {}, a3 = Object.keys(e3);
80
- for (n3 = 0; n3 < a3.length; n3++)
81
- r3 = a3[n3], t3.indexOf(r3) >= 0 || (o3[r3] = e3[r3]);
755
+ var n3, r3, o3 = {}, i3 = Object.keys(e5);
756
+ for (r3 = 0; r3 < i3.length; r3++)
757
+ n3 = i3[r3], t3.indexOf(n3) >= 0 || (o3[n3] = e5[n3]);
82
758
  return o3;
83
- }(e2, t2);
759
+ }(e4, t2);
84
760
  if (Object.getOwnPropertySymbols) {
85
- var a2 = Object.getOwnPropertySymbols(e2);
86
- for (n2 = 0; n2 < a2.length; n2++)
87
- r2 = a2[n2], t2.indexOf(r2) >= 0 || Object.prototype.propertyIsEnumerable.call(e2, r2) && (o2[r2] = e2[r2]);
761
+ var i2 = Object.getOwnPropertySymbols(e4);
762
+ for (r2 = 0; r2 < i2.length; r2++)
763
+ n2 = i2[r2], t2.indexOf(n2) >= 0 || Object.prototype.propertyIsEnumerable.call(e4, n2) && (o2[n2] = e4[n2]);
88
764
  }
89
765
  return o2;
90
766
  }
91
- var f = /* @__PURE__ */ e.lazy(function() {
92
- return import("prism-react-renderer").then(function(t2) {
93
- if (t2.Highlight)
94
- return { default: t2.Highlight };
95
- console.log("FICTOAN : \x1B[35mLooking\x1B[33m for\x1B[32m syntax\x1B[34m highlighting\x1B[36m?\x1B[31m\n╭──────────────────────────────────────────────────────────────────────────────────────────────────╮\n│ Please install the prism-react-renderer (https://www.npmjs.com/package/prism-react-renderer) │\n│ package to have syntax highlighting in the CodeBlock component. │\n│ For example: \x1B[46m\x1B[30myarn add prism-react-renderer\x1B[0m\x1B[31m │\n╰──────────────────────────────────────────────────────────────────────────────────────────────────╯");
96
- return { default: function(t3) {
97
- var r2 = t3.code;
98
- return e.createElement("pre", { "data-code-block": true, className: "module-fallback" }, r2);
99
- } };
100
- });
101
- }), p = /* @__PURE__ */ e.forwardRef(function(s2, p2) {
102
- var y = s2.children, d = s2.source, b = s2.language, h = void 0 === b ? "json" : b, g = s2.showCopyButton, v = s2.showLineNumbers, j = m(s2, l), k = u(t(false), 2), O = k[0], w = k[1], E = "string" == typeof y ? y : e.Children.toArray(y).join("");
103
- y || (E = "object" === c(d) ? JSON.stringify(d, null, 2) : null != d ? d : "");
104
- var N = [];
105
- return v && N.push("show-line-numbers"), /* @__PURE__ */ e.createElement(n, i({ "data-code-block": true, as: "div", classNames: N }, j), g ? O ? /* @__PURE__ */ e.createElement(a, { className: "code-block-copied-badge", size: "tiny", shape: "rounded", "aria-live": "polite" }, "Copied!") : /* @__PURE__ */ e.createElement(o, { type: "button", className: "code-block-copy-button", size: "tiny", shape: "rounded", onClick: function() {
106
- navigator.clipboard.writeText(E).then(function() {
107
- w(true), setTimeout(function() {
108
- return w(false);
767
+ var pt = /* @__PURE__ */ e.forwardRef(function(i2, a2) {
768
+ var s2 = i2.children, c2 = i2.source, u2 = i2.language, p2 = void 0 === u2 ? "json" : u2, d2 = i2.showCopyButton, f2 = i2.showLineNumbers, h2 = ut(i2, it), m2 = st(t(false), 2), y2 = m2[0], g2 = m2[1], v2 = "string" == typeof s2 ? s2 : e.Children.toArray(s2).join("");
769
+ s2 || (v2 = "object" === lt(c2) ? JSON.stringify(c2, null, 2) : null != c2 ? c2 : "");
770
+ var b2 = [];
771
+ f2 && b2.push("show-line-numbers");
772
+ var x, E = v2.split(/\r\n|\r|\n/gm);
773
+ return e.createElement(n, at({ "data-code-block": true, as: "div", classNames: b2 }, h2), d2 ? y2 ? /* @__PURE__ */ e.createElement(o, { className: "code-block-copied-badge", size: "tiny", shape: "rounded", "aria-live": "polite" }, "Copied!") : /* @__PURE__ */ e.createElement(r, { type: "button", className: "code-block-copy-button", size: "tiny", shape: "rounded", onClick: function() {
774
+ navigator.clipboard.writeText(v2).then(function() {
775
+ g2(true), setTimeout(function() {
776
+ return g2(false);
109
777
  }, 3e3);
110
- }).catch(function(e2) {
111
- console.error("Could not copy text: ", e2);
778
+ }).catch(function(e4) {
779
+ console.error("Could not copy text: ", e4);
112
780
  });
113
- }, role: "button", "aria-label": "Copy code to clipboard" }, "Copy") : null, /* @__PURE__ */ e.createElement(r, { fallback: /* @__PURE__ */ e.createElement("pre", { "data-code-block": true, className: "suspense-fallback" }, E) }, /* @__PURE__ */ e.createElement(f, { code: E, language: h, theme: void 0 }, function(t2) {
114
- var r2 = t2.className, n2 = t2.tokens, o2 = t2.getLineProps, a2 = t2.getTokenProps;
115
- return e.createElement("pre", { ref: p2, className: r2 }, n2.map(function(t3, r3) {
116
- return e.createElement("div", o2({ line: t3, key: r3 }), v && /* @__PURE__ */ e.createElement("span", { className: "line-numbers" }, r3 + 1), /* @__PURE__ */ e.createElement("span", { className: "l-o-c" }, t3.map(function(t4, r4) {
117
- return e.createElement("span", a2({ token: t4, key: r4 }));
118
- })));
119
- }));
120
- })));
781
+ }, role: "button", "aria-label": "Copy code to clipboard" }, "Copy") : null, /* @__PURE__ */ e.createElement("pre", { ref: a2, className: "language-".concat(p2) }, f2 && Array.from(Array(E.length).keys()).map(function(t2) {
782
+ return e.createElement("span", { className: "line-numbers" }, t2 + 1);
783
+ }), ot(void 0 === (x = l.languages[p2]) ? v2 : l.highlight(v2, x, p2))));
121
784
  });
122
785
  export {
123
- p as CodeBlock
786
+ pt as CodeBlock
124
787
  };