@orchidui/core 1.39.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  6. package/dist/DataDisplay/NewTable/OcNewTable.js +1 -1
  7. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  8. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  9. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  10. package/dist/DataDisplay/Table/OcTable.js +1 -1
  11. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  12. package/dist/DataTable/utils/filterUtils.js +16 -16
  13. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  14. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  15. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  16. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  17. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  18. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  19. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  20. package/dist/Elements/Box/OcBox.js +1 -1
  21. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  22. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  23. package/dist/Elements/Header/OcHeader.js +1 -1
  24. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  25. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  26. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  27. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  28. package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
  29. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  30. package/dist/Feedback/Banner/OcBanner.js +1 -1
  31. package/dist/Feedback/Chip/OcChip.js +1 -1
  32. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  33. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  34. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  35. package/dist/Form/Button/OcButton.js +1 -1
  36. package/dist/Form/Calendar/OcCalendar.js +2 -2
  37. package/dist/Form/CardInput/OcCardInput.js +1 -1
  38. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  39. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  40. package/dist/Form/Criteria/OcCriteria.js +1 -1
  41. package/dist/Form/Cropper/OcCropper.js +1 -1
  42. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  43. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  44. package/dist/Form/Input/OcInput.js +1 -1
  45. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  46. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  47. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  48. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  49. package/dist/Form/Radio/OcRadio.js +1 -1
  50. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  51. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  52. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  53. package/dist/Form/Select/OcSelect.js +1 -1
  54. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  55. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  56. package/dist/Form/Slider/OcSlider.js +1 -1
  57. package/dist/Form/TextArea/OcTextArea.js +1 -1
  58. package/dist/Form/index.js +1 -1
  59. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  60. package/dist/{OcAccountSetupProgress-CAsTFLzD.js → OcAccountSetupProgress-BGk3Vvbq.js} +1 -1
  61. package/dist/OcComplexCalendar-CQ1P3lYK.js +5863 -0
  62. package/dist/{OcComplexDatePicker-CST3cyMh.js → OcComplexDatePicker-m_8Uf5Of.js} +2 -2
  63. package/dist/OcCropper-Bu91R5Et.js +1644 -0
  64. package/dist/{OcDataTable-D1Lmh1Lj.js → OcDataTable-Biq6U1Dl.js} +3 -3
  65. package/dist/{OcDraggable-DRsp4j4e.js → OcDraggable-C-RjArcr.js} +7 -7
  66. package/dist/{OcDraggableList-CwGfz1m1.js → OcDraggableList-lr-sYgCF.js} +1 -1
  67. package/dist/{OcEmojiPicker-B5v0dgDQ.js → OcEmojiPicker-oCBcfwyU.js} +1 -1
  68. package/dist/{OcFilterForm-BfRaaBNx.js → OcFilterForm-CfX0YXPm.js} +1 -1
  69. package/dist/{OcFilterSearch-eV23JjoR.js → OcFilterSearch-DK-0OYgr.js} +1 -1
  70. package/dist/{OcFilterSearchFor-FKrmN6gd.js → OcFilterSearchFor-uDEPTHYM.js} +1 -1
  71. package/dist/{OcModalCropper-BG0rGXgt.js → OcModalCropper-kYvlF6dF.js} +2 -2
  72. package/dist/OcPopper-DAh56I2b.js +1002 -0
  73. package/dist/{OcTimePicker-C_OHCpVq.js → OcTimePicker-X6dFf9sD.js} +10 -10
  74. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  75. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  76. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  77. package/dist/Overlay/Modal/OcModal.js +1 -1
  78. package/dist/Overlay/Popper/OcPopper.js +1 -1
  79. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  80. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  81. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  82. package/dist/{SubPlanCard-DKX_tiqc.js → SubPlanCard-CbbBLUQE.js} +1 -1
  83. package/dist/{ThumbnailSection-B7Vmk_YO.js → ThumbnailSection-Bm1GLPM1.js} +1 -1
  84. package/dist/{ThumbnailTheme-B645KTkE.js → ThumbnailTheme-DJE4H-1K.js} +1 -1
  85. package/dist/core.css +1 -1
  86. package/dist/dayjs.min-7xVZzECu.js +287 -0
  87. package/dist/index-DRTRbrS-.js +12893 -0
  88. package/dist/index.js +2 -2
  89. package/dist/vue-draggable-next.esm-bundler-QQ8zx__3.js +1559 -0
  90. package/package.json +12 -1
  91. package/dist/OcComplexCalendar-BKht-iKa.js +0 -101
  92. package/dist/OcCropper-DMvRM32l.js +0 -270
  93. package/dist/OcPopper-BSfMaOoF.js +0 -101
  94. package/dist/index-Bl4-MlMa.js +0 -11301
