@pfct/purple 1.5.0-npm-next.7 → 1.5.0-npm-next.8
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/dist/Icon/utils/svgr-cli.template.d.ts +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/chunks/index.4M0spsbp.js +13 -0
- package/dist/chunks/{index.CKdg_c8_.js → index.B1f1TmJo.js} +3 -3
- package/dist/chunks/{index.CzX283JL.js → index.BBvMzEkn.js} +1 -1
- package/dist/chunks/{index.Ibth5ADB.js → index.BCzFyP67.js} +15 -15
- package/dist/chunks/index.BGfHe7LA.js +71 -0
- package/dist/chunks/{index.mFaQzo4n.js → index.BKwOnmIv.js} +1 -1
- package/dist/chunks/index.BZPx6jYI.js +8 -0
- package/dist/chunks/{index.CqzduzUN.js → index.BarRvPVS.js} +13 -13
- package/dist/chunks/{index.CiFVe164.js → index.BiYcAxU7.js} +1 -1
- package/dist/chunks/{index.cLNSO_n0.js → index.BmpKbNvp.js} +1 -1
- package/dist/chunks/index.ByATMvf3.js +161 -0
- package/dist/chunks/index.CFXaphxE.js +5 -0
- package/dist/chunks/{index.CQiaoKjj.js → index.Cg1ETQne.js} +1 -1
- package/dist/chunks/{index.BqdzwVah.js → index.DAZ7Rqfw.js} +1 -1
- package/dist/chunks/index.DIN2VJFB.js +1 -0
- package/dist/chunks/{index.Ca2_YDeQ.js → index.DSzDrqih.js} +1 -1
- package/dist/chunks/index.Dp6n8vyp.js +1 -0
- package/dist/chunks/index.Zd9j6m3g.js +1 -0
- package/dist/chunks/{index.Cg0AsUJe.js → index.mqd1GOb5.js} +1 -1
- package/dist/chunks/{index.CIq9yakG.js → index.z1-FwbyF.js} +23 -22
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +24 -23
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.es.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +14 -14
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
- package/dist/components/BottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/index.es.js +1 -1
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.es.js +1 -1
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.es.js +1 -1
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.es.js +16 -16
- package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.styled.es.js +14 -14
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +13 -13
- package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.es.js +14 -14
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.es.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.es.js +14 -14
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.d.ts +37 -9
- package/dist/components/Control/Switch/index.es.js +189 -83
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +12 -12
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +14 -14
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +14 -14
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +14 -14
- package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.util.es.js +14 -14
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +12 -12
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +14 -14
- package/dist/components/LegacyModal/BaseModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/BaseModal/index.es.js +1 -1
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.es.js +1 -1
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.es.js +14 -14
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +1 -1
- package/dist/components/Loading/index.cjs.js +1 -1
- package/dist/components/Loading/index.es.js +1 -1
- package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
- package/dist/components/MiniButton/common/index.styled.es.js +14 -14
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.es.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +12 -12
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.es.js +15 -15
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +14 -14
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +14 -14
- package/dist/components/SelectBox/index.styled.cjs.js +1 -1
- package/dist/components/SelectBox/index.styled.es.js +14 -14
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +14 -14
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.es.js +14 -14
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.es.js +1 -1
- package/dist/components/Tag/index.styled.cjs.js +1 -1
- package/dist/components/Tag/index.styled.es.js +14 -14
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +14 -14
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.es.js +1 -1
- package/dist/components/Title/index.styled.cjs.js +1 -1
- package/dist/components/Title/index.styled.es.js +14 -14
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +53 -52
- package/dist/components/ui/bottomSheet.cjs.js +6 -6
- package/dist/components/ui/bottomSheet.es.js +6 -6
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.es.js +1 -1
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.es.js +115 -117
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +1 -1
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.es.js +1 -1
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.d.ts +2 -2
- package/dist/components/ui/impact-tooltip.es.js +132 -118
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.d.ts +2 -1
- package/dist/components/ui/tooltip.es.js +63 -60
- package/dist/core/Display/Mobile.cjs.js +1 -1
- package/dist/core/Display/Mobile.es.js +1 -1
- package/dist/core/Display/Pc.cjs.js +1 -1
- package/dist/core/Display/Pc.es.js +1 -1
- package/dist/core/Display/index.styled.cjs.js +1 -1
- package/dist/core/Display/index.styled.es.js +14 -14
- package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
- package/dist/hooks/useLayoutIsMobile.es.js +14 -14
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +12 -12
- package/dist/icons/src/aliases/aliases.es.js +48 -48
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.es.js +96 -96
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +14 -14
- package/dist/icons/src/aliases/prefixed.es.js +50 -50
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +15 -15
- package/dist/icons/src/aliases/suffixed.es.js +46 -46
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +13 -13
- package/dist/icons/src/icons/index.es.js +44 -44
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +201 -200
- package/dist/library/BasicLayout/Footer.cjs.js +1 -1
- package/dist/library/BasicLayout/Footer.es.js +14 -14
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.es.js +14 -14
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +14 -14
- package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
- package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/index.es.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +14 -14
- package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +14 -14
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +1 -1
- package/package.json +9 -7
- package/dist/chunks/index.BhKv87PH.js +0 -1
- package/dist/chunks/index.CRSD6wuV.js +0 -227
- package/dist/chunks/index.DYkYoCrb.js +0 -13
- package/dist/chunks/index.Tc55yzvH.js +0 -5
- package/dist/components/Control/Switch/index.styled.cjs.js +0 -32
- package/dist/components/Control/Switch/index.styled.d.ts +0 -15
- package/dist/components/Control/Switch/index.styled.es.js +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { P as m, a as h, e as k, d as M } from "./index.ByATMvf3.js";
|
|
3
3
|
import { u as T } from "./index.6ZBAQokh.js";
|
|
4
4
|
import { j as b } from "./jsx-runtime.OVHDjVDe.js";
|
|
5
5
|
import U from "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const oe=require("react"),ge=require("./index.CKKuhuuw.js"),ye=require("./index.
|
|
1
|
+
"use strict";const oe=require("react"),ge=require("./index.CKKuhuuw.js"),ye=require("./index.DIN2VJFB.js"),G=require("./index.DSzDrqih.js"),be=require("./jsx-runtime.CrDL12FN.js");function Ee(e){if(e&&typeof e=="object"&&"default"in e)return 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 u=Ee(oe);var j="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},Se="FocusScope",ce=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,S]=u.useState(null),b=G.useCallbackRef(c),g=G.useCallbackRef(i),f=u.useRef(null),v=ge.useComposedRefs(t,o=>S(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:k(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||k(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&k(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(j,z);a.addEventListener(j,b),a.dispatchEvent(d),d.defaultPrevented||(we(Te(ue(a)),{select:!0}),document.activeElement===o&&k(a))}return()=>{a.removeEventListener(j,b),setTimeout(()=>{const d=new CustomEvent(_,z);a.addEventListener(_,g),a.dispatchEvent(d),d.defaultPrevented||k(o??document.body,{select:!0}),a.removeEventListener(_,g),Q.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Ce(m);p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&k(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&k(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return be.jsxRuntimeExports.jsx(ye.Primitive.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});ce.displayName=Se;function we(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function Ce(e){const t=ue(e),n=Z(t,e),r=Z(t.reverse(),e);return[n,r]}function ue(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(const n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ke(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ke(e)&&t&&e.select()}}var Q=Ae();function Ae(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$(e,t),e.unshift(t)},remove(t){var n;e=$(e,t),(n=e[0])==null||n.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Te(e){return e.filter(t=>t.tagName!=="A")}var U=0;function Oe(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function J(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Ne(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",B="width-before-scroll-bar",Me="with-scroll-bars-hidden",Pe="--removed-body-scroll-bar-size";function K(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fe(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Le=typeof window<"u"?u.useLayoutEffect:u.useEffect,ee=new WeakMap;function xe(e,t){var n=Fe(null,function(r){return e.forEach(function(c){return K(c,r)})});return Le(function(){var r=ee.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(a){i.has(a)||K(a,null)}),i.forEach(function(a){c.has(a)||K(a,s)})}ee.set(n,e)},[e]),n}function Ie(e){return e}function We(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function Be(e){e===void 0&&(e={});var t=We(null);return t.options=C({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,n=ie(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,C({},n))};le.isSideCarExport=!0;function De(e,t){return e.useMedium(t),le}var se=Be(),H=function(){},D=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,A=xe([n,t]),R=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(E,{sideCar:se,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},R),{ref:A})):u.createElement(m,C({},R,{className:S,ref:A}),a))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:B,zeroRight:W};var je=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je();return t&&e.setAttribute("nonce",t),e}function Ue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ke(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(Ue(t,n),Ke(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ve=function(){var e=He();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fe=function(){var e=Ve(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Xe={left:0,top:0,right:0,gap:0},V=function(e){return parseInt(e||"",10)||0},Ye=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[V(n),V(r),V(c)]},qe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xe;var t=Ye(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ge=fe(),M="data-scroll-locked",ze=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Me,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { j as S } from "./jsx-runtime.OVHDjVDe.js";
|
|
3
|
+
import * as P from "react-dom";
|
|
4
|
+
import { c as w } from "./index.6ZBAQokh.js";
|
|
5
|
+
function D(t, e) {
|
|
6
|
+
const n = u.createContext(e), i = (s) => {
|
|
7
|
+
const { children: o, ...r } = s, f = u.useMemo(() => r, Object.values(r));
|
|
8
|
+
return /* @__PURE__ */ S.jsx(n.Provider, { value: f, children: o });
|
|
9
|
+
};
|
|
10
|
+
i.displayName = t + "Provider";
|
|
11
|
+
function c(s) {
|
|
12
|
+
const o = u.useContext(n);
|
|
13
|
+
if (o) return o;
|
|
14
|
+
if (e !== void 0) return e;
|
|
15
|
+
throw new Error(`\`${s}\` must be used within \`${t}\``);
|
|
16
|
+
}
|
|
17
|
+
return [i, c];
|
|
18
|
+
}
|
|
19
|
+
function N(t, e = []) {
|
|
20
|
+
let n = [];
|
|
21
|
+
function i(s, o) {
|
|
22
|
+
const r = u.createContext(o), f = n.length;
|
|
23
|
+
n = [...n, o];
|
|
24
|
+
const m = (l) => {
|
|
25
|
+
var h;
|
|
26
|
+
const { scope: a, children: p, ...v } = l, x = ((h = a == null ? void 0 : a[t]) == null ? void 0 : h[f]) || r, C = u.useMemo(() => v, Object.values(v));
|
|
27
|
+
return /* @__PURE__ */ S.jsx(x.Provider, { value: C, children: p });
|
|
28
|
+
};
|
|
29
|
+
m.displayName = s + "Provider";
|
|
30
|
+
function d(l, a) {
|
|
31
|
+
var x;
|
|
32
|
+
const p = ((x = a == null ? void 0 : a[t]) == null ? void 0 : x[f]) || r, v = u.useContext(p);
|
|
33
|
+
if (v) return v;
|
|
34
|
+
if (o !== void 0) return o;
|
|
35
|
+
throw new Error(`\`${l}\` must be used within \`${s}\``);
|
|
36
|
+
}
|
|
37
|
+
return [m, d];
|
|
38
|
+
}
|
|
39
|
+
const c = () => {
|
|
40
|
+
const s = n.map((o) => u.createContext(o));
|
|
41
|
+
return function(r) {
|
|
42
|
+
const f = (r == null ? void 0 : r[t]) || s;
|
|
43
|
+
return u.useMemo(
|
|
44
|
+
() => ({ [`__scope${t}`]: { ...r, [t]: f } }),
|
|
45
|
+
[r, f]
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
return c.scopeName = t, [i, b(c, ...e)];
|
|
50
|
+
}
|
|
51
|
+
function b(...t) {
|
|
52
|
+
const e = t[0];
|
|
53
|
+
if (t.length === 1) return e;
|
|
54
|
+
const n = () => {
|
|
55
|
+
const i = t.map((c) => ({
|
|
56
|
+
useScope: c(),
|
|
57
|
+
scopeName: c.scopeName
|
|
58
|
+
}));
|
|
59
|
+
return function(s) {
|
|
60
|
+
const o = i.reduce((r, { useScope: f, scopeName: m }) => {
|
|
61
|
+
const l = f(s)[`__scope${m}`];
|
|
62
|
+
return { ...r, ...l };
|
|
63
|
+
}, {});
|
|
64
|
+
return u.useMemo(() => ({ [`__scope${e.scopeName}`]: o }), [o]);
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
return n.scopeName = e.scopeName, n;
|
|
68
|
+
}
|
|
69
|
+
function O(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
70
|
+
return function(c) {
|
|
71
|
+
if (t == null || t(c), n === !1 || !c.defaultPrevented)
|
|
72
|
+
return e == null ? void 0 : e(c);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
var $ = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
|
|
76
|
+
}, y = u[" useInsertionEffect ".trim().toString()] || $;
|
|
77
|
+
function k({
|
|
78
|
+
prop: t,
|
|
79
|
+
defaultProp: e,
|
|
80
|
+
onChange: n = () => {
|
|
81
|
+
},
|
|
82
|
+
caller: i
|
|
83
|
+
}) {
|
|
84
|
+
const [c, s, o] = j({
|
|
85
|
+
defaultProp: e,
|
|
86
|
+
onChange: n
|
|
87
|
+
}), r = t !== void 0, f = r ? t : c;
|
|
88
|
+
{
|
|
89
|
+
const d = u.useRef(t !== void 0);
|
|
90
|
+
u.useEffect(() => {
|
|
91
|
+
const l = d.current;
|
|
92
|
+
l !== r && console.warn(
|
|
93
|
+
`${i} is changing from ${l ? "controlled" : "uncontrolled"} to ${r ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
94
|
+
), d.current = r;
|
|
95
|
+
}, [r, i]);
|
|
96
|
+
}
|
|
97
|
+
const m = u.useCallback(
|
|
98
|
+
(d) => {
|
|
99
|
+
var l;
|
|
100
|
+
if (r) {
|
|
101
|
+
const a = R(d) ? d(t) : d;
|
|
102
|
+
a !== t && ((l = o.current) == null || l.call(o, a));
|
|
103
|
+
} else
|
|
104
|
+
s(d);
|
|
105
|
+
},
|
|
106
|
+
[r, t, s, o]
|
|
107
|
+
);
|
|
108
|
+
return [f, m];
|
|
109
|
+
}
|
|
110
|
+
function j({
|
|
111
|
+
defaultProp: t,
|
|
112
|
+
onChange: e
|
|
113
|
+
}) {
|
|
114
|
+
const [n, i] = u.useState(t), c = u.useRef(n), s = u.useRef(e);
|
|
115
|
+
return y(() => {
|
|
116
|
+
s.current = e;
|
|
117
|
+
}, [e]), u.useEffect(() => {
|
|
118
|
+
var o;
|
|
119
|
+
c.current !== n && ((o = s.current) == null || o.call(s, n), c.current = n);
|
|
120
|
+
}, [n, c]), [n, i, s];
|
|
121
|
+
}
|
|
122
|
+
function R(t) {
|
|
123
|
+
return typeof t == "function";
|
|
124
|
+
}
|
|
125
|
+
var E = [
|
|
126
|
+
"a",
|
|
127
|
+
"button",
|
|
128
|
+
"div",
|
|
129
|
+
"form",
|
|
130
|
+
"h2",
|
|
131
|
+
"h3",
|
|
132
|
+
"img",
|
|
133
|
+
"input",
|
|
134
|
+
"label",
|
|
135
|
+
"li",
|
|
136
|
+
"nav",
|
|
137
|
+
"ol",
|
|
138
|
+
"p",
|
|
139
|
+
"select",
|
|
140
|
+
"span",
|
|
141
|
+
"svg",
|
|
142
|
+
"ul"
|
|
143
|
+
], I = E.reduce((t, e) => {
|
|
144
|
+
const n = w(`Primitive.${e}`), i = u.forwardRef((c, s) => {
|
|
145
|
+
const { asChild: o, ...r } = c, f = o ? n : e;
|
|
146
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ S.jsx(f, { ...r, ref: s });
|
|
147
|
+
});
|
|
148
|
+
return i.displayName = `Primitive.${e}`, { ...t, [e]: i };
|
|
149
|
+
}, {});
|
|
150
|
+
function L(t, e) {
|
|
151
|
+
t && P.flushSync(() => t.dispatchEvent(e));
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
I as P,
|
|
155
|
+
O as a,
|
|
156
|
+
D as b,
|
|
157
|
+
N as c,
|
|
158
|
+
$ as d,
|
|
159
|
+
L as e,
|
|
160
|
+
k as u
|
|
161
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const H=require("react"),u=require("./index.DIN2VJFB.js"),R=require("./index.CKKuhuuw.js"),E=require("./index.BKwOnmIv.js"),h=require("./index.DSzDrqih.js"),x=require("./index.BmpKbNvp.js"),j=require("./index.Dp6n8vyp.js"),i=require("./jsx-runtime.CrDL12FN.js");function B(e){if(e&&typeof e=="object"&&"default"in e)return 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 a=B(H);var v="Dialog",[y,ce]=u.createContextScope(v),[V,d]=y(v),O=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),f=a.useRef(null),[g,D]=u.useControllableState({prop:r,defaultProp:s??!1,onChange:o,caller:v});return i.jsxRuntimeExports.jsx(V,{scope:t,triggerRef:l,contentRef:f,contentId:E.useId(),titleId:E.useId(),descriptionId:E.useId(),open:g,onOpenChange:D,onOpenToggle:a.useCallback(()=>D(L=>!L),[D]),modal:c,children:n})};O.displayName=v;var N="DialogTrigger",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=d(N,n),o=R.useComposedRefs(t,s.triggerRef);return i.jsxRuntimeExports.jsx(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":P(s.open),...r,ref:o,onClick:u.composeEventHandlers(e.onClick,s.onOpenToggle)})});I.displayName=N;var C="DialogPortal",[z,b]=y(C,{forceMount:void 0}),T=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=d(C,t);return i.jsxRuntimeExports.jsx(z,{scope:t,forceMount:n,children:a.Children.map(r,c=>i.jsxRuntimeExports.jsx(j.Presence,{present:n||o.open,children:i.jsxRuntimeExports.jsx(h.Portal,{asChild:!0,container:s,children:c})}))})};T.displayName=C;var m="DialogOverlay",A=a.forwardRef((e,t)=>{const n=b(m,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=d(m,e.__scopeDialog);return o.modal?i.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:i.jsxRuntimeExports.jsx(U,{...s,ref:t})}):null});A.displayName=m;var K=R.createSlot("DialogOverlay.RemoveScroll"),U=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=d(m,n);return i.jsxRuntimeExports.jsx(x.ReactRemoveScroll,{as:K,allowPinchZoom:!0,shards:[s.contentRef],children:i.jsxRuntimeExports.jsx(u.Primitive.div,{"data-state":P(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),p="DialogContent",M=a.forwardRef((e,t)=>{const n=b(p,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=d(p,e.__scopeDialog);return i.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:o.modal?i.jsxRuntimeExports.jsx(Y,{...s,ref:t}):i.jsxRuntimeExports.jsx(Z,{...s,ref:t})})});M.displayName=p;var Y=a.forwardRef((e,t)=>{const n=d(p,e.__scopeDialog),r=a.useRef(null),s=R.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return x.hideOthers(o)},[]),i.jsxRuntimeExports.jsx(S,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:u.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:u.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),Z=a.forwardRef((e,t)=>{const n=d(p,e.__scopeDialog),r=a.useRef(!1),s=a.useRef(!1);return i.jsxRuntimeExports.jsx(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var f,g;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=o.target;((g=n.triggerRef.current)==null?void 0:g.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),S=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...c}=e,l=d(p,n),f=a.useRef(null),g=R.useComposedRefs(t,f);return x.useFocusGuards(),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(x.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:i.jsxRuntimeExports.jsx(h.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":P(l.open),...c,ref:g,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(J,{titleId:l.titleId}),i.jsxRuntimeExports.jsx(X,{contentRef:f,descriptionId:l.descriptionId})]})]})}),_="DialogTitle",w=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=d(_,n);return i.jsxRuntimeExports.jsx(u.Primitive.h2,{id:s.titleId,...r,ref:t})});w.displayName=_;var F="DialogDescription",W=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=d(F,n);return i.jsxRuntimeExports.jsx(u.Primitive.p,{id:s.descriptionId,...r,ref:t})});W.displayName=F;var $="DialogClose",k=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=d($,n);return i.jsxRuntimeExports.jsx(u.Primitive.button,{type:"button",...r,ref:t,onClick:u.composeEventHandlers(e.onClick,()=>s.onOpenChange(!1))})});k.displayName=$;function P(e){return e?"open":"closed"}var q="DialogTitleWarning",[le,G]=u.createContext2(q,{contentName:p,titleName:_,docsSlug:"dialog"}),J=({titleId:e})=>{const t=G(q),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Q="DialogDescriptionWarning",X=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(Q).contentName}}.`;return a.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ee=O,te=I,oe=T,ne=A,re=M,se=w,ie=W,ae=k;exports.Close=ae;exports.Content=re;exports.Description=ie;exports.Overlay=ne;exports.Portal=oe;exports.Root=ee;exports.Title=se;exports.Trigger=te;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const Kt=require("react"),De=require("react-dom"),J=require("./index.BhKv87PH.js"),Y=require("./jsx-runtime.CrDL12FN.js"),Gt=require("./index.CKKuhuuw.js"),Le=require("./index.Ca2_YDeQ.js"),Me=require("./index.CzX283JL.js");function Jt(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const O=Jt(Kt),Te=Jt(De),$e=["top","right","bottom","left"],Z=Math.min,_=Math.max,ut=Math.round,at=Math.floor,z=t=>({x:t,y:t}),ke={left:"right",right:"left",bottom:"top",top:"bottom"},Fe={start:"end",end:"start"};function bt(t,e,n){return _(t,Z(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Ot(t){return t==="x"?"y":"x"}function Ct(t){return t==="y"?"height":"width"}const Ne=new Set(["top","bottom"]);function V(t){return Ne.has(U(t))?"y":"x"}function Pt(t){return Ot(V(t))}function _e(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Pt(t),i=Ct(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=dt(s)),[s,dt(s)]}function je(t){const e=dt(t);return[At(t),e,At(e)]}function At(t){return t.replace(/start|end/g,e=>Fe[e])}const Wt=["left","right"],Ht=["right","left"],We=["top","bottom"],He=["bottom","top"];function Be(t,e,n){switch(t){case"top":case"bottom":return n?e?Ht:Wt:e?Wt:Ht;case"left":case"right":return e?We:He;default:return[]}}function Ve(t,e,n,o){const r=et(t);let i=Be(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(At)))),i}function dt(t){return t.replace(/left|right|bottom|top/g,e=>ke[e])}function ze(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qt(t){return typeof t!="number"?ze(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ct(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(et(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const Ie=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Bt(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Bt(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function rt(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=q(e,t),p=Qt(d),w=c[m?u==="floating"?"reference":"floating":u],g=pt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,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},v=pt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Xe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=q(t,e)||{};if(a==null)return{};const u=Qt(f),m={x:n,y:o},d=Pt(r),p=Ct(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let C=R?R[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(R)))&&(C=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=C/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=C-h[p]-$,P=C/2-h[p]/2+M,N=bt(k,P,S),E=!l.arrow&&et(r)!=null&&P!==N&&i.reference[p]/2-(P<k?L:$)-h[p]/2<0,D=E?P<k?P-k:P-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:P-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ye=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=q(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[dt(c)]:je(c)),R=p!=="none";!m&&R&&v.push(...Ve(c,h,p,y));const C=[c,...v],M=await rt(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const P=_e(r,s,y);F.push(M[P[0]],M[P[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(P=>P<=0)){var $,k;const P=((($=i.flip)==null?void 0:$.index)||0)+1,N=C[P];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:P,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(R){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function zt(t){return $e.some(e=>t[e]>=0)}const qe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=q(t,e);switch(o){case"referenceHidden":{const i=await rt(e,{...r,elementContext:"reference"}),s=Vt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:zt(s)}}}case"escaped":{const i=await rt(e,{...r,altBoundary:!0}),s=Vt(i,n.floating);return{data:{escapedOffsets:s,escaped:zt(s)}}}default:return{}}}}},te=new Set(["left","top"]);async function Ue(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=et(n),l=V(n)==="y",a=te.has(s)?-1:1,f=i&&l?-1:1,u=q(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const Ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ue(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ke=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=q(t,e),a={x:n,y:o},f=await rt(e,l),u=V(U(r)),m=Ot(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=bt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=bt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Ge=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(t,e),f={x:n,y:o},u=V(r),m=Ot(u);let d=f[m],p=f[u];const h=q(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=te.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),R=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>R&&(p=R)}return{[m]:d,[u]:p}}}},Je=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=q(t,e),f=await rt(e,a),u=U(r),m=et(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),R=!e.middlewareData.shift;let C=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(C=x),R&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):C=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:C});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function nt(t){return ee(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(ee(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ee(t){return ht()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function It(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Qe=new Set(["inline","contents"]);function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Qe.has(r)}const tn=new Set(["table","td","th"]);function en(t){return tn.has(nt(t))}const nn=[":popover-open",":modal"];function gt(t){return nn.some(e=>{try{return t.matches(e)}catch{return!1}})}const on=["transform","translate","scale","rotate","perspective"],rn=["transform","translate","scale","rotate","perspective","filter"],sn=["paint","layout","strict","content"];function St(t){const e=Et(),n=W(t)?H(t):t;return on.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||rn.some(o=>(n.willChange||"").includes(o))||sn.some(o=>(n.contain||"").includes(o))}function cn(t){let e=K(t);for(;I(e)&&!tt(e);){if(St(e))return e;if(gt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ln=new Set(["html","body","#document"]);function tt(t){return ln.has(nt(t))}function H(t){return j(t).getComputedStyle(t)}function wt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||It(t)&&t.host||X(t);return It(e)?e.host:e}function ne(t){const e=K(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&st(e)?e:ne(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=ne(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=Rt(s);return e.concat(s,s.visualViewport||[],st(r)?r:[],c&&n?it(c):[])}return e.concat(r,it(r,[],n))}function Rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function oe(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=ut(n)!==i||ut(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Dt(t){return W(t)?t:t.contextElement}function Q(t){const e=Dt(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=oe(e);let s=(i?ut(n.width):n.width)/o,c=(i?ut(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const an=z(0);function re(t){const e=j(t);return!Et()||!e.visualViewport?an:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Dt(t);let s=z(1);e&&(o?W(o)&&(s=Q(o)):s=Q(t));const c=fn(i,n,o)?re(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=Rt(p);for(;h&&o&&d!==p;){const w=Q(h),g=h.getBoundingClientRect(),x=H(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=j(h),h=Rt(p)}}return pt({width:f,height:u,x:l,y:a})}function xt(t,e){const n=wt(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function ie(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-xt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function un(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?gt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((nt(o)!=="body"||st(s))&&(l=wt(o)),I(o))){const d=G(o);a=Q(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?ie(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function dn(t){return Array.from(t.getClientRects())}function pn(t){const e=X(t),n=wt(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+xt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Xt=25;function mn(t,e){const n=j(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=Et();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=xt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Xt&&(i-=p)}else a<=Xt&&(i+=a);return{width:i,height:s,x:c,y:l}}const hn=new Set(["absolute","fixed"]);function gn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?Q(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Yt(t,e,n){let o;if(e==="viewport")o=mn(t,n);else if(e==="document")o=pn(X(t));else if(W(e))o=gn(e,n);else{const r=re(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return pt(o)}function se(t,e){const n=K(t);return n===e||!W(n)||tt(n)?!1:H(n).position==="fixed"||se(n,e)}function wn(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>W(c)&&nt(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!tt(s);){const c=H(s),l=St(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&hn.has(r.position)||st(s)&&!l&&se(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function xn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?gt(e)?[]:wn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Yt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Yt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yn(t){const{width:e,height:n}=oe(t);return{width:e,height:n}}function vn(t,e,n){const o=I(e),r=X(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=xt(r)}if(o||!o&&!i)if((nt(e)!=="body"||st(r))&&(c=wt(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?ie(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function yt(t){return H(t).position==="static"}function qt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ce(t,e){const n=j(t);if(gt(t))return n;if(!I(t)){let r=K(t);for(;r&&!tt(r);){if(W(r)&&!yt(r))return r;r=K(r)}return n}let o=qt(t,e);for(;o&&en(o)&&yt(o);)o=qt(o,e);return o&&tt(o)&&yt(o)&&!St(o)?n:o||cn(t)||n}const bn=async function(t){const e=this.getOffsetParent||ce,n=this.getDimensions,o=await n(t.floating);return{reference:vn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function An(t){return H(t).direction==="rtl"}const Rn={convertOffsetParentRelativeRectToViewportRelativeRect:un,getDocumentElement:X,getClippingRect:xn,getOffsetParent:ce,getElementRects:bn,getClientRects:dn,getDimensions:yn,getScale:Q,isElement:W,isRTL:An};function le(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function On(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=at(u),h=at(r.clientWidth-(f+m)),w=at(r.clientHeight-(u+d)),g=at(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(R){const C=R[0].intersectionRatio;if(C!==l){if(!y)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!le(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function Cn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Dt(t),f=r||i?[...a?it(a):[],...it(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?On(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!le(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Pn=Ze,Sn=Ke,En=Ye,Dn=Je,Ln=qe,Ut=Xe,Mn=Ge,Tn=(t,e,n)=>{const o=new Map,r={platform:Rn,...n},i={...r.platform,_c:o};return Ie(t,e,{...r,platform:i})};var $n=typeof document<"u",kn=function(){},ft=$n?Kt.useLayoutEffect:kn;function mt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!mt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!mt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ae(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Zt(t,e){const n=ae(t);return Math.round(e*n)/n}function vt(t){const e=O.useRef(t);return ft(()=>{e.current=t}),e}function Fn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=O.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=O.useState(o);mt(m,o)||d(o);const[p,h]=O.useState(null),[w,g]=O.useState(null),x=O.useCallback(A=>{A!==R.current&&(R.current=A,h(A))},[]),b=O.useCallback(A=>{A!==C.current&&(C.current=A,g(A))},[]),y=i||p,v=s||w,R=O.useRef(null),C=O.useRef(null),M=O.useRef(f),F=l!=null,L=vt(l),$=vt(r),k=vt(a),S=O.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),Tn(R.current,C.current,A).then(T=>{const B={...T,isPositioned:k.current!==!1};P.current&&!mt(M.current,B)&&(M.current=B,Te.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);ft(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const P=O.useRef(!1);ft(()=>(P.current=!0,()=>{P.current=!1}),[]),ft(()=>{if(y&&(R.current=y),v&&(C.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=O.useMemo(()=>({reference:R,floating:C,setReference:x,setFloating:b}),[x,b]),E=O.useMemo(()=>({reference:y,floating:v}),[y,v]),D=O.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=Zt(E.floating,f.x),B=Zt(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+B+"px)",...ae(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return O.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Nn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Ut({element:o.current,padding:r}).fn(n):{}:o?Ut({element:o,padding:r}).fn(n):{}}}},_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Sn(t),options:[t,e]}),Wn=(t,e)=>({...Mn(t),options:[t,e]}),Hn=(t,e)=>({...En(t),options:[t,e]}),Bn=(t,e)=>({...Dn(t),options:[t,e]}),Vn=(t,e)=>({...Ln(t),options:[t,e]}),zn=(t,e)=>({...Nn(t),options:[t,e]});var In="Arrow",fe=O.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return Y.jsxRuntimeExports.jsx(J.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});fe.displayName=In;var Xn=fe,Lt="Popper",[ue,Yn]=J.createContextScope(Lt),[qn,de]=ue(Lt),pe=t=>{const{__scopePopper:e,children:n}=t,[o,r]=O.useState(null);return Y.jsxRuntimeExports.jsx(qn,{scope:e,anchor:o,onAnchorChange:r,children:n})};pe.displayName=Lt;var me="PopperAnchor",he=O.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=de(me,n),s=O.useRef(null),c=Gt.useComposedRefs(e,s),l=O.useRef(null);return O.useEffect(()=>{const a=l.current;l.current=(o==null?void 0:o.current)||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:Y.jsxRuntimeExports.jsx(J.Primitive.div,{...r,ref:c})});he.displayName=me;var Mt="PopperContent",[Un,Zn]=ue(Mt),ge=O.forwardRef((t,e)=>{var Tt,$t,kt,Ft,Nt,_t;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=de(Mt,n),[g,x]=O.useState(null),b=Gt.useComposedRefs(e,ot=>x(ot)),[y,v]=O.useState(null),R=Me.useSize(y),C=(R==null?void 0:R.width)??0,M=(R==null?void 0:R.height)??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Gn),altBoundary:k},{refs:P,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Fn({strategy:"fixed",placement:F,whileElementsMounted:(...ot)=>Cn(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[_n({mainAxis:r+M,alignmentAxis:s}),l&&jn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Wn():void 0,...S}),l&&Hn({...S}),Bn({...S,apply:({elements:ot,rects:jt,availableWidth:Ce,availableHeight:Pe})=>{const{width:Se,height:Ee}=jt.reference,lt=ot.floating.style;lt.setProperty("--radix-popper-available-width",`${Ce}px`),lt.setProperty("--radix-popper-available-height",`${Pe}px`),lt.setProperty("--radix-popper-anchor-width",`${Se}px`),lt.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),y&&zn({element:y,padding:c}),Jn({arrowWidth:C,arrowHeight:M}),m&&Vn({strategy:"referenceHidden",...S})]}),[T,B]=ye(E),ct=Le.useCallbackRef(p);J.useLayoutEffect2(()=>{D&&(ct==null||ct())},[D,ct]);const ve=(Tt=A.arrow)==null?void 0:Tt.x,be=($t=A.arrow)==null?void 0:$t.y,Ae=((kt=A.arrow)==null?void 0:kt.centerOffset)!==0,[Re,Oe]=O.useState();return J.useLayoutEffect2(()=>{g&&Oe(window.getComputedStyle(g).zIndex)},[g]),Y.jsxRuntimeExports.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(Ft=A.transformOrigin)==null?void 0:Ft.x,(Nt=A.transformOrigin)==null?void 0:Nt.y].join(" "),...((_t=A.hide)==null?void 0:_t.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsxRuntimeExports.jsx(Un,{scope:n,placedSide:T,onArrowChange:v,arrowX:ve,arrowY:be,shouldHideArrow:Ae,children:Y.jsxRuntimeExports.jsx(J.Primitive.div,{"data-side":T,"data-align":B,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ge.displayName=Mt;var we="PopperArrow",Kn={top:"bottom",right:"left",bottom:"top",left:"right"},xe=O.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=Zn(we,o),s=Kn[i.placedSide];return Y.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsxRuntimeExports.jsx(Xn,{...r,ref:n,style:{...r.style,display:"block"}})})});xe.displayName=we;function Gn(t){return t!==null}var Jn=t=>({name:"transformOrigin",options:t,fn(e){var w,g,x;const{placement:n,rects:o,middlewareData:r}=e,s=((w=r.arrow)==null?void 0:w.centerOffset)!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=ye(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(((g=r.arrow)==null?void 0:g.x)??0)+c/2,d=(((x=r.arrow)==null?void 0:x.y)??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function ye(t){const[e,n="center"]=t.split("-");return[e,n]}var Qn=pe,to=he,eo=ge,no=xe;exports.Anchor=to;exports.Arrow=no;exports.Content=eo;exports.Root2=Qn;exports.createPopperScope=Yn;
|
|
1
|
+
"use strict";const Kt=require("react"),De=require("react-dom"),J=require("./index.DIN2VJFB.js"),Y=require("./jsx-runtime.CrDL12FN.js"),Gt=require("./index.CKKuhuuw.js"),Le=require("./index.DSzDrqih.js"),Me=require("./index.BBvMzEkn.js");function Jt(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const O=Jt(Kt),Te=Jt(De),$e=["top","right","bottom","left"],Z=Math.min,_=Math.max,ut=Math.round,at=Math.floor,z=t=>({x:t,y:t}),ke={left:"right",right:"left",bottom:"top",top:"bottom"},Fe={start:"end",end:"start"};function bt(t,e,n){return _(t,Z(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Ot(t){return t==="x"?"y":"x"}function Ct(t){return t==="y"?"height":"width"}const Ne=new Set(["top","bottom"]);function V(t){return Ne.has(U(t))?"y":"x"}function Pt(t){return Ot(V(t))}function _e(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Pt(t),i=Ct(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=dt(s)),[s,dt(s)]}function je(t){const e=dt(t);return[At(t),e,At(e)]}function At(t){return t.replace(/start|end/g,e=>Fe[e])}const Wt=["left","right"],Ht=["right","left"],We=["top","bottom"],He=["bottom","top"];function Be(t,e,n){switch(t){case"top":case"bottom":return n?e?Ht:Wt:e?Wt:Ht;case"left":case"right":return e?We:He;default:return[]}}function Ve(t,e,n,o){const r=et(t);let i=Be(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(At)))),i}function dt(t){return t.replace(/left|right|bottom|top/g,e=>ke[e])}function ze(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qt(t){return typeof t!="number"?ze(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ct(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(et(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const Ie=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Bt(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Bt(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function rt(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=q(e,t),p=Qt(d),w=c[m?u==="floating"?"reference":"floating":u],g=pt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,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},v=pt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Xe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=q(t,e)||{};if(a==null)return{};const u=Qt(f),m={x:n,y:o},d=Pt(r),p=Ct(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let C=R?R[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(R)))&&(C=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=C/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=C-h[p]-$,P=C/2-h[p]/2+M,N=bt(k,P,S),E=!l.arrow&&et(r)!=null&&P!==N&&i.reference[p]/2-(P<k?L:$)-h[p]/2<0,D=E?P<k?P-k:P-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:P-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ye=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=q(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[dt(c)]:je(c)),R=p!=="none";!m&&R&&v.push(...Ve(c,h,p,y));const C=[c,...v],M=await rt(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const P=_e(r,s,y);F.push(M[P[0]],M[P[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(P=>P<=0)){var $,k;const P=((($=i.flip)==null?void 0:$.index)||0)+1,N=C[P];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:P,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(R){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function zt(t){return $e.some(e=>t[e]>=0)}const qe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=q(t,e);switch(o){case"referenceHidden":{const i=await rt(e,{...r,elementContext:"reference"}),s=Vt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:zt(s)}}}case"escaped":{const i=await rt(e,{...r,altBoundary:!0}),s=Vt(i,n.floating);return{data:{escapedOffsets:s,escaped:zt(s)}}}default:return{}}}}},te=new Set(["left","top"]);async function Ue(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=et(n),l=V(n)==="y",a=te.has(s)?-1:1,f=i&&l?-1:1,u=q(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const Ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ue(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ke=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=q(t,e),a={x:n,y:o},f=await rt(e,l),u=V(U(r)),m=Ot(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=bt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=bt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Ge=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(t,e),f={x:n,y:o},u=V(r),m=Ot(u);let d=f[m],p=f[u];const h=q(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=te.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),R=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>R&&(p=R)}return{[m]:d,[u]:p}}}},Je=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=q(t,e),f=await rt(e,a),u=U(r),m=et(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),R=!e.middlewareData.shift;let C=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(C=x),R&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):C=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:C});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function nt(t){return ee(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(ee(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ee(t){return ht()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function It(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Qe=new Set(["inline","contents"]);function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Qe.has(r)}const tn=new Set(["table","td","th"]);function en(t){return tn.has(nt(t))}const nn=[":popover-open",":modal"];function gt(t){return nn.some(e=>{try{return t.matches(e)}catch{return!1}})}const on=["transform","translate","scale","rotate","perspective"],rn=["transform","translate","scale","rotate","perspective","filter"],sn=["paint","layout","strict","content"];function St(t){const e=Et(),n=W(t)?H(t):t;return on.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||rn.some(o=>(n.willChange||"").includes(o))||sn.some(o=>(n.contain||"").includes(o))}function cn(t){let e=K(t);for(;I(e)&&!tt(e);){if(St(e))return e;if(gt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ln=new Set(["html","body","#document"]);function tt(t){return ln.has(nt(t))}function H(t){return j(t).getComputedStyle(t)}function wt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||It(t)&&t.host||X(t);return It(e)?e.host:e}function ne(t){const e=K(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&st(e)?e:ne(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=ne(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=Rt(s);return e.concat(s,s.visualViewport||[],st(r)?r:[],c&&n?it(c):[])}return e.concat(r,it(r,[],n))}function Rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function oe(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=ut(n)!==i||ut(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Dt(t){return W(t)?t:t.contextElement}function Q(t){const e=Dt(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=oe(e);let s=(i?ut(n.width):n.width)/o,c=(i?ut(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const an=z(0);function re(t){const e=j(t);return!Et()||!e.visualViewport?an:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Dt(t);let s=z(1);e&&(o?W(o)&&(s=Q(o)):s=Q(t));const c=fn(i,n,o)?re(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=Rt(p);for(;h&&o&&d!==p;){const w=Q(h),g=h.getBoundingClientRect(),x=H(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=j(h),h=Rt(p)}}return pt({width:f,height:u,x:l,y:a})}function xt(t,e){const n=wt(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function ie(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-xt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function un(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?gt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((nt(o)!=="body"||st(s))&&(l=wt(o)),I(o))){const d=G(o);a=Q(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?ie(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function dn(t){return Array.from(t.getClientRects())}function pn(t){const e=X(t),n=wt(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+xt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Xt=25;function mn(t,e){const n=j(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=Et();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=xt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Xt&&(i-=p)}else a<=Xt&&(i+=a);return{width:i,height:s,x:c,y:l}}const hn=new Set(["absolute","fixed"]);function gn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?Q(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Yt(t,e,n){let o;if(e==="viewport")o=mn(t,n);else if(e==="document")o=pn(X(t));else if(W(e))o=gn(e,n);else{const r=re(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return pt(o)}function se(t,e){const n=K(t);return n===e||!W(n)||tt(n)?!1:H(n).position==="fixed"||se(n,e)}function wn(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>W(c)&&nt(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!tt(s);){const c=H(s),l=St(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&hn.has(r.position)||st(s)&&!l&&se(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function xn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?gt(e)?[]:wn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Yt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Yt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yn(t){const{width:e,height:n}=oe(t);return{width:e,height:n}}function vn(t,e,n){const o=I(e),r=X(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=xt(r)}if(o||!o&&!i)if((nt(e)!=="body"||st(r))&&(c=wt(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?ie(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function yt(t){return H(t).position==="static"}function qt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ce(t,e){const n=j(t);if(gt(t))return n;if(!I(t)){let r=K(t);for(;r&&!tt(r);){if(W(r)&&!yt(r))return r;r=K(r)}return n}let o=qt(t,e);for(;o&&en(o)&&yt(o);)o=qt(o,e);return o&&tt(o)&&yt(o)&&!St(o)?n:o||cn(t)||n}const bn=async function(t){const e=this.getOffsetParent||ce,n=this.getDimensions,o=await n(t.floating);return{reference:vn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function An(t){return H(t).direction==="rtl"}const Rn={convertOffsetParentRelativeRectToViewportRelativeRect:un,getDocumentElement:X,getClippingRect:xn,getOffsetParent:ce,getElementRects:bn,getClientRects:dn,getDimensions:yn,getScale:Q,isElement:W,isRTL:An};function le(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function On(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=at(u),h=at(r.clientWidth-(f+m)),w=at(r.clientHeight-(u+d)),g=at(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(R){const C=R[0].intersectionRatio;if(C!==l){if(!y)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!le(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function Cn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Dt(t),f=r||i?[...a?it(a):[],...it(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?On(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!le(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Pn=Ze,Sn=Ke,En=Ye,Dn=Je,Ln=qe,Ut=Xe,Mn=Ge,Tn=(t,e,n)=>{const o=new Map,r={platform:Rn,...n},i={...r.platform,_c:o};return Ie(t,e,{...r,platform:i})};var $n=typeof document<"u",kn=function(){},ft=$n?Kt.useLayoutEffect:kn;function mt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!mt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!mt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ae(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Zt(t,e){const n=ae(t);return Math.round(e*n)/n}function vt(t){const e=O.useRef(t);return ft(()=>{e.current=t}),e}function Fn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=O.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=O.useState(o);mt(m,o)||d(o);const[p,h]=O.useState(null),[w,g]=O.useState(null),x=O.useCallback(A=>{A!==R.current&&(R.current=A,h(A))},[]),b=O.useCallback(A=>{A!==C.current&&(C.current=A,g(A))},[]),y=i||p,v=s||w,R=O.useRef(null),C=O.useRef(null),M=O.useRef(f),F=l!=null,L=vt(l),$=vt(r),k=vt(a),S=O.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),Tn(R.current,C.current,A).then(T=>{const B={...T,isPositioned:k.current!==!1};P.current&&!mt(M.current,B)&&(M.current=B,Te.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);ft(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const P=O.useRef(!1);ft(()=>(P.current=!0,()=>{P.current=!1}),[]),ft(()=>{if(y&&(R.current=y),v&&(C.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=O.useMemo(()=>({reference:R,floating:C,setReference:x,setFloating:b}),[x,b]),E=O.useMemo(()=>({reference:y,floating:v}),[y,v]),D=O.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=Zt(E.floating,f.x),B=Zt(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+B+"px)",...ae(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return O.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Nn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Ut({element:o.current,padding:r}).fn(n):{}:o?Ut({element:o,padding:r}).fn(n):{}}}},_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Sn(t),options:[t,e]}),Wn=(t,e)=>({...Mn(t),options:[t,e]}),Hn=(t,e)=>({...En(t),options:[t,e]}),Bn=(t,e)=>({...Dn(t),options:[t,e]}),Vn=(t,e)=>({...Ln(t),options:[t,e]}),zn=(t,e)=>({...Nn(t),options:[t,e]});var In="Arrow",fe=O.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return Y.jsxRuntimeExports.jsx(J.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});fe.displayName=In;var Xn=fe,Lt="Popper",[ue,Yn]=J.createContextScope(Lt),[qn,de]=ue(Lt),pe=t=>{const{__scopePopper:e,children:n}=t,[o,r]=O.useState(null);return Y.jsxRuntimeExports.jsx(qn,{scope:e,anchor:o,onAnchorChange:r,children:n})};pe.displayName=Lt;var me="PopperAnchor",he=O.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=de(me,n),s=O.useRef(null),c=Gt.useComposedRefs(e,s),l=O.useRef(null);return O.useEffect(()=>{const a=l.current;l.current=(o==null?void 0:o.current)||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:Y.jsxRuntimeExports.jsx(J.Primitive.div,{...r,ref:c})});he.displayName=me;var Mt="PopperContent",[Un,Zn]=ue(Mt),ge=O.forwardRef((t,e)=>{var Tt,$t,kt,Ft,Nt,_t;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=de(Mt,n),[g,x]=O.useState(null),b=Gt.useComposedRefs(e,ot=>x(ot)),[y,v]=O.useState(null),R=Me.useSize(y),C=(R==null?void 0:R.width)??0,M=(R==null?void 0:R.height)??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Gn),altBoundary:k},{refs:P,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Fn({strategy:"fixed",placement:F,whileElementsMounted:(...ot)=>Cn(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[_n({mainAxis:r+M,alignmentAxis:s}),l&&jn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Wn():void 0,...S}),l&&Hn({...S}),Bn({...S,apply:({elements:ot,rects:jt,availableWidth:Ce,availableHeight:Pe})=>{const{width:Se,height:Ee}=jt.reference,lt=ot.floating.style;lt.setProperty("--radix-popper-available-width",`${Ce}px`),lt.setProperty("--radix-popper-available-height",`${Pe}px`),lt.setProperty("--radix-popper-anchor-width",`${Se}px`),lt.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),y&&zn({element:y,padding:c}),Jn({arrowWidth:C,arrowHeight:M}),m&&Vn({strategy:"referenceHidden",...S})]}),[T,B]=ye(E),ct=Le.useCallbackRef(p);J.useLayoutEffect2(()=>{D&&(ct==null||ct())},[D,ct]);const ve=(Tt=A.arrow)==null?void 0:Tt.x,be=($t=A.arrow)==null?void 0:$t.y,Ae=((kt=A.arrow)==null?void 0:kt.centerOffset)!==0,[Re,Oe]=O.useState();return J.useLayoutEffect2(()=>{g&&Oe(window.getComputedStyle(g).zIndex)},[g]),Y.jsxRuntimeExports.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(Ft=A.transformOrigin)==null?void 0:Ft.x,(Nt=A.transformOrigin)==null?void 0:Nt.y].join(" "),...((_t=A.hide)==null?void 0:_t.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsxRuntimeExports.jsx(Un,{scope:n,placedSide:T,onArrowChange:v,arrowX:ve,arrowY:be,shouldHideArrow:Ae,children:Y.jsxRuntimeExports.jsx(J.Primitive.div,{"data-side":T,"data-align":B,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ge.displayName=Mt;var we="PopperArrow",Kn={top:"bottom",right:"left",bottom:"top",left:"right"},xe=O.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=Zn(we,o),s=Kn[i.placedSide];return Y.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsxRuntimeExports.jsx(Xn,{...r,ref:n,style:{...r.style,display:"block"}})})});xe.displayName=we;function Gn(t){return t!==null}var Jn=t=>({name:"transformOrigin",options:t,fn(e){var w,g,x;const{placement:n,rects:o,middlewareData:r}=e,s=((w=r.arrow)==null?void 0:w.centerOffset)!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=ye(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(((g=r.arrow)==null?void 0:g.x)??0)+c/2,d=(((x=r.arrow)==null?void 0:x.y)??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function ye(t){const[e,n="center"]=t.split("-");return[e,n]}var Qn=pe,to=he,eo=ge,no=xe;exports.Anchor=to;exports.Arrow=no;exports.Content=eo;exports.Root2=Qn;exports.createPopperScope=Yn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const w=require("react"),S=require("./jsx-runtime.CrDL12FN.js"),j=require("react-dom"),y=require("./index.CKKuhuuw.js");function b(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const u=b(w),R=b(j);function $(t,e){const o=u.createContext(e),i=c=>{const{children:n,...r}=c,f=u.useMemo(()=>r,Object.values(r));return S.jsxRuntimeExports.jsx(o.Provider,{value:f,children:n})};i.displayName=t+"Provider";function s(c){const n=u.useContext(o);if(n)return n;if(e!==void 0)return e;throw new Error(`\`${c}\` must be used within \`${t}\``)}return[i,s]}function E(t,e=[]){let o=[];function i(c,n){const r=u.createContext(n),f=o.length;o=[...o,n];const m=l=>{var C;const{scope:a,children:v,...p}=l,x=((C=a==null?void 0:a[t])==null?void 0:C[f])||r,P=u.useMemo(()=>p,Object.values(p));return S.jsxRuntimeExports.jsx(x.Provider,{value:P,children:v})};m.displayName=c+"Provider";function d(l,a){var x;const v=((x=a==null?void 0:a[t])==null?void 0:x[f])||r,p=u.useContext(v);if(p)return p;if(n!==void 0)return n;throw new Error(`\`${l}\` must be used within \`${c}\``)}return[m,d]}const s=()=>{const c=o.map(n=>u.createContext(n));return function(r){const f=(r==null?void 0:r[t])||c;return u.useMemo(()=>({[`__scope${t}`]:{...r,[t]:f}}),[r,f])}};return s.scopeName=t,[i,_(s,...e)]}function _(...t){const e=t[0];if(t.length===1)return e;const o=()=>{const i=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const n=i.reduce((r,{useScope:f,scopeName:m})=>{const l=f(c)[`__scope${m}`];return{...r,...l}},{});return u.useMemo(()=>({[`__scope${e.scopeName}`]:n}),[n])}};return o.scopeName=e.scopeName,o}function O(t,e,{checkForDefaultPrevented:o=!0}={}){return function(s){if(t==null||t(s),o===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}var h=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},D=u[" useInsertionEffect ".trim().toString()]||h;function M({prop:t,defaultProp:e,onChange:o=()=>{},caller:i}){const[s,c,n]=g({defaultProp:e,onChange:o}),r=t!==void 0,f=r?t:s;{const d=u.useRef(t!==void 0);u.useEffect(()=>{const l=d.current;l!==r&&console.warn(`${i} is changing from ${l?"controlled":"uncontrolled"} to ${r?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=r},[r,i])}const m=u.useCallback(d=>{var l;if(r){const a=N(d)?d(t):d;a!==t&&((l=n.current)==null||l.call(n,a))}else c(d)},[r,t,c,n]);return[f,m]}function g({defaultProp:t,onChange:e}){const[o,i]=u.useState(t),s=u.useRef(o),c=u.useRef(e);return D(()=>{c.current=e},[e]),u.useEffect(()=>{var n;s.current!==o&&((n=c.current)==null||n.call(c,o),s.current=o)},[o,s]),[o,i,c]}function N(t){return typeof t=="function"}var q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],k=q.reduce((t,e)=>{const o=y.createSlot(`Primitive.${e}`),i=u.forwardRef((s,c)=>{const{asChild:n,...r}=s,f=n?o:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsxRuntimeExports.jsx(f,{...r,ref:c})});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{});function L(t,e){t&&R.flushSync(()=>t.dispatchEvent(e))}exports.Primitive=k;exports.composeEventHandlers=O;exports.createContext2=$;exports.createContextScope=E;exports.dispatchDiscreteCustomEvent=L;exports.useControllableState=M;exports.useLayoutEffect2=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const M=require("react"),f=require("./index.
|
|
1
|
+
"use strict";const M=require("react"),f=require("./index.DIN2VJFB.js"),x=require("./index.CKKuhuuw.js"),h=require("./jsx-runtime.CrDL12FN.js"),I=require("react-dom"),H=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function U(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=U(M),q=H(I);function y(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function z(e,t=globalThis==null?void 0:globalThis.document){const n=y(e);i.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var K="DismissableLayer",m="dismissableLayer.update",$="dismissableLayer.pointerDownOutside",X="dismissableLayer.focusOutside",R,w=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...v}=e,u=i.useContext(w),[d,j]=i.useState(null),E=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,B]=i.useState({}),N=x.useComposedRefs(t,a=>j(a)),P=Array.from(u.layers),[A]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),F=P.indexOf(A),D=d?P.indexOf(d):-1,W=u.layersWithOutsidePointerEventsDisabled.size>0,O=D>=F,k=J(a=>{const p=a.target,L=[...u.branches].some(b=>b.contains(p));!O||L||(r==null||r(a),l==null||l(a),a.defaultPrevented||c==null||c())},E),C=Q(a=>{const p=a.target;[...u.branches].some(b=>b.contains(p))||(o==null||o(a),l==null||l(a),a.defaultPrevented||c==null||c())},E);return z(a=>{D===u.layers.size-1&&(s==null||s(a),!a.defaultPrevented&&c&&(a.preventDefault(),c()))},E),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(R=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),g(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=R)}},[d,E,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),g())},[d,u]),i.useEffect(()=>{const a=()=>B({});return document.addEventListener(m,a),()=>document.removeEventListener(m,a)},[]),h.jsxRuntimeExports.jsx(f.Primitive.div,{...v,ref:N,style:{pointerEvents:W?O?"auto":"none":void 0,...e.style},onFocusCapture:f.composeEventHandlers(e.onFocusCapture,C.onFocusCapture),onBlurCapture:f.composeEventHandlers(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:f.composeEventHandlers(e.onPointerDownCapture,k.onPointerDownCapture)})});T.displayName=K;var Y="DismissableLayerBranch",G=i.forwardRef((e,t)=>{const n=i.useContext(w),s=i.useRef(null),r=x.useComposedRefs(t,s);return i.useEffect(()=>{const o=s.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsxRuntimeExports.jsx(f.Primitive.div,{...e,ref:r})});G.displayName=Y;function J(e,t=globalThis==null?void 0:globalThis.document){const n=y(e),s=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const o=c=>{if(c.target&&!s.current){let v=function(){S($,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=v,t.addEventListener("click",r.current,{once:!0})):v()}else t.removeEventListener("click",r.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Q(e,t=globalThis==null?void 0:globalThis.document){const n=y(e),s=i.useRef(!1);return i.useEffect(()=>{const r=o=>{o.target&&!s.current&&S(X,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const e=new CustomEvent(m);document.dispatchEvent(e)}function S(e,t,n,{discrete:s}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?f.dispatchDiscreteCustomEvent(r,o):r.dispatchEvent(o)}var V="Portal",_=i.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[r,o]=i.useState(!1);f.useLayoutEffect2(()=>o(!0),[]);const l=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?q.default.createPortal(h.jsxRuntimeExports.jsx(f.Primitive.div,{...s,ref:t}),l):null});_.displayName=V;exports.DismissableLayer=T;exports.Portal=_;exports.useCallbackRef=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("react"),E=require("./index.CKKuhuuw.js"),g=require("./index.DIN2VJFB.js");function P(e){if(e&&typeof e=="object"&&"default"in e)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=P(y);function R(e,n){return a.useReducer((t,r)=>n[t][r]??t,e)}var A=e=>{const{present:n,children:t}=e,r=S(n),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=E.useComposedRefs(r.ref,v(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};A.displayName="Presence";function S(e){const[n,t]=a.useState(),r=a.useRef(null),i=a.useRef(e),u=a.useRef("none"),p=e?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect2(()=>{const o=r.current,d=i.current;if(d!==e){const f=u.current,s=l(o);e?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),g.useLayoutEffect2(()=>{if(n){let o;const d=n.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(CSS.escape(s.animationName));if(s.target===n&&M&&(c("ANIMATION_END"),!i.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",o=d.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},f=s=>{s.target===n&&(u.current=l(r.current))};return n.addEventListener("animationstart",f),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{d.clearTimeout(o),n.removeEventListener("animationstart",f),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{r.current=o?getComputedStyle(o):null,t(o)},[])}}function l(e){return(e==null?void 0:e.animationName)||"none"}function v(e){var r,i;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}exports.Presence=A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react");function o(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=o(c);function s(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}exports.usePrevious=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime.CrDL12FN.js"),g=require("react"),ne=require("../components/LegacyModal/BaseModal/index.styled.cjs.js"),ie=require("../components/OverlayRoot/index.styled.cjs.js"),D=require("../hooks/useOverlayPreventScroll.cjs.js"),a=require("@emotion/react"),n=require("../core/Colors/index.cjs.js");require("../utils/GenerateColorStyle/mini-button.cjs.js");const se=require("../utils/GenerateColorStyle/datepicker.cjs.js"),ae=require("@emotion/styled"),p=require("../utils/media.util.cjs.js"),N=require("../core/TextStyles/index.cjs.js");require("../components/ui/typography.cjs.js");require("../components/Accordion/index.cjs.js");require("../components/Badge/IconBadge/index.styled.cjs.js");require("../components/Badge/TextBadge/index.styled.cjs.js");require("../components/Loading/Skeleton/index.cjs.js");const le=require("../components/Loading/Spinner/index.styled.cjs.js");require("../components/Card/index.styled.cjs.js");require("../components/Comment/index.cjs.js");require("../icons/src/icons/Alarm_fill.cjs.js");require("../icons/src/icons/
|
|
1
|
+
"use strict";const o=require("./jsx-runtime.CrDL12FN.js"),g=require("react"),ne=require("../components/LegacyModal/BaseModal/index.styled.cjs.js"),ie=require("../components/OverlayRoot/index.styled.cjs.js"),D=require("../hooks/useOverlayPreventScroll.cjs.js"),a=require("@emotion/react"),n=require("../core/Colors/index.cjs.js");require("../utils/GenerateColorStyle/mini-button.cjs.js");const se=require("../utils/GenerateColorStyle/datepicker.cjs.js"),ae=require("@emotion/styled"),p=require("../utils/media.util.cjs.js"),N=require("../core/TextStyles/index.cjs.js");require("../components/ui/typography.cjs.js");require("../components/Accordion/index.cjs.js");require("../components/Badge/IconBadge/index.styled.cjs.js");require("../components/Badge/TextBadge/index.styled.cjs.js");require("../components/Loading/Skeleton/index.cjs.js");const le=require("../components/Loading/Spinner/index.styled.cjs.js");require("../components/Card/index.styled.cjs.js");require("../components/Comment/index.cjs.js");require("../icons/src/icons/Alarm_fill.cjs.js");require("../icons/src/icons/Cancel_circle.cjs.js");require("../icons/src/icons/Check.cjs.js");require("../icons/src/icons/Chevron_left.cjs.js");require("../icons/src/icons/Chevron_right.cjs.js");require("../icons/src/icons/Chevron_down.cjs.js");require("../icons/src/icons/Cart_fill.cjs.js");require("../icons/src/icons/Chevron_up.cjs.js");require("../icons/src/icons/Double_Chevron_right.cjs.js");require("../icons/src/icons/Eye_slash_fill.cjs.js");require("../icons/src/icons/Filter.cjs.js");require("../icons/src/icons/Double_Chevron_left.cjs.js");require("../icons/src/icons/Calendar.cjs.js");require("../icons/src/icons/Eye_fill.cjs.js");require("../icons/src/icons/Person_fill.cjs.js");require("../icons/src/icons/More.cjs.js");require("../icons/src/icons/Question_circle.cjs.js");require("../icons/src/icons/Search.cjs.js");require("../icons/src/icons/Plus.cjs.js");require("../icons/src/icons/Setting_fill.cjs.js");require("../icons/src/icons/Share.cjs.js");require("../icons/src/icons/Information.cjs.js");require("../icons/src/icons/Re.cjs.js");require("../icons/src/icons/Menu.cjs.js");require("../icons/src/icons/Cancel.cjs.js");require("../icons/src/icons/Store.cjs.js");const B=require("../utils/GenerateColorStyle/control/radio-button.cjs.js");require("../components/Control/CheckMark/index.styled.cjs.js");require("../components/Control/Switch/index.cjs.js");require("../components/DatePicker/BaseDatePicker/index.styled.cjs.js");require("../components/DatePicker/BaseDatePicker/YearMonthController/index.styed.cjs.js");require("../library/IconWithImage/index.styled.cjs.js");require("../library/List/BottomSheetItemList/index.styled.cjs.js");require("lottie-web");require("../library/Lottie/index.styled.cjs.js");require("../library/Spacing/index.styled.cjs.js");require("../components/DatePicker/BaseDatePicker/Month/index.styled.cjs.js");require("../components/DatePicker/BaseDatePicker/Week/index.styled.cjs.js");require("../types/date.cjs.js");require("../components/DatePicker/BaseDatePicker/hooks/index.util.cjs.js");require("../components/DatePicker/SingleDatePickerModal/index.styled.cjs.js");require("../components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.cjs.js");require("../components/DatePicker/RangeDatePickerModal/index.styled.cjs.js");const ce=require("./index.CKKuhuuw.js"),de=require("./index.DMhXgOEz.js"),L=require("../lib/utils.cjs.js"),w=require("../constants/style.constants.cjs.js");require("../components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.cjs.js");require("../components/Divider/index.styled.cjs.js");require("./index.styled.CMpDdHBq.js");require("../components/Input/BaseInput/index.cjs.js");require("../components/Input/PostfixInput/index.cjs.js");require("../components/Input/ResidentNumberInput/index.styled.cjs.js");require("../components/Input/TextField/index.cjs.js");require("../components/Navigation/index.styled.cjs.js");require("../components/Navigation/BaseNavigation/index.styled.cjs.js");require("../components/Navigation/constant.cjs.js");require("../components/Segment/BaseSegment/index.styled.cjs.js");require("../components/Segment/ExtendSegment/index.styled.cjs.js");const W=require("../core/Typography/index.cjs.js"),$=require("../components/BottomSheet/TitleBottomSheet/index.styled.cjs.js"),pe=require("../style/common.cjs.js"),x=require("../components/LegacyModal/index.styled.cjs.js"),ue=require("../components/MiniButton/UnderLineMiniButton/index.cjs.js");require("./index.D2jUN9AV.js");require("../components/ui/bottomSheet.cjs.js");const M=require("../utils/GenerateColorStyle/tag.cjs.js"),be=require("../hooks/useResize.cjs.js"),y=require("../components/BottomSheet/BaseBottomSheet/index.styled.cjs.js"),ge=require("../components/Navigation/index.cjs.js"),xe=require("../components/BottomSheet/NavBottomSheet/index.styled.cjs.js"),me=require("../utils/GenerateColorStyle/progress-bar.cjs.js"),H=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},R=H(g),r=H(ae),P=e=>{const t=n.basicColors[`${e}400`],i="transparent",s=n.basicColors.white,l=n.basicColors.white,d=n.basicColors[`${e}100`],u="transparent",b=n.basicColors.white,c=n.basicColors.white;return{default:{on:{containerColor:t,borderColor:i,textColor:s,iconColor:l},off:{containerColor:n.basicColors.white,borderColor:n.basicColors.gray50,textColor:n.semanticColors.chipDefaultText,iconColor:n.basicColors.gray300}},disabled:{on:{containerColor:d,borderColor:u,textColor:b,iconColor:c},off:{containerColor:n.basicColors.white,borderColor:n.basicColors.gray25,textColor:n.basicColors.gray100,iconColor:n.basicColors.gray100}}}},he=r.default.div`
|
|
2
2
|
${p.Smaller(a.css`
|
|
3
3
|
display: none;
|
|
4
4
|
`)}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { c as B, P as
|
|
3
|
-
import { c as q, u as
|
|
4
|
-
import { u as C } from "./index.
|
|
5
|
-
import { D as K, P as U } from "./index.
|
|
6
|
-
import { R as Y, h as Z, u as z, F as J } from "./index.
|
|
2
|
+
import { c as B, P as D, a as p, b as H, u as V } from "./index.ByATMvf3.js";
|
|
3
|
+
import { c as q, u as R } from "./index.6ZBAQokh.js";
|
|
4
|
+
import { u as C } from "./index.4M0spsbp.js";
|
|
5
|
+
import { D as K, P as U } from "./index.BiYcAxU7.js";
|
|
6
|
+
import { R as Y, h as Z, u as z, F as J } from "./index.BCzFyP67.js";
|
|
7
|
+
import { P as _ } from "./index.BGfHe7LA.js";
|
|
7
8
|
import { j as s } from "./jsx-runtime.OVHDjVDe.js";
|
|
8
|
-
var v = "Dialog", [y,
|
|
9
|
+
var v = "Dialog", [y, pe] = B(v), [Q, u] = y(v), N = (e) => {
|
|
9
10
|
const {
|
|
10
11
|
__scopeDialog: o,
|
|
11
12
|
children: r,
|
|
@@ -39,7 +40,7 @@ var v = "Dialog", [y, ge] = B(v), [Q, u] = y(v), N = (e) => {
|
|
|
39
40
|
N.displayName = v;
|
|
40
41
|
var O = "DialogTrigger", I = i.forwardRef(
|
|
41
42
|
(e, o) => {
|
|
42
|
-
const { __scopeDialog: r, ...a } = e, n = u(O, r), t =
|
|
43
|
+
const { __scopeDialog: r, ...a } = e, n = u(O, r), t = R(o, n.triggerRef);
|
|
43
44
|
return /* @__PURE__ */ s.jsx(
|
|
44
45
|
D.button,
|
|
45
46
|
{
|
|
@@ -60,13 +61,13 @@ var h = "DialogPortal", [X, A] = y(h, {
|
|
|
60
61
|
forceMount: void 0
|
|
61
62
|
}), T = (e) => {
|
|
62
63
|
const { __scopeDialog: o, forceMount: r, children: a, container: n } = e, t = u(h, o);
|
|
63
|
-
return /* @__PURE__ */ s.jsx(X, { scope: o, forceMount: r, children: i.Children.map(a, (c) => /* @__PURE__ */ s.jsx(
|
|
64
|
+
return /* @__PURE__ */ s.jsx(X, { scope: o, forceMount: r, children: i.Children.map(a, (c) => /* @__PURE__ */ s.jsx(_, { present: r || t.open, children: /* @__PURE__ */ s.jsx(U, { asChild: !0, container: n, children: c }) })) });
|
|
64
65
|
};
|
|
65
66
|
T.displayName = h;
|
|
66
67
|
var m = "DialogOverlay", b = i.forwardRef(
|
|
67
68
|
(e, o) => {
|
|
68
69
|
const r = A(m, e.__scopeDialog), { forceMount: a = r.forceMount, ...n } = e, t = u(m, e.__scopeDialog);
|
|
69
|
-
return t.modal ? /* @__PURE__ */ s.jsx(
|
|
70
|
+
return t.modal ? /* @__PURE__ */ s.jsx(_, { present: a || t.open, children: /* @__PURE__ */ s.jsx(te, { ...n, ref: o }) }) : null;
|
|
70
71
|
}
|
|
71
72
|
);
|
|
72
73
|
b.displayName = m;
|
|
@@ -90,13 +91,13 @@ var ee = q("DialogOverlay.RemoveScroll"), te = i.forwardRef(
|
|
|
90
91
|
), f = "DialogContent", j = i.forwardRef(
|
|
91
92
|
(e, o) => {
|
|
92
93
|
const r = A(f, e.__scopeDialog), { forceMount: a = r.forceMount, ...n } = e, t = u(f, e.__scopeDialog);
|
|
93
|
-
return /* @__PURE__ */ s.jsx(
|
|
94
|
+
return /* @__PURE__ */ s.jsx(_, { present: a || t.open, children: t.modal ? /* @__PURE__ */ s.jsx(oe, { ...n, ref: o }) : /* @__PURE__ */ s.jsx(ne, { ...n, ref: o }) });
|
|
94
95
|
}
|
|
95
96
|
);
|
|
96
97
|
j.displayName = f;
|
|
97
98
|
var oe = i.forwardRef(
|
|
98
99
|
(e, o) => {
|
|
99
|
-
const r = u(f, e.__scopeDialog), a = i.useRef(null), n =
|
|
100
|
+
const r = u(f, e.__scopeDialog), a = i.useRef(null), n = R(o, r.contentRef, a);
|
|
100
101
|
return i.useEffect(() => {
|
|
101
102
|
const t = a.current;
|
|
102
103
|
if (t) return Z(t);
|
|
@@ -147,7 +148,7 @@ var oe = i.forwardRef(
|
|
|
147
148
|
}
|
|
148
149
|
), M = i.forwardRef(
|
|
149
150
|
(e, o) => {
|
|
150
|
-
const { __scopeDialog: r, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: t, ...c } = e, l = u(f, r), d = i.useRef(null), g =
|
|
151
|
+
const { __scopeDialog: r, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: t, ...c } = e, l = u(f, r), d = i.useRef(null), g = R(o, d);
|
|
151
152
|
return z(), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
152
153
|
/* @__PURE__ */ s.jsx(
|
|
153
154
|
J,
|
|
@@ -210,7 +211,7 @@ k.displayName = W;
|
|
|
210
211
|
function P(e) {
|
|
211
212
|
return e ? "open" : "closed";
|
|
212
213
|
}
|
|
213
|
-
var G = "DialogTitleWarning", [
|
|
214
|
+
var G = "DialogTitleWarning", [De, L] = H(G, {
|
|
214
215
|
contentName: f,
|
|
215
216
|
titleName: E,
|
|
216
217
|
docsSlug: "dialog"
|
|
@@ -230,14 +231,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${o.do
|
|
|
230
231
|
const n = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
|
|
231
232
|
o && n && (document.getElementById(o) || console.warn(a));
|
|
232
233
|
}, [a, e, o]), null;
|
|
233
|
-
},
|
|
234
|
+
}, me = N, ve = I, xe = T, Ce = b, Re = j, _e = F, he = S, Ee = k;
|
|
234
235
|
export {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
236
|
+
Ee as C,
|
|
237
|
+
he as D,
|
|
238
|
+
Ce as O,
|
|
239
|
+
xe as P,
|
|
240
|
+
me as R,
|
|
241
|
+
_e as T,
|
|
242
|
+
Re as a,
|
|
243
|
+
ve as b
|
|
243
244
|
};
|