@turquoisehealth/pit-viper 2.122.0 → 2.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +43 -13
- package/pv-components/dist/stats/vue/base/stats.html +4949 -0
- package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-ai-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-progress-bar-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-rating-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-release-badge-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-search-input-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-select-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-selectable-card-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-side-panel-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-skeleton-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-spinner-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-sprite-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-switch-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tab-list-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tabs-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tag-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-text-area-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-toast-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tree-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +4862 -11539
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4751 -11704
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +265 -0
- package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +134 -0
- package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +225 -0
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +164 -0
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +170 -0
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +224 -0
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +160 -0
- package/pv-components/dist/web/components/pv-button/pv-button.js +242 -0
- package/pv-components/dist/web/components/pv-card/pv-card.js +148 -0
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +145 -0
- package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +221 -0
- package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +192 -0
- package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +274 -0
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +157 -0
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +7550 -0
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +645 -0
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +177 -0
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +556 -0
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +1792 -0
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +304 -0
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +320 -0
- package/pv-components/dist/web/components/pv-icon/pv-icon.js +150 -0
- package/pv-components/dist/web/components/pv-input/pv-input.js +191 -0
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +363 -0
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +186 -0
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2821 -0
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +355 -0
- package/pv-components/dist/web/components/pv-pill/pv-pill.js +229 -0
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +1485 -0
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +1507 -0
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1489 -0
- package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +156 -0
- package/pv-components/dist/web/components/pv-rating/pv-rating.js +146 -0
- package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +142 -0
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +238 -0
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +214 -0
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2633 -0
- package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +153 -0
- package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +148 -0
- package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +1593 -0
- package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +151 -0
- package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +150 -0
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +195 -0
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +162 -0
- package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +168 -0
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +248 -0
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +210 -0
- package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +188 -0
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +292 -0
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +208 -0
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +7395 -0
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +158 -0
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +7325 -0
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +5107 -0
- package/pv-components/dist/web/components/pv-widget/pv-widget.js +159 -0
- package/pv-components/dist/web/pv-components.iife.js +46 -46
- package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +7 -0
- package/pv-components/dist/vue/base/pv-components-base.js +0 -1555
- package/pv-components/dist/vue/base/pv-components-base.umd.js +0 -1555
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +0 -185
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +0 -185
|
@@ -0,0 +1,1489 @@
|
|
|
1
|
+
import { computed as O, ref as B, shallowRef as C, watch as R, getCurrentScope as Ht, onScopeDispose as zt, shallowReadonly as j, unref as it, onMounted as wt, nextTick as pe, getCurrentInstance as Xt, toValue as E, toRef as me, readonly as he, customRef as ve, watchEffect as ge, defineComponent as we, mergeModels as ye, useModel as be, withDirectives as St, createElementBlock as xe, openBlock as Et, createElementVNode as Ct, createBlock as Oe, createCommentVNode as Se, renderSlot as Pt, Teleport as Ee, normalizeStyle as Ce, vShow as Pe, defineCustomElement as Re } from "vue";
|
|
2
|
+
const Ae = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Ae.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), Tt = Math.min, K = Math.max, nt = Math.round, M = (t) => ({
|
|
3
|
+
x: t,
|
|
4
|
+
y: t
|
|
5
|
+
}), Te = {
|
|
6
|
+
left: "right",
|
|
7
|
+
right: "left",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
top: "bottom"
|
|
10
|
+
}, Le = {
|
|
11
|
+
start: "end",
|
|
12
|
+
end: "start"
|
|
13
|
+
};
|
|
14
|
+
function Yt(t, e) {
|
|
15
|
+
return typeof t == "function" ? t(e) : t;
|
|
16
|
+
}
|
|
17
|
+
function st(t) {
|
|
18
|
+
return t.split("-")[0];
|
|
19
|
+
}
|
|
20
|
+
function I(t) {
|
|
21
|
+
return t.split("-")[1];
|
|
22
|
+
}
|
|
23
|
+
function ke(t) {
|
|
24
|
+
return t === "x" ? "y" : "x";
|
|
25
|
+
}
|
|
26
|
+
function qt(t) {
|
|
27
|
+
return t === "y" ? "height" : "width";
|
|
28
|
+
}
|
|
29
|
+
const Me = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
30
|
+
function Gt(t) {
|
|
31
|
+
return Me.has(st(t)) ? "y" : "x";
|
|
32
|
+
}
|
|
33
|
+
function Jt(t) {
|
|
34
|
+
return ke(Gt(t));
|
|
35
|
+
}
|
|
36
|
+
function De(t, e, n) {
|
|
37
|
+
n === void 0 && (n = !1);
|
|
38
|
+
const o = I(t), r = Jt(t), s = qt(r);
|
|
39
|
+
let u = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
40
|
+
return e.reference[s] > e.floating[s] && (u = Lt(u)), [u, Lt(u)];
|
|
41
|
+
}
|
|
42
|
+
function We(t) {
|
|
43
|
+
return t.replace(/start|end/g, (e) => Le[e]);
|
|
44
|
+
}
|
|
45
|
+
function Lt(t) {
|
|
46
|
+
return t.replace(/left|right|bottom|top/g, (e) => Te[e]);
|
|
47
|
+
}
|
|
48
|
+
function Be(t) {
|
|
49
|
+
return {
|
|
50
|
+
top: 0,
|
|
51
|
+
right: 0,
|
|
52
|
+
bottom: 0,
|
|
53
|
+
left: 0,
|
|
54
|
+
...t
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function Ne(t) {
|
|
58
|
+
return typeof t != "number" ? Be(t) : {
|
|
59
|
+
top: t,
|
|
60
|
+
right: t,
|
|
61
|
+
bottom: t,
|
|
62
|
+
left: t
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ot(t) {
|
|
66
|
+
const {
|
|
67
|
+
x: e,
|
|
68
|
+
y: n,
|
|
69
|
+
width: o,
|
|
70
|
+
height: r
|
|
71
|
+
} = t;
|
|
72
|
+
return {
|
|
73
|
+
width: o,
|
|
74
|
+
height: r,
|
|
75
|
+
top: n,
|
|
76
|
+
left: e,
|
|
77
|
+
right: e + o,
|
|
78
|
+
bottom: n + r,
|
|
79
|
+
x: e,
|
|
80
|
+
y: n
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function kt(t, e, n) {
|
|
84
|
+
let {
|
|
85
|
+
reference: o,
|
|
86
|
+
floating: r
|
|
87
|
+
} = t;
|
|
88
|
+
const s = Gt(e), u = Jt(e), i = qt(u), l = st(e), c = s === "y", a = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, p = o[i] / 2 - r[i] / 2;
|
|
89
|
+
let m;
|
|
90
|
+
switch (l) {
|
|
91
|
+
case "top":
|
|
92
|
+
m = {
|
|
93
|
+
x: a,
|
|
94
|
+
y: o.y - r.height
|
|
95
|
+
};
|
|
96
|
+
break;
|
|
97
|
+
case "bottom":
|
|
98
|
+
m = {
|
|
99
|
+
x: a,
|
|
100
|
+
y: o.y + o.height
|
|
101
|
+
};
|
|
102
|
+
break;
|
|
103
|
+
case "right":
|
|
104
|
+
m = {
|
|
105
|
+
x: o.x + o.width,
|
|
106
|
+
y: f
|
|
107
|
+
};
|
|
108
|
+
break;
|
|
109
|
+
case "left":
|
|
110
|
+
m = {
|
|
111
|
+
x: o.x - r.width,
|
|
112
|
+
y: f
|
|
113
|
+
};
|
|
114
|
+
break;
|
|
115
|
+
default:
|
|
116
|
+
m = {
|
|
117
|
+
x: o.x,
|
|
118
|
+
y: o.y
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
switch (I(e)) {
|
|
122
|
+
case "start":
|
|
123
|
+
m[u] -= p * (n && c ? -1 : 1);
|
|
124
|
+
break;
|
|
125
|
+
case "end":
|
|
126
|
+
m[u] += p * (n && c ? -1 : 1);
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
return m;
|
|
130
|
+
}
|
|
131
|
+
const _e = async (t, e, n) => {
|
|
132
|
+
const {
|
|
133
|
+
placement: o = "bottom",
|
|
134
|
+
strategy: r = "absolute",
|
|
135
|
+
middleware: s = [],
|
|
136
|
+
platform: u
|
|
137
|
+
} = n, i = s.filter(Boolean), l = await (u.isRTL == null ? void 0 : u.isRTL(e));
|
|
138
|
+
let c = await u.getElementRects({
|
|
139
|
+
reference: t,
|
|
140
|
+
floating: e,
|
|
141
|
+
strategy: r
|
|
142
|
+
}), {
|
|
143
|
+
x: a,
|
|
144
|
+
y: f
|
|
145
|
+
} = kt(c, o, l), p = o, m = {}, g = 0;
|
|
146
|
+
for (let y = 0; y < i.length; y++) {
|
|
147
|
+
const {
|
|
148
|
+
name: d,
|
|
149
|
+
fn: h
|
|
150
|
+
} = i[y], {
|
|
151
|
+
x: v,
|
|
152
|
+
y: b,
|
|
153
|
+
data: S,
|
|
154
|
+
reset: w
|
|
155
|
+
} = await h({
|
|
156
|
+
x: a,
|
|
157
|
+
y: f,
|
|
158
|
+
initialPlacement: o,
|
|
159
|
+
placement: p,
|
|
160
|
+
strategy: r,
|
|
161
|
+
middlewareData: m,
|
|
162
|
+
rects: c,
|
|
163
|
+
platform: u,
|
|
164
|
+
elements: {
|
|
165
|
+
reference: t,
|
|
166
|
+
floating: e
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
a = v ?? a, f = b ?? f, m = {
|
|
170
|
+
...m,
|
|
171
|
+
[d]: {
|
|
172
|
+
...m[d],
|
|
173
|
+
...S
|
|
174
|
+
}
|
|
175
|
+
}, w && g <= 50 && (g++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (c = w.rects === !0 ? await u.getElementRects({
|
|
176
|
+
reference: t,
|
|
177
|
+
floating: e,
|
|
178
|
+
strategy: r
|
|
179
|
+
}) : w.rects), {
|
|
180
|
+
x: a,
|
|
181
|
+
y: f
|
|
182
|
+
} = kt(c, p, l)), y = -1);
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
x: a,
|
|
186
|
+
y: f,
|
|
187
|
+
placement: p,
|
|
188
|
+
strategy: r,
|
|
189
|
+
middlewareData: m
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
async function $e(t, e) {
|
|
193
|
+
var n;
|
|
194
|
+
e === void 0 && (e = {});
|
|
195
|
+
const {
|
|
196
|
+
x: o,
|
|
197
|
+
y: r,
|
|
198
|
+
platform: s,
|
|
199
|
+
rects: u,
|
|
200
|
+
elements: i,
|
|
201
|
+
strategy: l
|
|
202
|
+
} = t, {
|
|
203
|
+
boundary: c = "clippingAncestors",
|
|
204
|
+
rootBoundary: a = "viewport",
|
|
205
|
+
elementContext: f = "floating",
|
|
206
|
+
altBoundary: p = !1,
|
|
207
|
+
padding: m = 0
|
|
208
|
+
} = Yt(e, t), g = Ne(m), d = i[p ? f === "floating" ? "reference" : "floating" : f], h = ot(await s.getClippingRect({
|
|
209
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(d))) == null || n ? d : d.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
210
|
+
boundary: c,
|
|
211
|
+
rootBoundary: a,
|
|
212
|
+
strategy: l
|
|
213
|
+
})), v = f === "floating" ? {
|
|
214
|
+
x: o,
|
|
215
|
+
y: r,
|
|
216
|
+
width: u.floating.width,
|
|
217
|
+
height: u.floating.height
|
|
218
|
+
} : u.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), S = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
|
|
219
|
+
x: 1,
|
|
220
|
+
y: 1
|
|
221
|
+
} : {
|
|
222
|
+
x: 1,
|
|
223
|
+
y: 1
|
|
224
|
+
}, w = ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
225
|
+
elements: i,
|
|
226
|
+
rect: v,
|
|
227
|
+
offsetParent: b,
|
|
228
|
+
strategy: l
|
|
229
|
+
}) : v);
|
|
230
|
+
return {
|
|
231
|
+
top: (h.top - w.top + g.top) / S.y,
|
|
232
|
+
bottom: (w.bottom - h.bottom + g.bottom) / S.y,
|
|
233
|
+
left: (h.left - w.left + g.left) / S.x,
|
|
234
|
+
right: (w.right - h.right + g.right) / S.x
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function Ie(t, e, n) {
|
|
238
|
+
return (t ? [...n.filter((r) => I(r) === t), ...n.filter((r) => I(r) !== t)] : n.filter((r) => st(r) === r)).filter((r) => t ? I(r) === t || (e ? We(r) !== r : !1) : !0);
|
|
239
|
+
}
|
|
240
|
+
const Ve = function(t) {
|
|
241
|
+
return t === void 0 && (t = {}), {
|
|
242
|
+
name: "autoPlacement",
|
|
243
|
+
options: t,
|
|
244
|
+
async fn(e) {
|
|
245
|
+
var n, o, r;
|
|
246
|
+
const {
|
|
247
|
+
rects: s,
|
|
248
|
+
middlewareData: u,
|
|
249
|
+
placement: i,
|
|
250
|
+
platform: l,
|
|
251
|
+
elements: c
|
|
252
|
+
} = e, {
|
|
253
|
+
crossAxis: a = !1,
|
|
254
|
+
alignment: f,
|
|
255
|
+
allowedPlacements: p = At,
|
|
256
|
+
autoAlignment: m = !0,
|
|
257
|
+
...g
|
|
258
|
+
} = Yt(t, e), y = f !== void 0 || p === At ? Ie(f || null, m, p) : p, d = await $e(e, g), h = ((n = u.autoPlacement) == null ? void 0 : n.index) || 0, v = y[h];
|
|
259
|
+
if (v == null)
|
|
260
|
+
return {};
|
|
261
|
+
const b = De(v, s, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
|
|
262
|
+
if (i !== v)
|
|
263
|
+
return {
|
|
264
|
+
reset: {
|
|
265
|
+
placement: y[0]
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const S = [d[st(v)], d[b[0]], d[b[1]]], w = [...((o = u.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
269
|
+
placement: v,
|
|
270
|
+
overflows: S
|
|
271
|
+
}], Y = y[h + 1];
|
|
272
|
+
if (Y)
|
|
273
|
+
return {
|
|
274
|
+
data: {
|
|
275
|
+
index: h + 1,
|
|
276
|
+
overflows: w
|
|
277
|
+
},
|
|
278
|
+
reset: {
|
|
279
|
+
placement: Y
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
const x = w.map((L) => {
|
|
283
|
+
const G = I(L.placement);
|
|
284
|
+
return [L.placement, G && a ? (
|
|
285
|
+
// Check along the mainAxis and main crossAxis side.
|
|
286
|
+
L.overflows.slice(0, 2).reduce((fe, de) => fe + de, 0)
|
|
287
|
+
) : (
|
|
288
|
+
// Check only the mainAxis.
|
|
289
|
+
L.overflows[0]
|
|
290
|
+
), L.overflows];
|
|
291
|
+
}).sort((L, G) => L[1] - G[1]), q = ((r = x.filter((L) => L[2].slice(
|
|
292
|
+
0,
|
|
293
|
+
// Aligned placements should not check their opposite crossAxis
|
|
294
|
+
// side.
|
|
295
|
+
I(L[0]) ? 2 : 3
|
|
296
|
+
).every((G) => G <= 0))[0]) == null ? void 0 : r[0]) || x[0][0];
|
|
297
|
+
return q !== i ? {
|
|
298
|
+
data: {
|
|
299
|
+
index: h + 1,
|
|
300
|
+
overflows: w
|
|
301
|
+
},
|
|
302
|
+
reset: {
|
|
303
|
+
placement: q
|
|
304
|
+
}
|
|
305
|
+
} : {};
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
function lt() {
|
|
310
|
+
return typeof window < "u";
|
|
311
|
+
}
|
|
312
|
+
function F(t) {
|
|
313
|
+
return yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
314
|
+
}
|
|
315
|
+
function P(t) {
|
|
316
|
+
var e;
|
|
317
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
318
|
+
}
|
|
319
|
+
function N(t) {
|
|
320
|
+
var e;
|
|
321
|
+
return (e = (yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
322
|
+
}
|
|
323
|
+
function yt(t) {
|
|
324
|
+
return lt() ? t instanceof Node || t instanceof P(t).Node : !1;
|
|
325
|
+
}
|
|
326
|
+
function A(t) {
|
|
327
|
+
return lt() ? t instanceof Element || t instanceof P(t).Element : !1;
|
|
328
|
+
}
|
|
329
|
+
function D(t) {
|
|
330
|
+
return lt() ? t instanceof HTMLElement || t instanceof P(t).HTMLElement : !1;
|
|
331
|
+
}
|
|
332
|
+
function Mt(t) {
|
|
333
|
+
return !lt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof P(t).ShadowRoot;
|
|
334
|
+
}
|
|
335
|
+
const Fe = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
336
|
+
function Q(t) {
|
|
337
|
+
const {
|
|
338
|
+
overflow: e,
|
|
339
|
+
overflowX: n,
|
|
340
|
+
overflowY: o,
|
|
341
|
+
display: r
|
|
342
|
+
} = T(t);
|
|
343
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Fe.has(r);
|
|
344
|
+
}
|
|
345
|
+
const je = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
346
|
+
function He(t) {
|
|
347
|
+
return je.has(F(t));
|
|
348
|
+
}
|
|
349
|
+
const ze = [":popover-open", ":modal"];
|
|
350
|
+
function ct(t) {
|
|
351
|
+
return ze.some((e) => {
|
|
352
|
+
try {
|
|
353
|
+
return t.matches(e);
|
|
354
|
+
} catch {
|
|
355
|
+
return !1;
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
const Xe = ["transform", "translate", "scale", "rotate", "perspective"], Ye = ["transform", "translate", "scale", "rotate", "perspective", "filter"], qe = ["paint", "layout", "strict", "content"];
|
|
360
|
+
function bt(t) {
|
|
361
|
+
const e = xt(), n = A(t) ? T(t) : t;
|
|
362
|
+
return Xe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ye.some((o) => (n.willChange || "").includes(o)) || qe.some((o) => (n.contain || "").includes(o));
|
|
363
|
+
}
|
|
364
|
+
function Ge(t) {
|
|
365
|
+
let e = _(t);
|
|
366
|
+
for (; D(e) && !z(e); ) {
|
|
367
|
+
if (bt(e))
|
|
368
|
+
return e;
|
|
369
|
+
if (ct(e))
|
|
370
|
+
return null;
|
|
371
|
+
e = _(e);
|
|
372
|
+
}
|
|
373
|
+
return null;
|
|
374
|
+
}
|
|
375
|
+
function xt() {
|
|
376
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
377
|
+
}
|
|
378
|
+
const Je = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
379
|
+
function z(t) {
|
|
380
|
+
return Je.has(F(t));
|
|
381
|
+
}
|
|
382
|
+
function T(t) {
|
|
383
|
+
return P(t).getComputedStyle(t);
|
|
384
|
+
}
|
|
385
|
+
function ut(t) {
|
|
386
|
+
return A(t) ? {
|
|
387
|
+
scrollLeft: t.scrollLeft,
|
|
388
|
+
scrollTop: t.scrollTop
|
|
389
|
+
} : {
|
|
390
|
+
scrollLeft: t.scrollX,
|
|
391
|
+
scrollTop: t.scrollY
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function _(t) {
|
|
395
|
+
if (F(t) === "html")
|
|
396
|
+
return t;
|
|
397
|
+
const e = (
|
|
398
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
399
|
+
t.assignedSlot || // DOM Element detected.
|
|
400
|
+
t.parentNode || // ShadowRoot detected.
|
|
401
|
+
Mt(t) && t.host || // Fallback.
|
|
402
|
+
N(t)
|
|
403
|
+
);
|
|
404
|
+
return Mt(e) ? e.host : e;
|
|
405
|
+
}
|
|
406
|
+
function Ut(t) {
|
|
407
|
+
const e = _(t);
|
|
408
|
+
return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && Q(e) ? e : Ut(e);
|
|
409
|
+
}
|
|
410
|
+
function Kt(t, e, n) {
|
|
411
|
+
var o;
|
|
412
|
+
e === void 0 && (e = []);
|
|
413
|
+
const r = Ut(t), s = r === ((o = t.ownerDocument) == null ? void 0 : o.body), u = P(r);
|
|
414
|
+
return s ? (vt(u), e.concat(u, u.visualViewport || [], Q(r) ? r : [], [])) : e.concat(r, Kt(r, []));
|
|
415
|
+
}
|
|
416
|
+
function vt(t) {
|
|
417
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
418
|
+
}
|
|
419
|
+
function Zt(t) {
|
|
420
|
+
const e = T(t);
|
|
421
|
+
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
422
|
+
const r = D(t), s = r ? t.offsetWidth : n, u = r ? t.offsetHeight : o, i = nt(n) !== s || nt(o) !== u;
|
|
423
|
+
return i && (n = s, o = u), {
|
|
424
|
+
width: n,
|
|
425
|
+
height: o,
|
|
426
|
+
$: i
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
function Qt(t) {
|
|
430
|
+
return A(t) ? t : t.contextElement;
|
|
431
|
+
}
|
|
432
|
+
function H(t) {
|
|
433
|
+
const e = Qt(t);
|
|
434
|
+
if (!D(e))
|
|
435
|
+
return M(1);
|
|
436
|
+
const n = e.getBoundingClientRect(), {
|
|
437
|
+
width: o,
|
|
438
|
+
height: r,
|
|
439
|
+
$: s
|
|
440
|
+
} = Zt(e);
|
|
441
|
+
let u = (s ? nt(n.width) : n.width) / o, i = (s ? nt(n.height) : n.height) / r;
|
|
442
|
+
return (!u || !Number.isFinite(u)) && (u = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
443
|
+
x: u,
|
|
444
|
+
y: i
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
const Ue = /* @__PURE__ */ M(0);
|
|
448
|
+
function te(t) {
|
|
449
|
+
const e = P(t);
|
|
450
|
+
return !xt() || !e.visualViewport ? Ue : {
|
|
451
|
+
x: e.visualViewport.offsetLeft,
|
|
452
|
+
y: e.visualViewport.offsetTop
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
function Ke(t, e, n) {
|
|
456
|
+
return e === void 0 && (e = !1), !n || e && n !== P(t) ? !1 : e;
|
|
457
|
+
}
|
|
458
|
+
function Z(t, e, n, o) {
|
|
459
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
460
|
+
const r = t.getBoundingClientRect(), s = Qt(t);
|
|
461
|
+
let u = M(1);
|
|
462
|
+
e && (o ? A(o) && (u = H(o)) : u = H(t));
|
|
463
|
+
const i = Ke(s, n, o) ? te(s) : M(0);
|
|
464
|
+
let l = (r.left + i.x) / u.x, c = (r.top + i.y) / u.y, a = r.width / u.x, f = r.height / u.y;
|
|
465
|
+
if (s) {
|
|
466
|
+
const p = P(s), m = o && A(o) ? P(o) : o;
|
|
467
|
+
let g = p, y = vt(g);
|
|
468
|
+
for (; y && o && m !== g; ) {
|
|
469
|
+
const d = H(y), h = y.getBoundingClientRect(), v = T(y), b = h.left + (y.clientLeft + parseFloat(v.paddingLeft)) * d.x, S = h.top + (y.clientTop + parseFloat(v.paddingTop)) * d.y;
|
|
470
|
+
l *= d.x, c *= d.y, a *= d.x, f *= d.y, l += b, c += S, g = P(y), y = vt(g);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
return ot({
|
|
474
|
+
width: a,
|
|
475
|
+
height: f,
|
|
476
|
+
x: l,
|
|
477
|
+
y: c
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
function at(t, e) {
|
|
481
|
+
const n = ut(t).scrollLeft;
|
|
482
|
+
return e ? e.left + n : Z(N(t)).left + n;
|
|
483
|
+
}
|
|
484
|
+
function ee(t, e) {
|
|
485
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), r = n.top + e.scrollTop;
|
|
486
|
+
return {
|
|
487
|
+
x: o,
|
|
488
|
+
y: r
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
function Ze(t) {
|
|
492
|
+
let {
|
|
493
|
+
elements: e,
|
|
494
|
+
rect: n,
|
|
495
|
+
offsetParent: o,
|
|
496
|
+
strategy: r
|
|
497
|
+
} = t;
|
|
498
|
+
const s = r === "fixed", u = N(o), i = e ? ct(e.floating) : !1;
|
|
499
|
+
if (o === u || i && s)
|
|
500
|
+
return n;
|
|
501
|
+
let l = {
|
|
502
|
+
scrollLeft: 0,
|
|
503
|
+
scrollTop: 0
|
|
504
|
+
}, c = M(1);
|
|
505
|
+
const a = M(0), f = D(o);
|
|
506
|
+
if ((f || !f && !s) && ((F(o) !== "body" || Q(u)) && (l = ut(o)), D(o))) {
|
|
507
|
+
const m = Z(o);
|
|
508
|
+
c = H(o), a.x = m.x + o.clientLeft, a.y = m.y + o.clientTop;
|
|
509
|
+
}
|
|
510
|
+
const p = u && !f && !s ? ee(u, l) : M(0);
|
|
511
|
+
return {
|
|
512
|
+
width: n.width * c.x,
|
|
513
|
+
height: n.height * c.y,
|
|
514
|
+
x: n.x * c.x - l.scrollLeft * c.x + a.x + p.x,
|
|
515
|
+
y: n.y * c.y - l.scrollTop * c.y + a.y + p.y
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
function Qe(t) {
|
|
519
|
+
return Array.from(t.getClientRects());
|
|
520
|
+
}
|
|
521
|
+
function tn(t) {
|
|
522
|
+
const e = N(t), n = ut(t), o = t.ownerDocument.body, r = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
523
|
+
let u = -n.scrollLeft + at(t);
|
|
524
|
+
const i = -n.scrollTop;
|
|
525
|
+
return T(o).direction === "rtl" && (u += K(e.clientWidth, o.clientWidth) - r), {
|
|
526
|
+
width: r,
|
|
527
|
+
height: s,
|
|
528
|
+
x: u,
|
|
529
|
+
y: i
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
const Dt = 25;
|
|
533
|
+
function en(t, e) {
|
|
534
|
+
const n = P(t), o = N(t), r = n.visualViewport;
|
|
535
|
+
let s = o.clientWidth, u = o.clientHeight, i = 0, l = 0;
|
|
536
|
+
if (r) {
|
|
537
|
+
s = r.width, u = r.height;
|
|
538
|
+
const a = xt();
|
|
539
|
+
(!a || a && e === "fixed") && (i = r.offsetLeft, l = r.offsetTop);
|
|
540
|
+
}
|
|
541
|
+
const c = at(o);
|
|
542
|
+
if (c <= 0) {
|
|
543
|
+
const a = o.ownerDocument, f = a.body, p = getComputedStyle(f), m = a.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, g = Math.abs(o.clientWidth - f.clientWidth - m);
|
|
544
|
+
g <= Dt && (s -= g);
|
|
545
|
+
} else c <= Dt && (s += c);
|
|
546
|
+
return {
|
|
547
|
+
width: s,
|
|
548
|
+
height: u,
|
|
549
|
+
x: i,
|
|
550
|
+
y: l
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
const nn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
554
|
+
function on(t, e) {
|
|
555
|
+
const n = Z(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, s = D(t) ? H(t) : M(1), u = t.clientWidth * s.x, i = t.clientHeight * s.y, l = r * s.x, c = o * s.y;
|
|
556
|
+
return {
|
|
557
|
+
width: u,
|
|
558
|
+
height: i,
|
|
559
|
+
x: l,
|
|
560
|
+
y: c
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function Wt(t, e, n) {
|
|
564
|
+
let o;
|
|
565
|
+
if (e === "viewport")
|
|
566
|
+
o = en(t, n);
|
|
567
|
+
else if (e === "document")
|
|
568
|
+
o = tn(N(t));
|
|
569
|
+
else if (A(e))
|
|
570
|
+
o = on(e, n);
|
|
571
|
+
else {
|
|
572
|
+
const r = te(t);
|
|
573
|
+
o = {
|
|
574
|
+
x: e.x - r.x,
|
|
575
|
+
y: e.y - r.y,
|
|
576
|
+
width: e.width,
|
|
577
|
+
height: e.height
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
return ot(o);
|
|
581
|
+
}
|
|
582
|
+
function ne(t, e) {
|
|
583
|
+
const n = _(t);
|
|
584
|
+
return n === e || !A(n) || z(n) ? !1 : T(n).position === "fixed" || ne(n, e);
|
|
585
|
+
}
|
|
586
|
+
function rn(t, e) {
|
|
587
|
+
const n = e.get(t);
|
|
588
|
+
if (n)
|
|
589
|
+
return n;
|
|
590
|
+
let o = Kt(t, []).filter((i) => A(i) && F(i) !== "body"), r = null;
|
|
591
|
+
const s = T(t).position === "fixed";
|
|
592
|
+
let u = s ? _(t) : t;
|
|
593
|
+
for (; A(u) && !z(u); ) {
|
|
594
|
+
const i = T(u), l = bt(u);
|
|
595
|
+
!l && i.position === "fixed" && (r = null), (s ? !l && !r : !l && i.position === "static" && !!r && nn.has(r.position) || Q(u) && !l && ne(t, u)) ? o = o.filter((a) => a !== u) : r = i, u = _(u);
|
|
596
|
+
}
|
|
597
|
+
return e.set(t, o), o;
|
|
598
|
+
}
|
|
599
|
+
function sn(t) {
|
|
600
|
+
let {
|
|
601
|
+
element: e,
|
|
602
|
+
boundary: n,
|
|
603
|
+
rootBoundary: o,
|
|
604
|
+
strategy: r
|
|
605
|
+
} = t;
|
|
606
|
+
const u = [...n === "clippingAncestors" ? ct(e) ? [] : rn(e, this._c) : [].concat(n), o], i = u[0], l = u.reduce((c, a) => {
|
|
607
|
+
const f = Wt(e, a, r);
|
|
608
|
+
return c.top = K(f.top, c.top), c.right = Tt(f.right, c.right), c.bottom = Tt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
|
|
609
|
+
}, Wt(e, i, r));
|
|
610
|
+
return {
|
|
611
|
+
width: l.right - l.left,
|
|
612
|
+
height: l.bottom - l.top,
|
|
613
|
+
x: l.left,
|
|
614
|
+
y: l.top
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
function ln(t) {
|
|
618
|
+
const {
|
|
619
|
+
width: e,
|
|
620
|
+
height: n
|
|
621
|
+
} = Zt(t);
|
|
622
|
+
return {
|
|
623
|
+
width: e,
|
|
624
|
+
height: n
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
function cn(t, e, n) {
|
|
628
|
+
const o = D(e), r = N(e), s = n === "fixed", u = Z(t, !0, s, e);
|
|
629
|
+
let i = {
|
|
630
|
+
scrollLeft: 0,
|
|
631
|
+
scrollTop: 0
|
|
632
|
+
};
|
|
633
|
+
const l = M(0);
|
|
634
|
+
function c() {
|
|
635
|
+
l.x = at(r);
|
|
636
|
+
}
|
|
637
|
+
if (o || !o && !s)
|
|
638
|
+
if ((F(e) !== "body" || Q(r)) && (i = ut(e)), o) {
|
|
639
|
+
const m = Z(e, !0, s, e);
|
|
640
|
+
l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
|
|
641
|
+
} else r && c();
|
|
642
|
+
s && !o && r && c();
|
|
643
|
+
const a = r && !o && !s ? ee(r, i) : M(0), f = u.left + i.scrollLeft - l.x - a.x, p = u.top + i.scrollTop - l.y - a.y;
|
|
644
|
+
return {
|
|
645
|
+
x: f,
|
|
646
|
+
y: p,
|
|
647
|
+
width: u.width,
|
|
648
|
+
height: u.height
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
function ft(t) {
|
|
652
|
+
return T(t).position === "static";
|
|
653
|
+
}
|
|
654
|
+
function Bt(t, e) {
|
|
655
|
+
if (!D(t) || T(t).position === "fixed")
|
|
656
|
+
return null;
|
|
657
|
+
if (e)
|
|
658
|
+
return e(t);
|
|
659
|
+
let n = t.offsetParent;
|
|
660
|
+
return N(t) === n && (n = n.ownerDocument.body), n;
|
|
661
|
+
}
|
|
662
|
+
function oe(t, e) {
|
|
663
|
+
const n = P(t);
|
|
664
|
+
if (ct(t))
|
|
665
|
+
return n;
|
|
666
|
+
if (!D(t)) {
|
|
667
|
+
let r = _(t);
|
|
668
|
+
for (; r && !z(r); ) {
|
|
669
|
+
if (A(r) && !ft(r))
|
|
670
|
+
return r;
|
|
671
|
+
r = _(r);
|
|
672
|
+
}
|
|
673
|
+
return n;
|
|
674
|
+
}
|
|
675
|
+
let o = Bt(t, e);
|
|
676
|
+
for (; o && He(o) && ft(o); )
|
|
677
|
+
o = Bt(o, e);
|
|
678
|
+
return o && z(o) && ft(o) && !bt(o) ? n : o || Ge(t) || n;
|
|
679
|
+
}
|
|
680
|
+
const un = async function(t) {
|
|
681
|
+
const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
|
|
682
|
+
return {
|
|
683
|
+
reference: cn(t.reference, await e(t.floating), t.strategy),
|
|
684
|
+
floating: {
|
|
685
|
+
x: 0,
|
|
686
|
+
y: 0,
|
|
687
|
+
width: o.width,
|
|
688
|
+
height: o.height
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
function an(t) {
|
|
693
|
+
return T(t).direction === "rtl";
|
|
694
|
+
}
|
|
695
|
+
const fn = {
|
|
696
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ze,
|
|
697
|
+
getDocumentElement: N,
|
|
698
|
+
getClippingRect: sn,
|
|
699
|
+
getOffsetParent: oe,
|
|
700
|
+
getElementRects: un,
|
|
701
|
+
getClientRects: Qe,
|
|
702
|
+
getDimensions: ln,
|
|
703
|
+
getScale: H,
|
|
704
|
+
isElement: A,
|
|
705
|
+
isRTL: an
|
|
706
|
+
}, dn = Ve, pn = (t, e, n) => {
|
|
707
|
+
const o = /* @__PURE__ */ new Map(), r = {
|
|
708
|
+
platform: fn,
|
|
709
|
+
...n
|
|
710
|
+
}, s = {
|
|
711
|
+
...r.platform,
|
|
712
|
+
_c: o
|
|
713
|
+
};
|
|
714
|
+
return _e(t, e, {
|
|
715
|
+
...r,
|
|
716
|
+
platform: s
|
|
717
|
+
});
|
|
718
|
+
};
|
|
719
|
+
function mn(t) {
|
|
720
|
+
return t != null && typeof t == "object" && "$el" in t;
|
|
721
|
+
}
|
|
722
|
+
function Nt(t) {
|
|
723
|
+
if (mn(t)) {
|
|
724
|
+
const e = t.$el;
|
|
725
|
+
return yt(e) && F(e) === "#comment" ? null : e;
|
|
726
|
+
}
|
|
727
|
+
return t;
|
|
728
|
+
}
|
|
729
|
+
function J(t) {
|
|
730
|
+
return typeof t == "function" ? t() : it(t);
|
|
731
|
+
}
|
|
732
|
+
function re(t) {
|
|
733
|
+
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
734
|
+
}
|
|
735
|
+
function _t(t, e) {
|
|
736
|
+
const n = re(t);
|
|
737
|
+
return Math.round(e * n) / n;
|
|
738
|
+
}
|
|
739
|
+
function hn(t, e, n) {
|
|
740
|
+
n === void 0 && (n = {});
|
|
741
|
+
const o = n.whileElementsMounted, r = O(() => {
|
|
742
|
+
var x;
|
|
743
|
+
return (x = J(n.open)) != null ? x : !0;
|
|
744
|
+
}), s = O(() => J(n.middleware)), u = O(() => {
|
|
745
|
+
var x;
|
|
746
|
+
return (x = J(n.placement)) != null ? x : "bottom";
|
|
747
|
+
}), i = O(() => {
|
|
748
|
+
var x;
|
|
749
|
+
return (x = J(n.strategy)) != null ? x : "absolute";
|
|
750
|
+
}), l = O(() => {
|
|
751
|
+
var x;
|
|
752
|
+
return (x = J(n.transform)) != null ? x : !0;
|
|
753
|
+
}), c = O(() => Nt(t.value)), a = O(() => Nt(e.value)), f = B(0), p = B(0), m = B(i.value), g = B(u.value), y = C({}), d = B(!1), h = O(() => {
|
|
754
|
+
const x = {
|
|
755
|
+
position: m.value,
|
|
756
|
+
left: "0",
|
|
757
|
+
top: "0"
|
|
758
|
+
};
|
|
759
|
+
if (!a.value)
|
|
760
|
+
return x;
|
|
761
|
+
const W = _t(a.value, f.value), q = _t(a.value, p.value);
|
|
762
|
+
return l.value ? {
|
|
763
|
+
...x,
|
|
764
|
+
transform: "translate(" + W + "px, " + q + "px)",
|
|
765
|
+
...re(a.value) >= 1.5 && {
|
|
766
|
+
willChange: "transform"
|
|
767
|
+
}
|
|
768
|
+
} : {
|
|
769
|
+
position: m.value,
|
|
770
|
+
left: W + "px",
|
|
771
|
+
top: q + "px"
|
|
772
|
+
};
|
|
773
|
+
});
|
|
774
|
+
let v;
|
|
775
|
+
function b() {
|
|
776
|
+
if (c.value == null || a.value == null)
|
|
777
|
+
return;
|
|
778
|
+
const x = r.value;
|
|
779
|
+
pn(c.value, a.value, {
|
|
780
|
+
middleware: s.value,
|
|
781
|
+
placement: u.value,
|
|
782
|
+
strategy: i.value
|
|
783
|
+
}).then((W) => {
|
|
784
|
+
f.value = W.x, p.value = W.y, m.value = W.strategy, g.value = W.placement, y.value = W.middlewareData, d.value = x !== !1;
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function S() {
|
|
788
|
+
typeof v == "function" && (v(), v = void 0);
|
|
789
|
+
}
|
|
790
|
+
function w() {
|
|
791
|
+
if (S(), o === void 0) {
|
|
792
|
+
b();
|
|
793
|
+
return;
|
|
794
|
+
}
|
|
795
|
+
if (c.value != null && a.value != null) {
|
|
796
|
+
v = o(c.value, a.value, b);
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
function Y() {
|
|
801
|
+
r.value || (d.value = !1);
|
|
802
|
+
}
|
|
803
|
+
return R([s, u, i, r], b, {
|
|
804
|
+
flush: "sync"
|
|
805
|
+
}), R([c, a], w, {
|
|
806
|
+
flush: "sync"
|
|
807
|
+
}), R(r, Y, {
|
|
808
|
+
flush: "sync"
|
|
809
|
+
}), Ht() && zt(S), {
|
|
810
|
+
x: j(f),
|
|
811
|
+
y: j(p),
|
|
812
|
+
strategy: j(m),
|
|
813
|
+
placement: j(g),
|
|
814
|
+
middlewareData: j(y),
|
|
815
|
+
isPositioned: j(d),
|
|
816
|
+
floatingStyles: h,
|
|
817
|
+
update: b
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
function X(t) {
|
|
821
|
+
return Ht() ? (zt(t), !0) : !1;
|
|
822
|
+
}
|
|
823
|
+
const Ot = typeof window < "u" && typeof document < "u";
|
|
824
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
825
|
+
const vn = (t) => t != null, gn = Object.prototype.toString, ie = (t) => gn.call(t) === "[object Object]", k = () => {
|
|
826
|
+
}, gt = /* @__PURE__ */ wn();
|
|
827
|
+
function wn() {
|
|
828
|
+
var t, e;
|
|
829
|
+
return Ot && ((t = window?.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
830
|
+
}
|
|
831
|
+
function yn(...t) {
|
|
832
|
+
if (t.length !== 1)
|
|
833
|
+
return me(...t);
|
|
834
|
+
const e = t[0];
|
|
835
|
+
return typeof e == "function" ? he(ve(() => ({ get: e, set: k }))) : B(e);
|
|
836
|
+
}
|
|
837
|
+
function bn(t, e) {
|
|
838
|
+
function n(...o) {
|
|
839
|
+
return new Promise((r, s) => {
|
|
840
|
+
Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(r).catch(s);
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
return n;
|
|
844
|
+
}
|
|
845
|
+
function xn(t, e = {}) {
|
|
846
|
+
let n, o, r = k;
|
|
847
|
+
const s = (l) => {
|
|
848
|
+
clearTimeout(l), r(), r = k;
|
|
849
|
+
};
|
|
850
|
+
let u;
|
|
851
|
+
return (l) => {
|
|
852
|
+
const c = E(t), a = E(e.maxWait);
|
|
853
|
+
return n && s(n), c <= 0 || a !== void 0 && a <= 0 ? (o && (s(o), o = void 0), Promise.resolve(l())) : new Promise((f, p) => {
|
|
854
|
+
r = e.rejectOnCancel ? p : f, u = l, a && !o && (o = setTimeout(() => {
|
|
855
|
+
n && s(n), o = void 0, f(u());
|
|
856
|
+
}, a)), n = setTimeout(() => {
|
|
857
|
+
o && s(o), o = void 0, f(l());
|
|
858
|
+
}, c);
|
|
859
|
+
});
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
function V(t) {
|
|
863
|
+
return Array.isArray(t) ? t : [t];
|
|
864
|
+
}
|
|
865
|
+
function On(t) {
|
|
866
|
+
return Xt();
|
|
867
|
+
}
|
|
868
|
+
// @__NO_SIDE_EFFECTS__
|
|
869
|
+
function $t(t, e = 200, n = {}) {
|
|
870
|
+
return bn(
|
|
871
|
+
xn(e, n),
|
|
872
|
+
t
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
function Sn(t, e = !0, n) {
|
|
876
|
+
On() ? wt(t, n) : e ? t() : pe(t);
|
|
877
|
+
}
|
|
878
|
+
function se(t, e, n) {
|
|
879
|
+
return R(
|
|
880
|
+
t,
|
|
881
|
+
e,
|
|
882
|
+
{
|
|
883
|
+
...n,
|
|
884
|
+
immediate: !0
|
|
885
|
+
}
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
const tt = Ot ? window : void 0;
|
|
889
|
+
function $(t) {
|
|
890
|
+
var e;
|
|
891
|
+
const n = E(t);
|
|
892
|
+
return (e = n?.$el) != null ? e : n;
|
|
893
|
+
}
|
|
894
|
+
function rt(...t) {
|
|
895
|
+
const e = [], n = () => {
|
|
896
|
+
e.forEach((i) => i()), e.length = 0;
|
|
897
|
+
}, o = (i, l, c, a) => (i.addEventListener(l, c, a), () => i.removeEventListener(l, c, a)), r = O(() => {
|
|
898
|
+
const i = V(E(t[0])).filter((l) => l != null);
|
|
899
|
+
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
900
|
+
}), s = se(
|
|
901
|
+
() => {
|
|
902
|
+
var i, l;
|
|
903
|
+
return [
|
|
904
|
+
(l = (i = r.value) == null ? void 0 : i.map((c) => $(c))) != null ? l : [tt].filter((c) => c != null),
|
|
905
|
+
V(E(r.value ? t[1] : t[0])),
|
|
906
|
+
V(it(r.value ? t[2] : t[1])),
|
|
907
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
908
|
+
E(r.value ? t[3] : t[2])
|
|
909
|
+
];
|
|
910
|
+
},
|
|
911
|
+
([i, l, c, a]) => {
|
|
912
|
+
if (n(), !i?.length || !l?.length || !c?.length)
|
|
913
|
+
return;
|
|
914
|
+
const f = ie(a) ? { ...a } : a;
|
|
915
|
+
e.push(
|
|
916
|
+
...i.flatMap(
|
|
917
|
+
(p) => l.flatMap(
|
|
918
|
+
(m) => c.map((g) => o(p, m, g, f))
|
|
919
|
+
)
|
|
920
|
+
)
|
|
921
|
+
);
|
|
922
|
+
},
|
|
923
|
+
{ flush: "post" }
|
|
924
|
+
), u = () => {
|
|
925
|
+
s(), n();
|
|
926
|
+
};
|
|
927
|
+
return X(n), u;
|
|
928
|
+
}
|
|
929
|
+
// @__NO_SIDE_EFFECTS__
|
|
930
|
+
function En() {
|
|
931
|
+
const t = C(!1), e = Xt();
|
|
932
|
+
return e && wt(() => {
|
|
933
|
+
t.value = !0;
|
|
934
|
+
}, e), t;
|
|
935
|
+
}
|
|
936
|
+
// @__NO_SIDE_EFFECTS__
|
|
937
|
+
function le(t) {
|
|
938
|
+
const e = /* @__PURE__ */ En();
|
|
939
|
+
return O(() => (e.value, !!t()));
|
|
940
|
+
}
|
|
941
|
+
function ce(t, e, n = {}) {
|
|
942
|
+
const { window: o = tt, ...r } = n;
|
|
943
|
+
let s;
|
|
944
|
+
const u = /* @__PURE__ */ le(() => o && "MutationObserver" in o), i = () => {
|
|
945
|
+
s && (s.disconnect(), s = void 0);
|
|
946
|
+
}, l = O(() => {
|
|
947
|
+
const p = E(t), m = V(p).map($).filter(vn);
|
|
948
|
+
return new Set(m);
|
|
949
|
+
}), c = R(
|
|
950
|
+
l,
|
|
951
|
+
(p) => {
|
|
952
|
+
i(), u.value && p.size && (s = new MutationObserver(e), p.forEach((m) => s.observe(m, r)));
|
|
953
|
+
},
|
|
954
|
+
{ immediate: !0, flush: "post" }
|
|
955
|
+
), a = () => s?.takeRecords(), f = () => {
|
|
956
|
+
c(), i();
|
|
957
|
+
};
|
|
958
|
+
return X(f), {
|
|
959
|
+
isSupported: u,
|
|
960
|
+
stop: f,
|
|
961
|
+
takeRecords: a
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
function Cn(t, e, n = {}) {
|
|
965
|
+
const {
|
|
966
|
+
window: o = tt,
|
|
967
|
+
document: r = o?.document,
|
|
968
|
+
flush: s = "sync"
|
|
969
|
+
} = n;
|
|
970
|
+
if (!o || !r)
|
|
971
|
+
return k;
|
|
972
|
+
let u;
|
|
973
|
+
const i = (a) => {
|
|
974
|
+
u?.(), u = a;
|
|
975
|
+
}, l = ge(() => {
|
|
976
|
+
const a = $(t);
|
|
977
|
+
if (a) {
|
|
978
|
+
const { stop: f } = ce(
|
|
979
|
+
r,
|
|
980
|
+
(p) => {
|
|
981
|
+
p.map((g) => [...g.removedNodes]).flat().some((g) => g === a || g.contains(a)) && e(p);
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
window: o,
|
|
985
|
+
childList: !0,
|
|
986
|
+
subtree: !0
|
|
987
|
+
}
|
|
988
|
+
);
|
|
989
|
+
i(f);
|
|
990
|
+
}
|
|
991
|
+
}, { flush: s }), c = () => {
|
|
992
|
+
l(), i();
|
|
993
|
+
};
|
|
994
|
+
return X(c), c;
|
|
995
|
+
}
|
|
996
|
+
function Pn(t, e, n = {}) {
|
|
997
|
+
const { window: o = tt, ...r } = n;
|
|
998
|
+
let s;
|
|
999
|
+
const u = /* @__PURE__ */ le(() => o && "ResizeObserver" in o), i = () => {
|
|
1000
|
+
s && (s.disconnect(), s = void 0);
|
|
1001
|
+
}, l = O(() => {
|
|
1002
|
+
const f = E(t);
|
|
1003
|
+
return Array.isArray(f) ? f.map((p) => $(p)) : [$(f)];
|
|
1004
|
+
}), c = R(
|
|
1005
|
+
l,
|
|
1006
|
+
(f) => {
|
|
1007
|
+
if (i(), u.value && o) {
|
|
1008
|
+
s = new ResizeObserver(e);
|
|
1009
|
+
for (const p of f)
|
|
1010
|
+
p && s.observe(p, r);
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
{ immediate: !0, flush: "post" }
|
|
1014
|
+
), a = () => {
|
|
1015
|
+
i(), c();
|
|
1016
|
+
};
|
|
1017
|
+
return X(a), {
|
|
1018
|
+
isSupported: u,
|
|
1019
|
+
stop: a
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
function Rn(t, e = {}) {
|
|
1023
|
+
const {
|
|
1024
|
+
reset: n = !0,
|
|
1025
|
+
windowResize: o = !0,
|
|
1026
|
+
windowScroll: r = !0,
|
|
1027
|
+
immediate: s = !0,
|
|
1028
|
+
updateTiming: u = "sync"
|
|
1029
|
+
} = e, i = C(0), l = C(0), c = C(0), a = C(0), f = C(0), p = C(0), m = C(0), g = C(0);
|
|
1030
|
+
function y() {
|
|
1031
|
+
const h = $(t);
|
|
1032
|
+
if (!h) {
|
|
1033
|
+
n && (i.value = 0, l.value = 0, c.value = 0, a.value = 0, f.value = 0, p.value = 0, m.value = 0, g.value = 0);
|
|
1034
|
+
return;
|
|
1035
|
+
}
|
|
1036
|
+
const v = h.getBoundingClientRect();
|
|
1037
|
+
i.value = v.height, l.value = v.bottom, c.value = v.left, a.value = v.right, f.value = v.top, p.value = v.width, m.value = v.x, g.value = v.y;
|
|
1038
|
+
}
|
|
1039
|
+
function d() {
|
|
1040
|
+
u === "sync" ? y() : u === "next-frame" && requestAnimationFrame(() => y());
|
|
1041
|
+
}
|
|
1042
|
+
return Pn(t, d), R(() => $(t), (h) => !h && d()), ce(t, d, {
|
|
1043
|
+
attributeFilter: ["style", "class"]
|
|
1044
|
+
}), r && rt("scroll", d, { capture: !0, passive: !0 }), o && rt("resize", d, { passive: !0 }), Sn(() => {
|
|
1045
|
+
s && d();
|
|
1046
|
+
}), {
|
|
1047
|
+
height: i,
|
|
1048
|
+
bottom: l,
|
|
1049
|
+
left: c,
|
|
1050
|
+
right: a,
|
|
1051
|
+
top: f,
|
|
1052
|
+
width: p,
|
|
1053
|
+
x: m,
|
|
1054
|
+
y: g,
|
|
1055
|
+
update: d
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
function It(t, e = {}) {
|
|
1059
|
+
const {
|
|
1060
|
+
delayEnter: n = 0,
|
|
1061
|
+
delayLeave: o = 0,
|
|
1062
|
+
triggerOnRemoval: r = !1,
|
|
1063
|
+
window: s = tt
|
|
1064
|
+
} = e, u = C(!1);
|
|
1065
|
+
let i;
|
|
1066
|
+
const l = (c) => {
|
|
1067
|
+
const a = c ? n : o;
|
|
1068
|
+
i && (clearTimeout(i), i = void 0), a ? i = setTimeout(() => u.value = c, a) : u.value = c;
|
|
1069
|
+
};
|
|
1070
|
+
return s && (rt(t, "mouseenter", () => l(!0), { passive: !0 }), rt(t, "mouseleave", () => l(!1), { passive: !0 }), r && Cn(
|
|
1071
|
+
O(() => $(t)),
|
|
1072
|
+
() => l(!1)
|
|
1073
|
+
)), u;
|
|
1074
|
+
}
|
|
1075
|
+
const ue = Ot ? window : void 0;
|
|
1076
|
+
function U(t) {
|
|
1077
|
+
var e;
|
|
1078
|
+
const n = E(t);
|
|
1079
|
+
return (e = n?.$el) != null ? e : n;
|
|
1080
|
+
}
|
|
1081
|
+
function et(...t) {
|
|
1082
|
+
const e = [], n = () => {
|
|
1083
|
+
e.forEach((i) => i()), e.length = 0;
|
|
1084
|
+
}, o = (i, l, c, a) => (i.addEventListener(l, c, a), () => i.removeEventListener(l, c, a)), r = O(() => {
|
|
1085
|
+
const i = V(E(t[0])).filter((l) => l != null);
|
|
1086
|
+
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
1087
|
+
}), s = se(
|
|
1088
|
+
() => {
|
|
1089
|
+
var i, l;
|
|
1090
|
+
return [
|
|
1091
|
+
(l = (i = r.value) == null ? void 0 : i.map((c) => U(c))) != null ? l : [ue].filter((c) => c != null),
|
|
1092
|
+
V(E(r.value ? t[1] : t[0])),
|
|
1093
|
+
V(it(r.value ? t[2] : t[1])),
|
|
1094
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
1095
|
+
E(r.value ? t[3] : t[2])
|
|
1096
|
+
];
|
|
1097
|
+
},
|
|
1098
|
+
([i, l, c, a]) => {
|
|
1099
|
+
if (n(), !i?.length || !l?.length || !c?.length)
|
|
1100
|
+
return;
|
|
1101
|
+
const f = ie(a) ? { ...a } : a;
|
|
1102
|
+
e.push(
|
|
1103
|
+
...i.flatMap(
|
|
1104
|
+
(p) => l.flatMap(
|
|
1105
|
+
(m) => c.map((g) => o(p, m, g, f))
|
|
1106
|
+
)
|
|
1107
|
+
)
|
|
1108
|
+
);
|
|
1109
|
+
},
|
|
1110
|
+
{ flush: "post" }
|
|
1111
|
+
), u = () => {
|
|
1112
|
+
s(), n();
|
|
1113
|
+
};
|
|
1114
|
+
return X(n), u;
|
|
1115
|
+
}
|
|
1116
|
+
let Vt = !1;
|
|
1117
|
+
function Ft(t, e, n = {}) {
|
|
1118
|
+
const { window: o = ue, ignore: r = [], capture: s = !0, detectIframe: u = !1, controls: i = !1 } = n;
|
|
1119
|
+
if (!o)
|
|
1120
|
+
return i ? { stop: k, cancel: k, trigger: k } : k;
|
|
1121
|
+
if (gt && !Vt) {
|
|
1122
|
+
Vt = !0;
|
|
1123
|
+
const d = { passive: !0 };
|
|
1124
|
+
Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", k, d)), o.document.documentElement.addEventListener("click", k, d);
|
|
1125
|
+
}
|
|
1126
|
+
let l = !0;
|
|
1127
|
+
const c = (d) => E(r).some((h) => {
|
|
1128
|
+
if (typeof h == "string")
|
|
1129
|
+
return Array.from(o.document.querySelectorAll(h)).some((v) => v === d.target || d.composedPath().includes(v));
|
|
1130
|
+
{
|
|
1131
|
+
const v = U(h);
|
|
1132
|
+
return v && (d.target === v || d.composedPath().includes(v));
|
|
1133
|
+
}
|
|
1134
|
+
});
|
|
1135
|
+
function a(d) {
|
|
1136
|
+
const h = E(d);
|
|
1137
|
+
return h && h.$.subTree.shapeFlag === 16;
|
|
1138
|
+
}
|
|
1139
|
+
function f(d, h) {
|
|
1140
|
+
const v = E(d), b = v.$.subTree && v.$.subTree.children;
|
|
1141
|
+
return b == null || !Array.isArray(b) ? !1 : b.some((S) => S.el === h.target || h.composedPath().includes(S.el));
|
|
1142
|
+
}
|
|
1143
|
+
const p = (d) => {
|
|
1144
|
+
const h = U(t);
|
|
1145
|
+
if (d.target != null && !(!(h instanceof Element) && a(t) && f(t, d)) && !(!h || h === d.target || d.composedPath().includes(h))) {
|
|
1146
|
+
if ("detail" in d && d.detail === 0 && (l = !c(d)), !l) {
|
|
1147
|
+
l = !0;
|
|
1148
|
+
return;
|
|
1149
|
+
}
|
|
1150
|
+
e(d);
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
let m = !1;
|
|
1154
|
+
const g = [
|
|
1155
|
+
et(o, "click", (d) => {
|
|
1156
|
+
m || (m = !0, setTimeout(() => {
|
|
1157
|
+
m = !1;
|
|
1158
|
+
}, 0), p(d));
|
|
1159
|
+
}, { passive: !0, capture: s }),
|
|
1160
|
+
et(o, "pointerdown", (d) => {
|
|
1161
|
+
const h = U(t);
|
|
1162
|
+
l = !c(d) && !!(h && !d.composedPath().includes(h));
|
|
1163
|
+
}, { passive: !0 }),
|
|
1164
|
+
u && et(o, "blur", (d) => {
|
|
1165
|
+
setTimeout(() => {
|
|
1166
|
+
var h;
|
|
1167
|
+
const v = U(t);
|
|
1168
|
+
((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !v?.contains(o.document.activeElement) && e(d);
|
|
1169
|
+
}, 0);
|
|
1170
|
+
}, { passive: !0 })
|
|
1171
|
+
].filter(Boolean), y = () => g.forEach((d) => d());
|
|
1172
|
+
return i ? {
|
|
1173
|
+
stop: y,
|
|
1174
|
+
cancel: () => {
|
|
1175
|
+
l = !1;
|
|
1176
|
+
},
|
|
1177
|
+
trigger: (d) => {
|
|
1178
|
+
l = !0, p(d), l = !1;
|
|
1179
|
+
}
|
|
1180
|
+
} : y;
|
|
1181
|
+
}
|
|
1182
|
+
const dt = /* @__PURE__ */ new WeakMap(), An = {
|
|
1183
|
+
mounted(t, e) {
|
|
1184
|
+
const n = !e.modifiers.bubble;
|
|
1185
|
+
let o;
|
|
1186
|
+
if (typeof e.value == "function")
|
|
1187
|
+
o = Ft(t, e.value, { capture: n });
|
|
1188
|
+
else {
|
|
1189
|
+
const [r, s] = e.value;
|
|
1190
|
+
o = Ft(t, r, Object.assign({ capture: n }, s));
|
|
1191
|
+
}
|
|
1192
|
+
dt.set(t, o);
|
|
1193
|
+
},
|
|
1194
|
+
unmounted(t) {
|
|
1195
|
+
const e = dt.get(t);
|
|
1196
|
+
e && typeof e == "function" ? e() : e?.stop(), dt.delete(t);
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
function pt(t) {
|
|
1200
|
+
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
1201
|
+
}
|
|
1202
|
+
function ae(t) {
|
|
1203
|
+
const e = window.getComputedStyle(t);
|
|
1204
|
+
if (e.overflowX === "scroll" || e.overflowY === "scroll" || e.overflowX === "auto" && t.clientWidth < t.scrollWidth || e.overflowY === "auto" && t.clientHeight < t.scrollHeight)
|
|
1205
|
+
return !0;
|
|
1206
|
+
{
|
|
1207
|
+
const n = t.parentNode;
|
|
1208
|
+
return !n || n.tagName === "BODY" ? !1 : ae(n);
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
function Tn(t) {
|
|
1212
|
+
const e = t || window.event, n = e.target;
|
|
1213
|
+
return ae(n) ? !1 : e.touches.length > 1 ? !0 : (e.preventDefault && e.preventDefault(), !1);
|
|
1214
|
+
}
|
|
1215
|
+
const mt = /* @__PURE__ */ new WeakMap();
|
|
1216
|
+
function Ln(t, e = !1) {
|
|
1217
|
+
const n = C(e);
|
|
1218
|
+
let o = null, r = "";
|
|
1219
|
+
R(yn(t), (i) => {
|
|
1220
|
+
const l = pt(E(i));
|
|
1221
|
+
if (l) {
|
|
1222
|
+
const c = l;
|
|
1223
|
+
if (mt.get(c) || mt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (r = c.style.overflow), c.style.overflow === "hidden")
|
|
1224
|
+
return n.value = !0;
|
|
1225
|
+
if (n.value)
|
|
1226
|
+
return c.style.overflow = "hidden";
|
|
1227
|
+
}
|
|
1228
|
+
}, {
|
|
1229
|
+
immediate: !0
|
|
1230
|
+
});
|
|
1231
|
+
const s = () => {
|
|
1232
|
+
const i = pt(E(t));
|
|
1233
|
+
!i || n.value || (gt && (o = et(
|
|
1234
|
+
i,
|
|
1235
|
+
"touchmove",
|
|
1236
|
+
(l) => {
|
|
1237
|
+
Tn(l);
|
|
1238
|
+
},
|
|
1239
|
+
{ passive: !1 }
|
|
1240
|
+
)), i.style.overflow = "hidden", n.value = !0);
|
|
1241
|
+
}, u = () => {
|
|
1242
|
+
const i = pt(E(t));
|
|
1243
|
+
!i || !n.value || (gt && o?.(), i.style.overflow = r, mt.delete(i), n.value = !1);
|
|
1244
|
+
};
|
|
1245
|
+
return X(u), O({
|
|
1246
|
+
get() {
|
|
1247
|
+
return n.value;
|
|
1248
|
+
},
|
|
1249
|
+
set(i) {
|
|
1250
|
+
i ? s() : u();
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
function kn() {
|
|
1255
|
+
let t = !1;
|
|
1256
|
+
const e = C(!1);
|
|
1257
|
+
return (n, o) => {
|
|
1258
|
+
if (e.value = o.value, t)
|
|
1259
|
+
return;
|
|
1260
|
+
t = !0;
|
|
1261
|
+
const r = Ln(n, o.value);
|
|
1262
|
+
R(e, (s) => r.value = s);
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
kn();
|
|
1266
|
+
const Mn = { style: { width: "fit-content" } }, Dn = /* @__PURE__ */ we({
|
|
1267
|
+
__name: "PvPopoverV2",
|
|
1268
|
+
props: /* @__PURE__ */ ye({
|
|
1269
|
+
disableAutoPlacement: { type: Boolean, default: !1 },
|
|
1270
|
+
allowedAutoPlacements: { default: () => ["top-left", "top-right", "bottom-left", "bottom-right"], type: Array },
|
|
1271
|
+
position: { default: "bottom-center", type: String },
|
|
1272
|
+
positioningStrategy: { default: "absolute", type: String },
|
|
1273
|
+
showOnHover: { type: Boolean, default: !1 },
|
|
1274
|
+
disableInteractive: { type: Boolean, default: !1 },
|
|
1275
|
+
useTeleport: { type: Boolean, default: !1 },
|
|
1276
|
+
disableClickOutsideToClose: { type: Boolean, default: !1 },
|
|
1277
|
+
delay: { default: 25, type: Number },
|
|
1278
|
+
zIndex: { default: 10, type: Number },
|
|
1279
|
+
teleportLocation: { default: "body", type: String }
|
|
1280
|
+
}, {
|
|
1281
|
+
modelValue: { type: Boolean },
|
|
1282
|
+
modelModifiers: {}
|
|
1283
|
+
}),
|
|
1284
|
+
emits: ["update:modelValue"],
|
|
1285
|
+
setup(t) {
|
|
1286
|
+
const e = t, n = be(t, "modelValue"), o = B(null), r = B(null), s = B(null), u = It(o), i = It(s), l = {
|
|
1287
|
+
"top-center": "top",
|
|
1288
|
+
"bottom-center": "bottom",
|
|
1289
|
+
"center-left": "left",
|
|
1290
|
+
"center-right": "right",
|
|
1291
|
+
"top-left": "top-start",
|
|
1292
|
+
"top-right": "top-end",
|
|
1293
|
+
"bottom-left": "bottom-start",
|
|
1294
|
+
"bottom-right": "bottom-end"
|
|
1295
|
+
}, c = O(() => e.allowedAutoPlacements?.map((w) => l[w])), a = O(() => l[e.position]);
|
|
1296
|
+
wt(() => {
|
|
1297
|
+
o.value && (r.value = o.value.firstElementChild);
|
|
1298
|
+
});
|
|
1299
|
+
const f = e.disableAutoPlacement ? [] : [
|
|
1300
|
+
dn({
|
|
1301
|
+
allowedPlacements: c.value
|
|
1302
|
+
})
|
|
1303
|
+
], { floatingStyles: p, update: m } = hn(r, s, {
|
|
1304
|
+
placement: a,
|
|
1305
|
+
strategy: e.positioningStrategy,
|
|
1306
|
+
middleware: f
|
|
1307
|
+
});
|
|
1308
|
+
R(n, (w) => {
|
|
1309
|
+
w && r.value && s.value && m();
|
|
1310
|
+
});
|
|
1311
|
+
const g = Rn(r), y = /* @__PURE__ */ $t(() => {
|
|
1312
|
+
n.value && m();
|
|
1313
|
+
}, 5);
|
|
1314
|
+
R([g.top, g.left, g.width, g.height], y);
|
|
1315
|
+
const d = O(() => ({
|
|
1316
|
+
...p.value,
|
|
1317
|
+
zIndex: e.zIndex ?? 10
|
|
1318
|
+
})), h = /* @__PURE__ */ $t(
|
|
1319
|
+
(w) => {
|
|
1320
|
+
n.value = w;
|
|
1321
|
+
},
|
|
1322
|
+
() => e.delay
|
|
1323
|
+
), v = O(() => e.showOnHover ? e.disableInteractive ? u.value : u.value || i.value : !1), b = () => {
|
|
1324
|
+
e.showOnHover || h(!n.value);
|
|
1325
|
+
}, S = () => {
|
|
1326
|
+
e.disableClickOutsideToClose || h(!1);
|
|
1327
|
+
};
|
|
1328
|
+
return R(v, (w) => {
|
|
1329
|
+
e.showOnHover && h(w);
|
|
1330
|
+
}), (w, Y) => St((Et(), xe("div", Mn, [
|
|
1331
|
+
Ct(
|
|
1332
|
+
"div",
|
|
1333
|
+
{
|
|
1334
|
+
ref_key: "triggerWrapper",
|
|
1335
|
+
ref: o,
|
|
1336
|
+
onClick: b
|
|
1337
|
+
},
|
|
1338
|
+
[
|
|
1339
|
+
Pt(w.$slots, "trigger")
|
|
1340
|
+
],
|
|
1341
|
+
512
|
|
1342
|
+
/* NEED_PATCH */
|
|
1343
|
+
),
|
|
1344
|
+
w.$slots.content ? (Et(), Oe(Ee, {
|
|
1345
|
+
key: 0,
|
|
1346
|
+
to: t.teleportLocation,
|
|
1347
|
+
disabled: !e.useTeleport
|
|
1348
|
+
}, [
|
|
1349
|
+
St(Ct(
|
|
1350
|
+
"div",
|
|
1351
|
+
{
|
|
1352
|
+
class: "pv-floating",
|
|
1353
|
+
ref_key: "floating",
|
|
1354
|
+
ref: s,
|
|
1355
|
+
style: Ce(d.value)
|
|
1356
|
+
},
|
|
1357
|
+
[
|
|
1358
|
+
Pt(w.$slots, "content")
|
|
1359
|
+
],
|
|
1360
|
+
4
|
|
1361
|
+
/* STYLE */
|
|
1362
|
+
), [
|
|
1363
|
+
[Pe, n.value]
|
|
1364
|
+
])
|
|
1365
|
+
], 8, ["to", "disabled"])) : Se("v-if", !0)
|
|
1366
|
+
])), [
|
|
1367
|
+
[it(An), [S, { ignore: [".pv-floating"] }]]
|
|
1368
|
+
]);
|
|
1369
|
+
}
|
|
1370
|
+
}), Wn = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
1371
|
+
function Bn(t) {
|
|
1372
|
+
return !Wn.has(t);
|
|
1373
|
+
}
|
|
1374
|
+
function ht(t, e) {
|
|
1375
|
+
const n = document.querySelector('link[href*="' + e + '"]');
|
|
1376
|
+
if (!t.shadowRoot)
|
|
1377
|
+
return !1;
|
|
1378
|
+
if (n && t.shadowRoot) {
|
|
1379
|
+
const o = n.href;
|
|
1380
|
+
if (t.shadowRoot.querySelector(`link[href="${o}"]`))
|
|
1381
|
+
return;
|
|
1382
|
+
const r = document.createElement("link");
|
|
1383
|
+
return r.rel = "stylesheet", r.href = o, t.shadowRoot.prepend(r), !0;
|
|
1384
|
+
}
|
|
1385
|
+
return !1;
|
|
1386
|
+
}
|
|
1387
|
+
function Nn(t) {
|
|
1388
|
+
if (!ht(t, "pit-viper-v2")) {
|
|
1389
|
+
if (ht(t, "pit-viper")) {
|
|
1390
|
+
ht(t, "pit-viper-v2-scoped");
|
|
1391
|
+
return;
|
|
1392
|
+
}
|
|
1393
|
+
console.warn(
|
|
1394
|
+
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
1395
|
+
);
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
const _n = (t) => ({ shadowRoot: Bn(t) });
|
|
1399
|
+
function $n(t, e) {
|
|
1400
|
+
return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
|
|
1401
|
+
`Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
|
|
1402
|
+
), !1);
|
|
1403
|
+
}
|
|
1404
|
+
function In(t, e) {
|
|
1405
|
+
const n = Number(e);
|
|
1406
|
+
return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
|
|
1407
|
+
}
|
|
1408
|
+
function Vn(t) {
|
|
1409
|
+
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = (t.__vccOpts || t).props;
|
|
1410
|
+
return s && typeof s == "object" && Object.entries(s).forEach(([u, i]) => {
|
|
1411
|
+
i === Boolean || i && i.type === Boolean ? e.add(u) : i === Number || i && i.type === Number ? n.add(u) : (i === Object || i === Array || i && (i.type === Object || i.type === Array)) && o.add(u);
|
|
1412
|
+
}), { booleanProps: e, numberProps: n, jsonProps: o };
|
|
1413
|
+
}
|
|
1414
|
+
function jt(t, e) {
|
|
1415
|
+
try {
|
|
1416
|
+
return JSON.parse(e);
|
|
1417
|
+
} catch (n) {
|
|
1418
|
+
return console.warn(
|
|
1419
|
+
`Invalid JSON attribute value for "${t}": "${e}". Error: ${n instanceof Error ? n.message : String(n)}`
|
|
1420
|
+
), null;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
function Fn(t) {
|
|
1424
|
+
const e = t.__name || t.name;
|
|
1425
|
+
if (!e)
|
|
1426
|
+
throw new Error("Component must have a __name or name property");
|
|
1427
|
+
const n = Re(t, _n(e)), { booleanProps: o, numberProps: r, jsonProps: s } = Vn(t);
|
|
1428
|
+
class u extends n {
|
|
1429
|
+
_hiddenInput = null;
|
|
1430
|
+
constructor() {
|
|
1431
|
+
super(), this._parseAttributes();
|
|
1432
|
+
}
|
|
1433
|
+
disconnectedCallback() {
|
|
1434
|
+
this._hiddenInput?.remove(), super.disconnectedCallback?.();
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Update the hidden input value
|
|
1438
|
+
* Call this from the Vue component to sync form value
|
|
1439
|
+
*/
|
|
1440
|
+
setHiddenInputValue(l) {
|
|
1441
|
+
this._hiddenInput && (this._hiddenInput.value = l ?? "");
|
|
1442
|
+
}
|
|
1443
|
+
_parseAttributes() {
|
|
1444
|
+
o.forEach((c) => {
|
|
1445
|
+
const a = this.getAttribute(c);
|
|
1446
|
+
this[c] = $n(c, a);
|
|
1447
|
+
}), r.forEach((c) => {
|
|
1448
|
+
const a = this.getAttribute(c);
|
|
1449
|
+
a !== null && (this[c] = In(c, a));
|
|
1450
|
+
}), s.forEach((c) => {
|
|
1451
|
+
const a = this.getAttribute(c);
|
|
1452
|
+
if (a !== null) {
|
|
1453
|
+
const f = jt(c, a);
|
|
1454
|
+
f !== null && (this[c] = f);
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
const l = this.getAttribute("data-json-props");
|
|
1458
|
+
l && l.split(",").map((a) => a.trim()).filter(Boolean).forEach((a) => {
|
|
1459
|
+
const f = a.replace(/-([a-z])/g, (m) => m[1].toUpperCase());
|
|
1460
|
+
let p = this.getAttribute(a);
|
|
1461
|
+
if (p === null) {
|
|
1462
|
+
const m = f.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
1463
|
+
p = this.getAttribute(m);
|
|
1464
|
+
}
|
|
1465
|
+
if (p !== null && !this[f]) {
|
|
1466
|
+
const m = jt(f, p);
|
|
1467
|
+
m !== null && (this[f] = m);
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1471
|
+
connectedCallback() {
|
|
1472
|
+
this._parseAttributes(), super.connectedCallback?.(), Nn(this);
|
|
1473
|
+
const l = this.getAttribute("name");
|
|
1474
|
+
l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
return u;
|
|
1478
|
+
}
|
|
1479
|
+
function jn(t) {
|
|
1480
|
+
return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
1481
|
+
}
|
|
1482
|
+
function Hn(t) {
|
|
1483
|
+
const e = t.__name || t.name;
|
|
1484
|
+
if (!e)
|
|
1485
|
+
throw new Error("Component must have a __name or name property");
|
|
1486
|
+
const n = jn(e), o = Fn(t);
|
|
1487
|
+
customElements.get(n) || customElements.define(n, o);
|
|
1488
|
+
}
|
|
1489
|
+
Hn(Dn);
|