promptmic 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +287 -0
- package/apps/server/dist/config-store.js +15 -0
- package/apps/server/dist/http/local-only-middleware.js +10 -0
- package/apps/server/dist/http/routes/config-routes.js +21 -0
- package/apps/server/dist/http/routes/filesystem-routes.js +28 -0
- package/apps/server/dist/http/routes/system-routes.js +16 -0
- package/apps/server/dist/http/static-assets.js +12 -0
- package/apps/server/dist/http/types.js +1 -0
- package/apps/server/dist/http-routes.js +15 -0
- package/apps/server/dist/index.js +54 -0
- package/apps/server/dist/main.js +8 -0
- package/apps/server/dist/pty-spawner.js +72 -0
- package/apps/server/dist/runtime-config.js +108 -0
- package/apps/server/dist/server-lifecycle.js +37 -0
- package/apps/server/dist/server-types.js +1 -0
- package/apps/server/dist/session-runtime.js +120 -0
- package/apps/web/dist/assets/DirectoryPickerDialog-D7IDk0pz.js +1 -0
- package/apps/web/dist/assets/SettingsDialog-uQLxj7UI.js +1 -0
- package/apps/web/dist/assets/index-BBNxXHaX.js +5 -0
- package/apps/web/dist/assets/index-G1_MX_Dd.css +1 -0
- package/apps/web/dist/assets/react-vendor-DQ3p2tNP.js +40 -0
- package/apps/web/dist/assets/scroll-area-C8DJNmaJ.js +1 -0
- package/apps/web/dist/assets/terminal-Beg8tuEN.css +32 -0
- package/apps/web/dist/assets/terminal-CnuCQtKf.js +9 -0
- package/apps/web/dist/assets/ui-vendor-Btc0UVaC.js +155 -0
- package/apps/web/dist/index.html +20 -0
- package/bin/termspeak-lib.mjs +189 -0
- package/bin/termspeak.mjs +9 -0
- package/config.example.json +21 -0
- package/package.json +70 -0
- package/packages/shared/dist/index.d.ts +2 -0
- package/packages/shared/dist/index.js +2 -0
- package/packages/shared/dist/provider.d.ts +85 -0
- package/packages/shared/dist/provider.js +13 -0
- package/packages/shared/dist/ws-messages.d.ts +219 -0
- package/packages/shared/dist/ws-messages.js +56 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import{R as E,a as Go,r as u,j as x,b as Dn,c as qt}from"./react-vendor-DQ3p2tNP.js";function si(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ii=e=>{switch(e){case"success":return ci;case"info":return ui;case"warning":return di;case"error":return fi;default:return null}},ai=Array(12).fill(0),li=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},ai.map((n,o)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),ci=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),di=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ui=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),fi=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pi=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mi=()=>{const[e,t]=E.useState(document.hidden);return E.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let xn=1;class hi{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:o,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:xn++,i=this.toasts.find(c=>c.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:o}),{...c,...t,id:s,dismissible:a,title:o}):c):this.addToast({title:o,...r,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(o=>o({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let o;n.loading!==void 0&&(o=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let s=o!==void 0,i;const a=r.then(async d=>{if(i=["resolve",d],E.isValidElement(d))s=!1,this.create({id:o,type:"default",message:d});else if(vi(d)&&!d.ok){s=!1;const l=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,b=typeof l=="object"&&!E.isValidElement(l)?l:{message:l};this.create({id:o,type:"error",description:m,...b})}else if(d instanceof Error){s=!1;const l=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,b=typeof l=="object"&&!E.isValidElement(l)?l:{message:l};this.create({id:o,type:"error",description:m,...b})}else if(n.success!==void 0){s=!1;const l=typeof n.success=="function"?await n.success(d):n.success,m=typeof n.description=="function"?await n.description(d):n.description,b=typeof l=="object"&&!E.isValidElement(l)?l:{message:l};this.create({id:o,type:"success",description:m,...b})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const f=typeof n.error=="function"?await n.error(d):n.error,l=typeof n.description=="function"?await n.description(d):n.description,h=typeof f=="object"&&!E.isValidElement(f)?f:{message:f};this.create({id:o,type:"error",description:l,...h})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((d,f)=>a.then(()=>i[0]==="reject"?f(i[1]):d(i[1])).catch(f));return typeof o!="string"&&typeof o!="number"?{unwrap:c}:Object.assign(o,{unwrap:c})},this.custom=(t,n)=>{const o=(n==null?void 0:n.id)||xn++;return this.create({jsx:t(o),id:o,...n}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const fe=new hi,gi=(e,t)=>{const n=(t==null?void 0:t.id)||xn++;return fe.addToast({title:e,...t,id:n}),n},vi=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bi=gi,yi=()=>fe.toasts,wi=()=>fe.getActiveToasts(),_u=Object.assign(bi,{success:fe.success,info:fe.info,warning:fe.warning,error:fe.error,custom:fe.custom,message:fe.message,promise:fe.promise,dismiss:fe.dismiss,loading:fe.loading},{getHistory:yi,getToasts:wi});si("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Tt(e){return e.label!==void 0}const xi=3,Si="24px",Ci="16px",fo=4e3,Ei=356,Ri=14,Pi=45,Ai=200;function ke(...e){return e.filter(Boolean).join(" ")}function Ti(e){const[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}const ki=e=>{var t,n,o,r,s,i,a,c,d;const{invert:f,toast:l,unstyled:m,interacting:h,setHeights:b,visibleToasts:p,heights:g,index:v,toasts:y,expanded:w,removeToast:S,defaultRichColors:P,closeButton:A,style:R,cancelButtonStyle:C,actionButtonStyle:N,className:j="",descriptionClassName:F="",duration:$,position:W,gap:U,expandByDefault:q,classNames:k,icons:M,closeButtonAriaLabel:I="Close toast"}=e,[K,T]=E.useState(null),[oe,he]=E.useState(null),[z,Q]=E.useState(!1),[B,Z]=E.useState(!1),[D,L]=E.useState(!1),[V,J]=E.useState(!1),[G,Y]=E.useState(!1),[re,se]=E.useState(0),[qe,Fe]=E.useState(0),Se=E.useRef(l.duration||$||fo),Et=E.useRef(null),ue=E.useRef(null),Ks=v===0,qs=v+1<=p,ge=l.type,rt=l.dismissible!==!1,Zs=l.className||"",Qs=l.descriptionClassName||"",Rt=E.useMemo(()=>g.findIndex(H=>H.toastId===l.id)||0,[g,l.id]),Js=E.useMemo(()=>{var H;return(H=l.closeButton)!=null?H:A},[l.closeButton,A]),ro=E.useMemo(()=>l.duration||$||fo,[l.duration,$]),cn=E.useRef(0),st=E.useRef(0),so=E.useRef(0),it=E.useRef(null),[ei,ti]=W.split("-"),io=E.useMemo(()=>g.reduce((H,ae,de)=>de>=Rt?H:H+ae.height,0),[g,Rt]),ao=mi(),ni=l.invert||f,dn=ge==="loading";st.current=E.useMemo(()=>Rt*U+io,[Rt,io]),E.useEffect(()=>{Se.current=ro},[ro]),E.useEffect(()=>{Q(!0)},[]),E.useEffect(()=>{const H=ue.current;if(H){const ae=H.getBoundingClientRect().height;return Fe(ae),b(de=>[{toastId:l.id,height:ae,position:l.position},...de]),()=>b(de=>de.filter(ve=>ve.toastId!==l.id))}},[b,l.id]),E.useLayoutEffect(()=>{if(!z)return;const H=ue.current,ae=H.style.height;H.style.height="auto";const de=H.getBoundingClientRect().height;H.style.height=ae,Fe(de),b(ve=>ve.find(le=>le.toastId===l.id)?ve.map(le=>le.toastId===l.id?{...le,height:de}:le):[{toastId:l.id,height:de,position:l.position},...ve])},[z,l.title,l.description,b,l.id,l.jsx,l.action,l.cancel]);const We=E.useCallback(()=>{Z(!0),se(st.current),b(H=>H.filter(ae=>ae.toastId!==l.id)),setTimeout(()=>{S(l)},Ai)},[l,S,b,st]);E.useEffect(()=>{if(l.promise&&ge==="loading"||l.duration===1/0||l.type==="loading")return;let H;return w||h||ao?(()=>{if(so.current<cn.current){const ve=new Date().getTime()-cn.current;Se.current=Se.current-ve}so.current=new Date().getTime()})():(()=>{Se.current!==1/0&&(cn.current=new Date().getTime(),H=setTimeout(()=>{l.onAutoClose==null||l.onAutoClose.call(l,l),We()},Se.current))})(),()=>clearTimeout(H)},[w,h,l,ge,ao,We]),E.useEffect(()=>{l.delete&&(We(),l.onDismiss==null||l.onDismiss.call(l,l))},[We,l.delete]);function oi(){var H;if(M!=null&&M.loading){var ae;return E.createElement("div",{className:ke(k==null?void 0:k.loader,l==null||(ae=l.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":ge==="loading"},M.loading)}return E.createElement(li,{className:ke(k==null?void 0:k.loader,l==null||(H=l.classNames)==null?void 0:H.loader),visible:ge==="loading"})}const ri=l.icon||(M==null?void 0:M[ge])||ii(ge);var lo,co;return E.createElement("li",{tabIndex:0,ref:ue,className:ke(j,Zs,k==null?void 0:k.toast,l==null||(t=l.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[ge],l==null||(n=l.classNames)==null?void 0:n[ge]),"data-sonner-toast":"","data-rich-colors":(lo=l.richColors)!=null?lo:P,"data-styled":!(l.jsx||l.unstyled||m),"data-mounted":z,"data-promise":!!l.promise,"data-swiped":G,"data-removed":B,"data-visible":qs,"data-y-position":ei,"data-x-position":ti,"data-index":v,"data-front":Ks,"data-swiping":D,"data-dismissible":rt,"data-type":ge,"data-invert":ni,"data-swipe-out":V,"data-swipe-direction":oe,"data-expanded":!!(w||q&&z),"data-testid":l.testId,style:{"--index":v,"--toasts-before":v,"--z-index":y.length-v,"--offset":`${B?re:st.current}px`,"--initial-height":q?"auto":`${qe}px`,...R,...l.style},onDragEnd:()=>{L(!1),T(null),it.current=null},onPointerDown:H=>{H.button!==2&&(dn||!rt||(Et.current=new Date,se(st.current),H.target.setPointerCapture(H.pointerId),H.target.tagName!=="BUTTON"&&(L(!0),it.current={x:H.clientX,y:H.clientY})))},onPointerUp:()=>{var H,ae,de;if(V||!rt)return;it.current=null;const ve=Number(((H=ue.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pt=Number(((ae=ue.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),le=new Date().getTime()-((de=Et.current)==null?void 0:de.getTime()),we=K==="x"?ve:Pt,At=Math.abs(we)/le;if(Math.abs(we)>=Pi||At>.11){se(st.current),l.onDismiss==null||l.onDismiss.call(l,l),he(K==="x"?ve>0?"right":"left":Pt>0?"down":"up"),We(),J(!0);return}else{var Ce,Ee;(Ce=ue.current)==null||Ce.style.setProperty("--swipe-amount-x","0px"),(Ee=ue.current)==null||Ee.style.setProperty("--swipe-amount-y","0px")}Y(!1),L(!1),T(null)},onPointerMove:H=>{var ae,de,ve;if(!it.current||!rt||((ae=window.getSelection())==null?void 0:ae.toString().length)>0)return;const le=H.clientY-it.current.y,we=H.clientX-it.current.x;var At;const Ce=(At=e.swipeDirections)!=null?At:Ti(W);!K&&(Math.abs(we)>1||Math.abs(le)>1)&&T(Math.abs(we)>Math.abs(le)?"x":"y");let Ee={x:0,y:0};const uo=Ze=>1/(1.5+Math.abs(Ze)/20);if(K==="y"){if(Ce.includes("top")||Ce.includes("bottom"))if(Ce.includes("top")&&le<0||Ce.includes("bottom")&&le>0)Ee.y=le;else{const Ze=le*uo(le);Ee.y=Math.abs(Ze)<Math.abs(le)?Ze:le}}else if(K==="x"&&(Ce.includes("left")||Ce.includes("right")))if(Ce.includes("left")&&we<0||Ce.includes("right")&&we>0)Ee.x=we;else{const Ze=we*uo(we);Ee.x=Math.abs(Ze)<Math.abs(we)?Ze:we}(Math.abs(Ee.x)>0||Math.abs(Ee.y)>0)&&Y(!0),(de=ue.current)==null||de.style.setProperty("--swipe-amount-x",`${Ee.x}px`),(ve=ue.current)==null||ve.style.setProperty("--swipe-amount-y",`${Ee.y}px`)}},Js&&!l.jsx&&ge!=="loading"?E.createElement("button",{"aria-label":I,"data-disabled":dn,"data-close-button":!0,onClick:dn||!rt?()=>{}:()=>{We(),l.onDismiss==null||l.onDismiss.call(l,l)},className:ke(k==null?void 0:k.closeButton,l==null||(o=l.classNames)==null?void 0:o.closeButton)},(co=M==null?void 0:M.close)!=null?co:pi):null,(ge||l.icon||l.promise)&&l.icon!==null&&((M==null?void 0:M[ge])!==null||l.icon)?E.createElement("div",{"data-icon":"",className:ke(k==null?void 0:k.icon,l==null||(r=l.classNames)==null?void 0:r.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||oi():null,l.type!=="loading"?ri:null):null,E.createElement("div",{"data-content":"",className:ke(k==null?void 0:k.content,l==null||(s=l.classNames)==null?void 0:s.content)},E.createElement("div",{"data-title":"",className:ke(k==null?void 0:k.title,l==null||(i=l.classNames)==null?void 0:i.title)},l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title),l.description?E.createElement("div",{"data-description":"",className:ke(F,Qs,k==null?void 0:k.description,l==null||(a=l.classNames)==null?void 0:a.description)},typeof l.description=="function"?l.description():l.description):null),E.isValidElement(l.cancel)?l.cancel:l.cancel&&Tt(l.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||C,onClick:H=>{Tt(l.cancel)&&rt&&(l.cancel.onClick==null||l.cancel.onClick.call(l.cancel,H),We())},className:ke(k==null?void 0:k.cancelButton,l==null||(c=l.classNames)==null?void 0:c.cancelButton)},l.cancel.label):null,E.isValidElement(l.action)?l.action:l.action&&Tt(l.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||N,onClick:H=>{Tt(l.action)&&(l.action.onClick==null||l.action.onClick.call(l.action,H),!H.defaultPrevented&&We())},className:ke(k==null?void 0:k.actionButton,l==null||(d=l.classNames)==null?void 0:d.actionButton)},l.action.label):null)};function po(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Ni(e,t){const n={};return[e,t].forEach((o,r)=>{const s=r===1,i=s?"--mobile-offset":"--offset",a=s?Ci:Si;function c(d){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof o=="number"||typeof o=="string"?c(o):typeof o=="object"?["top","right","bottom","left"].forEach(d=>{o[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof o[d]=="number"?`${o[d]}px`:o[d]}):c(a)}),n}const Iu=E.forwardRef(function(t,n){const{id:o,invert:r,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:c,className:d,offset:f,mobileOffset:l,theme:m="light",richColors:h,duration:b,style:p,visibleToasts:g=xi,toastOptions:v,dir:y=po(),gap:w=Ri,icons:S,containerAriaLabel:P="Notifications"}=t,[A,R]=E.useState([]),C=E.useMemo(()=>o?A.filter(z=>z.toasterId===o):A.filter(z=>!z.toasterId),[A,o]),N=E.useMemo(()=>Array.from(new Set([s].concat(C.filter(z=>z.position).map(z=>z.position)))),[C,s]),[j,F]=E.useState([]),[$,W]=E.useState(!1),[U,q]=E.useState(!1),[k,M]=E.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=E.useRef(null),K=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=E.useRef(null),oe=E.useRef(!1),he=E.useCallback(z=>{R(Q=>{var B;return(B=Q.find(Z=>Z.id===z.id))!=null&&B.delete||fe.dismiss(z.id),Q.filter(({id:Z})=>Z!==z.id)})},[]);return E.useEffect(()=>fe.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{R(Q=>Q.map(B=>B.id===z.id?{...B,delete:!0}:B))});return}setTimeout(()=>{Go.flushSync(()=>{R(Q=>{const B=Q.findIndex(Z=>Z.id===z.id);return B!==-1?[...Q.slice(0,B),{...Q[B],...z},...Q.slice(B+1)]:[z,...Q]})})})}),[A]),E.useEffect(()=>{if(m!=="system"){M(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?M("dark"):M("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Q})=>{M(Q?"dark":"light")})}catch{z.addListener(({matches:B})=>{try{M(B?"dark":"light")}catch(Z){console.error(Z)}})}},[m]),E.useEffect(()=>{A.length<=1&&W(!1)},[A]),E.useEffect(()=>{const z=Q=>{var B;if(i.every(L=>Q[L]||Q.code===L)){var D;W(!0),(D=I.current)==null||D.focus()}Q.code==="Escape"&&(document.activeElement===I.current||(B=I.current)!=null&&B.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[i]),E.useEffect(()=>{if(I.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,oe.current=!1)}},[I.current]),E.createElement("section",{ref:n,"aria-label":`${P} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((z,Q)=>{var B;const[Z,D]=z.split("-");return C.length?E.createElement("ol",{key:z,dir:y==="auto"?po():y,tabIndex:-1,ref:I,className:d,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":Z,"data-x-position":D,style:{"--front-toast-height":`${((B=j[0])==null?void 0:B.height)||0}px`,"--width":`${Ei}px`,"--gap":`${w}px`,...p,...Ni(f,l)},onBlur:L=>{oe.current&&!L.currentTarget.contains(L.relatedTarget)&&(oe.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:L=>{L.target instanceof HTMLElement&&L.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,T.current=L.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{U||W(!1)},onDragEnd:()=>W(!1),onPointerDown:L=>{L.target instanceof HTMLElement&&L.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},C.filter(L=>!L.position&&Q===0||L.position===z).map((L,V)=>{var J,G;return E.createElement(ki,{key:L.id,icons:S,index:V,toast:L,defaultRichColors:h,duration:(J=v==null?void 0:v.duration)!=null?J:b,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:g,closeButton:(G=v==null?void 0:v.closeButton)!=null?G:c,interacting:U,position:z,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:he,toasts:C.filter(Y=>Y.position==L.position),heights:j.filter(Y=>Y.position==L.position),setHeights:F,expandByDefault:a,gap:w,expanded:$,swipeDirections:t.swipeDirections})})):null}))});function Ko(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ko(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Oi(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ko(e))&&(o&&(o+=" "),o+=t);return o}const _i=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},Ii=(e,t)=>({classGroupId:e,validator:t}),qo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wt="-",mo=[],Mi="arbitrary..",Di=e=>{const t=ji(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Li(i);const a=i.split(Wt),c=a[0]===""&&a.length>1?1:0;return Zo(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=o[i],d=n[i];return c?d?_i(d,c):c:d||mo}return n[i]||mo}}},Zo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const d=Zo(e,t+1,s);if(d)return d}const i=n.validators;if(i===null)return;const a=t===0?e.join(Wt):e.slice(t).join(Wt),c=i.length;for(let d=0;d<c;d++){const f=i[d];if(f.validator(a))return f.classGroupId}},Li=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?Mi+o:void 0})(),ji=e=>{const{theme:t,classGroups:n}=e;return Bi(n,t)},Bi=(e,t)=>{const n=qo();for(const o in e){const r=e[o];Ln(r,n,o,t)}return n},Ln=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];Fi(i,t,n,o)}},Fi=(e,t,n,o)=>{if(typeof e=="string"){Wi(e,t,n);return}if(typeof e=="function"){zi(e,t,n,o);return}Vi(e,t,n,o)},Wi=(e,t,n)=>{const o=e===""?t:Qo(t,e);o.classGroupId=n},zi=(e,t,n,o)=>{if(Hi(e)){Ln(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Ii(n,e))},Vi=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,c]=r[i];Ln(c,Qo(t,a),n,o)}},Qo=(e,t)=>{let n=e;const o=t.split(Wt),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=qo(),n.nextPart.set(i,a)),n=a}return n},Hi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,$i=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,i)=>{n[s]=i,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return r(s,i),i},set(s,i){s in n?n[s]=i:r(s,i)}}},Sn="!",ho=":",Ui=[],go=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),Yi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,c=0,d;const f=r.length;for(let p=0;p<f;p++){const g=r[p];if(i===0&&a===0){if(g===ho){s.push(r.slice(c,p)),c=p+1;continue}if(g==="/"){d=p;continue}}g==="["?i++:g==="]"?i--:g==="("?a++:g===")"&&a--}const l=s.length===0?r:r.slice(c);let m=l,h=!1;l.endsWith(Sn)?(m=l.slice(0,-1),h=!0):l.startsWith(Sn)&&(m=l.slice(1),h=!0);const b=d&&d>c?d-c:void 0;return go(s,h,m,b)};if(t){const r=t+ho,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):go(Ui,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},Xi=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",c=t.has(i);a||c?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},Gi=e=>({cache:$i(e.cacheSize),parseClassName:Yi(e),sortModifiers:Xi(e),...Di(e)}),Ki=/\s+/,qi=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s}=t,i=[],a=e.trim().split(Ki);let c="";for(let d=a.length-1;d>=0;d-=1){const f=a[d],{isExternal:l,modifiers:m,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:p}=n(f);if(l){c=f+(c.length>0?" "+c:c);continue}let g=!!p,v=o(g?b.substring(0,p):b);if(!v){if(!g){c=f+(c.length>0?" "+c:c);continue}if(v=o(b),!v){c=f+(c.length>0?" "+c:c);continue}g=!1}const y=m.length===0?"":m.length===1?m[0]:s(m).join(":"),w=h?y+Sn:y,S=w+v;if(i.indexOf(S)>-1)continue;i.push(S);const P=r(v,g);for(let A=0;A<P.length;++A){const R=P[A];i.push(w+R)}c=f+(c.length>0?" "+c:c)}return c},Zi=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=Jo(n))&&(r&&(r+=" "),r+=o);return r},Jo=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Jo(e[o]))&&(n&&(n+=" "),n+=t);return n},Qi=(e,...t)=>{let n,o,r,s;const i=c=>{const d=t.reduce((f,l)=>l(f),e());return n=Gi(d),o=n.cache.get,r=n.cache.set,s=a,a(c)},a=c=>{const d=o(c);if(d)return d;const f=qi(c,n);return r(c,f),f};return s=i,(...c)=>s(Zi(...c))},Ji=[],ie=e=>{const t=n=>n[e]||Ji;return t.isThemeGetter=!0,t},er=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ea=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ta=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,na=/\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$/,oa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ra=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=e=>ea.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),un=e=>e.endsWith("%")&&X(e.slice(0,-1)),Le=e=>ta.test(e),nr=()=>!0,ia=e=>na.test(e)&&!oa.test(e),jn=()=>!1,aa=e=>ra.test(e),la=e=>sa.test(e),ca=e=>!O(e)&&!_(e),da=e=>Ye(e,sr,jn),O=e=>er.test(e),Qe=e=>Ye(e,ir,ia),vo=e=>Ye(e,ba,X),ua=e=>Ye(e,lr,nr),fa=e=>Ye(e,ar,jn),bo=e=>Ye(e,or,jn),pa=e=>Ye(e,rr,la),kt=e=>Ye(e,cr,aa),_=e=>tr.test(e),bt=e=>ot(e,ir),ma=e=>ot(e,ar),yo=e=>ot(e,or),ha=e=>ot(e,sr),ga=e=>ot(e,rr),Nt=e=>ot(e,cr,!0),va=e=>ot(e,lr,!0),Ye=(e,t,n)=>{const o=er.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},ot=(e,t,n=!1)=>{const o=tr.exec(e);return o?o[1]?t(o[1]):n:!1},or=e=>e==="position"||e==="percentage",rr=e=>e==="image"||e==="url",sr=e=>e==="length"||e==="size"||e==="bg-size",ir=e=>e==="length",ba=e=>e==="number",ar=e=>e==="family-name",lr=e=>e==="number"||e==="weight",cr=e=>e==="shadow",ya=()=>{const e=ie("color"),t=ie("font"),n=ie("text"),o=ie("font-weight"),r=ie("tracking"),s=ie("leading"),i=ie("breakpoint"),a=ie("container"),c=ie("spacing"),d=ie("radius"),f=ie("shadow"),l=ie("inset-shadow"),m=ie("text-shadow"),h=ie("drop-shadow"),b=ie("blur"),p=ie("perspective"),g=ie("aspect"),v=ie("ease"),y=ie("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),_,O],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],C=()=>[_,O,c],N=()=>[ze,"full","auto",...C()],j=()=>[Ve,"none","subgrid",_,O],F=()=>["auto",{span:["full",Ve,_,O]},Ve,_,O],$=()=>[Ve,"auto",_,O],W=()=>["auto","min","max","fr",_,O],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...C()],M=()=>[ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],I=()=>[ze,"screen","full","dvw","lvw","svw","min","max","fit",...C()],K=()=>[ze,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],T=()=>[e,_,O],oe=()=>[...S(),yo,bo,{position:[_,O]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",ha,da,{size:[_,O]}],Q=()=>[un,bt,Qe],B=()=>["","none","full",d,_,O],Z=()=>["",X,bt,Qe],D=()=>["solid","dashed","dotted","double"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[X,un,yo,bo],J=()=>["","none",b,_,O],G=()=>["none",X,_,O],Y=()=>["none",X,_,O],re=()=>[X,_,O],se=()=>[ze,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Le],breakpoint:[Le],color:[nr],container:[Le],"drop-shadow":[Le],ease:["in","out","in-out"],font:[ca],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Le],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Le],shadow:[Le],spacing:["px",X],text:[Le],"text-shadow":[Le],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ze,O,_,g]}],container:["container"],columns:[{columns:[X,O,_,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:P()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Ve,"auto",_,O]}],basis:[{basis:[ze,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[X,ze,"auto","initial","none",O]}],grow:[{grow:["",X,_,O]}],shrink:[{shrink:["",X,_,O]}],order:[{order:[Ve,"first","last","none",_,O]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,bt,Qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,va,ua]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",un,O]}],"font-family":[{font:[ma,fa,t]}],"font-features":[{"font-features":[O]}],"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:[r,_,O]}],"line-clamp":[{"line-clamp":[X,"none",_,vo]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",_,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[X,"from-font","auto",_,Qe]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[X,"auto",_,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,O]}],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",_,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ve,_,O],radial:["",_,O],conic:[Ve,_,O]},ga,pa]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-bs":[{"border-bs":Z()}],"border-w-be":[{"border-be":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[X,_,O]}],"outline-w":[{outline:["",X,bt,Qe]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,Nt,kt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",l,Nt,kt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[X,Qe]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",m,Nt,kt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[X,_,O]}],"mix-blend":[{"mix-blend":[...L(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":L()}],"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":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[_,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,O]}],filter:[{filter:["","none",_,O]}],blur:[{blur:J()}],brightness:[{brightness:[X,_,O]}],contrast:[{contrast:[X,_,O]}],"drop-shadow":[{"drop-shadow":["","none",h,Nt,kt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",X,_,O]}],"hue-rotate":[{"hue-rotate":[X,_,O]}],invert:[{invert:["",X,_,O]}],saturate:[{saturate:[X,_,O]}],sepia:[{sepia:["",X,_,O]}],"backdrop-filter":[{"backdrop-filter":["","none",_,O]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[X,_,O]}],"backdrop-contrast":[{"backdrop-contrast":[X,_,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",X,_,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,_,O]}],"backdrop-invert":[{"backdrop-invert":["",X,_,O]}],"backdrop-opacity":[{"backdrop-opacity":[X,_,O]}],"backdrop-saturate":[{"backdrop-saturate":[X,_,O]}],"backdrop-sepia":[{"backdrop-sepia":["",X,_,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[X,"initial",_,O]}],ease:[{ease:["linear","initial",v,_,O]}],delay:[{delay:[X,_,O]}],animate:[{animate:["none",y,_,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,_,O]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[_,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",_,O]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,O]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[X,bt,Qe,vo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mu=Qi(ya);/**
|
|
2
|
+
* @license lucide-react v0.575.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const dr=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v0.575.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const wa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
12
|
+
* @license lucide-react v0.575.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const xa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());/**
|
|
17
|
+
* @license lucide-react v0.575.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const wo=e=>{const t=xa(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
22
|
+
* @license lucide-react v0.575.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Sa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
27
|
+
* @license lucide-react v0.575.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const Ca=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
32
|
+
* @license lucide-react v0.575.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const Ea=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:i,...a},c)=>u.createElement("svg",{ref:c,...Sa,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:dr("lucide",r),...!s&&!Ca(a)&&{"aria-hidden":"true"},...a},[...i.map(([d,f])=>u.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
|
|
37
|
+
* @license lucide-react v0.575.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const me=(e,t)=>{const n=u.forwardRef(({className:o,...r},s)=>u.createElement(Ea,{ref:s,iconNode:t,className:dr(`lucide-${wa(wo(e))}`,`lucide-${e}`,o),...r}));return n.displayName=wo(e),n};/**
|
|
42
|
+
* @license lucide-react v0.575.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const Ra=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Du=me("check",Ra);/**
|
|
47
|
+
* @license lucide-react v0.575.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const Pa=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Lu=me("chevron-down",Pa);/**
|
|
52
|
+
* @license lucide-react v0.575.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const Aa=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ju=me("chevron-right",Aa);/**
|
|
57
|
+
* @license lucide-react v0.575.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const Ta=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Bu=me("chevron-up",Ta);/**
|
|
62
|
+
* @license lucide-react v0.575.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const ka=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Fu=me("folder-open",ka);/**
|
|
67
|
+
* @license lucide-react v0.575.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Na=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Wu=me("folder",Na);/**
|
|
72
|
+
* @license lucide-react v0.575.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const Oa=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],zu=me("moon",Oa);/**
|
|
77
|
+
* @license lucide-react v0.575.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const _a=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Vu=me("plus",_a);/**
|
|
82
|
+
* @license lucide-react v0.575.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Ia=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Hu=me("search",Ia);/**
|
|
87
|
+
* @license lucide-react v0.575.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Ma=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$u=me("settings",Ma);/**
|
|
92
|
+
* @license lucide-react v0.575.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Da=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Uu=me("star",Da);/**
|
|
97
|
+
* @license lucide-react v0.575.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const La=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Yu=me("sun",La);/**
|
|
102
|
+
* @license lucide-react v0.575.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const ja=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Xu=me("trash-2",ja);/**
|
|
107
|
+
* @license lucide-react v0.575.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Ba=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gu=me("x",Ba);function xo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=xo(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():xo(e[r],null)}}}}function ne(...e){return u.useCallback(Bn(...e),e)}var Fa=Symbol.for("react.lazy"),zt=Dn[" use ".trim().toString()];function Wa(e){return typeof e=="object"&&e!==null&&"then"in e}function ur(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Fa&&"_payload"in e&&Wa(e._payload)}function za(e){const t=Va(e),n=u.forwardRef((o,r)=>{let{children:s,...i}=o;ur(s)&&typeof zt=="function"&&(s=zt(s._payload));const a=u.Children.toArray(s),c=a.find($a);if(c){const d=c.props.children,f=a.map(l=>l===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:l);return x.jsx(t,{...i,ref:r,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return x.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var Ku=za("Slot");function Va(e){const t=u.forwardRef((n,o)=>{let{children:r,...s}=n;if(ur(r)&&typeof zt=="function"&&(r=zt(r._payload)),u.isValidElement(r)){const i=Ya(r),a=Ua(s,r.props);return r.type!==u.Fragment&&(a.ref=o?Bn(o,i):i),u.cloneElement(r,a)}return u.Children.count(r)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ha=Symbol("radix.slottable");function $a(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ha}function Ua(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const c=s(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Ya(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const So=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Co=Oi,qu=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Co(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(d=>{const f=n==null?void 0:n[d],l=s==null?void 0:s[d];if(f===null)return null;const m=So(f)||So(l);return r[d][m]}),a=n&&Object.entries(n).reduce((d,f)=>{let[l,m]=f;return m===void 0||(d[l]=m),d},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:l,className:m,...h}=f;return Object.entries(h).every(b=>{let[p,g]=b;return Array.isArray(g)?g.includes({...s,...a}[p]):{...s,...a}[p]===g})?[...d,l,m]:d},[]);return Co(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};function Cn(e,[t,n]){return Math.min(n,Math.max(t,e))}function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Xa(e,t){const n=u.createContext(t),o=s=>{const{children:i,...a}=s,c=u.useMemo(()=>a,Object.values(a));return x.jsx(n.Provider,{value:c,children:i})};o.displayName=e+"Provider";function r(s){const i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function St(e,t=[]){let n=[];function o(s,i){const a=u.createContext(i),c=n.length;n=[...n,i];const d=l=>{var v;const{scope:m,children:h,...b}=l,p=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,g=u.useMemo(()=>b,Object.values(b));return x.jsx(p.Provider,{value:g,children:h})};d.displayName=s+"Provider";function f(l,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[c])||a,b=u.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${l}\` must be used within \`${s}\``)}return[d,f]}const r=()=>{const s=n.map(i=>u.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,Ga(r,...t)]}function Ga(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:c,scopeName:d})=>{const l=c(s)[`__scope${d}`];return{...a,...l}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function wt(e){const t=Ka(e),n=u.forwardRef((o,r)=>{const{children:s,...i}=o,a=u.Children.toArray(s),c=a.find(Za);if(c){const d=c.props.children,f=a.map(l=>l===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:l);return x.jsx(t,{...i,ref:r,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return x.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Ka(e){const t=u.forwardRef((n,o)=>{const{children:r,...s}=n;if(u.isValidElement(r)){const i=Ja(r),a=Qa(s,r.props);return r.type!==u.Fragment&&(a.ref=o?Bn(o,i):i),u.cloneElement(r,a)}return u.Children.count(r)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qa=Symbol("radix.slottable");function Za(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qa}function Qa(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const c=s(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Ja(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function el(e){const t=e+"CollectionProvider",[n,o]=St(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:g,children:v}=p,y=E.useRef(null),w=E.useRef(new Map).current;return x.jsx(r,{scope:g,itemMap:w,collectionRef:y,children:v})};i.displayName=t;const a=e+"CollectionSlot",c=wt(a),d=E.forwardRef((p,g)=>{const{scope:v,children:y}=p,w=s(a,v),S=ne(g,w.collectionRef);return x.jsx(c,{ref:S,children:y})});d.displayName=a;const f=e+"CollectionItemSlot",l="data-radix-collection-item",m=wt(f),h=E.forwardRef((p,g)=>{const{scope:v,children:y,...w}=p,S=E.useRef(null),P=ne(g,S),A=s(f,v);return E.useEffect(()=>(A.itemMap.set(S,{ref:S,...w}),()=>void A.itemMap.delete(S))),x.jsx(m,{[l]:"",ref:P,children:y})});h.displayName=f;function b(p){const g=s(e+"CollectionConsumer",p);return E.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${l}]`));return Array.from(g.itemMap.values()).sort((A,R)=>w.indexOf(A.ref.current)-w.indexOf(R.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:d,ItemSlot:h},b,o]}var tl=u.createContext(void 0);function fr(e){const t=u.useContext(tl);return e||t||"ltr"}var nl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=nl.reduce((e,t)=>{const n=wt(`Primitive.${t}`),o=u.forwardRef((r,s)=>{const{asChild:i,...a}=r,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(c,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ol(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}function pe(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function rl(e,t=globalThis==null?void 0:globalThis.document){const n=pe(e);u.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var sl="DismissableLayer",En="dismissableLayer.update",il="dismissableLayer.pointerDownOutside",al="dismissableLayer.focusOutside",Eo,pr=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fn=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,d=u.useContext(pr),[f,l]=u.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),b=ne(t,R=>l(R)),p=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g),y=f?p.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,P=dl(R=>{const C=R.target,N=[...d.branches].some(j=>j.contains(C));!S||N||(r==null||r(R),i==null||i(R),R.defaultPrevented||a==null||a())},m),A=ul(R=>{const C=R.target;[...d.branches].some(j=>j.contains(C))||(s==null||s(R),i==null||i(R),R.defaultPrevented||a==null||a())},m);return rl(R=>{y===d.layers.size-1&&(o==null||o(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Eo=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ro(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Eo)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,d]),u.useEffect(()=>{const R=()=>h({});return document.addEventListener(En,R),()=>document.removeEventListener(En,R)},[]),x.jsx(te.div,{...c,ref:b,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,P.onPointerDownCapture)})});Fn.displayName=sl;var ll="DismissableLayerBranch",cl=u.forwardRef((e,t)=>{const n=u.useContext(pr),o=u.useRef(null),r=ne(t,o);return u.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),x.jsx(te.div,{...e,ref:r})});cl.displayName=ll;function dl(e,t=globalThis==null?void 0:globalThis.document){const n=pe(e),o=u.useRef(!1),r=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let c=function(){mr(il,n,d,{discrete:!0})};const d={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function ul(e,t=globalThis==null?void 0:globalThis.document){const n=pe(e),o=u.useRef(!1);return u.useEffect(()=>{const r=s=>{s.target&&!o.current&&mr(al,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ro(){const e=new CustomEvent(En);document.dispatchEvent(e)}function mr(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ol(r,s):r.dispatchEvent(s)}var fn=0;function hr(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Po()),document.body.insertAdjacentElement("beforeend",e[1]??Po()),fn++,()=>{fn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fn--}},[])}function Po(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pn="focusScope.autoFocusOnMount",mn="focusScope.autoFocusOnUnmount",Ao={bubbles:!1,cancelable:!0},fl="FocusScope",Wn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,c]=u.useState(null),d=pe(r),f=pe(s),l=u.useRef(null),m=ne(t,p=>c(p)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(o){let p=function(w){if(h.paused||!a)return;const S=w.target;a.contains(S)?l.current=S:He(l.current,{select:!0})},g=function(w){if(h.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||He(l.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&He(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(v);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,h.paused]),u.useEffect(()=>{if(a){ko.add(h);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(pn,Ao);a.addEventListener(pn,d),a.dispatchEvent(v),v.defaultPrevented||(pl(bl(gr(a)),{select:!0}),document.activeElement===p&&He(a))}return()=>{a.removeEventListener(pn,d),setTimeout(()=>{const v=new CustomEvent(mn,Ao);a.addEventListener(mn,f),a.dispatchEvent(v),v.defaultPrevented||He(p??document.body,{select:!0}),a.removeEventListener(mn,f),ko.remove(h)},0)}}},[a,d,f,h]);const b=u.useCallback(p=>{if(!n&&!o||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(g&&v){const y=p.currentTarget,[w,S]=ml(y);w&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&He(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&He(S,{select:!0})):v===y&&p.preventDefault()}},[n,o,h.paused]);return x.jsx(te.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});Wn.displayName=fl;function pl(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(He(o,{select:t}),document.activeElement!==n)return}function ml(e){const t=gr(e),n=To(t,e),o=To(t.reverse(),e);return[n,o]}function gr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function To(e,t){for(const n of e)if(!hl(n,{upTo:t}))return n}function hl(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gl(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gl(e)&&t&&e.select()}}var ko=vl();function vl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=No(e,t),e.unshift(t)},remove(t){var n;e=No(e,t),(n=e[0])==null||n.resume()}}}function No(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function bl(e){return e.filter(t=>t.tagName!=="A")}var ce=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},yl=Dn[" useId ".trim().toString()]||(()=>{}),wl=0;function dt(e){const[t,n]=u.useState(yl());return ce(()=>{n(o=>o??String(wl++))},[e]),t?`radix-${t}`:""}const xl=["top","right","bottom","left"],$e=Math.min,be=Math.max,Vt=Math.round,Ot=Math.floor,_e=e=>({x:e,y:e}),Sl={left:"right",right:"left",bottom:"top",top:"bottom"},Cl={start:"end",end:"start"};function Rn(e,t,n){return be(e,$e(t,n))}function je(e,t){return typeof e=="function"?e(t):e}function Be(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function zn(e){return e==="x"?"y":"x"}function Vn(e){return e==="y"?"height":"width"}const El=new Set(["top","bottom"]);function Oe(e){return El.has(Be(e))?"y":"x"}function Hn(e){return zn(Oe(e))}function Rl(e,t,n){n===void 0&&(n=!1);const o=ht(e),r=Hn(e),s=Vn(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ht(i)),[i,Ht(i)]}function Pl(e){const t=Ht(e);return[Pn(e),t,Pn(t)]}function Pn(e){return e.replace(/start|end/g,t=>Cl[t])}const Oo=["left","right"],_o=["right","left"],Al=["top","bottom"],Tl=["bottom","top"];function kl(e,t,n){switch(e){case"top":case"bottom":return n?t?_o:Oo:t?Oo:_o;case"left":case"right":return t?Al:Tl;default:return[]}}function Nl(e,t,n,o){const r=ht(e);let s=kl(Be(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Pn)))),s}function Ht(e){return e.replace(/left|right|bottom|top/g,t=>Sl[t])}function Ol(e){return{top:0,right:0,bottom:0,left:0,...e}}function vr(e){return typeof e!="number"?Ol(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Io(e,t,n){let{reference:o,floating:r}=e;const s=Oe(t),i=Hn(t),a=Vn(i),c=Be(t),d=s==="y",f=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let h;switch(c){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:l};break;case"left":h={x:o.x-r.width,y:l};break;default:h={x:o.x,y:o.y}}switch(ht(t)){case"start":h[i]-=m*(n&&d?-1:1);break;case"end":h[i]+=m*(n&&d?-1:1);break}return h}async function _l(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:m=!1,padding:h=0}=je(t,e),b=vr(h),g=a[m?l==="floating"?"reference":"floating":l],v=$t(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:f,strategy:c})),y=l==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},P=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:c}):y);return{top:(v.top-P.top+b.top)/S.y,bottom:(P.bottom-v.bottom+b.bottom)/S.y,left:(v.left-P.left+b.left)/S.x,right:(P.right-v.right+b.right)/S.x}}const Il=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:l}=Io(d,o,c),m=o,h={},b=0;for(let g=0;g<a.length;g++){var p;const{name:v,fn:y}=a[g],{x:w,y:S,data:P,reset:A}=await y({x:f,y:l,initialPlacement:o,placement:m,strategy:r,middlewareData:h,rects:d,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:_l},elements:{reference:e,floating:t}});f=w??f,l=S??l,h={...h,[v]:{...h[v],...P}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(d=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:f,y:l}=Io(d,m,c)),g=-1)}return{x:f,y:l,placement:m,strategy:r,middlewareData:h}},Ml=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:d,padding:f=0}=je(e,t)||{};if(d==null)return{};const l=vr(f),m={x:n,y:o},h=Hn(r),b=Vn(h),p=await i.getDimensions(d),g=h==="y",v=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[h]-m[h]-s.floating[b],P=m[h]-s.reference[h],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let R=A?A[w]:0;(!R||!await(i.isElement==null?void 0:i.isElement(A)))&&(R=a.floating[w]||s.floating[b]);const C=S/2-P/2,N=R/2-p[b]/2-1,j=$e(l[v],N),F=$e(l[y],N),$=j,W=R-p[b]-F,U=R/2-p[b]/2+C,q=Rn($,U,W),k=!c.arrow&&ht(r)!=null&&U!==q&&s.reference[b]/2-(U<$?j:F)-p[b]/2<0,M=k?U<$?U-$:U-W:0;return{[h]:m[h]+M,data:{[h]:q,centerOffset:U-q-M,...k&&{alignmentOffset:M}},reset:k}}}),Dl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...g}=je(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Be(r),y=Oe(a),w=Be(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=m||(w||!p?[Ht(a)]:Pl(a)),A=b!=="none";!m&&A&&P.push(...Nl(a,p,b,S));const R=[a,...P],C=await c.detectOverflow(t,g),N=[];let j=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&N.push(C[v]),l){const U=Rl(r,i,S);N.push(C[U[0]],C[U[1]])}if(j=[...j,{placement:r,overflows:N}],!N.every(U=>U<=0)){var F,$;const U=(((F=s.flip)==null?void 0:F.index)||0)+1,q=R[U];if(q&&(!(l==="alignment"?y!==Oe(q):!1)||j.every(I=>Oe(I.placement)===y?I.overflows[0]>0:!0)))return{data:{index:U,overflows:j},reset:{placement:q}};let k=($=j.filter(M=>M.overflows[0]<=0).sort((M,I)=>M.overflows[1]-I.overflows[1])[0])==null?void 0:$.placement;if(!k)switch(h){case"bestFit":{var W;const M=(W=j.filter(I=>{if(A){const K=Oe(I.placement);return K===y||K==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(K=>K>0).reduce((K,T)=>K+T,0)]).sort((I,K)=>I[1]-K[1])[0])==null?void 0:W[0];M&&(k=M);break}case"initialPlacement":k=a;break}if(r!==k)return{reset:{placement:k}}}return{}}}};function Mo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Do(e){return xl.some(t=>e[t]>=0)}const Ll=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=je(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),a=Mo(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Do(a)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),a=Mo(i,n.floating);return{data:{escapedOffsets:a,escaped:Do(a)}}}default:return{}}}}},br=new Set(["left","top"]);async function jl(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Be(n),a=ht(n),c=Oe(n)==="y",d=br.has(i)?-1:1,f=s&&c?-1:1,l=je(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),c?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Bl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,c=await jl(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:i}}}}},Fl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...d}=je(e,t),f={x:n,y:o},l=await s.detectOverflow(t,d),m=Oe(Be(r)),h=zn(m);let b=f[h],p=f[m];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=b+l[v],S=b-l[y];b=Rn(w,b,S)}if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=p+l[v],S=p-l[y];p=Rn(w,p,S)}const g=c.fn({...t,[h]:b,[m]:p});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:i,[m]:a}}}}}},Wl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:d=!0}=je(e,t),f={x:n,y:o},l=Oe(r),m=zn(l);let h=f[m],b=f[l];const p=je(a,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=m==="y"?"height":"width",S=s.reference[m]-s.floating[w]+g.mainAxis,P=s.reference[m]+s.reference[w]-g.mainAxis;h<S?h=S:h>P&&(h=P)}if(d){var v,y;const w=m==="y"?"width":"height",S=br.has(Be(r)),P=s.reference[l]-s.floating[w]+(S&&((v=i.offset)==null?void 0:v[l])||0)+(S?0:g.crossAxis),A=s.reference[l]+s.reference[w]+(S?0:((y=i.offset)==null?void 0:y[l])||0)-(S?g.crossAxis:0);b<P?b=P:b>A&&(b=A)}return{[m]:h,[l]:b}}}},zl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...d}=je(e,t),f=await i.detectOverflow(t,d),l=Be(r),m=ht(r),h=Oe(r)==="y",{width:b,height:p}=s.floating;let g,v;l==="top"||l==="bottom"?(g=l,v=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=l,g=m==="end"?"top":"bottom");const y=p-f.top-f.bottom,w=b-f.left-f.right,S=$e(p-f[g],y),P=$e(b-f[v],w),A=!t.middlewareData.shift;let R=S,C=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=y),A&&!m){const j=be(f.left,0),F=be(f.right,0),$=be(f.top,0),W=be(f.bottom,0);h?C=b-2*(j!==0||F!==0?j+F:be(f.left,f.right)):R=p-2*($!==0||W!==0?$+W:be(f.top,f.bottom))}await c({...t,availableWidth:C,availableHeight:R});const N=await i.getDimensions(a.floating);return b!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function gt(e){return yr(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Me(e){var t;return(t=(yr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yr(e){return Zt()?e instanceof Node||e instanceof ye(e).Node:!1}function Pe(e){return Zt()?e instanceof Element||e instanceof ye(e).Element:!1}function Ie(e){return Zt()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Lo(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}const Vl=new Set(["inline","contents"]);function Ct(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Vl.has(r)}const Hl=new Set(["table","td","th"]);function $l(e){return Hl.has(gt(e))}const Ul=[":popover-open",":modal"];function Qt(e){return Ul.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yl=["transform","translate","scale","rotate","perspective"],Xl=["transform","translate","scale","rotate","perspective","filter"],Gl=["paint","layout","strict","content"];function $n(e){const t=Un(),n=Pe(e)?Ae(e):e;return Yl.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xl.some(o=>(n.willChange||"").includes(o))||Gl.some(o=>(n.contain||"").includes(o))}function Kl(e){let t=Ue(e);for(;Ie(t)&&!pt(t);){if($n(t))return t;if(Qt(t))return null;t=Ue(t)}return null}function Un(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ql=new Set(["html","body","#document"]);function pt(e){return ql.has(gt(e))}function Ae(e){return ye(e).getComputedStyle(e)}function Jt(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ue(e){if(gt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lo(e)&&e.host||Me(e);return Lo(t)?t.host:t}function wr(e){const t=Ue(e);return pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ie(t)&&Ct(t)?t:wr(t)}function xt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wr(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=ye(r);if(s){const a=An(i);return t.concat(i,i.visualViewport||[],Ct(r)?r:[],a&&n?xt(a):[])}return t.concat(r,xt(r,[],n))}function An(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xr(e){const t=Ae(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ie(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=Vt(n)!==s||Vt(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Yn(e){return Pe(e)?e:e.contextElement}function ut(e){const t=Yn(e);if(!Ie(t))return _e(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=xr(t);let i=(s?Vt(n.width):n.width)/o,a=(s?Vt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Zl=_e(0);function Sr(e){const t=ye(e);return!Un()||!t.visualViewport?Zl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ql(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function Je(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Yn(e);let i=_e(1);t&&(o?Pe(o)&&(i=ut(o)):i=ut(e));const a=Ql(s,n,o)?Sr(s):_e(0);let c=(r.left+a.x)/i.x,d=(r.top+a.y)/i.y,f=r.width/i.x,l=r.height/i.y;if(s){const m=ye(s),h=o&&Pe(o)?ye(o):o;let b=m,p=An(b);for(;p&&o&&h!==b;){const g=ut(p),v=p.getBoundingClientRect(),y=Ae(p),w=v.left+(p.clientLeft+parseFloat(y.paddingLeft))*g.x,S=v.top+(p.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,d*=g.y,f*=g.x,l*=g.y,c+=w,d+=S,b=ye(p),p=An(b)}}return $t({width:f,height:l,x:c,y:d})}function en(e,t){const n=Jt(e).scrollLeft;return t?t.left+n:Je(Me(e)).left+n}function Cr(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-en(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Jl(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Me(o),a=t?Qt(t.floating):!1;if(o===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},d=_e(1);const f=_e(0),l=Ie(o);if((l||!l&&!s)&&((gt(o)!=="body"||Ct(i))&&(c=Jt(o)),Ie(o))){const h=Je(o);d=ut(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const m=i&&!l&&!s?Cr(i,c):_e(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function ec(e){return Array.from(e.getClientRects())}function tc(e){const t=Me(e),n=Jt(e),o=e.ownerDocument.body,r=be(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=be(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+en(e);const a=-n.scrollTop;return Ae(o).direction==="rtl"&&(i+=be(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}const jo=25;function nc(e,t){const n=ye(e),o=Me(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,c=0;if(r){s=r.width,i=r.height;const f=Un();(!f||f&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const d=en(o);if(d<=0){const f=o.ownerDocument,l=f.body,m=getComputedStyle(l),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(o.clientWidth-l.clientWidth-h);b<=jo&&(s-=b)}else d<=jo&&(s+=d);return{width:s,height:i,x:a,y:c}}const oc=new Set(["absolute","fixed"]);function rc(e,t){const n=Je(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ie(e)?ut(e):_e(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=r*s.x,d=o*s.y;return{width:i,height:a,x:c,y:d}}function Bo(e,t,n){let o;if(t==="viewport")o=nc(e,n);else if(t==="document")o=tc(Me(e));else if(Pe(t))o=rc(t,n);else{const r=Sr(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return $t(o)}function Er(e,t){const n=Ue(e);return n===t||!Pe(n)||pt(n)?!1:Ae(n).position==="fixed"||Er(n,t)}function sc(e,t){const n=t.get(e);if(n)return n;let o=xt(e,[],!1).filter(a=>Pe(a)&>(a)!=="body"),r=null;const s=Ae(e).position==="fixed";let i=s?Ue(e):e;for(;Pe(i)&&!pt(i);){const a=Ae(i),c=$n(i);!c&&a.position==="fixed"&&(r=null),(s?!c&&!r:!c&&a.position==="static"&&!!r&&oc.has(r.position)||Ct(i)&&!c&&Er(e,i))?o=o.filter(f=>f!==i):r=a,i=Ue(i)}return t.set(e,o),o}function ic(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Qt(t)?[]:sc(t,this._c):[].concat(n),o],a=i[0],c=i.reduce((d,f)=>{const l=Bo(t,f,r);return d.top=be(l.top,d.top),d.right=$e(l.right,d.right),d.bottom=$e(l.bottom,d.bottom),d.left=be(l.left,d.left),d},Bo(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ac(e){const{width:t,height:n}=xr(e);return{width:t,height:n}}function lc(e,t,n){const o=Ie(t),r=Me(t),s=n==="fixed",i=Je(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=_e(0);function d(){c.x=en(r)}if(o||!o&&!s)if((gt(t)!=="body"||Ct(r))&&(a=Jt(t)),o){const h=Je(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else r&&d();s&&!o&&r&&d();const f=r&&!o&&!s?Cr(r,a):_e(0),l=i.left+a.scrollLeft-c.x-f.x,m=i.top+a.scrollTop-c.y-f.y;return{x:l,y:m,width:i.width,height:i.height}}function hn(e){return Ae(e).position==="static"}function Fo(e,t){if(!Ie(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function Rr(e,t){const n=ye(e);if(Qt(e))return n;if(!Ie(e)){let r=Ue(e);for(;r&&!pt(r);){if(Pe(r)&&!hn(r))return r;r=Ue(r)}return n}let o=Fo(e,t);for(;o&&$l(o)&&hn(o);)o=Fo(o,t);return o&&pt(o)&&hn(o)&&!$n(o)?n:o||Kl(e)||n}const cc=async function(e){const t=this.getOffsetParent||Rr,n=this.getDimensions,o=await n(e.floating);return{reference:lc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function dc(e){return Ae(e).direction==="rtl"}const uc={convertOffsetParentRelativeRectToViewportRelativeRect:Jl,getDocumentElement:Me,getClippingRect:ic,getOffsetParent:Rr,getElementRects:cc,getClientRects:ec,getDimensions:ac,getScale:ut,isElement:Pe,isRTL:dc};function Pr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fc(e,t){let n=null,o;const r=Me(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:l,width:m,height:h}=d;if(a||t(),!m||!h)return;const b=Ot(l),p=Ot(r.clientWidth-(f+m)),g=Ot(r.clientHeight-(l+h)),v=Ot(f),w={rootMargin:-b+"px "+-p+"px "+-g+"px "+-v+"px",threshold:be(0,$e(1,c))||1};let S=!0;function P(A){const R=A[0].intersectionRatio;if(R!==c){if(!S)return i();R?i(!1,R):o=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Pr(d,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(P,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(P,w)}n.observe(e)}return i(!0),s}function pc(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=Yn(e),f=r||s?[...d?xt(d):[],...xt(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const l=d&&a?fc(d,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),d&&!c&&h.observe(d),h.observe(t));let b,p=c?Je(e):null;c&&g();function g(){const v=Je(e);p&&!Pr(p,v)&&n(),p=v,b=requestAnimationFrame(g)}return n(),()=>{var v;f.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),l==null||l(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(b)}}const mc=Bl,hc=Fl,gc=Dl,vc=zl,bc=Ll,Wo=Ml,yc=Wl,wc=(e,t,n)=>{const o=new Map,r={platform:uc,...n},s={...r.platform,_c:o};return Il(e,t,{...r,platform:s})};var xc=typeof document<"u",Sc=function(){},jt=xc?u.useLayoutEffect:Sc;function Ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ut(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Ut(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ar(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zo(e,t){const n=Ar(e);return Math.round(t*n)/n}function gn(e){const t=u.useRef(e);return jt(()=>{t.current=e}),t}function Cc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:d}=e,[f,l]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(o);Ut(m,o)||h(o);const[b,p]=u.useState(null),[g,v]=u.useState(null),y=u.useCallback(I=>{I!==A.current&&(A.current=I,p(I))},[]),w=u.useCallback(I=>{I!==R.current&&(R.current=I,v(I))},[]),S=s||b,P=i||g,A=u.useRef(null),R=u.useRef(null),C=u.useRef(f),N=c!=null,j=gn(c),F=gn(r),$=gn(d),W=u.useCallback(()=>{if(!A.current||!R.current)return;const I={placement:t,strategy:n,middleware:m};F.current&&(I.platform=F.current),wc(A.current,R.current,I).then(K=>{const T={...K,isPositioned:$.current!==!1};U.current&&!Ut(C.current,T)&&(C.current=T,qt.flushSync(()=>{l(T)}))})},[m,t,n,F,$]);jt(()=>{d===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,l(I=>({...I,isPositioned:!1})))},[d]);const U=u.useRef(!1);jt(()=>(U.current=!0,()=>{U.current=!1}),[]),jt(()=>{if(S&&(A.current=S),P&&(R.current=P),S&&P){if(j.current)return j.current(S,P,W);W()}},[S,P,W,j,N]);const q=u.useMemo(()=>({reference:A,floating:R,setReference:y,setFloating:w}),[y,w]),k=u.useMemo(()=>({reference:S,floating:P}),[S,P]),M=u.useMemo(()=>{const I={position:n,left:0,top:0};if(!k.floating)return I;const K=zo(k.floating,f.x),T=zo(k.floating,f.y);return a?{...I,transform:"translate("+K+"px, "+T+"px)",...Ar(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:T}},[n,a,k.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:W,refs:q,elements:k,floatingStyles:M}),[f,W,q,k,M])}const Ec=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Wo({element:o.current,padding:r}).fn(n):{}:o?Wo({element:o,padding:r}).fn(n):{}}}},Rc=(e,t)=>({...mc(e),options:[e,t]}),Pc=(e,t)=>({...hc(e),options:[e,t]}),Ac=(e,t)=>({...yc(e),options:[e,t]}),Tc=(e,t)=>({...gc(e),options:[e,t]}),kc=(e,t)=>({...vc(e),options:[e,t]}),Nc=(e,t)=>({...bc(e),options:[e,t]}),Oc=(e,t)=>({...Ec(e),options:[e,t]});var _c="Arrow",Tr=u.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return x.jsx(te.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tr.displayName=_c;var Ic=Tr;function Mc(e){const[t,n]=u.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,a=d.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Xn="Popper",[kr,Nr]=St(Xn),[Dc,Or]=kr(Xn),_r=e=>{const{__scopePopper:t,children:n}=e,[o,r]=u.useState(null);return x.jsx(Dc,{scope:t,anchor:o,onAnchorChange:r,children:n})};_r.displayName=Xn;var Ir="PopperAnchor",Mr=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Or(Ir,n),i=u.useRef(null),a=ne(t,i),c=u.useRef(null);return u.useEffect(()=>{const d=c.current;c.current=(o==null?void 0:o.current)||i.current,d!==c.current&&s.onAnchorChange(c.current)}),o?null:x.jsx(te.div,{...r,ref:a})});Mr.displayName=Ir;var Gn="PopperContent",[Lc,jc]=kr(Gn),Dr=u.forwardRef((e,t)=>{var D,L,V,J,G,Y;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:l="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...p}=e,g=Or(Gn,n),[v,y]=u.useState(null),w=ne(t,re=>y(re)),[S,P]=u.useState(null),A=Mc(S),R=(A==null?void 0:A.width)??0,C=(A==null?void 0:A.height)??0,N=o+(s!=="center"?"-"+s:""),j=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(d)?d:[d],$=F.length>0,W={padding:j,boundary:F.filter(Fc),altBoundary:$},{refs:U,floatingStyles:q,placement:k,isPositioned:M,middlewareData:I}=Cc({strategy:"fixed",placement:N,whileElementsMounted:(...re)=>pc(...re,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Rc({mainAxis:r+C,alignmentAxis:i}),c&&Pc({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Ac():void 0,...W}),c&&Tc({...W}),kc({...W,apply:({elements:re,rects:se,availableWidth:qe,availableHeight:Fe})=>{const{width:Se,height:Et}=se.reference,ue=re.floating.style;ue.setProperty("--radix-popper-available-width",`${qe}px`),ue.setProperty("--radix-popper-available-height",`${Fe}px`),ue.setProperty("--radix-popper-anchor-width",`${Se}px`),ue.setProperty("--radix-popper-anchor-height",`${Et}px`)}}),S&&Oc({element:S,padding:a}),Wc({arrowWidth:R,arrowHeight:C}),m&&Nc({strategy:"referenceHidden",...W})]}),[K,T]=Br(k),oe=pe(b);ce(()=>{M&&(oe==null||oe())},[M,oe]);const he=(D=I.arrow)==null?void 0:D.x,z=(L=I.arrow)==null?void 0:L.y,Q=((V=I.arrow)==null?void 0:V.centerOffset)!==0,[B,Z]=u.useState();return ce(()=>{v&&Z(window.getComputedStyle(v).zIndex)},[v]),x.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:M?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[(J=I.transformOrigin)==null?void 0:J.x,(G=I.transformOrigin)==null?void 0:G.y].join(" "),...((Y=I.hide)==null?void 0:Y.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(Lc,{scope:n,placedSide:K,onArrowChange:P,arrowX:he,arrowY:z,shouldHideArrow:Q,children:x.jsx(te.div,{"data-side":K,"data-align":T,...p,ref:w,style:{...p.style,animation:M?void 0:"none"}})})})});Dr.displayName=Gn;var Lr="PopperArrow",Bc={top:"bottom",right:"left",bottom:"top",left:"right"},jr=u.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=jc(Lr,o),i=Bc[s.placedSide];return x.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:x.jsx(Ic,{...r,ref:n,style:{...r.style,display:"block"}})})});jr.displayName=Lr;function Fc(e){return e!==null}var Wc=e=>({name:"transformOrigin",options:e,fn(t){var g,v,y;const{placement:n,rects:o,middlewareData:r}=t,i=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=Br(n),l={start:"0%",center:"50%",end:"100%"}[f],m=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,h=(((y=r.arrow)==null?void 0:y.y)??0)+c/2;let b="",p="";return d==="bottom"?(b=i?l:`${m}px`,p=`${-c}px`):d==="top"?(b=i?l:`${m}px`,p=`${o.floating.height+c}px`):d==="right"?(b=`${-c}px`,p=i?l:`${h}px`):d==="left"&&(b=`${o.floating.width+c}px`,p=i?l:`${h}px`),{data:{x:b,y:p}}}});function Br(e){const[t,n="center"]=e.split("-");return[t,n]}var zc=_r,Vc=Mr,Hc=Dr,$c=jr,Uc="Portal",Kn=u.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=u.useState(!1);ce(()=>s(!0),[]);const i=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Go.createPortal(x.jsx(te.div,{...o,ref:t}),i):null});Kn.displayName=Uc;var Yc=Dn[" useInsertionEffect ".trim().toString()]||ce;function Tn({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=Xc({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const l=f.current;l!==a&&console.warn(`${o} is changing from ${l?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,o])}const d=u.useCallback(f=>{var l;if(a){const m=Gc(f)?f(e):f;m!==e&&((l=i.current)==null||l.call(i,m))}else s(f)},[a,e,s,i]);return[c,d]}function Xc({defaultProp:e,onChange:t}){const[n,o]=u.useState(e),r=u.useRef(n),s=u.useRef(t);return Yc(()=>{s.current=t},[t]),u.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}function Gc(e){return typeof e=="function"}function Kc(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fr=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"}),qc="VisuallyHidden",Zc=u.forwardRef((e,t)=>x.jsx(te.span,{...e,ref:t,style:{...Fr,...e.style}}));Zc.displayName=qc;var Qc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,_t=new WeakMap,It={},vn=0,Wr=function(e){return e&&(e.host||Wr(e.parentNode))},Jc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Wr(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ed=function(e,t,n,o){var r=Jc(t,Array.isArray(e)?e:[e]);It[n]||(It[n]=new WeakMap);var s=It[n],i=[],a=new Set,c=new Set(r),d=function(l){!l||a.has(l)||(a.add(l),d(l.parentNode))};r.forEach(d);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(m){if(a.has(m))f(m);else try{var h=m.getAttribute(o),b=h!==null&&h!=="false",p=(at.get(m)||0)+1,g=(s.get(m)||0)+1;at.set(m,p),s.set(m,g),i.push(m),p===1&&b&&_t.set(m,!0),g===1&&m.setAttribute(n,"true"),b||m.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return f(t),a.clear(),vn++,function(){i.forEach(function(l){var m=at.get(l)-1,h=s.get(l)-1;at.set(l,m),s.set(l,h),m||(_t.has(l)||l.removeAttribute(o),_t.delete(l)),h||l.removeAttribute(n)}),vn--,vn||(at=new WeakMap,at=new WeakMap,_t=new WeakMap,It={})}},zr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Qc(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ed(o,r,n,"aria-hidden")):function(){return null}},Ne=function(){return Ne=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ne.apply(this,arguments)};function Vr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function td(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Bt="right-scroll-bar-position",Ft="width-before-scroll-bar",nd="with-scroll-bars-hidden",od="--removed-body-scroll-bar-size";function bn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rd(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var sd=typeof window<"u"?u.useLayoutEffect:u.useEffect,Vo=new WeakMap;function id(e,t){var n=rd(null,function(o){return e.forEach(function(r){return bn(r,o)})});return sd(function(){var o=Vo.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||bn(a,null)}),s.forEach(function(a){r.has(a)||bn(a,i)})}Vo.set(n,e)},[e]),n}function ad(e){return e}function ld(e,t){t===void 0&&(t=ad);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return r}function cd(e){e===void 0&&(e={});var t=ld(null);return t.options=Ne({async:!0,ssr:!1},e),t}var Hr=function(e){var t=e.sideCar,n=Vr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return u.createElement(o,Ne({},n))};Hr.isSideCarExport=!0;function dd(e,t){return e.useMedium(t),Hr}var $r=cd(),yn=function(){},tn=u.forwardRef(function(e,t){var n=u.useRef(null),o=u.useState({onScrollCapture:yn,onWheelCapture:yn,onTouchMoveCapture:yn}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,l=e.shards,m=e.sideCar,h=e.noRelative,b=e.noIsolation,p=e.inert,g=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,S=Vr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,A=id([n,t]),R=Ne(Ne({},S),r);return u.createElement(u.Fragment,null,f&&u.createElement(P,{sideCar:$r,removeScrollBar:d,shards:l,noRelative:h,noIsolation:b,inert:p,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:w}),i?u.cloneElement(u.Children.only(a),Ne(Ne({},R),{ref:A})):u.createElement(y,Ne({},R,{className:c,ref:A}),a))});tn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tn.classNames={fullWidth:Ft,zeroRight:Bt};var ud=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ud();return t&&e.setAttribute("nonce",t),e}function pd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function md(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fd())&&(pd(t,n),md(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gd=function(){var e=hd();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ur=function(){var e=gd(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},vd={left:0,top:0,right:0,gap:0},wn=function(e){return parseInt(e||"",10)||0},bd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[wn(n),wn(o),wn(r)]},yd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vd;var t=bd(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},wd=Ur(),ft="data-scroll-locked",xd=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
112
|
+
.`.concat(nd,` {
|
|
113
|
+
overflow: hidden `).concat(o,`;
|
|
114
|
+
padding-right: `).concat(a,"px ").concat(o,`;
|
|
115
|
+
}
|
|
116
|
+
body[`).concat(ft,`] {
|
|
117
|
+
overflow: hidden `).concat(o,`;
|
|
118
|
+
overscroll-behavior: contain;
|
|
119
|
+
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
120
|
+
padding-left: `.concat(r,`px;
|
|
121
|
+
padding-top: `).concat(s,`px;
|
|
122
|
+
padding-right: `).concat(i,`px;
|
|
123
|
+
margin-left:0;
|
|
124
|
+
margin-top:0;
|
|
125
|
+
margin-right: `).concat(a,"px ").concat(o,`;
|
|
126
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.`).concat(Bt,` {
|
|
130
|
+
right: `).concat(a,"px ").concat(o,`;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.`).concat(Ft,` {
|
|
134
|
+
margin-right: `).concat(a,"px ").concat(o,`;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.`).concat(Bt," .").concat(Bt,` {
|
|
138
|
+
right: 0 `).concat(o,`;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.`).concat(Ft," .").concat(Ft,` {
|
|
142
|
+
margin-right: 0 `).concat(o,`;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
body[`).concat(ft,`] {
|
|
146
|
+
`).concat(od,": ").concat(a,`px;
|
|
147
|
+
}
|
|
148
|
+
`)},Ho=function(){var e=parseInt(document.body.getAttribute(ft)||"0",10);return isFinite(e)?e:0},Sd=function(){u.useEffect(function(){return document.body.setAttribute(ft,(Ho()+1).toString()),function(){var e=Ho()-1;e<=0?document.body.removeAttribute(ft):document.body.setAttribute(ft,e.toString())}},[])},Cd=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Sd();var s=u.useMemo(function(){return yd(r)},[r]);return u.createElement(wd,{styles:xd(s,!t,r,n?"":"!important")})},kn=!1;if(typeof window<"u")try{var Mt=Object.defineProperty({},"passive",{get:function(){return kn=!0,!0}});window.addEventListener("test",Mt,Mt),window.removeEventListener("test",Mt,Mt)}catch{kn=!1}var lt=kn?{passive:!1}:!1,Ed=function(e){return e.tagName==="TEXTAREA"},Yr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ed(e)&&n[t]==="visible")},Rd=function(e){return Yr(e,"overflowY")},Pd=function(e){return Yr(e,"overflowX")},$o=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Xr(e,o);if(r){var s=Gr(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Ad=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Td=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Xr=function(e,t){return e==="v"?Rd(t):Pd(t)},Gr=function(e,t){return e==="v"?Ad(t):Td(t)},kd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Nd=function(e,t,n,o,r){var s=kd(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,c=t.contains(a),d=!1,f=i>0,l=0,m=0;do{if(!a)break;var h=Gr(e,a),b=h[0],p=h[1],g=h[2],v=p-g-s*b;(b||v)&&Xr(e,a)&&(l+=v,m+=b);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(l)<1||!f&&Math.abs(m)<1)&&(d=!0),d},Dt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uo=function(e){return[e.deltaX,e.deltaY]},Yo=function(e){return e&&"current"in e?e.current:e},Od=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_d=function(e){return`
|
|
149
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
150
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
151
|
+
`)},Id=0,ct=[];function Md(e){var t=u.useRef([]),n=u.useRef([0,0]),o=u.useRef(),r=u.useState(Id++)[0],s=u.useState(Ur)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=td([e.lockRef.current],(e.shards||[]).map(Yo),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=Dt(p),y=n.current,w="deltaX"in p?p.deltaX:y[0]-v[0],S="deltaY"in p?p.deltaY:y[1]-v[1],P,A=p.target,R=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&R==="h"&&A.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,j=N?N===A||N.contains(A):!1;if(j)return!1;var F=$o(R,A);if(!F)return!0;if(F?P=R:(P=R==="v"?"h":"v",F=$o(R,A)),!F)return!1;if(!o.current&&"changedTouches"in p&&(w||S)&&(o.current=P),!P)return!0;var $=o.current||P;return Nd($,g,p,$==="h"?w:S)},[]),c=u.useCallback(function(p){var g=p;if(!(!ct.length||ct[ct.length-1]!==s)){var v="deltaY"in g?Uo(g):Dt(g),y=t.current.filter(function(P){return P.name===g.type&&(P.target===g.target||g.target===P.shadowParent)&&Od(P.delta,v)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(Yo).filter(Boolean).filter(function(P){return P.contains(g.target)}),S=w.length>0?a(g,w[0]):!i.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),d=u.useCallback(function(p,g,v,y){var w={name:p,delta:g,target:v,should:y,shadowParent:Dd(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),f=u.useCallback(function(p){n.current=Dt(p),o.current=void 0},[]),l=u.useCallback(function(p){d(p.type,Uo(p),p.target,a(p,e.lockRef.current))},[]),m=u.useCallback(function(p){d(p.type,Dt(p),p.target,a(p,e.lockRef.current))},[]);u.useEffect(function(){return ct.push(s),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:m}),document.addEventListener("wheel",c,lt),document.addEventListener("touchmove",c,lt),document.addEventListener("touchstart",f,lt),function(){ct=ct.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,lt),document.removeEventListener("touchmove",c,lt),document.removeEventListener("touchstart",f,lt)}},[]);var h=e.removeScrollBar,b=e.inert;return u.createElement(u.Fragment,null,b?u.createElement(s,{styles:_d(r)}):null,h?u.createElement(Cd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ld=dd($r,Md);var qn=u.forwardRef(function(e,t){return u.createElement(tn,Ne({},e,{ref:t,sideCar:Ld}))});qn.classNames=tn.classNames;var jd=[" ","Enter","ArrowUp","ArrowDown"],Bd=[" ","Enter"],et="Select",[nn,on,Fd]=el(et),[vt]=St(et,[Fd,Nr]),rn=Nr(),[Wd,Xe]=vt(et),[zd,Vd]=vt(et),Kr=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:d,name:f,autoComplete:l,disabled:m,required:h,form:b}=e,p=rn(t),[g,v]=u.useState(null),[y,w]=u.useState(null),[S,P]=u.useState(!1),A=fr(d),[R,C]=Tn({prop:o,defaultProp:r??!1,onChange:s,caller:et}),[N,j]=Tn({prop:i,defaultProp:a,onChange:c,caller:et}),F=u.useRef(null),$=g?b||!!g.closest("form"):!0,[W,U]=u.useState(new Set),q=Array.from(W).map(k=>k.props.value).join(";");return x.jsx(zc,{...p,children:x.jsxs(Wd,{required:h,scope:t,trigger:g,onTriggerChange:v,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:P,contentId:dt(),value:N,onValueChange:j,open:R,onOpenChange:C,dir:A,triggerPointerDownPosRef:F,disabled:m,children:[x.jsx(nn.Provider,{scope:t,children:x.jsx(zd,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(k=>{U(M=>new Set(M).add(k))},[]),onNativeOptionRemove:u.useCallback(k=>{U(M=>{const I=new Set(M);return I.delete(k),I})},[]),children:n})}),$?x.jsxs(ys,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:l,value:N,onChange:k=>j(k.target.value),disabled:m,form:b,children:[N===void 0?x.jsx("option",{value:""}):null,Array.from(W)]},q):null]})})};Kr.displayName=et;var qr="SelectTrigger",Zr=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=rn(n),i=Xe(qr,n),a=i.disabled||o,c=ne(t,i.onTriggerChange),d=on(n),f=u.useRef("touch"),[l,m,h]=xs(p=>{const g=d().filter(w=>!w.disabled),v=g.find(w=>w.value===i.value),y=Ss(g,p,v);y!==void 0&&i.onValueChange(y.value)}),b=p=>{a||(i.onOpenChange(!0),h()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return x.jsx(Vc,{asChild:!0,...s,children:x.jsx(te.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":ws(i.value)?"":void 0,...r,ref:c,onClick:ee(r.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&b(p)}),onPointerDown:ee(r.onPointerDown,p=>{f.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:ee(r.onKeyDown,p=>{const g=l.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(g&&p.key===" ")&&jd.includes(p.key)&&(b(),p.preventDefault())})})})});Zr.displayName=qr;var Qr="SelectValue",Jr=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...a}=e,c=Xe(Qr,n),{onValueNodeHasChildrenChange:d}=c,f=s!==void 0,l=ne(t,c.onValueNodeChange);return ce(()=>{d(f)},[d,f]),x.jsx(te.span,{...a,ref:l,style:{pointerEvents:"none"},children:ws(c.value)?x.jsx(x.Fragment,{children:i}):s})});Jr.displayName=Qr;var Hd="SelectIcon",es=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return x.jsx(te.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});es.displayName=Hd;var $d="SelectPortal",ts=e=>x.jsx(Kn,{asChild:!0,...e});ts.displayName=$d;var tt="SelectContent",ns=u.forwardRef((e,t)=>{const n=Xe(tt,e.__scopeSelect),[o,r]=u.useState();if(ce(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?qt.createPortal(x.jsx(os,{scope:e.__scopeSelect,children:x.jsx(nn.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),s):null}return x.jsx(rs,{...e,ref:t})});ns.displayName=tt;var Re=10,[os,Ge]=vt(tt),Ud="SelectContentImpl",Yd=wt("SelectContent.RemoveScroll"),rs=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:d,alignOffset:f,arrowPadding:l,collisionBoundary:m,collisionPadding:h,sticky:b,hideWhenDetached:p,avoidCollisions:g,...v}=e,y=Xe(tt,n),[w,S]=u.useState(null),[P,A]=u.useState(null),R=ne(t,D=>S(D)),[C,N]=u.useState(null),[j,F]=u.useState(null),$=on(n),[W,U]=u.useState(!1),q=u.useRef(!1);u.useEffect(()=>{if(w)return zr(w)},[w]),hr();const k=u.useCallback(D=>{const[L,...V]=$().map(Y=>Y.ref.current),[J]=V.slice(-1),G=document.activeElement;for(const Y of D)if(Y===G||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===L&&P&&(P.scrollTop=0),Y===J&&P&&(P.scrollTop=P.scrollHeight),Y==null||Y.focus(),document.activeElement!==G))return},[$,P]),M=u.useCallback(()=>k([C,w]),[k,C,w]);u.useEffect(()=>{W&&M()},[W,M]);const{onOpenChange:I,triggerPointerDownPosRef:K}=y;u.useEffect(()=>{if(w){let D={x:0,y:0};const L=J=>{var G,Y;D={x:Math.abs(Math.round(J.pageX)-(((G=K.current)==null?void 0:G.x)??0)),y:Math.abs(Math.round(J.pageY)-(((Y=K.current)==null?void 0:Y.y)??0))}},V=J=>{D.x<=10&&D.y<=10?J.preventDefault():w.contains(J.target)||I(!1),document.removeEventListener("pointermove",L),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,I,K]),u.useEffect(()=>{const D=()=>I(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[I]);const[T,oe]=xs(D=>{const L=$().filter(G=>!G.disabled),V=L.find(G=>G.ref.current===document.activeElement),J=Ss(L,D,V);J&&setTimeout(()=>J.ref.current.focus())}),he=u.useCallback((D,L,V)=>{const J=!q.current&&!V;(y.value!==void 0&&y.value===L||J)&&(N(D),J&&(q.current=!0))},[y.value]),z=u.useCallback(()=>w==null?void 0:w.focus(),[w]),Q=u.useCallback((D,L,V)=>{const J=!q.current&&!V;(y.value!==void 0&&y.value===L||J)&&F(D)},[y.value]),B=o==="popper"?Nn:ss,Z=B===Nn?{side:a,sideOffset:c,align:d,alignOffset:f,arrowPadding:l,collisionBoundary:m,collisionPadding:h,sticky:b,hideWhenDetached:p,avoidCollisions:g}:{};return x.jsx(os,{scope:n,content:w,viewport:P,onViewportChange:A,itemRefCallback:he,selectedItem:C,onItemLeave:z,itemTextRefCallback:Q,focusSelectedItem:M,selectedItemText:j,position:o,isPositioned:W,searchRef:T,children:x.jsx(qn,{as:Yd,allowPinchZoom:!0,children:x.jsx(Wn,{asChild:!0,trapped:y.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:ee(r,D=>{var L;(L=y.trigger)==null||L.focus({preventScroll:!0}),D.preventDefault()}),children:x.jsx(Fn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:x.jsx(B,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:D=>D.preventDefault(),...v,...Z,onPlaced:()=>U(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ee(v.onKeyDown,D=>{const L=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!L&&D.key.length===1&&oe(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let J=$().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(D.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const G=D.target,Y=J.indexOf(G);J=J.slice(Y+1)}setTimeout(()=>k(J)),D.preventDefault()}})})})})})})});rs.displayName=Ud;var Xd="SelectItemAlignedPosition",ss=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Xe(tt,n),i=Ge(tt,n),[a,c]=u.useState(null),[d,f]=u.useState(null),l=ne(t,R=>f(R)),m=on(n),h=u.useRef(!1),b=u.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=i,w=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&d&&p&&g&&v){const R=s.trigger.getBoundingClientRect(),C=d.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),j=v.getBoundingClientRect();if(s.dir!=="rtl"){const G=j.left-C.left,Y=N.left-G,re=R.left-Y,se=R.width+re,qe=Math.max(se,C.width),Fe=window.innerWidth-Re,Se=Cn(Y,[Re,Math.max(Re,Fe-qe)]);a.style.minWidth=se+"px",a.style.left=Se+"px"}else{const G=C.right-j.right,Y=window.innerWidth-N.right-G,re=window.innerWidth-R.right-Y,se=R.width+re,qe=Math.max(se,C.width),Fe=window.innerWidth-Re,Se=Cn(Y,[Re,Math.max(Re,Fe-qe)]);a.style.minWidth=se+"px",a.style.right=Se+"px"}const F=m(),$=window.innerHeight-Re*2,W=p.scrollHeight,U=window.getComputedStyle(d),q=parseInt(U.borderTopWidth,10),k=parseInt(U.paddingTop,10),M=parseInt(U.borderBottomWidth,10),I=parseInt(U.paddingBottom,10),K=q+k+W+I+M,T=Math.min(g.offsetHeight*5,K),oe=window.getComputedStyle(p),he=parseInt(oe.paddingTop,10),z=parseInt(oe.paddingBottom,10),Q=R.top+R.height/2-Re,B=$-Q,Z=g.offsetHeight/2,D=g.offsetTop+Z,L=q+k+D,V=K-L;if(L<=Q){const G=F.length>0&&g===F[F.length-1].ref.current;a.style.bottom="0px";const Y=d.clientHeight-p.offsetTop-p.offsetHeight,re=Math.max(B,Z+(G?z:0)+Y+M),se=L+re;a.style.height=se+"px"}else{const G=F.length>0&&g===F[0].ref.current;a.style.top="0px";const re=Math.max(Q,q+p.offsetTop+(G?he:0)+Z)+V;a.style.height=re+"px",p.scrollTop=L-Q+p.offsetTop}a.style.margin=`${Re}px 0`,a.style.minHeight=T+"px",a.style.maxHeight=$+"px",o==null||o(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,a,d,p,g,v,s.dir,o]);ce(()=>w(),[w]);const[S,P]=u.useState();ce(()=>{d&&P(window.getComputedStyle(d).zIndex)},[d]);const A=u.useCallback(R=>{R&&b.current===!0&&(w(),y==null||y(),b.current=!1)},[w,y]);return x.jsx(Kd,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:x.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:x.jsx(te.div,{...r,ref:l,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ss.displayName=Xd;var Gd="SelectPopperPosition",Nn=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=Re,...s}=e,i=rn(n);return x.jsx(Hc,{...i,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.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)"}})});Nn.displayName=Gd;var[Kd,Zn]=vt(tt,{}),On="SelectViewport",is=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ge(On,n),i=Zn(On,n),a=ne(t,s.onViewportChange),c=u.useRef(0);return x.jsxs(x.Fragment,{children:[x.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:o}),x.jsx(nn.Slot,{scope:n,children:x.jsx(te.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:ee(r.onScroll,d=>{const f=d.currentTarget,{contentWrapper:l,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&l){const h=Math.abs(c.current-f.scrollTop);if(h>0){const b=window.innerHeight-Re*2,p=parseFloat(l.style.minHeight),g=parseFloat(l.style.height),v=Math.max(p,g);if(v<b){const y=v+h,w=Math.min(b,y),S=y-w;l.style.height=w+"px",l.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,l.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});is.displayName=On;var as="SelectGroup",[qd,Zd]=vt(as),Qd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=dt();return x.jsx(qd,{scope:n,id:r,children:x.jsx(te.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Qd.displayName=as;var ls="SelectLabel",cs=u.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Zd(ls,n);return x.jsx(te.div,{id:r.id,...o,ref:t})});cs.displayName=ls;var Yt="SelectItem",[Jd,ds]=vt(Yt),us=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,a=Xe(Yt,n),c=Ge(Yt,n),d=a.value===o,[f,l]=u.useState(s??""),[m,h]=u.useState(!1),b=ne(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,o,r)}),p=dt(),g=u.useRef("touch"),v=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(Jd,{scope:n,value:o,disabled:r,textId:p,isSelected:d,onItemTextChange:u.useCallback(y=>{l(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:x.jsx(nn.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:x.jsx(te.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:b,onFocus:ee(i.onFocus,()=>h(!0)),onBlur:ee(i.onBlur,()=>h(!1)),onClick:ee(i.onClick,()=>{g.current!=="mouse"&&v()}),onPointerUp:ee(i.onPointerUp,()=>{g.current==="mouse"&&v()}),onPointerDown:ee(i.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:ee(i.onPointerMove,y=>{var w;g.current=y.pointerType,r?(w=c.onItemLeave)==null||w.call(c):g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ee(i.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:ee(i.onKeyDown,y=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(Bd.includes(y.key)&&v(),y.key===" "&&y.preventDefault())})})})})});us.displayName=Yt;var yt="SelectItemText",fs=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=Xe(yt,n),a=Ge(yt,n),c=ds(yt,n),d=Vd(yt,n),[f,l]=u.useState(null),m=ne(t,v=>l(v),c.onItemTextChange,v=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,v,c.value,c.disabled)}),h=f==null?void 0:f.textContent,b=u.useMemo(()=>x.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=d;return ce(()=>(p(b),()=>g(b)),[p,g,b]),x.jsxs(x.Fragment,{children:[x.jsx(te.span,{id:c.textId,...s,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?qt.createPortal(s.children,i.valueNode):null]})});fs.displayName=yt;var ps="SelectItemIndicator",ms=u.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return ds(ps,n).isSelected?x.jsx(te.span,{"aria-hidden":!0,...o,ref:t}):null});ms.displayName=ps;var _n="SelectScrollUpButton",hs=u.forwardRef((e,t)=>{const n=Ge(_n,e.__scopeSelect),o=Zn(_n,e.__scopeSelect),[r,s]=u.useState(!1),i=ne(t,o.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=c.scrollTop>0;s(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?x.jsx(vs,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});hs.displayName=_n;var In="SelectScrollDownButton",gs=u.forwardRef((e,t)=>{const n=Ge(In,e.__scopeSelect),o=Zn(In,e.__scopeSelect),[r,s]=u.useState(!1),i=ne(t,o.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;s(f)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?x.jsx(vs,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});gs.displayName=In;var vs=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ge("SelectScrollButton",n),i=u.useRef(null),a=on(n),c=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),ce(()=>{var f;const d=a().find(l=>l.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),x.jsx(te.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:ee(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:ee(r.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:ee(r.onPointerLeave,()=>{c()})})}),eu="SelectSeparator",bs=u.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return x.jsx(te.div,{"aria-hidden":!0,...o,ref:t})});bs.displayName=eu;var Mn="SelectArrow",tu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=rn(n),s=Xe(Mn,n),i=Ge(Mn,n);return s.open&&i.position==="popper"?x.jsx($c,{...r,...o,ref:t}):null});tu.displayName=Mn;var nu="SelectBubbleInput",ys=u.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=u.useRef(null),s=ne(o,r),i=Kc(t);return u.useEffect(()=>{const a=r.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const l=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(l)}},[i,t]),x.jsx(te.select,{...n,style:{...Fr,...n.style},ref:s,defaultValue:t})});ys.displayName=nu;function ws(e){return e===""||e===void 0}function xs(e){const t=pe(e),n=u.useRef(""),o=u.useRef(0),r=u.useCallback(i=>{const a=n.current+i;t(a),(function c(d){n.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>c(""),1e3))})(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Ss(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=ou(e,Math.max(s,0));r.length===1&&(i=i.filter(d=>d!==n));const c=i.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}function ou(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Zu=Kr,Qu=Zr,Ju=Jr,ef=es,tf=ts,nf=ns,of=is,rf=cs,sf=us,af=fs,lf=ms,cf=hs,df=gs,uf=bs;function ru(e,t){return u.useReducer((n,o)=>t[n][o]??n,e)}var Ke=e=>{const{present:t,children:n}=e,o=su(t),r=typeof n=="function"?n({present:o.isPresent}):u.Children.only(n),s=ne(o.ref,iu(r));return typeof n=="function"||o.isPresent?u.cloneElement(r,{ref:s}):null};Ke.displayName="Presence";function su(e){const[t,n]=u.useState(),o=u.useRef(null),r=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,c]=ru(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Lt(o.current);s.current=a==="mounted"?d:"none"},[a]),ce(()=>{const d=o.current,f=r.current;if(f!==e){const m=s.current,h=Lt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ce(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,l=h=>{const p=Lt(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(c("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=h=>{h.target===t&&(s.current=Lt(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(d=>{o.current=d?getComputedStyle(d):null,n(d)},[])}}function Lt(e){return(e==null?void 0:e.animationName)||"none"}function iu(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sn="Dialog",[Cs]=St(sn),[au,Te]=Cs(sn),Es=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=u.useRef(null),c=u.useRef(null),[d,f]=Tn({prop:o,defaultProp:r??!1,onChange:s,caller:sn});return x.jsx(au,{scope:t,triggerRef:a,contentRef:c,contentId:dt(),titleId:dt(),descriptionId:dt(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(l=>!l),[f]),modal:i,children:n})};Es.displayName=sn;var Rs="DialogTrigger",lu=u.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Te(Rs,n),s=ne(t,r.triggerRef);return x.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":eo(r.open),...o,ref:s,onClick:ee(e.onClick,r.onOpenToggle)})});lu.displayName=Rs;var Qn="DialogPortal",[cu,Ps]=Cs(Qn,{forceMount:void 0}),As=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=Te(Qn,t);return x.jsx(cu,{scope:t,forceMount:n,children:u.Children.map(o,i=>x.jsx(Ke,{present:n||s.open,children:x.jsx(Kn,{asChild:!0,container:r,children:i})}))})};As.displayName=Qn;var Xt="DialogOverlay",Ts=u.forwardRef((e,t)=>{const n=Ps(Xt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=Te(Xt,e.__scopeDialog);return s.modal?x.jsx(Ke,{present:o||s.open,children:x.jsx(uu,{...r,ref:t})}):null});Ts.displayName=Xt;var du=wt("DialogOverlay.RemoveScroll"),uu=u.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Te(Xt,n);return x.jsx(qn,{as:du,allowPinchZoom:!0,shards:[r.contentRef],children:x.jsx(te.div,{"data-state":eo(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),nt="DialogContent",ks=u.forwardRef((e,t)=>{const n=Ps(nt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=Te(nt,e.__scopeDialog);return x.jsx(Ke,{present:o||s.open,children:s.modal?x.jsx(fu,{...r,ref:t}):x.jsx(pu,{...r,ref:t})})});ks.displayName=nt;var fu=u.forwardRef((e,t)=>{const n=Te(nt,e.__scopeDialog),o=u.useRef(null),r=ne(t,n.contentRef,o);return u.useEffect(()=>{const s=o.current;if(s)return zr(s)},[]),x.jsx(Ns,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ee(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:ee(e.onFocusOutside,s=>s.preventDefault())})}),pu=u.forwardRef((e,t)=>{const n=Te(nt,e.__scopeDialog),o=u.useRef(!1),r=u.useRef(!1);return x.jsx(Ns,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ns=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,a=Te(nt,n),c=u.useRef(null),d=ne(t,c);return hr(),x.jsxs(x.Fragment,{children:[x.jsx(Wn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:x.jsx(Fn,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":eo(a.open),...i,ref:d,onDismiss:()=>a.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(mu,{titleId:a.titleId}),x.jsx(gu,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Jn="DialogTitle",Os=u.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Te(Jn,n);return x.jsx(te.h2,{id:r.titleId,...o,ref:t})});Os.displayName=Jn;var _s="DialogDescription",Is=u.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Te(_s,n);return x.jsx(te.p,{id:r.descriptionId,...o,ref:t})});Is.displayName=_s;var Ms="DialogClose",Ds=u.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Te(Ms,n);return x.jsx(te.button,{type:"button",...o,ref:t,onClick:ee(e.onClick,()=>r.onOpenChange(!1))})});Ds.displayName=Ms;function eo(e){return e?"open":"closed"}var Ls="DialogTitleWarning",[ff,js]=Xa(Ls,{contentName:nt,titleName:Jn,docsSlug:"dialog"}),mu=({titleId:e})=>{const t=js(Ls),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
152
|
+
|
|
153
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
154
|
+
|
|
155
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},hu="DialogDescriptionWarning",gu=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${js(hu).contentName}}.`;return u.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},pf=Es,mf=As,hf=Ts,gf=ks,vf=Os,bf=Is,yf=Ds;function vu(e,t){return u.useReducer((n,o)=>t[n][o]??n,e)}var to="ScrollArea",[Bs]=St(to),[bu,xe]=Bs(to),Fs=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:r,scrollHideDelay:s=600,...i}=e,[a,c]=u.useState(null),[d,f]=u.useState(null),[l,m]=u.useState(null),[h,b]=u.useState(null),[p,g]=u.useState(null),[v,y]=u.useState(0),[w,S]=u.useState(0),[P,A]=u.useState(!1),[R,C]=u.useState(!1),N=ne(t,F=>c(F)),j=fr(r);return x.jsx(bu,{scope:n,type:o,dir:j,scrollHideDelay:s,scrollArea:a,viewport:d,onViewportChange:f,content:l,onContentChange:m,scrollbarX:h,onScrollbarXChange:b,scrollbarXEnabled:P,onScrollbarXEnabledChange:A,scrollbarY:p,onScrollbarYChange:g,scrollbarYEnabled:R,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:S,children:x.jsx(te.div,{dir:j,...i,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});Fs.displayName=to;var Ws="ScrollAreaViewport",zs=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,nonce:r,...s}=e,i=xe(Ws,n),a=u.useRef(null),c=ne(t,a,i.onViewportChange);return x.jsxs(x.Fragment,{children:[x.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:r}),x.jsx(te.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:x.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});zs.displayName=Ws;var De="ScrollAreaScrollbar",yu=u.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=xe(De,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=r,a=e.orientation==="horizontal";return u.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),r.type==="hover"?x.jsx(wu,{...o,ref:t,forceMount:n}):r.type==="scroll"?x.jsx(xu,{...o,ref:t,forceMount:n}):r.type==="auto"?x.jsx(Vs,{...o,ref:t,forceMount:n}):r.type==="always"?x.jsx(no,{...o,ref:t}):null});yu.displayName=De;var wu=u.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=xe(De,e.__scopeScrollArea),[s,i]=u.useState(!1);return u.useEffect(()=>{const a=r.scrollArea;let c=0;if(a){const d=()=>{window.clearTimeout(c),i(!0)},f=()=>{c=window.setTimeout(()=>i(!1),r.scrollHideDelay)};return a.addEventListener("pointerenter",d),a.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",d),a.removeEventListener("pointerleave",f)}}},[r.scrollArea,r.scrollHideDelay]),x.jsx(Ke,{present:n||s,children:x.jsx(Vs,{"data-state":s?"visible":"hidden",...o,ref:t})})}),xu=u.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=xe(De,e.__scopeScrollArea),s=e.orientation==="horizontal",i=ln(()=>c("SCROLL_END"),100),[a,c]=vu("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return u.useEffect(()=>{if(a==="idle"){const d=window.setTimeout(()=>c("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(d)}},[a,r.scrollHideDelay,c]),u.useEffect(()=>{const d=r.viewport,f=s?"scrollLeft":"scrollTop";if(d){let l=d[f];const m=()=>{const h=d[f];l!==h&&(c("SCROLL"),i()),l=h};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[r.viewport,s,c,i]),x.jsx(Ke,{present:n||a!=="hidden",children:x.jsx(no,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:ee(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ee(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Vs=u.forwardRef((e,t)=>{const n=xe(De,e.__scopeScrollArea),{forceMount:o,...r}=e,[s,i]=u.useState(!1),a=e.orientation==="horizontal",c=ln(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;i(a?d:f)}},10);return mt(n.viewport,c),mt(n.content,c),x.jsx(Ke,{present:o||s,children:x.jsx(no,{"data-state":s?"visible":"hidden",...r,ref:t})})}),no=u.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,r=xe(De,e.__scopeScrollArea),s=u.useRef(null),i=u.useRef(0),[a,c]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Ys(a.viewport,a.content),f={...o,sizes:a,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function l(m,h){return Tu(m,i.current,a,h)}return n==="horizontal"?x.jsx(Su,{...f,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const m=r.viewport.scrollLeft,h=Xo(m,a,r.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{r.viewport&&(r.viewport.scrollLeft=m)},onDragScroll:m=>{r.viewport&&(r.viewport.scrollLeft=l(m,r.dir))}}):n==="vertical"?x.jsx(Cu,{...f,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const m=r.viewport.scrollTop,h=Xo(m,a);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{r.viewport&&(r.viewport.scrollTop=m)},onDragScroll:m=>{r.viewport&&(r.viewport.scrollTop=l(m))}}):null}),Su=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=xe(De,e.__scopeScrollArea),[i,a]=u.useState(),c=u.useRef(null),d=ne(t,c,s.onScrollbarXChange);return u.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),x.jsx($s,{"data-orientation":"horizontal",...r,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":an(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,l)=>{if(s.viewport){const m=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),Gs(m,l)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&i&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Kt(i.paddingLeft),paddingEnd:Kt(i.paddingRight)}})}})}),Cu=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=xe(De,e.__scopeScrollArea),[i,a]=u.useState(),c=u.useRef(null),d=ne(t,c,s.onScrollbarYChange);return u.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),x.jsx($s,{"data-orientation":"vertical",...r,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":an(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,l)=>{if(s.viewport){const m=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),Gs(m,l)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&i&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Kt(i.paddingTop),paddingEnd:Kt(i.paddingBottom)}})}})}),[Eu,Hs]=Bs(De),$s=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:r,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:f,onResize:l,...m}=e,h=xe(De,n),[b,p]=u.useState(null),g=ne(t,N=>p(N)),v=u.useRef(null),y=u.useRef(""),w=h.viewport,S=o.content-o.viewport,P=pe(f),A=pe(c),R=ln(l,10);function C(N){if(v.current){const j=N.clientX-v.current.left,F=N.clientY-v.current.top;d({x:j,y:F})}}return u.useEffect(()=>{const N=j=>{const F=j.target;(b==null?void 0:b.contains(F))&&P(j,S)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[w,b,S,P]),u.useEffect(A,[o,A]),mt(b,R),mt(h.content,R),x.jsx(Eu,{scope:n,scrollbar:b,hasThumb:r,onThumbChange:pe(s),onThumbPointerUp:pe(i),onThumbPositionChange:A,onThumbPointerDown:pe(a),children:x.jsx(te.div,{...m,ref:g,style:{position:"absolute",...m.style},onPointerDown:ee(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),v.current=b.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),C(N))}),onPointerMove:ee(e.onPointerMove,C),onPointerUp:ee(e.onPointerUp,N=>{const j=N.target;j.hasPointerCapture(N.pointerId)&&j.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=y.current,h.viewport&&(h.viewport.style.scrollBehavior=""),v.current=null})})})}),Gt="ScrollAreaThumb",Ru=u.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Hs(Gt,e.__scopeScrollArea);return x.jsx(Ke,{present:n||r.hasThumb,children:x.jsx(Pu,{ref:t,...o})})}),Pu=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...r}=e,s=xe(Gt,n),i=Hs(Gt,n),{onThumbPositionChange:a}=i,c=ne(t,l=>i.onThumbChange(l)),d=u.useRef(void 0),f=ln(()=>{d.current&&(d.current(),d.current=void 0)},100);return u.useEffect(()=>{const l=s.viewport;if(l){const m=()=>{if(f(),!d.current){const h=ku(l,a);d.current=h,a()}};return a(),l.addEventListener("scroll",m),()=>l.removeEventListener("scroll",m)}},[s.viewport,f,a]),x.jsx(te.div,{"data-state":i.hasThumb?"visible":"hidden",...r,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:ee(e.onPointerDownCapture,l=>{const h=l.target.getBoundingClientRect(),b=l.clientX-h.left,p=l.clientY-h.top;i.onThumbPointerDown({x:b,y:p})}),onPointerUp:ee(e.onPointerUp,i.onThumbPointerUp)})});Ru.displayName=Gt;var oo="ScrollAreaCorner",Us=u.forwardRef((e,t)=>{const n=xe(oo,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?x.jsx(Au,{...e,ref:t}):null});Us.displayName=oo;var Au=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,r=xe(oo,n),[s,i]=u.useState(0),[a,c]=u.useState(0),d=!!(s&&a);return mt(r.scrollbarX,()=>{var l;const f=((l=r.scrollbarX)==null?void 0:l.offsetHeight)||0;r.onCornerHeightChange(f),c(f)}),mt(r.scrollbarY,()=>{var l;const f=((l=r.scrollbarY)==null?void 0:l.offsetWidth)||0;r.onCornerWidthChange(f),i(f)}),d?x.jsx(te.div,{...o,ref:t,style:{width:s,height:a,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Kt(e){return e?parseInt(e,10):0}function Ys(e,t){const n=e/t;return isNaN(n)?0:n}function an(e){const t=Ys(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function Tu(e,t,n,o="ltr"){const r=an(n),s=r/2,i=t||s,a=r-i,c=n.scrollbar.paddingStart+i,d=n.scrollbar.size-n.scrollbar.paddingEnd-a,f=n.content-n.viewport,l=o==="ltr"?[0,f]:[f*-1,0];return Xs([c,d],l)(e)}function Xo(e,t,n="ltr"){const o=an(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,i=t.content-t.viewport,a=s-o,c=n==="ltr"?[0,i]:[i*-1,0],d=Cn(e,c);return Xs([0,i],[0,a])(d)}function Xs(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Gs(e,t){return e>0&&e<t}var ku=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function r(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,o=window.requestAnimationFrame(r)})(),()=>window.cancelAnimationFrame(o)};function ln(e,t){const n=pe(e),o=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(o.current),[]),u.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function mt(e,t){const n=pe(t);ce(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}var wf=Fs,xf=zs,Sf=Us;export{yf as A,vf as B,Lu as C,bf as D,wf as E,Fu as F,xf as G,Sf as H,ef as I,yu as J,Ru as K,rf as L,zu as M,hf as O,tf as P,Zu as R,Ku as S,Qu as T,of as V,Gu as X,_u as a,qu as b,Oi as c,$u as d,Yu as e,cf as f,Bu as g,df as h,nf as i,sf as j,lf as k,Du as l,af as m,uf as n,Ju as o,Iu as p,ju as q,Uu as r,Wu as s,Mu as t,Hu as u,Xu as v,Vu as w,pf as x,mf as y,gf as z};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="pt-BR" class="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>TermSpeak</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
9
|
+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-BBNxXHaX.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/react-vendor-DQ3p2tNP.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/ui-vendor-Btc0UVaC.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/terminal-CnuCQtKf.js">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/terminal-Beg8tuEN.css">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-G1_MX_Dd.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<div id="root"></div>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|