@turquoisehealth/pit-viper 2.104.0 → 2.104.2-dev.0

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