PageSourceSearch

https://socialnex.ai/assets/ui-DlHKYJvh.js

js socialnex.ai collected 2026-10-05 15:07:56 UTC 172,432 bytes, 1 lines download raw bytes

1import{r as e,j as t,R as n,a as r,b as o,c as a,u as i,o as s,s as l,f as c,d,e as u,h as p,g as f,l as m}from"./react-vendor-hAxFZxNQ.js";function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function v(...e){return t=>{let n=!1;const r=e.map(e=>{const r=h(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():h(e[t],null)}}}}function g(...t){return e.useCallback(v(...t),t)}var b=Symbol.for("react.lazy"),w=n[" use ".trim().toString()];function y(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===b&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t;var t}function x(n){const r=E(n),o=e.forwardRef((n,o)=>{let{children:a,...i}=n;y(a)&&"function"==typeof w&&(a=w(a._payload));const s=e.Children.toArray(a),l=s.find(R);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}var C=x("Slot");function E(t){const n=e.forwardRef((t,n)=>{let{children:r,...o}=t;if(y(r)&&"function"==typeof w&&(r=w(r._payload)),e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var _=Symbol("radix.slottable");function R(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===_}function S(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=S(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function k(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=S(e))&&(r&&(r+=" "),r+=t);return r}const j=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,D=k,P=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return D(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=j(t)||j(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return D(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},T=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),N="-",M=[],I=e=>{const t=L(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return O(e);const n=e.split(N),r=""===n[0]&&n.length>1?1:0;return A(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||M}return n[e]||M}}},A=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=A(e,t+1,o);if(n)return n}const a=n.validators;if(null===a)return;const i=0===t?e.join(N):e.slice(t).join(N),s=a.length;for(let l=0;l<s;l++){const e=a[l];if(e.validator(i))return e.classGroupId}},O=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),L=e=>{const{theme:t,classGroups:n}=e;return F(n,t)},F=(e,t)=>{const n=T();for(const r in e){const o=e[r];z(o,n,r,t)}return n},z=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];W(o,t,n,r)}},W=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?$(e,t,n,r):V(e,t,n,r):K(e,t,n)},K=(e,t,n)=>{(""===e?t:B(t,e)).classGroupId=n},V=(e,t,n,r)=>{H(e)?z(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},$=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[e,a]=o[i];z(a,B(t,e),n,r)}},B=(e,t)=>{let n=e;const r=t.split(N),o=r.length;for(let a=0;a<o;a++){const e=r[a];let t=n.nextPart.get(e);t||(t=T(),n.nextPart.set(e,t)),n=t}return n},H=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,U=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},G=[],X=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Y=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;const i=e.length;for(let d=0;d<i;d++){const i=e[d];if(0===r&&0===o){if(":"===i){t.push(e.slice(a,d)),a=d+1;continue}if("/"===i){n=d;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;return s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0),X(t,c,l,n&&n>a?n-a:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):X(G,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},q=e=>{const t=new Map;
vendor: 2,795 bytes, line 1
1return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||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}},Z=/\s+/,J=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=J(e[r]))&&(n&&(n+=" "),n+=t);return n},Q=[],ee=e=>{const t=t=>t[e]||Q;return t.isThemeGetter=!0,t},te=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ne=/^\((?:(\w[\w-]*):)?(.+)\)$/i,re=/^\d+\/\d+$/,oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ae=/\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$/,ie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,se=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,le=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>re.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>!!e&&Number.isInteger(Number(e)),pe=e=>e.endsWith("%")&&de(e.slice(0,-1)),fe=e=>oe.test(e),me=()=>!0,he=e=>ae.test(e)&&!ie.test(e),ve=()=>!1,ge=e=>se.test(e),be=e=>le.test(e),we=e=>!xe(e)&&!ke(e),ye=e=>Ie(e,Fe,ve),xe=e=>te.test(e),Ce=e=>Ie(e,ze,he),Ee=e=>Ie(e,We,de),_e=e=>Ie(e,Oe,ve),Re=e=>Ie(e,Le,be),Se=e=>Ie(e,Ve,ge),ke=e=>ne.test(e),je=e=>Ae(e,ze),De=e=>Ae(e,Ke),Pe=e=>Ae(e,Oe),Te=e=>Ae(e,Fe),Ne=e=>Ae(e,Le),Me=e=>Ae(e,Ve,!0),Ie=(e,t,n)=>{const r=te.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Ae=(e,t,n=!1)=>{const r=ne.exec(e);return!!r&&(r[1]?t(r[1]):n)},Oe=e=>"position"===e||"percentage"===e,Le=e=>"image"===e||"url"===e,Fe=e=>"length"===e||"size"===e||"bg-size"===e,ze=e=>"length"===e,We=e=>"number"===e,Ke=e=>"family-name"===e,Ve=e=>"shadow"===e,$e=((e,...t)=>{let n,r,o,a;const i=e=>{const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Z);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:f}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let m=!!f,h=r(m?p.substring(0,f):p);if(!h){if(!m){l=e+(l.length>0?" "+l:l);continue}if(h=r(p),!h){l=e+(l.length>0?" "+l:l);continue}m=!1}const v=0===d.length?"":1===d.length?d[0]:a(d).join(":"),g=u?v+"!":v,b=g+h;if(i.indexOf(b)>-1)continue;i.push(b);const w=o(h,m);for(let n=0;n<w.length;++n){const e=w[n];i.push(g+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:U(e.cacheSize),parseClassName:Y(e),sortModifiers:q(e),...I(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=J(t))&&(o&&(o+=" "),o+=n);return o}
vendor: 4,149 bytes, line 1
1)(...e))})(()=>{const e=ee("color"),t=ee("font"),n=ee("text"),r=ee("font-weight"),o=ee("tracking"),a=ee("leading"),i=ee("breakpoint"),s=ee("container"),l=ee("spacing"),c=ee("radius"),d=ee("shadow"),u=ee("inset-shadow"),p=ee("text-shadow"),f=ee("drop-shadow"),m=ee("blur"),h=ee("perspective"),v=ee("aspect"),g=ee("ease"),b=ee("animate"),w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ke,xe],y=()=>[ke,xe,l],x=()=>[ce,"full","auto",...y()],C=()=>[ue,"none","subgrid",ke,xe],E=()=>["auto",{span:["full",ue,ke,xe]},ue,ke,xe],_=()=>[ue,"auto",ke,xe],R=()=>["auto","min","max","fr",ke,xe],S=()=>["auto",...y()],k=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],j=()=>[e,ke,xe],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Pe,_e,{position:[ke,xe]}],P=()=>["auto","cover","contain",Te,ye,{size:[ke,xe]}],T=()=>[pe,je,Ce],N=()=>["","none","full",c,ke,xe],M=()=>["",de,je,Ce],I=()=>[de,pe,Pe,_e],A=()=>["","none",m,ke,xe],O=()=>["none",de,ke,xe],L=()=>["none",de,ke,xe],F=()=>[de,ke,xe],z=()=>[ce,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fe],breakpoint:[fe],color:[me],container:[fe],"drop-shadow":[fe],ease:["in","out","in-out"],font:[we],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fe],shadow:[fe],spacing:["px",de],text:[fe],"text-shadow":[fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,xe,ke,v]}],container:["container"],columns:[{columns:[de,xe,ke,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:w()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[ue,"auto",ke,xe]}],basis:[{basis:[ce,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,ce,"auto","initial","none",xe]}],grow:[{grow:["",de,ke,xe]}],shrink:[{shrink:["",de,ke,xe]}],order:[{order:[ue,"first","last","none",ke,xe]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}
vendor: 4,317 bytes, line 1
1],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[s,"screen",...k()]}],"min-w":[{"min-w":[s,"screen","none",...k()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",n,je,Ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ke,Ee]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,xe]}],"font-family":[{font:[De,xe,t]}],"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:[o,ke,xe]}],"line-clamp":[{"line-clamp":[de,"none",ke,Ee]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",ke,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",ke,Ce]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[de,"auto",ke,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,xe]}],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",ke,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ue,ke,xe],radial:["",ke,xe],conic:[ue,ke,xe]},Ne,Re]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:T()}
vendor: 9,266 bytes, line 1
1],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[de,ke,xe]}],"outline-w":[{outline:["",de,je,Ce]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",d,Me,Se]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",u,Me,Se]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[de,Ce]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",p,Me,Se]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[de,ke,xe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"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":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[ke,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,xe]}],filter:[{filter:["","none",ke,xe]}],blur:[{blur:A()}],brightness:[{brightness:[de,ke,xe]}],contrast:[{contrast:[de,ke,xe]}],"drop-shadow":[{"drop-shadow":["","none",f,Me,Se]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",de,ke,xe]}],"hue-rotate":[{"hue-rotate":[de,ke,xe]}],invert:[{invert:["",de,ke,xe]}],saturate:[{saturate:[de,ke,xe]}],sepia:[{sepia:["",de,ke,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,xe]}],"backdrop-blur":[{"backdrop-blur":A()}],"backdrop-brightness":[{"backdrop-brightness":[de,ke,xe]}],"backdrop-contrast":[{"backdrop-contrast":[de,ke,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,ke,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,ke,xe]}],"backdrop-invert":[{"backdrop-invert":["",de,ke,xe]}],"backdrop-opacity":[{"backdrop-opacity":[de,ke,xe]}],"backdrop-saturate":[{"backdrop-saturate":[de,ke,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",de,ke,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",ke,xe]}],ease:[{ease:["linear","initial",g,ke,xe]}],delay:[{delay:[de,ke,xe]}],animate:[{animate:["none",b,ke,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ke,xe]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:O()}],"rotate-x":[{"rotate-x":O()}],"rotate-y":[{"rotate-y":O()}],"rotate-z":[{"rotate-z":O()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[ke,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",ke,xe]}],"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":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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"]}
vendor: 11,844 bytes, line 1
1],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",ke,xe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[de,je,Ce,Ee]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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 Be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function He(n,r=[]){let o=[];const a=()=>{const t=o.map(t=>e.createContext(t));return function(r){const o=r?.[n]||t;return e.useMemo(()=>({[`__scope${n}`]:{...r,[n]:o}}),[r,o])}};return a.scopeName=n,[function(r,a){const i=e.createContext(a),s=o.length;o=[...o,a];const l=r=>{const{scope:o,children:a,...l}=r,c=o?.[n]?.[s]||i,d=e.useMemo(()=>l,Object.values(l));return t.jsx(c.Provider,{value:d,children:a})};return l.displayName=r+"Provider",[l,function(t,o){const l=o?.[n]?.[s]||i,c=e.useContext(l);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},Ue(a,...r)]}function Ue(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}var Ge=globalThis?.document?e.useLayoutEffect:()=>{},Xe=n[" useId ".trim().toString()]||(()=>{}),Ye=0;function qe(t){const[n,r]=e.useState(Xe());return Ge(()=>{r(e=>e??String(Ye++))},[t]),n?`radix-${n}`:""}var Ze=n[" useInsertionEffect ".trim().toString()]||Ge;function Je({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[a,i,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),a=e.useRef(r),i=e.useRef(n);return Ze(()=>{i.current=n},[n]),e.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,o,i]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:a;{const n=e.useRef(void 0!==t);e.useEffect(()=>{n.current;n.current=l},[l,o])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else i(e)},[l,t,i,s]);return[c,d]}function Qe(n){const r=et(n),o=e.forwardRef((n,o)=>{const{children:a,...i}=n,s=e.Children.toArray(a),l=s.find(nt);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}function et(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var tt=Symbol("radix.slottable");function nt(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===tt}var rt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((n,r)=>{const o=Qe(`Primitive.${r}`),a=e.forwardRef((e,n)=>{const{asChild:a,...i}=e,s=a?o:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:n})});return a.displayName=`Primitive.${r}`,{...n,[r]:a}},{});function ot(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}function at(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var it,st="dismissableLayer.update",lt=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ct=e.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=n,u=e.useContext(lt),[p,f]=e.useState(null),m=p?.ownerDocument??globalThis?.document,[,h]=e.useState({}),v=g(r,e=>f(e)),b=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(w),x=p?b.indexOf(p):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,_=function(t,n=globalThis?.document){const r=at(t),o=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){pt("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));E&&!n&&(i?.(e),l?.(e),e.defaultPrevented||c?.())},m),R=function(t,n=globalThis?.document){const r=at(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{e.target&&!o.current&&pt("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||c?.())},m);return function(t,n=globalThis?.document){const r=at(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{x===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),e.useEffect(()=>{if(p)return o&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(it=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),ut(),()=>{o&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=it)}},[p,m,o,u]),e.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),ut())},[p,u]),e.useEffect(()=>{const e=()=>h({});return document.addEventListener(st,e),()=>document.removeEventListener(st,e)},[]),t.jsx(rt.div,{...d,ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...n.style},onFocusCapture:Be(n.onFocusCapture,R.onFocusCapture),onBlurCapture:Be(n.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Be(n.onPointerDownCapture,_.onPointerDownCapture)})});ct.displayName="DismissableLayer";var dt=e.forwardRef((n,r)=>{const o=e.useContext(lt),a=e.useRef(null),i=g(r,a);return e.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),t.jsx(rt.div,{...n,ref:i})});function ut(){const e=new CustomEvent(st);document.dispatchEvent(e)}function pt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ot(o,a):o.dispatchEvent(a)}dt.displayName="DismissableLayerBranch";var ft=ct,mt=dt,ht="focusScope.autoFocusOnMount",vt="focusScope.autoFocusOnUnmount",gt={bubbles:!1,cancelable:!0},bt=e.forwardRef((n,r)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=n,[c,d]=e.useState(null),u=at(i),p=at(s),f=e.useRef(null),m=g(r,e=>d(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(a){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:Ct(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Ct(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Ct(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[a,c,h.paused]),e.useEffect(()=>{if(c){Et.add(h);const e=document.activeElement;if(!c.contains(e)){const t=new CustomEvent(ht,gt);c.addEventListener(ht,u),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ct(r,{select:t}),document.activeElement!==n)return}(wt(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Ct(c))}return()=>{c.removeEventListener(ht,u),setTimeout(()=>{const t=new CustomEvent(vt,gt);c.addEventListener(vt,p),c.dispatchEvent(t),t.defaultPrevented||Ct(e??document.body,{select:!0}),c.removeEventListener(vt,p),Et.remove(h)}
vendor: 4,164 bytes, line 1
1,0)}}},[c,u,p,h]);const v=e.useCallback(e=>{if(!o&&!a)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=wt(e);return[yt(t,e),yt(t.reverse(),e)]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&Ct(a,{select:!0})):(e.preventDefault(),o&&Ct(r,{select:!0})):n===t&&e.preventDefault()}},[o,a,h.paused]);return t.jsx(rt.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})});function wt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;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 yt(e,t){for(const n of e)if(!xt(n,{upTo:t}))return n}function xt(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Ct(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}bt.displayName="FocusScope";var Et=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=_t(e,t),e.unshift(t)},remove(t){e=_t(e,t),e[0]?.resume()}}}();function _t(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Rt=e.forwardRef((n,r)=>{const{container:a,...i}=n,[s,l]=e.useState(!1);Ge(()=>l(!0),[]);const c=a||s&&globalThis?.document?.body;return c?o.createPortal(t.jsx(rt.div,{...i,ref:r}),c):null});Rt.displayName="Portal";var St=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),a=e.useRef(t),i=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=kt(o.current);i.current="mounted"===l?e:"none"},[l]),Ge(()=>{const e=o.current,n=a.current;if(n!==t){const r=i.current,o=kt(e);c(t?"MOUNT":"none"===o||"none"===e?.display?"UNMOUNT":n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),a.current=t}},[t,c]),Ge(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const i=kt(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(c("ANIMATION_END"),!a.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(i.current=kt(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),a="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),i=g(o.ref,function(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)}(a));return"function"==typeof r||o.isPresent?e.cloneElement(a,{ref:i}):null};function kt(e){return e?.animationName||"none"}St.displayName="Presence";var jt=0;function Dt(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pt()),document.body.insertAdjacentElement("beforeend",e[1]??Pt()),jt++,()=>{1===jt&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),jt--}},[])}function Pt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var Tt=function(){return Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tt.apply(this,arguments)};function Nt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Mt="right-scroll-bar-position",It="width-before-scroll-bar";function At(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ot="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Lt=new WeakMap;function Ft(e){return e}var zt=function(t){var n=t.sideCar,r=Nt(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Tt({},r))};zt.isSideCarExport=!0;var Wt=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ft);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},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 o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}();return t.options=Tt({async:!0,ssr:!1},e),t}(),Kt=function(){},Vt=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Kt,onWheelCapture:Kt,onTouchMoveCapture:Kt}),a=o[0],i=o[1],s=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,u=t.enabled,p=t.shards,f=t.sideCar,m=t.noRelative,h=t.noIsolation,v=t.inert,g=t.allowPinchZoom,b=t.as,w=void 0===b?"div":b,y=t.gapMode,x=Nt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,E=function(t){var n,r,o=(n=function(e){return t.forEach(function(t){return At(t,e)})},(r=e.useState(function(){return{value:null,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0]).callback=n,r.facade);return Ot(function(){var e=Lt.get(o);if(e){var n=new Set(e),r=new Set(t),a=o.current;n.forEach(function(e){r.has(e)||At(e,null)}),r.forEach(function(e){n.has(e)||At(e,a)})}Lt.set(o,t)},[t]),o}([r,n]),_=Tt(Tt({},x),a);return e.createElement(e.Fragment,null,u&&e.createElement(C,{sideCar:Wt,removeScrollBar:d,shards:p,noRelative:m,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?e.cloneElement(e.Children.only(l),Tt(Tt({},_),{ref:E})):e.createElement(w,Tt({},_,{className:c,ref:E}),l))});Vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vt.classNames={fullWidth:It,zeroRight:Mt};var $t=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bt=function(){var t,n=(t=$t(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Ht={left:0,top:0,right:0,gap:0},Ut=function(e){return parseInt(e||"",10)||0},Gt=Bt(),Xt="data-scroll-locked",Yt=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(Xt,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Mt," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(It," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Mt," .").concat(Mt," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(It," .").concat(It," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(Xt,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},qt=function(){var e=parseInt(document.body.getAttribute(Xt)||"0",10);return isFinite(e)?e:0},Zt=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Xt,(qt()+1).toString()),function(){var e=qt()-1;e<=0?document.body.removeAttribute(Xt):document.body.setAttribute(Xt,e.toString())}},[]);var i=e.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ht;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Ut(n),Ut(r),Ut(o)]}(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])}}(a)},[a]);return e.createElement(Gt,{styles:Yt(i,!n,a,r?"":"!important")})},Jt=!1;if("undefined"!=typeof window)try{var Qt=Object.defineProperty({},"passive",{get:function(){return Jt=!0,!0}});window.addEventListener("test",Qt,Qt),window.removeEventListener("test",Qt,Qt)}catch(Mf){Jt=!1}var en=!!Jt&&{passive:!1},tn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},nn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),rn(e,r)){var o=on(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rn=function(e,t){return"v"===e?function(e){return tn(e,"overflowY")}(t):function(e){return tn(e,"overflowX")}(t)},on=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},an=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sn=function(e){return[e.deltaX,e.deltaY]},ln=function(e){return e&&"current"in e?e.current:e},cn=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},dn=0,un=[];function pn(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fn=(mn=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(dn++)[0],i=e.useState(Bt)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(ln),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=an(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===d||f.contains(d)))return!1;var m=nn(u,d);if(!m)return!0;if(m?n=u:(n="v"===u?"h":"v",m=nn(u,d)),!m)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=n),!n)return!0;var h=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,
vendor: 4,303 bytes, line 1
1c=a>0,d=0,u=0;do{if(!i)break;var p=on(e,i),f=p[0],m=p[1]-p[2]-o*f;(f||m)&&rn(e,i)&&(d+=m,u+=f);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(d)<1||!c&&Math.abs(u)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=e.useCallback(function(e){var t=e;if(un.length&&un[un.length-1]===i){var r="deltaY"in t?sn(t):an(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(s.current.shards||[]).map(ln).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?l(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=e.useCallback(function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:pn(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),u=e.useCallback(function(e){r.current=an(e),o.current=void 0},[]),p=e.useCallback(function(e){d(e.type,sn(e),e.target,l(e,t.lockRef.current))},[]),f=e.useCallback(function(e){d(e.type,an(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return un.push(i),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,en),document.addEventListener("touchmove",c,en),document.addEventListener("touchstart",u,en),function(){un=un.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,en),document.removeEventListener("touchmove",c,en),document.removeEventListener("touchstart",u,en)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(i,{styles:cn(a)}):null,m?e.createElement(Zt,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Wt.useMedium(mn),zt);var mn,hn=e.forwardRef(function(t,n){return e.createElement(Vt,Tt({},t,{ref:n,sideCar:fn}))});hn.classNames=Vt.classNames;var vn=new WeakMap,gn=new WeakMap,bn={},wn=0,yn=function(e){return e&&(e.host||yn(e.parentNode))},xn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=yn(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);bn[n]||(bn[n]=new WeakMap);var a=bn[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(vn.get(e)||0)+1,c=(a.get(e)||0)+1;vn.set(e,l),a.set(e,c),i.push(e),1===l&&o&&gn.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(u){}})};return d(t),s.clear(),wn++,function(){i.forEach(function(e){var t=vn.get(e)-1,o=a.get(e)-1;vn.set(e,t),a.set(e,o),t||(gn.has(e)||e.removeAttribute(r),gn.delete(e)),o||e.removeAttribute(n)}),--wn||(vn=new WeakMap,vn=new WeakMap,gn=new WeakMap,bn={})}}(r,o,n,"aria-hidden")):function(){return null}};function Cn(n){const r=En(n),o=e.forwardRef((n,o)=>{const{children:a,...i}=n,s=e.Children.toArray(a),l=s.find(Rn);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}function En(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}
vendor: 20,221 bytes, line 1
1:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var _n=Symbol("radix.slottable");function Rn(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===_n}var Sn="Dialog",[kn,jn]=He(Sn),[Dn,Pn]=kn(Sn),Tn=n=>{const{__scopeDialog:r,children:o,open:a,defaultOpen:i,onOpenChange:s,modal:l=!0}=n,c=e.useRef(null),d=e.useRef(null),[u,p]=Je({prop:a,defaultProp:i??!1,onChange:s,caller:Sn});return t.jsx(Dn,{scope:r,triggerRef:c,contentRef:d,contentId:qe(),titleId:qe(),descriptionId:qe(),open:u,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),modal:l,children:o})};Tn.displayName=Sn;var Nn="DialogTrigger",Mn=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=Pn(Nn,r),i=g(n,a.triggerRef);return t.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Qn(a.open),...o,ref:i,onClick:Be(e.onClick,a.onOpenToggle)})});Mn.displayName=Nn;var In="DialogPortal",[An,On]=kn(In,{forceMount:void 0}),Ln=n=>{const{__scopeDialog:r,forceMount:o,children:a,container:i}=n,s=Pn(In,r);return t.jsx(An,{scope:r,forceMount:o,children:e.Children.map(a,e=>t.jsx(St,{present:o||s.open,children:t.jsx(Rt,{asChild:!0,container:i,children:e})}))})};Ln.displayName=In;var Fn="DialogOverlay",zn=e.forwardRef((e,n)=>{const r=On(Fn,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=Pn(Fn,e.__scopeDialog);return i.modal?t.jsx(St,{present:o||i.open,children:t.jsx(Kn,{...a,ref:n})}):null});zn.displayName=Fn;var Wn=Cn("DialogOverlay.RemoveScroll"),Kn=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=Pn(Fn,r);return t.jsx(hn,{as:Wn,allowPinchZoom:!0,shards:[a.contentRef],children:t.jsx(rt.div,{"data-state":Qn(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),Vn="DialogContent",$n=e.forwardRef((e,n)=>{const r=On(Vn,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=Pn(Vn,e.__scopeDialog);return t.jsx(St,{present:o||i.open,children:i.modal?t.jsx(Bn,{...a,ref:n}):t.jsx(Hn,{...a,ref:n})})});$n.displayName=Vn;var Bn=e.forwardRef((n,r)=>{const o=Pn(Vn,n.__scopeDialog),a=e.useRef(null),i=g(r,o.contentRef,a);return e.useEffect(()=>{const e=a.current;if(e)return xn(e)},[]),t.jsx(Un,{...n,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Be(n.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:Be(n.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Be(n.onFocusOutside,e=>e.preventDefault())})}),Hn=e.forwardRef((n,r)=>{const o=Pn(Vn,n.__scopeDialog),a=e.useRef(!1),i=e.useRef(!1);return t.jsx(Un,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{n.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||o.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:e=>{n.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const t=e.target,r=o.triggerRef.current?.contains(t);r&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Un=e.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=n,c=Pn(Vn,o),d=e.useRef(null),u=g(r,d);return Dt(),t.jsxs(t.Fragment,{children:[t.jsx(bt,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:s,children:t.jsx(ct,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Qn(c.open),...l,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(rr,{titleId:c.titleId}),t.jsx(or,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Gn="DialogTitle",Xn=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=Pn(Gn,r);return t.jsx(rt.h2,{id:a.titleId,...o,ref:n})});Xn.displayName=Gn;var Yn="DialogDescription",qn=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=Pn(Yn,r);return t.jsx(rt.p,{id:a.descriptionId,...o,ref:n})});qn.displayName=Yn;var Zn="DialogClose",Jn=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=Pn(Zn,r);return t.jsx(rt.button,{type:"button",...o,ref:n,onClick:Be(e.onClick,()=>a.onOpenChange(!1))})});function Qn(e){return e?"open":"closed"}Jn.displayName=Zn;var er="DialogTitleWarning",[tr,nr]=function(n,r){const o=e.createContext(r),a=n=>{const{children:r,...a}=n,i=e.useMemo(()=>a,Object.values(a));return t.jsx(o.Provider,{value:i,children:r})};return a.displayName=n+"Provider",[a,function(t){const a=e.useContext(o);if(a)return a;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]}(er,{contentName:Vn,titleName:Gn,docsSlug:"dialog"}),rr=({titleId:t})=>{const n=nr(er),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{t&&document.getElementById(t)},[r,t]),null},or=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nr("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");n&&e&&document.getElementById(n)},[r,t,n]),null},ar=Tn,ir=Mn,sr=Ln,lr=zn,cr=$n,dr=Xn,ur=qn,pr=Jn;function fr(n){const r=mr(n),o=e.forwardRef((n,o)=>{const{children:a,...i}=n,s=e.Children.toArray(a),l=s.find(vr);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}function mr(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var hr=Symbol("radix.slottable");function vr(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===hr}function gr(e){const n=e+"CollectionProvider",[r,o]=He(n),[i,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=e=>{const{scope:n,children:r}=e,o=a.useRef(null),s=a.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:s,collectionRef:o,children:r})};l.displayName=n;const c=e+"CollectionSlot",d=fr(c),u=a.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=g(n,s(c,r).collectionRef);return t.jsx(d,{ref:a,children:o})});u.displayName=c;const p=e+"CollectionItemSlot",f="data-radix-collection-item",m=fr(p),h=a.forwardRef((e,n)=>{const{scope:r,children:o,...i}=e,l=a.useRef(null),c=g(n,l),d=s(p,r);return a.useEffect(()=>(d.itemMap.set(l,{ref:l,...i}),()=>{d.itemMap.delete(l)})),t.jsx(m,{[f]:"",ref:c,children:o})});return h.displayName=p,[{Provider:l,Slot:u,ItemSlot:h},function(t){const n=s(e+"CollectionConsumer",t);return a.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}var br="Collapsible",[wr,yr]=He(br),[xr,Cr]=wr(br),Er=e.forwardRef((n,r)=>{const{__scopeCollapsible:o,open:a,defaultOpen:i,disabled:s,onOpenChange:l,...c}=n,[d,u]=Je({prop:a,defaultProp:i??!1,onChange:l,caller:br});return t.jsx(xr,{scope:o,disabled:s,contentId:qe(),open:d,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),children:t.jsx(rt.div,{"data-state":Dr(d),"data-disabled":s?"":void 0,...c,ref:r})})});Er.displayName=br;var _r="CollapsibleTrigger",Rr=e.forwardRef((e,n)=>{const{__scopeCollapsible:r,...o}=e,a=Cr(_r,r);return t.jsx(rt.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Dr(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:n,onClick:Be(e.onClick,a.onOpenToggle)})});Rr.displayName=_r;var Sr="CollapsibleContent",kr=e.forwardRef((e,n)=>{const{forceMount:r,...o}=e,a=Cr(Sr,e.__scopeCollapsible);return t.jsx(St,{present:r||a.open,children:({present:e})=>t.jsx(jr,{...o,ref:n,present:e})})});kr.displayName=Sr;var jr=e.forwardRef((n,r)=>{const{__scopeCollapsible:o,present:a,children:i,...s}=n,l=Cr(Sr,o),[c,d]=e.useState(a),u=e.useRef(null),p=g(r,u),f=e.useRef(0),m=f.current,h=e.useRef(0),v=h.current,b=l.open||c,w=e.useRef(b),y=e.useRef(void 0);return e.useEffect(()=>{const e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),Ge(()=>{const e=u.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();f.current=t.height,h.current=t.width,w.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),d(a)}},[l.open,a]),t.jsx(rt.div,{"data-state":Dr(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!b,...s,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...n.style},children:b&&i})});function Dr(e){return e?"open":"closed"}var Pr=Er,Tr=Rr,Nr=kr,Mr=e.createContext(void 0);function Ir(t){const n=e.useContext(Mr);return t||n||"ltr"}var Ar="Accordion",Or=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lr,Fr,zr]=gr(Ar),[Wr]=He(Ar,[zr,yr]),Kr=yr(),Vr=a.forwardRef((e,n)=>{const{type:r,...o}=e,a=o,i=o;return t.jsx(Lr.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?t.jsx(Xr,{...i,ref:n}):t.jsx(Gr,{...a,ref:n})})});Vr.displayName=Ar;var[$r,Br]=Wr(Ar),[Hr,Ur]=Wr(Ar,{collapsible:!1}),Gr=a.forwardRef((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},collapsible:s=!1,...l}=e,[c,d]=Je({prop:r,defaultProp:o??"",onChange:i,caller:Ar});return t.jsx($r,{scope:e.__scopeAccordion,value:a.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:a.useCallback(()=>s&&d(""),[s,d]),children:t.jsx(Hr,{scope:e.__scopeAccordion,collapsible:s,children:t.jsx(Zr,{...l,ref:n})})})}),Xr=a.forwardRef((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...s}=e,[l,c]=Je({prop:r,defaultProp:o??[],onChange:i,caller:Ar}),d=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return t.jsx($r,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:u,children:t.jsx(Hr,{scope:e.__scopeAccordion,collapsible:!0,children:t.jsx(Zr,{...s,ref:n})})})}),[Yr,qr]=Wr(Ar),Zr=a.forwardRef((e,n)=>{const{__scopeAccordion:r,disabled:o,dir:i,orientation:s="vertical",...l}=e,c=g(a.useRef(null),n),d=Fr(r),u="ltr"===Ir(i),p=Be(e.onKeyDown,e=>{if(!Or.includes(e.key))return;const t=e.target,n=d().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===r)return;e.preventDefault();let a=r;const i=o-1,l=()=>{a=r+1,a>i&&(a=0)},c=()=>{a=r-1,a<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===s&&(u?l():c());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(u?c():l());break;case"ArrowUp":"vertical"===s&&c()}const p=a%o;n[p].ref.current?.focus()});return t.jsx(Yr,{scope:r,disabled:o,direction:i,orientation:s,children:t.jsx(Lr.Slot,{scope:r,children:t.jsx(rt.div,{...l,"data-orientation":s,ref:c,onKeyDown:o?void 0:p})})})}),Jr="AccordionItem",[Qr,eo]=Wr(Jr),to=a.forwardRef((e,n)=>{const{__scopeAccordion:r,value:o,...a}=e,i=qr(Jr,r),s=Br(Jr,r),l=Kr(r),c=qe(),d=o&&s.value.includes(o)||!1,u=i.disabled||e.disabled;return t.jsx(Qr,{scope:r,open:d,disabled:u,triggerId:c,children:t.jsx(Pr,{"data-orientation":i.orientation,"data-state":lo(d),...l,...a,ref:n,disabled:u,open:d,onOpenChange:e=>{e?s.onItemOpen(o):s.onItemClose(o)}})})});to.displayName=Jr;var no="AccordionHeader",ro=a.forwardRef((e,n)=>{const{__scopeAccordion:r,...o}=e,a=qr(Ar,r),i=eo(no,r);return t.jsx(rt.h3,{"data-orientation":a.orientation,"data-state":lo(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:n})});ro.displayName=no;var oo="AccordionTrigger",ao=a.forwardRef((e,n)=>{const{__scopeAccordion:r,...o}=e,a=qr(Ar,r),i=eo(oo,r),s=Ur(oo,r),l=Kr(r);return t.jsx(Lr.ItemSlot,{scope:r,children:t.jsx(Tr,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...o,ref:n})})});ao.displayName=oo;var io="AccordionContent",so=a.forwardRef((e,n)=>{const{__scopeAccordion:r,...o}=e,a=qr(Ar,r),i=eo(io,r),s=Kr(r);return t.jsx(Nr,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...s,...o,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function lo(e){return e?"open":"closed"}so.displayName=io;var co=Vr,uo=to,po=ro,fo=ao,mo=so,ho=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((n,r)=>{const o=x(`Primitive.${r}`),a=e.forwardRef((e,n)=>{const{asChild:a,...i}=e,s=a?o:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:n})});return a.displayName=`Primitive.${r}`,{...n,[r]:a}},{}),vo="horizontal",go=["horizontal","vertical"],bo=e.forwardRef((e,n)=>{const{decorative:r,orientation:o=vo,...a}=e,i=function(e){return go.includes(e)}(o)?o:vo,s=r?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return t.jsx(ho.div,{"data-orientation":i,...s,...a,ref:n})});bo.displayName="Separator";var wo=bo,yo=e.forwardRef((e,n)=>{const{children:r,width:o=10,height:a=5,...i}=e;return t.jsx(rt.svg,{...i,ref:n,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});yo.displayName="Arrow";var xo=yo;function Co(t){const[n,r]=e.useState(void 0);return Ge(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}var Eo="Popper",[_o,Ro]=He(Eo),[So,ko]=_o(Eo),jo=n=>{const{__scopePopper:r,children:o}=n,[a,i]=e.useState(null);return t.jsx(So,{scope:r,anchor:a,onAnchorChange:i,children:o})};jo.displayName=Eo;var Do="PopperAnchor",Po=e.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:a,...i}=n,s=ko(Do,o),l=e.useRef(null),c=g(r,l),d=e.useRef(null);return e.useEffect(()=>{const e=d.current;d.current=a?.current||l.current,e!==d.current&&s.onAnchorChange(d.current)}),a?null:t.jsx(rt.div,{...i,ref:c})});Po.displayName=Do;var To="PopperContent",[No,Mo]=_o(To),Io=e.forwardRef((n,r)=>{const{__scopePopper:o,side:a="bottom",sideOffset:h=0,align:v="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:y=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:E="partial",hideWhenDetached:_=!1,updatePositionStrategy:R="optimized",onPlaced:S,...k}=n,j=ko(To,o),[D,P]=e.useState(null),T=g(r,e=>P(e)),[N,M]=e.useState(null),I=Co(N),A=I?.width??0,O=I?.height??0,L=a+("center"!==v?"-"+v:""),F="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},z=Array.isArray(x)?x:[x],W=z.length>0,K={padding:F,boundary:z.filter(Fo),altBoundary:W},{refs:V,floatingStyles:$,placement:B,isPositioned:H,middlewareData:U}=i({strategy:"fixed",placement:L,whileElementsMounted:(...e)=>f(...e,{animationFrame:"always"===R}),elements:{reference:j.anchor},middleware:[s({mainAxis:h+O,alignmentAxis:b}),y&&l({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?m():void 0,...K}),y&&c({...K}),d({...K,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),N&&u({element:N,padding:w}),zo({arrowWidth:A,arrowHeight:O}),_&&p({strategy:"referenceHidden",...K})]}),[G,X]=Wo(B),Y=at(S);Ge(()=>{H&&Y?.()},[H,Y]);const q=U.arrow?.x,Z=U.arrow?.y,J=0!==U.arrow?.centerOffset,[Q,ee]=e.useState();return Ge(()=>{D&&ee(window.getComputedStyle(D).zIndex)},[D]),t.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:H?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:t.jsx(No,{scope:o,placedSide:G,onArrowChange:M,arrowX:q,arrowY:Z,shouldHideArrow:J,children:t.jsx(rt.div,{"data-side":G,"data-align":X,...k,ref:T,style:{...k.style,animation:H?void 0:"none"}})})})});Io.displayName=To;var Ao="PopperArrow",Oo={top:"bottom",right:"left",bottom:"top",left:"right"},Lo=e.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,a=Mo(Ao,r),i=Oo[a.placedSide];return t.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:t.jsx(xo,{...o,ref:n,style:{...o.style,display:"block"}})})});function Fo(e){return null!==e}Lo.displayName=Ao;var zo=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=Wo(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+i/2,p=(o.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=a?d:`${u}px`,m=-s+"px"):"top"===l?(f=a?d:`${u}px`,m=`${r.floating.height+s}px`):"right"===l?(f=-s+"px",m=a?d:`${p}px`):"left"===l&&(f=`${r.floating.width+s}px`,m=a?d:`${p}px`),{data:{x:f,y:m}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}var Ko=jo,Vo=Po,$o=Io,Bo=Lo,Ho=Symbol("radix.slottable");function Uo(e){const n=({children:e})=>t.jsx(t.Fragment,{children:e});return n.displayName=`${e}.Slottable`,n.__radixId=Ho,n}var Go=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"}),Xo=e.forwardRef((e,n)=>t.jsx(rt.span,{...e,ref:n,style:{...Go,...e.style}}));Xo.displayName="VisuallyHidden";var Yo=Xo,[qo]=He("Tooltip",[Ro]),Zo=Ro(),Jo="TooltipProvider",Qo=700,ea="tooltip.open",[ta,na]=qo(Jo),ra=n=>{const{__scopeTooltip:r,delayDuration:o=Qo,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:s}=n,l=e.useRef(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect(()=>{const e=d.current;return()=>window.clearTimeout(e)},[]),t.jsx(ta,{scope:r,isOpenDelayedRef:l,delayDuration:o,onOpen:e.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback(e=>{c.current=e}
vendor: 4,159 bytes, line 1
1,[]),disableHoverableContent:i,children:s})};ra.displayName=Jo;var oa="Tooltip",[aa,ia]=qo(oa),sa=n=>{const{__scopeTooltip:r,children:o,open:a,defaultOpen:i,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=n,d=na(oa,n.__scopeTooltip),u=Zo(r),[p,f]=e.useState(null),m=qe(),h=e.useRef(0),v=l??d.disableHoverableContent,g=c??d.delayDuration,b=e.useRef(!1),[w,y]=Je({prop:a,defaultProp:i??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(ea))):d.onClose(),s?.(e)},caller:oa}),x=e.useMemo(()=>w?b.current?"delayed-open":"instant-open":"closed",[w]),C=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,y(!0)},[y]),E=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),_=e.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,y(!0),h.current=0},g)},[g,y]);return e.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),t.jsx(Ko,{...u,children:t.jsx(aa,{scope:r,contentId:m,open:w,stateAttribute:x,trigger:p,onTriggerChange:f,onTriggerEnter:e.useCallback(()=>{d.isOpenDelayedRef.current?_():C()},[d.isOpenDelayedRef,_,C]),onTriggerLeave:e.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:o})})};sa.displayName=oa;var la="TooltipTrigger",ca=e.forwardRef((n,r)=>{const{__scopeTooltip:o,...a}=n,i=ia(la,o),s=na(la,o),l=Zo(o),c=g(r,e.useRef(null),i.onTriggerChange),d=e.useRef(!1),u=e.useRef(!1),p=e.useCallback(()=>d.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),t.jsx(Vo,{asChild:!0,...l,children:t.jsx(rt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:c,onPointerMove:Be(n.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:Be(n.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Be(n.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Be(n.onFocus,()=>{d.current||i.onOpen()}),onBlur:Be(n.onBlur,i.onClose),onClick:Be(n.onClick,i.onClose)})})});ca.displayName=la;var da="TooltipPortal",[ua,pa]=qo(da,{forceMount:void 0}),fa=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:a}=e,i=ia(da,n);return t.jsx(ua,{scope:n,forceMount:r,children:t.jsx(St,{present:r||i.open,children:t.jsx(Rt,{asChild:!0,container:a,children:o})})})};fa.displayName=da;var ma="TooltipContent",ha=e.forwardRef((e,n)=>{const r=pa(ma,e.__scopeTooltip),{forceMount:o=r.forceMount,side:a="top",...i}=e,s=ia(ma,e.__scopeTooltip);return t.jsx(St,{present:o||s.open,children:s.disableHoverableContent?t.jsx(ya,{side:a,...i,ref:n}):t.jsx(va,{side:a,...i,ref:n})})}),va=e.forwardRef((n,r)=>{const o=ia(ma,n.__scopeTooltip),a=na(ma,n.__scopeTooltip),i=e.useRef(null),s=g(r,i),[l,c]=e.useState(null),{trigger:d,onClose:u}=o,p=i.current,{onPointerInTransitChange:f}=a,m=e.useCallback(()=>{c(null),f(!1)},[f]),h=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const 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})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const 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),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];
vendor: 4,429 bytes, line 1
1if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),f(!0)},[f]);return e.useEffect(()=>()=>m(),[m]),e.useEffect(()=>{if(d&&p){const e=e=>h(e,p),t=e=>h(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,h,m]),e.useEffect(()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=d?.contains(t)||p?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const e=t[a],s=t[i],l=e.x,c=e.y,d=s.x,u=s.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}(n,l);r?m():o&&(m(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,l,u,m]),t.jsx(ya,{...n,ref:s})}),[ga,ba]=qo(oa,{isInside:!1}),wa=Uo("TooltipContent"),ya=e.forwardRef((n,r)=>{const{__scopeTooltip:o,children:a,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=n,d=ia(ma,o),u=Zo(o),{onClose:p}=d;return e.useEffect(()=>(document.addEventListener(ea,p),()=>document.removeEventListener(ea,p)),[p]),e.useEffect(()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),t.jsx(ct,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:t.jsxs($o,{"data-state":d.stateAttribute,...u,...c,ref:r,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[t.jsx(wa,{children:a}),t.jsx(ga,{scope:o,isInside:!0,children:t.jsx(Yo,{id:d.contentId,role:"tooltip",children:i||a})})]})})});ha.displayName=ma;var xa="TooltipArrow";e.forwardRef((e,n)=>{const{__scopeTooltip:r,...o}=e,a=Zo(r);return ba(xa,r).isInside?null:t.jsx(Bo,{...a,...o,ref:n})}).displayName=xa;var Ca=ra,Ea=sa,_a=ca,Ra=fa,Sa=ha,ka="rovingFocusGroup.onEntryFocus",ja={bubbles:!1,cancelable:!0},Da="RovingFocusGroup",[Pa,Ta,Na]=gr(Da),[Ma,Ia]=He(Da,[Na]),[Aa,Oa]=Ma(Da),La=e.forwardRef((e,n)=>t.jsx(Pa.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(Pa.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(Fa,{...e,ref:n})})}));La.displayName=Da;var Fa=e.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:a,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...f}=n,m=e.useRef(null),h=g(r,m),v=Ir(s),[b,w]=Je({prop:l,defaultProp:c??null,onChange:d,caller:Da}),[y,x]=e.useState(!1),C=at(u),E=Ta(o),_=e.useRef(!1),[R,S]=e.useState(0);return e.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(ka,C),()=>e.removeEventListener(ka,C)},[C]),t.jsx(Aa,{scope:o,orientation:a,dir:v,loop:i,currentTabStopId:b,onItemFocus:e.useCallback(e=>w(e),[w]),onItemShiftTab:e.useCallback(()=>x(!0),[]),onFocusableItemAdd:e.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>S(e=>e-1),[]),children:t.jsx(rt.div,{tabIndex:y||0===R?-1:0,"data-orientation":a,...f,ref:h,style:{outline:"none",...n.style},onMouseDown:Be(n.onMouseDown,()=>{_.current=!0}),onFocus:Be(n.onFocus,e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(ka,ja);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter(e=>e.focusable);Va([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),p)}}_.current=!1}),onBlur:Be(n.onBlur,()=>x(!1))})})}),za="RovingFocusGroupItem",Wa=e.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:a=!0,active:i=!1,tabStopId:s,children:l,...c}=n,d=qe(),u=s||d,p=Oa(za,o),f=p.currentTabStopId===u,m=Ta(o),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=p;return e.useEffect(()=>{if(a)return h(),()=>v()}
1,[a,h,v]),t.jsx(Pa.ItemSlot,{scope:o,id:u,focusable:a,active:i,children:t.jsx(rt.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...c,ref:r,onMouseDown:Be(n.onMouseDown,e=>{a?p.onItemFocus(u):e.preventDefault()}),onFocus:Be(n.onFocus,()=>p.onItemFocus(u)),onKeyDown:Be(n.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ka[r]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=p.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>Va(o))}var n,r}),children:"function"==typeof l?l({isCurrentTabStop:f,hasTabStop:null!=g}):l})})});Wa.displayName=za;var Ka={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Va(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var $a=La,Ba=Wa;function Ha(n){const r=Ua(n),o=e.forwardRef((n,o)=>{const{children:a,...i}=n,s=e.Children.toArray(a),l=s.find(Xa);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}function Ua(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Ga=Symbol("radix.slottable");function Xa(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Ga}var Ya=["Enter"," "],qa=["ArrowUp","PageDown","End"],Za=["ArrowDown","PageUp","Home",...qa],Ja={ltr:[...Ya,"ArrowRight"],rtl:[...Ya,"ArrowLeft"]},Qa={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ei="Menu",[ti,ni,ri]=gr(ei),[oi,ai]=He(ei,[ri,Ro,Ia]),ii=Ro(),si=Ia(),[li,ci]=oi(ei),[di,ui]=oi(ei),pi=n=>{const{__scopeMenu:r,open:o=!1,children:a,dir:i,onOpenChange:s,modal:l=!0}=n,c=ii(r),[d,u]=e.useState(null),p=e.useRef(!1),f=at(s),m=Ir(i);return e.useEffect(()=>{const e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.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})}},[]),t.jsx(Ko,{...c,children:t.jsx(li,{scope:r,open:o,onOpenChange:f,content:d,onContentChange:u,children:t.jsx(di,{scope:r,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:m,modal:l,children:a})})})};pi.displayName=ei;var fi=e.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e,a=ii(r);return t.jsx(Vo,{...a,...o,ref:n})});fi.displayName="MenuAnchor";var mi="MenuPortal",[hi,vi]=oi(mi,{forceMount:void 0}),gi=e=>{const{__scopeMenu:n,forceMount:r,children:o,container:a}=e,i=ci(mi,n);return t.jsx(hi,{scope:n,forceMount:r,children:t.jsx(St,{present:r||i.open,children:t.jsx(Rt,{asChild:!0,container:a,children:o})})})};gi.displayName=mi;
vendor: 17,430 bytes, line 1
1var bi="MenuContent",[wi,yi]=oi(bi),xi=e.forwardRef((e,n)=>{const r=vi(bi,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,i=ci(bi,e.__scopeMenu),s=ui(bi,e.__scopeMenu);return t.jsx(ti.Provider,{scope:e.__scopeMenu,children:t.jsx(St,{present:o||i.open,children:t.jsx(ti.Slot,{scope:e.__scopeMenu,children:s.modal?t.jsx(Ci,{...a,ref:n}):t.jsx(Ei,{...a,ref:n})})})})}),Ci=e.forwardRef((n,r)=>{const o=ci(bi,n.__scopeMenu),a=e.useRef(null),i=g(r,a);return e.useEffect(()=>{const e=a.current;if(e)return xn(e)},[]),t.jsx(Ri,{...n,ref:i,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:Be(n.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),Ei=e.forwardRef((e,n)=>{const r=ci(bi,e.__scopeMenu);return t.jsx(Ri,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),_i=Ha("MenuContent.ScrollLock"),Ri=e.forwardRef((n,r)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:v,...b}=n,w=ci(bi,o),y=ui(bi,o),x=ii(o),C=si(o),E=ni(o),[_,R]=e.useState(null),S=e.useRef(null),k=g(r,S,w.onContentChange),j=e.useRef(0),D=e.useRef(""),P=e.useRef(0),T=e.useRef(null),N=e.useRef("right"),M=e.useRef(0),I=v?hn:e.Fragment,A=v?{as:_i,allowPinchZoom:!0}:void 0;e.useEffect(()=>()=>window.clearTimeout(j.current),[]),Dt();const O=e.useCallback(e=>N.current===T.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const e=t[a],s=t[i],l=e.x,c=e.y,d=s.x,u=s.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,T.current?.area),[]);return t.jsx(wi,{scope:o,searchRef:D,onItemEnter:e.useCallback(e=>{O(e)&&e.preventDefault()},[O]),onItemLeave:e.useCallback(e=>{O(e)||(S.current?.focus(),R(null))},[O]),onTriggerLeave:e.useCallback(e=>{O(e)&&e.preventDefault()},[O]),pointerGraceTimerRef:P,onPointerGraceIntentChange:e.useCallback(e=>{T.current=e},[]),children:t.jsx(I,{...A,children:t.jsx(bt,{asChild:!0,trapped:i,onMountAutoFocus:Be(s,e=>{e.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:t.jsx(ct,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:t.jsx($a,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:R,onEntryFocus:Be(d,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:t.jsx($o,{role:"menu","aria-orientation":"vertical","data-state":Qi(w.open),"data-radix-menu-content":"",dir:y.dir,...x,...b,ref:k,style:{outline:"none",...b.style},onKeyDown:Be(b.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{const t=D.current+e,n=E().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){D.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())})(e.key));const o=S.current;if(e.target!==o)return;if(!Za.includes(e.key))return;e.preventDefault();const a=E().filter(e=>!e.disabled).map(e=>e.ref.current);qa.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Be(n.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),D.current="")}),onPointerMove:Be(n.onPointerMove,ns(e=>{const t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>M.current?"right":"left";N.current=t,M.current=e.clientX}}))})})})})})})});xi.displayName=bi;var Si=e.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(rt.div,{role:"group",...o,ref:n})});Si.displayName="MenuGroup";var ki=e.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(rt.div,{...o,ref:n})});ki.displayName="MenuLabel";var ji="MenuItem",Di="menu.itemSelect",Pi=e.forwardRef((n,r)=>{const{disabled:o=!1,onSelect:a,...i}=n,s=e.useRef(null),l=ui(ji,n.__scopeMenu),c=yi(ji,n.__scopeMenu),d=g(r,s),u=e.useRef(!1);return t.jsx(Ti,{...i,ref:d,disabled:o,onClick:Be(n.onClick,()=>{const e=s.current;if(!o&&e){const t=new CustomEvent(Di,{bubbles:!0,cancelable:!0});e.addEventListener(Di,e=>a?.(e),{once:!0}),ot(e,t),t.defaultPrevented?u.current=!1:l.onClose()}}),onPointerDown:e=>{n.onPointerDown?.(e),u.current=!0},onPointerUp:Be(n.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Be(n.onKeyDown,e=>{const t=""!==c.searchRef.current;o||t&&" "===e.key||Ya.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Pi.displayName=ji;var Ti=e.forwardRef((n,r)=>{const{__scopeMenu:o,disabled:a=!1,textValue:i,...s}=n,l=yi(ji,o),c=si(o),d=e.useRef(null),u=g(r,d),[p,f]=e.useState(!1),[m,h]=e.useState("");return e.useEffect(()=>{const e=d.current;e&&h((e.textContent??"").trim())},[s.children]),t.jsx(ti.ItemSlot,{scope:o,disabled:a,textValue:i??m,children:t.jsx(Ba,{asChild:!0,...c,focusable:!a,children:t.jsx(rt.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:u,onPointerMove:Be(n.onPointerMove,ns(e=>{a?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Be(n.onPointerLeave,ns(e=>l.onItemLeave(e))),onFocus:Be(n.onFocus,()=>f(!0)),onBlur:Be(n.onBlur,()=>f(!1))})})})}),Ni=e.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:o,...a}=e;return t.jsx(Wi,{scope:e.__scopeMenu,checked:r,children:t.jsx(Pi,{role:"menuitemcheckbox","aria-checked":es(r)?"mixed":r,...a,ref:n,"data-state":ts(r),onSelect:Be(a.onSelect,()=>o?.(!!es(r)||!r),{checkForDefaultPrevented:!1})})})});Ni.displayName="MenuCheckboxItem";var Mi="MenuRadioGroup",[Ii,Ai]=oi(Mi,{value:void 0,onValueChange:()=>{}}),Oi=e.forwardRef((e,n)=>{const{value:r,onValueChange:o,...a}=e,i=at(o);return t.jsx(Ii,{scope:e.__scopeMenu,value:r,onValueChange:i,children:t.jsx(Si,{...a,ref:n})})});Oi.displayName=Mi;var Li="MenuRadioItem",Fi=e.forwardRef((e,n)=>{const{value:r,...o}=e,a=Ai(Li,e.__scopeMenu),i=r===a.value;return t.jsx(Wi,{scope:e.__scopeMenu,checked:i,children:t.jsx(Pi,{role:"menuitemradio","aria-checked":i,...o,ref:n,"data-state":ts(i),onSelect:Be(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Fi.displayName=Li;var zi="MenuItemIndicator",[Wi,Ki]=oi(zi,{checked:!1}),Vi=e.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:o,...a}=e,i=Ki(zi,r);return t.jsx(St,{present:o||es(i.checked)||!0===i.checked,children:t.jsx(rt.span,{...a,ref:n,"data-state":ts(i.checked)})})});Vi.displayName=zi;var $i=e.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(rt.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});$i.displayName="MenuSeparator";var Bi=e.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e,a=ii(r);return t.jsx(Bo,{...a,...o,ref:n})});Bi.displayName="MenuArrow";var Hi="MenuSub",[Ui,Gi]=oi(Hi),Xi=n=>{const{__scopeMenu:r,children:o,open:a=!1,onOpenChange:i}=n,s=ci(Hi,r),l=ii(r),[c,d]=e.useState(null),[u,p]=e.useState(null),f=at(i);return e.useEffect(()=>(!1===s.open&&f(!1),()=>f(!1)),[s.open,f]),t.jsx(Ko,{...l,children:t.jsx(li,{scope:r,open:a,onOpenChange:f,content:u,onContentChange:p,children:t.jsx(Ui,{scope:r,contentId:qe(),triggerId:qe(),trigger:c,onTriggerChange:d,children:o})})})};Xi.displayName=Hi;var Yi="MenuSubTrigger",qi=e.forwardRef((n,r)=>{const o=ci(Yi,n.__scopeMenu),a=ui(Yi,n.__scopeMenu),i=Gi(Yi,n.__scopeMenu),s=yi(Yi,n.__scopeMenu),l=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,u={__scopeMenu:n.__scopeMenu},p=e.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return e.useEffect(()=>p,[p]),e.useEffect(()=>{const e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),t.jsx(fi,{asChild:!0,...u,children:t.jsx(Ti,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":i.contentId,"data-state":Qi(o.open),...n,ref:v(r,i.onTriggerChange),onClick:e=>{n.onClick?.(e),n.disabled||e.defaultPrevented||(e.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:Be(n.onPointerMove,ns(e=>{s.onItemEnter(e),e.defaultPrevented||n.disabled||o.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),p()},100))})),onPointerLeave:Be(n.onPointerLeave,ns(e=>{p();const t=o.content?.getBoundingClientRect();if(t){const n=o.content?.dataset.side,r="right"===n,a=r?-5:5,i=t[r?"left":"right"],l=t[r?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:i,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Be(n.onKeyDown,e=>{const t=""!==s.searchRef.current;n.disabled||t&&" "===e.key||Ja[a.dir].includes(e.key)&&(o.onOpenChange(!0),o.content?.focus(),e.preventDefault())})})})});qi.displayName=Yi;var Zi="MenuSubContent",Ji=e.forwardRef((n,r)=>{const o=vi(bi,n.__scopeMenu),{forceMount:a=o.forceMount,...i}=n,s=ci(bi,n.__scopeMenu),l=ui(bi,n.__scopeMenu),c=Gi(Zi,n.__scopeMenu),d=e.useRef(null),u=g(r,d);return t.jsx(ti.Provider,{scope:n.__scopeMenu,children:t.jsx(St,{present:a||s.open,children:t.jsx(ti.Slot,{scope:n.__scopeMenu,children:t.jsx(Ri,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:u,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Be(n.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Be(n.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:Be(n.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Qa[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function Qi(e){return e?"open":"closed"}function es(e){return"indeterminate"===e}function ts(e){return es(e)?"indeterminate":e?"checked":"unchecked"}function ns(e){return t=>"mouse"===t.pointerType?e(t):void 0}Ji.displayName=Zi;var rs=pi,os=fi,as=gi,is=xi,ss=Si,ls=ki,cs=Pi,ds=Ni,us=Oi,ps=Fi,fs=Vi,ms=$i,hs=Bi,vs=Xi,gs=qi,bs=Ji,ws="DropdownMenu",[ys]=He(ws,[ai]),xs=ai(),[Cs,Es]=ys(ws),_s=n=>{const{__scopeDropdownMenu:r,children:o,dir:a,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=n,d=xs(r),u=e.useRef(null),[p,f]=Je({prop:i,defaultProp:s??!1,onChange:l,caller:ws});return t.jsx(Cs,{scope:r,triggerId:qe(),triggerRef:u,contentId:qe(),open:p,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:c,children:t.jsx(rs,{...d,open:p,onOpenChange:f,dir:a,modal:c,children:o})})};_s.displayName=ws;var Rs="DropdownMenuTrigger",Ss=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...a}=e,i=Es(Rs,r),s=xs(r);return t.jsx(os,{asChild:!0,...s,children:t.jsx(rt.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:v(n,i.triggerRef),onPointerDown:Be(e.onPointerDown,e=>{o||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:Be(e.onKeyDown,e=>{o||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});Ss.displayName=Rs;var ks=e=>{const{__scopeDropdownMenu:n,...r}=e,o=xs(n);return t.jsx(as,{...o,...r})};ks.displayName="DropdownMenuPortal";var js="DropdownMenuContent",Ds=e.forwardRef((n,r)=>{const{__scopeDropdownMenu:o,...a}=n,i=Es(js,o),s=xs(o),l=e.useRef(!1);return t.jsx(is,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...a,ref:r,onCloseAutoFocus:Be(n.onCloseAutoFocus,e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:Be(n.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)}),style:{...n.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)"}})});Ds.displayName=js,e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(ss,{...a,...o,ref:n})}).displayName="DropdownMenuGroup";var Ps=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(ls,{...a,...o,ref:n})});Ps.displayName="DropdownMenuLabel";var Ts=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(cs,{...a,...o,ref:n})});Ts.displayName="DropdownMenuItem";var Ns=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(ds,{...a,...o,ref:n})});Ns.displayName="DropdownMenuCheckboxItem",e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(us,{...a,...o,ref:n})}).displayName="DropdownMenuRadioGroup";var Ms=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(ps,{...a,...o,ref:n})});Ms.displayName="DropdownMenuRadioItem";var Is=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(fs,{...a,...o,ref:n})});Is.displayName="DropdownMenuItemIndicator";var As=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(ms,{...a,...o,ref:n})});As.displayName="DropdownMenuSeparator",e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(hs,{...a,...o,ref:n})}).displayName="DropdownMenuArrow";var Os=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(gs,{...a,...o,ref:n})});Os.displayName="DropdownMenuSubTrigger";var Ls=e.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=xs(r);return t.jsx(bs,{...a,...o,ref:n,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)"}})});Ls.displayName="DropdownMenuSubContent";var Fs=_s,zs=Ss,Ws=ks,Ks=Ds,Vs=Ps,$s=Ts,Bs=Ns,Hs=Ms,Us=Is,Gs=As,Xs=e=>{const{__scopeDropdownMenu:n,children:r,open:o,onOpenChange:a,defaultOpen:i}=e,s=xs(n),[l,c]=Je({prop:o,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return t.jsx(vs,{...s,open:l,onOpenChange:c,children:r})},Ys=Os,qs=Ls,Zs=Symbol("radix.slottable");function Js(e){const n=({children:e})=>t.jsx(t.Fragment,{children:e});return n.displayName=`${e}.Slottable`,n.__radixId=Zs,n}var Qs="AlertDialog",[el]=He(Qs,[jn]),tl=jn(),nl=e=>{const{__scopeAlertDialog:n,...r}=e,o=tl(n);return t.jsx(ar,{...o,...r,modal:!0})};nl.displayName=Qs,e.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...o}=e,a=tl(r);return t.jsx(ir,{...a,...o,ref:n})}).displayName="AlertDialogTrigger";var rl=e=>{const{__scopeAlertDialog:n,...r}=e,o=tl(n);return t.jsx(sr,{...o,...r})};rl.displayName="AlertDialogPortal";var ol=e.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...o}=e,a=tl(r);return t.jsx(lr,{...a,...o,ref:n})});ol.displayName="AlertDialogOverlay";var al="AlertDialogContent",[il,sl]=el(al),ll=Js("AlertDialogContent"),cl=e.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:a,...i}=n,s=tl(o),l=e.useRef(null),c=g(r,l),d=e.useRef(null);return t.jsx(tr,{contentName:al,titleName:dl,docsSlug:"alert-dialog",children:t.jsx(il,{scope:o,cancelRef:d,children:t.jsxs(cr,{role:"alertdialog",...s,...i,ref:c,onOpenAutoFocus:Be(i.onOpenAutoFocus,e=>{e.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[t.jsx(ll,{children:a}),t.jsx(gl,{contentRef:l})]})})})});cl.displayName=al;var dl="AlertDialogTitle",ul=e.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...o}=e,a=tl(r);return t.jsx(dr,{...a,...o,ref:n})});ul.displayName=dl;var pl="AlertDialogDescription",fl=e.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...o}=e,a=tl(r);return t.jsx(ur,{...a,...o,ref:n})});fl.displayName=pl;var ml=e.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...o}=e,a=tl(r);return t.jsx(pr,{...a,...o,ref:n})});ml.displayName="AlertDialogAction";
1var hl="AlertDialogCancel",vl=e.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:a}=sl(hl,r),i=tl(r),s=g(n,a);return t.jsx(pr,{...i,...o,ref:s})});vl.displayName=hl;var gl=({contentRef:t})=>{const n=`\`${al}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${al}\` by passing a \`${pl}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${al}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))},[n,t]),null},bl=nl,wl=rl,yl=ol,xl=cl,Cl=ml,El=vl,_l=ul,Rl=fl,Sl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((n,r)=>{const o=x(`Primitive.${r}`),a=e.forwardRef((e,n)=>{const{asChild:a,...i}=e,s=a?o:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:n})});return a.displayName=`Primitive.${r}`,{...n,[r]:a}},{}),kl=e.forwardRef((e,n)=>t.jsx(Sl.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));kl.displayName="Label";var jl=kl;function Dl(e,[t,n]){return Math.min(n,Math.max(t,e))}function Pl(n){const r=Tl(n),o=e.forwardRef((n,o)=>{const{children:a,...i}=n,s=e.Children.toArray(a),l=s.find(Ml);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}function Tl(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Nl=Symbol("radix.slottable");function Ml(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Nl}function Il(t){const n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var Al=[" ","Enter","ArrowUp","ArrowDown"],Ol=[" ","Enter"],Ll="Select",[Fl,zl,Wl]=gr(Ll),[Kl]=He(Ll,[Wl,Ro]),Vl=Ro(),[$l,Bl]=Kl(Ll),[Hl,Ul]=Kl(Ll),Gl=n=>{const{__scopeSelect:r,children:o,open:a,defaultOpen:i,onOpenChange:s,value:l,defaultValue:c,onValueChange:d,dir:u,name:p,autoComplete:f,disabled:m,required:h,form:v}=n,g=Vl(r),[b,w]=e.useState(null),[y,x]=e.useState(null),[C,E]=e.useState(!1),_=Ir(u),[R,S]=Je({prop:a,defaultProp:i??!1,onChange:s,caller:Ll}),[k,j]=Je({prop:l,defaultProp:c,onChange:d,caller:Ll}),D=e.useRef(null),P=!b||v||!!b.closest("form"),[T,N]=e.useState(new Set),M=Array.from(T).map(e=>e.props.value).join(";");return t.jsx(Ko,{...g,children:t.jsxs($l,{required:h,scope:r,trigger:b,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:qe(),value:k,onValueChange:j,open:R,onOpenChange:S,dir:_,triggerPointerDownPosRef:D,disabled:m,children:[t.jsx(Fl.Provider,{scope:r,children:t.jsx(Hl,{scope:n.__scopeSelect,onNativeOptionAdd:e.useCallback(e=>{N(t=>new Set(t).add(e))},[]),onNativeOptionRemove:e.useCallback(e=>{N(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:o})}),P?t.jsxs(Mc,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:f,value:k,onChange:e=>j(e.target.value),disabled:m,form:v,children:[void 0===k?t.jsx("option",{value:""}):null,Array.from(T)]},M):null]})})};Gl.displayName=Ll;var Xl="SelectTrigger",Yl=e.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:a=!1,...i}=n,s=Vl(o),l=Bl(Xl,o),c=l.disabled||a,d=g(r,l.onTriggerChange),u=zl(o),p=e.useRef("touch"),[f,m,h]=Ac(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=Oc(t,e,n);void 0!==r&&l.onValueChange(r.value)}),v=e=>{c||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return t.jsx(Vo,{asChild:!0,...s,children:t.jsx(rt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ic(l.value)?"":void 0,...i,ref:d,onClick:Be(i.onClick,e=>
1{e.currentTarget.focus(),"mouse"!==p.current&&v(e)}),onPointerDown:Be(i.onPointerDown,e=>{p.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:Be(i.onKeyDown,e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||Al.includes(e.key)&&(v(),e.preventDefault())})})})});Yl.displayName=Xl;var ql="SelectValue",Zl=e.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:a,children:i,placeholder:s="",...l}=e,c=Bl(ql,r),{onValueNodeHasChildrenChange:d}=c,u=void 0!==i,p=g(n,c.onValueNodeChange);return Ge(()=>{d(u)},[d,u]),t.jsx(rt.span,{...l,ref:p,style:{pointerEvents:"none"},children:Ic(c.value)?t.jsx(t.Fragment,{children:s}):i})});Zl.displayName=ql;var Jl=e.forwardRef((e,n)=>{const{__scopeSelect:r,children:o,...a}=e;return t.jsx(rt.span,{"aria-hidden":!0,...a,ref:n,children:o||"▼"})});Jl.displayName="SelectIcon";var Ql=e=>t.jsx(Rt,{asChild:!0,...e});Ql.displayName="SelectPortal";var ec="SelectContent",tc=e.forwardRef((n,o)=>{const a=Bl(ec,n.__scopeSelect),[i,s]=e.useState();if(Ge(()=>{s(new DocumentFragment)},[]),!a.open){const e=i;return e?r.createPortal(t.jsx(rc,{scope:n.__scopeSelect,children:t.jsx(Fl.Slot,{scope:n.__scopeSelect,children:t.jsx("div",{children:n.children})})}),e):null}return t.jsx(ic,{...n,ref:o})});tc.displayName=ec;var nc=10,[rc,oc]=Kl(ec),ac=Pl("SelectContent.RemoveScroll"),ic=e.forwardRef((n,r)=>{const{__scopeSelect:o,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:b,avoidCollisions:w,...y}=n,x=Bl(ec,o),[C,E]=e.useState(null),[_,R]=e.useState(null),S=g(r,e=>E(e)),[k,j]=e.useState(null),[D,P]=e.useState(null),T=zl(o),[N,M]=e.useState(!1),I=e.useRef(!1);e.useEffect(()=>{if(C)return xn(C)},[C]),Dt();const A=e.useCallback(e=>{const[t,...n]=T().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const a of e){if(a===o)return;if(a?.scrollIntoView({block:"nearest"}),a===t&&_&&(_.scrollTop=0),a===r&&_&&(_.scrollTop=_.scrollHeight),a?.focus(),document.activeElement!==o)return}},[T,_]),O=e.useCallback(()=>A([k,C]),[A,k,C]);e.useEffect(()=>{N&&O()},[N,O]);const{onOpenChange:L,triggerPointerDownPosRef:F}=x;e.useEffect(()=>{if(C){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():C.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[C,L,F]),e.useEffect(()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[L]);const[z,W]=Ac(e=>{const t=T().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=Oc(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),K=e.useCallback((e,t,n)=>{const r=!I.current&&!n;(void 0!==x.value&&x.value===t||r)&&(j(e),r&&(I.current=!0))},[x.value]),V=e.useCallback(()=>C?.focus(),[C]),$=e.useCallback((e,t,n)=>{const r=!I.current&&!n;(void 0!==x.value&&x.value===t||r)&&P(e)},[x.value]),B="popper"===a?lc:sc,H=B===lc?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:b,avoidCollisions:w}:{};return t.jsx(rc,{scope:o,content:C,viewport:_,onViewportChange:R,itemRefCallback:K,selectedItem:k,onItemLeave:V,itemTextRefCallback:$,focusSelectedItem:O,selectedItemText:D,position:a,isPositioned:N,searchRef:z,children:t.jsx(hn,{as:ac,allowPinchZoom:!0,children:t.jsx(bt,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Be(i,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:t.jsx(ct,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:t.jsx(B,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...y,...H,onPlaced:()=>M(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Be(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||W(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=T().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});ic.displayName="SelectContentImpl";var sc=e.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:a,...i}=n,s=Bl(ec,o),l=oc(ec,o),[c,d]=e.useState(null),[u,p]=e.useState(null),f=g(r,e=>p(e)),m=zl(o),h=e.useRef(!1),v=e.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:y,focusSelectedItem:x}=l,C=e.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&b&&w&&y){const e=s.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=y.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,a=n.left-o,i=e.left-a,s=e.width+i,l=Math.max(s,t.width),d=window.innerWidth-nc,u=Dl(a,[nc,Math.max(nc,d-l)]);c.style.minWidth=s+"px",c.style.left=u+"px"}else{const o=t.right-r.right,a=window.innerWidth-n.right-o,i=window.innerWidth-e.right-a,s=e.width+i,l=Math.max(s,t.width),d=window.innerWidth-nc,u=Dl(a,[nc,Math.max(nc,d-l)]);c.style.minWidth=s+"px",c.style.right=u+"px"}const o=m(),i=window.innerHeight-2*nc,l=b.scrollHeight,d=window.getComputedStyle(u),p=parseInt(d.borderTopWidth,10),f=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),g=p+f+l+parseInt(d.paddingBottom,10)+v,x=Math.min(5*w.offsetHeight,g),C=window.getComputedStyle(b),E=parseInt(C.paddingTop,10),_=parseInt(C.paddingBottom,10),R=e.top+e.height/2-nc,S=i-R,k=w.offsetHeight/2,j=p+f+(w.offsetTop+k),D=g-j;if(j<=R){const e=o.length>0&&w===o[o.length-1].ref.current;c.style.bottom="0px";const t=u.clientHeight-b.offsetTop-b.offsetHeight,n=j+Math.max(S,k+(e?_:0)+t+v);c.style.height=n+"px"}else{const e=o.length>0&&w===o[0].ref.current;c.style.top="0px";const t=Math.max(R,p+b.offsetTop+(e?E:0)+k)+D;c.style.height=t+"px",b.scrollTop=j-R+b.offsetTop}c.style.margin=`${nc}px 0`,c.style.minHeight=x+"px",c.style.maxHeight=i+"px",a?.(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,c,u,b,w,y,s.dir,a]);Ge(()=>C(),[C]);const[E,_]=e.useState();Ge(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const R=e.useCallback(e=>{e&&!0===v.current&&(C(),x?.(),v.current=!1)},[C,x]);return t.jsx(cc,{scope:o,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:R,children:t.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:t.jsx(rt.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});sc.displayName="SelectItemAlignedPosition";var lc=e.forwardRef((e,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:a=nc,...i}=e,s=Vl(r);return t.jsx($o,{...s,...i,ref:n,align:o,collisionPadding:a,style:{boxSizing:"border-box",...i.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)"}})});lc.displayName="SelectPopperPosition";var[cc,dc]=Kl(ec,{}),uc="SelectViewport",pc=e.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:a,...i}=n,s=oc(uc,o),l=dc(uc,o),c=g(r,s.onViewportChange),d=e.useRef(0);return t.jsxs(t.Fragment,{children:[t.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:a}),t.jsx(Fl.Slot,{scope:o,children:t.jsx(rt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Be(i.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;if(r?.current&&n){const e=Math.abs(d.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*nc,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});pc.displayName=uc;var fc="SelectGroup",[mc,hc]=Kl(fc);
1e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=qe();return t.jsx(mc,{scope:r,id:a,children:t.jsx(rt.div,{role:"group","aria-labelledby":a,...o,ref:n})})}).displayName=fc;var vc="SelectLabel",gc=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=hc(vc,r);return t.jsx(rt.div,{id:a.id,...o,ref:n})});gc.displayName=vc;var bc="SelectItem",[wc,yc]=Kl(bc),xc=e.forwardRef((n,r)=>{const{__scopeSelect:o,value:a,disabled:i=!1,textValue:s,...l}=n,c=Bl(bc,o),d=oc(bc,o),u=c.value===a,[p,f]=e.useState(s??""),[m,h]=e.useState(!1),v=g(r,e=>d.itemRefCallback?.(e,a,i)),b=qe(),w=e.useRef("touch"),y=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.jsx(wc,{scope:o,value:a,disabled:i,textId:b,isSelected:u,onItemTextChange:e.useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:t.jsx(Fl.ItemSlot,{scope:o,value:a,disabled:i,textValue:p,children:t.jsx(rt.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:v,onFocus:Be(l.onFocus,()=>h(!0)),onBlur:Be(l.onBlur,()=>h(!1)),onClick:Be(l.onClick,()=>{"mouse"!==w.current&&y()}),onPointerUp:Be(l.onPointerUp,()=>{"mouse"===w.current&&y()}),onPointerDown:Be(l.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:Be(l.onPointerMove,e=>{w.current=e.pointerType,i?d.onItemLeave?.():"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Be(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:Be(l.onKeyDown,e=>{""!==d.searchRef?.current&&" "===e.key||(Ol.includes(e.key)&&y()," "===e.key&&e.preventDefault())})})})})});xc.displayName=bc;var Cc="SelectItemText",Ec=e.forwardRef((n,o)=>{const{__scopeSelect:a,className:i,style:s,...l}=n,c=Bl(Cc,a),d=oc(Cc,a),u=yc(Cc,a),p=Ul(Cc,a),[f,m]=e.useState(null),h=g(o,e=>m(e),u.onItemTextChange,e=>d.itemTextRefCallback?.(e,u.value,u.disabled)),v=f?.textContent,b=e.useMemo(()=>t.jsx("option",{value:u.value,disabled:u.disabled,children:v},u.value),[u.disabled,u.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=p;return Ge(()=>(w(b),()=>y(b)),[w,y,b]),t.jsxs(t.Fragment,{children:[t.jsx(rt.span,{id:u.textId,...l,ref:h}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?r.createPortal(l.children,c.valueNode):null]})});Ec.displayName=Cc;var _c="SelectItemIndicator",Rc=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return yc(_c,r).isSelected?t.jsx(rt.span,{"aria-hidden":!0,...o,ref:n}):null});Rc.displayName=_c;var Sc="SelectScrollUpButton",kc=e.forwardRef((n,r)=>{const o=oc(Sc,n.__scopeSelect),a=dc(Sc,n.__scopeSelect),[i,s]=e.useState(!1),l=g(r,a.onScrollButtonChange);return Ge(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),i?t.jsx(Pc,{...n,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});kc.displayName=Sc;var jc="SelectScrollDownButton",Dc=e.forwardRef((n,r)=>{const o=oc(jc,n.__scopeSelect),a=dc(jc,n.__scopeSelect),[i,s]=e.useState(!1),l=g(r,a.onScrollButtonChange);return Ge(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),i?t.jsx(Pc,{...n,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Dc.displayName=jc;var Pc=e.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:a,...i}=n,s=oc("SelectScrollButton",o),l=e.useRef(null),c=zl(o),d=e.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return e.useEffect(()=>()=>d(),[d]),Ge(()=>{const e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})}
1,[c]),t.jsx(rt.div,{"aria-hidden":!0,...i,ref:r,style:{flexShrink:0,...i.style},onPointerDown:Be(i.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(a,50))}),onPointerMove:Be(i.onPointerMove,()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(a,50))}),onPointerLeave:Be(i.onPointerLeave,()=>{d()})})}),Tc=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return t.jsx(rt.div,{"aria-hidden":!0,...o,ref:n})});Tc.displayName="SelectSeparator";var Nc="SelectArrow";e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=Vl(r),i=Bl(Nc,r),s=oc(Nc,r);return i.open&&"popper"===s.position?t.jsx(Bo,{...a,...o,ref:n}):null}).displayName=Nc;var Mc=e.forwardRef(({__scopeSelect:n,value:r,...o},a)=>{const i=e.useRef(null),s=g(a,i),l=Il(r);return e.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[l,r]),t.jsx(rt.select,{...o,style:{...Go,...o.style},ref:s,defaultValue:r})});function Ic(e){return""===e||void 0===e}function Ac(t){const n=at(t),r=e.useRef(""),o=e.useRef(0),a=e.useCallback(e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(t)},[n]),i=e.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,i]}function Oc(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}Mc.displayName="SelectBubbleInput";var Lc=Gl,Fc=Yl,zc=Zl,Wc=Jl,Kc=Ql,Vc=tc,$c=pc,Bc=gc,Hc=xc,Uc=Ec,Gc=Rc,Xc=kc,Yc=Dc,qc=Tc;function Zc(n){const r=Jc(n),o=e.forwardRef((n,o)=>{const{children:a,...i}=n,s=e.Children.toArray(a),l=s.find(ed);if(l){const n=l.props.children,a=s.map(t=>t===l?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...i,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,a):null})}return t.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${n}.Slot`,o}function Jc(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(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)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?v(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Qc=Symbol("radix.slottable");function ed(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Qc}var td="Popover",[nd]=He(td,[Ro]),rd=Ro(),[od,ad]=nd(td),id=n=>{const{__scopePopover:r,children:o,open:a,defaultOpen:i,onOpenChange:s,modal:l=!1}=n,c=rd(r),d=e.useRef(null),[u,p]=e.useState(!1),[f,m]=Je({prop:a,defaultProp:i??!1,onChange:s,caller:td});return t.jsx(Ko,{...c,children:t.jsx(od,{scope:r,contentId:qe(),triggerRef:d,open:f,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>p(!0),[]),onCustomAnchorRemove:e.useCallback(()=>p(!1),[]),modal:l,children:o})})};id.displayName=td;var sd="PopoverAnchor";e.forwardRef((n,r)=>{const{__scopePopover:o,...a}=n,i=ad(sd,o),s=rd(o),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return e.useEffect(()=>(l(),()=>c()),[l,c]),t.jsx(Vo,{...s,...a,ref:r})}).displayName=sd;var ld="PopoverTrigger",cd=e.forwardRef((e,n)=>{const{__scopePopover:r,...o}
vendor: 4,222 bytes, line 1
1=e,a=ad(ld,r),i=rd(r),s=g(n,a.triggerRef),l=t.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":xd(a.open),...o,ref:s,onClick:Be(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:t.jsx(Vo,{asChild:!0,...i,children:l})});cd.displayName=ld;var dd="PopoverPortal",[ud,pd]=nd(dd,{forceMount:void 0}),fd=e=>{const{__scopePopover:n,forceMount:r,children:o,container:a}=e,i=ad(dd,n);return t.jsx(ud,{scope:n,forceMount:r,children:t.jsx(St,{present:r||i.open,children:t.jsx(Rt,{asChild:!0,container:a,children:o})})})};fd.displayName=dd;var md="PopoverContent",hd=e.forwardRef((e,n)=>{const r=pd(md,e.__scopePopover),{forceMount:o=r.forceMount,...a}=e,i=ad(md,e.__scopePopover);return t.jsx(St,{present:o||i.open,children:i.modal?t.jsx(gd,{...a,ref:n}):t.jsx(bd,{...a,ref:n})})});hd.displayName=md;var vd=Zc("PopoverContent.RemoveScroll"),gd=e.forwardRef((n,r)=>{const o=ad(md,n.__scopePopover),a=e.useRef(null),i=g(r,a),s=e.useRef(!1);return e.useEffect(()=>{const e=a.current;if(e)return xn(e)},[]),t.jsx(hn,{as:vd,allowPinchZoom:!0,children:t.jsx(wd,{...n,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Be(n.onCloseAutoFocus,e=>{e.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:Be(n.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Be(n.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),bd=e.forwardRef((n,r)=>{const o=ad(md,n.__scopePopover),a=e.useRef(!1),i=e.useRef(!1);return t.jsx(wd,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{n.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||o.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:e=>{n.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const t=e.target,r=o.triggerRef.current?.contains(t);r&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),wd=e.forwardRef((e,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...p}=e,f=ad(md,r),m=rd(r);return Dt(),t.jsx(bt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:t.jsx(ct,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:t.jsx($o,{"data-state":xd(f.open),role:"dialog",id:f.contentId,...m,...p,ref:n,style:{...p.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)"}})})})}),yd="PopoverClose";function xd(e){return e?"open":"closed"}e.forwardRef((e,n)=>{const{__scopePopover:r,...o}=e,a=ad(yd,r);return t.jsx(rt.button,{type:"button",...o,ref:n,onClick:Be(e.onClick,()=>a.onOpenChange(!1))})}).displayName=yd,e.forwardRef((e,n)=>{const{__scopePopover:r,...o}=e,a=rd(r);return t.jsx(Bo,{...a,...o,ref:n})}).displayName="PopoverArrow";var Cd=id,Ed=cd,_d=fd,Rd=hd,Sd="ScrollArea",[kd]=He(Sd),[jd,Dd]=kd(Sd),Pd=e.forwardRef((n,r)=>{const{__scopeScrollArea:o,type:a="hover",dir:i,scrollHideDelay:s=600,...l}=n,[c,d]=e.useState(null),[u,p]=e.useState(null),[f,m]=e.useState(null),[h,v]=e.useState(null),[b,w]=e.useState(null),[y,x]=e.useState(0),[C,E]=e.useState(0),[_,R]=e.useState(!1),[S,k]=e.useState(!1),j=g(r,e=>d(e)),D=Ir(i);return t.jsx(jd,{scope:o,type:a,dir:D,scrollHideDelay:s,scrollArea:c,viewport:u,onViewportChange:p,content:f,onContentChange:m,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:_,onScrollbarXEnabledChange:R,scrollbarY:b,onScrollbarYChange:w,scrollbarYEnabled:S,onScrollbarYEnabledChange:k,onCornerWidthChange:x,onCornerHeight
vendor: 4,275 bytes, line 1
1Change:E,children:t.jsx(rt.div,{dir:D,...l,ref:j,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":C+"px",...n.style}})})});Pd.displayName=Sd;var Td="ScrollAreaViewport",Nd=e.forwardRef((n,r)=>{const{__scopeScrollArea:o,children:a,nonce:i,...s}=n,l=Dd(Td,o),c=g(r,e.useRef(null),l.onViewportChange);return t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),t.jsx(rt.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...n.style},children:t.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});Nd.displayName=Td;var Md="ScrollAreaScrollbar",Id=e.forwardRef((n,r)=>{const{forceMount:o,...a}=n,i=Dd(Md,n.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=i,c="horizontal"===n.orientation;return e.useEffect(()=>(c?s(!0):l(!0),()=>{c?s(!1):l(!1)}),[c,s,l]),"hover"===i.type?t.jsx(Ad,{...a,ref:r,forceMount:o}):"scroll"===i.type?t.jsx(Od,{...a,ref:r,forceMount:o}):"auto"===i.type?t.jsx(Ld,{...a,ref:r,forceMount:o}):"always"===i.type?t.jsx(Fd,{...a,ref:r}):null});Id.displayName=Md;var Ad=e.forwardRef((n,r)=>{const{forceMount:o,...a}=n,i=Dd(Md,n.__scopeScrollArea),[s,l]=e.useState(!1);return e.useEffect(()=>{const e=i.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),t.jsx(St,{present:o||s,children:t.jsx(Ld,{"data-state":s?"visible":"hidden",...a,ref:r})})}),Od=e.forwardRef((n,r)=>{const{forceMount:o,...a}=n,i=Dd(Md,n.__scopeScrollArea),s="horizontal"===n.orientation,l=ru(()=>d("SCROLL_END"),100),[c,d]=(u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},e.useReducer((e,t)=>u[e][t]??e,"hidden"));var u;return e.useEffect(()=>{if("idle"===c){const e=window.setTimeout(()=>d("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,i.scrollHideDelay,d]),e.useEffect(()=>{const e=i.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(d("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[i.viewport,s,d,l]),t.jsx(St,{present:o||"hidden"!==c,children:t.jsx(Fd,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:r,onPointerEnter:Be(n.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:Be(n.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),Ld=e.forwardRef((n,r)=>{const o=Dd(Md,n.__scopeScrollArea),{forceMount:a,...i}=n,[s,l]=e.useState(!1),c="horizontal"===n.orientation,d=ru(()=>{if(o.viewport){const e=o.viewport.offsetWidth<o.viewport.scrollWidth,t=o.viewport.offsetHeight<o.viewport.scrollHeight;l(c?e:t)}},10);return ou(o.viewport,d),ou(o.content,d),t.jsx(St,{present:a||s,children:t.jsx(Fd,{"data-state":s?"visible":"hidden",...i,ref:r})})}),Fd=e.forwardRef((n,r)=>{const{orientation:o="vertical",...a}=n,i=Dd(Md,n.__scopeScrollArea),s=e.useRef(null),l=e.useRef(0),[c,d]=e.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Zd(c.viewport,c.content),p={...a,sizes:c,onSizesChange:d,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function f(e,t){return function(e,t,n,r="ltr"){const o=Jd(n),a=t||o/2,i=o-a,s=n.scrollbar.paddingStart+a,l=n.scrollbar.size-n.scrollbar.paddingEnd-i,c=n.content-n.viewport;return eu([s,l],"ltr"===r?[0,c]:[-1*c,0])(e)}(e,l.current,c,t)}return"horizontal"===o?t.jsx(zd,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=Qd(i.viewport.scrollLeft,c,i.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}}
vendor: 31,202 bytes, line 1
1,onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}}):"vertical"===o?t.jsx(Wd,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=Qd(i.viewport.scrollTop,c);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}}):null}),zd=e.forwardRef((n,r)=>{const{sizes:o,onSizesChange:a,...i}=n,s=Dd(Md,n.__scopeScrollArea),[l,c]=e.useState(),d=e.useRef(null),u=g(r,d,s.onScrollbarXChange);return e.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),t.jsx($d,{"data-orientation":"horizontal",...i,ref:u,sizes:o,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Jd(o)+"px",...n.style},onThumbPointerDown:e=>n.onThumbPointerDown(e.x),onDragScroll:e=>n.onDragScroll(e.x),onWheelScroll:(e,t)=>{if(s.viewport){const r=s.viewport.scrollLeft+e.deltaX;n.onWheelScroll(r),tu(r,t)&&e.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&a({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:qd(l.paddingLeft),paddingEnd:qd(l.paddingRight)}})}})}),Wd=e.forwardRef((n,r)=>{const{sizes:o,onSizesChange:a,...i}=n,s=Dd(Md,n.__scopeScrollArea),[l,c]=e.useState(),d=e.useRef(null),u=g(r,d,s.onScrollbarYChange);return e.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),t.jsx($d,{"data-orientation":"vertical",...i,ref:u,sizes:o,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Jd(o)+"px",...n.style},onThumbPointerDown:e=>n.onThumbPointerDown(e.y),onDragScroll:e=>n.onDragScroll(e.y),onWheelScroll:(e,t)=>{if(s.viewport){const r=s.viewport.scrollTop+e.deltaY;n.onWheelScroll(r),tu(r,t)&&e.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&a({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:qd(l.paddingTop),paddingEnd:qd(l.paddingBottom)}})}})}),[Kd,Vd]=kd(Md),$d=e.forwardRef((n,r)=>{const{__scopeScrollArea:o,sizes:a,hasThumb:i,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:d,onDragScroll:u,onWheelScroll:p,onResize:f,...m}=n,h=Dd(Md,o),[v,b]=e.useState(null),w=g(r,e=>b(e)),y=e.useRef(null),x=e.useRef(""),C=h.viewport,E=a.content-a.viewport,_=at(p),R=at(d),S=ru(f,10);function k(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;u({x:t,y:n})}}return e.useEffect(()=>{const e=e=>{const t=e.target,n=v?.contains(t);n&&_(e,E)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[C,v,E,_]),e.useEffect(R,[a,R]),ou(v,S),ou(h.content,S),t.jsx(Kd,{scope:o,scrollbar:v,hasThumb:i,onThumbChange:at(s),onThumbPointerUp:at(l),onThumbPositionChange:R,onThumbPointerDown:at(c),children:t.jsx(rt.div,{...m,ref:w,style:{position:"absolute",...m.style},onPointerDown:Be(n.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=v.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),k(e))}),onPointerMove:Be(n.onPointerMove,k),onPointerUp:Be(n.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null})})})}),Bd="ScrollAreaThumb",Hd=e.forwardRef((e,n)=>{const{forceMount:r,...o}=e,a=Vd(Bd,e.__scopeScrollArea);return t.jsx(St,{present:r||a.hasThumb,children:t.jsx(Ud,{ref:n,...o})})}),Ud=e.forwardRef((n,r)=>{const{__scopeScrollArea:o,style:a,...i}=n,s=Dd(Bd,o),l=Vd(Bd,o),{onThumbPositionChange:c}=l,d=g(r,e=>l.onThumbChange(e)),u=e.useRef(void 0),p=ru(()=>{u.current&&(u.current(),u.current=void 0)},100);return e.useEffect(()=>{const e=s.viewport;if(e){const t=()=>{if(p(),!u.current){const t=nu(e,c);u.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,p,c]),t.jsx(rt.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:Be(n.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;l.onThumbPointerDown({x:n,y:r})}),onPointerUp:Be(n.onPointerUp,l.onThumbPointerUp)})});Hd.displayName=Bd;var Gd="ScrollAreaCorner",Xd=e.forwardRef((e,n)=>{const r=Dd(Gd,e.__scopeScrollArea),o=Boolean(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&o?t.jsx(Yd,{...e,ref:n}):null});Xd.displayName=Gd;var Yd=e.forwardRef((n,r)=>{const{__scopeScrollArea:o,...a}=n,i=Dd(Gd,o),[s,l]=e.useState(0),[c,d]=e.useState(0),u=Boolean(s&&c);return ou(i.scrollbarX,()=>{const e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),d(e)}),ou(i.scrollbarY,()=>{const e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),l(e)}),u?t.jsx(rt.div,{...a,ref:r,style:{width:s,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...n.style}}):null});function qd(e){return e?parseInt(e,10):0}function Zd(e,t){const n=e/t;return isNaN(n)?0:n}function Jd(e){const t=Zd(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Qd(e,t,n="ltr"){const r=Jd(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=Dl(e,"ltr"===n?[0,i]:[-1*i,0]);return eu([0,i],[0,s])(l)}function eu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function tu(e,t){return e>0&&e<t}var nu=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function ru(t,n){const r=at(t),o=e.useRef(0);return e.useEffect(()=>()=>window.clearTimeout(o.current),[]),e.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,n)},[r,n])}function ou(e,t){const n=at(t);Ge(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var au=Pd,iu=Nd,su=Xd,lu="Tabs",[cu]=He(lu,[Ia]),du=Ia(),[uu,pu]=cu(lu),fu=e.forwardRef((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:a,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=Ir(l),[p,f]=Je({prop:o,onChange:a,defaultProp:i??"",caller:lu});return t.jsx(uu,{scope:r,baseId:qe(),value:p,onValueChange:f,orientation:s,dir:u,activationMode:c,children:t.jsx(rt.div,{dir:u,"data-orientation":s,...d,ref:n})})});fu.displayName=lu;var mu="TabsList",hu=e.forwardRef((e,n)=>{const{__scopeTabs:r,loop:o=!0,...a}=e,i=pu(mu,r),s=du(r);return t.jsx($a,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:o,children:t.jsx(rt.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:n})})});hu.displayName=mu;var vu="TabsTrigger",gu=e.forwardRef((e,n)=>{const{__scopeTabs:r,value:o,disabled:a=!1,...i}=e,s=pu(vu,r),l=du(r),c=yu(s.baseId,o),d=xu(s.baseId,o),u=o===s.value;return t.jsx(Ba,{asChild:!0,...l,focusable:!a,active:u,children:t.jsx(rt.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:n,onMouseDown:Be(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(o)}),onKeyDown:Be(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(o)}),onFocus:Be(e.onFocus,()=>{const e="manual"!==s.activationMode;u||a||!e||s.onValueChange(o)})})})});gu.displayName=vu;var bu="TabsContent",wu=e.forwardRef((n,r)=>{const{__scopeTabs:o,value:a,forceMount:i,children:s,...l}=n,c=pu(bu,o),d=yu(c.baseId,a),u=xu(c.baseId,a),p=a===c.value,f=e.useRef(p);return e.useEffect(()=>{const e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),t.jsx(St,{present:i||p,children:({present:e})=>t.jsx(rt.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!e,id:u,tabIndex:0,...l,ref:r,style:{...n.style,animationDuration:f.current?"0s":void 0},children:e&&s})})});function yu(e,t){return`${e}-trigger-${t}`}function xu(e,t){return`${e}-content-${t}`}wu.displayName=bu;var Cu=fu,Eu=hu,_u=gu,Ru=wu,Su="ToastProvider",[ku,ju,Du]=gr("Toast"),[Pu]=He("Toast",[Du]),[Tu,Nu]=Pu(Su),Mu=n=>{const{__scopeToast:r,label:o="Notification",duration:a=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:l}=n,[c,d]=e.useState(null),[u,p]=e.useState(0),f=e.useRef(!1),m=e.useRef(!1);return o.trim(),t.jsx(ku.Provider,{scope:r,children:t.jsx(Tu,{scope:r,label:o,duration:a,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:e.useCallback(()=>p(e=>e+1),[]),onToastRemove:e.useCallback(()=>p(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:l})})};Mu.displayName=Su;var Iu="ToastViewport",Au=["F8"],Ou="toast.viewportPause",Lu="toast.viewportResume",Fu=e.forwardRef((n,r)=>{const{__scopeToast:o,hotkey:a=Au,label:i="Notifications ({hotkey})",...s}=n,l=Nu(Iu,o),c=ju(o),d=e.useRef(null),u=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=g(r,f,l.onViewportChange),h=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=l.toastCount>0;e.useEffect(()=>{const e=e=>{0!==a.length&&a.every(t=>e[t]||e.code===t)&&f.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),e.useEffect(()=>{const e=d.current,t=f.current;if(v&&e&&t){const n=()=>{if(!l.isClosePausedRef.current){const e=new CustomEvent(Ou);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},r=()=>{if(l.isClosePausedRef.current){const e=new CustomEvent(Lu);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[v,l.isClosePausedRef]);const b=e.useCallback(({tabbingDirection:e})=>{const t=c().map(t=>{const n=t.ref.current,r=[n,...np(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[c]);return e.useEffect(()=>{const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,r=t.shiftKey;if(t.target===e&&r)return void u.current?.focus();const o=b({tabbingDirection:r?"backwards":"forwards"}),a=o.findIndex(e=>e===n);rp(o.slice(a+1))?t.preventDefault():r?u.current?.focus():p.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,b]),t.jsxs(mt,{ref:d,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&t.jsx(Wu,{ref:u,onFocusFromOutsideViewport:()=>{rp(b({tabbingDirection:"forwards"}))}}),t.jsx(ku.Slot,{scope:o,children:t.jsx(rt.ol,{tabIndex:-1,...s,ref:m})}),v&&t.jsx(Wu,{ref:p,onFocusFromOutsideViewport:()=>{rp(b({tabbingDirection:"backwards"}))}})]})});Fu.displayName=Iu;var zu="ToastFocusProxy",Wu=e.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...a}=e,i=Nu(zu,r);return t.jsx(Xo,{tabIndex:0,...a,ref:n,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!i.viewport?.contains(t)&&o()}})});Wu.displayName=zu;var Ku="Toast",Vu=e.forwardRef((e,n)=>{const{forceMount:r,open:o,defaultOpen:a,onOpenChange:i,...s}=e,[l,c]=Je({prop:o,defaultProp:a??!0,onChange:i,caller:Ku});return t.jsx(St,{present:r||l,children:t.jsx(Hu,{open:l,...s,ref:n,onClose:()=>c(!1),onPause:at(e.onPause),onResume:at(e.onResume),onSwipeStart:Be(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Be(e.onSwipeMove,e=>{const{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:Be(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:Be(e.onSwipeEnd,e=>{const{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)})})})});Vu.displayName=Ku;var[$u,Bu]=Pu(Ku,{onClose(){}}),Hu=e.forwardRef((n,o)=>{const{__scopeToast:a,type:i="foreground",duration:s,open:l,onClose:c,onEscapeKeyDown:d,onPause:u,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:h,onSwipeEnd:v,...b}=n,w=Nu(Ku,a),[y,x]=e.useState(null),C=g(o,e=>x(e)),E=e.useRef(null),_=e.useRef(null),R=s||w.duration,S=e.useRef(0),k=e.useRef(R),j=e.useRef(0),{onToastAdd:D,onToastRemove:P}=w,T=at(()=>{const e=y?.contains(document.activeElement);e&&w.viewport?.focus(),c()}),N=e.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(j.current),S.current=(new Date).getTime(),j.current=window.setTimeout(T,e))},[T]);e.useEffect(()=>{const e=w.viewport;if(e){const t=()=>{N(k.current),p?.()},n=()=>{const e=(new Date).getTime()-S.current;k.current=k.current-e,window.clearTimeout(j.current),u?.()};return e.addEventListener(Ou,n),e.addEventListener(Lu,t),()=>{e.removeEventListener(Ou,n),e.removeEventListener(Lu,t)}}},[w.viewport,R,u,p,N]),e.useEffect(()=>{l&&!w.isClosePausedRef.current&&N(R)},[l,R,w.isClosePausedRef,N]),e.useEffect(()=>(D(),()=>P()),[D,P]);const M=e.useMemo(()=>y?Qu(y):null,[y]);return w.viewport?t.jsxs(t.Fragment,{children:[M&&t.jsx(Uu,{__scopeToast:a,role:"status","aria-live":"foreground"===i?"assertive":"polite",children:M}),t.jsx($u,{scope:a,onClose:T,children:r.createPortal(t.jsx(ku.ItemSlot,{scope:a,children:t.jsx(ft,{asChild:!0,onEscapeKeyDown:Be(d,()=>{w.isFocusedToastEscapeKeyDownRef.current||T(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:t.jsx(rt.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":w.swipeDirection,...b,ref:C,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:Be(n.onKeyDown,e=>{"Escape"===e.key&&(d?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:Be(n.onPointerDown,e=>{0===e.button&&(E.current={x:e.clientX,y:e.clientY})}),onPointerMove:Be(n.onPointerMove,e=>{if(!E.current)return;const t=e.clientX-E.current.x,n=e.clientY-E.current.y,r=Boolean(_.current),o=["left","right"].includes(w.swipeDirection),a=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,s=o?0:a(0,n),l="touch"===e.pointerType?10:2,c={x:i,y:s},d={originalEvent:e,delta:c};r?(_.current=c,ep("toast.swipeMove",m,d,{discrete:!1})):tp(c,w.swipeDirection,l)?(_.current=c,ep("toast.swipeStart",f,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(E.current=null)}),onPointerUp:Be(n.onPointerUp,e=>{const t=_.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),_.current=null,E.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};tp(t,w.swipeDirection,w.swipeThreshold)?ep("toast.swipeEnd",v,r,{discrete:!0}):ep("toast.swipeCancel",h,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),Uu=n=>{const{__scopeToast:r,children:o,...a}=n,i=Nu(Ku,r),[s,l]=e.useState(!1),[c,d]=e.useState(!1);return function(e=()=>{}){const t=at(e);Ge(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>l(!0)),e.useEffect(()=>{const e=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(e)},[]),c?null:t.jsx(Rt,{asChild:!0,children:t.jsx(Xo,{...a,children:s&&t.jsxs(t.Fragment,{children:[i.label," ",o]})})})},Gu=e.forwardRef((e,n)=>{const{__scopeToast:r,...o}=e;return t.jsx(rt.div,{...o,ref:n})});Gu.displayName="ToastTitle";var Xu=e.forwardRef((e,n)=>{const{__scopeToast:r,...o}=e;return t.jsx(rt.div,{...o,ref:n})});Xu.displayName="ToastDescription";var Yu=e.forwardRef((e,n)=>{const{altText:r,...o}=e;return r.trim()?t.jsx(Ju,{altText:r,asChild:!0,children:t.jsx(Zu,{...o,ref:n})}):null});Yu.displayName="ToastAction";var qu="ToastClose",Zu=e.forwardRef((e,n)=>{const{__scopeToast:r,...o}=e,a=Bu(qu,r);return t.jsx(Ju,{asChild:!0,children:t.jsx(rt.button,{type:"button",...o,ref:n,onClick:Be(e.onClick,a.onClose)})})});Zu.displayName=qu;var Ju=e.forwardRef((e,n)=>{const{__scopeToast:r,altText:o,...a}=e;return t.jsx(rt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:n})});function Qu(e){const t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Qu(e))}}),t}function ep(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ot(o,a):o.dispatchEvent(a)}var tp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function np(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;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 rp(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var op=Mu,ap=Fu,ip=Vu,sp=Gu,lp=Xu,cp=Yu,dp=Zu,up="Switch",[pp]=He(up),[fp,mp]=pp(up),hp=e.forwardRef((n,r)=>{const{__scopeSwitch:o,name:a,checked:i,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:u,form:p,...f}=n,[m,h]=e.useState(null),v=g(r,e=>h(e)),b=e.useRef(!1),w=!m||p||!!m.closest("form"),[y,x]=Je({prop:i,defaultProp:s??!1,onChange:u,caller:up});return t.jsxs(fp,{scope:o,checked:y,disabled:c,children:[t.jsx(rt.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":wp(y),"data-disabled":c?"":void 0,disabled:c,value:d,...f,ref:v,onClick:Be(n.onClick,e=>{x(e=>!e),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&t.jsx(bp,{control:m,bubbles:!b.current,name:a,value:d,checked:y,required:l,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});hp.displayName=up;var vp="SwitchThumb",gp=e.forwardRef((e,n)=>{const{__scopeSwitch:r,...o}=e,a=mp(vp,r);return t.jsx(rt.span,{"data-state":wp(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})});gp.displayName=vp;var bp=e.forwardRef(({__scopeSwitch:n,control:r,checked:o,bubbles:a=!0,...i},s)=>{const l=e.useRef(null),c=g(l,s),d=Il(o),u=Co(r);return e.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(d!==o&&n){const t=new Event("click",{bubbles:a});n.call(e,o),e.dispatchEvent(t)}},[d,o,a]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:c,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function wp(e){return e?"checked":"unchecked"}bp.displayName="SwitchBubbleInput";var yp=hp,xp=gp,Cp=["PageUp","PageDown"],Ep=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],_p={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Rp="Slider",[Sp,kp,jp]=gr(Rp),[Dp]=He(Rp,[jp]),[Pp,Tp]=Dp(Rp),Np=e.forwardRef((n,r)=>{const{name:o,min:a=0,max:i=100,step:s=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:d=0,defaultValue:u=[a],value:p,onValueChange:f=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:v,...g}=n,b=e.useRef(new Set),w=e.useRef(0),y="horizontal"===l?Ap:Op,[x=[],C]=Je({prop:p,defaultProp:u,onChange:e=>{const t=[...b.current];t[w.current]?.focus(),f(e)}}),E=e.useRef(x);function _(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),o=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-a)/s)*s+a,r),l=Dl(o,[a,i]);C((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}(e);return Math.min(...n)>=t}return!0}(r,d*s)){w.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&m(r),t?r:e}return e})}return t.jsx(Pp,{scope:n.__scopeSlider,name:o,disabled:c,min:a,max:i,valueIndexToChangeRef:w,thumbs:b.current,values:x,orientation:l,form:v,children:t.jsx(Sp.Provider,{scope:n.__scopeSlider,children:t.jsx(Sp.Slot,{scope:n.__scopeSlider,children:t.jsx(y,{"aria-disabled":c,"data-disabled":c?"":void 0,...g,ref:r,onPointerDown:Be(g.onPointerDown,()=>{c||(E.current=x)}),min:a,max:i,inverted:h,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(x,e);_(e,t)},onSlideMove:c?void 0:function(e){_(e,w.current)},onSlideEnd:c?void 0:function(){const e=E.current[w.current];x[w.current]!==e&&m(x)},onHomeKeyDown:()=>!c&&_(a,0,{commit:!0}),onEndKeyDown:()=>!c&&_(i,x.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const n=Cp.includes(e.key)||e.shiftKey&&Ep.includes(e.key)?10:1,r=w.current;_(x[r]+s*n*t,r,{commit:!0})}}})})})})});Np.displayName=Rp;var[Mp,Ip]=Dp(Rp,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ap=e.forwardRef((n,r)=>{const{min:o,max:a,dir:i,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:u,...p}=n,[f,m]=e.useState(null),h=g(r,e=>m(e)),v=e.useRef(void 0),b=Ir(i),w="ltr"===b,y=w&&!s||!w&&s;function x(e){const t=v.current||f.getBoundingClientRect(),n=Gp([0,t.width],y?[o,a]:[a,o]);return v.current=t,n(e-t.left)}return t.jsx(Mp,{scope:n.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:t.jsx(Lp,{dir:b,"data-orientation":"horizontal",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=x(e.clientX);l?.(t)},onSlideMove:e=>{const t=x(e.clientX);c?.(t)},onSlideEnd:()=>{v.current=void 0,d?.()},onStepKeyDown:e=>{const t=_p[y?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),Op=e.forwardRef((n,r)=>{const{min:o,max:a,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:d,...u}=n,p=e.useRef(null),f=g(r,p),m=e.useRef(void 0),h=!i;function v(e){const t=m.current||p.current.getBoundingClientRect(),n=Gp([0,t.height],h?[a,o]:[o,a]);return m.current=t,n(e-t.top)}return t.jsx(Mp,{scope:n.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:t.jsx(Lp,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=v(e.clientY);s?.(t)},onSlideMove:e=>{const t=v(e.clientY);l?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{const t=_p[h?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),Lp=e.forwardRef((e,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:a,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:c,...d}=e,u=Tp(Rp,r);return t.jsx(rt.span,{...d,ref:n,onKeyDown:Be(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):Cp.concat(Ep).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:Be(e.onPointerDown,e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():o(e)}),onPointerMove:Be(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:Be(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})})}),Fp="SliderTrack",zp=e.forwardRef((e,n)=>{const{__scopeSlider:r,...o}=e,a=Tp(Fp,r);return t.jsx(rt.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...o,ref:n})});zp.displayName=Fp;var Wp="SliderRange",Kp=e.forwardRef((n,r)=>{const{__scopeSlider:o,...a}=n,i=Tp(Wp,o),s=Ip(Wp,o),l=g(r,e.useRef(null)),c=i.values.length,d=i.values.map(e=>Up(e,i.min,i.max)),u=c>1?Math.min(...d):0,p=100-Math.max(...d);return t.jsx(rt.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...a,ref:l,style:{...n.style,[s.startEdge]:u+"%",[s.endEdge]:p+"%"}})});Kp.displayName=Wp;var Vp="SliderThumb",$p=e.forwardRef((n,r)=>{const o=kp(n.__scopeSlider),[a,i]=e.useState(null),s=g(r,e=>i(e)),l=e.useMemo(()=>a?o().findIndex(e=>e.ref.current===a):-1,[o,a]);return t.jsx(Bp,{...n,ref:s,index:l})}),Bp=e.forwardRef((n,r)=>{const{__scopeSlider:o,index:a,name:i,...s}=n,l=Tp(Vp,o),c=Ip(Vp,o),[d,u]=e.useState(null),p=g(r,e=>u(e)),f=!d||l.form||!!d.closest("form"),m=Co(d),h=l.values[a],v=void 0===h?0:Up(h,l.min,l.max),b=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,l.values.length),w=m?.[c.size],y=w?function(e,t,n){const r=e/2;return(r-Gp([0,50],[0,r])(t)*n)*n}(w,v,c.direction):0;return e.useEffect(()=>{if(d)return l.thumbs.add(d),()=>{l.thumbs.delete(d)}},[d,l.thumbs]),t.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${v}% + ${y}px)`},children:[t.jsx(Sp.ItemSlot,{scope:n.__scopeSlider,children:t.jsx(rt.span,{role:"slider","aria-label":n["aria-label"]||b,"aria-valuemin":l.min,"aria-valuenow":h,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...s,ref:p,style:void 0===h?{display:"none"}:n.style,onFocus:Be(n.onFocus,()=>{l.valueIndexToChangeRef.current=a})})}),f&&t.jsx(Hp,{name:i??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:h},a)]})});$p.displayName=Vp;var Hp=e.forwardRef(({__scopeSlider:n,value:r,...o},a)=>{const i=e.useRef(null),s=g(i,a),l=Il(r);return e.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==r&&n){const t=new Event("input",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[l,r]),t.jsx(rt.input,{style:{display:"none"},...o,ref:s,defaultValue:r})});function Up(e,t,n){return Dl(100/(n-t)*(e-t),[0,100])}function Gp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}Hp.displayName="RadioBubbleInput";var Xp=Np,Yp=zp,qp=Kp,Zp=$p,Jp="Checkbox",[Qp]=He(Jp),[ef,tf]=Qp(Jp);function nf(n){const{__scopeCheckbox:r,checked:o,children:a,defaultChecked:i,disabled:s,form:l,name:c,onCheckedChange:d,required:u,value:p="on",internal_do_not_use_render:f}=n,[m,h]=Je({prop:o,defaultProp:i??!1,onChange:d,caller:Jp}),[v,g]=e.useState(null),[b,w]=e.useState(null),y=e.useRef(!1),x=!v||!!l||!!v.closest("form"),C={checked:m,disabled:s,setChecked:h,control:v,setControl:g,name:c,form:l,value:p,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:!pf(i)&&i,isFormControl:x,bubbleInput:b,setBubbleInput:w};return t.jsx(ef,{scope:r,...C,children:uf(f)?f(C):a})}var rf="CheckboxTrigger",of=e.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:o,...a},i)=>{const{control:s,value:l,disabled:c,checked:d,required:u,setControl:p,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:v}=tf(rf,n),b=g(i,p),w=e.useRef(d);return e.useEffect(()=>{const e=s?.form;if(e){const t=()=>f(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[s,f]),t.jsx(rt.button,{type:"button",role:"checkbox","aria-checked":pf(d)?"mixed":d,"aria-required":u,"data-state":ff(d),"data-disabled":c?"":void 0,disabled:c,value:l,...a,ref:b,onKeyDown:Be(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:Be(o,e=>{f(e=>!!pf(e)||!e),v&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});of.displayName=rf;var af=e.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:o,checked:a,defaultChecked:i,required:s,disabled:l,value:c,onCheckedChange:d,form:u,...p}=e;return t.jsx(nf,{__scopeCheckbox:r,checked:a,defaultChecked:i,disabled:l,required:s,onCheckedChange:d,name:o,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>t.jsxs(t.Fragment,{children:[t.jsx(of,{...p,ref:n,__scopeCheckbox:r}),e&&t.jsx(df,{__scopeCheckbox:r})]})})});af.displayName=Jp;var sf="CheckboxIndicator",lf=e.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:o,...a}=e,i=tf(sf,r);return t.jsx(St,{present:o||pf(i.checked)||!0===i.checked,children:t.jsx(rt.span,{"data-state":ff(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:n,style:{pointerEvents:"none",...e.style}})})});lf.displayName=sf;var cf="CheckboxBubbleInput",df=e.forwardRef(({__scopeCheckbox:n,...r},o)=>{const{control:a,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:l,required:c,disabled:d,name:u,value:p,form:f,bubbleInput:m,setBubbleInput:h}=tf(cf,n),v=g(o,h),b=Il(s),w=Co(a);e.useEffect(()=>{const e=m;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,r=!i.current;if(b!==s&&n){const t=new Event("click",{bubbles:r});e.indeterminate=pf(s),n.call(e,!pf(s)&&s),e.dispatchEvent(t)}},[m,b,s,i]);const y=e.useRef(!pf(s)&&s);return t.jsx(rt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:c,disabled:d,name:u,value:p,form:f,...r,tabIndex:-1,ref:v,style:{...r.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function uf(e){return"function"==typeof e}function pf(e){return"indeterminate"===e}function ff(e){return pf(e)?"indeterminate":e?"checked":"unchecked"}df.displayName=cf;
1var mf="Toggle",hf=e.forwardRef((e,n)=>{const{pressed:r,defaultPressed:o,onPressedChange:a,...i}=e,[s,l]=Je({prop:r,onChange:a,defaultProp:o??!1,caller:mf});return t.jsx(rt.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:n,onClick:Be(e.onClick,()=>{e.disabled||l(!s)})})});hf.displayName=mf;var vf=hf,gf="ToggleGroup",[bf]=He(gf,[Ia]),wf=Ia(),yf=a.forwardRef((e,n)=>{const{type:r,...o}=e;if("single"===r){const e=o;return t.jsx(Ef,{...e,ref:n})}if("multiple"===r){const e=o;return t.jsx(_f,{...e,ref:n})}throw new Error(`Missing prop \`type\` expected on \`${gf}\``)});yf.displayName=gf;var[xf,Cf]=bf(gf),Ef=a.forwardRef((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...s}=e,[l,c]=Je({prop:r,defaultProp:o??"",onChange:i,caller:gf});return t.jsx(xf,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>l?[l]:[],[l]),onItemActivate:c,onItemDeactivate:a.useCallback(()=>c(""),[c]),children:t.jsx(kf,{...s,ref:n})})}),_f=a.forwardRef((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...s}=e,[l,c]=Je({prop:r,defaultProp:o??[],onChange:i,caller:gf}),d=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return t.jsx(xf,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:d,onItemDeactivate:u,children:t.jsx(kf,{...s,ref:n})})});yf.displayName=gf;var[Rf,Sf]=bf(gf),kf=a.forwardRef((e,n)=>{const{__scopeToggleGroup:r,disabled:o=!1,rovingFocus:a=!0,orientation:i,dir:s,loop:l=!0,...c}=e,d=wf(r),u=Ir(s),p={role:"group",dir:u,...c};return t.jsx(Rf,{scope:r,rovingFocus:a,disabled:o,children:a?t.jsx($a,{asChild:!0,...d,orientation:i,dir:u,loop:l,children:t.jsx(rt.div,{...p,ref:n})}):t.jsx(rt.div,{...p,ref:n})})}),jf="ToggleGroupItem",Df=a.forwardRef((e,n)=>{const r=Cf(jf,e.__scopeToggleGroup),o=Sf(jf,e.__scopeToggleGroup),i=wf(e.__scopeToggleGroup),s=r.value.includes(e.value),l=o.disabled||e.disabled,c={...e,pressed:s,disabled:l},d=a.useRef(null);return o.rovingFocus?t.jsx(Ba,{asChild:!0,...i,focusable:!l,active:s,ref:d,children:t.jsx(Pf,{...c,ref:n})}):t.jsx(Pf,{...c,ref:n})});Df.displayName=jf;var Pf=a.forwardRef((e,n)=>{const{__scopeToggleGroup:r,value:o,...a}=e,i=Cf(jf,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===i.type?s:void 0;
1return t.jsx(hf,{...l,...a,ref:n,onPressedChange:e=>{e?i.onItemActivate(o):i.onItemDeactivate(o)}})}),Tf=yf,Nf=Df;export{El as $,qs as A,Ws as B,af as C,ur as D,Ks as E,$s as F,Bs as G,po as H,Nf as I,Us as J,Hs as K,Vs as L,Gs as M,Fs as N,lr as O,sr as P,zs as Q,yp as R,C as S,xp as T,Xs as U,yl as V,wl as W,xl as X,_l as Y,Rl as Z,Cl as _,lf as a,bl as a0,jl as a1,Fc as a2,Wc as a3,Xc as a4,Yc as a5,Kc as a6,Vc as a7,$c as a8,Bc as a9,Hc as aa,Gc as ab,Uc as ac,qc as ad,Lc as ae,zc as af,_d as ag,Rd as ah,Cd as ai,Ed as aj,au as ak,iu as al,su as am,Id as an,Hd as ao,Eu as ap,_u as aq,Ru as ar,Cu as as,ap as at,ip as au,cp as av,dp as aw,sp as ax,lp as ay,op as az,vf as b,P as c,Tf as d,k as e,Xp as f,Yp as g,qp as h,Zp as i,cr as j,pr as k,dr as l,ar as m,ir as n,uo as o,fo as p,mo as q,co as r,wo as s,$e as t,Ra as u,Sa as v,Ca as w,Ea as x,_a as y,Ys as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.