@knime/jsonforms 1.14.2 → 1.15.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/CHANGELOG.md +32 -0
- package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
- package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
- package/dist/CheckboxControl-C10_DX1N.js +40 -0
- package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
- package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
- package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
- package/dist/DateTimeControl-DJhIb_U4.js +45 -0
- package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
- package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
- package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
- package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
- package/dist/Dropdown-BEx-cvXH.js +608 -0
- package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
- package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
- package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
- package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
- package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
- package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
- package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
- package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
- package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
- package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
- package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
- package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
- package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
- package/dist/SectionHeading-D7znCZXu.js +19 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
- package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
- package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
- package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
- package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
- package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
- package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
- package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
- package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
- package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
- package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
- package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
- package/dist/TimeControl-HRooO_z3.js +36 -0
- package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
- package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
- package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
- package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
- package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
- package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
- package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
- package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
- package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +64 -67
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DXuWWBh_.js +16 -0
- package/package.json +14 -14
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -0,0 +1,1055 @@
|
|
|
1
|
+
import { computed as V, ref as U, shallowRef as It, watch as at, getCurrentScope as jt, onScopeDispose as Yt, shallowReadonly as j, unref as qt } from "vue";
|
|
2
|
+
const Z = Math.min, _ = Math.max, tt = Math.round, Q = Math.floor, L = (t) => ({
|
|
3
|
+
x: t,
|
|
4
|
+
y: t
|
|
5
|
+
}), Xt = {
|
|
6
|
+
left: "right",
|
|
7
|
+
right: "left",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
top: "bottom"
|
|
10
|
+
}, Ut = {
|
|
11
|
+
start: "end",
|
|
12
|
+
end: "start"
|
|
13
|
+
};
|
|
14
|
+
function bt(t, e, n) {
|
|
15
|
+
return _(t, Z(e, n));
|
|
16
|
+
}
|
|
17
|
+
function ot(t, e) {
|
|
18
|
+
return typeof t == "function" ? t(e) : t;
|
|
19
|
+
}
|
|
20
|
+
function $(t) {
|
|
21
|
+
return t.split("-")[0];
|
|
22
|
+
}
|
|
23
|
+
function it(t) {
|
|
24
|
+
return t.split("-")[1];
|
|
25
|
+
}
|
|
26
|
+
function Dt(t) {
|
|
27
|
+
return t === "x" ? "y" : "x";
|
|
28
|
+
}
|
|
29
|
+
function Pt(t) {
|
|
30
|
+
return t === "y" ? "height" : "width";
|
|
31
|
+
}
|
|
32
|
+
const Kt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
33
|
+
function F(t) {
|
|
34
|
+
return Kt.has($(t)) ? "y" : "x";
|
|
35
|
+
}
|
|
36
|
+
function Vt(t) {
|
|
37
|
+
return Dt(F(t));
|
|
38
|
+
}
|
|
39
|
+
function Gt(t, e, n) {
|
|
40
|
+
n === void 0 && (n = !1);
|
|
41
|
+
const o = it(t), i = Vt(t), s = Pt(i);
|
|
42
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
43
|
+
return e.reference[s] > e.floating[s] && (r = et(r)), [r, et(r)];
|
|
44
|
+
}
|
|
45
|
+
function Jt(t) {
|
|
46
|
+
const e = et(t);
|
|
47
|
+
return [ut(t), e, ut(e)];
|
|
48
|
+
}
|
|
49
|
+
function ut(t) {
|
|
50
|
+
return t.replace(/start|end/g, (e) => Ut[e]);
|
|
51
|
+
}
|
|
52
|
+
const Rt = ["left", "right"], At = ["right", "left"], Qt = ["top", "bottom"], Zt = ["bottom", "top"];
|
|
53
|
+
function te(t, e, n) {
|
|
54
|
+
switch (t) {
|
|
55
|
+
case "top":
|
|
56
|
+
case "bottom":
|
|
57
|
+
return n ? e ? At : Rt : e ? Rt : At;
|
|
58
|
+
case "left":
|
|
59
|
+
case "right":
|
|
60
|
+
return e ? Qt : Zt;
|
|
61
|
+
default:
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function ee(t, e, n, o) {
|
|
66
|
+
const i = it(t);
|
|
67
|
+
let s = te($(t), n === "start", o);
|
|
68
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ut)))), s;
|
|
69
|
+
}
|
|
70
|
+
function et(t) {
|
|
71
|
+
return t.replace(/left|right|bottom|top/g, (e) => Xt[e]);
|
|
72
|
+
}
|
|
73
|
+
function ne(t) {
|
|
74
|
+
return {
|
|
75
|
+
top: 0,
|
|
76
|
+
right: 0,
|
|
77
|
+
bottom: 0,
|
|
78
|
+
left: 0,
|
|
79
|
+
...t
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function oe(t) {
|
|
83
|
+
return typeof t != "number" ? ne(t) : {
|
|
84
|
+
top: t,
|
|
85
|
+
right: t,
|
|
86
|
+
bottom: t,
|
|
87
|
+
left: t
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function nt(t) {
|
|
91
|
+
const {
|
|
92
|
+
x: e,
|
|
93
|
+
y: n,
|
|
94
|
+
width: o,
|
|
95
|
+
height: i
|
|
96
|
+
} = t;
|
|
97
|
+
return {
|
|
98
|
+
width: o,
|
|
99
|
+
height: i,
|
|
100
|
+
top: n,
|
|
101
|
+
left: e,
|
|
102
|
+
right: e + o,
|
|
103
|
+
bottom: n + i,
|
|
104
|
+
x: e,
|
|
105
|
+
y: n
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function Ot(t, e, n) {
|
|
109
|
+
let {
|
|
110
|
+
reference: o,
|
|
111
|
+
floating: i
|
|
112
|
+
} = t;
|
|
113
|
+
const s = F(e), r = Vt(e), l = Pt(r), a = $(e), c = s === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
|
|
114
|
+
let f;
|
|
115
|
+
switch (a) {
|
|
116
|
+
case "top":
|
|
117
|
+
f = {
|
|
118
|
+
x: d,
|
|
119
|
+
y: o.y - i.height
|
|
120
|
+
};
|
|
121
|
+
break;
|
|
122
|
+
case "bottom":
|
|
123
|
+
f = {
|
|
124
|
+
x: d,
|
|
125
|
+
y: o.y + o.height
|
|
126
|
+
};
|
|
127
|
+
break;
|
|
128
|
+
case "right":
|
|
129
|
+
f = {
|
|
130
|
+
x: o.x + o.width,
|
|
131
|
+
y: u
|
|
132
|
+
};
|
|
133
|
+
break;
|
|
134
|
+
case "left":
|
|
135
|
+
f = {
|
|
136
|
+
x: o.x - i.width,
|
|
137
|
+
y: u
|
|
138
|
+
};
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
f = {
|
|
142
|
+
x: o.x,
|
|
143
|
+
y: o.y
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
switch (it(e)) {
|
|
147
|
+
case "start":
|
|
148
|
+
f[r] -= m * (n && c ? -1 : 1);
|
|
149
|
+
break;
|
|
150
|
+
case "end":
|
|
151
|
+
f[r] += m * (n && c ? -1 : 1);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
return f;
|
|
155
|
+
}
|
|
156
|
+
const ie = async (t, e, n) => {
|
|
157
|
+
const {
|
|
158
|
+
placement: o = "bottom",
|
|
159
|
+
strategy: i = "absolute",
|
|
160
|
+
middleware: s = [],
|
|
161
|
+
platform: r
|
|
162
|
+
} = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
163
|
+
let c = await r.getElementRects({
|
|
164
|
+
reference: t,
|
|
165
|
+
floating: e,
|
|
166
|
+
strategy: i
|
|
167
|
+
}), {
|
|
168
|
+
x: d,
|
|
169
|
+
y: u
|
|
170
|
+
} = Ot(c, o, a), m = o, f = {}, h = 0;
|
|
171
|
+
for (let g = 0; g < l.length; g++) {
|
|
172
|
+
const {
|
|
173
|
+
name: w,
|
|
174
|
+
fn: p
|
|
175
|
+
} = l[g], {
|
|
176
|
+
x,
|
|
177
|
+
y,
|
|
178
|
+
data: R,
|
|
179
|
+
reset: b
|
|
180
|
+
} = await p({
|
|
181
|
+
x: d,
|
|
182
|
+
y: u,
|
|
183
|
+
initialPlacement: o,
|
|
184
|
+
placement: m,
|
|
185
|
+
strategy: i,
|
|
186
|
+
middlewareData: f,
|
|
187
|
+
rects: c,
|
|
188
|
+
platform: r,
|
|
189
|
+
elements: {
|
|
190
|
+
reference: t,
|
|
191
|
+
floating: e
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
d = x ?? d, u = y ?? u, f = {
|
|
195
|
+
...f,
|
|
196
|
+
[w]: {
|
|
197
|
+
...f[w],
|
|
198
|
+
...R
|
|
199
|
+
}
|
|
200
|
+
}, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
|
|
201
|
+
reference: t,
|
|
202
|
+
floating: e,
|
|
203
|
+
strategy: i
|
|
204
|
+
}) : b.rects), {
|
|
205
|
+
x: d,
|
|
206
|
+
y: u
|
|
207
|
+
} = Ot(c, m, a)), g = -1);
|
|
208
|
+
}
|
|
209
|
+
return {
|
|
210
|
+
x: d,
|
|
211
|
+
y: u,
|
|
212
|
+
placement: m,
|
|
213
|
+
strategy: i,
|
|
214
|
+
middlewareData: f
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
async function Ft(t, e) {
|
|
218
|
+
var n;
|
|
219
|
+
e === void 0 && (e = {});
|
|
220
|
+
const {
|
|
221
|
+
x: o,
|
|
222
|
+
y: i,
|
|
223
|
+
platform: s,
|
|
224
|
+
rects: r,
|
|
225
|
+
elements: l,
|
|
226
|
+
strategy: a
|
|
227
|
+
} = t, {
|
|
228
|
+
boundary: c = "clippingAncestors",
|
|
229
|
+
rootBoundary: d = "viewport",
|
|
230
|
+
elementContext: u = "floating",
|
|
231
|
+
altBoundary: m = !1,
|
|
232
|
+
padding: f = 0
|
|
233
|
+
} = ot(e, t), h = oe(f), w = l[m ? u === "floating" ? "reference" : "floating" : u], p = nt(await s.getClippingRect({
|
|
234
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
235
|
+
boundary: c,
|
|
236
|
+
rootBoundary: d,
|
|
237
|
+
strategy: a
|
|
238
|
+
})), x = u === "floating" ? {
|
|
239
|
+
x: o,
|
|
240
|
+
y: i,
|
|
241
|
+
width: r.floating.width,
|
|
242
|
+
height: r.floating.height
|
|
243
|
+
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), R = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
244
|
+
x: 1,
|
|
245
|
+
y: 1
|
|
246
|
+
} : {
|
|
247
|
+
x: 1,
|
|
248
|
+
y: 1
|
|
249
|
+
}, b = nt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
250
|
+
elements: l,
|
|
251
|
+
rect: x,
|
|
252
|
+
offsetParent: y,
|
|
253
|
+
strategy: a
|
|
254
|
+
}) : x);
|
|
255
|
+
return {
|
|
256
|
+
top: (p.top - b.top + h.top) / R.y,
|
|
257
|
+
bottom: (b.bottom - p.bottom + h.bottom) / R.y,
|
|
258
|
+
left: (p.left - b.left + h.left) / R.x,
|
|
259
|
+
right: (b.right - p.right + h.right) / R.x
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
const re = function(t) {
|
|
263
|
+
return t === void 0 && (t = {}), {
|
|
264
|
+
name: "flip",
|
|
265
|
+
options: t,
|
|
266
|
+
async fn(e) {
|
|
267
|
+
var n, o;
|
|
268
|
+
const {
|
|
269
|
+
placement: i,
|
|
270
|
+
middlewareData: s,
|
|
271
|
+
rects: r,
|
|
272
|
+
initialPlacement: l,
|
|
273
|
+
platform: a,
|
|
274
|
+
elements: c
|
|
275
|
+
} = e, {
|
|
276
|
+
mainAxis: d = !0,
|
|
277
|
+
crossAxis: u = !0,
|
|
278
|
+
fallbackPlacements: m,
|
|
279
|
+
fallbackStrategy: f = "bestFit",
|
|
280
|
+
fallbackAxisSideDirection: h = "none",
|
|
281
|
+
flipAlignment: g = !0,
|
|
282
|
+
...w
|
|
283
|
+
} = ot(t, e);
|
|
284
|
+
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
285
|
+
return {};
|
|
286
|
+
const p = $(i), x = F(l), y = $(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = m || (y || !g ? [et(l)] : Jt(l)), M = h !== "none";
|
|
287
|
+
!m && M && b.push(...ee(l, g, h, R));
|
|
288
|
+
const v = [l, ...b], O = await Ft(e, w), B = [];
|
|
289
|
+
let I = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
290
|
+
if (d && B.push(O[p]), u) {
|
|
291
|
+
const N = Gt(i, r, R);
|
|
292
|
+
B.push(O[N[0]], O[N[1]]);
|
|
293
|
+
}
|
|
294
|
+
if (I = [...I, {
|
|
295
|
+
placement: i,
|
|
296
|
+
overflows: B
|
|
297
|
+
}], !B.every((N) => N <= 0)) {
|
|
298
|
+
var xt, yt;
|
|
299
|
+
const N = (((xt = s.flip) == null ? void 0 : xt.index) || 0) + 1, ct = v[N];
|
|
300
|
+
if (ct && (!(u === "alignment" ? x !== F(ct) : !1) || // We leave the current main axis only if every placement on that axis
|
|
301
|
+
// overflows the main axis.
|
|
302
|
+
I.every((C) => F(C.placement) === x ? C.overflows[0] > 0 : !0)))
|
|
303
|
+
return {
|
|
304
|
+
data: {
|
|
305
|
+
index: N,
|
|
306
|
+
overflows: I
|
|
307
|
+
},
|
|
308
|
+
reset: {
|
|
309
|
+
placement: ct
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
let X = (yt = I.filter((W) => W.overflows[0] <= 0).sort((W, C) => W.overflows[1] - C.overflows[1])[0]) == null ? void 0 : yt.placement;
|
|
313
|
+
if (!X)
|
|
314
|
+
switch (f) {
|
|
315
|
+
case "bestFit": {
|
|
316
|
+
var vt;
|
|
317
|
+
const W = (vt = I.filter((C) => {
|
|
318
|
+
if (M) {
|
|
319
|
+
const P = F(C.placement);
|
|
320
|
+
return P === x || // Create a bias to the `y` side axis due to horizontal
|
|
321
|
+
// reading directions favoring greater width.
|
|
322
|
+
P === "y";
|
|
323
|
+
}
|
|
324
|
+
return !0;
|
|
325
|
+
}).map((C) => [C.placement, C.overflows.filter((P) => P > 0).reduce((P, zt) => P + zt, 0)]).sort((C, P) => C[1] - P[1])[0]) == null ? void 0 : vt[0];
|
|
326
|
+
W && (X = W);
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
case "initialPlacement":
|
|
330
|
+
X = l;
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
if (i !== X)
|
|
334
|
+
return {
|
|
335
|
+
reset: {
|
|
336
|
+
placement: X
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
return {};
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}, se = /* @__PURE__ */ new Set(["left", "top"]);
|
|
344
|
+
async function le(t, e) {
|
|
345
|
+
const {
|
|
346
|
+
placement: n,
|
|
347
|
+
platform: o,
|
|
348
|
+
elements: i
|
|
349
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = $(n), l = it(n), a = F(n) === "y", c = se.has(r) ? -1 : 1, d = s && a ? -1 : 1, u = ot(e, t);
|
|
350
|
+
let {
|
|
351
|
+
mainAxis: m,
|
|
352
|
+
crossAxis: f,
|
|
353
|
+
alignmentAxis: h
|
|
354
|
+
} = typeof u == "number" ? {
|
|
355
|
+
mainAxis: u,
|
|
356
|
+
crossAxis: 0,
|
|
357
|
+
alignmentAxis: null
|
|
358
|
+
} : {
|
|
359
|
+
mainAxis: u.mainAxis || 0,
|
|
360
|
+
crossAxis: u.crossAxis || 0,
|
|
361
|
+
alignmentAxis: u.alignmentAxis
|
|
362
|
+
};
|
|
363
|
+
return l && typeof h == "number" && (f = l === "end" ? h * -1 : h), a ? {
|
|
364
|
+
x: f * d,
|
|
365
|
+
y: m * c
|
|
366
|
+
} : {
|
|
367
|
+
x: m * c,
|
|
368
|
+
y: f * d
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
const ce = function(t) {
|
|
372
|
+
return t === void 0 && (t = 0), {
|
|
373
|
+
name: "offset",
|
|
374
|
+
options: t,
|
|
375
|
+
async fn(e) {
|
|
376
|
+
var n, o;
|
|
377
|
+
const {
|
|
378
|
+
x: i,
|
|
379
|
+
y: s,
|
|
380
|
+
placement: r,
|
|
381
|
+
middlewareData: l
|
|
382
|
+
} = e, a = await le(e, t);
|
|
383
|
+
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
384
|
+
x: i + a.x,
|
|
385
|
+
y: s + a.y,
|
|
386
|
+
data: {
|
|
387
|
+
...a,
|
|
388
|
+
placement: r
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
}, ae = function(t) {
|
|
394
|
+
return t === void 0 && (t = {}), {
|
|
395
|
+
name: "shift",
|
|
396
|
+
options: t,
|
|
397
|
+
async fn(e) {
|
|
398
|
+
const {
|
|
399
|
+
x: n,
|
|
400
|
+
y: o,
|
|
401
|
+
placement: i
|
|
402
|
+
} = e, {
|
|
403
|
+
mainAxis: s = !0,
|
|
404
|
+
crossAxis: r = !1,
|
|
405
|
+
limiter: l = {
|
|
406
|
+
fn: (w) => {
|
|
407
|
+
let {
|
|
408
|
+
x: p,
|
|
409
|
+
y: x
|
|
410
|
+
} = w;
|
|
411
|
+
return {
|
|
412
|
+
x: p,
|
|
413
|
+
y: x
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
...a
|
|
418
|
+
} = ot(t, e), c = {
|
|
419
|
+
x: n,
|
|
420
|
+
y: o
|
|
421
|
+
}, d = await Ft(e, a), u = F($(i)), m = Dt(u);
|
|
422
|
+
let f = c[m], h = c[u];
|
|
423
|
+
if (s) {
|
|
424
|
+
const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", x = f + d[w], y = f - d[p];
|
|
425
|
+
f = bt(x, f, y);
|
|
426
|
+
}
|
|
427
|
+
if (r) {
|
|
428
|
+
const w = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", x = h + d[w], y = h - d[p];
|
|
429
|
+
h = bt(x, h, y);
|
|
430
|
+
}
|
|
431
|
+
const g = l.fn({
|
|
432
|
+
...e,
|
|
433
|
+
[m]: f,
|
|
434
|
+
[u]: h
|
|
435
|
+
});
|
|
436
|
+
return {
|
|
437
|
+
...g,
|
|
438
|
+
data: {
|
|
439
|
+
x: g.x - n,
|
|
440
|
+
y: g.y - o,
|
|
441
|
+
enabled: {
|
|
442
|
+
[m]: s,
|
|
443
|
+
[u]: r
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
function rt() {
|
|
451
|
+
return typeof window < "u";
|
|
452
|
+
}
|
|
453
|
+
function z(t) {
|
|
454
|
+
return mt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
455
|
+
}
|
|
456
|
+
function A(t) {
|
|
457
|
+
var e;
|
|
458
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
459
|
+
}
|
|
460
|
+
function D(t) {
|
|
461
|
+
var e;
|
|
462
|
+
return (e = (mt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
463
|
+
}
|
|
464
|
+
function mt(t) {
|
|
465
|
+
return rt() ? t instanceof Node || t instanceof A(t).Node : !1;
|
|
466
|
+
}
|
|
467
|
+
function E(t) {
|
|
468
|
+
return rt() ? t instanceof Element || t instanceof A(t).Element : !1;
|
|
469
|
+
}
|
|
470
|
+
function T(t) {
|
|
471
|
+
return rt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
|
|
472
|
+
}
|
|
473
|
+
function Ct(t) {
|
|
474
|
+
return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
|
|
475
|
+
}
|
|
476
|
+
const fe = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
477
|
+
function J(t) {
|
|
478
|
+
const {
|
|
479
|
+
overflow: e,
|
|
480
|
+
overflowX: n,
|
|
481
|
+
overflowY: o,
|
|
482
|
+
display: i
|
|
483
|
+
} = S(t);
|
|
484
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !fe.has(i);
|
|
485
|
+
}
|
|
486
|
+
const ue = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
487
|
+
function de(t) {
|
|
488
|
+
return ue.has(z(t));
|
|
489
|
+
}
|
|
490
|
+
const me = [":popover-open", ":modal"];
|
|
491
|
+
function st(t) {
|
|
492
|
+
return me.some((e) => {
|
|
493
|
+
try {
|
|
494
|
+
return t.matches(e);
|
|
495
|
+
} catch {
|
|
496
|
+
return !1;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
const he = ["transform", "translate", "scale", "rotate", "perspective"], pe = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ge = ["paint", "layout", "strict", "content"];
|
|
501
|
+
function ht(t) {
|
|
502
|
+
const e = pt(), n = E(t) ? S(t) : t;
|
|
503
|
+
return he.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) || pe.some((o) => (n.willChange || "").includes(o)) || ge.some((o) => (n.contain || "").includes(o));
|
|
504
|
+
}
|
|
505
|
+
function we(t) {
|
|
506
|
+
let e = k(t);
|
|
507
|
+
for (; T(e) && !q(e); ) {
|
|
508
|
+
if (ht(e))
|
|
509
|
+
return e;
|
|
510
|
+
if (st(e))
|
|
511
|
+
return null;
|
|
512
|
+
e = k(e);
|
|
513
|
+
}
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
function pt() {
|
|
517
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
518
|
+
}
|
|
519
|
+
const xe = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
520
|
+
function q(t) {
|
|
521
|
+
return xe.has(z(t));
|
|
522
|
+
}
|
|
523
|
+
function S(t) {
|
|
524
|
+
return A(t).getComputedStyle(t);
|
|
525
|
+
}
|
|
526
|
+
function lt(t) {
|
|
527
|
+
return E(t) ? {
|
|
528
|
+
scrollLeft: t.scrollLeft,
|
|
529
|
+
scrollTop: t.scrollTop
|
|
530
|
+
} : {
|
|
531
|
+
scrollLeft: t.scrollX,
|
|
532
|
+
scrollTop: t.scrollY
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function k(t) {
|
|
536
|
+
if (z(t) === "html")
|
|
537
|
+
return t;
|
|
538
|
+
const e = (
|
|
539
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
540
|
+
t.assignedSlot || // DOM Element detected.
|
|
541
|
+
t.parentNode || // ShadowRoot detected.
|
|
542
|
+
Ct(t) && t.host || // Fallback.
|
|
543
|
+
D(t)
|
|
544
|
+
);
|
|
545
|
+
return Ct(e) ? e.host : e;
|
|
546
|
+
}
|
|
547
|
+
function kt(t) {
|
|
548
|
+
const e = k(t);
|
|
549
|
+
return q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : T(e) && J(e) ? e : kt(e);
|
|
550
|
+
}
|
|
551
|
+
function G(t, e, n) {
|
|
552
|
+
var o;
|
|
553
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
554
|
+
const i = kt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = A(i);
|
|
555
|
+
if (s) {
|
|
556
|
+
const l = dt(r);
|
|
557
|
+
return e.concat(r, r.visualViewport || [], J(i) ? i : [], l && n ? G(l) : []);
|
|
558
|
+
}
|
|
559
|
+
return e.concat(i, G(i, [], n));
|
|
560
|
+
}
|
|
561
|
+
function dt(t) {
|
|
562
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
563
|
+
}
|
|
564
|
+
function Mt(t) {
|
|
565
|
+
const e = S(t);
|
|
566
|
+
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
567
|
+
const i = T(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = tt(n) !== s || tt(o) !== r;
|
|
568
|
+
return l && (n = s, o = r), {
|
|
569
|
+
width: n,
|
|
570
|
+
height: o,
|
|
571
|
+
$: l
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function gt(t) {
|
|
575
|
+
return E(t) ? t : t.contextElement;
|
|
576
|
+
}
|
|
577
|
+
function Y(t) {
|
|
578
|
+
const e = gt(t);
|
|
579
|
+
if (!T(e))
|
|
580
|
+
return L(1);
|
|
581
|
+
const n = e.getBoundingClientRect(), {
|
|
582
|
+
width: o,
|
|
583
|
+
height: i,
|
|
584
|
+
$: s
|
|
585
|
+
} = Mt(e);
|
|
586
|
+
let r = (s ? tt(n.width) : n.width) / o, l = (s ? tt(n.height) : n.height) / i;
|
|
587
|
+
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
588
|
+
x: r,
|
|
589
|
+
y: l
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
const ye = /* @__PURE__ */ L(0);
|
|
593
|
+
function Bt(t) {
|
|
594
|
+
const e = A(t);
|
|
595
|
+
return !pt() || !e.visualViewport ? ye : {
|
|
596
|
+
x: e.visualViewport.offsetLeft,
|
|
597
|
+
y: e.visualViewport.offsetTop
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
function ve(t, e, n) {
|
|
601
|
+
return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
|
|
602
|
+
}
|
|
603
|
+
function H(t, e, n, o) {
|
|
604
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
605
|
+
const i = t.getBoundingClientRect(), s = gt(t);
|
|
606
|
+
let r = L(1);
|
|
607
|
+
e && (o ? E(o) && (r = Y(o)) : r = Y(t));
|
|
608
|
+
const l = ve(s, n, o) ? Bt(s) : L(0);
|
|
609
|
+
let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, d = i.width / r.x, u = i.height / r.y;
|
|
610
|
+
if (s) {
|
|
611
|
+
const m = A(s), f = o && E(o) ? A(o) : o;
|
|
612
|
+
let h = m, g = dt(h);
|
|
613
|
+
for (; g && o && f !== h; ) {
|
|
614
|
+
const w = Y(g), p = g.getBoundingClientRect(), x = S(g), y = p.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, R = p.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
615
|
+
a *= w.x, c *= w.y, d *= w.x, u *= w.y, a += y, c += R, h = A(g), g = dt(h);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return nt({
|
|
619
|
+
width: d,
|
|
620
|
+
height: u,
|
|
621
|
+
x: a,
|
|
622
|
+
y: c
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
function wt(t, e) {
|
|
626
|
+
const n = lt(t).scrollLeft;
|
|
627
|
+
return e ? e.left + n : H(D(t)).left + n;
|
|
628
|
+
}
|
|
629
|
+
function Nt(t, e, n) {
|
|
630
|
+
n === void 0 && (n = !1);
|
|
631
|
+
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
632
|
+
// RTL <body> scrollbar.
|
|
633
|
+
wt(t, o)
|
|
634
|
+
)), s = o.top + e.scrollTop;
|
|
635
|
+
return {
|
|
636
|
+
x: i,
|
|
637
|
+
y: s
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
function be(t) {
|
|
641
|
+
let {
|
|
642
|
+
elements: e,
|
|
643
|
+
rect: n,
|
|
644
|
+
offsetParent: o,
|
|
645
|
+
strategy: i
|
|
646
|
+
} = t;
|
|
647
|
+
const s = i === "fixed", r = D(o), l = e ? st(e.floating) : !1;
|
|
648
|
+
if (o === r || l && s)
|
|
649
|
+
return n;
|
|
650
|
+
let a = {
|
|
651
|
+
scrollLeft: 0,
|
|
652
|
+
scrollTop: 0
|
|
653
|
+
}, c = L(1);
|
|
654
|
+
const d = L(0), u = T(o);
|
|
655
|
+
if ((u || !u && !s) && ((z(o) !== "body" || J(r)) && (a = lt(o)), T(o))) {
|
|
656
|
+
const f = H(o);
|
|
657
|
+
c = Y(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
|
|
658
|
+
}
|
|
659
|
+
const m = r && !u && !s ? Nt(r, a, !0) : L(0);
|
|
660
|
+
return {
|
|
661
|
+
width: n.width * c.x,
|
|
662
|
+
height: n.height * c.y,
|
|
663
|
+
x: n.x * c.x - a.scrollLeft * c.x + d.x + m.x,
|
|
664
|
+
y: n.y * c.y - a.scrollTop * c.y + d.y + m.y
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
function Re(t) {
|
|
668
|
+
return Array.from(t.getClientRects());
|
|
669
|
+
}
|
|
670
|
+
function Ae(t) {
|
|
671
|
+
const e = D(t), n = lt(t), o = t.ownerDocument.body, i = _(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = _(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
672
|
+
let r = -n.scrollLeft + wt(t);
|
|
673
|
+
const l = -n.scrollTop;
|
|
674
|
+
return S(o).direction === "rtl" && (r += _(e.clientWidth, o.clientWidth) - i), {
|
|
675
|
+
width: i,
|
|
676
|
+
height: s,
|
|
677
|
+
x: r,
|
|
678
|
+
y: l
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function Oe(t, e) {
|
|
682
|
+
const n = A(t), o = D(t), i = n.visualViewport;
|
|
683
|
+
let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
|
|
684
|
+
if (i) {
|
|
685
|
+
s = i.width, r = i.height;
|
|
686
|
+
const c = pt();
|
|
687
|
+
(!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
|
|
688
|
+
}
|
|
689
|
+
return {
|
|
690
|
+
width: s,
|
|
691
|
+
height: r,
|
|
692
|
+
x: l,
|
|
693
|
+
y: a
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
const Ce = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
697
|
+
function Ee(t, e) {
|
|
698
|
+
const n = H(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = T(t) ? Y(t) : L(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
|
|
699
|
+
return {
|
|
700
|
+
width: r,
|
|
701
|
+
height: l,
|
|
702
|
+
x: a,
|
|
703
|
+
y: c
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
function Et(t, e, n) {
|
|
707
|
+
let o;
|
|
708
|
+
if (e === "viewport")
|
|
709
|
+
o = Oe(t, n);
|
|
710
|
+
else if (e === "document")
|
|
711
|
+
o = Ae(D(t));
|
|
712
|
+
else if (E(e))
|
|
713
|
+
o = Ee(e, n);
|
|
714
|
+
else {
|
|
715
|
+
const i = Bt(t);
|
|
716
|
+
o = {
|
|
717
|
+
x: e.x - i.x,
|
|
718
|
+
y: e.y - i.y,
|
|
719
|
+
width: e.width,
|
|
720
|
+
height: e.height
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
return nt(o);
|
|
724
|
+
}
|
|
725
|
+
function Wt(t, e) {
|
|
726
|
+
const n = k(t);
|
|
727
|
+
return n === e || !E(n) || q(n) ? !1 : S(n).position === "fixed" || Wt(n, e);
|
|
728
|
+
}
|
|
729
|
+
function Se(t, e) {
|
|
730
|
+
const n = e.get(t);
|
|
731
|
+
if (n)
|
|
732
|
+
return n;
|
|
733
|
+
let o = G(t, [], !1).filter((l) => E(l) && z(l) !== "body"), i = null;
|
|
734
|
+
const s = S(t).position === "fixed";
|
|
735
|
+
let r = s ? k(t) : t;
|
|
736
|
+
for (; E(r) && !q(r); ) {
|
|
737
|
+
const l = S(r), a = ht(r);
|
|
738
|
+
!a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && Ce.has(i.position) || J(r) && !a && Wt(t, r)) ? o = o.filter((d) => d !== r) : i = l, r = k(r);
|
|
739
|
+
}
|
|
740
|
+
return e.set(t, o), o;
|
|
741
|
+
}
|
|
742
|
+
function Le(t) {
|
|
743
|
+
let {
|
|
744
|
+
element: e,
|
|
745
|
+
boundary: n,
|
|
746
|
+
rootBoundary: o,
|
|
747
|
+
strategy: i
|
|
748
|
+
} = t;
|
|
749
|
+
const r = [...n === "clippingAncestors" ? st(e) ? [] : Se(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, d) => {
|
|
750
|
+
const u = Et(e, d, i);
|
|
751
|
+
return c.top = _(u.top, c.top), c.right = Z(u.right, c.right), c.bottom = Z(u.bottom, c.bottom), c.left = _(u.left, c.left), c;
|
|
752
|
+
}, Et(e, l, i));
|
|
753
|
+
return {
|
|
754
|
+
width: a.right - a.left,
|
|
755
|
+
height: a.bottom - a.top,
|
|
756
|
+
x: a.left,
|
|
757
|
+
y: a.top
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
function Te(t) {
|
|
761
|
+
const {
|
|
762
|
+
width: e,
|
|
763
|
+
height: n
|
|
764
|
+
} = Mt(t);
|
|
765
|
+
return {
|
|
766
|
+
width: e,
|
|
767
|
+
height: n
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
function De(t, e, n) {
|
|
771
|
+
const o = T(e), i = D(e), s = n === "fixed", r = H(t, !0, s, e);
|
|
772
|
+
let l = {
|
|
773
|
+
scrollLeft: 0,
|
|
774
|
+
scrollTop: 0
|
|
775
|
+
};
|
|
776
|
+
const a = L(0);
|
|
777
|
+
function c() {
|
|
778
|
+
a.x = wt(i);
|
|
779
|
+
}
|
|
780
|
+
if (o || !o && !s)
|
|
781
|
+
if ((z(e) !== "body" || J(i)) && (l = lt(e)), o) {
|
|
782
|
+
const f = H(e, !0, s, e);
|
|
783
|
+
a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
|
|
784
|
+
} else i && c();
|
|
785
|
+
s && !o && i && c();
|
|
786
|
+
const d = i && !o && !s ? Nt(i, l) : L(0), u = r.left + l.scrollLeft - a.x - d.x, m = r.top + l.scrollTop - a.y - d.y;
|
|
787
|
+
return {
|
|
788
|
+
x: u,
|
|
789
|
+
y: m,
|
|
790
|
+
width: r.width,
|
|
791
|
+
height: r.height
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
function ft(t) {
|
|
795
|
+
return S(t).position === "static";
|
|
796
|
+
}
|
|
797
|
+
function St(t, e) {
|
|
798
|
+
if (!T(t) || S(t).position === "fixed")
|
|
799
|
+
return null;
|
|
800
|
+
if (e)
|
|
801
|
+
return e(t);
|
|
802
|
+
let n = t.offsetParent;
|
|
803
|
+
return D(t) === n && (n = n.ownerDocument.body), n;
|
|
804
|
+
}
|
|
805
|
+
function _t(t, e) {
|
|
806
|
+
const n = A(t);
|
|
807
|
+
if (st(t))
|
|
808
|
+
return n;
|
|
809
|
+
if (!T(t)) {
|
|
810
|
+
let i = k(t);
|
|
811
|
+
for (; i && !q(i); ) {
|
|
812
|
+
if (E(i) && !ft(i))
|
|
813
|
+
return i;
|
|
814
|
+
i = k(i);
|
|
815
|
+
}
|
|
816
|
+
return n;
|
|
817
|
+
}
|
|
818
|
+
let o = St(t, e);
|
|
819
|
+
for (; o && de(o) && ft(o); )
|
|
820
|
+
o = St(o, e);
|
|
821
|
+
return o && q(o) && ft(o) && !ht(o) ? n : o || we(t) || n;
|
|
822
|
+
}
|
|
823
|
+
const Pe = async function(t) {
|
|
824
|
+
const e = this.getOffsetParent || _t, n = this.getDimensions, o = await n(t.floating);
|
|
825
|
+
return {
|
|
826
|
+
reference: De(t.reference, await e(t.floating), t.strategy),
|
|
827
|
+
floating: {
|
|
828
|
+
x: 0,
|
|
829
|
+
y: 0,
|
|
830
|
+
width: o.width,
|
|
831
|
+
height: o.height
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
function Ve(t) {
|
|
836
|
+
return S(t).direction === "rtl";
|
|
837
|
+
}
|
|
838
|
+
const Fe = {
|
|
839
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: be,
|
|
840
|
+
getDocumentElement: D,
|
|
841
|
+
getClippingRect: Le,
|
|
842
|
+
getOffsetParent: _t,
|
|
843
|
+
getElementRects: Pe,
|
|
844
|
+
getClientRects: Re,
|
|
845
|
+
getDimensions: Te,
|
|
846
|
+
getScale: Y,
|
|
847
|
+
isElement: E,
|
|
848
|
+
isRTL: Ve
|
|
849
|
+
};
|
|
850
|
+
function $t(t, e) {
|
|
851
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
852
|
+
}
|
|
853
|
+
function ke(t, e) {
|
|
854
|
+
let n = null, o;
|
|
855
|
+
const i = D(t);
|
|
856
|
+
function s() {
|
|
857
|
+
var l;
|
|
858
|
+
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
859
|
+
}
|
|
860
|
+
function r(l, a) {
|
|
861
|
+
l === void 0 && (l = !1), a === void 0 && (a = 1), s();
|
|
862
|
+
const c = t.getBoundingClientRect(), {
|
|
863
|
+
left: d,
|
|
864
|
+
top: u,
|
|
865
|
+
width: m,
|
|
866
|
+
height: f
|
|
867
|
+
} = c;
|
|
868
|
+
if (l || e(), !m || !f)
|
|
869
|
+
return;
|
|
870
|
+
const h = Q(u), g = Q(i.clientWidth - (d + m)), w = Q(i.clientHeight - (u + f)), p = Q(d), y = {
|
|
871
|
+
rootMargin: -h + "px " + -g + "px " + -w + "px " + -p + "px",
|
|
872
|
+
threshold: _(0, Z(1, a)) || 1
|
|
873
|
+
};
|
|
874
|
+
let R = !0;
|
|
875
|
+
function b(M) {
|
|
876
|
+
const v = M[0].intersectionRatio;
|
|
877
|
+
if (v !== a) {
|
|
878
|
+
if (!R)
|
|
879
|
+
return r();
|
|
880
|
+
v ? r(!1, v) : o = setTimeout(() => {
|
|
881
|
+
r(!1, 1e-7);
|
|
882
|
+
}, 1e3);
|
|
883
|
+
}
|
|
884
|
+
v === 1 && !$t(c, t.getBoundingClientRect()) && r(), R = !1;
|
|
885
|
+
}
|
|
886
|
+
try {
|
|
887
|
+
n = new IntersectionObserver(b, {
|
|
888
|
+
...y,
|
|
889
|
+
// Handle <iframe>s
|
|
890
|
+
root: i.ownerDocument
|
|
891
|
+
});
|
|
892
|
+
} catch {
|
|
893
|
+
n = new IntersectionObserver(b, y);
|
|
894
|
+
}
|
|
895
|
+
n.observe(t);
|
|
896
|
+
}
|
|
897
|
+
return r(!0), s;
|
|
898
|
+
}
|
|
899
|
+
function We(t, e, n, o) {
|
|
900
|
+
o === void 0 && (o = {});
|
|
901
|
+
const {
|
|
902
|
+
ancestorScroll: i = !0,
|
|
903
|
+
ancestorResize: s = !0,
|
|
904
|
+
elementResize: r = typeof ResizeObserver == "function",
|
|
905
|
+
layoutShift: l = typeof IntersectionObserver == "function",
|
|
906
|
+
animationFrame: a = !1
|
|
907
|
+
} = o, c = gt(t), d = i || s ? [...c ? G(c) : [], ...G(e)] : [];
|
|
908
|
+
d.forEach((p) => {
|
|
909
|
+
i && p.addEventListener("scroll", n, {
|
|
910
|
+
passive: !0
|
|
911
|
+
}), s && p.addEventListener("resize", n);
|
|
912
|
+
});
|
|
913
|
+
const u = c && l ? ke(c, n) : null;
|
|
914
|
+
let m = -1, f = null;
|
|
915
|
+
r && (f = new ResizeObserver((p) => {
|
|
916
|
+
let [x] = p;
|
|
917
|
+
x && x.target === c && f && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
918
|
+
var y;
|
|
919
|
+
(y = f) == null || y.observe(e);
|
|
920
|
+
})), n();
|
|
921
|
+
}), c && !a && f.observe(c), f.observe(e));
|
|
922
|
+
let h, g = a ? H(t) : null;
|
|
923
|
+
a && w();
|
|
924
|
+
function w() {
|
|
925
|
+
const p = H(t);
|
|
926
|
+
g && !$t(g, p) && n(), g = p, h = requestAnimationFrame(w);
|
|
927
|
+
}
|
|
928
|
+
return n(), () => {
|
|
929
|
+
var p;
|
|
930
|
+
d.forEach((x) => {
|
|
931
|
+
i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
|
|
932
|
+
}), u?.(), (p = f) == null || p.disconnect(), f = null, a && cancelAnimationFrame(h);
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
const _e = ce, $e = ae, He = re, Me = (t, e, n) => {
|
|
936
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
|
937
|
+
platform: Fe,
|
|
938
|
+
...n
|
|
939
|
+
}, s = {
|
|
940
|
+
...i.platform,
|
|
941
|
+
_c: o
|
|
942
|
+
};
|
|
943
|
+
return ie(t, e, {
|
|
944
|
+
...i,
|
|
945
|
+
platform: s
|
|
946
|
+
});
|
|
947
|
+
};
|
|
948
|
+
function Be(t) {
|
|
949
|
+
return t != null && typeof t == "object" && "$el" in t;
|
|
950
|
+
}
|
|
951
|
+
function Lt(t) {
|
|
952
|
+
if (Be(t)) {
|
|
953
|
+
const e = t.$el;
|
|
954
|
+
return mt(e) && z(e) === "#comment" ? null : e;
|
|
955
|
+
}
|
|
956
|
+
return t;
|
|
957
|
+
}
|
|
958
|
+
function K(t) {
|
|
959
|
+
return typeof t == "function" ? t() : qt(t);
|
|
960
|
+
}
|
|
961
|
+
function Ht(t) {
|
|
962
|
+
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
963
|
+
}
|
|
964
|
+
function Tt(t, e) {
|
|
965
|
+
const n = Ht(t);
|
|
966
|
+
return Math.round(e * n) / n;
|
|
967
|
+
}
|
|
968
|
+
function ze(t, e, n) {
|
|
969
|
+
n === void 0 && (n = {});
|
|
970
|
+
const o = n.whileElementsMounted, i = V(() => {
|
|
971
|
+
var v;
|
|
972
|
+
return (v = K(n.open)) != null ? v : !0;
|
|
973
|
+
}), s = V(() => K(n.middleware)), r = V(() => {
|
|
974
|
+
var v;
|
|
975
|
+
return (v = K(n.placement)) != null ? v : "bottom";
|
|
976
|
+
}), l = V(() => {
|
|
977
|
+
var v;
|
|
978
|
+
return (v = K(n.strategy)) != null ? v : "absolute";
|
|
979
|
+
}), a = V(() => {
|
|
980
|
+
var v;
|
|
981
|
+
return (v = K(n.transform)) != null ? v : !0;
|
|
982
|
+
}), c = V(() => Lt(t.value)), d = V(() => Lt(e.value)), u = U(0), m = U(0), f = U(l.value), h = U(r.value), g = It({}), w = U(!1), p = V(() => {
|
|
983
|
+
const v = {
|
|
984
|
+
position: f.value,
|
|
985
|
+
left: "0",
|
|
986
|
+
top: "0"
|
|
987
|
+
};
|
|
988
|
+
if (!d.value)
|
|
989
|
+
return v;
|
|
990
|
+
const O = Tt(d.value, u.value), B = Tt(d.value, m.value);
|
|
991
|
+
return a.value ? {
|
|
992
|
+
...v,
|
|
993
|
+
transform: "translate(" + O + "px, " + B + "px)",
|
|
994
|
+
...Ht(d.value) >= 1.5 && {
|
|
995
|
+
willChange: "transform"
|
|
996
|
+
}
|
|
997
|
+
} : {
|
|
998
|
+
position: f.value,
|
|
999
|
+
left: O + "px",
|
|
1000
|
+
top: B + "px"
|
|
1001
|
+
};
|
|
1002
|
+
});
|
|
1003
|
+
let x;
|
|
1004
|
+
function y() {
|
|
1005
|
+
if (c.value == null || d.value == null)
|
|
1006
|
+
return;
|
|
1007
|
+
const v = i.value;
|
|
1008
|
+
Me(c.value, d.value, {
|
|
1009
|
+
middleware: s.value,
|
|
1010
|
+
placement: r.value,
|
|
1011
|
+
strategy: l.value
|
|
1012
|
+
}).then((O) => {
|
|
1013
|
+
u.value = O.x, m.value = O.y, f.value = O.strategy, h.value = O.placement, g.value = O.middlewareData, w.value = v !== !1;
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
function R() {
|
|
1017
|
+
typeof x == "function" && (x(), x = void 0);
|
|
1018
|
+
}
|
|
1019
|
+
function b() {
|
|
1020
|
+
if (R(), o === void 0) {
|
|
1021
|
+
y();
|
|
1022
|
+
return;
|
|
1023
|
+
}
|
|
1024
|
+
if (c.value != null && d.value != null) {
|
|
1025
|
+
x = o(c.value, d.value, y);
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function M() {
|
|
1030
|
+
i.value || (w.value = !1);
|
|
1031
|
+
}
|
|
1032
|
+
return at([s, r, l, i], y, {
|
|
1033
|
+
flush: "sync"
|
|
1034
|
+
}), at([c, d], b, {
|
|
1035
|
+
flush: "sync"
|
|
1036
|
+
}), at(i, M, {
|
|
1037
|
+
flush: "sync"
|
|
1038
|
+
}), jt() && Yt(R), {
|
|
1039
|
+
x: j(u),
|
|
1040
|
+
y: j(m),
|
|
1041
|
+
strategy: j(f),
|
|
1042
|
+
placement: j(h),
|
|
1043
|
+
middlewareData: j(g),
|
|
1044
|
+
isPositioned: j(w),
|
|
1045
|
+
floatingStyles: p,
|
|
1046
|
+
update: y
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
export {
|
|
1050
|
+
We as a,
|
|
1051
|
+
He as f,
|
|
1052
|
+
_e as o,
|
|
1053
|
+
$e as s,
|
|
1054
|
+
ze as u
|
|
1055
|
+
};
|