@stihl-design-system/components 1.0.0-RC.32 → 1.0.0-RC.34
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/accordion.Dmqocj97.js +12 -0
- package/actionbutton.DLQJU6AV.js +12 -0
- package/actionlink.DEBrWfN3.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.C8sNwIeW.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.E_jJFVew.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/InputFile.BnIvK65P.css +1 -0
- package/assets/InputNumber.BoiCIR1f.css +1 -0
- package/assets/InputPassword.Dk3_vNLV.css +1 -0
- package/assets/InputSearch.C1_4cVCi.css +1 -0
- package/assets/LinkButton.B86yacK5.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Select.COxLltX7.css +1 -0
- package/assets/Slider.DPEmJ3HD.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.y3MW7VW0.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.BN3vUDc_.css +1 -0
- package/assets/input.DTu4g_iA.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.o4Etkjjo.js → banner.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
- package/checkbox.DwccD0Mp.js +12 -0
- package/checkboxgroup.ZiUFfCJ1.js +9 -0
- package/chip.B0s_fS8L.js +12 -0
- package/chipgroup.Dpu66bo5.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
- package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
- package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
- package/chunks/InputFile.C8nt9Fu8.js +218 -0
- package/chunks/InputNumber.CbH1XJfl.js +267 -0
- package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.DyP4whX0.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.Du2RII5u.js +168 -0
- package/chunks/Toast.ug_RjGgF.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
- package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.jG5GRA7C.js +65 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/customreactselect.BFN8cYJi.js +14 -0
- package/dialog.CzM_Cxp0.js +9 -0
- package/drawer._A9MQ8Cj.js +9 -0
- package/fieldset.CId-NtI5.js +11 -0
- package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
- package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
- package/header.CelAkqtp.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +218 -206
- package/input.DuEbg7d6.js +206 -0
- package/inputfile.BjgJGefV.js +17 -0
- package/inputnumber.BcrxBVv0.js +16 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.CddmBW-T.js +13 -0
- package/inputsearch.CFOASqrd.js +14 -0
- package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
- package/megamenu.Cy9Cc-mC.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.Dp7D2fnc.js +9 -0
- package/notification.B-norGiB.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -50
- package/partials/index.js +56 -50
- package/partials/lib/partials.d.ts +1 -1
- package/popover.DFVDZY-m.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.DaThoMfq.js +11 -0
- package/scroller.Cu7H_VCT.js +98 -0
- package/select.CMdKf7tC.js +13 -0
- package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
- package/step.DKf4CHGr.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CCP_igpJ.js +16 -0
- package/stepper.d.ts +2 -0
- package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.DZgo49nZ.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.BkoT7feH.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.DMn20z4p.js +13 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.Dvs8woTH.js +11 -0
- package/toastmanager.pi_Fhd5t.js +89 -0
- package/tooltip.QJe_bfO-.js +178 -0
- package/topbar.Bxwvp9Lf.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/accordion.HfUSDwQJ.js +0 -12
- package/actionbutton.kgd0E_xF.js +0 -12
- package/actionlink.CwC42RWc.js +0 -12
- package/assets/Accordion.BJb4TOG0.css +0 -1
- package/assets/Button.Dw8H5nFS.css +0 -1
- package/assets/Checkbox.BKHQN_tu.css +0 -1
- package/assets/CustomReactSelect.DGIItWIh.css +0 -1
- package/assets/Dialog.CGAg7bnN.css +0 -1
- package/assets/Drawer.VOvWQoEr.css +0 -1
- package/assets/InputFile.CCQxsulT.css +0 -1
- package/assets/InputPassword.124xVOiO.css +0 -1
- package/assets/InputSearch.Bkg-1urJ.css +0 -1
- package/assets/InputStepper.DvFJk1Mi.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Select.C1gWF32A.css +0 -1
- package/assets/Slider.Bidyhb-B.css +0 -1
- package/assets/Textarea.Dq4rH9Tg.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.CUjGh-UM.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BsQm0kUD.js +0 -11
- package/button.Dyy6ajX6.js +0 -13
- package/checkbox.BNnp4ztM.js +0 -12
- package/checkboxgroup.BTVnKenc.js +0 -9
- package/chip.C7NstOHt.js +0 -12
- package/chipgroup.Zo1-IOCn.js +0 -210
- package/chunks/Accordion.CnqryAUu.js +0 -170
- package/chunks/Checkbox.CiwriItT.js +0 -88
- package/chunks/Dialog.Bv7k55He.js +0 -135
- package/chunks/Drawer.BVTvx276.js +0 -140
- package/chunks/Header.um5MlziB.js +0 -377
- package/chunks/InputFile.bVWWdePn.js +0 -220
- package/chunks/InputSearch.GOYqFCcZ.js +0 -174
- package/chunks/InputStepper.BuhPtfl-.js +0 -268
- package/chunks/MegaMenu._o3nNDAa.js +0 -192
- package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
- package/chunks/Notification.Pts2oh0R.js +0 -92
- package/chunks/Popover.BRR8YZ-P.js +0 -228
- package/chunks/Select.D2ehd4yN.js +0 -162
- package/chunks/Tabs.C8ADTzJ0.js +0 -83
- package/chunks/Textarea.Cw85sxHL.js +0 -163
- package/chunks/Toast.DG3WVvau.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
- package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
- package/chunks/helpers.BbWkXTr3.js +0 -37
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
- package/combobox.orZ3z8CB.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -13
- package/customreactselect.Np-RpzvU.js +0 -14
- package/dialog.D4rcbW6A.js +0 -10
- package/drawer.BCCB3Rkj.js +0 -10
- package/fieldset.ZLs9IGpE.js +0 -11
- package/header.DUbn3BZt.js +0 -12
- package/icon.CHVAZr5T.js +0 -9
- package/input.DG20x6gh.js +0 -203
- package/inputfile.Dc56lQ4t.js +0 -17
- package/inputpassword.znFHRLsI.js +0 -13
- package/inputsearch.B1G6rfVk.js +0 -14
- package/inputstepper.d.ts +0 -2
- package/inputstepper.o6rdM_CW.js +0 -16
- package/linkbutton.DU8Ih8ZF.js +0 -12
- package/megamenu.CPH8EeFF.js +0 -12
- package/navigationtablist.C0iwsAad.js +0 -9
- package/navigationtabs.JjJtbuUe.js +0 -9
- package/notification.Ds_Q7ifk.js +0 -10
- package/popover.B72W0OvU.js +0 -12
- package/radiogroup.C_3IcNBq.js +0 -11
- package/scroller.CQxmQU6U.js +0 -123
- package/select.Ceyt-zvu.js +0 -13
- package/slider.Dq2dcziy.js +0 -11
- package/systemfeedback.CSdWOWuf.js +0 -10
- package/tablist.V7DBklhE.js +0 -256
- package/tabs.DQNLPAEN.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.CixKeQBp.js +0 -13
- package/toast.D8QprMCa.js +0 -11
- package/toastmanager.BSVjYsg9.js +0 -116
- package/tooltip.CUCSRXd3.js +0 -191
- package/topbar.CVhJy-Br.js +0 -12
- /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
|
@@ -1,989 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function st() {
|
|
3
|
-
return typeof window < "u";
|
|
4
|
-
}
|
|
5
|
-
function X(t) {
|
|
6
|
-
return At(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
7
|
-
}
|
|
8
|
-
function R(t) {
|
|
9
|
-
var e;
|
|
10
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
11
|
-
}
|
|
12
|
-
function S(t) {
|
|
13
|
-
var e;
|
|
14
|
-
return (e = (At(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
15
|
-
}
|
|
16
|
-
function At(t) {
|
|
17
|
-
return st() ? t instanceof Node || t instanceof R(t).Node : !1;
|
|
18
|
-
}
|
|
19
|
-
function C(t) {
|
|
20
|
-
return st() ? t instanceof Element || t instanceof R(t).Element : !1;
|
|
21
|
-
}
|
|
22
|
-
function P(t) {
|
|
23
|
-
return st() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
|
|
24
|
-
}
|
|
25
|
-
function xt(t) {
|
|
26
|
-
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
|
|
27
|
-
}
|
|
28
|
-
function Q(t) {
|
|
29
|
-
const {
|
|
30
|
-
overflow: e,
|
|
31
|
-
overflowX: n,
|
|
32
|
-
overflowY: o,
|
|
33
|
-
display: i
|
|
34
|
-
} = E(t);
|
|
35
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
36
|
-
}
|
|
37
|
-
function Bt(t) {
|
|
38
|
-
return ["table", "td", "th"].includes(X(t));
|
|
39
|
-
}
|
|
40
|
-
function rt(t) {
|
|
41
|
-
return [":popover-open", ":modal"].some((e) => {
|
|
42
|
-
try {
|
|
43
|
-
return t.matches(e);
|
|
44
|
-
} catch {
|
|
45
|
-
return !1;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function dt(t) {
|
|
50
|
-
const e = mt(), n = C(t) ? E(t) : t;
|
|
51
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].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) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
52
|
-
}
|
|
53
|
-
function Mt(t) {
|
|
54
|
-
let e = N(t);
|
|
55
|
-
for (; P(e) && !j(e); ) {
|
|
56
|
-
if (dt(e))
|
|
57
|
-
return e;
|
|
58
|
-
if (rt(e))
|
|
59
|
-
return null;
|
|
60
|
-
e = N(e);
|
|
61
|
-
}
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
function mt() {
|
|
65
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
66
|
-
}
|
|
67
|
-
function j(t) {
|
|
68
|
-
return ["html", "body", "#document"].includes(X(t));
|
|
69
|
-
}
|
|
70
|
-
function E(t) {
|
|
71
|
-
return R(t).getComputedStyle(t);
|
|
72
|
-
}
|
|
73
|
-
function ct(t) {
|
|
74
|
-
return C(t) ? {
|
|
75
|
-
scrollLeft: t.scrollLeft,
|
|
76
|
-
scrollTop: t.scrollTop
|
|
77
|
-
} : {
|
|
78
|
-
scrollLeft: t.scrollX,
|
|
79
|
-
scrollTop: t.scrollY
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function N(t) {
|
|
83
|
-
if (X(t) === "html")
|
|
84
|
-
return t;
|
|
85
|
-
const e = (
|
|
86
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
87
|
-
t.assignedSlot || // DOM Element detected.
|
|
88
|
-
t.parentNode || // ShadowRoot detected.
|
|
89
|
-
xt(t) && t.host || // Fallback.
|
|
90
|
-
S(t)
|
|
91
|
-
);
|
|
92
|
-
return xt(e) ? e.host : e;
|
|
93
|
-
}
|
|
94
|
-
function Rt(t) {
|
|
95
|
-
const e = N(t);
|
|
96
|
-
return j(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && Q(e) ? e : Rt(e);
|
|
97
|
-
}
|
|
98
|
-
function J(t, e, n) {
|
|
99
|
-
var o;
|
|
100
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
101
|
-
const i = Rt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = R(i);
|
|
102
|
-
if (r) {
|
|
103
|
-
const c = ft(s);
|
|
104
|
-
return e.concat(s, s.visualViewport || [], Q(i) ? i : [], c && n ? J(c) : []);
|
|
105
|
-
}
|
|
106
|
-
return e.concat(i, J(i, [], n));
|
|
107
|
-
}
|
|
108
|
-
function ft(t) {
|
|
109
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
110
|
-
}
|
|
111
|
-
const Y = Math.min, H = Math.max, nt = Math.round, et = Math.floor, L = (t) => ({
|
|
112
|
-
x: t,
|
|
113
|
-
y: t
|
|
114
|
-
}), Nt = {
|
|
115
|
-
left: "right",
|
|
116
|
-
right: "left",
|
|
117
|
-
bottom: "top",
|
|
118
|
-
top: "bottom"
|
|
119
|
-
}, Wt = {
|
|
120
|
-
start: "end",
|
|
121
|
-
end: "start"
|
|
122
|
-
};
|
|
123
|
-
function at(t, e, n) {
|
|
124
|
-
return H(t, Y(e, n));
|
|
125
|
-
}
|
|
126
|
-
function Z(t, e) {
|
|
127
|
-
return typeof t == "function" ? t(e) : t;
|
|
128
|
-
}
|
|
129
|
-
function $(t) {
|
|
130
|
-
return t.split("-")[0];
|
|
131
|
-
}
|
|
132
|
-
function tt(t) {
|
|
133
|
-
return t.split("-")[1];
|
|
134
|
-
}
|
|
135
|
-
function Ot(t) {
|
|
136
|
-
return t === "x" ? "y" : "x";
|
|
137
|
-
}
|
|
138
|
-
function gt(t) {
|
|
139
|
-
return t === "y" ? "height" : "width";
|
|
140
|
-
}
|
|
141
|
-
function q(t) {
|
|
142
|
-
return ["top", "bottom"].includes($(t)) ? "y" : "x";
|
|
143
|
-
}
|
|
144
|
-
function ht(t) {
|
|
145
|
-
return Ot(q(t));
|
|
146
|
-
}
|
|
147
|
-
function Vt(t, e, n) {
|
|
148
|
-
n === void 0 && (n = !1);
|
|
149
|
-
const o = tt(t), i = ht(t), r = gt(i);
|
|
150
|
-
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
151
|
-
return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
|
|
152
|
-
}
|
|
153
|
-
function Ht(t) {
|
|
154
|
-
const e = ot(t);
|
|
155
|
-
return [ut(t), e, ut(e)];
|
|
156
|
-
}
|
|
157
|
-
function ut(t) {
|
|
158
|
-
return t.replace(/start|end/g, (e) => Wt[e]);
|
|
159
|
-
}
|
|
160
|
-
function $t(t, e, n) {
|
|
161
|
-
const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
162
|
-
switch (t) {
|
|
163
|
-
case "top":
|
|
164
|
-
case "bottom":
|
|
165
|
-
return n ? e ? i : o : e ? o : i;
|
|
166
|
-
case "left":
|
|
167
|
-
case "right":
|
|
168
|
-
return e ? r : s;
|
|
169
|
-
default:
|
|
170
|
-
return [];
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
function zt(t, e, n, o) {
|
|
174
|
-
const i = tt(t);
|
|
175
|
-
let r = $t($(t), n === "start", o);
|
|
176
|
-
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
|
|
177
|
-
}
|
|
178
|
-
function ot(t) {
|
|
179
|
-
return t.replace(/left|right|bottom|top/g, (e) => Nt[e]);
|
|
180
|
-
}
|
|
181
|
-
function _t(t) {
|
|
182
|
-
return {
|
|
183
|
-
top: 0,
|
|
184
|
-
right: 0,
|
|
185
|
-
bottom: 0,
|
|
186
|
-
left: 0,
|
|
187
|
-
...t
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
function Ct(t) {
|
|
191
|
-
return typeof t != "number" ? _t(t) : {
|
|
192
|
-
top: t,
|
|
193
|
-
right: t,
|
|
194
|
-
bottom: t,
|
|
195
|
-
left: t
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function it(t) {
|
|
199
|
-
const {
|
|
200
|
-
x: e,
|
|
201
|
-
y: n,
|
|
202
|
-
width: o,
|
|
203
|
-
height: i
|
|
204
|
-
} = t;
|
|
205
|
-
return {
|
|
206
|
-
width: o,
|
|
207
|
-
height: i,
|
|
208
|
-
top: n,
|
|
209
|
-
left: e,
|
|
210
|
-
right: e + o,
|
|
211
|
-
bottom: n + i,
|
|
212
|
-
x: e,
|
|
213
|
-
y: n
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function yt(t, e, n) {
|
|
217
|
-
let {
|
|
218
|
-
reference: o,
|
|
219
|
-
floating: i
|
|
220
|
-
} = t;
|
|
221
|
-
const r = q(e), s = ht(e), c = gt(s), l = $(e), f = r === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
|
|
222
|
-
let a;
|
|
223
|
-
switch (l) {
|
|
224
|
-
case "top":
|
|
225
|
-
a = {
|
|
226
|
-
x: d,
|
|
227
|
-
y: o.y - i.height
|
|
228
|
-
};
|
|
229
|
-
break;
|
|
230
|
-
case "bottom":
|
|
231
|
-
a = {
|
|
232
|
-
x: d,
|
|
233
|
-
y: o.y + o.height
|
|
234
|
-
};
|
|
235
|
-
break;
|
|
236
|
-
case "right":
|
|
237
|
-
a = {
|
|
238
|
-
x: o.x + o.width,
|
|
239
|
-
y: u
|
|
240
|
-
};
|
|
241
|
-
break;
|
|
242
|
-
case "left":
|
|
243
|
-
a = {
|
|
244
|
-
x: o.x - i.width,
|
|
245
|
-
y: u
|
|
246
|
-
};
|
|
247
|
-
break;
|
|
248
|
-
default:
|
|
249
|
-
a = {
|
|
250
|
-
x: o.x,
|
|
251
|
-
y: o.y
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
switch (tt(e)) {
|
|
255
|
-
case "start":
|
|
256
|
-
a[s] -= m * (n && f ? -1 : 1);
|
|
257
|
-
break;
|
|
258
|
-
case "end":
|
|
259
|
-
a[s] += m * (n && f ? -1 : 1);
|
|
260
|
-
break;
|
|
261
|
-
}
|
|
262
|
-
return a;
|
|
263
|
-
}
|
|
264
|
-
const It = async (t, e, n) => {
|
|
265
|
-
const {
|
|
266
|
-
placement: o = "bottom",
|
|
267
|
-
strategy: i = "absolute",
|
|
268
|
-
middleware: r = [],
|
|
269
|
-
platform: s
|
|
270
|
-
} = n, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
271
|
-
let f = await s.getElementRects({
|
|
272
|
-
reference: t,
|
|
273
|
-
floating: e,
|
|
274
|
-
strategy: i
|
|
275
|
-
}), {
|
|
276
|
-
x: d,
|
|
277
|
-
y: u
|
|
278
|
-
} = yt(f, o, l), m = o, a = {}, g = 0;
|
|
279
|
-
for (let h = 0; h < c.length; h++) {
|
|
280
|
-
const {
|
|
281
|
-
name: w,
|
|
282
|
-
fn: p
|
|
283
|
-
} = c[h], {
|
|
284
|
-
x,
|
|
285
|
-
y,
|
|
286
|
-
data: b,
|
|
287
|
-
reset: v
|
|
288
|
-
} = await p({
|
|
289
|
-
x: d,
|
|
290
|
-
y: u,
|
|
291
|
-
initialPlacement: o,
|
|
292
|
-
placement: m,
|
|
293
|
-
strategy: i,
|
|
294
|
-
middlewareData: a,
|
|
295
|
-
rects: f,
|
|
296
|
-
platform: s,
|
|
297
|
-
elements: {
|
|
298
|
-
reference: t,
|
|
299
|
-
floating: e
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
d = x ?? d, u = y ?? u, a = {
|
|
303
|
-
...a,
|
|
304
|
-
[w]: {
|
|
305
|
-
...a[w],
|
|
306
|
-
...b
|
|
307
|
-
}
|
|
308
|
-
}, v && g <= 50 && (g++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (f = v.rects === !0 ? await s.getElementRects({
|
|
309
|
-
reference: t,
|
|
310
|
-
floating: e,
|
|
311
|
-
strategy: i
|
|
312
|
-
}) : v.rects), {
|
|
313
|
-
x: d,
|
|
314
|
-
y: u
|
|
315
|
-
} = yt(f, m, l)), h = -1);
|
|
316
|
-
}
|
|
317
|
-
return {
|
|
318
|
-
x: d,
|
|
319
|
-
y: u,
|
|
320
|
-
placement: m,
|
|
321
|
-
strategy: i,
|
|
322
|
-
middlewareData: a
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
async function Et(t, e) {
|
|
326
|
-
var n;
|
|
327
|
-
e === void 0 && (e = {});
|
|
328
|
-
const {
|
|
329
|
-
x: o,
|
|
330
|
-
y: i,
|
|
331
|
-
platform: r,
|
|
332
|
-
rects: s,
|
|
333
|
-
elements: c,
|
|
334
|
-
strategy: l
|
|
335
|
-
} = t, {
|
|
336
|
-
boundary: f = "clippingAncestors",
|
|
337
|
-
rootBoundary: d = "viewport",
|
|
338
|
-
elementContext: u = "floating",
|
|
339
|
-
altBoundary: m = !1,
|
|
340
|
-
padding: a = 0
|
|
341
|
-
} = Z(e, t), g = Ct(a), w = c[m ? u === "floating" ? "reference" : "floating" : u], p = it(await r.getClippingRect({
|
|
342
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
343
|
-
boundary: f,
|
|
344
|
-
rootBoundary: d,
|
|
345
|
-
strategy: l
|
|
346
|
-
})), x = u === "floating" ? {
|
|
347
|
-
x: o,
|
|
348
|
-
y: i,
|
|
349
|
-
width: s.floating.width,
|
|
350
|
-
height: s.floating.height
|
|
351
|
-
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), b = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
|
|
352
|
-
x: 1,
|
|
353
|
-
y: 1
|
|
354
|
-
} : {
|
|
355
|
-
x: 1,
|
|
356
|
-
y: 1
|
|
357
|
-
}, v = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
358
|
-
elements: c,
|
|
359
|
-
rect: x,
|
|
360
|
-
offsetParent: y,
|
|
361
|
-
strategy: l
|
|
362
|
-
}) : x);
|
|
363
|
-
return {
|
|
364
|
-
top: (p.top - v.top + g.top) / b.y,
|
|
365
|
-
bottom: (v.bottom - p.bottom + g.bottom) / b.y,
|
|
366
|
-
left: (p.left - v.left + g.left) / b.x,
|
|
367
|
-
right: (v.right - p.right + g.right) / b.x
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
const jt = (t) => ({
|
|
371
|
-
name: "arrow",
|
|
372
|
-
options: t,
|
|
373
|
-
async fn(e) {
|
|
374
|
-
const {
|
|
375
|
-
x: n,
|
|
376
|
-
y: o,
|
|
377
|
-
placement: i,
|
|
378
|
-
rects: r,
|
|
379
|
-
platform: s,
|
|
380
|
-
elements: c,
|
|
381
|
-
middlewareData: l
|
|
382
|
-
} = e, {
|
|
383
|
-
element: f,
|
|
384
|
-
padding: d = 0
|
|
385
|
-
} = Z(t, e) || {};
|
|
386
|
-
if (f == null)
|
|
387
|
-
return {};
|
|
388
|
-
const u = Ct(d), m = {
|
|
389
|
-
x: n,
|
|
390
|
-
y: o
|
|
391
|
-
}, a = ht(i), g = gt(a), h = await s.getDimensions(f), w = a === "y", p = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = r.reference[g] + r.reference[a] - m[a] - r.floating[g], v = m[a] - r.reference[a], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
392
|
-
let O = D ? D[y] : 0;
|
|
393
|
-
(!O || !await (s.isElement == null ? void 0 : s.isElement(D))) && (O = c.floating[y] || r.floating[g]);
|
|
394
|
-
const U = b / 2 - v / 2, W = O / 2 - h[g] / 2 - 1, F = Y(u[p], W), K = Y(u[x], W), V = F, G = O - h[g] - K, A = O / 2 - h[g] / 2 + U, _ = at(V, A, G), k = !l.arrow && tt(i) != null && A !== _ && r.reference[g] / 2 - (A < V ? F : K) - h[g] / 2 < 0, T = k ? A < V ? A - V : A - G : 0;
|
|
395
|
-
return {
|
|
396
|
-
[a]: m[a] + T,
|
|
397
|
-
data: {
|
|
398
|
-
[a]: _,
|
|
399
|
-
centerOffset: A - _ - T,
|
|
400
|
-
...k && {
|
|
401
|
-
alignmentOffset: T
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
reset: k
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
}), Yt = function(t) {
|
|
408
|
-
return t === void 0 && (t = {}), {
|
|
409
|
-
name: "flip",
|
|
410
|
-
options: t,
|
|
411
|
-
async fn(e) {
|
|
412
|
-
var n, o;
|
|
413
|
-
const {
|
|
414
|
-
placement: i,
|
|
415
|
-
middlewareData: r,
|
|
416
|
-
rects: s,
|
|
417
|
-
initialPlacement: c,
|
|
418
|
-
platform: l,
|
|
419
|
-
elements: f
|
|
420
|
-
} = e, {
|
|
421
|
-
mainAxis: d = !0,
|
|
422
|
-
crossAxis: u = !0,
|
|
423
|
-
fallbackPlacements: m,
|
|
424
|
-
fallbackStrategy: a = "bestFit",
|
|
425
|
-
fallbackAxisSideDirection: g = "none",
|
|
426
|
-
flipAlignment: h = !0,
|
|
427
|
-
...w
|
|
428
|
-
} = Z(t, e);
|
|
429
|
-
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
430
|
-
return {};
|
|
431
|
-
const p = $(i), x = q(c), y = $(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), v = m || (y || !h ? [ot(c)] : Ht(c)), D = g !== "none";
|
|
432
|
-
!m && D && v.push(...zt(c, h, g, b));
|
|
433
|
-
const O = [c, ...v], U = await Et(e, w), W = [];
|
|
434
|
-
let F = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
435
|
-
if (d && W.push(U[p]), u) {
|
|
436
|
-
const A = Vt(i, s, b);
|
|
437
|
-
W.push(U[A[0]], U[A[1]]);
|
|
438
|
-
}
|
|
439
|
-
if (F = [...F, {
|
|
440
|
-
placement: i,
|
|
441
|
-
overflows: W
|
|
442
|
-
}], !W.every((A) => A <= 0)) {
|
|
443
|
-
var K, V;
|
|
444
|
-
const A = (((K = r.flip) == null ? void 0 : K.index) || 0) + 1, _ = O[A];
|
|
445
|
-
if (_)
|
|
446
|
-
return {
|
|
447
|
-
data: {
|
|
448
|
-
index: A,
|
|
449
|
-
overflows: F
|
|
450
|
-
},
|
|
451
|
-
reset: {
|
|
452
|
-
placement: _
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
let k = (V = F.filter((T) => T.overflows[0] <= 0).sort((T, B) => T.overflows[1] - B.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
456
|
-
if (!k)
|
|
457
|
-
switch (a) {
|
|
458
|
-
case "bestFit": {
|
|
459
|
-
var G;
|
|
460
|
-
const T = (G = F.filter((B) => {
|
|
461
|
-
if (D) {
|
|
462
|
-
const M = q(B.placement);
|
|
463
|
-
return M === x || // Create a bias to the `y` side axis due to horizontal
|
|
464
|
-
// reading directions favoring greater width.
|
|
465
|
-
M === "y";
|
|
466
|
-
}
|
|
467
|
-
return !0;
|
|
468
|
-
}).map((B) => [B.placement, B.overflows.filter((M) => M > 0).reduce((M, Ft) => M + Ft, 0)]).sort((B, M) => B[1] - M[1])[0]) == null ? void 0 : G[0];
|
|
469
|
-
T && (k = T);
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
case "initialPlacement":
|
|
473
|
-
k = c;
|
|
474
|
-
break;
|
|
475
|
-
}
|
|
476
|
-
if (i !== k)
|
|
477
|
-
return {
|
|
478
|
-
reset: {
|
|
479
|
-
placement: k
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
return {};
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
|
-
async function qt(t, e) {
|
|
488
|
-
const {
|
|
489
|
-
placement: n,
|
|
490
|
-
platform: o,
|
|
491
|
-
elements: i
|
|
492
|
-
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = $(n), c = tt(n), l = q(n) === "y", f = ["left", "top"].includes(s) ? -1 : 1, d = r && l ? -1 : 1, u = Z(e, t);
|
|
493
|
-
let {
|
|
494
|
-
mainAxis: m,
|
|
495
|
-
crossAxis: a,
|
|
496
|
-
alignmentAxis: g
|
|
497
|
-
} = typeof u == "number" ? {
|
|
498
|
-
mainAxis: u,
|
|
499
|
-
crossAxis: 0,
|
|
500
|
-
alignmentAxis: null
|
|
501
|
-
} : {
|
|
502
|
-
mainAxis: u.mainAxis || 0,
|
|
503
|
-
crossAxis: u.crossAxis || 0,
|
|
504
|
-
alignmentAxis: u.alignmentAxis
|
|
505
|
-
};
|
|
506
|
-
return c && typeof g == "number" && (a = c === "end" ? g * -1 : g), l ? {
|
|
507
|
-
x: a * d,
|
|
508
|
-
y: m * f
|
|
509
|
-
} : {
|
|
510
|
-
x: m * f,
|
|
511
|
-
y: a * d
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
const Xt = function(t) {
|
|
515
|
-
return t === void 0 && (t = 0), {
|
|
516
|
-
name: "offset",
|
|
517
|
-
options: t,
|
|
518
|
-
async fn(e) {
|
|
519
|
-
var n, o;
|
|
520
|
-
const {
|
|
521
|
-
x: i,
|
|
522
|
-
y: r,
|
|
523
|
-
placement: s,
|
|
524
|
-
middlewareData: c
|
|
525
|
-
} = e, l = await qt(e, t);
|
|
526
|
-
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
527
|
-
x: i + l.x,
|
|
528
|
-
y: r + l.y,
|
|
529
|
-
data: {
|
|
530
|
-
...l,
|
|
531
|
-
placement: s
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
}, Ut = function(t) {
|
|
537
|
-
return t === void 0 && (t = {}), {
|
|
538
|
-
name: "shift",
|
|
539
|
-
options: t,
|
|
540
|
-
async fn(e) {
|
|
541
|
-
const {
|
|
542
|
-
x: n,
|
|
543
|
-
y: o,
|
|
544
|
-
placement: i
|
|
545
|
-
} = e, {
|
|
546
|
-
mainAxis: r = !0,
|
|
547
|
-
crossAxis: s = !1,
|
|
548
|
-
limiter: c = {
|
|
549
|
-
fn: (w) => {
|
|
550
|
-
let {
|
|
551
|
-
x: p,
|
|
552
|
-
y: x
|
|
553
|
-
} = w;
|
|
554
|
-
return {
|
|
555
|
-
x: p,
|
|
556
|
-
y: x
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
...l
|
|
561
|
-
} = Z(t, e), f = {
|
|
562
|
-
x: n,
|
|
563
|
-
y: o
|
|
564
|
-
}, d = await Et(e, l), u = q($(i)), m = Ot(u);
|
|
565
|
-
let a = f[m], g = f[u];
|
|
566
|
-
if (r) {
|
|
567
|
-
const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", x = a + d[w], y = a - d[p];
|
|
568
|
-
a = at(x, a, y);
|
|
569
|
-
}
|
|
570
|
-
if (s) {
|
|
571
|
-
const w = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", x = g + d[w], y = g - d[p];
|
|
572
|
-
g = at(x, g, y);
|
|
573
|
-
}
|
|
574
|
-
const h = c.fn({
|
|
575
|
-
...e,
|
|
576
|
-
[m]: a,
|
|
577
|
-
[u]: g
|
|
578
|
-
});
|
|
579
|
-
return {
|
|
580
|
-
...h,
|
|
581
|
-
data: {
|
|
582
|
-
x: h.x - n,
|
|
583
|
-
y: h.y - o,
|
|
584
|
-
enabled: {
|
|
585
|
-
[m]: r,
|
|
586
|
-
[u]: s
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
};
|
|
593
|
-
function Tt(t) {
|
|
594
|
-
const e = E(t);
|
|
595
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
596
|
-
const i = P(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = nt(n) !== r || nt(o) !== s;
|
|
597
|
-
return c && (n = r, o = s), {
|
|
598
|
-
width: n,
|
|
599
|
-
height: o,
|
|
600
|
-
$: c
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
function pt(t) {
|
|
604
|
-
return C(t) ? t : t.contextElement;
|
|
605
|
-
}
|
|
606
|
-
function I(t) {
|
|
607
|
-
const e = pt(t);
|
|
608
|
-
if (!P(e))
|
|
609
|
-
return L(1);
|
|
610
|
-
const n = e.getBoundingClientRect(), {
|
|
611
|
-
width: o,
|
|
612
|
-
height: i,
|
|
613
|
-
$: r
|
|
614
|
-
} = Tt(e);
|
|
615
|
-
let s = (r ? nt(n.width) : n.width) / o, c = (r ? nt(n.height) : n.height) / i;
|
|
616
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
617
|
-
x: s,
|
|
618
|
-
y: c
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
const Kt = /* @__PURE__ */ L(0);
|
|
622
|
-
function Lt(t) {
|
|
623
|
-
const e = R(t);
|
|
624
|
-
return !mt() || !e.visualViewport ? Kt : {
|
|
625
|
-
x: e.visualViewport.offsetLeft,
|
|
626
|
-
y: e.visualViewport.offsetTop
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
function Gt(t, e, n) {
|
|
630
|
-
return e === void 0 && (e = !1), !n || e && n !== R(t) ? !1 : e;
|
|
631
|
-
}
|
|
632
|
-
function z(t, e, n, o) {
|
|
633
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
634
|
-
const i = t.getBoundingClientRect(), r = pt(t);
|
|
635
|
-
let s = L(1);
|
|
636
|
-
e && (o ? C(o) && (s = I(o)) : s = I(t));
|
|
637
|
-
const c = Gt(r, n, o) ? Lt(r) : L(0);
|
|
638
|
-
let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, d = i.width / s.x, u = i.height / s.y;
|
|
639
|
-
if (r) {
|
|
640
|
-
const m = R(r), a = o && C(o) ? R(o) : o;
|
|
641
|
-
let g = m, h = ft(g);
|
|
642
|
-
for (; h && o && a !== g; ) {
|
|
643
|
-
const w = I(h), p = h.getBoundingClientRect(), x = E(h), y = p.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = p.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
644
|
-
l *= w.x, f *= w.y, d *= w.x, u *= w.y, l += y, f += b, g = R(h), h = ft(g);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
return it({
|
|
648
|
-
width: d,
|
|
649
|
-
height: u,
|
|
650
|
-
x: l,
|
|
651
|
-
y: f
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
function wt(t, e) {
|
|
655
|
-
const n = ct(t).scrollLeft;
|
|
656
|
-
return e ? e.left + n : z(S(t)).left + n;
|
|
657
|
-
}
|
|
658
|
-
function Pt(t, e, n) {
|
|
659
|
-
n === void 0 && (n = !1);
|
|
660
|
-
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
661
|
-
// RTL <body> scrollbar.
|
|
662
|
-
wt(t, o)
|
|
663
|
-
)), r = o.top + e.scrollTop;
|
|
664
|
-
return {
|
|
665
|
-
x: i,
|
|
666
|
-
y: r
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
function Jt(t) {
|
|
670
|
-
let {
|
|
671
|
-
elements: e,
|
|
672
|
-
rect: n,
|
|
673
|
-
offsetParent: o,
|
|
674
|
-
strategy: i
|
|
675
|
-
} = t;
|
|
676
|
-
const r = i === "fixed", s = S(o), c = e ? rt(e.floating) : !1;
|
|
677
|
-
if (o === s || c && r)
|
|
678
|
-
return n;
|
|
679
|
-
let l = {
|
|
680
|
-
scrollLeft: 0,
|
|
681
|
-
scrollTop: 0
|
|
682
|
-
}, f = L(1);
|
|
683
|
-
const d = L(0), u = P(o);
|
|
684
|
-
if ((u || !u && !r) && ((X(o) !== "body" || Q(s)) && (l = ct(o)), P(o))) {
|
|
685
|
-
const a = z(o);
|
|
686
|
-
f = I(o), d.x = a.x + o.clientLeft, d.y = a.y + o.clientTop;
|
|
687
|
-
}
|
|
688
|
-
const m = s && !u && !r ? Pt(s, l, !0) : L(0);
|
|
689
|
-
return {
|
|
690
|
-
width: n.width * f.x,
|
|
691
|
-
height: n.height * f.y,
|
|
692
|
-
x: n.x * f.x - l.scrollLeft * f.x + d.x + m.x,
|
|
693
|
-
y: n.y * f.y - l.scrollTop * f.y + d.y + m.y
|
|
694
|
-
};
|
|
695
|
-
}
|
|
696
|
-
function Qt(t) {
|
|
697
|
-
return Array.from(t.getClientRects());
|
|
698
|
-
}
|
|
699
|
-
function Zt(t) {
|
|
700
|
-
const e = S(t), n = ct(t), o = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
701
|
-
let s = -n.scrollLeft + wt(t);
|
|
702
|
-
const c = -n.scrollTop;
|
|
703
|
-
return E(o).direction === "rtl" && (s += H(e.clientWidth, o.clientWidth) - i), {
|
|
704
|
-
width: i,
|
|
705
|
-
height: r,
|
|
706
|
-
x: s,
|
|
707
|
-
y: c
|
|
708
|
-
};
|
|
709
|
-
}
|
|
710
|
-
function te(t, e) {
|
|
711
|
-
const n = R(t), o = S(t), i = n.visualViewport;
|
|
712
|
-
let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
|
|
713
|
-
if (i) {
|
|
714
|
-
r = i.width, s = i.height;
|
|
715
|
-
const f = mt();
|
|
716
|
-
(!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
717
|
-
}
|
|
718
|
-
return {
|
|
719
|
-
width: r,
|
|
720
|
-
height: s,
|
|
721
|
-
x: c,
|
|
722
|
-
y: l
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
function ee(t, e) {
|
|
726
|
-
const n = z(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = P(t) ? I(t) : L(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = o * r.y;
|
|
727
|
-
return {
|
|
728
|
-
width: s,
|
|
729
|
-
height: c,
|
|
730
|
-
x: l,
|
|
731
|
-
y: f
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
function vt(t, e, n) {
|
|
735
|
-
let o;
|
|
736
|
-
if (e === "viewport")
|
|
737
|
-
o = te(t, n);
|
|
738
|
-
else if (e === "document")
|
|
739
|
-
o = Zt(S(t));
|
|
740
|
-
else if (C(e))
|
|
741
|
-
o = ee(e, n);
|
|
742
|
-
else {
|
|
743
|
-
const i = Lt(t);
|
|
744
|
-
o = {
|
|
745
|
-
x: e.x - i.x,
|
|
746
|
-
y: e.y - i.y,
|
|
747
|
-
width: e.width,
|
|
748
|
-
height: e.height
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
return it(o);
|
|
752
|
-
}
|
|
753
|
-
function St(t, e) {
|
|
754
|
-
const n = N(t);
|
|
755
|
-
return n === e || !C(n) || j(n) ? !1 : E(n).position === "fixed" || St(n, e);
|
|
756
|
-
}
|
|
757
|
-
function ne(t, e) {
|
|
758
|
-
const n = e.get(t);
|
|
759
|
-
if (n)
|
|
760
|
-
return n;
|
|
761
|
-
let o = J(t, [], !1).filter((c) => C(c) && X(c) !== "body"), i = null;
|
|
762
|
-
const r = E(t).position === "fixed";
|
|
763
|
-
let s = r ? N(t) : t;
|
|
764
|
-
for (; C(s) && !j(s); ) {
|
|
765
|
-
const c = E(s), l = dt(s);
|
|
766
|
-
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Q(s) && !l && St(t, s)) ? o = o.filter((d) => d !== s) : i = c, s = N(s);
|
|
767
|
-
}
|
|
768
|
-
return e.set(t, o), o;
|
|
769
|
-
}
|
|
770
|
-
function oe(t) {
|
|
771
|
-
let {
|
|
772
|
-
element: e,
|
|
773
|
-
boundary: n,
|
|
774
|
-
rootBoundary: o,
|
|
775
|
-
strategy: i
|
|
776
|
-
} = t;
|
|
777
|
-
const s = [...n === "clippingAncestors" ? rt(e) ? [] : ne(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((f, d) => {
|
|
778
|
-
const u = vt(e, d, i);
|
|
779
|
-
return f.top = H(u.top, f.top), f.right = Y(u.right, f.right), f.bottom = Y(u.bottom, f.bottom), f.left = H(u.left, f.left), f;
|
|
780
|
-
}, vt(e, c, i));
|
|
781
|
-
return {
|
|
782
|
-
width: l.right - l.left,
|
|
783
|
-
height: l.bottom - l.top,
|
|
784
|
-
x: l.left,
|
|
785
|
-
y: l.top
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
function ie(t) {
|
|
789
|
-
const {
|
|
790
|
-
width: e,
|
|
791
|
-
height: n
|
|
792
|
-
} = Tt(t);
|
|
793
|
-
return {
|
|
794
|
-
width: e,
|
|
795
|
-
height: n
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
function se(t, e, n) {
|
|
799
|
-
const o = P(e), i = S(e), r = n === "fixed", s = z(t, !0, r, e);
|
|
800
|
-
let c = {
|
|
801
|
-
scrollLeft: 0,
|
|
802
|
-
scrollTop: 0
|
|
803
|
-
};
|
|
804
|
-
const l = L(0);
|
|
805
|
-
if (o || !o && !r)
|
|
806
|
-
if ((X(e) !== "body" || Q(i)) && (c = ct(e)), o) {
|
|
807
|
-
const m = z(e, !0, r, e);
|
|
808
|
-
l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
|
|
809
|
-
} else i && (l.x = wt(i));
|
|
810
|
-
const f = i && !o && !r ? Pt(i, c) : L(0), d = s.left + c.scrollLeft - l.x - f.x, u = s.top + c.scrollTop - l.y - f.y;
|
|
811
|
-
return {
|
|
812
|
-
x: d,
|
|
813
|
-
y: u,
|
|
814
|
-
width: s.width,
|
|
815
|
-
height: s.height
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
function lt(t) {
|
|
819
|
-
return E(t).position === "static";
|
|
820
|
-
}
|
|
821
|
-
function bt(t, e) {
|
|
822
|
-
if (!P(t) || E(t).position === "fixed")
|
|
823
|
-
return null;
|
|
824
|
-
if (e)
|
|
825
|
-
return e(t);
|
|
826
|
-
let n = t.offsetParent;
|
|
827
|
-
return S(t) === n && (n = n.ownerDocument.body), n;
|
|
828
|
-
}
|
|
829
|
-
function Dt(t, e) {
|
|
830
|
-
const n = R(t);
|
|
831
|
-
if (rt(t))
|
|
832
|
-
return n;
|
|
833
|
-
if (!P(t)) {
|
|
834
|
-
let i = N(t);
|
|
835
|
-
for (; i && !j(i); ) {
|
|
836
|
-
if (C(i) && !lt(i))
|
|
837
|
-
return i;
|
|
838
|
-
i = N(i);
|
|
839
|
-
}
|
|
840
|
-
return n;
|
|
841
|
-
}
|
|
842
|
-
let o = bt(t, e);
|
|
843
|
-
for (; o && Bt(o) && lt(o); )
|
|
844
|
-
o = bt(o, e);
|
|
845
|
-
return o && j(o) && lt(o) && !dt(o) ? n : o || Mt(t) || n;
|
|
846
|
-
}
|
|
847
|
-
const re = async function(t) {
|
|
848
|
-
const e = this.getOffsetParent || Dt, n = this.getDimensions, o = await n(t.floating);
|
|
849
|
-
return {
|
|
850
|
-
reference: se(t.reference, await e(t.floating), t.strategy),
|
|
851
|
-
floating: {
|
|
852
|
-
x: 0,
|
|
853
|
-
y: 0,
|
|
854
|
-
width: o.width,
|
|
855
|
-
height: o.height
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
|
-
};
|
|
859
|
-
function ce(t) {
|
|
860
|
-
return E(t).direction === "rtl";
|
|
861
|
-
}
|
|
862
|
-
const le = {
|
|
863
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Jt,
|
|
864
|
-
getDocumentElement: S,
|
|
865
|
-
getClippingRect: oe,
|
|
866
|
-
getOffsetParent: Dt,
|
|
867
|
-
getElementRects: re,
|
|
868
|
-
getClientRects: Qt,
|
|
869
|
-
getDimensions: ie,
|
|
870
|
-
getScale: I,
|
|
871
|
-
isElement: C,
|
|
872
|
-
isRTL: ce
|
|
873
|
-
};
|
|
874
|
-
function kt(t, e) {
|
|
875
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
876
|
-
}
|
|
877
|
-
function fe(t, e) {
|
|
878
|
-
let n = null, o;
|
|
879
|
-
const i = S(t);
|
|
880
|
-
function r() {
|
|
881
|
-
var c;
|
|
882
|
-
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
883
|
-
}
|
|
884
|
-
function s(c, l) {
|
|
885
|
-
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
886
|
-
const f = t.getBoundingClientRect(), {
|
|
887
|
-
left: d,
|
|
888
|
-
top: u,
|
|
889
|
-
width: m,
|
|
890
|
-
height: a
|
|
891
|
-
} = f;
|
|
892
|
-
if (c || e(), !m || !a)
|
|
893
|
-
return;
|
|
894
|
-
const g = et(u), h = et(i.clientWidth - (d + m)), w = et(i.clientHeight - (u + a)), p = et(d), y = {
|
|
895
|
-
rootMargin: -g + "px " + -h + "px " + -w + "px " + -p + "px",
|
|
896
|
-
threshold: H(0, Y(1, l)) || 1
|
|
897
|
-
};
|
|
898
|
-
let b = !0;
|
|
899
|
-
function v(D) {
|
|
900
|
-
const O = D[0].intersectionRatio;
|
|
901
|
-
if (O !== l) {
|
|
902
|
-
if (!b)
|
|
903
|
-
return s();
|
|
904
|
-
O ? s(!1, O) : o = setTimeout(() => {
|
|
905
|
-
s(!1, 1e-7);
|
|
906
|
-
}, 1e3);
|
|
907
|
-
}
|
|
908
|
-
O === 1 && !kt(f, t.getBoundingClientRect()) && s(), b = !1;
|
|
909
|
-
}
|
|
910
|
-
try {
|
|
911
|
-
n = new IntersectionObserver(v, {
|
|
912
|
-
...y,
|
|
913
|
-
// Handle <iframe>s
|
|
914
|
-
root: i.ownerDocument
|
|
915
|
-
});
|
|
916
|
-
} catch {
|
|
917
|
-
n = new IntersectionObserver(v, y);
|
|
918
|
-
}
|
|
919
|
-
n.observe(t);
|
|
920
|
-
}
|
|
921
|
-
return s(!0), r;
|
|
922
|
-
}
|
|
923
|
-
function ae(t, e, n, o) {
|
|
924
|
-
o === void 0 && (o = {});
|
|
925
|
-
const {
|
|
926
|
-
ancestorScroll: i = !0,
|
|
927
|
-
ancestorResize: r = !0,
|
|
928
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
929
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
930
|
-
animationFrame: l = !1
|
|
931
|
-
} = o, f = pt(t), d = i || r ? [...f ? J(f) : [], ...J(e)] : [];
|
|
932
|
-
d.forEach((p) => {
|
|
933
|
-
i && p.addEventListener("scroll", n, {
|
|
934
|
-
passive: !0
|
|
935
|
-
}), r && p.addEventListener("resize", n);
|
|
936
|
-
});
|
|
937
|
-
const u = f && c ? fe(f, n) : null;
|
|
938
|
-
let m = -1, a = null;
|
|
939
|
-
s && (a = new ResizeObserver((p) => {
|
|
940
|
-
let [x] = p;
|
|
941
|
-
x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
942
|
-
var y;
|
|
943
|
-
(y = a) == null || y.observe(e);
|
|
944
|
-
})), n();
|
|
945
|
-
}), f && !l && a.observe(f), a.observe(e));
|
|
946
|
-
let g, h = l ? z(t) : null;
|
|
947
|
-
l && w();
|
|
948
|
-
function w() {
|
|
949
|
-
const p = z(t);
|
|
950
|
-
h && !kt(h, p) && n(), h = p, g = requestAnimationFrame(w);
|
|
951
|
-
}
|
|
952
|
-
return n(), () => {
|
|
953
|
-
var p;
|
|
954
|
-
d.forEach((x) => {
|
|
955
|
-
i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
|
|
956
|
-
}), u == null || u(), (p = a) == null || p.disconnect(), a = null, l && cancelAnimationFrame(g);
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
const ue = Xt, de = Ut, me = Yt, ge = jt, he = (t, e, n) => {
|
|
960
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
961
|
-
platform: le,
|
|
962
|
-
...n
|
|
963
|
-
}, r = {
|
|
964
|
-
...i.platform,
|
|
965
|
-
_c: o
|
|
966
|
-
};
|
|
967
|
-
return It(t, e, {
|
|
968
|
-
...i,
|
|
969
|
-
platform: r
|
|
970
|
-
});
|
|
971
|
-
};
|
|
972
|
-
export {
|
|
973
|
-
ae as a,
|
|
974
|
-
P as b,
|
|
975
|
-
he as c,
|
|
976
|
-
ge as d,
|
|
977
|
-
C as e,
|
|
978
|
-
me as f,
|
|
979
|
-
R as g,
|
|
980
|
-
J as h,
|
|
981
|
-
xt as i,
|
|
982
|
-
mt as j,
|
|
983
|
-
j as k,
|
|
984
|
-
N as l,
|
|
985
|
-
E as m,
|
|
986
|
-
X as n,
|
|
987
|
-
ue as o,
|
|
988
|
-
de as s
|
|
989
|
-
};
|