figma-kit 1.0.0-beta.3 → 1.0.0-beta.31
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/LICENSE +21 -0
- package/README.md +18 -25
- package/dist/components/alert-dialog/alert-dialog.d.ts +31 -0
- package/dist/components/alert-dialog/index.d.ts +1 -0
- package/dist/components/button/button.d.ts +15 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +12 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/collapsible/collapsible.d.ts +10 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/color-picker/color-picker-alpha.d.ts +4 -0
- package/dist/components/color-picker/color-picker-area.d.ts +5 -0
- package/dist/components/color-picker/color-picker-hue.d.ts +4 -0
- package/dist/components/color-picker/color-picker-input.d.ts +7 -0
- package/dist/components/color-picker/color-picker.d.ts +63 -0
- package/dist/components/color-picker/index.d.ts +5 -0
- package/dist/components/combobox/combobox.d.ts +51 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/context-menu/context-menu.d.ts +36 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/dialog/dialog.d.ts +25 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog.base/dialog.base.d.ts +15 -0
- package/dist/components/dialog.base/index.d.ts +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +36 -0
- package/dist/components/dropdown-menu/index.d.ts +1 -0
- package/dist/components/flex/flex.d.ts +23 -0
- package/dist/components/flex/index.d.ts +1 -0
- package/dist/components/icon/icon.d.ts +16 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon-button/icon-button.d.ts +21 -0
- package/dist/components/icon-button/index.d.ts +1 -0
- package/dist/components/icons/actions.d.ts +3 -0
- package/dist/components/icons/align-bottom.d.ts +3 -0
- package/dist/components/icons/align-horizontal-center.d.ts +3 -0
- package/dist/components/icons/align-left.d.ts +3 -0
- package/dist/components/icons/align-right.d.ts +3 -0
- package/dist/components/icons/align-top.d.ts +3 -0
- package/dist/components/icons/align-vertical-center.d.ts +3 -0
- package/dist/components/icons/annotation.d.ts +3 -0
- package/dist/components/icons/aspect-ratio.d.ts +3 -0
- package/dist/components/icons/auto-height.d.ts +3 -0
- package/dist/components/icons/auto-width.d.ts +3 -0
- package/dist/components/icons/blend-mode.d.ts +3 -0
- package/dist/components/icons/boolean.d.ts +3 -0
- package/dist/components/icons/checkmark-indeterminate.d.ts +3 -0
- package/dist/components/icons/checkmark.d.ts +3 -0
- package/dist/components/icons/chevron-down.d.ts +3 -0
- package/dist/components/icons/chevron-left.d.ts +3 -0
- package/dist/components/icons/chevron-right.d.ts +3 -0
- package/dist/components/icons/chevron-up.d.ts +3 -0
- package/dist/components/icons/circle.d.ts +3 -0
- package/dist/components/icons/clear.d.ts +3 -0
- package/dist/components/icons/close.d.ts +3 -0
- package/dist/components/icons/code.d.ts +3 -0
- package/dist/components/icons/comment.d.ts +3 -0
- package/dist/components/icons/component.d.ts +3 -0
- package/dist/components/icons/constraint-left.d.ts +3 -0
- package/dist/components/icons/constraint-top.d.ts +3 -0
- package/dist/components/icons/corner-radius.d.ts +3 -0
- package/dist/components/icons/design.d.ts +3 -0
- package/dist/components/icons/draw.d.ts +3 -0
- package/dist/components/icons/ellipsis.d.ts +3 -0
- package/dist/components/icons/expand.d.ts +3 -0
- package/dist/components/icons/eye.d.ts +3 -0
- package/dist/components/icons/eyedropper.d.ts +3 -0
- package/dist/components/icons/figma.d.ts +3 -0
- package/dist/components/icons/fill-gradient.d.ts +3 -0
- package/dist/components/icons/fill-pattern.d.ts +3 -0
- package/dist/components/icons/fill-solid.d.ts +3 -0
- package/dist/components/icons/fixed-size.d.ts +3 -0
- package/dist/components/icons/flip-horizontal.d.ts +3 -0
- package/dist/components/icons/flip-vertical.d.ts +3 -0
- package/dist/components/icons/frame.d.ts +3 -0
- package/dist/components/icons/help.d.ts +3 -0
- package/dist/components/icons/image.d.ts +3 -0
- package/dist/components/icons/index.d.ts +84 -0
- package/dist/components/icons/layers-collapse.d.ts +3 -0
- package/dist/components/icons/letter-spacing.d.ts +3 -0
- package/dist/components/icons/line-height.d.ts +3 -0
- package/dist/components/icons/link.d.ts +3 -0
- package/dist/components/icons/minus.d.ts +3 -0
- package/dist/components/icons/move.d.ts +3 -0
- package/dist/components/icons/number.d.ts +3 -0
- package/dist/components/icons/opacity.d.ts +3 -0
- package/dist/components/icons/palette.d.ts +3 -0
- package/dist/components/icons/panel-left-close.d.ts +3 -0
- package/dist/components/icons/pen.d.ts +3 -0
- package/dist/components/icons/play.d.ts +3 -0
- package/dist/components/icons/plus.d.ts +3 -0
- package/dist/components/icons/rectangle.d.ts +3 -0
- package/dist/components/icons/rotate-clockwise.d.ts +3 -0
- package/dist/components/icons/rotation.d.ts +3 -0
- package/dist/components/icons/ruler.d.ts +3 -0
- package/dist/components/icons/search.d.ts +3 -0
- package/dist/components/icons/select-matching.d.ts +3 -0
- package/dist/components/icons/shadow-bottom-left.d.ts +3 -0
- package/dist/components/icons/shadow-bottom-right.d.ts +3 -0
- package/dist/components/icons/shadow-down.d.ts +3 -0
- package/dist/components/icons/shadow-left.d.ts +3 -0
- package/dist/components/icons/shadow-right.d.ts +3 -0
- package/dist/components/icons/shadow-top-left.d.ts +3 -0
- package/dist/components/icons/shadow-top-right.d.ts +3 -0
- package/dist/components/icons/shadow-up.d.ts +3 -0
- package/dist/components/icons/sliders.d.ts +3 -0
- package/dist/components/icons/string.d.ts +3 -0
- package/dist/components/icons/styles.d.ts +3 -0
- package/dist/components/icons/text-align-center.d.ts +3 -0
- package/dist/components/icons/text-align-left.d.ts +3 -0
- package/dist/components/icons/text-align-right.d.ts +3 -0
- package/dist/components/icons/text-vertical-align-bottom.d.ts +3 -0
- package/dist/components/icons/text-vertical-align-middle.d.ts +3 -0
- package/dist/components/icons/text-vertical-align-top.d.ts +3 -0
- package/dist/components/icons/text.d.ts +3 -0
- package/dist/components/icons/variable-mode.d.ts +3 -0
- package/dist/components/icons/variable.d.ts +3 -0
- package/dist/components/icons/video.d.ts +3 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/input.d.ts +9 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.d.ts +20 -0
- package/dist/components/radio-group/index.d.ts +1 -0
- package/dist/components/radio-group/radio-group.d.ts +20 -0
- package/dist/components/segmented-control/index.d.ts +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +24 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select.d.ts +40 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/slider.d.ts +24 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs.d.ts +12 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/text.d.ts +47 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/textarea.d.ts +6 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +18 -0
- package/dist/components/value-field/index.d.ts +10 -0
- package/dist/components/value-field/named-colors.d.ts +2 -0
- package/dist/components/value-field/types.d.ts +15 -0
- package/dist/components/value-field/value-field-base.d.ts +17 -0
- package/dist/components/value-field/value-field-elements.d.ts +31 -0
- package/dist/components/value-field/value-field-hex.d.ts +29 -0
- package/dist/components/value-field/value-field-numeric-select.d.ts +18 -0
- package/dist/components/value-field/value-field-numeric.d.ts +62 -0
- package/dist/components/value-field/value-field-scrubber.d.ts +20 -0
- package/dist/figma-development-theme.css +2 -3
- package/dist/index.cjs +1 -64
- package/dist/index.d.ts +39 -874
- package/dist/index.mjs +4155 -9797
- package/dist/lib/color.d.ts +40 -0
- package/dist/lib/constants.d.ts +2 -0
- package/dist/lib/dom/focus.d.ts +14 -0
- package/dist/lib/dom/set-input-value.d.ts +8 -0
- package/dist/lib/number/clamp.d.ts +1 -0
- package/dist/lib/number/normalize.d.ts +13 -0
- package/dist/lib/react/add-class-name.d.ts +4 -0
- package/dist/lib/react/create-context.d.ts +14 -0
- package/dist/lib/react/use-compose-refs.d.ts +19 -0
- package/dist/lib/react/use-controllable-state.d.ts +14 -0
- package/dist/lib/react/use-select-on-input-click.d.ts +9 -0
- package/dist/styles.css +656 -107
- package/dist/tailwind.css +2621 -0
- package/package.json +70 -33
- package/dist/tailwind.preset.js +0 -255
package/dist/index.cjs
CHANGED
|
@@ -1,64 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),i=require("react"),et=require("react-dom");function xa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=xa(i),mo=xa(et);function z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function od(e,t){const n=m.createContext(t);function o(a){const{children:s,...c}=a,l=m.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:l,children:s})}function r(a){const s=m.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,r]}function he(e,t=[]){let n=[];function o(a,s){const c=m.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:h,children:g,...b}=f,p=(h==null?void 0:h[e][l])||c,x=m.useMemo(()=>b,Object.values(b));return v.jsx(p.Provider,{value:x,children:g})}function d(f,h){const g=(h==null?void 0:h[e][l])||c,b=m.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,d]}const r=()=>{const a=n.map(s=>m.createContext(s));return function(c){const l=(c==null?void 0:c[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,rd(r,...t)]}function rd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const s=o.reduce((c,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...c,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function ad(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function $a(...e){return t=>e.forEach(n=>ad(n,t))}function ee(...e){return m.useCallback($a(...e),e)}var Le=m.forwardRef((e,t)=>{const{children:n,...o}=e,r=m.Children.toArray(n),a=r.find(sd);if(a){const s=a.props.children,c=r.map(l=>l===a?m.Children.count(s)>1?m.Children.only(null):m.isValidElement(s)?s.props.children:null:l);return v.jsx(Xn,{...o,ref:t,children:m.isValidElement(s)?m.cloneElement(s,void 0,c):null})}return v.jsx(Xn,{...o,ref:t,children:n})});Le.displayName="Slot";var Xn=m.forwardRef((e,t)=>{const{children:n,...o}=e;if(m.isValidElement(n)){const r=id(n);return m.cloneElement(n,{...cd(o,n.props),ref:t?$a(t,r):r})}return m.Children.count(n)>1?m.Children.only(null):null});Xn.displayName="SlotClone";var wa=({children:e})=>v.jsx(v.Fragment,{children:e});function sd(e){return m.isValidElement(e)&&e.type===wa}function cd(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...c)=>{a(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function id(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ya(e){const t=e+"CollectionProvider",[n,o]=he(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:p}=g,x=i.useRef(null),$=i.useRef(new Map).current;return v.jsx(r,{scope:b,itemMap:$,collectionRef:x,children:p})};s.displayName=t;const c=e+"CollectionSlot",l=i.forwardRef((g,b)=>{const{scope:p,children:x}=g,$=a(c,p),w=ee(b,$.collectionRef);return v.jsx(Le,{ref:w,children:x})});l.displayName=c;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=i.forwardRef((g,b)=>{const{scope:p,children:x,...$}=g,w=i.useRef(null),y=ee(b,w),C=a(u,p);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...$}),()=>void C.itemMap.delete(w))),v.jsx(Le,{[d]:"",ref:y,children:x})});f.displayName=u;function h(g){const b=a(e+"CollectionConsumer",g);return i.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const $=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((C,E)=>$.indexOf(C.ref.current)-$.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},h,o]}var je=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},ld=m.useId||(()=>{}),ud=0;function Ze(e){const[t,n]=m.useState(ld());return je(()=>{e||n(o=>o??String(ud++))},[e]),e||(t?`radix-${t}`:"")}var dd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],W=dd.reduce((e,t)=>{const n=m.forwardRef((o,r)=>{const{asChild:a,...s}=o,c=a?Le:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...s,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fd(e,t){e&&mo.flushSync(()=>e.dispatchEvent(t))}function Re(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Ee({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=pd({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:o,c=Re(n),l=m.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&c(f)}else r(u)},[a,e,r,c]);return[s,l]}function pd({defaultProp:e,onChange:t}){const n=m.useState(e),[o]=n,r=m.useRef(o),a=Re(t);return m.useEffect(()=>{r.current!==o&&(a(o),r.current=o)},[o,r,a]),n}var md=m.createContext(void 0);function It(e){const t=m.useContext(md);return e||t||"ltr"}var In="rovingFocusGroup.onEntryFocus",vd={bubbles:!1,cancelable:!0},un="RovingFocusGroup",[qn,Ca,hd]=ya(un),[gd,gt]=he(un,[hd]),[bd,xd]=gd(un),Ea=m.forwardRef((e,t)=>v.jsx(qn.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(qn.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx($d,{...e,ref:t})})}));Ea.displayName=un;var $d=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=m.useRef(null),g=ee(t,h),b=It(a),[p=null,x]=Ee({prop:s,defaultProp:c,onChange:l}),[$,w]=m.useState(!1),y=Re(u),C=Ca(n),E=m.useRef(!1),[_,S]=m.useState(0);return m.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(In,y),()=>P.removeEventListener(In,y)},[y]),v.jsx(bd,{scope:n,orientation:o,dir:b,loop:r,currentTabStopId:p,onItemFocus:m.useCallback(P=>x(P),[x]),onItemShiftTab:m.useCallback(()=>w(!0),[]),onFocusableItemAdd:m.useCallback(()=>S(P=>P+1),[]),onFocusableItemRemove:m.useCallback(()=>S(P=>P-1),[]),children:v.jsx(W.div,{tabIndex:$||_===0?-1:0,"data-orientation":o,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:z(e.onMouseDown,()=>{E.current=!0}),onFocus:z(e.onFocus,P=>{const I=!E.current;if(P.target===P.currentTarget&&I&&!$){const N=new CustomEvent(In,vd);if(P.currentTarget.dispatchEvent(N),!N.defaultPrevented){const D=C().filter(B=>B.focusable),k=D.find(B=>B.active),V=D.find(B=>B.id===p),O=[k,V,...D].filter(Boolean).map(B=>B.ref.current);Pa(O,d)}}E.current=!1}),onBlur:z(e.onBlur,()=>w(!1))})})}),Sa="RovingFocusGroupItem",Ra=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:a,...s}=e,c=Ze(),l=a||c,u=xd(Sa,n),d=u.currentTabStopId===l,f=Ca(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=u;return m.useEffect(()=>{if(o)return h(),()=>g()},[o,h,g]),v.jsx(qn.ItemSlot,{scope:n,id:l,focusable:o,active:r,children:v.jsx(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:z(e.onMouseDown,b=>{o?u.onItemFocus(l):b.preventDefault()}),onFocus:z(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const p=Cd(b,u.orientation,u.dir);if(p!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let $=f().filter(w=>w.focusable).map(w=>w.ref.current);if(p==="last")$.reverse();else if(p==="prev"||p==="next"){p==="prev"&&$.reverse();const w=$.indexOf(b.currentTarget);$=u.loop?Ed($,w+1):$.slice(w+1)}setTimeout(()=>Pa($))}})})})});Ra.displayName=Sa;var wd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cd(e,t,n){const o=yd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return wd[o]}function Pa(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Ed(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var vo=Ea,ho=Ra;function Sd(e,t){return m.useReducer((n,o)=>t[n][o]??n,e)}var Ne=e=>{const{present:t,children:n}=e,o=Rd(t),r=typeof n=="function"?n({present:o.isPresent}):m.Children.only(n),a=ee(o.ref,Pd(r));return typeof n=="function"||o.isPresent?m.cloneElement(r,{ref:a}):null};Ne.displayName="Presence";function Rd(e){const[t,n]=m.useState(),o=m.useRef({}),r=m.useRef(e),a=m.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Sd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Vt(o.current);a.current=c==="mounted"?u:"none"},[c]),je(()=>{const u=o.current,d=r.current;if(d!==e){const h=a.current,g=Vt(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),je(()=>{if(t){const u=f=>{const g=Vt(o.current).includes(f.animationName);f.target===t&&g&&mo.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(a.current=Vt(o.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:m.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function Pd(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var go="Tabs",[_d,Y$]=he(go,[gt]),_a=gt(),[Td,bo]=_d(go),Ta=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:a,orientation:s="horizontal",dir:c,activationMode:l="automatic",...u}=e,d=It(c),[f,h]=Ee({prop:o,onChange:r,defaultProp:a});return v.jsx(Td,{scope:n,baseId:Ze(),value:f,onValueChange:h,orientation:s,dir:d,activationMode:l,children:v.jsx(W.div,{dir:d,"data-orientation":s,...u,ref:t})})});Ta.displayName=go;var Na="TabsList",Ma=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,a=bo(Na,n),s=_a(n);return v.jsx(vo,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:o,children:v.jsx(W.div,{role:"tablist","aria-orientation":a.orientation,...r,ref:t})})});Ma.displayName=Na;var Aa="TabsTrigger",Ia=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...a}=e,s=bo(Aa,n),c=_a(n),l=ka(s.baseId,o),u=La(s.baseId,o),d=o===s.value;return v.jsx(ho,{asChild:!0,...c,focusable:!r,active:d,children:v.jsx(W.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...a,ref:t,onMouseDown:z(e.onMouseDown,f=>{!r&&f.button===0&&f.ctrlKey===!1?s.onValueChange(o):f.preventDefault()}),onKeyDown:z(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(o)}),onFocus:z(e.onFocus,()=>{const f=s.activationMode!=="manual";!d&&!r&&f&&s.onValueChange(o)})})})});Ia.displayName=Aa;var Oa="TabsContent",Da=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:a,...s}=e,c=bo(Oa,n),l=ka(c.baseId,o),u=La(c.baseId,o),d=o===c.value,f=m.useRef(d);return m.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),v.jsx(Ne,{present:r||d,children:({present:h})=>v.jsx(W.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&a})})});Da.displayName=Oa;function ka(e,t){return`${e}-trigger-${t}`}function La(e,t){return`${e}-content-${t}`}var Nd=Ta,Md=Ma,Ad=Ia,Id=Da;function ja(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ja(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Od(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=ja(e))&&(o&&(o+=" "),o+=t);return o}const Er=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,T=Od,ze=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return T(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:a}=t,s=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],f=a==null?void 0:a[u];if(d===null)return null;const h=Er(d)||Er(f);return r[u][h]}),c=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:f,className:h,...g}=d;return Object.entries(g).every(b=>{let[p,x]=b;return Array.isArray(x)?x.includes({...a,...c}[p]):{...a,...c}[p]===x})?[...u,f,h]:u},[]);return T(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
|
2
|
-
* @license
|
|
3
|
-
* MIT License
|
|
4
|
-
* Copyright (c) 2022 WorkOS
|
|
5
|
-
* https://github.com/radix-ui/primitives/blob/main/LICENSE
|
|
6
|
-
* */function Dd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Fa(...e){return t=>e.forEach(n=>Dd(n,t))}function dn(...e){return m.useCallback(Fa(...e),e)}const Ba=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Nd,{ref:t,className:T(n,"fp-TabsRoot"),...o})}),Va=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Md,{ref:t,className:T(n,"fp-TabsList"),...o})}),za=i.forwardRef((e,t)=>{const{className:n,...o}=e,r=kd(),a=Fa(t,r);return v.jsx(Ad,{ref:a,className:T(n,"fp-TabsTrigger"),...o})});function kd(){return i.useCallback(e=>{e!==null&&(e.style.width=e.getBoundingClientRect().width+"px")},[])}const Wa=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Id,{ref:t,className:T(n,"fp-TabsContent"),...o})});Ba.displayName="Tabs.Root";Va.displayName="Tabs.List";za.displayName="Tabs.Trigger";Wa.displayName="Tabs.Content";const Ld=Object.freeze(Object.defineProperty({__proto__:null,Content:Wa,List:Va,Root:Ba,Trigger:za},Symbol.toStringTag,{value:"Module"}));var jd="Toggle",Ha=m.forwardRef((e,t)=>{const{pressed:n,defaultPressed:o=!1,onPressedChange:r,...a}=e,[s=!1,c]=Ee({prop:n,onChange:r,defaultProp:o});return v.jsx(W.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:z(e.onClick,()=>{e.disabled||c(!s)})})});Ha.displayName=jd;var bt="ToggleGroup",[Ga,X$]=he(bt,[gt]),Ua=gt(),xo=i.forwardRef((e,t)=>{const{type:n,...o}=e;if(n==="single"){const r=o;return v.jsx(Fd,{...r,ref:t})}if(n==="multiple"){const r=o;return v.jsx(Bd,{...r,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${bt}\``)});xo.displayName=bt;var[Ka,Ya]=Ga(bt),Fd=i.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...a}=e,[s,c]=Ee({prop:n,defaultProp:o,onChange:r});return v.jsx(Ka,{scope:e.__scopeToggleGroup,type:"single",value:s?[s]:[],onItemActivate:c,onItemDeactivate:i.useCallback(()=>c(""),[c]),children:v.jsx(Xa,{...a,ref:t})})}),Bd=i.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...a}=e,[s=[],c]=Ee({prop:n,defaultProp:o,onChange:r}),l=i.useCallback(d=>c((f=[])=>[...f,d]),[c]),u=i.useCallback(d=>c((f=[])=>f.filter(h=>h!==d)),[c]);return v.jsx(Ka,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:l,onItemDeactivate:u,children:v.jsx(Xa,{...a,ref:t})})});xo.displayName=bt;var[Vd,zd]=Ga(bt),Xa=i.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:o=!1,rovingFocus:r=!0,orientation:a,dir:s,loop:c=!0,...l}=e,u=Ua(n),d=It(s),f={role:"group",dir:d,...l};return v.jsx(Vd,{scope:n,rovingFocus:r,disabled:o,children:r?v.jsx(vo,{asChild:!0,...u,orientation:a,dir:d,loop:c,children:v.jsx(W.div,{...f,ref:t})}):v.jsx(W.div,{...f,ref:t})})}),tn="ToggleGroupItem",qa=i.forwardRef((e,t)=>{const n=Ya(tn,e.__scopeToggleGroup),o=zd(tn,e.__scopeToggleGroup),r=Ua(e.__scopeToggleGroup),a=n.value.includes(e.value),s=o.disabled||e.disabled,c={...e,pressed:a,disabled:s},l=i.useRef(null);return o.rovingFocus?v.jsx(ho,{asChild:!0,...r,focusable:!s,active:a,ref:l,children:v.jsx(Sr,{...c,ref:t})}):v.jsx(Sr,{...c,ref:t})});qa.displayName=tn;var Sr=i.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:o,...r}=e,a=Ya(tn,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c=a.type==="single"?s:void 0;return v.jsx(Ha,{...c,...r,ref:t,onPressedChange:l=>{l?a.onItemActivate(o):a.onItemDeactivate(o)}})}),Wd=xo,Hd=qa;const fn=ze("fp-Text",{variants:{size:{small:"fp-size-small",medium:"fp-size-medium",large:"fp-size-large"},weight:{default:"fp-weight-default",strong:"fp-weight-strong"},align:{start:"fp-align-start",center:"fp-align-center",end:"fp-align-end"},block:{true:"fp-block"}}}),We=i.forwardRef((e,t)=>{const{asChild:n,className:o,size:r,weight:a,align:s,block:c,...l}=e,u=n?Le:"span";return v.jsx(u,{ref:t,className:fn({className:o,size:r,weight:a,align:s,block:c}),...l})});We.displayName="Text";const pn=i.forwardRef((e,t)=>{const{className:n,size:o,weight:r,align:a,block:s,...c}=e;return v.jsx("label",{ref:t,className:fn({className:n,size:o,weight:r,align:a,block:s}),...c})});pn.displayName="Label";const Za=i.forwardRef((e,t)=>{const{className:n,size:o,weight:r,align:a,block:s,...c}=e;return v.jsx("p",{ref:t,className:fn({className:n,size:o,weight:r,align:a,block:s}),...c})});Za.displayName="Paragraph";const Qa=i.forwardRef((e,t)=>{const{asChild:n,className:o,size:r,weight:a,align:s,block:c,...l}=e,u=n?Le:"a";return v.jsx(u,{ref:t,className:T(fn({className:o,size:r,weight:a,align:s,block:c}),"fp-Link"),...l})});Qa.displayName="Link";/**
|
|
7
|
-
* @license
|
|
8
|
-
* MIT License
|
|
9
|
-
* Copyright (c) 2022 WorkOS
|
|
10
|
-
* https://github.com/radix-ui/primitives/blob/main/LICENSE
|
|
11
|
-
* */function Ja(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Gd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Ud({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:o,c=Ja(n),l=m.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&c(f)}else r(u)},[a,e,r,c]);return[s,l]}function Ud({defaultProp:e,onChange:t}){const n=m.useState(e),[o]=n,r=m.useRef(o),a=Ja(t);return m.useEffect(()=>{r.current!==o&&(a(o),r.current=o)},[o,r,a]),n}const es=i.forwardRef((e,t)=>{const{className:n,fullWidth:o,value:r,defaultValue:a,onValueChange:s,...c}=e,[l,u]=Gd({prop:r,defaultProp:a,onChange:s});return v.jsx(Wd,{ref:t,className:T(n,"fp-SegmentedControlRoot",{"fp-full-width":o}),...c,type:"single",value:l,onValueChange:d=>{d&&u(d)}})}),ts=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Hd,{ref:t,className:T(n,"fp-SegmentedControlItem"),...o})}),ns=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(We,{ref:t,className:T(n,"fp-SegmentedControlText"),...o})});es.displayName="SegmentedControl.Root";ts.displayName="SegmentedControl.Item";ns.displayName="SegmentedControl.Text";const Kd=Object.freeze(Object.defineProperty({__proto__:null,Item:ts,Root:es,Text:ns},Symbol.toStringTag,{value:"Module"}));function $o(e){const[t,n]=m.useState(void 0);return je(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function os(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var wo="Radio",[Yd,rs]=he(wo),[Xd,qd]=Yd(wo),as=m.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:a,disabled:s,value:c="on",onCheck:l,...u}=e,[d,f]=m.useState(null),h=ee(t,p=>f(p)),g=m.useRef(!1),b=d?!!d.closest("form"):!0;return v.jsxs(Xd,{scope:n,checked:r,disabled:s,children:[v.jsx(W.button,{type:"button",role:"radio","aria-checked":r,"data-state":is(r),"data-disabled":s?"":void 0,disabled:s,value:c,...u,ref:h,onClick:z(e.onClick,p=>{r||l==null||l(),b&&(g.current=p.isPropagationStopped(),g.current||p.stopPropagation())})}),b&&v.jsx(Zd,{control:d,bubbles:!g.current,name:o,value:c,checked:r,required:a,disabled:s,style:{transform:"translateX(-100%)"}})]})});as.displayName=wo;var ss="RadioIndicator",cs=m.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,a=qd(ss,n);return v.jsx(Ne,{present:o||a.checked,children:v.jsx(W.span,{"data-state":is(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})})});cs.displayName=ss;var Zd=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,a=m.useRef(null),s=os(n),c=$o(t);return m.useEffect(()=>{const l=a.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==n&&f){const h=new Event("click",{bubbles:o});f.call(l,n),l.dispatchEvent(h)}},[s,n,o]),v.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function is(e){return e?"checked":"unchecked"}var Qd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],yo="RadioGroup",[Jd,q$]=he(yo,[gt,rs]),ls=gt(),us=rs(),[ef,tf]=Jd(yo),ds=m.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:a,required:s=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...h}=e,g=ls(n),b=It(u),[p,x]=Ee({prop:a,defaultProp:r,onChange:f});return v.jsx(ef,{scope:n,name:o,required:s,disabled:c,value:p,onValueChange:x,children:v.jsx(vo,{asChild:!0,...g,orientation:l,dir:b,loop:d,children:v.jsx(W.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":c?"":void 0,dir:b,...h,ref:t})})})});ds.displayName=yo;var fs="RadioGroupItem",ps=m.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,a=tf(fs,n),s=a.disabled||o,c=ls(n),l=us(n),u=m.useRef(null),d=ee(t,u),f=a.value===r.value,h=m.useRef(!1);return m.useEffect(()=>{const g=p=>{Qd.includes(p.key)&&(h.current=!0)},b=()=>h.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),v.jsx(ho,{asChild:!0,...c,focusable:!s,active:f,children:v.jsx(as,{disabled:s,required:a.required,checked:f,...l,...r,name:a.name,ref:d,onCheck:()=>a.onValueChange(r.value),onKeyDown:z(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:z(r.onFocus,()=>{var g;h.current&&((g=u.current)==null||g.click())})})})});ps.displayName=fs;var nf="RadioGroupIndicator",of=m.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=us(n);return v.jsx(cs,{...r,...o,ref:t})});of.displayName=nf;var rf=ds,af=ps;function Co(e,t){const n=i.createContext(t);function o(a){const{children:s,...c}=a,l=i.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:l,children:s})}function r(a){const s=i.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,r]}const[sf,cf]=Co("RadioGroup"),ms=i.forwardRef((e,t)=>{const{orientation:n="horizontal",disabled:o,className:r,...a}=e;return v.jsx(sf,{orientation:n,disabled:o,children:v.jsx(rf,{ref:t,orientation:n,disabled:o,className:T(r,"fp-RadioGroupRoot"),...a})})}),vs=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(af,{ref:t,className:T(n,"fp-RadioGroupItem"),...o})}),hs=i.forwardRef((e,t)=>{const{orientation:n,disabled:o}=cf("Label"),{className:r,...a}=e;return v.jsx(pn,{ref:t,className:T(r,"fp-RadioGroupLabel"),"data-orientation":n,"data-disabled":o?"":void 0,...a})});ms.displayName="RadioGroup.Root";vs.displayName="RadioGroup.Item";hs.displayName="RadioGroup.Label";const lf=Object.freeze(Object.defineProperty({__proto__:null,Item:vs,Label:hs,Root:ms},Symbol.toStringTag,{value:"Module"})),uf="6",df="0 0 24 24",ff=ze("fp-Icon",{variants:{size:{1:"fp-size-1",2:"fp-size-2","2_5":"fp-size-2_5",3:"fp-size-3","3_5":"fp-size-3_5",4:"fp-size-4",5:"fp-size-5",6:"fp-size-6",7:"fp-size-7",8:"fp-size-8",9:"fp-size-9",10:"fp-size-10"}},defaultVariants:{size:uf}});function He(e){const{path:t,viewBox:n=df,displayName:o}=e,r=i.forwardRef((a,s)=>{const{size:c,className:l,...u}=a;return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",ref:s,viewBox:n,className:ff({className:l,size:c}),fill:"none",...u,children:t})});return r.displayName=o||"Icon",r}const gs=He({displayName:"Close",path:v.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 7 7 17M7 7l10 10"})}),Eo=He({displayName:"ChevronRight",path:v.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M11.121 14.121L13.243 12L11.12 9.879"})}),pf=He({displayName:"ChevronUp",path:v.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M14.121 12.879L12 10.757L9.87903 12.88"})}),bs=He({displayName:"ChevronDown",path:v.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M9.87897 11.121L12 13.243L14.121 11.12"})})}),mn=He({displayName:"Checkmark",viewBox:"0 0 16 16",path:v.jsx("path",{fill:"var(--color-icon)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.777 4.08399C11.8873 4.1575 11.9639 4.27178 11.99 4.40172C12.016 4.53167 11.9894 4.66665 11.916 4.77699L7.91602 10.777C7.87506 10.8387 7.82091 10.8905 7.75748 10.9287C7.69405 10.9669 7.62294 10.9905 7.54926 10.9979C7.47559 11.0053 7.40119 10.9962 7.33146 10.9713C7.26172 10.9464 7.19839 10.9063 7.14602 10.854L4.14602 7.85399C4.09953 7.80751 4.06266 7.75232 4.0375 7.69158C4.01234 7.63084 3.99939 7.56574 3.99939 7.49999C3.99939 7.43425 4.01234 7.36915 4.0375 7.30841C4.06266 7.24767 4.09953 7.19248 4.14602 7.14599C4.19251 7.09951 4.2477 7.06263 4.30844 7.03747C4.36918 7.01231 4.43428 6.99936 4.50002 6.99936C4.56577 6.99936 4.63087 7.01231 4.6916 7.03747C4.75234 7.06263 4.80753 7.09951 4.85402 7.14599L7.42202 9.71599L11.084 4.22299C11.1575 4.11271 11.2718 4.03612 11.4018 4.01006C11.5317 3.98399 11.6667 4.01059 11.777 4.08399Z"})}),xs=He({displayName:"Circle",viewBox:"0 0 16 16",path:v.jsx("circle",{fill:"var(--color-icon)",cx:"8",cy:"8",r:"3"})}),mf=He({displayName:"CheckmarkIndeterminate",viewBox:"0 0 16 16",path:v.jsx("path",{fill:"var(--color-icon)",d:"M4 8a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z"})}),[vf,So]=Co("Checkbox"),$s=i.forwardRef((e,t)=>{const{className:n,id:o,...r}=e,a=i.useId(),s=o??a;return v.jsx(vf,{id:s,children:v.jsx("div",{ref:t,className:T(n,"fp-CheckboxRoot"),...r})})}),ws=i.forwardRef((e,t)=>{const{className:n,indeterminate:o,...r}=e,{id:a}=So("Input"),s=hf(o),c=dn(t,s);return v.jsxs(v.Fragment,{children:[v.jsx("input",{ref:c,className:T(n,"fp-CheckboxInput"),id:a,"aria-labelledby":`checkbox-label-${a}`,"aria-describedby":`checkbox-description-${a}`,...r,type:"checkbox"}),v.jsx(ys,{})]})}),ys=()=>v.jsxs("span",{className:"fp-CheckboxIndicator","aria-hidden":"true",children:[v.jsx(mn,{className:"fp-CheckboxCheckmark",size:"4"}),v.jsx(mf,{className:"fp-CheckboxIndeterminate",size:"4"})]}),Cs=i.forwardRef((e,t)=>{const{className:n,...o}=e,{id:r}=So("Input");return v.jsx(pn,{"aria-hidden":"true",ref:t,className:T(n,"fp-CheckboxLabel"),htmlFor:r,id:`checkbox-label-${r}`,...o})}),Es=i.forwardRef((e,t)=>{const{className:n,...o}=e,{id:r}=So("Description");return v.jsx(We,{"aria-hidden":"true",ref:t,className:T(n,"fp-CheckboxDescription"),id:`checkbox-description-${r}`,...o})});function hf(e){return i.useCallback(t=>{t&&(t.indeterminate=!!e)},[e])}$s.displayName="Checkbox.Root";ws.displayName="Checkbox.Input";ys.displayName="Checkbox.Indicator";Cs.displayName="Checkbox.Label";Es.displayName="Checkbox.Description";const gf=Object.freeze(Object.defineProperty({__proto__:null,Description:Es,Input:ws,Label:Cs,Root:$s},Symbol.toStringTag,{value:"Module"}));function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},R.apply(null,arguments)}function Rr(e,[t,n]){return Math.min(n,Math.max(t,e))}function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Me(e,t=[]){let n=[];function o(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:h,children:g,...b}=f,p=(h==null?void 0:h[e][l])||c,x=i.useMemo(()=>b,Object.values(b));return i.createElement(p.Provider,{value:x},g)}function d(f,h){const g=(h==null?void 0:h[e][l])||c,b=i.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,d]}const r=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=(c==null?void 0:c[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,bf(r,...t)]}function bf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const s=o.reduce((c,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function xf(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vn(...e){return t=>e.forEach(n=>xf(n,t))}function J(...e){return i.useCallback(vn(...e),e)}const ft=i.forwardRef((e,t)=>{const{children:n,...o}=e,r=i.Children.toArray(n),a=r.find($f);if(a){const s=a.props.children,c=r.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return i.createElement(Zn,R({},o,{ref:t}),i.isValidElement(s)?i.cloneElement(s,void 0,c):null)}return i.createElement(Zn,R({},o,{ref:t}),n)});ft.displayName="Slot";const Zn=i.forwardRef((e,t)=>{const{children:n,...o}=e;return i.isValidElement(n)?i.cloneElement(n,{...wf(o,n.props),ref:t?vn(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Zn.displayName="SlotClone";const Ss=({children:e})=>i.createElement(i.Fragment,null,e);function $f(e){return i.isValidElement(e)&&e.type===Ss}function wf(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...c)=>{a(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function Ro(e){const t=e+"CollectionProvider",[n,o]=Me(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:p}=g,x=i.useRef(null),$=i.useRef(new Map).current;return i.createElement(r,{scope:b,itemMap:$,collectionRef:x},p)},c=e+"CollectionSlot",l=i.forwardRef((g,b)=>{const{scope:p,children:x}=g,$=a(c,p),w=J(b,$.collectionRef);return i.createElement(ft,{ref:w},x)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",f=i.forwardRef((g,b)=>{const{scope:p,children:x,...$}=g,w=i.useRef(null),y=J(b,w),C=a(u,p);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...$}),()=>void C.itemMap.delete(w))),i.createElement(ft,{[d]:"",ref:y},x)});function h(g){const b=a(e+"CollectionConsumer",g);return i.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const $=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((C,E)=>$.indexOf(C.ref.current)-$.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},h,o]}const yf=i.createContext(void 0);function Po(e){const t=i.useContext(yf);return e||t||"ltr"}const Cf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],q=Cf.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:a,...s}=o,c=a?ft:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,R({},s,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rs(e,t){e&&et.flushSync(()=>e.dispatchEvent(t))}function fe(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Ef(e,t=globalThis==null?void 0:globalThis.document){const n=fe(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Qn="dismissableLayer.update",Sf="dismissableLayer.pointerDownOutside",Rf="dismissableLayer.focusOutside";let Pr;const Pf=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_o=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=e,d=i.useContext(Pf),[f,h]=i.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=i.useState({}),p=J(t,P=>h(P)),x=Array.from(d.layers),[$]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf($),y=f?x.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=y>=w,_=_f(P=>{const I=P.target,N=[...d.branches].some(D=>D.contains(I));!E||N||(a==null||a(P),c==null||c(P),P.defaultPrevented||l==null||l())},g),S=Tf(P=>{const I=P.target;[...d.branches].some(D=>D.contains(I))||(s==null||s(P),c==null||c(P),P.defaultPrevented||l==null||l())},g);return Ef(P=>{y===d.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},g),i.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Pr=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),_r(),()=>{o&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Pr)}},[f,g,o,d]),i.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),_r())},[f,d]),i.useEffect(()=>{const P=()=>b({});return document.addEventListener(Qn,P),()=>document.removeEventListener(Qn,P)},[]),i.createElement(q.div,R({},u,{ref:p,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,S.onFocusCapture),onBlurCapture:A(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,_.onPointerDownCapture)}))});function _f(e,t=globalThis==null?void 0:globalThis.document){const n=fe(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!o.current){let u=function(){Ps(Sf,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Tf(e,t=globalThis==null?void 0:globalThis.document){const n=fe(e),o=i.useRef(!1);return i.useEffect(()=>{const r=a=>{a.target&&!o.current&&Ps(Rf,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function _r(){const e=new CustomEvent(Qn);document.dispatchEvent(e)}function Ps(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Rs(r,a):r.dispatchEvent(a)}let On=0;function _s(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Tr()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Tr()),On++,()=>{On===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),On--}},[])}function Tr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Dn="focusScope.autoFocusOnMount",kn="focusScope.autoFocusOnUnmount",Nr={bubbles:!1,cancelable:!0},Ts=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),u=fe(r),d=fe(a),f=i.useRef(null),h=J(t,p=>l(p)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(y){if(g.paused||!c)return;const C=y.target;c.contains(C)?f.current=C:De(f.current,{select:!0})},x=function(y){if(g.paused||!c)return;const C=y.relatedTarget;C!==null&&(c.contains(C)||De(f.current,{select:!0}))},$=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&De(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const w=new MutationObserver($);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),w.disconnect()}}},[o,c,g.paused]),i.useEffect(()=>{if(c){Ar.add(g);const p=document.activeElement;if(!c.contains(p)){const $=new CustomEvent(Dn,Nr);c.addEventListener(Dn,u),c.dispatchEvent($),$.defaultPrevented||(Nf(Df(Ns(c)),{select:!0}),document.activeElement===p&&De(c))}return()=>{c.removeEventListener(Dn,u),setTimeout(()=>{const $=new CustomEvent(kn,Nr);c.addEventListener(kn,d),c.dispatchEvent($),$.defaultPrevented||De(p??document.body,{select:!0}),c.removeEventListener(kn,d),Ar.remove(g)},0)}}},[c,u,d,g]);const b=i.useCallback(p=>{if(!n&&!o||g.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,$=document.activeElement;if(x&&$){const w=p.currentTarget,[y,C]=Mf(w);y&&C?!p.shiftKey&&$===C?(p.preventDefault(),n&&De(y,{select:!0})):p.shiftKey&&$===y&&(p.preventDefault(),n&&De(C,{select:!0})):$===w&&p.preventDefault()}},[n,o,g.paused]);return i.createElement(q.div,R({tabIndex:-1},s,{ref:h,onKeyDown:b}))});function Nf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(De(o,{select:t}),document.activeElement!==n)return}function Mf(e){const t=Ns(e),n=Mr(t,e),o=Mr(t.reverse(),e);return[n,o]}function Ns(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mr(e,t){for(const n of e)if(!Af(n,{upTo:t}))return n}function Af(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 If(e){return e instanceof HTMLInputElement&&"select"in e}function De(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&If(e)&&t&&e.select()}}const Ar=Of();function Of(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ir(e,t),e.unshift(t)},remove(t){var n;e=Ir(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Ir(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Df(e){return e.filter(t=>t.tagName!=="A")}const pe=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},kf=m.useId||(()=>{});let Lf=0;function Pe(e){const[t,n]=m.useState(kf());return pe(()=>{n(o=>o??String(Lf++))},[e]),t?`radix-${t}`:""}const jf=["top","right","bottom","left"],we=Math.min,me=Math.max,nn=Math.round,zt=Math.floor,Fe=e=>({x:e,y:e}),Ff={left:"right",right:"left",bottom:"top",top:"bottom"},Bf={start:"end",end:"start"};function Jn(e,t,n){return me(e,we(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function To(e){return e==="x"?"y":"x"}function No(e){return e==="y"?"height":"width"}function $t(e){return["top","bottom"].includes(Te(e))?"y":"x"}function Mo(e){return To($t(e))}function Vf(e,t,n){n===void 0&&(n=!1);const o=xt(e),r=Mo(e),a=No(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=on(s)),[s,on(s)]}function zf(e){const t=on(e);return[eo(e),t,eo(t)]}function eo(e){return e.replace(/start|end/g,t=>Bf[t])}function Wf(e,t,n){const o=["left","right"],r=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?a:s;default:return[]}}function Hf(e,t,n,o){const r=xt(e);let a=Wf(Te(e),n==="start",o);return r&&(a=a.map(s=>s+"-"+r),t&&(a=a.concat(a.map(eo)))),a}function on(e){return e.replace(/left|right|bottom|top/g,t=>Ff[t])}function Gf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ms(e){return typeof e!="number"?Gf(e):{top:e,right:e,bottom:e,left:e}}function rn(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Or(e,t,n){let{reference:o,floating:r}=e;const a=$t(t),s=Mo(t),c=No(s),l=Te(t),u=a==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,h=o[c]/2-r[c]/2;let g;switch(l){case"top":g={x:d,y:o.y-r.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-r.width,y:f};break;default:g={x:o.x,y:o.y}}switch(xt(t)){case"start":g[s]-=h*(n&&u?-1:1);break;case"end":g[s]+=h*(n&&u?-1:1);break}return g}const Uf=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Or(u,o,l),h=o,g={},b=0;for(let p=0;p<c.length;p++){const{name:x,fn:$}=c[p],{x:w,y,data:C,reset:E}=await $({x:d,y:f,initialPlacement:o,placement:h,strategy:r,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});d=w??d,f=y??f,g={...g,[x]:{...g[x],...C}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:d,y:f}=Or(u,h,l)),p=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:g}};async function _t(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=_e(t,e),b=Ms(g),x=c[h?f==="floating"?"reference":"floating":f],$=rn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),w=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},E=rn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:($.top-E.top+b.top)/C.y,bottom:(E.bottom-$.bottom+b.bottom)/C.y,left:($.left-E.left+b.left)/C.x,right:(E.right-$.right+b.right)/C.x}}const Kf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=_e(e,t)||{};if(u==null)return{};const f=Ms(d),h={x:n,y:o},g=Mo(r),b=No(g),p=await s.getDimensions(u),x=g==="y",$=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[g]-h[g]-a.floating[b],E=h[g]-a.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=_?_[y]:0;(!S||!await(s.isElement==null?void 0:s.isElement(_)))&&(S=c.floating[y]||a.floating[b]);const P=C/2-E/2,I=S/2-p[b]/2-1,N=we(f[$],I),D=we(f[w],I),k=N,V=S-p[b]-D,F=S/2-p[b]/2+P,O=Jn(k,F,V),B=!l.arrow&&xt(r)!=null&&F!==O&&a.reference[b]/2-(F<k?N:D)-p[b]/2<0,j=B?F<k?F-k:F-V:0;return{[g]:h[g]+j,data:{[g]:O,centerOffset:F-O-j,...B&&{alignmentOffset:j}},reset:B}}}),Yf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...x}=_e(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const $=Te(r),w=Te(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=h||(w||!p?[on(c)]:zf(c));!h&&b!=="none"&&C.push(...Hf(c,p,b,y));const E=[c,...C],_=await _t(t,x),S=[];let P=((o=a.flip)==null?void 0:o.overflows)||[];if(d&&S.push(_[$]),f){const k=Vf(r,s,y);S.push(_[k[0]],_[k[1]])}if(P=[...P,{placement:r,overflows:S}],!S.every(k=>k<=0)){var I,N;const k=(((I=a.flip)==null?void 0:I.index)||0)+1,V=E[k];if(V)return{data:{index:k,overflows:P},reset:{placement:V}};let F=(N=P.filter(O=>O.overflows[0]<=0).sort((O,B)=>O.overflows[1]-B.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(g){case"bestFit":{var D;const O=(D=P.map(B=>[B.placement,B.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((B,j)=>B[1]-j[1])[0])==null?void 0:D[0];O&&(F=O);break}case"initialPlacement":F=c;break}if(r!==F)return{reset:{placement:F}}}return{}}}};function Dr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kr(e){return jf.some(t=>e[t]>=0)}const Xf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=_e(e,t);switch(o){case"referenceHidden":{const a=await _t(t,{...r,elementContext:"reference"}),s=Dr(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:kr(s)}}}case"escaped":{const a=await _t(t,{...r,altBoundary:!0}),s=Dr(a,n.floating);return{data:{escapedOffsets:s,escaped:kr(s)}}}default:return{}}}}};async function qf(e,t){const{placement:n,platform:o,elements:r}=e,a=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Te(n),c=xt(n),l=$t(n)==="y",u=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,f=_e(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),l?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const Zf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:a,placement:s,middlewareData:c}=t,l=await qf(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:s}}}}},Qf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:$,y:w}=x;return{x:$,y:w}}},...l}=_e(e,t),u={x:n,y:o},d=await _t(t,l),f=$t(Te(r)),h=To(f);let g=u[h],b=u[f];if(a){const x=h==="y"?"top":"left",$=h==="y"?"bottom":"right",w=g+d[x],y=g-d[$];g=Jn(w,g,y)}if(s){const x=f==="y"?"top":"left",$=f==="y"?"bottom":"right",w=b+d[x],y=b-d[$];b=Jn(w,b,y)}const p=c.fn({...t,[h]:g,[f]:b});return{...p,data:{x:p.x-n,y:p.y-o}}}}},Jf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=_e(e,t),d={x:n,y:o},f=$t(r),h=To(f);let g=d[h],b=d[f];const p=_e(c,t),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const y=h==="y"?"height":"width",C=a.reference[h]-a.floating[y]+x.mainAxis,E=a.reference[h]+a.reference[y]-x.mainAxis;g<C?g=C:g>E&&(g=E)}if(u){var $,w;const y=h==="y"?"width":"height",C=["top","left"].includes(Te(r)),E=a.reference[f]-a.floating[y]+(C&&(($=s.offset)==null?void 0:$[f])||0)+(C?0:x.crossAxis),_=a.reference[f]+a.reference[y]+(C?0:((w=s.offset)==null?void 0:w[f])||0)-(C?x.crossAxis:0);b<E?b=E:b>_&&(b=_)}return{[h]:g,[f]:b}}}},ep=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:a}=t,{apply:s=()=>{},...c}=_e(e,t),l=await _t(t,c),u=Te(n),d=xt(n),f=$t(n)==="y",{width:h,height:g}=o.floating;let b,p;u==="top"||u==="bottom"?(b=u,p=d===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(p=u,b=d==="end"?"top":"bottom");const x=g-l.top-l.bottom,$=h-l.left-l.right,w=we(g-l[b],x),y=we(h-l[p],$),C=!t.middlewareData.shift;let E=w,_=y;if(f?_=d||C?we(y,$):$:E=d||C?we(w,x):x,C&&!d){const P=me(l.left,0),I=me(l.right,0),N=me(l.top,0),D=me(l.bottom,0);f?_=h-2*(P!==0||I!==0?P+I:me(l.left,l.right)):E=g-2*(N!==0||D!==0?N+D:me(l.top,l.bottom))}await s({...t,availableWidth:_,availableHeight:E});const S=await r.getDimensions(a.floating);return h!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}};function wt(e){return As(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(As(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function As(e){return e instanceof Node||e instanceof ve(e).Node}function ye(e){return e instanceof Element||e instanceof ve(e).Element}function Ce(e){return e instanceof HTMLElement||e instanceof ve(e).HTMLElement}function Lr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}function Ot(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function tp(e){return["table","td","th"].includes(wt(e))}function Ao(e){const t=Io(),n=xe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function np(e){let t=Be(e);for(;Ce(t)&&!pt(t);){if(Ao(t))return t;t=Be(t)}return null}function Io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(e){return["html","body","#document"].includes(wt(e))}function xe(e){return ve(e).getComputedStyle(e)}function hn(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Be(e){if(wt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lr(e)&&e.host||Ae(e);return Lr(t)?t.host:t}function Is(e){const t=Be(e);return pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&Ot(t)?t:Is(t)}function Tt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Is(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),s=ve(r);return a?t.concat(s,s.visualViewport||[],Ot(r)?r:[],s.frameElement&&n?Tt(s.frameElement):[]):t.concat(r,Tt(r,[],n))}function Os(e){const t=xe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ce(e),a=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=nn(n)!==a||nn(o)!==s;return c&&(n=a,o=s),{width:n,height:o,$:c}}function Oo(e){return ye(e)?e:e.contextElement}function lt(e){const t=Oo(e);if(!Ce(t))return Fe(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=Os(t);let s=(a?nn(n.width):n.width)/o,c=(a?nn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const op=Fe(0);function Ds(e){const t=ve(e);return!Io()||!t.visualViewport?op:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ve(e)?!1:t}function Qe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=Oo(e);let s=Fe(1);t&&(o?ye(o)&&(s=lt(o)):s=lt(e));const c=rp(a,n,o)?Ds(a):Fe(0);let l=(r.left+c.x)/s.x,u=(r.top+c.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(a){const h=ve(a),g=o&&ye(o)?ve(o):o;let b=h,p=b.frameElement;for(;p&&o&&g!==b;){const x=lt(p),$=p.getBoundingClientRect(),w=xe(p),y=$.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,C=$.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,f*=x.y,l+=y,u+=C,b=ve(p),p=b.frameElement}}return rn({width:d,height:f,x:l,y:u})}const ap=[":popover-open",":modal"];function Do(e){return ap.some(t=>{try{return e.matches(t)}catch{return!1}})}function sp(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const a=r==="fixed",s=Ae(o),c=t?Do(t.floating):!1;if(o===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Fe(1);const d=Fe(0),f=Ce(o);if((f||!f&&!a)&&((wt(o)!=="body"||Ot(s))&&(l=hn(o)),Ce(o))){const h=Qe(o);u=lt(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function cp(e){return Array.from(e.getClientRects())}function ks(e){return Qe(Ae(e)).left+hn(e).scrollLeft}function ip(e){const t=Ae(e),n=hn(e),o=e.ownerDocument.body,r=me(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=me(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ks(e);const c=-n.scrollTop;return xe(o).direction==="rtl"&&(s+=me(t.clientWidth,o.clientWidth)-r),{width:r,height:a,x:s,y:c}}function lp(e,t){const n=ve(e),o=Ae(e),r=n.visualViewport;let a=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){a=r.width,s=r.height;const u=Io();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:c,y:l}}function up(e,t){const n=Qe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,a=Ce(e)?lt(e):Fe(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=r*a.x,u=o*a.y;return{width:s,height:c,x:l,y:u}}function jr(e,t,n){let o;if(t==="viewport")o=lp(e,n);else if(t==="document")o=ip(Ae(e));else if(ye(t))o=up(t,n);else{const r=Ds(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return rn(o)}function Ls(e,t){const n=Be(e);return n===t||!ye(n)||pt(n)?!1:xe(n).position==="fixed"||Ls(n,t)}function dp(e,t){const n=t.get(e);if(n)return n;let o=Tt(e,[],!1).filter(c=>ye(c)&&wt(c)!=="body"),r=null;const a=xe(e).position==="fixed";let s=a?Be(e):e;for(;ye(s)&&!pt(s);){const c=xe(s),l=Ao(s);!l&&c.position==="fixed"&&(r=null),(a?!l&&!r:!l&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ot(s)&&!l&&Ls(e,s))?o=o.filter(d=>d!==s):r=c,s=Be(s)}return t.set(e,o),o}function fp(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Do(t)?[]:dp(t,this._c):[].concat(n),o],c=s[0],l=s.reduce((u,d)=>{const f=jr(t,d,r);return u.top=me(f.top,u.top),u.right=we(f.right,u.right),u.bottom=we(f.bottom,u.bottom),u.left=me(f.left,u.left),u},jr(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pp(e){const{width:t,height:n}=Os(e);return{width:t,height:n}}function mp(e,t,n){const o=Ce(t),r=Ae(t),a=n==="fixed",s=Qe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=Fe(0);if(o||!o&&!a)if((wt(t)!=="body"||Ot(r))&&(c=hn(t)),o){const f=Qe(t,!0,a,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&(l.x=ks(r));const u=s.left+c.scrollLeft-l.x,d=s.top+c.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function Ln(e){return xe(e).position==="static"}function Fr(e,t){return!Ce(e)||xe(e).position==="fixed"?null:t?t(e):e.offsetParent}function js(e,t){const n=ve(e);if(Do(e))return n;if(!Ce(e)){let r=Be(e);for(;r&&!pt(r);){if(ye(r)&&!Ln(r))return r;r=Be(r)}return n}let o=Fr(e,t);for(;o&&tp(o)&&Ln(o);)o=Fr(o,t);return o&&pt(o)&&Ln(o)&&!Ao(o)?n:o||np(e)||n}const vp=async function(e){const t=this.getOffsetParent||js,n=this.getDimensions,o=await n(e.floating);return{reference:mp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hp(e){return xe(e).direction==="rtl"}const gp={convertOffsetParentRelativeRectToViewportRelativeRect:sp,getDocumentElement:Ae,getClippingRect:fp,getOffsetParent:js,getElementRects:vp,getClientRects:cp,getDimensions:pp,getScale:lt,isElement:ye,isRTL:hp};function bp(e,t){let n=null,o;const r=Ae(e);function a(){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),a();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(c||t(),!f||!h)return;const g=zt(d),b=zt(r.clientWidth-(u+f)),p=zt(r.clientHeight-(d+h)),x=zt(u),w={rootMargin:-g+"px "+-b+"px "+-p+"px "+-x+"px",threshold:me(0,we(1,l))||1};let y=!0;function C(E){const _=E[0].intersectionRatio;if(_!==l){if(!y)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function Fs(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Oo(e),d=r||a?[...u?Tt(u):[],...Tt(t)]:[];d.forEach($=>{r&&$.addEventListener("scroll",n,{passive:!0}),a&&$.addEventListener("resize",n)});const f=u&&c?bp(u,n):null;let h=-1,g=null;s&&(g=new ResizeObserver($=>{let[w]=$;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let b,p=l?Qe(e):null;l&&x();function x(){const $=Qe(e);p&&($.x!==p.x||$.y!==p.y||$.width!==p.width||$.height!==p.height)&&n(),p=$,b=requestAnimationFrame(x)}return n(),()=>{var $;d.forEach(w=>{r&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f==null||f(),($=g)==null||$.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const xp=Zf,$p=Qf,wp=Yf,yp=ep,Cp=Xf,Br=Kf,Ep=Jf,Sp=(e,t,n)=>{const o=new Map,r={platform:gp,...n},a={...r.platform,_c:o};return Uf(e,t,{...r,platform:a})};var en=typeof document<"u"?i.useLayoutEffect:i.useEffect;function an(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!an(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const a=r[o];if(!(a==="_owner"&&e.$$typeof)&&!an(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Bs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vr(e,t){const n=Bs(e);return Math.round(t*n)/n}function zr(e){const t=m.useRef(e);return en(()=>{t.current=e}),t}function Vs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=m.useState(o);an(h,o)||g(o);const[b,p]=m.useState(null),[x,$]=m.useState(null),w=m.useCallback(j=>{j!==_.current&&(_.current=j,p(j))},[]),y=m.useCallback(j=>{j!==S.current&&(S.current=j,$(j))},[]),C=a||b,E=s||x,_=m.useRef(null),S=m.useRef(null),P=m.useRef(d),I=l!=null,N=zr(l),D=zr(r),k=m.useCallback(()=>{if(!_.current||!S.current)return;const j={placement:t,strategy:n,middleware:h};D.current&&(j.platform=D.current),Sp(_.current,S.current,j).then(H=>{const M={...H,isPositioned:!0};V.current&&!an(P.current,M)&&(P.current=M,mo.flushSync(()=>{f(M)}))})},[h,t,n,D]);en(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[u]);const V=m.useRef(!1);en(()=>(V.current=!0,()=>{V.current=!1}),[]),en(()=>{if(C&&(_.current=C),E&&(S.current=E),C&&E){if(N.current)return N.current(C,E,k);k()}},[C,E,k,N,I]);const F=m.useMemo(()=>({reference:_,floating:S,setReference:w,setFloating:y}),[w,y]),O=m.useMemo(()=>({reference:C,floating:E}),[C,E]),B=m.useMemo(()=>{const j={position:n,left:0,top:0};if(!O.floating)return j;const H=Vr(O.floating,d.x),M=Vr(O.floating,d.y);return c?{...j,transform:"translate("+H+"px, "+M+"px)",...Bs(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:M}},[n,c,O.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:k,refs:F,elements:O,floatingStyles:B}),[d,k,F,O,B])}const Rp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Br({element:o.current,padding:r}).fn(n):{}:o?Br({element:o,padding:r}).fn(n):{}}}},zs=(e,t)=>({...xp(e),options:[e,t]}),Ws=(e,t)=>({...$p(e),options:[e,t]}),Hs=(e,t)=>({...Ep(e),options:[e,t]}),Gs=(e,t)=>({...wp(e),options:[e,t]}),Us=(e,t)=>({...yp(e),options:[e,t]}),Ks=(e,t)=>({...Cp(e),options:[e,t]}),Ys=(e,t)=>({...Rp(e),options:[e,t]}),Pp=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return i.createElement(q.svg,R({},a,{ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:i.createElement("polygon",{points:"0,0 30,0 15,10"}))}),_p=Pp;function Xs(e){const[t,n]=i.useState(void 0);return pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const qs="Popper",[Zs,yt]=Me(qs),[Tp,Qs]=Zs(qs),Np=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return i.createElement(Tp,{scope:t,anchor:o,onAnchorChange:r},n)},Mp="PopperAnchor",Ap=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,a=Qs(Mp,n),s=i.useRef(null),c=J(t,s);return i.useEffect(()=>{a.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:i.createElement(q.div,R({},r,{ref:c}))}),Js="PopperContent",[Ip,Op]=Zs(Js),Dp=i.forwardRef((e,t)=>{var n,o,r,a,s,c,l,u;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:g="center",alignOffset:b=0,arrowPadding:p=0,avoidCollisions:x=!0,collisionBoundary:$=[],collisionPadding:w=0,sticky:y="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:_,...S}=e,P=Qs(Js,d),[I,N]=i.useState(null),D=J(t,ge=>N(ge)),[k,V]=i.useState(null),F=Xs(k),O=(n=F==null?void 0:F.width)!==null&&n!==void 0?n:0,B=(o=F==null?void 0:F.height)!==null&&o!==void 0?o:0,j=f+(g!=="center"?"-"+g:""),H=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},M=Array.isArray($)?$:[$],Z=M.length>0,Q={padding:H,boundary:M.filter(Fp),altBoundary:Z},{refs:se,floatingStyles:le,placement:ue,isPositioned:de,middlewareData:te}=Vs({strategy:"fixed",placement:j,whileElementsMounted:(...ge)=>Fs(...ge,{animationFrame:E==="always"}),elements:{reference:P.anchor},middleware:[zs({mainAxis:h+B,alignmentAxis:b}),x&&Ws({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?Hs():void 0,...Q}),x&&Gs({...Q}),Us({...Q,apply:({elements:ge,rects:Oe,availableWidth:Xe,availableHeight:An})=>{const{width:ot,height:nd}=Oe.reference,Bt=ge.floating.style;Bt.setProperty("--radix-popper-available-width",`${Xe}px`),Bt.setProperty("--radix-popper-available-height",`${An}px`),Bt.setProperty("--radix-popper-anchor-width",`${ot}px`),Bt.setProperty("--radix-popper-anchor-height",`${nd}px`)}}),k&&Ys({element:k,padding:p}),Bp({arrowWidth:O,arrowHeight:B}),C&&Ks({strategy:"referenceHidden",...Q})]}),[L,G]=ec(ue),U=fe(_);pe(()=>{de&&(U==null||U())},[de,U]);const K=(r=te.arrow)===null||r===void 0?void 0:r.x,Y=(a=te.arrow)===null||a===void 0?void 0:a.y,X=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[ne,oe]=i.useState();return pe(()=>{I&&oe(window.getComputedStyle(I).zIndex)},[I]),i.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:de?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(c=te.transformOrigin)===null||c===void 0?void 0:c.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(Ip,{scope:d,placedSide:L,onArrowChange:V,arrowX:K,arrowY:Y,shouldHideArrow:X},i.createElement(q.div,R({"data-side":L,"data-align":G},S,{ref:D,style:{...S.style,animation:de?void 0:"none",opacity:(u=te.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),kp="PopperArrow",Lp={top:"bottom",right:"left",bottom:"top",left:"right"},jp=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,a=Op(kp,o),s=Lp[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},i.createElement(_p,R({},r,{ref:n,style:{...r.style,display:"block"}})))});function Fp(e){return e!==null}const Bp=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,a,s;const{placement:c,rects:l,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[b,p]=ec(c),x={start:"0%",center:"50%",end:"100%"}[p],$=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+h/2,w=((a=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+g/2;let y="",C="";return b==="bottom"?(y=f?x:`${$}px`,C=`${-g}px`):b==="top"?(y=f?x:`${$}px`,C=`${l.floating.height+g}px`):b==="right"?(y=`${-g}px`,C=f?x:`${w}px`):b==="left"&&(y=`${l.floating.width+g}px`,C=f?x:`${w}px`),{data:{x:y,y:C}}}});function ec(e){const[t,n="center"]=e.split("-");return[t,n]}const gn=Np,ko=Ap,Lo=Dp,jo=jp,Fo=i.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?et.createPortal(i.createElement(q.div,R({},r,{ref:t})),o):null});function Ve({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Vp({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:o,c=fe(n),l=i.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&c(f)}else r(u)},[a,e,r,c]);return[s,l]}function Vp({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),a=fe(t);return i.useEffect(()=>{r.current!==o&&(a(o),r.current=o)},[o,r,a]),n}function tc(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const nc=i.forwardRef((e,t)=>i.createElement(q.span,R({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),zp=nc;var Wp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rt=new WeakMap,Wt=new WeakMap,Ht={},jn=0,oc=function(e){return e&&(e.host||oc(e.parentNode))},Hp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=oc(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gp=function(e,t,n,o){var r=Hp(t,Array.isArray(e)?e:[e]);Ht[n]||(Ht[n]=new WeakMap);var a=Ht[n],s=[],c=new Set,l=new Set(r),u=function(f){!f||c.has(f)||(c.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(c.has(h))d(h);else try{var g=h.getAttribute(o),b=g!==null&&g!=="false",p=(rt.get(h)||0)+1,x=(a.get(h)||0)+1;rt.set(h,p),a.set(h,x),s.push(h),p===1&&b&&Wt.set(h,!0),x===1&&h.setAttribute(n,"true"),b||h.setAttribute(o,"true")}catch($){console.error("aria-hidden: cannot operate on ",h,$)}})};return d(t),c.clear(),jn++,function(){s.forEach(function(f){var h=rt.get(f)-1,g=a.get(f)-1;rt.set(f,h),a.set(f,g),h||(Wt.has(f)||f.removeAttribute(o),Wt.delete(f)),g||f.removeAttribute(n)}),jn--,jn||(rt=new WeakMap,rt=new WeakMap,Wt=new WeakMap,Ht={})}},bn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Wp(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Gp(o,r,n,"aria-hidden")):function(){return null}},re=function(){return re=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},re.apply(this,arguments)};function Bo(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function rc(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var St="right-scroll-bar-position",Rt="width-before-scroll-bar",Up="with-scroll-bars-hidden",Kp="--removed-body-scroll-bar-size";function Fn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yp(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Xp=typeof window<"u"?m.useLayoutEffect:m.useEffect,Wr=new WeakMap;function ac(e,t){var n=Yp(null,function(o){return e.forEach(function(r){return Fn(r,o)})});return Xp(function(){var o=Wr.get(n);if(o){var r=new Set(o),a=new Set(e),s=n.current;r.forEach(function(c){a.has(c)||Fn(c,null)}),a.forEach(function(c){r.has(c)||Fn(c,s)})}Wr.set(n,e)},[e]),n}function qp(e){return e}function Zp(e,t){t===void 0&&(t=qp);var n=[],o=!1,r={read:function(){if(o)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(a){var s=t(a,o);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(o=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){o=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var d=s;s=[],d.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return r}function sc(e){e===void 0&&(e={});var t=Zp(null);return t.options=re({async:!0,ssr:!1},e),t}var cc=function(e){var t=e.sideCar,n=Bo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return m.createElement(o,re({},n))};cc.isSideCarExport=!0;function ic(e,t){return e.useMedium(t),cc}var lc=sc(),Bn=function(){},xn=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:Bn,onWheelCapture:Bn,onTouchMoveCapture:Bn}),r=o[0],a=o[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,p=e.allowPinchZoom,x=e.as,$=x===void 0?"div":x,w=Bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=h,C=ac([n,t]),E=re(re({},w),r);return m.createElement(m.Fragment,null,d&&m.createElement(y,{sideCar:lc,removeScrollBar:u,shards:f,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:n}),s?m.cloneElement(m.Children.only(c),re(re({},E),{ref:C})):m.createElement($,re({},E,{className:l,ref:C}),c))});xn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xn.classNames={fullWidth:Rt,zeroRight:St};var Qp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qp();return t&&e.setAttribute("nonce",t),e}function em(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jp())&&(em(t,n),tm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},om=function(){var e=nm();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vo=function(){var e=om(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},rm={left:0,top:0,right:0,gap:0},Vn=function(e){return parseInt(e||"",10)||0},am=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Vn(n),Vn(o),Vn(r)]},sm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rm;var t=am(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},cm=Vo(),ut="data-scroll-locked",im=function(e,t,n,o){var r=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
12
|
-
.`.concat(Up,` {
|
|
13
|
-
overflow: hidden `).concat(o,`;
|
|
14
|
-
padding-right: `).concat(c,"px ").concat(o,`;
|
|
15
|
-
}
|
|
16
|
-
body[`).concat(ut,`] {
|
|
17
|
-
overflow: hidden `).concat(o,`;
|
|
18
|
-
overscroll-behavior: contain;
|
|
19
|
-
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
20
|
-
padding-left: `.concat(r,`px;
|
|
21
|
-
padding-top: `).concat(a,`px;
|
|
22
|
-
padding-right: `).concat(s,`px;
|
|
23
|
-
margin-left:0;
|
|
24
|
-
margin-top:0;
|
|
25
|
-
margin-right: `).concat(c,"px ").concat(o,`;
|
|
26
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.`).concat(St,` {
|
|
30
|
-
right: `).concat(c,"px ").concat(o,`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.`).concat(Rt,` {
|
|
34
|
-
margin-right: `).concat(c,"px ").concat(o,`;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.`).concat(St," .").concat(St,` {
|
|
38
|
-
right: 0 `).concat(o,`;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.`).concat(Rt," .").concat(Rt,` {
|
|
42
|
-
margin-right: 0 `).concat(o,`;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
body[`).concat(ut,`] {
|
|
46
|
-
`).concat(Kp,": ").concat(c,`px;
|
|
47
|
-
}
|
|
48
|
-
`)},Hr=function(){var e=parseInt(document.body.getAttribute(ut)||"0",10);return isFinite(e)?e:0},lm=function(){m.useEffect(function(){return document.body.setAttribute(ut,(Hr()+1).toString()),function(){var e=Hr()-1;e<=0?document.body.removeAttribute(ut):document.body.setAttribute(ut,e.toString())}},[])},uc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;lm();var a=m.useMemo(function(){return sm(r)},[r]);return m.createElement(cm,{styles:im(a,!t,r,n?"":"!important")})},to=!1;if(typeof window<"u")try{var Gt=Object.defineProperty({},"passive",{get:function(){return to=!0,!0}});window.addEventListener("test",Gt,Gt),window.removeEventListener("test",Gt,Gt)}catch{to=!1}var at=to?{passive:!1}:!1,um=function(e){return e.tagName==="TEXTAREA"},dc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!um(e)&&n[t]==="visible")},dm=function(e){return dc(e,"overflowY")},fm=function(e){return dc(e,"overflowX")},Gr=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=fc(e,n);if(o){var r=pc(e,n),a=r[1],s=r[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},pm=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},mm=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},fc=function(e,t){return e==="v"?dm(t):fm(t)},pc=function(e,t){return e==="v"?pm(t):mm(t)},vm=function(e,t){return e==="h"&&t==="rtl"?-1:1},hm=function(e,t,n,o,r){var a=vm(e,window.getComputedStyle(t).direction),s=a*o,c=n.target,l=t.contains(c),u=!1,d=s>0,f=0,h=0;do{var g=pc(e,c),b=g[0],p=g[1],x=g[2],$=p-x-a*b;(b||$)&&fc(e,c)&&(f+=$,h+=b),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&(f===0||!r)||!d&&(h===0||!r))&&(u=!0),u},Ut=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ur=function(e){return[e.deltaX,e.deltaY]},Kr=function(e){return e&&"current"in e?e.current:e},gm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bm=function(e){return`
|
|
49
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
50
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
51
|
-
`)},xm=0,st=[];function $m(e){var t=m.useRef([]),n=m.useRef([0,0]),o=m.useRef(),r=m.useState(xm++)[0],a=m.useState(function(){return Vo()})[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=rc([e.lockRef.current],(e.shards||[]).map(Kr),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(p,x){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var $=Ut(p),w=n.current,y="deltaX"in p?p.deltaX:w[0]-$[0],C="deltaY"in p?p.deltaY:w[1]-$[1],E,_=p.target,S=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in p&&S==="h"&&_.type==="range")return!1;var P=Gr(S,_);if(!P)return!0;if(P?E=S:(E=S==="v"?"h":"v",P=Gr(S,_)),!P)return!1;if(!o.current&&"changedTouches"in p&&(y||C)&&(o.current=E),!E)return!0;var I=o.current||E;return hm(I,x,p,I==="h"?y:C,!0)},[]),l=m.useCallback(function(p){var x=p;if(!(!st.length||st[st.length-1]!==a)){var $="deltaY"in x?Ur(x):Ut(x),w=t.current.filter(function(E){return E.name===x.type&&E.target===x.target&&gm(E.delta,$)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var y=(s.current.shards||[]).map(Kr).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=y.length>0?c(x,y[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(p,x,$,w){var y={name:p,delta:x,target:$,should:w};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),d=m.useCallback(function(p){n.current=Ut(p),o.current=void 0},[]),f=m.useCallback(function(p){u(p.type,Ur(p),p.target,c(p,e.lockRef.current))},[]),h=m.useCallback(function(p){u(p.type,Ut(p),p.target,c(p,e.lockRef.current))},[]);m.useEffect(function(){return st.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,at),document.addEventListener("touchmove",l,at),document.addEventListener("touchstart",d,at),function(){st=st.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,at),document.removeEventListener("touchmove",l,at),document.removeEventListener("touchstart",d,at)}},[]);var g=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(a,{styles:bm(r)}):null,g?m.createElement(uc,{gapMode:"margin"}):null)}const wm=ic(lc,$m);var zo=m.forwardRef(function(e,t){return m.createElement(xn,re({},e,{ref:t,sideCar:wm}))});zo.classNames=xn.classNames;const ym=[" ","Enter","ArrowUp","ArrowDown"],Cm=[" ","Enter"],$n="Select",[wn,yn,Em]=Ro($n),[Ct,Z$]=Me($n,[Em,yt]),Cn=yt(),[Sm,Ge]=Ct($n),[Rm,Pm]=Ct($n),_m=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:h,required:g}=e,b=Cn(t),[p,x]=i.useState(null),[$,w]=i.useState(null),[y,C]=i.useState(!1),E=Po(u),[_=!1,S]=Ve({prop:o,defaultProp:r,onChange:a}),[P,I]=Ve({prop:s,defaultProp:c,onChange:l}),N=i.useRef(null),D=p?!!p.closest("form"):!0,[k,V]=i.useState(new Set),F=Array.from(k).map(O=>O.props.value).join(";");return i.createElement(gn,b,i.createElement(Sm,{required:g,scope:t,trigger:p,onTriggerChange:x,valueNode:$,onValueNodeChange:w,valueNodeHasChildren:y,onValueNodeHasChildrenChange:C,contentId:Pe(),value:P,onValueChange:I,open:_,onOpenChange:S,dir:E,triggerPointerDownPosRef:N,disabled:h},i.createElement(wn.Provider,{scope:t},i.createElement(Rm,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(O=>{V(B=>new Set(B).add(O))},[]),onNativeOptionRemove:i.useCallback(O=>{V(B=>{const j=new Set(B);return j.delete(O),j})},[])},n)),D?i.createElement(bc,{key:F,"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:f,value:P,onChange:O=>I(O.target.value),disabled:h},P===void 0?i.createElement("option",{value:""}):null,Array.from(k)):null))},Tm="SelectTrigger",Nm=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,a=Cn(n),s=Ge(Tm,n),c=s.disabled||o,l=J(t,s.onTriggerChange),u=yn(n),[d,f,h]=xc(b=>{const p=u().filter(w=>!w.disabled),x=p.find(w=>w.value===s.value),$=$c(p,b,x);$!==void 0&&s.onValueChange($.value)}),g=()=>{c||(s.onOpenChange(!0),h())};return i.createElement(ko,R({asChild:!0},a),i.createElement(q.button,R({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":gc(s.value)?"":void 0},r,{ref:l,onClick:A(r.onClick,b=>{b.currentTarget.focus()}),onPointerDown:A(r.onPointerDown,b=>{const p=b.target;p.hasPointerCapture(b.pointerId)&&p.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&(g(),s.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)},b.preventDefault())}),onKeyDown:A(r.onKeyDown,b=>{const p=d.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&f(b.key),!(p&&b.key===" ")&&ym.includes(b.key)&&(g(),b.preventDefault())})})))}),Mm="SelectValue",Am=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:a,placeholder:s="",...c}=e,l=Ge(Mm,n),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,f=J(t,l.onValueNodeChange);return pe(()=>{u(d)},[u,d]),i.createElement(q.span,R({},c,{ref:f,style:{pointerEvents:"none"}}),gc(l.value)?i.createElement(i.Fragment,null,s):a)}),Im=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return i.createElement(q.span,R({"aria-hidden":!0},r,{ref:t}),o||"▼")}),Om=e=>i.createElement(Fo,R({asChild:!0},e)),mt="SelectContent",Dm=i.forwardRef((e,t)=>{const n=Ge(mt,e.__scopeSelect),[o,r]=i.useState();if(pe(()=>{r(new DocumentFragment)},[]),!n.open){const a=o;return a?et.createPortal(i.createElement(mc,{scope:e.__scopeSelect},i.createElement(wn.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(km,R({},e,{ref:t}))}),Se=10,[mc,Ue]=Ct(mt),km=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:p,avoidCollisions:x,...$}=e,w=Ge(mt,n),[y,C]=i.useState(null),[E,_]=i.useState(null),S=J(t,L=>C(L)),[P,I]=i.useState(null),[N,D]=i.useState(null),k=yn(n),[V,F]=i.useState(!1),O=i.useRef(!1);i.useEffect(()=>{if(y)return bn(y)},[y]),_s();const B=i.useCallback(L=>{const[G,...U]=k().map(X=>X.ref.current),[K]=U.slice(-1),Y=document.activeElement;for(const X of L)if(X===Y||(X==null||X.scrollIntoView({block:"nearest"}),X===G&&E&&(E.scrollTop=0),X===K&&E&&(E.scrollTop=E.scrollHeight),X==null||X.focus(),document.activeElement!==Y))return},[k,E]),j=i.useCallback(()=>B([P,y]),[B,P,y]);i.useEffect(()=>{V&&j()},[V,j]);const{onOpenChange:H,triggerPointerDownPosRef:M}=w;i.useEffect(()=>{if(y){let L={x:0,y:0};const G=K=>{var Y,X,ne,oe;L={x:Math.abs(Math.round(K.pageX)-((Y=(X=M.current)===null||X===void 0?void 0:X.x)!==null&&Y!==void 0?Y:0)),y:Math.abs(Math.round(K.pageY)-((ne=(oe=M.current)===null||oe===void 0?void 0:oe.y)!==null&&ne!==void 0?ne:0))}},U=K=>{L.x<=10&&L.y<=10?K.preventDefault():y.contains(K.target)||H(!1),document.removeEventListener("pointermove",G),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",U,{capture:!0})}}},[y,H,M]),i.useEffect(()=>{const L=()=>H(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[H]);const[Z,Q]=xc(L=>{const G=k().filter(Y=>!Y.disabled),U=G.find(Y=>Y.ref.current===document.activeElement),K=$c(G,L,U);K&&setTimeout(()=>K.ref.current.focus())}),se=i.useCallback((L,G,U)=>{const K=!O.current&&!U;(w.value!==void 0&&w.value===G||K)&&(I(L),K&&(O.current=!0))},[w.value]),le=i.useCallback(()=>y==null?void 0:y.focus(),[y]),ue=i.useCallback((L,G,U)=>{const K=!O.current&&!U;(w.value!==void 0&&w.value===G||K)&&D(L)},[w.value]),de=o==="popper"?Yr:Lm,te=de===Yr?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:p,avoidCollisions:x}:{};return i.createElement(mc,{scope:n,content:y,viewport:E,onViewportChange:_,itemRefCallback:se,selectedItem:P,onItemLeave:le,itemTextRefCallback:ue,focusSelectedItem:j,selectedItemText:N,position:o,isPositioned:V,searchRef:Z},i.createElement(zo,{as:ft,allowPinchZoom:!0},i.createElement(Ts,{asChild:!0,trapped:w.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:A(r,L=>{var G;(G=w.trigger)===null||G===void 0||G.focus({preventScroll:!0}),L.preventDefault()})},i.createElement(_o,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(de,R({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:L=>L.preventDefault()},$,te,{onPlaced:()=>F(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...$.style},onKeyDown:A($.onKeyDown,L=>{const G=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!G&&L.key.length===1&&Q(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let K=k().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(L.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const Y=L.target,X=K.indexOf(Y);K=K.slice(X+1)}setTimeout(()=>B(K)),L.preventDefault()}})}))))))}),Lm=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,a=Ge(mt,n),s=Ue(mt,n),[c,l]=i.useState(null),[u,d]=i.useState(null),f=J(t,S=>d(S)),h=yn(n),g=i.useRef(!1),b=i.useRef(!0),{viewport:p,selectedItem:x,selectedItemText:$,focusSelectedItem:w}=s,y=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&p&&x&&$){const S=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),I=a.valueNode.getBoundingClientRect(),N=$.getBoundingClientRect();if(a.dir!=="rtl"){const Y=N.left-P.left,X=I.left-Y,ne=S.left-X,oe=S.width+ne,ge=Math.max(oe,P.width),Oe=window.innerWidth-Se,Xe=Rr(X,[Se,Oe-ge]);c.style.minWidth=oe+"px",c.style.left=Xe+"px"}else{const Y=P.right-N.right,X=window.innerWidth-I.right-Y,ne=window.innerWidth-S.right-X,oe=S.width+ne,ge=Math.max(oe,P.width),Oe=window.innerWidth-Se,Xe=Rr(X,[Se,Oe-ge]);c.style.minWidth=oe+"px",c.style.right=Xe+"px"}const D=h(),k=window.innerHeight-Se*2,V=p.scrollHeight,F=window.getComputedStyle(u),O=parseInt(F.borderTopWidth,10),B=parseInt(F.paddingTop,10),j=parseInt(F.borderBottomWidth,10),H=parseInt(F.paddingBottom,10),M=O+B+V+H+j,Z=Math.min(x.offsetHeight*5,M),Q=window.getComputedStyle(p),se=parseInt(Q.paddingTop,10),le=parseInt(Q.paddingBottom,10),ue=S.top+S.height/2-Se,de=k-ue,te=x.offsetHeight/2,L=x.offsetTop+te,G=O+B+L,U=M-G;if(G<=ue){const Y=x===D[D.length-1].ref.current;c.style.bottom="0px";const X=u.clientHeight-p.offsetTop-p.offsetHeight,ne=Math.max(de,te+(Y?le:0)+X+j),oe=G+ne;c.style.height=oe+"px"}else{const Y=x===D[0].ref.current;c.style.top="0px";const ne=Math.max(ue,O+p.offsetTop+(Y?se:0)+te)+U;c.style.height=ne+"px",p.scrollTop=G-ue+p.offsetTop}c.style.margin=`${Se}px 0`,c.style.minHeight=Z+"px",c.style.maxHeight=k+"px",o==null||o(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,c,u,p,x,$,a.dir,o]);pe(()=>y(),[y]);const[C,E]=i.useState();pe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=i.useCallback(S=>{S&&b.current===!0&&(y(),w==null||w(),b.current=!1)},[y,w]);return i.createElement(jm,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:_},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(q.div,R({},r,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),Yr=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=Se,...a}=e,s=Cn(n);return i.createElement(Lo,R({},s,a,{ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[jm,Wo]=Ct(mt,{}),Xr="SelectViewport",Fm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ue(Xr,n),a=Wo(Xr,n),s=J(t,r.onViewportChange),c=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(wn.Slot,{scope:n},i.createElement(q.div,R({"data-radix-select-viewport":"",role:"presentation"},o,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:A(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=a;if(f!=null&&f.current&&d){const h=Math.abs(c.current-u.scrollTop);if(h>0){const g=window.innerHeight-Se*2,b=parseFloat(d.style.minHeight),p=parseFloat(d.style.height),x=Math.max(b,p);if(x<g){const $=x+h,w=Math.min(g,$),y=$-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=y>0?y:0,d.style.justifyContent="flex-end")}}}c.current=u.scrollTop})}))))}),Bm="SelectGroup",[Vm,zm]=Ct(Bm),Wm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Pe();return i.createElement(Vm,{scope:n,id:r},i.createElement(q.div,R({role:"group","aria-labelledby":r},o,{ref:t})))}),Hm="SelectLabel",Gm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=zm(Hm,n);return i.createElement(q.div,R({id:r.id},o,{ref:t}))}),no="SelectItem",[Um,vc]=Ct(no),Km=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:a,...s}=e,c=Ge(no,n),l=Ue(no,n),u=c.value===o,[d,f]=i.useState(a??""),[h,g]=i.useState(!1),b=J(t,$=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,$,o,r)}),p=Pe(),x=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(Um,{scope:n,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:i.useCallback($=>{f(w=>{var y;return w||((y=$==null?void 0:$.textContent)!==null&&y!==void 0?y:"").trim()})},[])},i.createElement(wn.ItemSlot,{scope:n,value:o,disabled:r,textValue:d},i.createElement(q.div,R({role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},s,{ref:b,onFocus:A(s.onFocus,()=>g(!0)),onBlur:A(s.onBlur,()=>g(!1)),onPointerUp:A(s.onPointerUp,x),onPointerMove:A(s.onPointerMove,$=>{if(r){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else $.currentTarget.focus({preventScroll:!0})}),onPointerLeave:A(s.onPointerLeave,$=>{if($.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:A(s.onKeyDown,$=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&$.key===" "||(Cm.includes($.key)&&x(),$.key===" "&&$.preventDefault())})}))))}),Kt="SelectItemText",Ym=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...a}=e,s=Ge(Kt,n),c=Ue(Kt,n),l=vc(Kt,n),u=Pm(Kt,n),[d,f]=i.useState(null),h=J(t,$=>f($),l.onItemTextChange,$=>{var w;return(w=c.itemTextRefCallback)===null||w===void 0?void 0:w.call(c,$,l.value,l.disabled)}),g=d==null?void 0:d.textContent,b=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:x}=u;return pe(()=>(p(b),()=>x(b)),[p,x,b]),i.createElement(i.Fragment,null,i.createElement(q.span,R({id:l.textId},a,{ref:h})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?et.createPortal(a.children,s.valueNode):null)}),Xm="SelectItemIndicator",qm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return vc(Xm,n).isSelected?i.createElement(q.span,R({"aria-hidden":!0},o,{ref:t})):null}),qr="SelectScrollUpButton",Zm=i.forwardRef((e,t)=>{const n=Ue(qr,e.__scopeSelect),o=Wo(qr,e.__scopeSelect),[r,a]=i.useState(!1),s=J(t,o.onScrollButtonChange);return pe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?i.createElement(hc,R({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}})):null}),Zr="SelectScrollDownButton",Qm=i.forwardRef((e,t)=>{const n=Ue(Zr,e.__scopeSelect),o=Wo(Zr,e.__scopeSelect),[r,a]=i.useState(!1),s=J(t,o.onScrollButtonChange);return pe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?i.createElement(hc,R({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}})):null}),hc=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,a=Ue("SelectScrollButton",n),s=i.useRef(null),c=yn(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),pe(()=>{var u;const d=c().find(f=>f.ref.current===document.activeElement);d==null||(u=d.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[c]),i.createElement(q.div,R({"aria-hidden":!0},r,{ref:t,style:{flexShrink:0,...r.style},onPointerDown:A(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:A(r.onPointerMove,()=>{var u;(u=a.onItemLeave)===null||u===void 0||u.call(a),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:A(r.onPointerLeave,()=>{l()})}))}),Jm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return i.createElement(q.div,R({"aria-hidden":!0},o,{ref:t}))}),Qr="SelectArrow",ev=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Cn(n),a=Ge(Qr,n),s=Ue(Qr,n);return a.open&&s.position==="popper"?i.createElement(jo,R({},r,o,{ref:t})):null});function gc(e){return e===""||e===void 0}const bc=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=i.useRef(null),a=J(t,r),s=tc(n);return i.useEffect(()=>{const c=r.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&d){const f=new Event("change",{bubbles:!0});d.call(c,n),c.dispatchEvent(f)}},[s,n]),i.createElement(nc,{asChild:!0},i.createElement("select",R({},o,{ref:a,defaultValue:n})))});bc.displayName="BubbleSelect";function xc(e){const t=fe(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(s=>{const c=n.current+s;t(c),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,a]}function $c(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=tv(e,Math.max(a,0));r.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function tv(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const nv=_m,ov=Nm,rv=Am,av=Im,sv=Om,cv=Dm,iv=Fm,lv=Wm,uv=Gm,dv=Km,fv=Ym,pv=qm,mv=Zm,vv=Qm,hv=Jm,gv=ev,bv=nv,xv=gv,wc=i.forwardRef((e,t)=>{const{placeholder:n,className:o,...r}=e;return v.jsxs(ov,{ref:t,...r,className:T(o,"fp-SelectTrigger"),children:[v.jsx(rv,{placeholder:n}),v.jsx(av,{className:"fp-SelectTriggerIcon",children:v.jsx(bs,{})})]})}),yc=i.forwardRef((e,t)=>{const{children:n,portal:o=!1,className:r,...a}=e,s=o?sv:i.Fragment;return v.jsx(s,{children:v.jsxs(cv,{ref:t,...a,className:T(r,"fp-MenuContent"),children:[v.jsx(mv,{className:"fp-SelectScrollUpButton",children:v.jsx(pf,{})}),v.jsx(iv,{children:n}),v.jsx(vv,{className:"fp-SelectScrollDownButton",children:v.jsx(bs,{})})]})})}),Cc=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(dv,{ref:t,...r,className:T(o,"fp-MenuItem fp-MenuCheckboxItem"),children:[v.jsx(pv,{className:"fp-MenuItemIndicator",children:v.jsx(mn,{size:"4"})}),v.jsx(fv,{children:n})]})}),Ec=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(hv,{ref:t,className:T(n,"fp-MenuSeparator"),...o})}),Sc=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(uv,{ref:t,className:T(n,"fp-MenuLabel"),...o})}),Rc=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(lv,{ref:t,className:T(n,"fp-MenuGroup"),...o})});wc.displayName="Select.Trigger";yc.displayName="Select.Content";Cc.displayName="Select.Item";Ec.displayName="Select.Separator";Rc.displayName="Select.Group";Sc.displayName="Select.Label";const $v=Object.freeze(Object.defineProperty({__proto__:null,Arrow:xv,Content:yc,Group:Rc,Item:Cc,Label:Sc,Root:bv,Separator:Ec,Trigger:wc},Symbol.toStringTag,{value:"Module"}));function wv(e,t){return i.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const tt=e=>{const{present:t,children:n}=e,o=yv(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),a=J(o.ref,r.ref);return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:a}):null};tt.displayName="Presence";function yv(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=wv(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Yt(o.current);a.current=c==="mounted"?u:"none"},[c]),pe(()=>{const u=o.current,d=r.current;if(d!==e){const h=a.current,g=Yt(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),pe(()=>{if(t){const u=f=>{const g=Yt(o.current).includes(f.animationName);f.target===t&&g&&et.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(a.current=Yt(o.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Yt(e){return(e==null?void 0:e.animationName)||"none"}const zn="rovingFocusGroup.onEntryFocus",Cv={bubbles:!1,cancelable:!0},Ho="RovingFocusGroup",[oo,Pc,Ev]=Ro(Ho),[Sv,_c]=Me(Ho,[Ev]),[Rv,Pv]=Sv(Ho),_v=i.forwardRef((e,t)=>i.createElement(oo.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(oo.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(Tv,R({},e,{ref:t}))))),Tv=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,...d}=e,f=i.useRef(null),h=J(t,f),g=Po(a),[b=null,p]=Ve({prop:s,defaultProp:c,onChange:l}),[x,$]=i.useState(!1),w=fe(u),y=Pc(n),C=i.useRef(!1),[E,_]=i.useState(0);return i.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(zn,w),()=>S.removeEventListener(zn,w)},[w]),i.createElement(Rv,{scope:n,orientation:o,dir:g,loop:r,currentTabStopId:b,onItemFocus:i.useCallback(S=>p(S),[p]),onItemShiftTab:i.useCallback(()=>$(!0),[]),onFocusableItemAdd:i.useCallback(()=>_(S=>S+1),[]),onFocusableItemRemove:i.useCallback(()=>_(S=>S-1),[])},i.createElement(q.div,R({tabIndex:x||E===0?-1:0,"data-orientation":o},d,{ref:h,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{C.current=!0}),onFocus:A(e.onFocus,S=>{const P=!C.current;if(S.target===S.currentTarget&&P&&!x){const I=new CustomEvent(zn,Cv);if(S.currentTarget.dispatchEvent(I),!I.defaultPrevented){const N=y().filter(O=>O.focusable),D=N.find(O=>O.active),k=N.find(O=>O.id===b),F=[D,k,...N].filter(Boolean).map(O=>O.ref.current);Tc(F)}}C.current=!1}),onBlur:A(e.onBlur,()=>$(!1))})))}),Nv="RovingFocusGroupItem",Mv=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:a,...s}=e,c=Pe(),l=a||c,u=Pv(Nv,n),d=u.currentTabStopId===l,f=Pc(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=u;return i.useEffect(()=>{if(o)return h(),()=>g()},[o,h,g]),i.createElement(oo.ItemSlot,{scope:n,id:l,focusable:o,active:r},i.createElement(q.span,R({tabIndex:d?0:-1,"data-orientation":u.orientation},s,{ref:t,onMouseDown:A(e.onMouseDown,b=>{o?u.onItemFocus(l):b.preventDefault()}),onFocus:A(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:A(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const p=Ov(b,u.orientation,u.dir);if(p!==void 0){b.preventDefault();let $=f().filter(w=>w.focusable).map(w=>w.ref.current);if(p==="last")$.reverse();else if(p==="prev"||p==="next"){p==="prev"&&$.reverse();const w=$.indexOf(b.currentTarget);$=u.loop?Dv($,w+1):$.slice(w+1)}setTimeout(()=>Tc($))}})})))}),Av={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Iv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ov(e,t,n){const o=Iv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Av[o]}function Tc(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Dv(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const kv=_v,Lv=Mv,ro=["Enter"," "],jv=["ArrowDown","PageUp","Home"],Nc=["ArrowUp","PageDown","End"],Fv=[...jv,...Nc],Bv={ltr:[...ro,"ArrowRight"],rtl:[...ro,"ArrowLeft"]},Vv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},En="Menu",[Nt,zv,Wv]=Ro(En),[nt,Sn]=Me(En,[Wv,yt,_c]),Dt=yt(),Mc=_c(),[Ac,Ke]=nt(En),[Hv,kt]=nt(En),Gv=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:a,modal:s=!0}=e,c=Dt(t),[l,u]=i.useState(null),d=i.useRef(!1),f=fe(a),h=Po(r);return i.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),i.createElement(gn,c,i.createElement(Ac,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u},i.createElement(Hv,{scope:t,onClose:i.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:s},o)))},Ic=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Dt(n);return i.createElement(ko,R({},r,o,{ref:t}))}),Oc="MenuPortal",[Uv,Dc]=nt(Oc,{forceMount:void 0}),Kv=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,a=Ke(Oc,t);return i.createElement(Uv,{scope:t,forceMount:n},i.createElement(tt,{present:n||a.open},i.createElement(Fo,{asChild:!0,container:r},o)))},be="MenuContent",[Yv,Go]=nt(be),Xv=i.forwardRef((e,t)=>{const n=Dc(be,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,a=Ke(be,e.__scopeMenu),s=kt(be,e.__scopeMenu);return i.createElement(Nt.Provider,{scope:e.__scopeMenu},i.createElement(tt,{present:o||a.open},i.createElement(Nt.Slot,{scope:e.__scopeMenu},s.modal?i.createElement(qv,R({},r,{ref:t})):i.createElement(Zv,R({},r,{ref:t})))))}),qv=i.forwardRef((e,t)=>{const n=Ke(be,e.__scopeMenu),o=i.useRef(null),r=J(t,o);return i.useEffect(()=>{const a=o.current;if(a)return bn(a)},[]),i.createElement(Uo,R({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Zv=i.forwardRef((e,t)=>{const n=Ke(be,e.__scopeMenu);return i.createElement(Uo,R({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Uo=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,disableOutsideScroll:b,...p}=e,x=Ke(be,n),$=kt(be,n),w=Dt(n),y=Mc(n),C=zv(n),[E,_]=i.useState(null),S=i.useRef(null),P=J(t,S,x.onContentChange),I=i.useRef(0),N=i.useRef(""),D=i.useRef(0),k=i.useRef(null),V=i.useRef("right"),F=i.useRef(0),O=b?zo:i.Fragment,B=b?{as:ft,allowPinchZoom:!0}:void 0,j=M=>{var Z,Q;const se=N.current+M,le=C().filter(U=>!U.disabled),ue=document.activeElement,de=(Z=le.find(U=>U.ref.current===ue))===null||Z===void 0?void 0:Z.textValue,te=le.map(U=>U.textValue),L=gh(te,se,de),G=(Q=le.find(U=>U.textValue===L))===null||Q===void 0?void 0:Q.ref.current;(function U(K){N.current=K,window.clearTimeout(I.current),K!==""&&(I.current=window.setTimeout(()=>U(""),1e3))})(se),G&&setTimeout(()=>G.focus())};i.useEffect(()=>()=>window.clearTimeout(I.current),[]),_s();const H=i.useCallback(M=>{var Z,Q;return V.current===((Z=k.current)===null||Z===void 0?void 0:Z.side)&&xh(M,(Q=k.current)===null||Q===void 0?void 0:Q.area)},[]);return i.createElement(Yv,{scope:n,searchRef:N,onItemEnter:i.useCallback(M=>{H(M)&&M.preventDefault()},[H]),onItemLeave:i.useCallback(M=>{var Z;H(M)||((Z=S.current)===null||Z===void 0||Z.focus(),_(null))},[H]),onTriggerLeave:i.useCallback(M=>{H(M)&&M.preventDefault()},[H]),pointerGraceTimerRef:D,onPointerGraceIntentChange:i.useCallback(M=>{k.current=M},[])},i.createElement(O,B,i.createElement(Ts,{asChild:!0,trapped:r,onMountAutoFocus:A(a,M=>{var Z;M.preventDefault(),(Z=S.current)===null||Z===void 0||Z.focus()}),onUnmountAutoFocus:s},i.createElement(_o,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g},i.createElement(kv,R({asChild:!0},y,{dir:$.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:A(l,M=>{$.isUsingKeyboardRef.current||M.preventDefault()})}),i.createElement(Lo,R({role:"menu","aria-orientation":"vertical","data-state":zc(x.open),"data-radix-menu-content":"",dir:$.dir},w,p,{ref:P,style:{outline:"none",...p.style},onKeyDown:A(p.onKeyDown,M=>{const Q=M.target.closest("[data-radix-menu-content]")===M.currentTarget,se=M.ctrlKey||M.altKey||M.metaKey,le=M.key.length===1;Q&&(M.key==="Tab"&&M.preventDefault(),!se&&le&&j(M.key));const ue=S.current;if(M.target!==ue||!Fv.includes(M.key))return;M.preventDefault();const te=C().filter(L=>!L.disabled).map(L=>L.ref.current);Nc.includes(M.key)&&te.reverse(),vh(te)}),onBlur:A(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(I.current),N.current="")}),onPointerMove:A(e.onPointerMove,Mt(M=>{const Z=M.target,Q=F.current!==M.clientX;if(M.currentTarget.contains(Z)&&Q){const se=M.clientX>F.current?"right":"left";V.current=se,F.current=M.clientX}}))})))))))}),kc=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(q.div,R({role:"group"},o,{ref:t}))}),Qv=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(q.div,R({},o,{ref:t}))}),ao="MenuItem",Jr="menu.itemSelect",Ko=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,a=i.useRef(null),s=kt(ao,e.__scopeMenu),c=Go(ao,e.__scopeMenu),l=J(t,a),u=i.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const h=new CustomEvent(Jr,{bubbles:!0,cancelable:!0});f.addEventListener(Jr,g=>o==null?void 0:o(g),{once:!0}),Rs(f,h),h.defaultPrevented?u.current=!1:s.onClose()}};return i.createElement(Lc,R({},r,{ref:l,disabled:n,onClick:A(e.onClick,d),onPointerDown:f=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,f),u.current=!0},onPointerUp:A(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)===null||h===void 0||h.click()}),onKeyDown:A(e.onKeyDown,f=>{const h=c.searchRef.current!=="";n||h&&f.key===" "||ro.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),Lc=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...a}=e,s=Go(ao,n),c=Mc(n),l=i.useRef(null),u=J(t,l),[d,f]=i.useState(!1),[h,g]=i.useState("");return i.useEffect(()=>{const b=l.current;if(b){var p;g(((p=b.textContent)!==null&&p!==void 0?p:"").trim())}},[a.children]),i.createElement(Nt.ItemSlot,{scope:n,disabled:o,textValue:r??h},i.createElement(Lv,R({asChild:!0},c,{focusable:!o}),i.createElement(q.div,R({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},a,{ref:u,onPointerMove:A(e.onPointerMove,Mt(b=>{o?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus())})),onPointerLeave:A(e.onPointerLeave,Mt(b=>s.onItemLeave(b))),onFocus:A(e.onFocus,()=>f(!0)),onBlur:A(e.onBlur,()=>f(!1))}))))}),Jv=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return i.createElement(Fc,{scope:e.__scopeMenu,checked:n},i.createElement(Ko,R({role:"menuitemcheckbox","aria-checked":sn(n)?"mixed":n},r,{ref:t,"data-state":Yo(n),onSelect:A(r.onSelect,()=>o==null?void 0:o(sn(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),eh="MenuRadioGroup",[th,nh]=nt(eh,{value:void 0,onValueChange:()=>{}}),oh=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,a=fe(o);return i.createElement(th,{scope:e.__scopeMenu,value:n,onValueChange:a},i.createElement(kc,R({},r,{ref:t})))}),rh="MenuRadioItem",ah=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=nh(rh,e.__scopeMenu),a=n===r.value;return i.createElement(Fc,{scope:e.__scopeMenu,checked:a},i.createElement(Ko,R({role:"menuitemradio","aria-checked":a},o,{ref:t,"data-state":Yo(a),onSelect:A(o.onSelect,()=>{var s;return(s=r.onValueChange)===null||s===void 0?void 0:s.call(r,n)},{checkForDefaultPrevented:!1})})))}),jc="MenuItemIndicator",[Fc,sh]=nt(jc,{checked:!1}),ch=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,a=sh(jc,n);return i.createElement(tt,{present:o||sn(a.checked)||a.checked===!0},i.createElement(q.span,R({},r,{ref:t,"data-state":Yo(a.checked)})))}),ih=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(q.div,R({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),lh=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Dt(n);return i.createElement(jo,R({},r,o,{ref:t}))}),Bc="MenuSub",[uh,Vc]=nt(Bc),dh=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,a=Ke(Bc,t),s=Dt(t),[c,l]=i.useState(null),[u,d]=i.useState(null),f=fe(r);return i.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),i.createElement(gn,s,i.createElement(Ac,{scope:t,open:o,onOpenChange:f,content:u,onContentChange:d},i.createElement(uh,{scope:t,contentId:Pe(),triggerId:Pe(),trigger:c,onTriggerChange:l},n)))},Xt="MenuSubTrigger",fh=i.forwardRef((e,t)=>{const n=Ke(Xt,e.__scopeMenu),o=kt(Xt,e.__scopeMenu),r=Vc(Xt,e.__scopeMenu),a=Go(Xt,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),l(null)}},[c,l]),i.createElement(Ic,R({asChild:!0},u),i.createElement(Lc,R({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":zc(n.open)},e,{ref:vn(t,r.onTriggerChange),onClick:f=>{var h;(h=e.onClick)===null||h===void 0||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,Mt(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:A(e.onPointerLeave,Mt(f=>{var h;d();const g=(h=n.content)===null||h===void 0?void 0:h.getBoundingClientRect();if(g){var b;const p=(b=n.content)===null||b===void 0?void 0:b.dataset.side,x=p==="right",$=x?-5:5,w=g[x?"left":"right"],y=g[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+$,y:f.clientY},{x:w,y:g.top},{x:y,y:g.top},{x:y,y:g.bottom},{x:w,y:g.bottom}],side:p}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,f=>{const h=a.searchRef.current!=="";if(!(e.disabled||h&&f.key===" ")&&Bv[o.dir].includes(f.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),f.preventDefault()}})})))}),ph="MenuSubContent",mh=i.forwardRef((e,t)=>{const n=Dc(be,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,a=Ke(be,e.__scopeMenu),s=kt(be,e.__scopeMenu),c=Vc(ph,e.__scopeMenu),l=i.useRef(null),u=J(t,l);return i.createElement(Nt.Provider,{scope:e.__scopeMenu},i.createElement(tt,{present:o||a.open},i.createElement(Nt.Slot,{scope:e.__scopeMenu},i.createElement(Uo,R({id:c.contentId,"aria-labelledby":c.triggerId},r,{ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)===null||f===void 0||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:A(e.onFocusOutside,d=>{d.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:A(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),h=Vv[s.dir].includes(d.key);if(f&&h){var g;a.onOpenChange(!1),(g=c.trigger)===null||g===void 0||g.focus(),d.preventDefault()}})})))))});function zc(e){return e?"open":"closed"}function sn(e){return e==="indeterminate"}function Yo(e){return sn(e)?"indeterminate":e?"checked":"unchecked"}function vh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function hh(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function gh(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=hh(e,Math.max(a,0));r.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function bh(e,t){const{x:n,y:o}=e;let r=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,u=t[s].x,d=t[s].y;l>o!=d>o&&n<(u-c)*(o-l)/(d-l)+c&&(r=!r)}return r}function xh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return bh(n,t)}function Mt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Wc=Gv,Hc=Ic,Gc=Kv,Uc=Xv,Kc=kc,Yc=Qv,Xc=Ko,qc=Jv,Zc=oh,Qc=ah,Jc=ch,ei=ih,$h=lh,ti=dh,ni=fh,oi=mh,ri="DropdownMenu",[wh,Q$]=Me(ri,[Sn]),ae=Sn(),[yh,ai]=wh(ri),Ch=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=ae(t),u=i.useRef(null),[d=!1,f]=Ve({prop:r,defaultProp:a,onChange:s});return i.createElement(yh,{scope:t,triggerId:Pe(),triggerRef:u,contentId:Pe(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(h=>!h),[f]),modal:c},i.createElement(Wc,R({},l,{open:d,onOpenChange:f,dir:o,modal:c}),n))},Eh="DropdownMenuTrigger",Sh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,a=ai(Eh,n),s=ae(n);return i.createElement(Hc,R({asChild:!0},s),i.createElement(q.button,R({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},r,{ref:vn(t,a.triggerRef),onPointerDown:A(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:A(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),Rh=e=>{const{__scopeDropdownMenu:t,...n}=e,o=ae(t);return i.createElement(Gc,R({},o,n))},Ph="DropdownMenuContent",_h=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ai(Ph,n),a=ae(n),s=i.useRef(!1);return i.createElement(Uc,R({id:r.contentId,"aria-labelledby":r.triggerId},a,o,{ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,c=>{var l;s.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:A(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!r.modal||d)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Th=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(Kc,R({},r,o,{ref:t}))}),Nh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(Yc,R({},r,o,{ref:t}))}),Mh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(Xc,R({},r,o,{ref:t}))}),Ah=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(qc,R({},r,o,{ref:t}))}),Ih=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(Zc,R({},r,o,{ref:t}))}),Oh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(Qc,R({},r,o,{ref:t}))}),Dh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(Jc,R({},r,o,{ref:t}))}),kh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(ei,R({},r,o,{ref:t}))}),Lh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement($h,R({},r,o,{ref:t}))}),jh=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:a}=e,s=ae(t),[c=!1,l]=Ve({prop:o,defaultProp:a,onChange:r});return i.createElement(ti,R({},s,{open:c,onOpenChange:l}),n)},Fh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(ni,R({},r,o,{ref:t}))}),Bh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ae(n);return i.createElement(oi,R({},r,o,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Vh=Ch,zh=Sh,si=Rh,Wh=_h,Hh=Th,Gh=Nh,Uh=Mh,Kh=Ah,Yh=Ih,Xh=Oh,ci=Dh,qh=kh,Zh=Lh,Qh=jh,Jh=Fh,eg=Bh,tg=Vh,ng=zh,og=Qh,rg=Yh,ii=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsx(si,{children:v.jsxs(Wh,{ref:t,...r,className:T(o,"fp-MenuContent"),children:[n,v.jsx(Zh,{})]})})}),li=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Uh,{ref:t,...o,className:T(n,"fp-MenuItem")})}),ui=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(qh,{ref:t,className:T(n,"fp-MenuSeparator"),...o})}),di=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Gh,{ref:t,className:T(n,"fp-MenuLabel"),...o})}),fi=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Hh,{ref:t,className:T(n,"fp-MenuGroup"),...o})}),pi=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(Jh,{ref:t,...r,className:T(o,"fp-MenuItem"),children:[n,v.jsx(Eo,{className:"fp-MenuSubtriggerCaret"})]})}),mi=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(si,{children:v.jsx(eg,{ref:t,...o,className:T(n,"fp-MenuContent"),sideOffset:12})})}),vi=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(Kh,{ref:t,...r,className:T(o,"fp-MenuItem fp-MenuCheckboxItem"),children:[v.jsx(ci,{className:"fp-MenuItemIndicator",children:v.jsx(mn,{size:"4"})}),n]})}),hi=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(Xh,{ref:t,...r,className:T(o,"fp-MenuItem fp-MenuRadioItem"),children:[v.jsx(ci,{className:"fp-MenuItemIndicator",children:v.jsx(xs,{size:"4"})}),n]})});ii.displayName="DropdownMenu.Content";li.displayName="DropdownMenu.Item";ui.displayName="DropdownMenu.Separator";fi.displayName="DropdownMenu.Group";di.displayName="DropdownMenu.Label";pi.displayName="DropdownMenu.SubTrigger";mi.displayName="DropdownMenu.SubContent";vi.displayName="DropdownMenu.CheckboxItem";hi.displayName="DropdownMenu.RadioItem";const ag=Object.freeze(Object.defineProperty({__proto__:null,CheckboxItem:vi,Content:ii,Group:fi,Item:li,Label:di,RadioGroup:rg,RadioItem:hi,Root:tg,Separator:ui,Sub:og,SubContent:mi,SubTrigger:pi,Trigger:ng},Symbol.toStringTag,{value:"Module"})),gi="ContextMenu",[sg,J$]=Me(gi,[Sn]),ie=Sn(),[cg,bi]=sg(gi),ig=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,dir:r,modal:a=!0}=e,[s,c]=i.useState(!1),l=ie(t),u=fe(o),d=i.useCallback(f=>{c(f),u(f)},[u]);return i.createElement(cg,{scope:t,open:s,onOpenChange:d,modal:a},i.createElement(Wc,R({},l,{dir:r,open:s,onOpenChange:d,modal:a}),n))},lg="ContextMenuTrigger",ug=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:o=!1,...r}=e,a=bi(lg,n),s=ie(n),c=i.useRef({x:0,y:0}),l=i.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),u=i.useRef(0),d=i.useCallback(()=>window.clearTimeout(u.current),[]),f=h=>{c.current={x:h.clientX,y:h.clientY},a.onOpenChange(!0)};return i.useEffect(()=>d,[d]),i.useEffect(()=>void(o&&d()),[o,d]),i.createElement(i.Fragment,null,i.createElement(Hc,R({},s,{virtualRef:l})),i.createElement(q.span,R({"data-state":a.open?"open":"closed","data-disabled":o?"":void 0},r,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:A(e.onContextMenu,h=>{d(),f(h),h.preventDefault()}),onPointerDown:o?e.onPointerDown:A(e.onPointerDown,qt(h=>{d(),u.current=window.setTimeout(()=>f(h),700)})),onPointerMove:o?e.onPointerMove:A(e.onPointerMove,qt(d)),onPointerCancel:o?e.onPointerCancel:A(e.onPointerCancel,qt(d)),onPointerUp:o?e.onPointerUp:A(e.onPointerUp,qt(d))})))}),dg=e=>{const{__scopeContextMenu:t,...n}=e,o=ie(t);return i.createElement(Gc,R({},o,n))},fg="ContextMenuContent",pg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=bi(fg,n),a=ie(n),s=i.useRef(!1);return i.createElement(Uc,R({},a,o,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:c=>{var l;(l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,c),!c.defaultPrevented&&s.current&&c.preventDefault(),s.current=!1},onInteractOutside:c=>{var l;(l=e.onInteractOutside)===null||l===void 0||l.call(e,c),!c.defaultPrevented&&!r.modal&&(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),mg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(Kc,R({},r,o,{ref:t}))}),vg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(Yc,R({},r,o,{ref:t}))}),hg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(Xc,R({},r,o,{ref:t}))}),gg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(qc,R({},r,o,{ref:t}))}),bg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(Zc,R({},r,o,{ref:t}))}),xg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(Qc,R({},r,o,{ref:t}))}),$g=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(Jc,R({},r,o,{ref:t}))}),wg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(ei,R({},r,o,{ref:t}))}),yg=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,open:r,defaultOpen:a}=e,s=ie(t),[c,l]=Ve({prop:r,defaultProp:a,onChange:o});return i.createElement(ti,R({},s,{open:c,onOpenChange:l}),n)},Cg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(ni,R({},r,o,{ref:t}))}),Eg=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=ie(n);return i.createElement(oi,R({},r,o,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});function qt(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const Sg=ig,Rg=ug,xi=dg,Pg=pg,_g=mg,Tg=vg,Ng=hg,Mg=gg,Ag=bg,Ig=xg,$i=$g,Og=wg,Dg=yg,kg=Cg,Lg=Eg,jg=Sg,Fg=Rg,Bg=Dg,Vg=Ag,wi=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsx(xi,{children:v.jsx(Pg,{ref:t,...r,className:T(o,"fp-MenuContent"),children:n})})}),yi=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Ng,{ref:t,...o,className:T(n,"fp-MenuItem")})}),Ci=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Og,{ref:t,className:T(n,"fp-MenuSeparator"),...o})}),Ei=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Tg,{ref:t,className:T(n,"fp-MenuLabel"),...o})}),Si=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(_g,{ref:t,className:T(n,"fp-MenuGroup"),...o})}),Ri=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(kg,{ref:t,...r,className:T(o,"fp-MenuItem"),children:[n,v.jsx(Eo,{className:"fp-MenuSubtriggerCaret"})]})}),Pi=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(xi,{children:v.jsx(Lg,{ref:t,...o,className:T(n,"fp-MenuContent"),sideOffset:12})})}),_i=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(Mg,{ref:t,...r,className:T(o,"fp-MenuItem fp-MenuCheckboxItem"),children:[v.jsx($i,{className:"fp-MenuItemIndicator",children:v.jsx(mn,{size:"4"})}),n]})}),Ti=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsxs(Ig,{ref:t,...r,className:T(o,"fp-MenuItem fp-MenuRadioItem"),children:[v.jsx($i,{className:"fp-MenuItemIndicator",children:v.jsx(xs,{size:"4"})}),n]})});wi.displayName="ContextMenu.Content";yi.displayName="ContextMenu.Item";Ci.displayName="ContextMenu.Separator";Ei.displayName="ContextMenu.Label";Si.displayName="ContextMenu.Group";Ri.displayName="ContextMenu.SubTrigger";Pi.displayName="ContextMenu.SubContent";_i.displayName="ContextMenu.CheckboxItem";Ti.displayName="ContextMenu.RadioItem";const zg=Object.freeze(Object.defineProperty({__proto__:null,CheckboxItem:_i,Content:wi,Group:Si,Item:yi,Label:Ei,RadioGroup:Vg,RadioItem:Ti,Root:jg,Separator:Ci,Sub:Bg,SubContent:Pi,SubTrigger:Ri,Trigger:Fg},Symbol.toStringTag,{value:"Module"}));function Wg(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Hg="DismissableLayer",so="dismissableLayer.update",Gg="dismissableLayer.pointerDownOutside",Ug="dismissableLayer.focusOutside",ea,Ni=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xo=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=e,u=m.useContext(Ni),[d,f]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),b=ee(t,S=>f(S)),p=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=p.indexOf(x),w=d?p.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=$,E=Xg(S=>{const P=S.target,I=[...u.branches].some(N=>N.contains(P));!C||I||(r==null||r(S),s==null||s(S),S.defaultPrevented||c==null||c())},h),_=qg(S=>{const P=S.target;[...u.branches].some(N=>N.contains(P))||(a==null||a(S),s==null||s(S),S.defaultPrevented||c==null||c())},h);return Wg(S=>{w===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ea=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ta(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ea)}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ta())},[d,u]),m.useEffect(()=>{const S=()=>g({});return document.addEventListener(so,S),()=>document.removeEventListener(so,S)},[]),v.jsx(W.div,{...l,ref:b,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,_.onFocusCapture),onBlurCapture:z(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,E.onPointerDownCapture)})});Xo.displayName=Hg;var Kg="DismissableLayerBranch",Yg=m.forwardRef((e,t)=>{const n=m.useContext(Ni),o=m.useRef(null),r=ee(t,o);return m.useEffect(()=>{const a=o.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),v.jsx(W.div,{...e,ref:r})});Yg.displayName=Kg;function Xg(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const a=c=>{if(c.target&&!o.current){let l=function(){Mi(Gg,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function qg(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),o=m.useRef(!1);return m.useEffect(()=>{const r=a=>{a.target&&!o.current&&Mi(Ug,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function ta(){const e=new CustomEvent(so);document.dispatchEvent(e)}function Mi(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?fd(r,a):r.dispatchEvent(a)}var Wn=0;function Ai(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??na()),document.body.insertAdjacentElement("beforeend",e[1]??na()),Wn++,()=>{Wn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wn--}},[])}function na(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Hn="focusScope.autoFocusOnMount",Gn="focusScope.autoFocusOnUnmount",oa={bubbles:!1,cancelable:!0},Zg="FocusScope",qo=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[c,l]=m.useState(null),u=Re(r),d=Re(a),f=m.useRef(null),h=ee(t,p=>l(p)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(o){let p=function(y){if(g.paused||!c)return;const C=y.target;c.contains(C)?f.current=C:ke(f.current,{select:!0})},x=function(y){if(g.paused||!c)return;const C=y.relatedTarget;C!==null&&(c.contains(C)||ke(f.current,{select:!0}))},$=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&ke(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const w=new MutationObserver($);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),w.disconnect()}}},[o,c,g.paused]),m.useEffect(()=>{if(c){aa.add(g);const p=document.activeElement;if(!c.contains(p)){const $=new CustomEvent(Hn,oa);c.addEventListener(Hn,u),c.dispatchEvent($),$.defaultPrevented||(Qg(ob(Ii(c)),{select:!0}),document.activeElement===p&&ke(c))}return()=>{c.removeEventListener(Hn,u),setTimeout(()=>{const $=new CustomEvent(Gn,oa);c.addEventListener(Gn,d),c.dispatchEvent($),$.defaultPrevented||ke(p??document.body,{select:!0}),c.removeEventListener(Gn,d),aa.remove(g)},0)}}},[c,u,d,g]);const b=m.useCallback(p=>{if(!n&&!o||g.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,$=document.activeElement;if(x&&$){const w=p.currentTarget,[y,C]=Jg(w);y&&C?!p.shiftKey&&$===C?(p.preventDefault(),n&&ke(y,{select:!0})):p.shiftKey&&$===y&&(p.preventDefault(),n&&ke(C,{select:!0})):$===w&&p.preventDefault()}},[n,o,g.paused]);return v.jsx(W.div,{tabIndex:-1,...s,ref:h,onKeyDown:b})});qo.displayName=Zg;function Qg(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ke(o,{select:t}),document.activeElement!==n)return}function Jg(e){const t=Ii(e),n=ra(t,e),o=ra(t.reverse(),e);return[n,o]}function Ii(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ra(e,t){for(const n of e)if(!eb(n,{upTo:t}))return n}function eb(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 tb(e){return e instanceof HTMLInputElement&&"select"in e}function ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tb(e)&&t&&e.select()}}var aa=nb();function nb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=sa(e,t),e.unshift(t)},remove(t){var n;e=sa(e,t),(n=e[0])==null||n.resume()}}}function sa(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function ob(e){return e.filter(t=>t.tagName!=="A")}var rb="Arrow",Oi=m.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return v.jsx(W.svg,{...a,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Oi.displayName=rb;var ab=Oi,Zo="Popper",[Di,ki]=he(Zo),[sb,Li]=Di(Zo),ji=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m.useState(null);return v.jsx(sb,{scope:t,anchor:o,onAnchorChange:r,children:n})};ji.displayName=Zo;var Fi="PopperAnchor",Bi=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,a=Li(Fi,n),s=m.useRef(null),c=ee(t,s);return m.useEffect(()=>{a.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:v.jsx(W.div,{...r,ref:c})});Bi.displayName=Fi;var Qo="PopperContent",[cb,ib]=Di(Qo),Vi=m.forwardRef((e,t)=>{var L,G,U,K,Y,X;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...p}=e,x=Li(Qo,n),[$,w]=m.useState(null),y=ee(t,ne=>w(ne)),[C,E]=m.useState(null),_=$o(C),S=(_==null?void 0:_.width)??0,P=(_==null?void 0:_.height)??0,I=o+(a!=="center"?"-"+a:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],k=D.length>0,V={padding:N,boundary:D.filter(ub),altBoundary:k},{refs:F,floatingStyles:O,placement:B,isPositioned:j,middlewareData:H}=Vs({strategy:"fixed",placement:I,whileElementsMounted:(...ne)=>Fs(...ne,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[zs({mainAxis:r+P,alignmentAxis:s}),l&&Ws({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Hs():void 0,...V}),l&&Gs({...V}),Us({...V,apply:({elements:ne,rects:oe,availableWidth:ge,availableHeight:Oe})=>{const{width:Xe,height:An}=oe.reference,ot=ne.floating.style;ot.setProperty("--radix-popper-available-width",`${ge}px`),ot.setProperty("--radix-popper-available-height",`${Oe}px`),ot.setProperty("--radix-popper-anchor-width",`${Xe}px`),ot.setProperty("--radix-popper-anchor-height",`${An}px`)}}),C&&Ys({element:C,padding:c}),db({arrowWidth:S,arrowHeight:P}),h&&Ks({strategy:"referenceHidden",...V})]}),[M,Z]=Hi(B),Q=Re(b);je(()=>{j&&(Q==null||Q())},[j,Q]);const se=(L=H.arrow)==null?void 0:L.x,le=(G=H.arrow)==null?void 0:G.y,ue=((U=H.arrow)==null?void 0:U.centerOffset)!==0,[de,te]=m.useState();return je(()=>{$&&te(window.getComputedStyle($).zIndex)},[$]),v.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:j?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(K=H.transformOrigin)==null?void 0:K.x,(Y=H.transformOrigin)==null?void 0:Y.y].join(" "),...((X=H.hide)==null?void 0:X.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(cb,{scope:n,placedSide:M,onArrowChange:E,arrowX:se,arrowY:le,shouldHideArrow:ue,children:v.jsx(W.div,{"data-side":M,"data-align":Z,...p,ref:y,style:{...p.style,animation:j?void 0:"none"}})})})});Vi.displayName=Qo;var zi="PopperArrow",lb={top:"bottom",right:"left",bottom:"top",left:"right"},Wi=m.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,a=ib(zi,o),s=lb[a.placedSide];return v.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:v.jsx(ab,{...r,ref:n,style:{...r.style,display:"block"}})})});Wi.displayName=zi;function ub(e){return e!==null}var db=e=>({name:"transformOrigin",options:e,fn(t){var x,$,w;const{placement:n,rects:o,middlewareData:r}=t,s=((x=r.arrow)==null?void 0:x.centerOffset)!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=Hi(n),f={start:"0%",center:"50%",end:"100%"}[d],h=((($=r.arrow)==null?void 0:$.x)??0)+c/2,g=(((w=r.arrow)==null?void 0:w.y)??0)+l/2;let b="",p="";return u==="bottom"?(b=s?f:`${h}px`,p=`${-l}px`):u==="top"?(b=s?f:`${h}px`,p=`${o.floating.height+l}px`):u==="right"?(b=`${-l}px`,p=s?f:`${g}px`):u==="left"&&(b=`${o.floating.width+l}px`,p=s?f:`${g}px`),{data:{x:b,y:p}}}});function Hi(e){const[t,n="center"]=e.split("-");return[t,n]}var fb=ji,Gi=Bi,pb=Vi,mb=Wi,vb="Portal",Jo=m.forwardRef((e,t)=>{var c;const{container:n,...o}=e,[r,a]=m.useState(!1);je(()=>a(!0),[]);const s=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?et.createPortal(v.jsx(W.div,{...o,ref:t}),s):null});Jo.displayName=vb;var Ui=sc(),Un=function(){},Rn=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:Un,onWheelCapture:Un,onTouchMoveCapture:Un}),r=o[0],a=o[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,p=e.allowPinchZoom,x=e.as,$=x===void 0?"div":x,w=e.gapMode,y=Bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,E=ac([n,t]),_=re(re({},y),r);return m.createElement(m.Fragment,null,d&&m.createElement(C,{sideCar:Ui,removeScrollBar:u,shards:f,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:w}),s?m.cloneElement(m.Children.only(c),re(re({},_),{ref:E})):m.createElement($,re({},_,{className:l,ref:E}),c))});Rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rn.classNames={fullWidth:Rt,zeroRight:St};var co=!1;if(typeof window<"u")try{var Zt=Object.defineProperty({},"passive",{get:function(){return co=!0,!0}});window.addEventListener("test",Zt,Zt),window.removeEventListener("test",Zt,Zt)}catch{co=!1}var ct=co?{passive:!1}:!1,hb=function(e){return e.tagName==="TEXTAREA"},Ki=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hb(e)&&n[t]==="visible")},gb=function(e){return Ki(e,"overflowY")},bb=function(e){return Ki(e,"overflowX")},ca=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Yi(e,o);if(r){var a=Xi(e,o),s=a[1],c=a[2];if(s>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},xb=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},$b=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Yi=function(e,t){return e==="v"?gb(t):bb(t)},Xi=function(e,t){return e==="v"?xb(t):$b(t)},wb=function(e,t){return e==="h"&&t==="rtl"?-1:1},yb=function(e,t,n,o,r){var a=wb(e,window.getComputedStyle(t).direction),s=a*o,c=n.target,l=t.contains(c),u=!1,d=s>0,f=0,h=0;do{var g=Xi(e,c),b=g[0],p=g[1],x=g[2],$=p-x-a*b;(b||$)&&Yi(e,c)&&(f+=$,h+=b),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&(Math.abs(f)<1||!r)||!d&&(Math.abs(h)<1||!r))&&(u=!0),u},Qt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ia=function(e){return[e.deltaX,e.deltaY]},la=function(e){return e&&"current"in e?e.current:e},Cb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Eb=function(e){return`
|
|
52
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
53
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
54
|
-
`)},Sb=0,it=[];function Rb(e){var t=m.useRef([]),n=m.useRef([0,0]),o=m.useRef(),r=m.useState(Sb++)[0],a=m.useState(Vo)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=rc([e.lockRef.current],(e.shards||[]).map(la),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(p,x){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var $=Qt(p),w=n.current,y="deltaX"in p?p.deltaX:w[0]-$[0],C="deltaY"in p?p.deltaY:w[1]-$[1],E,_=p.target,S=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in p&&S==="h"&&_.type==="range")return!1;var P=ca(S,_);if(!P)return!0;if(P?E=S:(E=S==="v"?"h":"v",P=ca(S,_)),!P)return!1;if(!o.current&&"changedTouches"in p&&(y||C)&&(o.current=E),!E)return!0;var I=o.current||E;return yb(I,x,p,I==="h"?y:C,!0)},[]),l=m.useCallback(function(p){var x=p;if(!(!it.length||it[it.length-1]!==a)){var $="deltaY"in x?ia(x):Qt(x),w=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&Cb(E.delta,$)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var y=(s.current.shards||[]).map(la).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=y.length>0?c(x,y[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(p,x,$,w){var y={name:p,delta:x,target:$,should:w,shadowParent:Pb($)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),d=m.useCallback(function(p){n.current=Qt(p),o.current=void 0},[]),f=m.useCallback(function(p){u(p.type,ia(p),p.target,c(p,e.lockRef.current))},[]),h=m.useCallback(function(p){u(p.type,Qt(p),p.target,c(p,e.lockRef.current))},[]);m.useEffect(function(){return it.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ct),document.addEventListener("touchmove",l,ct),document.addEventListener("touchstart",d,ct),function(){it=it.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,ct),document.removeEventListener("touchmove",l,ct),document.removeEventListener("touchstart",d,ct)}},[]);var g=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(a,{styles:Eb(r)}):null,g?m.createElement(uc,{gapMode:e.gapMode}):null)}function Pb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _b=ic(Ui,Rb);var er=m.forwardRef(function(e,t){return m.createElement(Rn,re({},e,{ref:t,sideCar:_b}))});er.classNames=Rn.classNames;var tr="Popover",[qi,ew]=he(tr,[ki]),Lt=ki(),[Tb,Ye]=qi(tr),Zi=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:a,modal:s=!1}=e,c=Lt(t),l=m.useRef(null),[u,d]=m.useState(!1),[f=!1,h]=Ee({prop:o,defaultProp:r,onChange:a});return v.jsx(fb,{...c,children:v.jsx(Tb,{scope:t,contentId:Ze(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:u,onCustomAnchorAdd:m.useCallback(()=>d(!0),[]),onCustomAnchorRemove:m.useCallback(()=>d(!1),[]),modal:s,children:n})})};Zi.displayName=tr;var Qi="PopoverAnchor",Ji=m.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Ye(Qi,n),a=Lt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=r;return m.useEffect(()=>(s(),()=>c()),[s,c]),v.jsx(Gi,{...a,...o,ref:t})});Ji.displayName=Qi;var el="PopoverTrigger",tl=m.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Ye(el,n),a=Lt(n),s=ee(t,r.triggerRef),c=v.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":cl(r.open),...o,ref:s,onClick:z(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:v.jsx(Gi,{asChild:!0,...a,children:c})});tl.displayName=el;var nr="PopoverPortal",[Nb,Mb]=qi(nr,{forceMount:void 0}),nl=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,a=Ye(nr,t);return v.jsx(Nb,{scope:t,forceMount:n,children:v.jsx(Ne,{present:n||a.open,children:v.jsx(Jo,{asChild:!0,container:r,children:o})})})};nl.displayName=nr;var vt="PopoverContent",ol=m.forwardRef((e,t)=>{const n=Mb(vt,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,a=Ye(vt,e.__scopePopover);return v.jsx(Ne,{present:o||a.open,children:a.modal?v.jsx(Ab,{...r,ref:t}):v.jsx(Ib,{...r,ref:t})})});ol.displayName=vt;var Ab=m.forwardRef((e,t)=>{const n=Ye(vt,e.__scopePopover),o=m.useRef(null),r=ee(t,o),a=m.useRef(!1);return m.useEffect(()=>{const s=o.current;if(s)return bn(s)},[]),v.jsx(er,{as:Le,allowPinchZoom:!0,children:v.jsx(rl,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),a.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ib=m.forwardRef((e,t)=>{const n=Ye(vt,e.__scopePopover),o=m.useRef(!1),r=m.useRef(!1);return v.jsx(rl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(o.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(o.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),rl=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=e,h=Ye(vt,n),g=Lt(n);return Ai(),v.jsx(qo,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:v.jsx(Xo,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:v.jsx(pb,{"data-state":cl(h.open),role:"dialog",id:h.contentId,...g,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),al="PopoverClose",sl=m.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Ye(al,n);return v.jsx(W.button,{type:"button",...o,ref:t,onClick:z(e.onClick,()=>r.onOpenChange(!1))})});sl.displayName=al;var Ob="PopoverArrow",Db=m.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Lt(n);return v.jsx(mb,{...r,...o,ref:t})});Db.displayName=Ob;function cl(e){return e?"open":"closed"}var kb=Zi,Lb=Ji,jb=tl,Fb=nl,Bb=ol,Vb=sl;const[Pn,zb]=Me("Tooltip",[yt]),_n=yt(),Wb="TooltipProvider",Hb=700,io="tooltip.open",[Gb,or]=Pn(Wb),il=e=>{const{__scopeTooltip:t,delayDuration:n=Hb,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),i.createElement(Gb,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c(!0),o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(d=>{l.current=d},[]),disableHoverableContent:r},a)},rr="Tooltip",[Ub,jt]=Pn(rr),ll=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=or(rr,e.__scopeTooltip),u=_n(t),[d,f]=i.useState(null),h=Pe(),g=i.useRef(0),b=s??l.disableHoverableContent,p=c??l.delayDuration,x=i.useRef(!1),[$=!1,w]=Ve({prop:o,defaultProp:r,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(io))):l.onClose(),a==null||a(S)}}),y=i.useMemo(()=>$?x.current?"delayed-open":"instant-open":"closed",[$]),C=i.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(g.current),w(!1)},[w]),_=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,w(!0)},p)},[p,w]);return i.useEffect(()=>()=>window.clearTimeout(g.current),[]),i.createElement(gn,u,i.createElement(Ub,{scope:t,contentId:h,open:$,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?_():C()},[l.isOpenDelayed,_,C]),onTriggerLeave:i.useCallback(()=>{b?E():window.clearTimeout(g.current)},[E,b]),onOpen:C,onClose:E,disableHoverableContent:b},n))},ua="TooltipTrigger",ul=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=jt(ua,n),a=or(ua,n),s=_n(n),c=i.useRef(null),l=J(t,c,r.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),i.createElement(ko,R({asChild:!0},s),i.createElement(q.button,R({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},o,{ref:l,onPointerMove:A(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:A(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:A(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:A(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:A(e.onBlur,r.onClose),onClick:A(e.onClick,r.onClose)})))}),dl="TooltipPortal",[Kb,Yb]=Pn(dl,{forceMount:void 0}),fl=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,a=jt(dl,t);return i.createElement(Kb,{scope:t,forceMount:n},i.createElement(tt,{present:n||a.open},i.createElement(Fo,{asChild:!0,container:r},o)))},At="TooltipContent",pl=i.forwardRef((e,t)=>{const n=Yb(At,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...a}=e,s=jt(At,e.__scopeTooltip);return i.createElement(tt,{present:o||s.open},s.disableHoverableContent?i.createElement(ml,R({side:r},a,{ref:t})):i.createElement(Xb,R({side:r},a,{ref:t})))}),Xb=i.forwardRef((e,t)=>{const n=jt(At,e.__scopeTooltip),o=or(At,e.__scopeTooltip),r=i.useRef(null),a=J(t,r),[s,c]=i.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=o,h=i.useCallback(()=>{c(null),f(!1)},[f]),g=i.useCallback((b,p)=>{const x=b.currentTarget,$={x:b.clientX,y:b.clientY},w=Jb($,x.getBoundingClientRect()),y=e0($,w),C=t0(p.getBoundingClientRect()),E=o0([...y,...C]);c(E),f(!0)},[f]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(l&&d){const b=x=>g(x,d),p=x=>g(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",p)}}},[l,d,g,h]),i.useEffect(()=>{if(s){const b=p=>{const x=p.target,$={x:p.clientX,y:p.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!n0($,s);w?h():y&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,s,u,h]),i.createElement(ml,R({},e,{ref:a}))}),[qb,Zb]=Pn(rr,{isInside:!1}),ml=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=jt(At,n),u=_n(n),{onClose:d}=l;return i.useEffect(()=>(document.addEventListener(io,d),()=>document.removeEventListener(io,d)),[d]),i.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),i.createElement(_o,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},i.createElement(Lo,R({"data-state":l.stateAttribute},u,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),i.createElement(Ss,null,o),i.createElement(qb,{scope:n,isInside:!0},i.createElement(zp,{id:l.contentId,role:"tooltip"},r||o))))}),Qb="TooltipArrow",vl=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=_n(n);return Zb(Qb,n).isInside?null:i.createElement(jo,R({},r,o,{ref:t}))});function Jb(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,o,r,a)){case a:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function e0(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function t0(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function n0(e,t){const{x:n,y:o}=e;let r=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,u=t[s].x,d=t[s].y;l>o!=d>o&&n<(u-c)*(o-l)/(d-l)+c&&(r=!r)}return r}function o0(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),r0(t)}function r0(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(r.y-s.y)>=(a.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(r.y-s.y)>=(a.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const a0=il,hl=ll,gl=ul,bl=fl,xl=pl,$l=vl,s0=Object.freeze(Object.defineProperty({__proto__:null,Arrow:$l,Content:xl,Portal:bl,Provider:a0,Root:hl,Tooltip:ll,TooltipArrow:vl,TooltipContent:pl,TooltipPortal:fl,TooltipProvider:il,TooltipTrigger:ul,Trigger:gl,createTooltipScope:zb},Symbol.toStringTag,{value:"Module"})),{TooltipProvider:c0}=s0,i0=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(xl,{ref:t,className:T(n,"fp-tooltip"),...o})}),l0=e=>{const{className:t,...n}=e;return v.jsx($l,{className:T(t,"fp-tooltip-arrow"),...n})},ar=i.forwardRef((e,t)=>{const{defaultOpen:n,open:o,onOpenChange:r,delayDuration:a,disableHoverableContent:s,container:c,forceMount:l,children:u,content:d,...f}=e,h={open:o,defaultOpen:n,onOpenChange:r,delayDuration:a,disableHoverableContent:s};return v.jsxs(hl,{...h,children:[v.jsx(gl,{asChild:!0,children:u}),v.jsx(bl,{forceMount:l,container:c,children:v.jsxs(i0,{ref:t,...f,children:[d,v.jsx(l0,{})]})})]})});ar.displayName="Tooltip";const u0=ze("fp-IconButton",{variants:{size:{small:"fp-size-small",medium:"fp-size-medium"},activeAppearance:{subtle:"fp-active-appearance-subtle",solid:"fp-active-appearance-solid"}},defaultVariants:{size:"small",activeAppearance:"subtle"}}),Tn=i.forwardRef((e,t)=>{const{className:n,size:o,activeAppearance:r,"aria-label":a,tooltipContent:s,disableTooltip:c,...l}=e,u=v.jsx("button",{ref:t,className:u0({className:n,size:o,activeAppearance:r}),"aria-label":a,...l});return c?u:v.jsx(ar,{content:s??a,children:u})});Tn.displayName="IconButton";const sr=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsx("header",{ref:t,className:T(o,"fp-DialogBaseHeader"),...r,children:n})}),cr=i.forwardRef((e,t)=>{const{className:n,size:o,...r}=e;return v.jsx("div",{ref:t,className:d0({className:n,size:o}),...r})}),ir=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx("div",{ref:t,className:T(n,"fp-DialogBaseControls"),...o})}),d0=ze("fp-DialogBaseSection",{variants:{size:{base:"fp-DialogBaseSection-base",small:"fp-DialogBaseSection-small"}},defaultVariants:{size:"base"}});sr.displayName="Dialog.Header";cr.displayName="Dialog.Section";ir.displayName="Dialog.Controls";const f0=kb,p0=Lb,m0=Fb,wl=i.forwardRef((e,t)=>v.jsx(jb,{ref:t,...e,asChild:!0})),yl=i.forwardRef((e,t)=>{const{className:n,style:o,width:r,height:a,maxWidth:s,maxHeight:c,...l}=e;return v.jsx(Bb,{ref:t,className:T(n,"fp-DialogBaseContent"),style:{...o,width:r,height:a,maxWidth:s,maxHeight:c},...l})}),Cl=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(We,{ref:t,className:T(n,"fp-DialogBaseTitle"),weight:"strong",...o})}),El=i.forwardRef((e,t)=>{const{children:n,...o}=e;return v.jsx(Vb,{ref:t,asChild:!0,...o,children:n||v.jsx(Tn,{"aria-label":"Close",disableTooltip:!0,children:v.jsx(gs,{})})})});wl.displayName="Popover.Trigger";yl.displayName="Popover.Content";Cl.displayName="Popover.Title";El.displayName="Popover.Close";const v0=Object.freeze(Object.defineProperty({__proto__:null,Anchor:p0,Close:El,Content:yl,Controls:ir,Header:sr,Portal:m0,Root:f0,Section:cr,Title:Cl,Trigger:wl},Symbol.toStringTag,{value:"Module"}));var lr="Dialog",[Sl,Rl]=he(lr),[h0,$e]=Sl(lr),Pl=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:a,modal:s=!0}=e,c=m.useRef(null),l=m.useRef(null),[u=!1,d]=Ee({prop:o,defaultProp:r,onChange:a});return v.jsx(h0,{scope:t,triggerRef:c,contentRef:l,contentId:Ze(),titleId:Ze(),descriptionId:Ze(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:s,children:n})};Pl.displayName=lr;var _l="DialogTrigger",Tl=m.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=$e(_l,n),a=ee(t,r.triggerRef);return v.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":fr(r.open),...o,ref:a,onClick:z(e.onClick,r.onOpenToggle)})});Tl.displayName=_l;var ur="DialogPortal",[g0,Nl]=Sl(ur,{forceMount:void 0}),Ml=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,a=$e(ur,t);return v.jsx(g0,{scope:t,forceMount:n,children:m.Children.map(o,s=>v.jsx(Ne,{present:n||a.open,children:v.jsx(Jo,{asChild:!0,container:r,children:s})}))})};Ml.displayName=ur;var cn="DialogOverlay",Al=m.forwardRef((e,t)=>{const n=Nl(cn,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=$e(cn,e.__scopeDialog);return a.modal?v.jsx(Ne,{present:o||a.open,children:v.jsx(b0,{...r,ref:t})}):null});Al.displayName=cn;var b0=m.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=$e(cn,n);return v.jsx(er,{as:Le,allowPinchZoom:!0,shards:[r.contentRef],children:v.jsx(W.div,{"data-state":fr(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Je="DialogContent",Il=m.forwardRef((e,t)=>{const n=Nl(Je,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=$e(Je,e.__scopeDialog);return v.jsx(Ne,{present:o||a.open,children:a.modal?v.jsx(x0,{...r,ref:t}):v.jsx($0,{...r,ref:t})})});Il.displayName=Je;var x0=m.forwardRef((e,t)=>{const n=$e(Je,e.__scopeDialog),o=m.useRef(null),r=ee(t,n.contentRef,o);return m.useEffect(()=>{const a=o.current;if(a)return bn(a)},[]),v.jsx(Ol,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:z(e.onFocusOutside,a=>a.preventDefault())})}),$0=m.forwardRef((e,t)=>{const n=$e(Je,e.__scopeDialog),o=m.useRef(!1),r=m.useRef(!1);return v.jsx(Ol,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(o.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(o.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),Ol=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,...s}=e,c=$e(Je,n),l=m.useRef(null),u=ee(t,l);return Ai(),v.jsxs(v.Fragment,{children:[v.jsx(qo,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:v.jsx(Xo,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":fr(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(y0,{titleId:c.titleId}),v.jsx(E0,{contentRef:l,descriptionId:c.descriptionId})]})]})}),dr="DialogTitle",Dl=m.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=$e(dr,n);return v.jsx(W.h2,{id:r.titleId,...o,ref:t})});Dl.displayName=dr;var kl="DialogDescription",Ll=m.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=$e(kl,n);return v.jsx(W.p,{id:r.descriptionId,...o,ref:t})});Ll.displayName=kl;var jl="DialogClose",Fl=m.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=$e(jl,n);return v.jsx(W.button,{type:"button",...o,ref:t,onClick:z(e.onClick,()=>r.onOpenChange(!1))})});Fl.displayName=jl;function fr(e){return e?"open":"closed"}var Bl="DialogTitleWarning",[w0,Vl]=od(Bl,{contentName:Je,titleName:dr,docsSlug:"dialog"}),y0=({titleId:e})=>{const t=Vl(Bl),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
55
|
-
|
|
56
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
57
|
-
|
|
58
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},C0="DialogDescriptionWarning",E0=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vl(C0).contentName}}.`;return m.useEffect(()=>{var a;const r=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},zl=Pl,Wl=Tl,Hl=Ml,Gl=Al,Ul=Il,Kl=Dl,S0=Ll,pr=Fl;const R0=zl,P0=Hl,Yl=i.forwardRef((e,t)=>v.jsx(Wl,{ref:t,...e,asChild:!0})),_0=ze(["fp-DialogBaseContent","fp-DialogContent"],{variants:{size:{1:"fp-size-1",2:"fp-size-2",3:"fp-size-3",fullscreen:"fp-size-fullscreen"},placement:{center:"fp-placement-center",top:"fp-placement-top"}},defaultVariants:{size:"2",placement:"top"}}),Xl=i.forwardRef((e,t)=>{const{children:n,className:o,size:r,placement:a,style:s,width:c,height:l,maxWidth:u,maxHeight:d,...f}=e;return v.jsx(Ul,{ref:t,className:_0({className:o,size:r,placement:a}),"aria-describedby":void 0,style:{...s,width:c,height:l,maxWidth:u,maxHeight:d},...f,children:n})}),ql=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Gl,{ref:t,className:T(n,"fp-DialogBaseOverlay"),...o})}),Zl=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsx(Kl,{ref:t,className:T(o,"fp-DialogBaseTitle"),...r,asChild:!0,children:v.jsx(We,{weight:"strong",children:n})})}),Ql=i.forwardRef((e,t)=>{const{children:n,...o}=e;return v.jsx(pr,{ref:t,asChild:!0,...o,children:n||v.jsx(Tn,{"aria-label":"Close",disableTooltip:!0,children:v.jsx(gs,{})})})});Yl.displayName="Dialog.Trigger";Xl.displayName="Dialog.Content";ql.displayName="Dialog.Overlay";Zl.displayName="Dialog.Title";Ql.displayName="Dialog.Close";const T0=Object.freeze(Object.defineProperty({__proto__:null,Close:Ql,Content:Xl,Controls:ir,Header:sr,Overlay:ql,Portal:P0,Root:R0,Section:cr,Title:Zl,Trigger:Yl},Symbol.toStringTag,{value:"Module"}));var Jl="AlertDialog",[N0,tw]=he(Jl,[Rl]),Ie=Rl(),eu=e=>{const{__scopeAlertDialog:t,...n}=e,o=Ie(t);return v.jsx(zl,{...o,...n,modal:!0})};eu.displayName=Jl;var M0="AlertDialogTrigger",tu=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ie(n);return v.jsx(Wl,{...r,...o,ref:t})});tu.displayName=M0;var A0="AlertDialogPortal",nu=e=>{const{__scopeAlertDialog:t,...n}=e,o=Ie(t);return v.jsx(Hl,{...o,...n})};nu.displayName=A0;var I0="AlertDialogOverlay",ou=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ie(n);return v.jsx(Gl,{...r,...o,ref:t})});ou.displayName=I0;var dt="AlertDialogContent",[O0,D0]=N0(dt),ru=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:o,...r}=e,a=Ie(n),s=m.useRef(null),c=ee(t,s),l=m.useRef(null);return v.jsx(w0,{contentName:dt,titleName:au,docsSlug:"alert-dialog",children:v.jsx(O0,{scope:n,cancelRef:l,children:v.jsxs(Ul,{role:"alertdialog",...a,...r,ref:c,onOpenAutoFocus:z(r.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[v.jsx(wa,{children:o}),v.jsx(L0,{contentRef:s})]})})})});ru.displayName=dt;var au="AlertDialogTitle",su=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ie(n);return v.jsx(Kl,{...r,...o,ref:t})});su.displayName=au;var cu="AlertDialogDescription",iu=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ie(n);return v.jsx(S0,{...r,...o,ref:t})});iu.displayName=cu;var k0="AlertDialogAction",lu=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ie(n);return v.jsx(pr,{...r,...o,ref:t})});lu.displayName=k0;var uu="AlertDialogCancel",du=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=D0(uu,n),a=Ie(n),s=ee(t,r);return v.jsx(pr,{...a,...o,ref:s})});du.displayName=uu;var L0=({contentRef:e})=>{const t=`\`${dt}\` requires a description for the component to be accessible for screen reader users.
|
|
59
|
-
|
|
60
|
-
You can add a description to the \`${dt}\` by passing a \`${cu}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
61
|
-
|
|
62
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${dt}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
63
|
-
|
|
64
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return m.useEffect(()=>{var o;document.getElementById((o=e.current)==null?void 0:o.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},j0=eu,F0=tu,B0=nu,V0=ou,z0=ru,W0=lu,H0=du,G0=su,U0=iu;const K0=j0,Y0=B0,fu=i.forwardRef((e,t)=>v.jsx(F0,{ref:t,...e,asChild:!0})),X0=ze(["fp-DialogBaseContent","fp-AlertDialogContent"],{variants:{size:{1:"fp-size-1",2:"fp-size-2",3:"fp-size-3"},placement:{center:"fp-placement-center",top:"fp-placement-top"}},defaultVariants:{size:"2",placement:"top"}}),pu=i.forwardRef((e,t)=>{const{className:n,size:o,placement:r,style:a,width:s,height:c,maxWidth:l,maxHeight:u,...d}=e;return v.jsx(z0,{ref:t,className:X0({className:n,size:o,placement:r}),style:{...a,width:s,height:c,maxWidth:l,maxHeight:u},...d})}),mu=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(V0,{ref:t,className:T(n,"fp-DialogBaseOverlay"),...o})}),vu=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsx(G0,{ref:t,className:T(o,"fp-AlertDialogTitle"),...r,asChild:!0,children:v.jsx(We,{weight:"strong",children:n})})}),hu=i.forwardRef((e,t)=>{const{children:n,className:o,...r}=e;return v.jsx(U0,{ref:t,className:T(o,"fp-AlertDialogDescription"),...r,asChild:!0,children:v.jsx(We,{children:n})})}),gu=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx("div",{ref:t,className:T(n,"fp-AlertDialogActions"),...o})}),bu=i.forwardRef((e,t)=>v.jsx(H0,{ref:t,asChild:!0,...e})),xu=i.forwardRef((e,t)=>v.jsx(W0,{ref:t,asChild:!0,...e}));fu.displayName="AlertDialog.Trigger";pu.displayName="AlertDialog.Content";mu.displayName="AlertDialog.Overlay";vu.displayName="AlertDialog.Title";hu.displayName="AlertDialog.Description";gu.displayName="AlertDialog.Actions";bu.displayName="AlertDialog.Cancel";xu.displayName="AlertDialog.Action";const q0=Object.freeze(Object.defineProperty({__proto__:null,Action:xu,Actions:gu,Cancel:bu,Content:pu,Description:hu,Overlay:mu,Portal:Y0,Root:K0,Title:vu,Trigger:fu},Symbol.toStringTag,{value:"Module"})),[$u,mr]=Co("ValueFieldProvider",null),wu=i.forwardRef((e,t)=>{const{className:n,disabled:o,...r}=e,a=mr("Root");return v.jsx($u,{disabled:o,children:v.jsx("label",{ref:t,className:T(n,"fp-ValueFieldRoot"),"data-disabled":o||a!=null&&a.disabled?"":void 0,...r})})}),yu=i.forwardRef((e,t)=>{const{className:n,disabled:o,...r}=e;return v.jsx($u,{disabled:o,children:v.jsx("div",{ref:t,className:T(n,"fp-ValueFieldMulti"),"data-disabled":o?"":void 0,...r})})}),Cu=i.forwardRef((e,t)=>{const{className:n,...o}=e,r=mr("Root");return v.jsx("span",{ref:t,className:T(n,"fp-ValueFieldLabel"),"data-disabled":r!=null&&r.disabled?"":void 0,...o})});wu.displayName="ValueField.Root";Cu.displayName="ValueField.Label";yu.displayName="ValueField.Multi";function Z0(e,t,n){let o=r=>e(r,...t);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:t})}function vr(e,t,n){let o=e.length-t.length;if(o===0)return e(...t);if(o===1)return Z0(e,t,n);throw new Error("Wrong number of arguments")}var Q0={done:!1,hasNext:!1};function lo(e,...t){let n=e,o=t.map(a=>"lazy"in a?J0(a):void 0),r=0;for(;r<t.length;){if(o[r]===void 0||!ex(n)){let l=t[r];n=l(n),r+=1;continue}let a=[];for(let l=r;l<t.length;l++){let u=o[l];if(u===void 0||(a.push(u),u.isSingle))break}let s=[];for(let l of n)if(Eu(l,s,a))break;let{isSingle:c}=a.at(-1);n=c?s[0]:s,r+=a.length}return n}function Eu(e,t,n){if(n.length===0)return t.push(e),!1;let o=e,r=Q0,a=!1;for(let[s,c]of n.entries()){let{index:l,items:u}=c;if(u.push(o),r=c(o,l,u),c.index+=1,r.hasNext){if(r.hasMany??!1){for(let d of r.next)if(Eu(d,t,n.slice(s+1)))return!0;return!1}o=r.next}if(!r.hasNext)break;r.done&&(a=!0)}return r.hasNext&&t.push(o),!!a}function J0(e){let{lazy:t,lazyArgs:n}=e,o=t(...n);return Object.assign(o,{isSingle:t.single??!1,index:0,items:[]})}function ex(e){return typeof e=="string"||typeof e=="object"&&e!==null&&Symbol.iterator in e}function tx(e){return(t,n)=>{if(n===0)return e(t);if(!Number.isInteger(n))throw new TypeError(`precision must be an integer: ${n}`);if(n>15||n<-15)throw new RangeError("precision must be between -15 and 15");if(Number.isNaN(t)||!Number.isFinite(t))return e(t);let o=10**n;return e(t*o)/o}}function da(...e){return vr(tx(Math.round),e)}function fa(...e){return vr(Ft,e)}function Ft(e,t){if(e===t||Object.is(e,t))return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Array.isArray(e))return nx(e,t);if(e instanceof Map)return ox(e,t);if(e instanceof Set)return rx(e,t);if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in t)||!Ft(o,t[n]))return!1;return!0}function nx(e,t){if(e.length!==t.length)return!1;for(let[n,o]of e.entries())if(!Ft(o,t[n]))return!1;return!0}function ox(e,t){if(e.size!==t.size)return!1;for(let[n,o]of e.entries())if(!t.has(n)||!Ft(o,t.get(n)))return!1;return!0}function rx(e,t){if(e.size!==t.size)return!1;let n=[...t];for(let o of e){let r=!1;for(let[a,s]of n.entries())if(Ft(o,s)){r=!0,n.splice(a,1);break}if(!r)return!1}return!0}function Pt(...e){return vr(ax,e)}var ax=(e,{min:t,max:n})=>t!==void 0&&e<t?t:n!==void 0&&e>n?n:e;function Kn(e){return e>47&&e<58}function sx(e){return e===32||e===9||e===160}class hr{constructor(t,n,o){o==null&&typeof t=="string"&&(o=t.length),this.string=t,this.pos=this.start=n||0,this.end=o||0}eof(){return this.pos>=this.end}limit(t,n){return new hr(this.string,t,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){const n=this.peek(),o=typeof t=="function"?t(n):n===t;return o&&this.next(),o}eatWhile(t){const n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.string.slice(t,n)}error(t,n=this.pos){return new cx(`${t} at ${n+1}`,n,this.string)}}class cx extends Error{constructor(t,n,o){super(t),this.pos=n,this.string=o}}const ix=Nn("null",0);function lx(e){const t=typeof e=="string"?new hr(e):e;let n,o=0,r=21;const a=[];for(;!t.eof();)t.eatWhile(sx),t.start=t.pos,ux(t)?(r&1||qe("Unexpected number",t),a.push(fx(t.current())),r=10):gx(t.peek())?(n=t.next(),vx(n)&&r&16?(Su(n)&&a.push(px(n,o)),r=21):(r&2||qe("Unexpected operator",t),a.push(mx(n,o)),r=21)):t.eat(40)?(r&4||qe('Unexpected "("',t),o+=10,r=53):t.eat(41)?(o-=10,r&32?a.push(ix):r&8||qe('Unexpected ")"',t),r=14):qe("Unknown character",t);(o<0||o>=10)&&qe('Unmatched "()"',t);const s=dx(a);return s===null&&qe("Parity",t),s}function ux(e){const t=e.pos;return e.eat(46)&&e.eatWhile(Kn)||e.eatWhile(Kn)&&(!e.eat(46)||e.eatWhile(Kn))?!0:(e.pos=t,!1)}function dx(e){const t=[],n=[];let o=0;for(let r=0;r<e.length;r++){const a=e[r];if(a.type==="num")n.push(a);else{for(o+=a.type==="op1"?1:2;t.length&&a.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(a)}}return o+1===n.length+t.length?n.concat(t.reverse()):null}function fx(e,t){return Nn("num",parseFloat(e),t)}function px(e,t=0){return e===45&&(t+=2),Nn("op1",e,t)}function mx(e,t=0){return e===42?t+=1:(e===47||e===92)&&(t+=2),Nn("op2",e,t)}function qe(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function vx(e){return hx(e)||Su(e)}function hx(e){return e===43}function Su(e){return e===45}function gx(e){return e===43||e===45||e===42||e===47||e===92}function Nn(e,t,n=0){return{type:e,value:t,priority:n}}const bx={45:e=>-e},xx={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)};function $x(e){if(Array.isArray(e)||(e=lx(e)),!e||!e.length)return null;const t=[];let n,o,r;for(let a=0,s=e.length;a<s;a++){const c=e[a];if(c.type==="num")t.push(c.value);else if(c.type==="op2")o=t.pop(),n=t.pop(),r=xx[c.value],t.push(r(n,o));else if(c.type==="op1")n=t.pop(),r=bx[c.value],t.push(r(n));else throw new Error("Invalid expression")}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}function ht(e,t){const[n,o]=e,[r,a]=t;return function(s){return n===o||r===a?r:(s-n)/(o-n)*(a-r)+r}}var pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ln=pa&&pa.__assign||function(){return ln=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ln.apply(this,arguments)};function yx(e,t,n){if(t==="className")e.className=[e.className,n].join(" ").trim();else if(t==="style")e.style=ln(ln({},e.style),n);else if(typeof n=="function"){var o=e[t];e[t]=o?function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];o.apply(void 0,r),n.apply(void 0,r)}:n}else{if(n===void 0||typeof n!="object"&&n===e[t])return;if(!(t in e))e[t]=n;else throw new Error("Didn’t know how to merge prop '".concat(t,"'. ")+"Only 'className', 'style', and event handlers are supported")}}var Cx=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1?t[0]:t.reduce(function(o,r){for(var a in r)yx(o,a,r[a]);return o},{})};const Ru=wx(Cx);function Ex(){const[e,t]=i.useState(!0),n=i.useCallback(()=>{t(!0)},[]),o=i.useCallback(()=>{t(!1)},[]),r=i.useCallback(a=>{e&&a.currentTarget.selectionStart===a.currentTarget.selectionEnd&&(a.currentTarget.select(),t(!1))},[e]);return{onMouseLeave:o,onMouseUp:r,onFocus:n}}const gr=i.forwardRef((e,t)=>{const{type:n="text",className:o,selectOnClick:r=!1,...a}=e,s=i.useRef(null),c=dn(s,t),{onMouseLeave:l,onMouseUp:u,onFocus:d}=Ex(),f=r?Ru({onMouseLeave:l,onMouseUp:u,onFocus:d},a):a;return v.jsx("input",{ref:c,type:n,className:T(o,"fp-Input"),...f})});gr.displayName="Input";const Sx=1,Rx=10,br=e=>{const{className:t,inputRef:n,value:o,onChange:r,smallNudge:a=Sx,bigNudge:s=Rx,formatter:c,disabled:l,...u}=e,d=i.useRef(null),f=dn(n,d),[h,g]=i.useState(null),b=h??c.format(o),p=mr("ValueField"),x=E=>{const _=c.parse(E,o);if(E.length===0||!_.valid||_.value===o)return $();g(null),r(_.value)},$=()=>{g(null)},w=E=>{g(E.currentTarget.value)},y=E=>{const _=E.currentTarget;if(E.key==="Enter"&&(E.preventDefault(),_.blur()),E.key==="Escape"&&(E.preventDefault(),$(),requestAnimationFrame(()=>{_.blur()})),E.key==="ArrowUp"||E.key==="ArrowDown"){if(!c.incrementBy)return;E.preventDefault();const S=c.parse(_.value,o),P=S.valid?S.value:o,I=E.shiftKey?s:a,N=E.key==="ArrowUp"?I:-I,D=c.getIncrementTargets?c.getIncrementTargets(_):null,k=c.incrementBy(P,N,D);x(c.format(k)),requestAnimationFrame(()=>{if(D&&c.getIncrementSelection){const[V,F]=c.getIncrementSelection(D);_.setSelectionRange(V,F)}else _.select()})}},C=E=>{x(E.currentTarget.value)};return v.jsx(gr,{ref:f,dir:"auto",autoComplete:"off",spellCheck:"false",selectOnClick:!0,className:T(t,"fp-ValueFieldBase"),value:b,onChange:w,disabled:l||(p==null?void 0:p.disabled),...Ru(u,{onBlur:C,onKeyDown:y})})};br.displayName="ValueField.Base";const Px=15,_x=i.forwardRef((e,t)=>{const{value:n,onChange:o,min:r,max:a,targetRange:s,precision:c,suffix:l,allowedUnits:u,...d}=e,f=i.useMemo(()=>Tx({min:r,max:a,precision:c,targetRange:s,suffix:l,allowedUnits:u}),[r,a,c,s,l,u]);return v.jsx(br,{inputRef:t,value:n,onChange:o,formatter:f,...d})});function Tx(e={}){const{min:t,max:n,targetRange:o,precision:r=Px,suffix:a,allowedUnits:s=[]}=e,{toDisplayValue:c,fromDisplayValue:l}=Nx({min:t,max:n,targetRange:o});return{parse:(u,d)=>{try{return{valid:!0,value:lo(u,f=>Ax({expression:f,displayValue:c(d),suffix:a,allowedUnits:s}),da(r),l,Pt({min:t,max:n}))}}catch{return{valid:!1}}},format:u=>lo(u,Pt({min:t,max:n}),c,da(r),d=>Mx(d,a)),incrementBy(u,d){return u+l(d)}}}function Nx(e){const{min:t,max:n,targetRange:o}=e;if(!o)return{toDisplayValue:r=>r,fromDisplayValue:r=>r};if(typeof t!="number"||typeof n!="number")throw Error("'targetRange' requires specifying 'min' and 'max'.");if(t===n)throw Error("'min' and 'max' cannot be equal.");return{toDisplayValue:ht([t,n],o),fromDisplayValue:ht(o,[t,n])}}function Mx(e,t){return Number.isNaN(e)?"":t?`${e}${t}`:`${e}`}function Ax(e){const{displayValue:t,expression:n,suffix:o="",allowedUnits:r=[]}=e,a="(\\d*\\.?\\d+)",s=`(?:${[...r,o].join("|")})*`,c=n.replace(new RegExp(`${a}${s}`,"gi"),(u,d)=>d).replace(new RegExp(`${s}${a}`,"gi"),(u,d)=>d).replace(new RegExp(`${a}%`,"gi"),(u,d)=>`(${t}*${d}/100)`).replace(new RegExp(`%${a}`,"gi"),(u,d)=>`(${t}*${d}/100)`).replace(new RegExp(`${a}x`,"gi"),(u,d)=>`(${t}*${d})`).replace(new RegExp(`x${a}`,"gi"),(u,d)=>`(${t}*${d})`).replace(new RegExp("(?<!\\d)x(?!\\d)","gi"),`${t}`).trim(),l=$x(c);if(l===null)throw new Error("Invalid expression.");return l}const Ix=i.forwardRef((e,t)=>{const{value:n,onChange:o,ignoreAlpha:r=!1,...a}=e,s=i.useMemo(()=>Ox({ignoreAlpha:r}),[r]);return v.jsx(br,{inputRef:t,value:n,onChange:o,formatter:s,...a})});function Ox(e){const{ignoreAlpha:t}=e;return{parse(n,o){try{return{value:lo(n,Dx,r=>kx(r,o),Lx,r=>t?{...r,a:1}:r),valid:!0}}catch{return{valid:!1}}},format(n){return(Math.round(n.r*255).toString(16).padStart(2,"0")+Math.round(n.g*255).toString(16).padStart(2,"0")+Math.round(n.b*255).toString(16).padStart(2,"0")).toUpperCase()},incrementBy(n,o,r){return r??(r={r:!0,g:!0,b:!0}),{r:r.r?Pt(Math.round(n.r*255)+o,{min:0,max:255})/255:n.r,g:r.g?Pt(Math.round(n.g*255)+o,{min:0,max:255})/255:n.g,b:r.b?Pt(Math.round(n.b*255)+o,{min:0,max:255})/255:n.b,a:n.a}},getIncrementTargets(n){const o=n.selectionStart,r=n.selectionEnd;return o===null||r===null?null:{r:o<2||o===2&&r===2,g:o<4&&r>=3||o===4&&r===4,b:r>=5}},getIncrementSelection(n){let o,r;return n?(n.r?o=0:n.g?o=2:o=4,n.b?r=6:n.g?r=4:r=2,[o,r]):[0,6]}}}function Dx(e){var n;const t=/[0-9a-f]+/gi;return((n=e.match(t))==null?void 0:n[0])??""}function kx(e,t){if(!/^[0-9a-f]{1,8}$/i.test(e))throw new Error("Invalid hex substring");switch(e.length){case 1:return e.repeat(6)+Jt(t.a);case 2:return e.repeat(3)+Jt(t.a);case 3:return e.split("").map(n=>n.repeat(2)).join("")+Jt(t.a);case 4:return e.slice(0,3).split("").map(n=>n.repeat(2)).join("")+e[3].repeat(2);case 5:return e.slice(0,3).split("").map(n=>n.repeat(2)).join("")+e.slice(-2);case 6:return e+Jt(t.a);case 7:return e.slice(0,6)+e[6].repeat(2);case 8:return e;default:throw new Error("Invalid hex substring")}}function Lx(e){return{r:parseInt(e.substring(0,2),16)/255,g:parseInt(e.substring(2,4),16)/255,b:parseInt(e.substring(4,6),16)/255,a:parseInt(e.substring(6,8),16)/255}}function Jt(e){return Math.round(e*255).toString(16)}const jx=Object.freeze(Object.defineProperty({__proto__:null,Hex:Ix,Label:Cu,Multi:yu,Numeric:_x,Root:wu},Symbol.toStringTag,{value:"Module"}));var xr="Collapsible",[Fx,nw]=he(xr),[Bx,$r]=Fx(xr),Pu=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:a,onOpenChange:s,...c}=e,[l=!1,u]=Ee({prop:o,defaultProp:r,onChange:s});return v.jsx(Bx,{scope:n,disabled:a,contentId:Ze(),open:l,onOpenToggle:m.useCallback(()=>u(d=>!d),[u]),children:v.jsx(W.div,{"data-state":yr(l),"data-disabled":a?"":void 0,...c,ref:t})})});Pu.displayName=xr;var _u="CollapsibleTrigger",Tu=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=$r(_u,n);return v.jsx(W.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":yr(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:z(e.onClick,r.onOpenToggle)})});Tu.displayName=_u;var wr="CollapsibleContent",Nu=m.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=$r(wr,e.__scopeCollapsible);return v.jsx(Ne,{present:n||r.open,children:({present:a})=>v.jsx(Vx,{...o,ref:t,present:a})})});Nu.displayName=wr;var Vx=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...a}=e,s=$r(wr,n),[c,l]=m.useState(o),u=m.useRef(null),d=ee(t,u),f=m.useRef(0),h=f.current,g=m.useRef(0),b=g.current,p=s.open||c,x=m.useRef(p),$=m.useRef();return m.useEffect(()=>{const w=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(w)},[]),je(()=>{const w=u.current;if(w){$.current=$.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const y=w.getBoundingClientRect();f.current=y.height,g.current=y.width,x.current||(w.style.transitionDuration=$.current.transitionDuration,w.style.animationName=$.current.animationName),l(o)}},[s.open,o]),v.jsx(W.div,{"data-state":yr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...a,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:p&&r})});function yr(e){return e?"open":"closed"}var zx=Pu,Wx=Tu,Hx=Nu;const Mu=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(zx,{ref:t,className:T(n,"fp-CollapsibleRoot"),...o})}),Au=i.forwardRef((e,t)=>{const{className:n,children:o,...r}=e;return v.jsxs(Wx,{ref:t,className:T(n,"fp-CollapsibleTrigger"),...r,children:[v.jsx(Eo,{viewBox:"4 4 16 16",size:"4",className:"fp-CollapsibleIndicator"}),o]})}),Iu=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(Hx,{ref:t,className:T(n,"fp-CollapsibleContent"),...o})});Mu.displayName="Collapsible.Root";Au.displayName="Collapsible.Trigger";Iu.displayName="Collapsible.Content";const Gx=Object.freeze(Object.defineProperty({__proto__:null,Content:Iu,Root:Mu,Trigger:Au},Symbol.toStringTag,{value:"Module"})),Yn={0:"fp-gap-0",px:"fp-gap-px","0_5":"fp-gap-0_5",1:"fp-gap-1","1_5":"fp-gap-1_5",2:"fp-gap-2","2_5":"fp-gap-2_5",3:"fp-gap-3","3_5":"fp-gap-3_5",4:"fp-gap-4",5:"fp-gap-5",6:"fp-gap-6",7:"fp-gap-7",8:"fp-gap-8",9:"fp-gap-9",10:"fp-gap-10",11:"fp-gap-11",12:"fp-gap-12",13:"fp-gap-13",14:"fp-gap-14",15:"fp-gap-15",16:"fp-gap-16"},Ux=ze("fp-Flex",{variants:{direction:{row:"fp-direction-row",column:"fp-direction-column",rowReverse:"fp-direction-row-reverse",columnReverse:"fp-direction-column-reverse"},align:{start:"fp-align-start",center:"fp-align-center",end:"fp-align-end",baseline:"fp-align-baseline",stretch:"fp-align-stretch"},justify:{start:"fp-justify-start",center:"fp-justify-center",end:"fp-justify-end",between:"fp-justify-between"},wrap:{nowrap:"fp-wrap-nowrap",wrap:"fp-wrap-wrap",wrapReverse:"fp-wrap-wrap-reverse"},gap:Yn,columnGap:Yn,rowGap:Yn},defaultVariants:{direction:"row"}}),Ou=i.forwardRef((e,t)=>{const{className:n,direction:o,align:r,justify:a,wrap:s,gap:c,columnGap:l,rowGap:u,...d}=e;return v.jsx("div",{ref:t,className:Ux({className:n,direction:o,align:r,justify:a,wrap:s,gap:c,columnGap:l,rowGap:u}),...d})});Ou.displayName="Flex";const Kx=ze("fp-Button",{variants:{variant:{primary:"fp-variant-primary",secondary:"fp-variant-secondary",inverse:"fp-variant-inverse",destructive:"fp-variant-destructive",success:"fp-variant-success",text:"fp-variant-text"},size:{small:"fp-size-small",medium:"fp-size-medium"},fullWidth:{true:"fp-full-width"}},defaultVariants:{variant:"secondary",size:"small"}}),Du=i.forwardRef((e,t)=>{const{className:n,variant:o,size:r,fullWidth:a,...s}=e;return v.jsx("button",{ref:t,className:Kx({className:n,variant:o,size:r,fullWidth:a}),...s})});Du.displayName="Button";function Yx(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}var Xx=i.useLayoutEffect,qx=function(t){var n=m.useRef(t);return Xx(function(){n.current=t}),n},ma=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},Zx=function(t,n){var o=i.useRef();return i.useCallback(function(r){t.current=r,o.current&&ma(o.current,null),o.current=n,n&&ma(n,r)},[n])},va={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Qx=function(t){Object.keys(va).forEach(function(n){t.style.setProperty(n,va[n],"important")})},ha=Qx,ce=null,ga=function(t,n){var o=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?o+n.borderSize:o-n.paddingSize};function Jx(e,t,n,o){n===void 0&&(n=1),o===void 0&&(o=1/0),ce||(ce=document.createElement("textarea"),ce.setAttribute("tabindex","-1"),ce.setAttribute("aria-hidden","true"),ha(ce)),ce.parentNode===null&&document.body.appendChild(ce);var r=e.paddingSize,a=e.borderSize,s=e.sizingStyle,c=s.boxSizing;Object.keys(s).forEach(function(h){var g=h;ce.style[g]=s[g]}),ha(ce),ce.value=t;var l=ga(ce,e);ce.value=t,l=ga(ce,e),ce.value="x";var u=ce.scrollHeight-r,d=u*n;c==="border-box"&&(d=d+r+a),l=Math.max(d,l);var f=u*o;return c==="border-box"&&(f=f+r+a),l=Math.min(f,l),[l,u]}var ba=function(){},e$=function(t,n){return t.reduce(function(o,r){return o[r]=n[r],o},{})},t$=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],n$=!!document.documentElement.currentStyle,o$=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var o=e$(t$,n),r=o.boxSizing;if(r==="")return null;n$&&r==="border-box"&&(o.width=parseFloat(o.width)+parseFloat(o.borderRightWidth)+parseFloat(o.borderLeftWidth)+parseFloat(o.paddingRight)+parseFloat(o.paddingLeft)+"px");var a=parseFloat(o.paddingBottom)+parseFloat(o.paddingTop),s=parseFloat(o.borderBottomWidth)+parseFloat(o.borderTopWidth);return{sizingStyle:o,paddingSize:a,borderSize:s}},r$=o$;function ku(e,t,n){var o=qx(n);m.useLayoutEffect(function(){var r=function(s){return o.current(s)};if(e)return e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}},[])}var a$=function(t){ku(window,"resize",t)},s$=function(t){ku(document.fonts,"loadingdone",t)},c$=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],i$=function(t,n){var o=t.cacheMeasurements,r=t.maxRows,a=t.minRows,s=t.onChange,c=s===void 0?ba:s,l=t.onHeightChange,u=l===void 0?ba:l,d=Yx(t,c$),f=d.value!==void 0,h=m.useRef(null),g=Zx(h,n),b=m.useRef(0),p=m.useRef(),x=function(){var y=h.current,C=o&&p.current?p.current:r$(y);if(C){p.current=C;var E=Jx(C,y.value||y.placeholder||"x",a,r),_=E[0],S=E[1];b.current!==_&&(b.current=_,y.style.setProperty("height",_+"px","important"),u(_,{rowHeight:S}))}},$=function(y){f||x(),c(y)};return m.useLayoutEffect(x),a$(x),s$(x),m.createElement("textarea",R({},d,{onChange:$,ref:g}))},l$=m.forwardRef(i$);const Lu=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(l$,{className:T(n,"fp-textarea"),ref:t,...o})});Lu.displayName="Textarea";function ju(e,[t,n]){return Math.min(n,Math.max(t,e))}var Fu=["PageUp","PageDown"],Bu=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Vu={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Et="Slider",[uo,u$,d$]=ya(Et),[zu,ow]=he(Et,[d$]),[f$,Mn]=zu(Et),Wu=m.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:a=1,orientation:s="horizontal",disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[o],value:d,onValueChange:f=()=>{},onValueCommit:h=()=>{},inverted:g=!1,...b}=e,p=m.useRef(new Set),x=m.useRef(0),w=s==="horizontal"?p$:m$,[y=[],C]=Ee({prop:d,defaultProp:u,onChange:N=>{var k;(k=[...p.current][x.current])==null||k.focus(),f(N)}}),E=m.useRef(y);function _(N){const D=$$(y,N);I(N,D)}function S(N){I(N,x.current)}function P(){const N=E.current[x.current];y[x.current]!==N&&h(y)}function I(N,D,{commit:k}={commit:!1}){const V=E$(a),F=S$(Math.round((N-o)/a)*a+o,V),O=ju(F,[o,r]);C((B=[])=>{const j=b$(B,O,D);if(C$(j,l*a)){x.current=j.indexOf(O);const H=String(j)!==String(B);return H&&k&&h(j),H?j:B}else return B})}return v.jsx(f$,{scope:e.__scopeSlider,name:n,disabled:c,min:o,max:r,valueIndexToChangeRef:x,thumbs:p.current,values:y,orientation:s,children:v.jsx(uo.Provider,{scope:e.__scopeSlider,children:v.jsx(uo.Slot,{scope:e.__scopeSlider,children:v.jsx(w,{"aria-disabled":c,"data-disabled":c?"":void 0,...b,ref:t,onPointerDown:z(b.onPointerDown,()=>{c||(E.current=y)}),min:o,max:r,inverted:g,onSlideStart:c?void 0:_,onSlideMove:c?void 0:S,onSlideEnd:c?void 0:P,onHomeKeyDown:()=>!c&&I(o,0,{commit:!0}),onEndKeyDown:()=>!c&&I(r,y.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:D})=>{if(!c){const F=Fu.includes(N.key)||N.shiftKey&&Bu.includes(N.key)?10:1,O=x.current,B=y[O],j=a*F*D;I(B+j,O,{commit:!0})}}})})})})});Wu.displayName=Et;var[Hu,Gu]=zu(Et,{startEdge:"left",endEdge:"right",size:"width",direction:1}),p$=m.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=e,[f,h]=m.useState(null),g=ee(t,y=>h(y)),b=m.useRef(),p=It(r),x=p==="ltr",$=x&&!a||!x&&a;function w(y){const C=b.current||f.getBoundingClientRect(),E=[0,C.width],S=Cr(E,$?[n,o]:[o,n]);return b.current=C,S(y-C.left)}return v.jsx(Hu,{scope:e.__scopeSlider,startEdge:$?"left":"right",endEdge:$?"right":"left",direction:$?1:-1,size:"width",children:v.jsx(Uu,{dir:p,"data-orientation":"horizontal",...d,ref:g,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const C=w(y.clientX);s==null||s(C)},onSlideMove:y=>{const C=w(y.clientX);c==null||c(C)},onSlideEnd:()=>{b.current=void 0,l==null||l()},onStepKeyDown:y=>{const E=Vu[$?"from-left":"from-right"].includes(y.key);u==null||u({event:y,direction:E?-1:1})}})})}),m$=m.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:a,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,d=m.useRef(null),f=ee(t,d),h=m.useRef(),g=!r;function b(p){const x=h.current||d.current.getBoundingClientRect(),$=[0,x.height],y=Cr($,g?[o,n]:[n,o]);return h.current=x,y(p-x.top)}return v.jsx(Hu,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:v.jsx(Uu,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const x=b(p.clientY);a==null||a(x)},onSlideMove:p=>{const x=b(p.clientY);s==null||s(x)},onSlideEnd:()=>{h.current=void 0,c==null||c()},onStepKeyDown:p=>{const $=Vu[g?"from-bottom":"from-top"].includes(p.key);l==null||l({event:p,direction:$?-1:1})}})})}),Uu=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=Mn(Et,n);return v.jsx(W.span,{...u,ref:t,onKeyDown:z(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(c(f),f.preventDefault()):Fu.concat(Bu).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:z(e.onPointerDown,f=>{const h=f.target;h.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(h)?h.focus():o(f)}),onPointerMove:z(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&r(f)}),onPointerUp:z(e.onPointerUp,f=>{const h=f.target;h.hasPointerCapture(f.pointerId)&&(h.releasePointerCapture(f.pointerId),a(f))})})}),Ku="SliderTrack",Yu=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=Mn(Ku,n);return v.jsx(W.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Yu.displayName=Ku;var fo="SliderRange",v$=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=Mn(fo,n),a=Gu(fo,n),s=m.useRef(null),c=ee(t,s),l=r.values.length,u=r.values.map(h=>qu(h,r.min,r.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return v.jsx(W.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:c,style:{...e.style,[a.startEdge]:d+"%",[a.endEdge]:f+"%"}})});v$.displayName=fo;var po="SliderThumb",Xu=m.forwardRef((e,t)=>{const n=u$(e.__scopeSlider),[o,r]=m.useState(null),a=ee(t,c=>r(c)),s=m.useMemo(()=>o?n().findIndex(c=>c.ref.current===o):-1,[n,o]);return v.jsx(h$,{...e,ref:a,index:s})}),h$=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...a}=e,s=Mn(po,n),c=Gu(po,n),[l,u]=m.useState(null),d=ee(t,$=>u($)),f=l?!!l.closest("form"):!0,h=$o(l),g=s.values[o],b=g===void 0?0:qu(g,s.min,s.max),p=x$(o,s.values.length),x=h==null?void 0:h[c.size];return x&&w$(x,b,c.direction),m.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),v.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`${b}%`},children:[v.jsx(uo.ItemSlot,{scope:e.__scopeSlider,children:v.jsx(W.span,{role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":s.min,"aria-valuenow":g,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:d,style:g===void 0?{display:"none"}:e.style,onFocus:z(e.onFocus,()=>{s.valueIndexToChangeRef.current=o})})}),f&&v.jsx(g$,{name:r??(s.name?s.name+(s.values.length>1?"[]":""):void 0),value:g},o)]})});Xu.displayName=po;var g$=e=>{const{value:t,...n}=e,o=m.useRef(null),r=os(t);return m.useEffect(()=>{const a=o.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(r!==t&&l){const u=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(u)}},[r,t]),v.jsx("input",{style:{display:"none"},...n,ref:o,defaultValue:t})};function b$(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,a)=>r-a)}function qu(e,t,n){const a=100/(n-t)*(e-t);return ju(a,[0,100])}function x$(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function $$(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function w$(e,t,n){const o=e/2,a=Cr([0,50],[0,o]);return(o-a(t)*n)*n}function y$(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function C$(e,t){if(t>0){const n=y$(e);return Math.min(...n)>=t}return!0}function Cr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function E$(e){return(String(e).split(".")[1]||"").length}function S$(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var R$=Wu,P$=Yu,_$=Xu;const T$=2,N$=0,M$=100,A$="horizontal",I$="ltr",Zu=i.forwardRef((e,t)=>{const{className:n,min:o=N$,max:r=M$,defaultValue:a=[o],value:s,onValueChange:c,orientation:l=A$,dir:u=I$,inverted:d,disabled:f,range:h=!0,rangeAnchor:g,baseValue:b,hints:p,...x}=e,$=i.useRef(null),w=dn($,t),{onPointerDown:y,focusVisible:C}=L$($),[E,_]=i.useState(s??a),S=i.useRef(s),P=i.useRef(a);i.useEffect(()=>{fa(s,S.current)&&fa(a,P.current)||_(s??a)},[s,a]),i.useEffect(()=>{$.current&&$.current.style.setProperty("--radix-slider-thumb-transform",k$(l,u,d))},[$,l,u,d]);const I=N=>{const D=N.map(k=>j$(k,p,o,r));c==null||c(D),_(D)};return v.jsxs(R$,{tabIndex:-1,ref:w,className:T(n,"fp-SliderRoot"),value:E,onValueChange:I,onPointerDown:y,min:o,max:r,orientation:l,dir:u,inverted:d,disabled:f,...x,children:[v.jsx(P$,{className:"fp-SliderTrack"}),h&&v.jsx(D$,{dir:u,value:E,min:o,max:r,orientation:l,inverted:d,rangeAnchor:g,disabled:f}),p&&p.map(N=>v.jsx(O$,{hint:N,baseValue:b,min:o,max:r,orientation:l,dir:u,inverted:d},N)),E.map((N,D)=>v.jsx(_$,{className:T("fp-SliderThumb",{"fp-SliderThumb-focusVisible":C,"fp-SliderThumb-modified":N!==b})},D))]})});Zu.displayName="Slider";const O$=e=>{const{baseValue:t,dir:n,inverted:o,max:r,min:a,orientation:s,hint:c}=e,{startEdge:l}=Qu(s,n,o),u=ht([a,r],[0,100])(c),d=4;return v.jsx(v.Fragment,{children:v.jsx("span",{className:T("fp-SliderHint",{"fp-SliderHint-baseValue":c===t}),"data-orientation":s,style:{[l]:`calc(${u}% - ${d/2}px)`}})})},D$=e=>{const{min:t,max:n,value:o,rangeAnchor:r=t,orientation:a,dir:s,inverted:c,disabled:l}=e,u=o.length>1?Math.min(...o):Math.min(r,...o),d=o.length>1?Math.max(...o):Math.max(r,...o),f=ht([t,n],[0,100])(u),h=100-ht([t,n],[0,100])(d),g=Qu(a,s,c);return v.jsx("span",{className:"fp-SliderRange","data-orientation":a,"data-disabled":l?"":void 0,style:{[g.startEdge]:`${f}%`,[g.endEdge]:`${h}%`}})};function Qu(e,t,n){const o=n?"inverted":"normal";return{vertical:{normal:{startEdge:"bottom",endEdge:"top"},inverted:{startEdge:"top",endEdge:"bottom"}},horizontal:{normal:{startEdge:t==="ltr"?"left":"right",endEdge:t==="ltr"?"right":"left"},inverted:{startEdge:t==="ltr"?"right":"left",endEdge:t==="ltr"?"left":"right"}}}[e][o]}function k$(e,t,n){const o=n?"inverted":"normal";return{vertical:{normal:"translateY(50%)",inverted:"translateY(-50%)"},horizontal:{normal:t==="ltr"?"translateX(-50%)":"translateX(50%)",inverted:t==="ltr"?"translateX(50%)":"translateX(-50%)"}}[e][o]}function L$(e){const[t,n]=i.useState(!1),o=()=>{var a;n(!1),window.removeEventListener("pointerup",o),(a=e.current)==null||a.focus()};return{onPointerDown:()=>{n(!0),window.addEventListener("pointerup",o)},focusVisible:!t}}function j$(e,t,n,o){const r=ht([0,100],[0,o-n])(T$),a=t==null?void 0:t.find(s=>Math.abs(s-e)<=r);return typeof a=="number"?a:e}const Ju="Switch",[F$,rw]=Me(Ju),[B$,V$]=F$(Ju),z$=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:a,required:s,disabled:c,value:l="on",onCheckedChange:u,...d}=e,[f,h]=i.useState(null),g=J(t,w=>h(w)),b=i.useRef(!1),p=f?!!f.closest("form"):!0,[x=!1,$]=Ve({prop:r,defaultProp:a,onChange:u});return i.createElement(B$,{scope:n,checked:x,disabled:c},i.createElement(q.button,R({type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":ed(x),"data-disabled":c?"":void 0,disabled:c,value:l},d,{ref:g,onClick:A(e.onClick,w=>{$(y=>!y),p&&(b.current=w.isPropagationStopped(),b.current||w.stopPropagation())})})),p&&i.createElement(G$,{control:f,bubbles:!b.current,name:o,value:l,checked:x,required:s,disabled:c,style:{transform:"translateX(-100%)"}}))}),W$="SwitchThumb",H$=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=V$(W$,n);return i.createElement(q.span,R({"data-state":ed(r.checked),"data-disabled":r.disabled?"":void 0},o,{ref:t}))}),G$=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,a=i.useRef(null),s=tc(n),c=Xs(t);return i.useEffect(()=>{const l=a.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==n&&f){const h=new Event("click",{bubbles:o});f.call(l,n),l.dispatchEvent(h)}},[s,n,o]),i.createElement("input",R({type:"checkbox","aria-hidden":!0,defaultChecked:n},r,{tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ed(e){return e?"checked":"unchecked"}const U$=z$,K$=H$,td=i.forwardRef((e,t)=>{const{className:n,...o}=e;return v.jsx(U$,{ref:t,className:T(n,"fp-switchRoot"),...o,children:v.jsx(K$,{ref:t,className:T(n,"fp-switchThumb")})})});td.displayName="Switch";exports.AlertDialog=q0;exports.Button=Du;exports.Checkbox=gf;exports.Collapsible=Gx;exports.ContextMenu=zg;exports.Dialog=T0;exports.DropdownMenu=ag;exports.Flex=Ou;exports.IconButton=Tn;exports.Input=gr;exports.Label=pn;exports.Link=Qa;exports.Paragraph=Za;exports.Popover=v0;exports.RadioGroup=lf;exports.SegmentedControl=Kd;exports.Select=$v;exports.Slider=Zu;exports.Switch=td;exports.Tabs=Ld;exports.Text=We;exports.Textarea=Lu;exports.Tooltip=ar;exports.TooltipProvider=c0;exports.ValueField=jx;exports.createIcon=He;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require("react");l=c(l,1);let u=require("@base-ui/react/tabs"),d=require("class-variance-authority"),f=require("react/jsx-runtime"),p=require("@base-ui/react/toggle"),m=require("@base-ui/react/toggle-group"),h=require("@base-ui/react/use-render"),g=require("@base-ui/react/radio"),_=require("@base-ui/react/radio-group"),v=require("@base-ui/react/select"),y=require("@base-ui/react/combobox"),b=require("@base-ui/react/separator"),x=require("@base-ui/react/menu"),S=require("@base-ui/react/context-menu"),C=require("@base-ui/react/popover"),w=require("@base-ui/react/tooltip"),T=require("@base-ui/react/dialog"),E=require("@base-ui/react/alert-dialog"),D=require("remeda"),O=require("@emmetio/math-expression");O=c(O,1);let k=require("@base-ui/react/merge-props"),A=require("react-dom"),j=require("@base-ui/react/direction-provider"),M=require("@base-ui/react/slider"),N=require("@base-ui/react/collapsible"),P=require("react-textarea-autosize");P=c(P,1);let F=require("@base-ui/react/switch");function I(e,t){return typeof e==`function`?n=>(0,d.cx)(e(n),t):(0,d.cx)(e,t)}function ee(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function te(...e){return t=>e.forEach(e=>ee(e,t))}function L(...e){return l.useCallback(te(...e),e)}var ne=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(u.Tabs.Root,{ref:t,className:I(n,`fp-TabsRoot`),...r})}),re=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(u.Tabs.List,{ref:t,className:I(n,`fp-TabsList`),...r})}),ie=l.default.forwardRef((e,t)=>{let{className:n,...r}=e,i=te(t,ae());return(0,f.jsx)(u.Tabs.Tab,{ref:i,className:I(n,`fp-TabsTrigger`),...r})});function ae(){return(0,l.useCallback)(e=>{e!==null&&(e.style.width=e.getBoundingClientRect().width+`px`)},[])}var oe=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(u.Tabs.Panel,{ref:t,className:I(n,`fp-TabsContent`),...r})});ne.displayName=`Tabs.Root`,re.displayName=`Tabs.List`,ie.displayName=`Tabs.Tab`,oe.displayName=`Tabs.Panel`;var se=o({List:()=>re,Panel:()=>oe,Root:()=>ne,Tab:()=>ie}),ce=(0,d.cva)(`fp-Text`,{variants:{size:{small:`fp-size-small`,medium:`fp-size-medium`,large:`fp-size-large`},weight:{default:`fp-weight-default`,strong:`fp-weight-strong`},align:{start:`fp-align-start`,center:`fp-align-center`,end:`fp-align-end`},block:{true:`fp-block`}}}),R=l.default.forwardRef((e,t)=>{let{className:n,render:r,size:i,weight:a,align:o,block:s,...c}=e;return(0,h.useRender)({defaultTagName:`span`,render:r,ref:t,props:{className:ce({className:n,size:i,weight:a,align:o,block:s}),...c}})});R.displayName=`Text`;var le=l.default.forwardRef((e,t)=>{let{className:n,size:r,weight:i,align:a,block:o,...s}=e;return(0,f.jsx)(`label`,{ref:t,className:ce({className:n,size:r,weight:i,align:a,block:o}),...s})});le.displayName=`Label`;var ue=l.default.forwardRef((e,t)=>{let{className:n,size:r,weight:i,align:a,block:o,...s}=e;return(0,f.jsx)(`p`,{ref:t,className:ce({className:n,size:r,weight:i,align:a,block:o}),...s})});ue.displayName=`Paragraph`;var de=l.default.forwardRef((e,t)=>{let{className:n,render:r,size:i,weight:a,align:o,block:s,...c}=e;return(0,h.useRender)({defaultTagName:`a`,render:r,ref:t,props:{className:(0,d.cx)(ce({className:n,size:i,weight:a,align:o,block:s}),`fp-Link`),...c}})});de.displayName=`Link`;function fe(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>((...e)=>t.current?.(...e)),[])}function pe({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=me({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=fe(n);return[o,l.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function me({defaultProp:e,onChange:t}){let n=l.useState(e),[r]=n,i=l.useRef(r),a=fe(t);return l.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var he=l.default.forwardRef((e,t)=>{let{className:n,fullWidth:r,value:i,defaultValue:a,onValueChange:o,...s}=e,[c,l]=pe({prop:i,defaultProp:a,onChange:o});return(0,f.jsx)(m.ToggleGroup,{ref:t,className:I(n,(0,d.cx)(`fp-SegmentedControlRoot`,{"fp-full-width":r})),...s,multiple:!1,value:ve(c),onValueChange:e=>{let t=e[0];t!==void 0&&l(t)}})}),ge=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(p.Toggle,{ref:t,className:I(n,`fp-SegmentedControlItem`),...r})}),_e=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(R,{ref:t,className:(0,d.cx)(n,`fp-SegmentedControlText`),...r})});he.displayName=`SegmentedControl.Root`,ge.displayName=`SegmentedControl.Item`,_e.displayName=`SegmentedControl.Text`;function ve(e){return e===void 0?[]:[e]}var ye=o({Item:()=>ge,Root:()=>he,Text:()=>_e});function be(e,t){let n=l.default.createContext(t);function r(e){let{children:t,...r}=e,i=l.default.useMemo(()=>r,Object.values(r));return(0,f.jsx)(n.Provider,{value:i,children:t})}function i(r){let i=l.default.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+`Provider`,[r,i]}var[xe,Se]=be(`RadioGroup`),Ce=l.default.forwardRef((e,t)=>{let{orientation:n=`horizontal`,disabled:r,className:i,...a}=e;return(0,f.jsx)(xe,{orientation:n,disabled:r,children:(0,f.jsx)(_.RadioGroup,{ref:t,disabled:r,className:I(i,`fp-RadioGroupRoot`),"data-orientation":n,...a})})}),we=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(g.Radio.Root,{ref:t,className:I(n,`fp-RadioGroupItem`),...r})}),Te=l.default.forwardRef((e,t)=>{let{orientation:n,disabled:r}=Se(`Label`),{className:i,...a}=e;return(0,f.jsx)(le,{ref:t,className:(0,d.cx)(i,`fp-RadioGroupLabel`),"data-orientation":n,"data-disabled":r?``:void 0,...a})});Ce.displayName=`RadioGroup.Root`,we.displayName=`RadioGroup.Item`,Te.displayName=`RadioGroup.Label`;var Ee=o({Item:()=>we,Label:()=>Te,Root:()=>Ce}),De=`6`,Oe=`0 0 24 24`,ke=(0,d.cva)(`fp-Icon`,{variants:{size:{1:`fp-size-1`,2:`fp-size-2`,"2_5":`fp-size-2_5`,3:`fp-size-3`,"3_5":`fp-size-3_5`,4:`fp-size-4`,5:`fp-size-5`,6:`fp-size-6`,7:`fp-size-7`,8:`fp-size-8`,9:`fp-size-9`,10:`fp-size-10`}},defaultVariants:{size:De}});function z(e){let{path:t,viewBox:n=Oe,displayName:r}=e,i=l.default.forwardRef((e,r)=>{let{size:i,className:a,...o}=e;return(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,ref:r,viewBox:n,className:ke({className:a,size:i}),fill:`none`,...o,children:t})});return i.displayName=r||`Icon`,i}var Ae=z({displayName:`Actions`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M9 13a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2zm7.5 0a.5.5 0 0 1 .5.5V16h2.5a.5.5 0 0 1 0 1H17v2.5a.5.5 0 0 1-1 0V17h-2.5a.5.5 0 0 1 0-1H16v-2.5a.5.5 0 0 1 .5-.5M6 14a1 1 0 0 0-1 1v3a1 1 0 0 0 .897.995L6 19h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zm.87-10.275a1 1 0 0 1 1.337.068l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414l3-3zM16.5 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m-12 3.5 3 3 3-3-3-3zm12-2.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5`})}),je=z({displayName:`AlignBottom`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M10 6.75A.75.75 0 0 0 9.25 6h-.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h.5a.75.75 0 0 0 .75-.75zm5 4a.75.75 0 0 0-.75-.75h-.5a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75h.5a.75.75 0 0 0 .75-.75z`,clipRule:`evenodd`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M17.5 18a.5.5 0 0 1 0 1h-12a.5.5 0 0 1 0-1z`})]})}),Me=z({displayName:`AlignHorizontalCenter`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M17.25 10a.75.75 0 0 0 .75-.75v-.5a.75.75 0 0 0-.75-.75h-9.5a.75.75 0 0 0-.75.75v.5c0 .414.336.75.75.75zm-2 5a.75.75 0 0 0 .75-.75v-.5a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v.5c0 .414.336.75.75.75z`,clipRule:`evenodd`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,fillRule:`evenodd`,d:`M13 17.5a.5.5 0 0 1-1 0V15h1zm0-4.5v-3h-1v3zm0-7.5V8h-1V5.5a.5.5 0 0 1 1 0`,clipRule:`evenodd`})]})}),Ne=z({displayName:`AlignLeft`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M17.25 10a.75.75 0 0 0 .75-.75v-.5a.75.75 0 0 0-.75-.75h-8.5a.75.75 0 0 0-.75.75v.5c0 .414.336.75.75.75zm-4 5a.75.75 0 0 0 .75-.75v-.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0-.75.75v.5c0 .414.336.75.75.75z`,clipRule:`evenodd`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M6 17.5a.5.5 0 0 1-1 0v-12a.5.5 0 0 1 1 0z`})]})}),Pe=z({displayName:`AlignRight`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6.75 10A.75.75 0 0 1 6 9.25v-.5A.75.75 0 0 1 6.75 8h8.5a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-.75.75zm4 5a.75.75 0 0 1-.75-.75v-.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-.75.75z`,clipRule:`evenodd`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M18 17.5a.5.5 0 0 0 1 0v-12a.5.5 0 0 0-1 0z`})]})}),Fe=z({displayName:`AlignTop`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M10 17.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1-.75-.75v-8.5A.75.75 0 0 1 8.75 8h.5a.75.75 0 0 1 .75.75zm5-4a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1-.75-.75v-4.5a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 .75.75z`,clipRule:`evenodd`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M17.5 6a.5.5 0 0 0 0-1h-12a.5.5 0 0 0 0 1z`})]})}),Ie=z({displayName:`AlignVerticalCenter`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M10 6.75A.75.75 0 0 0 9.25 6h-.5a.75.75 0 0 0-.75.75v9.5c0 .414.336.75.75.75h.5a.75.75 0 0 0 .75-.75zm5 2a.75.75 0 0 0-.75-.75h-.5a.75.75 0 0 0-.75.75v5.5c0 .414.336.75.75.75h.5a.75.75 0 0 0 .75-.75z`,clipRule:`evenodd`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,fillRule:`evenodd`,d:`M17.5 11a.5.5 0 0 1 0 1H15v-1zM13 11h-3v1h3zm-7.5 0H8v1H5.5a.5.5 0 0 1 0-1`,clipRule:`evenodd`})]})}),Le=z({displayName:`Annotation`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M16.8 5H8.2c-.577 0-.949 0-1.232.024-.272.022-.373.06-.422.085a1 1 0 0 0-.437.437c-.025.05-.063.15-.085.422C6 6.25 6 6.623 6 7.2v7.3a.5.5 0 0 1-1 0V7.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C6.52 4 7.08 4 8.2 4h8.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C20 5.52 20 6.08 20 7.2v8.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C18.48 19 17.92 19 16.8 19H9.5a.5.5 0 0 1 0-1h7.3c.577 0 .949 0 1.232-.024.272-.022.372-.06.422-.085a1 1 0 0 0 .437-.437c.025-.05.063-.15.085-.422C19 16.75 19 16.377 19 15.8V7.2c0-.577 0-.949-.024-1.232-.022-.272-.06-.373-.085-.422a1 1 0 0 0-.437-.437c-.05-.025-.15-.063-.422-.085C17.75 5 17.377 5 16.8 5M7 18.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m1 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0m1-5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5M9.5 9a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1z`,clipRule:`evenodd`})}),Re=z({displayName:`AspectRatio`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M7.5 7h9a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5M6 7.5A1.5 1.5 0 0 1 7.5 6h9A1.5 1.5 0 0 1 18 7.5v9a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 16.5zM9.5 9a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 1 0V10h1.5a.5.5 0 0 0 0-1zm5.5 3.5a.5.5 0 0 0-1 0V14h-1.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 .5-.5z`,clipRule:`evenodd`})}),ze=z({displayName:`AutoHeight`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6.5 6a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-1 0v-11a.5.5 0 0 1 .5-.5m3 4h5a.5.5 0 1 0 0-1h-5a.5.5 0 0 0 0 1m5 2.5h-5a.5.5 0 1 1 0-1h5a.5.5 0 1 1 0 1m-5.5 2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5m9-8a.5.5 0 0 0-1 0v11a.5.5 0 0 0 1 0z`,clipRule:`evenodd`})}),Be=z({displayName:`AutoWidth`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M7 6.5a.5.5 0 0 0-1 0v11a.5.5 0 0 0 1 0zm7.853 2.146a.5.5 0 1 0-.707.708l2.147 2.146H9.5a.5.5 0 0 0 0 1h6.793l-2.147 2.146a.5.5 0 0 0 .707.708l3-3a.5.5 0 0 0 0-.708z`,clipRule:`evenodd`})}),Ve=z({displayName:`BlendMode`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M14.783 16.058C15.479 15.454 16 14.49 16 13c0-1.037-.597-2.328-1.493-3.631-.844-1.227-1.85-2.316-2.507-2.98-.658.664-1.662 1.753-2.507 2.98C8.597 10.673 8 11.964 8 13c0 1.491.521 2.454 1.217 3.058.72.623 1.721.943 2.783.943s2.063-.32 2.783-.944M12 18c2.5 0 5-1.5 5-5 0-2.712-3-6.023-4.353-7.378a.907.907 0 0 0-1.294 0C10 6.978 7 10.29 7 13.001c0 3.5 2.5 5 5 5`,clipRule:`evenodd`})}),He=z({displayName:`Boolean`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M10 8h4a4 4 0 0 1 0 8h-4a4 4 0 0 1 0-8m-5 4a5 5 0 0 1 5-5h4a5 5 0 0 1 0 10h-4a5 5 0 0 1-5-5m5 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4m-3-2a3 3 0 1 1 6 0 3 3 0 0 1-6 0`,clipRule:`evenodd`})}),B=z({displayName:`Checkmark`,viewBox:`0 0 16 16`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.777 4.08399C11.8873 4.1575 11.9639 4.27178 11.99 4.40172C12.016 4.53167 11.9894 4.66665 11.916 4.77699L7.91602 10.777C7.87506 10.8387 7.82091 10.8905 7.75748 10.9287C7.69405 10.9669 7.62294 10.9905 7.54926 10.9979C7.47559 11.0053 7.40119 10.9962 7.33146 10.9713C7.26172 10.9464 7.19839 10.9063 7.14602 10.854L4.14602 7.85399C4.09953 7.80751 4.06266 7.75232 4.0375 7.69158C4.01234 7.63084 3.99939 7.56574 3.99939 7.49999C3.99939 7.43425 4.01234 7.36915 4.0375 7.30841C4.06266 7.24767 4.09953 7.19248 4.14602 7.14599C4.19251 7.09951 4.2477 7.06263 4.30844 7.03747C4.36918 7.01231 4.43428 6.99936 4.50002 6.99936C4.56577 6.99936 4.63087 7.01231 4.6916 7.03747C4.75234 7.06263 4.80753 7.09951 4.85402 7.14599L7.42202 9.71599L11.084 4.22299C11.1575 4.11271 11.2718 4.03612 11.4018 4.01006C11.5317 3.98399 11.6667 4.01059 11.777 4.08399Z`})}),Ue=z({displayName:`CheckmarkIndeterminate`,viewBox:`0 0 16 16`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M4 8a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z`})}),V=z({displayName:`ChevronDown`,path:(0,f.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,f.jsx)(`path`,{stroke:`var(--color-icon)`,strokeLinecap:`round`,d:`M9.87897 11.121L12 13.243L14.121 11.12`})})}),We=z({displayName:`ChevronLeft`,path:(0,f.jsx)(`path`,{stroke:`var(--color-icon)`,strokeLinecap:`round`,d:`M12.879 9.879L10.757 12L12.88 14.121`})}),Ge=z({displayName:`ChevronRight`,path:(0,f.jsx)(`path`,{stroke:`var(--color-icon)`,strokeLinecap:`round`,d:`M11.121 14.121L13.243 12L11.12 9.879`})}),Ke=z({displayName:`ChevronUp`,path:(0,f.jsx)(`path`,{stroke:`var(--color-icon)`,strokeLinecap:`round`,d:`M14.121 12.879L12 10.757L9.87903 12.88`})}),qe=z({displayName:`Circle`,viewBox:`0 0 16 16`,path:(0,f.jsx)(`circle`,{fill:`var(--color-icon)`,cx:`8`,cy:`8`,r:`3`})}),Je=z({displayName:`Clear`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M12 5a7 7 0 1 1 0 14 7 7 0 0 1 0-14m0 1a6 6 0 1 0 0 12 6 6 0 0 0 0-12m2.225 3.082a.5.5 0 0 1 .693.693l-.064.079L12.707 12l2.147 2.146.064.079a.5.5 0 0 1-.693.693l-.078-.064L12 12.707l-2.146 2.146a.5.5 0 1 1-.707-.707L11.293 12 9.147 9.854l-.065-.079a.5.5 0 0 1 .694-.693l.078.064L12 11.293l2.147-2.147z`})}),Ye=z({displayName:`Close`,path:(0,f.jsx)(`path`,{stroke:`var(--color-icon)`,d:`M16.5 7.5L12 12M12 12L7.5 16.5M12 12L7.5 7.5M12 12L16.5 16.5`,strokeLinecap:`round`})}),Xe=z({displayName:`Code`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M13.631 6.018a.5.5 0 0 1 .367.513l-.016.1-3 11-.036.095a.5.5 0 0 1-.93-.358l3-11 .037-.095a.5.5 0 0 1 .578-.255M8.224 8.582a.501.501 0 0 1 .693.693l-.064.079L6.206 12l2.647 2.646a.5.5 0 1 1-.707.707l-3-3a.5.5 0 0 1 0-.707l3-3zm6.922.064a.5.5 0 0 1 .707 0l3 3a.5.5 0 0 1 0 .707l-3 3-.078.065a.5.5 0 0 1-.694-.693l.065-.079L17.792 12l-2.646-2.646a.5.5 0 0 1 0-.707`})}),Ze=z({displayName:`Comment`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M12.5 3a8.5 8.5 0 0 1 0 17H7.09c-.89 0-1.39 0-1.767-.121l-.154-.06a2 2 0 0 1-.906-.828l-.082-.16c-.136-.297-.17-.657-.178-1.248L4 16.909V11.5A8.5 8.5 0 0 1 12.5 3m0 1A7.5 7.5 0 0 0 5 11.5v5.41c0 .523 0 .861.02 1.12.018.247.05.34.07.385a1 1 0 0 0 .495.494c.045.02.138.053.386.072.258.019.596.019 1.12.019H12.5a7.5 7.5 0 0 0 0-15`})}),Qe=z({displayName:`Component`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M11.116 13.592a1.25 1.25 0 0 1 1.768 0l1.637 1.637a1.25 1.25 0 0 1 0 1.768l-1.637 1.638-.095.085a1.25 1.25 0 0 1-1.578 0l-.095-.085-1.638-1.64a1.25 1.25 0 0 1-.085-1.672l.085-.095zm1.06.707a.25.25 0 0 0-.353 0l-1.638 1.636a.25.25 0 0 0 0 .354l1.638 1.639a.25.25 0 0 0 .354 0l1.637-1.638a.25.25 0 0 0 0-.354zm3.053-4.82a1.25 1.25 0 0 1 1.767 0l1.639 1.637a1.25 1.25 0 0 1 0 1.768l-1.639 1.638-.095.086a1.25 1.25 0 0 1-1.578 0l-.095-.086-1.637-1.637a1.25 1.25 0 0 1-.086-1.673l.086-.095zm-8.226 0a1.25 1.25 0 0 1 1.767 0l1.64 1.638a1.25 1.25 0 0 1 0 1.768L8.77 14.52a1.25 1.25 0 0 1-1.672.086l-.095-.086-1.638-1.637a1.25 1.25 0 0 1-.086-1.673l.086-.095zm9.286.706a.25.25 0 0 0-.354 0l-1.637 1.64a.25.25 0 0 0 0 .353l1.637 1.637a.25.25 0 0 0 .354 0l1.639-1.638a.25.25 0 0 0 0-.354zm-8.226 0a.25.25 0 0 0-.353 0l-1.637 1.638a.25.25 0 0 0 0 .354l1.638 1.637a.25.25 0 0 0 .353 0l1.638-1.636a.25.25 0 0 0 0-.354zm3.053-4.819a1.25 1.25 0 0 1 1.768 0l1.637 1.638a1.25 1.25 0 0 1 0 1.767l-1.637 1.639-.095.085a1.25 1.25 0 0 1-1.578 0l-.095-.085-1.639-1.639a1.25 1.25 0 0 1-.085-1.673l.085-.094zm1.06.707a.25.25 0 0 0-.353 0l-1.639 1.638a.25.25 0 0 0 0 .353l1.64 1.639a.25.25 0 0 0 .353 0l1.637-1.639a.25.25 0 0 0 0-.353z`,clipRule:`evenodd`})}),$e=z({displayName:`ConstraintLeft`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M16.5 8.5a.5.5 0 0 1 .5.5v5a.5.5 0 1 1-1 0v-2H7v2a.5.5 0 0 1-1 0V9a.5.5 0 0 1 1 0v2h9V9a.5.5 0 0 1 .5-.5`,clipRule:`evenodd`})}),et=z({displayName:`ConstraintTop`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M8.5 6.5A.5.5 0 0 1 9 6h5a.5.5 0 0 1 0 1h-2v9h2a.5.5 0 0 1 0 1H9a.5.5 0 0 1 0-1h2V7H9a.5.5 0 0 1-.5-.5`,clipRule:`evenodd`})}),tt=z({displayName:`CornerRadius`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M6.5 14a.5.5 0 0 1 .5.5v.6c0 .428 0 .72.019.945.017.219.05.331.09.41.096.187.249.34.437.436.078.04.19.073.41.09.224.019.516.019.944.019h.6a.5.5 0 0 1 0 1h-.621c-.402 0-.734 0-1.005-.023-.281-.022-.54-.071-.782-.195a2 2 0 0 1-.874-.874c-.124-.242-.173-.501-.196-.782A13 13 0 0 1 6 15.121V14.5a.5.5 0 0 1 .5-.5m11 0a.5.5 0 0 1 .5.5v.621c0 .402 0 .734-.023 1.005-.022.281-.071.54-.195.782a2 2 0 0 1-.874.874c-.242.124-.501.173-.782.195-.27.023-.603.023-1.005.023H14.5a.5.5 0 0 1 0-1h.6c.428 0 .72 0 .945-.019.219-.018.331-.05.41-.09a1 1 0 0 0 .436-.437c.04-.078.073-.19.09-.41.019-.224.019-.516.019-.944v-.6a.5.5 0 0 1 .5-.5m-8-8a.5.5 0 0 1 0 1h-.6c-.428 0-.719 0-.944.019-.22.017-.332.05-.41.09a1 1 0 0 0-.437.437c-.04.078-.073.19-.09.41C7 8.18 7 8.471 7 8.9v.6a.5.5 0 0 1-1 0v-.621c0-.402 0-.734.022-1.005.023-.281.072-.54.196-.782a2 2 0 0 1 .874-.874c.242-.124.501-.173.782-.196C8.144 6 8.477 6 8.88 6zm5.621 0c.402 0 .734 0 1.005.022.281.023.54.072.782.196a2 2 0 0 1 .874.874c.124.242.173.501.195.782.023.27.023.603.023 1.005V9.5a.5.5 0 0 1-1 0v-.6c0-.428 0-.72-.019-.945-.018-.219-.05-.33-.09-.41a1 1 0 0 0-.437-.436c-.078-.04-.19-.073-.41-.09A13 13 0 0 0 15.1 7h-.6a.5.5 0 0 1 0-1z`})}),nt=z({displayName:`Design`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M12.11 13.956c-.44-1.121.618-2.23 1.738-1.885l.108.038 4.15 1.63.115.051c1.136.556 1.027 2.254-.218 2.637l-1.205.372-.37 1.205c-.397 1.29-2.196 1.356-2.689.102zm1.48-.916a.425.425 0 0 0-.55.55l1.63 4.15c.138.35.618.356.775.038l.027-.068.526-1.711 1.711-.527a.425.425 0 0 0 .031-.802zM16.5 6A1.5 1.5 0 0 1 18 7.5v1a1.5 1.5 0 0 1-1.5 1.5H10v6.5A1.5 1.5 0 0 1 8.5 18h-1A1.5 1.5 0 0 1 6 16.5v-9A1.5 1.5 0 0 1 7.5 6zM7 16.5a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V15h-.5a.5.5 0 0 1 0-1H9v-1h-.5a.5.5 0 0 1 0-1H9v-2H7zM7.5 7a.5.5 0 0 0-.5.5V9h2V7zM10 9h2v-.5a.5.5 0 0 1 1 0V9h1v-.5a.5.5 0 0 1 1 0V9h1.5a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H10z`})}),rt=z({displayName:`Draw`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M13.407 5.06c.61-.123 1.227-.079 1.657.343l.135.15c.277.361.316.79.208 1.204-.115.44-.397.887-.734 1.314-.68.86-1.74 1.829-2.748 2.76-1.031.952-2.01 1.867-2.606 2.662-.3.4-.466.724-.517.97-.044.21-.003.34.12.46l.065.052c.072.044.167.062.313.039.217-.034.505-.155.866-.378.72-.445 1.561-1.183 2.445-1.966.862-.763 1.768-1.571 2.57-2.076.4-.252.817-.457 1.221-.527.427-.074.87.002 1.223.346l.102.112c.22.271.296.593.266.918-.032.344-.183.684-.364.993-.363.617-.963 1.296-1.515 1.922-.574.651-1.1 1.251-1.403 1.767-.151.257-.218.449-.23.581-.01.106.012.163.072.22l.054.04c.074.038.214.062.474-.031.356-.128.853-.456 1.465-1.1a.5.5 0 0 1 .725.687c-.666.702-1.291 1.153-1.853 1.354-.535.192-1.08.173-1.485-.163l-.08-.071a1.23 1.23 0 0 1-.369-1.03c.033-.344.183-.684.364-.993.363-.617.964-1.297 1.516-1.923.574-.651 1.1-1.25 1.402-1.766.152-.258.22-.449.232-.581.007-.08-.004-.132-.035-.177l-.038-.045c-.07-.068-.162-.108-.353-.075-.213.037-.5.161-.858.388-.717.451-1.555 1.194-2.44 1.978-.862.764-1.774 1.57-2.584 2.07-.404.249-.826.45-1.237.514-.38.06-.767 0-1.095-.247l-.136-.118c-.402-.394-.502-.887-.399-1.38.097-.46.367-.923.696-1.363.663-.885 1.718-1.865 2.728-2.798 1.033-.954 2.023-1.862 2.642-2.645.31-.393.489-.71.55-.946.04-.152.028-.246-.017-.32l-.057-.069c-.082-.08-.284-.172-.76-.076-.468.094-1.091.352-1.863.803-1.537.898-3.552 2.496-5.893 4.786a.5.5 0 0 1-.699-.715c2.37-2.319 4.45-3.98 6.087-4.935.815-.476 1.55-.794 2.17-.92`,clipRule:`evenodd`})}),it=z({displayName:`Ellipsis`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M7.5 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m6 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m4.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3`,clipRule:`evenodd`})}),at=z({displayName:`Expand`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`m17 7.707-3.146 3.147a.5.5 0 0 1-.708-.708L16.293 7H13.5a.5.5 0 0 1 0-1h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0zm-6.854 5.44a.5.5 0 0 1 .708.707L7.707 17H10.5a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0v2.793z`,clipRule:`evenodd`})}),ot=z({displayName:`Eye`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6 12c0-.066.054-.358.313-.825a5.9 5.9 0 0 1 1.12-1.414C8.443 8.816 9.956 8 12 8s3.558.816 4.566 1.76c.508.477.88.98 1.121 1.415.258.467.313.76.313.825 0 .066-.055.358-.313.825-.24.435-.613.938-1.12 1.414C15.557 15.184 14.044 16 12 16s-3.558-.816-4.566-1.76a5.9 5.9 0 0 1-1.121-1.415C6.055 12.358 6 12.065 6 12m-1 0c0-1.25 2.333-5 7-5s7 3.75 7 5-2.333 5-7 5-7-3.75-7-5m8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0`,clipRule:`evenodd`})}),st=z({displayName:`Eyedropper`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.922 3.56a2.501 2.501 0 0 1 3.517 3.517l-.172.19-2.206 2.205a.33.33 0 0 0 0 .466h.001c.548.549.582 1.418.103 2.007l-.104.115a1.5 1.5 0 0 1-2.12 0l-.233-.233-6.94 6.94a2.5 2.5 0 0 1-2.12.705L5.56 20.56a1.5 1.5 0 0 1-2.12-2.121l1.086-1.09a2.5 2.5 0 0 1 .706-2.118l6.94-6.939-.232-.232a1.5 1.5 0 0 1 0-2.122l.114-.103a1.5 1.5 0 0 1 1.893 0l.114.103.052.042c.127.084.3.07.411-.042l2.208-2.207zM5.939 15.939a1.5 1.5 0 0 0-.405 1.37c.044.208.013.435-.137.585l-1.25 1.25v.002a.5.5 0 0 0 .706.706l1.251-1.251c.15-.15.377-.181.584-.137.48.102 1-.032 1.372-.404L15 11.12 12.88 9zm13.621-11.5a1.5 1.5 0 0 0-2.12 0l-2.21 2.206a1.327 1.327 0 0 1-1.877 0 .5.5 0 0 0-.707.707l3.994 3.994.005.005h.001a.5.5 0 0 0 .707-.707l-.004-.003a1.33 1.33 0 0 1 .004-1.877L19.56 6.56a1.5 1.5 0 0 0 0-2.122`})}),ct=z({displayName:`FillGradient`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M8 7h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm3.75.875a.875.875 0 1 1-1.75 0 .875.875 0 0 1 1.75 0m3.791.625a.625.625 0 1 0 0-1.25.625.625 0 0 0 0 1.25m-1.458.875a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m0 3.12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.458 2.245a.625.625 0 1 0 0-1.25.625.625 0 0 0 0 1.25m.625-3.865a.625.625 0 1 1-1.25 0 .625.625 0 0 1 1.25 0M8.875 15.99a.875.875 0 1 0 0-1.75.875.875 0 0 0 0 1.75m.875-4.115a.875.875 0 1 1-1.75 0 .875.875 0 0 1 1.75 0m5.75-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 2.623a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0`,clipRule:`evenodd`})}),lt=z({displayName:`FillPattern`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M12.5 7H16a1 1 0 0 1 1 1v1h-4.5zm-1 0H8a1 1 0 0 0-1 1v1h4.5zM7 10v4h2v-4h1v4h4v-4h1v4h2v-4zm10 5h-4.5v2H16a1 1 0 0 0 1-1zm-5.5 2v-2H7v1a1 1 0 0 0 1 1zM6 8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2z`,clipRule:`evenodd`})}),ut=z({displayName:`FillSolid`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M9 9h6v6H9z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M8 7h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm3 7V9h6v6zM8 8.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5z`,clipRule:`evenodd`})]})}),dt=z({displayName:`Figma`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6.5 7c0 1.043.533 1.963 1.341 2.5A3 3 0 0 0 6.5 12c0 1.043.533 1.963 1.341 2.5A3 3 0 1 0 12.5 17v-2.764A3 3 0 1 0 16.159 9.5 3 3 0 0 0 14.5 4h-5a3 3 0 0 0-3 3m8 2a2 2 0 1 0 0-4h-2v4zm-2 3a2 2 0 1 0 4 0 2 2 0 0 0-4 0m-1 2h-2a2 2 0 1 1 0-4h2zm-2 1h2v2a2 2 0 1 1-2-2m2-6h-2a2 2 0 1 1 0-4h2z`,clipRule:`evenodd`})}),ft=z({displayName:`FixedSize`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M7 7.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5zM7.5 6A1.5 1.5 0 0 0 6 7.5v9A1.5 1.5 0 0 0 7.5 18h9a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 16.5 6zm7 4h-5a.5.5 0 1 1 0-1h5a.5.5 0 1 1 0 1m-5 2.5h5a.5.5 0 1 0 0-1h-5a.5.5 0 0 0 0 1m0 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z`,clipRule:`evenodd`})}),pt=z({displayName:`FlipHorizontal`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M12.5 6.5a.5.5 0 0 0-1 0v11a.5.5 0 0 0 1 0zM6 9.104a.75.75 0 0 1 1.28-.53L10 11.292a1 1 0 0 1 0 1.414l-2.72 2.72a.75.75 0 0 1-1.28-.53zm1 .603v4.586L9.293 12zm11-.603a.75.75 0 0 0-1.28-.53L14 11.292a1 1 0 0 0 0 1.414l2.72 2.72a.75.75 0 0 0 1.28-.53zm-1 .603v4.586L14.707 12z`,clipRule:`evenodd`})}),mt=z({displayName:`FlipVertical`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M17.5 12.5a.5.5 0 0 0 0-1h-11a.5.5 0 0 0 0 1zM14.896 18a.75.75 0 0 0 .53-1.28L12.708 14a1 1 0 0 0-1.414 0l-2.72 2.72a.75.75 0 0 0 .53 1.28zm-.603-1H9.707L12 14.707zm.603-11a.75.75 0 0 1 .53 1.28L12.708 10a1 1 0 0 1-1.414 0l-2.72-2.72A.75.75 0 0 1 9.103 6zm-.603 1H9.707L12 9.293z`,clipRule:`evenodd`})}),ht=z({displayName:`Frame`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M7.5 4a.5.5 0 0 0-.5.5V7H4.5a.5.5 0 0 0 0 1H7v8H4.5a.5.5 0 0 0 0 1H7v2.5a.5.5 0 0 0 1 0V17h8v2.5a.5.5 0 0 0 1 0V17h2.5a.5.5 0 0 0 0-1H17V8h2.5a.5.5 0 0 0 0-1H17V4.5a.5.5 0 0 0-1 0V7H8V4.5a.5.5 0 0 0-.5-.5M16 8H8v8h8z`,clipRule:`evenodd`})}),gt=z({displayName:`Help`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M11.69 16.572q.357 0 .61.254a.83.83 0 0 1 .26.616q0 .236-.12.435a.9.9 0 0 1-.315.32.84.84 0 0 1-.435.114.85.85 0 0 1-.615-.253.85.85 0 0 1-.254-.616.84.84 0 0 1 .254-.616.85.85 0 0 1 .615-.254m.332-10.884q1.002 0 1.763.416.76.41 1.19 1.13.428.712.428 1.635 0 .61-.193 1.111a2.9 2.9 0 0 1-.58.924 4.8 4.8 0 0 1-.954.797 4.6 4.6 0 0 0-.863.718 2.1 2.1 0 0 0-.459.815q-.138.453-.15 1.117c0 .18-.146.326-.326.326h-.44a.326.326 0 0 1-.327-.326q.006-.954.21-1.551.207-.598.604-1.009a5.5 5.5 0 0 1 1.003-.797q.447-.29.748-.61.308-.325.465-.711a2.2 2.2 0 0 0 .163-.852q0-.651-.307-1.14a2.04 2.04 0 0 0-.822-.755 2.45 2.45 0 0 0-1.153-.272q-.603 0-1.129.266a2.15 2.15 0 0 0-1.138 1.483c-.067.3-.312.545-.619.545-.323 0-.588-.269-.53-.587a3.12 3.12 0 0 1 1.678-2.268 3.7 3.7 0 0 1 1.738-.405`,clipRule:`evenodd`})}),_t=z({displayName:`Image`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm2.225 4.082a.5.5 0 0 1 .629.064l4 4a.5.5 0 1 1-.707.707L10.5 12.208l-1.646 1.646a.5.5 0 1 1-.708-.707l2-2zM14.5 8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1`})}),vt=z({displayName:`LayersCollapse`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zM6 13.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m.5 2.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm6.646.146 2-2a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L15.5 15.207l-1.646 1.647a.5.5 0 0 1-.708-.708m2.708-6.292a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L15.5 8.793l1.646-1.647a.5.5 0 0 1 .708.708z`,clipRule:`evenodd`})}),yt=z({displayName:`LetterSpacing`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M6.5 6a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-1 0v-11a.5.5 0 0 1 .5-.5m11 0a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-1 0v-11a.5.5 0 0 1 .5-.5m-5.25 3a.5.5 0 0 1 .472.335l1.75 5a.5.5 0 1 1-.944.33l-.407-1.165H10.88l-.407 1.165a.5.5 0 1 1-.944-.33l1.75-5 .032-.072A.5.5 0 0 1 11.75 9zm-1.02 3.5h1.54L12 10.298z`})}),bt=z({displayName:`LineHeight`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M17.5 17a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zm-5.25-9a.5.5 0 0 1 .476.347l2.25 7a.5.5 0 0 1-.952.306L13.494 14h-2.987l-.531 1.653a.5.5 0 0 1-.952-.306l2.25-7 .03-.075A.5.5 0 0 1 11.75 8zm-1.422 5h2.344L12 9.354zM17.5 6a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1z`})}),xt=z({displayName:`Link`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M12.444 10.37a2.998 2.998 0 0 1 .677 4.75l-2 2a3 3 0 1 1-4.243-4.242l1.27-1.27c.262-.263.746-.069.826.293a.44.44 0 0 1-.111.405l-1.278 1.279a2 2 0 1 0 2.829 2.828l2-2a2 2 0 0 0 0-2.828l-.029-.028c-.093-.089-.187-.184-.224-.307a.88.88 0 0 1 .22-.87.05.05 0 0 1 .063-.01m.434-3.492a3 3 0 1 1 4.243 4.242l-1.27 1.27c-.262.262-.745.068-.826-.294a.44.44 0 0 1 .111-.405l1.278-1.278a2 2 0 1 0-2.829-2.828l-2 2a2 2 0 0 0 0 2.828l.029.026c.093.089.186.183.223.306a.88.88 0 0 1-.218.874.05.05 0 0 1-.062.009 3 3 0 0 1-.679-4.75z`})}),St=z({displayName:`Minus`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6 12a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 6 12`,clipRule:`evenodd`})}),Ct=z({displayName:`Move`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M4.586 4.586a2 2 0 0 1 2.005-.497l.14.05 13 5.107a2 2 0 0 1 1.267 1.779v.159a2 2 0 0 1-1.26 1.782l-.15.053-5.024 1.545-1.545 5.024a2 2 0 0 1-1.677 1.398l-.158.012a2 2 0 0 1-1.938-1.267l-5.107-13a2 2 0 0 1 .447-2.145m1.78.484a1 1 0 0 0-1.073.223l-.097.112a1 1 0 0 0-.127.96l5.108 13a1 1 0 0 0 .811.628l.158.006a1 1 0 0 0 .859-.558l.058-.147 1.7-5.53 5.531-1.701a1 1 0 0 0 .687-.76l.018-.157a1 1 0 0 0-.492-.9l-.142-.069z`})}),wt=z({displayName:`Number`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm3.05 2.002a.5.5 0 0 1 .448.547l-.045.452h1.495l.055-.55a.5.5 0 0 1 .995.098l-.045.452h.547a.5.5 0 1 1 0 1h-.648l-.199 2h.847a.5.5 0 1 1 0 1h-.948l-.054.548a.501.501 0 0 1-.995-.098l.044-.45h-1.495l-.054.548a.501.501 0 0 1-.995-.098l.044-.45H9.5a.5.5 0 0 1 0-1h.647l.2-2H9.5a.5.5 0 0 1 0-1h.948l.055-.55a.5.5 0 0 1 .546-.449m.302 1.999-.199 2h1.494l.2-2z`})}),Tt=z({displayName:`Opacity`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M8 7h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm9 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13.5 11a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0`,clipRule:`evenodd`})}),Et=z({displayName:`Palette`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M7.312 6.803a7 7 0 0 1 9.639.248l.28.298a7 7 0 0 1 1.76 4.998l-.029.38C18.807 14.222 17.446 15 16.242 15H13.5l-.101.01a.5.5 0 0 0-.4.49v.5c0 .82-.338 1.603-.92 2.127-.6.542-1.468.8-2.37.488a7 7 0 0 1-2.362-1.385l-.297-.28a7 7 0 0 1 0-9.9zm8.93.955a6 6 0 0 0-8.485 0l-.212.225a6 6 0 0 0 2.492 9.689c.978.337 1.848-.457 1.953-1.467L12 16v-.499a1.5 1.5 0 0 1 1.5-1.5h2.743l.158-.006c.733-.057 1.391-.513 1.543-1.216l.024-.155a6 6 0 0 0-1.484-4.611zM8.5 12.001a1 1 0 1 1 0 2 1 1 0 0 1 0-2m7-2a1 1 0 1 1-.001 2 1 1 0 0 1 0-2m-6-1.5a1 1 0 1 1 0 2.001 1 1 0 0 1 0-2m3.5-1a1 1 0 1 1 0 2 1 1 0 0 1 0-2`})}),Dt=z({displayName:`PanelLeftClose`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M17.653 7.008A1.5 1.5 0 0 1 19 8.5v7a1.5 1.5 0 0 1-1.347 1.492L17.5 17h-11a1.5 1.5 0 0 1-1.492-1.347L5 15.5v-7A1.5 1.5 0 0 1 6.5 7h11zM6.5 8a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5H9V8zm3.5 8h7.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5H10z`})}),Ot=z({displayName:`Pen`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M4.886 3.21a1 1 0 0 1 .812-.19l7.698 1.56.338.076a7.67 7.67 0 0 1 5.806 7.266v.346l-.008.329 1.197 1.197a1 1 0 0 1 0 1.414l-5.523 5.522a1 1 0 0 1-1.413 0l-1.198-1.197-.328.008a7.67 7.67 0 0 1-7.612-5.806l-.077-.338L3.02 5.7a1 1 0 0 1 .274-.906l1.5-1.5zm.674 9.99a6.666 6.666 0 0 0 6.383 5.342h.3l.756-.018 1.5 1.5 5.523-5.522-1.5-1.5.018-.756a6.67 6.67 0 0 0-5.048-6.619l-.295-.066L5.5 4l-.396.397 5.16 5.16A3 3 0 0 1 12 9.001 3.001 3.001 0 0 1 12 15a3 3 0 0 1-2.444-4.737l-5.16-5.16L4 5.5zM12 10.001a2 2 0 0 0-2 2l.01.204a2 2 0 0 0 1.786 1.785L12 14a2 2 0 0 0 1.989-1.795l.01-.204a2 2 0 0 0-1.795-1.99z`})}),kt=z({displayName:`Play`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M6 5.903C6 4.43 7.604 3.517 8.87 4.269l10.15 6.028c1.307.776 1.305 2.669-.003 3.442l-10.15 5.995c-1.228.724-2.768-.11-2.863-1.5L6 18.098zm1 12.195a.9.9 0 0 0 1.357.774l10.152-5.995a1 1 0 0 0 .002-1.72L8.359 5.129A.9.9 0 0 0 7 5.903z`,clipRule:`evenodd`})}),At=z({displayName:`Plus`,path:(0,f.jsx)(`path`,{stroke:`var(--color-icon)`,d:`M12 6.5V17.5M6.5 12H17.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),jt=z({displayName:`Rectangle`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M18 5H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1M6 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z`,clipRule:`evenodd`})}),Mt=z({displayName:`RotateClockwise`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M11.054 9.543a1.5 1.5 0 0 1 2.007.103l3.293 3.293a1.5 1.5 0 0 1 0 2.121l-3.293 3.293a1.5 1.5 0 0 1-2.121 0L7.647 15.06a1.5 1.5 0 0 1 0-2.121l3.293-3.293zm1.3.81a.5.5 0 0 0-.707 0l-3.293 3.293a.5.5 0 0 0 0 .707l3.293 3.293a.5.5 0 0 0 .629.064l.078-.064 3.293-3.293a.5.5 0 0 0 .064-.629l-.064-.078zM9.526 5.767a3.5 3.5 0 0 1 4.949 0L16 7.292V6a.5.5 0 0 1 1 0v2.5a.5.5 0 0 1-.5.5H14a.5.5 0 0 1 0-1h1.293l-1.525-1.526a2.5 2.5 0 0 0-3.535 0l-2.38 2.379a.5.5 0 0 1-.706-.707z`})}),Nt=z({displayName:`Rotation`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M9 8.5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 0-1H13a4 4 0 0 0-4-4zM9 12v3h3a3 3 0 0 0-3-3`,clipRule:`evenodd`})}),Pt=z({displayName:`Ruler`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M3.293 7.793a1 1 0 0 0 0 1.414l11.5 11.5a1 1 0 0 0 1.414 0l4.5-4.5a1 1 0 0 0 0-1.414l-11.5-11.5a1 1 0 0 0-1.414 0zM4 8.5l.707.707.69.69.75-.75a.5.5 0 1 1 .707.707l-.75.75 1.292 1.292 2.25-2.25a.5.5 0 0 1 .708.708l-2.25 2.25 1.292 1.292.75-.75a.5.5 0 0 1 .708.708l-.75.75 1.292 1.292 2.25-2.25a.5.5 0 0 1 .708.708l-2.25 2.25 2.689 2.689.707.707.707-.707 3.086-3.086L20 15.5l-.707-.707L9.207 4.707 8.5 4l-.707.707-3.086 3.086zM16 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2`,clipRule:`evenodd`})}),Ft=z({displayName:`Search`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M11.5 6a5.5 5.5 0 0 1 4.226 9.019l2.127 2.127a.5.5 0 1 1-.707.707l-2.127-2.127A5.5 5.5 0 1 1 11.5 6m0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9`})}),It=z({displayName:`SelectMatching`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M6.5 16a.5.5 0 0 1 .49.4l.02.2c.04.196.194.35.39.39l.2.02a.5.5 0 0 1-.1.99A1.5 1.5 0 0 1 6 16.5a.5.5 0 0 1 .5-.5m4 0a.5.5 0 0 1 .5.5A1.5 1.5 0 0 1 9.5 18a.5.5 0 0 1-.1-.99l.2-.02a.5.5 0 0 0 .39-.39l.02-.2a.5.5 0 0 1 .49-.4m3 0a.5.5 0 0 1 .49.4l.02.2c.04.196.194.35.39.39l.2.02a.5.5 0 0 1-.1.99 1.5 1.5 0 0 1-1.5-1.5.5.5 0 0 1 .5-.5m4 0a.5.5 0 0 1 .5.5 1.5 1.5 0 0 1-1.5 1.5.5.5 0 0 1-.1-.99l.2-.02a.5.5 0 0 0 .39-.39l.02-.2a.5.5 0 0 1 .49-.4m-10-3a.5.5 0 0 1 .1.99l-.2.02a.5.5 0 0 0-.39.39l-.02.2a.5.5 0 0 1-.99-.1A1.5 1.5 0 0 1 7.5 13m2 0a1.5 1.5 0 0 1 1.5 1.5.5.5 0 0 1-.99.1l-.02-.2a.5.5 0 0 0-.39-.39l-.2-.02a.5.5 0 0 1 .1-.99m5 0a.5.5 0 0 1 .1.99l-.2.02a.5.5 0 0 0-.39.39l-.02.2a.5.5 0 0 1-.99-.1 1.5 1.5 0 0 1 1.5-1.5m2 0a1.5 1.5 0 0 1 1.5 1.5.5.5 0 0 1-.99.1l-.02-.2a.5.5 0 0 0-.39-.39l-.2-.02a.5.5 0 0 1 .1-.99m-7-7A1.5 1.5 0 0 1 11 7.5v2A1.5 1.5 0 0 1 9.5 11h-2A1.5 1.5 0 0 1 6 9.5v-2A1.5 1.5 0 0 1 7.5 6zm4 3a.5.5 0 0 1 .49.4l.02.2c.04.196.194.35.39.39l.2.02a.5.5 0 0 1-.1.99A1.5 1.5 0 0 1 13 9.5a.5.5 0 0 1 .5-.5m4 0a.5.5 0 0 1 .5.5 1.5 1.5 0 0 1-1.5 1.5.5.5 0 0 1-.1-.99l.2-.02a.5.5 0 0 0 .39-.39l.02-.2a.5.5 0 0 1 .49-.4m-10-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5zm7-1a.5.5 0 0 1 .1.99l-.2.02a.5.5 0 0 0-.39.39l-.02.2a.5.5 0 0 1-.99-.1A1.5 1.5 0 0 1 14.5 6m2 0A1.5 1.5 0 0 1 18 7.5a.5.5 0 0 1-.99.1l-.02-.2a.5.5 0 0 0-.39-.39l-.2-.02a.5.5 0 0 1 .1-.99`})}),Lt=z({displayName:`ShadowBottomLeft`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M6 8v8a2 2 0 0 0 2 2h8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 1.796-1.99z`})]})}),Rt=z({displayName:`ShadowBottomRight`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M18.204 8.01A2 2 0 0 1 20 10v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-1.99-1.796L8 18h8a2 2 0 0 0 2-2V8z`})]})}),zt=z({displayName:`ShadowDown`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M18 19a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-3a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2z`})]})}),Bt=z({displayName:`ShadowLeft`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M8 6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`})]})}),Vt=z({displayName:`ShadowRight`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M19 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`})]})}),Ht=z({displayName:`ShadowTopLeft`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M14 4a2 2 0 0 1 2 2H8a2 2 0 0 0-2 2v8l-.204-.01A2 2 0 0 1 4 14V6a2 2 0 0 1 2-2z`})]})}),Ut=z({displayName:`ShadowTopRight`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M18 4a2 2 0 0 1 2 2v8a2 2 0 0 1-1.796 1.99L18 16V8a2 2 0 0 0-2-2H8a2 2 0 0 1 2-2z`})]})}),Wt=z({displayName:`ShadowUp`,path:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M16.204 6.01A2 2 0 0 1 18 8v8l-.01.204a2 2 0 0 1-1.786 1.785L16 18H8l-.204-.01a2 2 0 0 1-1.785-1.786L6 16V8a2 2 0 0 1 1.796-1.99L8 6h8zM8 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z`}),(0,f.jsx)(`path`,{fill:`var(--color-icon-tertiary)`,d:`M16 3a2 2 0 0 1 2 2v3a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2V5a2 2 0 0 1 2-2z`})]})}),Gt=z({displayName:`Sliders`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M8.5 18a.5.5 0 0 0 .5-.5v-1.55a2.5 2.5 0 0 0 0-4.9V6.5a.5.5 0 0 0-1 0v4.55a2.501 2.501 0 0 0 0 4.9v1.55a.5.5 0 0 0 .5.5m7 0a.5.5 0 0 0 .5-.5v-4.55a2.501 2.501 0 0 0 0-4.9V6.5a.5.5 0 0 0-1 0v1.55a2.5 2.5 0 0 0 0 4.9v4.55a.5.5 0 0 0 .5.5m0-6a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m-7 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3`})}),Kt=z({displayName:`String`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M8 7h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm3.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0V10h1.5v4H11a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-.5v-4H14v.5a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-.5-.5z`,clipRule:`evenodd`})}),qt=z({displayName:`Text`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M19.5 4a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V5h-6.5v14H15a.5.5 0 0 1 0 1H9a.5.5 0 0 1 0-1h2.5V5H5v2.5a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 .5-.5z`})}),Jt=z({displayName:`TextAlignCenter`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M5 7.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5m3 4a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 15a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1z`,clipRule:`evenodd`})}),Yt=z({displayName:`TextAlignLeft`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M5 7.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5m0 4a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m.5 3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1z`,clipRule:`evenodd`})}),Xt=z({displayName:`TextAlignRight`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M19 7.5a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0 0 1h13a.5.5 0 0 0 .5-.5m0 4a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0 0 1h7a.5.5 0 0 0 .5-.5m-.5 3.5a.5.5 0 0 1 0 1h-9a.5.5 0 0 1 0-1z`,clipRule:`evenodd`})}),Zt=z({displayName:`TextVerticalAlignBottom`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`m14.854 13.854-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 .708-.708L11 15.293V7.5a.5.5 0 0 1 1 0v7.793l2.146-2.147a.5.5 0 0 1 .708.708M5.5 19a.5.5 0 0 1 0-1h12a.5.5 0 0 1 0 1z`,clipRule:`evenodd`})}),Qt=z({displayName:`TextVerticalAlignMiddle`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`m11.854 9.854 2-2a.5.5 0 0 0-.708-.708L12 8.293V4.5a.5.5 0 0 0-1 0v3.793L9.854 7.146a.5.5 0 1 0-.708.708l2 2a.5.5 0 0 0 .708 0m0 3.292 2 2a.5.5 0 0 1-.708.708L12 14.707V18.5a.5.5 0 0 1-1 0v-3.793l-1.146 1.147a.5.5 0 0 1-.708-.708l2-2a.5.5 0 0 1 .708 0M5.5 11a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1z`,clipRule:`evenodd`})}),$t=z({displayName:`TextVerticalAlignTop`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M5.5 5a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1zm6.354 2.146a.5.5 0 0 0-.708 0l-3 3a.5.5 0 0 0 .708.708L11 8.707V16.5a.5.5 0 0 0 1 0V8.707l2.146 2.147a.5.5 0 0 0 .708-.708z`,clipRule:`evenodd`})}),en=z({displayName:`VariableMode`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M9.154 5.004A3 3 0 0 1 12 8v7a3 3 0 0 1-5.996.154L6 15V8a3 3 0 0 1 3-3zm7.953 7.544a.41.41 0 0 1 .512-.07A2.99 2.99 0 0 1 19 15a3 3 0 0 1-3 3h-3.29c-.371 0-.574-.492-.37-.802a.43.43 0 0 1 .356-.198H16a2 2 0 0 0 1.24-3.57c-.269-.211-.374-.64-.133-.882M9 6a2 2 0 0 0-2 2v7a2 2 0 0 0 4 0V8a2 2 0 0 0-2-2m0 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2m4.305-6.918a3 3 0 0 1 2.816.797l.107.112a3 3 0 0 1 0 4.018l-.107.112-2.267 2.268a.5.5 0 0 1-.707-.707l2.267-2.268a2 2 0 0 0-1.68-3.394c-.344.046-.734-.184-.734-.53 0-.19.12-.364.305-.408`})}),tn=z({displayName:`Variable`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,d:`M11 5.65a2 2 0 0 1 2 0l4 2.31a2 2 0 0 1 1 1.731v4.62a2 2 0 0 1-1 1.732l-4 2.309a2 2 0 0 1-2 0l-4-2.309a2 2 0 0 1-1-1.732.31.31 0 0 1 .31-.311h.38a.31.31 0 0 1 .31.31l.009.133c.04.305.22.578.491.734l4 2.31c.27.155.597.175.88.058l.12-.059 4-2.31a1 1 0 0 0 .491-.733L17 14.31V9.692a1 1 0 0 0-.5-.866l-4-2.308a1 1 0 0 0-1 0l-4 2.308-.11.074a1 1 0 0 0-.39.792.31.31 0 0 1-.309.309H6.31a.31.31 0 0 1-.31-.31A2 2 0 0 1 7 7.96zm1 4.351a2 2 0 1 1-1.935 2.499H5.5a.5.5 0 0 1 0-1h4.566A2 2 0 0 1 12 10.001m0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2`})}),nn=z({displayName:`Video`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,d:`M8 7h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm4.996 1.132A1 1 0 0 0 9.5 10v4a1 1 0 0 0 1.496.868l3.5-2a1 1 0 0 0 0-1.736zm.504 4.297-1 .571v-4l1 .571 1.492.853L14 12l-1.008.576z`,clipRule:`evenodd`})}),rn=z({displayName:`Styles`,path:(0,f.jsx)(`path`,{fill:`var(--color-icon)`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 10a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Zm7-1a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5ZM14 15.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 1 0 5 0 2.5 2.5 0 0 0-5 0ZM8.5 17a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z`})}),[an,on]=be(`Checkbox`),sn=l.default.forwardRef((e,t)=>{let{className:n,id:r,...i}=e,a=(0,l.useId)();return(0,f.jsx)(an,{id:r??a,children:(0,f.jsx)(`div`,{ref:t,className:(0,d.cx)(n,`fp-CheckboxRoot`),...i})})}),cn=l.default.forwardRef((e,t)=>{let{className:n,indeterminate:r,...i}=e,{id:a}=on(`Input`);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`input`,{ref:L(t,fn(r)),className:(0,d.cx)(n,`fp-CheckboxInput`),id:a,"aria-labelledby":`checkbox-label-${a}`,"aria-describedby":`checkbox-description-${a}`,...i,type:`checkbox`}),(0,f.jsx)(ln,{})]})}),ln=()=>(0,f.jsxs)(`span`,{className:`fp-CheckboxIndicator`,"aria-hidden":`true`,children:[(0,f.jsx)(B,{className:`fp-CheckboxCheckmark`,size:`4`}),(0,f.jsx)(Ue,{className:`fp-CheckboxIndeterminate`,size:`4`})]}),un=l.default.forwardRef((e,t)=>{let{className:n,...r}=e,{id:i}=on(`Input`);return(0,f.jsx)(le,{"aria-hidden":`true`,ref:t,className:(0,d.cx)(n,`fp-CheckboxLabel`),htmlFor:i,id:`checkbox-label-${i}`,...r})}),dn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e,{id:i}=on(`Description`);return(0,f.jsx)(R,{"aria-hidden":`true`,ref:t,className:(0,d.cx)(n,`fp-CheckboxDescription`),id:`checkbox-description-${i}`,...r})});function fn(e){return(0,l.useCallback)(t=>{t&&(t.indeterminate=!!e)},[e])}sn.displayName=`Checkbox.Root`,cn.displayName=`Checkbox.Input`,ln.displayName=`Checkbox.Indicator`,un.displayName=`Checkbox.Label`,dn.displayName=`Checkbox.Description`;var pn=o({Description:()=>dn,Input:()=>cn,Label:()=>un,Root:()=>sn}),mn=v.Select.Root,hn=v.Select.Portal,gn=v.Select.Value,_n=v.Select.Label,vn=v.Select.Arrow,yn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.Trigger,{ref:t,className:I(n,`fp-SelectTrigger`),...r})}),bn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.Icon,{ref:t,className:I(n,`fp-SelectTriggerIcon`),...r})}),xn=l.default.forwardRef((e,t)=>{let{className:n,positionMethod:r=`fixed`,...i}=e;return(0,f.jsx)(v.Select.Positioner,{ref:t,className:I(n,`fp-SelectPositioner`),positionMethod:r,...i})}),Sn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.Popup,{ref:t,className:I(n,`fp-MenuContent`),...r})}),Cn=l.default.forwardRef((e,t)=>(0,f.jsx)(v.Select.List,{ref:t,...e})),wn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.Item,{ref:t,className:I(n,`fp-MenuItem fp-MenuCheckboxItem`),...r})}),Tn=v.Select.ItemText,En=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.ItemIndicator,{ref:t,className:I(n,`fp-MenuItemIndicator`),...r})}),Dn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.Separator,{ref:t,className:I(n,`fp-MenuSeparator`),...r})}),On=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.Group,{ref:t,className:I(n,`fp-MenuGroup`),...r})}),kn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.GroupLabel,{ref:t,className:I(n,`fp-MenuLabel`),...r})}),An=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.ScrollUpArrow,{ref:t,className:I(n,`fp-SelectScrollUpButton`),...r})}),jn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(v.Select.ScrollDownArrow,{ref:t,className:I(n,`fp-SelectScrollDownButton`),...r})});yn.displayName=`Select.Trigger`,bn.displayName=`Select.Icon`,xn.displayName=`Select.Positioner`,Sn.displayName=`Select.Popup`,Cn.displayName=`Select.List`,wn.displayName=`Select.Item`,En.displayName=`Select.ItemIndicator`,Dn.displayName=`Select.Separator`,On.displayName=`Select.Group`,kn.displayName=`Select.GroupLabel`,An.displayName=`Select.ScrollUpArrow`,jn.displayName=`Select.ScrollDownArrow`;var Mn=o({Arrow:()=>vn,Group:()=>On,GroupLabel:()=>kn,Icon:()=>bn,Item:()=>wn,ItemIndicator:()=>En,ItemText:()=>Tn,Label:()=>_n,List:()=>Cn,Popup:()=>Sn,Portal:()=>hn,Positioner:()=>xn,Root:()=>mn,ScrollDownArrow:()=>jn,ScrollUpArrow:()=>An,Separator:()=>Dn,Trigger:()=>yn,Value:()=>gn}),Nn=y.Combobox.Root,Pn=y.Combobox.Label,Fn=y.Combobox.Value,In=y.Combobox.Portal,Ln=y.Combobox.Arrow,Rn=y.Combobox.Backdrop,zn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Trigger,{ref:t,className:I(n,`fp-SelectTrigger fp-ComboboxTrigger`),...r})}),Bn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Icon,{ref:t,className:I(n,`fp-SelectTriggerIcon fp-ComboboxTriggerIcon`),...r})}),Vn=l.default.forwardRef((e,t)=>{let{className:n,positionMethod:r=`fixed`,sideOffset:i=4,...a}=e;return(0,f.jsx)(y.Combobox.Positioner,{ref:t,className:I(n,`fp-ComboboxPositioner`),positionMethod:r,sideOffset:i,...a})}),Hn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Popup,{ref:t,className:I(n,`fp-ComboboxPopup`),...r})}),Un=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.InputGroup,{ref:t,className:I(n,`fp-ComboboxInputGroup`),...r})}),Wn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Input,{ref:t,className:I(n,`fp-Input fp-ComboboxInput`),...r})}),Gn=l.default.forwardRef((e,t)=>{let{placeholder:n=` `,...r}=e,i=l.default.useRef(null),a=L(t,i);function o(){nr(i.current),i.current?.focus()}return(0,f.jsxs)(l.default.Fragment,{children:[(0,f.jsx)(Ft,{}),(0,f.jsx)(Wn,{ref:a,placeholder:n,...r}),(0,f.jsx)(`button`,{type:`button`,"aria-label":`Clear search`,className:`fp-IconButton fp-size-small fp-ComboboxSearchClear`,onMouseDown:e=>e.preventDefault(),onClick:o,children:(0,f.jsx)(Je,{})})]})}),Kn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.List,{ref:t,className:I(n,`fp-ComboboxList`),...r})}),qn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Item,{ref:t,className:I(n,`fp-MenuItem fp-MenuCheckboxItem fp-ComboboxItem`),...r})}),Jn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.ItemIndicator,{ref:t,className:I(n,`fp-MenuItemIndicator fp-ComboboxItemIndicator`),...r})}),Yn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Empty,{ref:t,className:I(n,`fp-ComboboxMessage`),...r})}),Xn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Status,{ref:t,className:I(n,`fp-ComboboxMessage`),...r})}),Zn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Group,{ref:t,className:I(n,`fp-MenuGroup`),...r})}),Qn=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.GroupLabel,{ref:t,className:I(n,`fp-MenuLabel`),...r})}),$n=y.Combobox.Collection,er=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(b.Separator,{ref:t,className:I(n,`fp-MenuSeparator`),...r})}),tr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(y.Combobox.Clear,{ref:t,className:I(n,`fp-IconButton fp-size-small fp-ComboboxClear`),...r})});zn.displayName=`Combobox.Trigger`,Bn.displayName=`Combobox.Icon`,Vn.displayName=`Combobox.Positioner`,Hn.displayName=`Combobox.Popup`,Un.displayName=`Combobox.InputGroup`,Wn.displayName=`Combobox.Input`,Gn.displayName=`Combobox.SearchInput`,Kn.displayName=`Combobox.List`,qn.displayName=`Combobox.Item`,Jn.displayName=`Combobox.ItemIndicator`,Yn.displayName=`Combobox.Empty`,Xn.displayName=`Combobox.Status`,Zn.displayName=`Combobox.Group`,Qn.displayName=`Combobox.GroupLabel`,er.displayName=`Combobox.Separator`,tr.displayName=`Combobox.Clear`;function nr(e){if(e===null)return;let t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set;t===void 0?e.value=``:t.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0,cancelable:!0}))}var rr=o({Arrow:()=>Ln,Backdrop:()=>Rn,Clear:()=>tr,Collection:()=>$n,Empty:()=>Yn,Group:()=>Zn,GroupLabel:()=>Qn,Icon:()=>Bn,Input:()=>Wn,InputGroup:()=>Un,Item:()=>qn,ItemIndicator:()=>Jn,Label:()=>Pn,List:()=>Kn,Popup:()=>Hn,Portal:()=>In,Positioner:()=>Vn,Root:()=>Nn,SearchInput:()=>Gn,Separator:()=>er,Status:()=>Xn,Trigger:()=>zn,Value:()=>Fn}),ir=x.Menu.Root,ar=x.Menu.Trigger,or=x.Menu.Portal,sr=x.Menu.Positioner,cr=x.Menu.SubmenuRoot,lr=x.Menu.RadioGroup,ur=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.Popup,{ref:t,className:I(n,`fp-MenuContent`),...r})}),dr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.Item,{ref:t,className:I(n,`fp-MenuItem`),...r})}),fr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.Separator,{ref:t,className:I(n,`fp-MenuSeparator`),...r})}),pr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.GroupLabel,{ref:t,className:I(n,`fp-MenuLabel`),...r})}),mr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.Group,{ref:t,className:I(n,`fp-MenuGroup`),...r})}),hr=e=>{let{children:t,...n}=e;return(0,f.jsxs)(`div`,{...n,children:[t,(0,f.jsx)(Ge,{className:`fp-MenuSubtriggerCaret`})]})},gr=l.default.forwardRef((e,t)=>{let{className:n,render:r=hr,...i}=e;return(0,f.jsx)(x.Menu.SubmenuTrigger,{ref:t,className:I(n,`fp-MenuItem`),render:r,...i})}),_r=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.CheckboxItem,{ref:t,className:I(n,`fp-MenuItem fp-MenuCheckboxItem`),...r})}),vr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.CheckboxItemIndicator,{ref:t,className:I(n,`fp-MenuItemIndicator`),...r})}),yr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.RadioItem,{ref:t,className:I(n,`fp-MenuItem fp-MenuRadioItem`),...r})}),br=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(x.Menu.RadioItemIndicator,{ref:t,className:I(n,`fp-MenuItemIndicator`),...r})});ur.displayName=`DropdownMenu.Popup`,dr.displayName=`DropdownMenu.Item`,fr.displayName=`DropdownMenu.Separator`,mr.displayName=`DropdownMenu.Group`,pr.displayName=`DropdownMenu.GroupLabel`,gr.displayName=`DropdownMenu.SubmenuTrigger`,_r.displayName=`DropdownMenu.CheckboxItem`,vr.displayName=`DropdownMenu.CheckboxItemIndicator`,yr.displayName=`DropdownMenu.RadioItem`,br.displayName=`DropdownMenu.RadioItemIndicator`;var xr=o({CheckboxItem:()=>_r,CheckboxItemIndicator:()=>vr,Group:()=>mr,GroupLabel:()=>pr,Item:()=>dr,Popup:()=>ur,Portal:()=>or,Positioner:()=>sr,RadioGroup:()=>lr,RadioItem:()=>yr,RadioItemIndicator:()=>br,Root:()=>ir,Separator:()=>fr,SubmenuRoot:()=>cr,SubmenuTrigger:()=>gr,Trigger:()=>ar}),Sr=S.ContextMenu.Root,Cr=S.ContextMenu.Trigger,wr=S.ContextMenu.Portal,Tr=S.ContextMenu.Positioner,Er=S.ContextMenu.SubmenuRoot,Dr=S.ContextMenu.RadioGroup,Or=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.Popup,{ref:t,className:I(n,`fp-MenuContent`),...r})}),kr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.Item,{ref:t,className:I(n,`fp-MenuItem`),...r})}),Ar=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.Separator,{ref:t,className:I(n,`fp-MenuSeparator`),...r})}),jr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.GroupLabel,{ref:t,className:I(n,`fp-MenuLabel`),...r})}),Mr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.Group,{ref:t,className:I(n,`fp-MenuGroup`),...r})}),Nr=e=>{let{children:t,...n}=e;return(0,f.jsxs)(`div`,{...n,children:[t,(0,f.jsx)(Ge,{className:`fp-MenuSubtriggerCaret`})]})},Pr=l.default.forwardRef((e,t)=>{let{className:n,render:r=Nr,...i}=e;return(0,f.jsx)(S.ContextMenu.SubmenuTrigger,{ref:t,className:I(n,`fp-MenuItem`),render:r,...i})}),Fr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.CheckboxItem,{ref:t,className:I(n,`fp-MenuItem fp-MenuCheckboxItem`),...r})}),Ir=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.CheckboxItemIndicator,{ref:t,className:I(n,`fp-MenuItemIndicator`),...r})}),Lr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.RadioItem,{ref:t,className:I(n,`fp-MenuItem fp-MenuRadioItem`),...r})}),Rr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(S.ContextMenu.RadioItemIndicator,{ref:t,className:I(n,`fp-MenuItemIndicator`),...r})});Or.displayName=`ContextMenu.Popup`,kr.displayName=`ContextMenu.Item`,Ar.displayName=`ContextMenu.Separator`,Mr.displayName=`ContextMenu.Group`,jr.displayName=`ContextMenu.GroupLabel`,Pr.displayName=`ContextMenu.SubmenuTrigger`,Fr.displayName=`ContextMenu.CheckboxItem`,Ir.displayName=`ContextMenu.CheckboxItemIndicator`,Lr.displayName=`ContextMenu.RadioItem`,Rr.displayName=`ContextMenu.RadioItemIndicator`;var zr=o({CheckboxItem:()=>Fr,CheckboxItemIndicator:()=>Ir,Group:()=>Mr,GroupLabel:()=>jr,Item:()=>kr,Popup:()=>Or,Portal:()=>wr,Positioner:()=>Tr,RadioGroup:()=>Dr,RadioItem:()=>Lr,RadioItemIndicator:()=>Rr,Root:()=>Sr,Separator:()=>Ar,SubmenuRoot:()=>Er,SubmenuTrigger:()=>Pr,Trigger:()=>Cr}),Br=l.default.createContext({}),Vr=e=>{let{children:t,disableHoverablePopup:n,...r}=e,i=l.default.useMemo(()=>({disableHoverablePopup:n}),[n]);return(0,f.jsx)(Br.Provider,{value:i,children:(0,f.jsx)(w.Tooltip.Provider,{...r,children:t})})},Hr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(w.Tooltip.Popup,{ref:t,className:I(n,`fp-tooltip`),...r})}),Ur=e=>{let{className:t,...n}=e;return(0,f.jsx)(w.Tooltip.Arrow,{className:I(t,`fp-tooltip-arrow`),render:(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`5`,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:(0,f.jsx)(`polygon`,{points:`0,0 30,0 15,10`})}),...n})},Wr=l.default.forwardRef((e,t)=>{let{defaultOpen:n,disabled:r,open:i,onOpenChange:a,onOpenChangeComplete:o,delay:s,closeDelay:c,closeOnClick:u,disableHoverablePopup:d,trackCursorAxis:p,container:m,keepMounted:h,side:g,sideOffset:_,align:v,alignOffset:y,anchor:b,arrowPadding:x,collisionAvoidance:S,collisionBoundary:C,collisionPadding:T,disableAnchorTracking:E,positionMethod:D,sticky:O,children:k,content:A,...j}=e,M=l.default.useContext(Br);return(0,f.jsxs)(w.Tooltip.Root,{defaultOpen:n,disabled:r,disableHoverablePopup:d??M.disableHoverablePopup,onOpenChange:a,onOpenChangeComplete:o,open:i,trackCursorAxis:p,children:[(0,f.jsx)(w.Tooltip.Trigger,{closeDelay:c,closeOnClick:u,delay:s,render:k}),(0,f.jsx)(w.Tooltip.Portal,{keepMounted:h,container:m,children:(0,f.jsxs)(w.Tooltip.Positioner,{align:v,alignOffset:y,anchor:b,arrowPadding:x??8,collisionAvoidance:S,collisionBoundary:C,collisionPadding:T,disableAnchorTracking:E,positionMethod:D,side:g,sideOffset:_??7,sticky:O,children:[(0,f.jsx)(Hr,{ref:t,...j,children:A}),(0,f.jsx)(Ur,{})]})})]})});Wr.displayName=`Tooltip`;var Gr=(0,d.cva)(`fp-IconButton`,{variants:{size:{small:`fp-size-small`,medium:`fp-size-medium`},activeAppearance:{subtle:`fp-active-appearance-subtle`,solid:`fp-active-appearance-solid`}},defaultVariants:{size:`small`,activeAppearance:`subtle`}}),Kr=l.default.forwardRef((e,t)=>{let{className:n,size:r,activeAppearance:i,"aria-label":a,tooltipContent:o,disableTooltip:s,...c}=e,l=(0,f.jsx)(`button`,{ref:t,className:Gr({className:n,size:r,activeAppearance:i}),"aria-label":a,...c});return s?l:(0,f.jsx)(Wr,{content:o??a,children:l})});Kr.displayName=`IconButton`;var qr=l.default.forwardRef((e,t)=>{let{children:n,className:r,...i}=e;return(0,f.jsx)(`header`,{ref:t,className:(0,d.cx)(r,`fp-DialogBaseHeader`),...i,children:n})}),Jr=l.default.forwardRef((e,t)=>{let{className:n,size:r,...i}=e;return(0,f.jsx)(`div`,{ref:t,className:Xr({className:n,size:r}),...i})}),Yr=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(`div`,{ref:t,className:(0,d.cx)(n,`fp-DialogBaseControls`),...r})}),Xr=(0,d.cva)(`fp-DialogBaseSection`,{variants:{size:{base:`fp-DialogBaseSection-base`,small:`fp-DialogBaseSection-small`}},defaultVariants:{size:`base`}});qr.displayName=`Dialog.Header`,Jr.displayName=`Dialog.Section`,Yr.displayName=`Dialog.Controls`;var Zr=C.Popover.Root,Qr=C.Popover.Trigger,$r=C.Popover.Portal,ei=l.default.forwardRef((e,t)=>{let{positionMethod:n=`fixed`,...r}=e;return(0,f.jsx)(C.Popover.Positioner,{ref:t,positionMethod:n,...r})}),ti=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(C.Popover.Popup,{ref:t,className:I(n,`fp-DialogBaseContent`),...r})}),ni=l.default.forwardRef((e,t)=>{let{className:n,render:r=(0,f.jsx)(R,{weight:`strong`}),...i}=e;return(0,f.jsx)(C.Popover.Title,{ref:t,className:I(n,`fp-DialogBaseTitle`),render:r,...i})}),ri=l.default.forwardRef((e,t)=>{let{render:n=(0,f.jsx)(Kr,{"aria-label":`Close`,disableTooltip:!0,children:(0,f.jsx)(Ye,{})}),...r}=e;return(0,f.jsx)(C.Popover.Close,{ref:t,render:n,...r})});ti.displayName=`Popover.Popup`,ei.displayName=`Popover.Positioner`,ni.displayName=`Popover.Title`,ri.displayName=`Popover.Close`;var ii=o({Close:()=>ri,Controls:()=>Yr,Header:()=>qr,Popup:()=>ti,Portal:()=>$r,Positioner:()=>ei,Root:()=>Zr,Section:()=>Jr,Title:()=>ni,Trigger:()=>Qr}),ai=T.Dialog.Root,oi=T.Dialog.Portal,si=T.Dialog.Trigger,ci=(0,d.cva)([`fp-DialogBaseContent`,`fp-DialogContent`],{variants:{size:{1:`fp-size-1`,2:`fp-size-2`,3:`fp-size-3`,fullscreen:`fp-size-fullscreen`},placement:{center:`fp-placement-center`,top:`fp-placement-top`}},defaultVariants:{size:`2`,placement:`top`}}),li=l.default.forwardRef((e,t)=>{let{children:n,className:r,size:i,placement:a,...o}=e,s=ci({size:i,placement:a});return(0,f.jsx)(T.Dialog.Popup,{ref:t,className:I(r,s),...o,children:n})}),ui=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(T.Dialog.Backdrop,{ref:t,className:I(n,`fp-DialogBaseOverlay`),...r})}),di=l.default.forwardRef((e,t)=>{let{className:n,render:r=(0,f.jsx)(R,{weight:`strong`}),...i}=e;return(0,f.jsx)(T.Dialog.Title,{ref:t,className:I(n,`fp-DialogBaseTitle`),render:r,...i})}),fi=l.default.forwardRef((e,t)=>{let{render:n=(0,f.jsx)(Kr,{"aria-label":`Close`,disableTooltip:!0,children:(0,f.jsx)(Ye,{})}),...r}=e;return(0,f.jsx)(T.Dialog.Close,{ref:t,render:n,...r})});li.displayName=`Dialog.Popup`,ui.displayName=`Dialog.Backdrop`,di.displayName=`Dialog.Title`,fi.displayName=`Dialog.Close`;var pi=o({Backdrop:()=>ui,Close:()=>fi,Controls:()=>Yr,Header:()=>qr,Popup:()=>li,Portal:()=>oi,Root:()=>ai,Section:()=>Jr,Title:()=>di,Trigger:()=>si}),mi=E.AlertDialog.Root,hi=E.AlertDialog.Portal,gi=E.AlertDialog.Trigger,_i=E.AlertDialog.Close,vi=(0,d.cva)([`fp-DialogBaseContent`,`fp-AlertDialogContent`],{variants:{size:{1:`fp-size-1`,2:`fp-size-2`,3:`fp-size-3`},placement:{center:`fp-placement-center`,top:`fp-placement-top`}},defaultVariants:{size:`2`,placement:`top`}}),yi=l.default.forwardRef((e,t)=>{let{className:n,size:r,placement:i,...a}=e,o=vi({size:r,placement:i});return(0,f.jsx)(E.AlertDialog.Popup,{ref:t,className:I(n,o),...a})}),bi=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(E.AlertDialog.Backdrop,{ref:t,className:I(n,`fp-DialogBaseOverlay`),...r})}),xi=l.default.forwardRef((e,t)=>{let{className:n,render:r=(0,f.jsx)(R,{weight:`strong`}),...i}=e;return(0,f.jsx)(E.AlertDialog.Title,{ref:t,className:I(n,`fp-AlertDialogTitle`),render:r,...i})}),Si=l.default.forwardRef((e,t)=>{let{className:n,render:r=(0,f.jsx)(R,{}),...i}=e;return(0,f.jsx)(E.AlertDialog.Description,{ref:t,className:I(n,`fp-AlertDialogDescription`),render:r,...i})}),Ci=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(`div`,{ref:t,className:(0,d.cx)(n,`fp-AlertDialogActions`),...r})});yi.displayName=`AlertDialog.Popup`,bi.displayName=`AlertDialog.Backdrop`,xi.displayName=`AlertDialog.Title`,Si.displayName=`AlertDialog.Description`,Ci.displayName=`AlertDialog.Actions`;var wi=o({Actions:()=>Ci,Backdrop:()=>bi,Close:()=>_i,Description:()=>Si,Popup:()=>yi,Portal:()=>hi,Root:()=>mi,Title:()=>xi,Trigger:()=>gi}),[Ti,H]=be(`ValueFieldProvider`,null),U=l.default.forwardRef((e,t)=>{let{className:n,disabled:r,...i}=e,a=Ei(r,H(`Root`));return(0,f.jsx)(Ti,{...a,children:(0,f.jsx)(`label`,{ref:t,className:(0,d.cx)(n,`fp-ValueFieldRoot`),"data-disabled":a.disabled?``:void 0,"data-scrubbing":a.scrubbing?``:void 0,...i})})}),W=l.default.forwardRef((e,t)=>{let{className:n,disabled:r,...i}=e,a=Ei(r,H(`Multi`));return(0,f.jsx)(Ti,{...a,children:(0,f.jsx)(`div`,{ref:t,className:(0,d.cx)(n,`fp-ValueFieldMulti`),"data-disabled":a.disabled?``:void 0,"data-scrubbing":a.scrubbing?``:void 0,...i})})}),G=l.default.forwardRef((e,t)=>{let{className:n,...r}=e,i=H(`Root`);return(0,f.jsx)(`span`,{ref:t,className:(0,d.cx)(n,`fp-ValueFieldLabel`),"data-disabled":i?.disabled?``:void 0,...r})});U.displayName=`ValueField.Root`,G.displayName=`ValueField.Label`,W.displayName=`ValueField.Multi`;function Ei(e,t){let[n,r]=l.default.useState(!1),i=l.default.useRef([]),a=e||t?.disabled?!0:void 0,o=l.default.useCallback(e=>e?(i.current=[...i.current.filter(t=>t!==e),e],()=>{i.current=i.current.filter(t=>t!==e)}):()=>{},[]);return l.default.useMemo(()=>({disabled:a,scrubbing:n,scrubTargetsRef:i,registerScrubTarget:o,setScrubbing:r}),[a,o,n])}function K(e,t){let[n,r]=e,[i,a]=t;return function(e){return n===r||i===a?i:(e-n)/(r-n)*(a-i)+i}}function Di(){let[e,t]=(0,l.useState)(!0),n=(0,l.useCallback)(()=>{t(!0)},[]);return{onMouseLeave:(0,l.useCallback)(()=>{t(!1)},[]),onMouseUp:(0,l.useCallback)(n=>{e&&n.currentTarget.selectionStart===n.currentTarget.selectionEnd&&(n.currentTarget.select(),t(!1))},[e]),onFocus:n}}var Oi=l.default.forwardRef((e,t)=>{let{type:n=`text`,className:r,selectOnClick:i=!1,...a}=e,o=L((0,l.useRef)(null),t),{onMouseLeave:s,onMouseUp:c,onFocus:u}=Di(),p=i?(0,k.mergeProps)(a,{onMouseLeave:s,onMouseUp:c,onFocus:u}):a;return(0,f.jsx)(`input`,{ref:o,type:n,className:(0,d.cx)(r,`fp-Input`),...p})});Oi.displayName=`Input`;var ki=e=>{let{className:t,inputRef:n,value:r,onChange:i,smallNudge:a=1,bigNudge:o=10,formatter:s,disabled:c,...u}=e,p=(0,l.useRef)(null),m=L(n,p),h=(0,l.useRef)(r),[g,_]=(0,l.useState)(null),v=g??s.format(r),y=H(`ValueField`),b=c||y?.disabled?!0:void 0,x=y?.registerScrubTarget;l.default.useEffect(()=>{y?.scrubbing||(h.current=r)},[y?.scrubbing,r]);let S=e=>{let t=s.parse(e,r);if(e.length===0||!t.valid||t.value===r)return C();_(null),i(t.value)},C=()=>{_(null)},w=e=>{_(e.currentTarget.value)},T=e=>{let t=e.currentTarget;if(e.key===`Enter`&&(e.preventDefault(),t.blur()),e.key===`Escape`&&(e.preventDefault(),C(),requestAnimationFrame(()=>{t.blur()})),e.key===`ArrowUp`||e.key===`ArrowDown`){if(!s.incrementBy)return;e.preventDefault();let n=s.parse(t.value,r),i=n.valid?n.value:r,c=e.shiftKey?o:a,l=e.key===`ArrowUp`?c:-c,u=s.getIncrementTargets?s.getIncrementTargets(t):null,d=s.incrementBy(i,l,u);S(s.format(d)),requestAnimationFrame(()=>{if(u&&s.getIncrementSelection){let[e,n]=s.getIncrementSelection(u);t.setSelectionRange(e,n)}else t.select()})}},E=e=>{S(e.currentTarget.value)},D=l.default.useCallback(()=>{let e=p.current;if(_(null),!e){h.current=r;return}let t=s.parse(e.value,r);h.current=t.valid?t.value:r,e.focus()},[s,r]),O=l.default.useCallback((e,t)=>{if(!s.incrementBy)return;let n=h.current,r=t.shiftKey?o:a,c=s.incrementBy(n,e*r,null),l=s.parse(s.format(c),n);!l.valid||l.value===n||(h.current=l.value,_(null),i(l.value))},[o,s,i,a]);return l.default.useEffect(()=>{if(!(!x||!s.incrementBy))return x({disabled:!!b,inputRef:p,startScrub:D,scrub:O})},[b,s,O,D,x]),(0,f.jsx)(Oi,{ref:m,dir:`auto`,autoComplete:`off`,spellCheck:`false`,selectOnClick:!0,className:(0,d.cx)(t,`fp-ValueFieldBase`),value:v,onChange:w,disabled:b,...(0,k.mergeProps)({onBlur:E,onKeyDown:T},u)})};ki.displayName=`ValueField.Base`;var Ai=15,q=l.default.forwardRef((e,t)=>{let{value:n,onChange:r,min:i,max:a,targetRange:o,precision:s,suffix:c,allowedUnits:u,...d}=e;return(0,f.jsx)(ki,{inputRef:t,value:n,onChange:r,formatter:(0,l.useMemo)(()=>ji({min:i,max:a,precision:s,targetRange:o,suffix:c,allowedUnits:u}),[i,a,s,o,c,u]),...d})});function ji(e={}){let{min:t,max:n,targetRange:r,precision:i=Ai,suffix:a,allowedUnits:o=[]}=e,{toDisplayValue:s,fromDisplayValue:c}=Mi({min:t,max:n,targetRange:r});return{parse:(e,r)=>{try{return{valid:!0,value:(0,D.pipe)(e,e=>Pi({expression:e,displayValue:s(r),suffix:a,allowedUnits:o}),(0,D.round)(i),c,(0,D.clamp)({min:t,max:n}))}}catch{return{valid:!1}}},format:e=>(0,D.pipe)(e,(0,D.clamp)({min:t,max:n}),s,(0,D.round)(i),e=>Ni(e,a)),incrementBy(e,t){return e+c(t)}}}function Mi(e){let{min:t,max:n,targetRange:r}=e;if(!r)return{toDisplayValue:e=>e,fromDisplayValue:e=>e};if(typeof t!=`number`||typeof n!=`number`)throw Error(`'targetRange' requires specifying 'min' and 'max'.`);if(t===n)throw Error(`'min' and 'max' cannot be equal.`);return{toDisplayValue:K([t,n],r),fromDisplayValue:K(r,[t,n])}}function Ni(e,t){return Number.isNaN(e)?``:t?`${e}${t}`:`${e}`}function Pi(e){let{displayValue:t,expression:n,suffix:r=``,allowedUnits:i=[]}=e,a=`(\\d*\\.?\\d+)`,o=`(?:${[...i,r].join(`|`)})*`,s=(0,O.default)(n.replace(RegExp(`${a}${o}`,`gi`),(e,t)=>t).replace(RegExp(`${o}${a}`,`gi`),(e,t)=>t).replace(RegExp(`${a}%`,`gi`),(e,n)=>`(${t}*${n}/100)`).replace(RegExp(`%${a}`,`gi`),(e,n)=>`(${t}*${n}/100)`).replace(RegExp(`${a}x`,`gi`),(e,n)=>`(${t}*${n})`).replace(RegExp(`x${a}`,`gi`),(e,n)=>`(${t}*${n})`).replace(/(?<!\d)x(?!\d)/gi,`${t}`).trim());if(s===null)throw Error(`Invalid expression.`);return s}var Fi=2,Ii=4,Li=l.default.forwardRef((e,t)=>{let{children:n,className:r,onPointerDown:i,pixelSensitivity:a=Fi,teleportDistance:o,style:s,...c}=e,u=H(`Scrubber`),p=(0,l.useRef)(null),m=(0,l.useRef)(null),[h,g]=(0,l.useState)(null),_=L(t,l.default.useCallback(e=>{p.current=e,g(qi(e))},[])),[v,y]=(0,l.useState)(!1),[b,x]=(0,l.useState)(!1),[S,C]=(0,l.useState)(!1),w=(0,l.useRef)(!1),T=(0,l.useRef)(!1),E=(0,l.useRef)(null),D=(0,l.useRef)(0),O=(0,l.useRef)({x:0,y:0}),k=u?.scrubTargetsRef,j=u?.disabled,M=u?.setScrubbing,N=v&&!b&&!S&&!Ji(),P=l.default.useCallback((e,t)=>{(0,A.flushSync)(()=>{y(e),M?.(e)});let n=m.current;if(!e||!n)return;let r={x:t.clientX-n.offsetWidth/2,y:t.clientY-n.offsetHeight/2};O.current=r,Hi(n,r)},[M]),F=l.default.useCallback((e,t)=>{let n=m.current,r=p.current;if(!n||!r)return;let i=Wi(o,r),a=O.current,s=Ui({x:Math.round(a.x+e),y:Math.round(a.y+t)},i,n);O.current=s,Hi(n,s)},[o]);function I(e){i?.(e);let t=zi(k?.current,p.current),n=e.button===0;if(e.defaultPrevented||!n||j||!t||t.disabled)return;let r=e.pointerType===`touch`;x(r),C(!1),e.pointerType===`mouse`&&e.preventDefault(),t.startScrub(),w.current=!0,T.current=!1,D.current=0,E.current=e.nativeEvent.target,P(!0,e.nativeEvent),!r&&!Ji()&&Ri(p.current,C)}(0,l.useEffect)(()=>{if(!v||!k||j)return;let e=k,t=zi(e.current,p.current);if(!t||t.disabled)return;let n=Ki(p.current);if(!n)return;function r(t){if(w.current&&(t.preventDefault(),F(t.movementX,t.movementY),D.current+=t.movementX,Math.abs(D.current)>=a)){let n=D.current;D.current=0,T.current=!0;let r=zi(e.current,p.current);n!==0&&r&&!r.disabled&&r.scrub(n,t)}}function i(e){let t=Gi(p.current);typeof t?.exitPointerLock==`function`&&t.exitPointerLock(),w.current=!1,P(!1,e),Vi(E.current,p.current,T.current),T.current=!1,E.current=null,D.current=0}return n.addEventListener(`pointermove`,r,!0),n.addEventListener(`pointerup`,i,!0),()=>{n.removeEventListener(`pointermove`,r,!0),n.removeEventListener(`pointerup`,i,!0)}},[j,v,a,k,P,F]),(0,l.useEffect)(()=>{let e=p.current;if(!e||j)return;function t(e){e.touches.length===1&&e.preventDefault()}return e.addEventListener(`touchstart`,t),()=>{e.removeEventListener(`touchstart`,t)}},[j]);let ee={touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,...s};return(0,f.jsxs)(`span`,{ref:_,className:(0,d.cx)(r,`fp-ValueFieldScrubber`),"data-disabled":j?``:void 0,"data-scrubbing":v?``:void 0,role:`presentation`,style:ee,onPointerDown:I,...c,children:[n,N&&h?(0,A.createPortal)((0,f.jsx)(`span`,{ref:m,role:`presentation`,className:`fp-ValueFieldScrubberCursor`,children:(0,f.jsx)(Yi,{})}),h):null]})});function Ri(e,t){let n=Gi(e)?.body;if(!n||!n.requestPointerLock){t(!0);return}try{n.requestPointerLock().then(()=>t(!1),()=>t(!0))}catch{t(!0)}}function zi(e,t){if(!e||e.length===0)return null;if(!t||e.length===1)return e[0]??null;let n=t.closest(`.fp-ValueFieldRoot`),r=n?e.filter(e=>e.inputRef.current?.closest(`.fp-ValueFieldRoot`)===n):e;return Bi(r,t)??r[0]??null}function Bi(e,t){return e.find(e=>{let n=e.inputRef.current;return n?(t.compareDocumentPosition(n)&Ii)!==0:!1})??null}function Vi(e,t,n){if(n||!e)return;let r=Ki(t);r&&e.dispatchEvent(new r.MouseEvent(`click`,{bubbles:!0,cancelable:!0}))}function Hi(e,t){e.style.transform=`translate3d(${t.x}px,${t.y}px,0)`}function Ui(e,t,n){let r={...e},i=n.offsetWidth/2,a=n.offsetHeight/2;return r.x+i<t.left?r.x=t.right-i:r.x+i>t.right&&(r.x=t.left-i),r.y+a<t.top?r.y=t.bottom-a:r.y+a>t.bottom&&(r.y=t.top-a),r}function Wi(e,t){let n=t.getBoundingClientRect();if(e!==void 0)return{left:n.left-e/2,top:n.top-e/2,right:n.right+e/2,bottom:n.bottom+e/2};let r=Ki(t)?.visualViewport;return r?{left:r.offsetLeft,top:r.offsetTop,right:r.offsetLeft+r.width,bottom:r.offsetTop+r.height}:{left:0,top:0,right:t.ownerDocument.documentElement.clientWidth,bottom:t.ownerDocument.documentElement.clientHeight}}function Gi(e){return e?e.ownerDocument:typeof document>`u`?null:document}function Ki(e){return Gi(e)?.defaultView??null}function qi(e){return Gi(e)?.body??null}function Ji(){return typeof navigator<`u`&&/AppleWebKit/i.test(navigator.userAgent)&&!/(Chrome|Chromium|Edg|OPR|Firefox|HappyDOM)/i.test(navigator.userAgent)}function Yi(){return(0,f.jsx)(`svg`,{className:`fp-ValueFieldScrubberCursorIcon`,width:`26`,height:`14`,viewBox:`0 0 26 14`,"aria-hidden":`true`,children:(0,f.jsx)(`path`,{d:`M20.5 5.5H6.5V2L1 7L6.5 12V8.5H20.5V12L26 7L20.5 2V5.5Z`})})}Li.displayName=`ValueField.Scrubber`;var Xi=l.default.forwardRef((e,t)=>{let{className:n,style:r,value:i,onChange:a,options:o,onItemHighlighted:s,disabled:c,triggerLabel:u=`Select value`,...p}=e,m=o.includes(i),h=J(i),g=Zi(i,o,m),_=l.default.useRef(null),y=l.default.useRef(void 0);function b(e){e!==null&&a(Number(e))}function x(e){y.current!==e&&(y.current=e,s?.(e))}function S(e){e||x(void 0)}function C(e){e.target===e.currentTarget&&x(void 0)}return(0,f.jsxs)(v.Select.Root,{items:g,value:h,onValueChange:b,onOpenChange:S,disabled:c,children:[(0,f.jsxs)(W,{ref:_,className:(0,d.cx)(n,`fp-ValueFieldNumericSelect`),style:r,disabled:c,children:[(0,f.jsxs)(U,{className:`fp-ValueFieldNumericSelectField`,disabled:c,children:[(0,f.jsx)(Li,{}),(0,f.jsx)(q,{ref:t,value:i,onChange:a,disabled:c,...p})]}),(0,f.jsxs)(v.Select.Trigger,{className:`fp-ValueFieldNumericSelectTrigger`,"aria-label":u,children:[(0,f.jsx)(v.Select.Value,{}),(0,f.jsx)(v.Select.Icon,{className:`fp-ValueFieldNumericSelectIcon`,children:(0,f.jsx)(V,{size:`4`})})]})]}),(0,f.jsx)(v.Select.Portal,{children:(0,f.jsx)(v.Select.Positioner,{anchor:_,className:(0,d.cx)(`fp-ValueFieldNumericSelectPositioner`,m&&`fp-ValueFieldNumericSelectPositionerInOptions`),positionMethod:`fixed`,collisionPadding:0,children:(0,f.jsxs)(v.Select.Popup,{className:`fp-MenuContent`,onFocus:C,children:[(0,f.jsx)(v.Select.ScrollUpArrow,{className:`fp-SelectScrollUpButton`,children:(0,f.jsx)(Ke,{size:`4`})}),(0,f.jsxs)(v.Select.List,{children:[!m&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(v.Select.Item,{value:h,label:h,className:`fp-MenuItem fp-MenuCheckboxItem fp-ValueFieldNumericSelectCurrentItem`,onFocus:()=>x(i),children:[(0,f.jsx)(v.Select.ItemIndicator,{className:`fp-MenuItemIndicator`,children:(0,f.jsx)(B,{size:`4`})}),(0,f.jsx)(v.Select.ItemText,{children:i})]}),(0,f.jsx)(v.Select.Separator,{className:`fp-MenuSeparator`})]}),o.map(e=>(0,f.jsxs)(v.Select.Item,{value:J(e),label:J(e),className:`fp-MenuItem fp-MenuCheckboxItem`,onFocus:()=>x(e),children:[(0,f.jsx)(v.Select.ItemIndicator,{className:`fp-MenuItemIndicator`,children:(0,f.jsx)(B,{size:`4`})}),(0,f.jsx)(v.Select.ItemText,{children:e})]},J(e)))]}),(0,f.jsx)(v.Select.ScrollDownArrow,{className:`fp-SelectScrollDownButton`,children:(0,f.jsx)(V,{size:`4`})})]})})})]})});function Zi(e,t,n){let r=t.map(e=>{let t=J(e);return{value:t,label:t}});return n?r:[{value:J(e),label:J(e)},...r]}function J(e){return`${e}`}Xi.displayName=`ValueField.NumericSelect`;var Qi={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},$i=l.default.forwardRef((e,t)=>{let{value:n,onChange:r,ignoreAlpha:i=!1,...a}=e;return(0,f.jsx)(ki,{inputRef:t,value:n,onChange:r,formatter:(0,l.useMemo)(()=>ea({ignoreAlpha:i}),[i]),...a})});function ea(e){let{ignoreAlpha:t}=e;return{parse(e,n){if(ta(e)){let{r:t,g:r,b:i}=Qi[e];return{valid:!0,value:{r:t/255,g:r/255,b:i/255,a:n.a}}}try{return{value:(0,D.pipe)(e,na,e=>ra(e,n),ia,e=>t?{...e,a:1}:e),valid:!0}}catch{return{valid:!1}}},format(e){return(Math.round(e.r*255).toString(16).padStart(2,`0`)+Math.round(e.g*255).toString(16).padStart(2,`0`)+Math.round(e.b*255).toString(16).padStart(2,`0`)).toUpperCase()},incrementBy(e,t,n){return n??={r:!0,g:!0,b:!0},{r:n.r?(0,D.clamp)(Math.round(e.r*255)+t,{min:0,max:255})/255:e.r,g:n.g?(0,D.clamp)(Math.round(e.g*255)+t,{min:0,max:255})/255:e.g,b:n.b?(0,D.clamp)(Math.round(e.b*255)+t,{min:0,max:255})/255:e.b,a:e.a}},getIncrementTargets(e){let t=e.selectionStart,n=e.selectionEnd;return t===null||n===null?null:{r:t<2||t===2&&n===2,g:t<4&&n>=3||t===4&&n===4,b:n>=5}},getIncrementSelection(e){let t,n;return e?(t=e.r?0:e.g?2:4,n=e.b?6:e.g?4:2,[t,n]):[0,6]}}}function ta(e){return Object.keys(Qi).includes(e)}function na(e){return e.match(/[0-9a-f]+/gi)?.[0]??``}function ra(e,t){if(!/^[0-9a-f]{1,8}$/i.test(e))throw Error(`Invalid hex substring`);switch(e.length){case 1:return e.repeat(6)+aa(t.a);case 2:return e.repeat(3)+aa(t.a);case 3:return e.split(``).map(e=>e.repeat(2)).join(``)+aa(t.a);case 4:return e.slice(0,3).split(``).map(e=>e.repeat(2)).join(``)+e[3].repeat(2);case 5:return e.slice(0,3).split(``).map(e=>e.repeat(2)).join(``)+e.slice(-2);case 6:return e+aa(t.a);case 7:return e.slice(0,6)+e[6].repeat(2);case 8:return e;default:throw Error(`Invalid hex substring`)}}function ia(e){return{r:parseInt(e.substring(0,2),16)/255,g:parseInt(e.substring(2,4),16)/255,b:parseInt(e.substring(4,6),16)/255,a:parseInt(e.substring(6,8),16)/255}}function aa(e){return Math.round(e*255).toString(16)}var oa=o({Hex:()=>$i,Label:()=>G,Multi:()=>W,Numeric:()=>q,NumericSelect:()=>Xi,Root:()=>U,Scrubber:()=>Li});function sa(e){let t=(0,D.round)(e*255,0).toString(16);return t.length<2?`0`+t:t}function ca({r:e,g:t,b:n,a:r}){let i=r<1?sa(r):``;return`#`+sa(e)+sa(t)+sa(n)+i}function la(e){return ca(pa(e))}function ua(e){return ca(X(e))}function Y({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=a?i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a:0;return{h:60*(o<0?o+6:o),s:i?a/i*100:0,v:i*100,a:r}}function X({h:e,s:t,v:n,a:r}){e=e/360*6,t/=100,n/=100;let i=Math.floor(e),a=n*(1-t),o=n*(1-(e-i)*t),s=n*(1-(1-e+i)*t),c=i%6;return{r:[n,o,a,a,s,n][c],g:[s,n,n,o,a,a][c],b:[a,a,s,n,n,o][c],a:r}}function da({h:e,s:t,l:n,a:r}){return t*=(n<50?n:100-n)/100,{h:e,s:t>0?2*t/(n+t)*100:0,v:n+t,a:r}}function fa({h:e,s:t,v:n,a:r}){let i=(200-t)*n/100;return{h:e,s:i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:r}}function pa(e){return X(da(e))}function ma(e){return fa(Y(e))}function Z(e){let t=(0,D.round)(e.r,4),n=(0,D.round)(e.g,4),r=(0,D.round)(e.b,4),i=(0,D.round)(e.a,2);return i<1?`color(display-p3 ${t} ${n} ${r} / ${i})`:`color(display-p3 ${t} ${n} ${r})`}function Q(e){let t=Math.round(e.r*255),n=Math.round(e.g*255),r=Math.round(e.b*255),i=e.a;return i<1?`rgb(${t} ${n} ${r} / ${i})`:`rgb(${t} ${n} ${r})`}function ha(e){let{r:t,g:n,b:r,a:i}=e;return{r:t+(1-t)*(1-i),g:n+(1-n)*(1-i),b:r+(1-r)*(1-i),a:1}}var ga={r:0,g:0,b:0,a:1},_a=[`hex`,`rgb`,`hsl`,`hsv`],[va,$]=be(`ColorPicker`),ya=e=>{let{colorSpace:t,models:n=_a,defaultActiveModel:r,activeModel:i,onActiveModelChange:a,defaultColor:o,color:s,onColorChange:c,children:u}=e;ba(i,r,n);let[d=ga,p]=pe({prop:s,defaultProp:o,onChange:c}),[m=n[0],h]=pe({prop:i,defaultProp:r,onChange:a}),[g,_]=(0,l.useState)({}),v={hsv:g.hsv??Y(d),hsl:g.hsl??ma(d),rgb:g.rgb??d,hex:g.hex??ca(d)},y=v.hsv.h;return(0,f.jsx)(va,{colorSpace:t,models:n,activeModel:m,onActiveModelChange:h,color:d,onColorChange:e=>{let{mode:t,value:n}=e;t===`rgb`?(_({rgb:n,hsv:Y(n),hsl:ma(n),hex:ca(n)}),p(n)):t===`hsv`?(_({hsv:n,hsl:fa(n),rgb:X(n),hex:ua(n)}),p(X(n))):t===`hsl`&&(_({hsv:da(n),hsl:n,rgb:pa(n),hex:la(n)}),p(pa(n)))},hue:y,colorsByModel:v,children:u})};function ba(e,t,n){if(n.length===0)throw Error(`The 'models' prop must contain at least one color model. Omit the 'models' prop entirely to use default models.`);if(e&&!n.includes(e))throw Error(`Invalid 'activeModel': '${e}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`);if(t&&!n.includes(t))throw Error(`Invalid 'defaultActiveModel': '${t}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`)}var xa=2,Sa=0,Ca=100,wa=`horizontal`,Ta=`ltr`,Ea=(0,d.cva)(`fp-SliderRoot`,{variants:{size:{small:`fp-size-small`,large:`fp-size-large`}},defaultVariants:{size:`large`}}),Da=l.default.forwardRef((e,t)=>{let{className:n,size:r,min:i=Sa,max:a=Ca,defaultValue:o=[i],value:s,onValueChange:c,onValueCommit:u,tabIndex:p,orientation:m=wa,dir:h=Ta,inverted:g,disabled:_,step:v=1,minStepsBetweenThumbs:y,range:b=!0,rangeAnchor:x,baseValue:S,hints:C,...w}=e,T=H(`Slider`),E=_||T?.disabled,O=(0,l.useRef)(null),k=L(O,t),[A,N]=(0,l.useState)(s??o),P=ja(A,g,i,a),F=ja(o,g,i,a),ee=(0,l.useRef)(s),te=(0,l.useRef)(o);return(0,l.useEffect)(()=>{(0,D.isDeepEqual)(s,ee.current)&&(0,D.isDeepEqual)(o,te.current)||(N(s??o),ee.current=s,te.current=o)},[s,o]),(0,f.jsx)(j.DirectionProvider,{direction:h,children:(0,f.jsx)(M.Slider.Root,{className:I(n,Ea({size:r})),defaultValue:F,dir:h===Ta?void 0:h,disabled:E,max:a,min:i,minStepsBetweenValues:y,onValueChange:(e,t)=>{let n=Na(Ma(e,g,i,a),t,O.current,m,h,g,i,a,v).map(e=>za(e,C,i,a));c?.(n),N(n)},onValueCommitted:(e,t)=>{let n=Na(Ma(e,g,i,a),t,O.current,m,h,g,i,a,v).map(e=>za(e,C,i,a));u?.(n)},orientation:m,step:v,thumbAlignment:`center`,value:P,...w,children:(0,f.jsxs)(M.Slider.Control,{ref:k,className:`fp-SliderControl`,tabIndex:p??-1,children:[(0,f.jsx)(M.Slider.Track,{className:`fp-SliderTrack`,style:{position:`static`},children:A.map((e,t)=>(0,f.jsx)(M.Slider.Thumb,{index:t,className:(0,d.cx)(`fp-SliderThumb`,{"fp-SliderThumb-focusVisible":!0,"fp-SliderThumb-baseValue":e===S})},t))}),b&&(0,f.jsx)(ka,{dir:h,value:A,min:i,max:a,orientation:m,inverted:g,rangeAnchor:x,disabled:E}),C&&C.map(e=>(0,f.jsx)(Oa,{hint:e,baseValue:S,min:i,max:a,orientation:m,dir:h,inverted:g},e))]})})})});Da.displayName=`Slider`;var Oa=e=>{let{baseValue:t,dir:n,inverted:r,max:i,min:a,orientation:o,hint:s}=e,{startEdge:c}=Aa(o,n,r),l=K([a,i],[0,100])(s);return(0,f.jsx)(`span`,{className:(0,d.cx)(`fp-SliderHint`,{"fp-SliderHint-baseValue":s===t}),"data-orientation":o,style:{[c]:`calc(${l}% - var(--slider-hint-width) / 2)`}})},ka=e=>{let{min:t,max:n,value:r,rangeAnchor:i=t,orientation:a,dir:o,inverted:s,disabled:c}=e,l=r.length>1?Math.min(...r):Math.min(i,...r),u=r.length>1?Math.max(...r):Math.max(i,...r),d=K([t,n],[0,100])(l),p=100-K([t,n],[0,100])(u),m=Aa(a,o,s);return(0,f.jsx)(`span`,{className:`fp-SliderRange`,"data-orientation":a,"data-disabled":c?``:void 0,style:{[m.startEdge]:`${d}%`,[m.endEdge]:`${p}%`}})};function Aa(e,t,n){let r=n?`inverted`:`normal`;return{vertical:{normal:{startEdge:`bottom`,endEdge:`top`},inverted:{startEdge:`top`,endEdge:`bottom`}},horizontal:{normal:{startEdge:t===`ltr`?`left`:`right`,endEdge:t===`ltr`?`right`:`left`},inverted:{startEdge:t===`ltr`?`right`:`left`,endEdge:t===`ltr`?`left`:`right`}}}[e][r]}function ja(e,t,n,r){let i=Ra(e,t,n,r);if(i.length===1){let e=i[0];if(e!==void 0)return e}return i}function Ma(e,t,n,r){return Ra(typeof e==`number`?[e]:e,t,n,r)}function Na(e,t,n,r,i,a,o,s,c){if(t.reason!==`track-press`||n===null)return e;let l=n.parentElement,u=Pa(t.event);if(l===null||u===void 0)return e;let d=Ia(u,l.getBoundingClientRect(),r,i,a),f=La(o+(s-o)*d,o,s,c),p=Fa(t);return e.map((t,n)=>n===p||e.length===1?f:t)}function Pa(e){if(`clientX`in e&&`clientY`in e&&typeof e.clientX==`number`&&typeof e.clientY==`number`)return{x:e.clientX,y:e.clientY}}function Fa(e){if(`activeThumbIndex`in e&&typeof e.activeThumbIndex==`number`)return e.activeThumbIndex}function Ia(e,t,n,r,i){let a=n===`vertical`?(t.bottom-e.y)/t.height:(e.x-t.left)/t.width,o=n===`horizontal`&&r===`rtl`?1-a:a,s=i?1-o:o;return Math.min(1,Math.max(0,s))}function La(e,t,n,r){let i=t+Math.round((e-t)/r)*r,a=Number(i.toFixed(10));return Math.min(n,Math.max(t,a))}function Ra(e,t,n,r){return t?e.map(e=>n+r-e):[...e]}function za(e,t,n,r){let i=K([0,100],[0,r-n])(xa),a=t?.find(t=>Math.abs(t-e)<=i);return typeof a==`number`?a:e}var Ba=e=>{let{className:t,style:n}=e,{activeModel:r,colorSpace:i,hue:a,color:o,onColorChange:s}=$(`Hue`),c=Ha[r],l=e=>{s({mode:`rgb`,value:c.setHue(o,e[0])})},u=c.getThumbColor(a,i);return(0,f.jsx)(Da,{"aria-label":`hue`,range:!1,min:0,max:359,value:[a],onValueChange:l,className:`fp-ColorPickerHueSlider fp-color-model-${r} fp-color-space-${i} ${t}`,style:{"--slider-thumb-bg":u,...n}})},Va={getHue:e=>Math.round(Y(e).h),setHue:(e,t)=>{let{s:n,v:r}=Y(e);return X({h:t,s:n,v:r,a:e.a})},getThumbColor:(e,t)=>{let{r:n,g:r,b:i}=X({h:e,s:100,v:100,a:1});return t===`display-p3`?`color(display-p3 ${+n.toFixed(4)} ${+r.toFixed(4)} ${+i.toFixed(4)})`:`rgb(${Math.round(n*255)} ${Math.round(r*255)} ${Math.round(i*255)})`}},Ha={rgb:Va,hsl:Va,hsv:Va,hex:Va},Ua=e=>{let{className:t,style:n}=e,{colorSpace:r,color:i,onColorChange:a}=$(`Hue`),o={srgb:{transparent:Q({...i,a:0}),opaque:Q({...i,a:1})},p3:{transparent:Z({...i,a:0}),opaque:Z({...i,a:1})}},s={srgb:Q(ha(i)),p3:Z(ha(i))};return(0,f.jsx)(Da,{"aria-label":`alpha`,min:0,max:100,range:!1,value:[i.a*100],onValueChange:e=>{a({mode:`rgb`,value:{...i,a:(0,D.round)(e[0]/100,2)}})},className:`fp-ColorPickerAlphaSlider fp-color-space-${r} ${t}`,style:{"--track-bg-transparent-srgb":o.srgb.transparent,"--track-bg-opaque-srgb":o.srgb.opaque,"--track-bg-transparent-p3":o.p3.transparent,"--track-bg-opaque-p3":o.p3.opaque,"--thumb-bg-srgb":s.srgb,"--thumb-bg-p3":s.p3,...n}})},Wa=8,Ga=e=>{let{onColorChange:t,colorsByModel:n,hue:r,colorSpace:i,activeModel:a}=$(`ColorPicker.Area`),o={srgb:Q(X({h:r,s:100,v:100,a:1})),p3:Z(X({h:r,s:100,v:100,a:1}))},s={srgb:Q(n.rgb),p3:Z(n.rgb)},c=Ka(n,a),u=(0,l.useRef)(null),{size:d}=qa(u),p=e=>{t(a===`hsl`?{mode:`hsl`,value:{h:r,s:e.x,l:100-e.y,a:n.rgb.a}}:{mode:`hsv`,value:{h:r,s:e.x,v:100-e.y,a:n.rgb.a}})},m=e=>{if(e.type===`pointerdown`&&e.currentTarget.setPointerCapture(e.pointerId),e.type===`pointermove`&&!e.currentTarget.hasPointerCapture(e.pointerId))return;let t=e.currentTarget.getBoundingClientRect();p({x:(0,D.pipe)(e.clientX-t.x,K([0,d],[0,100]),(0,D.clamp)({min:0,max:100})),y:(0,D.pipe)(e.clientY-t.y-Wa,K([0,d],[0,100]),(0,D.clamp)({min:0,max:100}))})};return(0,f.jsxs)(`div`,{ref:u,className:`fp-ColorPickerArea`,onPointerDown:m,onPointerMove:m,style:{"--base-color-srgb":o.srgb,"--base-color-p3":o.p3},children:[(0,f.jsx)(`div`,{className:`fp-ColorPickerAreaCanvas fp-color-space-${i} fp-color-model-${a}`}),(0,f.jsx)(`div`,{tabIndex:0,onKeyDown:e=>{let t=e.shiftKey?10:1,n={ArrowRight:{x:1,y:0},ArrowLeft:{x:-1,y:0},ArrowDown:{x:0,y:1},ArrowUp:{x:0,y:-1}}[e.key];n&&p({x:(0,D.clamp)(c.x+n.x*t,{min:0,max:100}),y:(0,D.clamp)(c.y+n.y*t,{min:0,max:100})})},className:`fp-ColorPickerThumb fp-color-space-${i}`,style:{"--thumb-bg-srgb":s.srgb,"--thumb-bg-p3":s.p3,left:`${c.x}%`,top:`${c.y}%`}})]})};function Ka(e,t){if(t===`hsl`){let t=e.hsl;return{x:t.s,y:100-t.l}}else{let t=e.hsv;return{x:t.s,y:100-t.v}}}function qa(e){let[t,n]=l.default.useState(0);return l.default.useLayoutEffect(()=>{let t=e.current;if(!t)return;n(t.getBoundingClientRect().width);let r=new ResizeObserver(e=>{for(let t of e)n(t.contentRect.width)});return r.observe(t),()=>{r.unobserve(t)}},[e]),{size:t}}var Ja={0:`fp-gap-0`,px:`fp-gap-px`,"0.5":`fp-gap-0_5`,1:`fp-gap-1`,"1.5":`fp-gap-1_5`,2:`fp-gap-2`,"2.5":`fp-gap-2_5`,3:`fp-gap-3`,"3.5":`fp-gap-3_5`,4:`fp-gap-4`,5:`fp-gap-5`,6:`fp-gap-6`,7:`fp-gap-7`,8:`fp-gap-8`,9:`fp-gap-9`,10:`fp-gap-10`,11:`fp-gap-11`,12:`fp-gap-12`,13:`fp-gap-13`,14:`fp-gap-14`,15:`fp-gap-15`,16:`fp-gap-16`},Ya=(0,d.cva)(`fp-Flex`,{variants:{direction:{row:`fp-direction-row`,column:`fp-direction-column`,rowReverse:`fp-direction-row-reverse`,columnReverse:`fp-direction-column-reverse`},align:{start:`fp-align-start`,center:`fp-align-center`,end:`fp-align-end`,baseline:`fp-align-baseline`,stretch:`fp-align-stretch`},justify:{start:`fp-justify-start`,center:`fp-justify-center`,end:`fp-justify-end`,between:`fp-justify-between`},wrap:{nowrap:`fp-wrap-nowrap`,wrap:`fp-wrap-wrap`,wrapReverse:`fp-wrap-wrap-reverse`},gap:Ja,columnGap:Ja,rowGap:Ja},defaultVariants:{direction:`row`}}),Xa=l.default.forwardRef((e,t)=>{let{className:n,direction:r,align:i,justify:a,wrap:o,gap:s,columnGap:c,rowGap:l,...u}=e;return(0,f.jsx)(`div`,{ref:t,className:Ya({className:n,direction:r,align:i,justify:a,wrap:o,gap:s,columnGap:c,rowGap:l}),...u})});Xa.displayName=`Flex`;var Za={hex:()=>{let{colorsByModel:e,onColorChange:t}=$(`ColorPicker.HEX`),n=e.rgb;return(0,f.jsxs)(W,{children:[(0,f.jsx)(U,{children:(0,f.jsx)($i,{onChange:e=>{t({mode:`rgb`,value:e})},value:n})}),(0,f.jsxs)(U,{style:{flex:`0 0 52px`},children:[(0,f.jsx)(q,{onChange:e=>{t({mode:`rgb`,value:{...n,a:e}})},value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:[`%`]}),(0,f.jsx)(G,{children:`%`})]})]})},hsv:()=>{let{colorsByModel:e,onColorChange:t}=$(`ColorPicker.HSVA`),n=e.hsv,r=e=>r=>{t({mode:`hsv`,value:{...n,[e]:r}})};return(0,f.jsxs)(W,{children:[(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`h`),value:n.h,min:0,max:360,precision:0})}),(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`s`),value:n.s,min:0,max:100,precision:0})}),(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`v`),value:n.v,min:0,max:100,precision:0})}),(0,f.jsxs)(U,{style:{flex:`0 0 52px`},children:[(0,f.jsx)(q,{onChange:r(`a`),value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:[`%`]}),(0,f.jsx)(G,{children:`%`})]})]})},hsl:()=>{let{colorsByModel:e,onColorChange:t}=$(`ColorPicker.HSLA`),n=e.hsl,r=e=>r=>{t({mode:`hsl`,value:{...n,[e]:r}})};return(0,f.jsxs)(W,{children:[(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`h`),value:n.h,min:0,max:360,precision:0})}),(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`s`),value:n.s,min:0,max:100,precision:0})}),(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`l`),value:n.l,min:0,max:100,precision:0})}),(0,f.jsxs)(U,{style:{flex:`0 0 52px`},children:[(0,f.jsx)(q,{onChange:r(`a`),value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:[`%`]}),(0,f.jsx)(G,{children:`%`})]})]})},rgb:()=>{let{colorsByModel:e,onColorChange:t}=$(`ColorPicker.RGBA`),n=e.rgb,r=e=>r=>{t({mode:`rgb`,value:{...n,[e]:r}})};return(0,f.jsxs)(W,{children:[(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`r`),value:n.r,min:0,max:1,targetRange:[0,255],precision:0})}),(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`g`),value:n.g,min:0,max:1,targetRange:[0,255],precision:0})}),(0,f.jsx)(U,{children:(0,f.jsx)(q,{onChange:r(`b`),value:n.b,min:0,max:1,targetRange:[0,255],precision:0})}),(0,f.jsxs)(U,{style:{flex:`0 0 52px`},children:[(0,f.jsx)(q,{onChange:r(`a`),value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:[`%`]}),(0,f.jsx)(G,{children:`%`})]})]})}},Qa=e=>{let{models:t,activeModel:n,onActiveModelChange:r}=$(`ColorPicker.Input`),i=Za[n],a=t.map(e=>({value:e,label:e.toUpperCase()}));function o(e){e!==null&&r(e)}return(0,f.jsxs)(Xa,{gap:`2.5`,className:e.className,style:e.style,children:[t.length>1&&(0,f.jsxs)(mn,{items:a,value:n,onValueChange:o,children:[(0,f.jsxs)(yn,{style:{width:56},children:[(0,f.jsx)(gn,{}),(0,f.jsx)(bn,{children:(0,f.jsx)(V,{})})]}),(0,f.jsx)($a,{children:a.map(e=>(0,f.jsxs)(wn,{value:e.value,label:e.label,children:[(0,f.jsx)(En,{children:(0,f.jsx)(B,{size:`4`})}),(0,f.jsx)(Tn,{children:e.label})]},e.value))})]}),(0,f.jsx)(i,{})]})};function $a(e){let{children:t}=e;return(0,f.jsx)(hn,{children:(0,f.jsx)(xn,{children:(0,f.jsxs)(Sn,{children:[(0,f.jsx)(An,{children:(0,f.jsx)(Ke,{})}),(0,f.jsx)(Cn,{children:t}),(0,f.jsx)(jn,{children:(0,f.jsx)(V,{})})]})})})}var eo=o({Alpha:()=>Ua,Area:()=>Ga,Hue:()=>Ba,Input:()=>Qa,Root:()=>ya,useColorPickerContext:()=>$}),to=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(N.Collapsible.Root,{ref:t,className:I(n,`fp-CollapsibleRoot`),...r})}),no=l.default.forwardRef((e,t)=>{let{className:n,children:r,...i}=e;return(0,f.jsxs)(N.Collapsible.Trigger,{ref:t,className:I(n,`fp-CollapsibleTrigger`),...i,children:[(0,f.jsx)(Ge,{viewBox:`4 4 16 16`,size:`4`,className:`fp-CollapsibleIndicator`}),r]})}),ro=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(N.Collapsible.Panel,{ref:t,className:I(n,`fp-CollapsibleContent`),...r})});to.displayName=`Collapsible.Root`,no.displayName=`Collapsible.Trigger`,ro.displayName=`Collapsible.Panel`;var io=o({Panel:()=>ro,Root:()=>to,Trigger:()=>no}),ao=(0,d.cva)(`fp-Button`,{variants:{variant:{primary:`fp-variant-primary`,secondary:`fp-variant-secondary`,inverse:`fp-variant-inverse`,destructive:`fp-variant-destructive`,success:`fp-variant-success`,text:`fp-variant-text`},size:{small:`fp-size-small`,medium:`fp-size-medium`},fullWidth:{true:`fp-full-width`}},defaultVariants:{variant:`secondary`,size:`small`}}),oo=l.default.forwardRef((e,t)=>{let{className:n,variant:r,size:i,fullWidth:a,...o}=e;return(0,f.jsx)(`button`,{ref:t,className:ao({className:n,variant:r,size:i,fullWidth:a}),...o})});oo.displayName=`Button`;var so=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(P.default,{className:(0,d.cx)(n,`fp-textarea`),ref:t,...r})});so.displayName=`Textarea`;var co=l.default.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,f.jsx)(F.Switch.Root,{ref:t,className:I(n,`fp-switchRoot`),...r,children:(0,f.jsx)(F.Switch.Thumb,{className:`fp-switchThumb`})})});co.displayName=`Switch`,exports.ActionsIcon=Ae,Object.defineProperty(exports,"AlertDialog",{enumerable:!0,get:function(){return wi}}),exports.AlignBottomIcon=je,exports.AlignHorizontalCenterIcon=Me,exports.AlignLeftIcon=Ne,exports.AlignRightIcon=Pe,exports.AlignTopIcon=Fe,exports.AlignVerticalCenterIcon=Ie,exports.AnnotationIcon=Le,exports.AspectRatioIcon=Re,exports.AutoHeightIcon=ze,exports.AutoWidthIcon=Be,exports.BlendModeIcon=Ve,exports.BooleanIcon=He,exports.Button=oo,Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return pn}}),exports.CheckmarkIcon=B,exports.CheckmarkIndeterminateIcon=Ue,exports.ChevronDownIcon=V,exports.ChevronLeftIcon=We,exports.ChevronRightIcon=Ge,exports.ChevronUpIcon=Ke,exports.CircleIcon=qe,exports.ClearIcon=Je,exports.CloseIcon=Ye,exports.CodeIcon=Xe,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,"ColorPicker",{enumerable:!0,get:function(){return eo}}),Object.defineProperty(exports,"Combobox",{enumerable:!0,get:function(){return rr}}),exports.CommentIcon=Ze,exports.ComponentIcon=Qe,exports.ConstraintLeftIcon=$e,exports.ConstraintTopIcon=et,Object.defineProperty(exports,"ContextMenu",{enumerable:!0,get:function(){return zr}}),exports.CornerRadiusIcon=tt,exports.DesignIcon=nt,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return pi}}),exports.DrawIcon=rt,Object.defineProperty(exports,"DropdownMenu",{enumerable:!0,get:function(){return xr}}),exports.EllipsisIcon=it,exports.ExpandIcon=at,exports.EyeIcon=ot,exports.EyedropperIcon=st,exports.FigmaIcon=dt,exports.FillGradientIcon=ct,exports.FillPatternIcon=lt,exports.FillSolidIcon=ut,exports.FixedSizeIcon=ft,exports.Flex=Xa,exports.FlipHorizontalIcon=pt,exports.FlipVerticalIcon=mt,exports.FrameIcon=ht,exports.HelpIcon=gt,exports.IconButton=Kr,exports.ImageIcon=_t,exports.Input=Oi,exports.Label=le,exports.LayersCollapseIcon=vt,exports.LetterSpacingIcon=yt,exports.LineHeightIcon=bt,exports.Link=de,exports.LinkIcon=xt,exports.MinusIcon=St,exports.MoveIcon=Ct,exports.NumberIcon=wt,exports.OpacityIcon=Tt,exports.PaletteIcon=Et,exports.PanelLeftCloseIcon=Dt,exports.Paragraph=ue,exports.PenIcon=Ot,exports.PlayIcon=kt,exports.PlusIcon=At,Object.defineProperty(exports,"Popover",{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return Ee}}),exports.RectangleIcon=jt,exports.RotateClockwiseIcon=Mt,exports.RotationIcon=Nt,exports.RulerIcon=Pt,exports.SearchIcon=Ft,Object.defineProperty(exports,"SegmentedControl",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Mn}}),exports.SelectMatchingIcon=It,exports.ShadowBottomLeftIcon=Lt,exports.ShadowBottomRightIcon=Rt,exports.ShadowDownIcon=zt,exports.ShadowLeftIcon=Bt,exports.ShadowRightIcon=Vt,exports.ShadowTopLeftIcon=Ht,exports.ShadowTopRightIcon=Ut,exports.ShadowUpIcon=Wt,exports.Slider=Da,exports.SlidersIcon=Gt,exports.StringIcon=Kt,exports.StylesIcon=rn,exports.Switch=co,Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return se}}),exports.Text=R,exports.TextAlignCenterIcon=Jt,exports.TextAlignLeftIcon=Yt,exports.TextAlignRightIcon=Xt,exports.TextIcon=qt,exports.TextVerticalAlignBottomIcon=Zt,exports.TextVerticalAlignMiddleIcon=Qt,exports.TextVerticalAlignTopIcon=$t,exports.Textarea=so,exports.Tooltip=Wr,exports.TooltipProvider=Vr,Object.defineProperty(exports,"ValueField",{enumerable:!0,get:function(){return oa}}),exports.VariableIcon=tn,exports.VariableModeIcon=en,exports.VideoIcon=nn,exports.createIcon=z;
|