@servicetitan/anvil2 1.3.4 → 1.4.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/{Alert-85a791c2.js → Alert-097d82a2.js} +2 -2
- package/Alert-097d82a2.js.map +1 -0
- package/Alert-d2a2976a.cjs +2 -0
- package/Alert-d2a2976a.cjs.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.js +1 -1
- package/Announcement.cjs +1 -1
- package/Announcement.cjs.map +1 -1
- package/Announcement.js +1 -1
- package/Announcement.js.map +1 -1
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.cjs.map +1 -1
- package/Avatar.js +14 -14
- package/Avatar.js.map +1 -1
- package/Badge.cjs.map +1 -1
- package/Badge.js +7 -7
- package/Badge.js.map +1 -1
- package/Button.cjs +1 -1
- package/Button.js +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.js +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.js +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.js +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.cjs.map +1 -1
- package/Calendar.js +935 -936
- package/Calendar.js.map +1 -1
- package/Card.cjs.map +1 -1
- package/Card.js.map +1 -1
- package/{Checkbox-d1db5a71.cjs → Checkbox-38b018dd.cjs} +2 -2
- package/Checkbox-38b018dd.cjs.map +1 -0
- package/{Checkbox-634c4d3d.js → Checkbox-80900b39.js} +3 -3
- package/Checkbox-80900b39.js.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.js +5 -5
- package/{Chip-73b032eb.js → Chip-68233f63.js} +3 -3
- package/Chip-68233f63.js.map +1 -0
- package/Chip-c32236d6.cjs +2 -0
- package/Chip-c32236d6.cjs.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +6 -6
- package/Combobox.cjs.map +1 -1
- package/Combobox.js +12 -12
- package/Combobox.js.map +1 -1
- package/Details.cjs +1 -1
- package/Details.cjs.map +1 -1
- package/Details.js +9 -9
- package/Details.js.map +1 -1
- package/{Dialog-1984afe2.js → Dialog-893ed36b.js} +3 -3
- package/Dialog-893ed36b.js.map +1 -0
- package/Dialog-bf33c086.cjs +2 -0
- package/{Dialog-1984afe2.js.map → Dialog-bf33c086.cjs.map} +1 -1
- package/Dialog.cjs +1 -1
- package/Dialog.js +1 -1
- package/Divider.cjs.map +1 -1
- package/Divider.js.map +1 -1
- package/Drawer.cjs +1 -1
- package/Drawer.cjs.map +1 -1
- package/Drawer.js +8 -8
- package/Drawer.js.map +1 -1
- package/Flex-d06c75c0.js.map +1 -1
- package/Flex-da1ad9db.cjs.map +1 -1
- package/Grid.cjs.map +1 -1
- package/Grid.js.map +1 -1
- package/Icon-847b3515.cjs.map +1 -1
- package/Icon-be690f0b.js.map +1 -1
- package/InputMask.cjs +2 -0
- package/InputMask.cjs.map +1 -0
- package/InputMask.d.ts +13 -0
- package/InputMask.js +126 -0
- package/InputMask.js.map +1 -0
- package/{Label-e2593298.cjs → Label-aca119f2.cjs} +2 -2
- package/{Label-e2593298.cjs.map → Label-aca119f2.cjs.map} +1 -1
- package/{Label-854a39e4.js → Label-ed5cd8a7.js} +2 -2
- package/{Label-854a39e4.js.map → Label-ed5cd8a7.js.map} +1 -1
- package/Link.cjs +1 -1
- package/Link.js +1 -1
- package/ListView.cjs +1 -1
- package/ListView.cjs.map +1 -1
- package/ListView.js +2 -2
- package/ListView.js.map +1 -1
- package/Listbox.cjs +1 -1
- package/Listbox.cjs.map +1 -1
- package/Listbox.js +10 -10
- package/Listbox.js.map +1 -1
- package/LocalizationProvider.cjs.map +1 -1
- package/LocalizationProvider.js.map +1 -1
- package/Menu.cjs +1 -1
- package/Menu.cjs.map +1 -1
- package/Menu.js +28 -28
- package/Menu.js.map +1 -1
- package/{Overflow-a026904d.js → Overflow-a2f48366.js} +2 -2
- package/Overflow-a2f48366.js.map +1 -0
- package/{Overflow-057bbf4e.cjs → Overflow-b4d706e8.cjs} +2 -2
- package/Overflow-b4d706e8.cjs.map +1 -0
- package/Overflow.cjs +1 -1
- package/Overflow.js +15 -15
- package/Page.cjs +1 -1
- package/Page.cjs.map +1 -1
- package/Page.js +6 -5
- package/Page.js.map +1 -1
- package/Popover-44119105.js +276 -0
- package/Popover-44119105.js.map +1 -0
- package/Popover-665147d6.cjs +2 -0
- package/Popover-665147d6.cjs.map +1 -0
- package/Popover.cjs +1 -1
- package/Popover.js +15 -15
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.cjs.map +1 -1
- package/ProgressBar.js +1 -1
- package/ProgressBar.js.map +1 -1
- package/Radio.cjs +1 -1
- package/Radio.cjs.map +1 -1
- package/Radio.js +25 -25
- package/Radio.js.map +1 -1
- package/SegmentedControl.cjs +1 -1
- package/SegmentedControl.cjs.map +1 -1
- package/SegmentedControl.js +28 -28
- package/SegmentedControl.js.map +1 -1
- package/SideNav.cjs +1 -1
- package/SideNav.cjs.map +1 -1
- package/SideNav.js +10 -10
- package/SideNav.js.map +1 -1
- package/SrOnly-0c7fd87a.js.map +1 -1
- package/SrOnly-91a467dc.cjs.map +1 -1
- package/Stepper.cjs +1 -1
- package/Stepper.cjs.map +1 -1
- package/Stepper.js +12 -12
- package/Stepper.js.map +1 -1
- package/Switch.cjs.map +1 -1
- package/Switch.js.map +1 -1
- package/Tab.cjs +1 -1
- package/Tab.cjs.map +1 -1
- package/Tab.js +14 -14
- package/Tab.js.map +1 -1
- package/Text-08c90c22.js.map +1 -1
- package/Text-8ed03ac7.cjs.map +1 -1
- package/TextField-7d04b45f.js +142 -0
- package/TextField-7d04b45f.js.map +1 -0
- package/TextField-bd5f664e.cjs +2 -0
- package/TextField-bd5f664e.cjs.map +1 -0
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.css +1 -0
- package/TextField.js +21 -156
- package/TextField.js.map +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.cjs.map +1 -1
- package/Textarea.js +30 -30
- package/Textarea.js.map +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/Toast.cjs +3 -3
- package/Toast.cjs.map +1 -1
- package/Toast.js +9 -9
- package/Toast.js.map +1 -1
- package/{Tooltip-dcc5d45c.js → Tooltip-13761a78.js} +28 -28
- package/Tooltip-13761a78.js.map +1 -0
- package/Tooltip-ea2b58dc.cjs +2 -0
- package/Tooltip-ea2b58dc.cjs.map +1 -0
- package/Tooltip.cjs +1 -1
- package/Tooltip.js +1 -1
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +19 -0
- package/anvil2.js +110 -105
- package/anvil2.js.map +1 -1
- package/{index-11b6ca91-d30fd1d3.cjs → index-16923f36-13f8775f.cjs} +2 -2
- package/index-16923f36-13f8775f.cjs.map +1 -0
- package/{index-11b6ca91-14b4e485.js → index-16923f36-b76f5ccb.js} +6 -6
- package/index-16923f36-b76f5ccb.js.map +1 -0
- package/{index-04060912.js → index-204e7e78.js} +1115 -1062
- package/index-204e7e78.js.map +1 -0
- package/{index-902bf2b0.js → index-3df95505.js} +4 -4
- package/index-3df95505.js.map +1 -0
- package/index-628a2685.cjs +5 -0
- package/index-628a2685.cjs.map +1 -0
- package/{index-dcf78e3f.cjs → index-98c0e500.cjs} +2 -2
- package/index-98c0e500.cjs.map +1 -0
- package/{index-eb2e706f-03380994.js → index-f6869ed6-10ae0c3c.js} +2 -2
- package/index-f6869ed6-10ae0c3c.js.map +1 -0
- package/{index-eb2e706f-ff6c4157.cjs → index-f6869ed6-8e47d5d4.cjs} +2 -2
- package/index-f6869ed6-8e47d5d4.cjs.map +1 -0
- package/index21.css +1 -1
- package/index22.css +1 -1
- package/index23.css +1 -1
- package/package.json +2 -2
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +1 -1
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.cjs.map +1 -1
- package/useMergeRefs.js +9 -2
- package/useMergeRefs.js.map +1 -1
- package/Alert-673d75aa.cjs +0 -2
- package/Alert-673d75aa.cjs.map +0 -1
- package/Alert-85a791c2.js.map +0 -1
- package/Checkbox-634c4d3d.js.map +0 -1
- package/Checkbox-d1db5a71.cjs.map +0 -1
- package/Chip-73b032eb.js.map +0 -1
- package/Chip-88873569.cjs +0 -2
- package/Chip-88873569.cjs.map +0 -1
- package/Dialog-de6969a2.cjs +0 -2
- package/Dialog-de6969a2.cjs.map +0 -1
- package/Overflow-057bbf4e.cjs.map +0 -1
- package/Overflow-a026904d.js.map +0 -1
- package/Popover-aaeea980.js +0 -272
- package/Popover-aaeea980.js.map +0 -1
- package/Popover-e336dabc.cjs +0 -2
- package/Popover-e336dabc.cjs.map +0 -1
- package/Tooltip-2ecbf35e.cjs +0 -2
- package/Tooltip-2ecbf35e.cjs.map +0 -1
- package/Tooltip-dcc5d45c.js.map +0 -1
- package/index-04060912.js.map +0 -1
- package/index-11b6ca91-14b4e485.js.map +0 -1
- package/index-11b6ca91-d30fd1d3.cjs.map +0 -1
- package/index-40821bc4.cjs +0 -2
- package/index-40821bc4.cjs.map +0 -1
- package/index-49242812.js +0 -59
- package/index-49242812.js.map +0 -1
- package/index-69174413.cjs +0 -5
- package/index-69174413.cjs.map +0 -1
- package/index-902bf2b0.js.map +0 -1
- package/index-dcf78e3f.cjs.map +0 -1
- package/index-eb2e706f-03380994.js.map +0 -1
- package/index-eb2e706f-ff6c4157.cjs.map +0 -1
- package/index24.css +0 -1
- /package/{index-eb2e706f.css → index-f6869ed6.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-11b6ca91-14b4e485.js","sources":["../node_modules/@servicetitan/hammer-react/dist/kebabize.js","../node_modules/@servicetitan/hammer-react/dist/index-11b6ca91.js"],"sourcesContent":["function p(r) {\n return r.split(\"\").map((a, o) => {\n const n = r[o - 1];\n return isNaN(parseFloat(a)) ? a.toUpperCase() === a ? `${o !== 0 ? \"-\" : \"\"}${a.toLowerCase()}` : a : isNaN(parseFloat(n)) ? `${o !== 0 ? \"-\" : \"\"}${a.toLowerCase()}` : a;\n }).join(\"\");\n}\nexport {\n p as kebabize\n};\n//# sourceMappingURL=kebabize.js.map\n","import { j as f } from \"./jsx-runtime-944c88e2.js\";\nimport { createContext as b, useMemo as g, useEffect as y } from \"react\";\nimport T from \"classnames\";\nimport \"tinycolor2\";\nimport { core as m } from \"@servicetitan/hammer-token\";\nimport { useLayoutPropsUtil as j } from \"./useLayoutPropsUtil.js\";\nimport \"@floating-ui/react\";\nimport \"lodash.merge\";\nimport { kebabize as c } from \"./kebabize.js\";\nconst x = (n, r) => {\n const a = n.name;\n let o = document.getElementById(\n `${r}-themeprovider-${a}`\n );\n if (!o && m.semantic && m.primitive) {\n o = document.createElement(\"style\"), o.setAttribute(\"id\", `${r}-themeprovider-${a}`), document.head.appendChild(o);\n let e = \"\";\n e += `.${r}-themeprovider-${a}-common {`;\n const s = m.primitive;\n Object.keys(m.primitive).forEach(function(t) {\n t.startsWith(\"Size\") ? e += `--${c(t)}:${s[t].value}; ` : t.startsWith(\"Color\") && (e += `--${c(t)}:${s[t].value}; `);\n }), e += \"color: var(--foreground-color);\", e += \"font-family: var(--typography-paragraph-font-family);\", e += \"}\", e += `.${r}-themeprovider-${a}-light {`;\n const i = m.semantic;\n Object.keys(m.semantic).forEach(function(t) {\n e += `--${c(t)}:${i[t].value}; `;\n }), e += \"}\", e += `.${r}-themeprovider-${a}-dark {`, e += \"color-scheme: dark;\", Object.keys(m.semantic).forEach(function(t) {\n var l, p, d, h, u, v, $;\n (d = (p = (l = i[t].attributes) == null ? void 0 : l.appearance) == null ? void 0 : p.dark) != null && d.value ? e += `--${c(t)}:${($ = (v = (u = (h = i[t]) == null ? void 0 : h.attributes) == null ? void 0 : u.appearance) == null ? void 0 : v.dark) == null ? void 0 : $.value}; ` : e += `--${c(t)}:${i[t].value}; `;\n }), e += \"}\", o.textContent += e;\n return;\n }\n}, C = b(\n {}\n), L = (n) => {\n const { layoutStyles: r, componentProps: a } = j(n), {\n theme: o,\n mode: e,\n prefix: s = \"hammer\",\n children: i,\n className: t,\n style: l,\n ...p\n } = a, { className: d } = E({ theme: o, mode: e, prefix: s }), h = T(d, t), u = { ...l, ...r }, v = g(() => ({ theme: o, mode: e, prefix: s }), [o, e, s]);\n return /* @__PURE__ */ f.jsx(C.Provider, { value: v, children: /* @__PURE__ */ f.jsx(\"div\", { className: h, style: u, ...p, children: i }) });\n}, E = (n) => {\n const { theme: r = m, mode: a = \"light\", prefix: o = \"hammer\" } = n;\n return y(() => {\n x(r, o);\n }, [r, o]), {\n className: `${o}-themeprovider-${r.name}-${a} ${o}-themeprovider-${r.name}-common`\n };\n};\nexport {\n L as T,\n C as a,\n E as u\n};\n//# sourceMappingURL=index-11b6ca91.js.map\n"],"names":["p","r","a","o","n","x","m.semantic","m.primitive","e","s","t","c","i","l","d","h","v","$","C","b","L","j","E","T","g","f","m","y"],"mappings":"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","x_google_ignoreList":[0,1]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-11b6ca91-d30fd1d3.cjs","sources":["../node_modules/@servicetitan/hammer-react/dist/kebabize.js","../node_modules/@servicetitan/hammer-react/dist/index-11b6ca91.js"],"sourcesContent":["function p(r) {\n return r.split(\"\").map((a, o) => {\n const n = r[o - 1];\n return isNaN(parseFloat(a)) ? a.toUpperCase() === a ? `${o !== 0 ? \"-\" : \"\"}${a.toLowerCase()}` : a : isNaN(parseFloat(n)) ? `${o !== 0 ? \"-\" : \"\"}${a.toLowerCase()}` : a;\n }).join(\"\");\n}\nexport {\n p as kebabize\n};\n//# sourceMappingURL=kebabize.js.map\n","import { j as f } from \"./jsx-runtime-944c88e2.js\";\nimport { createContext as b, useMemo as g, useEffect as y } from \"react\";\nimport T from \"classnames\";\nimport \"tinycolor2\";\nimport { core as m } from \"@servicetitan/hammer-token\";\nimport { useLayoutPropsUtil as j } from \"./useLayoutPropsUtil.js\";\nimport \"@floating-ui/react\";\nimport \"lodash.merge\";\nimport { kebabize as c } from \"./kebabize.js\";\nconst x = (n, r) => {\n const a = n.name;\n let o = document.getElementById(\n `${r}-themeprovider-${a}`\n );\n if (!o && m.semantic && m.primitive) {\n o = document.createElement(\"style\"), o.setAttribute(\"id\", `${r}-themeprovider-${a}`), document.head.appendChild(o);\n let e = \"\";\n e += `.${r}-themeprovider-${a}-common {`;\n const s = m.primitive;\n Object.keys(m.primitive).forEach(function(t) {\n t.startsWith(\"Size\") ? e += `--${c(t)}:${s[t].value}; ` : t.startsWith(\"Color\") && (e += `--${c(t)}:${s[t].value}; `);\n }), e += \"color: var(--foreground-color);\", e += \"font-family: var(--typography-paragraph-font-family);\", e += \"}\", e += `.${r}-themeprovider-${a}-light {`;\n const i = m.semantic;\n Object.keys(m.semantic).forEach(function(t) {\n e += `--${c(t)}:${i[t].value}; `;\n }), e += \"}\", e += `.${r}-themeprovider-${a}-dark {`, e += \"color-scheme: dark;\", Object.keys(m.semantic).forEach(function(t) {\n var l, p, d, h, u, v, $;\n (d = (p = (l = i[t].attributes) == null ? void 0 : l.appearance) == null ? void 0 : p.dark) != null && d.value ? e += `--${c(t)}:${($ = (v = (u = (h = i[t]) == null ? void 0 : h.attributes) == null ? void 0 : u.appearance) == null ? void 0 : v.dark) == null ? void 0 : $.value}; ` : e += `--${c(t)}:${i[t].value}; `;\n }), e += \"}\", o.textContent += e;\n return;\n }\n}, C = b(\n {}\n), L = (n) => {\n const { layoutStyles: r, componentProps: a } = j(n), {\n theme: o,\n mode: e,\n prefix: s = \"hammer\",\n children: i,\n className: t,\n style: l,\n ...p\n } = a, { className: d } = E({ theme: o, mode: e, prefix: s }), h = T(d, t), u = { ...l, ...r }, v = g(() => ({ theme: o, mode: e, prefix: s }), [o, e, s]);\n return /* @__PURE__ */ f.jsx(C.Provider, { value: v, children: /* @__PURE__ */ f.jsx(\"div\", { className: h, style: u, ...p, children: i }) });\n}, E = (n) => {\n const { theme: r = m, mode: a = \"light\", prefix: o = \"hammer\" } = n;\n return y(() => {\n x(r, o);\n }, [r, o]), {\n className: `${o}-themeprovider-${r.name}-${a} ${o}-themeprovider-${r.name}-common`\n };\n};\nexport {\n L as T,\n C as a,\n E as u\n};\n//# sourceMappingURL=index-11b6ca91.js.map\n"],"names":["p","r","a","o","n","x","m.semantic","m.primitive","e","s","t","c","i","l","h","u","$","b","L","j","E","T","g","f","m","y"],"mappings":"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","x_google_ignoreList":[0,1]}
|
package/index-40821bc4.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-944c88e2-2b81c205.cjs"),g=require("./index-1f4f169d.cjs"),x=require("./index-11b6ca91-d30fd1d3.cjs"),H=require("./index-69174413.cjs"),r=require("react"),R=require("./index-ef2e9d11.cjs");require("./tinycolor-3b50a250.cjs");const h=require("./useLayoutPropsUtil-cd33328b.cjs"),P=require("./LocalizationProvider.cjs"),T=require("./primitive-898a5f6f.cjs"),q=r.createContext({}),y=r.createContext(null),E=()=>{const t=r.useContext(y);if(t==null)throw new Error("Tooltip components must be wrapped in <HammerProvider /> or <TooltipGroupContext.Provider />");return t},S=t=>{var o,i;const{layoutStyles:f,componentProps:j}=h.J(t),{themeData:D,localizationData:C,children:a,className:b,style:G,...n}=j,{theme:l=g.x,mode:s="light"}=D??{},{locale:c="en",dir:u="ltr",translations:d={}}=C??{},{className:N}=x.E({theme:l,mode:s}),m=R.G(N,b),p={...G,...f},w=h.H(),[v,z]=r.useState(!1),L=parseInt(((i=(o=T.primitive)==null?void 0:o.Duration)==null?void 0:i.value.replace("ms",""))??"200",10),M=r.useMemo(()=>({disableDelayGroup:z}),[v]);return e.fr.jsx(q.Provider,{value:{breakpoint:w},children:e.fr.jsx(x.C.Provider,{value:{theme:l,mode:s},children:e.fr.jsx(y.Provider,{value:M,children:v?e.fr.jsx(P.LocalizationProvider,{translationData:{locale:c,dir:u,translations:d},className:m,style:p,...n,children:a}):e.fr.jsx(H.FloatingDelayGroup,{delay:L,children:e.fr.jsx(P.LocalizationProvider,{translationData:{locale:c,dir:u,translations:d},className:m,style:p,...n,children:a})})})})})};exports.M=q;exports.X=E;exports.Y=S;
|
|
2
|
-
//# sourceMappingURL=index-40821bc4.cjs.map
|
package/index-40821bc4.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-40821bc4.cjs","sources":["../node_modules/@servicetitan/hammer-react/dist/index-1a152ffc.js"],"sourcesContent":["import { j as o } from \"./jsx-runtime-944c88e2.js\";\nimport { core as x } from \"@servicetitan/hammer-token\";\nimport { u as g, a as k } from \"./index-11b6ca91.js\";\nimport { FloatingDelayGroup as z } from \"@floating-ui/react\";\nimport { createContext as h, useState as E, useMemo as L, useContext as S } from \"react\";\nimport B from \"classnames\";\nimport \"tinycolor2\";\nimport { useBreakpoint as F } from \"./useBreakpoint.js\";\nimport { useLayoutPropsUtil as I } from \"./useLayoutPropsUtil.js\";\nimport { LocalizationProvider as v } from \"./LocalizationProvider.js\";\nconst M = h(\n {}\n), y = h(null), X = () => {\n const e = S(y);\n if (e == null)\n throw new Error(\n \"Tooltip components must be wrapped in <HammerProvider /> or <TooltipGroupContext.Provider />\"\n );\n return e;\n}, Y = (e) => {\n var u, d;\n const { layoutStyles: P, componentProps: f } = I(e), { themeData: D, localizationData: C, children: t, className: j, style: b, ...r } = f, { theme: s = x, mode: a = \"light\" } = D ?? {}, {\n locale: n = \"en\",\n dir: i = \"ltr\",\n translations: l = {}\n } = C ?? {}, { className: G } = g({ theme: s, mode: a }), m = B(G, j), c = { ...b, ...P }, T = F(), [p, N] = E(!1), H = parseInt(\n ((d = (u = x.primitive) == null ? void 0 : u.Duration) == null ? void 0 : d.value.replace(\"ms\", \"\")) ?? \"200\",\n 10\n ), w = L(\n () => ({ disableDelayGroup: N }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [p]\n );\n return /* @__PURE__ */ o.jsx(M.Provider, { value: { breakpoint: T }, children: /* @__PURE__ */ o.jsx(k.Provider, { value: { theme: s, mode: a }, children: /* @__PURE__ */ o.jsx(y.Provider, { value: w, children: p ? /* @__PURE__ */ o.jsx(\n v,\n {\n translationData: { locale: n, dir: i, translations: l },\n className: m,\n style: c,\n ...r,\n children: t\n }\n ) : /* @__PURE__ */ o.jsx(z, { delay: H, children: /* @__PURE__ */ o.jsx(\n v,\n {\n translationData: { locale: n, dir: i, translations: l },\n className: m,\n style: c,\n ...r,\n children: t\n }\n ) }) }) }) });\n};\nexport {\n Y as H,\n M as a,\n X as u\n};\n//# sourceMappingURL=index-1a152ffc.js.map\n"],"names":["M","h","X","e","S","Y","u","d","P","f","I","t","j","b","r","s","x","a","n","i","l","G","g","B","c","T","F","p","N","E","H","x.primitive","w","L","o","k","v","z"],"mappings":"+YAUMA,EAAIC,EAAC,cACT,CAAE,CACJ,EAAG,EAAIA,EAAC,cAAC,IAAI,EAAGC,EAAI,IAAM,CACxB,MAAMC,EAAIC,aAAE,CAAC,EACb,GAAID,GAAK,KACP,MAAM,IAAI,MACR,8FACN,EACE,OAAOA,CACT,EAAGE,EAAKF,GAAM,CACZ,IAAIG,EAAGC,EACP,KAAM,CAAE,aAAcC,EAAG,eAAgBC,CAAC,EAAKC,EAAAA,EAAEP,CAAC,EAAG,CAAE,UAAW,EAAG,iBAAkB,EAAG,SAAUQ,EAAG,UAAWC,EAAG,MAAOC,EAAG,GAAGC,CAAC,EAAKL,EAAG,CAAE,MAAOM,EAAIC,EAAC,EAAE,KAAMC,EAAI,OAAO,EAAK,GAAK,CAAA,EAAI,CACxL,OAAQC,EAAI,KACZ,IAAKC,EAAI,MACT,aAAcC,EAAI,CAAE,CACxB,EAAM,GAAK,CAAA,EAAI,CAAE,UAAWC,CAAC,EAAKC,EAAAA,EAAE,CAAE,MAAOP,EAAG,KAAME,CAAC,CAAE,EAAG,EAAIM,EAAC,EAACF,EAAGT,CAAC,EAAGY,EAAI,CAAE,GAAGX,EAAG,GAAGL,CAAG,EAAEiB,EAAIC,EAAC,EAAA,EAAI,CAACC,EAAGC,CAAC,EAAIC,EAAAA,SAAE,EAAE,EAAGC,EAAI,WACpHvB,GAAKD,EAAIyB,EAAW,YAAK,KAAO,OAASzB,EAAE,WAAa,KAAO,OAASC,EAAE,MAAM,QAAQ,KAAM,EAAE,IAAM,MACxG,EACD,EAAEyB,EAAIC,EAAC,QACN,KAAO,CAAE,kBAAmBL,IAE5B,CAACD,CAAC,CACN,EACE,OAAuBO,EAAAA,GAAE,IAAIlC,EAAE,SAAU,CAAE,MAAO,CAAE,WAAYyB,CAAG,EAAE,SAA0BS,EAAC,GAAC,IAAIC,EAAC,EAAC,SAAU,CAAE,MAAO,CAAE,MAAOpB,EAAG,KAAME,CAAG,EAAE,SAA0BiB,EAAC,GAAC,IAAI,EAAE,SAAU,CAAE,MAAOF,EAAG,SAAUL,EAAoBO,EAAAA,GAAE,IACvOE,EAAC,qBACD,CACE,gBAAiB,CAAE,OAAQlB,EAAG,IAAKC,EAAG,aAAcC,CAAG,EACvD,UAAW,EACX,MAAOI,EACP,GAAGV,EACH,SAAUH,CACX,CACL,EAAsBuB,EAAC,GAAC,IAAIG,qBAAG,CAAE,MAAOP,EAAG,SAA0BI,EAAAA,GAAE,IACnEE,EAAC,qBACD,CACE,gBAAiB,CAAE,OAAQlB,EAAG,IAAKC,EAAG,aAAcC,CAAG,EACvD,UAAW,EACX,MAAOI,EACP,GAAGV,EACH,SAAUH,CACX,CACF,CAAA,CAAE,CAAG,CAAA,EAAG,CAAC,CAAE,CACd","x_google_ignoreList":[0]}
|
package/index-49242812.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { f as r } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
2
|
-
import { x as H } from "./index-47e4931c.js";
|
|
3
|
-
import { E as T, C as g } from "./index-11b6ca91-14b4e485.js";
|
|
4
|
-
import { D as z } from "./index-04060912.js";
|
|
5
|
-
import { createContext as f, useState as E, useMemo as M, useContext as S } from "react";
|
|
6
|
-
import { G as k } from "./index-c6e22bb9.js";
|
|
7
|
-
import "./tinycolor-d415b1fd.js";
|
|
8
|
-
import { J as F, H as I } from "./useLayoutPropsUtil-f34e9597.js";
|
|
9
|
-
import { LocalizationProvider as v } from "./LocalizationProvider.js";
|
|
10
|
-
import { p as J } from "./primitive-90e4e69c.js";
|
|
11
|
-
const L = f(
|
|
12
|
-
{}
|
|
13
|
-
), h = f(null), V = () => {
|
|
14
|
-
const e = S(h);
|
|
15
|
-
if (e == null)
|
|
16
|
-
throw new Error(
|
|
17
|
-
"Tooltip components must be wrapped in <HammerProvider /> or <TooltipGroupContext.Provider />"
|
|
18
|
-
);
|
|
19
|
-
return e;
|
|
20
|
-
}, W = (e) => {
|
|
21
|
-
var o, t;
|
|
22
|
-
const { layoutStyles: x, componentProps: y } = F(e), { themeData: D, localizationData: P, children: a, className: j, style: G, ...l } = y, { theme: i = H, mode: n = "light" } = D ?? {}, {
|
|
23
|
-
locale: s = "en",
|
|
24
|
-
dir: m = "ltr",
|
|
25
|
-
translations: p = {}
|
|
26
|
-
} = P ?? {}, { className: C } = T({ theme: i, mode: n }), d = k(C, j), c = { ...G, ...x }, N = I(), [u, b] = E(!1), w = parseInt(
|
|
27
|
-
((t = (o = J) == null ? void 0 : o.Duration) == null ? void 0 : t.value.replace("ms", "")) ?? "200",
|
|
28
|
-
10
|
|
29
|
-
), $ = M(
|
|
30
|
-
() => ({ disableDelayGroup: b }),
|
|
31
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
-
[u]
|
|
33
|
-
);
|
|
34
|
-
return /* @__PURE__ */ r.jsx(L.Provider, { value: { breakpoint: N }, children: /* @__PURE__ */ r.jsx(g.Provider, { value: { theme: i, mode: n }, children: /* @__PURE__ */ r.jsx(h.Provider, { value: $, children: u ? /* @__PURE__ */ r.jsx(
|
|
35
|
-
v,
|
|
36
|
-
{
|
|
37
|
-
translationData: { locale: s, dir: m, translations: p },
|
|
38
|
-
className: d,
|
|
39
|
-
style: c,
|
|
40
|
-
...l,
|
|
41
|
-
children: a
|
|
42
|
-
}
|
|
43
|
-
) : /* @__PURE__ */ r.jsx(z, { delay: w, children: /* @__PURE__ */ r.jsx(
|
|
44
|
-
v,
|
|
45
|
-
{
|
|
46
|
-
translationData: { locale: s, dir: m, translations: p },
|
|
47
|
-
className: d,
|
|
48
|
-
style: c,
|
|
49
|
-
...l,
|
|
50
|
-
children: a
|
|
51
|
-
}
|
|
52
|
-
) }) }) }) });
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
L as M,
|
|
56
|
-
V as X,
|
|
57
|
-
W as Y
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=index-49242812.js.map
|
package/index-49242812.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-49242812.js","sources":["../node_modules/@servicetitan/hammer-react/dist/index-1a152ffc.js"],"sourcesContent":["import { j as o } from \"./jsx-runtime-944c88e2.js\";\nimport { core as x } from \"@servicetitan/hammer-token\";\nimport { u as g, a as k } from \"./index-11b6ca91.js\";\nimport { FloatingDelayGroup as z } from \"@floating-ui/react\";\nimport { createContext as h, useState as E, useMemo as L, useContext as S } from \"react\";\nimport B from \"classnames\";\nimport \"tinycolor2\";\nimport { useBreakpoint as F } from \"./useBreakpoint.js\";\nimport { useLayoutPropsUtil as I } from \"./useLayoutPropsUtil.js\";\nimport { LocalizationProvider as v } from \"./LocalizationProvider.js\";\nconst M = h(\n {}\n), y = h(null), X = () => {\n const e = S(y);\n if (e == null)\n throw new Error(\n \"Tooltip components must be wrapped in <HammerProvider /> or <TooltipGroupContext.Provider />\"\n );\n return e;\n}, Y = (e) => {\n var u, d;\n const { layoutStyles: P, componentProps: f } = I(e), { themeData: D, localizationData: C, children: t, className: j, style: b, ...r } = f, { theme: s = x, mode: a = \"light\" } = D ?? {}, {\n locale: n = \"en\",\n dir: i = \"ltr\",\n translations: l = {}\n } = C ?? {}, { className: G } = g({ theme: s, mode: a }), m = B(G, j), c = { ...b, ...P }, T = F(), [p, N] = E(!1), H = parseInt(\n ((d = (u = x.primitive) == null ? void 0 : u.Duration) == null ? void 0 : d.value.replace(\"ms\", \"\")) ?? \"200\",\n 10\n ), w = L(\n () => ({ disableDelayGroup: N }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [p]\n );\n return /* @__PURE__ */ o.jsx(M.Provider, { value: { breakpoint: T }, children: /* @__PURE__ */ o.jsx(k.Provider, { value: { theme: s, mode: a }, children: /* @__PURE__ */ o.jsx(y.Provider, { value: w, children: p ? /* @__PURE__ */ o.jsx(\n v,\n {\n translationData: { locale: n, dir: i, translations: l },\n className: m,\n style: c,\n ...r,\n children: t\n }\n ) : /* @__PURE__ */ o.jsx(z, { delay: H, children: /* @__PURE__ */ o.jsx(\n v,\n {\n translationData: { locale: n, dir: i, translations: l },\n className: m,\n style: c,\n ...r,\n children: t\n }\n ) }) }) }) });\n};\nexport {\n Y as H,\n M as a,\n X as u\n};\n//# sourceMappingURL=index-1a152ffc.js.map\n"],"names":["M","h","y","X","S","Y","u","d","P","f","I","C","t","b","r","s","x","a","n","i","l","G","g","m","B","T","F","p","N","E","H","x.primitive","w","L","o","k","v","z"],"mappings":";;;;;;;;;;AAUK,MAACA,IAAIC;AAAAA,EACR,CAAE;AACJ,GAAGC,IAAID,EAAE,IAAI,GAAGE,IAAI,MAAM;AACxB,QAAM,IAAIC,EAAEF,CAAC;AACb,MAAI,KAAK;AACP,UAAM,IAAI;AAAA,MACR;AAAA,IACN;AACE,SAAO;AACT,GAAGG,IAAI,CAAC,MAAM;AACZ,MAAIC,GAAGC;AACP,QAAM,EAAE,cAAcC,GAAG,gBAAgBC,EAAC,IAAKC,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,kBAAkBC,GAAG,UAAUC,GAAG,WAAW,GAAG,OAAOC,GAAG,GAAGC,EAAC,IAAKL,GAAG,EAAE,OAAOM,IAAIC,GAAG,MAAMC,IAAI,QAAO,IAAK,KAAK,CAAA,GAAI;AAAA,IACxL,QAAQC,IAAI;AAAA,IACZ,KAAKC,IAAI;AAAA,IACT,cAAcC,IAAI,CAAE;AAAA,EACxB,IAAMT,KAAK,CAAA,GAAI,EAAE,WAAWU,EAAC,IAAKC,EAAE,EAAE,OAAOP,GAAG,MAAME,EAAC,CAAE,GAAGM,IAAIC,EAAEH,GAAG,CAAC,GAAG,IAAI,EAAE,GAAGR,GAAG,GAAGL,EAAG,GAAEiB,IAAIC,EAAC,GAAI,CAACC,GAAGC,CAAC,IAAIC,EAAE,EAAE,GAAGC,IAAI;AAAA,MACpHvB,KAAKD,IAAIyB,MAAgB,OAAO,SAASzB,EAAE,aAAa,OAAO,SAASC,EAAE,MAAM,QAAQ,MAAM,EAAE,MAAM;AAAA,IACxG;AAAA,EACD,GAAEyB,IAAIC;AAAAA,IACL,OAAO,EAAE,mBAAmBL;;IAE5B,CAACD,CAAC;AAAA,EACN;AACE,SAAuBO,gBAAAA,EAAE,IAAIlC,EAAE,UAAU,EAAE,OAAO,EAAE,YAAYyB,EAAG,GAAE,UAA0BS,gBAAAA,EAAE,IAAIC,EAAE,UAAU,EAAE,OAAO,EAAE,OAAOpB,GAAG,MAAME,EAAG,GAAE,UAA0BiB,gBAAAA,EAAE,IAAIhC,EAAE,UAAU,EAAE,OAAO8B,GAAG,UAAUL,IAAoBO,gBAAAA,EAAE;AAAA,IACvOE;AAAAA,IACA;AAAA,MACE,iBAAiB,EAAE,QAAQlB,GAAG,KAAKC,GAAG,cAAcC,EAAG;AAAA,MACvD,WAAWG;AAAA,MACX,OAAO;AAAA,MACP,GAAGT;AAAA,MACH,UAAUF;AAAA,IACX;AAAA,EACL,IAAsBsB,gBAAAA,EAAE,IAAIG,GAAG,EAAE,OAAOP,GAAG,UAA0BI,gBAAAA,EAAE;AAAA,IACnEE;AAAAA,IACA;AAAA,MACE,iBAAiB,EAAE,QAAQlB,GAAG,KAAKC,GAAG,cAAcC,EAAG;AAAA,MACvD,WAAWG;AAAA,MACX,OAAO;AAAA,MACP,GAAGT;AAAA,MACH,UAAUF;AAAA,IACX;AAAA,EACF,EAAA,CAAE,EAAG,CAAA,GAAG,EAAC,CAAE;AACd;","x_google_ignoreList":[0]}
|
package/index-69174413.cjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";const ze=require("react"),cr=require("react-dom");function On(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=On(ze),Sn=On(cr);function Fe(e){return Mn(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(Mn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mn(e){return e instanceof Node||e instanceof ae(e).Node}function Y(e){return e instanceof Element||e instanceof ae(e).Element}function te(e){return e instanceof HTMLElement||e instanceof ae(e).HTMLElement}function Dt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function nt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ur(e){return["table","td","th"].includes(Fe(e))}function Et(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wt(e){const t=Bt(),n=Y(e)?me(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function lr(e){let t=Re(e);for(;te(t)&&!Me(t);){if(Wt(t))return t;if(Et(t))return null;t=Re(t)}return null}function Bt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Me(e){return["html","body","#document"].includes(Fe(e))}function me(e){return ae(e).getComputedStyle(e)}function It(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dt(e)&&e.host||Ie(e);return Dt(t)?t.host:t}function An(e){const t=Re(e);return Me(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&nt(t)?t:An(t)}function Se(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=An(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ae(o);return i?t.concat(s,s.visualViewport||[],nt(o)?o:[],s.frameElement&&n?Se(s.frameElement):[]):t.concat(o,Se(o,[],n))}function he(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ee(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Dt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Pn(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function kn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Dn(e){return e.mozInputSource===0&&e.isTrusted?!0:Ft()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Kt(e){return ar()?!1:!Ft()&&e.width===0&&e.height===0||Ft()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function $t(){return/apple/i.test(navigator.vendor)}function Ft(){const e=/android/i;return e.test(Pn())||e.test(kn())}function Fn(){return Pn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function ar(){return kn().includes("jsdom/")}function Je(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function fr(e){return"nativeEvent"in e}function dr(e){return e.matches("html,body")}function ne(e){return(e==null?void 0:e.ownerDocument)||document}function Tt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function xe(e){return"composedPath"in e?e.composedPath()[0]:e.target}const mr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ht(e){return te(e)&&e.matches(mr)}function oe(e){e.preventDefault(),e.stopPropagation()}function Ln(e){return e?e.getAttribute("role")==="combobox"&&Ht(e):!1}const ye=Math.min,fe=Math.max,pt=Math.round,$e=Math.floor,Ae=e=>({x:e,y:e}),gr={left:"right",right:"left",bottom:"top",top:"bottom"},pr={start:"end",end:"start"};function Lt(e,t,n){return fe(e,ye(t,n))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function Ye(e){return e.split("-")[1]}function zt(e){return e==="x"?"y":"x"}function qt(e){return e==="y"?"height":"width"}function ke(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function jt(e){return zt(ke(e))}function hr(e,t,n){n===void 0&&(n=!1);const r=Ye(e),o=jt(e),i=qt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ht(s)),[s,ht(s)]}function vr(e){const t=ht(e);return[Nt(e),t,Nt(t)]}function Nt(e){return e.replace(/start|end/g,t=>pr[t])}function br(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function yr(e,t,n,r){const o=Ye(e);let i=br(Ee(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Nt)))),i}function ht(e){return e.replace(/left|right|bottom|top/g,t=>gr[t])}function wr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nn(e){return typeof e!="number"?wr(e):{top:e,right:e,bottom:e,left:e}}function vt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*!
|
|
2
|
-
* tabbable 6.2.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var xr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],bt=xr.join(","),_n=typeof Element>"u",qe=_n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,yt=!_n&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},wt=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&e(t.parentNode);return s},Rr=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Er=function(t,n,r){if(wt(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(bt));return n&&qe.call(t,bt)&&o.unshift(t),o=o.filter(r),o},Ir=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!wt(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),l=c.length?c:s.children,u=e(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var g=qe.call(s,bt);g&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),h=!wt(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&h){var a=e(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,a):o.push({scopeParent:s,candidates:a})}else i.unshift.apply(i,s.children)}}return o},Vn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Wn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Rr(t))&&!Vn(t)?0:t.tabIndex},Cr=function(t,n){var r=Wn(t);return r<0&&n&&!Vn(t)?0:r},Tr=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Bn=function(t){return t.tagName==="INPUT"},Or=function(t){return Bn(t)&&t.type==="hidden"},Sr=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Mr=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Ar=function(t){if(!t.name)return!0;var n=t.form||yt(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=Mr(o,t.form);return!i||i===t},Pr=function(t){return Bn(t)&&t.type==="radio"},kr=function(t){return Pr(t)&&!Ar(t)},Dr=function(t){var n,r=t&&yt(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,c,l;for(i=!!((s=o)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&o;){var u,g,f;r=yt(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((g=o)!==null&&g!==void 0&&(f=g.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},en=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Fr=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=qe.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(qe.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var l=t.parentElement,u=yt(t);if(l&&!l.shadowRoot&&o(l)===!0)return en(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=c}if(Dr(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return en(t);return!1},Lr=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return qe.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Nr=function(t,n){return!(n.disabled||wt(n)||Or(n)||Fr(n,t)||Sr(n)||Lr(n))},_t=function(t,n){return!(kr(n)||Wn(n)<0||!Nr(t,n))},_r=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Vr=function e(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,c=s?o.scopeParent:o,l=Cr(c,s),u=s?e(o.candidates):c;l===0?s?n.push.apply(n,u):n.push(c):r.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:u})}),r.sort(Tr).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Qe=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Ir([t],n.includeContainer,{filter:_t.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:_r}):r=Er(t,n.includeContainer,_t.bind(null,n)),Vr(r)},Wr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return qe.call(t,bt)===!1?!1:_t(n,t)};function tn(e,t,n){let{reference:r,floating:o}=e;const i=ke(t),s=jt(t),c=qt(s),l=Ee(t),u=i==="y",g=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let a;switch(l){case"top":a={x:g,y:r.y-o.height};break;case"bottom":a={x:g,y:r.y+r.height};break;case"right":a={x:r.x+r.width,y:f};break;case"left":a={x:r.x-o.width,y:f};break;default:a={x:r.x,y:r.y}}switch(Ye(t)){case"start":a[s]-=h*(n&&u?-1:1);break;case"end":a[s]+=h*(n&&u?-1:1);break}return a}const Br=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:f}=tn(u,r,l),h=r,a={},m=0;for(let p=0;p<c.length;p++){const{name:R,fn:E}=c[p],{x:I,y:b,data:y,reset:A}=await E({x:g,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:a,rects:u,platform:s,elements:{reference:e,floating:t}});g=I??g,f=b??f,a={...a,[R]:{...a[R],...y}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:g,y:f}=tn(u,h,l)),p=-1)}return{x:g,y:f,placement:h,strategy:o,middlewareData:a}};async function Ut(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:f="floating",altBoundary:h=!1,padding:a=0}=Pe(t,e),m=Nn(a),R=c[h?f==="floating"?"reference":"floating":f],E=vt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(R)))==null||n?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:g,strategy:l})),I=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},A=vt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:I,offsetParent:b,strategy:l}):I);return{top:(E.top-A.top+m.top)/y.y,bottom:(A.bottom-E.bottom+m.bottom)/y.y,left:(E.left-A.left+m.left)/y.x,right:(A.right-E.right+m.right)/y.x}}const Kr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:g=0}=Pe(e,t)||{};if(u==null)return{};const f=Nn(g),h={x:n,y:r},a=jt(o),m=qt(a),p=await s.getDimensions(u),R=a==="y",E=R?"top":"left",I=R?"bottom":"right",b=R?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[a]-h[a]-i.floating[m],A=h[a]-i.reference[a],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let _=P?P[b]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=c.floating[b]||i.floating[m]);const B=y/2-A/2,H=_/2-p[m]/2-1,O=ye(f[E],H),D=ye(f[I],H),M=O,S=_-p[m]-D,v=_/2-p[m]/2+B,x=Lt(M,v,S),C=!l.arrow&&Ye(o)!=null&&v!==x&&i.reference[m]/2-(v<M?O:D)-p[m]/2<0,w=C?v<M?v-M:v-S:0;return{[a]:h[a]+w,data:{[a]:x,centerOffset:v-x-w,...C&&{alignmentOffset:w}},reset:C}}}),$r=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:g=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...R}=Pe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const E=Ee(o),I=ke(c),b=Ee(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=h||(b||!p?[ht(c)]:vr(c)),P=m!=="none";!h&&P&&A.push(...yr(c,p,m,y));const _=[c,...A],B=await Ut(t,R),H=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(g&&H.push(B[E]),f){const v=hr(o,s,y);H.push(B[v[0]],B[v[1]])}if(O=[...O,{placement:o,overflows:H}],!H.every(v=>v<=0)){var D,M;const v=(((D=i.flip)==null?void 0:D.index)||0)+1,x=_[v];if(x)return{data:{index:v,overflows:O},reset:{placement:x}};let C=(M=O.filter(w=>w.overflows[0]<=0).sort((w,k)=>w.overflows[1]-k.overflows[1])[0])==null?void 0:M.placement;if(!C)switch(a){case"bestFit":{var S;const w=(S=O.filter(k=>{if(P){const V=ke(k.placement);return V===I||V==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(V=>V>0).reduce((V,T)=>V+T,0)]).sort((k,V)=>k[1]-V[1])[0])==null?void 0:S[0];w&&(C=w);break}case"initialPlacement":C=c;break}if(o!==C)return{reset:{placement:C}}}return{}}}};async function Hr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ee(n),c=Ye(n),l=ke(n)==="y",u=["left","top"].includes(s)?-1:1,g=i&&l?-1:1,f=Pe(t,e);let{mainAxis:h,crossAxis:a,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof m=="number"&&(a=c==="end"?m*-1:m),l?{x:a*g,y:h*u}:{x:h*u,y:a*g}}const zr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await Hr(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},qr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:R=>{let{x:E,y:I}=R;return{x:E,y:I}}},...l}=Pe(e,t),u={x:n,y:r},g=await Ut(t,l),f=ke(Ee(o)),h=zt(f);let a=u[h],m=u[f];if(i){const R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",I=a+g[R],b=a-g[E];a=Lt(I,a,b)}if(s){const R=f==="y"?"top":"left",E=f==="y"?"bottom":"right",I=m+g[R],b=m-g[E];m=Lt(I,m,b)}const p=c.fn({...t,[h]:a,[f]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}},jr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Pe(e,t),g={x:n,y:r},f=ke(o),h=zt(f);let a=g[h],m=g[f];const p=Pe(c,t),R=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=h==="y"?"height":"width",y=i.reference[h]-i.floating[b]+R.mainAxis,A=i.reference[h]+i.reference[b]-R.mainAxis;a<y?a=y:a>A&&(a=A)}if(u){var E,I;const b=h==="y"?"width":"height",y=["top","left"].includes(Ee(o)),A=i.reference[f]-i.floating[b]+(y&&((E=s.offset)==null?void 0:E[f])||0)+(y?0:R.crossAxis),P=i.reference[f]+i.reference[b]+(y?0:((I=s.offset)==null?void 0:I[f])||0)-(y?R.crossAxis:0);m<A?m=A:m>P&&(m=P)}return{[h]:a,[f]:m}}}},Ur=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...c}=Pe(e,t),l=await Ut(t,c),u=Ee(n),g=Ye(n),f=ke(n)==="y",{width:h,height:a}=r.floating;let m,p;u==="top"||u==="bottom"?(m=u,p=g===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,m=g==="end"?"top":"bottom");const R=a-l.top-l.bottom,E=h-l.left-l.right,I=ye(a-l[m],R),b=ye(h-l[p],E),y=!t.middlewareData.shift;let A=I,P=b;if(f?P=g||y?ye(b,E):E:A=g||y?ye(I,R):R,y&&!g){const B=fe(l.left,0),H=fe(l.right,0),O=fe(l.top,0),D=fe(l.bottom,0);f?P=h-2*(B!==0||H!==0?B+H:fe(l.left,l.right)):A=a-2*(O!==0||D!==0?O+D:fe(l.top,l.bottom))}await s({...t,availableWidth:P,availableHeight:A});const _=await o.getDimensions(i.floating);return h!==_.width||a!==_.height?{reset:{rects:!0}}:{}}}};function Kn(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=te(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=pt(n)!==i||pt(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Yt(e){return Y(e)?e:e.contextElement}function He(e){const t=Yt(e);if(!te(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Kn(t);let s=(i?pt(n.width):n.width)/r,c=(i?pt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Yr=Ae(0);function $n(e){const t=ae(e);return!Bt()||!t.visualViewport?Yr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function _e(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Yt(e);let s=Ae(1);t&&(r?Y(r)&&(s=He(r)):s=He(e));const c=Gr(i,n,r)?$n(i):Ae(0);let l=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,g=o.width/s.x,f=o.height/s.y;if(i){const h=ae(i),a=r&&Y(r)?ae(r):r;let m=h,p=m.frameElement;for(;p&&r&&a!==m;){const R=He(p),E=p.getBoundingClientRect(),I=me(p),b=E.left+(p.clientLeft+parseFloat(I.paddingLeft))*R.x,y=E.top+(p.clientTop+parseFloat(I.paddingTop))*R.y;l*=R.x,u*=R.y,g*=R.x,f*=R.y,l+=b,u+=y,m=ae(p),p=m.frameElement}}return vt({width:g,height:f,x:l,y:u})}function Xr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ie(r),c=t?Et(t.floating):!1;if(r===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Ae(1);const g=Ae(0),f=te(r);if((f||!f&&!i)&&((Fe(r)!=="body"||nt(s))&&(l=It(r)),te(r))){const h=_e(r);u=He(r),g.x=h.x+r.clientLeft,g.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+g.x,y:n.y*u.y-l.scrollTop*u.y+g.y}}function Zr(e){return Array.from(e.getClientRects())}function Hn(e){return _e(Ie(e)).left+It(e).scrollLeft}function Jr(e){const t=Ie(e),n=It(e),r=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Hn(e);const c=-n.scrollTop;return me(r).direction==="rtl"&&(s+=fe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function Qr(e,t){const n=ae(e),r=Ie(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;const u=Bt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:c,y:l}}function eo(e,t){const n=_e(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=te(e)?He(e):Ae(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:c,x:l,y:u}}function nn(e,t,n){let r;if(t==="viewport")r=Qr(e,n);else if(t==="document")r=Jr(Ie(e));else if(Y(t))r=eo(t,n);else{const o=$n(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return vt(r)}function zn(e,t){const n=Re(e);return n===t||!Y(n)||Me(n)?!1:me(n).position==="fixed"||zn(n,t)}function to(e,t){const n=t.get(e);if(n)return n;let r=Se(e,[],!1).filter(c=>Y(c)&&Fe(c)!=="body"),o=null;const i=me(e).position==="fixed";let s=i?Re(e):e;for(;Y(s)&&!Me(s);){const c=me(s),l=Wt(s);!l&&c.position==="fixed"&&(o=null),(i?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nt(s)&&!l&&zn(e,s))?r=r.filter(g=>g!==s):o=c,s=Re(s)}return t.set(e,r),r}function no(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Et(t)?[]:to(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((u,g)=>{const f=nn(t,g,o);return u.top=fe(f.top,u.top),u.right=ye(f.right,u.right),u.bottom=ye(f.bottom,u.bottom),u.left=fe(f.left,u.left),u},nn(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ro(e){const{width:t,height:n}=Kn(e);return{width:t,height:n}}function oo(e,t,n){const r=te(t),o=Ie(t),i=n==="fixed",s=_e(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=Ae(0);if(r||!r&&!i)if((Fe(t)!=="body"||nt(o))&&(c=It(t)),r){const f=_e(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=Hn(o));const u=s.left+c.scrollLeft-l.x,g=s.top+c.scrollTop-l.y;return{x:u,y:g,width:s.width,height:s.height}}function Ot(e){return me(e).position==="static"}function rn(e,t){return!te(e)||me(e).position==="fixed"?null:t?t(e):e.offsetParent}function qn(e,t){const n=ae(e);if(Et(e))return n;if(!te(e)){let o=Re(e);for(;o&&!Me(o);){if(Y(o)&&!Ot(o))return o;o=Re(o)}return n}let r=rn(e,t);for(;r&&ur(r)&&Ot(r);)r=rn(r,t);return r&&Me(r)&&Ot(r)&&!Wt(r)?n:r||lr(e)||n}const io=async function(e){const t=this.getOffsetParent||qn,n=this.getDimensions,r=await n(e.floating);return{reference:oo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function so(e){return me(e).direction==="rtl"}const co={convertOffsetParentRelativeRectToViewportRelativeRect:Xr,getDocumentElement:Ie,getClippingRect:no,getOffsetParent:qn,getElementRects:io,getClientRects:Zr,getDimensions:ro,getScale:He,isElement:Y,isRTL:so};function uo(e,t){let n=null,r;const o=Ie(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const{left:u,top:g,width:f,height:h}=e.getBoundingClientRect();if(c||t(),!f||!h)return;const a=$e(g),m=$e(o.clientWidth-(u+f)),p=$e(o.clientHeight-(g+h)),R=$e(u),I={rootMargin:-a+"px "+-m+"px "+-p+"px "+-R+"px",threshold:fe(0,ye(1,l))||1};let b=!0;function y(A){const P=A[0].intersectionRatio;if(P!==l){if(!b)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(y,{...I,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,I)}n.observe(e)}return s(!0),i}function lo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Yt(e),g=o||i?[...u?Se(u):[],...Se(t)]:[];g.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const f=u&&c?uo(u,n):null;let h=-1,a=null;s&&(a=new ResizeObserver(E=>{let[I]=E;I&&I.target===u&&a&&(a.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=a)==null||b.observe(t)})),n()}),u&&!l&&a.observe(u),a.observe(t));let m,p=l?_e(e):null;l&&R();function R(){const E=_e(e);p&&(E.x!==p.x||E.y!==p.y||E.width!==p.width||E.height!==p.height)&&n(),p=E,m=requestAnimationFrame(R)}return n(),()=>{var E;g.forEach(I=>{o&&I.removeEventListener("scroll",n),i&&I.removeEventListener("resize",n)}),f==null||f(),(E=a)==null||E.disconnect(),a=null,l&&cancelAnimationFrame(m)}}const ao=zr,fo=qr,mo=$r,go=Ur,on=Kr,po=jr,ho=(e,t,n)=>{const r=new Map,o={platform:co,...n},i={...o.platform,_c:r};return Br(e,t,{...o,platform:i})};var ft=typeof document<"u"?ze.useLayoutEffect:ze.useEffect;function xt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!xt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sn(e,t){const n=jn(e);return Math.round(t*n)/n}function cn(e){const t=d.useRef(e);return ft(()=>{t.current=e}),t}function vo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[g,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,a]=d.useState(r);xt(h,r)||a(r);const[m,p]=d.useState(null),[R,E]=d.useState(null),I=d.useCallback(w=>{w!==P.current&&(P.current=w,p(w))},[]),b=d.useCallback(w=>{w!==_.current&&(_.current=w,E(w))},[]),y=i||m,A=s||R,P=d.useRef(null),_=d.useRef(null),B=d.useRef(g),H=l!=null,O=cn(l),D=cn(o),M=d.useCallback(()=>{if(!P.current||!_.current)return;const w={placement:t,strategy:n,middleware:h};D.current&&(w.platform=D.current),ho(P.current,_.current,w).then(k=>{const V={...k,isPositioned:!0};S.current&&!xt(B.current,V)&&(B.current=V,Sn.flushSync(()=>{f(V)}))})},[h,t,n,D]);ft(()=>{u===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,f(w=>({...w,isPositioned:!1})))},[u]);const S=d.useRef(!1);ft(()=>(S.current=!0,()=>{S.current=!1}),[]),ft(()=>{if(y&&(P.current=y),A&&(_.current=A),y&&A){if(O.current)return O.current(y,A,M);M()}},[y,A,M,O,H]);const v=d.useMemo(()=>({reference:P,floating:_,setReference:I,setFloating:b}),[I,b]),x=d.useMemo(()=>({reference:y,floating:A}),[y,A]),C=d.useMemo(()=>{const w={position:n,left:0,top:0};if(!x.floating)return w;const k=sn(x.floating,g.x),V=sn(x.floating,g.y);return c?{...w,transform:"translate("+k+"px, "+V+"px)",...jn(x.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:V}},[n,c,x.floating,g.x,g.y]);return d.useMemo(()=>({...g,update:M,refs:v,elements:x,floatingStyles:C}),[g,M,v,x,C])}const bo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?on({element:r.current,padding:o}).fn(n):{}:r?on({element:r,padding:o}).fn(n):{}}}},yo=(e,t)=>({...ao(e),options:[e,t]}),wo=(e,t)=>({...fo(e),options:[e,t]}),xo=(e,t)=>({...po(e),options:[e,t]}),Ro=(e,t)=>({...mo(e),options:[e,t]}),Eo=(e,t)=>({...go(e),options:[e,t]}),Io=(e,t)=>({...bo(e),options:[e,t]});function Co(e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Un={...d},To=Un.useInsertionEffect,Oo=To||(e=>e());function ie(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Oo(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Gt="ArrowUp",rt="ArrowDown",je="ArrowLeft",Ge="ArrowRight";function ut(e,t,n){return Math.floor(e/t)!==n}function Xe(e,t){return t<0||t>=e.current.length}function St(e,t){return se(e,{disabledIndices:t})}function un(e,t){return se(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function se(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const s=e.current;let c=n;do c+=r?-i:i;while(c>=0&&c<=s.length-1&&dt(s,c,o));return c}function So(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:g=!1}=t,f=u;if(n.key===Gt){if(g&&oe(n),u===-1)f=l;else if(f=se(e,{startingIndex:f,amount:i,decrement:!0,disabledIndices:s}),o&&(u-i<c||f<0)){const h=u%i,a=l%i,m=l-(a-h);a===h?f=l:f=a>h?m:m-i}Xe(e,f)&&(f=u)}if(n.key===rt&&(g&&oe(n),u===-1?f=c:(f=se(e,{startingIndex:u,amount:i,disabledIndices:s}),o&&u+i>l&&(f=se(e,{startingIndex:u%i-i,amount:i,disabledIndices:s}))),Xe(e,f)&&(f=u)),r==="both"){const h=$e(u/i);n.key===Ge&&(g&&oe(n),u%i!==i-1?(f=se(e,{startingIndex:u,disabledIndices:s}),o&&ut(f,i,h)&&(f=se(e,{startingIndex:u-u%i-1,disabledIndices:s}))):o&&(f=se(e,{startingIndex:u-u%i-1,disabledIndices:s})),ut(f,i,h)&&(f=u)),n.key===je&&(g&&oe(n),u%i!==0?(f=se(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&ut(f,i,h)&&(f=se(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:s}))):o&&(f=se(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:s})),ut(f,i,h)&&(f=u));const a=$e(l/i)===h;Xe(e,f)&&(o&&a?f=n.key===je?l:se(e,{startingIndex:u-u%i-1,disabledIndices:s}):f=u)}return f}function Mo(e,t,n){const r=[];let o=0;return e.forEach((i,s)=>{let{width:c,height:l}=i;if(c>t&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let u=!1;for(n&&(o=0);!u;){const g=[];for(let f=0;f<c;f++)for(let h=0;h<l;h++)g.push(o+f+h*t);o%t+c<=t&&g.every(f=>r[f]==null)?(g.forEach(f=>{r[f]=s}),u=!0):o++}}),[...r]}function Ao(e,t,n,r,o){if(e===-1)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Po(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function dt(e,t,n){if(n)return n.includes(t);const r=e[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}let ln=0;function Oe(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ln);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():ln=requestAnimationFrame(i)}var j=typeof document<"u"?ze.useLayoutEffect:ze.useEffect;function ko(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Do(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}const Yn=d.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Fo(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,i]=d.useState(()=>new Map),s=d.useCallback(l=>{i(u=>new Map(u).set(l,null))},[]),c=d.useCallback(l=>{i(u=>{const g=new Map(u);return g.delete(l),g})},[]);return j(()=>{const l=new Map(o);Array.from(l.keys()).sort(ko).forEach((g,f)=>{l.set(g,f)}),Do(o,l)||i(l)},[o]),d.createElement(Yn.Provider,{value:d.useMemo(()=>({register:s,unregister:c,map:o,elementsRef:n,labelsRef:r}),[s,c,o,n,r])},t)}function Lo(e){e===void 0&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:i,labelsRef:s}=d.useContext(Yn),[c,l]=d.useState(null),u=d.useRef(null),g=d.useCallback(f=>{if(u.current=f,c!==null&&(i.current[c]=f,s)){var h;const a=t!==void 0;s.current[c]=a?t:(h=f==null?void 0:f.textContent)!=null?h:null}},[c,i,s,t]);return j(()=>{const f=u.current;if(f)return n(f),()=>{r(f)}},[n,r]),j(()=>{const f=u.current?o.get(u.current):null;f!=null&&l(f)},[o]),d.useMemo(()=>({ref:g,index:c??-1}),[c,g])}function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(this,arguments)}let an=!1,No=0;const fn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+No++;function _o(){const[e,t]=d.useState(()=>an?fn():void 0);return j(()=>{e==null&&t(fn())},[]),d.useEffect(()=>{an=!0},[]),e}const Vo=Un.useId,ot=Vo||_o;let tt;process.env.NODE_ENV!=="production"&&(tt=new Set);function mt(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=tt)!=null&&e.has(o))){var i;(i=tt)==null||i.add(o),console.warn(o)}}function Wo(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=tt)!=null&&e.has(o))){var i;(i=tt)==null||i.add(o),console.error(o)}}const Bo=d.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:g,stroke:f,d:h,style:{transform:a,...m}={},...p}=t;process.env.NODE_ENV!=="production"&&(n||mt("The `ref` prop is required for `FloatingArrow`."));const R=ot(),[E,I]=d.useState(!1);if(j(()=>{if(!o)return;me(o).direction==="rtl"&&I(!0)},[o]),!o)return null;const b=u*2,y=b/2,A=s/2*(l/-8+1),P=c/2*l/4,[_,B]=r.split("-"),H=!!h,O=_==="top"||_==="bottom",D=g&&B==="end"?"bottom":"top";let M=g&&B==="end"?"right":"left";g&&E&&(M=B==="end"?"left":"right");const S=(i==null?void 0:i.x)!=null?g||i.x:"",v=(i==null?void 0:i.y)!=null?g||i.y:"",x=h||"M0,0"+(" H"+s)+(" L"+(s-A)+","+(c-P))+(" Q"+s/2+","+c+" "+A+","+(c-P))+" Z",C={top:H?"rotate(180deg)":"",left:H?"rotate(90deg)":"rotate(-90deg)",bottom:H?"":"rotate(180deg)",right:H?"rotate(-90deg)":"rotate(90deg)"}[_];return d.createElement("svg",et({},p,{"aria-hidden":!0,ref:n,width:H?s:s+b,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[M]:S,[D]:v,[_]:O||H?"100%":"calc(100% - "+b/2+"px)",transform:""+C+(a??""),...m}}),b>0&&d.createElement("path",{clipPath:"url(#"+R+")",fill:"none",stroke:f,strokeWidth:b+(h?0:1),d:x}),d.createElement("path",{stroke:b&&!h?p.fill:"none",d:x}),d.createElement("clipPath",{id:R},d.createElement("rect",{x:-y,y:y*(H?-1:1),width:s+b,height:s})))});function Gn(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Xn=d.createContext(null),Zn=d.createContext(null),Ve=()=>{var e;return((e=d.useContext(Xn))==null?void 0:e.id)||null},We=()=>d.useContext(Zn);function Ko(e){const t=ot(),n=We(),r=Ve(),o=e||r;return j(()=>{const i={id:t,parentId:o};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,o]),t}function $o(e){const{children:t,id:n}=e,r=Ve();return d.createElement(Xn.Provider,{value:d.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function Ho(e){const{children:t}=e,n=d.useRef([]),r=d.useCallback(s=>{n.current=[...n.current,s]},[]),o=d.useCallback(s=>{n.current=n.current.filter(c=>c!==s)},[]),i=d.useState(()=>Gn())[0];return d.createElement(Zn.Provider,{value:d.useMemo(()=>({nodesRef:n,addNode:r,removeNode:o,events:i}),[r,o,i])},t)}function De(e){return"data-floating-ui-"+e}function de(e){const t=ze.useRef(e);return j(()=>{t.current=e}),t}const dn=De("safe-polygon");function gt(e,t,n){return n&&!Je(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function zo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:c=!0,delay:l=0,handleClose:u=null,mouseOnly:g=!1,restMs:f=0,move:h=!0}=t,a=We(),m=Ve(),p=de(u),R=de(l),E=de(n),I=d.useRef(),b=d.useRef(-1),y=d.useRef(),A=d.useRef(-1),P=d.useRef(!0),_=d.useRef(!1),B=d.useRef(()=>{}),H=d.useCallback(()=>{var x;const C=(x=o.current.openEvent)==null?void 0:x.type;return(C==null?void 0:C.includes("mouse"))&&C!=="mousedown"},[o]);d.useEffect(()=>{if(!c)return;function x(C){let{open:w}=C;w||(clearTimeout(b.current),clearTimeout(A.current),P.current=!0)}return i.on("openchange",x),()=>{i.off("openchange",x)}},[c,i]),d.useEffect(()=>{if(!c||!p.current||!n)return;function x(w){H()&&r(!1,w,"hover")}const C=ne(s.floating).documentElement;return C.addEventListener("mouseleave",x),()=>{C.removeEventListener("mouseleave",x)}},[s.floating,n,r,c,p,H]);const O=d.useCallback(function(x,C,w){C===void 0&&(C=!0),w===void 0&&(w="hover");const k=gt(R.current,"close",I.current);k&&!y.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,x,w),k)):C&&(clearTimeout(b.current),r(!1,x,w))},[R,r]),D=ie(()=>{B.current(),y.current=void 0}),M=ie(()=>{if(_.current){const x=ne(s.floating).body;x.style.pointerEvents="",x.removeAttribute(dn),_.current=!1}});d.useEffect(()=>{if(!c)return;function x(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function C(T){if(clearTimeout(b.current),P.current=!1,g&&!Je(I.current)||f>0&&!gt(R.current,"open"))return;const q=gt(R.current,"open",I.current);q?b.current=window.setTimeout(()=>{E.current||r(!0,T,"hover")},q):r(!0,T,"hover")}function w(T){if(x())return;B.current();const q=ne(s.floating);if(clearTimeout(A.current),p.current&&o.current.floatingContext){n||clearTimeout(b.current),y.current=p.current({...o.current.floatingContext,tree:a,x:T.clientX,y:T.clientY,onClose(){M(),D(),O(T,!0,"safe-polygon")}});const ce=y.current;q.addEventListener("mousemove",ce),B.current=()=>{q.removeEventListener("mousemove",ce)};return}(I.current==="touch"?!ee(s.floating,T.relatedTarget):!0)&&O(T)}function k(T){x()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:a,x:T.clientX,y:T.clientY,onClose(){M(),D(),O(T)}})(T))}if(Y(s.domReference)){var V;const T=s.domReference;return n&&T.addEventListener("mouseleave",k),(V=s.floating)==null||V.addEventListener("mouseleave",k),h&&T.addEventListener("mousemove",C,{once:!0}),T.addEventListener("mouseenter",C),T.addEventListener("mouseleave",w),()=>{var q;n&&T.removeEventListener("mouseleave",k),(q=s.floating)==null||q.removeEventListener("mouseleave",k),h&&T.removeEventListener("mousemove",C),T.removeEventListener("mouseenter",C),T.removeEventListener("mouseleave",w)}}},[s,c,e,g,f,h,O,D,M,r,n,E,a,R,p,o]),j(()=>{var x;if(c&&n&&(x=p.current)!=null&&x.__options.blockPointerEvents&&H()){const w=ne(s.floating).body;w.setAttribute(dn,""),w.style.pointerEvents="none",_.current=!0;const k=s.floating;if(Y(s.domReference)&&k){var C;const V=s.domReference,T=a==null||(C=a.nodesRef.current.find(q=>q.id===m))==null||(C=C.context)==null?void 0:C.elements.floating;return T&&(T.style.pointerEvents=""),V.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{V.style.pointerEvents="",k.style.pointerEvents=""}}}},[c,n,m,s,a,p,H]),j(()=>{n||(I.current=void 0,D(),M())},[n,D,M]),d.useEffect(()=>()=>{D(),clearTimeout(b.current),clearTimeout(A.current),M()},[c,s.domReference,D,M]);const S=d.useMemo(()=>{function x(C){I.current=C.pointerType}return{onPointerDown:x,onPointerEnter:x,onMouseMove(C){const{nativeEvent:w}=C;function k(){!P.current&&!E.current&&r(!0,w,"hover")}g&&!Je(I.current)||n||f===0||(clearTimeout(A.current),I.current==="touch"?k():A.current=window.setTimeout(k,f))}}},[g,r,n,E,f]),v=d.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(x){O(x.nativeEvent,!1)}}),[O]);return d.useMemo(()=>c?{reference:S,floating:v}:{},[c,S,v])}const Vt=()=>{},Jn=d.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Vt,setState:Vt,isInstantPhase:!1}),Qn=()=>d.useContext(Jn);function qo(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=d.useReducer((l,u)=>({...l,...u}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=d.useRef(null),c=d.useCallback(l=>{i({currentId:l})},[]);return j(()=>{o.currentId?s.current===null?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[o.currentId,o.isInstantPhase]),d.createElement(Jn.Provider,{value:d.useMemo(()=>({...o,setState:i,setCurrentId:c}),[o,c])},t)}function jo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i}=t,s=i??o,c=Qn(),{currentId:l,setCurrentId:u,initialDelay:g,setState:f,timeoutMs:h}=c;return j(()=>{l&&(f({delay:{open:1,close:gt(g,"close")}}),l!==s&&r(!1))},[s,r,f,l,g]),j(()=>{function a(){r(!1),f({delay:g,currentId:null})}if(l&&!n&&l===s){if(h){const m=window.setTimeout(a,h);return()=>{clearTimeout(m)}}a()}},[n,f,l,s,r,g,h]),j(()=>{u===Vt||!n||u(s)},[n,u,s]),c}function Uo(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}function Ne(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(s=>{var c;return o.parentId===s.id&&((c=o.context)==null?void 0:c.open)})}),n=n.concat(r);return n}function Yo(e,t){let n,r=-1;function o(i,s){s>r&&(n=i,r=s),Ne(e,i).forEach(l=>{o(l.id,s+1)})}return o(t,0),e.find(i=>i.id===n)}let Ke=new WeakMap,lt=new WeakSet,at={},Mt=0;const Go=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,er=e=>e&&(e.host||er(e.parentNode)),Xo=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=er(n);return e.contains(r)?r:null}).filter(n=>n!=null);function Zo(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=Xo(t,e),c=new Set,l=new Set(s),u=[];at[o]||(at[o]=new WeakMap);const g=at[o];s.forEach(f),h(t),c.clear();function f(a){!a||c.has(a)||(c.add(a),a.parentNode&&f(a.parentNode))}function h(a){!a||l.has(a)||[].forEach.call(a.children,m=>{if(Fe(m)!=="script")if(c.has(m))h(m);else{const p=i?m.getAttribute(i):null,R=p!==null&&p!=="false",E=(Ke.get(m)||0)+1,I=(g.get(m)||0)+1;Ke.set(m,E),g.set(m,I),u.push(m),E===1&&R&<.add(m),I===1&&m.setAttribute(o,""),!R&&i&&m.setAttribute(i,"true")}})}return Mt++,()=>{u.forEach(a=>{const m=(Ke.get(a)||0)-1,p=(g.get(a)||0)-1;Ke.set(a,m),g.set(a,p),m||(!lt.has(a)&&i&&a.removeAttribute(i),lt.delete(a)),p||a.removeAttribute(o)}),Mt--,Mt||(Ke=new WeakMap,Ke=new WeakMap,lt=new WeakSet,at={})}}function mn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=ne(e[0]).body;return Zo(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ue=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function tr(e,t){const n=Qe(e,Ue());t==="prev"&&n.reverse();const r=n.indexOf(he(ne(e)));return n.slice(r+1)[0]}function nr(){return tr(document.body,"next")}function rr(){return tr(document.body,"prev")}function Ze(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ee(n,r)}function Jo(e){Qe(e,Ue()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Qo(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function ei(e,t,n){const r=e.indexOf(t);function o(s){const c=De("focus-guard");let l=r+(s?1:0),u=e[l];for(;u&&(!u.isConnected||u.hasAttribute(c)||ee(n,u));)s?l++:l--,u=e[l];return u}const i=o(!0);return i||o(!1)}const Xt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let ti;function gn(e){e.key==="Tab"&&(e.target,clearTimeout(ti))}const Rt=d.forwardRef(function(t,n){const[r,o]=d.useState();j(()=>($t()&&o("button"),document.addEventListener("keydown",gn),()=>{document.removeEventListener("keydown",gn)}),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[De("focus-guard")]:"",style:Xt};return d.createElement("span",et({},t,i))}),or=d.createContext(null),pn=De("portal");function ni(e){e===void 0&&(e={});const{id:t,root:n}=e,r=ot(),o=ir(),[i,s]=d.useState(null),c=d.useRef(null);return j(()=>()=>{i==null||i.remove(),queueMicrotask(()=>{c.current=null})},[i]),j(()=>{if(!r||c.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(pn,""),l.appendChild(u),c.current=u,s(u)},[t,r]),j(()=>{if(!r||c.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Y(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const g=document.createElement("div");g.id=r,g.setAttribute(pn,""),l=u||l,l.appendChild(g),c.current=g,s(g)},[t,n,r,o]),i}function ri(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=ni({id:n,root:r}),[s,c]=d.useState(null),l=d.useRef(null),u=d.useRef(null),g=d.useRef(null),f=d.useRef(null),h=!!s&&!s.modal&&s.open&&o&&!!(r||i);return d.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function a(m){i&&Ze(m)&&(m.type==="focusin"?Qo:Jo)(i)}return i.addEventListener("focusin",a,!0),i.addEventListener("focusout",a,!0),()=>{i.removeEventListener("focusin",a,!0),i.removeEventListener("focusout",a,!0)}},[i,o,s==null?void 0:s.modal]),d.createElement(or.Provider,{value:d.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:g,afterInsideRef:f,portalNode:i,setFocusManagerState:c}),[o,i])},h&&i&&d.createElement(Rt,{"data-type":"outside",ref:l,onFocus:a=>{if(Ze(a,i)){var m;(m=g.current)==null||m.focus()}else{const p=rr()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus()}}}),h&&i&&d.createElement("span",{"aria-owns":i.id,style:Xt}),i&&Sn.createPortal(t,i),h&&i&&d.createElement(Rt,{"data-type":"outside",ref:u,onFocus:a=>{if(Ze(a,i)){var m;(m=f.current)==null||m.focus()}else{const p=nr()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,a.nativeEvent))}}}))}const ir=()=>d.useContext(or),hn=20;let Le=[];function At(e){Le=Le.filter(n=>n.isConnected);let t=e;if(!(!t||Fe(t)==="body")){if(!Wr(t,Ue())){const n=Qe(t,Ue())[0];n&&(t=n)}Le.push(t),Le.length>hn&&(Le=Le.slice(-hn))}}function vn(){return Le.slice().reverse().find(e=>e.isConnected)}const oi=d.forwardRef(function(t,n){return d.createElement("button",et({},t,{type:"button",ref:n,tabIndex:-1,style:Xt}))});function ii(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:a,nodeId:m,onOpenChange:p,events:R,dataRef:E,floatingId:I,elements:{domReference:b,floating:y}}=t,A=typeof s=="number"&&s<0,P=Ln(b)&&A,_=Go()?i:!0,B=de(o),H=de(s),O=de(c),D=We(),M=ir(),S=d.useRef(null),v=d.useRef(null),x=d.useRef(!1),C=d.useRef(!1),w=d.useRef(-1),k=M!=null,V=y==null?void 0:y.firstElementChild,T=(V==null?void 0:V.id)===I?V:y,q=ie(function(F){return F===void 0&&(F=T),F?Qe(F,Ue()):[]}),re=ie(F=>{const K=q(F);return B.current.map(N=>b&&N==="reference"?b:T&&N==="floating"?T:K).filter(Boolean).flat()});d.useEffect(()=>{if(r||!u)return;function F(N){if(N.key==="Tab"){ee(T,he(ne(T)))&&q().length===0&&!P&&oe(N);const L=re(),z=xe(N);B.current[0]==="reference"&&z===b&&(oe(N),N.shiftKey?Oe(L[L.length-1]):Oe(L[1])),B.current[1]==="floating"&&z===T&&N.shiftKey&&(oe(N),Oe(L[0]))}}const K=ne(T);return K.addEventListener("keydown",F),()=>{K.removeEventListener("keydown",F)}},[r,b,T,u,B,P,q,re]),d.useEffect(()=>{if(r||!y)return;function F(K){const N=xe(K),z=q().indexOf(N);z!==-1&&(w.current=z)}return y.addEventListener("focusin",F),()=>{y.removeEventListener("focusin",F)}},[r,y,q]),d.useEffect(()=>{if(r||!f)return;function F(){C.current=!0,setTimeout(()=>{C.current=!1})}function K(N){const L=N.relatedTarget;queueMicrotask(()=>{const z=!(ee(b,L)||ee(y,L)||ee(L,y)||ee(M==null?void 0:M.portalNode,L)||L!=null&&L.hasAttribute(De("focus-guard"))||D&&(Ne(D.nodesRef.current,m).find(U=>{var Q,G;return ee((Q=U.context)==null?void 0:Q.elements.floating,L)||ee((G=U.context)==null?void 0:G.elements.domReference,L)})||Uo(D.nodesRef.current,m).find(U=>{var Q,G;return((Q=U.context)==null?void 0:Q.elements.floating)===L||((G=U.context)==null?void 0:G.elements.domReference)===L})));if(l&&z&&he(ne(T))===ne(T).body){te(T)&&(T==null||T.focus());const U=w.current,Q=q(),G=Q[U]||Q[Q.length-1]||T;te(G)&&G.focus()}(P||!u)&&L&&z&&!C.current&&L!==vn()&&(x.current=!0,p(!1,N))})}if(y&&te(b))return b.addEventListener("focusout",K),b.addEventListener("pointerdown",F),y.addEventListener("focusout",K),()=>{b.removeEventListener("focusout",K),b.removeEventListener("pointerdown",F),y.removeEventListener("focusout",K)}},[r,b,y,T,u,m,D,M,p,f,l,q,P]),d.useEffect(()=>{var F;if(r)return;const K=Array.from((M==null||(F=M.portalNode)==null?void 0:F.querySelectorAll("["+De("portal")+"]"))||[]);if(y){const N=[y,...K,S.current,v.current,B.current.includes("reference")||P?b:null].filter(z=>z!=null),L=u||P?mn(N,_,!_):mn(N);return()=>{L()}}},[r,b,y,u,B,M,P,_]),j(()=>{if(r||!te(T))return;const F=ne(T),K=he(F);queueMicrotask(()=>{const N=re(T),L=H.current,z=(typeof L=="number"?N[L]:L.current)||T,U=ee(T,K);!A&&!U&&h&&Oe(z,{preventScroll:z===T})})},[r,h,T,A,re,H]),j(()=>{if(r||!T)return;let F=!1;const K=ne(T),N=he(K);let z=E.current.openEvent;const U=a.domReference.current;At(N);function Q(G){let{open:ve,reason:we,event:ge,nested:Be}=G;ve&&(z=ge),we==="escape-key"&&a.domReference.current&&At(a.domReference.current),we==="hover"&&ge.type==="mouseleave"&&(x.current=!0),we==="outside-press"&&(Be?(x.current=!1,F=!0):x.current=!(Dn(ge)||Kt(ge)))}return R.on("openchange",Q),()=>{R.off("openchange",Q);const G=he(K),ve=ee(y,G)||D&&Ne(D.nodesRef.current,m).some($=>{var X;return ee((X=$.context)==null?void 0:X.elements.floating,G)});(ve||z&&["click","mousedown"].includes(z.type))&&a.domReference.current&&At(a.domReference.current);const ge=U||N,Be=Qe(ne(ge).body,Ue());queueMicrotask(()=>{let $=vn();!$&&te(ge)&&y&&($=ei(Be,ge,y)),O.current&&!x.current&&te($)&&(!($!==G&&G!==K.body)||ve)&&$.focus({preventScroll:F})})}},[r,y,T,O,E,a,R,D,m]),j(()=>{if(!r&&M)return M.setFocusManagerState({modal:u,closeOnFocusOut:f,open:h,onOpenChange:p,refs:a}),()=>{M.setFocusManagerState(null)}},[r,M,u,h,p,a,f]),j(()=>{if(r||!T||typeof MutationObserver!="function"||A)return;const F=()=>{const N=T.getAttribute("tabindex"),L=q(),z=he(ne(y)),U=L.indexOf(z);U!==-1&&(w.current=U),B.current.includes("floating")||z!==a.domReference.current&&L.length===0?N!=="0"&&T.setAttribute("tabindex","0"):N!=="-1"&&T.setAttribute("tabindex","-1")};F();const K=new MutationObserver(F);return K.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{K.disconnect()}},[r,y,T,a,B,q,A]);function ce(F){return r||!g||!u?null:d.createElement(oi,{ref:F==="start"?S:v,onClick:K=>p(!1,K.nativeEvent)},typeof g=="string"?g:"Dismiss")}const ue=!r&&_&&(u?!P:!0)&&(k||u);return d.createElement(d.Fragment,null,ue&&d.createElement(Rt,{"data-type":"inside",ref:M==null?void 0:M.beforeInsideRef,onFocus:F=>{if(u){const N=re();Oe(o[0]==="reference"?N[0]:N[N.length-1])}else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(x.current=!1,Ze(F,M.portalNode)){const N=nr()||b;N==null||N.focus()}else{var K;(K=M.beforeOutsideRef.current)==null||K.focus()}}}),!P&&ce("start"),n,ce("end"),ue&&d.createElement(Rt,{"data-type":"inside",ref:M==null?void 0:M.afterInsideRef,onFocus:F=>{if(u)Oe(re()[0]);else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(f&&(x.current=!0),Ze(F,M.portalNode)){const N=rr()||b;N==null||N.focus()}else{var K;(K=M.afterOutsideRef.current)==null||K.focus()}}}))}function bn(e){return te(e.target)&&e.target.tagName==="BUTTON"}function yn(e){return Ht(e)}function si(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:g=!0}=t,f=d.useRef(),h=d.useRef(!1),a=d.useMemo(()=>({onPointerDown(m){f.current=m.pointerType},onMouseDown(m){const p=f.current;m.button===0&&c!=="click"&&(Je(p,!0)&&u||(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const p=f.current;if(c==="mousedown"&&f.current){f.current=void 0;return}Je(p,!0)&&u||(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){f.current=void 0,!(m.defaultPrevented||!g||bn(m))&&(m.key===" "&&!yn(i)&&(m.preventDefault(),h.current=!0),m.key==="Enter"&&r(!(n&&l),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!g||bn(m)||yn(i)||m.key===" "&&h.current&&(h.current=!1,r(!(n&&l),m.nativeEvent,"click"))}}),[o,i,c,u,g,r,n,l]);return d.useMemo(()=>s?{reference:a}:{},[s,a])}const ci={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ui={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},wn=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function li(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:g=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:a,capture:m}=t,p=We(),R=ie(typeof l=="function"?l:()=>!1),E=typeof l=="function"?R:l,I=d.useRef(!1),b=d.useRef(!1),{escapeKey:y,outsidePress:A}=wn(a),{escapeKey:P,outsidePress:_}=wn(m),B=ie(v=>{var x;if(!n||!s||!c||v.key!=="Escape")return;const C=(x=i.current.floatingContext)==null?void 0:x.nodeId,w=p?Ne(p.nodesRef.current,C):[];if(!y&&(v.stopPropagation(),w.length>0)){let k=!0;if(w.forEach(V=>{var T;if((T=V.context)!=null&&T.open&&!V.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,fr(v)?v.nativeEvent:v,"escape-key")}),H=ie(v=>{var x;const C=()=>{var w;B(v),(w=xe(v))==null||w.removeEventListener("keydown",C)};(x=xe(v))==null||x.addEventListener("keydown",C)}),O=ie(v=>{var x;const C=I.current;I.current=!1;const w=b.current;if(b.current=!1,u==="click"&&w||C||typeof E=="function"&&!E(v))return;const k=xe(v),V="["+De("inert")+"]",T=ne(o.floating).querySelectorAll(V);let q=Y(k)?k:null;for(;q&&!Me(q);){const F=Re(q);if(Me(F)||!Y(F))break;q=F}if(T.length&&Y(k)&&!dr(k)&&!ee(k,o.floating)&&Array.from(T).every(F=>!ee(q,F)))return;if(te(k)&&S){const F=k.clientWidth>0&&k.scrollWidth>k.clientWidth,K=k.clientHeight>0&&k.scrollHeight>k.clientHeight;let N=K&&v.offsetX>k.clientWidth;if(K&&me(k).direction==="rtl"&&(N=v.offsetX<=k.offsetWidth-k.clientWidth),N||F&&v.offsetY>k.clientHeight)return}const re=(x=i.current.floatingContext)==null?void 0:x.nodeId,ce=p&&Ne(p.nodesRef.current,re).some(F=>{var K;return Tt(v,(K=F.context)==null?void 0:K.elements.floating)});if(Tt(v,o.floating)||Tt(v,o.domReference)||ce)return;const ue=p?Ne(p.nodesRef.current,re):[];if(ue.length>0){let F=!0;if(ue.forEach(K=>{var N;if((N=K.context)!=null&&N.open&&!K.context.dataRef.current.__outsidePressBubbles){F=!1;return}}),!F)return}r(!1,v,"outside-press")}),D=ie(v=>{var x;const C=()=>{var w;O(v),(w=xe(v))==null||w.removeEventListener(u,C)};(x=xe(v))==null||x.addEventListener(u,C)});d.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=A;function v(w){r(!1,w,"ancestor-scroll")}const x=ne(o.floating);c&&x.addEventListener("keydown",P?H:B,P),E&&x.addEventListener(u,_?D:O,_);let C=[];return h&&(Y(o.domReference)&&(C=Se(o.domReference)),Y(o.floating)&&(C=C.concat(Se(o.floating))),!Y(o.reference)&&o.reference&&o.reference.contextElement&&(C=C.concat(Se(o.reference.contextElement)))),C=C.filter(w=>{var k;return w!==((k=x.defaultView)==null?void 0:k.visualViewport)}),C.forEach(w=>{w.addEventListener("scroll",v,{passive:!0})}),()=>{c&&x.removeEventListener("keydown",P?H:B,P),E&&x.removeEventListener(u,_?D:O,_),C.forEach(w=>{w.removeEventListener("scroll",v)})}},[i,o,c,E,u,n,r,h,s,y,A,B,P,H,O,_,D]),d.useEffect(()=>{I.current=!1},[E,u]);const M=d.useMemo(()=>({onKeyDown:B,[ci[f]]:v=>{g&&r(!1,v.nativeEvent,"reference-press")}}),[B,r,g,f]),S=d.useMemo(()=>({onKeyDown:B,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[ui[u]]:()=>{I.current=!0}}),[B,u]);return d.useMemo(()=>s?{reference:M,floating:S}:{},[s,M,S])}function ai(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ot(),i=d.useRef({}),[s]=d.useState(()=>Gn()),c=Ve()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!Y(a)&&Wo("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=d.useState(r.reference),g=ie((a,m,p)=>{i.current.openEvent=a?m:void 0,s.emit("openchange",{open:a,event:m,reason:p,nested:c}),n==null||n(a,m,p)}),f=d.useMemo(()=>({setPositionReference:u}),[]),h=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:i,open:t,onOpenChange:g,elements:h,events:s,floatingId:o,refs:f}),[t,g,h,s,o,f])}function fi(e){e===void 0&&(e={});const{nodeId:t}=e,n=ai({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=d.useState(null),[c,l]=d.useState(null),g=(o==null?void 0:o.reference)||i,f=d.useRef(null),h=We();j(()=>{g&&(f.current=g)},[g]);const a=vo({...e,elements:{...o,...c&&{reference:c}}}),m=d.useCallback(b=>{const y=Y(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l(y),a.refs.setReference(y)},[a.refs]),p=d.useCallback(b=>{(Y(b)||b===null)&&(f.current=b,s(b)),(Y(a.refs.reference.current)||a.refs.reference.current===null||b!==null&&!Y(b))&&a.refs.setReference(b)},[a.refs]),R=d.useMemo(()=>({...a.refs,setReference:p,setPositionReference:m,domReference:f}),[a.refs,p,m]),E=d.useMemo(()=>({...a.elements,domReference:g}),[a.elements,g]),I=d.useMemo(()=>({...a,...r,refs:R,elements:E,nodeId:t}),[a,R,E,t,r]);return j(()=>{r.dataRef.current.floatingContext=I;const b=h==null?void 0:h.nodesRef.current.find(y=>y.id===t);b&&(b.context=I)}),d.useMemo(()=>({...a,context:I,refs:R,elements:E}),[a,R,E,I])}function di(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:c=!0,visibleOnly:l=!0}=t,u=d.useRef(!1),g=d.useRef(),f=d.useRef(!0);d.useEffect(()=>{if(!c)return;const a=ae(s.domReference);function m(){!n&&te(s.domReference)&&s.domReference===he(ne(s.domReference))&&(u.current=!0)}function p(){f.current=!0}return a.addEventListener("blur",m),a.addEventListener("keydown",p,!0),()=>{a.removeEventListener("blur",m),a.removeEventListener("keydown",p,!0)}},[s.domReference,n,c]),d.useEffect(()=>{if(!c)return;function a(m){let{reason:p}=m;(p==="reference-press"||p==="escape-key")&&(u.current=!0)}return o.on("openchange",a),()=>{o.off("openchange",a)}},[o,c]),d.useEffect(()=>()=>{clearTimeout(g.current)},[]);const h=d.useMemo(()=>({onPointerDown(a){Kt(a.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(a){if(u.current)return;const m=xe(a.nativeEvent);if(l&&Y(m))try{if($t()&&Fn())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!f.current&&!Ht(m))return}r(!0,a.nativeEvent,"focus")},onBlur(a){u.current=!1;const m=a.relatedTarget,p=a.nativeEvent,R=Y(m)&&m.hasAttribute(De("focus-guard"))&&m.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var E;const I=he(s.domReference?s.domReference.ownerDocument:document);!m&&I===s.domReference||ee((E=i.current.floatingContext)==null?void 0:E.refs.floating.current,I)||ee(s.domReference,I)||R||r(!1,p,"focus")})}}),[i,s.domReference,r,l]);return d.useMemo(()=>c?{reference:h}:{},[c,h])}const xn="active",Rn="selected";function Pt(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[xn]:s,[Rn]:c,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(l=>{let[u,g]=l;if(!(o&&[xn,Rn].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof g=="function"){var f;(f=r.get(u))==null||f.push(g),s[u]=function(){for(var h,a=arguments.length,m=new Array(a),p=0;p<a;p++)m[p]=arguments[p];return(h=r.get(u))==null?void 0:h.map(R=>R(...m)).find(R=>R!==void 0)}}}else s[u]=g}),s),{})}}function mi(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=d.useCallback(c=>Pt(c,e,"reference"),t),i=d.useCallback(c=>Pt(c,e,"floating"),n),s=d.useCallback(c=>Pt(c,e,"item"),r);return d.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let En=!1;function Ct(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function In(e,t){return Ct(t,e===Gt||e===rt,e===je||e===Ge)}function kt(e,t,n){return Ct(t,e===rt,n?e===je:e===Ge)||e==="Enter"||e===" "||e===""}function gi(e,t,n){return Ct(t,n?e===je:e===Ge,e===rt)}function Cn(e,t,n){return Ct(t,n?e===Ge:e===je,e===Gt)}function pi(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:c=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:g=!1,loop:f=!1,nested:h=!1,rtl:a=!1,virtual:m=!1,focusItemOnOpen:p="auto",focusItemOnHover:R=!0,openOnArrowKeyDown:E=!0,disabledIndices:I=void 0,orientation:b="vertical",cols:y=1,scrollItemIntoView:A=!0,virtualItemRef:P,itemSizes:_,dense:B=!1}=t;process.env.NODE_ENV!=="production"&&(g&&(f||mt("`useListNavigation` looping must be enabled to allow escaping."),m||mt("`useListNavigation` must be virtual to allow escaping.")),b==="vertical"&&y>1&&mt("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const H=Ve(),O=We(),D=ie(c),M=d.useRef(p),S=d.useRef(u??-1),v=d.useRef(null),x=d.useRef(!0),C=d.useRef(D),w=d.useRef(!!o.floating),k=d.useRef(n),V=d.useRef(!1),T=d.useRef(!1),q=de(I),re=de(n),ce=de(A),ue=de(o.floating),F=de(u),[K,N]=d.useState(),[L,z]=d.useState(),U=ie(function($,X,W){W===void 0&&(W=!1);function Z(J){m?(N(J.id),O==null||O.events.emit("virtualfocus",J),P&&(P.current=J)):Oe(J,{preventScroll:!0,sync:Fn()&&$t()?En||V.current:!1})}const le=$.current[X.current];le&&Z(le),requestAnimationFrame(()=>{const J=$.current[X.current]||le;if(!J)return;le||Z(J);const be=ce.current;be&&G&&(W||!x.current)&&(J.scrollIntoView==null||J.scrollIntoView(typeof be=="boolean"?{block:"nearest",inline:"nearest"}:be))})});j(()=>{document.createElement("div").focus({get preventScroll(){return En=!0,!1}})},[]),j(()=>{l&&(n&&o.floating?M.current&&u!=null&&(T.current=!0,S.current=u,D(u)):w.current&&(S.current=-1,C.current(null)))},[l,n,o.floating,u,D]),j(()=>{if(l&&n&&o.floating)if(s==null){if(V.current=!1,F.current!=null)return;if(w.current&&(S.current=-1,U(i,S)),(!k.current||!w.current)&&M.current&&(v.current!=null||M.current===!0&&v.current==null)){let $=0;const X=()=>{i.current[0]==null?($<2&&($?requestAnimationFrame:queueMicrotask)(X),$++):(S.current=v.current==null||kt(v.current,b,a)||h?St(i,q.current):un(i,q.current),v.current=null,D(S.current))};X()}}else Xe(i,s)||(S.current=s,U(i,S,T.current),T.current=!1)},[l,n,o.floating,s,F,h,i,b,a,D,U,q]),j(()=>{var $;if(!l||o.floating||!O||m||!w.current)return;const X=O.nodesRef.current,W=($=X.find(J=>J.id===H))==null||($=$.context)==null?void 0:$.elements.floating,Z=he(ne(o.floating)),le=X.some(J=>J.context&&ee(J.context.elements.floating,Z));W&&!le&&x.current&&W.focus({preventScroll:!0})},[l,o.floating,O,H,m]),j(()=>{if(!l||!O||!m||H)return;function $(X){z(X.id),P&&(P.current=X)}return O.events.on("virtualfocus",$),()=>{O.events.off("virtualfocus",$)}},[l,O,m,H,P]),j(()=>{C.current=D,w.current=!!o.floating}),j(()=>{n||(v.current=null)},[n]),j(()=>{k.current=n},[n]);const Q=s!=null,G=d.useMemo(()=>{function $(W){if(!n)return;const Z=i.current.indexOf(W);Z!==-1&&D(Z)}return{onFocus(W){let{currentTarget:Z}=W;$(Z)},onClick:W=>{let{currentTarget:Z}=W;return Z.focus({preventScroll:!0})},...R&&{onMouseMove(W){let{currentTarget:Z}=W;$(Z)},onPointerLeave(W){let{pointerType:Z}=W;!x.current||Z==="touch"||(S.current=-1,U(i,S),D(null),m||Oe(ue.current,{preventScroll:!0}))}}}},[n,ue,U,R,i,D,m]),ve=ie($=>{if(x.current=!1,V.current=!0,!re.current&&$.currentTarget===ue.current)return;if(h&&Cn($.key,b,a)){oe($),r(!1,$.nativeEvent,"list-navigation"),te(o.domReference)&&!m&&o.domReference.focus();return}const X=S.current,W=St(i,I),Z=un(i,I);if($.key==="Home"&&(oe($),S.current=W,D(S.current)),$.key==="End"&&(oe($),S.current=Z,D(S.current)),y>1){const le=_||Array.from({length:i.current.length},()=>({width:1,height:1})),J=Mo(le,y,B),be=J.findIndex(pe=>pe!=null&&!dt(i.current,pe,I)),it=J.reduce((pe,Ce,st)=>Ce!=null&&!dt(i.current,Ce,I)?st:pe,-1);if(S.current=J[So({current:J.map(pe=>pe!=null?i.current[pe]:null)},{event:$,orientation:b,loop:f,cols:y,disabledIndices:Po([...I||i.current.map((pe,Ce)=>dt(i.current,Ce)?Ce:void 0),void 0],J),minIndex:be,maxIndex:it,prevIndex:Ao(S.current>Z?W:S.current,le,J,y,$.key===rt?"bl":$.key===Ge?"tr":"tl"),stopEvent:!0})],D(S.current),b==="both")return}if(In($.key,b)){if(oe($),n&&!m&&he($.currentTarget.ownerDocument)===$.currentTarget){S.current=kt($.key,b,a)?W:Z,D(S.current);return}kt($.key,b,a)?f?S.current=X>=Z?g&&X!==i.current.length?-1:W:se(i,{startingIndex:X,disabledIndices:I}):S.current=Math.min(Z,se(i,{startingIndex:X,disabledIndices:I})):f?S.current=X<=W?g&&X!==-1?i.current.length:Z:se(i,{startingIndex:X,decrement:!0,disabledIndices:I}):S.current=Math.max(W,se(i,{startingIndex:X,decrement:!0,disabledIndices:I})),Xe(i,S.current)?D(null):D(S.current)}}),we=d.useMemo(()=>m&&n&&Q&&{"aria-activedescendant":L||K},[m,n,Q,L,K]),ge=d.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...!Ln(o.domReference)&&we,onKeyDown:ve,onPointerMove(){x.current=!0}}),[we,ve,o.domReference,b]),Be=d.useMemo(()=>{function $(W){p==="auto"&&Dn(W.nativeEvent)&&(M.current=!0)}function X(W){M.current=p,p==="auto"&&Kt(W.nativeEvent)&&(M.current=!0)}return{...we,onKeyDown(W){x.current=!1;const Z=W.key.indexOf("Arrow")===0,le=gi(W.key,b,a),J=Cn(W.key,b,a),be=In(W.key,b),it=(h?le:be)||W.key==="Enter"||W.key.trim()==="";if(m&&n){const Zt=O==null?void 0:O.nodesRef.current.find(ct=>ct.parentId==null),Te=O&&Zt?Yo(O.nodesRef.current,Zt.id):null;if(Z&&Te&&P){const ct=new KeyboardEvent("keydown",{key:W.key,bubbles:!0});if(le||J){var pe,Ce;const sr=((pe=Te.context)==null?void 0:pe.elements.domReference)===W.currentTarget,Jt=J&&!sr?(Ce=Te.context)==null?void 0:Ce.elements.domReference:le?i.current.find(Qt=>(Qt==null?void 0:Qt.id)===K):null;Jt&&(oe(W),Jt.dispatchEvent(ct),z(void 0))}if(be&&Te.context&&Te.context.open&&Te.parentId&&W.currentTarget!==Te.context.elements.domReference){var st;oe(W),(st=Te.context.elements.domReference)==null||st.dispatchEvent(ct);return}}return ve(W)}if(!(!n&&!E&&Z)){if(it&&(v.current=h&&be?null:W.key),h){le&&(oe(W),n?(S.current=St(i,q.current),D(S.current)):r(!0,W.nativeEvent,"list-navigation"));return}be&&(u!=null&&(S.current=u),oe(W),!n&&E?r(!0,W.nativeEvent,"list-navigation"):ve(W),n&&D(S.current))}},onFocus(){n&&!m&&D(null)},onPointerDown:X,onMouseDown:$,onClick:$}},[K,we,ve,q,p,i,h,D,r,n,E,b,a,u,O,m,P]);return d.useMemo(()=>l?{reference:Be,floating:ge,item:G}:{},[l,Be,ge,G])}const hi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function vi(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,c=(n=hi.get(s))!=null?n:s,l=ot(),g=Ve()!=null,f=d.useMemo(()=>c==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?o:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:l},...c==="menu"&&g&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[c,o,g,r,l,s]),h=d.useMemo(()=>{const m={id:o,...c&&{role:c}};return c==="tooltip"||s==="label"?m:{...m,...c==="menu"&&{"aria-labelledby":l}}},[c,o,l,s]),a=d.useCallback(m=>{let{active:p,selected:R}=m;const E={role:"option",...p&&{id:o+"-option"}};switch(s){case"select":return{...E,"aria-selected":p&&R};case"combobox":return{...E,...p&&{"aria-selected":!0}}}return{}},[o,s]);return d.useMemo(()=>i?{reference:f,floating:h,item:a}:{},[i,f,h,a])}function bi(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,findMatch:g=null,resetMs:f=750,ignoreKeys:h=[],selectedIndex:a=null}=t,m=d.useRef(),p=d.useRef(""),R=d.useRef((n=a??s)!=null?n:-1),E=d.useRef(null),I=ie(c),b=ie(l),y=de(g),A=de(h);j(()=>{r&&(clearTimeout(m.current),E.current=null,p.current="")},[r]),j(()=>{if(r&&p.current===""){var O;R.current=(O=a??s)!=null?O:-1}},[r,a,s]);const P=ie(O=>{O?o.current.typing||(o.current.typing=O,b(O)):o.current.typing&&(o.current.typing=O,b(O))}),_=ie(O=>{function D(C,w,k){const V=y.current?y.current(w,k):w.find(T=>(T==null?void 0:T.toLocaleLowerCase().indexOf(k.toLocaleLowerCase()))===0);return V?C.indexOf(V):-1}const M=i.current;if(p.current.length>0&&p.current[0]!==" "&&(D(M,M,p.current)===-1?P(!1):O.key===" "&&oe(O)),M==null||A.current.includes(O.key)||O.key.length!==1||O.ctrlKey||O.metaKey||O.altKey)return;r&&O.key!==" "&&(oe(O),P(!0)),M.every(C=>{var w,k;return C?((w=C[0])==null?void 0:w.toLocaleLowerCase())!==((k=C[1])==null?void 0:k.toLocaleLowerCase()):!0})&&p.current===O.key&&(p.current="",R.current=E.current),p.current+=O.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",R.current=E.current,P(!1)},f);const v=R.current,x=D(M,[...M.slice((v||0)+1),...M.slice(0,(v||0)+1)],p.current);x!==-1?(I(x),E.current=x):O.key!==" "&&(p.current="",P(!1))}),B=d.useMemo(()=>({onKeyDown:_}),[_]),H=d.useMemo(()=>({onKeyDown:_,onKeyUp(O){O.key===" "&&P(!1)}}),[_,P]);return d.useMemo(()=>u?{reference:B,floating:H}:{},[u,B,H])}function Tn(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=0,c=i-1;s<i;c=s++){const[l,u]=t[s]||[0,0],[g,f]=t[c]||[0,0];u>=r!=f>=r&&n<=(g-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function yi(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function wi(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,c=null,l=performance.now();function u(f,h){const a=performance.now(),m=a-l;if(s===null||c===null||m===0)return s=f,c=h,l=a,null;const p=f-s,R=h-c,I=Math.sqrt(p*p+R*R)/m;return s=f,c=h,l=a,I}const g=f=>{let{x:h,y:a,placement:m,elements:p,onClose:R,nodeId:E,tree:I}=f;return function(y){function A(){clearTimeout(o),R()}if(clearTimeout(o),!p.domReference||!p.floating||m==null||h==null||a==null)return;const{clientX:P,clientY:_}=y,B=[P,_],H=xe(y),O=y.type==="mouseleave",D=ee(p.floating,H),M=ee(p.domReference,H),S=p.domReference.getBoundingClientRect(),v=p.floating.getBoundingClientRect(),x=m.split("-")[0],C=h>v.right-v.width/2,w=a>v.bottom-v.height/2,k=yi(B,S),V=v.width>S.width,T=v.height>S.height,q=(V?S:v).left,re=(V?S:v).right,ce=(T?S:v).top,ue=(T?S:v).bottom;if(D&&(i=!0,!O))return;if(M&&(i=!1),M&&!O){i=!0;return}if(O&&Y(y.relatedTarget)&&ee(p.floating,y.relatedTarget)||I&&Ne(I.nodesRef.current,E).some(N=>{let{context:L}=N;return L==null?void 0:L.open}))return;if(x==="top"&&a>=S.bottom-1||x==="bottom"&&a<=S.top+1||x==="left"&&h>=S.right-1||x==="right"&&h<=S.left+1)return A();let F=[];switch(x){case"top":F=[[q,S.top+1],[q,v.bottom-1],[re,v.bottom-1],[re,S.top+1]];break;case"bottom":F=[[q,v.top+1],[q,S.bottom-1],[re,S.bottom-1],[re,v.top+1]];break;case"left":F=[[v.right-1,ue],[v.right-1,ce],[S.left+1,ce],[S.left+1,ue]];break;case"right":F=[[S.right-1,ue],[S.right-1,ce],[v.left+1,ce],[v.left+1,ue]];break}function K(N){let[L,z]=N;switch(x){case"top":{const U=[V?L+t/2:C?L+t*4:L-t*4,z+t+1],Q=[V?L-t/2:C?L+t*4:L-t*4,z+t+1],G=[[v.left,C||V?v.bottom-t:v.top],[v.right,C?V?v.bottom-t:v.top:v.bottom-t]];return[U,Q,...G]}case"bottom":{const U=[V?L+t/2:C?L+t*4:L-t*4,z-t],Q=[V?L-t/2:C?L+t*4:L-t*4,z-t],G=[[v.left,C||V?v.top+t:v.bottom],[v.right,C?V?v.top+t:v.bottom:v.top+t]];return[U,Q,...G]}case"left":{const U=[L+t+1,T?z+t/2:w?z+t*4:z-t*4],Q=[L+t+1,T?z-t/2:w?z+t*4:z-t*4];return[...[[w||T?v.right-t:v.left,v.top],[w?T?v.right-t:v.left:v.right-t,v.bottom]],U,Q]}case"right":{const U=[L-t,T?z+t/2:w?z+t*4:z-t*4],Q=[L-t,T?z-t/2:w?z+t*4:z-t*4],G=[[w||T?v.left+t:v.right,v.top],[w?T?v.left+t:v.right:v.left+t,v.bottom]];return[U,Q,...G]}}}if(!Tn([P,_],F)){if(i&&!k)return A();if(!O&&r){const N=u(y.clientX,y.clientY);if(N!==null&&N<.1)return A()}Tn([P,_],K([h,a]))?!i&&r&&(o=window.setTimeout(A,40)):A()}}};return g.__options={blockPointerEvents:n},g}exports.FloatingArrow=Bo;exports.FloatingDelayGroup=qo;exports.FloatingFocusManager=ii;exports.FloatingList=Fo;exports.FloatingNode=$o;exports.FloatingPortal=ri;exports.FloatingTree=Ho;exports.arrow=Io;exports.autoUpdate=lo;exports.flip=Ro;exports.limitShift=xo;exports.offset=yo;exports.safePolygon=wi;exports.shift=wo;exports.size=Eo;exports.useClick=si;exports.useDelayGroup=jo;exports.useDelayGroupContext=Qn;exports.useDismiss=li;exports.useFloating=fi;exports.useFloatingNodeId=Ko;exports.useFloatingParentNodeId=Ve;exports.useFloatingTree=We;exports.useFocus=di;exports.useHover=zo;exports.useInteractions=mi;exports.useListItem=Lo;exports.useListNavigation=pi;exports.useMergeRefs=Co;exports.useRole=vi;exports.useTypeahead=bi;
|
|
5
|
-
//# sourceMappingURL=index-69174413.cjs.map
|