@getmicdrop/venue-calendar 4.3.53 → 4.3.54

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 (100) hide show
  1. package/dist/{ArrowLeftIcon-BLnCtSTd.js → ArrowLeftIcon-DjqiKzR8.js} +1 -1
  2. package/dist/{Badge-LGtxYPTv.js → Badge-BsWJrQII.js} +9 -9
  3. package/dist/{BlockPlaceholder-BhPJo2P8.js → BlockPlaceholder-CgZr2Euq.js} +2 -2
  4. package/dist/{Button-D8b2gDS8.js → Button-AZ8OLQqj.js} +16 -15
  5. package/dist/{Button-DZ_ZJIeL.js → Button-B8GiiO44.js} +589 -803
  6. package/dist/Calendar-CS_RqyU_.js +486 -0
  7. package/dist/{CalendarFoundryView-CEEJ8nkK.js → CalendarFoundryView-D6cytJxm.js} +5787 -7311
  8. package/dist/{CalendarIcon-CLbs06CG.js → CalendarIcon-D9Z9YFz6.js} +1 -1
  9. package/dist/{CartView-BN-EnU8O.js → CartView-DTXoQTOC.js} +262 -261
  10. package/dist/{ChartBlock-CQuNi0uN.js → ChartBlock-CaxNJtrg.js} +3 -3
  11. package/dist/{Checkout-dBGyhMQD.js → Checkout-B8ZkBxF_.js} +24 -24
  12. package/dist/{Checkout-BLfHdJ4t.js → Checkout-QIxYrkeK.js} +26 -26
  13. package/dist/{CheckoutTimer-DnHjYAv-.js → CheckoutTimer-CyN-mQCP.js} +3 -3
  14. package/dist/{ChevronDownIcon-BIGPSika.js → ChevronDownIcon-D9I-5bmz.js} +1 -1
  15. package/dist/ChevronDownOutline-D7YDiKBF.js +13 -0
  16. package/dist/{ClockIcon-D5mFK2c-.js → ClockIcon-C7nkbmvv.js} +1 -1
  17. package/dist/{CloseIcon-Bf4yqVV0.js → CloseIcon-DPdjPdoi.js} +1 -1
  18. package/dist/{CollectionView-H_aMs6Zm.js → CollectionView-CkKwCXQj.js} +11 -11
  19. package/dist/{CropImage-BFJ61OWR.js → CropImage-9r61-nLv.js} +47 -46
  20. package/dist/{EmptyState-Dak003WV.js → EmptyState-DxahojFY.js} +6 -6
  21. package/dist/{Event-BYW026V7.js → Event-BfWRG4dm.js} +499 -497
  22. package/dist/EventPage-dCTHvk7P.js +1201 -0
  23. package/dist/ExclamationCircleOutline-D3XbhOwM.js +13 -0
  24. package/dist/{Heading-BFFV1cuP.js → Heading-CZMbiuFu.js} +4 -4
  25. package/dist/Input-CDw-j5fQ.js +292 -0
  26. package/dist/{MailIcon-BO5Ou19Y.js → MailIcon-C__hyCKr.js} +1 -1
  27. package/dist/{Modal-JNeuI7zx.js → Modal-D6NKikBr.js} +2 -2
  28. package/dist/ModalFooter-ngqovl_z.js +377 -0
  29. package/dist/{ModalHeader-BNxKfIP7.js → ModalHeader-CI7Ev4MQ.js} +2 -2
  30. package/dist/{PasswordInput-DaJbFgg5.js → PasswordInput-D3Pwparw.js} +2 -2
  31. package/dist/PhoneInput-oGG1WJii.js +1568 -0
  32. package/dist/{RecommendationsRail-DBadchEC.js → RecommendationsRail-DPxl9JCm.js} +9 -9
  33. package/dist/{ScarcityBadge-Bi5eRig2.js → ScarcityBadge-BXn6HM_K.js} +24 -24
  34. package/dist/{SeriesPage-DnArOhpy.js → SeriesPage-B7z1yoAK.js} +7 -7
  35. package/dist/{Spinner-UI821bAt.js → Spinner-6UtYyNcF.js} +3 -3
  36. package/dist/{Success-BKfN0O0W.js → Success-BzuOliUV.js} +19 -19
  37. package/dist/{TagIcon-BWLYSGkG.js → TagIcon-DwWcRiXS.js} +1 -1
  38. package/dist/{Textarea-CdxxGwCO.js → Textarea-CyfWw1Zf.js} +1 -1
  39. package/dist/{ViewTicketsEmbed-saRT7Ac-.js → ViewTicketsEmbed-BE8iTUF9.js} +28 -28
  40. package/dist/{WarningCircleIcon-CyE_Th8p.js → WarningCircleIcon-C2fJjhKf.js} +18 -28
  41. package/dist/{WarningTriIcon-D1jwyRhA.js → WarningTriIcon-OqM9Rfwq.js} +1 -1
  42. package/dist/{action-test-id-DYsZDRVM.js → action-test-id-DJZiaKrZ.js} +3 -3
  43. package/dist/{api-CAGahqGT.js → api-BsBSvoNj.js} +5 -5
  44. package/dist/{copyToClipboard-NTWYm45i.js → copyToClipboard-CL9BmJA4.js} +1 -1
  45. package/dist/createErrorGate.svelte-DwTTmYou.js +83 -0
  46. package/dist/{defaultLabels-CAOGfi3n.js → defaultLabels-BaVkGLw4.js} +14 -14
  47. package/dist/{defaults-CPjpHdep.js → defaults-BHXY6s4i.js} +2 -2
  48. package/dist/{event-transform-tDqIHrb0.js → event-transform-oLpmof1H.js} +4 -4
  49. package/dist/{event-BoPSP9Wq.js → event-xgg-eiTq.js} +1 -1
  50. package/dist/{eventStatusStream-Cw6cAXYK.js → eventStatusStream-BIxriEut.js} +2 -2
  51. package/dist/floatingPosition-DXLeLxPY.js +846 -0
  52. package/dist/{href-DUImPiNg.js → href-DO3HKeJp.js} +3 -3
  53. package/dist/{i18n-urZE8FDd.js → i18n-8EWq-WHv.js} +2 -2
  54. package/dist/{i18n-DvVKV8xP.js → i18n-JpkI3lvS.js} +5 -5
  55. package/dist/{imageOptimizer-Bz54wwZL.js → imageOptimizer-Bb09jR0m.js} +56 -54
  56. package/dist/{keyboard-WUqlYI2l.js → keyboard-Crrnn87b.js} +1 -1
  57. package/dist/{order-totals-2arQgl1W.js → order-totals-5X0jD77w.js} +3 -3
  58. package/dist/{orders-DKH_Ff_F.js → orders--luy9Lyn.js} +19 -19
  59. package/dist/{createErrorGate.svelte-B1UBm7Je.js → phoneUtils-CS66SHie.js} +607 -686
  60. package/dist/{pixels-CoTj8WW9.js → pixels-FefBmhJt.js} +3 -3
  61. package/dist/portal-BZBgqs8B.js +98 -0
  62. package/dist/{promo-77n6yQJ5.js → promo-BNwWtZjP.js} +1 -1
  63. package/dist/{scarcity-CSQqP7r6.js → scarcity-CR1Pa81F.js} +2 -2
  64. package/dist/{serverTotals-CygpqxZO.js → serverTotals-DeOPPRj6.js} +1 -1
  65. package/dist/{showcase-state-options-BSIYaeAC.js → showcase-state-options-BGmvUaQ_.js} +1 -1
  66. package/dist/sizing-CFDo_qh_.js +216 -0
  67. package/dist/{to-event-card-props-CcTZVm_k.js → to-event-card-props-DLOxO2oP.js} +10 -10
  68. package/dist/{utils-CPYwV5uR.js → utils-BFaSYuNA.js} +3 -3
  69. package/dist/venue-calendar.es.js +50 -50
  70. package/dist/venue-calendar.iife.js +2 -2
  71. package/dist/venue-calendar.umd.js +50 -50
  72. package/package.json +2 -2
  73. package/dist/Calendar-D1d210pe.js +0 -1327
  74. package/dist/EventPage-DqTynzsn.js +0 -1199
  75. package/dist/Input-BlLlXJhw.js +0 -301
  76. package/dist/ModalFooter-CZYeaLby.js +0 -471
  77. /package/dist/locales/{4.3.53 → 4.3.54}/flow/de.js +0 -0
  78. /package/dist/locales/{4.3.53 → 4.3.54}/flow/es.js +0 -0
  79. /package/dist/locales/{4.3.53 → 4.3.54}/flow/fr.js +0 -0
  80. /package/dist/locales/{4.3.53 → 4.3.54}/flow/id.js +0 -0
  81. /package/dist/locales/{4.3.53 → 4.3.54}/flow/it.js +0 -0
  82. /package/dist/locales/{4.3.53 → 4.3.54}/flow/ja.js +0 -0
  83. /package/dist/locales/{4.3.53 → 4.3.54}/flow/ko.js +0 -0
  84. /package/dist/locales/{4.3.53 → 4.3.54}/flow/nl.js +0 -0
  85. /package/dist/locales/{4.3.53 → 4.3.54}/flow/pl.js +0 -0
  86. /package/dist/locales/{4.3.53 → 4.3.54}/flow/pt-br.js +0 -0
  87. /package/dist/locales/{4.3.53 → 4.3.54}/flow/tr.js +0 -0
  88. /package/dist/locales/{4.3.53 → 4.3.54}/flow/zh.js +0 -0
  89. /package/dist/locales/{4.3.53 → 4.3.54}/main/de.js +0 -0
  90. /package/dist/locales/{4.3.53 → 4.3.54}/main/es.js +0 -0
  91. /package/dist/locales/{4.3.53 → 4.3.54}/main/fr.js +0 -0
  92. /package/dist/locales/{4.3.53 → 4.3.54}/main/id.js +0 -0
  93. /package/dist/locales/{4.3.53 → 4.3.54}/main/it.js +0 -0
  94. /package/dist/locales/{4.3.53 → 4.3.54}/main/ja.js +0 -0
  95. /package/dist/locales/{4.3.53 → 4.3.54}/main/ko.js +0 -0
  96. /package/dist/locales/{4.3.53 → 4.3.54}/main/nl.js +0 -0
  97. /package/dist/locales/{4.3.53 → 4.3.54}/main/pl.js +0 -0
  98. /package/dist/locales/{4.3.53 → 4.3.54}/main/pt-br.js +0 -0
  99. /package/dist/locales/{4.3.53 → 4.3.54}/main/tr.js +0 -0
  100. /package/dist/locales/{4.3.53 → 4.3.54}/main/zh.js +0 -0