@@ -0,0 +1,1002 @@
1
+ import { ref as Ae, onMounted as ht, watch as mt, createElementBlock as gt, openBlock as qe, createElementVNode as Ie, createBlock as yt, renderSlot as ze, Teleport as bt, normalizeStyle as wt, normalizeClass as xt } from "vue";
2
+ var k = "top", T = "bottom", L = "right", C = "left", Be = "auto", fe = [k, T, L, C], Q = "start", ie = "end", Ot = "clippingParents", et = "viewport", ne = "popper", At = "reference", Xe = /* @__PURE__ */ fe.reduce(function(e, t) {
3
+ return e.concat([t + "-" + Q, t + "-" + ie]);
4
+ }, []), tt = /* @__PURE__ */ [].concat(fe, [Be]).reduce(function(e, t) {
5
+ return e.concat([t, t + "-" + Q, t + "-" + ie]);
6
+ }, []), Et = "beforeRead", Pt = "read", Bt = "afterRead", Dt = "beforeMain", jt = "main", kt = "afterMain", Ct = "beforeWrite", Rt = "write", $t = "afterWrite", St = [Et, Pt, Bt, Dt, jt, kt, Ct, Rt, $t];
7
+ function N(e) {
8
+ return e ? (e.nodeName || "").toLowerCase() : null;
9
+ }
10
+ function $(e) {
11
+ if (e == null)
12
+ return window;
13
+ if (e.toString() !== "[object Window]") {
14
+ var t = e.ownerDocument;
15
+ return t && t.defaultView || window;
16
+ }
17
+ return e;
18
+ }
19
+ function J(e) {
20
+ var t = $(e).Element;
21
+ return e instanceof t || e instanceof Element;
22
+ }
23
+ function S(e) {
24
+ var t = $(e).HTMLElement;
25
+ return e instanceof t || e instanceof HTMLElement;
26
+ }
27
+ function De(e) {
28
+ if (typeof ShadowRoot > "u")
29
+ return !1;
30
+ var t = $(e).ShadowRoot;
31
+ return e instanceof t || e instanceof ShadowRoot;
32
+ }
33
+ function Tt(e) {
34
+ var t = e.state;
35
+ Object.keys(t.elements).forEach(function(r) {
36
+ var a = t.styles[r] || {}, n = t.attributes[r] || {}, i = t.elements[r];
37
+ !S(i) || !N(i) || (Object.assign(i.style, a), Object.keys(n).forEach(function(p) {
38
+ var s = n[p];
39
+ s === !1 ? i.removeAttribute(p) : i.setAttribute(p, s === !0 ? "" : s);
40
+ }));
41
+ });
42
+ }
43
+ function Lt(e) {
44
+ var t = e.state, r = {
45
+ popper: {
46
+ position: t.options.strategy,
47
+ left: "0",
48
+ top: "0",
49
+ margin: "0"
50
+ },
51
+ arrow: {
52
+ position: "absolute"
53
+ },
54
+ reference: {}
55
+ };
56
+ return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
57
+ Object.keys(t.elements).forEach(function(a) {
58
+ var n = t.elements[a], i = t.attributes[a] || {}, p = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : r[a]), s = p.reduce(function(o, c) {
59
+ return o[c] = "", o;
60
+ }, {});
61
+ !S(n) || !N(n) || (Object.assign(n.style, s), Object.keys(i).forEach(function(o) {
62
+ n.removeAttribute(o);
63
+ }));
64
+ });
65
+ };
66
+ }
67
+ const Mt = {
68
+ name: "applyStyles",
69
+ enabled: !0,
70
+ phase: "write",
71
+ fn: Tt,
72
+ effect: Lt,
73
+ requires: ["computeStyles"]
74
+ };
75
+ function H(e) {
76
+ return e.split("-")[0];
77
+ }
78
+ var G = Math.max, ge = Math.min, Z = Math.round;
79
+ function Ee() {
80
+ var e = navigator.userAgentData;
81
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
82
+ return t.brand + "/" + t.version;
83
+ }).join(" ") : navigator.userAgent;
84
+ }
85
+ function rt() {
86
+ return !/^((?!chrome|android).)*safari/i.test(Ee());
87
+ }
88
+ function _(e, t, r) {
89
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
90
+ var a = e.getBoundingClientRect(), n = 1, i = 1;
91
+ t && S(e) && (n = e.offsetWidth > 0 && Z(a.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Z(a.height) / e.offsetHeight || 1);
92
+ var p = J(e) ? $(e) : window, s = p.visualViewport, o = !rt() && r, c = (a.left + (o && s ? s.offsetLeft : 0)) / n, f = (a.top + (o && s ? s.offsetTop : 0)) / i, h = a.width / n, y = a.height / i;
93
+ return {
94
+ width: h,
95
+ height: y,
96
+ top: f,
97
+ right: c + h,
98
+ bottom: f + y,
99
+ left: c,
100
+ x: c,
101
+ y: f
102
+ };
103
+ }
104
+ function je(e) {
105
+ var t = _(e), r = e.offsetWidth, a = e.offsetHeight;
106
+ return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - a) <= 1 && (a = t.height), {
107
+ x: e.offsetLeft,
108
+ y: e.offsetTop,
109
+ width: r,
110
+ height: a
111
+ };
112
+ }
113
+ function nt(e, t) {
114
+ var r = t.getRootNode && t.getRootNode();
115
+ if (e.contains(t))
116
+ return !0;
117
+ if (r && De(r)) {
118
+ var a = t;
119
+ do {
120
+ if (a && e.isSameNode(a))
121
+ return !0;
122
+ a = a.parentNode || a.host;
123
+ } while (a);
124
+ }
125
+ return !1;
126
+ }
127
+ function V(e) {
128
+ return $(e).getComputedStyle(e);
129
+ }
130
+ function Wt(e) {
131
+ return ["table", "td", "th"].indexOf(N(e)) >= 0;
132
+ }
133
+ function q(e) {
134
+ return ((J(e) ? e.ownerDocument : (
135
+ // $FlowFixMe[prop-missing]
136
+ e.document
137
+ )) || window.document).documentElement;
138
+ }
139
+ function ye(e) {
140
+ return N(e) === "html" ? e : (
141
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
142
+ // $FlowFixMe[incompatible-return]
143
+ // $FlowFixMe[prop-missing]
144
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
145
+ e.parentNode || // DOM Element detected
146
+ (De(e) ? e.host : null) || // ShadowRoot detected
147
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
148
+ q(e)
149
+ );
150
+ }
151
+ function Ye(e) {
152
+ return !S(e) || // https://github.com/popperjs/popper-core/issues/837
153
+ V(e).position === "fixed" ? null : e.offsetParent;
154
+ }
155
+ function Ht(e) {
156
+ var t = /firefox/i.test(Ee()), r = /Trident/i.test(Ee());
157
+ if (r && S(e)) {
158
+ var a = V(e);
159
+ if (a.position === "fixed")
160
+ return null;
161
+ }
162
+ var n = ye(e);
163
+ for (De(n) && (n = n.host); S(n) && ["html", "body"].indexOf(N(n)) < 0; ) {
164
+ var i = V(n);
165
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
166
+ return n;
167
+ n = n.parentNode;
168
+ }
169
+ return null;
170
+ }
171
+ function pe(e) {
172
+ for (var t = $(e), r = Ye(e); r && Wt(r) && V(r).position === "static"; )
173
+ r = Ye(r);
174
+ return r && (N(r) === "html" || N(r) === "body" && V(r).position === "static") ? t : r || Ht(e) || t;
175
+ }
176
+ function ke(e) {
177
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
178
+ }
179
+ function ae(e, t, r) {
180
+ return G(e, ge(t, r));
181
+ }
182
+ function Nt(e, t, r) {
183
+ var a = ae(e, t, r);
184
+ return a > r ? r : a;
185
+ }
186
+ function at() {
187
+ return {
188
+ top: 0,
189
+ right: 0,
190
+ bottom: 0,
191
+ left: 0
192
+ };
193
+ }
194
+ function ot(e) {
195
+ return Object.assign({}, at(), e);
196
+ }
197
+ function it(e, t) {
198
+ return t.reduce(function(r, a) {
199
+ return r[a] = e, r;
200
+ }, {});
201
+ }
202
+ var Vt = function(t, r) {
203
+ return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
204
+ placement: r.placement
205
+ })) : t, ot(typeof t != "number" ? t : it(t, fe));
206
+ };
207
+ function Ft(e) {
208
+ var t, r = e.state, a = e.name, n = e.options, i = r.elements.arrow, p = r.modifiersData.popperOffsets, s = H(r.placement), o = ke(s), c = [C, L].indexOf(s) >= 0, f = c ? "height" : "width";
209
+ if (!(!i || !p)) {
210
+ var h = Vt(n.padding, r), y = je(i), l = o === "y" ? k : C, w = o === "y" ? T : L, d = r.rects.reference[f] + r.rects.reference[o] - p[o] - r.rects.popper[f], v = p[o] - r.rects.reference[o], b = pe(i), O = b ? o === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, A = d / 2 - v / 2, u = h[l], m = O - y[f] - h[w], g = O / 2 - y[f] / 2 + A, x = ae(u, g, m), B = o;
211
+ r.modifiersData[a] = (t = {}, t[B] = x, t.centerOffset = x - g, t);
212
+ }
213
+ }
214
+ function qt(e) {
215
+ var t = e.state, r = e.options, a = r.element, n = a === void 0 ? "[data-popper-arrow]" : a;
216
+ n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || nt(t.elements.popper, n) && (t.elements.arrow = n));
217
+ }
218
+ const It = {
219
+ name: "arrow",
220
+ enabled: !0,
221
+ phase: "main",
222
+ fn: Ft,
223
+ effect: qt,
224
+ requires: ["popperOffsets"],
225
+ requiresIfExists: ["preventOverflow"]
226
+ };
227
+ function ee(e) {
228
+ return e.split("-")[1];
229
+ }
230
+ var zt = {
231
+ top: "auto",
232
+ right: "auto",
233
+ bottom: "auto",
234
+ left: "auto"
235
+ };
236
+ function Xt(e, t) {
237
+ var r = e.x, a = e.y, n = t.devicePixelRatio || 1;
238
+ return {
239
+ x: Z(r * n) / n || 0,
240
+ y: Z(a * n) / n || 0
241
+ };
242
+ }
243
+ function Ue(e) {
244
+ var t, r = e.popper, a = e.popperRect, n = e.placement, i = e.variation, p = e.offsets, s = e.position, o = e.gpuAcceleration, c = e.adaptive, f = e.roundOffsets, h = e.isFixed, y = p.x, l = y === void 0 ? 0 : y, w = p.y, d = w === void 0 ? 0 : w, v = typeof f == "function" ? f({
245
+ x: l,
246
+ y: d
247
+ }) : {
248
+ x: l,
249
+ y: d
250
+ };
251
+ l = v.x, d = v.y;
252
+ var b = p.hasOwnProperty("x"), O = p.hasOwnProperty("y"), A = C, u = k, m = window;
253
+ if (c) {
254
+ var g = pe(r), x = "clientHeight", B = "clientWidth";
255
+ if (g === $(r) && (g = q(r), V(g).position !== "static" && s === "absolute" && (x = "scrollHeight", B = "scrollWidth")), g = g, n === k || (n === C || n === L) && i === ie) {
256
+ u = T;
257
+ var P = h && g === m && m.visualViewport ? m.visualViewport.height : (
258
+ // $FlowFixMe[prop-missing]
259
+ g[x]
260
+ );
261
+ d -= P - a.height, d *= o ? 1 : -1;
262
+ }
263
+ if (n === C || (n === k || n === T) && i === ie) {
264
+ A = L;
265
+ var E = h && g === m && m.visualViewport ? m.visualViewport.width : (
266
+ // $FlowFixMe[prop-missing]
267
+ g[B]
268
+ );
269
+ l -= E - a.width, l *= o ? 1 : -1;
270
+ }
271
+ }
272
+ var D = Object.assign({
273
+ position: s
274
+ }, c && zt), M = f === !0 ? Xt({
275
+ x: l,
276
+ y: d
277
+ }, $(r)) : {
278
+ x: l,
279
+ y: d
280
+ };
281
+ if (l = M.x, d = M.y, o) {
282
+ var j;
283
+ return Object.assign({}, D, (j = {}, j[u] = O ? "0" : "", j[A] = b ? "0" : "", j.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + l + "px, " + d + "px)" : "translate3d(" + l + "px, " + d + "px, 0)", j));
284
+ }
285
+ return Object.assign({}, D, (t = {}, t[u] = O ? d + "px" : "", t[A] = b ? l + "px" : "", t.transform = "", t));
286
+ }
287
+ function Yt(e) {
288
+ var t = e.state, r = e.options, a = r.gpuAcceleration, n = a === void 0 ? !0 : a, i = r.adaptive, p = i === void 0 ? !0 : i, s = r.roundOffsets, o = s === void 0 ? !0 : s, c = {
289
+ placement: H(t.placement),
290
+ variation: ee(t.placement),
291
+ popper: t.elements.popper,
292
+ popperRect: t.rects.popper,
293
+ gpuAcceleration: n,
294
+ isFixed: t.options.strategy === "fixed"
295
+ };
296
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ue(Object.assign({}, c, {
297
+ offsets: t.modifiersData.popperOffsets,
298
+ position: t.options.strategy,
299
+ adaptive: p,
300
+ roundOffsets: o
301
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ue(Object.assign({}, c, {
302
+ offsets: t.modifiersData.arrow,
303
+ position: "absolute",
304
+ adaptive: !1,
305
+ roundOffsets: o
306
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
307
+ "data-popper-placement": t.placement
308
+ });
309
+ }
310
+ const Ut = {
311
+ name: "computeStyles",
312
+ enabled: !0,
313
+ phase: "beforeWrite",
314
+ fn: Yt,
315
+ data: {}
316
+ };
317
+ var he = {
318
+ passive: !0
319
+ };
320
+ function Gt(e) {
321
+ var t = e.state, r = e.instance, a = e.options, n = a.scroll, i = n === void 0 ? !0 : n, p = a.resize, s = p === void 0 ? !0 : p, o = $(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
322
+ return i && c.forEach(function(f) {
323
+ f.addEventListener("scroll", r.update, he);
324
+ }), s && o.addEventListener("resize", r.update, he), function() {
325
+ i && c.forEach(function(f) {
326
+ f.removeEventListener("scroll", r.update, he);
327
+ }), s && o.removeEventListener("resize", r.update, he);
328
+ };
329
+ }
330
+ const Jt = {
331
+ name: "eventListeners",
332
+ enabled: !0,
333
+ phase: "write",
334
+ fn: function() {
335
+ },
336
+ effect: Gt,
337
+ data: {}
338
+ };
339
+ var Kt = {
340
+ left: "right",
341
+ right: "left",
342
+ bottom: "top",
343
+ top: "bottom"
344
+ };
345
+ function me(e) {
346
+ return e.replace(/left|right|bottom|top/g, function(t) {
347
+ return Kt[t];
348
+ });
349
+ }
350
+ var Qt = {
351
+ start: "end",
352
+ end: "start"
353
+ };
354
+ function Ge(e) {
355
+ return e.replace(/start|end/g, function(t) {
356
+ return Qt[t];
357
+ });
358
+ }
359
+ function Ce(e) {
360
+ var t = $(e), r = t.pageXOffset, a = t.pageYOffset;
361
+ return {
362
+ scrollLeft: r,
363
+ scrollTop: a
364
+ };
365
+ }
366
+ function Re(e) {
367
+ return _(q(e)).left + Ce(e).scrollLeft;
368
+ }
369
+ function Zt(e, t) {
370
+ var r = $(e), a = q(e), n = r.visualViewport, i = a.clientWidth, p = a.clientHeight, s = 0, o = 0;
371
+ if (n) {
372
+ i = n.width, p = n.height;
373
+ var c = rt();
374
+ (c || !c && t === "fixed") && (s = n.offsetLeft, o = n.offsetTop);
375
+ }
376
+ return {
377
+ width: i,
378
+ height: p,
379
+ x: s + Re(e),
380
+ y: o
381
+ };
382
+ }
383
+ function _t(e) {
384
+ var t, r = q(e), a = Ce(e), n = (t = e.ownerDocument) == null ? void 0 : t.body, i = G(r.scrollWidth, r.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), p = G(r.scrollHeight, r.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), s = -a.scrollLeft + Re(e), o = -a.scrollTop;
385
+ return V(n || r).direction === "rtl" && (s += G(r.clientWidth, n ? n.clientWidth : 0) - i), {
386
+ width: i,
387
+ height: p,
388
+ x: s,
389
+ y: o
390
+ };
391
+ }
392
+ function $e(e) {
393
+ var t = V(e), r = t.overflow, a = t.overflowX, n = t.overflowY;
394
+ return /auto|scroll|overlay|hidden/.test(r + n + a);
395
+ }
396
+ function st(e) {
397
+ return ["html", "body", "#document"].indexOf(N(e)) >= 0 ? e.ownerDocument.body : S(e) && $e(e) ? e : st(ye(e));
398
+ }
399
+ function oe(e, t) {
400
+ var r;
401
+ t === void 0 && (t = []);
402
+ var a = st(e), n = a === ((r = e.ownerDocument) == null ? void 0 : r.body), i = $(a), p = n ? [i].concat(i.visualViewport || [], $e(a) ? a : []) : a, s = t.concat(p);
403
+ return n ? s : (
404
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
405
+ s.concat(oe(ye(p)))
406
+ );
407
+ }
408
+ function Pe(e) {
409
+ return Object.assign({}, e, {
410
+ left: e.x,
411
+ top: e.y,
412
+ right: e.x + e.width,
413
+ bottom: e.y + e.height
414
+ });
415
+ }
416
+ function er(e, t) {
417
+ var r = _(e, !1, t === "fixed");
418
+ return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
419
+ }
420
+ function Je(e, t, r) {
421
+ return t === et ? Pe(Zt(e, r)) : J(t) ? er(t, r) : Pe(_t(q(e)));
422
+ }
423
+ function tr(e) {
424
+ var t = oe(ye(e)), r = ["absolute", "fixed"].indexOf(V(e).position) >= 0, a = r && S(e) ? pe(e) : e;
425
+ return J(a) ? t.filter(function(n) {
426
+ return J(n) && nt(n, a) && N(n) !== "body";
427
+ }) : [];
428
+ }
429
+ function rr(e, t, r, a) {
430
+ var n = t === "clippingParents" ? tr(e) : [].concat(t), i = [].concat(n, [r]), p = i[0], s = i.reduce(function(o, c) {
431
+ var f = Je(e, c, a);
432
+ return o.top = G(f.top, o.top), o.right = ge(f.right, o.right), o.bottom = ge(f.bottom, o.bottom), o.left = G(f.left, o.left), o;
433
+ }, Je(e, p, a));
434
+ return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
435
+ }
436
+ function ft(e) {
437
+ var t = e.reference, r = e.element, a = e.placement, n = a ? H(a) : null, i = a ? ee(a) : null, p = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, o;
438
+ switch (n) {
439
+ case k:
440
+ o = {
441
+ x: p,
442
+ y: t.y - r.height
443
+ };
444
+ break;
445
+ case T:
446
+ o = {
447
+ x: p,
448
+ y: t.y + t.height
449
+ };
450
+ break;
451
+ case L:
452
+ o = {
453
+ x: t.x + t.width,
454
+ y: s
455
+ };
456
+ break;
457
+ case C:
458
+ o = {
459
+ x: t.x - r.width,
460
+ y: s
461
+ };
462
+ break;
463
+ default:
464
+ o = {
465
+ x: t.x,
466
+ y: t.y
467
+ };
468
+ }
469
+ var c = n ? ke(n) : null;
470
+ if (c != null) {
471
+ var f = c === "y" ? "height" : "width";
472
+ switch (i) {
473
+ case Q:
474
+ o[c] = o[c] - (t[f] / 2 - r[f] / 2);
475
+ break;
476
+ case ie:
477
+ o[c] = o[c] + (t[f] / 2 - r[f] / 2);
478
+ break;
479
+ }
480
+ }
481
+ return o;
482
+ }
483
+ function se(e, t) {
484
+ t === void 0 && (t = {});
485
+ var r = t, a = r.placement, n = a === void 0 ? e.placement : a, i = r.strategy, p = i === void 0 ? e.strategy : i, s = r.boundary, o = s === void 0 ? Ot : s, c = r.rootBoundary, f = c === void 0 ? et : c, h = r.elementContext, y = h === void 0 ? ne : h, l = r.altBoundary, w = l === void 0 ? !1 : l, d = r.padding, v = d === void 0 ? 0 : d, b = ot(typeof v != "number" ? v : it(v, fe)), O = y === ne ? At : ne, A = e.rects.popper, u = e.elements[w ? O : y], m = rr(J(u) ? u : u.contextElement || q(e.elements.popper), o, f, p), g = _(e.elements.reference), x = ft({
486
+ reference: g,
487
+ element: A,
488
+ placement: n
489
+ }), B = Pe(Object.assign({}, A, x)), P = y === ne ? B : g, E = {
490
+ top: m.top - P.top + b.top,
491
+ bottom: P.bottom - m.bottom + b.bottom,
492
+ left: m.left - P.left + b.left,
493
+ right: P.right - m.right + b.right
494
+ }, D = e.modifiersData.offset;
495
+ if (y === ne && D) {
496
+ var M = D[n];
497
+ Object.keys(E).forEach(function(j) {
498
+ var I = [L, T].indexOf(j) >= 0 ? 1 : -1, z = [k, T].indexOf(j) >= 0 ? "y" : "x";
499
+ E[j] += M[z] * I;
500
+ });
501
+ }
502
+ return E;
503
+ }
504
+ function nr(e, t) {
505
+ t === void 0 && (t = {});
506
+ var r = t, a = r.placement, n = r.boundary, i = r.rootBoundary, p = r.padding, s = r.flipVariations, o = r.allowedAutoPlacements, c = o === void 0 ? tt : o, f = ee(a), h = f ? s ? Xe : Xe.filter(function(w) {
507
+ return ee(w) === f;
508
+ }) : fe, y = h.filter(function(w) {
509
+ return c.indexOf(w) >= 0;
510
+ });
511
+ y.length === 0 && (y = h);
512
+ var l = y.reduce(function(w, d) {
513
+ return w[d] = se(e, {
514
+ placement: d,
515
+ boundary: n,
516
+ rootBoundary: i,
517
+ padding: p
518
+ })[H(d)], w;
519
+ }, {});
520
+ return Object.keys(l).sort(function(w, d) {
521
+ return l[w] - l[d];
522
+ });
523
+ }
524
+ function ar(e) {
525
+ if (H(e) === Be)
526
+ return [];
527
+ var t = me(e);
528
+ return [Ge(e), t, Ge(t)];
529
+ }
530
+ function or(e) {
531
+ var t = e.state, r = e.options, a = e.name;
532
+ if (!t.modifiersData[a]._skip) {
533
+ for (var n = r.mainAxis, i = n === void 0 ? !0 : n, p = r.altAxis, s = p === void 0 ? !0 : p, o = r.fallbackPlacements, c = r.padding, f = r.boundary, h = r.rootBoundary, y = r.altBoundary, l = r.flipVariations, w = l === void 0 ? !0 : l, d = r.allowedAutoPlacements, v = t.options.placement, b = H(v), O = b === v, A = o || (O || !w ? [me(v)] : ar(v)), u = [v].concat(A).reduce(function(K, F) {
534
+ return K.concat(H(F) === Be ? nr(t, {
535
+ placement: F,
536
+ boundary: f,
537
+ rootBoundary: h,
538
+ padding: c,
539
+ flipVariations: w,
540
+ allowedAutoPlacements: d
541
+ }) : F);
542
+ }, []), m = t.rects.reference, g = t.rects.popper, x = /* @__PURE__ */ new Map(), B = !0, P = u[0], E = 0; E < u.length; E++) {
543
+ var D = u[E], M = H(D), j = ee(D) === Q, I = [k, T].indexOf(M) >= 0, z = I ? "width" : "height", R = se(t, {
544
+ placement: D,
545
+ boundary: f,
546
+ rootBoundary: h,
547
+ altBoundary: y,
548
+ padding: c
549
+ }), W = I ? j ? L : C : j ? T : k;
550
+ m[z] > g[z] && (W = me(W));
551
+ var ce = me(W), X = [];
552
+ if (i && X.push(R[M] <= 0), s && X.push(R[W] <= 0, R[ce] <= 0), X.every(function(K) {
553
+ return K;
554
+ })) {
555
+ P = D, B = !1;
556
+ break;
557
+ }
558
+ x.set(D, X);
559
+ }
560
+ if (B)
561
+ for (var le = w ? 3 : 1, be = function(F) {
562
+ var re = u.find(function(ve) {
563
+ var Y = x.get(ve);
564
+ if (Y)
565
+ return Y.slice(0, F).every(function(we) {
566
+ return we;
567
+ });
568
+ });
569
+ if (re)
570
+ return P = re, "break";
571
+ }, te = le; te > 0; te--) {
572
+ var ue = be(te);
573
+ if (ue === "break") break;
574
+ }
575
+ t.placement !== P && (t.modifiersData[a]._skip = !0, t.placement = P, t.reset = !0);
576
+ }
577
+ }
578
+ const ir = {
579
+ name: "flip",
580
+ enabled: !0,
581
+ phase: "main",
582
+ fn: or,
583
+ requiresIfExists: ["offset"],
584
+ data: {
585
+ _skip: !1
586
+ }
587
+ };
588
+ function Ke(e, t, r) {
589
+ return r === void 0 && (r = {
590
+ x: 0,
591
+ y: 0
592
+ }), {
593
+ top: e.top - t.height - r.y,
594
+ right: e.right - t.width + r.x,
595
+ bottom: e.bottom - t.height + r.y,
596
+ left: e.left - t.width - r.x
597
+ };
598
+ }
599
+ function Qe(e) {
600
+ return [k, L, T, C].some(function(t) {
601
+ return e[t] >= 0;
602
+ });
603
+ }
604
+ function sr(e) {
605
+ var t = e.state, r = e.name, a = t.rects.reference, n = t.rects.popper, i = t.modifiersData.preventOverflow, p = se(t, {
606
+ elementContext: "reference"
607
+ }), s = se(t, {
608
+ altBoundary: !0
609
+ }), o = Ke(p, a), c = Ke(s, n, i), f = Qe(o), h = Qe(c);
610
+ t.modifiersData[r] = {
611
+ referenceClippingOffsets: o,
612
+ popperEscapeOffsets: c,
613
+ isReferenceHidden: f,
614
+ hasPopperEscaped: h
615
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
616
+ "data-popper-reference-hidden": f,
617
+ "data-popper-escaped": h
618
+ });
619
+ }
620
+ const fr = {
621
+ name: "hide",
622
+ enabled: !0,
623
+ phase: "main",
624
+ requiresIfExists: ["preventOverflow"],
625
+ fn: sr
626
+ };
627
+ function pr(e, t, r) {
628
+ var a = H(e), n = [C, k].indexOf(a) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
629
+ placement: e
630
+ })) : r, p = i[0], s = i[1];
631
+ return p = p || 0, s = (s || 0) * n, [C, L].indexOf(a) >= 0 ? {
632
+ x: s,
633
+ y: p
634
+ } : {
635
+ x: p,
636
+ y: s
637
+ };
638
+ }
639
+ function cr(e) {
640
+ var t = e.state, r = e.options, a = e.name, n = r.offset, i = n === void 0 ? [0, 0] : n, p = tt.reduce(function(f, h) {
641
+ return f[h] = pr(h, t.rects, i), f;
642
+ }, {}), s = p[t.placement], o = s.x, c = s.y;
643
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += o, t.modifiersData.popperOffsets.y += c), t.modifiersData[a] = p;
644
+ }
645
+ const lr = {
646
+ name: "offset",
647
+ enabled: !0,
648
+ phase: "main",
649
+ requires: ["popperOffsets"],
650
+ fn: cr
651
+ };
652
+ function ur(e) {
653
+ var t = e.state, r = e.name;
654
+ t.modifiersData[r] = ft({
655
+ reference: t.rects.reference,
656
+ element: t.rects.popper,
657
+ placement: t.placement
658
+ });
659
+ }
660
+ const vr = {
661
+ name: "popperOffsets",
662
+ enabled: !0,
663
+ phase: "read",
664
+ fn: ur,
665
+ data: {}
666
+ };
667
+ function dr(e) {
668
+ return e === "x" ? "y" : "x";
669
+ }
670
+ function hr(e) {
671
+ var t = e.state, r = e.options, a = e.name, n = r.mainAxis, i = n === void 0 ? !0 : n, p = r.altAxis, s = p === void 0 ? !1 : p, o = r.boundary, c = r.rootBoundary, f = r.altBoundary, h = r.padding, y = r.tether, l = y === void 0 ? !0 : y, w = r.tetherOffset, d = w === void 0 ? 0 : w, v = se(t, {
672
+ boundary: o,
673
+ rootBoundary: c,
674
+ padding: h,
675
+ altBoundary: f
676
+ }), b = H(t.placement), O = ee(t.placement), A = !O, u = ke(b), m = dr(u), g = t.modifiersData.popperOffsets, x = t.rects.reference, B = t.rects.popper, P = typeof d == "function" ? d(Object.assign({}, t.rects, {
677
+ placement: t.placement
678
+ })) : d, E = typeof P == "number" ? {
679
+ mainAxis: P,
680
+ altAxis: P
681
+ } : Object.assign({
682
+ mainAxis: 0,
683
+ altAxis: 0
684
+ }, P), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
685
+ x: 0,
686
+ y: 0
687
+ };
688
+ if (g) {
689
+ if (i) {
690
+ var j, I = u === "y" ? k : C, z = u === "y" ? T : L, R = u === "y" ? "height" : "width", W = g[u], ce = W + v[I], X = W - v[z], le = l ? -B[R] / 2 : 0, be = O === Q ? x[R] : B[R], te = O === Q ? -B[R] : -x[R], ue = t.elements.arrow, K = l && ue ? je(ue) : {
691
+ width: 0,
692
+ height: 0
693
+ }, F = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : at(), re = F[I], ve = F[z], Y = ae(0, x[R], K[R]), we = A ? x[R] / 2 - le - Y - re - E.mainAxis : be - Y - re - E.mainAxis, pt = A ? -x[R] / 2 + le + Y + ve + E.mainAxis : te + Y + ve + E.mainAxis, xe = t.elements.arrow && pe(t.elements.arrow), ct = xe ? u === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Se = (j = D == null ? void 0 : D[u]) != null ? j : 0, lt = W + we - Se - ct, ut = W + pt - Se, Te = ae(l ? ge(ce, lt) : ce, W, l ? G(X, ut) : X);
694
+ g[u] = Te, M[u] = Te - W;
695
+ }
696
+ if (s) {
697
+ var Le, vt = u === "x" ? k : C, dt = u === "x" ? T : L, U = g[m], de = m === "y" ? "height" : "width", Me = U + v[vt], We = U - v[dt], Oe = [k, C].indexOf(b) !== -1, He = (Le = D == null ? void 0 : D[m]) != null ? Le : 0, Ne = Oe ? Me : U - x[de] - B[de] - He + E.altAxis, Ve = Oe ? U + x[de] + B[de] - He - E.altAxis : We, Fe = l && Oe ? Nt(Ne, U, Ve) : ae(l ? Ne : Me, U, l ? Ve : We);
698
+ g[m] = Fe, M[m] = Fe - U;
699
+ }
700
+ t.modifiersData[a] = M;
701
+ }
702
+ }
703
+ const mr = {
704
+ name: "preventOverflow",
705
+ enabled: !0,
706
+ phase: "main",
707
+ fn: hr,
708
+ requiresIfExists: ["offset"]
709
+ };
710
+ function gr(e) {
711
+ return {
712
+ scrollLeft: e.scrollLeft,
713
+ scrollTop: e.scrollTop
714
+ };
715
+ }
716
+ function yr(e) {
717
+ return e === $(e) || !S(e) ? Ce(e) : gr(e);
718
+ }
719
+ function br(e) {
720
+ var t = e.getBoundingClientRect(), r = Z(t.width) / e.offsetWidth || 1, a = Z(t.height) / e.offsetHeight || 1;
721
+ return r !== 1 || a !== 1;
722
+ }
723
+ function wr(e, t, r) {
724
+ r === void 0 && (r = !1);
725
+ var a = S(t), n = S(t) && br(t), i = q(t), p = _(e, n, r), s = {
726
+ scrollLeft: 0,
727
+ scrollTop: 0
728
+ }, o = {
729
+ x: 0,
730
+ y: 0
731
+ };
732
+ return (a || !a && !r) && ((N(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
733
+ $e(i)) && (s = yr(t)), S(t) ? (o = _(t, !0), o.x += t.clientLeft, o.y += t.clientTop) : i && (o.x = Re(i))), {
734
+ x: p.left + s.scrollLeft - o.x,
735
+ y: p.top + s.scrollTop - o.y,
736
+ width: p.width,
737
+ height: p.height
738
+ };
739
+ }
740
+ function xr(e) {
741
+ var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), a = [];
742
+ e.forEach(function(i) {
743
+ t.set(i.name, i);
744
+ });
745
+ function n(i) {
746
+ r.add(i.name);
747
+ var p = [].concat(i.requires || [], i.requiresIfExists || []);
748
+ p.forEach(function(s) {
749
+ if (!r.has(s)) {
750
+ var o = t.get(s);
751
+ o && n(o);
752
+ }
753
+ }), a.push(i);
754
+ }
755
+ return e.forEach(function(i) {
756
+ r.has(i.name) || n(i);
757
+ }), a;
758
+ }
759
+ function Or(e) {
760
+ var t = xr(e);
761
+ return St.reduce(function(r, a) {
762
+ return r.concat(t.filter(function(n) {
763
+ return n.phase === a;
764
+ }));
765
+ }, []);
766
+ }
767
+ function Ar(e) {
768
+ var t;
769
+ return function() {
770
+ return t || (t = new Promise(function(r) {
771
+ Promise.resolve().then(function() {
772
+ t = void 0, r(e());
773
+ });
774
+ })), t;
775
+ };
776
+ }
777
+ function Er(e) {
778
+ var t = e.reduce(function(r, a) {
779
+ var n = r[a.name];
780
+ return r[a.name] = n ? Object.assign({}, n, a, {
781
+ options: Object.assign({}, n.options, a.options),
782
+ data: Object.assign({}, n.data, a.data)
783
+ }) : a, r;
784
+ }, {});
785
+ return Object.keys(t).map(function(r) {
786
+ return t[r];
787
+ });
788
+ }
789
+ var Ze = {
790
+ placement: "bottom",
791
+ modifiers: [],
792
+ strategy: "absolute"
793
+ };
794
+ function _e() {
795
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
796
+ t[r] = arguments[r];
797
+ return !t.some(function(a) {
798
+ return !(a && typeof a.getBoundingClientRect == "function");
799
+ });
800
+ }
801
+ function Pr(e) {
802
+ e === void 0 && (e = {});
803
+ var t = e, r = t.defaultModifiers, a = r === void 0 ? [] : r, n = t.defaultOptions, i = n === void 0 ? Ze : n;
804
+ return function(s, o, c) {
805
+ c === void 0 && (c = i);
806
+ var f = {
807
+ placement: "bottom",
808
+ orderedModifiers: [],
809
+ options: Object.assign({}, Ze, i),
810
+ modifiersData: {},
811
+ elements: {
812
+ reference: s,
813
+ popper: o
814
+ },
815
+ attributes: {},
816
+ styles: {}
817
+ }, h = [], y = !1, l = {
818
+ state: f,
819
+ setOptions: function(b) {
820
+ var O = typeof b == "function" ? b(f.options) : b;
821
+ d(), f.options = Object.assign({}, i, f.options, O), f.scrollParents = {
822
+ reference: J(s) ? oe(s) : s.contextElement ? oe(s.contextElement) : [],
823
+ popper: oe(o)
824
+ };
825
+ var A = Or(Er([].concat(a, f.options.modifiers)));
826
+ return f.orderedModifiers = A.filter(function(u) {
827
+ return u.enabled;
828
+ }), w(), l.update();
829
+ },
830
+ // Sync update – it will always be executed, even if not necessary. This
831
+ // is useful for low frequency updates where sync behavior simplifies the
832
+ // logic.
833
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
834
+ // prefer the async Popper#update method
835
+ forceUpdate: function() {
836
+ if (!y) {
837
+ var b = f.elements, O = b.reference, A = b.popper;
838
+ if (_e(O, A)) {
839
+ f.rects = {
840
+ reference: wr(O, pe(A), f.options.strategy === "fixed"),
841
+ popper: je(A)
842
+ }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(E) {
843
+ return f.modifiersData[E.name] = Object.assign({}, E.data);
844
+ });
845
+ for (var u = 0; u < f.orderedModifiers.length; u++) {
846
+ if (f.reset === !0) {
847
+ f.reset = !1, u = -1;
848
+ continue;
849
+ }
850
+ var m = f.orderedModifiers[u], g = m.fn, x = m.options, B = x === void 0 ? {} : x, P = m.name;
851
+ typeof g == "function" && (f = g({
852
+ state: f,
853
+ options: B,
854
+ name: P,
855
+ instance: l
856
+ }) || f);
857
+ }
858
+ }
859
+ }
860
+ },
861
+ // Async and optimistically optimized update – it will not be executed if
862
+ // not necessary (debounced to run at most once-per-tick)
863
+ update: Ar(function() {
864
+ return new Promise(function(v) {
865
+ l.forceUpdate(), v(f);
866
+ });
867
+ }),
868
+ destroy: function() {
869
+ d(), y = !0;
870
+ }
871
+ };
872
+ if (!_e(s, o))
873
+ return l;
874
+ l.setOptions(c).then(function(v) {
875
+ !y && c.onFirstUpdate && c.onFirstUpdate(v);
876
+ });
877
+ function w() {
878
+ f.orderedModifiers.forEach(function(v) {
879
+ var b = v.name, O = v.options, A = O === void 0 ? {} : O, u = v.effect;
880
+ if (typeof u == "function") {
881
+ var m = u({
882
+ state: f,
883
+ name: b,
884
+ instance: l,
885
+ options: A
886
+ }), g = function() {
887
+ };
888
+ h.push(m || g);
889
+ }
890
+ });
891
+ }
892
+ function d() {
893
+ h.forEach(function(v) {
894
+ return v();
895
+ }), h = [];
896
+ }
897
+ return l;
898
+ };
899
+ }
900
+ var Br = [Jt, vr, Ut, Mt, lr, ir, mr, It, fr], Dr = /* @__PURE__ */ Pr({
901
+ defaultModifiers: Br
902
+ });
903
+ const jr = { class: "flex w-[inherit]" }, Cr = {
904
+ __name: "OcPopper",
905
+ props: {
906
+ placement: {
907
+ type: String,
908
+ required: !0
909
+ },
910
+ /**
911
+ * Options passed to the `popper` from `https://popper.js.org/docs/v2/modifiers/`
912
+ */
913
+ popperOptions: {
914
+ type: Object
915
+ },
916
+ popperStyle: {
917
+ type: Object
918
+ },
919
+ skidding: {
920
+ type: Number,
921
+ default: 0
922
+ },
923
+ distance: {
924
+ type: [String, Number],
925
+ default: 5
926
+ },
927
+ isFlipEnabled: {
928
+ type: Boolean,
929
+ default: !0
930
+ },
931
+ popperClass: {
932
+ type: [String, Array, Object],
933
+ default: ""
934
+ },
935
+ isAttachToBody: {
936
+ type: Boolean,
937
+ default: !1
938
+ }
939
+ },
940
+ setup(e, { expose: t }) {
941
+ const r = Ae(), a = Ae(), n = Ae(), i = e, p = () => ({
942
+ placement: i.placement,
943
+ modifiers: [
944
+ {
945
+ name: "flip",
946
+ enabled: i.isFlipEnabled
947
+ },
948
+ {
949
+ name: "offset",
950
+ options: {
951
+ offset: [i.skidding, i.distance]
952
+ }
953
+ }
954
+ ],
955
+ ...i.popperOptions || []
956
+ }), s = (o) => {
957
+ var c;
958
+ return o && ((c = a.value) == null ? void 0 : c.contains(o));
959
+ };
960
+ return ht(() => {
961
+ n.value = Dr(r.value, a.value, p()), setTimeout(() => {
962
+ var o;
963
+ return (o = n.value) == null ? void 0 : o.update();
964
+ }, 150);
965
+ }), mt(
966
+ () => [i.popperOptions, i.placement, i.distance, i.skidding],
967
+ () => {
968
+ var o, c;
969
+ (o = n.value) == null || o.setOptions(p()), (c = n.value) == null || c.update();
970
+ },
971
+ { deep: !0 }
972
+ ), t({
973
+ popperInstance: n,
974
+ checkElementIsInsidePopper: s
975
+ }), (o, c) => (qe(), gt("div", jr, [
976
+ Ie("div", {
977
+ ref_key: "reference",
978
+ ref: r,
979
+ class: "w-[inherit] flex"
980
+ }, [
981
+ ze(o.$slots, "default")
982
+ ], 512),
983
+ (qe(), yt(bt, {
984
+ to: "body",
985
+ disabled: !e.isAttachToBody
986
+ }, [
987
+ Ie("div", {
988
+ ref_key: "popper",
989
+ ref: a,
990
+ class: xt([e.popperClass, "z-[1007]"]),
991
+ style: wt(e.popperStyle)
992
+ }, [
993
+ ze(o.$slots, "popper")
994
+ ], 6)
995
+ ], 8, ["disabled"]))
996
+ ]));
997
+ }
998
+ };
999
+ export {
1000
+ Cr as _,
1001
+ Dr as c
1002
+ };