@leaflink/stash 50.5.0 → 50.5.2
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.
- package/dist/Accordion.js.map +1 -1
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/AddressSelect.js.map +1 -1
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppSidebar.js.map +1 -1
- package/dist/Avatar.js.map +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/Card.js.map +1 -1
- package/dist/CardMedia.js.map +1 -1
- package/dist/Carousel.js.map +1 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/Chip.js.map +1 -1
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js.map +1 -1
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CustomRender.js.map +1 -1
- package/dist/DataView.js.map +1 -1
- package/dist/DataView.keys-C7eaZg2G.js.map +1 -1
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewToolbar.js +24 -18
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionList.js.map +1 -1
- package/dist/DescriptionListDetail.js.map +1 -1
- package/dist/DescriptionListGroup.js.map +1 -1
- package/dist/DescriptionListTerm.js.map +1 -1
- package/dist/Dialog.js.map +1 -1
- package/dist/Divider.js.map +1 -1
- package/dist/Dropdown.js.map +1 -1
- package/dist/EmptyState.js.map +1 -1
- package/dist/Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map +1 -1
- package/dist/Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map +1 -1
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js.map +1 -1
- package/dist/HttpError.js.map +1 -1
- package/dist/Icon.js.map +1 -1
- package/dist/IconLabel.js.map +1 -1
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js.map +1 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-YUNunj71.js.map +1 -1
- package/dist/InlineEdit.js.map +1 -1
- package/dist/Input.js.map +1 -1
- package/dist/InputOptions.js.map +1 -1
- package/dist/IntegrationIcon.js.map +1 -1
- package/dist/LicenseChip.js.map +1 -1
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItemCell.js.map +1 -1
- package/dist/ListView.js +2 -2
- package/dist/ListView.js.map +1 -1
- package/dist/Loading.js.map +1 -1
- package/dist/Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map +1 -1
- package/dist/MenuItem.js.map +1 -1
- package/dist/MenusPlugin-Bk6UW6o9.js.map +1 -1
- package/dist/Metric.js.map +1 -1
- package/dist/Modal.js.map +1 -1
- package/dist/Modals.js.map +1 -1
- package/dist/ModalsPlugin.js.map +1 -1
- package/dist/Module.js.map +1 -1
- package/dist/Module.keys-CEsrW2f0.js.map +1 -1
- package/dist/ModuleContent.js.map +1 -1
- package/dist/ModuleFooter.js.map +1 -1
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/PageContent.js.map +1 -1
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageNavigation.js.map +1 -1
- package/dist/Paginate.js.map +1 -1
- package/dist/PlaidLink.js.map +1 -1
- package/dist/QuickAction.js.map +1 -1
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioNew.js.map +1 -1
- package/dist/RangeInput.js.map +1 -1
- package/dist/SearchBar.js.map +1 -1
- package/dist/Select.js +1 -1
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js.map +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/Step.js.map +1 -1
- package/dist/Stepper.js.map +1 -1
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.js.map +1 -1
- package/dist/Table.js.map +1 -1
- package/dist/TableCell.js.map +1 -1
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableRow.js.map +1 -1
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js.map +1 -1
- package/dist/TextEditor.js +178 -181
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js +25 -20
- package/dist/Textarea.js.map +1 -1
- package/dist/Thumbnail.js.map +1 -1
- package/dist/ThumbnailEmpty.js.map +1 -1
- package/dist/ThumbnailGroup.js.map +1 -1
- package/dist/ThumbnailGroup.keys-D6WL5xQ5.js.map +1 -1
- package/dist/TimelineItem.js.map +1 -1
- package/dist/Toast.js.map +1 -1
- package/dist/Toasts.js.map +1 -1
- package/dist/ToastsPlugin.js.map +1 -1
- package/dist/Tooltip.js +2 -2
- package/dist/Tooltip.js.map +1 -1
- package/dist/components.css +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/directives/autofocus.js.map +1 -1
- package/dist/directives/clickoutside.js.map +1 -1
- package/dist/directives/observe.js.map +1 -1
- package/dist/directives/sticky.js.map +1 -1
- package/dist/directives/tooltip.js.map +1 -1
- package/dist/directives/viewable.js.map +1 -1
- package/dist/{floating-ui.vue-BmfQDqE-.js → floating-ui.vue-pzUuloyX.js} +267 -260
- package/dist/floating-ui.vue-pzUuloyX.js.map +1 -0
- package/dist/formatDateTime-C8CYECpd.js.map +1 -1
- package/dist/index-ConQ3o31.js +128 -0
- package/dist/index-ConQ3o31.js.map +1 -0
- package/dist/index-D6bxWkZ1.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/isDefined-DzVx0B6k.js.map +1 -1
- package/dist/locale.js.map +1 -1
- package/dist/parseISO-wlfIB_QJ.js.map +1 -1
- package/dist/searchFuzzy-DKooyZM8.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/toTimeZone-CVE1ZmsS.js.map +1 -1
- package/dist/useConfirmBeforeClosing.js.map +1 -1
- package/dist/useDialog.js.map +1 -1
- package/dist/useGoogleMaps.js.map +1 -1
- package/dist/useMediaQuery.js.map +1 -1
- package/dist/useModals.js.map +1 -1
- package/dist/usePlaidLink.js.map +1 -1
- package/dist/useScriptTag.js.map +1 -1
- package/dist/useSearch.js.map +1 -1
- package/dist/useSelection.js.map +1 -1
- package/dist/useSortable.js +1 -1
- package/dist/useSortable.js.map +1 -1
- package/dist/useStepper.js.map +1 -1
- package/dist/useToasts.js.map +1 -1
- package/dist/useValidation.js.map +1 -1
- package/dist/utils/calculateElementOverflow.js.map +1 -1
- package/dist/utils/colorScheme.js.map +1 -1
- package/dist/utils/createQueryString.js.map +1 -1
- package/dist/utils/getContrastingTextColor.js.map +1 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/storage.js.map +1 -1
- package/package.json +1 -1
- package/dist/floating-ui.vue-BmfQDqE-.js.map +0 -1
- package/dist/index-Bbc2pg2X.js +0 -128
- package/dist/index-Bbc2pg2X.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
1
|
+
import { computed as z, ref as et, shallowRef as $t, watch as dt, getCurrentScope as Ht, onScopeDispose as _t, shallowReadonly as K, unref as zt } from "vue";
|
|
2
|
+
const I = Math.min, D = Math.max, st = Math.round, rt = Math.floor, V = (t) => ({
|
|
3
3
|
x: t,
|
|
4
4
|
y: t
|
|
5
|
-
}),
|
|
5
|
+
}), It = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, jt = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return D(t,
|
|
14
|
+
function Yt(t, e, n) {
|
|
15
|
+
return D(t, I(e, n));
|
|
16
16
|
}
|
|
17
17
|
function ot(t, e) {
|
|
18
18
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -23,32 +23,32 @@ function Y(t) {
|
|
|
23
23
|
function tt(t) {
|
|
24
24
|
return t.split("-")[1];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Xt(t) {
|
|
27
27
|
return t === "x" ? "y" : "x";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function wt(t) {
|
|
30
30
|
return t === "y" ? "height" : "width";
|
|
31
31
|
}
|
|
32
32
|
function Q(t) {
|
|
33
33
|
return ["top", "bottom"].includes(Y(t)) ? "y" : "x";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function vt(t) {
|
|
36
|
+
return Xt(Q(t));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function qt(t, e, n) {
|
|
39
39
|
n === void 0 && (n = !1);
|
|
40
|
-
const o = tt(t), i =
|
|
40
|
+
const o = tt(t), i = vt(t), s = wt(i);
|
|
41
41
|
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
42
42
|
return e.reference[s] > e.floating[s] && (r = lt(r)), [r, lt(r)];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ut(t) {
|
|
45
45
|
const e = lt(t);
|
|
46
|
-
return [
|
|
46
|
+
return [ht(t), e, ht(e)];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return t.replace(/start|end/g, (e) =>
|
|
48
|
+
function ht(t) {
|
|
49
|
+
return t.replace(/start|end/g, (e) => jt[e]);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Kt(t, e, n) {
|
|
52
52
|
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
53
53
|
switch (t) {
|
|
54
54
|
case "top":
|
|
@@ -61,15 +61,15 @@ function Ut(t, e, n) {
|
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Gt(t, e, n, o) {
|
|
65
65
|
const i = tt(t);
|
|
66
|
-
let s =
|
|
67
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(
|
|
66
|
+
let s = Kt(Y(t), n === "start", o);
|
|
67
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ht)))), s;
|
|
68
68
|
}
|
|
69
69
|
function lt(t) {
|
|
70
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
70
|
+
return t.replace(/left|right|bottom|top/g, (e) => It[e]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Jt(t) {
|
|
73
73
|
return {
|
|
74
74
|
top: 0,
|
|
75
75
|
right: 0,
|
|
@@ -79,7 +79,7 @@ function Gt(t) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
function Lt(t) {
|
|
82
|
-
return typeof t != "number" ?
|
|
82
|
+
return typeof t != "number" ? Jt(t) : {
|
|
83
83
|
top: t,
|
|
84
84
|
right: t,
|
|
85
85
|
bottom: t,
|
|
@@ -109,7 +109,7 @@ function At(t, e, n) {
|
|
|
109
109
|
reference: o,
|
|
110
110
|
floating: i
|
|
111
111
|
} = t;
|
|
112
|
-
const s = Q(e), r =
|
|
112
|
+
const s = Q(e), r = vt(e), l = wt(r), a = Y(e), c = s === "y", f = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
|
|
113
113
|
let u;
|
|
114
114
|
switch (a) {
|
|
115
115
|
case "top":
|
|
@@ -144,15 +144,15 @@ function At(t, e, n) {
|
|
|
144
144
|
}
|
|
145
145
|
switch (tt(e)) {
|
|
146
146
|
case "start":
|
|
147
|
-
u[r] -=
|
|
147
|
+
u[r] -= m * (n && c ? -1 : 1);
|
|
148
148
|
break;
|
|
149
149
|
case "end":
|
|
150
|
-
u[r] +=
|
|
150
|
+
u[r] += m * (n && c ? -1 : 1);
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
153
|
return u;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Qt = async (t, e, n) => {
|
|
156
156
|
const {
|
|
157
157
|
placement: o = "bottom",
|
|
158
158
|
strategy: i = "absolute",
|
|
@@ -166,12 +166,12 @@ const Jt = async (t, e, n) => {
|
|
|
166
166
|
}), {
|
|
167
167
|
x: f,
|
|
168
168
|
y: d
|
|
169
|
-
} = At(c, o, a),
|
|
170
|
-
for (let
|
|
169
|
+
} = At(c, o, a), m = o, u = {}, h = 0;
|
|
170
|
+
for (let g = 0; g < l.length; g++) {
|
|
171
171
|
const {
|
|
172
172
|
name: w,
|
|
173
173
|
fn: p
|
|
174
|
-
} = l[
|
|
174
|
+
} = l[g], {
|
|
175
175
|
x: v,
|
|
176
176
|
y,
|
|
177
177
|
data: R,
|
|
@@ -180,7 +180,7 @@ const Jt = async (t, e, n) => {
|
|
|
180
180
|
x: f,
|
|
181
181
|
y: d,
|
|
182
182
|
initialPlacement: o,
|
|
183
|
-
placement:
|
|
183
|
+
placement: m,
|
|
184
184
|
strategy: i,
|
|
185
185
|
middlewareData: u,
|
|
186
186
|
rects: c,
|
|
@@ -196,19 +196,19 @@ const Jt = async (t, e, n) => {
|
|
|
196
196
|
...u[w],
|
|
197
197
|
...R
|
|
198
198
|
}
|
|
199
|
-
}, b &&
|
|
199
|
+
}, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
|
|
200
200
|
reference: t,
|
|
201
201
|
floating: e,
|
|
202
202
|
strategy: i
|
|
203
203
|
}) : b.rects), {
|
|
204
204
|
x: f,
|
|
205
205
|
y: d
|
|
206
|
-
} = At(c,
|
|
206
|
+
} = At(c, m, a)), g = -1);
|
|
207
207
|
}
|
|
208
208
|
return {
|
|
209
209
|
x: f,
|
|
210
210
|
y: d,
|
|
211
|
-
placement:
|
|
211
|
+
placement: m,
|
|
212
212
|
strategy: i,
|
|
213
213
|
middlewareData: u
|
|
214
214
|
};
|
|
@@ -227,9 +227,9 @@ async function Pt(t, e) {
|
|
|
227
227
|
boundary: c = "clippingAncestors",
|
|
228
228
|
rootBoundary: f = "viewport",
|
|
229
229
|
elementContext: d = "floating",
|
|
230
|
-
altBoundary:
|
|
230
|
+
altBoundary: m = !1,
|
|
231
231
|
padding: u = 0
|
|
232
|
-
} = ot(e, t),
|
|
232
|
+
} = ot(e, t), h = Lt(u), w = l[m ? d === "floating" ? "reference" : "floating" : d], p = ct(await s.getClippingRect({
|
|
233
233
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
234
234
|
boundary: c,
|
|
235
235
|
rootBoundary: f,
|
|
@@ -252,13 +252,13 @@ async function Pt(t, e) {
|
|
|
252
252
|
strategy: a
|
|
253
253
|
}) : v);
|
|
254
254
|
return {
|
|
255
|
-
top: (p.top - b.top +
|
|
256
|
-
bottom: (b.bottom - p.bottom +
|
|
257
|
-
left: (p.left - b.left +
|
|
258
|
-
right: (b.right - p.right +
|
|
255
|
+
top: (p.top - b.top + h.top) / R.y,
|
|
256
|
+
bottom: (b.bottom - p.bottom + h.bottom) / R.y,
|
|
257
|
+
left: (p.left - b.left + h.left) / R.x,
|
|
258
|
+
right: (b.right - p.right + h.right) / R.x
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const Zt = (t) => ({
|
|
262
262
|
name: "arrow",
|
|
263
263
|
options: t,
|
|
264
264
|
async fn(e) {
|
|
@@ -276,26 +276,26 @@ const Qt = (t) => ({
|
|
|
276
276
|
} = ot(t, e) || {};
|
|
277
277
|
if (c == null)
|
|
278
278
|
return {};
|
|
279
|
-
const d = Lt(f),
|
|
279
|
+
const d = Lt(f), m = {
|
|
280
280
|
x: n,
|
|
281
281
|
y: o
|
|
282
|
-
}, u =
|
|
283
|
-
let x =
|
|
284
|
-
(!x || !await (r.isElement == null ? void 0 : r.isElement(
|
|
285
|
-
const O = R / 2 - b / 2,
|
|
282
|
+
}, u = vt(i), h = wt(u), g = await r.getDimensions(c), w = u === "y", p = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", R = s.reference[h] + s.reference[u] - m[u] - s.floating[h], b = m[u] - s.reference[u], C = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
|
|
283
|
+
let x = C ? C[y] : 0;
|
|
284
|
+
(!x || !await (r.isElement == null ? void 0 : r.isElement(C))) && (x = l.floating[y] || s.floating[h]);
|
|
285
|
+
const O = R / 2 - b / 2, E = x / 2 - g[h] / 2 - 1, L = I(d[p], E), N = I(d[v], E), F = L, $ = x - g[h] - N, A = x / 2 - g[h] / 2 + O, U = Yt(F, A, $), B = !a.arrow && tt(i) != null && A !== U && s.reference[h] / 2 - (A < F ? L : N) - g[h] / 2 < 0, M = B ? A < F ? A - F : A - $ : 0;
|
|
286
286
|
return {
|
|
287
|
-
[u]:
|
|
287
|
+
[u]: m[u] + M,
|
|
288
288
|
data: {
|
|
289
289
|
[u]: U,
|
|
290
|
-
centerOffset: A - U -
|
|
291
|
-
...
|
|
292
|
-
alignmentOffset:
|
|
290
|
+
centerOffset: A - U - M,
|
|
291
|
+
...B && {
|
|
292
|
+
alignmentOffset: M
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
|
-
reset:
|
|
295
|
+
reset: B
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
298
|
+
}), te = function(t) {
|
|
299
299
|
return t === void 0 && (t = {}), {
|
|
300
300
|
name: "flip",
|
|
301
301
|
options: t,
|
|
@@ -311,28 +311,28 @@ const Qt = (t) => ({
|
|
|
311
311
|
} = e, {
|
|
312
312
|
mainAxis: f = !0,
|
|
313
313
|
crossAxis: d = !0,
|
|
314
|
-
fallbackPlacements:
|
|
314
|
+
fallbackPlacements: m,
|
|
315
315
|
fallbackStrategy: u = "bestFit",
|
|
316
|
-
fallbackAxisSideDirection:
|
|
317
|
-
flipAlignment:
|
|
316
|
+
fallbackAxisSideDirection: h = "none",
|
|
317
|
+
flipAlignment: g = !0,
|
|
318
318
|
...w
|
|
319
319
|
} = ot(t, e);
|
|
320
320
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
321
321
|
return {};
|
|
322
|
-
const p = Y(i), v = Q(l), y = Y(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b =
|
|
323
|
-
!
|
|
324
|
-
const x = [l, ...b], O = await Pt(e, w),
|
|
322
|
+
const p = Y(i), v = Q(l), y = Y(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = m || (y || !g ? [lt(l)] : Ut(l)), C = h !== "none";
|
|
323
|
+
!m && C && b.push(...Gt(l, g, h, R));
|
|
324
|
+
const x = [l, ...b], O = await Pt(e, w), E = [];
|
|
325
325
|
let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
326
|
-
if (f &&
|
|
327
|
-
const A =
|
|
328
|
-
|
|
326
|
+
if (f && E.push(O[p]), d) {
|
|
327
|
+
const A = qt(i, r, R);
|
|
328
|
+
E.push(O[A[0]], O[A[1]]);
|
|
329
329
|
}
|
|
330
330
|
if (L = [...L, {
|
|
331
331
|
placement: i,
|
|
332
|
-
overflows:
|
|
333
|
-
}], !
|
|
334
|
-
var
|
|
335
|
-
const A = (((
|
|
332
|
+
overflows: E
|
|
333
|
+
}], !E.every((A) => A <= 0)) {
|
|
334
|
+
var N, F;
|
|
335
|
+
const A = (((N = s.flip) == null ? void 0 : N.index) || 0) + 1, U = x[A];
|
|
336
336
|
if (U)
|
|
337
337
|
return {
|
|
338
338
|
data: {
|
|
@@ -343,31 +343,31 @@ const Qt = (t) => ({
|
|
|
343
343
|
placement: U
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
|
-
let
|
|
347
|
-
if (!
|
|
346
|
+
let B = (F = L.filter((M) => M.overflows[0] <= 0).sort((M, H) => M.overflows[1] - H.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
347
|
+
if (!B)
|
|
348
348
|
switch (u) {
|
|
349
349
|
case "bestFit": {
|
|
350
|
-
var
|
|
351
|
-
const
|
|
352
|
-
if (
|
|
353
|
-
const
|
|
354
|
-
return
|
|
350
|
+
var $;
|
|
351
|
+
const M = ($ = L.filter((H) => {
|
|
352
|
+
if (C) {
|
|
353
|
+
const _ = Q(H.placement);
|
|
354
|
+
return _ === v || // Create a bias to the `y` side axis due to horizontal
|
|
355
355
|
// reading directions favoring greater width.
|
|
356
|
-
|
|
356
|
+
_ === "y";
|
|
357
357
|
}
|
|
358
358
|
return !0;
|
|
359
|
-
}).map((
|
|
360
|
-
|
|
359
|
+
}).map((H) => [H.placement, H.overflows.filter((_) => _ > 0).reduce((_, Nt) => _ + Nt, 0)]).sort((H, _) => H[1] - _[1])[0]) == null ? void 0 : $[0];
|
|
360
|
+
M && (B = M);
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
case "initialPlacement":
|
|
364
|
-
|
|
364
|
+
B = l;
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
|
-
if (i !==
|
|
367
|
+
if (i !== B)
|
|
368
368
|
return {
|
|
369
369
|
reset: {
|
|
370
|
-
placement:
|
|
370
|
+
placement: B
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
}
|
|
@@ -375,16 +375,16 @@ const Qt = (t) => ({
|
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
};
|
|
378
|
-
async function
|
|
378
|
+
async function ee(t, e) {
|
|
379
379
|
const {
|
|
380
380
|
placement: n,
|
|
381
381
|
platform: o,
|
|
382
382
|
elements: i
|
|
383
383
|
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = Y(n), l = tt(n), a = Q(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, f = s && a ? -1 : 1, d = ot(e, t);
|
|
384
384
|
let {
|
|
385
|
-
mainAxis:
|
|
385
|
+
mainAxis: m,
|
|
386
386
|
crossAxis: u,
|
|
387
|
-
alignmentAxis:
|
|
387
|
+
alignmentAxis: h
|
|
388
388
|
} = typeof d == "number" ? {
|
|
389
389
|
mainAxis: d,
|
|
390
390
|
crossAxis: 0,
|
|
@@ -394,15 +394,15 @@ async function te(t, e) {
|
|
|
394
394
|
crossAxis: d.crossAxis || 0,
|
|
395
395
|
alignmentAxis: d.alignmentAxis
|
|
396
396
|
};
|
|
397
|
-
return l && typeof
|
|
397
|
+
return l && typeof h == "number" && (u = l === "end" ? h * -1 : h), a ? {
|
|
398
398
|
x: u * f,
|
|
399
|
-
y:
|
|
399
|
+
y: m * c
|
|
400
400
|
} : {
|
|
401
|
-
x:
|
|
401
|
+
x: m * c,
|
|
402
402
|
y: u * f
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
const
|
|
405
|
+
const ne = function(t) {
|
|
406
406
|
return t === void 0 && (t = 0), {
|
|
407
407
|
name: "offset",
|
|
408
408
|
options: t,
|
|
@@ -413,7 +413,7 @@ const ee = function(t) {
|
|
|
413
413
|
y: s,
|
|
414
414
|
placement: r,
|
|
415
415
|
middlewareData: l
|
|
416
|
-
} = e, a = await
|
|
416
|
+
} = e, a = await ee(e, t);
|
|
417
417
|
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
418
418
|
x: i + a.x,
|
|
419
419
|
y: s + a.y,
|
|
@@ -424,7 +424,7 @@ const ee = function(t) {
|
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
|
-
},
|
|
427
|
+
}, oe = function(t) {
|
|
428
428
|
return t === void 0 && (t = {}), {
|
|
429
429
|
name: "size",
|
|
430
430
|
options: t,
|
|
@@ -439,25 +439,25 @@ const ee = function(t) {
|
|
|
439
439
|
apply: a = () => {
|
|
440
440
|
},
|
|
441
441
|
...c
|
|
442
|
-
} = ot(t, e), f = await Pt(e, c), d = Y(i),
|
|
443
|
-
width:
|
|
444
|
-
height:
|
|
442
|
+
} = ot(t, e), f = await Pt(e, c), d = Y(i), m = tt(i), u = Q(i) === "y", {
|
|
443
|
+
width: h,
|
|
444
|
+
height: g
|
|
445
445
|
} = s.floating;
|
|
446
446
|
let w, p;
|
|
447
|
-
d === "top" || d === "bottom" ? (w = d, p =
|
|
448
|
-
const v =
|
|
447
|
+
d === "top" || d === "bottom" ? (w = d, p = m === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (p = d, w = m === "end" ? "top" : "bottom");
|
|
448
|
+
const v = g - f.top - f.bottom, y = h - f.left - f.right, R = I(g - f[w], v), b = I(h - f[p], y), C = !e.middlewareData.shift;
|
|
449
449
|
let x = R, O = b;
|
|
450
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = y), (o = e.middlewareData.shift) != null && o.enabled.y && (x = v),
|
|
451
|
-
const L = D(f.left, 0),
|
|
452
|
-
u ? O =
|
|
450
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = y), (o = e.middlewareData.shift) != null && o.enabled.y && (x = v), C && !m) {
|
|
451
|
+
const L = D(f.left, 0), N = D(f.right, 0), F = D(f.top, 0), $ = D(f.bottom, 0);
|
|
452
|
+
u ? O = h - 2 * (L !== 0 || N !== 0 ? L + N : D(f.left, f.right)) : x = g - 2 * (F !== 0 || $ !== 0 ? F + $ : D(f.top, f.bottom));
|
|
453
453
|
}
|
|
454
454
|
await a({
|
|
455
455
|
...e,
|
|
456
456
|
availableWidth: O,
|
|
457
457
|
availableHeight: x
|
|
458
458
|
});
|
|
459
|
-
const
|
|
460
|
-
return
|
|
459
|
+
const E = await r.getDimensions(l.floating);
|
|
460
|
+
return h !== E.width || g !== E.height ? {
|
|
461
461
|
reset: {
|
|
462
462
|
rects: !0
|
|
463
463
|
}
|
|
@@ -469,26 +469,26 @@ function at() {
|
|
|
469
469
|
return typeof window < "u";
|
|
470
470
|
}
|
|
471
471
|
function q(t) {
|
|
472
|
-
return
|
|
472
|
+
return xt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
473
473
|
}
|
|
474
474
|
function T(t) {
|
|
475
475
|
var e;
|
|
476
476
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function W(t) {
|
|
479
479
|
var e;
|
|
480
|
-
return (e = (
|
|
480
|
+
return (e = (xt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function xt(t) {
|
|
483
483
|
return at() ? t instanceof Node || t instanceof T(t).Node : !1;
|
|
484
484
|
}
|
|
485
485
|
function P(t) {
|
|
486
486
|
return at() ? t instanceof Element || t instanceof T(t).Element : !1;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function k(t) {
|
|
489
489
|
return at() ? t instanceof HTMLElement || t instanceof T(t).HTMLElement : !1;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Ct(t) {
|
|
492
492
|
return !at() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof T(t).ShadowRoot;
|
|
493
493
|
}
|
|
494
494
|
function it(t) {
|
|
@@ -500,7 +500,7 @@ function it(t) {
|
|
|
500
500
|
} = S(t);
|
|
501
501
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ie(t) {
|
|
504
504
|
return ["table", "td", "th"].includes(q(t));
|
|
505
505
|
}
|
|
506
506
|
function ft(t) {
|
|
@@ -512,14 +512,14 @@ function ft(t) {
|
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
const e =
|
|
515
|
+
function yt(t) {
|
|
516
|
+
const e = bt(), n = P(t) ? S(t) : t;
|
|
517
517
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function re(t) {
|
|
520
520
|
let e = j(t);
|
|
521
|
-
for (;
|
|
522
|
-
if (
|
|
521
|
+
for (; k(e) && !Z(e); ) {
|
|
522
|
+
if (yt(e))
|
|
523
523
|
return e;
|
|
524
524
|
if (ft(e))
|
|
525
525
|
return null;
|
|
@@ -527,7 +527,7 @@ function ie(t) {
|
|
|
527
527
|
}
|
|
528
528
|
return null;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function bt() {
|
|
531
531
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
532
532
|
}
|
|
533
533
|
function Z(t) {
|
|
@@ -552,45 +552,45 @@ function j(t) {
|
|
|
552
552
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
553
553
|
t.assignedSlot || // DOM Element detected.
|
|
554
554
|
t.parentNode || // ShadowRoot detected.
|
|
555
|
-
|
|
556
|
-
|
|
555
|
+
Ct(t) && t.host || // Fallback.
|
|
556
|
+
W(t)
|
|
557
557
|
);
|
|
558
|
-
return
|
|
558
|
+
return Ct(e) ? e.host : e;
|
|
559
559
|
}
|
|
560
560
|
function St(t) {
|
|
561
561
|
const e = j(t);
|
|
562
|
-
return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
562
|
+
return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : k(e) && it(e) ? e : St(e);
|
|
563
563
|
}
|
|
564
564
|
function nt(t, e, n) {
|
|
565
565
|
var o;
|
|
566
566
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
567
567
|
const i = St(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = T(i);
|
|
568
568
|
if (s) {
|
|
569
|
-
const l =
|
|
569
|
+
const l = gt(r);
|
|
570
570
|
return e.concat(r, r.visualViewport || [], it(i) ? i : [], l && n ? nt(l) : []);
|
|
571
571
|
}
|
|
572
572
|
return e.concat(i, nt(i, [], n));
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function gt(t) {
|
|
575
575
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
576
576
|
}
|
|
577
577
|
function Ft(t) {
|
|
578
578
|
const e = S(t);
|
|
579
579
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
580
|
-
const i =
|
|
580
|
+
const i = k(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = st(n) !== s || st(o) !== r;
|
|
581
581
|
return l && (n = s, o = r), {
|
|
582
582
|
width: n,
|
|
583
583
|
height: o,
|
|
584
584
|
$: l
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Rt(t) {
|
|
588
588
|
return P(t) ? t : t.contextElement;
|
|
589
589
|
}
|
|
590
590
|
function J(t) {
|
|
591
|
-
const e =
|
|
592
|
-
if (!
|
|
593
|
-
return
|
|
591
|
+
const e = Rt(t);
|
|
592
|
+
if (!k(e))
|
|
593
|
+
return V(1);
|
|
594
594
|
const n = e.getBoundingClientRect(), {
|
|
595
595
|
width: o,
|
|
596
596
|
height: i,
|
|
@@ -602,30 +602,30 @@ function J(t) {
|
|
|
602
602
|
y: l
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
function
|
|
605
|
+
const se = /* @__PURE__ */ V(0);
|
|
606
|
+
function Mt(t) {
|
|
607
607
|
const e = T(t);
|
|
608
|
-
return !
|
|
608
|
+
return !bt() || !e.visualViewport ? se : {
|
|
609
609
|
x: e.visualViewport.offsetLeft,
|
|
610
610
|
y: e.visualViewport.offsetTop
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function le(t, e, n) {
|
|
614
614
|
return e === void 0 && (e = !1), !n || e && n !== T(t) ? !1 : e;
|
|
615
615
|
}
|
|
616
616
|
function X(t, e, n, o) {
|
|
617
617
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
618
|
-
const i = t.getBoundingClientRect(), s =
|
|
619
|
-
let r =
|
|
618
|
+
const i = t.getBoundingClientRect(), s = Rt(t);
|
|
619
|
+
let r = V(1);
|
|
620
620
|
e && (o ? P(o) && (r = J(o)) : r = J(t));
|
|
621
|
-
const l =
|
|
621
|
+
const l = le(s, n, o) ? Mt(s) : V(0);
|
|
622
622
|
let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, f = i.width / r.x, d = i.height / r.y;
|
|
623
623
|
if (s) {
|
|
624
|
-
const
|
|
625
|
-
let
|
|
626
|
-
for (;
|
|
627
|
-
const w = J(
|
|
628
|
-
a *= w.x, c *= w.y, f *= w.x, d *= w.y, a += y, c += R,
|
|
624
|
+
const m = T(s), u = o && P(o) ? T(o) : o;
|
|
625
|
+
let h = m, g = gt(h);
|
|
626
|
+
for (; g && o && u !== h; ) {
|
|
627
|
+
const w = J(g), p = g.getBoundingClientRect(), v = S(g), y = p.left + (g.clientLeft + parseFloat(v.paddingLeft)) * w.x, R = p.top + (g.clientTop + parseFloat(v.paddingTop)) * w.y;
|
|
628
|
+
a *= w.x, c *= w.y, f *= w.x, d *= w.y, a += y, c += R, h = T(g), g = gt(h);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
return ct({
|
|
@@ -635,42 +635,54 @@ function X(t, e, n, o) {
|
|
|
635
635
|
y: c
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ot(t, e) {
|
|
639
|
+
const n = ut(t).scrollLeft;
|
|
640
|
+
return e ? e.left + n : X(W(t)).left + n;
|
|
641
|
+
}
|
|
642
|
+
function Vt(t, e, n) {
|
|
643
|
+
n === void 0 && (n = !1);
|
|
644
|
+
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
645
|
+
// RTL <body> scrollbar.
|
|
646
|
+
Ot(t, o)
|
|
647
|
+
)), s = o.top + e.scrollTop;
|
|
648
|
+
return {
|
|
649
|
+
x: i,
|
|
650
|
+
y: s
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function ce(t) {
|
|
639
654
|
let {
|
|
640
655
|
elements: e,
|
|
641
656
|
rect: n,
|
|
642
657
|
offsetParent: o,
|
|
643
658
|
strategy: i
|
|
644
659
|
} = t;
|
|
645
|
-
const s = i === "fixed", r =
|
|
660
|
+
const s = i === "fixed", r = W(o), l = e ? ft(e.floating) : !1;
|
|
646
661
|
if (o === r || l && s)
|
|
647
662
|
return n;
|
|
648
663
|
let a = {
|
|
649
664
|
scrollLeft: 0,
|
|
650
665
|
scrollTop: 0
|
|
651
|
-
}, c =
|
|
652
|
-
const f =
|
|
653
|
-
if ((d || !d && !s) && ((q(o) !== "body" || it(r)) && (a = ut(o)),
|
|
654
|
-
const
|
|
655
|
-
c = J(o), f.x =
|
|
666
|
+
}, c = V(1);
|
|
667
|
+
const f = V(0), d = k(o);
|
|
668
|
+
if ((d || !d && !s) && ((q(o) !== "body" || it(r)) && (a = ut(o)), k(o))) {
|
|
669
|
+
const u = X(o);
|
|
670
|
+
c = J(o), f.x = u.x + o.clientLeft, f.y = u.y + o.clientTop;
|
|
656
671
|
}
|
|
672
|
+
const m = r && !d && !s ? Vt(r, a, !0) : V(0);
|
|
657
673
|
return {
|
|
658
674
|
width: n.width * c.x,
|
|
659
675
|
height: n.height * c.y,
|
|
660
|
-
x: n.x * c.x - a.scrollLeft * c.x + f.x,
|
|
661
|
-
y: n.y * c.y - a.scrollTop * c.y + f.y
|
|
676
|
+
x: n.x * c.x - a.scrollLeft * c.x + f.x + m.x,
|
|
677
|
+
y: n.y * c.y - a.scrollTop * c.y + f.y + m.y
|
|
662
678
|
};
|
|
663
679
|
}
|
|
664
|
-
function
|
|
680
|
+
function ae(t) {
|
|
665
681
|
return Array.from(t.getClientRects());
|
|
666
682
|
}
|
|
667
|
-
function
|
|
668
|
-
const n = ut(t).
|
|
669
|
-
|
|
670
|
-
}
|
|
671
|
-
function ae(t) {
|
|
672
|
-
const e = k(t), n = ut(t), o = t.ownerDocument.body, i = D(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = D(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
673
|
-
let r = -n.scrollLeft + pt(t);
|
|
683
|
+
function fe(t) {
|
|
684
|
+
const e = W(t), n = ut(t), o = t.ownerDocument.body, i = D(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = D(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
685
|
+
let r = -n.scrollLeft + Ot(t);
|
|
674
686
|
const l = -n.scrollTop;
|
|
675
687
|
return S(o).direction === "rtl" && (r += D(e.clientWidth, o.clientWidth) - i), {
|
|
676
688
|
width: i,
|
|
@@ -679,12 +691,12 @@ function ae(t) {
|
|
|
679
691
|
y: l
|
|
680
692
|
};
|
|
681
693
|
}
|
|
682
|
-
function
|
|
683
|
-
const n = T(t), o =
|
|
694
|
+
function ue(t, e) {
|
|
695
|
+
const n = T(t), o = W(t), i = n.visualViewport;
|
|
684
696
|
let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
|
|
685
697
|
if (i) {
|
|
686
698
|
s = i.width, r = i.height;
|
|
687
|
-
const c =
|
|
699
|
+
const c = bt();
|
|
688
700
|
(!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
|
|
689
701
|
}
|
|
690
702
|
return {
|
|
@@ -694,8 +706,8 @@ function fe(t, e) {
|
|
|
694
706
|
y: a
|
|
695
707
|
};
|
|
696
708
|
}
|
|
697
|
-
function
|
|
698
|
-
const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s =
|
|
709
|
+
function de(t, e) {
|
|
710
|
+
const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = k(t) ? J(t) : V(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
|
|
699
711
|
return {
|
|
700
712
|
width: r,
|
|
701
713
|
height: l,
|
|
@@ -703,29 +715,30 @@ function ue(t, e) {
|
|
|
703
715
|
y: c
|
|
704
716
|
};
|
|
705
717
|
}
|
|
706
|
-
function
|
|
718
|
+
function Et(t, e, n) {
|
|
707
719
|
let o;
|
|
708
720
|
if (e === "viewport")
|
|
709
|
-
o =
|
|
721
|
+
o = ue(t, n);
|
|
710
722
|
else if (e === "document")
|
|
711
|
-
o =
|
|
723
|
+
o = fe(W(t));
|
|
712
724
|
else if (P(e))
|
|
713
|
-
o =
|
|
725
|
+
o = de(e, n);
|
|
714
726
|
else {
|
|
715
|
-
const i =
|
|
727
|
+
const i = Mt(t);
|
|
716
728
|
o = {
|
|
717
|
-
...e,
|
|
718
729
|
x: e.x - i.x,
|
|
719
|
-
y: e.y - i.y
|
|
730
|
+
y: e.y - i.y,
|
|
731
|
+
width: e.width,
|
|
732
|
+
height: e.height
|
|
720
733
|
};
|
|
721
734
|
}
|
|
722
735
|
return ct(o);
|
|
723
736
|
}
|
|
724
|
-
function
|
|
737
|
+
function kt(t, e) {
|
|
725
738
|
const n = j(t);
|
|
726
|
-
return n === e || !P(n) || Z(n) ? !1 : S(n).position === "fixed" ||
|
|
739
|
+
return n === e || !P(n) || Z(n) ? !1 : S(n).position === "fixed" || kt(n, e);
|
|
727
740
|
}
|
|
728
|
-
function
|
|
741
|
+
function me(t, e) {
|
|
729
742
|
const n = e.get(t);
|
|
730
743
|
if (n)
|
|
731
744
|
return n;
|
|
@@ -733,22 +746,22 @@ function de(t, e) {
|
|
|
733
746
|
const s = S(t).position === "fixed";
|
|
734
747
|
let r = s ? j(t) : t;
|
|
735
748
|
for (; P(r) && !Z(r); ) {
|
|
736
|
-
const l = S(r), a =
|
|
737
|
-
!a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || it(r) && !a &&
|
|
749
|
+
const l = S(r), a = yt(r);
|
|
750
|
+
!a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || it(r) && !a && kt(t, r)) ? o = o.filter((f) => f !== r) : i = l, r = j(r);
|
|
738
751
|
}
|
|
739
752
|
return e.set(t, o), o;
|
|
740
753
|
}
|
|
741
|
-
function
|
|
754
|
+
function he(t) {
|
|
742
755
|
let {
|
|
743
756
|
element: e,
|
|
744
757
|
boundary: n,
|
|
745
758
|
rootBoundary: o,
|
|
746
759
|
strategy: i
|
|
747
760
|
} = t;
|
|
748
|
-
const r = [...n === "clippingAncestors" ? ft(e) ? [] :
|
|
749
|
-
const d =
|
|
750
|
-
return c.top = D(d.top, c.top), c.right =
|
|
751
|
-
},
|
|
761
|
+
const r = [...n === "clippingAncestors" ? ft(e) ? [] : me(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, f) => {
|
|
762
|
+
const d = Et(e, f, i);
|
|
763
|
+
return c.top = D(d.top, c.top), c.right = I(d.right, c.right), c.bottom = I(d.bottom, c.bottom), c.left = D(d.left, c.left), c;
|
|
764
|
+
}, Et(e, l, i));
|
|
752
765
|
return {
|
|
753
766
|
width: a.right - a.left,
|
|
754
767
|
height: a.bottom - a.top,
|
|
@@ -766,28 +779,22 @@ function ge(t) {
|
|
|
766
779
|
height: n
|
|
767
780
|
};
|
|
768
781
|
}
|
|
769
|
-
function
|
|
770
|
-
const o =
|
|
782
|
+
function pe(t, e, n) {
|
|
783
|
+
const o = k(e), i = W(e), s = n === "fixed", r = X(t, !0, s, e);
|
|
771
784
|
let l = {
|
|
772
785
|
scrollLeft: 0,
|
|
773
786
|
scrollTop: 0
|
|
774
787
|
};
|
|
775
|
-
const a =
|
|
788
|
+
const a = V(0);
|
|
776
789
|
if (o || !o && !s)
|
|
777
790
|
if ((q(e) !== "body" || it(i)) && (l = ut(e)), o) {
|
|
778
|
-
const
|
|
779
|
-
a.x =
|
|
780
|
-
} else i && (a.x =
|
|
781
|
-
|
|
782
|
-
if (i && !o && !s) {
|
|
783
|
-
const u = i.getBoundingClientRect();
|
|
784
|
-
f = u.top + l.scrollTop, c = u.left + l.scrollLeft - // RTL <body> scrollbar.
|
|
785
|
-
pt(i, u);
|
|
786
|
-
}
|
|
787
|
-
const d = r.left + l.scrollLeft - a.x - c, g = r.top + l.scrollTop - a.y - f;
|
|
791
|
+
const m = X(e, !0, s, e);
|
|
792
|
+
a.x = m.x + e.clientLeft, a.y = m.y + e.clientTop;
|
|
793
|
+
} else i && (a.x = Ot(i));
|
|
794
|
+
const c = i && !o && !s ? Vt(i, l) : V(0), f = r.left + l.scrollLeft - a.x - c.x, d = r.top + l.scrollTop - a.y - c.y;
|
|
788
795
|
return {
|
|
789
|
-
x:
|
|
790
|
-
y:
|
|
796
|
+
x: f,
|
|
797
|
+
y: d,
|
|
791
798
|
width: r.width,
|
|
792
799
|
height: r.height
|
|
793
800
|
};
|
|
@@ -796,18 +803,18 @@ function mt(t) {
|
|
|
796
803
|
return S(t).position === "static";
|
|
797
804
|
}
|
|
798
805
|
function Dt(t, e) {
|
|
799
|
-
if (!
|
|
806
|
+
if (!k(t) || S(t).position === "fixed")
|
|
800
807
|
return null;
|
|
801
808
|
if (e)
|
|
802
809
|
return e(t);
|
|
803
810
|
let n = t.offsetParent;
|
|
804
|
-
return
|
|
811
|
+
return W(t) === n && (n = n.ownerDocument.body), n;
|
|
805
812
|
}
|
|
806
|
-
function
|
|
813
|
+
function Wt(t, e) {
|
|
807
814
|
const n = T(t);
|
|
808
815
|
if (ft(t))
|
|
809
816
|
return n;
|
|
810
|
-
if (!
|
|
817
|
+
if (!k(t)) {
|
|
811
818
|
let i = j(t);
|
|
812
819
|
for (; i && !Z(i); ) {
|
|
813
820
|
if (P(i) && !mt(i))
|
|
@@ -817,14 +824,14 @@ function kt(t, e) {
|
|
|
817
824
|
return n;
|
|
818
825
|
}
|
|
819
826
|
let o = Dt(t, e);
|
|
820
|
-
for (; o &&
|
|
827
|
+
for (; o && ie(o) && mt(o); )
|
|
821
828
|
o = Dt(o, e);
|
|
822
|
-
return o && Z(o) && mt(o) && !
|
|
829
|
+
return o && Z(o) && mt(o) && !yt(o) ? n : o || re(t) || n;
|
|
823
830
|
}
|
|
824
|
-
const
|
|
825
|
-
const e = this.getOffsetParent ||
|
|
831
|
+
const we = async function(t) {
|
|
832
|
+
const e = this.getOffsetParent || Wt, n = this.getDimensions, o = await n(t.floating);
|
|
826
833
|
return {
|
|
827
|
-
reference:
|
|
834
|
+
reference: pe(t.reference, await e(t.floating), t.strategy),
|
|
828
835
|
floating: {
|
|
829
836
|
x: 0,
|
|
830
837
|
y: 0,
|
|
@@ -833,24 +840,24 @@ const pe = async function(t) {
|
|
|
833
840
|
}
|
|
834
841
|
};
|
|
835
842
|
};
|
|
836
|
-
function
|
|
843
|
+
function ve(t) {
|
|
837
844
|
return S(t).direction === "rtl";
|
|
838
845
|
}
|
|
839
|
-
const
|
|
840
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
841
|
-
getDocumentElement:
|
|
842
|
-
getClippingRect:
|
|
843
|
-
getOffsetParent:
|
|
844
|
-
getElementRects:
|
|
845
|
-
getClientRects:
|
|
846
|
+
const xe = {
|
|
847
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ce,
|
|
848
|
+
getDocumentElement: W,
|
|
849
|
+
getClippingRect: he,
|
|
850
|
+
getOffsetParent: Wt,
|
|
851
|
+
getElementRects: we,
|
|
852
|
+
getClientRects: ae,
|
|
846
853
|
getDimensions: ge,
|
|
847
854
|
getScale: J,
|
|
848
855
|
isElement: P,
|
|
849
|
-
isRTL:
|
|
856
|
+
isRTL: ve
|
|
850
857
|
};
|
|
851
|
-
function
|
|
858
|
+
function ye(t, e) {
|
|
852
859
|
let n = null, o;
|
|
853
|
-
const i =
|
|
860
|
+
const i = W(t);
|
|
854
861
|
function s() {
|
|
855
862
|
var l;
|
|
856
863
|
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
@@ -861,21 +868,21 @@ function xe(t, e) {
|
|
|
861
868
|
left: c,
|
|
862
869
|
top: f,
|
|
863
870
|
width: d,
|
|
864
|
-
height:
|
|
871
|
+
height: m
|
|
865
872
|
} = t.getBoundingClientRect();
|
|
866
|
-
if (l || e(), !d || !
|
|
873
|
+
if (l || e(), !d || !m)
|
|
867
874
|
return;
|
|
868
|
-
const u = rt(f),
|
|
869
|
-
rootMargin: -u + "px " + -
|
|
870
|
-
threshold: D(0,
|
|
875
|
+
const u = rt(f), h = rt(i.clientWidth - (c + d)), g = rt(i.clientHeight - (f + m)), w = rt(c), v = {
|
|
876
|
+
rootMargin: -u + "px " + -h + "px " + -g + "px " + -w + "px",
|
|
877
|
+
threshold: D(0, I(1, a)) || 1
|
|
871
878
|
};
|
|
872
879
|
let y = !0;
|
|
873
880
|
function R(b) {
|
|
874
|
-
const
|
|
875
|
-
if (
|
|
881
|
+
const C = b[0].intersectionRatio;
|
|
882
|
+
if (C !== a) {
|
|
876
883
|
if (!y)
|
|
877
884
|
return r();
|
|
878
|
-
|
|
885
|
+
C ? r(!1, C) : o = setTimeout(() => {
|
|
879
886
|
r(!1, 1e-7);
|
|
880
887
|
}, 1e3);
|
|
881
888
|
}
|
|
@@ -894,7 +901,7 @@ function xe(t, e) {
|
|
|
894
901
|
}
|
|
895
902
|
return r(!0), s;
|
|
896
903
|
}
|
|
897
|
-
function
|
|
904
|
+
function Ce(t, e, n, o) {
|
|
898
905
|
o === void 0 && (o = {});
|
|
899
906
|
const {
|
|
900
907
|
ancestorScroll: i = !0,
|
|
@@ -902,95 +909,95 @@ function Ae(t, e, n, o) {
|
|
|
902
909
|
elementResize: r = typeof ResizeObserver == "function",
|
|
903
910
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
904
911
|
animationFrame: a = !1
|
|
905
|
-
} = o, c =
|
|
912
|
+
} = o, c = Rt(t), f = i || s ? [...c ? nt(c) : [], ...nt(e)] : [];
|
|
906
913
|
f.forEach((p) => {
|
|
907
914
|
i && p.addEventListener("scroll", n, {
|
|
908
915
|
passive: !0
|
|
909
916
|
}), s && p.addEventListener("resize", n);
|
|
910
917
|
});
|
|
911
|
-
const d = c && l ?
|
|
912
|
-
let
|
|
918
|
+
const d = c && l ? ye(c, n) : null;
|
|
919
|
+
let m = -1, u = null;
|
|
913
920
|
r && (u = new ResizeObserver((p) => {
|
|
914
921
|
let [v] = p;
|
|
915
|
-
v && v.target === c && u && (u.unobserve(e), cancelAnimationFrame(
|
|
922
|
+
v && v.target === c && u && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
916
923
|
var y;
|
|
917
924
|
(y = u) == null || y.observe(e);
|
|
918
925
|
})), n();
|
|
919
926
|
}), c && !a && u.observe(c), u.observe(e));
|
|
920
|
-
let
|
|
927
|
+
let h, g = a ? X(t) : null;
|
|
921
928
|
a && w();
|
|
922
929
|
function w() {
|
|
923
930
|
const p = X(t);
|
|
924
|
-
|
|
931
|
+
g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && n(), g = p, h = requestAnimationFrame(w);
|
|
925
932
|
}
|
|
926
933
|
return n(), () => {
|
|
927
934
|
var p;
|
|
928
935
|
f.forEach((v) => {
|
|
929
936
|
i && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
|
|
930
|
-
}), d == null || d(), (p = u) == null || p.disconnect(), u = null, a && cancelAnimationFrame(
|
|
937
|
+
}), d == null || d(), (p = u) == null || p.disconnect(), u = null, a && cancelAnimationFrame(h);
|
|
931
938
|
};
|
|
932
939
|
}
|
|
933
|
-
const Ee =
|
|
940
|
+
const Ee = ne, De = te, Te = oe, be = Zt, Re = (t, e, n) => {
|
|
934
941
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
935
|
-
platform:
|
|
942
|
+
platform: xe,
|
|
936
943
|
...n
|
|
937
944
|
}, s = {
|
|
938
945
|
...i.platform,
|
|
939
946
|
_c: o
|
|
940
947
|
};
|
|
941
|
-
return
|
|
948
|
+
return Qt(t, e, {
|
|
942
949
|
...i,
|
|
943
950
|
platform: s
|
|
944
951
|
});
|
|
945
952
|
};
|
|
946
|
-
function
|
|
953
|
+
function Oe(t) {
|
|
947
954
|
return t != null && typeof t == "object" && "$el" in t;
|
|
948
955
|
}
|
|
949
|
-
function
|
|
950
|
-
if (
|
|
956
|
+
function pt(t) {
|
|
957
|
+
if (Oe(t)) {
|
|
951
958
|
const e = t.$el;
|
|
952
|
-
return
|
|
959
|
+
return xt(e) && q(e) === "#comment" ? null : e;
|
|
953
960
|
}
|
|
954
961
|
return t;
|
|
955
962
|
}
|
|
956
963
|
function G(t) {
|
|
957
|
-
return typeof t == "function" ? t() :
|
|
964
|
+
return typeof t == "function" ? t() : zt(t);
|
|
958
965
|
}
|
|
959
|
-
function
|
|
966
|
+
function Le(t) {
|
|
960
967
|
return {
|
|
961
968
|
name: "arrow",
|
|
962
969
|
options: t,
|
|
963
970
|
fn(e) {
|
|
964
|
-
const n =
|
|
965
|
-
return n == null ? {} :
|
|
971
|
+
const n = pt(G(t.element));
|
|
972
|
+
return n == null ? {} : be({
|
|
966
973
|
element: n,
|
|
967
974
|
padding: t.padding
|
|
968
975
|
}).fn(e);
|
|
969
976
|
}
|
|
970
977
|
};
|
|
971
978
|
}
|
|
972
|
-
function
|
|
979
|
+
function Bt(t) {
|
|
973
980
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
974
981
|
}
|
|
975
982
|
function Tt(t, e) {
|
|
976
|
-
const n =
|
|
983
|
+
const n = Bt(t);
|
|
977
984
|
return Math.round(e * n) / n;
|
|
978
985
|
}
|
|
979
|
-
function
|
|
986
|
+
function Pe(t, e, n) {
|
|
980
987
|
n === void 0 && (n = {});
|
|
981
|
-
const o = n.whileElementsMounted, i =
|
|
988
|
+
const o = n.whileElementsMounted, i = z(() => {
|
|
982
989
|
var x;
|
|
983
990
|
return (x = G(n.open)) != null ? x : !0;
|
|
984
|
-
}), s =
|
|
991
|
+
}), s = z(() => G(n.middleware)), r = z(() => {
|
|
985
992
|
var x;
|
|
986
993
|
return (x = G(n.placement)) != null ? x : "bottom";
|
|
987
|
-
}), l =
|
|
994
|
+
}), l = z(() => {
|
|
988
995
|
var x;
|
|
989
996
|
return (x = G(n.strategy)) != null ? x : "absolute";
|
|
990
|
-
}), a =
|
|
997
|
+
}), a = z(() => {
|
|
991
998
|
var x;
|
|
992
999
|
return (x = G(n.transform)) != null ? x : !0;
|
|
993
|
-
}), c =
|
|
1000
|
+
}), c = z(() => pt(t.value)), f = z(() => pt(e.value)), d = et(0), m = et(0), u = et(l.value), h = et(r.value), g = $t({}), w = et(!1), p = z(() => {
|
|
994
1001
|
const x = {
|
|
995
1002
|
position: u.value,
|
|
996
1003
|
left: "0",
|
|
@@ -998,17 +1005,17 @@ function Le(t, e, n) {
|
|
|
998
1005
|
};
|
|
999
1006
|
if (!f.value)
|
|
1000
1007
|
return x;
|
|
1001
|
-
const O = Tt(f.value, d.value),
|
|
1008
|
+
const O = Tt(f.value, d.value), E = Tt(f.value, m.value);
|
|
1002
1009
|
return a.value ? {
|
|
1003
1010
|
...x,
|
|
1004
|
-
transform: "translate(" + O + "px, " +
|
|
1005
|
-
...
|
|
1011
|
+
transform: "translate(" + O + "px, " + E + "px)",
|
|
1012
|
+
...Bt(f.value) >= 1.5 && {
|
|
1006
1013
|
willChange: "transform"
|
|
1007
1014
|
}
|
|
1008
1015
|
} : {
|
|
1009
1016
|
position: u.value,
|
|
1010
1017
|
left: O + "px",
|
|
1011
|
-
top:
|
|
1018
|
+
top: E + "px"
|
|
1012
1019
|
};
|
|
1013
1020
|
});
|
|
1014
1021
|
let v;
|
|
@@ -1016,12 +1023,12 @@ function Le(t, e, n) {
|
|
|
1016
1023
|
if (c.value == null || f.value == null)
|
|
1017
1024
|
return;
|
|
1018
1025
|
const x = i.value;
|
|
1019
|
-
|
|
1026
|
+
Re(c.value, f.value, {
|
|
1020
1027
|
middleware: s.value,
|
|
1021
1028
|
placement: r.value,
|
|
1022
1029
|
strategy: l.value
|
|
1023
1030
|
}).then((O) => {
|
|
1024
|
-
d.value = O.x,
|
|
1031
|
+
d.value = O.x, m.value = O.y, u.value = O.strategy, h.value = O.placement, g.value = O.middlewareData, w.value = x !== !1;
|
|
1025
1032
|
});
|
|
1026
1033
|
}
|
|
1027
1034
|
function R() {
|
|
@@ -1037,32 +1044,32 @@ function Le(t, e, n) {
|
|
|
1037
1044
|
return;
|
|
1038
1045
|
}
|
|
1039
1046
|
}
|
|
1040
|
-
function
|
|
1047
|
+
function C() {
|
|
1041
1048
|
i.value || (w.value = !1);
|
|
1042
1049
|
}
|
|
1043
1050
|
return dt([s, r, l, i], y, {
|
|
1044
1051
|
flush: "sync"
|
|
1045
1052
|
}), dt([c, f], b, {
|
|
1046
1053
|
flush: "sync"
|
|
1047
|
-
}), dt(i,
|
|
1054
|
+
}), dt(i, C, {
|
|
1048
1055
|
flush: "sync"
|
|
1049
|
-
}),
|
|
1056
|
+
}), Ht() && _t(R), {
|
|
1050
1057
|
x: K(d),
|
|
1051
|
-
y: K(
|
|
1058
|
+
y: K(m),
|
|
1052
1059
|
strategy: K(u),
|
|
1053
|
-
placement: K(
|
|
1054
|
-
middlewareData: K(
|
|
1060
|
+
placement: K(h),
|
|
1061
|
+
middlewareData: K(g),
|
|
1055
1062
|
isPositioned: K(w),
|
|
1056
1063
|
floatingStyles: p,
|
|
1057
1064
|
update: y
|
|
1058
1065
|
};
|
|
1059
1066
|
}
|
|
1060
1067
|
export {
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1068
|
+
Ce as a,
|
|
1069
|
+
Le as b,
|
|
1070
|
+
De as f,
|
|
1064
1071
|
Ee as o,
|
|
1065
|
-
|
|
1066
|
-
|
|
1072
|
+
Te as s,
|
|
1073
|
+
Pe as u
|
|
1067
1074
|
};
|
|
1068
|
-
//# sourceMappingURL=floating-ui.vue-
|
|
1075
|
+
//# sourceMappingURL=floating-ui.vue-pzUuloyX.js.map
|