@revolist/ui 4.0.1-rc → 4.0.3-rc

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 (288) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -262
  3. package/_chunks/calendar-xpZ0v3xf.js +258 -0
  4. package/_chunks/chart-frame-Cmc7xU1i.js +130 -0
  5. package/_chunks/choice-chips-CHQTUdLs.js +110 -0
  6. package/_chunks/clock-BOhPNlW3.js +4 -0
  7. package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-D8vyPfld.js} +41 -41
  8. package/_chunks/color-picker-CudqPYZo.js +138 -0
  9. package/_chunks/component-C_T2VN5u.js +863 -0
  10. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
  11. package/_chunks/control-AHKXD5Eu.js +93 -0
  12. package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-uscKfAnV.js} +29 -29
  13. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  14. package/_chunks/{controls-NEL5tDaz.js → controls-DsNi8V8I.js} +229 -214
  15. package/_chunks/{date-control-CYCkb1aQ.js → date-control-DrVFX13g.js} +21 -21
  16. package/_chunks/date-time-qIhp5vaX.js +768 -0
  17. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
  18. package/_chunks/dialog.parts-CKGkC5zP.js +134 -0
  19. package/_chunks/duration-CL68Em0o.js +272 -0
  20. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  21. package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-WDdtVDNA.js} +8 -8
  22. package/_chunks/field-context-D57PnBbH.js +5 -0
  23. package/_chunks/framework-mount--RTLIqE-.js +54 -0
  24. package/_chunks/history-controls-B3u3INEK.js +27 -0
  25. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  26. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  27. package/_chunks/mount-DQ1cpppK.js +257 -0
  28. package/_chunks/native-control-C_yok8_-.js +605 -0
  29. package/_chunks/native.view-ByyZ1CT5.js +32 -0
  30. package/_chunks/{number-input-NnH57J4j.js → number-input-BKwA5FnM.js} +89 -89
  31. package/_chunks/picker-h1P5RUgp.js +122 -0
  32. package/_chunks/popup-CT2uD3go.js +367 -0
  33. package/_chunks/preact.module-BBM36DnO.js +290 -0
  34. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-DZgmaic0.js} +10 -10
  35. package/_chunks/render-m5eMMwFR.js +83 -0
  36. package/_chunks/reorder-list-CSlqAGHw.js +59 -0
  37. package/_chunks/request-trail-DSlFix6i.js +618 -0
  38. package/_chunks/rich-text-CH7gIqOS.js +636 -0
  39. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  40. package/_form.scss +1 -1
  41. package/_vendor/preact/LICENSE +21 -0
  42. package/_vendor/preact/compat/src/index.d.ts +353 -0
  43. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  44. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  45. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  46. package/_vendor/preact/src/dom.d.ts +2548 -0
  47. package/_vendor/preact/src/index.d.ts +373 -0
  48. package/_vendor/preact/src/jsx.d.ts +2958 -0
  49. package/activity-message.d.ts +1 -1
  50. package/activity-message.js +16 -16
  51. package/ai/_chat.scss +195 -0
  52. package/ai/_style.scss +105 -34
  53. package/ai/chat.d.ts +63 -0
  54. package/ai/components.d.ts +20 -4
  55. package/ai/index.d.ts +2 -0
  56. package/ai/index.js +3 -3
  57. package/ai/mount.d.ts +30 -1
  58. package/ai/prompt-history.d.ts +13 -0
  59. package/ai/request-trail.d.ts +1 -1
  60. package/ai/transcript.d.ts +25 -0
  61. package/ai/translation-context.d.ts +1 -1
  62. package/ai/translations.d.ts +1 -1
  63. package/alert.d.ts +2 -2
  64. package/angular/angular.js +0 -3
  65. package/assignee/field.d.ts +2 -2
  66. package/assignee/index.js +86 -87
  67. package/assignee/layout.d.ts +2 -2
  68. package/assignee/picker.d.ts +1 -1
  69. package/avatar/index.js +25 -25
  70. package/avatar/index.view.d.ts +1 -1
  71. package/brush-range/component.d.ts +1 -1
  72. package/brush-range/component.js +30 -30
  73. package/buttons/delete-button.d.ts +2 -1
  74. package/buttons/delete-button.js +1 -1
  75. package/buttons/remove-button.d.ts +1 -1
  76. package/buttons/remove-button.js +3 -3
  77. package/buttons/svg-button.d.ts +2 -1
  78. package/buttons/svg-button.js +35 -35
  79. package/calendar/_calendar.scss +7 -2
  80. package/calendar/calendar.d.ts +1 -1
  81. package/calendar/calendar.js +1 -1
  82. package/calendar/caption.d.ts +1 -1
  83. package/calendar/day.d.ts +1 -1
  84. package/calendar/day.js +4 -4
  85. package/calendar/header.d.ts +1 -1
  86. package/calendar/header.js +35 -35
  87. package/calendar/index.js +2 -2
  88. package/calendar/month-grid.d.ts +1 -1
  89. package/calendar/month-grid.js +37 -37
  90. package/calendar/picker.d.ts +1 -1
  91. package/calendar/types.d.ts +1 -1
  92. package/calendar/year-grid.d.ts +1 -1
  93. package/calendar/year-grid.js +12 -12
  94. package/checkbox/index.d.ts +2 -2
  95. package/checkbox/index.js +9 -9
  96. package/choice-chips/index.d.ts +1 -1
  97. package/choice-chips/index.js +1 -1
  98. package/color-palette/color-palette.d.ts +1 -1
  99. package/color-palette/color-palette.js +1 -1
  100. package/color-palette/color-picker.d.ts +1 -1
  101. package/color-palette/color-picker.js +2 -2
  102. package/component-catalog.d.ts +34 -23
  103. package/control-attributes.js +7 -7
  104. package/control-presentation.js +18 -18
  105. package/controls.d.ts +12 -10
  106. package/controls.js +3 -3
  107. package/core/editor-commit.d.ts +1 -1
  108. package/core/editor-popup.d.ts +1 -1
  109. package/core/editor-popup.js +1 -1
  110. package/date-time/date-control.d.ts +1 -1
  111. package/date-time/field.d.ts +2 -2
  112. package/date-time/index.js +1 -1
  113. package/date-time/picker.d.ts +1 -1
  114. package/date-time/style.scss +4 -4
  115. package/date-time/time-control.d.ts +1 -1
  116. package/date-time/time-selection.d.ts +1 -1
  117. package/date-time/types.d.ts +1 -1
  118. package/dialog/dialog-action-footer.view.d.ts +1 -1
  119. package/dialog/dialog.dom.js +52 -52
  120. package/dialog/dialog.parts.d.ts +18 -18
  121. package/dialog/dialog.parts.js +1 -1
  122. package/dialog/dialog.preact.d.ts +1 -1
  123. package/dialog/dialog.preact.js +6 -6
  124. package/distribution-chart/area-chart.d.ts +1 -1
  125. package/distribution-chart/area-chart.js +25 -25
  126. package/distribution-chart/bar-chart.d.ts +6 -3
  127. package/distribution-chart/bar-chart.js +10 -6
  128. package/distribution-chart/chart-frame.d.ts +3 -2
  129. package/distribution-chart/index.d.ts +1 -1
  130. package/distribution-chart/index.js +6 -6
  131. package/distribution-chart/line-chart.d.ts +1 -1
  132. package/distribution-chart/line-chart.js +9 -9
  133. package/distribution-chart/types.d.ts +1 -1
  134. package/dropdown/content.d.ts +3 -2
  135. package/dropdown/content.js +1 -141
  136. package/dropdown/control.d.ts +14 -0
  137. package/dropdown/control.js +1 -0
  138. package/dropdown/control.view.d.ts +6 -0
  139. package/dropdown/dropdown.service.d.ts +1 -1
  140. package/dropdown/dropdown.service.js +9 -9
  141. package/dropdown/dropdown.types.d.ts +4 -0
  142. package/dropdown/editor-dropdown.style.scss +37 -9
  143. package/dropdown/index.d.ts +1 -1
  144. package/dropdown/index.js +3 -4
  145. package/dropdown/lookup-field.d.ts +1 -1
  146. package/dropdown/lookup-field.js +41 -41
  147. package/dropdown/popup.d.ts +1 -1
  148. package/dropdown/popup.js +1 -140
  149. package/duration/controls.d.ts +1 -1
  150. package/duration/index.d.ts +2 -2
  151. package/duration/index.js +1 -1
  152. package/duration/style.scss +1 -1
  153. package/editor-actions.d.ts +1 -1
  154. package/editor-actions.js +21 -20
  155. package/editor-layout/index.d.ts +1 -1
  156. package/editor-layout/index.js +27 -27
  157. package/field-configurator.d.ts +1 -1
  158. package/field-configurator.js +93 -93
  159. package/field-reorder.hook.js +32 -32
  160. package/fieldset.d.ts +3 -0
  161. package/filter/filters/slider/preact.js +3 -3
  162. package/filter/filters/slider/single.d.ts +1 -1
  163. package/filter/filters/slider/single.js +23 -23
  164. package/filter-badge.d.ts +1 -1
  165. package/filter-badge.js +23 -22
  166. package/filter-controls.d.ts +1 -1
  167. package/filter-controls.js +30 -30
  168. package/form-controls/field-context.d.ts +5 -0
  169. package/form-controls/index.js +16 -21
  170. package/form-controls/index.view.d.ts +2 -4
  171. package/form-controls/presentation.d.ts +1 -1
  172. package/form-controls/presentation.js +59 -51
  173. package/formatting/comparison-preview.d.ts +1 -1
  174. package/formatting/control-tooltip.d.ts +1 -1
  175. package/formatting/icon-controls.d.ts +1 -1
  176. package/formatting/index.js +105 -100
  177. package/formatting/inspector-section.d.ts +1 -1
  178. package/formatting/typography-controls.d.ts +1 -1
  179. package/framework-mount.d.ts +1 -1
  180. package/framework.js +215 -207
  181. package/history-controls.d.ts +14 -0
  182. package/history-controls.js +1 -0
  183. package/icons/icon.d.ts +1 -1
  184. package/icons/icon.js +1 -1
  185. package/legend.d.ts +1 -1
  186. package/legend.js +12 -12
  187. package/masked-input/index.d.ts +1 -1
  188. package/masked-input/index.js +109 -109
  189. package/native-control.d.ts +14 -12
  190. package/native-control.js +3 -26
  191. package/native-styles.css +1 -1
  192. package/native.js +40 -39
  193. package/number-input/index.d.ts +1 -1
  194. package/number-input/index.js +1 -1
  195. package/package.json +18 -14
  196. package/pagination.d.ts +3 -0
  197. package/pagination.js +43 -33
  198. package/pdf-viewer/component.d.ts +1 -1
  199. package/pdf-viewer/controller.js +1 -1
  200. package/pdf-viewer/header.d.ts +1 -1
  201. package/pdf-viewer/index.js +13 -13
  202. package/pdf-viewer/search-bar.d.ts +1 -1
  203. package/pdf-viewer/status.d.ts +1 -1
  204. package/pdf-viewer/style.scss +3 -4
  205. package/pdf-viewer/toolbar.d.ts +1 -1
  206. package/pickers.d.ts +1 -1
  207. package/preact-mount.d.ts +1 -1
  208. package/preact-mount.js +1 -1
  209. package/preact.d.ts +2 -0
  210. package/preact.js +62 -62
  211. package/rating-choice.d.ts +1 -1
  212. package/rating-choice.js +1 -1
  213. package/react-adapter.d.ts +1 -1
  214. package/react-control.d.ts +0 -1
  215. package/react-control.js +2 -2
  216. package/react.d.ts +13 -3
  217. package/react.js +71 -88
  218. package/reorder-list.d.ts +1 -1
  219. package/reorder-list.js +1 -1
  220. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  221. package/resource-picker/resource-picker-avatar.js +14 -14
  222. package/resource-picker/resource-picker-option.d.ts +1 -1
  223. package/resource-picker/resource-picker-option.js +28 -28
  224. package/resource-picker/resource-picker-popup.d.ts +1 -1
  225. package/resource-picker/resource-picker-popup.js +3 -3
  226. package/resource-picker/resource-picker.d.ts +1 -1
  227. package/resource-picker/resource-picker.js +88 -88
  228. package/resource-picker/resource-picker.scss +6 -3
  229. package/rich-text/engine.d.ts +16 -19
  230. package/rich-text/index.d.ts +7 -7
  231. package/rich-text/index.js +1 -1
  232. package/rich-text/model.d.ts +4 -3
  233. package/rich-text/render-model.d.ts +4 -5
  234. package/rich-text/style.scss +3 -12
  235. package/rich-text/toolbar.d.ts +7 -7
  236. package/rich-text/translations.d.ts +3 -15
  237. package/search-input/index.js +12 -12
  238. package/segmented-switch/index.d.ts +1 -1
  239. package/segmented-switch/index.js +1 -1
  240. package/select.d.ts +20 -0
  241. package/select.js +1 -0
  242. package/status-feedback/exit-snapshot.js +4 -4
  243. package/status-feedback/index.js +2 -2
  244. package/status-feedback/popover.js +10 -10
  245. package/status-feedback/render.d.ts +2 -2
  246. package/status-feedback/render.js +3 -44
  247. package/status-feedback/status-feedback.scss +7 -0
  248. package/status-feedback/types.d.ts +4 -0
  249. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  250. package/styles/_compositions.scss +3 -1
  251. package/styles/_control.scss +12 -4
  252. package/styles/_primitives.scss +9 -8
  253. package/styles.css +1 -1
  254. package/surfaces.js +49 -49
  255. package/svelte/UiComponent.server.js +1 -48
  256. package/svelte/UiComponent.svelte +0 -21
  257. package/svelte.js +33 -68
  258. package/switch/index.js +15 -15
  259. package/time-grid.d.ts +1 -1
  260. package/time-grid.js +58 -58
  261. package/timeline-track/component.d.ts +5 -1
  262. package/timeline-track/index.js +91 -74
  263. package/timeline-track/model.d.ts +9 -0
  264. package/timeline-track/model.js +10 -1
  265. package/ui.css +1 -1
  266. package/vue-adapter.d.ts +1 -1
  267. package/vue.d.ts +138 -119
  268. package/vue.js +150 -174
  269. package/_chunks/calendar-BsDxCYhI.js +0 -248
  270. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  271. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  272. package/_chunks/color-picker-BRv-__AM.js +0 -138
  273. package/_chunks/component-D4PH5UZT.js +0 -859
  274. package/_chunks/date-time-DjucJmbc.js +0 -769
  275. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  276. package/_chunks/dropdown-CkGQBm1Q.js +0 -357
  277. package/_chunks/duration-BCaktcvz.js +0 -270
  278. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  279. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  280. package/_chunks/mount-0-8opf1j.js +0 -90
  281. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  282. package/_chunks/picker-oazJ7sO_.js +0 -121
  283. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  284. package/_chunks/request-trail-D0oVzdRd.js +0 -347
  285. package/_chunks/rich-text-2Rla349o.js +0 -477
  286. package/react-native-select.d.ts +0 -6
  287. package/rich-text/syntax.d.ts +0 -2
  288. package/vue-native-select.d.ts +0 -9