@@ -0,0 +1,846 @@
1
+ import { t as e } from "./z-index-Bo0dqmiq.js";
2
+ import { a as t, i as n, n as r, r as i } from "./portal-BZBgqs8B.js";
3
+ //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
4
+ var a = Math.min, o = Math.max, s = Math.round, c = Math.floor, l = (e) => ({
5
+ x: e,
6
+ y: e
7
+ }), u = {
8
+ left: "right",
9
+ right: "left",
10
+ bottom: "top",
11
+ top: "bottom"
12
+ };
13
+ function d(e, t, n) {
14
+ return o(e, a(t, n));
15
+ }
16
+ function f(e, t) {
17
+ return typeof e == "function" ? e(t) : e;
18
+ }
19
+ function p(e) {
20
+ return e.split("-")[0];
21
+ }
22
+ function m(e) {
23
+ return e.split("-")[1];
24
+ }
25
+ function h(e) {
26
+ return e === "x" ? "y" : "x";
27
+ }
28
+ function g(e) {
29
+ return e === "y" ? "height" : "width";
30
+ }
31
+ function _(e) {
32
+ let t = e[0];
33
+ return t === "t" || t === "b" ? "y" : "x";
34
+ }
35
+ function v(e) {
36
+ return h(_(e));
37
+ }
38
+ function y(e, t, n) {
39
+ n === void 0 && (n = !1);
40
+ let r = m(e), i = v(e), a = g(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
41
+ return t.reference[a] > t.floating[a] && (o = D(o)), [o, D(o)];
42
+ }
43
+ function b(e) {
44
+ let t = D(e);
45
+ return [
46
+ x(e),
47
+ t,
48
+ x(t)
49
+ ];
50
+ }
51
+ function x(e) {
52
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
53
+ }
54
+ var S = ["left", "right"], C = ["right", "left"], w = ["top", "bottom"], T = ["bottom", "top"];
55
+ function E(e, t, n) {
56
+ switch (e) {
57
+ case "top":
58
+ case "bottom": return n ? t ? C : S : t ? S : C;
59
+ case "left":
60
+ case "right": return t ? w : T;
61
+ default: return [];
62
+ }
63
+ }
64
+ function ee(e, t, n, r) {
65
+ let i = m(e), a = E(p(e), n === "start", r);
66
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(x)))), a;
67
+ }
68
+ function D(e) {
69
+ let t = p(e);
70
+ return u[t] + e.slice(t.length);
71
+ }
72
+ function O(e) {
73
+ return {
74
+ top: e.top ?? 0,
75
+ right: e.right ?? 0,
76
+ bottom: e.bottom ?? 0,
77
+ left: e.left ?? 0
78
+ };
79
+ }
80
+ function k(e) {
81
+ return typeof e == "number" ? {
82
+ top: e,
83
+ right: e,
84
+ bottom: e,
85
+ left: e
86
+ } : O(e);
87
+ }
88
+ function A(e) {
89
+ let { x: t, y: n, width: r, height: i } = e;
90
+ return {
91
+ width: r,
92
+ height: i,
93
+ top: n,
94
+ left: t,
95
+ right: t + r,
96
+ bottom: n + i,
97
+ x: t,
98
+ y: n
99
+ };
100
+ }
101
+ //#endregion
102
+ //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
103
+ function j(e, t, n) {
104
+ let { reference: r, floating: i } = e, a = _(t), o = v(t), s = g(o), c = p(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, h;
105
+ switch (c) {
106
+ case "top":
107
+ h = {
108
+ x: u,
109
+ y: r.y - i.height
110
+ };
111
+ break;
112
+ case "bottom":
113
+ h = {
114
+ x: u,
115
+ y: r.y + r.height
116
+ };
117
+ break;
118
+ case "right":
119
+ h = {
120
+ x: r.x + r.width,
121
+ y: d
122
+ };
123
+ break;
124
+ case "left":
125
+ h = {
126
+ x: r.x - i.width,
127
+ y: d
128
+ };
129
+ break;
130
+ default: h = {
131
+ x: r.x,
132
+ y: r.y
133
+ };
134
+ }
135
+ let y = m(t);
136
+ return y && (h[o] += f * (y === "end" ? 1 : -1) * (n && l ? -1 : 1)), h;
137
+ }
138
+ async function te(e, t) {
139
+ t === void 0 && (t = {});
140
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: p = 0 } = f(t, e), m = k(p), h = o[d ? u === "floating" ? "reference" : "floating" : u], g = A(await i.getClippingRect({
141
+ element: await (i.isElement == null ? void 0 : i.isElement(h)) ?? !0 ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
142
+ boundary: c,
143
+ rootBoundary: l,
144
+ strategy: s
145
+ })), _ = u === "floating" ? {
146
+ x: n,
147
+ y: r,
148
+ width: a.floating.width,
149
+ height: a.floating.height
150
+ } : a.reference, v = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), y = await (i.isElement == null ? void 0 : i.isElement(v)) && await (i.getScale == null ? void 0 : i.getScale(v)) || {
151
+ x: 1,
152
+ y: 1
153
+ }, b = A(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
154
+ elements: o,
155
+ rect: _,
156
+ offsetParent: v,
157
+ strategy: s
158
+ }) : _);
159
+ return {
160
+ top: (g.top - b.top + m.top) / y.y,
161
+ bottom: (b.bottom - g.bottom + m.bottom) / y.y,
162
+ left: (g.left - b.left + m.left) / y.x,
163
+ right: (b.right - g.right + m.right) / y.x
164
+ };
165
+ }
166
+ var ne = 50, re = async (e, t, n) => {
167
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
168
+ ...o,
169
+ detectOverflow: te
170
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
171
+ reference: e,
172
+ floating: t,
173
+ strategy: i
174
+ }), { x: u, y: d } = j(l, r, c), f = r, p = 0, m = {};
175
+ for (let n = 0; n < a.length; n++) {
176
+ let h = a[n];
177
+ if (!h) continue;
178
+ let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
179
+ x: u,
180
+ y: d,
181
+ initialPlacement: r,
182
+ placement: f,
183
+ strategy: i,
184
+ middlewareData: m,
185
+ rects: l,
186
+ platform: s,
187
+ elements: {
188
+ reference: e,
189
+ floating: t
190
+ }
191
+ });
192
+ u = v ?? u, d = y ?? d, m[g] = {
193
+ ...m[g],
194
+ ...b
195
+ }, x && p < ne && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
196
+ reference: e,
197
+ floating: t,
198
+ strategy: i
199
+ }) : x.rects), {x: u, y: d} = j(l, f, c)), n = -1);
200
+ }
201
+ return {
202
+ x: u,
203
+ y: d,
204
+ placement: f,
205
+ strategy: i,
206
+ middlewareData: m
207
+ };
208
+ }, ie = function(e) {
209
+ return e === void 0 && (e = {}), {
210
+ name: "flip",
211
+ options: e,
212
+ async fn(t) {
213
+ var n;
214
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: h = "none", flipAlignment: g = !0, ...v } = f(e, t);
215
+ if ((n = i.arrow) != null && n.alignmentOffset) return {};
216
+ let x = p(r), S = _(o), C = p(o) === o, w = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), T = d || (C || !g ? [D(o)] : b(o)), E = h !== "none";
217
+ !d && E && T.push(...ee(o, g, h, w));
218
+ let O = [o, ...T], k = await s.detectOverflow(t, v), A = [], j = i.flip?.overflows || [];
219
+ if (l && A.push(k[x]), u) {
220
+ let e = y(r, a, w);
221
+ A.push(k[e[0]], k[e[1]]);
222
+ }
223
+ if (j = [...j, {
224
+ placement: r,
225
+ overflows: A
226
+ }], !A.every((e) => e <= 0)) {
227
+ let e = (i.flip?.index || 0) + 1, t = O[e];
228
+ if (t && (u !== "alignment" || S === _(t) || j.every((e) => _(e.placement) !== S || e.overflows[0] > 0))) return {
229
+ data: {
230
+ index: e,
231
+ overflows: j
232
+ },
233
+ reset: { placement: t }
234
+ };
235
+ let n = j.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
236
+ if (!n) switch (m) {
237
+ case "bestFit": {
238
+ let e = j.filter((e) => {
239
+ if (E) {
240
+ let t = _(e.placement);
241
+ return t === S || t === "y";
242
+ }
243
+ return !0;
244
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
245
+ e && (n = e);
246
+ break;
247
+ }
248
+ case "initialPlacement": n = o;
249
+ }
250
+ if (r !== n) return { reset: { placement: n } };
251
+ }
252
+ return {};
253
+ }
254
+ };
255
+ }, ae = /*#__PURE__*/ new Set(["left", "top"]);
256
+ async function oe(e, t) {
257
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = p(n), s = m(n), c = _(n) === "y", l = ae.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = f(t, e), { mainAxis: h, crossAxis: g, alignmentAxis: v } = typeof d == "number" ? {
258
+ mainAxis: d,
259
+ crossAxis: 0,
260
+ alignmentAxis: null
261
+ } : {
262
+ mainAxis: d.mainAxis || 0,
263
+ crossAxis: d.crossAxis || 0,
264
+ alignmentAxis: d.alignmentAxis
265
+ };
266
+ return s && typeof v == "number" && (g = s === "end" ? v * -1 : v), c ? {
267
+ x: g * u,
268
+ y: h * l
269
+ } : {
270
+ x: h * l,
271
+ y: g * u
272
+ };
273
+ }
274
+ var se = function(e) {
275
+ return e === void 0 && (e = 0), {
276
+ name: "offset",
277
+ options: e,
278
+ async fn(t) {
279
+ var n;
280
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await oe(t, e);
281
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
282
+ x: r + s.x,
283
+ y: i + s.y,
284
+ data: {
285
+ ...s,
286
+ placement: a
287
+ }
288
+ };
289
+ }
290
+ };
291
+ }, ce = function(e) {
292
+ return e === void 0 && (e = {}), {
293
+ name: "shift",
294
+ options: e,
295
+ async fn(t) {
296
+ let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
297
+ let { x: t, y: n } = e;
298
+ return {
299
+ x: t,
300
+ y: n
301
+ };
302
+ } }, ...l } = f(e, t), u = {
303
+ x: n,
304
+ y: r
305
+ }, p = await a.detectOverflow(t, l), m = _(i), g = h(m), v = u[g], y = u[m], b = (e, t) => d(t + p[e === "y" ? "top" : "left"], t, t - p[e === "y" ? "bottom" : "right"]);
306
+ o && (v = b(g, v)), s && (y = b(m, y));
307
+ let x = c.fn({
308
+ ...t,
309
+ [g]: v,
310
+ [m]: y
311
+ });
312
+ return {
313
+ ...x,
314
+ data: {
315
+ x: x.x - n,
316
+ y: x.y - r,
317
+ enabled: {
318
+ [g]: o,
319
+ [m]: s
320
+ }
321
+ }
322
+ };
323
+ }
324
+ };
325
+ }, le = function(e) {
326
+ return e === void 0 && (e = {}), {
327
+ name: "size",
328
+ options: e,
329
+ async fn(t) {
330
+ let { placement: n, rects: r, platform: i, elements: s } = t, { apply: c = () => {}, ...l } = f(e, t), u = await i.detectOverflow(t, l), d = p(n), h = m(n), g = _(n) === "y", { width: v, height: y } = r.floating, b, x;
331
+ d === "top" || d === "bottom" ? (b = d, x = h === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = d, b = h === "end" ? "top" : "bottom");
332
+ let S = y - u.top - u.bottom, C = v - u.left - u.right, w = a(y - u[b], S), T = a(v - u[x], C), E = t.middlewareData.shift, ee = !E, D = w, O = T;
333
+ E != null && E.enabled.x && (O = C), E != null && E.enabled.y && (D = S), ee && !h && (g ? O = v - 2 * o(u.left, u.right) : D = y - 2 * o(u.top, u.bottom)), await c({
334
+ ...t,
335
+ availableWidth: O,
336
+ availableHeight: D
337
+ });
338
+ let k = await i.getDimensions(s.floating);
339
+ return v !== k.width || y !== k.height ? { reset: { rects: !0 } } : {};
340
+ }
341
+ };
342
+ };
343
+ //#endregion
344
+ //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
345
+ function M() {
346
+ return typeof window < "u";
347
+ }
348
+ function N(e) {
349
+ return ue(e) ? (e.nodeName || "").toLowerCase() : "#document";
350
+ }
351
+ function P(e) {
352
+ var t;
353
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
354
+ }
355
+ function F(e) {
356
+ return ((ue(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
357
+ }
358
+ function ue(e) {
359
+ return M() ? e instanceof Node || e instanceof P(e).Node : !1;
360
+ }
361
+ function I(e) {
362
+ return M() ? e instanceof Element || e instanceof P(e).Element : !1;
363
+ }
364
+ function L(e) {
365
+ return M() ? e instanceof HTMLElement || e instanceof P(e).HTMLElement : !1;
366
+ }
367
+ function de(e) {
368
+ return !M() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
369
+ }
370
+ function R(e) {
371
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = W(e);
372
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
373
+ }
374
+ function fe(e) {
375
+ return /^(table|td|th)$/.test(N(e));
376
+ }
377
+ function z(e) {
378
+ try {
379
+ if (e.matches(":popover-open")) return !0;
380
+ } catch {}
381
+ try {
382
+ return e.matches(":modal");
383
+ } catch {
384
+ return !1;
385
+ }
386
+ }
387
+ var pe = /transform|translate|scale|rotate|perspective|filter/, me = /paint|layout|strict|content/, B = (e) => !!e && e !== "none", he;
388
+ function V(e) {
389
+ let t = I(e) ? W(e) : e;
390
+ return B(t.transform) || B(t.translate) || B(t.scale) || B(t.rotate) || B(t.perspective) || !H() && (B(t.backdropFilter) || B(t.filter)) || pe.test(t.willChange || "") || me.test(t.contain || "");
391
+ }
392
+ function ge(e) {
393
+ let t = K(e);
394
+ for (; L(t) && !U(t);) {
395
+ if (V(t)) return t;
396
+ if (z(t)) return null;
397
+ t = K(t);
398
+ }
399
+ return null;
400
+ }
401
+ function H() {
402
+ return he ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), he;
403
+ }
404
+ function U(e) {
405
+ return /^(html|body|#document)$/.test(N(e));
406
+ }
407
+ function W(e) {
408
+ return P(e).getComputedStyle(e);
409
+ }
410
+ function G(e) {
411
+ return I(e) ? {
412
+ scrollLeft: e.scrollLeft,
413
+ scrollTop: e.scrollTop
414
+ } : {
415
+ scrollLeft: e.scrollX,
416
+ scrollTop: e.scrollY
417
+ };
418
+ }
419
+ function K(e) {
420
+ if (N(e) === "html") return e;
421
+ let t = e.assignedSlot || e.parentNode || de(e) && e.host || F(e);
422
+ return de(t) ? t.host : t;
423
+ }
424
+ function _e(e) {
425
+ let t = K(e);
426
+ return U(t) ? (e.ownerDocument || e).body : L(t) && R(t) ? t : _e(t);
427
+ }
428
+ function q(e, t, n) {
429
+ t === void 0 && (t = []), n === void 0 && (n = !0);
430
+ let r = _e(e), i = r === e.ownerDocument?.body, a = P(r);
431
+ if (i) {
432
+ let e = J(a);
433
+ return t.concat(a, a.visualViewport || [], R(r) ? r : [], e && n ? q(e) : []);
434
+ }
435
+ return t.concat(r, q(r, [], n));
436
+ }
437
+ function J(e) {
438
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
439
+ }
440
+ //#endregion
441
+ //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
442
+ function ve(e) {
443
+ let t = W(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = L(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, c = s(n) !== a || s(r) !== o;
444
+ return c && (n = a, r = o), {
445
+ width: n,
446
+ height: r,
447
+ $: c
448
+ };
449
+ }
450
+ function Y(e) {
451
+ return I(e) ? e : e.contextElement;
452
+ }
453
+ function X(e) {
454
+ let t = Y(e);
455
+ if (!L(t)) return l(1);
456
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ve(t), o = (a ? s(n.width) : n.width) / r, c = (a ? s(n.height) : n.height) / i;
457
+ return (!o || !Number.isFinite(o)) && (o = 1), (!c || !Number.isFinite(c)) && (c = 1), {
458
+ x: o,
459
+ y: c
460
+ };
461
+ }
462
+ var ye = /*#__PURE__*/ l(0);
463
+ function be(e) {
464
+ let t = P(e);
465
+ return !H() || !t.visualViewport ? ye : {
466
+ x: t.visualViewport.offsetLeft,
467
+ y: t.visualViewport.offsetTop
468
+ };
469
+ }
470
+ function xe(e, t, n) {
471
+ return t === void 0 && (t = !1), !!n && t && n === P(e);
472
+ }
473
+ function Z(e, t, n, r) {
474
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
475
+ let i = e.getBoundingClientRect(), a = Y(e), o = l(1);
476
+ t && (r ? I(r) && (o = X(r)) : o = X(e));
477
+ let s = xe(a, n, r) ? be(a) : l(0), c = (i.left + s.x) / o.x, u = (i.top + s.y) / o.y, d = i.width / o.x, f = i.height / o.y;
478
+ if (a && r) {
479
+ let e = P(a), t = I(r) ? P(r) : r, n = e, i = J(n);
480
+ for (; i && t !== n;) {
481
+ let e = X(i), t = i.getBoundingClientRect(), r = W(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
482
+ c *= e.x, u *= e.y, d *= e.x, f *= e.y, c += a, u += o, n = P(i), i = J(n);
483
+ }
484
+ }
485
+ return A({
486
+ width: d,
487
+ height: f,
488
+ x: c,
489
+ y: u
490
+ });
491
+ }
492
+ function Q(e, t) {
493
+ let n = G(e).scrollLeft;
494
+ return t ? t.left + n : Z(F(e)).left + n;
495
+ }
496
+ function Se(e, t) {
497
+ let n = e.getBoundingClientRect();
498
+ return {
499
+ x: n.left + t.scrollLeft - Q(e, n),
500
+ y: n.top + t.scrollTop
501
+ };
502
+ }
503
+ function Ce(e) {
504
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = F(r), s = t ? z(t.floating) : !1;
505
+ if (r === o || s && a) return n;
506
+ let c = {
507
+ scrollLeft: 0,
508
+ scrollTop: 0
509
+ }, u = l(1), d = l(0), f = L(r);
510
+ if ((f || !a) && ((N(r) !== "body" || R(o)) && (c = G(r)), f)) {
511
+ let e = Z(r);
512
+ u = X(r), d.x = e.x + r.clientLeft, d.y = e.y + r.clientTop;
513
+ }
514
+ let p = o && !f && !a ? Se(o, c) : l(0);
515
+ return {
516
+ width: n.width * u.x,
517
+ height: n.height * u.y,
518
+ x: n.x * u.x - c.scrollLeft * u.x + d.x + p.x,
519
+ y: n.y * u.y - c.scrollTop * u.y + d.y + p.y
520
+ };
521
+ }
522
+ function we(e) {
523
+ return e.getClientRects ? Array.from(e.getClientRects()) : [];
524
+ }
525
+ function Te(e) {
526
+ let t = G(e), n = e.ownerDocument.body, r = o(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = o(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Q(e), s = -t.scrollTop;
527
+ return W(n).direction === "rtl" && (a += o(e.clientWidth, n.clientWidth) - r), {
528
+ width: r,
529
+ height: i,
530
+ x: a,
531
+ y: s
532
+ };
533
+ }
534
+ var Ee = 25;
535
+ function De(e, t, n) {
536
+ n === void 0 && (n = "viewport");
537
+ let r = n === "layoutViewport", i = P(e), a = F(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
538
+ if (o) {
539
+ let e = !H() || t === "fixed";
540
+ r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
541
+ }
542
+ if (Q(a) <= 0) {
543
+ let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
544
+ o <= Ee && (s -= o);
545
+ }
546
+ return {
547
+ width: s,
548
+ height: c,
549
+ x: l,
550
+ y: u
551
+ };
552
+ }
553
+ function Oe(e, t) {
554
+ let n = Z(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = X(e);
555
+ return {
556
+ width: e.clientWidth * a.x,
557
+ height: e.clientHeight * a.y,
558
+ x: i * a.x,
559
+ y: r * a.y
560
+ };
561
+ }
562
+ function ke(e, t, n) {
563
+ let r;
564
+ if (t === "viewport" || t === "layoutViewport") r = De(e, n, t);
565
+ else if (t === "document") r = Te(F(e));
566
+ else if (I(t)) r = Oe(t, n);
567
+ else {
568
+ let n = be(e);
569
+ r = {
570
+ x: t.x - n.x,
571
+ y: t.y - n.y,
572
+ width: t.width,
573
+ height: t.height
574
+ };
575
+ }
576
+ return A(r);
577
+ }
578
+ function Ae(e, t) {
579
+ let n = t.get(e);
580
+ if (n) return n;
581
+ let r = q(e, [], !1).filter((e) => I(e) && N(e) !== "body"), i = null, a = W(e).position === "fixed", o = a ? K(e) : e;
582
+ for (; I(o) && !U(o);) {
583
+ let e = W(o), t = V(o), n = i ? i.position : a ? "fixed" : "";
584
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = K(o);
585
+ }
586
+ return t.set(e, r), r;
587
+ }
588
+ function je(e) {
589
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, s = [...n === "clippingAncestors" ? z(t) ? [] : Ae(t, this._c) : [].concat(n), r], c = ke(t, s[0], i), l = c.top, u = c.right, d = c.bottom, f = c.left;
590
+ for (let e = 1; e < s.length; e++) {
591
+ let n = ke(t, s[e], i);
592
+ l = o(n.top, l), u = a(n.right, u), d = a(n.bottom, d), f = o(n.left, f);
593
+ }
594
+ return {
595
+ width: u - f,
596
+ height: d - l,
597
+ x: f,
598
+ y: l
599
+ };
600
+ }
601
+ function Me(e) {
602
+ let { width: t, height: n } = ve(e);
603
+ return {
604
+ width: t,
605
+ height: n
606
+ };
607
+ }
608
+ function Ne(e, t, n) {
609
+ let r = L(t), i = F(t), a = n === "fixed", o = Z(e, !0, a, t), s = {
610
+ scrollLeft: 0,
611
+ scrollTop: 0
612
+ }, c = l(0);
613
+ if ((r || !a) && ((N(t) !== "body" || R(i)) && (s = G(t)), r)) {
614
+ let e = Z(t, !0, a, t);
615
+ c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
616
+ }
617
+ !r && i && (c.x = Q(i));
618
+ let u = i && !r && !a ? Se(i, s) : l(0);
619
+ return {
620
+ x: o.left + s.scrollLeft - c.x - u.x,
621
+ y: o.top + s.scrollTop - c.y - u.y,
622
+ width: o.width,
623
+ height: o.height
624
+ };
625
+ }
626
+ function $(e) {
627
+ return W(e).position === "static";
628
+ }
629
+ function Pe(e, t) {
630
+ if (!L(e) || W(e).position === "fixed") return null;
631
+ if (t) return t(e);
632
+ let n = e.offsetParent;
633
+ return F(e) === n && (n = n.ownerDocument.body), n;
634
+ }
635
+ function Fe(e, t) {
636
+ let n = P(e);
637
+ if (z(e)) return n;
638
+ if (!L(e)) {
639
+ let t = K(e);
640
+ for (; t && !U(t);) {
641
+ if (I(t) && !$(t)) return t;
642
+ t = K(t);
643
+ }
644
+ return n;
645
+ }
646
+ let r = Pe(e, t);
647
+ for (; r && fe(r) && $(r);) r = Pe(r, t);
648
+ return r && U(r) && $(r) && !V(r) ? n : r || ge(e) || n;
649
+ }
650
+ var Ie = async function(e) {
651
+ let t = this.getOffsetParent || Fe, n = this.getDimensions, r = await n(e.floating);
652
+ return {
653
+ reference: Ne(e.reference, await t(e.floating), e.strategy),
654
+ floating: {
655
+ x: 0,
656
+ y: 0,
657
+ width: r.width,
658
+ height: r.height
659
+ }
660
+ };
661
+ };
662
+ function Le(e) {
663
+ return W(e).direction === "rtl";
664
+ }
665
+ var Re = {
666
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ce,
667
+ getDocumentElement: F,
668
+ getClippingRect: je,
669
+ getOffsetParent: Fe,
670
+ getElementRects: Ie,
671
+ getClientRects: we,
672
+ getDimensions: Me,
673
+ getScale: X,
674
+ isElement: I,
675
+ isRTL: Le
676
+ };
677
+ function ze(e, t) {
678
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
679
+ }
680
+ function Be(e, t, n) {
681
+ let r = null, i, s = F(e);
682
+ function l() {
683
+ var e;
684
+ clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
685
+ }
686
+ function u(n, d) {
687
+ n === void 0 && (n = !1), d === void 0 && (d = 1), l();
688
+ let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
689
+ if (n || t(), !h || !g) return;
690
+ let _ = c(m), v = c(s.clientWidth - (p + h)), y = c(s.clientHeight - (m + g)), b = c(p), x = {
691
+ rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
692
+ threshold: o(0, a(1, d)) || 1
693
+ }, S = !0;
694
+ function C(t) {
695
+ let n = t[0].intersectionRatio;
696
+ if (!ze(f, e.getBoundingClientRect())) return u();
697
+ if (n !== d) {
698
+ if (!S) return u();
699
+ n ? u(!1, n) : i = setTimeout(() => {
700
+ u(!1, 1e-7);
701
+ }, 1e3);
702
+ }
703
+ S = !1;
704
+ }
705
+ try {
706
+ r = new IntersectionObserver(C, {
707
+ ...x,
708
+ root: s.ownerDocument
709
+ });
710
+ } catch {
711
+ r = new IntersectionObserver(C, x);
712
+ }
713
+ r.observe(e);
714
+ }
715
+ let d = P(e), f = () => u(n);
716
+ return d.addEventListener("resize", f), u(!0), () => {
717
+ d.removeEventListener("resize", f), l();
718
+ };
719
+ }
720
+ function Ve(e, t, n, r) {
721
+ r === void 0 && (r = {});
722
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Y(e), u = i || a ? [...l ? q(l) : [], ...t ? q(t) : []] : [];
723
+ u.forEach((e) => {
724
+ i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
725
+ });
726
+ let d = l && s ? Be(l, n, a) : null, f = -1, p = null;
727
+ o && (p = new ResizeObserver((e) => {
728
+ let [r] = e;
729
+ r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
730
+ var e;
731
+ (e = p) == null || e.observe(t);
732
+ })), n();
733
+ }), l && !c && p.observe(l), t && p.observe(t));
734
+ let m, h = c ? Z(e) : null;
735
+ c && g();
736
+ function g() {
737
+ let t = Z(e);
738
+ h && !ze(h, t) && n(), h = t, m = requestAnimationFrame(g);
739
+ }
740
+ return n(), () => {
741
+ var e;
742
+ u.forEach((e) => {
743
+ i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
744
+ }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
745
+ };
746
+ }
747
+ var He = se, Ue = ce, We = ie, Ge = le, Ke = (e, t, n) => {
748
+ let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
749
+ ...Re,
750
+ ...i.platform,
751
+ _c: r
752
+ };
753
+ return re(e, t, {
754
+ ...i,
755
+ platform: a
756
+ });
757
+ }, qe = /* @__PURE__ */ new WeakMap();
758
+ function Je(e, t) {
759
+ t instanceof Element && qe.set(e, t);
760
+ }
761
+ function Ye(e) {
762
+ qe.delete(e);
763
+ }
764
+ function Xe(e) {
765
+ return qe.get(e);
766
+ }
767
+ //#endregion
768
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/floatingPosition.js
769
+ var Ze = {
770
+ placement: "bottom-start",
771
+ strategy: "fixed",
772
+ offset: 4,
773
+ matchWidth: !1,
774
+ flip: !0,
775
+ shift: !0,
776
+ padding: 8,
777
+ minHeight: 120,
778
+ layer: "dropdown",
779
+ open: !0
780
+ };
781
+ function Qe(e) {
782
+ let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
783
+ return {
784
+ ...Ze,
785
+ ...t
786
+ };
787
+ }
788
+ function $e(a, o) {
789
+ let s = Qe(o), c, l, u = r();
790
+ function d() {
791
+ if (u) {
792
+ let t = u.target;
793
+ return t && (t === a || t.contains(a)) ? Math.max(Number(e[s.layer]), Number(e[u.layer])) : Number(e[s.layer]);
794
+ }
795
+ return i() && !n(a) ? Number(e.dropdown) : Number(e[s.layer]);
796
+ }
797
+ function f() {
798
+ let e = s.reference;
799
+ e && (a.style.zIndex = String(d()), Ke(e, a, {
800
+ placement: s.placement,
801
+ strategy: s.strategy,
802
+ middleware: [
803
+ He(s.offset),
804
+ s.flip && We({
805
+ fallbackStrategy: "initialPlacement",
806
+ crossAxis: "alignment"
807
+ }),
808
+ s.shift && Ue({ padding: s.padding }),
809
+ Ge({
810
+ padding: s.padding,
811
+ apply({ availableHeight: e, rects: t, elements: n }) {
812
+ let r = Math.max(0, Math.floor(e)), i = Math.min(s.maxHeight ?? Infinity, r), a = Math.min(r, Math.max(s.minHeight, i));
813
+ Object.assign(n.floating.style, {
814
+ maxHeight: `${a}px`,
815
+ overflowY: "auto",
816
+ ...s.matchWidth ? { width: `${Math.round(t.reference.width)}px` } : {}
817
+ });
818
+ }
819
+ })
820
+ ].filter(Boolean)
821
+ }).then(({ x: e, y: t, placement: n }) => {
822
+ Object.assign(a.style, {
823
+ position: s.strategy,
824
+ left: `${Math.round(e)}px`,
825
+ top: `${Math.round(t)}px`
826
+ }), s.onComputed?.({ placement: n });
827
+ }));
828
+ }
829
+ function p() {
830
+ let e = s.reference;
831
+ !e || s.open === !1 || typeof document > "u" || (Je(a, e), c ??= Ve(e, a, f), l ??= t(f));
832
+ }
833
+ function m() {
834
+ c?.(), c = void 0, l?.(), l = void 0, Ye(a);
835
+ }
836
+ return p(), {
837
+ update(e) {
838
+ s = Qe(e), m(), p();
839
+ },
840
+ destroy() {
841
+ m();
842
+ }
843
+ };
844
+ }
845
+ //#endregion
846
+ export { Xe as n, $e as t };