1import{d as Lu,r as h,e as Iu,f as ju,j as w,h as so,i as io,L as ns}from"./index-iAVlVxvB.js";function Fu(e){const t=Lu({warn:e?.router===void 0}),n=e?.router||t,r=h.useRef(void 0);return Iu(n.stores.__store,o=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const s=ju(r.current,e.select(o));return r.current=s,s}return e.select(o)}return o})}const ta=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Bu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _u=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const rs=e=>{const t=_u(e);return t.charAt(0).toUpperCase()+t.slice(1)};var zu={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"};const Wu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const $u=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>h.createElement("svg",{ref:c,...zu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ta("lucide",o),...!s&&!Wu(a)&&{"aria-hidden":"true"},...a},[...i.map(([l,u])=>h.createElement(l,u)),...Array.isArray(s)?s:[s]]));const de=(e,t)=>{const n=h.forwardRef(({className:r,...o},s)=>h.createElement($u,{ref:s,iconNode:t,className:ta(`lucide-${Bu(rs(e))}`,`lucide-${e}`,r),...o}));return n.displayName=rs(e),n};const Uu=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],Hu=de("book-text",Uu);const Gu=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Ku=de("briefcase",Gu);const Yu=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Xu=de("chart-column",Yu);const qu=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zu=de("chevron-down",qu);const Qu=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],Ju=de("circle-dashed",Qu);const ed=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],td=de("crosshair",ed);const nd=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],rd=de("microscope",nd);const od=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],sd=de("panel-left",od);const id=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sw=de("search",id);const ad=[["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"}]],ld=de("settings",ad);const cd=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],ud=de("trending-up",cd);const dd=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 58,654 bytes, line 1
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fd=de("x",dd),na=h.createContext({});function hd(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const pd=typeof window<"u",md=pd?h.useLayoutEffect:h.useEffect,ao=h.createContext(null);function lo(e,t){e.indexOf(t)===-1&&e.push(t)}function Cn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ae=(e,t,n)=>n>t?t:n<e?e:n;let co=()=>{};const Be={},ra=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),oa=e=>typeof e=="object"&&e!==null,sa=e=>/^0[^.\s]+$/u.test(e);function ia(e){let t;return()=>(t===void 0&&(t=e()),t)}const ue=e=>e,$t=(...e)=>e.reduce((t,n)=>r=>n(t(r))),jt=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class uo{constructor(){this.subscriptions=[]}add(t){return lo(this.subscriptions,t),()=>Cn(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,ce=e=>e/1e3,aa=(e,t)=>t?e*(1e3/t):0,la=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gd=1e-7,yd=12;function vd(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=la(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>gd&&++a<yd);return i}function Ut(e,t,n,r){if(e===t&&n===r)return ue;const o=s=>vd(s,0,1,e,n);return s=>s===0||s===1?s:la(o(s),t,r)}const ca=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ua=e=>t=>1-e(1-t),da=Ut(.33,1.53,.69,.99),fo=ua(da),fa=ca(fo),ha=e=>e>=1?1:(e*=2)<1?.5*fo(e):.5*(2-Math.pow(2,-10*(e-1))),ho=e=>1-Math.sin(Math.acos(e)),pa=ua(ho),ma=ca(ho),bd=Ut(.42,0,1,1),xd=Ut(0,0,.58,1),ga=Ut(.42,0,.58,1),wd=e=>Array.isArray(e)&&typeof e[0]!="number",ya=e=>Array.isArray(e)&&typeof e[0]=="number",Sd={linear:ue,easeIn:bd,easeInOut:ga,easeOut:xd,circIn:ho,circInOut:ma,circOut:pa,backIn:fo,backInOut:fa,backOut:da,anticipate:ha},Td=e=>typeof e=="string",os=e=>{if(ya(e)){co(e.length===4);const[t,n,r,o]=e;return Ut(t,n,r,o)}else if(Td(e))return Sd[e];return e},Zt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Cd(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){i.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const g=f&&o?n:r;return d&&i.add(u),g.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(a=u,o){s=!0;return}o=!0;const d=n;n=r,r=d,n.forEach(c),n.clear(),o=!1,s&&(s=!1,l.process(u))}};return l}const Pd=40;function va(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Zt.reduce((x,S)=>(x[S]=Cd(s),x),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:g}=i,m=()=>{const x=Be.useManualTiming,S=x?o.timestamp:performance.now();n=!1,x||(o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,Pd),1)),o.timestamp=S,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),f.process(o),p.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:Zt.reduce((x,S)=>{const C=i[S];return x[S]=(A,P=!1,T=!1)=>(n||y(),C.schedule(A,P,T)),x},{}),cancel:x=>{for(let S=0;S<Zt.length;S++)i[Zt[S]].cancel(x)},state:o,steps:i}}const{schedule:H,cancel:_e,state:J,steps:Jn}=va(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0);let fn;function Ad(){fn=void 0}const te={now:()=>(fn===void 0&&te.set(J.isProcessing||Be.useManualTiming?J.timestamp:performance.now()),fn),set:e=>{fn=e,queueMicrotask(Ad)}},ba=e=>t=>typeof t=="string"&&t.startsWith(e),xa=ba("--"),Ed=ba("var(--"),po=e=>Ed(e)?Rd.test(e.split("/*")[0].trim()):!1,Rd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ss(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ft={...wt,transform:e=>Ae(0,1,e)},Qt={...wt,default:1},Vt=e=>Math.round(e*1e5)/1e5,mo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kd(e){return e==null}const Md=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,go=(e,t)=>n=>!!(typeof n=="string"&&Md.test(n)&&n.startsWith(e)||t&&!kd(n)&&Object.prototype.hasOwnProperty.call(n,t)),wa=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(mo);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Dd=e=>Ae(0,255,e),er={...wt,transform:e=>Math.round(Dd(e))},qe={test:go("rgb","red"),parse:wa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+er.transform(e)+", "+er.transform(t)+", "+er.transform(n)+", "+Vt(Ft.transform(r))+")"};function Od(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ar={test:go("#"),parse:Od,transform:qe.transform},Ht=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Me=Ht("deg"),Ce=Ht("%"),D=Ht("px"),Vd=Ht("vh"),Nd=Ht("vw"),is={...Ce,parse:e=>Ce.parse(e)/100,transform:e=>Ce.transform(e*100)},dt={test:go("hsl","hue"),parse:wa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ce.transform(Vt(t))+", "+Ce.transform(Vt(n))+", "+Vt(Ft.transform(r))+")"},Y={test:e=>qe.test(e)||Ar.test(e)||dt.test(e),parse:e=>qe.test(e)?qe.parse(e):dt.test(e)?dt.parse(e):Ar.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qe.transform(e):dt.transform(e),getAnimatableNone:e=>{const t=Y.parse(e);return t.alpha=0,Y.transform(t)}},Ld=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Id(e){return isNaN(e)&&typeof e=="string"&&(e.match(mo)?.length||0)+(e.match(Ld)?.length||0)>0}const Sa="number",Ta="color",jd="var",Fd="var(",as="${}",Bd=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(Bd,c=>(Y.test(c)?(r.color.push(s),o.push(Ta),n.push(Y.parse(c))):c.startsWith(Fd)?(r.var.push(s),o.push(jd),n.push(c)):(r.number.push(s),o.push(Sa),n.push(parseFloat(c))),++s,as)).split(as);return{values:n,split:a,indexes:r,types:o}}function _d(e){return gt(e).values}function Ca({split:e,types:t}){const n=e.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],r[s]!==void 0){const i=t[s];i===Sa?o+=Vt(r[s]):i===Ta?o+=Y.transform(r[s]):o+=r[s]}return o}}function zd(e){return Ca(gt(e))}const Wd=e=>typeof e=="number"?0:Y.test(e)?Y.getAnimatableNone(e):e,$d=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Wd(e);function Ud(e){const t=gt(e);return Ca(t)(t.values.map((r,o)=>$d(r,t.split[o])))}const pe={test:Id,parse:_d,createTransformer:zd,getAnimatableNone:Ud};function tr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hd({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=tr(c,a,e+1/3),s=tr(c,a,e),i=tr(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function Pn(e,t){return n=>n>0?t:e}const U=(e,t,n)=>e+(t-e)*n,nr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Gd=[Ar,qe,dt],Kd=e=>Gd.find(t=>t.test(e));function ls(e){const t=Kd(e);if(!t)return!1;let n=t.parse(e);return t===dt&&(n=Hd(n)),n}const cs=(e,t)=>{const n=ls(e),r=ls(t);if(!n||!r)return Pn(e,t);const o={...n};return s=>(o.red=nr(n.red,r.red,s),o.green=nr(n.green,r.green,s),o.blue=nr(n.blue,r.blue,s),o.alpha=U(n.alpha,r.alpha,s),qe.transform(o))},Er=new Set(["none","hidden"]);function Yd(e,t){return Er.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Xd(e,t){return n=>U(e,t,n)}function yo(e){return typeof e=="number"?Xd:typeof e=="string"?po(e)?Pn:Y.test(e)?cs:Qd:Array.isArray(e)?Pa:typeof e=="object"?Y.test(e)?cs:qd:Pn}function Pa(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>yo(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function qd(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=yo(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function Zd(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const Qd=(e,t)=>{const n=pe.createTransformer(t),r=gt(e),o=gt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Er.has(e)&&!o.values.length||Er.has(t)&&!r.values.length?Yd(e,t):$t(Pa(Zd(r,o),o.values),n):Pn(e,t)};function Aa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?U(e,t,n):yo(e)(e,t)}const Jd=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>_e(t),now:()=>J.isProcessing?J.timestamp:te.now()}},Ea=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},An=2e4;function vo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<An;)t+=n,r=e.next(t);return t>=An?1/0:t}function ef(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(vo(r),An);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:ce(o)}}const G={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Rr(e,t){return e*Math.sqrt(1-t*t)}const tf=12;function nf(e,t,n){let r=n;for(let o=1;o<tf;o++)r=r-e(r)/t(r);return r}const rr=.001;function rf({duration:e=G.duration,bounce:t=G.bounce,velocity:n=G.velocity,mass:r=G.mass}){let o,s,i=1-t;i=Ae(G.minDamping,G.maxDamping,i),e=Ae(G.minDuration,G.maxDuration,ce(e)),i<1?(o=l=>{const u=l*i,d=u*e,f=u-n,p=Rr(l,i),g=Math.exp(-d);return rr-f/p*g},s=l=>{const d=l*i*e,f=d*n+n,p=Math.pow(i,2)*Math.pow(l,2)*e,g=Math.exp(-d),m=Rr(Math.pow(l,2),i);return(-o(l)+rr>0?-1:1)*((f-p)*g)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-rr+u*d},s=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=nf(o,s,a);if(e=ie(e),isNaN(c))return{stiffness:G.stiffness,damping:G.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:i*2*Math.sqrt(r*l),duration:e}}}const of=["duration","bounce"],sf=["stiffness","damping","mass"];function us(e,t){return t.some(n=>e[n]!==void 0)}function af(e){let t={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...e};if(!us(e,sf)&&us(e,of))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*Ae(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:G.mass,stiffness:o,damping:s}}else{const n=rf({...e,velocity:0});t={...t,...n,mass:G.mass},t.isResolvedFromDuration=!0}return t}function En(e=G.visualDuration,t=G.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=af({...n,velocity:-ce(n.velocity||0)}),g=f||0,m=l/(2*Math.sqrt(c*u)),y=i-s,v=ce(Math.sqrt(c/u)),b=Math.abs(y)<5;r||(r=b?G.restSpeed.granular:G.restSpeed.default),o||(o=b?G.restDelta.granular:G.restDelta.default);let x,S,C,A,P,T;if(m<1)C=Rr(v,m),A=(g+m*v*y)/C,x=E=>{const N=Math.exp(-m*v*E);return i-N*(A*Math.sin(C*E)+y*Math.cos(C*E))},P=m*v*A+y*C,T=m*v*y-A*C,S=E=>Math.exp(-m*v*E)*(P*Math.sin(C*E)+T*Math.cos(C*E));else if(m===1){x=N=>i-Math.exp(-v*N)*(y+(g+v*y)*N);const E=g+v*y;S=N=>Math.exp(-v*N)*(v*E*N-g)}else{const E=v*Math.sqrt(m*m-1);x=F=>{const W=Math.exp(-m*v*F),L=Math.min(E*F,300);return i-W*((g+m*v*y)*Math.sinh(L)+E*y*Math.cosh(L))/E};const N=(g+m*v*y)/E,j=m*v*N-y*E,z=m*v*y-N*E;S=F=>{const W=Math.exp(-m*v*F),L=Math.min(E*F,300);return W*(j*Math.sinh(L)+z*Math.cosh(L))}}const V={calculatedDuration:p&&d||null,velocity:E=>ie(S(E)),next:E=>{if(!p&&m<1){const j=Math.exp(-m*v*E),z=Math.sin(C*E),F=Math.cos(C*E),W=i-j*(A*z+y*F),L=ie(j*(P*z+T*F));return a.done=Math.abs(L)<=r&&Math.abs(i-W)<=o,a.value=a.done?i:W,a}const N=x(E);if(p)a.done=E>=d;else{const j=ie(S(E));a.done=Math.abs(j)<=r&&Math.abs(i-N)<=o}return a.value=a.done?i:N,a},toString:()=>{const E=Math.min(vo(V),An),N=Ea(j=>V.next(E*j).value,E,30);return E+"ms "+N},toTransition:()=>{}};return V}En.applyToOptions=e=>{const t=ef(e,100,En);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};const lf=5;function Ra(e,t,n){const r=Math.max(t-lf,0);return aa(n-e(r),t-r)}function kr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=T=>a!==void 0&&T<a||c!==void 0&&T>c,g=T=>a===void 0?c:c===void 0||Math.abs(a-T)<Math.abs(c-T)?a:c;let m=n*t;const y=d+m,v=i===void 0?y:i(y);v!==y&&(m=v-d);const b=T=>-m*Math.exp(-T/r),x=T=>v+b(T),S=T=>{const V=b(T),E=x(T);f.done=Math.abs(V)<=l,f.value=f.done?v:E};let C,A;const P=T=>{p(f.value)&&(C=T,A=En({keyframes:[f.value,g(f.value)],velocity:Ra(x,T,f.value),damping:o,stiffness:s,restDelta:l,restSpeed:u}))};return P(0),{calculatedDuration:null,next:T=>{let V=!1;return!A&&C===void 0&&(V=!0,S(T),P(T)),C!==void 0&&T>=C?A.next(T-C):(!V&&S(T),f)}}}function cf(e,t,n){const r=[],o=n||Be.mix||Aa,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||ue:t;a=$t(c,a)}r.push(a)}return r}function uf(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(co(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=cf(t,r,o),c=a.length,l=u=>{if(i&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=jt(e[d],e[d+1],u);return a[d](f)};return n?u=>l(Ae(e[0],e[s-1],u)):l}function df(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=jt(0,t,r);e.push(U(n,1,o))}}function ff(e){const t=[0];return df(t,e.length-1),t}function hf(e,t){return e.map(n=>n*t)}function pf(e,t){return e.map(()=>t||ga).splice(0,e.length-1)}function Nt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=wd(r)?r.map(os):os(r),s={done:!1,value:t[0]},i=hf(n&&n.length===t.length?n:ff(t),e),a=uf(i,t,{ease:Array.isArray(o)?o:pf(t,o)});return{calculatedDuration:e,next:c=>(s.value=a(c),s.done=c>=e,s)}}const mf=e=>e!==null;function _n(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(mf),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const gf={decay:kr,inertia:kr,tween:Nt,keyframes:Nt,spring:En};function ka(e){typeof e.type=="string"&&(e.type=gf[e.type])}class bo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const yf=e=>e/100;class Rn extends bo{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==te.now()&&this.tick(te.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ka(t);const{type:n=Nt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const c=n||Nt;c!==Nt&&typeof a[0]!="number"&&(this.mixKeyframes=$t(yf,Aa(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-i})),l.calculatedDuration===null&&(l.calculatedDuration=vo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,S=r;if(d){const T=Math.min(this.currentTime,o)/a;let V=Math.floor(T),E=T%1;!E&&T>=1&&(E=1),E===1&&V--,V=Math.min(V,d+1),V%2&&(f==="reverse"?(E=1-E,p&&(E-=p/a)):f==="mirror"&&(S=i)),x=Ae(0,1,E)*a}let C;b?(this.delayState.value=u[0],C=this.delayState):C=S.next(x),s&&!b&&(C.value=s(C.value));let{done:A}=C;!b&&c!==null&&(A=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return P&&g!==kr&&(C.value=_n(u,this.options,y,this.speed)),m&&m(C.value),P&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return ce(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ce(t)}get time(){return ce(this.currentTime)}set time(t){t=ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Ra(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(te.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ce(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Jd,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(te.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function vf(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ze=e=>e*180/Math.PI,Mr=e=>{const t=Ze(Math.atan2(e[1],e[0]));return Dr(t)},bf={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Mr,rotateZ:Mr,skewX:e=>Ze(Math.atan(e[1])),skewY:e=>Ze(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Dr=e=>(e=e%360,e<0&&(e+=360),e),ds=Mr,fs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fs,scaleY:hs,scale:e=>(fs(e)+hs(e))/2,rotateX:e=>Dr(Ze(Math.atan2(e[6],e[5]))),rotateY:e=>Dr(Ze(Math.atan2(-e[2],e[0]))),rotateZ:ds,rotate:ds,skewX:e=>Ze(Math.atan(e[4])),skewY:e=>Ze(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Or(e){return e.includes("scale")?1:0}function Vr(e,t){if(!e||e==="none")return Or(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=xf,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=bf,o=a}if(!o)return Or(t);const s=r[t],i=o[1].split(",").map(Sf);return typeof s=="function"?s(i):i[s]}const wf=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Vr(n,t)};function Sf(e){return parseFloat(e.trim())}const St=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tt=new Set([...St,"pathRotation"]),ps=e=>e===wt||e===D,Tf=new Set(["x","y","z"]),Cf=St.filter(e=>!Tf.has(e));function Pf(e){const t=[];return Cf.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Vr(t,"x"),y:(e,{transform:t})=>Vr(t,"y")};Fe.translateX=Fe.x;Fe.translateY=Fe.y;const Qe=new Set;let Nr=!1,Lr=!1,Ir=!1;function Ma(){if(Lr){const e=Array.from(Qe).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Pf(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Lr=!1,Nr=!1,Qe.forEach(e=>e.complete(Ir)),Qe.clear()}function Da(){Qe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Lr=!0)})}function Af(){Ir=!0,Da(),Ma(),Ir=!1}class xo{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Qe.add(this),Nr||(Nr=!0,H.read(Da),H.resolveKeyframes(Ma))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}vf(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qe.delete(this)}cancel(){this.state==="scheduled"&&(Qe.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ef=e=>e.startsWith("--");function Oa(e,t,n){Ef(t)?e.style.setProperty(t,n):e.style[t]=n}const Rf={};function wo(e,t){const n=ia(e);return()=>Rf[t]??n()}const kf=wo(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),iw=wo(()=>window.ViewTimeline!==void 0,"viewTimeline"),Va=wo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ot=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ms={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ot([0,.65,.55,1]),circOut:Ot([.55,0,1,.45]),backIn:Ot([.31,.01,.66,-.59]),backOut:Ot([.33,1.53,.69,.99])};function Na(e,t){if(e)return typeof e=="function"?Va()?Ea(e,t):"ease-out":ya(e)?Ot(e):Array.isArray(e)?e.map(n=>Na(n,t)||ms.easeOut):ms[e]}function Mf(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=Na(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(u,f)}function La(e){return typeof e=="function"&&"applyToOptions"in e}function Df({type:e,...t}){return La(e)&&Va()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ia extends bo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,co(typeof t.type!="string");const l=Df(t);this.animation=Mf(n,r,o,l,s),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=_n(o,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Oa(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ce(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ce(t)}get time(){return ce(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ie(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&kf()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ue):o(this)}}const ja={anticipate:ha,backInOut:fa,circInOut:ma};function Of(e){return e in ja}function Vf(e){typeof e.ease=="string"&&Of(e.ease)&&(e.ease=ja[e.ease])}const or=10;class Nf extends Ia{constructor(t){Vf(t),ka(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Rn({...i,autoplay:!1}),c=Math.max(or,te.now()-this.startTime),l=Ae(0,or,c-or),u=a.sample(c).value,{name:d}=this.options;s&&d&&Oa(s,d,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const gs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pe.test(e)||e==="0")&&!e.startsWith("url("));function Lf(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function If(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=gs(o,t),a=gs(s,t);return!i||!a?!1:Lf(e)||(n==="spring"||La(n))&&r}function jr(e){e.duration=0,e.type="keyframes"}const Fa=new Set(["opacity","clipPath","filter","transform"]),jf=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ff(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&jf.test(e[t]))return!0;return!1}const Bf=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_f=ia(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zf(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _f()&&n&&(Fa.has(n)||Bf.has(n)&&Ff(a))&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const Wf=40;class $f extends bo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=te.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:c,motionValue:l,element:u,...d},p=u?.KeyframeResolver||xo;this.keyframeResolver=new p(a,(g,m,y)=>this.onKeyframesResolved(g,m,f,!y),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=te.now();let d=!0;If(t,s,i,a)||(d=!1,(Be.instantAnimations||!c)&&u?.(_n(t,r,n)),t[0]=t[t.length-1],jr(r),r.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Wf?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=d&&!l&&zf(p),m=p.motionValue?.owner?.current;let y;if(g)try{y=new Nf({...p,element:m})}catch{y=new Rn(p)}else y=new Rn(p);y.finished.then(()=>{this.notifyFinished()}).catch(ue),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Af()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ba(e,t,n,r=0,o=1){const s=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}const ys=30,Uf=e=>!isNaN(parseFloat(e)),vs={current:void 0};class Hf{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=te.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=te.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Uf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new uo);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return vs.current&&vs.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=te.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ys)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ys);return aa(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yt(e,t){return new Hf(e,t)}function _a(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function So(e,t){const n=e?.[t]??e?.default??e;return n!==e?_a(n,e):n}const Gf={type:"spring",stiffness:500,damping:25,restSpeed:10},Kf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yf={type:"keyframes",duration:.8},Xf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qf=(e,{keyframes:t})=>t.length>2?Yf:Tt.has(e)?e.startsWith("scale")?Kf(t[1]):Gf:Xf,Zf=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Qf(e){for(const t in e)if(!Zf.has(t))return!0;return!1}const To=(e,t,n,r={},o,s)=>i=>{const a=So(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ie(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};Qf(a)||Object.assign(u,qf(e,u)),u.duration&&(u.duration=ie(u.duration)),u.repeatDelay&&(u.repeatDelay=ie(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jr(u),u.delay===0&&(d=!0)),(Be.instantAnimations||Be.skipAnimations||o?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,jr(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=_n(u.keyframes,a);if(f!==void 0){H.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new Rn(u):new $f(u)},Jf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eh(e){const t=Jf.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function za(e,t,n=1){const[r,o]=eh(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return ra(i)?parseFloat(i):i}return po(o)?za(o,t,n+1):o}function bs(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Co(e,t,n,r){if(typeof t=="function"){const[o,s]=bs(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=bs(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Je(e,t,n){const r=e.getProps();return Co(r,t,n!==void 0?n:r.custom,e)}const Wa=new Set(["width","height","top","left","right","bottom",...St]),Fr=e=>Array.isArray(e);function th(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yt(n))}function nh(e){return Fr(e)?e[e.length-1]||0:e}function rh(e,t){const n=Je(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=nh(s[i]);th(e,i,a)}}const ee=e=>!!(e&&e.getVelocity);function oh(e){return!!(ee(e)&&e.add)}function Br(e,t){const n=e.getValue("willChange");if(oh(n))return n.add(t);if(!n&&Be.WillChange){const r=new Be.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Po(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sh="framerAppearId",$a="data-"+Po(sh);function Ua(e){return e.props[$a]}function ih({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ha(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s,transitionEnd:i,...a}=t;const c=e.getDefaultTransition();s=s?_a(s,c):c;const l=s?.reduceMotion,u=s?.skipAnimations;r&&(s=r);const d=[],f=o&&e.animationState&&e.animationState.getState()[o],p=s?.path;p&&p.animateVisualElement(e,a,s,n,d);for(const g in a){const m=e.getValue(g,e.latestValues[g]??null),y=a[g];if(y===void 0||f&&ih(f,g))continue;const v={delay:n,...So(s||{},g)};u&&(v.skipAnimations=!0);const b=m.get();if(b!==void 0&&!m.isAnimating()&&!Array.isArray(y)&&y===b&&!v.velocity){H.update(()=>m.set(y));continue}let x=!1;if(window.MotionHandoffAnimation){const A=Ua(e);if(A){const P=window.MotionHandoffAnimation(A,g,H);P!==null&&(v.startTime=P,x=!0)}}Br(e,g);const S=l??e.shouldReduceMotion;m.start(To(g,m,y,S&&Wa.has(g)?{type:!1}:v,e,x));const C=m.animation;C&&d.push(C)}if(i){const g=()=>H.update(()=>{i&&rh(e,i)});d.length?Promise.all(d).then(g):g()}return d}function _r(e,t,n={}){const r=Je(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ha(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:d}=o;return ah(e,t,c,l,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,l]=a==="beforeChildren"?[s,i]:[i,s];return c().then(()=>l())}else return Promise.all([s(),i(n.delay)])}function ah(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(_r(c,t,{...i,delay:n+(typeof r=="function"?0:r)+Ba(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function lh(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>_r(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=_r(e,t,n);else{const o=typeof t=="function"?Je(e,t,n.custom):t;r=Promise.all(Ha(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ch={test:e=>e==="auto",parse:e=>e},Ga=e=>t=>t.test(e),Ka=[wt,D,Ce,Me,Nd,Vd,ch],xs=e=>Ka.find(Ga(e));function uh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sa(e):!0}const dh=new Set(["brightness","contrast","saturate","opacity"]);function fh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mo)||[];if(!r)return e;const o=n.replace(r,"");let s=dh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const hh=/\b([a-z-]*)\(.*?\)/gu,zr={...pe,getAnimatableNone:e=>{const t=e.match(hh);return t?t.map(fh).join(" "):e}},Wr={...pe,getAnimatableNone:e=>{const t=pe.parse(e);return pe.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},ws={...wt,transform:Math.round},ph={rotate:Me,pathRotation:Me,rotateX:Me,rotateY:Me,rotateZ:Me,scale:Qt,scaleX:Qt,scaleY:Qt,scaleZ:Qt,skew:Me,skewX:Me,skewY:Me,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Ft,originX:is,originY:is,originZ:D},kn={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,...ph,zIndex:ws,fillOpacity:Ft,strokeOpacity:Ft,numOctaves:ws},mh={...kn,color:Y,backgroundColor:Y,outlineColor:Y,fill:Y,stroke:Y,borderColor:Y,borderTopColor:Y,borderRightColor:Y,borderBottomColor:Y,borderLeftColor:Y,filter:zr,WebkitFilter:zr,mask:Wr,WebkitMask:Wr},Ya=e=>mh[e],gh=new Set([zr,Wr]);function Xa(e,t){let n=Ya(e);return gh.has(n)||(n=pe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yh=new Set(["auto","none","0"]);function vh(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!yh.has(s)&>(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=Xa(n,o)}class bh extends xo{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),po(d))){const f=za(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Wa.has(r)||t.length!==2)return;const[o,s]=t,i=xs(o),a=xs(s),c=ss(o),l=ss(s);if(c!==l&&Fe[r]){this.needsMeasurement=!0;return}if(i!==a)if(ps(i)&&ps(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Fe[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||uh(t[o]))&&r.push(o);r.length&&vh(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fe[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=Fe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function qa(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const $r=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function xh(e){return oa(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ao,cancel:aw}=va(queueMicrotask,!1),he={x:!1,y:!1};function Za(){return he.x||he.y}function wh(e){return e==="x"||e==="y"?he[e]?null:(he[e]=!0,()=>{he[e]=!1}):he.x||he.y?null:(he.x=he.y=!0,()=>{he.x=he.y=!1})}function Qa(e,t){const n=qa(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Sh(e){return!(e.pointerType==="touch"||Za())}function Th(e,t,n={}){const[r,o,s]=Qa(e,n);return r.forEach(i=>{let a=!1,c=!1,l;const u=()=>{i.removeEventListener("pointerleave",g)},d=y=>{l&&(l(y),l=void 0),u()},f=y=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,d(y))},p=()=>{a=!0,window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",f,o)},g=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}d(y)}},m=y=>{if(!Sh(y))return;c=!1;const v=t(i,y);typeof v=="function"&&(l=v,i.addEventListener("pointerleave",g,o))};i.addEventListener("pointerenter",m,o),i.addEventListener("pointerdown",p,o)}),s}const Ja=(e,t)=>t?e===t?!0:Ja(e,t.parentElement):!1,Eo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ch=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ph(e){return Ch.has(e.tagName)||e.isContentEditable===!0}const Ah=new Set(["INPUT","SELECT","TEXTAREA"]);function Eh(e){return Ah.has(e.tagName)||e.isContentEditable===!0}const hn=new WeakSet;function Ss(e){return t=>{t.key==="Enter"&&e(t)}}function sr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Rh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ss(()=>{if(hn.has(n))return;sr(n,"down");const o=Ss(()=>{sr(n,"up")}),s=()=>sr(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ts(e){return Eo(e)&&!Za()}const Cs=new WeakSet;function kh(e,t,n={}){const[r,o,s]=Qa(e,n),i=a=>{const c=a.currentTarget;if(!Ts(a)||Cs.has(a))return;hn.add(c),n.stopPropagation&&Cs.add(a);const l=t(c,a),u=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),hn.has(c)&&hn.delete(c),Ts(p)&&typeof l=="function"&&l(p,{success:g})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||Ja(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),xh(a)&&(a.addEventListener("focus",l=>Rh(l,o)),!Ph(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Ro(e){return oa(e)&&"ownerSVGElement"in e}const pn=new WeakMap;let mn;const el=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Ro(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Mh=el("inline","width","offsetWidth"),Dh=el("block","height","offsetHeight");function Oh({target:e,borderBoxSize:t}){pn.get(e)?.forEach(n=>{n(e,{get width(){return Mh(e,t)},get height(){return Dh(e,t)}})})}function Vh(e){e.forEach(Oh)}function Nh(){typeof ResizeObserver>"u"||(mn=new ResizeObserver(Vh))}function Lh(e,t){mn||Nh();const n=qa(e);return n.forEach(r=>{let o=pn.get(r);o||(o=new Set,pn.set(r,o)),o.add(t),mn?.observe(r)}),()=>{n.forEach(r=>{const o=pn.get(r);o?.delete(t),o?.size||mn?.unobserve(r)})}}const gn=new Set;let ft;function Ih(){ft=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};gn.forEach(t=>t(e))},window.addEventListener("resize",ft)}function jh(e){return gn.add(e),ft||Ih(),()=>{gn.delete(e),!gn.size&&typeof ft=="function"&&(window.removeEventListener("resize",ft),ft=void 0)}}function Ps(e,t){return typeof e=="function"?jh(e):Lh(e,t)}function Fh(e){return Ro(e)&&e.tagName==="svg"}const Bh=[...Ka,Y,pe],_h=e=>Bh.find(Ga(e)),As=()=>({translate:0,scale:1,origin:0,originPoint:0}),ht=()=>({x:As(),y:As()}),Es=()=>({min:0,max:0}),q=()=>({x:Es(),y:Es()}),zh=new WeakMap;function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Bt(e){return typeof e=="string"||Array.isArray(e)}const ko=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mo=["initial",...ko];function Wn(e){return zn(e.animate)||Mo.some(t=>Bt(e[t]))}function tl(e){return!!(Wn(e)||e.variants)}function Wh(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ee(o))e.addValue(r,o);else if(ee(s))e.addValue(r,yt(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,yt(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ur={current:null},nl={current:!1},$h=typeof window<"u";function Uh(){if(nl.current=!0,!!$h)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ur.current=e.matches;e.addEventListener("change",t),t()}else Ur.current=!1}const Rs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Mn={};function rl(e){Mn=e}function Hh(){return Mn}class Gh{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:i,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=te.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,H.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=Wn(n),this.isVariantNode=tl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const g=f[p];l[p]!==void 0&&ee(g)&&g.set(l[p])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,zh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(nl.current||Uh(),this.shouldReduceMotion=Ur.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),_e(this.notifyUpdate),_e(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Fa.has(t)&&this.current instanceof HTMLElement){const{factory:i,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,d=new Ia({element:this.current,name:t,keyframes:a,times:c,ease:l,duration:ie(u)}),f=i(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=Tt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mn){const n=Mn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Rs.length;r++){const o=Rs[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=Wh(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ra(r)||sa(r))?r=parseFloat(r):!_h(r)&&pe.test(n)&&(r=Xa(t,n)),this.setBaseTarget(t,ee(r)?r.get():r)),ee(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Co(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ee(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new uo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ao.render(this.render)}}class ol extends Gh{constructor(){super(...arguments),this.KeyframeResolver=bh}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ee(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class $e{constructor(t){this.isMounted=!1,this.node=t}update(){}}function sl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Kh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yh(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ir(e){return e===void 0||e===1}function Hr({scale:e,scaleX:t,scaleY:n}){return!ir(e)||!ir(t)||!ir(n)}function Xe(e){return Hr(e)||il(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function il(e){return ks(e.x)||ks(e.y)}function ks(e){return e&&e!=="0%"}function Dn(e,t,n){const r=e-n,o=t*r;return n+o}function Ms(e,t,n,r,o){return o!==void 0&&(e=Dn(e,o,r)),Dn(e,n,r)+t}function Gr(e,t=0,n=1,r,o){e.min=Ms(e.min,t,n,r,o),e.max=Ms(e.max,t,n,r,o)}function al(e,{x:t,y:n}){Gr(e.x,t.translate,t.scale,t.originPoint),Gr(e.y,n.translate,n.scale,n.originPoint)}const Ds=.999999999999,Os=1.0000000000001;function Xh(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(we(e.x,-s.scroll.offset.x),we(e.y,-s.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,al(e,i)),r&&Xe(s.latestValues)&&yn(e,s.latestValues,s.layout?.layoutBox))}t.x<Os&&t.x>Ds&&(t.x=1),t.y<Os&&t.y>Ds&&(t.y=1)}function we(e,t){e.min+=t,e.max+=t}function Vs(e,t,n,r,o=.5){const s=U(e.min,e.max,o);Gr(e,t,n,s,r)}function Ns(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function yn(e,t,n){const r=n??e;Vs(e.x,Ns(t.x,r.x),t.scaleX,t.scale,t.originX),Vs(e.y,Ns(t.y,r.y),t.scaleY,t.scale,t.originY)}function ll(e,t){return sl(Yh(e.getBoundingClientRect(),t))}function qh(e,t,n){const r=ll(e,n),{scroll:o}=t;return o&&(we(r.x,o.offset.x),we(r.y,o.offset.y)),r}const Zh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Qh=St.length;function Jh(e,t,n){let r="",o=!0;for(let i=0;i<Qh;i++){const a=St[i],c=e[a];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(a.startsWith("scale")?1:0);else{const u=parseFloat(c);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=$r(c,kn[a]);if(!l){o=!1;const d=Zh[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const s=e.pathRotation;return s&&(o=!1,r+=`rotate(${$r(s,kn.pathRotation)}) `),r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}
vendor: 4,143 bytes, line 1
1function Do(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const c in t){const l=t[c];if(Tt.has(c)){i=!0;continue}else if(xa(c)){o[c]=l;continue}else{const u=$r(l,kn[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(t.transform||(i||n?r.transform=Jh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${l} ${u}`}}function cl(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Ls(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Mt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=Ls(e,t.target.x),r=Ls(e,t.target.y);return`${n}% ${r}%`}},ep={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=pe.parse(e);if(o.length>5)return r;const s=pe.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=c;const l=U(a,c,.5);return typeof o[2+i]=="number"&&(o[2+i]/=l),typeof o[3+i]=="number"&&(o[3+i]/=l),s(o)}},Kr={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:ep};function ul(e,{layout:t,layoutId:n}){return Tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Kr[e]||e==="opacity")}function Oo(e,t,n){const r=e.style,o=t?.style,s={};if(!r)return s;for(const i in r)(ee(r[i])||o&&ee(o[i])||ul(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(s[i]=r[i]);return s}function tp(e){return window.getComputedStyle(e)}class np extends ol{constructor(){super(...arguments),this.type="html",this.renderInstance=cl}readValueFromInstance(t,n){if(Tt.has(n))return this.projection?.isProjecting?Or(n):wf(t,n);{const r=tp(t),o=(xa(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ll(t,n)}build(t,n,r){Do(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Oo(t,n,r)}}const rp={offset:"stroke-dashoffset",array:"stroke-dasharray"},op={offset:"strokeDashoffset",array:"strokeDasharray"};function sp(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?rp:op;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const ip=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function dl(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},c,l,u){if(Do(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const p of ip)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&sp(d,o,s,i,!1)}const fl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),hl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ap(e,t,n,r){cl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(fl.has(o)?o:Po(o),t.attrs[o])}function pl(e,t,n){const r=Oo(e,t,n);for(const o in e)if(ee(e[o])||ee(t[o])){const s=St.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}class lp extends ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Tt.has(n)){const r=Ya(n);return r&&r.default||0}return n=fl.has(n)?n:Po(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pl(t,n,r)}build(t,n,r){dl(t,n,this.isSVGTag,r.transformTemplate,r.style)}
vendor: 35,032 bytes, line 1
1renderInstance(t,n,r,o){ap(t,n,r,o)}mount(t){this.isSVGTag=hl(t.tagName),super.mount(t)}}const cp=Mo.length;function ml(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ml(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cp;n++){const r=Mo[n],o=e.props[r];(Bt(o)||o===!1)&&(t[r]=o)}return t}function gl(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const up=[...ko].reverse(),dp=ko.length;function fp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lh(e,n,r)))}function hp(e){let t=fp(e),n=Is(),r=!0,o=!1;const s=l=>(u,d)=>{const f=Je(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:g,...m}=f;u={...u,...m,...g}}return u};function i(l){t=l(e)}function a(l){const{props:u}=e,d=ml(e.parent)||{},f=[],p=new Set;let g={},m=1/0;for(let v=0;v<dp;v++){const b=up[v],x=n[b],S=u[b]!==void 0?u[b]:d[b],C=Bt(S),A=b===l?x.isActive:null;A===!1&&(m=v);let P=S===d[b]&&S!==u[b]&&C;if(P&&(r||o)&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...g},!x.isActive&&A===null||!S&&!x.prevProp||zn(S)||typeof S=="boolean")continue;if(b==="exit"&&x.isActive&&A!==!0){x.prevResolvedValues&&(g={...g,...x.prevResolvedValues});continue}const T=pp(x.prevProp,S);let V=T||b===l&&x.isActive&&!P&&C||v>m&&C,E=!1;const N=Array.isArray(S)?S:[S];let j=N.reduce(s(b),{});A===!1&&(j={});const{prevResolvedValues:z={}}=x,F={...z,...j},W=O=>{V=!0,p.has(O)&&(E=!0,p.delete(O)),x.needsAnimating[O]=!0;const B=e.getValue(O);B&&(B.liveStyle=!1)};for(const O in F){const B=j[O],R=z[O];if(g.hasOwnProperty(O))continue;let le=!1;Fr(B)&&Fr(R)?le=!gl(B,R)||T:le=B!==R,le?B!=null?W(O):p.add(O):B!==void 0&&p.has(O)?W(O):x.protectedKeys[O]=!0}x.prevProp=S,x.prevResolvedValues=j,x.isActive&&(g={...g,...j}),(r||o)&&e.blockInitialAnimation&&(V=!1);const L=P&&T;V&&(!L||E)&&f.push(...N.map(O=>{const B={type:b};if(typeof O=="string"&&(r||o)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,le=Je(R,O);if(R.enteringChildren&&le){const{delayChildren:He}=le.transition||{};B.delay=Ba(R.enteringChildren,e,He)}}return{animation:O,options:B}}))}if(p.size){const v={};if(typeof u.initial!="boolean"){const b=Je(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(v.transition=b.transition)}p.forEach(b=>{const x=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),v[b]=x??null}),f.push({animation:v})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,o=!1,y?t(f):Promise.resolve()}function c(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,u)),n[l].isActive=u;const d=a(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Is(),o=!0}}}function pp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gl(t,e):!1}function Ge(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Is(){return{animate:Ge(!0),whileInView:Ge(),whileHover:Ge(),whileTap:Ge(),whileDrag:Ge(),whileFocus:Ge(),exit:Ge()}}function Yr(e,t){e.min=t.min,e.max=t.max}function fe(e,t){Yr(e.x,t.x),Yr(e.y,t.y)}function js(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const yl=1e-4,mp=1-yl,gp=1+yl,vl=.01,yp=0-vl,vp=0+vl;function ne(e){return e.max-e.min}function bp(e,t,n){return Math.abs(e-t)<=n}function Fs(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=ne(n)/ne(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mp&&e.scale<=gp||isNaN(e.scale))&&(e.scale=1),(e.translate>=yp&&e.translate<=vp||isNaN(e.translate))&&(e.translate=0)}function Lt(e,t,n,r){Fs(e.x,t.x,n.x,r?r.originX:void 0),Fs(e.y,t.y,n.y,r?r.originY:void 0)}function Bs(e,t,n,r=0){const o=r?U(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+ne(t)}function xp(e,t,n,r){Bs(e.x,t.x,n.x,r?.x),Bs(e.y,t.y,n.y,r?.y)}function _s(e,t,n,r=0){const o=r?U(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+ne(t)}function On(e,t,n,r){_s(e.x,t.x,n.x,r?.x),_s(e.y,t.y,n.y,r?.y)}function zs(e,t,n,r,o){return e-=t,e=Dn(e,1/n,r),o!==void 0&&(e=Dn(e,1/o,r)),e}function wp(e,t=0,n=1,r=.5,o,s=e,i=e){if(Ce.test(t)&&(t=parseFloat(t),t=U(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=U(s.min,s.max,r);e===s&&(a-=t),e.min=zs(e.min,t,n,a,o),e.max=zs(e.max,t,n,a,o)}function Ws(e,t,[n,r,o],s,i){wp(e,t[n],t[r],t[o],t.scale,s,i)}const Sp=["x","scaleX","originX"],Tp=["y","scaleY","originY"];function $s(e,t,n,r){Ws(e.x,t,Sp,n?n.x:void 0,r?r.x:void 0),Ws(e.y,t,Tp,n?n.y:void 0,r?r.y:void 0)}function Us(e){return e.translate===0&&e.scale===1}function bl(e){return Us(e.x)&&Us(e.y)}function Hs(e,t){return e.min===t.min&&e.max===t.max}function Cp(e,t){return Hs(e.x,t.x)&&Hs(e.y,t.y)}function Gs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xl(e,t){return Gs(e.x,t.x)&&Gs(e.y,t.y)}function Ks(e){return ne(e.x)/ne(e.y)}function Ys(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function xe(e){return[e("x"),e("y")]}function Pp(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,pathRotation:d,rotateX:f,rotateY:p,skewX:g,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const wl=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Ap=wl.length,Xs=e=>typeof e=="string"?parseFloat(e):e,qs=e=>typeof e=="number"||D.test(e);function Ep(e,t,n,r,o,s){o?(e.opacity=U(0,n.opacity??1,Rp(r)),e.opacityExit=U(t.opacity??1,0,kp(r))):s&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ap;i++){const a=wl[i];let c=Zs(t,a),l=Zs(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||qs(c)===qs(l)?(e[a]=Math.max(U(Xs(c),Xs(l),r),0),(Ce.test(l)||Ce.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=U(t.rotate||0,n.rotate||0,r))}function Zs(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Rp=Sl(0,.5,pa),kp=Sl(.5,.95,ue);function Sl(e,t,n){return r=>r<e?0:r>t?1:n(jt(e,t,r))}function Mp(e,t,n){const r=ee(e)?e:yt(e);return r.start(To("",r,t,n)),r.animation}function _t(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Dp=(e,t)=>e.depth-t.depth;class Op{constructor(){this.children=[],this.isDirty=!1}add(t){lo(this.children,t),this.isDirty=!0}remove(t){Cn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Dp),this.isDirty=!1,this.children.forEach(t)}}function Vp(e,t){const n=te.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(_e(r),e(s-t))};return H.setup(r,!0),()=>_e(r)}function vn(e){return ee(e)?e.get():e}class Np{constructor(){this.members=[]}add(t){lo(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(Cn(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Cn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const bn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ar=["","X","Y","Z"],Lp=1e3;let Ip=0;function lr(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Tl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ua(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Tl(r)}function Cl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=Ip++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Bp),this.nodes.forEach(Hp),this.nodes.forEach(Gp),this.nodes.forEach(_p)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Op)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new uo),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Ro(i)&&!Fh(i),this.instance=i;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;H.read(()=>{d=window.innerWidth}),e(i,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=Vp(f,250),bn.hasAnimatedSinceResize&&(bn.hasAnimatedSinceResize=!1,this.nodes.forEach(ei)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||l.getDefaultTransition()||Zp,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=l.getProps(),v=!this.targetLayout||!xl(this.targetLayout,p),b=!d&&f;if(this.options.layoutRoot||this.resumeFrom||b||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...So(g,"layout"),onPlay:m,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,b,x.path)}else d||ei(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_e(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Kp),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Wp),this.nodes.forEach(Qs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Js);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($p),this.nodes.forEach(Up),this.nodes.forEach(jp),this.nodes.forEach(Fp)):this.nodes.forEach(Js),this.clearAllSnapshots();const a=te.now();J.delta=Ae(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,Jn.update.process(J),Jn.preRender.process(J),Jn.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ao.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zp),this.sharedNodes.forEach(Yp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ne(this.snapshot.measuredBox.x)&&!ne(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!bl(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;i&&this.instance&&(a||Xe(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),Qp(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return q();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Jp))){const{scroll:l}=this.root;l&&(we(a.x,l.offset.x),we(a.y,l.offset.y))}return a}removeElementScroll(i){const a=q();if(fe(a,i),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:d}=l;l!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&fe(a,i),we(a.x,u.offset.x),we(a.y,u.offset.y))}return a}applyTransform(i,a=!1,c){const l=c||q();fe(l,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(we(l.x,-d.scroll.offset.x),we(l.y,-d.scroll.offset.y)),Xe(d.latestValues)&&yn(l,d.latestValues,d.layout?.layoutBox)}return Xe(this.latestValues)&&yn(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(i){const a=q();fe(a,i);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!Xe(l.latestValues))continue;let u;l.instance&&(Hr(l.latestValues)&&l.updateSnapshot(),u=q(),fe(u,l.measurePageBox())),$s(a,l.latestValues,l.snapshot?.layoutBox,u)}return Xe(this.latestValues)&&$s(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=J.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xp(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):fe(this.target,this.layout.layoutBox),al(this.target,this.targetDelta)):fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Hr(this.parent.latestValues)||il(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),On(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),fe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===J.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;fe(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Xh(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=q());const{target:p}=i;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(js(this.prevProjectionDelta.x,this.projectionDelta.x),js(this.prevProjectionDelta.y,this.projectionDelta.y)),Lt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ys(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ht(),this.projectionDelta=ht(),this.projectionDeltaWithTransform=ht()}setAnimationOrigin(i,a=!1,c){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=ht();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=q(),g=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=g!==m,v=this.getStack(),b=!v||v.members.length<=1,x=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(qp));this.animationProgress=0;let S;const C=c?.interpolateProjection(i);this.mixTargetDelta=A=>{const P=A/1e3,T=C?.(P);T?(f.x.translate=T.x,f.x.scale=U(i.x.scale,1,P),f.x.origin=i.x.origin,f.x.originPoint=i.x.originPoint,f.y.translate=T.y,f.y.scale=U(i.y.scale,1,P),f.y.origin=i.y.origin,f.y.originPoint=i.y.originPoint):(ti(f.x,i.x,P),ti(f.y,i.y,P)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(On(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Xp(this.relativeTarget,this.relativeTargetOrigin,p,P),S&&Cp(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=q()),fe(S,this.relativeTarget)),y&&(this.animationValues=d,Ep(d,u,this.latestValues,P,x,b)),T&&T.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=T.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_e(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{bn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Mp(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=i;if(!(!a||!c||!l)){if(this!==i&&this.layout&&l&&Pl(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||q();const d=ne(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+d;const f=ne(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+f}fe(a,c),yn(a,u),Lt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Np),this.sharedNodes.get(i).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&lr("z",i,l,this.animationValues);for(let u=0;u<ar.length;u++)lr(`rotate${ar[u]}`,i,l,this.animationValues),lr(`skew${ar[u]}`,i,l,this.animationValues);i.render();for(const u in l)i.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=vn(a?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=vn(a?.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=Pp(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),i.transform=d;const{x:f,y:p}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,l.animationValues?i.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Kr){if(u[g]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:v}=Kr[g],b=d==="none"?u[g]:m(u[g],l);if(y){const x=y.length;for(let S=0;S<x;S++)i[y[S]]=b}else v?this.options.visualElement.renderState.vars[g]=b:i[g]=b}this.options.layoutId&&(i.pointerEvents=l===this?vn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Qs),this.root.sharedNodes.clear()}}}function jp(e){e.updateLayout()}function Fp(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")xe(u=>{const d=s?t.measuredBox[u]:t.layoutBox[u],f=ne(d);d.min=n[u].min,d.max=d.min+f});else if(o==="x"||o==="y"){const u=o==="x"?"y":"x";Yr(s?t.measuredBox[u]:t.layoutBox[u],n[u])}else Pl(o,t.layoutBox,n)&&xe(u=>{const d=s?t.measuredBox[u]:t.layoutBox[u],f=ne(n[u]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const i=ht();Lt(i,n,t.layoutBox);const a=ht();s?Lt(a,e.applyTransform(r,!0),t.measuredBox):Lt(a,n,t.layoutBox);const c=!bl(i);let l=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const p=e.options.layoutAnchor||void 0,g=q();On(g,t.layoutBox,d.layoutBox,p);const m=q();On(m,n,f.layoutBox,p),xl(g,m)||(l=!0),u.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Bp(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _p(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zp(e){e.clearSnapshot()}function Qs(e){e.clearMeasurements()}function Wp(e){e.isLayoutDirty=!0,e.updateLayout()}function Js(e){e.isLayoutDirty=!1}function $p(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Up(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ei(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Hp(e){e.resolveTargetDelta()}function Gp(e){e.calcProjection()}function Kp(e){e.resetSkewAndRotation()}function Yp(e){e.removeLeadSnapshot()}function ti(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ni(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function Xp(e,t,n,r){ni(e.x,t.x,n.x,r),ni(e.y,t.y,n.y,r)}function qp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Zp={duration:.45,ease:[.4,0,.1,1]},ri=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),oi=ri("applewebkit/")&&!ri("chrome/")?Math.round:ue;function si(e){e.min=oi(e.min),e.max=oi(e.max)}function Qp(e){si(e.x),si(e.y)}function Pl(e,t,n){return e==="position"||e==="preserve-aspect"&&!bp(Ks(t),Ks(n),.2)}function Jp(e){return e!==e.root&&e.scroll?.wasRoot}const em=Cl({attachResizeListener:(e,t)=>_t(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),cr={current:void 0},Al=Cl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cr.current){const e=new em({});e.mount(window),e.setOptions({layoutScroll:!0}),cr.current=e}return cr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),El=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function tm(e=!0){const t=h.useContext(ao);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=h.useId();h.useEffect(()=>{if(e)return o(s)},[e]);const i=h.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Rl=h.createContext({strict:!1}),ii={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ai=!1;function nm(){if(ai)return;const e={};for(const t in ii)e[t]={isEnabled:n=>ii[t].some(r=>!!n[r])};rl(e),ai=!0}function kl(){return nm(),Hh()}function rm(e){const t=kl();for(const n in e)t[n]={...t[n],...e[n]};rl(t)}const om=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Vn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||om.has(e)}let Ml=e=>!Vn(e);function sm(e){typeof e=="function"&&(Ml=t=>t.startsWith("on")?!Vn(t):e(t))}try{sm(require("@emotion/is-prop-valid").default)}catch{}function im(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||ee(e[o])||(Ml(o)||n===!0&&Vn(o)||!t&&!Vn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const $n=h.createContext({});function am(e,t){if(Wn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Bt(n)?n:void 0,animate:Bt(r)?r:void 0}}return e.inherit!==!1?t:{}}function lm(e){const{initial:t,animate:n}=am(e,h.useContext($n));return h.useMemo(()=>({initial:t,animate:n}),[li(t),li(n)])}function li(e){return Array.isArray(e)?e.join(" "):e}const Vo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dl(e,t,n){for(const r in t)!ee(t[r])&&!ul(r,n)&&(e[r]=t[r])}function cm({transformTemplate:e},t){return h.useMemo(()=>{const n=Vo();return Do(n,t,e),Object.assign({},n.vars,n.style)},[t])}function um(e,t){const n=e.style||{},r={};return Dl(r,n,e),Object.assign(r,cm(e,t)),r}function dm(e,t){const n={},r=um(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
1`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ol=()=>({...Vo(),attrs:{}});function fm(e,t,n,r){const o=h.useMemo(()=>{const s=Ol();return dl(s,t,hl(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Dl(s,e.style,e),o.style={...s,...o.style}}return o}const hm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function No(e){return typeof e!="string"||e.includes("-")?!1:!!(hm.indexOf(e)>-1||/[A-Z]/u.test(e))}function pm(e,t,n,{latestValues:r},o,s=!1,i){const c=(i??No(e)?fm:dm)(t,r,o,e),l=im(t,typeof e=="string",s),u=e!==h.Fragment?{...l,...c,ref:n}:{},{children:d}=t,f=h.useMemo(()=>ee(d)?d.get():d,[d]);return h.createElement(e,{...u,children:f})}function mm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:gm(n,r,o,e),renderState:t()}}function gm(e,t,n,r){const o={},s=r(e,{});for(const f in s)o[f]=vn(s[f]);let{initial:i,animate:a}=e;const c=Wn(e),l=tl(e);t&&l&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const d=u?a:i;if(d&&typeof d!="boolean"&&!zn(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const g=Co(e,f[p]);if(g){const{transitionEnd:m,transition:y,...v}=g;for(const b in v){let x=v[b];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(o[b]=x)}for(const b in m)o[b]=m[b]}}}return o}const Vl=e=>(t,n)=>{const r=h.useContext($n),o=h.useContext(ao),s=()=>mm(e,t,r,o);return n?s():hd(s)},ym=Vl({scrapeMotionValuesFromProps:Oo,createRenderState:Vo}),vm=Vl({scrapeMotionValuesFromProps:pl,createRenderState:Ol}),bm=Symbol.for("motionComponentSymbol");function xm(e,t,n){const r=h.useRef(n);h.useInsertionEffect(()=>{r.current=n});const o=h.useRef(null);return h.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const i=r.current;if(typeof i=="function")if(s){const a=i(s);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):i(s);else i&&(i.current=s)},[t])}const Nl=h.createContext({});function ut(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wm(e,t,n,r,o,s){const{visualElement:i}=h.useContext($n),a=h.useContext(Rl),c=h.useContext(ao),l=h.useContext(El),u=l.reducedMotion,d=l.skipAnimations,f=h.useRef(null),p=h.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:i,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:s}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const g=f.current,m=h.useContext(Nl);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&Sm(f.current,n,o,m);const y=h.useRef(!1);h.useInsertionEffect(()=>{g&&y.current&&g.update(n,c)});const v=n[$a],b=h.useRef(!!v&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return md(()=>{p.current=!0,g&&(y.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),b.current&&g.animationState&&g.animationState.animateChanges())}),h.useEffect(()=>{g&&(!b.current&&g.animationState&&g.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),g.enteringChildren=void 0)}),g}function Sm(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ll(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&ut(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ll(e){if(e)return e.options.allowProjection!==!1?e.projection:Ll(e.parent)}function ur(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&rm(r);const s=n?n==="svg":No(e),i=s?vm:ym;function a(l,u){let d;const f={...h.useContext(El),...l,layoutId:Tm(l)},{isStatic:p}
vendor: 17,939 bytes, line 1
1=f,g=lm(l),m=i(l,p);if(!p&&typeof window<"u"){Cm();const y=Pm(f);d=y.MeasureLayout,g.visualElement=wm(e,m,f,o,y.ProjectionNode,s)}return w.jsxs($n.Provider,{value:g,children:[d&&g.visualElement?w.jsx(d,{visualElement:g.visualElement,...f}):null,pm(e,l,xm(m,g.visualElement,u),m,p,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=h.forwardRef(a);return c[bm]=e,c}function Tm({layoutId:e}){const t=h.useContext(na).id;return t&&e!==void 0?t+"-"+e:e}function Cm(e,t){h.useContext(Rl).strict}function Pm(e){const t=kl(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Am(e,t){if(typeof Proxy>"u")return ur;const n=new Map,r=(s,i)=>ur(s,i,e,t),o=(s,i)=>r(s,i);return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,ur(i,void 0,e,t)),n.get(i))})}const Em=(e,t)=>t.isSVG??No(e)?new lp(t):new np(t,{allowProjection:e!==h.Fragment});class Rm extends $e{constructor(t){super(t),t.animationState||(t.animationState=hp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let km=0;class Mm extends $e{constructor(){super(...arguments),this.id=km++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:i}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const a=Je(this.node,s,i);if(a){const{transition:c,transitionEnd:l,...u}=a;for(const d in u)this.node.getValue(d)?.jump(u[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Dm={animation:{Feature:Rm},exit:{Feature:Mm}};function Gt(e){return{point:{x:e.pageX,y:e.pageY}}}const Om=e=>t=>Eo(t)&&e(t,Gt(t));function It(e,t,n,r){return _t(e,t,Om(n),r)}const Il=({current:e})=>e?e.ownerDocument.defaultView:null,ci=(e,t)=>Math.abs(e-t);function Vm(e,t){const n=ci(e.x,t.x),r=ci(e.y,t.y);return Math.sqrt(n**2+r**2)}const ui=new Set(["auto","scroll"]);class jl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Jt(this.lastRawMoveEventInfo,this.transformPagePoint));const p=dr(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,m=Vm(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!m)return;const{point:y}=p,{timestamp:v}=J;this.history.push({...y,timestamp:v});const{onStart:b,onMove:x}=this.handlers;g||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Jt(g,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=dr(p.type==="pointercancel"?this.lastMoveEventInfo:Jt(g,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,b),y&&y(p,b)},!Eo(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const c=Gt(t),l=Jt(c,this.transformPagePoint),{point:u}=l,{timestamp:d}=J;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,dr(l,this.history)),this.removeListeners=$t(It(this.contextWindow,"pointermove",this.handlePointerMove),It(this.contextWindow,"pointerup",this.handlePointerUp),It(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(ui.has(r.overflowX)||ui.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),H.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_e(this.updatePoint)}}function Jt(e,t){return t?{point:t(e.point)}:e}function di(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dr({point:e},t){return{point:e,delta:di(e,Fl(t)),offset:di(e,Nm(t)),velocity:Lm(t,.1)}}function Nm(e){return e[0]}function Fl(e){return e[e.length-1]}function Lm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Fl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ie(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>ie(t)*2&&(r=e[1]);const s=ce(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Im(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function fi(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function jm(e,{top:t,left:n,bottom:r,right:o}){return{x:fi(e.x,n,o),y:fi(e.y,t,r)}}function hi(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Fm(e,t){return{x:hi(e.x,t.x),y:hi(e.y,t.y)}}function Bm(e,t){let n=.5;const r=ne(e),o=ne(t);return o>r?n=jt(t.min,t.max-r,e.min):r>o&&(n=jt(e.min,e.max-o,t.min)),Ae(0,1,n)}function _m(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xr=.35;function zm(e=Xr){return e===!1?e=0:e===!0&&(e=Xr),{x:pi(e,"left","right"),y:pi(e,"top","bottom")}}function pi(e,t,n){return{min:mi(e,t),max:mi(e,n)}}function mi(e,t){return typeof e=="number"?e:e[t]||0}const Wm=new WeakMap;class $m{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=d=>{n&&this.snapToCursor(Gt(d).point),this.stopAnimation()},i=(d,f)=>{const{drag:p,dragPropagation:g,onDragStart:m}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wh(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xe(v=>{let b=this.getAxisMotionValue(v).get()||0;if(Ce.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(b=ne(S)*(parseFloat(b)/100))}}this.originPoint[v]=b}),m&&H.update(()=>m(d,f),!1,!0),Br(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:m,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=Hm(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),y&&H.update(()=>y(d,f),!1,!0)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new jl(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Il(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&H.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!en(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=Im(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&ut(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=jm(r.layoutBox,t):this.constraints=!1,this.elastic=zm(n),o!==this.constraints&&!ut(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&xe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=_m(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ut(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;o.root&&(o.root.scroll=void 0,o.root.updateScroll());const s=qh(r,o.root,this.visualElement.getTransformPagePoint());let i=Fm(o.layout.layoutBox,s);if(n){const a=n(Kh(i));this.hasMutatedConstraints=!!a,a&&(i=sl(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=xe(u=>{if(!en(u,n,this.currentDirection))return;let d=c&&c[u]||{};(i===!0||i===u)&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Br(this.visualElement,t),r.start(To(t,r,0,n,this.visualElement,!1))}stopAnimation(){xe(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){xe(n=>{const{drag:r}=this.getProps();if(!en(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-U(i,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ut(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};xe(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const c=a.get();o[i]=Bm({min:c,max:c},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),xe(i=>{if(!en(i,t,null))return;const a=this.getAxisMotionValue(i),{min:c,max:l}=this.constraints[i];a.set(U(c,l,o[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Wm.set(this.visualElement,this);const t=this.visualElement.current,n=It(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=l.target,p=f!==t&&Eh(f);u&&d&&!p&&this.start(l)});let r;const o=()=>{const{dragConstraints:l}=this.getProps();ut(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),r||(r=Um(t,l.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,i=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),H.read(o);const a=_t(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(xe(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())}));return()=>{a(),n(),i(),c&&c(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=Xr,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function gi(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Um(e,t,n){const r=Ps(e,gi(n)),o=Ps(t,gi(n));return()=>{r(),o()}}function en(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hm(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Gm extends $e{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new $m(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fr=e=>(t,n)=>{e&&H.update(()=>e(t,n),!1,!0)};class Km extends $e{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new jl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Il(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:fr(t),onStart:fr(n),onMove:fr(r),onEnd:(s,i)=>{delete this.session,o&&H.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=It(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let hr=!1;class Ym extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),hr&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),bn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),hr=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||H.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ao.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;hr=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Bl(e){const[t,n]=tm(),r=h.useContext(na);return w.jsx(Ym,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(Nl),isPresent:t,safeToRemove:n})}const Xm={pan:{Feature:Km},drag:{Feature:Gm,ProjectionNode:Al,MeasureLayout:Bl}}
1;function yi(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&H.postRender(()=>s(t,Gt(t)))}class qm extends $e{mount(){const{current:t}=this.node;t&&(this.unmount=Th(t,(n,r)=>(yi(this.node,r,"Start"),o=>yi(this.node,o,"End"))))}unmount(){}}class Zm extends $e{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$t(_t(this.node.current,"focus",()=>this.onFocus()),_t(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vi(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&H.postRender(()=>s(t,Gt(t)))}class Qm extends $e{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=kh(t,(o,s)=>(vi(this.node,s,"Start"),(i,{success:a})=>vi(this.node,i,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const qr=new WeakMap,pr=new WeakMap,Jm=e=>{const t=qr.get(e.target);t&&t(e)},eg=e=>{e.forEach(Jm)};function tg({root:e,...t}){const n=e||document;pr.has(n)||pr.set(n,{});const r=pr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(eg,{root:e,...t})),r[o]}function ng(e,t,n){const r=tg(t);return qr.set(e,n),r.observe(e),()=>{qr.delete(e),r.unobserve(e)}}const rg={some:0,all:1};class og extends $e{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:rg[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};this.stopObserver=ng(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sg(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function sg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ig={inView:{Feature:og},tap:{Feature:Qm},focus:{Feature:Zm},hover:{Feature:qm}},ag={layout:{ProjectionNode:Al,MeasureLayout:Bl}},lg={...Dm,...ig,...Xm,...ag},cw=Am(lg,Em);function bi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cg(...e){return t=>{let n=!1;const r=e.map(o=>{const s=bi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():bi(e[o],null)}}}}function ye(...e){return h.useCallback(cg(...e),e)}function Lo(e){const t=h.forwardRef((n,r)=>{let{children:o,...s}=n,i=null,a=!1;const c=[];xi(o)&&typeof tn=="function"&&(o=tn(o._payload)),h.Children.forEach(o,f=>{if(pg(f)){a=!0;const p=f;let g="child"in p.props?p.props.child:p.props.children;xi(g)&&typeof tn=="function"&&(g=tn(g._payload)),i=dg(p,g),c.push(i?.props?.children)}else c.push(f)}),i?i=h.cloneElement(i,void 0,c):!a&&h.Children.count(o)===1&&h.isValidElement(o)&&(i=o);const l=i?hg(i):void 0,u=ye(r,l);if(!i){if(o||o===0)throw new Error(a?vg(e):yg(e));return o}const d=fg(s,i.props??{});return i.type!==h.Fragment&&(d.ref=r?u:l),h.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var Ct=Lo("Slot"),_l=Symbol.for("radix.slottable");function ug(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=_l,t}var dg=(e,t)=>{if("child"in e.props){const n=e.props.child;return h.isValidElement(n)?h.cloneElement(n,void 0,e.props.children(n.props.children)):null}return h.isValidElement(t)?t:null};function fg(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}
vendor: 5,090 bytes, line 1
1:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function hg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function pg(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_l}var mg=Symbol.for("react.lazy");function xi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===mg&&"_payload"in e&&gg(e._payload)}function gg(e){return typeof e=="object"&&e!==null&&"then"in e}var yg=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,vg=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,tn=so[" use ".trim().toString()];function zl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zl(e))&&(r&&(r+=" "),r+=t);return r}const wi=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Si=Wl,Io=(e,t)=>n=>{var r;if(t?.variants==null)return Si(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const u=n?.[l],d=s?.[l];if(u===null)return null;const f=wi(u)||wi(d);return o[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...s,...a}[m]):{...s,...a}[m]===y})?[...l,d,f]:l},[]);return Si(e,i,c,n?.class,n?.className)},mr=768;function bg(){const[e,t]=h.useState(void 0);return h.useEffect(()=>{const n=window.matchMedia(`(max-width: ${mr-1}px)`),r=()=>{t(window.innerWidth<mr)};return n.addEventListener("change",r),t(window.innerWidth<mr),()=>n.removeEventListener("change",r)},[]),!!e}const xg=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},wg=(e,t)=>({classGroupId:e,validator:t}),$l=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Nn="-",Ti=[],Sg="arbitrary..",Tg=e=>{const t=Pg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Cg(i);const a=i.split(Nn),c=a[0]===""&&a.length>1?1:0;return Ul(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=r[i],l=n[i];return c?l?xg(l,c):c:l||Ti}return n[i]||Ti}}},Ul=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const l=Ul(e,t+1,s);if(l)return l}const i=n.validators;if(i===null)return;const a=t===0?e.join(Nn):e.slice(t).join(Nn),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(a))return u.classGroupId}},Cg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Sg+r:void 0})(),Pg=e=>{const{theme:t,classGroups:n}=e;return Ag(n,t)},Ag=(e,t)=>{const n=$l();for(const r in e){const o=e[r];jo(o,n,r,t)}return n},jo=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Eg(i,t,n,r)}},Eg=(e,t,n,r)=>{if(typeof e=="string"){Rg(e,t,n);return}if(typeof e=="function"){kg(e,t,n,r);return}Mg(e,t,n,r)},Rg=(e,t,n)=>{const r=e===""?t:Hl(t,e);r.classGroupId=n},kg=(e,t,n,r)=>{if(Dg(e)){jo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(wg(n,e))},Mg=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];jo(c,Hl(t,a),n,r)}},Hl=(e,t)=>{let n=e;const r=t.split(Nn),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=$l(),n.nextPart.set(i,a)),n=a}return n},Dg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Og=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},Zr="!",Ci=":",Vg=[],Pi=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Ng=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,c=0,l;const u=o.length;for(let m=0;m<u;m++){const y=o[m];if(i===0&&a===0){if(y===Ci){s.push(o.slice(c,m)),c=m+1;continue}if(y==="/"){l=m;continue}}y==="["?i++:y==="]"?i--:y==="("?a++:y===")"&&a--}const d=s.length===0?o:o.slice(c);let f=d,p=!1;d.endsWith(Zr)?(f=d.slice(0,-1),p=!0):d.startsWith(Zr)&&(f=d.slice(1),p=!0);const g=l&&l>c?l-c:void 0;return Pi(s,p,f,g)};if(t){const o=t+Ci,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Pi(Vg,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Lg=e=>{const t=new Map;
1return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",c=t.has(i);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},Ig=e=>({cache:Og(e.cacheSize),parseClassName:Ng(e),sortModifiers:Lg(e),postfixLookupClassGroupIds:jg(e),...Tg(e)}),jg=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},Fg=/\s+/,Bg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],c=e.trim().split(Fg);let l="";for(let u=c.length-1;u>=0;u-=1){const d=c[u],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:y}=n(d);if(f){l=d+(l.length>0?" "+l:l);continue}let v=!!y,b;if(v){const P=m.substring(0,y);b=r(P);const T=b&&i[b]?r(m):void 0;T&&T!==b&&(b=T,v=!1)}else b=r(m);if(!b){if(!v){l=d+(l.length>0?" "+l:l);continue}if(b=r(m),!b){l=d+(l.length>0?" "+l:l);continue}v=!1}const x=p.length===0?"":p.length===1?p[0]:s(p).join(":"),S=g?x+Zr:x,C=S+b;if(a.indexOf(C)>-1)continue;a.push(C);const A=o(b,v);for(let P=0;P<A.length;++P){const T=A[P];a.push(S+T)}l=d+(l.length>0?" "+l:l)}return l},_g=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Gl(n))&&(o&&(o+=" "),o+=r);return o},Gl=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Gl(e[r]))&&(n&&(n+=" "),n+=t);return n},zg=(e,...t)=>{let n,r,o,s;const i=c=>{const l=t.reduce((u,d)=>d(u),e());return n=Ig(l),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const l=r(c);if(l)return l;const u=Bg(c,n);return o(c,u),u};return s=i,(...c)=>s(_g(...c))},Wg=[],X=e=>{const t=n=>n[e]||Wg;return t.isThemeGetter=!0,t},Kl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$g=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ug=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hg=/\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$/,Gg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ie=e=>$g.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),be=e=>!!e&&Number.isInteger(Number(e)),gr=e=>e.endsWith("%")&&I(e.slice(0,-1)),ke=e=>Ug.test(e),Xl=()=>!0,Xg=e=>Hg.test(e)&&!Gg.test(e),Fo=()=>!1,qg=e=>Kg.test(e),Zg=e=>Yg.test(e),Qg=e=>!k(e)&&!M(e),Jg=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ey=e=>Ue(e,Ql,Fo),k=e=>Kl.test(e),Ke=e=>Ue(e,Jl,Xg),Ai=e=>Ue(e,ly,I),ty=e=>Ue(e,tc,Xl),ny=e=>Ue(e,ec,Fo),Ei=e=>Ue(e,ql,Fo),ry=e=>Ue(e,Zl,Zg),nn=e=>Ue(e,nc,qg),M=e=>Yl.test(e),Dt=e=>nt(e,Jl),oy=e=>nt(e,ec),Ri=e=>nt(e,ql),sy=e=>nt(e,Ql),iy=e=>nt(e,Zl),rn=e=>nt(e,nc,!0),ay=e=>nt(e,tc,!0),Ue=(e,t,n)=>{const r=Kl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nt=(e,t,n=!1)=>{const r=Yl.exec(e);return r?r[1]?t(r[1]):n:!1},ql=e=>e==="position"||e==="percentage",Zl=e=>e==="image"||e==="url",Ql=e=>e==="length"||e==="size"||e==="bg-size",Jl=e=>e==="length",ly=e=>e==="number",ec=e=>e==="family-name",tc=e=>e==="number"||e==="weight",nc=e=>e==="shadow",cy=()=>{const e=X("color"),t=X("font"),n=X("text"),r=X("font-weight"),o=X("tracking"),s=X("leading"),i=X("breakpoint"),a=X("container"),c=X("spacing"),l=X("radius"),u=X("shadow"),d=X("inset-shadow"),f=X("text-shadow"),p=X("drop-shadow"),g=X("blur"),m=X("perspective"),y=X("aspect"),v=X("ease"),b=X("animate"),x=()=>["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"],C=()=>[...S(),M,k],A=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],T=()=>[M,k,c],V=()=>[Ie,"full","auto",...T()],E=()=>[be,"none","subgrid",M,k],N=()=>["auto",{span:["full",be,M,k]},be,M,k],j=()=>[be,"auto",M,k],z=()=>["auto","min","max","fr",M,k],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...T()],$=()=>[Ie,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],O=()=>[Ie,"screen","full","dvw","lvw","svw","min","max","fit",...T()],B=()=>[Ie,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],R=()=>[e,M,k],le=()=>[...S(),Ri,Ei,{position:[M,k]}],He=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Xt=()=>["auto","cover","contain",sy,ey,{size:[M,k]}],Rt=()=>[gr,Dt,Ke],Z=()=>["","none","full",l,M,k],Q=()=>["",I,Dt,Ke],rt=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[I,gr,Ri,Ei],qt=()=>["","none",g,M,k],ot=()=>["none",I,M,k],st=()=>["none",I,M,k],kt=()=>[I,M,k],Re=()=>[Ie,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[Xl],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[Qg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",I],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ie,k,M,y]}],container:["container"],"container-type":[{"@container":["","normal","size",M,k]}
vendor: 6,026 bytes, line 1
1],"container-named":[Jg],columns:[{columns:[I,k,M,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:C()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[be,"auto",M,k]}],basis:[{basis:[Ie,"full","auto",a,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,Ie,"auto","initial","none",k]}],grow:[{grow:["",I,M,k]}],shrink:[{shrink:["",I,M,k]}],order:[{order:[be,"first","last","none",M,k]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...B()]}],"min-block-size":[{"min-block":["auto",...B()]}],"max-block-size":[{"max-block":["none",...B()]}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,Dt,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ay,ty]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,k]}],"font-family":[{font:[oy,ny,t]}],"font-features":[{"font-features":[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,M,k]}],"line-clamp":[{"line-clamp":[I,"none",M,Ai]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",M,k]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...rt(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",M,Ke]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[I,"auto",M,k]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"tab-size":[{tab:[be,M,k]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,k]}],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",M,k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:He()}],"bg-size":[{bg:Xt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},be,M,k],radial:["",M,k],conic:[be,M,k]},iy,ry]}
1],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:Rt()}],"gradient-via-pos":[{via:Rt()}],"gradient-to-pos":[{to:Rt()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...rt(),"hidden","none"]}],"divide-style":[{divide:[...rt(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}
vendor: 5,682 bytes, line 1
1],"divide-color":[{divide:R()}],"outline-style":[{outline:[...rt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,M,k]}],"outline-w":[{outline:["",I,Dt,Ke]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,rn,nn]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,rn,nn]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[I,Ke]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",f,rn,nn]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[I,M,k]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"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":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[M,k]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:He()}],"mask-size":[{mask:Xt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,k]}],filter:[{filter:["","none",M,k]}],blur:[{blur:qt()}],brightness:[{brightness:[I,M,k]}],contrast:[{contrast:[I,M,k]}],"drop-shadow":[{"drop-shadow":["","none",p,rn,nn]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",I,M,k]}],"hue-rotate":[{"hue-rotate":[I,M,k]}],invert:[{invert:["",I,M,k]}],saturate:[{saturate:[I,M,k]}],sepia:[{sepia:["",I,M,k]}],"backdrop-filter":[{"backdrop-filter":["","none",M,k]}],"backdrop-blur":[{"backdrop-blur":qt()}],"backdrop-brightness":[{"backdrop-brightness":[I,M,k]}],"backdrop-contrast":[{"backdrop-contrast":[I,M,k]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,M,k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,M,k]}],"backdrop-invert":[{"backdrop-invert":["",I,M,k]}],"backdrop-opacity":[{"backdrop-opacity":[I,M,k]}],"backdrop-saturate":[{"backdrop-saturate":[I,M,k]}],"backdrop-sepia":[{"backdrop-sepia":["",I,M,k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,k]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",M,k]}],ease:[{ease:["linear","initial",v,M,k]}],delay:[{delay:[I,M,k]}],animate:[{animate:["none",b,M,k]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,k]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:st()}],"scale-x":[{"scale-x":st()}],"scale-y":[{"scale-y":st()}],"scale-z":[{"scale-z":st()}],"scale-3d":["scale-3d"],skew:[{skew:kt()}],"skew-x":[{"skew-x":kt()}],"skew-y":[{"skew-y":kt()}],transform:[{transform:[M,k,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],zoom:[{zoom:[be,M,k]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}
1],"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",M,k]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",M,k]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[I,Dt,Ke,Ai]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},uy=zg(cy);function _(...e){return uy(Wl(e))}const dy=Io("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),rc=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Ct:"button";return w.jsx(i,{className:_(dy({variant:t,size:n,className:e})),ref:s,...o})});rc.displayName="Button";const oc=h.forwardRef(({className:e,type:t,...n},r)=>w.jsx("input",{type:t,className:_("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));oc.displayName="Input";var fy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=fy.reduce((e,t)=>
1{const n=Lo(`Primitive.${t}`),r=h.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hy(e,t){e&&io.flushSync(()=>e.dispatchEvent(t))}var py="Separator",ki="horizontal",my=["horizontal","vertical"],sc=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=ki,...o}=e,s=gy(r)?r:ki,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return w.jsx(re.div,{"data-orientation":s,...a,...o,ref:t})});sc.displayName=py;function gy(e){return my.includes(e)}var ic=sc;const ac=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>w.jsx(ic,{ref:o,decorative:n,orientation:t,className:_("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));ac.displayName=ic.displayName;function oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function yy(e,t){const n=h.createContext(t);n.displayName=e+"Context";const r=s=>{const{children:i,...a}=s,c=h.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=h.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Bo(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i);a.displayName=s+"Context";const c=n.length;n=[...n,i];const l=d=>{const{scope:f,children:p,...g}=d,m=f?.[e]?.[c]||a,y=h.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:y,children:p})};l.displayName=s+"Provider";function u(d,f){const p=f?.[e]?.[c]||a,g=h.useContext(p);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const c=a?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,vy(o,...t)]}function vy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(s)[`__scope${l}`];return{...a,...d}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var De=globalThis?.document?h.useLayoutEffect:()=>{},by=so[" useId ".trim().toString()]||(()=>{}),xy=0;function xn(e){const[t,n]=h.useState(by());return De(()=>{n(r=>r??String(xy++))},[e]),e||(t?`radix-${t}`:"")}var wy=so[" useInsertionEffect ".trim().toString()]||De;function lc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Sy({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"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.`),u.current=a},[a,r])}const l=h.useCallback(u=>{if(a){const d=Ty(u)?u(e):u;d!==e&&i.current?.(d)}else s(u)},[a,e,s,i]);return[c,l]}function Sy({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),s=h.useRef(t);return wy(()=>{s.current=t},[t]),h.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Ty(e){return typeof e=="function"}function vt(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>((...n)=>t.current?.(...n)),[])}function Cy(e,t=globalThis?.document){const n=vt(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Py="DismissableLayer",Qr="dismissableLayer.update",Ay="dismissableLayer.pointerDownOutside",Ey="dismissableLayer.focusOutside",Mi,cc=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_o=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=h.useContext(cc),[u,d]=h.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=h.useState({}),g=ye(t,P=>
vendor: 4,343 bytes, line 1
1d(P)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(y),b=u?m.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,S=b>=v,C=My(P=>{const T=P.target,V=[...l.branches].some(E=>E.contains(T));!S||V||(o?.(P),i?.(P),P.defaultPrevented||a?.())},f),A=Dy(P=>{const T=P.target;[...l.branches].some(E=>E.contains(T))||(s?.(P),i?.(P),P.defaultPrevented||a?.())},f);return Cy(P=>{b===l.layers.size-1&&(r?.(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),h.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Mi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Di(),()=>{n&&(l.layersWithOutsidePointerEventsDisabled.delete(u),l.layersWithOutsidePointerEventsDisabled.size===0&&(f.body.style.pointerEvents=Mi))}},[u,f,n,l]),h.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Di())},[u,l]),h.useEffect(()=>{const P=()=>p({});return document.addEventListener(Qr,P),()=>document.removeEventListener(Qr,P)},[]),w.jsx(re.div,{...c,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,A.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,C.onPointerDownCapture)})});_o.displayName=Py;var Ry="DismissableLayerBranch",ky=h.forwardRef((e,t)=>{const n=h.useContext(cc),r=h.useRef(null),o=ye(t,r);return h.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(re.div,{...e,ref:o})});ky.displayName=Ry;function My(e,t=globalThis?.document){const n=vt(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){uc(Ay,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Dy(e,t=globalThis?.document){const n=vt(e),r=h.useRef(!1);return h.useEffect(()=>{const o=s=>{s.target&&!r.current&&uc(Ey,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Di(){const e=new CustomEvent(Qr);document.dispatchEvent(e)}function uc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hy(o,s):o.dispatchEvent(s)}var yr="focusScope.autoFocusOnMount",vr="focusScope.autoFocusOnUnmount",Oi={bubbles:!1,cancelable:!0},Oy="FocusScope",dc=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=h.useState(null),l=vt(o),u=vt(s),d=h.useRef(null),f=ye(t,m=>c(m)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let m=function(x){if(p.paused||!a)return;const S=x.target;a.contains(S)?d.current=S:je(d.current,{select:!0})},y=function(x){if(p.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||je(d.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&je(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),b.disconnect()}}},[r,a,p.paused]),h.useEffect(()=>{if(a){Ni.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(yr,Oi);a.addEventListener(yr,l),a.dispatchEvent(v),v.defaultPrevented||(Vy(Fy(fc(a)),{select:!0}),document.activeElement===m&&je(a))}return()=>{a.removeEventListener(yr,l),setTimeout(()=>{const v=new CustomEvent(vr,Oi);a.addEventListener(vr,u),a.dispatchEvent(v),v.defaultPrevented||je(m??document.body,{select:!0}),a.removeEventListener(vr,u),Ni.remove(p)}
vendor: 4,788 bytes, line 1
1,0)}}},[a,l,u,p]);const g=h.useCallback(m=>{if(!n&&!r||p.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(y&&v){const b=m.currentTarget,[x,S]=Ny(b);x&&S?!m.shiftKey&&v===S?(m.preventDefault(),n&&je(x,{select:!0})):m.shiftKey&&v===x&&(m.preventDefault(),n&&je(S,{select:!0})):v===b&&m.preventDefault()}},[n,r,p.paused]);return w.jsx(re.div,{tabIndex:-1,...i,ref:f,onKeyDown:g})});dc.displayName=Oy;function Vy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(je(r,{select:t}),document.activeElement!==n)return}function Ny(e){const t=fc(e),n=Vi(t,e),r=Vi(t.reverse(),e);return[n,r]}function fc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vi(e,t){for(const n of e)if(!Ly(n,{upTo:t}))return n}function Ly(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 Iy(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Iy(e)&&t&&e.select()}}var Ni=jy();function jy(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Li(e,t),e.unshift(t)},remove(t){e=Li(e,t),e[0]?.resume()}}}function Li(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fy(e){return e.filter(t=>t.tagName!=="A")}var By="Portal",zo=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=h.useState(!1);De(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?io.createPortal(w.jsx(re.div,{...r,ref:t}),i):null});zo.displayName=By;function _y(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Pt=e=>{const{present:t,children:n}=e,r=zy(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),s=Wy(r.ref,$y(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:s}):null};Pt.displayName="Presence";function zy(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),s=h.useRef("none"),i=e?"mounted":"unmounted",[a,c]=_y(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const l=on(r.current);s.current=a==="mounted"?l:"none"},[a]),De(()=>{const l=r.current,u=o.current;if(u!==e){const f=s.current,p=on(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),De(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=on(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(s.current=on(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ii(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wy(...e){const t=h.useRef(e);return t.current=e,h.useCallback(n=>{const r=t.current;let o=!1;const s=r.map(i=>{const a=Ii(i,n);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():Ii(r[i],null)}}},[])}function on(e){return e?.animationName||"none"}function $y(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sn=0,it=null;function Uy(){h.useEffect(()=>{it||(it={start:ji(),end:ji()});const{start:e,end:t}=it;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),sn++,()=>{sn===1&&(it?.start.remove(),it?.end.remove(),it=null),sn=Math.max(0,sn-1)}},[])}function ji(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,651 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Se.apply(this,arguments)};function hc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Hy(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var wn="right-scroll-bar-position",Sn="width-before-scroll-bar",Gy="with-scroll-bars-hidden",Ky="--removed-body-scroll-bar-size";function br(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yy(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Xy=typeof window<"u"?h.useLayoutEffect:h.useEffect,Fi=new WeakMap;function qy(e,t){var n=Yy(null,function(r){return e.forEach(function(o){return br(o,r)})});return Xy(function(){var r=Fi.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||br(a,null)}),s.forEach(function(a){o.has(a)||br(a,i)})}Fi.set(n,e)},[e]),n}function Zy(e){return e}function Qy(e,t){t===void 0&&(t=Zy);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var u=i;i=[],u.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){i.push(u),l()},filter:function(u){return i=i.filter(u),n}}}};return o}function Jy(e){e===void 0&&(e={});var t=Qy(null);return t.options=Se({async:!0,ssr:!1},e),t}var pc=function(e){var t=e.sideCar,n=hc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Se({},n))};pc.isSideCarExport=!0;function ev(e,t){return e.useMedium(t),pc}var mc=Jy(),xr=function(){},Un=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:xr,onWheelCapture:xr,onTouchMoveCapture:xr}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,m=e.inert,y=e.allowPinchZoom,v=e.as,b=v===void 0?"div":v,x=e.gapMode,S=hc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,A=qy([n,t]),P=Se(Se({},S),o);return h.createElement(h.Fragment,null,u&&h.createElement(C,{sideCar:mc,removeScrollBar:l,shards:d,noRelative:p,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:x}),i?h.cloneElement(h.Children.only(a),Se(Se({},P),{ref:A})):h.createElement(b,Se({},P,{className:c,ref:A}),a))});Un.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Un.classNames={fullWidth:Sn,zeroRight:wn};var tv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tv();return t&&e.setAttribute("nonce",t),e}function rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ov(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=nv())&&(rv(t,n),ov(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iv=function(){var e=sv();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gc=function(){var e=iv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},av={left:0,top:0,right:0,gap:0},wr=function(e){return parseInt(e||"",10)||0},lv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wr(n),wr(r),wr(o)]},cv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return av;var t=lv(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},uv=gc(),pt="data-scroll-locked",dv=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Gy,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(pt,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(s,`px; 12 padding-right: `).concat(i,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(wn,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(Sn,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(wn," .").concat(wn,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(Sn," .").concat(Sn,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(pt,`] { 36 `).concat(Ky,": ").concat(a,`px; 37 } 38`)},Bi=function(){var e=parseInt(document.body.getAttribute(pt)||"0",10);return isFinite(e)?e:0},fv=function(){h.useEffect(function(){return document.body.setAttribute(pt,(Bi()+1).toString()),function(){var e=Bi()-1;e<=0?document.body.removeAttribute(pt):document.body.setAttribute(pt,e.toString())}},[])},hv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;fv();var s=h.useMemo(function(){return cv(o)},[o]);return h.createElement(uv,{styles:dv(s,!t,o,n?"":"!important")})},Jr=!1;if(typeof window<"u")try{var an=Object.defineProperty({},"passive",{get:function(){return Jr=!0,!0}});window.addEventListener("test",an,an),window.removeEventListener("test",an,an)}catch{Jr=!1}var at=Jr?{passive:!1}:!1,pv=function(e){return e.tagName==="TEXTAREA"},yc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pv(e)&&n[t]==="visible")},mv=function(e){return yc(e,"overflowY")},gv=function(e){return yc(e,"overflowX")},_i=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=vc(e,r);if(o){var s=bc(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yv=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vv=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vc=function(e,t){return e==="v"?mv(t):gv(t)},bc=function(e,t){return e==="v"?yv(t):vv(t)},bv=function(e,t){return e==="h"&&t==="rtl"?-1:1},xv=function(e,t,n,r,o){var s=bv(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,u=i>0,d=0,f=0;do{if(!a)break;var p=bc(e,a),g=p[0],m=p[1],y=p[2],v=m-y-s*g;(g||v)&&vc(e,a)&&(d+=v,f+=g);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},ln=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zi=function(e){return[e.deltaX,e.deltaY]},Wi=function(e){return e&&"current"in e?e.current:e},wv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sv=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Tv=0,lt=[];function Cv(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(Tv++)[0],s=h.useState(gc)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Hy([e.lockRef.current],(e.shards||[]).map(Wi),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var v=ln(m),b=n.current,x="deltaX"in m?m.deltaX:b[0]-v[0],S="deltaY"in m?m.deltaY:b[1]-v[1],C,A=m.target,P=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in m&&P==="h"&&A.type==="range")return!1;var T=window.getSelection(),V=T&&T.anchorNode,E=V?V===A||V.contains(A):!1;if(E)return!1;var N=_i(P,A);if(!N)return!0;if(N?C=P:(C=P==="v"?"h":"v",N=_i(P,A)),!N)return!1;if(!r.current&&"changedTouches"in m&&(x||S)&&(r.current=C),!C)return!0;var j=r.current||C;return xv(j,y,m,j==="h"?x:S)},[]),c=h.useCallback(function(m){var y=m;if(!(!lt.length||lt[lt.length-1]!==s)){var v="deltaY"in y?zi(y):ln(y),b=t.current.filter(function(C){return C.name===y.type&&(C.target===y.target||y.target===C.shadowParent)&&wv(C.delta,v)}
vendor: 6,943 bytes, line 41
41)[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var x=(i.current.shards||[]).map(Wi).filter(Boolean).filter(function(C){return C.contains(y.target)}),S=x.length>0?a(y,x[0]):!i.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),l=h.useCallback(function(m,y,v,b){var x={name:m,delta:y,target:v,should:b,shadowParent:Pv(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),u=h.useCallback(function(m){n.current=ln(m),r.current=void 0},[]),d=h.useCallback(function(m){l(m.type,zi(m),m.target,a(m,e.lockRef.current))},[]),f=h.useCallback(function(m){l(m.type,ln(m),m.target,a(m,e.lockRef.current))},[]);h.useEffect(function(){return lt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,at),document.addEventListener("touchmove",c,at),document.addEventListener("touchstart",u,at),function(){lt=lt.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,at),document.removeEventListener("touchmove",c,at),document.removeEventListener("touchstart",u,at)}},[]);var p=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(s,{styles:Sv(o)}):null,p?h.createElement(hv,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Av=ev(mc,Cv);var xc=h.forwardRef(function(e,t){return h.createElement(Un,Se({},e,{ref:t,sideCar:Av}))});xc.classNames=Un.classNames;var Ev=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ct=new WeakMap,cn=new WeakMap,un={},Sr=0,wc=function(e){return e&&(e.host||wc(e.parentNode))},Rv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},kv=function(e,t,n,r){var o=Rv(t,Array.isArray(e)?e:[e]);un[n]||(un[n]=new WeakMap);var s=un[n],i=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",m=(ct.get(f)||0)+1,y=(s.get(f)||0)+1;ct.set(f,m),s.set(f,y),i.push(f),m===1&&g&&cn.set(f,!0),y===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Sr++,function(){i.forEach(function(d){var f=ct.get(d)-1,p=s.get(d)-1;ct.set(d,f),s.set(d,p),f||(cn.has(d)||d.removeAttribute(r),cn.delete(d)),p||d.removeAttribute(n)}),Sr--,Sr||(ct=new WeakMap,ct=new WeakMap,cn=new WeakMap,un={})}},Mv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ev(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),kv(r,o,n,"aria-hidden")):function(){return null}},Hn="Dialog",[Sc]=Bo(Hn),[Dv,ve]=Sc(Hn),Tc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=h.useRef(null),c=h.useRef(null),[l,u]=lc({prop:r,defaultProp:o??!1,onChange:s,caller:Hn});return w.jsx(Dv,{scope:t,triggerRef:a,contentRef:c,contentId:xn(),titleId:xn(),descriptionId:xn(),open:l,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(d=>!d),[u]),modal:i,children:n})};Tc.displayName=Hn;var Cc="DialogTrigger",Ov=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ve(Cc,n),s=ye(t,o.triggerRef);return w.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":Uo(o.open),...r,ref:s,onClick:oe(e.onClick,o.onOpenToggle)})});Ov.displayName=Cc;var Wo="DialogPortal",[Vv,Pc]=Sc(Wo,{forceMount:void 0}),Ac=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ve(Wo,t);return w.jsx(Vv,{scope:t,forceMount:n,children:h.Children.map(r,i=>w.jsx(Pt,{present:n||s.open,children:w.jsx(zo,{asChild:!0,container:o,children:i})}))})};Ac.displayName=Wo;var Ln="DialogOverlay",Ec=h.forwardRef((e,t)=>{const n=Pc(Ln,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ve(Ln,e.__scopeDialog);return s.modal?w.jsx(Pt,{present:r||s.open,children:w.jsx(Lv,{...o,ref:t})}):null});Ec.displayName=Ln;var Nv=Lo("DialogOverlay.RemoveScroll"),Lv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ve(Ln,n);return w.jsx(xc,{as:Nv,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(re.div,{"data-state":Uo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),et="DialogContent",Rc=h.forwardRef((e,t)=>{const n=Pc(et,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ve(et,e.__scopeDialog);return w.jsx(Pt,{present:r||s.open,children:s.modal?w.jsx(Iv,{...o,ref:t}):w.jsx(jv,{...o,ref:t})})});Rc.displayName=et;var Iv=h.forwardRef((e,t)=>{const n=ve(et,e.__scopeDialog),r=h.useRef(null),o=ye(t,n.contentRef,r);return h.useEffect(()=>{const s=r.current;if(s)return Mv(s)},[]),w.jsx(kc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:oe(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:oe(e.onFocusOutside,s=>s.preventDefault())})}),jv=h.forwardRef((e,t)=>{const n=ve(et,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return w.jsx(kc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),kc=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=ve(et,n),c=h.useRef(null),l=ye(t,c);return Uy(),w.jsxs(w.Fragment,{children:[w.jsx(dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:w.jsx(_o,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Uo(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(Fv,{titleId:a.titleId}),w.jsx(_v,{contentRef:c,descriptionId:a.descriptionId})]})]})}),$o="DialogTitle",Mc=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ve($o,n);return w.jsx(re.h2,{id:o.titleId,...r,ref:t})});Mc.displayName=$o;var Dc="DialogDescription",Oc=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ve(Dc,n);return w.jsx(re.p,{id:o.descriptionId,...r,ref:t})});Oc.displayName=Dc;var Vc="DialogClose",Nc=h.forwardRef((e,t)=>
41{const{__scopeDialog:n,...r}=e,o=ve(Vc,n);return w.jsx(re.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});Nc.displayName=Vc;function Uo(e){return e?"open":"closed"}var Lc="DialogTitleWarning",[uw,Ic]=yy(Lc,{contentName:et,titleName:$o,docsSlug:"dialog"}),Fv=({titleId:e})=>{const t=Ic(Lc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bv="DialogDescriptionWarning",_v=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ic(Bv).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zv=Tc,Wv=Ac,jc=Ec,Fc=Rc,Bc=Mc,_c=Oc,$v=Nc;const Uv=zv,Hv=Wv,zc=h.forwardRef(({className:e,...t},n)=>w.jsx(jc,{className:_("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));zc.displayName=jc.displayName;const Gv=Io("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Wc=h.forwardRef(({side:e="right",className:t,children:n,...r},o)=>w.jsxs(Hv,{children:[w.jsx(zc,{}),w.jsxs(Fc,{ref:o,className:_(Gv({side:e}),t),...r,children:[w.jsxs($v,{className:"absolute right-4 top-4 roun
45ded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[w.jsx(fd,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Wc.displayName=Fc.displayName;const $c=({className:e,...t})=>w.jsx("div",{className:_("flex flex-col space-y-2 text-center sm:text-left",e),...t});$c.displayName="SheetHeader";const Uc=h.forwardRef(({className:e,...t},n)=>w.jsx(Bc,{ref:n,className:_("text-lg font-semibold text-foreground",e),...t}));Uc.displayName=Bc.displayName;const Hc=h.forwardRef(({className:e,...t},n)=>w.jsx(_c,{ref:n,className:_("text-sm text-muted-foreground",e),...t}));Hc.displayName=_c.displayName;function $i({className:e,...t}){return w.jsx("div",{className:_("animate-pulse rounded-md bg-primary/10",e),...t})}const Kv=["top","right","bottom","left"],ze=Math.min,se=Math.max,In=Math.round,dn=Math.floor,Pe=e=>({x:e,y:e}),Yv={left:"right",right:"left",bottom:"top",top:"bottom"};function eo(e,t,n){return se(e,ze(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function Ho(e){return e==="x"?"y":"x"}function Go(e){return e==="y"?"height":"width"}function Te(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ko(e){return Ho(Te(e))}function Xv(e,t,n){n===void 0&&(n=!1);const r=At(e),o=Ko(e),s=Go(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=jn(i)),[i,jn(i)]}function qv(e){const t=jn(e);return[to(e),t,to(t)]}function to(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ui=["left","right"],Hi=["right","left"],Zv=["top","bottom"],Qv=["bottom","top"];function Jv(e,t,n){switch(e){case"top":case"bottom":return n?t?Hi:Ui:t?Ui:Hi;case"left":case"right":return t?Zv:Qv;default:return[]}}function eb(e,t,n,r){const o=At(e);let s=Jv(Ve(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(to)))),s}function jn(e){const t=Ve(e);return Yv[t]+e.slice(t.length)}function tb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gc(e){return typeof e!="number"?tb(e):{top:e,right:e,bottom:e,left:e}}function Fn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gi(e,t,n){let{reference:r,floating:o}=e;const s=Te(t),i=Ko(t),a=Go(i),c=Ve(t),l=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(At(t)){case"start":p[i]-=f*(n&&l?-1:1);break;case"end":p[i]+=f*(n&&l?-1:1);break}return p}async function nb(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Oe(t,e),g=Gc(p),y=a[f?d==="floating"?"reference":"floating":d],v=Fn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),b=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Fn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-C.top+g.top)/S.y,bottom:(C.bottom-v.bottom+g.bottom)/S.y,left:(v.left-C.left+g.left)/S.x,right:(C.right-v.right+g.right)/S.x}}const rb=50,ob=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:nb},c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Gi(l,r,c),f=r,p=0;const g={};for(let m=0;m<s.length;m++){const y=s[m];if(!y)continue;const{name:v,fn:b}=y,{x,y:S,data:C,reset:A}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:l,platform:a,elements:{reference:e,floating:t}});u=x??u,d=S??d,g[v]={...g[v],...C},A&&p<rb&&(p++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(l=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:u,y:d}=Gi(l,f,c)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}},sb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Oe(e,t)||{};if(l==null)return{};const d=Gc(u),f={x:n,y:r},p=Ko(o),g=Go(p),m=await i.getDimensions(l),y=p==="y",v=y?"top":"left",b=y?"bottom":"right",x=y?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[p]-f[p]-s.floating[g],C=f[p]-s.reference[p],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let P=A?A[x]:0;(!P||!await(i.isElement==null?void 0:i.isElement(A)))&&(P=a.floating[x]||s.floating[g]);const T=S/2-C/2,V=P/2-m[g]/2-1,E=ze(d[v],V),N=ze(d[b],V),j=E,z=P-m[g]-N,F=P/2-m[g]/2+T,W=eo(j,F,z),L=!c.arrow&&At(o)!=null&&F!==W&&s.reference[g]/2-(F<j?E:N)-m[g]/2<0,$=L?F<j?F-j:F-z:0;return{[p]:f[p]+$,data:{[p]:W,centerOffset:F-W-$,...L&&{alignmentOffset:$}},reset:L}}}),ib=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=Oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Ve(o),b=Te(a),x=Ve(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=f||(x||!m?[jn(a)]:qv(a)),A=g!=="none";!f&&A&&C.push(...eb(a,m,g,S));
vendor: 6,704 bytes, line 45
45const P=[a,...C],T=await c.detectOverflow(t,y),V=[];let E=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&V.push(T[v]),d){const F=Xv(o,i,S);V.push(T[F[0]],T[F[1]])}if(E=[...E,{placement:o,overflows:V}],!V.every(F=>F<=0)){var N,j;const F=(((N=s.flip)==null?void 0:N.index)||0)+1,W=P[F];if(W&&(!(d==="alignment"?b!==Te(W):!1)||E.every(O=>Te(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:F,overflows:E},reset:{placement:W}};let L=(j=E.filter($=>$.overflows[0]<=0).sort(($,O)=>$.overflows[1]-O.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(p){case"bestFit":{var z;const $=(z=E.filter(O=>{if(A){const B=Te(O.placement);return B===b||B==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(B=>B>0).reduce((B,R)=>B+R,0)]).sort((O,B)=>O[1]-B[1])[0])==null?void 0:z[0];$&&(L=$);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Ki(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yi(e){return Kv.some(t=>e[t]>=0)}const ab=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Oe(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Ki(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Yi(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Ki(i,n.floating);return{data:{escapedOffsets:a,escaped:Yi(a)}}}default:return{}}}}},Kc=new Set(["left","top"]);async function lb(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ve(n),a=At(n),c=Te(n)==="y",l=Kc.has(i)?-1:1,u=s&&c?-1:1,d=Oe(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const cb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await lb(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},ub=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...l}=Oe(e,t),u={x:n,y:r},d=await s.detectOverflow(t,l),f=Te(Ve(o)),p=Ho(f);let g=u[p],m=u[f];if(i){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=g+d[v],S=g-d[b];g=eo(x,g,S)}if(a){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=m+d[v],S=m-d[b];m=eo(x,m,S)}const y=c.fn({...t,[p]:g,[f]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:i,[f]:a}}}}}},db=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Oe(e,t),u={x:n,y:r},d=Te(o),f=Ho(d);let p=u[f],g=u[d];const m=Oe(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const x=f==="y"?"height":"width",S=s.reference[f]-s.floating[x]+y.mainAxis,C=s.reference[f]+s.reference[x]-y.mainAxis;p<S?p=S:p>C&&(p=C)}if(l){var v,b;const x=f==="y"?"width":"height",S=Kc.has(Ve(o)),C=s.reference[d]-s.floating[x]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:y.crossAxis),A=s.reference[d]+s.reference[x]+(S?0:((b=i.offset)==null?void 0:b[d])||0)-(S?y.crossAxis:0);g<C?g=C:g>A&&(g=A)}return{[f]:p,[d]:g}}}},fb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Oe(e,t),u=await i.detectOverflow(t,l),d=Ve(o),f=At(o),p=Te(o)==="y",{width:g,height:m}=s.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y=f==="end"?"top":"bottom");const b=m-u.top-u.bottom,x=g-u.left-u.right,S=ze(m-u[y],b),C=ze(g-u[v],x),A=!t.middlewareData.shift;let P=S,T=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),A&&!f){const E=se(u.left,0),N=se(u.right,0),j=se(u.top,0),z=se(u.bottom,0);p?T=g-2*(E!==0||N!==0?E+N:se(u.left,u.right)):P=m-2*(j!==0||z!==0?j+z:se(u.top,u.bottom))}await c({...t,availableWidth:T,availableHeight:P});const V=await i.getDimensions(a.floating);return g!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function Gn(){return typeof window<"u"}function Et(e){return Yc(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(e){var t;return(t=(Yc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yc(e){return Gn()?e instanceof Node||e instanceof ae(e).Node:!1}function me(e){return Gn()?e instanceof Element||e instanceof ae(e).Element:!1}function Ne(e){return Gn()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function Xi(e){return!Gn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function Kt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function hb(e){return/^(table|td|th)$/.test(Et(e))}function Kn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const pb=/transform|translate|scale|rotate|perspective|filter/,mb=/paint|layout|strict|content/,Ye=e=>!!e&&e!=="none";let Tr;function Yo(e){const t=me(e)?ge(e):e;return Ye(t.transform)||Ye(t.translate)||Ye(t.scale)||Ye(t.rotate)||Ye(t.perspective)||!Xo()&&(Ye(t.backdropFilter)||Ye(t.filter))||pb.test(t.willChange||"")||mb.test(t.contain||"")}function gb(e){let t=We(e);for(;Ne(t)&&!bt(t);){if(Yo(t))return t;if(Kn(t))return null;t=We(t)}return null}function Xo(){return Tr==null&&(Tr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tr}function bt(e){return/^(html|body|#document)$/.test(Et(e))}function ge(e){return ae(e).getComputedStyle(e)}function Yn(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||Ee(e);return Xi(t)?t.host:t}function Xc(e){const t=We(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&Kt(t)?t:Xc(t)}function zt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o);if(s){const a=no(i);
vendor: 2,632 bytes, line 45
45return t.concat(i,i.visualViewport||[],Kt(o)?o:[],a&&n?zt(a):[])}else return t.concat(o,zt(o,[],n))}function no(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qc(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=In(n)!==s||In(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function qo(e){return me(e)?e:e.contextElement}function mt(e){const t=qo(e);if(!Ne(t))return Pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=qc(t);let i=(s?In(n.width):n.width)/r,a=(s?In(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const yb=Pe(0);function Zc(e){const t=ae(e);return!Xo()||!t.visualViewport?yb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function tt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=qo(e);let i=Pe(1);t&&(r?me(r)&&(i=mt(r)):i=mt(e));const a=vb(s,n,r)?Zc(s):Pe(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const f=ae(s),p=r&&me(r)?ae(r):r;let g=f,m=no(g);for(;m&&r&&p!==g;){const y=mt(m),v=m.getBoundingClientRect(),b=ge(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*y.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=x,l+=S,g=ae(m),m=no(g)}}return Fn({width:u,height:d,x:c,y:l})}function Xn(e,t){const n=Yn(e).scrollLeft;return t?t.left+n:tt(Ee(e)).left+n}function Qc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function bb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ee(r),a=t?Kn(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=Pe(1);const u=Pe(0),d=Ne(r);if((d||!d&&!s)&&((Et(r)!=="body"||Kt(i))&&(c=Yn(r)),d)){const p=tt(r);l=mt(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=i&&!d&&!s?Qc(i,c):Pe(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function xb(e){return Array.from(e.getClientRects())}function wb(e){const t=Ee(e),n=Yn(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Xn(e);const a=-n.scrollTop;return ge(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const qi=25;function Sb(e,t){const n=ae(e),r=Ee(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;
vendor: 4,685 bytes, line 45
45if(o){s=o.width,i=o.height;const u=Xo();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Xn(r);if(l<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-p);g<=qi&&(s-=g)}else l<=qi&&(s+=l);return{width:s,height:i,x:a,y:c}}function Tb(e,t){const n=tt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?mt(e):Pe(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Zi(e,t,n){let r;if(t==="viewport")r=Sb(e,n);else if(t==="document")r=wb(Ee(e));else if(me(t))r=Tb(t,n);else{const o=Zc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fn(r)}function Jc(e,t){const n=We(e);return n===t||!me(n)||bt(n)?!1:ge(n).position==="fixed"||Jc(n,t)}function Cb(e,t){const n=t.get(e);if(n)return n;let r=zt(e,[],!1).filter(a=>me(a)&&Et(a)!=="body"),o=null;const s=ge(e).position==="fixed";let i=s?We(e):e;for(;me(i)&&!bt(i);){const a=ge(i),c=Yo(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Kt(i)&&!c&&Jc(e,i))?r=r.filter(u=>u!==i):o=a,i=We(i)}return t.set(e,r),r}function Pb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Kn(t)?[]:Cb(t,this._c):[].concat(n),r],a=Zi(t,i[0],o);let c=a.top,l=a.right,u=a.bottom,d=a.left;for(let f=1;f<i.length;f++){const p=Zi(t,i[f],o);c=se(p.top,c),l=ze(p.right,l),u=ze(p.bottom,u),d=se(p.left,d)}return{width:l-d,height:u-c,x:d,y:c}}function Ab(e){const{width:t,height:n}=qc(e);return{width:t,height:n}}function Eb(e,t,n){const r=Ne(t),o=Ee(t),s=n==="fixed",i=tt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Pe(0);function l(){c.x=Xn(o)}if(r||!r&&!s)if((Et(t)!=="body"||Kt(o))&&(a=Yn(t)),r){const p=tt(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&l();s&&!r&&o&&l();const u=o&&!r&&!s?Qc(o,a):Pe(0),d=i.left+a.scrollLeft-c.x-u.x,f=i.top+a.scrollTop-c.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Cr(e){return ge(e).position==="static"}function Qi(e,t){if(!Ne(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ee(e)===n&&(n=n.ownerDocument.body),n}function eu(e,t){const n=ae(e);if(Kn(e))return n;if(!Ne(e)){let o=We(e);for(;o&&!bt(o);){if(me(o)&&!Cr(o))return o;o=We(o)}return n}let r=Qi(e,t);for(;r&&hb(r)&&Cr(r);)r=Qi(r,t);return r&&bt(r)&&Cr(r)&&!Yo(r)?n:r||gb(e)||n}const Rb=async function(e){const t=this.getOffsetParent||eu,n=this.getDimensions,r=await n(e.floating);return{reference:Eb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kb(e){return ge(e).direction==="rtl"}const Mb={convertOffsetParentRelativeRectToViewportRelativeRect:bb,getDocumentElement:Ee,getClippingRect:Pb,getOffsetParent:eu,getElementRects:Rb,getClientRects:xb,getDimensions:Ab,getScale:mt,isElement:me,isRTL:kb};function tu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Db(e,t){let n=null,r;const o=Ee(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const g=dn(d),m=dn(o.clientWidth-(u+f)),y=dn(o.clientHeight-(d+p)),v=dn(u),x={rootMargin:-g+"px "+-m+"px "+-y+"px "+-v+"px",threshold:se(0,ze(1,c))||1};let S=!0;function C(A){const P=A[0].intersectionRatio;if(P!==c){if(!S)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!tu(l,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function Ob(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=qo(e),u=o||s?[...l?zt(l):[],...t?zt(t):[]]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=l&&a?Db(l,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let g,m=c?tt(e):null;c&&y();function y(){const v=tt(e);m&&!tu(m,v)&&n(),m=v,g=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(g)}}
vendor: 4,375 bytes, line 45
45const Vb=cb,Nb=ub,Lb=ib,Ib=fb,jb=ab,Ji=sb,Fb=db,Bb=(e,t,n)=>{const r=new Map,o={platform:Mb,...n},s={...o.platform,_c:r};return ob(e,t,{...o,platform:s})};var _b=typeof document<"u",zb=function(){},Tn=_b?h.useLayoutEffect:zb;function Bn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Bn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Bn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function nu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ea(e,t){const n=nu(e);return Math.round(t*n)/n}function Pr(e){const t=h.useRef(e);return Tn(()=>{t.current=e}),t}function Wb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);Bn(f,r)||p(r);const[g,m]=h.useState(null),[y,v]=h.useState(null),b=h.useCallback(O=>{O!==A.current&&(A.current=O,m(O))},[]),x=h.useCallback(O=>{O!==P.current&&(P.current=O,v(O))},[]),S=s||g,C=i||y,A=h.useRef(null),P=h.useRef(null),T=h.useRef(u),V=c!=null,E=Pr(c),N=Pr(o),j=Pr(l),z=h.useCallback(()=>{if(!A.current||!P.current)return;const O={placement:t,strategy:n,middleware:f};N.current&&(O.platform=N.current),Bb(A.current,P.current,O).then(B=>{const R={...B,isPositioned:j.current!==!1};F.current&&!Bn(T.current,R)&&(T.current=R,io.flushSync(()=>{d(R)}))})},[f,t,n,N,j]);Tn(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[l]);const F=h.useRef(!1);Tn(()=>(F.current=!0,()=>{F.current=!1}),[]),Tn(()=>{if(S&&(A.current=S),C&&(P.current=C),S&&C){if(E.current)return E.current(S,C,z);z()}},[S,C,z,E,V]);const W=h.useMemo(()=>({reference:A,floating:P,setReference:b,setFloating:x}),[b,x]),L=h.useMemo(()=>({reference:S,floating:C}),[S,C]),$=h.useMemo(()=>{const O={position:n,left:0,top:0};if(!L.floating)return O;const B=ea(L.floating,u.x),R=ea(L.floating,u.y);return a?{...O,transform:"translate("+B+"px, "+R+"px)",...nu(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:R}},[n,a,L.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:z,refs:W,elements:L,floatingStyles:$}),[u,z,W,L,$])}const $b=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ji({element:r.current,padding:o}).fn(n):{}:r?Ji({element:r,padding:o}).fn(n):{}}}},Ub=(e,t)=>{const n=Vb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hb=(e,t)=>{const n=Nb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gb=(e,t)=>({fn:Fb(e).fn,options:[e,t]}),Kb=(e,t)=>{const n=Lb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yb=(e,t)=>{const n=Ib(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xb=(e,t)=>{const n=jb(e);return{name:n.name,fn:n.fn,options:[e,t]}},qb=(e,t)=>{const n=$b(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Zb="Arrow",ru=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return w.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});ru.displayName=Zb;var Qb=ru;function Jb(e){const[t,n]=h.useState(void 0);return De(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zo="Popper",[ou,su]=Bo(Zo),[ex,iu]=ou(Zo),au=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null),[s,i]=h.useState(void 0);return w.jsx(ex,{scope:t,anchor:r,onAnchorChange:o,placementState:s,setPlacementState:i,children:n})};au.displayName=Zo;var lu="PopperAnchor",cu=h.forwardRef((e,t)=>
45{const{__scopePopper:n,virtualRef:r,...o}=e,s=iu(lu,n),i=h.useRef(null),a=s.onAnchorChange,c=h.useCallback(g=>{i.current=g,g&&a(g)},[a]),l=ye(t,c),u=h.useRef(null);h.useEffect(()=>{if(!r)return;const g=u.current;u.current=r.current,g!==u.current&&a(u.current)});const d=s.placementState&&Jo(s.placementState),f=d?.[0],p=d?.[1];return r?null:w.jsx(re.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...o,ref:l})});cu.displayName=lu;var Qo="PopperContent",[tx,nx]=ou(Qo),uu=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l,collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,y=iu(Qo,n),[v,b]=h.useState(null),x=ye(t,Le=>b(Le)),[S,C]=h.useState(null),A=Jb(S),P=A?.width??0,T=A?.height??0,V=r+(s!=="center"?"-"+s:""),E=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},N=l?Array.isArray(l)?l:[l]:void 0,j=N!==void 0&&N.length>0,z={padding:E,boundary:N?.filter(ox),altBoundary:j},{refs:F,floatingStyles:W,placement:L,isPositioned:$,middlewareData:O}=Wb({strategy:"fixed",placement:V,whileElementsMounted:(...Le)=>Ob(...Le,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[Ub({mainAxis:o+T,alignmentAxis:i}),c&&Hb({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Gb():void 0,...z}),c&&Kb({...z}),Yb({...z,apply:({elements:Le,rects:K,availableWidth:qt,availableHeight:ot})=>{const{width:st,height:kt}=K.reference,Re=Le.floating.style;Re.setProperty("--radix-popper-available-width",`${qt}px`),Re.setProperty("--radix-popper-available-height",`${ot}px`),Re.setProperty("--radix-popper-anchor-width",`${st}px`),Re.setProperty("--radix-popper-anchor-height",`${kt}px`)}}),S&&qb({element:S,padding:a}),sx({arrowWidth:P,arrowHeight:T}),f&&Xb({strategy:"referenceHidden",...z})]}),B=y.setPlacementState;De(()=>(B(L),()=>{B(void 0)}),[L,B]);const[R,le]=Jo(L),He=vt(g);De(()=>{$&&He?.()},[$,He]);const Xt=O.arrow?.x,Rt=O.arrow?.y,Z=O.arrow?.centerOffset!==0,[Q,rt]=h.useState();return De(()=>{v&&rt(window.getComputedStyle(v).zIndex)},[v]),w.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(tx,{scope:n,placedSide:R,placedAlign:le,onArrowChange:C,arrowX:Xt,arrowY:Rt,shouldHideArrow:Z,children:w.jsx(re.div,{"data-side":R,"data-align":le,...m,ref:x,style:{...m.style,animation:$?void 0:"none"}})})})});uu.displayName=Qo;var du="PopperArrow",rx={top:"bottom",right:"left",bottom:"top",left:"right"},fu=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=nx(du,r),i=rx[s.placedSide];return w.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:w.jsx(Qb,{...o,ref:n,style:{...o.style,display:"block"}})})});fu.displayName=du;function ox(e){return e!==null}var sx=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,u]=Jo(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+a/2,p=(o.arrow?.y??0)+c/2;let g="",m="";return l==="bottom"?(g=i?d:`${f}px`,m=`${-c}px`):l==="top"?(g=i?d:`${f}px`,m=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,m=i?d:`${p}px`):l==="left"&&(g=`${r.floating.width+c}px`,m=i?d:`${p}px`),{data:{x:g,y:m}}}});function Jo(e){const[t,n="center"]=e.split("-");return[t,n]}var ix=au,ax=cu,lx=uu,cx=fu,ux=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"}),dx="VisuallyHidden",hu=h.forwardRef((e,t)=>
vendor: 8,716 bytes, line 45
45w.jsx(re.span,{...e,ref:t,style:{...ux,...e.style}}));hu.displayName=dx;var fx=hu,[qn]=Bo("Tooltip",[su]),Zn=su(),pu="TooltipProvider",hx=700,ro="tooltip.open",[px,es]=qn(pu),mu=e=>{const{__scopeTooltip:t,delayDuration:n=hx,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=h.useRef(!0),a=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),w.jsx(px,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),i.current=!1)},[r]),onClose:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r))},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};mu.displayName=pu;var Wt="Tooltip",[mx,Yt]=qn(Wt),gu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=es(Wt,e.__scopeTooltip),l=Zn(t),[u,d]=h.useState(null),f=xn(),p=h.useRef(0),g=i??c.disableHoverableContent,m=a??c.delayDuration,y=h.useRef(!1),[v,b]=lc({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(ro))):c.onClose(),s?.(P)},caller:Wt}),x=h.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),S=h.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,b(!0)},[b]),C=h.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b(!1)},[b]),A=h.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,b(!0),p.current=0},m)},[m,b]);return h.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(ix,{...l,children:w.jsx(mx,{scope:t,contentId:f,open:v,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?A():S()},[c.isOpenDelayedRef,A,S]),onTriggerLeave:h.useCallback(()=>{g?C():(window.clearTimeout(p.current),p.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})};gu.displayName=Wt;var oo="TooltipTrigger",yu=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Yt(oo,n),s=es(oo,n),i=Zn(n),a=h.useRef(null),c=ye(t,a,o.onTriggerChange),l=h.useRef(!1),u=h.useRef(!1),d=h.useCallback(()=>l.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(ax,{asChild:!0,...i,children:w.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:oe(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:oe(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:oe(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:oe(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:oe(e.onBlur,o.onClose),onClick:oe(e.onClick,o.onClose)})})});yu.displayName=oo;var ts="TooltipPortal",[gx,yx]=qn(ts,{forceMount:void 0}),vu=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Yt(ts,t);return w.jsx(gx,{scope:t,forceMount:n,children:w.jsx(Pt,{present:n||s.open,children:w.jsx(zo,{asChild:!0,container:o,children:r})})})};vu.displayName=ts;var xt="TooltipContent",bu=h.forwardRef((e,t)=>{const n=yx(xt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Yt(xt,e.__scopeTooltip);return w.jsx(Pt,{present:r||i.open,children:i.disableHoverableContent?w.jsx(xu,{side:o,...s,ref:t}):w.jsx(vx,{side:o,...s,ref:t})})}),vx=h.forwardRef((e,t)=>{const n=Yt(xt,e.__scopeTooltip),r=es(xt,e.__scopeTooltip),o=h.useRef(null),s=ye(t,o),[i,a]=h.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,f=h.useCallback(()=>{a(null),d(!1)},[d]),p=h.useCallback((g,m)=>{const y=g.currentTarget,v={x:g.clientX,y:g.clientY},b=Tx(v,y.getBoundingClientRect()),x=Cx(v,b),S=Px(m.getBoundingClientRect()),C=Ex([...x,...S]);a(C),d(!0)},[d]);return h.useEffect(()=>()=>f(),[f]),h.useEffect(()=>{if(c&&u){const g=y=>p(y,u),m=y=>p(y,c);return c.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[c,u,p,f]),h.useEffect(()=>{if(i){const g=m=>{const y=m.target,v={x:m.clientX,y:m.clientY},b=c?.contains(y)||u?.contains(y),x=!Ax(v,i);b?f():x&&(f(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,u,i,l,f]),w.jsx(xu,{...e,ref:s})}),[bx,xx]=qn(Wt,{isInside:!1}),wx=ug("TooltipContent"),xu=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Yt(xt,n),l=Zn(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(ro,u),()=>document.removeEventListener(ro,u)),[u]),h.useEffect(()=>{if(c.trigger){const d=f=>{f.target instanceof Node&&f.target.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),w.jsx(_o,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:w.jsxs(lx,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(wx,{children:r}),w.jsx(bx,{scope:n,isInside:!0,children:w.jsx(fx,{id:c.contentId,role:"tooltip",children:o||r})})]})})});bu.displayName=xt;var wu="TooltipArrow",Sx=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zn(n);return xx(wu,n).isInside?null:w.jsx(cx,{...o,...r,ref:t})});Sx.displayName=wu;function Tx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Cx(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Px(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Ax(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,u=a.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function Ex(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Rx(t)}function Rx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var kx=mu,Mx=gu,Dx=yu,Ox=vu,Su=bu;const Vx=kx,Nx=Mx,Lx=Dx,Tu=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>w.jsx(Ox,{children:w.jsx(Su,{ref:r,sideOffset:t,className:_("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));Tu.displayName=Su.displayName;const Ix="sidebar_state",jx=3600*24*7,Fx="16rem",Bx="18rem",_x="3rem",zx="b",Cu=h.createContext(null);function Qn(){const e=h.useContext(Cu);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Wx=h.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...i},a)=>{const c=bg(),[l,u]=h.useState(!1),[d,f]=h.useState(e),p=t??d,g=h.useCallback(b=>{const x=typeof b=="function"?b(p):b;n?n(x):f(x),document.cookie=`${Ix}=${x}; path=/; max-age=${jx}`},[n,p]),m=h.useCallback(()=>c?u(b=>!b):g(b=>!b),[c,g,u]);h.useEffect(()=>{const b=x=>
45{x.key===zx&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),m())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[m]);const y=p?"expanded":"collapsed",v=h.useMemo(()=>({state:y,open:p,setOpen:g,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:m}),[y,p,g,c,l,u,m]);return w.jsx(Cu.Provider,{value:v,children:w.jsx(Vx,{delayDuration:0,children:w.jsx("div",{style:{"--sidebar-width":Fx,"--sidebar-width-icon":_x,...o},className:_("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:a,...i,children:s})})})});Wx.displayName="SidebarProvider";const Pu=h.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s},i)=>{const{isMobile:a,state:c,openMobile:l,setOpenMobile:u}=Qn();return n==="none"?w.jsx("div",{className:_("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...s,children:o}):a?w.jsx(Uv,{open:l,onOpenChange:u,...s,children:w.jsxs(Wc,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Bx},side:e,children:[w.jsxs($c,{className:"sr-only",children:[w.jsx(Uc,{children:"Sidebar"}),w.jsx(Hc,{children:"Displays the mobile sidebar."})]}),w.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):w.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,children:[w.jsx("div",{className:_("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),w.jsx("div",{className:_("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:w.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});Pu.displayName="Sidebar";const $x=h.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Qn();return w.jsxs(rc,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:_("h-7 w-7",e),onClick:s=>{t?.(s),o()},...n,children:[w.jsx(sd,{}),w.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});$x.displayName="SidebarTrigger";const Au=h.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Qn();return w.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:_("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Au.displayName="SidebarRail";const Ux=h.forwardRef(({className:e,...t},n)=>w.jsx("main",{ref:n,className:_("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Ux.displayName="SidebarInset";const Hx=h.forwardRef(({className:e,...t},n)=>w.jsx(oc,{ref:n,"data-sidebar":"input",className:_("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Hx.displayName="SidebarInput";const Eu=h.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,"data-sidebar":"header",className:_("flex flex-col gap-2 p-2",e),...t}));Eu.displayName="SidebarHeader";const Ru=h.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,"data-sidebar":"footer",className:_("flex flex-col gap-2 p-2",e),...t}));Ru.displayName="SidebarFooter";const Gx=h.forwardRef(({className:e,...t},n)=>w.jsx(ac,{ref:n,"data-sidebar":"separator",className:_("mx-2 w-auto bg-sidebar-border",e),...t}));Gx.displayName="SidebarSeparator";const ku=h.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,"data-sidebar":"content",className:_("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ku.displayName="SidebarContent";const Mu=h.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,"data-sidebar":"group",className:_("relative flex w-full min-w-0 flex-col p-2",e),...t}));Mu.displayName="SidebarGroup";const Kx=h.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Ct:"div";return w.jsx(o,{ref:r,"data-sidebar":"group-label",className:_("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground
45/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Kx.displayName="SidebarGroupLabel";const Yx=h.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Ct:"button";return w.jsx(o,{ref:r,"data-sidebar":"group-action",className:_("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring cursor-pointer transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});Yx.displayName="SidebarGroupAction";const Du=h.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,"data-sidebar":"group-content",className:_("w-full text-sm",e),...t}));Du.displayName="SidebarGroupContent";const Ou=h.forwardRef(({className:e,...t},n)=>w.jsx("ul",{ref:n,"data-sidebar":"menu",className:_("flex w-full min-w-0 flex-col gap-1",e),...t}));Ou.displayName="SidebarMenu";const Vu=h.forwardRef(({className:e,...t},n)=>w.jsx("li",{ref:n,"data-sidebar":"menu-item",className:_("group/menu-item relative",e),...t}));Vu.displayName="SidebarMenuItem";const Xx=Io("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring cursor-pointer transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Nu=h.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:s,...i},a)=>{const c=e?Ct:"button",{isMobile:l,state:u}=Qn(),d=w.jsx(c,{ref:a,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:_(Xx({variant:n,size:r}),s),...i});return o?(typeof o=="string"&&(o={children:o}),w.jsxs(Nx,{children:[w.jsx(Lx,{asChild:!0,children:d}),w.jsx(Tu,{side:"right",align:"center",hidden:u!=="collapsed"||l,...o})]})):d});Nu.displayName="SidebarMenuButton";const qx=h.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const s=t?Ct:"button";return w.jsx(s,{ref:o,"data-sidebar":"menu-action",className:_("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring cursor-pointer transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});qx.displayName="SidebarMenuAction";const Zx=h.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:_("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Zx.displayName="SidebarMenuBadge";const Qx=h.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=h.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return w.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:_("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&w.jsx($i,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),w.jsx($i,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Qx.displayName="SidebarMenuSkeleton";const Jx=h.forwardRef(({className:e,...t},n)=>w.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:_("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Jx.displayName="SidebarMenuSub";const ew=h.forwardRef(({...e},t)=>w.jsx("li",{ref:t,...e}));ew.displayName="SidebarMenuSubItem";const tw=h.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},s)=>{const i=e?Ct:"a";return w.jsx(i,{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:_("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});tw.displayName="SidebarMenuSubButton";const nw="/assets/phasezero-logo-BEy02M1R.png",rw=[{to:"/",label:"Briefing Room",icon:td},{to:"/opportunities",label:"Opportunities",icon:Ku},{to:"/evidence",label:"Evidence",icon:rd}
45,{to:"/signals",label:"Signal Intel",icon:Xu},{to:"/models",label:"Models",icon:Ju},{to:"/simulation",label:"Decision Stress Test",icon:ud},{to:"/memos",label:"Memos",icon:Hu},{to:"/settings",label:"Settings",icon:ld}];function dw(){const e=Fu({select:n=>n.location.pathname}),t=n=>n==="/"?e==="/":e.startsWith(n);return w.jsxs(Pu,{children:[w.jsx(Eu,{className:"px-5 py-0",children:w.jsx(ns,{to:"/",className:"block px-0",children:w.jsx("img",{src:nw,alt:"PhaseZero",className:"h-48 w-auto max-w-[340px] -my-16 -ml-12",style:{filter:"invert(1) hue-rotate(180deg) brightness(2.2) saturate(1.2)"}})})}),w.jsx(ku,{children:w.jsx(Mu,{children:w.jsx(Du,{children:w.jsx(Ou,{children:rw.map(n=>{const r=t(n.to),o=n.icon;return w.jsx(Vu,{children:w.jsx(Nu,{asChild:!0,isActive:r,children:w.jsxs(ns,{to:n.to,className:"relative",children:[r&&w.jsx("span",{className:"absolute right-0 top-1/2 h-5 w-[2px] -translate-y-1/2 bg-pz-accent"}),w.jsx(o,{size:15,className:r?"text-pz-accent":"text-pz-muted"}),w.jsx("span",{className:"text-[14px] font-light",children:n.label})]})})},n.to)})})})})}),w.jsx(Ru,{className:"px-5 py-5",children:w.jsxs("div",{className:"flex flex-col gap-3",children:[w.jsxs("div",{className:"border pz-border rounded-sm px-3 py-2.5 flex items-center gap-2",children:[w.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-pz-accent pz-pulse"}),w.jsxs("div",{className:"flex flex-col",children:[w.jsx("span",{className:"text-[12px] text-sidebar-foreground",children:"PhaseZero Research Desk"}),w.jsx("span",{className:"font-mono-pz text-[9px] tracking-wider text-pz-accent",children:"ONLINE"})]})]}),w.jsxs("div",{className:"flex items-center gap-2.5 px-1 py-1",children:[w.jsx("span",{className:"h-7 w-7 rounded-full bg-[color:var(--pz-panel-alt)] border pz-border flex items-center justify-center font-mono-pz text-[10px] text-sidebar-foreground",children:"BD"}),w.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[w.jsx("span",{className:"text-[12px] text-sidebar-foreground truncate",children:"BD Opportunity Workspace"}),w.jsx("span",{className:"text-[10px] text-sidebar-foreground/70 truncate",children:"BD / Commercial Development"})]}),w.jsx(Zu,{size:12,className:"ml-auto text-sidebar-foreground/60"})]})]})}),w.jsx(Au,{})]})}export{Wx as A,dw as B,Zu as C,Ux as D,Wl as E,rd as F,Fu as G,El as M,$x as S,ud as T,_e as a,kf as b,de as c,xh as d,ff as e,H as f,Ae as g,J as h,uf as i,md as j,aw as k,yt as l,Ao as m,ue as n,vs as o,jt as p,cw as q,Ps as r,iw as s,_ as t,hd as u,aa as v,sw as w,nw as x,ac as y,td as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.