@boilerhaus-ui/boilerhaus-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/components/Accordion/Accordion.d.ts +22 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Alert/Alert.d.ts +34 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +23 -0
- package/dist/components/AspectRatio/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +40 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +14 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +52 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +19 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +39 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +22 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Combobox/Combobox.d.ts +27 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/DataTable/DataTable.d.ts +34 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +17 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Dialog/Dialog.d.ts +53 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +51 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/FileUpload/FileUpload.d.ts +26 -0
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +23 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Label/Label.d.ts +20 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/PageShell/PageShell.d.ts +73 -0
- package/dist/components/PageShell/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +24 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Progress/Progress.d.ts +26 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +29 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +32 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +12 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Spinner/Spinner.d.ts +18 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Stat/Stat.d.ts +22 -0
- package/dist/components/Stat/index.d.ts +2 -0
- package/dist/components/Stepper/Stepper.d.ts +24 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +17 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +73 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +28 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +23 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Toast/Toast.d.ts +17 -0
- package/dist/components/Toast/index.d.ts +4 -0
- package/dist/components/Toast/use-toast.d.ts +26 -0
- package/dist/components/Tooltip/Tooltip.d.ts +24 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/index.d.ts +64 -0
- package/dist/index.cjs +51 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +10475 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cn.d.ts +7 -0
- package/dist/tokens.css +163 -0
- package/package.json +91 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
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,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),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);let u=require(`react/jsx-runtime`),d=require(`react-dom`);d=c(d);function f(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function p(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():f(e[t],null)}}}}function m(...e){return l.useCallback(p(...e),e)}var h=Symbol.for(`react.lazy`),g=l.use;function _(e){return typeof e==`object`&&!!e&&`then`in e}function v(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===h&&`_payload`in e&&_(e._payload)}function y(e){let t=x(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e;v(r)&&typeof g==`function`&&(r=g(r._payload));let a=l.Children.toArray(r),o=a.find(C);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var b=y(`Slot`);function x(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(v(n)&&typeof g==`function`&&(n=g(n._payload)),l.isValidElement(n)){let e=T(n),i=w(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S=Symbol(`radix.slottable`);function C(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===S}function w(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function T(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function E(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=E(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function D(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=E(e))&&(r&&(r+=` `),r+=t);return r}var O=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},k=(e,t)=>({classGroupId:e,validator:t}),A=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),j=`-`,M=[],N=`arbitrary..`,P=e=>{let t=I(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return F(e);let n=e.split(j);return ee(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?O(i,t):t:i||M}return n[e]||M}}},ee=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ee(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(j):e.slice(t).join(j),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},F=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?N+r:void 0})(),I=e=>{let{theme:t,classGroups:n}=e;return te(n,t)},te=(e,t)=>{let n=A();for(let r in e){let i=e[r];ne(i,n,r,t)}return n},ne=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];re(i,t,n,r)}},re=(e,t,n,r)=>{if(typeof e==`string`){L(e,t,n);return}if(typeof e==`function`){R(e,t,n,r);return}ie(e,t,n,r)},L=(e,t,n)=>{let r=e===``?t:ae(t,e);r.classGroupId=n},R=(e,t,n,r)=>{if(z(e)){ne(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(k(n,e))},ie=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ne(o,ae(t,a),n,r)}},ae=(e,t)=>{let n=e,r=t.split(j),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=A(),n.nextPart.set(t,i)),n=i}return n},z=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,oe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},se=`!`,ce=`:`,le=[],ue=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),de=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ce){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(se)?(c=s.slice(0,-1),l=!0):s.startsWith(se)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ue(t,l,c,u)};if(t){let e=t+ce,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ue(le,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},fe=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},pe=e=>({cache:oe(e.cacheSize),parseClassName:de(e),sortModifiers:fe(e),...P(e)}),me=/\s+/,he=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(me),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+se:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},ge=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=_e(n))&&(i&&(i+=` `),i+=r);return i},_e=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=_e(e[r]))&&(n&&(n+=` `),n+=t);return n},ve=(e,...t)=>{let n,r,i,a,o=o=>(n=pe(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=he(e,n);return i(e,a),a};return a=o,(...e)=>a(ge(...e))},ye=[],B=e=>{let t=t=>t[e]||ye;return t.isThemeGetter=!0,t},be=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Se=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ce=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,we=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Te=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,De=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=e=>Se.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),Ae=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),je=e=>Ce.test(e),Me=()=>!0,Ne=e=>we.test(e)&&!Te.test(e),Pe=()=>!1,Fe=e=>Ee.test(e),Ie=e=>De.test(e),Le=e=>!H(e)&&!U(e),Re=e=>$e(e,rt,Pe),H=e=>be.test(e),ze=e=>$e(e,it,Ne),Be=e=>$e(e,at,V),Ve=e=>$e(e,st,Me),He=e=>$e(e,ot,Pe),Ue=e=>$e(e,tt,Pe),We=e=>$e(e,nt,Ie),Ge=e=>$e(e,ct,Fe),U=e=>xe.test(e),Ke=e=>et(e,it),qe=e=>et(e,ot),Je=e=>et(e,tt),Ye=e=>et(e,rt),Xe=e=>et(e,nt),Ze=e=>et(e,ct,!0),Qe=e=>et(e,st,!0),$e=(e,t,n)=>{let r=be.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},et=(e,t,n=!1)=>{let r=xe.exec(e);return r?r[1]?t(r[1]):n:!1},tt=e=>e===`position`||e===`percentage`,nt=e=>e===`image`||e===`url`,rt=e=>e===`length`||e===`size`||e===`bg-size`,it=e=>e===`length`,at=e=>e===`number`,ot=e=>e===`family-name`,st=e=>e===`number`||e===`weight`,ct=e=>e===`shadow`,lt=ve(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),d=B(`inset-shadow`),f=B(`text-shadow`),p=B(`drop-shadow`),m=B(`blur`),h=B(`perspective`),g=B(`aspect`),_=B(`ease`),v=B(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),U,H],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[U,H,c],T=()=>[Oe,`full`,`auto`,...w()],E=()=>[ke,`none`,`subgrid`,U,H],D=()=>[`auto`,{span:[`full`,ke,U,H]},ke,U,H],O=()=>[ke,`auto`,U,H],k=()=>[`auto`,`min`,`max`,`fr`,U,H],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Oe,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[Oe,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[Oe,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,U,H],I=()=>[...b(),Je,Ue,{position:[U,H]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Ye,Re,{size:[U,H]}],re=()=>[Ae,Ke,ze],L=()=>[``,`none`,`full`,l,U,H],R=()=>[``,V,Ke,ze],ie=()=>[`solid`,`dashed`,`dotted`,`double`],ae=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],z=()=>[V,Ae,Je,Ue],oe=()=>[``,`none`,m,U,H],se=()=>[`none`,V,U,H],ce=()=>[`none`,V,U,H],le=()=>[V,U,H],ue=()=>[Oe,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[je],breakpoint:[je],color:[Me],container:[je],"drop-shadow":[je],ease:[`in`,`out`,`in-out`],font:[Le],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[je],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[je],shadow:[je],spacing:[`px`,V],text:[je],"text-shadow":[je],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Oe,H,U,g]}],container:[`container`],columns:[{columns:[V,H,U,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ke,`auto`,U,H]}],basis:[{basis:[Oe,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,Oe,`auto`,`initial`,`none`,H]}],grow:[{grow:[``,V,U,H]}],shrink:[{shrink:[``,V,U,H]}],order:[{order:[ke,`first`,`last`,`none`,U,H]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Ke,ze]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Qe,Ve]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ae,H]}],"font-family":[{font:[qe,He,t]}],"font-features":[{"font-features":[H]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,U,H]}],"line-clamp":[{"line-clamp":[V,`none`,U,Be]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,U,H]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,U,H]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ie(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,U,ze]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[V,`auto`,U,H]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,U,H]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,U,H]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ke,U,H],radial:[``,U,H],conic:[ke,U,H]},Xe,We]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ie(),`hidden`,`none`]}],"divide-style":[{divide:[...ie(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ie(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,U,H]}],"outline-w":[{outline:[``,V,Ke,ze]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,Ze,Ge]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ze,Ge]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[V,ze]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Ze,Ge]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[V,U,H]}],"mix-blend":[{"mix-blend":[...ae(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[U,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,U,H]}],filter:[{filter:[``,`none`,U,H]}],blur:[{blur:oe()}],brightness:[{brightness:[V,U,H]}],contrast:[{contrast:[V,U,H]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ze,Ge]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,V,U,H]}],"hue-rotate":[{"hue-rotate":[V,U,H]}],invert:[{invert:[``,V,U,H]}],saturate:[{saturate:[V,U,H]}],sepia:[{sepia:[``,V,U,H]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,U,H]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[V,U,H]}],"backdrop-contrast":[{"backdrop-contrast":[V,U,H]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,U,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,U,H]}],"backdrop-invert":[{"backdrop-invert":[``,V,U,H]}],"backdrop-opacity":[{"backdrop-opacity":[V,U,H]}],"backdrop-saturate":[{"backdrop-saturate":[V,U,H]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,U,H]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,U,H]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,U,H]}],ease:[{ease:[`linear`,`initial`,_,U,H]}],delay:[{delay:[V,U,H]}],animate:[{animate:[`none`,v,U,H]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,U,H]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":[`scale-3d`],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[U,H,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":[`translate-none`],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,U,H]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,U,H]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[V,Ke,ze,Be]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function W(...e){return lt(D(e))}var ut=[`inline-flex items-center justify-center gap-2 whitespace-nowrap`,`font-display font-bold text-sm tracking-[0.08em] uppercase leading-none`,`px-6 py-2 rounded-md border border-solid`,`cursor-pointer select-none no-underline`,`transition-all duration-fast ease-[var(--ease-standard)]`,`outline-none focus-visible:ring-[3px] focus-visible:ring-signal-alt focus-visible:ring-offset-0`,`disabled:opacity-[0.38] disabled:cursor-not-allowed disabled:pointer-events-none`,`active:translate-y-px`].join(` `),dt={primary:W(`bg-signal text-paper border-signal`,`hover:bg-[color-mix(in_srgb,var(--color-signal)_82%,var(--color-void))]`,`hover:border-[color-mix(in_srgb,var(--color-signal)_82%,var(--color-void))]`),secondary:W(`bg-paper text-void border-rule`,`hover:bg-[color-mix(in_srgb,var(--color-paper)_88%,var(--color-void))]`,`hover:border-smoke`),ghost:W(`bg-transparent text-void border-transparent`,`hover:bg-[color-mix(in_srgb,var(--color-rule)_40%,transparent)]`,`hover:border-rule`),destructive:W(`bg-paper text-signal border-signal`,`hover:bg-signal hover:text-paper hover:border-signal`,`focus-visible:ring-[color-mix(in_srgb,var(--color-signal)_50%,transparent)]`)};function ft({variant:e=`primary`,asChild:t=!1,className:n,children:r,...i}){return(0,u.jsx)(t?b:`button`,{className:W(ut,dt[e],n),...i,children:r})}var pt=[`inline-flex items-center`,`font-display font-bold text-xs tracking-[0.10em] uppercase leading-none`,`px-2 py-[3px] rounded-sm`,`select-none whitespace-nowrap`].join(` `),mt={neutral:W(`text-smoke`,`bg-[color-mix(in_srgb,var(--color-smoke)_10%,var(--color-paper))]`),active:W(`text-signal-alt`,`bg-[color-mix(in_srgb,var(--color-signal-alt)_10%,var(--color-paper))]`),warning:W(`text-[var(--color-caution)]`,`bg-[color-mix(in_srgb,var(--color-caution)_10%,var(--color-paper))]`),danger:W(`text-signal`,`bg-[color-mix(in_srgb,var(--color-signal)_10%,var(--color-paper))]`),success:W(`text-[var(--color-growth)]`,`bg-[color-mix(in_srgb,var(--color-growth)_10%,var(--color-paper))]`)};function ht({variant:e=`neutral`,className:t,children:n,...r}){return(0,u.jsx)(`span`,{className:W(pt,mt[e],t),...r,children:n})}function gt({required:e,disabled:t,className:n,children:r,...i}){return(0,u.jsxs)(`label`,{className:W(`font-body font-medium text-sm leading-none`,`text-void`,t&&`opacity-[0.38] cursor-not-allowed`,n),...i,children:[r,e&&(0,u.jsx)(`span`,{className:`ml-1 text-signal`,"aria-hidden":`true`,children:`*`})]})}var _t=[`w-full`,`font-body text-base text-void`,`px-4 py-2 rounded-sm border border-solid`,`bg-paper border-rule`,`placeholder:text-smoke`,`outline-none`,`focus-visible:border-signal-alt`,`focus-visible:ring-[2px] focus-visible:ring-signal-alt focus-visible:ring-offset-0`,`transition-colors duration-fast ease-[var(--ease-standard)]`,`disabled:opacity-[0.38] disabled:cursor-not-allowed`,`disabled:bg-[color-mix(in_srgb,var(--color-rule)_30%,var(--color-paper))]`].join(` `),vt=[`border-signal`,`focus-visible:border-signal`,`focus-visible:ring-[color-mix(in_srgb,var(--color-signal)_40%,transparent)]`].join(` `);function yt({id:e,error:t,helperText:n,className:r,...i}){let a=e?`${e}-error`:void 0,o=e?`${e}-hint`:void 0,s=t?a:n?o:void 0;return(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,u.jsx)(`input`,{id:e,className:W(_t,t&&vt,r),"aria-invalid":t?`true`:void 0,"aria-describedby":s,...i}),t&&(0,u.jsx)(`p`,{id:a,role:`alert`,className:`text-xs text-signal leading-none`,children:t}),!t&&n&&(0,u.jsx)(`p`,{id:o,className:`text-xs text-smoke leading-none`,children:n})]})}function bt({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:W(`bg-paper border border-rule rounded-sm shadow-[var(--shadow-sm)]`,`overflow-hidden`,e),...n,children:t})}function xt({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:W(`flex items-center justify-between gap-4`,`px-5 py-4`,`border-b border-rule`,e),...n,children:t})}function St({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:W(`px-5 py-4`,e),...n,children:t})}function Ct({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:W(`flex items-center justify-end gap-3`,`px-5 py-4`,`border-t border-rule`,e),...n,children:t})}function wt(e,[t,n]){return Math.min(n,Math.max(t,e))}typeof window<`u`&&window.document&&window.document.createElement;function G(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Tt(e,t){let n=l.createContext(t),r=e=>{let{children:t,...r}=e,i=l.useMemo(()=>r,Object.values(r));return(0,u.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=l.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function K(e,t=[]){let n=[];function r(t,r){let i=l.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=l.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=l.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Et(i,...t)]}function Et(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Dt(e){let t=Ot(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(At);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ot(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=Mt(n),i=jt(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kt=Symbol(`radix.slottable`);function At(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===kt}function jt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Mt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Nt(e){let t=e+`CollectionProvider`,[n,r]=K(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=l.default.useRef(null),a=l.default.useRef(new Map).current;return(0,u.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Dt(s),d=l.default.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,u.jsx)(c,{ref:m(t,a(s,n).collectionRef),children:r})});d.displayName=s;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,h=Dt(f),g=l.default.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=l.default.useRef(null),s=m(t,o),c=a(f,n);return l.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,u.jsx)(h,{[p]:``,ref:s,children:r})});g.displayName=f;function _(t){let n=a(e+`CollectionConsumer`,t);return l.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:d,ItemSlot:g},_,r]}var Pt=l.createContext(void 0);function Ft(e){let t=l.useContext(Pt);return e||t||`ltr`}function It(e){let t=Lt(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(zt);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Lt(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=Vt(n),i=Bt(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rt=Symbol(`radix.slottable`);function zt(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Rt}function Bt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Vt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var q=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=It(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ht(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}function J(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}function Ut(e,t=globalThis?.document){let n=J(e);l.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Wt=`DismissableLayer`,Gt=`dismissableLayer.update`,Kt=`dismissableLayer.pointerDownOutside`,qt=`dismissableLayer.focusOutside`,Jt,Yt=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xt=l.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,d=l.useContext(Yt),[f,p]=l.useState(null),h=f?.ownerDocument??globalThis?.document,[,g]=l.useState({}),_=m(t,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=f?v.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=$t(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!C||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},h),T=en(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},h);return Ut(e=>{x===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},h),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Jt=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),tn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Jt)}},[f,h,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),tn())},[f,d]),l.useEffect(()=>{let e=()=>g({});return document.addEventListener(Gt,e),()=>document.removeEventListener(Gt,e)},[]),(0,u.jsx)(q.div,{...c,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:G(e.onFocusCapture,T.onFocusCapture),onBlurCapture:G(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,w.onPointerDownCapture)})});Xt.displayName=Wt;var Zt=`DismissableLayerBranch`,Qt=l.forwardRef((e,t)=>{let n=l.useContext(Yt),r=l.useRef(null),i=m(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(q.div,{...e,ref:i})});Qt.displayName=Zt;function $t(e,t=globalThis?.document){let n=J(e),r=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){nn(Kt,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function en(e,t=globalThis?.document){let n=J(e),r=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!r.current&&nn(qt,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tn(){let e=new CustomEvent(Gt);document.dispatchEvent(e)}function nn(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ht(i,a):i.dispatchEvent(a)}var rn=Xt,an=Qt,on=0;function sn(){l.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??cn()),document.body.insertAdjacentElement(`beforeend`,e[1]??cn()),on++,()=>{on===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),on--}},[])}function cn(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var ln=`focusScope.autoFocusOnMount`,un=`focusScope.autoFocusOnUnmount`,dn={bubbles:!1,cancelable:!0},fn=`FocusScope`,pn=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=l.useState(null),d=J(i),f=J(a),p=l.useRef(null),h=m(t,e=>c(e)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?p.current=t:bn(p.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||bn(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&bn(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,g.paused]),l.useEffect(()=>{if(s){xn.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ln,dn);s.addEventListener(ln,d),s.dispatchEvent(t),t.defaultPrevented||(mn(wn(gn(s)),{select:!0}),document.activeElement===e&&bn(s))}return()=>{s.removeEventListener(ln,d),setTimeout(()=>{let t=new CustomEvent(un,dn);s.addEventListener(un,f),s.dispatchEvent(t),t.defaultPrevented||bn(e??document.body,{select:!0}),s.removeEventListener(un,f),xn.remove(g)},0)}}},[s,d,f,g]);let _=l.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=hn(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&bn(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&bn(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,u.jsx)(q.div,{tabIndex:-1,...o,ref:h,onKeyDown:_})});pn.displayName=fn;function mn(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(bn(r,{select:t}),document.activeElement!==n)return}function hn(e){let t=gn(e);return[_n(t,e),_n(t.reverse(),e)]}function gn(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _n(e,t){for(let n of e)if(!vn(n,{upTo:t}))return n}function vn(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 yn(e){return e instanceof HTMLInputElement&&`select`in e}function bn(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yn(e)&&t&&e.select()}}var xn=Sn();function Sn(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Cn(e,t),e.unshift(t)},remove(t){e=Cn(e,t),e[0]?.resume()}}}function Cn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wn(e){return e.filter(e=>e.tagName!==`A`)}var Y=globalThis?.document?l.useLayoutEffect:()=>{},Tn=l.useId||(()=>void 0),En=0;function X(e){let[t,n]=l.useState(Tn());return Y(()=>{e||n(e=>e??String(En++))},[e]),e||(t?`radix-${t}`:``)}var Dn=[`top`,`right`,`bottom`,`left`],On=Math.min,kn=Math.max,An=Math.round,jn=Math.floor,Mn=e=>({x:e,y:e}),Nn={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Pn(e,t,n){return kn(e,On(t,n))}function Fn(e,t){return typeof e==`function`?e(t):e}function In(e){return e.split(`-`)[0]}function Ln(e){return e.split(`-`)[1]}function Rn(e){return e===`x`?`y`:`x`}function zn(e){return e===`y`?`height`:`width`}function Bn(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Vn(e){return Rn(Bn(e))}function Hn(e,t,n){n===void 0&&(n=!1);let r=Ln(e),i=Vn(e),a=zn(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Zn(o)),[o,Zn(o)]}function Un(e){let t=Zn(e);return[Wn(e),t,Wn(t)]}function Wn(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Gn=[`left`,`right`],Kn=[`right`,`left`],qn=[`top`,`bottom`],Jn=[`bottom`,`top`];function Yn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Kn:Gn:t?Gn:Kn;case`left`:case`right`:return t?qn:Jn;default:return[]}}function Xn(e,t,n,r){let i=Ln(e),a=Yn(In(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Wn)))),a}function Zn(e){let t=In(e);return Nn[t]+e.slice(t.length)}function Qn(e){return{top:0,right:0,bottom:0,left:0,...e}}function $n(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Qn(e)}function er(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function tr(e,t,n){let{reference:r,floating:i}=e,a=Bn(t),o=Vn(t),s=zn(o),c=In(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ln(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function nr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Fn(t,e),p=$n(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=er(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=er(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var rr=50,ir=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:nr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=tr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<rr&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=tr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ar=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Fn(e,t)||{};if(l==null)return{};let d=$n(u),f={x:n,y:r},p=Vn(i),m=zn(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=On(d[_],T),D=On(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Pn(O,A,k),M=!c.arrow&&Ln(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),or=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Fn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=In(r),_=Bn(o),v=In(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Zn(o)]:Un(o)),x=p!==`none`;!d&&x&&b.push(...Xn(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Hn(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Bn(t))||T.every(e=>Bn(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Bn(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function sr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cr(e){return Dn.some(t=>e[t]>=0)}var lr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Fn(e,t);switch(i){case`referenceHidden`:{let e=sr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:cr(e)}}}case`escaped`:{let e=sr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:cr(e)}}}default:return{}}}}},ur=new Set([`left`,`top`]);async function dr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=In(n),s=Ln(n),c=Bn(n)===`y`,l=ur.has(o)?-1:1,u=a&&c?-1:1,d=Fn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var fr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await dr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},pr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Fn(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Bn(In(i)),p=Rn(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Pn(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Pn(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},mr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Fn(e,t),u={x:n,y:r},d=Bn(i),f=Rn(d),p=u[f],m=u[d],h=Fn(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ur.has(In(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},hr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Fn(e,t),u=await o.detectOverflow(t,l),d=In(i),f=Ln(i),p=Bn(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=On(h-u[g],v),x=On(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=kn(u.left,0),t=kn(u.right,0),n=kn(u.top,0),r=kn(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:kn(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:kn(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function gr(){return typeof window<`u`}function _r(e){return br(e)?(e.nodeName||``).toLowerCase():`#document`}function vr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yr(e){return((br(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function br(e){return gr()?e instanceof Node||e instanceof vr(e).Node:!1}function xr(e){return gr()?e instanceof Element||e instanceof vr(e).Element:!1}function Sr(e){return gr()?e instanceof HTMLElement||e instanceof vr(e).HTMLElement:!1}function Cr(e){return!gr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof vr(e).ShadowRoot}function wr(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Tr(e){return/^(table|td|th)$/.test(_r(e))}function Er(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Dr=/transform|translate|scale|rotate|perspective|filter/,Or=/paint|layout|strict|content/,kr=e=>!!e&&e!==`none`,Ar;function jr(e){let t=xr(e)?Fr(e):e;return kr(t.transform)||kr(t.translate)||kr(t.scale)||kr(t.rotate)||kr(t.perspective)||!Nr()&&(kr(t.backdropFilter)||kr(t.filter))||Dr.test(t.willChange||``)||Or.test(t.contain||``)}function Mr(e){let t=Lr(e);for(;Sr(t)&&!Pr(t);){if(jr(t))return t;if(Er(t))return null;t=Lr(t)}return null}function Nr(){return Ar??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ar}function Pr(e){return/^(html|body|#document)$/.test(_r(e))}function Fr(e){return vr(e).getComputedStyle(e)}function Ir(e){return xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lr(e){if(_r(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Cr(e)&&e.host||yr(e);return Cr(t)?t.host:t}function Rr(e){let t=Lr(e);return Pr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Sr(t)&&wr(t)?t:Rr(t)}function zr(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Rr(e),i=r===e.ownerDocument?.body,a=vr(r);if(i){let e=Br(a);return t.concat(a,a.visualViewport||[],wr(r)?r:[],e&&n?zr(e):[])}else return t.concat(r,zr(r,[],n))}function Br(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vr(e){let t=Fr(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Sr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=An(n)!==a||An(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Hr(e){return xr(e)?e:e.contextElement}function Ur(e){let t=Hr(e);if(!Sr(t))return Mn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Vr(t),o=(a?An(n.width):n.width)/r,s=(a?An(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Wr=Mn(0);function Gr(e){let t=vr(e);return!Nr()||!t.visualViewport?Wr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vr(e)?!1:t}function qr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Hr(e),o=Mn(1);t&&(r?xr(r)&&(o=Ur(r)):o=Ur(e));let s=Kr(a,n,r)?Gr(a):Mn(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=vr(a),t=r&&xr(r)?vr(r):r,n=e,i=Br(n);for(;i&&r&&t!==n;){let e=Ur(i),t=i.getBoundingClientRect(),r=Fr(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=vr(i),i=Br(n)}}return er({width:u,height:d,x:c,y:l})}function Jr(e,t){let n=Ir(e).scrollLeft;return t?t.left+n:qr(yr(e)).left+n}function Yr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jr(e,n),y:n.top+t.scrollTop}}function Xr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=yr(r),s=t?Er(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Mn(1),u=Mn(0),d=Sr(r);if((d||!d&&!a)&&((_r(r)!==`body`||wr(o))&&(c=Ir(r)),d)){let e=qr(r);l=Ur(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Yr(o,c):Mn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Zr(e){return Array.from(e.getClientRects())}function Qr(e){let t=yr(e),n=Ir(e),r=e.ownerDocument.body,i=kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Jr(e),s=-n.scrollTop;return Fr(r).direction===`rtl`&&(o+=kn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var $r=25;function ei(e,t){let n=vr(e),r=yr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Nr();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Jr(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=$r&&(a-=o)}else l<=$r&&(a+=l);return{width:a,height:o,x:s,y:c}}function ti(e,t){let n=qr(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Sr(e)?Ur(e):Mn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ni(e,t,n){let r;if(t===`viewport`)r=ei(e,n);else if(t===`document`)r=Qr(yr(e));else if(xr(t))r=ti(t,n);else{let n=Gr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return er(r)}function ri(e,t){let n=Lr(e);return n===t||!xr(n)||Pr(n)?!1:Fr(n).position===`fixed`||ri(n,t)}function ii(e,t){let n=t.get(e);if(n)return n;let r=zr(e,[],!1).filter(e=>xr(e)&&_r(e)!==`body`),i=null,a=Fr(e).position===`fixed`,o=a?Lr(e):e;for(;xr(o)&&!Pr(o);){let t=Fr(o),n=jr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||wr(o)&&!n&&ri(e,o))?r=r.filter(e=>e!==o):i=t,o=Lr(o)}return t.set(e,r),r}function ai(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Er(t)?[]:ii(t,this._c):[].concat(n),r],o=ni(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ni(t,a[e],i);s=kn(n.top,s),c=On(n.right,c),l=On(n.bottom,l),u=kn(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function oi(e){let{width:t,height:n}=Vr(e);return{width:t,height:n}}function si(e,t,n){let r=Sr(t),i=yr(t),a=n===`fixed`,o=qr(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Mn(0);function l(){c.x=Jr(i)}if(r||!r&&!a)if((_r(t)!==`body`||wr(i))&&(s=Ir(t)),r){let e=qr(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Yr(i,s):Mn(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function ci(e){return Fr(e).position===`static`}function li(e,t){if(!Sr(e)||Fr(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return yr(e)===n&&(n=n.ownerDocument.body),n}function ui(e,t){let n=vr(e);if(Er(e))return n;if(!Sr(e)){let t=Lr(e);for(;t&&!Pr(t);){if(xr(t)&&!ci(t))return t;t=Lr(t)}return n}let r=li(e,t);for(;r&&Tr(r)&&ci(r);)r=li(r,t);return r&&Pr(r)&&ci(r)&&!jr(r)?n:r||Mr(e)||n}var di=async function(e){let t=this.getOffsetParent||ui,n=this.getDimensions,r=await n(e.floating);return{reference:si(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fi(e){return Fr(e).direction===`rtl`}var pi={convertOffsetParentRelativeRectToViewportRelativeRect:Xr,getDocumentElement:yr,getClippingRect:ai,getOffsetParent:ui,getElementRects:di,getClientRects:Zr,getDimensions:oi,getScale:Ur,isElement:xr,isRTL:fi};function mi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hi(e,t){let n=null,r,i=yr(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=jn(d),h=jn(i.clientWidth-(u+f)),g=jn(i.clientHeight-(d+p)),_=jn(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:kn(0,On(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!mi(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function gi(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Hr(e),u=i||a?[...l?zr(l):[],...t?zr(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?hi(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?qr(e):null;c&&g();function g(){let t=qr(e);h&&!mi(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var _i=fr,vi=pr,yi=or,bi=hr,xi=lr,Si=ar,Ci=mr,wi=(e,t,n)=>{let r=new Map,i={platform:pi,...n},a={...i.platform,_c:r};return ir(e,t,{...i,platform:a})},Ti=typeof document<`u`?l.useLayoutEffect:function(){};function Ei(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ei(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ei(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Di(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oi(e,t){let n=Di(e);return Math.round(t*n)/n}function ki(e){let t=l.useRef(e);return Ti(()=>{t.current=e}),t}function Ai(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);Ei(m,r)||h(r);let[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=l.useRef(null),T=l.useRef(null),E=l.useRef(f),D=c!=null,O=ki(c),k=ki(i),A=ki(u),j=l.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),wi(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Ei(E.current,t)&&(E.current=t,d.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);Ti(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let M=l.useRef(!1);Ti(()=>(M.current=!0,()=>{M.current=!1}),[]),Ti(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=l.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=l.useMemo(()=>({reference:S,floating:C}),[S,C]),ee=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Oi(P.floating,f.x),r=Oi(P.floating,f.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Di(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:ee}),[f,j,N,P,ee])}var ji=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Si({element:r.current,padding:i}).fn(n):r?Si({element:r,padding:i}).fn(n):{}}}},Mi=(e,t)=>{let n=_i(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ni=(e,t)=>{let n=vi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pi=(e,t)=>({fn:Ci(e).fn,options:[e,t]}),Fi=(e,t)=>{let n=yi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ii=(e,t)=>{let n=bi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Li=(e,t)=>{let n=xi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ri=(e,t)=>{let n=ji(e);return{name:n.name,fn:n.fn,options:[e,t]}},zi=`Arrow`,Bi=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,u.jsx)(q.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,u.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Bi.displayName=zi;var Vi=Bi;function Hi(e){let[t,n]=l.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ui=`Popper`,[Wi,Gi]=K(Ui),[Ki,qi]=Wi(Ui),Ji=e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null);return(0,u.jsx)(Ki,{scope:t,anchor:r,onAnchorChange:i,children:n})};Ji.displayName=Ui;var Yi=`PopperAnchor`,Xi=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=qi(Yi,n),o=l.useRef(null),s=m(t,o),c=l.useRef(null);return l.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,u.jsx)(q.div,{...i,ref:s})});Xi.displayName=Yi;var Zi=`PopperContent`,[Qi,$i]=Wi(Zi),ea=l.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p=`partial`,hideWhenDetached:h=!1,updatePositionStrategy:g=`optimized`,onPlaced:_,...v}=e,y=qi(Zi,n),[b,x]=l.useState(null),S=m(t,e=>x(e)),[C,w]=l.useState(null),T=Hi(C),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(d)?d:[d],j=A.length>0,M={padding:k,boundary:A.filter(ia),altBoundary:j},{refs:N,floatingStyles:P,placement:ee,isPositioned:F,middlewareData:I}=Ai({strategy:`fixed`,placement:O,whileElementsMounted:(...e)=>gi(...e,{animationFrame:g===`always`}),elements:{reference:y.anchor},middleware:[Mi({mainAxis:i+D,alignmentAxis:o}),c&&Ni({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?Pi():void 0,...M}),c&&Fi({...M}),Ii({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),C&&Ri({element:C,padding:s}),aa({arrowWidth:E,arrowHeight:D}),h&&Li({strategy:`referenceHidden`,...M})]}),[te,ne]=oa(ee),re=J(_);Y(()=>{F&&re?.()},[F,re]);let L=I.arrow?.x,R=I.arrow?.y,ie=I.arrow?.centerOffset!==0,[ae,z]=l.useState();return Y(()=>{b&&z(window.getComputedStyle(b).zIndex)},[b]),(0,u.jsx)(`div`,{ref:N.setFloating,"data-radix-popper-content-wrapper":``,style:{...P,transform:F?P.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,u.jsx)(Qi,{scope:n,placedSide:te,onArrowChange:w,arrowX:L,arrowY:R,shouldHideArrow:ie,children:(0,u.jsx)(q.div,{"data-side":te,"data-align":ne,...v,ref:S,style:{...v.style,animation:F?void 0:`none`}})})})});ea.displayName=Zi;var ta=`PopperArrow`,na={top:`bottom`,right:`left`,bottom:`top`,left:`right`},ra=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=$i(ta,n),a=na[i.placedSide];return(0,u.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,u.jsx)(Vi,{...r,ref:t,style:{...r.style,display:`block`}})})});ra.displayName=ta;function ia(e){return e!==null}var aa=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=oa(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function oa(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var sa=Ji,ca=Xi,la=ea,ua=ra,da=`Portal`,fa=l.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=l.useState(!1);Y(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?d.default.createPortal((0,u.jsx)(q.div,{...r,ref:t}),o):null});fa.displayName=da;function pa(e){let t=ma(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(ga);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ma(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=va(n),i=_a(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ha=Symbol(`radix.slottable`);function ga(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ha}function _a(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function va(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ya=l.useInsertionEffect||Y;function Z({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=ba({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=l.useRef(e!==void 0);l.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,l.useCallback(t=>{if(s){let n=xa(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function ba({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),i=l.useRef(n),a=l.useRef(t);return ya(()=>{a.current=t},[t]),l.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function xa(e){return typeof e==`function`}function Sa(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ca=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),wa=`VisuallyHidden`,Ta=l.forwardRef((e,t)=>(0,u.jsx)(q.span,{...e,ref:t,style:{...Ca,...e.style}}));Ta.displayName=wa;var Ea=Ta,Da=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Oa=new WeakMap,ka=new WeakMap,Aa={},ja=0,Ma=function(e){return e&&(e.host||Ma(e.parentNode))},Na=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ma(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Pa=function(e,t,n,r){var i=Na(t,Array.isArray(e)?e:[e]);Aa[n]||(Aa[n]=new WeakMap);var a=Aa[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Oa.get(e)||0)+1,l=(a.get(e)||0)+1;Oa.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ka.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ja++,function(){o.forEach(function(e){var t=Oa.get(e)-1,i=a.get(e)-1;Oa.set(e,t),a.set(e,i),t||(ka.has(e)||e.removeAttribute(r),ka.delete(e)),i||e.removeAttribute(n)}),ja--,ja||(Oa=new WeakMap,Oa=new WeakMap,ka=new WeakMap,Aa={})}},Fa=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Da(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Pa(r,i,n,`aria-hidden`)):function(){return null}},Ia=function(){return Ia=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ia.apply(this,arguments)};function La(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ra(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var za=`right-scroll-bar-position`,Ba=`width-before-scroll-bar`,Va=`with-scroll-bars-hidden`,Ha=`--removed-body-scroll-bar-size`;function Ua(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Wa(e,t){var n=(0,l.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Ga=typeof window<`u`?l.useLayoutEffect:l.useEffect,Ka=new WeakMap;function qa(e,t){var n=Wa(t||null,function(t){return e.forEach(function(e){return Ua(e,t)})});return Ga(function(){var t=Ka.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Ua(e,null)}),i.forEach(function(e){r.has(e)||Ua(e,a)})}Ka.set(n,e)},[e]),n}function Ja(e){return e}function Ya(e,t){t===void 0&&(t=Ja);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Xa(e){e===void 0&&(e={});var t=Ya(null);return t.options=Ia({async:!0,ssr:!1},e),t}var Za=function(e){var t=e.sideCar,n=La(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return l.createElement(r,Ia({},n))};Za.isSideCarExport=!0;function Qa(e,t){return e.useMedium(t),Za}var $a=Xa(),eo=function(){},to=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:eo,onWheelCapture:eo,onTouchMoveCapture:eo}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=La(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=qa([n,t]),w=Ia(Ia({},x),i);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:$a,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?l.cloneElement(l.Children.only(s),Ia(Ia({},w),{ref:C})):l.createElement(y,Ia({},w,{className:c,ref:C}),s))});to.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},to.classNames={fullWidth:Ba,zeroRight:za};var no,ro=function(){if(no)return no;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function io(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ro();return t&&e.setAttribute(`nonce`,t),e}function ao(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oo(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var so=function(){var e=0,t=null;return{add:function(n){e==0&&(t=io())&&(ao(t,n),oo(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},co=function(){var e=so();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lo=function(){var e=co();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},uo={left:0,top:0,right:0,gap:0},fo=function(e){return parseInt(e||``,10)||0},po=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[fo(n),fo(r),fo(i)]},mo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return uo;var t=po(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ho=lo(),go=`data-scroll-locked`,_o=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
|
+
.${Va} {
|
|
3
|
+
overflow: hidden ${r};
|
|
4
|
+
padding-right: ${s}px ${r};
|
|
5
|
+
}
|
|
6
|
+
body[${go}] {
|
|
7
|
+
overflow: hidden ${r};
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
10
|
+
padding-left: ${i}px;
|
|
11
|
+
padding-top: ${a}px;
|
|
12
|
+
padding-right: ${o}px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: ${s}px ${r};
|
|
16
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.${za} {
|
|
20
|
+
right: ${s}px ${r};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.${Ba} {
|
|
24
|
+
margin-right: ${s}px ${r};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.${za} .${za} {
|
|
28
|
+
right: 0 ${r};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.${Ba} .${Ba} {
|
|
32
|
+
margin-right: 0 ${r};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[${go}] {
|
|
36
|
+
${Ha}: ${s}px;
|
|
37
|
+
}
|
|
38
|
+
`},vo=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},yo=function(){l.useEffect(function(){return document.body.setAttribute(go,(vo()+1).toString()),function(){var e=vo()-1;e<=0?document.body.removeAttribute(go):document.body.setAttribute(go,e.toString())}},[])},bo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;yo();var a=l.useMemo(function(){return mo(i)},[i]);return l.createElement(ho,{styles:_o(a,!t,i,n?``:`!important`)})},xo=!1;if(typeof window<`u`)try{var So=Object.defineProperty({},`passive`,{get:function(){return xo=!0,!0}});window.addEventListener(`test`,So,So),window.removeEventListener(`test`,So,So)}catch{xo=!1}var Co=xo?{passive:!1}:!1,wo=function(e){return e.tagName===`TEXTAREA`},To=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!wo(e)&&n[t]===`visible`)},Eo=function(e){return To(e,`overflowY`)},Do=function(e){return To(e,`overflowX`)},Oo=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),jo(e,r)){var i=Mo(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ko=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ao=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},jo=function(e,t){return e===`v`?Eo(t):Do(t)},Mo=function(e,t){return e===`v`?ko(t):Ao(t)},No=function(e,t){return e===`h`&&t===`rtl`?-1:1},Po=function(e,t,n,r,i){var a=No(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Mo(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&jo(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Fo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Io=function(e){return[e.deltaX,e.deltaY]},Lo=function(e){return e&&`current`in e?e.current:e},Ro=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zo=function(e){return`
|
|
39
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
+
`},Bo=0,Vo=[];function Ho(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(Bo++)[0],a=l.useState(lo)[0],o=l.useRef(e);l.useEffect(function(){o.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ra([e.lockRef.current],(e.shards||[]).map(Lo),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Fo(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Oo(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Oo(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Po(h,t,e,h===`h`?s:c,!0)},[]),c=l.useCallback(function(e){var n=e;if(!(!Vo.length||Vo[Vo.length-1]!==a)){var r=`deltaY`in n?Io(n):Fo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Ro(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Lo).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Uo(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=l.useCallback(function(e){n.current=Fo(e),r.current=void 0},[]),f=l.useCallback(function(t){u(t.type,Io(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){u(t.type,Fo(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return Vo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,c,Co),document.addEventListener(`touchmove`,c,Co),document.addEventListener(`touchstart`,d,Co),function(){Vo=Vo.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Co),document.removeEventListener(`touchmove`,c,Co),document.removeEventListener(`touchstart`,d,Co)}},[]);var m=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(a,{styles:zo(i)}):null,m?l.createElement(bo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Uo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Wo=Qa($a,Ho),Go=l.forwardRef(function(e,t){return l.createElement(to,Ia({},e,{ref:t,sideCar:Wo}))});Go.classNames=to.classNames;var Ko=[` `,`Enter`,`ArrowUp`,`ArrowDown`],qo=[` `,`Enter`],Jo=`Select`,[Yo,Xo,Zo]=Nt(Jo),[Qo,$o]=K(Jo,[Zo,Gi]),es=Gi(),[ts,ns]=Qo(Jo),[rs,is]=Qo(Jo),as=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=e,_=es(t),[v,y]=l.useState(null),[b,x]=l.useState(null),[S,C]=l.useState(!1),w=Ft(d),[T,E]=Z({prop:r,defaultProp:i??!1,onChange:a,caller:Jo}),[D,O]=Z({prop:o,defaultProp:s,onChange:c,caller:Jo}),k=l.useRef(null),A=v?g||!!v.closest(`form`):!0,[j,M]=l.useState(new Set),N=Array.from(j).map(e=>e.props.value).join(`;`);return(0,u.jsx)(sa,{..._,children:(0,u.jsxs)(ts,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:X(),value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:m,children:[(0,u.jsx)(Yo.Provider,{scope:t,children:(0,u.jsx)(rs,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,u.jsxs)(ec,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:e=>O(e.target.value),disabled:m,form:g,children:[D===void 0?(0,u.jsx)(`option`,{value:``}):null,Array.from(j)]},N):null]})})};as.displayName=Jo;var os=`SelectTrigger`,ss=l.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=es(n),o=ns(os,n),s=o.disabled||r,c=m(t,o.onTriggerChange),d=Xo(n),f=l.useRef(`touch`),[p,h,g]=nc(e=>{let t=d().filter(e=>!e.disabled),n=rc(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),_=e=>{s||(o.onOpenChange(!0),g()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,u.jsx)(ca,{asChild:!0,...a,children:(0,u.jsx)(q.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":tc(o.value)?``:void 0,...i,ref:c,onClick:G(i.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&_(e)}),onPointerDown:G(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:G(i.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&h(e.key),!(t&&e.key===` `)&&Ko.includes(e.key)&&(_(),e.preventDefault())})})})});ss.displayName=os;var cs=`SelectValue`,ls=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=ns(cs,n),{onValueNodeHasChildrenChange:l}=c,d=a!==void 0,f=m(t,c.onValueNodeChange);return Y(()=>{l(d)},[l,d]),(0,u.jsx)(q.span,{...s,ref:f,style:{pointerEvents:`none`},children:tc(c.value)?(0,u.jsx)(u.Fragment,{children:o}):a})});ls.displayName=cs;var us=`SelectIcon`,ds=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,u.jsx)(q.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});ds.displayName=us;var fs=`SelectPortal`,ps=e=>(0,u.jsx)(fa,{asChild:!0,...e});ps.displayName=fs;var ms=`SelectContent`,hs=l.forwardRef((e,t)=>{let n=ns(ms,e.__scopeSelect),[r,i]=l.useState();if(Y(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?d.createPortal((0,u.jsx)(_s,{scope:e.__scopeSelect,children:(0,u.jsx)(Yo.Slot,{scope:e.__scopeSelect,children:(0,u.jsx)(`div`,{children:e.children})})}),t):null}return(0,u.jsx)(xs,{...e,ref:t})});hs.displayName=ms;var gs=10,[_s,vs]=Qo(ms),ys=`SelectContentImpl`,bs=pa(`SelectContent.RemoveScroll`),xs=l.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:_,hideWhenDetached:v,avoidCollisions:y,...b}=e,x=ns(ms,n),[S,C]=l.useState(null),[w,T]=l.useState(null),E=m(t,e=>C(e)),[D,O]=l.useState(null),[k,A]=l.useState(null),j=Xo(n),[M,N]=l.useState(!1),P=l.useRef(!1);l.useEffect(()=>{if(S)return Fa(S)},[S]),sn();let ee=l.useCallback(e=>{let[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&w&&(w.scrollTop=0),n===r&&w&&(w.scrollTop=w.scrollHeight),n?.focus(),document.activeElement!==i))return},[j,w]),F=l.useCallback(()=>ee([D,S]),[ee,D,S]);l.useEffect(()=>{M&&F()},[M,F]);let{onOpenChange:I,triggerPointerDownPosRef:te}=x;l.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(te.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||I(!1),document.removeEventListener(`pointermove`,t),te.current=null};return te.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[S,I,te]),l.useEffect(()=>{let e=()=>I(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ne,re]=nc(e=>{let t=j().filter(e=>!e.disabled),n=rc(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),L=l.useCallback((e,t,n)=>{let r=!P.current&&!n;(x.value!==void 0&&x.value===t||r)&&(O(e),r&&(P.current=!0))},[x.value]),R=l.useCallback(()=>S?.focus(),[S]),ie=l.useCallback((e,t,n)=>{let r=!P.current&&!n;(x.value!==void 0&&x.value===t||r)&&A(e)},[x.value]),ae=r===`popper`?Ts:Cs,z=ae===Ts?{side:s,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:_,hideWhenDetached:v,avoidCollisions:y}:{};return(0,u.jsx)(_s,{scope:n,content:S,viewport:w,onViewportChange:T,itemRefCallback:L,selectedItem:D,onItemLeave:R,itemTextRefCallback:ie,focusSelectedItem:F,selectedItemText:k,position:r,isPositioned:M,searchRef:ne,children:(0,u.jsx)(Go,{as:bs,allowPinchZoom:!0,children:(0,u.jsx)(pn,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:G(i,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,u.jsx)(Xt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,u.jsx)(ae,{role:`listbox`,id:x.contentId,"data-state":x.open?`open`:`closed`,dir:x.dir,onContextMenu:e=>e.preventDefault(),...b,...z,onPlaced:()=>N(!0),ref:E,style:{display:`flex`,flexDirection:`column`,outline:`none`,...b.style},onKeyDown:G(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=j().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>ee(t)),e.preventDefault()}})})})})})})});xs.displayName=ys;var Ss=`SelectItemAlignedPosition`,Cs=l.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=ns(ms,n),o=vs(ms,n),[s,c]=l.useState(null),[d,f]=l.useState(null),p=m(t,e=>f(e)),h=Xo(n),g=l.useRef(!1),_=l.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=o,S=l.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&d&&v&&y&&b){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-gs,d=wt(a,[gs,Math.max(gs,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-gs,d=wt(a,[gs,Math.max(gs,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=h(),c=window.innerHeight-gs*2,l=v.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=f+p+l+_+m,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-gs,D=c-E,O=y.offsetHeight/2,k=y.offsetTop+O,A=f+p+k,j=x-A;if(A<=E){let e=o.length>0&&y===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=d.clientHeight-v.offsetTop-v.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+m);s.style.height=n+`px`}else{let e=o.length>0&&y===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,f+v.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,v.scrollTop=A-E+v.offsetTop}s.style.margin=`${gs}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,d,v,y,b,a.dir,r]);Y(()=>S(),[S]);let[C,w]=l.useState();return Y(()=>{d&&w(window.getComputedStyle(d).zIndex)},[d]),(0,u.jsx)(Es,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:l.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,u.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,u.jsx)(q.div,{...i,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});Cs.displayName=Ss;var ws=`SelectPopperPosition`,Ts=l.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=gs,...a}=e,o=es(n);return(0,u.jsx)(la,{...o,...a,ref:t,align:r,collisionPadding:i,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)`}})});Ts.displayName=ws;var[Es,Ds]=Qo(ms,{}),Os=`SelectViewport`,ks=l.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=vs(Os,n),o=Ds(Os,n),s=m(t,a.onViewportChange),c=l.useRef(0);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`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}`},nonce:r}),(0,u.jsx)(Yo.Slot,{scope:n,children:(0,u.jsx)(q.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:G(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-gs*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});ks.displayName=Os;var As=`SelectGroup`,[js,Ms]=Qo(As),Ns=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=X();return(0,u.jsx)(js,{scope:n,id:i,children:(0,u.jsx)(q.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Ns.displayName=As;var Ps=`SelectLabel`,Fs=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ms(Ps,n);return(0,u.jsx)(q.div,{id:i.id,...r,ref:t})});Fs.displayName=Ps;var Is=`SelectItem`,[Ls,Rs]=Qo(Is),zs=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=ns(Is,n),c=vs(Is,n),d=s.value===r,[f,p]=l.useState(a??``),[h,g]=l.useState(!1),_=m(t,e=>c.itemRefCallback?.(e,r,i)),v=X(),y=l.useRef(`touch`),b=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw 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(0,u.jsx)(Ls,{scope:n,value:r,disabled:i,textId:v,isSelected:d,onItemTextChange:l.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,u.jsx)(Yo.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,u.jsx)(q.div,{role:`option`,"aria-labelledby":v,"data-highlighted":h?``:void 0,"aria-selected":d&&h,"data-state":d?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:_,onFocus:G(o.onFocus,()=>g(!0)),onBlur:G(o.onBlur,()=>g(!1)),onClick:G(o.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:G(o.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:G(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:G(o.onPointerMove,e=>{y.current=e.pointerType,i?c.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:G(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(qo.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});zs.displayName=Is;var Bs=`SelectItemText`,Vs=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=ns(Bs,n),s=vs(Bs,n),c=Rs(Bs,n),f=is(Bs,n),[p,h]=l.useState(null),g=m(t,e=>h(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),_=p?.textContent,v=l.useMemo(()=>(0,u.jsx)(`option`,{value:c.value,disabled:c.disabled,children:_},c.value),[c.disabled,c.value,_]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=f;return Y(()=>(y(v),()=>b(v)),[y,b,v]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(q.span,{id:c.textId,...a,ref:g}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?d.createPortal(a.children,o.valueNode):null]})});Vs.displayName=Bs;var Hs=`SelectItemIndicator`,Us=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Rs(Hs,n).isSelected?(0,u.jsx)(q.span,{"aria-hidden":!0,...r,ref:t}):null});Us.displayName=Hs;var Ws=`SelectScrollUpButton`,Gs=l.forwardRef((e,t)=>{let n=vs(Ws,e.__scopeSelect),r=Ds(Ws,e.__scopeSelect),[i,a]=l.useState(!1),o=m(t,r.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,u.jsx)(Js,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Gs.displayName=Ws;var Ks=`SelectScrollDownButton`,qs=l.forwardRef((e,t)=>{let n=vs(Ks,e.__scopeSelect),r=Ds(Ks,e.__scopeSelect),[i,a]=l.useState(!1),o=m(t,r.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,u.jsx)(Js,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});qs.displayName=Ks;var Js=l.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=vs(`SelectScrollButton`,n),o=l.useRef(null),s=Xo(n),c=l.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),Y(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,u.jsx)(q.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:G(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:G(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:G(i.onPointerLeave,()=>{c()})})}),Ys=`SelectSeparator`,Xs=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,u.jsx)(q.div,{"aria-hidden":!0,...r,ref:t})});Xs.displayName=Ys;var Zs=`SelectArrow`,Qs=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=es(n),a=ns(Zs,n),o=vs(Zs,n);return a.open&&o.position===`popper`?(0,u.jsx)(ua,{...i,...r,ref:t}):null});Qs.displayName=Zs;var $s=`SelectBubbleInput`,ec=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=l.useRef(null),a=m(r,i),o=Sa(t);return l.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,u.jsx)(q.select,{...n,style:{...Ca,...n.style},ref:a,defaultValue:t})});ec.displayName=$s;function tc(e){return e===``||e===void 0}function nc(e){let t=J(e),n=l.useRef(``),r=l.useRef(0),i=l.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=l.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function rc(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=ic(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function ic(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ac=as,oc=ss,sc=ls,cc=ds,lc=ps,uc=hs,dc=ks,fc=zs,pc=Vs,mc=Us;function hc({className:e,children:t,...n}){return(0,u.jsxs)(fc,{className:W(`flex items-center justify-between gap-3`,`font-body text-sm text-void`,`px-4 py-2`,`cursor-default select-none outline-none`,`data-[highlighted]:bg-[color-mix(in_srgb,var(--color-rule)_50%,var(--color-paper))]`,`data-[state=checked]:text-signal-alt data-[state=checked]:font-medium`,`data-[disabled]:opacity-[0.38] data-[disabled]:pointer-events-none`,e),...n,children:[(0,u.jsx)(pc,{children:t}),(0,u.jsx)(mc,{children:(0,u.jsx)(bc,{})})]})}var gc=[`w-full flex items-center justify-between gap-2`,`font-body text-base text-void`,`px-4 py-2 rounded-sm border border-solid`,`bg-paper border-rule`,`[&[data-placeholder]]:text-smoke`,`outline-none`,`focus-visible:border-signal-alt`,`focus-visible:ring-[2px] focus-visible:ring-signal-alt focus-visible:ring-offset-0`,`transition-colors duration-fast ease-[var(--ease-standard)]`,`disabled:opacity-[0.38] disabled:cursor-not-allowed`,`disabled:bg-[color-mix(in_srgb,var(--color-rule)_30%,var(--color-paper))]`].join(` `),_c=[`border-signal`,`focus-visible:border-signal`,`focus-visible:ring-[color-mix(in_srgb,var(--color-signal)_40%,transparent)]`].join(` `);function vc({id:e,placeholder:t,error:n,className:r,style:i,children:a,...o}){let s=e?`${e}-error`:void 0;return(0,u.jsxs)(`div`,{className:W(`flex flex-col gap-1`,r),style:i,children:[(0,u.jsxs)(ac,{...o,children:[(0,u.jsxs)(oc,{id:e,className:W(gc,n&&_c),"aria-invalid":n?`true`:void 0,"aria-describedby":n?s:void 0,children:[(0,u.jsx)(sc,{placeholder:t}),(0,u.jsx)(cc,{asChild:!0,children:(0,u.jsx)(yc,{})})]}),(0,u.jsx)(lc,{children:(0,u.jsx)(uc,{position:`popper`,sideOffset:4,className:W(`rounded-sm border border-rule`,`bg-paper shadow-[var(--shadow-md)]`,`w-[var(--radix-select-trigger-width)]`,`max-h-[var(--radix-select-content-available-height)]`,`z-50 overflow-hidden`),children:(0,u.jsx)(dc,{className:`py-1`,children:a})})})]}),n&&(0,u.jsx)(`p`,{id:s,role:`alert`,className:`text-xs text-signal leading-none`,children:n})]})}function yc(){return(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,"aria-hidden":`true`,className:`shrink-0 text-smoke`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,u.jsx)(`path`,{d:`M3 5l4 4 4-4`})})}function bc(){return(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,"aria-hidden":`true`,className:`text-signal-alt`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,u.jsx)(`path`,{d:`M2.5 7l3.5 3.5 5.5-6`})})}function xc(e,t){return l.useReducer((e,n)=>t[e][n]??e,e)}var Q=e=>{let{present:t,children:n}=e,r=Sc(t),i=typeof n==`function`?n({present:r.isPresent}):l.Children.only(n),a=m(r.ref,wc(i));return typeof n==`function`||r.isPresent?l.cloneElement(i,{ref:a}):null};Q.displayName=`Presence`;function Sc(e){let[t,n]=l.useState(),r=l.useRef(null),i=l.useRef(e),a=l.useRef(`none`),[o,s]=xc(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return l.useEffect(()=>{let e=Cc(r.current);a.current=o===`mounted`?e:`none`},[o]),Y(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Cc(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Y(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Cc(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Cc(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:l.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Cc(e){return e?.animationName||`none`}function wc(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Tc(e){let t=Ec(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(Oc);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ec(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=Ac(n),i=kc(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dc=Symbol(`radix.slottable`);function Oc(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Dc}function kc(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ac(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jc=`Dialog`,[Mc,Nc]=K(jc),[Pc,Fc]=Mc(jc),Ic=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=l.useRef(null),c=l.useRef(null),[d,f]=Z({prop:r,defaultProp:i??!1,onChange:a,caller:jc});return(0,u.jsx)(Pc,{scope:t,triggerRef:s,contentRef:c,contentId:X(),titleId:X(),descriptionId:X(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};Ic.displayName=jc;var Lc=`DialogTrigger`,Rc=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Fc(Lc,n),a=m(t,i.triggerRef);return(0,u.jsx)(q.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":il(i.open),...r,ref:a,onClick:G(e.onClick,i.onOpenToggle)})});Rc.displayName=Lc;var zc=`DialogPortal`,[Bc,Vc]=Mc(zc,{forceMount:void 0}),Hc=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Fc(zc,t);return(0,u.jsx)(Bc,{scope:t,forceMount:n,children:l.Children.map(r,e=>(0,u.jsx)(Q,{present:n||a.open,children:(0,u.jsx)(fa,{asChild:!0,container:i,children:e})}))})};Hc.displayName=zc;var Uc=`DialogOverlay`,Wc=l.forwardRef((e,t)=>{let n=Vc(Uc,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Fc(Uc,e.__scopeDialog);return a.modal?(0,u.jsx)(Q,{present:r||a.open,children:(0,u.jsx)(Kc,{...i,ref:t})}):null});Wc.displayName=Uc;var Gc=Tc(`DialogOverlay.RemoveScroll`),Kc=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Fc(Uc,n);return(0,u.jsx)(Go,{as:Gc,allowPinchZoom:!0,shards:[i.contentRef],children:(0,u.jsx)(q.div,{"data-state":il(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),qc=`DialogContent`,Jc=l.forwardRef((e,t)=>{let n=Vc(qc,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Fc(qc,e.__scopeDialog);return(0,u.jsx)(Q,{present:r||a.open,children:a.modal?(0,u.jsx)(Yc,{...i,ref:t}):(0,u.jsx)(Xc,{...i,ref:t})})});Jc.displayName=qc;var Yc=l.forwardRef((e,t)=>{let n=Fc(qc,e.__scopeDialog),r=l.useRef(null),i=m(t,n.contentRef,r);return l.useEffect(()=>{let e=r.current;if(e)return Fa(e)},[]),(0,u.jsx)(Zc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault())})}),Xc=l.forwardRef((e,t)=>{let n=Fc(qc,e.__scopeDialog),r=l.useRef(!1),i=l.useRef(!1);return(0,u.jsx)(Zc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Zc=l.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Fc(qc,n),c=l.useRef(null),d=m(t,c);return sn(),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(pn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,u.jsx)(Xt,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":il(s.open),...o,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(cl,{titleId:s.titleId}),(0,u.jsx)(ul,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Qc=`DialogTitle`,$c=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Fc(Qc,n);return(0,u.jsx)(q.h2,{id:i.titleId,...r,ref:t})});$c.displayName=Qc;var el=`DialogDescription`,tl=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Fc(el,n);return(0,u.jsx)(q.p,{id:i.descriptionId,...r,ref:t})});tl.displayName=el;var nl=`DialogClose`,rl=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Fc(nl,n);return(0,u.jsx)(q.button,{type:`button`,...r,ref:t,onClick:G(e.onClick,()=>i.onOpenChange(!1))})});rl.displayName=nl;function il(e){return e?`open`:`closed`}var al=`DialogTitleWarning`,[ol,sl]=Tt(al,{contentName:qc,titleName:Qc,docsSlug:`dialog`}),cl=({titleId:e})=>{let t=sl(al),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
|
+
|
|
43
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
|
+
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ll=`DialogDescriptionWarning`,ul=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sl(ll).contentName}}.`;return l.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},dl=Ic,fl=Rc,pl=Hc,ml=Wc,hl=Jc,gl=$c,_l=tl,vl=rl,yl=dl,bl=fl,xl=vl;function Sl({className:e,children:t,...n}){return(0,u.jsxs)(pl,{children:[(0,u.jsx)(ml,{className:W(`fixed inset-0 z-50`,`bg-void/50`,`backdrop-blur-[2px]`)}),(0,u.jsxs)(hl,{className:W(`fixed z-50`,`top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2`,`w-full max-w-lg`,`rounded-sm border border-rule`,`bg-paper shadow-[var(--shadow-xl)]`,`flex flex-col gap-4`,`p-6`,`relative`,`max-h-[85vh] overflow-y-auto`,e),...n,children:[t,(0,u.jsx)(vl,{className:W(`absolute top-4 right-4`,`flex items-center justify-center`,`w-7 h-7 rounded-sm`,`text-smoke`,`hover:text-void hover:bg-[color-mix(in_srgb,var(--color-rule)_50%,transparent)]`,`outline-none focus-visible:ring-[2px] focus-visible:ring-signal-alt`,`transition-colors duration-fast ease-[var(--ease-standard)]`),"aria-label":`Close dialog`,children:(0,u.jsx)(El,{})})]})]})}function Cl({className:e,...t}){return(0,u.jsx)(gl,{className:W(`font-display font-bold text-lg uppercase tracking-[0.06em] text-void`,`pr-8`,e),...t})}function wl({className:e,...t}){return(0,u.jsx)(_l,{className:W(`text-sm text-smoke leading-relaxed`,e),...t})}function Tl({className:e,...t}){return(0,u.jsx)(`div`,{className:W(`flex items-center justify-end gap-3`,`pt-2 border-t border-rule`,e),...t})}function El(){return(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,"aria-hidden":`true`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,children:(0,u.jsx)(`path`,{d:`M2 2l10 10M12 2L2 12`})})}function Dl({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:W(`flex flex-col bg-paper`,e),...n,children:t})}function Ol({className:e,children:t,...n}){return(0,u.jsx)(`header`,{className:W(`h-[var(--topbar-height)] shrink-0`,`flex items-center gap-4 px-5`,`bg-paper border-b border-rule`,e),...n,children:t})}function kl({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:W(`flex-1 flex overflow-hidden`,e),...n,children:t})}function Al({className:e,children:t,...n}){return(0,u.jsx)(`aside`,{className:W(`w-[var(--sidebar-width)] shrink-0`,`flex flex-col overflow-y-auto`,`bg-ash`,`border-r border-[color-mix(in_srgb,var(--color-paper)_8%,transparent)]`,e),...n,children:t})}function jl({className:e,children:t,...n}){return(0,u.jsx)(`main`,{className:W(`flex-1 overflow-y-auto p-6`,e),...n,children:t})}function Ml({active:e,icon:t,asChild:n=!1,className:r,children:i,...a}){return(0,u.jsxs)(n?b:`button`,{className:W(`flex items-center gap-3 w-full`,`px-4 py-[10px]`,`font-body text-sm leading-none`,`text-[color-mix(in_srgb,var(--color-paper)_60%,transparent)]`,`cursor-pointer select-none no-underline outline-none border-none bg-transparent`,`border-l-2 border-transparent`,`hover:text-paper hover:bg-[color-mix(in_srgb,var(--color-paper)_6%,transparent)]`,`focus-visible:ring-[2px] focus-visible:ring-inset focus-visible:ring-signal-alt`,e&&[`text-paper`,`border-l-signal`,`bg-[color-mix(in_srgb,var(--color-paper)_8%,transparent)]`],`transition-colors duration-fast ease-[var(--ease-standard)]`,r),"aria-current":e?`page`:void 0,...a,children:[t&&(0,u.jsx)(`span`,{className:`shrink-0 w-4 h-4 flex items-center justify-center`,"aria-hidden":`true`,children:t}),(0,u.jsx)(`span`,{children:i})]})}function Nl({className:e,children:t,...n}){return(0,u.jsx)(`div`,{className:`w-full overflow-x-auto`,children:(0,u.jsx)(`table`,{className:W(`w-full border-collapse text-sm`,e),...n,children:t})})}function Pl({className:e,children:t,...n}){return(0,u.jsx)(`thead`,{className:W(`border-b border-rule`,e),...n,children:t})}function Fl({className:e,children:t,...n}){return(0,u.jsx)(`tbody`,{className:W(e),...n,children:t})}function Il({className:e,children:t,...n}){return(0,u.jsx)(`tfoot`,{className:W(`border-t-2 border-void`,`font-bold text-void`,e),...n,children:t})}function Ll({className:e,children:t,...n}){return(0,u.jsx)(`tr`,{className:W(`border-b border-rule last:border-b-0`,`transition-colors duration-fast ease-[var(--ease-standard)]`,`[tbody_&]:hover:bg-[color-mix(in_srgb,var(--color-rule)_30%,var(--color-paper))]`,e),...n,children:t})}function Rl({numeric:e,className:t,children:n,...r}){return(0,u.jsx)(`th`,{scope:`col`,className:W(`font-display font-bold text-xs uppercase tracking-[0.10em]`,`text-smoke`,`px-4 py-3`,e?`text-right`:`text-left`,t),...r,children:n})}function zl({numeric:e,muted:t,className:n,children:r,...i}){return(0,u.jsx)(`td`,{className:W(`font-body text-sm`,t?`text-smoke`:`text-void`,`px-4 py-3`,e?`text-right tabular-nums`:`text-left`,n),...i,children:r})}var Bl=[`w-full`,`font-body text-base text-void`,`px-4 py-2 rounded-sm border border-solid`,`min-h-[80px] resize-y`,`bg-paper border-rule`,`placeholder:text-smoke`,`outline-none`,`focus-visible:border-signal-alt`,`focus-visible:ring-[2px] focus-visible:ring-signal-alt focus-visible:ring-offset-0`,`transition-colors duration-fast ease-[var(--ease-standard)]`,`disabled:opacity-[0.38] disabled:cursor-not-allowed`,`disabled:bg-[color-mix(in_srgb,var(--color-rule)_30%,var(--color-paper))]`,`disabled:resize-none`].join(` `),Vl=[`border-signal`,`focus-visible:border-signal`,`focus-visible:ring-[color-mix(in_srgb,var(--color-signal)_40%,transparent)]`].join(` `);function Hl({id:e,error:t,helperText:n,className:r,...i}){let a=e?`${e}-error`:void 0,o=e?`${e}-hint`:void 0,s=t?a:n?o:void 0;return(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,u.jsx)(`textarea`,{id:e,className:W(Bl,t&&Vl,r),"aria-invalid":t?`true`:void 0,"aria-describedby":s,...i}),t&&(0,u.jsx)(`p`,{id:a,role:`alert`,className:`text-xs text-signal leading-none`,children:t}),!t&&n&&(0,u.jsx)(`p`,{id:o,className:`text-xs text-smoke leading-none`,children:n})]})}var Ul=`Checkbox`,[Wl,Gl]=K(Ul),[Kl,ql]=Wl(Ul);function Jl(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:d,value:f=`on`,internal_do_not_use_render:p}=e,[m,h]=Z({prop:n,defaultProp:i??!1,onChange:c,caller:Ul}),[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useRef(!1),x=g?!!o||!!g.closest(`form`):!0,S={checked:m,disabled:a,setChecked:h,control:g,setControl:_,name:s,form:o,value:f,hasConsumerStoppedPropagationRef:b,required:d,defaultChecked:ru(i)?!1:i,isFormControl:x,bubbleInput:v,setBubbleInput:y};return(0,u.jsx)(Kl,{scope:t,...S,children:nu(p)?p(S):r})}var Yl=`CheckboxTrigger`,Xl=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:h,isFormControl:g,bubbleInput:_}=ql(Yl,e),v=m(i,f),y=l.useRef(c);return l.useEffect(()=>{let e=a?.form;if(e){let t=()=>p(y.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,p]),(0,u.jsx)(q.button,{type:`button`,role:`checkbox`,"aria-checked":ru(c)?`mixed`:c,"aria-required":d,"data-state":iu(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:v,onKeyDown:G(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:G(n,e=>{p(e=>ru(e)?!0:!e),_&&g&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})})});Xl.displayName=Yl;var Zl=l.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:d,...f}=e;return(0,u.jsx)(Jl,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Xl,{...f,ref:t,__scopeCheckbox:n}),e&&(0,u.jsx)(tu,{__scopeCheckbox:n})]})})});Zl.displayName=Ul;var Ql=`CheckboxIndicator`,$l=l.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=ql(Ql,n);return(0,u.jsx)(Q,{present:r||ru(a.checked)||a.checked===!0,children:(0,u.jsx)(q.span,{"data-state":iu(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});$l.displayName=Ql;var eu=`CheckboxBubbleInput`,tu=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:d,value:f,form:p,bubbleInput:h,setBubbleInput:g}=ql(eu,e),_=m(n,g),v=Sa(a),y=Hi(r);l.useEffect(()=>{let e=h;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(v!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=ru(a),n.call(e,ru(a)?!1:a),e.dispatchEvent(t)}},[h,v,a,i]);let b=l.useRef(ru(a)?!1:a);return(0,u.jsx)(q.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??b.current,required:s,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:_,style:{...t.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});tu.displayName=eu;function nu(e){return typeof e==`function`}function ru(e){return e===`indeterminate`}function iu(e){return ru(e)?`indeterminate`:e?`checked`:`unchecked`}function au(){return(0,u.jsx)(`svg`,{viewBox:`0 0 10 8`,className:`w-2.5 h-2`,fill:`none`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M1 4L3.5 6.5L9 1.5`})})}function ou(){return(0,u.jsx)(`svg`,{viewBox:`0 0 10 2`,className:`w-2.5 h-0.5`,fill:`none`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M1 1h8`})})}function su({checked:e,className:t,...n}){return(0,u.jsx)(Zl,{checked:e,className:W(`h-4 w-4 shrink-0 rounded-sm border border-rule`,`bg-paper`,`data-[state=checked]:bg-signal-alt data-[state=checked]:border-signal-alt data-[state=checked]:text-paper`,`data-[state=indeterminate]:bg-signal-alt data-[state=indeterminate]:border-signal-alt data-[state=indeterminate]:text-paper`,`outline-none`,`focus-visible:ring-[2px] focus-visible:ring-signal-alt focus-visible:ring-offset-1`,`disabled:opacity-[0.38] disabled:cursor-not-allowed`,`transition-colors duration-fast ease-[var(--ease-standard)]`,t),...n,children:(0,u.jsx)($l,{className:`flex items-center justify-center text-current`,children:e===`indeterminate`?(0,u.jsx)(ou,{}):(0,u.jsx)(au,{})})})}var cu=`Switch`,[lu,uu]=K(cu),[du,fu]=lu(cu),pu=l.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c=`on`,onCheckedChange:d,form:f,...p}=e,[h,g]=l.useState(null),_=m(t,e=>g(e)),v=l.useRef(!1),y=h?f||!!h.closest(`form`):!0,[b,x]=Z({prop:i,defaultProp:a??!1,onChange:d,caller:cu});return(0,u.jsxs)(du,{scope:n,checked:b,disabled:s,children:[(0,u.jsx)(q.button,{type:`button`,role:`switch`,"aria-checked":b,"aria-required":o,"data-state":vu(b),"data-disabled":s?``:void 0,disabled:s,value:c,...p,ref:_,onClick:G(e.onClick,e=>{x(e=>!e),y&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})}),y&&(0,u.jsx)(_u,{control:h,bubbles:!v.current,name:r,value:c,checked:b,required:o,disabled:s,form:f,style:{transform:`translateX(-100%)`}})]})});pu.displayName=cu;var mu=`SwitchThumb`,hu=l.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fu(mu,n);return(0,u.jsx)(q.span,{"data-state":vu(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});hu.displayName=mu;var gu=`SwitchBubbleInput`,_u=l.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=l.useRef(null),s=m(o,a),c=Sa(n),d=Hi(t);return l.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,u.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...d,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});_u.displayName=gu;function vu(e){return e?`checked`:`unchecked`}var yu=pu,bu=hu;function xu({className:e,...t}){return(0,u.jsx)(yu,{className:W(`relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full`,`bg-rule`,`data-[state=checked]:bg-signal-alt`,`outline-none`,`focus-visible:ring-[2px] focus-visible:ring-signal-alt focus-visible:ring-offset-2`,`disabled:opacity-[0.38] disabled:cursor-not-allowed`,`transition-colors duration-fast ease-[var(--ease-standard)]`,e),...t,children:(0,u.jsx)(bu,{className:W(`block h-3.5 w-3.5 rounded-full`,`bg-paper`,`shadow-[var(--shadow-sm)]`,`translate-x-[3px]`,`data-[state=checked]:translate-x-[19px]`,`transition-transform duration-fast ease-[var(--ease-standard)]`)})})}function Su(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm.002 5a.75.75 0 0 1 .744.648L8.75 8.75v3a.75.75 0 0 1-1.493.102L7.25 11.75v-3A.75.75 0 0 1 8.002 8zM8 4.5a.875.875 0 1 1 0 1.75A.875.875 0 0 1 8 4.5z`})})}function Cu(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z`})})}function wu(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z`})})}function Tu(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.061L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z`})})}function Eu(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`14`,height:`14`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z`})})}var Du={neutral:(0,u.jsx)(Su,{}),info:(0,u.jsx)(Su,{}),warning:(0,u.jsx)(Cu,{}),danger:(0,u.jsx)(wu,{}),success:(0,u.jsx)(Tu,{})},Ou={neutral:{container:W(`border-l-smoke`,`bg-[color-mix(in_srgb,var(--color-smoke)_8%,var(--color-paper))]`),icon:`text-smoke`,title:`text-smoke`},info:{container:W(`border-l-signal-alt`,`bg-[color-mix(in_srgb,var(--color-signal-alt)_8%,var(--color-paper))]`),icon:`text-signal-alt`,title:`text-signal-alt`},warning:{container:W(`border-l-[var(--color-caution)]`,`bg-[color-mix(in_srgb,var(--color-caution)_8%,var(--color-paper))]`),icon:`text-[var(--color-caution)]`,title:`text-[var(--color-caution)]`},danger:{container:W(`border-l-signal`,`bg-[color-mix(in_srgb,var(--color-signal)_8%,var(--color-paper))]`),icon:`text-signal`,title:`text-signal`},success:{container:W(`border-l-[var(--color-growth)]`,`bg-[color-mix(in_srgb,var(--color-growth)_8%,var(--color-paper))]`),icon:`text-[var(--color-growth)]`,title:`text-[var(--color-growth)]`}};function ku({variant:e=`neutral`,title:t,icon:n,onDismiss:r,className:i,children:a,...o}){let s=Ou[e],c=n===null?null:n??Du[e];return(0,u.jsxs)(`div`,{role:`alert`,className:W(`flex items-start gap-3`,`border-l-4 rounded-sm`,`px-4 py-3`,s.container,i),...o,children:[c&&(0,u.jsx)(`span`,{className:W(`mt-0.5 shrink-0`,s.icon),children:c}),(0,u.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[t&&(0,u.jsx)(`p`,{className:W(`font-display font-bold text-sm uppercase tracking-[0.06em] leading-snug`,s.title),children:t}),a&&(0,u.jsx)(`div`,{className:W(`text-sm text-void leading-relaxed`,t&&`mt-0.5`),children:a})]}),r&&(0,u.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:r,className:W(`shrink-0 mt-0.5 opacity-50 hover:opacity-100`,`transition-opacity duration-fast ease-[var(--ease-standard)]`,`outline-none focus-visible:ring-[2px] focus-visible:ring-signal-alt rounded-sm`,s.icon),children:(0,u.jsx)(Eu,{})})]})}var Au=`ToastProvider`,[ju,Mu,Nu]=Nt(`Toast`),[Pu,Fu]=K(`Toast`,[Nu]),[Iu,Lu]=Pu(Au),Ru=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=l.useState(null),[d,f]=l.useState(0),p=l.useRef(!1),m=l.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Au}\`. Expected non-empty \`string\`.`),(0,u.jsx)(ju.Provider,{scope:t,children:(0,u.jsx)(Iu,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:d,viewport:s,onViewportChange:c,onToastAdd:l.useCallback(()=>f(e=>e+1),[]),onToastRemove:l.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:o})})};Ru.displayName=Au;var zu=`ToastViewport`,Bu=[`F8`],Vu=`toast.viewportPause`,Hu=`toast.viewportResume`,Uu=l.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=Bu,label:i=`Notifications ({hotkey})`,...a}=e,o=Lu(zu,n),s=Mu(n),c=l.useRef(null),d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),h=m(t,p,o.onViewportChange),g=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),_=o.toastCount>0;l.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&p.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),l.useEffect(()=>{let e=c.current,t=p.current;if(_&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(Vu);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(Hu);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[_,o.isClosePausedRef]);let v=l.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...gd(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return l.useEffect(()=>{let e=p.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){d.current?.focus();return}let i=v({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);_d(i.slice(a+1))?t.preventDefault():r?d.current?.focus():f.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,v]),(0,u.jsxs)(an,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,g),tabIndex:-1,style:{pointerEvents:_?void 0:`none`},children:[_&&(0,u.jsx)(Gu,{ref:d,onFocusFromOutsideViewport:()=>{_d(v({tabbingDirection:`forwards`}))}}),(0,u.jsx)(ju.Slot,{scope:n,children:(0,u.jsx)(q.ol,{tabIndex:-1,...a,ref:h})}),_&&(0,u.jsx)(Gu,{ref:f,onFocusFromOutsideViewport:()=>{_d(v({tabbingDirection:`backwards`}))}})]})});Uu.displayName=zu;var Wu=`ToastFocusProxy`,Gu=l.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=Lu(Wu,n);return(0,u.jsx)(Ta,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});Gu.displayName=Wu;var Ku=`Toast`,qu=`toast.swipeStart`,Ju=`toast.swipeMove`,Yu=`toast.swipeCancel`,Xu=`toast.swipeEnd`,Zu=l.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=Z({prop:r,defaultProp:i??!0,onChange:a,caller:Ku});return(0,u.jsx)(Q,{present:n||s,children:(0,u.jsx)(ed,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:J(e.onPause),onResume:J(e.onResume),onSwipeStart:G(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:G(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:G(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:G(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})});Zu.displayName=Ku;var[Qu,$u]=Pu(Ku,{onClose(){}}),ed=l.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:f,onSwipeStart:p,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:_,...v}=e,y=Lu(Ku,n),[b,x]=l.useState(null),S=m(t,e=>x(e)),C=l.useRef(null),w=l.useRef(null),T=i||y.duration,E=l.useRef(0),D=l.useRef(T),O=l.useRef(0),{onToastAdd:k,onToastRemove:A}=y,j=J(()=>{b?.contains(document.activeElement)&&y.viewport?.focus(),o()}),M=l.useCallback(e=>{!e||e===1/0||(window.clearTimeout(O.current),E.current=new Date().getTime(),O.current=window.setTimeout(j,e))},[j]);l.useEffect(()=>{let e=y.viewport;if(e){let t=()=>{M(D.current),f?.()},n=()=>{let e=new Date().getTime()-E.current;D.current-=e,window.clearTimeout(O.current),c?.()};return e.addEventListener(Vu,n),e.addEventListener(Hu,t),()=>{e.removeEventListener(Vu,n),e.removeEventListener(Hu,t)}}},[y.viewport,T,c,f,M]),l.useEffect(()=>{a&&!y.isClosePausedRef.current&&M(T)},[a,T,y.isClosePausedRef,M]),l.useEffect(()=>(k(),()=>A()),[k,A]);let N=l.useMemo(()=>b?dd(b):null,[b]);return y.viewport?(0,u.jsxs)(u.Fragment,{children:[N&&(0,u.jsx)(td,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:N}),(0,u.jsx)(Qu,{scope:n,onClose:j,children:d.createPortal((0,u.jsx)(ju.ItemSlot,{scope:n,children:(0,u.jsx)(rn,{asChild:!0,onEscapeKeyDown:G(s,()=>{y.isFocusedToastEscapeKeyDownRef.current||j(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,u.jsx)(q.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":y.swipeDirection,...v,ref:S,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:G(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:G(e.onPointerDown,e=>{e.button===0&&(C.current={x:e.clientX,y:e.clientY})}),onPointerMove:G(e.onPointerMove,e=>{if(!C.current)return;let t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=!!w.current,i=[`left`,`right`].includes(y.swipeDirection),a=[`left`,`up`].includes(y.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},u={originalEvent:e,delta:l};r?(w.current=l,fd(Ju,h,u,{discrete:!1})):pd(l,y.swipeDirection,c)?(w.current=l,fd(qu,p,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)}),onPointerUp:G(e.onPointerUp,e=>{let t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,C.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};pd(t,y.swipeDirection,y.swipeThreshold)?fd(Xu,_,r,{discrete:!0}):fd(Yu,g,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),td=e=>{let{__scopeToast:t,children:n,...r}=e,i=Lu(Ku,t),[a,o]=l.useState(!1),[s,c]=l.useState(!1);return md(()=>o(!0)),l.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,u.jsx)(fa,{asChild:!0,children:(0,u.jsx)(Ta,{...r,children:a&&(0,u.jsxs)(u.Fragment,{children:[i.label,` `,n]})})})},nd=`ToastTitle`,rd=l.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,u.jsx)(q.div,{...r,ref:t})});rd.displayName=nd;var id=`ToastDescription`,ad=l.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,u.jsx)(q.div,{...r,ref:t})});ad.displayName=id;var od=`ToastAction`,sd=l.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,u.jsx)(ud,{altText:n,asChild:!0,children:(0,u.jsx)(ld,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${od}\`. Expected non-empty \`string\`.`),null)});sd.displayName=od;var cd=`ToastClose`,ld=l.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=$u(cd,n);return(0,u.jsx)(ud,{asChild:!0,children:(0,u.jsx)(q.button,{type:`button`,...r,ref:t,onClick:G(e.onClick,i.onClose)})})});ld.displayName=cd;var ud=l.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,u.jsx)(q.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function dd(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),hd(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...dd(e))}}),t}function fd(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ht(i,a):i.dispatchEvent(a)}var pd=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function md(e=()=>{}){let t=J(e);Y(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function hd(e){return e.nodeType===e.ELEMENT_NODE}function gd(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _d(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var vd=Ru,yd=Uu,bd=Zu,xd=rd,Sd=ad,Cd=ld;function wd(e,t){switch(t.type){case`ADD`:return{toasts:[...e.toasts,t.toast]};case`REMOVE`:return{toasts:e.toasts.filter(e=>e.id!==t.id)}}}var Td=[];function Ed(e){Td.forEach(t=>t(e))}var Dd=0;function Od(){return`toast-${++Dd}`}function kd(e){let t=Od();return Ed({type:`ADD`,toast:{id:t,variant:`neutral`,duration:4e3,...e}}),t}kd.dismiss=function(e){e?Ed({type:`REMOVE`,id:e}):(Td.forEach(()=>{}),Ed({type:`REMOVE`,id:`__all__`}))},kd.success=e=>kd({...e,variant:`success`}),kd.warning=e=>kd({...e,variant:`warning`}),kd.danger=e=>kd({...e,variant:`danger`});function Ad(){let[e,t]=l.useReducer(wd,{toasts:[]});l.useEffect(()=>(Td.push(t),()=>{let e=Td.indexOf(t);e>-1&&Td.splice(e,1)}),[]);let n=l.useCallback(e=>{t({type:`REMOVE`,id:e})},[]);return{toasts:e.toasts,dismiss:n}}function jd(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.061L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z`})})}function Md(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z`})})}function Nd(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z`})})}function Pd(){return(0,u.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`14`,height:`14`,fill:`currentColor`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z`})})}var Fd={neutral:{container:`bg-ash text-paper border-[color-mix(in_srgb,var(--color-paper)_15%,transparent)]`,icon:null},success:{container:`bg-ash text-paper border-[color-mix(in_srgb,var(--color-growth)_50%,transparent)]`,icon:(0,u.jsx)(jd,{})},warning:{container:`bg-ash text-paper border-[color-mix(in_srgb,var(--color-caution)_50%,transparent)]`,icon:(0,u.jsx)(Md,{})},danger:{container:`bg-ash text-paper border-[color-mix(in_srgb,var(--color-signal)_50%,transparent)]`,icon:(0,u.jsx)(Nd,{})}},Id={neutral:`text-smoke`,success:`text-[var(--color-growth)]`,warning:`text-[var(--color-caution)]`,danger:`text-signal`};function Ld({offset:e=16}){let{toasts:t,dismiss:n}=Ad();return(0,u.jsxs)(vd,{swipeDirection:`right`,children:[t.map(e=>{let t=Fd[e.variant??`neutral`],r=Id[e.variant??`neutral`];return(0,u.jsxs)(bd,{duration:e.duration===1/0?void 0:e.duration,onOpenChange:t=>{t||n(e.id)},className:W(`flex items-start gap-3`,`w-[360px] max-w-[calc(100vw-32px)] rounded-sm border`,`px-4 py-3`,`shadow-[var(--shadow-lg)]`,`data-[state=open]:animate-[toast-in_200ms_var(--ease-enter)]`,`data-[state=closed]:animate-[toast-out_150ms_var(--ease-exit)]`,`data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)]`,`data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:transition-transform`,`data-[swipe=end]:animate-[toast-out_150ms_var(--ease-exit)]`,t.container),children:[t.icon&&(0,u.jsx)(`span`,{className:W(`mt-0.5 shrink-0`,r),children:t.icon}),(0,u.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[e.title&&(0,u.jsx)(xd,{className:`font-display font-bold text-sm uppercase tracking-[0.06em] leading-snug`,children:e.title}),e.description&&(0,u.jsx)(Sd,{className:W(`text-sm text-smoke leading-relaxed`,e.title&&`mt-0.5`),children:e.description})]}),(0,u.jsx)(Cd,{"aria-label":`Dismiss`,className:W(`shrink-0 mt-0.5 text-smoke opacity-60 hover:opacity-100`,`transition-opacity duration-fast ease-[var(--ease-standard)]`,`outline-none focus-visible:ring-[2px] focus-visible:ring-signal-alt rounded-sm`),children:(0,u.jsx)(Pd,{})})]},e.id)}),(0,u.jsx)(yd,{className:`fixed bottom-0 right-0 flex flex-col gap-2 p-4 w-[392px] max-w-[100vw] z-50 outline-none`,style:{"--offset":`${e}px`}})]})}var Rd=`rovingFocusGroup.onEntryFocus`,zd={bubbles:!1,cancelable:!0},Bd=`RovingFocusGroup`,[Vd,Hd,Ud]=Nt(Bd),[Wd,Gd]=K(Bd,[Ud]),[Kd,qd]=Wd(Bd),Jd=l.forwardRef((e,t)=>(0,u.jsx)(Vd.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Vd.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Yd,{...e,ref:t})})}));Jd.displayName=Bd;var Yd=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=l.useRef(null),g=m(t,h),_=Ft(a),[v,y]=Z({prop:o,defaultProp:s??null,onChange:c,caller:Bd}),[b,x]=l.useState(!1),S=J(d),C=Hd(n),w=l.useRef(!1),[T,E]=l.useState(0);return l.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(Rd,S),()=>e.removeEventListener(Rd,S)},[S]),(0,u.jsx)(Kd,{scope:n,orientation:r,dir:_,loop:i,currentTabStopId:v,onItemFocus:l.useCallback(e=>y(e),[y]),onItemShiftTab:l.useCallback(()=>x(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>E(e=>e-1),[]),children:(0,u.jsx)(q.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:`none`,...e.style},onMouseDown:G(e.onMouseDown,()=>{w.current=!0}),onFocus:G(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(Rd,zd);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);tf([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),f)}}w.current=!1}),onBlur:G(e.onBlur,()=>x(!1))})})}),Xd=`RovingFocusGroupItem`,Zd=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=X(),d=a||c,f=qd(Xd,n),p=f.currentTabStopId===d,m=Hd(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=f;return l.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),(0,u.jsx)(Vd.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:(0,u.jsx)(q.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:G(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:G(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:G(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=ef(e,f.orientation,f.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?nf(n,r+1):n.slice(r+1)}setTimeout(()=>tf(n))}}),children:typeof o==`function`?o({isCurrentTabStop:p,hasTabStop:_!=null}):o})})});Zd.displayName=Xd;var Qd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function $d(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function ef(e,t,n){let r=$d(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Qd[r]}function tf(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function nf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rf=Jd,af=Zd,of=`Tabs`,[sf,cf]=K(of,[Gd]),lf=Gd(),[uf,df]=sf(of),ff=l.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,d=Ft(s),[f,p]=Z({prop:r,onChange:i,defaultProp:a??``,caller:of});return(0,u.jsx)(uf,{scope:n,baseId:X(),value:f,onValueChange:p,orientation:o,dir:d,activationMode:c,children:(0,u.jsx)(q.div,{dir:d,"data-orientation":o,...l,ref:t})})});ff.displayName=of;var pf=`TabsList`,mf=l.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=df(pf,n),o=lf(n);return(0,u.jsx)(rf,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,u.jsx)(q.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});mf.displayName=pf;var hf=`TabsTrigger`,gf=l.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=df(hf,n),s=lf(n),c=yf(o.baseId,r),l=bf(o.baseId,r),d=r===o.value;return(0,u.jsx)(af,{asChild:!0,...s,focusable:!i,active:d,children:(0,u.jsx)(q.button,{type:`button`,role:`tab`,"aria-selected":d,"aria-controls":l,"data-state":d?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:G(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:G(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:G(e.onFocus,()=>{let e=o.activationMode!==`manual`;!d&&!i&&e&&o.onValueChange(r)})})})});gf.displayName=hf;var _f=`TabsContent`,vf=l.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=df(_f,n),c=yf(s.baseId,r),d=bf(s.baseId,r),f=r===s.value,p=l.useRef(f);return l.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.jsx)(Q,{present:i||f,children:({present:n})=>(0,u.jsx)(q.div,{"data-state":f?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&a})})});vf.displayName=_f;function yf(e,t){return`${e}-trigger-${t}`}function bf(e,t){return`${e}-content-${t}`}var xf=ff,Sf=mf,Cf=gf,wf=vf,Tf=xf,Ef=wf;function Df({className:e,...t}){return(0,u.jsx)(Sf,{className:W(`flex items-end gap-0`,`border-b border-rule`,e),...t})}function Of({className:e,...t}){return(0,u.jsx)(Cf,{className:W(`relative flex items-center gap-1.5`,`font-display font-bold text-xs uppercase tracking-widest`,`px-4 pb-3 pt-2`,`text-smoke`,`border-b-2 border-transparent -mb-px`,`data-[state=active]:text-void data-[state=active]:border-b-signal`,`data-[state=inactive]:hover:text-void`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt focus-visible:ring-inset rounded-t-sm`,`disabled:opacity-[0.38] disabled:cursor-not-allowed disabled:pointer-events-none`,`transition-colors duration-fast ease-(--ease-standard)`,e),...t})}function kf(e){let t=Af(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(Mf);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Af(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=Pf(n),i=Nf(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jf=Symbol(`radix.slottable`);function Mf(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===jf}function Nf(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Pf(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ff=[`Enter`,` `],If=[`ArrowDown`,`PageUp`,`Home`],Lf=[`ArrowUp`,`PageDown`,`End`],Rf=[...If,...Lf],zf={ltr:[...Ff,`ArrowRight`],rtl:[...Ff,`ArrowLeft`]},Bf={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Vf=`Menu`,[Hf,Uf,Wf]=Nt(Vf),[Gf,Kf]=K(Vf,[Wf,Gi,Gd]),qf=Gi(),Jf=Gd(),[Yf,Xf]=Gf(Vf),[Zf,Qf]=Gf(Vf),$f=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=qf(t),[c,d]=l.useState(null),f=l.useRef(!1),p=J(a),m=Ft(i);return l.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,u.jsx)(sa,{...s,children:(0,u.jsx)(Yf,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,u.jsx)(Zf,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:o,children:r})})})};$f.displayName=Vf;var ep=`MenuAnchor`,tp=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=qf(n);return(0,u.jsx)(ca,{...i,...r,ref:t})});tp.displayName=ep;var np=`MenuPortal`,[rp,ip]=Gf(np,{forceMount:void 0}),ap=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Xf(np,t);return(0,u.jsx)(rp,{scope:t,forceMount:n,children:(0,u.jsx)(Q,{present:n||a.open,children:(0,u.jsx)(fa,{asChild:!0,container:i,children:r})})})};ap.displayName=np;var op=`MenuContent`,[sp,cp]=Gf(op),lp=l.forwardRef((e,t)=>{let n=ip(op,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Xf(op,e.__scopeMenu),o=Qf(op,e.__scopeMenu);return(0,u.jsx)(Hf.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(Q,{present:r||a.open,children:(0,u.jsx)(Hf.Slot,{scope:e.__scopeMenu,children:o.modal?(0,u.jsx)(up,{...i,ref:t}):(0,u.jsx)(dp,{...i,ref:t})})})})}),up=l.forwardRef((e,t)=>{let n=Xf(op,e.__scopeMenu),r=l.useRef(null),i=m(t,r);return l.useEffect(()=>{let e=r.current;if(e)return Fa(e)},[]),(0,u.jsx)(pp,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),dp=l.forwardRef((e,t)=>{let n=Xf(op,e.__scopeMenu);return(0,u.jsx)(pp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),fp=kf(`MenuContent.ScrollLock`),pp=l.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,disableOutsideScroll:_,...v}=e,y=Xf(op,n),b=Qf(op,n),x=qf(n),S=Jf(n),C=Uf(n),[w,T]=l.useState(null),E=l.useRef(null),D=m(t,E,y.onContentChange),O=l.useRef(0),k=l.useRef(``),A=l.useRef(0),j=l.useRef(null),M=l.useRef(`right`),N=l.useRef(0),P=_?Go:l.Fragment,ee=_?{as:fp,allowPinchZoom:!0}:void 0,F=e=>{let t=k.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Zp(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};l.useEffect(()=>()=>window.clearTimeout(O.current),[]),sn();let I=l.useCallback(e=>M.current===j.current?.side&&$p(e,j.current?.area),[]);return(0,u.jsx)(sp,{scope:n,searchRef:k,onItemEnter:l.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:l.useCallback(e=>{I(e)||(E.current?.focus(),T(null))},[I]),onTriggerLeave:l.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:A,onPointerGraceIntentChange:l.useCallback(e=>{j.current=e},[]),children:(0,u.jsx)(P,{...ee,children:(0,u.jsx)(pn,{asChild:!0,trapped:i,onMountAutoFocus:G(a,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,u.jsx)(Xt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,children:(0,u.jsx)(rf,{asChild:!0,...S,dir:b.dir,orientation:`vertical`,loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:G(c,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,u.jsx)(la,{role:`menu`,"aria-orientation":`vertical`,"data-state":Kp(y.open),"data-radix-menu-content":``,dir:b.dir,...x,...v,ref:D,style:{outline:`none`,...v.style},onKeyDown:G(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=E.current;if(e.target!==i||!Rf.includes(e.key))return;e.preventDefault();let a=C().filter(e=>!e.disabled).map(e=>e.ref.current);Lf.includes(e.key)&&a.reverse(),Yp(a)}),onBlur:G(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:G(e.onPointerMove,em(e=>{let t=e.target,n=N.current!==e.clientX;e.currentTarget.contains(t)&&n&&(M.current=e.clientX>N.current?`right`:`left`,N.current=e.clientX)}))})})})})})})});lp.displayName=op;var mp=`MenuGroup`,hp=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(q.div,{role:`group`,...r,ref:t})});hp.displayName=mp;var gp=`MenuLabel`,_p=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(q.div,{...r,ref:t})});_p.displayName=gp;var vp=`MenuItem`,yp=`menu.itemSelect`,bp=l.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=l.useRef(null),o=Qf(vp,e.__scopeMenu),s=cp(vp,e.__scopeMenu),c=m(t,a),d=l.useRef(!1),f=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(yp,{bubbles:!0,cancelable:!0});e.addEventListener(yp,e=>r?.(e),{once:!0}),Ht(e,t),t.defaultPrevented?d.current=!1:o.onClose()}};return(0,u.jsx)(xp,{...i,ref:c,disabled:n,onClick:G(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:G(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:G(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Ff.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});bp.displayName=vp;var xp=l.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=cp(vp,n),s=Jf(n),c=l.useRef(null),d=m(t,c),[f,p]=l.useState(!1),[h,g]=l.useState(``);return l.useEffect(()=>{let e=c.current;e&&g((e.textContent??``).trim())},[a.children]),(0,u.jsx)(Hf.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:(0,u.jsx)(af,{asChild:!0,...s,focusable:!r,children:(0,u.jsx)(q.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:d,onPointerMove:G(e.onPointerMove,em(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,em(e=>o.onItemLeave(e))),onFocus:G(e.onFocus,()=>p(!0)),onBlur:G(e.onBlur,()=>p(!1))})})})}),Sp=`MenuCheckboxItem`,Cp=l.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,u.jsx)(jp,{scope:e.__scopeMenu,checked:n,children:(0,u.jsx)(bp,{role:`menuitemcheckbox`,"aria-checked":qp(n)?`mixed`:n,...i,ref:t,"data-state":Jp(n),onSelect:G(i.onSelect,()=>r?.(qp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Cp.displayName=Sp;var wp=`MenuRadioGroup`,[Tp,Ep]=Gf(wp,{value:void 0,onValueChange:()=>{}}),Dp=l.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=J(r);return(0,u.jsx)(Tp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,u.jsx)(hp,{...i,ref:t})})});Dp.displayName=wp;var Op=`MenuRadioItem`,kp=l.forwardRef((e,t)=>{let{value:n,...r}=e,i=Ep(Op,e.__scopeMenu),a=n===i.value;return(0,u.jsx)(jp,{scope:e.__scopeMenu,checked:a,children:(0,u.jsx)(bp,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Jp(a),onSelect:G(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});kp.displayName=Op;var Ap=`MenuItemIndicator`,[jp,Mp]=Gf(Ap,{checked:!1}),Np=l.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Mp(Ap,n);return(0,u.jsx)(Q,{present:r||qp(a.checked)||a.checked===!0,children:(0,u.jsx)(q.span,{...i,ref:t,"data-state":Jp(a.checked)})})});Np.displayName=Ap;var Pp=`MenuSeparator`,Fp=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(q.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Fp.displayName=Pp;var Ip=`MenuArrow`,Lp=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=qf(n);return(0,u.jsx)(ua,{...i,...r,ref:t})});Lp.displayName=Ip;var Rp=`MenuSub`,[zp,Bp]=Gf(Rp),Vp=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Xf(Rp,t),o=qf(t),[s,c]=l.useState(null),[d,f]=l.useState(null),p=J(i);return l.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,u.jsx)(sa,{...o,children:(0,u.jsx)(Yf,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,u.jsx)(zp,{scope:t,contentId:X(),triggerId:X(),trigger:s,onTriggerChange:c,children:n})})})};Vp.displayName=Rp;var Hp=`MenuSubTrigger`,Up=l.forwardRef((e,t)=>{let n=Xf(Hp,e.__scopeMenu),r=Qf(Hp,e.__scopeMenu),i=Bp(Hp,e.__scopeMenu),a=cp(Hp,e.__scopeMenu),o=l.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,u.jsx)(tp,{asChild:!0,...d,children:(0,u.jsx)(xp,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Kp(n.open),...e,ref:p(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:G(e.onPointerMove,em(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:G(e.onPointerLeave,em(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:G(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||zf[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Up.displayName=Hp;var Wp=`MenuSubContent`,Gp=l.forwardRef((e,t)=>{let n=ip(op,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Xf(op,e.__scopeMenu),o=Qf(op,e.__scopeMenu),s=Bp(Wp,e.__scopeMenu),c=l.useRef(null),d=m(t,c);return(0,u.jsx)(Hf.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(Q,{present:r||a.open,children:(0,u.jsx)(Hf.Slot,{scope:e.__scopeMenu,children:(0,u.jsx)(pp,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:G(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:G(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:G(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Bf[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Gp.displayName=Wp;function Kp(e){return e?`open`:`closed`}function qp(e){return e===`indeterminate`}function Jp(e){return qp(e)?`indeterminate`:e?`checked`:`unchecked`}function Yp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Zp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Xp(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Qp(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function $p(e,t){return t?Qp({x:e.clientX,y:e.clientY},t):!1}function em(e){return t=>t.pointerType===`mouse`?e(t):void 0}var tm=$f,nm=tp,rm=ap,im=lp,am=hp,om=_p,sm=bp,cm=Cp,lm=Dp,um=kp,dm=Np,fm=Fp,pm=Lp,mm=Vp,hm=Up,gm=Gp,_m=`DropdownMenu`,[vm,ym]=K(_m,[Kf]),$=Kf(),[bm,xm]=vm(_m),Sm=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),d=l.useRef(null),[f,p]=Z({prop:i,defaultProp:a??!1,onChange:o,caller:_m});return(0,u.jsx)(bm,{scope:t,triggerId:X(),triggerRef:d,contentId:X(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,u.jsx)(tm,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};Sm.displayName=_m;var Cm=`DropdownMenuTrigger`,wm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=xm(Cm,n),o=$(n);return(0,u.jsx)(nm,{asChild:!0,...o,children:(0,u.jsx)(q.button,{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":r?``:void 0,disabled:r,...i,ref:p(t,a.triggerRef),onPointerDown:G(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:G(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});wm.displayName=Cm;var Tm=`DropdownMenuPortal`,Em=e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,u.jsx)(rm,{...r,...n})};Em.displayName=Tm;var Dm=`DropdownMenuContent`,Om=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=xm(Dm,n),a=$(n),o=l.useRef(!1);return(0,u.jsx)(im,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:G(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Om.displayName=Dm;var km=`DropdownMenuGroup`,Am=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(am,{...i,...r,ref:t})});Am.displayName=km;var jm=`DropdownMenuLabel`,Mm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(om,{...i,...r,ref:t})});Mm.displayName=jm;var Nm=`DropdownMenuItem`,Pm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(sm,{...i,...r,ref:t})});Pm.displayName=Nm;var Fm=`DropdownMenuCheckboxItem`,Im=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(cm,{...i,...r,ref:t})});Im.displayName=Fm;var Lm=`DropdownMenuRadioGroup`,Rm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(lm,{...i,...r,ref:t})});Rm.displayName=Lm;var zm=`DropdownMenuRadioItem`,Bm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(um,{...i,...r,ref:t})});Bm.displayName=zm;var Vm=`DropdownMenuItemIndicator`,Hm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(dm,{...i,...r,ref:t})});Hm.displayName=Vm;var Um=`DropdownMenuSeparator`,Wm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(fm,{...i,...r,ref:t})});Wm.displayName=Um;var Gm=`DropdownMenuArrow`,Km=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(pm,{...i,...r,ref:t})});Km.displayName=Gm;var qm=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=$(t),[s,c]=Z({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,u.jsx)(mm,{...o,open:s,onOpenChange:c,children:n})},Jm=`DropdownMenuSubTrigger`,Ym=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(hm,{...i,...r,ref:t})});Ym.displayName=Jm;var Xm=`DropdownMenuSubContent`,Zm=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,u.jsx)(gm,{...i,...r,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)`}})});Zm.displayName=Xm;var Qm=Sm,$m=wm,eh=Em,th=Om,nh=Am,rh=Mm,ih=Pm,ah=Im,oh=Rm,sh=Bm,ch=Hm,lh=Wm,uh=qm,dh=Ym,fh=Zm,ph=Qm,mh=$m,hh=nh,gh=uh,_h=oh;function vh({className:e,sideOffset:t=4,align:n=`start`,...r}){return(0,u.jsx)(eh,{children:(0,u.jsx)(th,{sideOffset:t,align:n,className:W(`min-w-[160px] rounded-sm border border-rule`,`bg-paper shadow-[var(--shadow-md)]`,`py-1`,`z-50`,`data-[state=open]:animate-[dropdown-in_120ms_var(--ease-enter)]`,`data-[state=closed]:animate-[dropdown-out_80ms_var(--ease-exit)]`,e),...r})})}function yh({destructive:e,icon:t,className:n,children:r,...i}){return(0,u.jsxs)(ih,{className:W(`flex items-center gap-2`,`font-body text-sm`,`px-4 py-2`,`cursor-default select-none outline-none`,e?`text-signal`:`text-void`,e?`data-[highlighted]:bg-[color-mix(in_srgb,var(--color-signal)_8%,var(--color-paper))]`:`data-[highlighted]:bg-[color-mix(in_srgb,var(--color-rule)_60%,var(--color-paper))]`,`data-[disabled]:opacity-[0.38] data-[disabled]:pointer-events-none`,n),...i,children:[t&&(0,u.jsx)(`span`,{className:`shrink-0 w-4 h-4 flex items-center justify-center opacity-70`,children:t}),r]})}function bh({className:e,children:t,checked:n,...r}){return(0,u.jsxs)(ah,{checked:n,className:W(`flex items-center gap-2 font-body text-sm text-void`,`px-4 py-2 cursor-default select-none outline-none`,`data-[highlighted]:bg-[color-mix(in_srgb,var(--color-rule)_60%,var(--color-paper))]`,`data-[disabled]:opacity-[0.38] data-[disabled]:pointer-events-none`,e),...r,children:[(0,u.jsx)(`span`,{className:`shrink-0 w-4 h-4 flex items-center justify-center rounded-sm border border-rule data-[state=checked]:bg-signal-alt data-[state=checked]:border-signal-alt`,children:(0,u.jsx)(ch,{children:(0,u.jsx)(Eh,{})})}),t]})}function xh({className:e,children:t,...n}){return(0,u.jsxs)(sh,{className:W(`flex items-center gap-2 font-body text-sm text-void`,`px-4 py-2 cursor-default select-none outline-none`,`data-[highlighted]:bg-[color-mix(in_srgb,var(--color-rule)_60%,var(--color-paper))]`,`data-[disabled]:opacity-[0.38] data-[disabled]:pointer-events-none`,e),...n,children:[(0,u.jsx)(`span`,{className:`shrink-0 w-4 h-4 flex items-center justify-center rounded-full border border-rule`,children:(0,u.jsx)(ch,{children:(0,u.jsx)(`span`,{className:`block w-2 h-2 rounded-full bg-signal-alt`})})}),t]})}function Sh({className:e,...t}){return(0,u.jsx)(rh,{className:W(`px-4 py-1.5`,`font-display font-bold text-xs uppercase tracking-widest text-smoke`,e),...t})}function Ch({className:e,...t}){return(0,u.jsx)(lh,{className:W(`my-1 h-px bg-rule`,e),...t})}function wh({className:e,children:t,...n}){return(0,u.jsxs)(dh,{className:W(`flex items-center justify-between gap-2`,`font-body text-sm text-void`,`px-4 py-2 cursor-default select-none outline-none`,`data-[highlighted]:bg-[color-mix(in_srgb,var(--color-rule)_60%,var(--color-paper))]`,`data-[state=open]:bg-[color-mix(in_srgb,var(--color-rule)_60%,var(--color-paper))]`,e),...n,children:[t,(0,u.jsx)(Dh,{})]})}function Th({className:e,...t}){return(0,u.jsx)(fh,{className:W(`min-w-[160px] rounded-sm border border-rule`,`bg-paper shadow-[var(--shadow-md)]`,`py-1 z-50`,e),...t})}function Eh(){return(0,u.jsx)(`svg`,{viewBox:`0 0 10 8`,className:`w-2.5 h-2 text-paper`,fill:`none`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M1 4L3.5 6.5L9 1.5`})})}function Dh(){return(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:`text-smoke`,children:(0,u.jsx)(`path`,{d:`M4.5 2.5L8 6l-3.5 3.5`})})}var Oh=Symbol(`radix.slottable`);function kh(e){let t=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Oh,t}var[Ah,jh]=K(`Tooltip`,[Gi]),Mh=Gi(),Nh=`TooltipProvider`,Ph=700,Fh=`tooltip.open`,[Ih,Lh]=Ah(Nh),Rh=e=>{let{__scopeTooltip:t,delayDuration:n=Ph,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=l.useRef(!0),s=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,u.jsx)(Ih,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:l.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Rh.displayName=Nh;var zh=`Tooltip`,[Bh,Vh]=Ah(zh),Hh=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Lh(zh,e.__scopeTooltip),d=Mh(t),[f,p]=l.useState(null),m=X(),h=l.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=l.useRef(!1),[y,b]=Z({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Fh))):c.onClose(),a?.(e)},caller:zh}),x=l.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);return l.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,u.jsx)(sa,{...d,children:(0,u.jsx)(Bh,{scope:t,contentId:m,open:y,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:l.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})};Hh.displayName=zh;var Uh=`TooltipTrigger`,Wh=l.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Vh(Uh,n),a=Lh(Uh,n),o=Mh(n),s=m(t,l.useRef(null),i.onTriggerChange),c=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>c.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,u.jsx)(ca,{asChild:!0,...o,children:(0,u.jsx)(q.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:G(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:G(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:G(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:G(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:G(e.onBlur,i.onClose),onClick:G(e.onClick,i.onClose)})})});Wh.displayName=Uh;var Gh=`TooltipPortal`,[Kh,qh]=Ah(Gh,{forceMount:void 0}),Jh=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Vh(Gh,t);return(0,u.jsx)(Kh,{scope:t,forceMount:n,children:(0,u.jsx)(Q,{present:n||a.open,children:(0,u.jsx)(fa,{asChild:!0,container:i,children:r})})})};Jh.displayName=Gh;var Yh=`TooltipContent`,Xh=l.forwardRef((e,t)=>{let n=qh(Yh,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Vh(Yh,e.__scopeTooltip);return(0,u.jsx)(Q,{present:r||o.open,children:o.disableHoverableContent?(0,u.jsx)(tg,{side:i,...a,ref:t}):(0,u.jsx)(Zh,{side:i,...a,ref:t})})}),Zh=l.forwardRef((e,t)=>{let n=Vh(Yh,e.__scopeTooltip),r=Lh(Yh,e.__scopeTooltip),i=l.useRef(null),a=m(t,i),[o,s]=l.useState(null),{trigger:c,onClose:d}=n,f=i.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{s(null),p(!1)},[p]),g=l.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=ag(r,ig(r,n.getBoundingClientRect())),a=og(t.getBoundingClientRect());s(cg([...i,...a])),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){let e=e=>g(e,f),t=e=>g(e,c);return c.addEventListener(`pointerleave`,e),f.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),f.removeEventListener(`pointerleave`,t)}}},[c,f,g,h]),l.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||f?.contains(t),i=!sg(n,o);r?h():i&&(h(),d())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,f,o,d,h]),(0,u.jsx)(tg,{...e,ref:a})}),[Qh,$h]=Ah(zh,{isInside:!1}),eg=kh(`TooltipContent`),tg=l.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Vh(Yh,n),d=Mh(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Fh,f),()=>document.removeEventListener(Fh,f)),[f]),l.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&f()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,f]),(0,u.jsx)(Xt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,u.jsxs)(la,{"data-state":c.stateAttribute,...d,...s,ref:t,style:{...s.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)`},children:[(0,u.jsx)(eg,{children:r}),(0,u.jsx)(Qh,{scope:n,isInside:!0,children:(0,u.jsx)(Ea,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Xh.displayName=Yh;var ng=`TooltipArrow`,rg=l.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Mh(n);return $h(ng,n).isInside?null:(0,u.jsx)(ua,{...i,...r,ref:t})});rg.displayName=ng;function ig(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ag(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function og(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function sg(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function cg(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),lg(t)}function lg(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.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)}var ug=Rh,dg=Hh,fg=Wh,pg=Jh,mg=Xh,hg=ug,gg=dg,_g=fg;function vg({className:e,sideOffset:t=6,side:n=`top`,...r}){return(0,u.jsx)(pg,{children:(0,u.jsx)(mg,{sideOffset:t,side:n,className:W(`rounded-sm px-2.5 py-1.5`,`bg-ash text-paper`,`font-body text-xs leading-none`,`shadow-[var(--shadow-md)]`,`z-50`,`max-w-[220px] text-center`,`data-[state=delayed-open]:animate-[tooltip-in_100ms_var(--ease-enter)]`,`data-[state=instant-open]:animate-[tooltip-in_100ms_var(--ease-enter)]`,`data-[state=closed]:animate-[tooltip-out_80ms_var(--ease-exit)]`,e),...r})})}var yg={sm:`w-4 h-4`,md:`w-6 h-6`,lg:`w-8 h-8`};function bg({size:e=`md`,label:t=`Loading`,className:n,...r}){return(0,u.jsxs)(`svg`,{role:`status`,"aria-label":t,viewBox:`0 0 24 24`,fill:`none`,className:W(`animate-spin shrink-0`,yg[e],n),...r,children:[(0,u.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`2.5`,className:`opacity-20`}),(0,u.jsx)(`path`,{d:`M12 2a10 10 0 0 1 10 10`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})]})}function xg({className:e,...t}){return(0,u.jsx)(`div`,{"aria-hidden":`true`,className:W(`animate-pulse rounded-sm bg-rule`,e),...t})}function Sg(e,t=[]){let n=[];function r(t,r){let i=l.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=l.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=l.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Cg(i,...t)]}function Cg(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var wg=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Tg=`Progress`,Eg=100,[Dg,Og]=Sg(Tg),[kg,Ag]=Dg(Tg),jg=l.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=Pg,...o}=e;(i||i===0)&&!Lg(i)&&console.error(zg(`${i}`,`Progress`));let s=Lg(i)?i:Eg;r!==null&&!Rg(r,s)&&console.error(Bg(`${r}`,`Progress`));let c=Rg(r,s)?r:null,l=Ig(c)?a(c,s):void 0;return(0,u.jsx)(kg,{scope:n,value:c,max:s,children:(0,u.jsx)(wg.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ig(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":Fg(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});jg.displayName=Tg;var Mg=`ProgressIndicator`,Ng=l.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=Ag(Mg,n);return(0,u.jsx)(wg.div,{"data-state":Fg(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});Ng.displayName=Mg;function Pg(e,t){return`${Math.round(e/t*100)}%`}function Fg(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function Ig(e){return typeof e==`number`}function Lg(e){return Ig(e)&&!isNaN(e)&&e>0}function Rg(e,t){return Ig(e)&&!isNaN(e)&&e<=t&&e>=0}function zg(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Eg}\`.`}function Bg(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
46
|
+
- a positive number
|
|
47
|
+
- less than the value passed to \`max\` (or ${Eg} if no \`max\` prop is set)
|
|
48
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
49
|
+
|
|
50
|
+
Defaulting to \`null\`.`}var Vg=jg,Hg=Ng,Ug={sm:`h-1.5`,md:`h-2.5`,lg:`h-4`},Wg={default:`bg-signal-alt`,warning:`bg-[var(--color-caution)]`,danger:`bg-signal`,success:`bg-[var(--color-growth)]`};function Gg({value:e=0,max:t=100,size:n=`md`,variant:r=`default`,label:i,showValue:a=!1,className:o,...s}){let c=Math.min(100,Math.max(0,t>0?e/t*100:0));return(0,u.jsxs)(`div`,{className:W(`flex flex-col gap-1`,o),children:[(i||a)&&(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[i&&(0,u.jsx)(`span`,{className:`text-sm text-smoke`,children:i}),a&&(0,u.jsxs)(`span`,{className:`text-sm text-smoke tabular-nums ml-auto`,children:[Math.round(c),`%`]})]}),(0,u.jsx)(Vg,{value:e,max:t,"aria-label":i??`Progress`,className:W(`relative w-full overflow-hidden rounded-full bg-rule`,Ug[n]),...s,children:(0,u.jsx)(Hg,{className:W(`h-full transition-[width] duration-slow ease-(--ease-standard)`,Wg[r]),style:{width:`${c}%`}})})]})}var Kg={up:`text-[var(--color-growth)]`,down:`text-signal`,neutral:`text-smoke`},qg={up:`↑`,down:`↓`,neutral:`—`};function Jg({value:e,label:t,delta:n,deltaDirection:r=`neutral`,caption:i,className:a,...o}){return(0,u.jsxs)(`div`,{className:W(`flex flex-col gap-1 p-4 border border-rule rounded-md bg-paper`,a),...o,children:[(0,u.jsx)(`span`,{className:`font-display text-xs tracking-widest uppercase text-smoke leading-none`,children:t}),(0,u.jsxs)(`div`,{className:`flex items-baseline gap-2 mt-0.5`,children:[(0,u.jsx)(`span`,{className:`font-display font-bold text-2xl text-void leading-none tabular-nums`,children:e}),n!==void 0&&(0,u.jsxs)(`span`,{className:W(`text-sm font-medium tabular-nums leading-none`,Kg[r]),"aria-label":`${r===`up`?`increase`:r===`down`?`decrease`:`no change`} of ${n}`,children:[(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[qg[r],` `]}),n]})]}),i&&(0,u.jsx)(`span`,{className:`text-sm text-smoke leading-snug`,children:i})]})}function Yg(e,t=[]){let n=[];function r(t,r){let i=l.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=l.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=l.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Xg(i,...t)]}function Xg(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Zg=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qg=o((e=>{var t=require(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),$g=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=require(`react`),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),e_=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Qg():t.exports=$g()}))();function t_(){return(0,e_.useSyncExternalStore)(n_,()=>!0,()=>!1)}function n_(){return()=>{}}var r_=`Avatar`,[i_,a_]=Yg(r_),[o_,s_]=i_(r_),c_=l.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=l.useState(`idle`);return(0,u.jsx)(o_,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,u.jsx)(Zg.span,{...r,ref:t})})});c_.displayName=r_;var l_=`AvatarImage`,u_=l.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=s_(l_,n),s=m_(r,a),c=J(e=>{i(e),o.onImageLoadingStatusChange(e)});return Y(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,u.jsx)(Zg.img,{...a,ref:t,src:r}):null});u_.displayName=l_;var d_=`AvatarFallback`,f_=l.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=s_(d_,n),[o,s]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,u.jsx)(Zg.span,{...i,ref:t}):null});f_.displayName=d_;function p_(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function m_(e,{referrerPolicy:t,crossOrigin:n}){let r=t_(),i=l.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=l.useState(()=>p_(a,e));return Y(()=>{s(p_(a,e))},[a,e]),Y(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var h_=c_,g_=u_,__=f_,v_={sm:`w-6 h-6 text-[10px]`,md:`w-8 h-8 text-xs`,lg:`w-10 h-10 text-sm`,xl:`w-12 h-12 text-base`},y_=[`bg-signal-alt text-paper`,`bg-[var(--color-growth)] text-paper`,`bg-[var(--color-caution)] text-paper`,`bg-signal text-paper`,`bg-ash text-paper`,`bg-smoke text-paper`];function b_(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t}function x_(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function S_({src:e,alt:t=``,size:n=`md`,className:r,...i}){let a=x_(t),o=y_[b_(t)%y_.length];return(0,u.jsxs)(h_,{className:W(`relative inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 select-none`,v_[n],r),...i,children:[e&&(0,u.jsx)(g_,{src:e,alt:t,className:`w-full h-full object-cover`}),(0,u.jsx)(__,{className:W(`flex items-center justify-center w-full h-full font-display font-bold leading-none`,o),delayMs:e?300:0,children:a})]})}function C_({children:e,max:t=4,size:n=`md`,className:r,...i}){let a=l.default.Children.toArray(e),o=a.slice(0,t),s=a.length-t;return(0,u.jsxs)(`div`,{className:W(`flex items-center`,r),...i,children:[o.map((e,t)=>(0,u.jsx)(`div`,{className:W(`ring-2 ring-paper rounded-full`,t>0&&`-ml-2`),children:e},t)),s>0&&(0,u.jsxs)(`div`,{"aria-label":`${s} more team members`,className:W(`-ml-2 ring-2 ring-paper rounded-full flex items-center justify-center`,`bg-rule text-smoke font-display font-bold shrink-0`,v_[n]),children:[`+`,s]})]})}var w_=`Radio`,[T_,E_]=K(w_),[D_,O_]=T_(w_),k_=l.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s=`on`,onCheck:c,form:d,...f}=e,[p,h]=l.useState(null),g=m(t,e=>h(e)),_=l.useRef(!1),v=p?d||!!p.closest(`form`):!0;return(0,u.jsxs)(D_,{scope:n,checked:i,disabled:o,children:[(0,u.jsx)(q.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":P_(i),"data-disabled":o?``:void 0,disabled:o,value:s,...f,ref:g,onClick:G(e.onClick,e=>{i||c?.(),v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})}),v&&(0,u.jsx)(N_,{control:p,bubbles:!_.current,name:r,value:s,checked:i,required:a,disabled:o,form:d,style:{transform:`translateX(-100%)`}})]})});k_.displayName=w_;var A_=`RadioIndicator`,j_=l.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=O_(A_,n);return(0,u.jsx)(Q,{present:r||a.checked,children:(0,u.jsx)(q.span,{"data-state":P_(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});j_.displayName=A_;var M_=`RadioBubbleInput`,N_=l.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=l.useRef(null),s=m(o,a),c=Sa(n),d=Hi(t);return l.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,u.jsx)(q.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...d,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});N_.displayName=M_;function P_(e){return e?`checked`:`unchecked`}var F_=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],I_=`RadioGroup`,[L_,R_]=K(I_,[Gd,E_]),z_=Gd(),B_=E_(),[V_,H_]=L_(I_),U_=l.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:c,dir:l,loop:d=!0,onValueChange:f,...p}=e,m=z_(n),h=Ft(l),[g,_]=Z({prop:a,defaultProp:i??null,onChange:f,caller:I_});return(0,u.jsx)(V_,{scope:n,name:r,required:o,disabled:s,value:g,onValueChange:_,children:(0,u.jsx)(rf,{asChild:!0,...m,orientation:c,dir:h,loop:d,children:(0,u.jsx)(q.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":c,"data-disabled":s?``:void 0,dir:h,...p,ref:t})})})});U_.displayName=I_;var W_=`RadioGroupItem`,G_=l.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=H_(W_,n),o=a.disabled||r,s=z_(n),c=B_(n),d=l.useRef(null),f=m(t,d),p=a.value===i.value,h=l.useRef(!1);return l.useEffect(()=>{let e=e=>{F_.includes(e.key)&&(h.current=!0)},t=()=>h.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,u.jsx)(af,{asChild:!0,...s,focusable:!o,active:p,children:(0,u.jsx)(k_,{disabled:o,required:a.required,checked:p,...c,...i,name:a.name,ref:f,onCheck:()=>a.onValueChange(i.value),onKeyDown:G(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:G(i.onFocus,()=>{h.current&&d.current?.click()})})})});G_.displayName=W_;var K_=`RadioGroupIndicator`,q_=l.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,u.jsx)(j_,{...B_(n),...r,ref:t})});q_.displayName=K_;var J_=U_,Y_=G_,X_=q_;function Z_({orientation:e=`vertical`,className:t,...n}){return(0,u.jsx)(J_,{orientation:e,className:W(`flex`,e===`vertical`?`flex-col gap-3`:`flex-row flex-wrap gap-4`,t),...n})}function Q_({label:e,description:t,className:n,disabled:r,...i}){return(0,u.jsxs)(`label`,{className:W(`flex items-start gap-2.5 group`,r?`cursor-not-allowed opacity-50`:`cursor-pointer`,n),children:[(0,u.jsx)(Y_,{disabled:r,className:W(`mt-0.5 shrink-0`,`w-4 h-4 rounded-full border border-rule bg-paper`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt focus-visible:ring-offset-1`,`data-[state=checked]:border-signal-alt`,`transition-colors duration-fast`),...i,children:(0,u.jsx)(X_,{className:`flex items-center justify-center w-full h-full relative`,children:(0,u.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-signal-alt block`})})}),(e||t)&&(0,u.jsxs)(`div`,{className:`flex flex-col gap-0.5 leading-none`,children:[e&&(0,u.jsx)(`span`,{className:W(`text-sm text-void leading-tight`,r&&`text-smoke`),children:e}),t&&(0,u.jsx)(`span`,{className:`text-sm text-smoke leading-snug`,children:t})]})]})}function $_(e){let t=ev(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(nv);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ev(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=iv(n),i=rv(r,n.props);return n.type!==l.Fragment&&(i.ref=t?p(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tv=Symbol(`radix.slottable`);function nv(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===tv}function rv(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function iv(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var av=`Popover`,[ov,sv]=K(av,[Gi]),cv=Gi(),[lv,uv]=ov(av),dv=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=cv(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,m]=Z({prop:r,defaultProp:i??!1,onChange:a,caller:av});return(0,u.jsx)(sa,{...s,children:(0,u.jsx)(lv,{scope:t,contentId:X(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:o,children:n})})};dv.displayName=av;var fv=`PopoverAnchor`,pv=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=uv(fv,n),a=cv(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return l.useEffect(()=>(o(),()=>s()),[o,s]),(0,u.jsx)(ca,{...a,...r,ref:t})});pv.displayName=fv;var mv=`PopoverTrigger`,hv=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=uv(mv,n),a=cv(n),o=m(t,i.triggerRef),s=(0,u.jsx)(q.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Av(i.open),...r,ref:o,onClick:G(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,u.jsx)(ca,{asChild:!0,...a,children:s})});hv.displayName=mv;var gv=`PopoverPortal`,[_v,vv]=ov(gv,{forceMount:void 0}),yv=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=uv(gv,t);return(0,u.jsx)(_v,{scope:t,forceMount:n,children:(0,u.jsx)(Q,{present:n||a.open,children:(0,u.jsx)(fa,{asChild:!0,container:i,children:r})})})};yv.displayName=gv;var bv=`PopoverContent`,xv=l.forwardRef((e,t)=>{let n=vv(bv,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=uv(bv,e.__scopePopover);return(0,u.jsx)(Q,{present:r||a.open,children:a.modal?(0,u.jsx)(Cv,{...i,ref:t}):(0,u.jsx)(wv,{...i,ref:t})})});xv.displayName=bv;var Sv=$_(`PopoverContent.RemoveScroll`),Cv=l.forwardRef((e,t)=>{let n=uv(bv,e.__scopePopover),r=l.useRef(null),i=m(t,r),a=l.useRef(!1);return l.useEffect(()=>{let e=r.current;if(e)return Fa(e)},[]),(0,u.jsx)(Go,{as:Sv,allowPinchZoom:!0,children:(0,u.jsx)(Tv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),wv=l.forwardRef((e,t)=>{let n=uv(bv,e.__scopePopover),r=l.useRef(!1),i=l.useRef(!1);return(0,u.jsx)(Tv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Tv=l.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:d,...f}=e,p=uv(bv,n),m=cv(n);return sn(),(0,u.jsx)(pn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,u.jsx)(Xt,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,u.jsx)(la,{"data-state":Av(p.open),role:`dialog`,id:p.contentId,...m,...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)`}})})})}),Ev=`PopoverClose`,Dv=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=uv(Ev,n);return(0,u.jsx)(q.button,{type:`button`,...r,ref:t,onClick:G(e.onClick,()=>i.onOpenChange(!1))})});Dv.displayName=Ev;var Ov=`PopoverArrow`,kv=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=cv(n);return(0,u.jsx)(ua,{...i,...r,ref:t})});kv.displayName=Ov;function Av(e){return e?`open`:`closed`}var jv=dv,Mv=pv,Nv=hv,Pv=yv,Fv=xv,Iv=Dv,Lv=jv,Rv=Nv,zv=Iv,Bv=Mv;function Vv({className:e,align:t=`start`,sideOffset:n=8,...r}){return(0,u.jsx)(Pv,{children:(0,u.jsx)(Fv,{align:t,sideOffset:n,className:W(`z-50 rounded-md border border-rule bg-paper p-4`,`shadow-[var(--shadow-md)]`,`w-64`,`data-[state=open]:animate-[popover-in_150ms_ease]`,`data-[state=closed]:animate-[popover-out_100ms_ease]`,`outline-none`,e),...r})})}function Hv({className:e,...t}){return(0,u.jsx)(`nav`,{"aria-label":`breadcrumb`,className:W(e),...t})}function Uv({className:e,...t}){return(0,u.jsx)(`ol`,{className:W(`flex flex-wrap items-center gap-1 text-sm text-smoke`,e),...t})}function Wv({className:e,...t}){return(0,u.jsx)(`li`,{className:W(`inline-flex items-center gap-1`,e),...t})}function Gv({asChild:e,className:t,...n}){return(0,u.jsx)(e?b:`a`,{className:W(`text-smoke hover:text-void transition-colors duration-fast`,`underline-offset-2 hover:underline`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt rounded-sm`,t),...n})}function Kv({className:e,...t}){return(0,u.jsx)(`span`,{"aria-current":`page`,className:W(`text-void font-medium`,e),...t})}function qv({children:e,className:t,...n}){return(0,u.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:W(`text-smoke select-none`,t),...n,children:e??`/`})}function Jv({className:e,...t}){return(0,u.jsx)(`span`,{role:`presentation`,"aria-hidden":`true`,className:W(`text-smoke select-none tracking-widest`,e),...t,children:`…`})}var Yv=`Collapsible`,[Xv,Zv]=K(Yv),[Qv,$v]=Xv(Yv),ey=l.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,d]=Z({prop:r,defaultProp:i??!1,onChange:o,caller:Yv});return(0,u.jsx)(Qv,{scope:n,disabled:a,contentId:X(),open:c,onOpenToggle:l.useCallback(()=>d(e=>!e),[d]),children:(0,u.jsx)(q.div,{"data-state":oy(c),"data-disabled":a?``:void 0,...s,ref:t})})});ey.displayName=Yv;var ty=`CollapsibleTrigger`,ny=l.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=$v(ty,n);return(0,u.jsx)(q.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":oy(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:G(e.onClick,i.onOpenToggle)})});ny.displayName=ty;var ry=`CollapsibleContent`,iy=l.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=$v(ry,e.__scopeCollapsible);return(0,u.jsx)(Q,{present:n||i.open,children:({present:e})=>(0,u.jsx)(ay,{...r,ref:t,present:e})})});iy.displayName=ry;var ay=l.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=$v(ry,n),[s,c]=l.useState(r),d=l.useRef(null),f=m(t,d),p=l.useRef(0),h=p.current,g=l.useRef(0),_=g.current,v=o.open||s,y=l.useRef(v),b=l.useRef(void 0);return l.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),Y(()=>{let e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();p.current=t.height,g.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),c(r)}},[o.open,r]),(0,u.jsx)(q.div,{"data-state":oy(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:v&&i})});function oy(e){return e?`open`:`closed`}var sy=ey,cy=ny,ly=iy,uy=`Accordion`,dy=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[fy,py,my]=Nt(uy),[hy,gy]=K(uy,[my,Zv]),_y=Zv(),vy=l.default.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,u.jsx)(fy.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,u.jsx)(wy,{...a,ref:t}):(0,u.jsx)(Cy,{...i,ref:t})})});vy.displayName=uy;var[yy,by]=hy(uy),[xy,Sy]=hy(uy,{collapsible:!1}),Cy=l.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=Z({prop:n,defaultProp:r??``,onChange:i,caller:uy});return(0,u.jsx)(yy,{scope:e.__scopeAccordion,value:l.default.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:l.default.useCallback(()=>a&&c(``),[a,c]),children:(0,u.jsx)(xy,{scope:e.__scopeAccordion,collapsible:a,children:(0,u.jsx)(Dy,{...o,ref:t})})})}),wy=l.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=Z({prop:n,defaultProp:r??[],onChange:i,caller:uy}),c=l.default.useCallback(e=>s((t=[])=>[...t,e]),[s]),d=l.default.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,u.jsx)(yy,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:d,children:(0,u.jsx)(xy,{scope:e.__scopeAccordion,collapsible:!0,children:(0,u.jsx)(Dy,{...a,ref:t})})})}),[Ty,Ey]=hy(uy),Dy=l.default.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=m(l.default.useRef(null),t),c=py(n),d=Ft(i)===`ltr`,f=G(e.onKeyDown,e=>{if(!dy.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,l=()=>{o=r+1,o>s&&(o=0)},u=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(d?l():u());break;case`ArrowDown`:a===`vertical`&&l();break;case`ArrowLeft`:a===`horizontal`&&(d?u():l());break;case`ArrowUp`:a===`vertical`&&u();break}n[o%i].ref.current?.focus()});return(0,u.jsx)(Ty,{scope:n,disabled:r,direction:i,orientation:a,children:(0,u.jsx)(fy.Slot,{scope:n,children:(0,u.jsx)(q.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:f})})})}),Oy=`AccordionItem`,[ky,Ay]=hy(Oy),jy=l.default.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=Ey(Oy,n),o=by(Oy,n),s=_y(n),c=X(),l=r&&o.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,u.jsx)(ky,{scope:n,open:l,disabled:d,triggerId:c,children:(0,u.jsx)(sy,{"data-orientation":a.orientation,"data-state":Ry(l),...s,...i,ref:t,disabled:d,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});jy.displayName=Oy;var My=`AccordionHeader`,Ny=l.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Ey(uy,n),a=Ay(My,n);return(0,u.jsx)(q.h3,{"data-orientation":i.orientation,"data-state":Ry(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});Ny.displayName=My;var Py=`AccordionTrigger`,Fy=l.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Ey(uy,n),a=Ay(Py,n),o=Sy(Py,n),s=_y(n);return(0,u.jsx)(fy.ItemSlot,{scope:n,children:(0,u.jsx)(cy,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});Fy.displayName=Py;var Iy=`AccordionContent`,Ly=l.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Ey(uy,n),a=Ay(Iy,n),o=_y(n);return(0,u.jsx)(ly,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});Ly.displayName=Iy;function Ry(e){return e?`open`:`closed`}var zy=vy,By=jy,Vy=Ny,Hy=Fy,Uy=Ly,Wy=zy;function Gy({className:e,...t}){return(0,u.jsx)(By,{className:W(`border-b border-rule`,e),...t})}function Ky({className:e,children:t,...n}){return(0,u.jsx)(Vy,{className:`flex`,children:(0,u.jsxs)(Hy,{className:W(`flex flex-1 items-center justify-between`,`py-4`,`font-display font-bold text-sm tracking-widest uppercase text-void`,`cursor-pointer`,`transition-colors duration-fast`,`hover:text-signal-alt`,`disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:text-void`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt focus-visible:ring-inset rounded-sm`,e),...n,children:[t,(0,u.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:`shrink-0 text-smoke transition-transform duration-base ease-(--ease-standard) group-data-[state=open]:rotate-180 [[data-state=open]_&]:rotate-180`,children:(0,u.jsx)(`path`,{d:`M4 6l4 4 4-4`})})]})})}function qy({className:e,children:t,...n}){return(0,u.jsx)(Uy,{className:W(`overflow-hidden text-sm text-void`,`data-[state=open]:animate-[accordion-down_200ms_ease]`,`data-[state=closed]:animate-[accordion-up_150ms_ease]`,e),...n,children:(0,u.jsx)(`div`,{className:`pb-4 pt-0`,children:t})})}function Jy(e,t,n){return e.state?e.state:t<n?`completed`:t===n?`active`:`upcoming`}function Yy({state:e,index:t}){let n=`w-8 h-8 rounded-full flex items-center justify-center shrink-0 transition-colors duration-base`;return e===`completed`?(0,u.jsx)(`span`,{className:W(n,`bg-[var(--color-growth)] text-paper`),children:(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M2 7l3.5 3.5L12 3`})})}):e===`error`?(0,u.jsx)(`span`,{className:W(n,`bg-signal text-paper`),children:(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M2 2l10 10M12 2L2 12`})})}):e===`active`?(0,u.jsx)(`span`,{className:W(n,`bg-signal-alt text-paper`,`ring-4 ring-[color-mix(in_srgb,var(--color-signal-alt)_20%,var(--color-paper))]`),children:(0,u.jsx)(`span`,{className:`font-display font-bold text-xs leading-none`,children:t+1})}):(0,u.jsx)(`span`,{className:W(n,`border-2 border-rule bg-paper text-smoke`),children:(0,u.jsx)(`span`,{className:`font-display font-bold text-xs leading-none`,children:t+1})})}function Xy({steps:e,currentStep:t}){return(0,u.jsx)(`div`,{className:`flex items-start w-full`,children:e.map((n,r)=>{let i=Jy(n,r,t),a=r===e.length-1,o=r<t;return(0,u.jsxs)(`div`,{role:`listitem`,"aria-current":i===`active`?`step`:void 0,className:W(`flex items-start`,!a&&`flex-1`),children:[(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-1.5 shrink-0`,children:[(0,u.jsx)(Yy,{state:i,index:r}),(0,u.jsx)(`p`,{className:W(`text-xs font-display font-bold tracking-widest uppercase leading-tight text-center`,i===`active`&&`text-void`,i===`completed`&&`text-[var(--color-growth)]`,i===`error`&&`text-signal`,i===`upcoming`&&`text-smoke`),children:n.label}),n.description&&(0,u.jsx)(`p`,{className:`text-xs text-smoke leading-snug text-center max-w-[100px]`,children:n.description})]}),!a&&(0,u.jsx)(`div`,{"aria-hidden":`true`,className:W(`flex-1 h-px mt-4 mx-2 transition-colors duration-base`,o?`bg-[var(--color-growth)]`:`bg-rule`)})]},r)})})}function Zy({steps:e,currentStep:t}){return(0,u.jsx)(`div`,{className:`flex flex-col`,children:e.map((n,r)=>{let i=Jy(n,r,t),a=r===e.length-1,o=r<t;return(0,u.jsxs)(`div`,{role:`listitem`,"aria-current":i===`active`?`step`:void 0,className:`flex gap-3`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,u.jsx)(Yy,{state:i,index:r}),!a&&(0,u.jsx)(`div`,{"aria-hidden":`true`,className:W(`w-px flex-1 my-1 min-h-[20px] transition-colors duration-base`,o?`bg-[var(--color-growth)]`:`bg-rule`)})]}),(0,u.jsxs)(`div`,{className:W(`flex flex-col justify-center`,!a&&`pb-6`),children:[(0,u.jsx)(`p`,{className:W(`text-xs font-display font-bold tracking-widest uppercase leading-tight`,i===`active`&&`text-void`,i===`completed`&&`text-[var(--color-growth)]`,i===`error`&&`text-signal`,i===`upcoming`&&`text-smoke`),children:n.label}),n.description&&(0,u.jsx)(`p`,{className:`text-xs text-smoke leading-snug mt-0.5`,children:n.description})]})]},r)})})}function Qy({steps:e,currentStep:t,orientation:n=`horizontal`,className:r,...i}){return(0,u.jsx)(`div`,{role:`list`,"aria-label":`Progress`,className:W(r),...i,children:n===`vertical`?(0,u.jsx)(Zy,{steps:e,currentStep:t}):(0,u.jsx)(Xy,{steps:e,currentStep:t})})}function $y({className:e}){return(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:e,children:(0,u.jsx)(`path`,{d:`M3 5l4 4 4-4`})})}function eb(){return(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M2 7l3.5 3.5L12 3`})})}function tb(){return(0,u.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,u.jsx)(`circle`,{cx:`6`,cy:`6`,r:`4`}),(0,u.jsx)(`path`,{d:`M12 12l-2.5-2.5`})]})}function nb({options:e,value:t,onValueChange:n,placeholder:r=`Select…`,searchPlaceholder:i=`Search…`,emptyMessage:a=`No results found.`,disabled:o=!1,className:s,id:c}){let[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(``),[h,g]=(0,l.useState)(0),_=(0,l.useRef)(null),v=(0,l.useRef)(null),y=(0,l.useId)(),b=`${c??y}-listbox`,x=(0,l.useMemo)(()=>e.find(e=>e.value===t)?.label??``,[e,t]),S=(0,l.useMemo)(()=>{let t=p.toLowerCase();return t?e.filter(e=>e.label.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)):e},[e,p]);(0,l.useEffect)(()=>{g(0)},[S.length]),(0,l.useEffect)(()=>{d&&(v.current?.children[h])?.scrollIntoView({block:`nearest`})},[h,d]);let C=(0,l.useCallback)(e=>{e.disabled||(n?.(e.value),m(``),f(!1))},[n]),w=(0,l.useCallback)(e=>{if(!d){(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),f(!0));return}switch(e.key){case`ArrowDown`:e.preventDefault(),g(e=>Math.min(e+1,S.length-1));break;case`ArrowUp`:e.preventDefault(),g(e=>Math.max(e-1,0));break;case`Enter`:e.preventDefault(),S[h]&&!S[h].disabled&&C(S[h]);break;case`Escape`:e.preventDefault(),m(``),f(!1);break}},[d,S,h,C]);return(0,u.jsxs)(jv,{open:d,onOpenChange:e=>{o||(f(e),e||m(``))},children:[(0,u.jsx)(Nv,{asChild:!0,children:(0,u.jsxs)(`button`,{id:c,type:`button`,role:`combobox`,"aria-expanded":d,"aria-controls":b,"aria-haspopup":`listbox`,disabled:o,onKeyDown:w,className:W(`flex items-center justify-between w-full gap-2`,`rounded-sm border border-rule bg-paper`,`h-9 px-3`,`text-sm text-void`,`disabled:cursor-not-allowed disabled:opacity-50`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt focus-visible:ring-offset-0`,`hover:border-smoke transition-colors duration-fast`,d&&`border-signal-alt ring-2 ring-signal-alt`,s),children:[(0,u.jsx)(`span`,{className:W(`truncate`,!x&&`text-smoke`),children:x||r}),(0,u.jsx)($y,{className:W(`shrink-0 text-smoke transition-transform duration-fast`,d&&`rotate-180`)})]})}),(0,u.jsx)(Pv,{children:(0,u.jsxs)(Fv,{align:`start`,sideOffset:4,style:{width:`var(--radix-popover-trigger-width)`},onOpenAutoFocus:e=>{e.preventDefault(),_.current?.focus()},className:W(`z-50 rounded-md border border-rule bg-paper shadow-[var(--shadow-md)] overflow-hidden`,`data-[state=open]:animate-[popover-in_150ms_ease]`,`data-[state=closed]:animate-[popover-out_100ms_ease]`,`outline-none`),children:[(0,u.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2 border-b border-rule text-smoke`,children:[(0,u.jsx)(tb,{}),(0,u.jsx)(`input`,{ref:_,type:`text`,value:p,onChange:e=>m(e.target.value),onKeyDown:w,placeholder:i,"aria-controls":b,className:`flex-1 text-sm text-void bg-transparent outline-none placeholder:text-smoke`}),p&&(0,u.jsx)(`button`,{type:`button`,"aria-label":`Clear search`,onClick:()=>m(``),className:`text-smoke hover:text-void transition-colors duration-fast`,children:(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M2 2l8 8M10 2l-8 8`})})})]}),(0,u.jsx)(`ul`,{id:b,ref:v,role:`listbox`,"aria-label":`Options`,className:`max-h-60 overflow-y-auto py-1`,children:S.length===0?(0,u.jsx)(`li`,{className:`px-3 py-6 text-sm text-smoke text-center`,children:a}):S.map((e,n)=>{let r=e.value===t,i=n===h;return(0,u.jsxs)(`li`,{role:`option`,"aria-selected":r,"aria-disabled":e.disabled,onMouseEnter:()=>g(n),onClick:()=>C(e),className:W(`flex items-center gap-2 px-3 py-2 cursor-pointer select-none`,i&&!e.disabled&&`bg-[color-mix(in_srgb,var(--color-signal-alt)_8%,var(--color-paper))]`,e.disabled&&`cursor-not-allowed opacity-40`),children:[(0,u.jsx)(`span`,{className:W(`w-4 shrink-0 text-signal-alt`,!r&&`invisible`),children:(0,u.jsx)(eb,{})}),(0,u.jsxs)(`span`,{className:`flex flex-col min-w-0`,children:[(0,u.jsx)(`span`,{className:W(`text-sm truncate`,r?`text-void font-medium`:`text-void`),children:e.label}),e.description&&(0,u.jsx)(`span`,{className:`text-xs text-smoke truncate`,children:e.description})]})]},e.value)})})]})})]})}var rb=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`];function ib(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function ab(e){return ib(e,new Date)}function ob(e,t){let n=new Date(e,t,1),r=new Date(e,t+1,0).getDate(),i=n.getDay(),a=[];for(let e=0;e<i;e++)a.push(null);for(let n=1;n<=r;n++)a.push(new Date(e,t,n));let o=a.length%7;if(o>0)for(let e=0;e<7-o;e++)a.push(null);return a}function sb(e){return new Intl.DateTimeFormat(`en-CA`,{dateStyle:`medium`}).format(e)}function cb(e,t){return new Intl.DateTimeFormat(`en-CA`,{month:`long`,year:`numeric`}).format(new Date(e,t,1))}function lb({selected:e,onSelect:t,viewYear:n,viewMonth:r,onMonthChange:i}){let a=ob(n,r);function o(){r===0?i(n-1,11):i(n,r-1)}function s(){r===11?i(n+1,0):i(n,r+1)}let c=W(`w-7 h-7 flex items-center justify-center rounded-sm`,`text-smoke hover:text-void hover:bg-rule`,`transition-colors duration-fast`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt`);return(0,u.jsxs)(`div`,{className:`p-3 select-none w-[268px]`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between mb-3`,children:[(0,u.jsx)(`button`,{type:`button`,onClick:o,"aria-label":`Previous month`,className:c,children:(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M9 3L5 7l4 4`})})}),(0,u.jsx)(`span`,{className:`font-display font-bold text-xs tracking-widest uppercase text-void`,children:cb(n,r)}),(0,u.jsx)(`button`,{type:`button`,onClick:s,"aria-label":`Next month`,className:c,children:(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M5 3l4 4-4 4`})})})]}),(0,u.jsx)(`div`,{className:`grid grid-cols-7 mb-1`,children:rb.map(e=>(0,u.jsx)(`div`,{className:`h-8 flex items-center justify-center text-xs text-smoke font-display font-bold tracking-wider uppercase`,children:e},e))}),(0,u.jsx)(`div`,{className:`grid grid-cols-7 gap-y-0.5`,children:a.map((n,r)=>{if(!n)return(0,u.jsx)(`div`,{className:`h-8`},`pad-${r}`);let i=e&&ib(n,e),a=ab(n);return(0,u.jsx)(`button`,{type:`button`,onClick:()=>t(n),"aria-label":sb(n),"aria-pressed":i??!1,className:W(`h-8 w-8 mx-auto flex items-center justify-center rounded-sm text-sm`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt`,`transition-colors duration-fast`,i?`bg-signal-alt text-paper font-medium`:a?`border border-signal-alt text-signal-alt font-medium hover:bg-[color-mix(in_srgb,var(--color-signal-alt)_10%,var(--color-paper))]`:`text-void hover:bg-rule`),children:n.getDate()},n.toISOString())})})]})}function ub({value:e,onValueChange:t,placeholder:n=`Select date…`,disabled:r=!1,className:i,id:a}){let o=new Date,[s,c]=(0,l.useState)(!1),[d,f]=(0,l.useState)(e?.getFullYear()??o.getFullYear()),[p,m]=(0,l.useState)(e?.getMonth()??o.getMonth());function h(t){r||(t&&e&&(f(e.getFullYear()),m(e.getMonth())),c(t))}function g(e){t?.(e),c(!1)}return(0,u.jsxs)(jv,{open:s,onOpenChange:h,children:[(0,u.jsx)(Nv,{asChild:!0,children:(0,u.jsxs)(`button`,{id:a,type:`button`,disabled:r,"aria-haspopup":`dialog`,"aria-expanded":s,className:W(`flex items-center justify-between w-full gap-2`,`rounded-sm border border-rule bg-paper`,`h-9 px-3 text-sm`,e?`text-void`:`text-smoke`,`disabled:cursor-not-allowed disabled:opacity-50`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt`,`hover:border-smoke transition-colors duration-fast`,s&&`border-signal-alt ring-2 ring-signal-alt`,i),children:[(0,u.jsx)(`span`,{children:e?sb(e):n}),(0,u.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:`shrink-0 text-smoke`,children:[(0,u.jsx)(`rect`,{x:`1.5`,y:`2.5`,width:`11`,height:`10`,rx:`1`}),(0,u.jsx)(`path`,{d:`M1.5 6h11M5 1v3M9 1v3`})]})]})}),(0,u.jsx)(Pv,{children:(0,u.jsx)(Fv,{align:`start`,sideOffset:4,className:W(`z-50 rounded-md border border-rule bg-paper shadow-[var(--shadow-md)]`,`data-[state=open]:animate-[popover-in_150ms_ease]`,`data-[state=closed]:animate-[popover-out_100ms_ease]`,`outline-none`),children:(0,u.jsx)(lb,{selected:e,onSelect:g,viewYear:d,viewMonth:p,onMonthChange:(e,t)=>{f(e),m(t)}})})})]})}function db(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function fb(e){return e.name.split(`.`).pop()?.toUpperCase()??`?`}function pb(){return(0,u.jsxs)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 32 32`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,u.jsx)(`path`,{d:`M10 22a6 6 0 0 1 0-12h.5A8.5 8.5 0 0 1 27 14.5c0 4.14-3.36 7.5-7.5 7.5H10z`}),(0,u.jsx)(`path`,{d:`M16 26V16M12 20l4-4 4 4`})]})}function mb(){return(0,u.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,u.jsx)(`path`,{d:`M10 2H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6l-3-4z`}),(0,u.jsx)(`path`,{d:`M10 2v4h4`})]})}function hb({accept:e,multiple:t=!0,maxSize:n,maxFiles:r,onFilesChange:i,disabled:a=!1,label:o=`Drop files here or click to browse`,hint:s,className:c,id:d}){let[f,p]=(0,l.useState)([]),[m,h]=(0,l.useState)(!1),[g,_]=(0,l.useState)([]),v=(0,l.useRef)(null),y=(0,l.useId)(),b=d??y,x=(0,l.useCallback)(e=>{let t=[],i=e;if(r&&f.length+e.length>r){let n=r-f.length;t.push(`Max ${r} files — only ${n>0?n:0} more can be added.`),i=e.slice(0,Math.max(0,n))}if(n){let e=i.filter(e=>e.size>n);e.length>0&&(t.push(`${e.map(e=>e.name).join(`, `)} exceed${e.length===1?`s`:``} the ${db(n)} limit.`),i=i.filter(e=>e.size<=n))}return{accepted:i,errors:t}},[f.length,n,r]),S=(0,l.useCallback)(e=>{let n=new Set(f.map(e=>`${e.name}:${e.size}`)),{accepted:r,errors:a}=x(e.filter(e=>!n.has(`${e.name}:${e.size}`))),o=t?[...f,...r]:r.slice(0,1);p(o),_(a),i?.(o)},[f,t,i,x]),C=(0,l.useCallback)(e=>{let t=f.filter((t,n)=>n!==e);p(t),_([]),i?.(t),v.current&&(v.current.value=``)},[f,i]);function w(e){e.preventDefault(),a||h(!0)}function T(e){e.preventDefault(),e.currentTarget===e.target&&h(!1)}function E(e){e.preventDefault()}function D(e){e.preventDefault(),h(!1),!a&&S(Array.from(e.dataTransfer.files))}function O(e){e.target.files&&S(Array.from(e.target.files))}return(0,u.jsxs)(`div`,{className:W(`flex flex-col gap-2`,c),children:[(0,u.jsxs)(`div`,{role:`button`,"aria-label":o,tabIndex:a?-1:0,onDragEnter:w,onDragLeave:T,onDragOver:E,onDrop:D,onClick:()=>!a&&v.current?.click(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),!a&&v.current?.click())},className:W(`flex flex-col items-center justify-center gap-2 rounded-md border-2 border-dashed`,`py-8 px-4 text-center cursor-pointer`,`transition-colors duration-fast`,!m&&!a&&`border-rule text-smoke hover:border-signal-alt hover:text-signal-alt`,m&&`border-signal-alt bg-[color-mix(in_srgb,var(--color-signal-alt)_6%,var(--color-paper))] text-signal-alt`,a&&`border-rule text-smoke opacity-50 cursor-not-allowed`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt focus-visible:ring-offset-0`),children:[(0,u.jsx)(pb,{}),(0,u.jsx)(`p`,{className:`text-sm font-medium`,children:o}),s&&(0,u.jsx)(`p`,{className:`text-xs text-smoke`,children:s}),(0,u.jsx)(`input`,{ref:v,id:b,type:`file`,accept:e,multiple:t,disabled:a,onChange:O,className:`sr-only`,tabIndex:-1})]}),g.length>0&&(0,u.jsx)(`ul`,{className:`flex flex-col gap-1`,role:`alert`,children:g.map((e,t)=>(0,u.jsxs)(`li`,{className:`text-xs text-signal flex items-start gap-1.5`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`•`}),` `,e]},t))}),f.length>0&&(0,u.jsx)(`ul`,{className:`flex flex-col divide-y divide-rule border border-rule rounded-sm overflow-hidden`,"aria-label":`Selected files`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`flex items-center gap-3 px-3 py-2 bg-paper`,children:[(0,u.jsx)(`span`,{className:`text-smoke shrink-0`,children:(0,u.jsx)(mb,{})}),(0,u.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`text-sm text-void truncate`,children:e.name}),(0,u.jsxs)(`span`,{className:`text-xs text-smoke`,children:[fb(e),` — `,db(e.size)]})]}),(0,u.jsx)(`button`,{type:`button`,onClick:()=>C(t),"aria-label":`Remove ${e.name}`,className:W(`shrink-0 text-smoke hover:text-signal transition-colors duration-fast`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt rounded-sm`),children:(0,u.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M2 2l10 10M12 2L2 12`})})})]},`${e.name}-${t}`))})]})}function gb({dir:e}){return(0,u.jsxs)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:`shrink-0 ml-1`,children:[(!e||e===`asc`)&&(0,u.jsx)(`path`,{d:e?`M3 5l3-3 3 3`:`M6 2v8M3 5l3-3 3 3`,className:e?``:`opacity-30`}),(!e||e===`desc`)&&(0,u.jsx)(`path`,{d:e?`M3 9l3 3 3-3`:`M6 2v8M3 9l3 3 3-3`,className:e?``:`opacity-30`})]})}function _b({columns:e,data:t,rowKey:n,pageSize:r,searchable:i=!1,searchPlaceholder:a=`Search…`,emptyMessage:o=`No results found.`,onRowClick:s,className:c}){let[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(`asc`),[h,g]=(0,l.useState)(1),[_,v]=(0,l.useState)(``),y=(0,l.useCallback)(e=>{d===e?m(e=>e===`asc`?`desc`:`asc`):(f(e),m(`asc`)),g(1)},[d]),b=(0,l.useCallback)(e=>{v(e),g(1)},[]),x=(0,l.useMemo)(()=>{if(!_.trim())return t;let e=_.toLowerCase();return t.filter(t=>Object.values(t).some(t=>String(t??``).toLowerCase().includes(e)))},[t,_]),S=(0,l.useMemo)(()=>d?[...x].sort((e,t)=>{let n=e[d],r=t[d],i=0;return i=typeof n==`number`&&typeof r==`number`?n-r:String(n??``).localeCompare(String(r??``)),p===`asc`?i:-i}):x,[x,d,p]),C=r?Math.max(1,Math.ceil(S.length/r)):1,w=Math.min(h,C),T=r?S.slice((w-1)*r,w*r):S,E=r?(w-1)*r+1:1,D=r?Math.min(w*r,S.length):S.length;return(0,u.jsxs)(`div`,{className:W(`flex flex-col gap-2`,c),children:[i&&(0,u.jsxs)(`div`,{className:`flex items-center gap-2 text-smoke`,children:[(0,u.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,u.jsx)(`circle`,{cx:`6`,cy:`6`,r:`4`}),(0,u.jsx)(`path`,{d:`M12 12l-2.5-2.5`})]}),(0,u.jsx)(`input`,{type:`text`,value:_,onChange:e=>b(e.target.value),placeholder:a,className:W(`flex-1 h-9 px-0 text-sm text-void bg-transparent border-b border-rule`,`outline-none focus:border-signal-alt placeholder:text-smoke`,`transition-colors duration-fast`)}),_&&(0,u.jsx)(`button`,{type:`button`,"aria-label":`Clear search`,onClick:()=>b(``),className:`text-smoke hover:text-void transition-colors duration-fast outline-none focus-visible:ring-2 focus-visible:ring-signal-alt rounded-sm`,children:(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M2 2l8 8M10 2l-8 8`})})})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto rounded-md border border-rule`,children:(0,u.jsxs)(Nl,{children:[(0,u.jsx)(Pl,{children:(0,u.jsx)(Ll,{children:e.map(e=>(0,u.jsx)(Rl,{className:W(e.sortable&&`cursor-pointer select-none hover:text-void transition-colors duration-fast`,e.headerClassName),onClick:e.sortable?()=>y(e.key):void 0,"aria-sort":d===e.key?p===`asc`?`ascending`:`descending`:e.sortable?`none`:void 0,children:(0,u.jsxs)(`span`,{className:`inline-flex items-center`,children:[e.header,e.sortable&&(0,u.jsx)(gb,{dir:d===e.key?p:void 0})]})},e.key))})}),(0,u.jsx)(Fl,{children:T.length===0?(0,u.jsx)(Ll,{children:(0,u.jsx)(zl,{colSpan:e.length,className:`py-10 text-center text-sm text-smoke`,children:o})}):T.map(t=>(0,u.jsx)(Ll,{onClick:s?()=>s(t):void 0,className:s?`cursor-pointer hover:bg-[color-mix(in_srgb,var(--color-rule)_40%,var(--color-paper))]`:void 0,children:e.map(e=>(0,u.jsx)(zl,{className:e.cellClassName,children:e.cell?e.cell(t):String(t[e.key]??``)},e.key))},n(t)))})]})}),r&&S.length>0&&(0,u.jsxs)(`div`,{className:`flex items-center justify-between text-sm text-smoke px-1`,children:[(0,u.jsxs)(`span`,{className:`tabular-nums`,children:[E,`–`,D,` of `,S.length]}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(`button`,{type:`button`,disabled:w<=1,onClick:()=>g(e=>e-1),"aria-label":`Previous page`,className:W(`w-8 h-8 flex items-center justify-center rounded-sm border border-rule`,`hover:border-smoke hover:text-void transition-colors duration-fast`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt`,`disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:border-rule disabled:hover:text-smoke`),children:(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M8 2L4 6l4 4`})})}),(0,u.jsxs)(`span`,{className:`px-2 tabular-nums text-void`,children:[w,` / `,C]}),(0,u.jsx)(`button`,{type:`button`,disabled:w>=C,onClick:()=>g(e=>e+1),"aria-label":`Next page`,className:W(`w-8 h-8 flex items-center justify-center rounded-sm border border-rule`,`hover:border-smoke hover:text-void transition-colors duration-fast`,`outline-none focus-visible:ring-2 focus-visible:ring-signal-alt`,`disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:border-rule disabled:hover:text-smoke`),children:(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M4 2l4 4-4 4`})})})]})]})]})}var vb=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yb=`AspectRatio`,bb=l.forwardRef((e,t)=>{let{ratio:n=1/1,style:r,...i}=e;return(0,u.jsx)(`div`,{style:{position:`relative`,width:`100%`,paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":``,children:(0,u.jsx)(vb.div,{...i,ref:t,style:{...r,position:`absolute`,top:0,right:0,bottom:0,left:0}})})});bb.displayName=yb;var xb=bb;function Sb({ratio:e=16/9,className:t,...n}){return(0,u.jsx)(xb,{ratio:e,className:W(`relative`,t),...n})}exports.Accordion=Wy,exports.AccordionContent=qy,exports.AccordionItem=Gy,exports.AccordionTrigger=Ky,exports.Alert=ku,exports.AspectRatio=Sb,exports.Avatar=S_,exports.AvatarGroup=C_,exports.Badge=ht,exports.Breadcrumb=Hv,exports.BreadcrumbEllipsis=Jv,exports.BreadcrumbItem=Wv,exports.BreadcrumbLink=Gv,exports.BreadcrumbList=Uv,exports.BreadcrumbPage=Kv,exports.BreadcrumbSeparator=qv,exports.Button=ft,exports.Card=bt,exports.CardBody=St,exports.CardFooter=Ct,exports.CardHeader=xt,exports.Checkbox=su,exports.Combobox=nb,exports.DataTable=_b,exports.DatePicker=ub,exports.Dialog=yl,exports.DialogClose=xl,exports.DialogContent=Sl,exports.DialogDescription=wl,exports.DialogFooter=Tl,exports.DialogTitle=Cl,exports.DialogTrigger=bl,exports.DropdownMenu=ph,exports.DropdownMenuCheckboxItem=bh,exports.DropdownMenuContent=vh,exports.DropdownMenuGroup=hh,exports.DropdownMenuItem=yh,exports.DropdownMenuLabel=Sh,exports.DropdownMenuRadioGroup=_h,exports.DropdownMenuRadioItem=xh,exports.DropdownMenuSeparator=Ch,exports.DropdownMenuSub=gh,exports.DropdownMenuSubContent=Th,exports.DropdownMenuSubTrigger=wh,exports.DropdownMenuTrigger=mh,exports.FileUpload=hb,exports.Input=yt,exports.Label=gt,exports.PageShell=Dl,exports.PageShellBody=kl,exports.PageShellContent=jl,exports.PageShellNavItem=Ml,exports.PageShellSidebar=Al,exports.PageShellTopbar=Ol,exports.Popover=Lv,exports.PopoverAnchor=Bv,exports.PopoverClose=zv,exports.PopoverContent=Vv,exports.PopoverTrigger=Rv,exports.Progress=Gg,exports.Radio=Q_,exports.RadioGroup=Z_,exports.Select=vc,exports.SelectItem=hc,exports.Skeleton=xg,exports.Spinner=bg,exports.Stat=Jg,exports.Stepper=Qy,exports.Switch=xu,exports.Table=Nl,exports.TableBody=Fl,exports.TableCell=zl,exports.TableFoot=Il,exports.TableHead=Rl,exports.TableHeader=Pl,exports.TableRow=Ll,exports.Tabs=Tf,exports.TabsContent=Ef,exports.TabsList=Df,exports.TabsTrigger=Of,exports.Textarea=Hl,exports.Toaster=Ld,exports.Tooltip=gg,exports.TooltipContent=vg,exports.TooltipProvider=hg,exports.TooltipTrigger=_g,exports.cn=W,exports.toast=kd,exports.useToastStore=Ad;
|
|
51
|
+
//# sourceMappingURL=index.cjs.map
|