@@ -0,0 +1,367 @@
1
+ import { c as e, i as t, l as n, n as r, r as i, t as a } from "./preact.module-BBM36DnO.js";
2
+ import { c as o, i as s, r as c, t as l } from "./hooks.module-CG3gN83z.js";
3
+ import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
4
+ import { inheritUiMotion as d } from "../core/motion.js";
5
+ import { hideTopLayerPopup as f, showTopLayerPopup as p } from "../core/top-layer-popup.js";
6
+ //#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
7
+ function m(e, t) {
8
+ for (var n in t) e[n] = t[n];
9
+ return e;
10
+ }
11
+ function h(e, t) {
12
+ for (var n in e) if (n !== "__source" && !(n in t)) return !0;
13
+ for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
14
+ return !1;
15
+ }
16
+ function g(e, t) {
17
+ this.props = e, this.context = t;
18
+ }
19
+ (g.prototype = new a()).isPureReactComponent = !0, g.prototype.shouldComponentUpdate = function(e, t) {
20
+ return h(this.props, e) || h(this.state, t);
21
+ };
22
+ var _ = n.__b;
23
+ n.__b = function(e) {
24
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), _ && _(e);
25
+ };
26
+ var v = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
27
+ function y(e) {
28
+ function t(t) {
29
+ var n = m({}, t);
30
+ return delete n.ref, e(n, t.ref || null);
31
+ }
32
+ return t.$$typeof = v, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
33
+ }
34
+ var b = n.__e;
35
+ n.__e = function(e, t, n, r) {
36
+ if (e.then) {
37
+ for (var i, a = t; a = a.__;) if ((i = a.__c) && i.__c) return t.__e ?? (t.__e = n.__e, t.__k = n.__k), i.__c(e, t);
38
+ }
39
+ b(e, t, n, r);
40
+ };
41
+ var x = n.unmount;
42
+ function S(e, t, n) {
43
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(e) {
44
+ typeof e.__c == "function" && e.__c();
45
+ }), e.__c.__H = null), (e = m({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(e) {
46
+ return S(e, t, n);
47
+ })), e;
48
+ }
49
+ function C(e, t, n) {
50
+ return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(e) {
51
+ return C(e, t, n);
52
+ }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
53
+ }
54
+ function w() {
55
+ this.__u = 0, this.o = null, this.__b = null;
56
+ }
57
+ function T(e) {
58
+ var t = e.__ && e.__.__c;
59
+ return t && t.__a && t.__a(e);
60
+ }
61
+ function E() {
62
+ this.i = null, this.l = null;
63
+ }
64
+ n.unmount = function(e) {
65
+ var t = e.__c;
66
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), x && x(e);
67
+ }, (w.prototype = new a()).__c = function(e, t) {
68
+ var n = t.__c, r = this;
69
+ r.o ??= [], r.o.push(n);
70
+ var i = T(r.__v), a = !1, o = function() {
71
+ a || r.__z || (a = !0, n.__R = null, i ? i(c) : c());
72
+ };
73
+ n.__R = o;
74
+ var s = n.__P;
75
+ n.__P = null;
76
+ var c = function() {
77
+ if (!--r.__u) {
78
+ if (r.state.__a) {
79
+ var e = r.state.__a;
80
+ r.__v.__k[0] = C(e, e.__c.__P, e.__c.__O);
81
+ }
82
+ var t;
83
+ for (r.setState({ __a: r.__b = null }); t = r.o.pop();) t.__P = s, t.forceUpdate();
84
+ }
85
+ };
86
+ r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(o, o);
87
+ }, w.prototype.componentWillUnmount = function() {
88
+ this.o = [];
89
+ }, w.prototype.render = function(n, r) {
90
+ if (this.__b) {
91
+ if (this.__v.__k) {
92
+ var i = document.createElement("div"), a = this.__v.__k[0].__c;
93
+ this.__v.__k[0] = S(this.__b, i, a.__O = a.__P);
94
+ }
95
+ this.__b = null;
96
+ }
97
+ var o = r.__a && e(t, null, n.fallback);
98
+ return o && (o.__u &= -33), [e(t, null, r.__a ? null : n.children), o];
99
+ };
100
+ var D = function(e, t, n) {
101
+ if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n;) {
102
+ for (; n.length > 3;) n.pop()();
103
+ if (n[1] < n[0]) break;
104
+ e.i = n = n[2];
105
+ }
106
+ };
107
+ function O(e) {
108
+ return this.getChildContext = function() {
109
+ return e.context;
110
+ }, e.children;
111
+ }
112
+ function k(t) {
113
+ var n = this, r = t.h;
114
+ if (n.componentWillUnmount = function() {
115
+ i(null, n.v), n.v = null, n.h = null;
116
+ }, n.h && n.h !== r && n.componentWillUnmount(), !n.v) {
117
+ for (var a = n.__v; a !== null && !a.__m && a.__ !== null;) a = a.__;
118
+ n.h = r, n.v = {
119
+ nodeType: 1,
120
+ parentNode: r,
121
+ childNodes: [],
122
+ __k: { __m: a.__m },
123
+ contains: function() {
124
+ return !0;
125
+ },
126
+ namespaceURI: r.namespaceURI,
127
+ insertBefore: function(e, t) {
128
+ this.childNodes.push(e), n.h.insertBefore(e, t);
129
+ },
130
+ removeChild: function(e) {
131
+ this.childNodes.splice(this.childNodes.indexOf(e) >>> 1, 1), n.h.removeChild(e);
132
+ }
133
+ };
134
+ }
135
+ i(e(O, { context: n.context }, t.__v), n.v);
136
+ }
137
+ function A(t, n) {
138
+ var r = e(k, {
139
+ __v: t,
140
+ h: n
141
+ });
142
+ return r.containerInfo = n, r;
143
+ }
144
+ (E.prototype = new a()).__a = function(e) {
145
+ var t = this, n = T(t.__v), r = t.l.get(e);
146
+ return r[0]++, function(i) {
147
+ var a = function() {
148
+ t.props.revealOrder ? (r.push(i), D(t, e, r)) : i();
149
+ };
150
+ n ? n(a) : a();
151
+ };
152
+ }, E.prototype.render = function(e) {
153
+ this.i = null, this.l = /* @__PURE__ */ new Map();
154
+ var t = r(e.children);
155
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
156
+ for (var n = t.length; n--;) this.l.set(t[n], this.i = [
157
+ 1,
158
+ 0,
159
+ this.i
160
+ ]);
161
+ return e.children;
162
+ }, E.prototype.componentDidUpdate = E.prototype.componentDidMount = function() {
163
+ var e = this;
164
+ this.l.forEach(function(t, n) {
165
+ D(e, n, t);
166
+ });
167
+ };
168
+ var j = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, M = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, N = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, P = /[A-Z0-9]/g, F = typeof document < "u", I = function(e) {
169
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
170
+ };
171
+ a.prototype.isReactComponent = !0, [
172
+ "componentWillMount",
173
+ "componentWillReceiveProps",
174
+ "componentWillUpdate"
175
+ ].forEach(function(e) {
176
+ Object.defineProperty(a.prototype, e, {
177
+ configurable: !0,
178
+ get: function() {
179
+ return this["UNSAFE_" + e];
180
+ },
181
+ set: function(t) {
182
+ Object.defineProperty(this, e, {
183
+ configurable: !0,
184
+ writable: !0,
185
+ value: t
186
+ });
187
+ }
188
+ });
189
+ });
190
+ var L = n.event;
191
+ n.event = function(e) {
192
+ return L && (e = L(e)), e.persist = function() {}, e.isPropagationStopped = function() {
193
+ return this.cancelBubble;
194
+ }, e.isDefaultPrevented = function() {
195
+ return this.defaultPrevented;
196
+ }, e.nativeEvent = e;
197
+ };
198
+ var R = {
199
+ configurable: !0,
200
+ get: function() {
201
+ return this.class;
202
+ }
203
+ }, z = n.vnode;
204
+ n.vnode = function(e) {
205
+ typeof e.type == "string" && function(e) {
206
+ var t = e.props, n = e.type, i = {}, a = n.indexOf("-") == -1;
207
+ for (var o in t) {
208
+ var s = t[o];
209
+ if (!(o === "value" && "defaultValue" in t && s == null || F && o === "children" && n === "noscript" || o === "class" || o === "className")) {
210
+ var c = o.toLowerCase();
211
+ o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && !0 === s ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? o = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || I(t.type) ? c === "onfocus" ? o = "onfocusin" : c === "onblur" ? o = "onfocusout" : N.test(o) && (o = c) : c = o = "oninput" : a && M.test(o) ? o = o.replace(P, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && i[o = c] && (o = "oninputCapture"), i[o] = s;
212
+ }
213
+ }
214
+ n == "select" && (i.multiple && Array.isArray(i.value) && (i.value = r(t.children).forEach(function(e) {
215
+ e.props.selected = i.value.indexOf(e.props.value) != -1;
216
+ })), i.defaultValue != null && (i.value = r(t.children).forEach(function(e) {
217
+ e.props.selected = i.multiple ? i.defaultValue.indexOf(e.props.value) != -1 : i.defaultValue == e.props.value;
218
+ }))), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", R)) : t.className && (i.class = i.className = t.className), e.props = i;
219
+ }(e), e.$$typeof = j, z && z(e);
220
+ };
221
+ var B = n.__r;
222
+ n.__r = function(e) {
223
+ B && B(e), e.__c;
224
+ };
225
+ var V = n.diffed;
226
+ n.diffed = function(e) {
227
+ V && V(e);
228
+ var t = e.props, n = e.__e;
229
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
230
+ };
231
+ //#endregion
232
+ //#region src/dropdown/popup.tsx
233
+ var H = 5, U = 4;
234
+ function W(e, t, n) {
235
+ let r = e.ownerDocument.defaultView;
236
+ if (!r || r.getComputedStyle(e).position === "fixed") return {
237
+ top: t,
238
+ left: n,
239
+ scaleX: 1,
240
+ scaleY: 1
241
+ };
242
+ let i = e.offsetParent, a = e.ownerDocument;
243
+ if (!i || i === a.body || i === a.documentElement) return {
244
+ top: t + r.scrollY,
245
+ left: n + r.scrollX,
246
+ scaleX: 1,
247
+ scaleY: 1
248
+ };
249
+ let o = i.getBoundingClientRect(), s = i, c = s.offsetWidth > 0 ? o.width / s.offsetWidth : 1, l = s.offsetHeight > 0 ? o.height / s.offsetHeight : 1, u = Number.isFinite(c) && c > 0 ? c : 1, d = Number.isFinite(l) && l > 0 ? l : 1;
250
+ return {
251
+ top: (t - o.top) / d - s.clientTop + s.scrollTop,
252
+ left: (n - o.left) / u - s.clientLeft + s.scrollLeft,
253
+ scaleX: u,
254
+ scaleY: d
255
+ };
256
+ }
257
+ function G({ onPointerRelease: e, triggerRef: t, children: n, portalTarget: r, theme: i, dropdownMenuId: a, popupClassName: m, closeOnClickOutside: h = !1, onClose: g, align: _ = "start", matchTriggerWidth: v = !1, maxHeight: y, observePopupResize: b = !0, topLayer: x = !1 }) {
258
+ let S = l(null), [C, w] = s({
259
+ top: 0,
260
+ left: 0,
261
+ display: "none"
262
+ });
263
+ c(() => {
264
+ let e = t.current, n = S.current;
265
+ if (e && n) return d(e, n);
266
+ }, [r, t]), o(() => {
267
+ let e = t.current;
268
+ if (!e) return;
269
+ let n = e.ownerDocument.defaultView ?? window, r = () => {
270
+ let t = S.current;
271
+ if (!t) return;
272
+ let n = e.getBoundingClientRect(), r = W(t, n.bottom + U, n.left);
273
+ w({
274
+ top: r.top,
275
+ left: r.left,
276
+ display: "flex",
277
+ ...v ? { width: n.width / r.scaleX } : {}
278
+ });
279
+ }, i = () => {
280
+ let t = S.current;
281
+ if (!t) return;
282
+ let r = e.getBoundingClientRect(), i = t.style.maxHeight;
283
+ t.style.maxHeight = "";
284
+ let a = t.getBoundingClientRect(), o = W(t, 0, 0), s = Math.max(a.height, t.offsetHeight * o.scaleY, t.scrollHeight * o.scaleY);
285
+ t.style.maxHeight = i;
286
+ let c = Math.max(a.width, t.offsetWidth * o.scaleX), l = Math.min(s, typeof y == "number" ? Math.max(0, y * o.scaleY) : Infinity), u = n.innerHeight, d = n.innerWidth, f = Math.max(0, r.top - U - H), p = Math.max(0, u - r.bottom - U - H), m = l > p && f > p, h = Math.min(l, m ? f : p), g = m ? r.top - U - h : r.bottom + U, b = _ === "end" ? r.right - c : r.left;
287
+ g = Math.max(H, Math.min(g, u - H - h)), b = Math.max(H, Math.min(b, d - c - H));
288
+ let x = W(t, g, b);
289
+ w({
290
+ top: x.top,
291
+ left: x.left,
292
+ display: "flex",
293
+ maxHeight: h / x.scaleY,
294
+ ...v ? { width: r.width / x.scaleX } : {}
295
+ });
296
+ };
297
+ r();
298
+ let a = n.setTimeout(i, 0);
299
+ n.addEventListener("resize", i), n.addEventListener("scroll", i, !0);
300
+ let o = n.ResizeObserver, s = o ? new o(i) : void 0;
301
+ s?.observe(e);
302
+ let c = e.closest(".rv-dialog__surface, dialog");
303
+ return c && s?.observe(c), b && S.current && s?.observe(S.current), () => {
304
+ n.clearTimeout(a), n.removeEventListener("resize", i), n.removeEventListener("scroll", i, !0), s?.disconnect();
305
+ };
306
+ }, [
307
+ _,
308
+ v,
309
+ y,
310
+ b,
311
+ r,
312
+ t
313
+ ]), c(() => {
314
+ let e = S.current;
315
+ if (!x || !e) return;
316
+ let t = p(e);
317
+ return () => {
318
+ f(e, t);
319
+ };
320
+ }, [r, x]), c(() => {
321
+ if (!h || !g) return;
322
+ let e = r?.ownerDocument ?? S.current?.ownerDocument ?? t.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
323
+ if (!e) return;
324
+ let n = (e) => {
325
+ let n = e.target;
326
+ n && (S.current?.contains(n) || t.current?.contains(n) || g());
327
+ };
328
+ e.addEventListener("mousedown", n);
329
+ let i = (n) => {
330
+ if (n.key !== "Escape") return;
331
+ let r = e.activeElement;
332
+ r && (S.current?.contains(r) || t.current?.contains(r)) && (n.preventDefault(), n.stopPropagation(), g(), t.current?.querySelector("button, input, select")?.focus());
333
+ };
334
+ return e.addEventListener("keydown", i), () => {
335
+ e.removeEventListener("mousedown", n), e.removeEventListener("keydown", i);
336
+ };
337
+ }, [
338
+ h,
339
+ g,
340
+ r,
341
+ t
342
+ ]);
343
+ let T = /* @__PURE__ */ u("div", {
344
+ ref: S,
345
+ id: a,
346
+ className: `revo-dropdown-menu ${m || ""}`,
347
+ "data-theme": i ?? "default",
348
+ onMouseUp: e,
349
+ onTouchEnd: e,
350
+ style: {
351
+ top: `${C.top}px`,
352
+ left: `${C.left}px`,
353
+ ...x ? {
354
+ right: "auto",
355
+ bottom: "auto",
356
+ margin: "0"
357
+ } : {},
358
+ display: C.display,
359
+ maxHeight: C.maxHeight === void 0 ? void 0 : `${C.maxHeight}px`,
360
+ width: C.width === void 0 ? void 0 : `${C.width}px`
361
+ },
362
+ children: n
363
+ });
364
+ return r ? A(T, r) : T;
365
+ }
366
+ //#endregion
367
+ export { A as n, y as r, G as t };
@@ -0,0 +1,290 @@
1
+ //#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/dist/preact.module.js
2
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g = {}, _ = [], v = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, y = Array.isArray;
3
+ function b(e, t) {
4
+ for (var n in t) e[n] = t[n];
5
+ return e;
6
+ }
7
+ function x(e) {
8
+ e && e.parentNode && e.parentNode.removeChild(e);
9
+ }
10
+ function S(t, n, r) {
11
+ var i, a, o, s = {};
12
+ for (o in n) o == "key" ? i = n[o] : o == "ref" ? a = n[o] : s[o] = n[o];
13
+ if (arguments.length > 2 && (s.children = arguments.length > 3 ? e.call(arguments, 2) : r), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) s[o] === void 0 && (s[o] = t.defaultProps[o]);
14
+ return C(t, s, i, a, null);
15
+ }
16
+ function C(e, r, i, a, o) {
17
+ var s = {
18
+ type: e,
19
+ props: r,
20
+ key: i,
21
+ ref: a,
22
+ __k: null,
23
+ __: null,
24
+ __b: 0,
25
+ __e: null,
26
+ __c: null,
27
+ constructor: void 0,
28
+ __v: o ?? ++n,
29
+ __i: -1,
30
+ __u: 0
31
+ };
32
+ return o == null && t.vnode != null && t.vnode(s), s;
33
+ }
34
+ function w(e) {
35
+ return e.children;
36
+ }
37
+ function T(e, t) {
38
+ this.props = e, this.context = t;
39
+ }
40
+ function E(e, t) {
41
+ if (t == null) return e.__ ? E(e.__, e.__i + 1) : null;
42
+ for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
43
+ return typeof e.type == "function" ? E(e) : null;
44
+ }
45
+ function D(e) {
46
+ if (e.__P && e.__d) {
47
+ var n = e.__v, r = n.__e, i = [], a = [], o = b({}, n);
48
+ o.__v = n.__v + 1, t.vnode && t.vnode(o), z(e.__P, o, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [r] : null, i, r ?? E(n), !!(32 & n.__u), a), o.__v = n.__v, o.__.__k[o.__i] = o, V(i, o, a), n.__e = n.__ = null, o.__e != r && O(o);
49
+ }
50
+ }
51
+ function O(e) {
52
+ if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
53
+ if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
54
+ }), O(e);
55
+ }
56
+ function k(e) {
57
+ (!e.__d && (e.__d = !0) && i.push(e) && !A.__r++ || a != t.debounceRendering) && ((a = t.debounceRendering) || o)(A);
58
+ }
59
+ function A() {
60
+ try {
61
+ for (var e, t = 1; i.length;) i.length > t && i.sort(s), e = i.shift(), t = i.length, D(e);
62
+ } finally {
63
+ i.length = A.__r = 0;
64
+ }
65
+ }
66
+ function j(e, t, n, r, i, a, o, s, c, l, u) {
67
+ var d, f, p, m, h, v, y, b = r && r.__k || _, x = t.length;
68
+ for (c = M(n, t, b, c, x), d = 0; d < x; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && b[p.__i] || g, p.__i = d, v = z(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && W(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), (y = !!(4 & p.__u)) || f.__k === p.__k ? (c = N(p, c, e, y), y && f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : m && (c = m.nextSibling), p.__u &= -7);
69
+ return n.__e = h, c;
70
+ }
71
+ function M(e, t, n, r, i) {
72
+ var a, o, s, c, l, u = n.length, d = u, f = 0;
73
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = C(null, o, null, null, null) : y(o) ? o = e.__k[a] = C(w, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = C(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = F(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
74
+ if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = E(s)), G(s, s));
75
+ return r;
76
+ }
77
+ function N(e, t, n, r) {
78
+ var i, a;
79
+ if (typeof e.type == "function") {
80
+ for (i = e.__k, a = 0; i && a < i.length; a++) i[a] && (i[a].__ = e, t = N(i[a], t, n, r));
81
+ return t;
82
+ }
83
+ e.__e != t && (r && (t && e.type && !t.parentNode && (t = E(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
84
+ do
85
+ t &&= t.nextSibling;
86
+ while (t != null && t.nodeType == 8);
87
+ return t;
88
+ }
89
+ function P(e, t) {
90
+ return t ||= [], e == null || typeof e == "boolean" || (y(e) ? e.some(function(e) {
91
+ P(e, t);
92
+ }) : t.push(e)), t;
93
+ }
94
+ function F(e, t, n, r) {
95
+ var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
96
+ if (l === null && s == null || u && s == l.key && c == l.type) return n;
97
+ if (r > +!!u) {
98
+ for (i = n - 1, a = n + 1; i >= 0 || a < t.length;) if ((l = t[o = i >= 0 ? i-- : a++]) != null && !(2 & l.__u) && s == l.key && c == l.type) return o;
99
+ }
100
+ return -1;
101
+ }
102
+ function I(e, t, n) {
103
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || v.test(t) ? n : n + "px";
104
+ }
105
+ function L(e, t, n, r, i) {
106
+ var a, o;
107
+ n: if (t == "style") {
108
+ if (typeof n == "string") e.style.cssText = n;
109
+ else {
110
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || I(e.style, t, "");
111
+ if (n) for (t in n) r && n[t] == r[t] || I(e.style, t, n[t]);
112
+ }
113
+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(d, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[u] = r[u] : (n[u] = f, e.addEventListener(t, a ? m : p, a)) : e.removeEventListener(t, a ? m : p, a);
114
+ else {
115
+ if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
116
+ else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
117
+ e[t] = n ?? "";
118
+ break n;
119
+ } catch {}
120
+ typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
121
+ }
122
+ }
123
+ function R(e) {
124
+ return function(n) {
125
+ if (this.l) {
126
+ var r = this.l[n.type + e];
127
+ if (n[l] == null) n[l] = f++;
128
+ else if (n[l] < r[u]) return;
129
+ return r(t.event ? t.event(n) : n);
130
+ }
131
+ };
132
+ }
133
+ function z(e, n, r, i, a, o, s, c, l, u) {
134
+ var d, f, p, m, h, g, v, S, C, E, D, O, k, A, M, N = n.type;
135
+ if (n.constructor !== void 0) return null;
136
+ 128 & r.__u && (l = !!(32 & r.__u), o = [c = n.__e = r.__e]), (d = t.__b) && d(n);
137
+ n: if (typeof N == "function") try {
138
+ if (S = n.props, C = N.prototype && N.prototype.render, E = (d = N.contextType) && i[d.__c], D = d ? E ? E.props.value : d.__ : i, r.__c ? v = (f = n.__c = r.__c).__ = f.__E : (C ? n.__c = f = new N(S, D) : (n.__c = f = new T(S, D), f.constructor = N, f.render = K), E && E.sub(f), f.state || (f.state = {}), f.__n = i, p = f.__d = !0, f.__h = [], f._sb = []), C && f.__s == null && (f.__s = f.state), C && N.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = b({}, f.__s)), b(f.__s, N.getDerivedStateFromProps(S, f.__s))), m = f.props, h = f.state, f.__v = n, p) C && N.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), C && f.componentDidMount != null && f.__h.push(f.componentDidMount);
139
+ else {
140
+ if (C && N.getDerivedStateFromProps == null && S !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(S, D), n.__v == r.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(S, f.__s, D)) {
141
+ n.__v != r.__v && (f.props = S, f.state = f.__s, f.__d = !1), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
142
+ e && (e.__ = n);
143
+ }), _.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && s.push(f);
144
+ break n;
145
+ }
146
+ f.componentWillUpdate != null && f.componentWillUpdate(S, f.__s, D), C && f.componentDidUpdate != null && f.__h.push(function() {
147
+ f.componentDidUpdate(m, h, g);
148
+ });
149
+ }
150
+ if (f.context = D, f.props = S, f.__P = e, f.__e = !1, O = t.__r, k = 0, C) f.state = f.__s, f.__d = !1, O && O(n), d = f.render(f.props, f.state, f.context), _.push.apply(f.__h, f._sb), f._sb = [];
151
+ else do
152
+ f.__d = !1, O && O(n), d = f.render(f.props, f.state, f.context), f.state = f.__s;
153
+ while (f.__d && ++k < 25);
154
+ f.state = f.__s, f.getChildContext != null && (i = b(b({}, i), f.getChildContext())), C && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), A = d != null && d.type === w && d.key == null ? H(d.props.children) : d, c = j(e, y(A) ? A : [A], n, r, i, a, o, s, c, l, u), f.base = n.__e, n.__u &= -161, f.__h.length && s.push(f), v && (f.__E = f.__ = null);
155
+ } catch (e) {
156
+ if (n.__v = null, l || o != null) {
157
+ if (e.then) {
158
+ for (n.__u |= l ? 160 : 128; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
159
+ o[o.indexOf(c)] = null, n.__e = c;
160
+ } else {
161
+ for (M = o.length; M--;) x(o[M]);
162
+ B(n);
163
+ }
164
+ } else n.__e = r.__e, n.__k = r.__k, e.then || B(n);
165
+ t.__e(e, n, r);
166
+ }
167
+ else o == null && n.__v == r.__v ? (n.__k = r.__k, n.__e = r.__e) : c = n.__e = U(r.__e, n, r, i, a, o, s, l, u);
168
+ return (d = t.diffed) && d(n), 128 & n.__u ? void 0 : c;
169
+ }
170
+ function B(e) {
171
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(B));
172
+ }
173
+ function V(e, n, r) {
174
+ for (var i = 0; i < r.length; i++) W(r[i], r[++i], r[++i]);
175
+ t.__c && t.__c(n, e), e.some(function(n) {
176
+ try {
177
+ e = n.__h, n.__h = [], e.some(function(e) {
178
+ e.call(n);
179
+ });
180
+ } catch (e) {
181
+ t.__e(e, n.__v);
182
+ }
183
+ });
184
+ }
185
+ function H(e) {
186
+ return typeof e != "object" || !e || e.__b > 0 ? e : y(e) ? e.map(H) : b({}, e);
187
+ }
188
+ function U(n, r, i, a, o, s, c, l, u) {
189
+ var d, f, p, m, h, _, v, b = i.props || g, S = r.props, C = r.type;
190
+ if (C == "svg" ? o = "http://www.w3.org/2000/svg" : C == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o ||= "http://www.w3.org/1999/xhtml", s != null) {
191
+ for (d = 0; d < s.length; d++) if ((h = s[d]) && "setAttribute" in h == !!C && (C ? h.localName == C : h.nodeType == 3)) {
192
+ n = h, s[d] = null;
193
+ break;
194
+ }
195
+ }
196
+ if (n == null) {
197
+ if (C == null) return document.createTextNode(S);
198
+ n = document.createElementNS(o, C, S.is && S), l &&= (t.__m && t.__m(r, s), !1), s = null;
199
+ }
200
+ if (C == null) b === S || l && n.data == S || (n.data = S);
201
+ else {
202
+ if (s &&= e.call(n.childNodes), !l && s != null) for (b = {}, d = 0; d < n.attributes.length; d++) b[(h = n.attributes[d]).name] = h.value;
203
+ for (d in b) h = b[d], d == "dangerouslySetInnerHTML" ? p = h : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || L(n, d, null, h, o);
204
+ for (d in S) h = S[d], d == "children" ? m = h : d == "dangerouslySetInnerHTML" ? f = h : d == "value" ? _ = h : d == "checked" ? v = h : l && typeof h != "function" || b[d] === h || L(n, d, h, b[d], o);
205
+ if (f) l || p && (f.__html == p.__html || f.__html == n.innerHTML) || (n.innerHTML = f.__html), r.__k = [];
206
+ else if (p && (n.innerHTML = ""), j(r.type == "template" ? n.content : n, y(m) ? m : [m], r, i, a, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, c, s ? s[0] : i.__k && E(i, 0), l, u), s != null) for (d = s.length; d--;) x(s[d]);
207
+ l || (d = "value", C == "progress" && _ == null ? n.removeAttribute("value") : _ != null && (_ !== n[d] || C == "progress" && !_ || C == "option" && _ != b[d]) && L(n, d, _, b[d], o), d = "checked", v != null && v != n[d] && L(n, d, v, b[d], o));
208
+ }
209
+ return n;
210
+ }
211
+ function W(e, n, r) {
212
+ try {
213
+ if (typeof e == "function") {
214
+ var i = typeof e.__u == "function";
215
+ i && e.__u(), i && n == null || (e.__u = e(n));
216
+ } else e.current = n;
217
+ } catch (e) {
218
+ t.__e(e, r);
219
+ }
220
+ }
221
+ function G(e, n, r) {
222
+ var i, a;
223
+ if (t.unmount && t.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || W(i, null, n)), (i = e.__c) != null) {
224
+ if (i.componentWillUnmount) try {
225
+ i.componentWillUnmount();
226
+ } catch (e) {
227
+ t.__e(e, n);
228
+ }
229
+ i.base = i.__P = null;
230
+ }
231
+ if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && G(i[a], n, r || typeof e.type != "function");
232
+ r || x(e.__e), e.__c = e.__ = e.__e = void 0;
233
+ }
234
+ function K(e, t, n) {
235
+ return this.constructor(e, n);
236
+ }
237
+ function q(n, r, i) {
238
+ var a, o, s, c;
239
+ r == document && (r = document.documentElement), t.__ && t.__(n, r), o = (a = typeof i == "function") ? null : i && i.__k || r.__k, s = [], c = [], z(r, n = (!a && i || r).__k = S(w, null, [n]), o || g, g, r.namespaceURI, !a && i ? [i] : o ? null : r.firstChild ? e.call(r.childNodes) : null, s, !a && i ? i : o ? o.__e : r.firstChild, a, c), V(s, n, c);
240
+ }
241
+ function J(e, t) {
242
+ q(e, t, J);
243
+ }
244
+ function Y(t, n, r) {
245
+ var i, a, o, s, c = b({}, t.props);
246
+ for (o in t.type && t.type.defaultProps && (s = t.type.defaultProps), n) o == "key" ? i = n[o] : o == "ref" ? a = n[o] : c[o] = n[o] === void 0 && s != null ? s[o] : n[o];
247
+ return arguments.length > 2 && (c.children = arguments.length > 3 ? e.call(arguments, 2) : r), C(t.type, c, i || t.key, a || t.ref, null);
248
+ }
249
+ function X(e) {
250
+ function t(e) {
251
+ var n, r;
252
+ return this.getChildContext || (n = /* @__PURE__ */ new Set(), (r = {})[t.__c] = this, this.getChildContext = function() {
253
+ return r;
254
+ }, this.componentWillUnmount = function() {
255
+ n = null;
256
+ }, this.shouldComponentUpdate = function(e) {
257
+ this.props.value != e.value && n.forEach(function(e) {
258
+ e.__e = !0, k(e);
259
+ });
260
+ }, this.sub = function(e) {
261
+ n.add(e);
262
+ var t = e.componentWillUnmount;
263
+ e.componentWillUnmount = function() {
264
+ n && n.delete(e), t && t.call(e);
265
+ };
266
+ }), e.children;
267
+ }
268
+ return t.__c = "__cC" + h++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(e, t) {
269
+ return e.children(t);
270
+ }).contextType = t, t;
271
+ }
272
+ e = _.slice, t = { __e: function(e, t, n, r) {
273
+ for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
274
+ if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
275
+ } catch (t) {
276
+ e = t;
277
+ }
278
+ throw e;
279
+ } }, n = 0, r = function(e) {
280
+ return e != null && e.constructor === void 0;
281
+ }, T.prototype.setState = function(e, t) {
282
+ var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = b({}, this.state);
283
+ typeof e == "function" && (e = e(b({}, n), this.props)), e && b(n, e), e != null && this.__v && (t && this._sb.push(t), k(this));
284
+ }, T.prototype.forceUpdate = function(e) {
285
+ this.__v && (this.__e = !0, e && this.__h.push(e), k(this));
286
+ }, T.prototype.render = w, i = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, s = function(e, t) {
287
+ return e.__v.__b - t.__v.__b;
288
+ }, A.__r = 0, c = Math.random().toString(8), l = "__d" + c, u = "__a" + c, d = /(PointerCapture)$|Capture$/i, f = 0, p = R(!1), m = R(!0), h = 0;
289
+ //#endregion
290
+ export { J as a, S as c, w as i, t as l, P as n, Y as o, q as r, X as s, T as t, r as u };