@vc-shell/framework 1.1.80 → 1.1.82
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/CHANGELOG.md +8 -0
- package/core/plugins/signalR/index.ts +1 -1
- package/dist/assets/{b291dc35a17511f7.woff → 105efd028edc1dfe.woff} +0 -0
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/{327511cd4a7ba7f9.woff → 489710fb710e73f0.woff} +0 -0
- package/dist/assets/{a617e11804bbacb7.woff → 54cda5482c6c9218.woff} +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/{91eee1aa81f72683.woff → 91fe94e424323d61.woff} +0 -0
- package/dist/assets/{f276d55184e05a07.woff → a03cdcd8da5bb987.woff} +0 -0
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/{fcb1c1ffb5640194.woff → dceaf3b39091e6a4.woff} +0 -0
- package/dist/assets/{a47034e65dbcc3d7.woff → e2ad5b3428289141.woff} +0 -0
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/framework.js +2138 -2121
- package/dist/index.css +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{vendor-core-js-DFA7rceR.js → vendor-core-js-azBmvlGv.js} +10 -10
- package/dist/{vendor-cypress-signalr-mock-CdKwIhWw.js → vendor-cypress-signalr-mock-DjBxJHA6.js} +15 -15
- package/dist/vendor-dompurify-C-JbJ3KX.js +536 -0
- package/dist/vendor-floating-ui-core-Cl9nBI4j.js +349 -0
- package/dist/vendor-floating-ui-dom-3z44E4mf.js +395 -0
- package/dist/vendor-floating-ui-vue-ClrgkeO5.js +107 -0
- package/dist/{vendor-headlessui-vue-Dg0Llidi.js → vendor-headlessui-vue-D7tzx4PC.js} +2 -2
- package/dist/{vendor-intlify-core-base-txnziOTW.js → vendor-intlify-core-base-Da62SG4M.js} +6 -6
- package/dist/{vendor-intlify-message-compiler-XquMv3aB.js → vendor-intlify-message-compiler-CHvGSH2u.js} +236 -231
- package/dist/{vendor-intlify-shared-CE1Dfvjf.js → vendor-intlify-shared-jWBPd9WB.js} +1 -1
- package/dist/{vendor-lodash-es-CrYlgAi8.js → vendor-lodash-es-BqkGj3Jl.js} +14 -14
- package/dist/{vendor-markdown-it-RJo-N9ov.js → vendor-markdown-it-Czg9qJTh.js} +1 -1
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-CauId95v.js → vendor-microsoft-applicationinsights-analytics-js-BNSkz9ia.js} +20 -20
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js → vendor-microsoft-applicationinsights-cfgsync-js-Dp8OU6ZE.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js → vendor-microsoft-applicationinsights-channel-js-Bc73N-5y.js} +18 -18
- package/dist/{vendor-microsoft-applicationinsights-common-Bj6sQeoz.js → vendor-microsoft-applicationinsights-common-DcnOqpgL.js} +25 -25
- package/dist/{vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js → vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js} +21 -21
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js → vendor-microsoft-applicationinsights-dependencies-js-C_DhEOae.js} +10 -10
- package/dist/{vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js → vendor-microsoft-applicationinsights-properties-js-COczDd7b.js} +24 -24
- package/dist/{vendor-microsoft-applicationinsights-web-8IaeIl22.js → vendor-microsoft-applicationinsights-web-DtOQojwf.js} +10 -10
- package/dist/{vendor-microsoft-signalr-qIrag5xx.js → vendor-microsoft-signalr-Bgpbb4fW.js} +1 -1
- package/dist/{vendor-moment-CwOqp704.js → vendor-moment-DMLRxgRE.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-DadHEt7N.js → vendor-nevware21-ts-async-DFUnZ_sN.js} +2 -2
- package/dist/{vendor-prettier-DaiSFsWE.js → vendor-prettier-cZc5sCiS.js} +2 -2
- package/dist/{vendor-prosemirror-commands-DKHyfRYE.js → vendor-prosemirror-commands-DlSOsoOz.js} +3 -3
- package/dist/{vendor-prosemirror-dropcursor-Dro-INCI.js → vendor-prosemirror-dropcursor-CqLA3EZY.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-BgyglWtH.js → vendor-prosemirror-gapcursor-3PaVPyUV.js} +4 -4
- package/dist/{vendor-prosemirror-history-B4ei16kP.js → vendor-prosemirror-history-DzP74u0n.js} +3 -3
- package/dist/{vendor-prosemirror-keymap-21y6bXc_.js → vendor-prosemirror-keymap-CN6Hkrq2.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-CuzWQ2N6.js → vendor-prosemirror-markdown-BBPyARPh.js} +2 -2
- package/dist/{vendor-prosemirror-model-CVTn1Stc.js → vendor-prosemirror-model-CiCy9gkA.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-Dmi4oPas.js → vendor-prosemirror-schema-list-asS28-n3.js} +2 -2
- package/dist/{vendor-prosemirror-state-6jGEPgrP.js → vendor-prosemirror-state-DUZYoLys.js} +2 -2
- package/dist/{vendor-prosemirror-tables-U7ypaxJu.js → vendor-prosemirror-tables-CezTPhzU.js} +5 -5
- package/dist/{vendor-prosemirror-transform-Dk6c_eg4.js → vendor-prosemirror-transform-BOkRqJ32.js} +1 -1
- package/dist/vendor-prosemirror-view-CzsD5m3e.js +3750 -0
- package/dist/vendor-punycode-js-CgGegfA_.js +133 -0
- package/dist/{vendor-rope-sequence-sEGCUMi8.js → vendor-rope-sequence-BWC2FSrq.js} +4 -4
- package/dist/{vendor-semver-FuwqpOls.js → vendor-semver-B87_S22g.js} +2 -2
- package/dist/{vendor-tiptap-core-CtNT-ozM.js → vendor-tiptap-core-rgc3Sj5Y.js} +258 -250
- package/dist/{vendor-tiptap-extension-blockquote-25QerT8O.js → vendor-tiptap-extension-blockquote-DgzMeNpc.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-B-B75KIy.js → vendor-tiptap-extension-bold-DZbX5Qiw.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-CEZA5x7I.js → vendor-tiptap-extension-code-BcakHaXe.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-BFDiCj59.js → vendor-tiptap-extension-code-block-B0U7g1XA.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-C8JdW_kC.js → vendor-tiptap-extension-document-BBhadLNS.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-D9Nzegu6.js → vendor-tiptap-extension-hard-break-eyl10A9U.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-TmkrHpE2.js → vendor-tiptap-extension-heading-BmX_Abvh.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-BC1YMUau.js → vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BQnBpg7z.js → vendor-tiptap-extension-image-C06iDyEi.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-mSCwLnXY.js → vendor-tiptap-extension-italic-B2YDHBEe.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-CQ0Mw6gd.js → vendor-tiptap-extension-link-Bw8_3Rr4.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-BwidYizT.js → vendor-tiptap-extension-list-qHzpj6eq.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-C_OQHUNe.js → vendor-tiptap-extension-paragraph-BnCRfXCL.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-BVZ1jBA2.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-Bfc-eud8.js → vendor-tiptap-extension-strike-Naksm43m.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-D26aUVrb.js → vendor-tiptap-extension-table-Cguez3tu.js} +3 -3
- package/dist/vendor-tiptap-extension-table-cell-lniviH1T.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-lniviH1T.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-lniviH1T.js +1 -0
- package/dist/{vendor-tiptap-extension-text-DrXC1h34.js → vendor-tiptap-extension-text-CixjyWfN.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-vv6u__7g.js → vendor-tiptap-extension-text-style-CVsjuWJ4.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-BfygI164.js → vendor-tiptap-extension-underline-Rwkvga0F.js} +1 -1
- package/dist/{vendor-tiptap-extensions-_4zopegS.js → vendor-tiptap-extensions-F9A02hii.js} +6 -6
- package/dist/{vendor-tiptap-markdown-pGf8MOss.js → vendor-tiptap-markdown-BSUpswXr.js} +5 -5
- package/dist/vendor-tiptap-pm-BUxx7nt1.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-DPG4_B0q.js → vendor-tiptap-starter-kit-BUgq7S1_.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-Ctgrxv1U.js → vendor-tiptap-vue-3-UHrHfZLG.js} +1 -1
- package/dist/{vendor-vue-i18n-BeXi5L3e.js → vendor-vue-i18n-CO5LWKE0.js} +6 -6
- package/dist/{vendor-vue3-application-insights-C8xbxXXX.js → vendor-vue3-application-insights-CE6eo4vj.js} +2 -2
- package/dist/{vendor-vue3-touch-events-8Pa3HHlV.js → vendor-vue3-touch-events-DqysuuWh.js} +2 -2
- package/package.json +4 -4
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +24 -4
- package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
- package/dist/assets/52610491f372cb0c.woff2 +0 -0
- package/dist/assets/5b3661be8be679d0.woff2 +0 -0
- package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
- package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
- package/dist/assets/bfbe205759295eca.woff2 +0 -0
- package/dist/assets/d80b05788e407de7.woff2 +0 -0
- package/dist/vendor-dompurify-eYFoHPwR.js +0 -528
- package/dist/vendor-floating-ui-vue-C1Zscv9o.js +0 -836
- package/dist/vendor-prosemirror-view-Bfe9EVLy.js +0 -1489
- package/dist/vendor-punycode-js-CNI-zL6U.js +0 -133
- package/dist/vendor-tiptap-extension-placeholder-BIojfRhh.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-DuWy52BP.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-DuWy52BP.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-DuWy52BP.js +0 -1
- package/dist/vendor-tiptap-pm-B2DY8bDS.js +0 -7681
|
@@ -1,836 +0,0 @@
|
|
|
1
|
-
import { e as Q, g as W, a as K, c as mt, b as Pt, d as Vt, f as kt, h as Bt, i as Wt, r as G, j as Mt, k as yt, l as It, m as Ht, n as ot, o as E, p as T, q as C, s as M, t as gt, u as L, v as Y, w as _, x as F, y as J, z as bt, A as lt, B as U, C as X, D as Nt, E as Rt, F as _t, G as st, H as Z, I as rt, J as tt, K as $t } from "./vendor-floating-ui-utils-D2sT7feD.js";
|
|
2
|
-
import { computed as S, ref as j, shallowRef as zt, watch as nt, getCurrentScope as jt, onScopeDispose as qt, shallowReadonly as N, unref as Kt } from "vue";
|
|
3
|
-
function ht(t, e, i) {
|
|
4
|
-
let {
|
|
5
|
-
reference: n,
|
|
6
|
-
floating: o
|
|
7
|
-
} = t;
|
|
8
|
-
const l = W(e), s = It(e), r = Ht(s), a = K(e), c = l === "y", d = n.x + n.width / 2 - o.width / 2, u = n.y + n.height / 2 - o.height / 2, m = n[r] / 2 - o[r] / 2;
|
|
9
|
-
let f;
|
|
10
|
-
switch (a) {
|
|
11
|
-
case "top":
|
|
12
|
-
f = {
|
|
13
|
-
x: d,
|
|
14
|
-
y: n.y - o.height
|
|
15
|
-
};
|
|
16
|
-
break;
|
|
17
|
-
case "bottom":
|
|
18
|
-
f = {
|
|
19
|
-
x: d,
|
|
20
|
-
y: n.y + n.height
|
|
21
|
-
};
|
|
22
|
-
break;
|
|
23
|
-
case "right":
|
|
24
|
-
f = {
|
|
25
|
-
x: n.x + n.width,
|
|
26
|
-
y: u
|
|
27
|
-
};
|
|
28
|
-
break;
|
|
29
|
-
case "left":
|
|
30
|
-
f = {
|
|
31
|
-
x: n.x - o.width,
|
|
32
|
-
y: u
|
|
33
|
-
};
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
f = {
|
|
37
|
-
x: n.x,
|
|
38
|
-
y: n.y
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
switch (yt(e)) {
|
|
42
|
-
case "start":
|
|
43
|
-
f[s] -= m * (i && c ? -1 : 1);
|
|
44
|
-
break;
|
|
45
|
-
case "end":
|
|
46
|
-
f[s] += m * (i && c ? -1 : 1);
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
return f;
|
|
50
|
-
}
|
|
51
|
-
const Ut = async (t, e, i) => {
|
|
52
|
-
const {
|
|
53
|
-
placement: n = "bottom",
|
|
54
|
-
strategy: o = "absolute",
|
|
55
|
-
middleware: l = [],
|
|
56
|
-
platform: s
|
|
57
|
-
} = i, r = l.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
58
|
-
let c = await s.getElementRects({
|
|
59
|
-
reference: t,
|
|
60
|
-
floating: e,
|
|
61
|
-
strategy: o
|
|
62
|
-
}), {
|
|
63
|
-
x: d,
|
|
64
|
-
y: u
|
|
65
|
-
} = ht(c, n, a), m = n, f = {}, g = 0;
|
|
66
|
-
for (let p = 0; p < r.length; p++) {
|
|
67
|
-
const {
|
|
68
|
-
name: x,
|
|
69
|
-
fn: h
|
|
70
|
-
} = r[p], {
|
|
71
|
-
x: v,
|
|
72
|
-
y: w,
|
|
73
|
-
data: R,
|
|
74
|
-
reset: b
|
|
75
|
-
} = await h({
|
|
76
|
-
x: d,
|
|
77
|
-
y: u,
|
|
78
|
-
initialPlacement: n,
|
|
79
|
-
placement: m,
|
|
80
|
-
strategy: o,
|
|
81
|
-
middlewareData: f,
|
|
82
|
-
rects: c,
|
|
83
|
-
platform: s,
|
|
84
|
-
elements: {
|
|
85
|
-
reference: t,
|
|
86
|
-
floating: e
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
d = v ?? d, u = w ?? u, f = {
|
|
90
|
-
...f,
|
|
91
|
-
[x]: {
|
|
92
|
-
...f[x],
|
|
93
|
-
...R
|
|
94
|
-
}
|
|
95
|
-
}, b && g <= 50 && (g++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await s.getElementRects({
|
|
96
|
-
reference: t,
|
|
97
|
-
floating: e,
|
|
98
|
-
strategy: o
|
|
99
|
-
}) : b.rects), {
|
|
100
|
-
x: d,
|
|
101
|
-
y: u
|
|
102
|
-
} = ht(c, m, a)), p = -1);
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
x: d,
|
|
106
|
-
y: u,
|
|
107
|
-
placement: m,
|
|
108
|
-
strategy: o,
|
|
109
|
-
middlewareData: f
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
async function At(t, e) {
|
|
113
|
-
var i;
|
|
114
|
-
e === void 0 && (e = {});
|
|
115
|
-
const {
|
|
116
|
-
x: n,
|
|
117
|
-
y: o,
|
|
118
|
-
platform: l,
|
|
119
|
-
rects: s,
|
|
120
|
-
elements: r,
|
|
121
|
-
strategy: a
|
|
122
|
-
} = t, {
|
|
123
|
-
boundary: c = "clippingAncestors",
|
|
124
|
-
rootBoundary: d = "viewport",
|
|
125
|
-
elementContext: u = "floating",
|
|
126
|
-
altBoundary: m = !1,
|
|
127
|
-
padding: f = 0
|
|
128
|
-
} = Q(e, t), g = Wt(f), x = r[m ? u === "floating" ? "reference" : "floating" : u], h = G(await l.getClippingRect({
|
|
129
|
-
element: (i = await (l.isElement == null ? void 0 : l.isElement(x))) == null || i ? x : x.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(r.floating)),
|
|
130
|
-
boundary: c,
|
|
131
|
-
rootBoundary: d,
|
|
132
|
-
strategy: a
|
|
133
|
-
})), v = u === "floating" ? {
|
|
134
|
-
x: n,
|
|
135
|
-
y: o,
|
|
136
|
-
width: s.floating.width,
|
|
137
|
-
height: s.floating.height
|
|
138
|
-
} : s.reference, w = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(r.floating)), R = await (l.isElement == null ? void 0 : l.isElement(w)) ? await (l.getScale == null ? void 0 : l.getScale(w)) || {
|
|
139
|
-
x: 1,
|
|
140
|
-
y: 1
|
|
141
|
-
} : {
|
|
142
|
-
x: 1,
|
|
143
|
-
y: 1
|
|
144
|
-
}, b = G(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
145
|
-
elements: r,
|
|
146
|
-
rect: v,
|
|
147
|
-
offsetParent: w,
|
|
148
|
-
strategy: a
|
|
149
|
-
}) : v);
|
|
150
|
-
return {
|
|
151
|
-
top: (h.top - b.top + g.top) / R.y,
|
|
152
|
-
bottom: (b.bottom - h.bottom + g.bottom) / R.y,
|
|
153
|
-
left: (h.left - b.left + g.left) / R.x,
|
|
154
|
-
right: (b.right - h.right + g.right) / R.x
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
const Yt = function(t) {
|
|
158
|
-
return t === void 0 && (t = {}), {
|
|
159
|
-
name: "flip",
|
|
160
|
-
options: t,
|
|
161
|
-
async fn(e) {
|
|
162
|
-
var i, n;
|
|
163
|
-
const {
|
|
164
|
-
placement: o,
|
|
165
|
-
middlewareData: l,
|
|
166
|
-
rects: s,
|
|
167
|
-
initialPlacement: r,
|
|
168
|
-
platform: a,
|
|
169
|
-
elements: c
|
|
170
|
-
} = e, {
|
|
171
|
-
mainAxis: d = !0,
|
|
172
|
-
crossAxis: u = !0,
|
|
173
|
-
fallbackPlacements: m,
|
|
174
|
-
fallbackStrategy: f = "bestFit",
|
|
175
|
-
fallbackAxisSideDirection: g = "none",
|
|
176
|
-
flipAlignment: p = !0,
|
|
177
|
-
...x
|
|
178
|
-
} = Q(t, e);
|
|
179
|
-
if ((i = l.arrow) != null && i.alignmentOffset)
|
|
180
|
-
return {};
|
|
181
|
-
const h = K(o), v = W(r), w = K(r) === r, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = m || (w || !p ? [Pt(r)] : Vt(r)), P = g !== "none";
|
|
182
|
-
!m && P && b.push(...kt(r, p, g, R));
|
|
183
|
-
const y = [r, ...b], A = await At(e, x), V = [];
|
|
184
|
-
let H = ((n = l.flip) == null ? void 0 : n.overflows) || [];
|
|
185
|
-
if (d && V.push(A[h]), u) {
|
|
186
|
-
const k = Bt(o, s, R);
|
|
187
|
-
V.push(A[k[0]], A[k[1]]);
|
|
188
|
-
}
|
|
189
|
-
if (H = [...H, {
|
|
190
|
-
placement: o,
|
|
191
|
-
overflows: V
|
|
192
|
-
}], !V.every((k) => k <= 0)) {
|
|
193
|
-
var ft, ut;
|
|
194
|
-
const k = (((ft = l.flip) == null ? void 0 : ft.index) || 0) + 1, et = y[k];
|
|
195
|
-
if (et && (!(u === "alignment" ? v !== W(et) : !1) || // We leave the current main axis only if every placement on that axis
|
|
196
|
-
// overflows the main axis.
|
|
197
|
-
H.every((O) => O.overflows[0] > 0 && W(O.placement) === v)))
|
|
198
|
-
return {
|
|
199
|
-
data: {
|
|
200
|
-
index: k,
|
|
201
|
-
overflows: H
|
|
202
|
-
},
|
|
203
|
-
reset: {
|
|
204
|
-
placement: et
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
let z = (ut = H.filter((B) => B.overflows[0] <= 0).sort((B, O) => B.overflows[1] - O.overflows[1])[0]) == null ? void 0 : ut.placement;
|
|
208
|
-
if (!z)
|
|
209
|
-
switch (f) {
|
|
210
|
-
case "bestFit": {
|
|
211
|
-
var dt;
|
|
212
|
-
const B = (dt = H.filter((O) => {
|
|
213
|
-
if (P) {
|
|
214
|
-
const D = W(O.placement);
|
|
215
|
-
return D === v || // Create a bias to the `y` side axis due to horizontal
|
|
216
|
-
// reading directions favoring greater width.
|
|
217
|
-
D === "y";
|
|
218
|
-
}
|
|
219
|
-
return !0;
|
|
220
|
-
}).map((O) => [O.placement, O.overflows.filter((D) => D > 0).reduce((D, Ft) => D + Ft, 0)]).sort((O, D) => O[1] - D[1])[0]) == null ? void 0 : dt[0];
|
|
221
|
-
B && (z = B);
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
case "initialPlacement":
|
|
225
|
-
z = r;
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
if (o !== z)
|
|
229
|
-
return {
|
|
230
|
-
reset: {
|
|
231
|
-
placement: z
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
return {};
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
}, Gt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
239
|
-
async function Jt(t, e) {
|
|
240
|
-
const {
|
|
241
|
-
placement: i,
|
|
242
|
-
platform: n,
|
|
243
|
-
elements: o
|
|
244
|
-
} = t, l = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = K(i), r = yt(i), a = W(i) === "y", c = Gt.has(s) ? -1 : 1, d = l && a ? -1 : 1, u = Q(e, t);
|
|
245
|
-
let {
|
|
246
|
-
mainAxis: m,
|
|
247
|
-
crossAxis: f,
|
|
248
|
-
alignmentAxis: g
|
|
249
|
-
} = typeof u == "number" ? {
|
|
250
|
-
mainAxis: u,
|
|
251
|
-
crossAxis: 0,
|
|
252
|
-
alignmentAxis: null
|
|
253
|
-
} : {
|
|
254
|
-
mainAxis: u.mainAxis || 0,
|
|
255
|
-
crossAxis: u.crossAxis || 0,
|
|
256
|
-
alignmentAxis: u.alignmentAxis
|
|
257
|
-
};
|
|
258
|
-
return r && typeof g == "number" && (f = r === "end" ? g * -1 : g), a ? {
|
|
259
|
-
x: f * d,
|
|
260
|
-
y: m * c
|
|
261
|
-
} : {
|
|
262
|
-
x: m * c,
|
|
263
|
-
y: f * d
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
const Xt = function(t) {
|
|
267
|
-
return t === void 0 && (t = 0), {
|
|
268
|
-
name: "offset",
|
|
269
|
-
options: t,
|
|
270
|
-
async fn(e) {
|
|
271
|
-
var i, n;
|
|
272
|
-
const {
|
|
273
|
-
x: o,
|
|
274
|
-
y: l,
|
|
275
|
-
placement: s,
|
|
276
|
-
middlewareData: r
|
|
277
|
-
} = e, a = await Jt(e, t);
|
|
278
|
-
return s === ((i = r.offset) == null ? void 0 : i.placement) && (n = r.arrow) != null && n.alignmentOffset ? {} : {
|
|
279
|
-
x: o + a.x,
|
|
280
|
-
y: l + a.y,
|
|
281
|
-
data: {
|
|
282
|
-
...a,
|
|
283
|
-
placement: s
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
}, Qt = function(t) {
|
|
289
|
-
return t === void 0 && (t = {}), {
|
|
290
|
-
name: "shift",
|
|
291
|
-
options: t,
|
|
292
|
-
async fn(e) {
|
|
293
|
-
const {
|
|
294
|
-
x: i,
|
|
295
|
-
y: n,
|
|
296
|
-
placement: o
|
|
297
|
-
} = e, {
|
|
298
|
-
mainAxis: l = !0,
|
|
299
|
-
crossAxis: s = !1,
|
|
300
|
-
limiter: r = {
|
|
301
|
-
fn: (x) => {
|
|
302
|
-
let {
|
|
303
|
-
x: h,
|
|
304
|
-
y: v
|
|
305
|
-
} = x;
|
|
306
|
-
return {
|
|
307
|
-
x: h,
|
|
308
|
-
y: v
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
...a
|
|
313
|
-
} = Q(t, e), c = {
|
|
314
|
-
x: i,
|
|
315
|
-
y: n
|
|
316
|
-
}, d = await At(e, a), u = W(K(o)), m = Mt(u);
|
|
317
|
-
let f = c[m], g = c[u];
|
|
318
|
-
if (l) {
|
|
319
|
-
const x = m === "y" ? "top" : "left", h = m === "y" ? "bottom" : "right", v = f + d[x], w = f - d[h];
|
|
320
|
-
f = mt(v, f, w);
|
|
321
|
-
}
|
|
322
|
-
if (s) {
|
|
323
|
-
const x = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", v = g + d[x], w = g - d[h];
|
|
324
|
-
g = mt(v, g, w);
|
|
325
|
-
}
|
|
326
|
-
const p = r.fn({
|
|
327
|
-
...e,
|
|
328
|
-
[m]: f,
|
|
329
|
-
[u]: g
|
|
330
|
-
});
|
|
331
|
-
return {
|
|
332
|
-
...p,
|
|
333
|
-
data: {
|
|
334
|
-
x: p.x - i,
|
|
335
|
-
y: p.y - n,
|
|
336
|
-
enabled: {
|
|
337
|
-
[m]: l,
|
|
338
|
-
[u]: s
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
function Ot(t) {
|
|
346
|
-
const e = L(t);
|
|
347
|
-
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
348
|
-
const o = F(t), l = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, r = J(i) !== l || J(n) !== s;
|
|
349
|
-
return r && (i = l, n = s), {
|
|
350
|
-
width: i,
|
|
351
|
-
height: n,
|
|
352
|
-
$: r
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
function ct(t) {
|
|
356
|
-
return E(t) ? t : t.contextElement;
|
|
357
|
-
}
|
|
358
|
-
function $(t) {
|
|
359
|
-
const e = ct(t);
|
|
360
|
-
if (!F(e))
|
|
361
|
-
return C(1);
|
|
362
|
-
const i = e.getBoundingClientRect(), {
|
|
363
|
-
width: n,
|
|
364
|
-
height: o,
|
|
365
|
-
$: l
|
|
366
|
-
} = Ot(e);
|
|
367
|
-
let s = (l ? J(i.width) : i.width) / n, r = (l ? J(i.height) : i.height) / o;
|
|
368
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
369
|
-
x: s,
|
|
370
|
-
y: r
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
const Zt = /* @__PURE__ */ C(0);
|
|
374
|
-
function Ct(t) {
|
|
375
|
-
const e = M(t);
|
|
376
|
-
return !bt() || !e.visualViewport ? Zt : {
|
|
377
|
-
x: e.visualViewport.offsetLeft,
|
|
378
|
-
y: e.visualViewport.offsetTop
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
function te(t, e, i) {
|
|
382
|
-
return e === void 0 && (e = !1), !i || e && i !== M(t) ? !1 : e;
|
|
383
|
-
}
|
|
384
|
-
function I(t, e, i, n) {
|
|
385
|
-
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
386
|
-
const o = t.getBoundingClientRect(), l = ct(t);
|
|
387
|
-
let s = C(1);
|
|
388
|
-
e && (n ? E(n) && (s = $(n)) : s = $(t));
|
|
389
|
-
const r = te(l, i, n) ? Ct(l) : C(0);
|
|
390
|
-
let a = (o.left + r.x) / s.x, c = (o.top + r.y) / s.y, d = o.width / s.x, u = o.height / s.y;
|
|
391
|
-
if (l) {
|
|
392
|
-
const m = M(l), f = n && E(n) ? M(n) : n;
|
|
393
|
-
let g = m, p = gt(g);
|
|
394
|
-
for (; p && n && f !== g; ) {
|
|
395
|
-
const x = $(p), h = p.getBoundingClientRect(), v = L(p), w = h.left + (p.clientLeft + parseFloat(v.paddingLeft)) * x.x, R = h.top + (p.clientTop + parseFloat(v.paddingTop)) * x.y;
|
|
396
|
-
a *= x.x, c *= x.y, d *= x.x, u *= x.y, a += w, c += R, g = M(p), p = gt(g);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
return G({
|
|
400
|
-
width: d,
|
|
401
|
-
height: u,
|
|
402
|
-
x: a,
|
|
403
|
-
y: c
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
function at(t, e) {
|
|
407
|
-
const i = tt(t).scrollLeft;
|
|
408
|
-
return e ? e.left + i : I(T(t)).left + i;
|
|
409
|
-
}
|
|
410
|
-
function Et(t, e, i) {
|
|
411
|
-
i === void 0 && (i = !1);
|
|
412
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
|
|
413
|
-
// RTL <body> scrollbar.
|
|
414
|
-
at(t, n)
|
|
415
|
-
)), l = n.top + e.scrollTop;
|
|
416
|
-
return {
|
|
417
|
-
x: o,
|
|
418
|
-
y: l
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
function ee(t) {
|
|
422
|
-
let {
|
|
423
|
-
elements: e,
|
|
424
|
-
rect: i,
|
|
425
|
-
offsetParent: n,
|
|
426
|
-
strategy: o
|
|
427
|
-
} = t;
|
|
428
|
-
const l = o === "fixed", s = T(n), r = e ? lt(e.floating) : !1;
|
|
429
|
-
if (n === s || r && l)
|
|
430
|
-
return i;
|
|
431
|
-
let a = {
|
|
432
|
-
scrollLeft: 0,
|
|
433
|
-
scrollTop: 0
|
|
434
|
-
}, c = C(1);
|
|
435
|
-
const d = C(0), u = F(n);
|
|
436
|
-
if ((u || !u && !l) && ((Z(n) !== "body" || rt(s)) && (a = tt(n)), F(n))) {
|
|
437
|
-
const f = I(n);
|
|
438
|
-
c = $(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
|
|
439
|
-
}
|
|
440
|
-
const m = s && !u && !l ? Et(s, a, !0) : C(0);
|
|
441
|
-
return {
|
|
442
|
-
width: i.width * c.x,
|
|
443
|
-
height: i.height * c.y,
|
|
444
|
-
x: i.x * c.x - a.scrollLeft * c.x + d.x + m.x,
|
|
445
|
-
y: i.y * c.y - a.scrollTop * c.y + d.y + m.y
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function ne(t) {
|
|
449
|
-
return Array.from(t.getClientRects());
|
|
450
|
-
}
|
|
451
|
-
function ie(t) {
|
|
452
|
-
const e = T(t), i = tt(t), n = t.ownerDocument.body, o = _(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), l = _(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
453
|
-
let s = -i.scrollLeft + at(t);
|
|
454
|
-
const r = -i.scrollTop;
|
|
455
|
-
return L(n).direction === "rtl" && (s += _(e.clientWidth, n.clientWidth) - o), {
|
|
456
|
-
width: o,
|
|
457
|
-
height: l,
|
|
458
|
-
x: s,
|
|
459
|
-
y: r
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
function oe(t, e) {
|
|
463
|
-
const i = M(t), n = T(t), o = i.visualViewport;
|
|
464
|
-
let l = n.clientWidth, s = n.clientHeight, r = 0, a = 0;
|
|
465
|
-
if (o) {
|
|
466
|
-
l = o.width, s = o.height;
|
|
467
|
-
const c = bt();
|
|
468
|
-
(!c || c && e === "fixed") && (r = o.offsetLeft, a = o.offsetTop);
|
|
469
|
-
}
|
|
470
|
-
return {
|
|
471
|
-
width: l,
|
|
472
|
-
height: s,
|
|
473
|
-
x: r,
|
|
474
|
-
y: a
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
const se = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
478
|
-
function le(t, e) {
|
|
479
|
-
const i = I(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, l = F(t) ? $(t) : C(1), s = t.clientWidth * l.x, r = t.clientHeight * l.y, a = o * l.x, c = n * l.y;
|
|
480
|
-
return {
|
|
481
|
-
width: s,
|
|
482
|
-
height: r,
|
|
483
|
-
x: a,
|
|
484
|
-
y: c
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
function pt(t, e, i) {
|
|
488
|
-
let n;
|
|
489
|
-
if (e === "viewport")
|
|
490
|
-
n = oe(t, i);
|
|
491
|
-
else if (e === "document")
|
|
492
|
-
n = ie(T(t));
|
|
493
|
-
else if (E(e))
|
|
494
|
-
n = le(e, i);
|
|
495
|
-
else {
|
|
496
|
-
const o = Ct(t);
|
|
497
|
-
n = {
|
|
498
|
-
x: e.x - o.x,
|
|
499
|
-
y: e.y - o.y,
|
|
500
|
-
width: e.width,
|
|
501
|
-
height: e.height
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
return G(n);
|
|
505
|
-
}
|
|
506
|
-
function Lt(t, e) {
|
|
507
|
-
const i = U(t);
|
|
508
|
-
return i === e || !E(i) || X(i) ? !1 : L(i).position === "fixed" || Lt(i, e);
|
|
509
|
-
}
|
|
510
|
-
function re(t, e) {
|
|
511
|
-
const i = e.get(t);
|
|
512
|
-
if (i)
|
|
513
|
-
return i;
|
|
514
|
-
let n = ot(t, [], !1).filter((r) => E(r) && Z(r) !== "body"), o = null;
|
|
515
|
-
const l = L(t).position === "fixed";
|
|
516
|
-
let s = l ? U(t) : t;
|
|
517
|
-
for (; E(s) && !X(s); ) {
|
|
518
|
-
const r = L(s), a = Rt(s);
|
|
519
|
-
!a && r.position === "fixed" && (o = null), (l ? !a && !o : !a && r.position === "static" && !!o && se.has(o.position) || rt(s) && !a && Lt(t, s)) ? n = n.filter((d) => d !== s) : o = r, s = U(s);
|
|
520
|
-
}
|
|
521
|
-
return e.set(t, n), n;
|
|
522
|
-
}
|
|
523
|
-
function ce(t) {
|
|
524
|
-
let {
|
|
525
|
-
element: e,
|
|
526
|
-
boundary: i,
|
|
527
|
-
rootBoundary: n,
|
|
528
|
-
strategy: o
|
|
529
|
-
} = t;
|
|
530
|
-
const s = [...i === "clippingAncestors" ? lt(e) ? [] : re(e, this._c) : [].concat(i), n], r = s[0], a = s.reduce((c, d) => {
|
|
531
|
-
const u = pt(e, d, o);
|
|
532
|
-
return c.top = _(u.top, c.top), c.right = st(u.right, c.right), c.bottom = st(u.bottom, c.bottom), c.left = _(u.left, c.left), c;
|
|
533
|
-
}, pt(e, r, o));
|
|
534
|
-
return {
|
|
535
|
-
width: a.right - a.left,
|
|
536
|
-
height: a.bottom - a.top,
|
|
537
|
-
x: a.left,
|
|
538
|
-
y: a.top
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
function ae(t) {
|
|
542
|
-
const {
|
|
543
|
-
width: e,
|
|
544
|
-
height: i
|
|
545
|
-
} = Ot(t);
|
|
546
|
-
return {
|
|
547
|
-
width: e,
|
|
548
|
-
height: i
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
function fe(t, e, i) {
|
|
552
|
-
const n = F(e), o = T(e), l = i === "fixed", s = I(t, !0, l, e);
|
|
553
|
-
let r = {
|
|
554
|
-
scrollLeft: 0,
|
|
555
|
-
scrollTop: 0
|
|
556
|
-
};
|
|
557
|
-
const a = C(0);
|
|
558
|
-
function c() {
|
|
559
|
-
a.x = at(o);
|
|
560
|
-
}
|
|
561
|
-
if (n || !n && !l)
|
|
562
|
-
if ((Z(e) !== "body" || rt(o)) && (r = tt(e)), n) {
|
|
563
|
-
const f = I(e, !0, l, e);
|
|
564
|
-
a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
|
|
565
|
-
} else o && c();
|
|
566
|
-
l && !n && o && c();
|
|
567
|
-
const d = o && !n && !l ? Et(o, r) : C(0), u = s.left + r.scrollLeft - a.x - d.x, m = s.top + r.scrollTop - a.y - d.y;
|
|
568
|
-
return {
|
|
569
|
-
x: u,
|
|
570
|
-
y: m,
|
|
571
|
-
width: s.width,
|
|
572
|
-
height: s.height
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
function it(t) {
|
|
576
|
-
return L(t).position === "static";
|
|
577
|
-
}
|
|
578
|
-
function xt(t, e) {
|
|
579
|
-
if (!F(t) || L(t).position === "fixed")
|
|
580
|
-
return null;
|
|
581
|
-
if (e)
|
|
582
|
-
return e(t);
|
|
583
|
-
let i = t.offsetParent;
|
|
584
|
-
return T(t) === i && (i = i.ownerDocument.body), i;
|
|
585
|
-
}
|
|
586
|
-
function Tt(t, e) {
|
|
587
|
-
const i = M(t);
|
|
588
|
-
if (lt(t))
|
|
589
|
-
return i;
|
|
590
|
-
if (!F(t)) {
|
|
591
|
-
let o = U(t);
|
|
592
|
-
for (; o && !X(o); ) {
|
|
593
|
-
if (E(o) && !it(o))
|
|
594
|
-
return o;
|
|
595
|
-
o = U(o);
|
|
596
|
-
}
|
|
597
|
-
return i;
|
|
598
|
-
}
|
|
599
|
-
let n = xt(t, e);
|
|
600
|
-
for (; n && Nt(n) && it(n); )
|
|
601
|
-
n = xt(n, e);
|
|
602
|
-
return n && X(n) && it(n) && !Rt(n) ? i : n || _t(t) || i;
|
|
603
|
-
}
|
|
604
|
-
const ue = async function(t) {
|
|
605
|
-
const e = this.getOffsetParent || Tt, i = this.getDimensions, n = await i(t.floating);
|
|
606
|
-
return {
|
|
607
|
-
reference: fe(t.reference, await e(t.floating), t.strategy),
|
|
608
|
-
floating: {
|
|
609
|
-
x: 0,
|
|
610
|
-
y: 0,
|
|
611
|
-
width: n.width,
|
|
612
|
-
height: n.height
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
function de(t) {
|
|
617
|
-
return L(t).direction === "rtl";
|
|
618
|
-
}
|
|
619
|
-
const me = {
|
|
620
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: ee,
|
|
621
|
-
getDocumentElement: T,
|
|
622
|
-
getClippingRect: ce,
|
|
623
|
-
getOffsetParent: Tt,
|
|
624
|
-
getElementRects: ue,
|
|
625
|
-
getClientRects: ne,
|
|
626
|
-
getDimensions: ae,
|
|
627
|
-
getScale: $,
|
|
628
|
-
isElement: E,
|
|
629
|
-
isRTL: de
|
|
630
|
-
};
|
|
631
|
-
function Dt(t, e) {
|
|
632
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
633
|
-
}
|
|
634
|
-
function ge(t, e) {
|
|
635
|
-
let i = null, n;
|
|
636
|
-
const o = T(t);
|
|
637
|
-
function l() {
|
|
638
|
-
var r;
|
|
639
|
-
clearTimeout(n), (r = i) == null || r.disconnect(), i = null;
|
|
640
|
-
}
|
|
641
|
-
function s(r, a) {
|
|
642
|
-
r === void 0 && (r = !1), a === void 0 && (a = 1), l();
|
|
643
|
-
const c = t.getBoundingClientRect(), {
|
|
644
|
-
left: d,
|
|
645
|
-
top: u,
|
|
646
|
-
width: m,
|
|
647
|
-
height: f
|
|
648
|
-
} = c;
|
|
649
|
-
if (r || e(), !m || !f)
|
|
650
|
-
return;
|
|
651
|
-
const g = Y(u), p = Y(o.clientWidth - (d + m)), x = Y(o.clientHeight - (u + f)), h = Y(d), w = {
|
|
652
|
-
rootMargin: -g + "px " + -p + "px " + -x + "px " + -h + "px",
|
|
653
|
-
threshold: _(0, st(1, a)) || 1
|
|
654
|
-
};
|
|
655
|
-
let R = !0;
|
|
656
|
-
function b(P) {
|
|
657
|
-
const y = P[0].intersectionRatio;
|
|
658
|
-
if (y !== a) {
|
|
659
|
-
if (!R)
|
|
660
|
-
return s();
|
|
661
|
-
y ? s(!1, y) : n = setTimeout(() => {
|
|
662
|
-
s(!1, 1e-7);
|
|
663
|
-
}, 1e3);
|
|
664
|
-
}
|
|
665
|
-
y === 1 && !Dt(c, t.getBoundingClientRect()) && s(), R = !1;
|
|
666
|
-
}
|
|
667
|
-
try {
|
|
668
|
-
i = new IntersectionObserver(b, {
|
|
669
|
-
...w,
|
|
670
|
-
// Handle <iframe>s
|
|
671
|
-
root: o.ownerDocument
|
|
672
|
-
});
|
|
673
|
-
} catch {
|
|
674
|
-
i = new IntersectionObserver(b, w);
|
|
675
|
-
}
|
|
676
|
-
i.observe(t);
|
|
677
|
-
}
|
|
678
|
-
return s(!0), l;
|
|
679
|
-
}
|
|
680
|
-
function we(t, e, i, n) {
|
|
681
|
-
n === void 0 && (n = {});
|
|
682
|
-
const {
|
|
683
|
-
ancestorScroll: o = !0,
|
|
684
|
-
ancestorResize: l = !0,
|
|
685
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
686
|
-
layoutShift: r = typeof IntersectionObserver == "function",
|
|
687
|
-
animationFrame: a = !1
|
|
688
|
-
} = n, c = ct(t), d = o || l ? [...c ? ot(c) : [], ...ot(e)] : [];
|
|
689
|
-
d.forEach((h) => {
|
|
690
|
-
o && h.addEventListener("scroll", i, {
|
|
691
|
-
passive: !0
|
|
692
|
-
}), l && h.addEventListener("resize", i);
|
|
693
|
-
});
|
|
694
|
-
const u = c && r ? ge(c, i) : null;
|
|
695
|
-
let m = -1, f = null;
|
|
696
|
-
s && (f = new ResizeObserver((h) => {
|
|
697
|
-
let [v] = h;
|
|
698
|
-
v && v.target === c && f && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
699
|
-
var w;
|
|
700
|
-
(w = f) == null || w.observe(e);
|
|
701
|
-
})), i();
|
|
702
|
-
}), c && !a && f.observe(c), f.observe(e));
|
|
703
|
-
let g, p = a ? I(t) : null;
|
|
704
|
-
a && x();
|
|
705
|
-
function x() {
|
|
706
|
-
const h = I(t);
|
|
707
|
-
p && !Dt(p, h) && i(), p = h, g = requestAnimationFrame(x);
|
|
708
|
-
}
|
|
709
|
-
return i(), () => {
|
|
710
|
-
var h;
|
|
711
|
-
d.forEach((v) => {
|
|
712
|
-
o && v.removeEventListener("scroll", i), l && v.removeEventListener("resize", i);
|
|
713
|
-
}), u?.(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(g);
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
const ye = Xt, be = Qt, Re = Yt, he = (t, e, i) => {
|
|
717
|
-
const n = /* @__PURE__ */ new Map(), o = {
|
|
718
|
-
platform: me,
|
|
719
|
-
...i
|
|
720
|
-
}, l = {
|
|
721
|
-
...o.platform,
|
|
722
|
-
_c: n
|
|
723
|
-
};
|
|
724
|
-
return Ut(t, e, {
|
|
725
|
-
...o,
|
|
726
|
-
platform: l
|
|
727
|
-
});
|
|
728
|
-
};
|
|
729
|
-
function pe(t) {
|
|
730
|
-
return t != null && typeof t == "object" && "$el" in t;
|
|
731
|
-
}
|
|
732
|
-
function vt(t) {
|
|
733
|
-
if (pe(t)) {
|
|
734
|
-
const e = t.$el;
|
|
735
|
-
return $t(e) && Z(e) === "#comment" ? null : e;
|
|
736
|
-
}
|
|
737
|
-
return t;
|
|
738
|
-
}
|
|
739
|
-
function q(t) {
|
|
740
|
-
return typeof t == "function" ? t() : Kt(t);
|
|
741
|
-
}
|
|
742
|
-
function St(t) {
|
|
743
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
744
|
-
}
|
|
745
|
-
function wt(t, e) {
|
|
746
|
-
const i = St(t);
|
|
747
|
-
return Math.round(e * i) / i;
|
|
748
|
-
}
|
|
749
|
-
function Ae(t, e, i) {
|
|
750
|
-
i === void 0 && (i = {});
|
|
751
|
-
const n = i.whileElementsMounted, o = S(() => {
|
|
752
|
-
var y;
|
|
753
|
-
return (y = q(i.open)) != null ? y : !0;
|
|
754
|
-
}), l = S(() => q(i.middleware)), s = S(() => {
|
|
755
|
-
var y;
|
|
756
|
-
return (y = q(i.placement)) != null ? y : "bottom";
|
|
757
|
-
}), r = S(() => {
|
|
758
|
-
var y;
|
|
759
|
-
return (y = q(i.strategy)) != null ? y : "absolute";
|
|
760
|
-
}), a = S(() => {
|
|
761
|
-
var y;
|
|
762
|
-
return (y = q(i.transform)) != null ? y : !0;
|
|
763
|
-
}), c = S(() => vt(t.value)), d = S(() => vt(e.value)), u = j(0), m = j(0), f = j(r.value), g = j(s.value), p = zt({}), x = j(!1), h = S(() => {
|
|
764
|
-
const y = {
|
|
765
|
-
position: f.value,
|
|
766
|
-
left: "0",
|
|
767
|
-
top: "0"
|
|
768
|
-
};
|
|
769
|
-
if (!d.value)
|
|
770
|
-
return y;
|
|
771
|
-
const A = wt(d.value, u.value), V = wt(d.value, m.value);
|
|
772
|
-
return a.value ? {
|
|
773
|
-
...y,
|
|
774
|
-
transform: "translate(" + A + "px, " + V + "px)",
|
|
775
|
-
...St(d.value) >= 1.5 && {
|
|
776
|
-
willChange: "transform"
|
|
777
|
-
}
|
|
778
|
-
} : {
|
|
779
|
-
position: f.value,
|
|
780
|
-
left: A + "px",
|
|
781
|
-
top: V + "px"
|
|
782
|
-
};
|
|
783
|
-
});
|
|
784
|
-
let v;
|
|
785
|
-
function w() {
|
|
786
|
-
if (c.value == null || d.value == null)
|
|
787
|
-
return;
|
|
788
|
-
const y = o.value;
|
|
789
|
-
he(c.value, d.value, {
|
|
790
|
-
middleware: l.value,
|
|
791
|
-
placement: s.value,
|
|
792
|
-
strategy: r.value
|
|
793
|
-
}).then((A) => {
|
|
794
|
-
u.value = A.x, m.value = A.y, f.value = A.strategy, g.value = A.placement, p.value = A.middlewareData, x.value = y !== !1;
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
function R() {
|
|
798
|
-
typeof v == "function" && (v(), v = void 0);
|
|
799
|
-
}
|
|
800
|
-
function b() {
|
|
801
|
-
if (R(), n === void 0) {
|
|
802
|
-
w();
|
|
803
|
-
return;
|
|
804
|
-
}
|
|
805
|
-
if (c.value != null && d.value != null) {
|
|
806
|
-
v = n(c.value, d.value, w);
|
|
807
|
-
return;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
function P() {
|
|
811
|
-
o.value || (x.value = !1);
|
|
812
|
-
}
|
|
813
|
-
return nt([l, s, r, o], w, {
|
|
814
|
-
flush: "sync"
|
|
815
|
-
}), nt([c, d], b, {
|
|
816
|
-
flush: "sync"
|
|
817
|
-
}), nt(o, P, {
|
|
818
|
-
flush: "sync"
|
|
819
|
-
}), jt() && qt(R), {
|
|
820
|
-
x: N(u),
|
|
821
|
-
y: N(m),
|
|
822
|
-
strategy: N(f),
|
|
823
|
-
placement: N(g),
|
|
824
|
-
middlewareData: N(p),
|
|
825
|
-
isPositioned: N(x),
|
|
826
|
-
floatingStyles: h,
|
|
827
|
-
update: w
|
|
828
|
-
};
|
|
829
|
-
}
|
|
830
|
-
export {
|
|
831
|
-
we as a,
|
|
832
|
-
Re as f,
|
|
833
|
-
ye as o,
|
|
834
|
-
be as s,
|
|
835
|
-
Ae as u
|
|
836
|
-
};
|