@shumai-one/shumai 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/bin/{chunk-1dt700ws.js → chunk-04avc4fn.js} +49 -49
  2. package/bin/chunk-0asthrjf.js +2 -0
  3. package/bin/chunk-0ge2mm8j.js +1 -0
  4. package/bin/{chunk-3z20b2hz.js → chunk-0j22699g.js} +2 -2
  5. package/bin/{chunk-j909v9p5.js → chunk-0v9srsdz.js} +1 -1
  6. package/bin/{chunk-exgtwask.js → chunk-0y4zq3y4.js} +1 -1
  7. package/bin/{chunk-5yd9cv7f.js → chunk-15vsw36h.js} +5 -5
  8. package/bin/{chunk-3584j9fc.js → chunk-15w79661.js} +2 -2
  9. package/bin/{chunk-xvdd04gy.js → chunk-19jpn3r6.js} +1 -1
  10. package/bin/{chunk-grsgkkrb.js → chunk-19q13a80.js} +6 -6
  11. package/bin/{chunk-r6gkv98n.js → chunk-1nvj833s.js} +6 -6
  12. package/bin/chunk-23780yj6.js +3 -0
  13. package/bin/chunk-2gf95tj0.js +1 -0
  14. package/bin/{chunk-6vvs18bw.js → chunk-2pw7xcrn.js} +1 -1
  15. package/bin/chunk-2tk5w3jc.js +1 -0
  16. package/bin/chunk-2w6gve12.js +4 -0
  17. package/bin/chunk-301e7g3z.js +2 -0
  18. package/bin/chunk-3kmjbc3m.js +2 -0
  19. package/bin/{chunk-zhe16jvg.js → chunk-3pm6q6kg.js} +1 -1
  20. package/bin/{chunk-zfqz72sd.js → chunk-3q5qkfkc.js} +1 -1
  21. package/bin/chunk-3td60k1m.js +2 -0
  22. package/bin/chunk-42hrvk6k.js +211 -0
  23. package/bin/chunk-4zksqvwj.js +2 -0
  24. package/bin/chunk-5bk16qdp.js +2 -0
  25. package/bin/{chunk-y03z5rrg.js → chunk-5nqvqvqp.js} +3 -3
  26. package/bin/{chunk-e3r1m6rb.js → chunk-5rzxekn4.js} +1 -1
  27. package/bin/{chunk-h9x81yp6.js → chunk-5vqbzsjv.js} +1 -1
  28. package/bin/{chunk-628k58ek.js → chunk-6hzktewz.js} +2 -2
  29. package/bin/{chunk-s978ftze.js → chunk-6jkjx0n2.js} +3 -3
  30. package/bin/{chunk-gy8z8sd7.js → chunk-6rn094yj.js} +1 -1
  31. package/bin/{chunk-3cvbb6kh.js → chunk-7qvvf0yd.js} +2 -2
  32. package/bin/{chunk-asgxtqf0.js → chunk-81dawvn4.js} +2 -2
  33. package/bin/chunk-8abhmarc.js +2 -0
  34. package/bin/{chunk-vre5andt.js → chunk-8ayz61rc.js} +3 -3
  35. package/bin/{chunk-03bfjh8k.js → chunk-8ny7wvzb.js} +2 -2
  36. package/bin/{chunk-m5cpsm28.js → chunk-8tzfcqtb.js} +2 -2
  37. package/bin/{chunk-5patxztz.js → chunk-8zgq5sav.js} +3 -3
  38. package/bin/{chunk-m1xc3t0p.js → chunk-93p27bbm.js} +6 -6
  39. package/bin/chunk-951r2rx1.js +1 -0
  40. package/bin/chunk-965102pf.js +3 -0
  41. package/bin/{chunk-hr2027z3.js → chunk-98mg3dpd.js} +8 -8
  42. package/bin/{chunk-v42jcex0.js → chunk-9bakwac0.js} +4 -4
  43. package/bin/{chunk-z8mmqfm4.js → chunk-9ggwc289.js} +1 -1
  44. package/bin/{chunk-dvkzhpxx.js → chunk-9zgqjdx1.js} +2 -2
  45. package/bin/{chunk-kzsdp31a.js → chunk-a8bymrv1.js} +2 -2
  46. package/bin/chunk-acn3r2m2.js +1 -0
  47. package/bin/{chunk-z1r86fna.js → chunk-ae6zgjhd.js} +2 -2
  48. package/bin/{chunk-trndqdaa.js → chunk-asy868kq.js} +1 -1
  49. package/bin/{chunk-r1m4q8vw.js → chunk-b5r0be06.js} +2 -2
  50. package/bin/{chunk-6ns2vhbd.js → chunk-bbcmhcvc.js} +2 -2
  51. package/bin/{chunk-0e8xg41c.js → chunk-bpxw19ez.js} +1 -1
  52. package/bin/{chunk-sg7n2g3z.js → chunk-cdk8vqeg.js} +4 -4
  53. package/bin/chunk-ce0bhc72.js +2 -0
  54. package/bin/chunk-ce75dw3k.css +1 -0
  55. package/bin/{chunk-zf2h3w7t.js → chunk-cpj562n6.js} +1 -1
  56. package/bin/{chunk-h153xefb.js → chunk-cx32wsa1.js} +1 -1
  57. package/bin/{chunk-4437dnfa.js → chunk-d2dgazjj.js} +1 -1
  58. package/bin/{chunk-3zvvct3r.js → chunk-d5hbzp7t.js} +1 -1
  59. package/bin/chunk-d9qpgkek.js +2 -0
  60. package/bin/{chunk-9h6nn1a3.js → chunk-dche0gy0.js} +1 -1
  61. package/bin/{chunk-zcrtr8qd.js → chunk-dppfek34.js} +2 -2
  62. package/bin/chunk-dv6p6n5e.js +1 -0
  63. package/bin/{chunk-hx76pje1.js → chunk-e439kt05.js} +1 -1
  64. package/bin/{chunk-gptzcgte.js → chunk-eqr0znmc.js} +1 -1
  65. package/bin/{chunk-q5mkbnr9.js → chunk-f5z3096k.js} +2 -2
  66. package/bin/{chunk-3m6ch1x5.js → chunk-ffj9cq9y.js} +2 -2
  67. package/bin/{chunk-80qz30dc.js → chunk-fxg81vtx.js} +2 -2
  68. package/bin/{chunk-5jbx9gqe.js → chunk-ggfx2b0f.js} +1 -1
  69. package/bin/chunk-gnt9gewm.js +2 -0
  70. package/bin/{chunk-t597y392.js → chunk-grjek810.js} +2 -2
  71. package/bin/chunk-gvas3xkp.js +2 -0
  72. package/bin/{chunk-0ttr4a6b.js → chunk-j53sjkxt.js} +2 -2
  73. package/bin/{chunk-xyk7vk42.js → chunk-jgfye6nf.js} +2 -2
  74. package/bin/{chunk-tcat7q9p.js → chunk-jt6v15wx.js} +2 -2
  75. package/bin/{chunk-rn9rktp4.js → chunk-k3prp6c6.js} +4 -4
  76. package/bin/{chunk-mqr096rn.js → chunk-k97axrc4.js} +1 -1
  77. package/bin/{chunk-20anqpf1.js → chunk-kvwec0p3.js} +2 -2
  78. package/bin/{chunk-tcp4q15p.js → chunk-kzr6ecke.js} +1 -1
  79. package/bin/{chunk-rkq6jvhb.js → chunk-m6v8vt2b.js} +2 -2
  80. package/bin/{chunk-xyh5dkr5.js → chunk-mn108p93.js} +1 -1
  81. package/bin/{chunk-31vx01aw.js → chunk-mn208vrv.js} +2 -2
  82. package/bin/chunk-mneeg71d.js +2 -0
  83. package/bin/{chunk-d7mgjqf8.js → chunk-n76w2wcr.js} +1 -1
  84. package/bin/{chunk-m2dtwvg0.js → chunk-n9vp9nbg.js} +29 -29
  85. package/bin/{chunk-2g5qdx4s.js → chunk-p0j4wpa5.js} +2 -2
  86. package/bin/chunk-qb178ntp.js +2 -0
  87. package/bin/{chunk-7vd5yajk.js → chunk-qmrg2jhs.js} +7 -7
  88. package/bin/{chunk-4mq874m3.js → chunk-qxscgcn9.js} +2 -2
  89. package/bin/{chunk-z7p7s55t.js → chunk-r249n1xe.js} +2 -2
  90. package/bin/{chunk-36r20sj7.js → chunk-r776bhsg.js} +1 -1
  91. package/bin/{chunk-1k16xsqq.js → chunk-rmvhyqyb.js} +6 -6
  92. package/bin/{chunk-zwb9kamp.js → chunk-rtaya5wc.js} +2 -2
  93. package/bin/chunk-rw5h0n0s.js +1 -0
  94. package/bin/{chunk-6v6c2921.js → chunk-ryepy5er.js} +4 -4
  95. package/bin/{chunk-ehhsezbj.js → chunk-rza95y4z.js} +2 -2
  96. package/bin/chunk-s4r6e6ms.js +1 -0
  97. package/bin/{chunk-qgkbxw1k.js → chunk-sbyyn9yw.js} +2 -2
  98. package/bin/chunk-syjjke3f.js +1 -0
  99. package/bin/chunk-t1yamxgk.js +2 -0
  100. package/bin/chunk-tgfxe0sb.js +1 -0
  101. package/bin/chunk-tjretpx8.js +1 -0
  102. package/bin/chunk-tvkekn4z.js +1 -0
  103. package/bin/{chunk-5t05jpna.js → chunk-twpc640e.js} +1 -1
  104. package/bin/{chunk-kvqp50dm.js → chunk-v034sfw8.js} +2 -2
  105. package/bin/{chunk-wydd7sz7.js → chunk-v5hz09a1.js} +2 -2
  106. package/bin/{chunk-j3xaq9s3.js → chunk-vm2pz2hm.js} +2 -2
  107. package/bin/{chunk-mt532a33.js → chunk-vzdgsfkf.js} +1 -1
  108. package/bin/chunk-w4yjgez6.js +14 -0
  109. package/bin/{chunk-0yv0nnmh.js → chunk-w73v578p.js} +2 -2
  110. package/bin/{chunk-zp5b1mb6.js → chunk-w9z27p0m.js} +2 -2
  111. package/bin/chunk-wjcebkpb.js +1 -0
  112. package/bin/{chunk-62sj29j8.js → chunk-wnqxyqrg.js} +2 -2
  113. package/bin/chunk-ws71fg50.js +2 -0
  114. package/bin/{chunk-rsdpycdr.js → chunk-wwkhskce.js} +2 -2
  115. package/bin/{chunk-kgfa5y9w.js → chunk-xr2v0d6y.js} +5 -5
  116. package/bin/{chunk-wkxm6yny.js → chunk-y2dhf3p0.js} +2 -2
  117. package/bin/chunk-yfp3q4da.js +1 -0
  118. package/bin/{chunk-f22nrm6r.js → chunk-ypkkfwfb.js} +4 -4
  119. package/bin/chunk-z8e4wc59.js +1 -0
  120. package/bin/{chunk-c4wnhekn.js → chunk-zckxc8m6.js} +2 -2
  121. package/bin/{chunk-3fjgf7eb.js → chunk-zdzkjp4q.js} +2 -2
  122. package/bin/chunk-zf5cyxnt.js +2 -0
  123. package/bin/shumai-app.html +1 -1
  124. package/bin/shumai-app.js +401 -396
  125. package/package.json +7 -7
  126. package/prisma/migrations/20261008134859_add_transcode_3d/migration.sql +2 -0
  127. package/prisma/schema.prisma +1 -0
  128. package/bin/chunk-088e1ath.js +0 -3
  129. package/bin/chunk-18kgmvme.js +0 -2
  130. package/bin/chunk-1ya6vx4k.js +0 -1
  131. package/bin/chunk-3xw70yr4.js +0 -2
  132. package/bin/chunk-4frhvsy0.js +0 -1
  133. package/bin/chunk-57nqvcg7.js +0 -1
  134. package/bin/chunk-58hdvwj2.js +0 -1
  135. package/bin/chunk-5seey9ee.js +0 -2
  136. package/bin/chunk-66hdwm6f.js +0 -2
  137. package/bin/chunk-6devq6jh.js +0 -2
  138. package/bin/chunk-756mr32b.js +0 -2
  139. package/bin/chunk-9k86d2a3.js +0 -4
  140. package/bin/chunk-a5fsqkt7.js +0 -1
  141. package/bin/chunk-ar6kq7hh.js +0 -2
  142. package/bin/chunk-axfwh5et.js +0 -2
  143. package/bin/chunk-c0vbj8za.js +0 -1
  144. package/bin/chunk-dcmfn4hs.js +0 -2
  145. package/bin/chunk-dy79b8kd.js +0 -1
  146. package/bin/chunk-ehvyq65t.js +0 -2
  147. package/bin/chunk-g21k2awz.js +0 -2
  148. package/bin/chunk-g9f9nzcc.js +0 -1
  149. package/bin/chunk-gzzfta3s.js +0 -2
  150. package/bin/chunk-k9cgfzgk.js +0 -3
  151. package/bin/chunk-nbfcknsq.js +0 -1
  152. package/bin/chunk-phzemmmy.js +0 -2
  153. package/bin/chunk-qcf3tb72.js +0 -1
  154. package/bin/chunk-rgfh5apb.js +0 -1
  155. package/bin/chunk-rh1hs8wa.js +0 -2
  156. package/bin/chunk-rpxayeqd.js +0 -1
  157. package/bin/chunk-s33pcxn0.js +0 -1
  158. package/bin/chunk-s9svhjv6.js +0 -2
  159. package/bin/chunk-vnk2p7mq.css +0 -1
  160. package/bin/chunk-vsefjzzj.js +0 -211
  161. package/bin/chunk-wf32n1s3.js +0 -1
  162. package/bin/chunk-yd1k76na.js +0 -2
  163. package/bin/chunk-yfm9xwes.js +0 -14
  164. package/bin/chunk-zkep4r7d.js +0 -1
@@ -1,211 +0,0 @@
1
- import{H,w,ke,wm,Sm}from"./chunk-kzsdp31a.js";var V={};Sm(V,{Activity:()=>bG,Children:()=>rc,Component:()=>Ns,Fragment:()=>Cn,Profiler:()=>wG,PureComponent:()=>zG,StrictMode:()=>tB,Suspense:()=>ui,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Wi,__COMPILER_RUNTIME:()=>SG,cache:()=>LG,cacheSignal:()=>kG,cloneElement:()=>Du,createContext:()=>it,createElement:()=>j,createRef:()=>CG,forwardRef:()=>F,isValidElement:()=>ts,lazy:()=>IG,memo:()=>Bn,startTransition:()=>FL,unstable_useCacheRefresh:()=>RG,use:()=>Ca,useActionState:()=>PG,useCallback:()=>D,useContext:()=>ft,useDebugValue:()=>di,useDeferredValue:()=>TG,useEffect:()=>h,useEffectEvent:()=>AG,useId:()=>ju,useImperativeHandle:()=>gn,useInsertionEffect:()=>FO,useLayoutEffect:()=>$e,useMemo:()=>N,useOptimistic:()=>EG,useReducer:()=>tn,useRef:()=>y,useState:()=>u,useSyncExternalStore:()=>Yn,useTransition:()=>DG,version:()=>Ds},{Activity:(PRt)=>bG=PRt,Children:(PRt)=>rc=PRt,Component:(PRt)=>Ns=PRt,Fragment:(PRt)=>Cn=PRt,Profiler:(PRt)=>wG=PRt,PureComponent:(PRt)=>zG=PRt,StrictMode:(PRt)=>tB=PRt,Suspense:(PRt)=>ui=PRt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(PRt)=>Wi=PRt,__COMPILER_RUNTIME:(PRt)=>SG=PRt,cache:(PRt)=>LG=PRt,cacheSignal:(PRt)=>kG=PRt,cloneElement:(PRt)=>Du=PRt,createContext:(PRt)=>it=PRt,createElement:(PRt)=>j=PRt,createRef:(PRt)=>CG=PRt,forwardRef:(PRt)=>F=PRt,isValidElement:(PRt)=>ts=PRt,lazy:(PRt)=>IG=PRt,memo:(PRt)=>Bn=PRt,startTransition:(PRt)=>FL=PRt,unstable_useCacheRefresh:(PRt)=>RG=PRt,use:(PRt)=>Ca=PRt,useActionState:(PRt)=>PG=PRt,useCallback:(PRt)=>D=PRt,useContext:(PRt)=>ft=PRt,useDebugValue:(PRt)=>di=PRt,useDeferredValue:(PRt)=>TG=PRt,useEffect:(PRt)=>h=PRt,useEffectEvent:(PRt)=>AG=PRt,useId:(PRt)=>ju=PRt,useImperativeHandle:(PRt)=>gn=PRt,useInsertionEffect:(PRt)=>FO=PRt,useLayoutEffect:(PRt)=>$e=PRt,useMemo:(PRt)=>N=PRt,useOptimistic:(PRt)=>EG=PRt,useReducer:(PRt)=>tn=PRt,useRef:(PRt)=>y=PRt,useState:(PRt)=>u=PRt,useSyncExternalStore:(PRt)=>Yn=PRt,useTransition:(PRt)=>DG=PRt,version:(PRt)=>Ds=PRt});function Qye(e){if(e===null||typeof e!=="object")return null;return e=ZG&&e[ZG]||e["@@iterator"],typeof e==="function"?e:null}function NL(e,r,a){this.props=e,this.context=r,this.refs=vG,this.updater=a||MG}function yG(){}function Qj(e,r,a){this.props=e,this.context=r,this.refs=vG,this.updater=a||MG}function Gj(){}function $j(e,r,a){var i=a.ref;return{$$typeof:Xj,type:e,key:r,ref:i!==void 0?i:null,props:a}}function Jye(e,r){return $j(e.type,r,e.props)}function eB(e){return typeof e==="object"&&e!==null&&e.$$typeof===Xj}function $ye(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return r[a]})}function Kj(e,r){return typeof e==="object"&&e!==null&&e.key!=null?$ye(""+e.key):r.toString(36)}function e_e(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Gj,Gj):(e.status="pending",e.then(function(r){e.status==="pending"&&(e.status="fulfilled",e.value=r)},function(r){e.status==="pending"&&(e.status="rejected",e.reason=r)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function OL(e,r,a,i,s){var l=typeof e;if(l==="undefined"||l==="boolean")e=null;var c=!1;if(e===null)c=!0;else switch(l){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Xj:case Bye:c=!0;break;case gG:return c=e._init,OL(c(e._payload),r,a,i,s)}}if(c)return s=s(e),c=i===""?"."+Kj(e,0):i,pG(s)?(a="",c!=null&&(a=c.replace(mG,"$&/")+"/"),OL(s,r,a,"",function(g){return g})):s!=null&&(eB(s)&&(s=Jye(s,a+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(mG,"$&/")+"/")+c)),r.push(s)),1;c=0;var d=i===""?".":i+":";if(pG(e))for(var m=0;m<e.length;m++)i=e[m],l=d+Kj(i,m),c+=OL(i,r,a,l,s);else if(m=Qye(e),typeof m==="function")for(e=m.call(e),m=0;!(i=e.next()).done;)i=i.value,l=d+Kj(i,m++),c+=OL(i,r,a,l,s);else if(l==="object"){if(typeof e.then==="function")return OL(e_e(e),r,a,i,s);throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function NO(e,r,a){if(e==null)return e;var i=[],s=0;return OL(e,i,"","",function(l){return r.call(a,l,s++)}),i}function t_e(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(a){if(e._status===0||e._status===-1)e._status=1,e._result=a},function(a){if(e._status===0||e._status===-1)e._status=2,e._result=a}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var Xj,Bye,Uye,Yye,qye,Hye,Vye,Wye,Kye,Gye,gG,Xye,ZG,MG,xG,vG,Jj,pG,Ga,_G,mG,hG,r_e,bG,rc,Ns,Cn,wG,zG,tB,ui,Wi,SG,LG=function(e){return function(){return e.apply(null,arguments)}},kG=function(){return null},Du=function(e,r,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var i=xG({},e.props),s=e.key;if(r!=null)for(l in r.key!==void 0&&(s=""+r.key),r)!_G.call(r,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&r.ref===void 0||(i[l]=r[l]);var l=arguments.length-2;if(l===1)i.children=a;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];i.children=c}return $j(e.type,s,i)},it=function(e){return e={$$typeof:Vye,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Hye,_context:e},e},j=function(e,r,a){var i,s={},l=null;if(r!=null)for(i in r.key!==void 0&&(l=""+r.key),r)_G.call(r,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(s[i]=r[i]);var c=arguments.length-2;if(c===1)s.children=a;else if(1<c){for(var d=Array(c),m=0;m<c;m++)d[m]=arguments[m+2];s.children=d}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)s[i]===void 0&&(s[i]=c[i]);return $j(e,l,s)},CG=function(){return{current:null}},F=function(e){return{$$typeof:Wye,render:e}},ts,IG=function(e){return{$$typeof:gG,_payload:{_status:-1,_result:e},_init:t_e}},Bn=function(e,r){return{$$typeof:Gye,type:e,compare:r===void 0?null:r}},FL=function(e){var r=Ga.T,a={};Ga.T=a;try{var i=e(),s=Ga.S;s!==null&&s(a,i),typeof i==="object"&&i!==null&&typeof i.then==="function"&&i.then(Gj,hG)}catch(l){hG(l)}finally{r!==null&&a.types!==null&&(r.types=a.types),Ga.T=r}},RG=function(){return Ga.H.useCacheRefresh()},Ca=function(e){return Ga.H.use(e)},PG=function(e,r,a){return Ga.H.useActionState(e,r,a)},D=function(e,r){return Ga.H.useCallback(e,r)},ft=function(e){return Ga.H.useContext(e)},di=function(){},TG=function(e,r){return Ga.H.useDeferredValue(e,r)},h=function(e,r){return Ga.H.useEffect(e,r)},AG=function(e){return Ga.H.useEffectEvent(e)},ju=function(){return Ga.H.useId()},gn=function(e,r,a){return Ga.H.useImperativeHandle(e,r,a)},FO=function(e,r){return Ga.H.useInsertionEffect(e,r)},$e=function(e,r){return Ga.H.useLayoutEffect(e,r)},N=function(e,r){return Ga.H.useMemo(e,r)},EG=function(e,r){return Ga.H.useOptimistic(e,r)},tn=function(e,r,a){return Ga.H.useReducer(e,r,a)},y=function(e){return Ga.H.useRef(e)},u=function(e){return Ga.H.useState(e)},Yn=function(e,r,a){return Ga.H.useSyncExternalStore(e,r,a)},DG=function(){return Ga.H.useTransition()},Ds="19.2.8";var S=wm(()=>{Xj=Symbol.for("react.transitional.element"),Bye=Symbol.for("react.portal"),Uye=Symbol.for("react.fragment"),Yye=Symbol.for("react.strict_mode"),qye=Symbol.for("react.profiler"),Hye=Symbol.for("react.consumer"),Vye=Symbol.for("react.context"),Wye=Symbol.for("react.forward_ref"),Kye=Symbol.for("react.suspense"),Gye=Symbol.for("react.memo"),gG=Symbol.for("react.lazy"),Xye=Symbol.for("react.activity"),ZG=Symbol.iterator;MG={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xG=Object.assign,vG={};NL.prototype.isReactComponent={};NL.prototype.setState=function(e,r){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};NL.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};yG.prototype=NL.prototype;Jj=Qj.prototype=new yG;Jj.constructor=Qj;xG(Jj,NL.prototype);Jj.isPureReactComponent=!0;pG=Array.isArray;Ga={H:null,A:null,T:null,S:null},_G=Object.prototype.hasOwnProperty;mG=/\/+/g;hG=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},r_e={map:NO,forEach:function(e,r,a){NO(e,function(){r.apply(this,arguments)},a)},count:function(e){var r=0;return NO(e,function(){r++}),r},toArray:function(e){return NO(e,function(r){return r})||[]},only:function(e){if(!eB(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};bG=Xye,rc=r_e,Ns=NL,Cn=Uye,wG=qye,zG=Qj,tB=Yye,ui=Kye,Wi=Ga,SG={__proto__:null,c:function(e){return Ga.H.useMemoCache(e)}},ts=eB});var tQ=w(function(rbe){S();function W_e(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var K_e=typeof Object.is==="function"?Object.is:W_e,G_e=u,X_e=h,Q_e=$e,J_e=di;function $_e(e,r){var a=r(),i=G_e({inst:{value:a,getSnapshot:r}}),s=i[0].inst,l=i[1];return Q_e(function(){s.value=a,s.getSnapshot=r,BB(s)&&l({inst:s})},[e,a,r]),X_e(function(){return BB(s)&&l({inst:s}),e(function(){BB(s)&&l({inst:s})})},[e]),J_e(a),a}function BB(e){var r=e.getSnapshot;e=e.value;try{var a=r();return!K_e(e,a)}catch(i){return!0}}function ebe(e,r){return r()}var tbe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ebe:$_e;rbe.useSyncExternalStore=Yn!==void 0?Yn:tbe});var oz={};Sm(oz,{unstable_now:()=>Jn,unstable_IdlePriority:()=>Xi,unstable_ImmediatePriority:()=>dl,unstable_LowPriority:()=>bN,unstable_NormalPriority:()=>Os,unstable_Profiling:()=>EQ,unstable_UserBlockingPriority:()=>fl,unstable_cancelCallback:()=>pl,unstable_forceFrameRate:()=>DQ,unstable_getCurrentPriorityLevel:()=>wN,unstable_next:()=>OQ,unstable_requestPaint:()=>ml,unstable_runWithPriority:()=>Wu,unstable_scheduleCallback:()=>Fs,unstable_shouldYield:()=>hl,unstable_wrapCallback:()=>NQ},{unstable_now:(H5t)=>Jn=H5t,unstable_IdlePriority:(H5t)=>Xi=H5t,unstable_ImmediatePriority:(H5t)=>dl=H5t,unstable_LowPriority:(H5t)=>bN=H5t,unstable_NormalPriority:(H5t)=>Os=H5t,unstable_Profiling:(H5t)=>EQ=H5t,unstable_UserBlockingPriority:(H5t)=>fl=H5t,unstable_cancelCallback:(H5t)=>pl=H5t,unstable_forceFrameRate:(H5t)=>DQ=H5t,unstable_getCurrentPriorityLevel:(H5t)=>wN=H5t,unstable_next:(H5t)=>OQ=H5t,unstable_requestPaint:(H5t)=>ml=H5t,unstable_runWithPriority:(H5t)=>Wu=H5t,unstable_scheduleCallback:(H5t)=>Fs=H5t,unstable_shouldYield:(H5t)=>hl=H5t,unstable_wrapCallback:(H5t)=>NQ=H5t});function QB(e,r){var a=e.length;e.push(r);e:for(;0<a;){var i=a-1>>>1,s=e[i];if(0<MN(s,r))e[i]=r,e[a]=s,a=i;else break e}}function Uu(e){return e.length===0?null:e[0]}function _N(e){if(e.length===0)return null;var r=e[0],a=e.pop();if(a!==r){e[0]=a;e:for(var i=0,s=e.length,l=s>>>1;i<l;){var c=2*(i+1)-1,d=e[c],m=c+1,g=e[m];if(0>MN(d,a))m<s&&0>MN(g,d)?(e[i]=g,e[m]=a,i=m):(e[i]=d,e[c]=a,i=c);else if(m<s&&0>MN(g,a))e[i]=g,e[m]=a,i=m;else break e}}return r}function MN(e,r){var a=e.sortIndex-r.sortIndex;return a!==0?a:e.id-r.id}function vN(e){for(var r=Uu(PM);r!==null;){if(r.callback===null)_N(PM);else if(r.startTime<=e)_N(PM),r.sortIndex=r.expirationTime,QB(CZ,r);else break;r=Uu(PM)}}function o6(e){if(sP=!1,vN(e),!fP)if(Uu(CZ)!==null)fP=!0,ok||(ok=!0,rk());else{var r=Uu(PM);r!==null&&a6(o6,r.startTime-e)}}function AQ(){return r6?!0:oz.unstable_now()-TQ<PQ?!1:!0}function XB(){if(r6=!1,ok){var e=oz.unstable_now();TQ=e;var r=!0;try{e:{fP=!1,sP&&(sP=!1,RQ(lP),lP=-1),e6=!0;var a=hf;try{t:{vN(e);for(ac=Uu(CZ);ac!==null&&!(ac.expirationTime>e&&AQ());){var i=ac.callback;if(typeof i==="function"){ac.callback=null,hf=ac.priorityLevel;var s=i(ac.expirationTime<=e);if(e=oz.unstable_now(),typeof s==="function"){ac.callback=s,vN(e),r=!0;break t}ac===Uu(CZ)&&_N(CZ),vN(e)}else _N(CZ);ac=Uu(CZ)}if(ac!==null)r=!0;else{var l=Uu(PM);l!==null&&a6(o6,l.startTime-e),r=!1}}break e}finally{ac=null,hf=a,e6=!1}r=void 0}}finally{r?rk():ok=!1}}}function a6(e,r){lP=IQ(function(){e(oz.unstable_now())},r)}var Jn=void 0,JB,xN,$B,CZ,PM,bbe=1,ac=null,hf=3,e6=!1,fP=!1,sP=!1,r6=!1,IQ,RQ,CQ,ok=!1,lP=-1,PQ=5,TQ=-1,rk,yN,t6,Xi=5,dl=1,bN=4,Os=3,EQ=null,fl=2,pl=function(e){e.callback=null},DQ=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):PQ=0<e?Math.floor(1000/e):5},wN=function(){return hf},OQ=function(e){switch(hf){case 1:case 2:case 3:var r=3;break;default:r=hf}var a=hf;hf=r;try{return e()}finally{hf=a}},ml=function(){r6=!0},Wu=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=hf;hf=e;try{return r()}finally{hf=a}},Fs=function(e,r,a){var i=oz.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?i+a:i):a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5000}return s=a+s,e={id:bbe++,callback:r,priorityLevel:e,startTime:a,expirationTime:s,sortIndex:-1},a>i?(e.sortIndex=a,QB(PM,e),Uu(CZ)===null&&e===Uu(PM)&&(sP?(RQ(lP),lP=-1):sP=!0,a6(o6,a-i))):(e.sortIndex=s,QB(CZ,e),fP||e6||(fP=!0,ok||(ok=!0,rk()))),e},hl,NQ=function(e){var r=hf;return function(){var a=hf;hf=r;try{return e.apply(this,arguments)}finally{hf=a}}};var Yu=wm(()=>{if(typeof performance==="object"&&typeof performance.now==="function")JB=performance,Jn=function(){return JB.now()};else xN=Date,$B=xN.now(),Jn=function(){return xN.now()-$B};CZ=[],PM=[],IQ=typeof setTimeout==="function"?setTimeout:null,RQ=typeof clearTimeout==="function"?clearTimeout:null,CQ=typeof setImmediate<"u"?setImmediate:null;if(typeof CQ==="function")rk=function(){CQ(XB)};else if(typeof MessageChannel<"u")yN=new MessageChannel,t6=yN.port2,yN.port1.onmessage=XB,rk=function(){t6.postMessage(null)};else rk=function(){IQ(XB,0)};hl=AQ});var _8e=w(function(UOn,y8e){var g8e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pLt=/\n/g,mLt=/^\s*/,hLt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,gLt=/^:\s*/,MLt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xLt=/^[;\s]*/,vLt=/^\s+|\s+$/g,yLt=`
2
- `,M8e="/",x8e="*",kL="",_Lt="comment",bLt="declaration";function wLt(e,r){if(typeof e!=="string")throw TypeError("First argument must be a string");if(!e)return[];r=r||{};var a=1,i=1;function s(z){var k=z.match(pLt);if(k)a+=k.length;var U=z.lastIndexOf(yLt);i=~U?z.length-U:i+z.length}function l(){var z={line:a,column:i};return function(k){return k.position=new c(z),g(),k}}function c(z){this.start=z,this.end={line:a,column:i},this.source=r.source}c.prototype.content=e;function d(z){var k=Error(r.source+":"+a+":"+i+": "+z);if(k.reason=z,k.filename=r.source,k.line=a,k.column=i,k.source=e,r.silent);else throw k}function m(z){var k=z.exec(e);if(!k)return;var U=k[0];return s(U),e=e.slice(U.length),k}function g(){m(mLt)}function x(z){var k;z=z||[];while(k=v())if(k!==!1)z.push(k);return z}function v(){var z=l();if(M8e!=e.charAt(0)||x8e!=e.charAt(1))return;var k=2;while(kL!=e.charAt(k)&&(x8e!=e.charAt(k)||M8e!=e.charAt(k+1)))++k;if(k+=2,kL===e.charAt(k-1))return d("End of comment missing");var U=e.slice(2,k-2);return i+=2,s(U),e=e.slice(k),i+=2,z({type:_Lt,comment:U})}function b(){var z=l(),k=m(hLt);if(!k)return;if(v(),!m(gLt))return d("property missing ':'");var U=m(MLt),P=z({type:bLt,property:v8e(k[0].replace(g8e,kL)),value:U?v8e(U[0].replace(g8e,kL)):kL});return m(xLt),P}function _(){var z=[];x(z);var k;while(k=b())if(k!==!1)z.push(k),x(z);return z}return g(),_()}function v8e(e){return e?e.replace(vLt,kL):kL}y8e.exports=wLt});var b8e=w(function(pO){var zLt=pO&&pO.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pO,"__esModule",{value:!0});pO.default=LLt;var SLt=zLt(_8e());function LLt(e,r){let a=null;if(!e||typeof e!=="string")return a;let i=(0,SLt.default)(e),s=typeof r==="function";return i.forEach((l)=>{if(l.type!=="declaration")return;let{property:c,value:d}=l;if(s)r(c,d,l);else if(d)a=a||{},a[c]=d}),a}});var L8e=w(function(z8e){Object.defineProperty(z8e,"__esModule",{value:!0});z8e.camelCase=void 0;var kLt=/^--[a-zA-Z0-9_-]+$/,CLt=/-([a-z])/g,ILt=/^[^-]+$/,RLt=/^-(webkit|moz|ms|o|khtml)-/,PLt=/^-(ms)-/,TLt=function(e){return!e||ILt.test(e)||kLt.test(e)},ALt=function(e,r){return r.toUpperCase()},w8e=function(e,r){return"".concat(r,"-")},ELt=function(e,r){if(r===void 0)r={};if(TLt(e))return e;if(e=e.toLowerCase(),r.reactCompat)e=e.replace(PLt,w8e);else e=e.replace(RLt,w8e);return e.replace(CLt,ALt)};z8e.camelCase=ELt});var C8e=w(function(QW,k8e){var DLt=QW&&QW.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},OLt=DLt(b8e()),NLt=L8e();function XW(e,r){var a={};if(!e||typeof e!=="string")return a;return(0,OLt.default)(e,function(i,s){if(i&&s)a[(0,NLt.camelCase)(i,r)]=s}),a}XW.default=XW;k8e.exports=XW});var eve=w(function(Pjn,$xe){var Mj=Object.prototype.hasOwnProperty,Jxe=Object.prototype.toString,{defineProperty:Vxe,getOwnPropertyDescriptor:Wxe}=Object,Kxe=function(r){if(typeof Array.isArray==="function")return Array.isArray(r);return Jxe.call(r)==="[object Array]"},Gxe=function(r){if(!r||Jxe.call(r)!=="[object Object]")return!1;var a=Mj.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&Mj.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!a&&!i)return!1;var s;for(s in r);return typeof s>"u"||Mj.call(r,s)},Xxe=function(r,a){if(Vxe&&a.name==="__proto__")Vxe(r,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0});else r[a.name]=a.newValue},Qxe=function(r,a){if(a==="__proto__"){if(!Mj.call(r,a))return;else if(Wxe)return Wxe(r,a).value}return r[a]};$xe.exports=function e(){var r,a,i,s,l,c,d=arguments[0],m=1,g=arguments.length,x=!1;if(typeof d==="boolean")x=d,d=arguments[1]||{},m=2;if(d==null||typeof d!=="object"&&typeof d!=="function")d={};for(;m<g;++m)if(r=arguments[m],r!=null){for(a in r)if(i=Qxe(d,a),s=Qxe(r,a),d!==s){if(x&&s&&(Gxe(s)||(l=Kxe(s)))){if(l)l=!1,c=i&&Kxe(i)?i:[];else c=i&&Gxe(i)?i:{};Xxe(d,{name:a,newValue:e(x,c,s)})}else if(typeof s<"u")Xxe(d,{name:a,newValue:s})}}return d}});S();var o_e=Symbol.for("react.transitional.element"),a_e=Symbol.for("react.fragment");function OG(e,r,a){var i=null;if(a!==void 0&&(i=""+a),r.key!==void 0&&(i=""+r.key),"key"in r){a={};for(var s in r)s!=="key"&&(a[s]=r[s])}else a=r;return r=a.ref,{$$typeof:o_e,type:e,key:i,ref:r!==void 0?r:null,props:a}}var L=a_e,t=OG,o=OG;var rB=it(void 0),Q=(e)=>{let r=ft(rB);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},oB=({client:e,children:r})=>(h(()=>(e.mount(),()=>{e.unmount()}),[e]),t(rB.Provider,{value:e,children:r}));S();var NG=it(!1),qu=()=>ft(NG),DRt=NG.Provider;S();function n_e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var i_e=it(n_e()),Hu=()=>ft(i_e);S();var f_e={setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:(e)=>clearTimeout(e),setInterval:(e,r)=>setInterval(e,r),clearInterval:(e)=>clearInterval(e)},s_e=class{#e=f_e;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,r){return this.#e.setTimeout(e,r)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,r){return this.#e.setInterval(e,r)}clearInterval(e){this.#e.clearInterval(e)}},Ou=new s_e;function FG(e){setTimeout(e,0)}var nB=typeof window>"u"||"Deno"in globalThis;function yr(){}function UG(e,r){return typeof e==="function"?e(r):e}function jO(e){return typeof e==="number"&&e>=0&&e!==1/0}function BO(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Xa(e,r){return typeof e==="function"?e(r):e}function UO(e,r){let{type:a="all",exact:i,fetchStatus:s,predicate:l,queryKey:c,stale:d}=e;if(c){if(i){if(r.queryHash!==WR(c,r.options))return!1}else if(!gM(r.queryKey,c))return!1}if(a!=="all"){let m=r.isActive();if(a==="active"&&!m)return!1;if(a==="inactive"&&m)return!1}if(typeof d==="boolean"&&r.isStale()!==d)return!1;if(s&&s!==r.state.fetchStatus)return!1;if(l&&!l(r))return!1;return!0}function YO(e,r){let{exact:a,status:i,predicate:s,mutationKey:l}=e;if(l){if(!r.options.mutationKey)return!1;if(a){if(Nu(r.options.mutationKey)!==Nu(l))return!1}else if(!gM(r.options.mutationKey,l))return!1}if(i&&r.state.status!==i)return!1;if(s&&!s(r))return!1;return!0}function WR(e,r){return(r?.queryKeyHashFn||Nu)(e)}function Nu(e){return JSON.stringify(e,(r,a)=>aB(a)?Object.keys(a).sort().reduce((i,s)=>(i[s]=a[s],i),{}):a)}function gM(e,r){if(e===r)return!0;if(typeof e!==typeof r)return!1;if(e&&r&&typeof e==="object"&&typeof r==="object"){if(Array.isArray(e)&&Array.isArray(r)){for(let i=0;i<r.length;i++)if(!gM(e[i],r[i]))return!1;return!0}let a=Object.keys(r);for(let i of a)if(!gM(e[i],r[i]))return!1;return!0}return!1}var l_e=Object.prototype.hasOwnProperty;function Mc(e,r,a=0){if(e===r)return e;if(a>500)return r;let i=jG(e)&&jG(r);if(!i&&!(aB(e)&&aB(r)))return r;let s=(i?e:Object.keys(e)).length,l=i?r:Object.keys(r),c=l.length,d=i?Array(c):{},m=0;for(let g=0;g<c;g++){let x=i?g:l[g],v=e[x],b=r[x];if(v===b){if(d[x]=v,i?g<s:l_e.call(e,x))m++;continue}if(v===null||b===null||typeof v!=="object"||typeof b!=="object"){d[x]=b;continue}let _=Mc(v,b,a+1);if(d[x]=_,_===v)m++}return s===c&&m===s?e:d}function Yi(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e)if(e[a]!==r[a])return!1;return!0}function jG(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function aB(e){if(!BG(e))return!1;let r=e.constructor;if(r===void 0)return!0;let a=r.prototype;if(!BG(a))return!1;if(!a.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(e)!==Object.prototype)return!1;return!0}function BG(e){return Object.prototype.toString.call(e)==="[object Object]"}function YG(e){return new Promise((r)=>{Ou.setTimeout(r,e)})}function KR(e,r,a){if(typeof a.structuralSharing==="function")return a.structuralSharing(e,r);else if(a.structuralSharing!==!1)return Mc(e,r);return r}function Ia(e){return e}function qG(e,r,a=0){let i=[...e,r];return a&&i.length>a?i.slice(1):i}function HG(e,r,a=0){let i=[r,...e];return a&&i.length>a?i.slice(0,-1):i}var jL=Symbol();function qO(e,r){if(!e.queryFn&&r?.initialPromise)return()=>r.initialPromise;if(!e.queryFn||e.queryFn===jL)return()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`));return e.queryFn}function BL(e,r){if(typeof e==="function")return e(...r);return!!e}function VG(e,r,a){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s??=r(),i)return s;if(i=!0,s.aborted)a();else s.addEventListener("abort",a,{once:!0});return s}}),e}var c_e=()=>nB,UL=()=>c_e();var bo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var u_e=class extends bo{#e;#t;#r;constructor(){super();this.#r=(e)=>{if(typeof window<"u"&&window.addEventListener){let r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){if(!this.#t)this.setEventListener(this.#r)}onUnsubscribe(){if(!this.hasListeners())this.#t?.(),this.#t=void 0}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e((r)=>{if(typeof r==="boolean")this.setFocused(r);else this.onFocus()})}setFocused(e){if(this.#e!==e)this.#e=e,this.onFocus()}onFocus(){let e=this.isFocused();this.listeners.forEach((r)=>{r(e)})}isFocused(){if(typeof this.#e==="boolean")return this.#e;return globalThis.document?.visibilityState!=="hidden"}},YL=new u_e;var WG=FG;function d_e(){let e=[],r=0,a=(d)=>{d()},i=(d)=>{d()},s=WG,l=(d)=>{if(r)e.push(d);else s(()=>{a(d)})},c=()=>{let d=e;if(e=[],d.length)s(()=>{i(()=>{d.forEach((m)=>{a(m)})})})};return{batch:(d)=>{let m;r++;try{m=d()}finally{if(r--,!r)c()}return m},batchCalls:(d)=>(...m)=>{l(()=>{d(...m)})},schedule:l,setNotifyFunction:(d)=>{a=d},setBatchNotifyFunction:(d)=>{i=d},setScheduler:(d)=>{s=d}}}var Ht=d_e();var Z_e=class extends bo{#e=!0;#t;#r;constructor(){super();this.#r=(e)=>{if(typeof window<"u"&&window.addEventListener){let r=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}}}onSubscribe(){if(!this.#t)this.setEventListener(this.#r)}onUnsubscribe(){if(!this.hasListeners())this.#t?.(),this.#t=void 0}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){if(this.#e!==e)this.#e=e,this.listeners.forEach((r)=>{r(e)})}isOnline(){return this.#e}},qL=new Z_e;function p_e(e){return Math.min(1000*2**e,30000)}function iB(e){return(e??"online")==="online"?qL.isOnline():!0}var HO=class extends Error{constructor(e){super("CancelledError");this.revert=e?.revert,this.silent=e?.silent}};function VO(e){let r=!1,a=0,i,s="pending",l,c,d=new Promise((T,G)=>{l=T,c=G});d.catch(yr);let m=()=>s!=="pending",g=(T)=>{if(!m()){let G=new HO(T);k(G),e.onCancel?.(G)}},x=()=>{r=!0},v=()=>{r=!1},b=()=>YL.isFocused()&&(e.networkMode==="always"||qL.isOnline())&&e.canRun(),_=()=>iB(e.networkMode)&&e.canRun(),z=(T)=>{if(!m())i?.(),s="resolved",l(T)},k=(T)=>{if(!m())i?.(),s="rejected",c(T)},U=()=>new Promise((T)=>{i=(G)=>{if(m()||b())T(G)},e.onPause?.()}).then(()=>{if(i=void 0,!m())e.onContinue?.()}),P=()=>{if(m())return;let T,G=a===0?e.initialPromise:void 0;try{T=G??e.fn()}catch(X){T=Promise.reject(X)}Promise.resolve(T).then(z).catch((X)=>{if(m())return;let J=e.retry??(UL()?0:3),ee=e.retryDelay??p_e,re=typeof ee==="function"?ee(a,X):ee,oe=J===!0||typeof J==="number"&&a<J||typeof J==="function"&&J(a,X);if(r||!oe){k(X);return}a++,e.onFail?.(a,X),YG(re).then(()=>b()?void 0:U()).then(()=>{if(r)k(X);else P()})})};return{promise:d,status:()=>s,cancel:g,continue:()=>(i?.(),d),cancelRetry:x,continueRetry:v,canStart:_,start:()=>{if(_())P();else U().then(P);return d}}}var WO=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),jO(this.gcTime))this.#e=Ou.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(UL()?1/0:300000))}clearGcTimeout(){if(this.#e!==void 0)Ou.clearTimeout(this.#e),this.#e=void 0}};function KG(e){return{onFetch:(r,a)=>{let i=r.options,s=r.fetchOptions?.meta?.fetchMore?.direction,l=r.state.data?.pages||[],c=r.state.data?.pageParams||[],d={pages:[],pageParams:[]},m=0,g=async()=>{let x=!1,v=(z)=>{VG(z,()=>r.signal,()=>x=!0)},b=qO(r.options,r.fetchOptions),_=async(z,k,U)=>{if(x)return Promise.reject(r.signal.reason);if(k==null&&z.pages.length)return Promise.resolve(z);let T=(()=>{let ee={client:r.client,queryKey:r.queryKey,pageParam:k,direction:U?"backward":"forward",meta:r.options.meta};return v(ee),ee})(),G=await b(T),{maxPages:X}=r.options,J=U?HG:qG;return{pages:J(z.pages,G,X),pageParams:J(z.pageParams,k,X)}};if(s&&l.length){let z=s==="backward",k=z?GG:fB,U={pages:l,pageParams:c};d=await _(U,k(i,U),z)}else{let z=e??l.length;do{let k=m===0?c[0]??i.initialPageParam:fB(i,d);if(m>0&&k==null)break;d=await _(d,k),m++}while(m<z)}return d};if(r.options.persister)r.fetchFn=()=>r.options.persister?.(g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},a);else r.fetchFn=g}}}function fB(e,{pages:r,pageParams:a}){let i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,a[i],a):void 0}function GG(e,{pages:r,pageParams:a}){return r.length>0?e.getPreviousPageParam?.(r[0],r,a[0],a):void 0}function XG(e,r){if(!r)return!1;return fB(e,r)!=null}function QG(e,r){if(!r||!e.getPreviousPageParam)return!1;return GG(e,r)!=null}var eX=class extends WO{#e;#t;#r;#o;#n;#a;#i;#s;constructor(e){super();this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#o=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=$G(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},e?._type)this.#e=e._type;if(this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=$G(this.options);if(r.data!==void 0)this.setState(JG(r.data,r.dataUpdatedAt)),this.#t=r}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#o.remove(this)}setData(e,r){let a=KR(this.state.data,e,this.options);return this.#f({data:a,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),a}setState(e){this.#f({type:"setState",state:e})}cancel(e){let r=this.#a?.promise;return this.#a?.cancel(e),r?r.then(yr).catch(yr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some((e)=>Xa(e.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===jL||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){if(this.getObserversCount()>0)return this.observers.some((e)=>Xa(e.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some((e)=>e.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){if(this.state.data===void 0)return!0;if(e==="static")return!1;if(this.state.isInvalidated)return!0;return!BO(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e)=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find((e)=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){if(!this.observers.includes(e))this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e})}removeObserver(e){let r=this.observers.indexOf(e);if(r!==-1){if(this.observers.splice(r,1),!this.observers.length){if(this.#a)if(this.#s||this.state.fetchStatus==="paused"&&this.state.status==="pending")this.#a.cancel({revert:!0});else this.#a.cancelRetry();this.scheduleGc()}this.#o.notify({type:"observerRemoved",query:this,observer:e})}}getObserversCount(){return this.observers.length}invalidate(){if(!this.state.isInvalidated)this.#f({type:"invalidate"})}async fetch(e,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e)this.setOptions(e);if(!this.options.queryFn){let m=this.observers.find((g)=>g.options.queryFn);if(m)this.setOptions(m.options)}let a=new AbortController,i=(m)=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},s=()=>{let m=qO(this.options,r),x=(()=>{let v={client:this.#n,queryKey:this.queryKey,meta:this.meta};return i(v),v})();if(this.#s=!1,this.options.persister)return this.options.persister(m,x,this);return m(x)},c=(()=>{let m={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:s};return i(m),m})();if((this.#e==="infinite"?KG(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#r=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)this.#f({type:"fetch",meta:c.fetchOptions?.meta});let d=this.#a=VO({initialPromise:r?.initialPromise,fn:c.fetchFn,onCancel:(m)=>{if(m instanceof HO&&m.revert)this.setState({...this.#r,fetchStatus:"idle"});a.abort()},onFail:(m,g)=>{this.#f({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let m=await d.start();if(m===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#o.config.onSuccess?.(m,this),this.#o.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof HO){if(m.silent)return this.#a.promise;else if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#f({type:"error",error:m}),this.#o.config.onError?.(m,this),this.#o.config.onSettled?.(this.state.data,m,this),m}finally{if(this.#a===d)this.#a=void 0;this.scheduleGc()}}#f(e){let r=(a)=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...sB(a.data,this.options),fetchMeta:e.meta??null};case"success":let i={...a,...JG(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?i:void 0,i;case"error":let s=e.error;return{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=r(this.state),Ht.batch(()=>{this.observers.slice().forEach((a)=>{a.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function sB(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iB(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function JG(e,r){return{data:e,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $G(e){let r=typeof e.initialData==="function"?e.initialData():e.initialData,a=r!==void 0,i=a?typeof e.initialDataUpdatedAt==="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Ko=class extends bo{#e;#t=void 0;#r=void 0;#o=void 0;#n;#a;#i;#s;#f;#Z;#c;#u;#l;#p=new Set;constructor(e,r){super();this.options=r,this.#e=e,this.#i=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#t.addObserver(this),tX(this.#t,this.options))this.#d();else this.updateResult();this.#x()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return lB(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lB(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#y(),this.#t.removeObserver(this)}setOptions(e){let r=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof Xa(this.options.enabled,this.#t)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#_(),this.#t.setOptions(this.options),r._defaulted&&!Yi(this.options,r))this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let i=this.hasListeners();if(i&&rX(this.#t,a,this.options,r))this.#d();if(this.updateResult(),i&&(this.#t!==a||Xa(this.options.enabled,this.#t)!==Xa(r.enabled,this.#t)||Xa(this.options.staleTime,this.#t)!==Xa(r.staleTime,this.#t)))this.#h();let s=this.#g();if(i&&(this.#t!==a||Xa(this.options.enabled,this.#t)!==Xa(r.enabled,this.#t)||s!==this.#l))this.#M(s)}getOptimisticResult(e){let r=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(r,e);if(!Yi(this.getCurrentResult(),a))this.#o=a,this.#a=this.options,this.#n=this.#t.state;return a}getCurrentResult(){return this.#o}trackResult(e,r){return new Proxy(e,{get:(a,i)=>(this.trackProp(i),r?.(i),Reflect.get(a,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let r=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,r),i=()=>{},s,l=new Promise((c)=>{s=c,i=this.#e.getQueryCache().subscribe((d)=>{if(d.type==="updated"&&d.query.queryHash===a.queryHash&&a.state.data!==void 0)i(),c(this.createResult(a,r))})});return Promise.race([a.fetch().then(()=>{let c=this.createResult(a,r);return s?.(c),c}).finally(()=>{i()}),l])}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#_();let r=this.#t.fetch(this.options,e);if(!e?.throwOnError)r=r.catch(yr);return r}#m(e){return!UL()&&Xa(this.options.enabled,this.#t)!==!1&&jO(e)}#h(){this.#v();let e=Xa(this.options.staleTime,this.#t);if(this.#o.isStale||!this.#m(e))return;let r=BO(this.#o.dataUpdatedAt,e)+1;this.#c=Ou.setTimeout(()=>{if(!this.#o.isStale)this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#M(e){if(this.#y(),this.#l=e,this.#l===0||!this.#m(this.#l))return;this.#u=Ou.setInterval(()=>{if(this.options.refetchIntervalInBackground||YL.isFocused())this.#d()},this.#l)}#x(){this.#h(),this.#M(this.#g())}#v(){if(this.#c!==void 0)Ou.clearTimeout(this.#c),this.#c=void 0}#y(){if(this.#u!==void 0)Ou.clearInterval(this.#u),this.#u=void 0}createResult(e,r){let a=this.#t,i=this.options,s=this.#o,l=this.#n,c=this.#a,d=e!==a?e.state:this.#r,{state:m}=e,g={...m},x=!1,v;if(r._optimisticResults){let J=this.hasListeners(),ee=!J&&tX(e,r),re=J&&rX(e,a,r,i);if(ee||re)g={...g,...sB(m.data,e.options)};if(r._optimisticResults==="isRestoring")g.fetchStatus="idle"}let{error:b,errorUpdatedAt:_,status:z}=g;v=g.data;let k=!1;if(r.placeholderData!==void 0&&v===void 0&&z==="pending"){let J;if(s?.isPlaceholderData&&r.placeholderData===c?.placeholderData)J=s.data,k=!0;else J=typeof r.placeholderData==="function"?r.placeholderData(this.#Z?.state.data,this.#Z):r.placeholderData;if(J!==void 0)z="success",v=KR(s?.data,J,r),x=!0}if(r.select&&v!==void 0&&!k)if(s&&v===l?.data&&r.select===this.#s)v=this.#f;else try{this.#s=r.select,v=r.select(v),v=KR(s?.data,v,r),this.#f=v,this.#i=null}catch(J){this.#i=J}else if(v===void 0)this.#i=null;if(this.#i)b=this.#i,v=this.#f,_=Date.now(),z="error",x=!1;let U=g.fetchStatus==="fetching",P=z==="pending",T=z==="error",G=P&&U,X=v!==void 0;return{status:z,fetchStatus:g.fetchStatus,isPending:P,isSuccess:z==="success",isError:T,isInitialLoading:G,isLoading:G,data:v,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:U,isRefetching:U&&!P,isLoadingError:T&&!X,isPaused:g.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:T&&X,isStale:cB(e,r),refetch:this.refetch,isEnabled:Xa(r.enabled,e)!==!1}}updateResult(){let e=this.#o,r=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#a=this.options,this.#n.data!==void 0)this.#Z=this.#t;if(Yi(r,e))return;this.#o=r;let i=(()=>{if(!e)return!0;let{notifyOnChangeProps:s}=this.options,l=typeof s==="function"?s():s;if(l==="all"||!l&&!this.#p.size)return!0;let c=new Set(l??this.#p);if(this.options.throwOnError)c.add("error");return Object.keys(this.#o).some((d)=>{let m=d;return this.#o[m]!==e[m]&&c.has(m)})})();Ht.batch(()=>{if(i)this.listeners.forEach((s)=>{s(this.#o)});this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#_(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let r=this.#t;if(this.#t=e,this.#r=e.state,this.hasListeners())r?.removeObserver(this),e.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#x()}};function m_e(e,r){return Xa(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Xa(r.retryOnMount,e)===!1)}function tX(e,r){return m_e(e,r)||e.state.data!==void 0&&lB(e,r,r.refetchOnMount)}function lB(e,r,a){if(Xa(r.enabled,e)!==!1&&Xa(r.staleTime,e)!=="static"){let i=typeof a==="function"?a(e):a;return i==="always"||i!==!1&&cB(e,r)}return!1}function rX(e,r,a,i){return(e!==r||Xa(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&cB(e,a)}function cB(e,r){return Xa(r.enabled,e)!==!1&&e.isStaleByTime(Xa(r.staleTime,e))}var uB=class extends Ko{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){let{state:a}=e,i=super.createResult(e,r),{isFetching:s,isRefetching:l,isError:c,isRefetchError:d}=i,m=a.fetchMeta?.fetchMore?.direction,g=c&&m==="forward",x=s&&m==="forward",v=c&&m==="backward",b=s&&m==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:XG(r,a.data),hasPreviousPage:QG(r,a.data),isFetchNextPageError:g,isFetchingNextPage:x,isFetchPreviousPageError:v,isFetchingPreviousPage:b,isRefetchError:d&&!g&&!v,isRefetching:l&&!x&&!b}}};var oX=class extends WO{#e;#t;#r;#o;constructor(e){super();this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||dB(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){if(!this.#t.includes(e))this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e})}removeObserver(e){this.#t=this.#t.filter((r)=>r!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){if(!this.#t.length)if(this.state.status==="pending")this.scheduleGc();else this.#r.remove(this)}continue(){return this.#o?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(e){let r=()=>{this.#n({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},i=this.#o=VO({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(e,a)},onFail:(c,d)=>{this.#n({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#n({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)}),s=this.state.status==="pending",l=!i.canStart();try{if(s)r();else{if(this.#n({type:"pending",variables:e,isPaused:l}),this.#r.config.onMutate)await this.#r.config.onMutate(e,this,a);let d=await this.options.onMutate?.(e,a);if(d!==this.state.context)this.#n({type:"pending",context:d,variables:e,isPaused:l})}let c=await i.start();return await this.#r.config.onSuccess?.(c,e,this.state.context,this,a),await this.options.onSuccess?.(c,e,this.state.context,a),await this.#r.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,e,this.state.context,a),this.#n({type:"success",data:c}),c}catch(c){try{await this.#r.config.onError?.(c,e,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onError?.(c,e,this.state.context,a)}catch(d){Promise.reject(d)}try{await this.#r.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,a)}catch(d){Promise.reject(d)}throw this.#n({type:"error",error:c}),c}finally{if(this.#o===i)this.#o=void 0;this.#r.runNext(this)}}#n(e){let r=(a)=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ht.batch(()=>{this.#t.forEach((a)=>{a.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function dB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var aX=class extends bo{#e;#t;#r;constructor(e={}){super();this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}build(e,r,a){let i=new oX({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(r),state:a});return this.add(i),i}add(e){this.#e.add(e);let r=KO(e);if(typeof r==="string"){let a=this.#t.get(r);if(a)a.push(e);else this.#t.set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let r=KO(e);if(typeof r==="string"){let a=this.#t.get(r);if(a){if(a.length>1){let i=a.indexOf(e);if(i!==-1)a.splice(i,1)}else if(a[0]===e)this.#t.delete(r)}}}this.notify({type:"removed",mutation:e})}canRun(e){let r=KO(e);if(typeof r==="string"){let a=this.#t.get(r)?.find((i)=>i.state.status==="pending");return!a||a===e}else return!0}runNext(e){let r=KO(e);if(typeof r==="string")return this.#t.get(r)?.find((a)=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){Ht.batch(()=>{this.#e.forEach((e)=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let r={exact:!0,...e};return this.getAll().find((a)=>YO(r,a))}findAll(e={}){return this.getAll().filter((r)=>YO(e,r))}notify(e){Ht.batch(()=>{this.listeners.forEach((r)=>{r(e)})})}resumePausedMutations(){let e=this.getAll().filter((r)=>r.state.isPaused);return Ht.batch(()=>Promise.all(e.map((r)=>r.continue().catch(yr))))}};function KO(e){return e.options.scope?.id}var ZB=class extends bo{#e;#t=void 0;#r;#o;constructor(e,r){super();this.#e=e,this.setOptions(r),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let r=this.options;if(this.options=this.#e.defaultMutationOptions(e),!Yi(this.options,r))this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this});if(r?.mutationKey&&this.options.mutationKey&&Nu(r.mutationKey)!==Nu(this.options.mutationKey))this.reset();else if(this.#r?.state.status==="pending")this.#r.setOptions(this.options)}onSubscribe(){if(this.listeners.size===1&&this.#r)this.#r.addObserver(this),this.#n()}onUnsubscribe(){if(!this.hasListeners())this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#a()}mutate(e,r){return this.#o=r,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){let e=this.#r?.state??dB();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#a(e){Ht.batch(()=>{if(this.#o&&this.hasListeners()){let r=this.#t.variables,a=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#o.onSuccess?.(e.data,r,a,i)}catch(s){Promise.reject(s)}try{this.#o.onSettled?.(e.data,null,r,a,i)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#o.onError?.(e.error,r,a,i)}catch(s){Promise.reject(s)}try{this.#o.onSettled?.(void 0,e.error,r,a,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach((r)=>{r(this.#t)})})}};var nX=class extends bo{#e;constructor(e={}){super();this.config=e,this.#e=new Map}build(e,r,a){let i=r.queryKey,s=r.queryHash??WR(i,r),l=this.get(s);if(!l)l=new eX({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(r),state:a,defaultOptions:e.getQueryDefaults(i)}),this.add(l);return l}add(e){if(!this.#e.has(e.queryHash))this.#e.set(e.queryHash,e),this.notify({type:"added",query:e})}remove(e){let r=this.#e.get(e.queryHash);if(r){if(e.destroy(),r===e)this.#e.delete(e.queryHash);this.notify({type:"removed",query:e})}}clear(){Ht.batch(()=>{this.getAll().forEach((e)=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let r={exact:!0,...e};return this.getAll().find((a)=>UO(r,a))}findAll(e={}){let r=this.getAll();return Object.keys(e).length>0?r.filter((a)=>UO(e,a)):r}notify(e){Ht.batch(()=>{this.listeners.forEach((r)=>{r(e)})})}onFocus(){Ht.batch(()=>{this.getAll().forEach((e)=>{e.onFocus()})})}onOnline(){Ht.batch(()=>{this.getAll().forEach((e)=>{e.onOnline()})})}};var pB=class{#e;#t;#r;#o;#n;#a;#i;#s;constructor(e={}){this.#e=e.queryCache||new nX,this.#t=e.mutationCache||new aX,this.#r=e.defaultOptions||{},this.#o=new Map,this.#n=new Map,this.#a=0}mount(){if(this.#a++,this.#a!==1)return;this.#i=YL.subscribe(async(e)=>{if(e)await this.resumePausedMutations(),this.#e.onFocus()}),this.#s=qL.subscribe(async(e)=>{if(e)await this.resumePausedMutations(),this.#e.onOnline()})}unmount(){if(this.#a--,this.#a!==0)return;this.#i?.(),this.#i=void 0,this.#s?.(),this.#s=void 0}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let r=this.defaultQueryOptions({queryKey:e});return this.#e.get(r.queryHash)?.state.data}ensureQueryData(e){let r=this.defaultQueryOptions(e),a=this.#e.build(this,r),i=a.state.data;if(i===void 0)return this.fetchQuery(e);if(e.revalidateIfStale&&a.isStaleByTime(Xa(r.staleTime,a)))this.prefetchQuery(r);return Promise.resolve(i)}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:r,state:a})=>[r,a.data])}setQueryData(e,r,a){let i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,l=UG(r,s);if(l===void 0)return;return this.#e.build(this,i).setData(l,{...a,manual:!0})}setQueriesData(e,r,a){return Ht.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,a)]))}getQueryState(e){let r=this.defaultQueryOptions({queryKey:e});return this.#e.get(r.queryHash)?.state}removeQueries(e){let r=this.#e;Ht.batch(()=>{r.findAll(e).forEach((a)=>{r.remove(a)})})}resetQueries(e,r){let a=this.#e;return Ht.batch(()=>{let i=a.findAll(e),s=new Set(i);return i.forEach((l)=>{l.reset()}),this.refetchQueries({type:"active",predicate:(l)=>s.has(l)},r)})}cancelQueries(e,r={}){let a={revert:!0,...r},i=Ht.batch(()=>this.#e.findAll(e).map((s)=>s.cancel(a)));return Promise.all(i).then(yr).catch(yr)}invalidateQueries(e,r={}){return Ht.batch(()=>{if(this.#e.findAll(e).forEach((a)=>{a.invalidate()}),e?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},r)})}refetchQueries(e,r={}){let a={...r,cancelRefetch:r.cancelRefetch??!0},i=Ht.batch(()=>this.#e.findAll(e).filter((s)=>!s.isDisabled()&&!s.isStatic()).map((s)=>{let l=s.fetch(void 0,a);if(!a.throwOnError)l=l.catch(yr);return s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(yr)}async query(e){let r=this.defaultQueryOptions(e);if(r.retry===void 0)r.retry=!1;let a=this.#e.build(this,r),i=a.isStaleByTime(Xa(r.staleTime,a))?await a.fetch(r):a.state.data,s=r.select;if(s)return s(i);return i}fetchQuery(e){let r=this.defaultQueryOptions(e);if(r.retry===void 0)r.retry=!1;let a=this.#e.build(this,r);return a.isStaleByTime(Xa(r.staleTime,a))?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yr).catch(yr)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yr).catch(yr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){if(qL.isOnline())return this.#t.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,r){this.#o.set(Nu(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){let r=[...this.#o.values()],a={};return r.forEach((i)=>{if(gM(e,i.queryKey))Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,r){this.#n.set(Nu(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){let r=[...this.#n.values()],a={};return r.forEach((i)=>{if(gM(e,i.mutationKey))Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;let r={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};if(!r.queryHash)r.queryHash=WR(r.queryKey,r);if(r.refetchOnReconnect===void 0)r.refetchOnReconnect=r.networkMode!=="always";if(r.throwOnError===void 0)r.throwOnError=!!r.suspense;if(!r.networkMode&&r.persister)r.networkMode="offlineFirst";if(r.queryFn===jL)r.enabled=!1;return r}defaultMutationOptions(e){if(e?._defaulted)return e;return{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};var $u=(e,r,a)=>{let i=a?.state.error&&typeof e.throwOnError==="function"?BL(e.throwOnError,[a.state.error,a]):e.throwOnError;if(e.suspense||i){if(!r.isReset())e.retryOnMount=!1}},Gu=(e)=>{h(()=>{e.clearReset()},[e])},Vu=({result:e,errorResetBoundary:r,throwOnError:a,query:i,suspense:s})=>e.isError&&!r.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||BL(a,[e.error,i]));var Em=(e,r)=>r.state.data===void 0,Qu=(e)=>{if(e.suspense){let a=(s)=>s==="static"?s:Math.max(s??1000,1000),i=e.staleTime;if(e.staleTime=typeof i==="function"?(...s)=>a(i(...s)):a(i),typeof e.gcTime==="number")e.gcTime=Math.max(e.gcTime,1000)}},kc=(e,r)=>e?.suspense&&r.isPending,Ku=(e,r,a)=>r.fetchOptimistic(e).catch(()=>{a.clearReset()});S();function ul(e,r,a){let i=qu(),s=Hu(),l=Q(a),c=l.defaultQueryOptions(e),d=l.getQueryCache().get(c.queryHash),m=e.subscribed!==!1;c._optimisticResults=i?"isRestoring":m?"optimistic":void 0,Qu(c),$u(c,s,d),Gu(s);let[g]=u(()=>new r(l,c)),x=g.getOptimisticResult(c),v=!i&&m;if(Yn(D((b)=>{let _=v?g.subscribe(Ht.batchCalls(b)):yr;return g.updateResult(),_},[g,v]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),h(()=>{g.setOptions(c)},[c,g]),kc(c,x))throw Ku(c,g,s);if(Vu({result:x,errorResetBoundary:s,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw x.error;return!c.notifyOnChangeProps?g.trackResult(x):x}function Z(e,r){return ul(e,Ko,r)}S();function B(e,r){let a=Q(r),[i]=u(()=>new ZB(a,e));h(()=>{i.setOptions(e)},[i,e]);let s=Yn(D((c)=>i.subscribe(Ht.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=D((...c)=>{i.mutate(c[0],c[1]).catch(yr)},[i]);if(s.error&&BL(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}function pt(e,r){return ul(e,uB,r)}S();var X8=it(void 0),iX=it(void 0);S();var GO=it(null);S();function Ha(e){return ft(GO)}var qr=!1;function MM(e){return e[e.length-1]}function h_e(e){return typeof e==="function"}function rs(e,r){if(h_e(e))return e(r);return e}var uX=Object.prototype.hasOwnProperty,fX=Object.prototype.propertyIsEnumerable;function xM(e){for(let r in e)if(uX.call(e,r))return!0;return!1}var g_e=()=>Object.create(null),vM=(e,r)=>Is(e,r,g_e);function Is(e,r,a=()=>({}),i=0){if(qr)return r;if(e===r)return e;if(i>500)return r;let s=r,l=XO(e)&&XO(s);if(!l&&!(HL(e)&&HL(s)))return s;let c=l?e:sX(e);if(!c)return s;let d=l?s:sX(s);if(!d)return s;let m=c.length,g=d.length,x=l?Array(g):a(),v=0;for(let b=0;b<g;b++){let _=l?b:d[b],z=e[_],k=s[_];if(z===k){if(x[_]=z,l?b<m:uX.call(e,_))v++;continue}if(z===null||k===null||typeof z!=="object"||typeof k!=="object"){x[_]=k;continue}let U=Is(z,k,a,i+1);if(x[_]=U,U===z)v++}return m===g&&v===m?e:x}function sX(e){let r=Object.getOwnPropertyNames(e);for(let s of r)if(!fX.call(e,s))return!1;let a=Object.getOwnPropertySymbols(e);if(a.length===0)return r;let i=r;for(let s of a){if(!fX.call(e,s))return!1;i.push(s)}return i}function HL(e){if(!lX(e))return!1;let r=e.constructor;if(typeof r>"u")return!0;let a=r.prototype;if(!lX(a))return!1;if(!a.hasOwnProperty("isPrototypeOf"))return!1;return!0}function lX(e){return Object.prototype.toString.call(e)==="[object Object]"}function XO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function oc(e,r,a){if(e===r)return!0;if(typeof e!==typeof r)return!1;if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!oc(e[i],r[i],a))return!1;return!0}if(HL(e)&&HL(r)){let i=a?.ignoreUndefined??!0;if(a?.partial){for(let c in r)if(!i||r[c]!==void 0){if(!oc(e[c],r[c],a))return!1}return!0}let s=0;if(!i)s=Object.keys(e).length;else for(let c in e)if(e[c]!==void 0)s++;let l=0;for(let c in r)if(!i||r[c]!==void 0){if(l++,l>s||!oc(e[c],r[c],a))return!1}return s===l}return!1}function au(e){let r,a,i=new Promise((s,l)=>{r=s,a=l});return i.status="pending",i.resolve=(s)=>{i.status="resolved",i.value=s,r(s),e?.(s)},i.reject=(s)=>{i.status="rejected",a(s)},i}function yM(e){return Boolean(e&&typeof e==="object"&&typeof e.then==="function")}function M_e(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function cX(e){let r;try{r=decodeURI(e)}catch{r=e.replaceAll(/%[0-9A-F]{2}/gi,(a)=>{try{return decodeURI(a)}catch{return a}})}return M_e(r)}var QO=["http:","https:","mailto:","tel:"];function Fu(e,r){if(!e)return!1;try{let a=new URL(e);return!r.has(a.protocol)}catch{return!1}}function VL(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};let r=/%25|%5C/gi,a=0,i="",s;while((s=r.exec(e))!==null)i+=cX(e.slice(a,s.index))+s[0],a=r.lastIndex;i=i+cX(a?e.slice(a):e);let l=!1;if(i.startsWith("//"))l=!0,i="/"+i.replace(/^\/+/,"");return{path:i,handledProtocolRelativeURL:l}}function dX(e){if(!/\s|[^\u0000-\u007F]/.test(e))return e;return e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent)}function ZX(e,r){if(e===r)return!0;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==r[a])return!1;return!0}function ai(){throw Error("Invariant failed")}function _M(e){let r=new Map,a,i,s=(l)=>{if(!l.next)return;if(!l.prev){if(l.next.prev=void 0,a=l.next,l.next=void 0,i)l.prev=i,i.next=l}else if(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i)i.next=l,l.prev=i;i=l};return{get(l){let c=r.get(l);if(!c)return;return s(c),c.value},set(l,c){if(r.size>=e&&a){let m=a;if(r.delete(m.key),m.next)a=m.next,m.next.prev=void 0;if(m===i)i=void 0}let d=r.get(l);if(d)d.value=c,s(d);else{let m={key:l,value:c,prev:i};if(i)i.next=m;if(i=m,!a)a=m;r.set(l,m)}},clear(){r.clear(),a=void 0,i=void 0}}}var wM=4,mX=5;function x_e(e){let r=e.indexOf("{");if(r===-1)return null;let a=e.indexOf("}",r);if(a===-1)return null;if(r+1>=e.length)return null;return[r,a]}function gB(e,r,a=new Uint16Array(6)){let i=e.indexOf("/",r),s=i===-1?e.length:i,l=e.substring(r,s);if(!l||!l.includes("$"))return a[0]=0,a[1]=r,a[2]=r,a[3]=s,a[4]=s,a[5]=s,a;if(l==="$"){let d=e.length;return a[0]=2,a[1]=r,a[2]=r,a[3]=d,a[4]=d,a[5]=d,a}if(l.charCodeAt(0)===36)return a[0]=1,a[1]=r,a[2]=r+1,a[3]=s,a[4]=s,a[5]=s,a;let c=x_e(l);if(c){let[d,m]=c,g=l.charCodeAt(d+1);if(g===45){if(d+2<l.length&&l.charCodeAt(d+2)===36){let x=d+3,v=m;if(x<v)return a[0]=3,a[1]=r+d,a[2]=r+x,a[3]=r+v,a[4]=r+m+1,a[5]=s,a}}else if(g===36){let x=d+1,v=d+2;if(v===m)return a[0]=2,a[1]=r+d,a[2]=r+x,a[3]=r+v,a[4]=r+m+1,a[5]=e.length,a;return a[0]=1,a[1]=r+d,a[2]=r+v,a[3]=r+m,a[4]=r+m+1,a[5]=s,a}}return a[0]=0,a[1]=r,a[2]=r,a[3]=s,a[4]=s,a[5]=s,a}function eN(e,r,a,i,s,l,c){c?.(a);let d=i;{let m=a.fullPath??a.from,g=m.length,x=a.options?.caseSensitive??e,v=a.options?.params?.parse??a.options?.parseParams;while(d<g){let _=gB(m,d,r),z,k=d,U=_[5];switch(d=U+1,l++,_[0]){case 0:{let P=m.substring(_[2],_[3]);if(x){let T=s.static?.get(P);if(T)z=T;else{s.static??=new Map;let G=Q8(a.fullPath??a.from);G.parent=s,G.depth=l,z=G,s.static.set(P,G)}}else{let T=P.toLowerCase(),G=s.staticInsensitive?.get(T);if(G)z=G;else{s.staticInsensitive??=new Map;let X=Q8(a.fullPath??a.from);X.parent=s,X.depth=l,z=X,s.staticInsensitive.set(T,X)}}break}case 1:{let P=m.substring(k,_[1]),T=m.substring(_[4],U),G=x&&!!(P||T),X=!P?void 0:G?P:P.toLowerCase(),J=!T?void 0:G?T:T.toLowerCase(),ee=!v&&s.dynamic?.find((re)=>!re.parse&&re.caseSensitive===G&&re.prefix===X&&re.suffix===J);if(ee)z=ee;else{let re=hB(1,a.fullPath??a.from,G,X,J);z=re,re.depth=l,re.parent=s,s.dynamic??=[],s.dynamic.push(re)}break}case 3:{let P=m.substring(k,_[1]),T=m.substring(_[4],U),G=x&&!!(P||T),X=!P?void 0:G?P:P.toLowerCase(),J=!T?void 0:G?T:T.toLowerCase(),ee=!v&&s.optional?.find((re)=>!re.parse&&re.caseSensitive===G&&re.prefix===X&&re.suffix===J);if(ee)z=ee;else{let re=hB(3,a.fullPath??a.from,G,X,J);z=re,re.parent=s,re.depth=l,s.optional??=[],s.optional.push(re)}break}case 2:{let P=m.substring(k,_[1]),T=m.substring(_[4],U),G=x&&!!(P||T),X=!P?void 0:G?P:P.toLowerCase(),J=!T?void 0:G?T:T.toLowerCase(),ee=hB(2,a.fullPath??a.from,G,X,J);z=ee,ee.parent=s,ee.depth=l,s.wildcard??=[],s.wildcard.push(ee)}}s=z}if(v&&a.children&&!a.isRoot&&a.id&&a.id.charCodeAt(a.id.lastIndexOf("/")+1)===95){let _=Q8(a.fullPath??a.from);_.kind=mX,_.parent=s,l++,_.depth=l,s.pathless??=[],s.pathless.push(_),s=_}let b=(a.path||!a.children)&&!a.isRoot;if(b&&m.endsWith("/")){let _=Q8(a.fullPath??a.from);_.kind=wM,_.parent=s,l++,_.depth=l,s.index=_,s=_}if(s.parse=v??null,s.priority=a.options?.params?.priority??0,b&&!s.route)s.route=a,s.fullPath=a.fullPath??a.from}if(a.children)for(let m of a.children)eN(e,r,m,d,s,l,c)}function mB(e,r){if(e.parse&&!r.parse)return-1;if(!e.parse&&r.parse)return 1;if(e.parse&&r.parse&&(e.priority||r.priority))return r.priority-e.priority;if(e.prefix&&r.prefix&&e.prefix!==r.prefix){if(e.prefix.startsWith(r.prefix))return-1;if(r.prefix.startsWith(e.prefix))return 1}if(e.suffix&&r.suffix&&e.suffix!==r.suffix){if(e.suffix.endsWith(r.suffix))return-1;if(r.suffix.endsWith(e.suffix))return 1}if(e.prefix&&!r.prefix)return-1;if(!e.prefix&&r.prefix)return 1;if(e.suffix&&!r.suffix)return-1;if(!e.suffix&&r.suffix)return 1;if(e.caseSensitive&&!r.caseSensitive)return-1;if(!e.caseSensitive&&r.caseSensitive)return 1;return 0}function bM(e){if(e.pathless)for(let r of e.pathless)bM(r);if(e.static)for(let r of e.static.values())bM(r);if(e.staticInsensitive)for(let r of e.staticInsensitive.values())bM(r);if(e.dynamic?.length){e.dynamic.sort(mB);for(let r of e.dynamic)bM(r)}if(e.optional?.length){e.optional.sort(mB);for(let r of e.optional)bM(r)}if(e.wildcard?.length){e.wildcard.sort(mB);for(let r of e.wildcard)bM(r)}}function Q8(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function hB(e,r,a,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:r,parent:null,parse:null,priority:0,caseSensitive:a,prefix:i,suffix:s}}function hX(e,r){let a=Q8("/"),i=new Uint16Array(6);for(let s of e)eN(!1,i,s,1,a,0);bM(a),r.masksTree=a,r.flatCache=_M(1000)}function gX(e,r){e||="/";let a=r.flatCache.get(e);if(a)return a;let i=MB(e,r.masksTree);return r.flatCache.set(e,i),i}function MX(e,r,a,i,s){e||="/",i||="/";let l=r?`case\x00${e}`:e,c=s.singleCache.get(l);if(!c)c=Q8("/"),eN(r,new Uint16Array(6),{from:e},1,c,0),s.singleCache.set(l,c);return MB(i,c,a)}function xX(e,r,a=!1){let i=a?e:`nofuzz\x00${e}`,s=r.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=MB(e,r.segmentTree,a)}catch(c){if(c instanceof URIError)l=null;else throw c}if(l)l.branch=xB(l.route);return r.matchCache.set(i,l),l}function v_e(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function vX(e,r=!1,a){let i=Q8(e.fullPath),s=new Uint16Array(6),l={},c={},d=0;return eN(r,s,e,1,i,0,(m)=>{if(a?.(m,d),m.id in l)ai();if(l[m.id]=m,d!==0&&m.path){let g=v_e(m.fullPath);if(!c[g]||m.fullPath.endsWith("/"))c[g]=m}d++}),bM(i),{processedTree:{segmentTree:i,singleCache:_M(1000),matchCache:_M(1000),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function MB(e,r,a=!1){let i=e.split("/"),s=__e(e,i,r,a);if(!s)return null;let[l]=yX(e,i,s);return{route:s.node.route,rawParams:l}}function yX(e,r,a){let i=y_e(a.node),s=null,l=Object.create(null),c=a.extract?.part??0,d=a.extract?.node??0,m=a.extract?.path??0,g=a.extract?.segment??0;for(;d<i.length;c++,d++,m++,g++){let x=i[d];if(x.kind===wM)break;if(x.kind===mX){g--,c--,m--;continue}let v=r[c],b=m;if(v)m+=v.length;if(x.kind===1){s??=a.node.fullPath.split("/");let _=s[g],z=x.prefix?.length??0;if(_.charCodeAt(z)===123){let k=x.suffix?.length??0,U=_.substring(z+2,_.length-k-1),P=v.substring(z,v.length-k);l[U]=decodeURIComponent(P)}else{let k=_.substring(1);l[k]=decodeURIComponent(v)}}else if(x.kind===3){if(a.skipped&1<<d){c--,m=b-1;continue}s??=a.node.fullPath.split("/");let _=s[g],z=x.prefix?.length??0,k=x.suffix?.length??0,U=_.substring(z+3,_.length-k-1),P=x.suffix||x.prefix?v.substring(z,v.length-k):v;if(P)l[U]=decodeURIComponent(P)}else if(x.kind===2){let _=x,z=e.substring(b+(_.prefix?.length??0),e.length-(_.suffix?.length??0)),k=decodeURIComponent(z);l["*"]=k,l._splat=k;break}}if(a.rawParams)Object.assign(l,a.rawParams);return[l,{part:c,node:d,path:m,segment:g}]}function xB(e){let r=[e];while(e.parentRoute)e=e.parentRoute,r.push(e);return r.reverse(),r}function y_e(e){let r=Array(e.depth+1);do r[e.depth]=e,e=e.parent;while(e);return r}function __e(e,r,a,i){if(e==="/"&&a.index)return{node:a.index,skipped:0};let s=!MM(r),l=s&&e!=="/",c=r.length-(s?1:0),d=[{node:a,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],m=null,g=null;while(d.length){let x=d.pop(),{node:v,index:b,skipped:_,depth:z,statics:k,dynamics:U,optionals:P}=x,{extract:T,rawParams:G}=x;if(v.kind===2&&v.route&&!$O(g,x))continue;if(v.parse){if(!pX(e,r,x))continue;G=x.rawParams,T=x.extract}if(i&&v.route&&v.kind!==wM&&$O(m,x))m=x;let X=b===c;if(X){if(v.route&&(!l||v.kind===wM||v.kind===2)&&$O(g,x))g=x;if(!v.optional&&!v.wildcard&&!v.index&&!v.pathless)continue}let J=X?void 0:r[b],ee;if(X&&v.index){let re={node:v.index,index:b,skipped:_,depth:z+1,statics:k,dynamics:U,optionals:P,extract:T,rawParams:G},oe=!0;if(v.index.parse){if(!pX(e,r,re))oe=!1}if(oe){if(!U&&!P&&!_&&b_e(k,c))return re;if($O(g,re))g=re}}if(v.wildcard)for(let re=v.wildcard.length-1;re>=0;re--){let oe=v.wildcard[re],{prefix:ie,suffix:ye}=oe;if(ie){if(X)continue;if(!(oe.caseSensitive?J:ee??=J.toLowerCase()).startsWith(ie))continue}if(ye){if(X)continue;let We=r.slice(b).join("/").slice(-ye.length);if((oe.caseSensitive?We:We.toLowerCase())!==ye)continue}d.push({node:oe,index:c,skipped:_,depth:z+1,statics:k,dynamics:U,optionals:P,extract:T,rawParams:G})}if(v.optional){let re=_|1<<z,oe=z+1;for(let ie=v.optional.length-1;ie>=0;ie--){let ye=v.optional[ie];d.push({node:ye,index:b,skipped:re,depth:oe,statics:k,dynamics:U,optionals:P,extract:T,rawParams:G})}if(!X)for(let ie=v.optional.length-1;ie>=0;ie--){let ye=v.optional[ie],{prefix:We,suffix:Ye}=ye;if(We||Ye){let Se=ye.caseSensitive?J:ee??=J.toLowerCase();if(We&&!Se.startsWith(We))continue;if(Ye&&!Se.endsWith(Ye))continue}d.push({node:ye,index:b+1,skipped:_,depth:oe,statics:k,dynamics:U,optionals:P+JO(c,b),extract:T,rawParams:G})}}if(!X&&v.dynamic&&J)for(let re=v.dynamic.length-1;re>=0;re--){let oe=v.dynamic[re],{prefix:ie,suffix:ye}=oe;if(ie||ye){let We=oe.caseSensitive?J:ee??=J.toLowerCase();if(ie&&!We.startsWith(ie))continue;if(ye&&!We.endsWith(ye))continue}d.push({node:oe,index:b+1,skipped:_,depth:z+1,statics:k,dynamics:U+JO(c,b),optionals:P,extract:T,rawParams:G})}if(!X&&v.staticInsensitive){let re=v.staticInsensitive.get(ee??=J.toLowerCase());if(re)d.push({node:re,index:b+1,skipped:_,depth:z+1,statics:k+JO(c,b),dynamics:U,optionals:P,extract:T,rawParams:G})}if(!X&&v.static){let re=v.static.get(J);if(re)d.push({node:re,index:b+1,skipped:_,depth:z+1,statics:k+JO(c,b),dynamics:U,optionals:P,extract:T,rawParams:G})}if(v.pathless){let re=z+1;for(let oe=v.pathless.length-1;oe>=0;oe--){let ie=v.pathless[oe];d.push({node:ie,index:b,skipped:_,depth:re,statics:k,dynamics:U,optionals:P,extract:T,rawParams:G})}}}if(g)return g;if(i&&m){let x=m.index;for(let b=0;b<m.index;b++)x+=r[b].length;let v=x===e.length?"/":e.slice(x);return m.rawParams??=Object.create(null),m.rawParams["**"]=decodeURIComponent(v),m}return null}function JO(e,r){return 2**(e-r-1)}function b_e(e,r){return e===2**(r-1)-1}function pX(e,r,a){let i,s;try{[i,s]=yX(e,r,a)}catch{return null}if(a.rawParams=i,a.extract=s,!a.node.parse)return!0;try{if(a.node.parse(i)===!1)return null}catch{}return!0}function $O(e,r){if(!e)return!0;return r.statics>e.statics||r.statics===e.statics&&(r.dynamics>e.dynamics||r.dynamics===e.dynamics&&(r.optionals>e.optionals||r.optionals===e.optionals&&((r.node.kind===wM)>(e.node.kind===wM)||r.node.kind===wM===(e.node.kind===wM)&&r.depth>e.depth)))}function SM(e){return WL(e.filter((r)=>r!==void 0).join("/"))}function WL(e){return e.replace(/\/{2,}/g,"/")}function XR(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Rs(e){let r=e.length;return r>1&&e[r-1]==="/"?e.replace(/\/{1,}$/,""):e}function KL(e){return Rs(XR(e))}function zM(e,r){if(e?.endsWith("/")&&e!=="/"&&e!==`${r}/`)return e.slice(0,-1);return e}function tN(e,r,a){return zM(e,a)===zM(r,a)}function rN({base:e,to:r,trailingSlash:a="never",cache:i}){let s=r.startsWith("/"),l=!s&&r===".",c;if(i){c=s?r:l?e:e+"\x00"+r;let g=i.get(c);if(g)return g}let d;if(l)d=e.split("/");else if(s)d=r.split("/");else{d=e.split("/");while(d.length>1&&MM(d)==="")d.pop();let g=r.split("/");for(let x=0,v=g.length;x<v;x++){let b=g[x];if(b===""){if(!x)d=[b];else if(x===v-1)d.push(b)}else if(b==="..")d.pop();else if(b===".");else d.push(b)}}if(d.length>1){if(MM(d)===""){if(a==="never")d.pop()}else if(a==="always")d.push("")}let m=WL(d.join("/"))||"/";if(c&&i)i.set(c,m);return m}function bX(e){let r=new Map(e.map((s)=>[encodeURIComponent(s),s])),a=Array.from(r.keys()).map((s)=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(a,"g");return(s)=>s.replace(i,(l)=>r.get(l)??l)}function GR(e,r,a){let i=r[e];if(typeof i!=="string")return i;if(e==="_splat"){if(/^[a-zA-Z0-9\-._~!/]*$/.test(i))return i;return i.split("/").map((s)=>_X(s,a)).join("/")}else return _X(i,a)}function QR({path:e,params:r,decoder:a,...i}){let s=!1,l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};if(qr??i.server){if(e.indexOf("{")===-1){let x=e.length,v=0,b="";while(v<x){while(v<x&&e.charCodeAt(v)===47)v++;if(v>=x)break;let _=v,z=e.indexOf("/",v);if(z===-1)z=x;v=z;let k=e.substring(_,z);if(!k)continue;if(k.charCodeAt(0)===36)if(k.length===1){let U=r._splat;if(l._splat=U,l["*"]=U,!U){s=!0;continue}let P=GR("_splat",r,a);b+="/"+P}else{let U=k.substring(1);if(!s&&!(U in r))s=!0;l[U]=r[U];let P=GR(U,r,a)??"undefined";b+="/"+P}else b+="/"+k}if(e.endsWith("/"))b+="/";return{usedParams:l,interpolatedPath:b||"/",isMissingParams:s}}}let c=e.length,d=0,m,g="";while(d<c){let x=d;m=gB(e,x,m);let v=m[5];if(d=v+1,x===v)continue;let b=m[0];if(b===0){g+="/"+e.substring(x,v);continue}if(b===2){let _=r._splat;l._splat=_,l["*"]=_;let z=e.substring(x,m[1]),k=e.substring(m[4],v);if(!_){if(s=!0,z||k)g+="/"+z+k;continue}let U=GR("_splat",r,a);g+="/"+z+U+k;continue}if(b===1){let _=e.substring(m[2],m[3]);if(!s&&!(_ in r))s=!0;l[_]=r[_];let z=e.substring(x,m[1]),k=e.substring(m[4],v),U=GR(_,r,a)??"undefined";g+="/"+z+U+k;continue}if(b===3){let _=e.substring(m[2],m[3]),z=r[_];if(z==null)continue;l[_]=z;let k=e.substring(x,m[1]),U=e.substring(m[4],v),P=GR(_,r,a)??"";g+="/"+k+P+U;continue}}if(e.endsWith("/"))g+="/";return{usedParams:l,interpolatedPath:g||"/",isMissingParams:s}}function _X(e,r){let a=encodeURIComponent(e);return r?.(a)??a}function Qa(e){return e?.isNotFound===!0}function wX(e,r=String){let a=new URLSearchParams;for(let i in e){let s=e[i];if(s!==void 0)a.set(i,r(s))}return a.toString()}function vB(e){if(!e)return"";if(e==="false")return!1;if(e==="true")return!0;return+e*0===0&&+e+""===e?+e:e}function zX(e){let r=new URLSearchParams(e),a=Object.create(null);for(let[i,s]of r.entries()){let l=a[i];if(l==null)a[i]=vB(s);else if(Array.isArray(l))l.push(vB(s));else a[i]=[l,vB(s)]}return a}var yB=SX(JSON.parse),_B=LX(JSON.stringify,JSON.parse);function SX(e){return(r)=>{if(r[0]==="?")r=r.substring(1);let a=zX(r);for(let i in a){let s=a[i];if(typeof s==="string")try{a[i]=e(s)}catch(l){}}return a}}function LX(e,r){let a=typeof r==="function";function i(s){if(typeof s==="object"&&s!==null)try{return e(s)}catch(l){}else if(a&&typeof s==="string")try{return r(s),e(s)}catch(l){}return s}return(s)=>{let l=wX(s,i);return l?`?${l}`:""}}var os="__root__";function sl(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==="string")try{new URL(e.href),e.reloadDocument=!0}catch{}let r=new Headers(e.headers);if(e.href&&r.get("Location")===null)r.set("Location",e.href);let a=new Response(null,{status:e.statusCode,headers:r});if(a.options=e,e.throw)throw a;return a}function ni(e){return e instanceof Response&&!!e.options}function bB(e){return{input:({url:r})=>{for(let a of e)r=oN(a,r);return r},output:({url:r})=>{for(let a=e.length-1;a>=0;a--)r=wB(e[a],r);return r}}}function kX(e){let r=KL(e.basepath),a=`/${r}`,i=e.caseSensitive?a:a.toLowerCase(),s=`${i}/`;return{input:({url:l})=>{let c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();if(c===i)l.pathname="/";else if(c.startsWith(s))l.pathname=l.pathname.slice(a.length);return l},output:({url:l})=>(l.pathname=SM(["/",r,l.pathname]),l)}}function oN(e,r){let a=e?.input?.({url:r});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return r}function wB(e,r){let a=e?.output?.({url:r});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return r}function LB(e){let r=e;return{get(){return r},set(a){r=rs(a,r)}}}function kB(e){return{get(){return e()}}}function CX(e,r){let{createMutableStore:a,createReadonlyStore:i,batch:s,init:l}=r,c=new Map,d=new Map,m=new Map,g=a(e.status),x=a(e.loadedAt),v=a(e.isLoading),b=a(e.isTransitioning),_=a(e.location),z=a(e.resolvedLocation),k=a(e.statusCode),U=a(e.redirect),P=a([]),T=a([]),G=a([]),X=i(()=>zB(c,P.get())),J=i(()=>zB(d,T.get())),ee=i(()=>zB(m,G.get())),re=i(()=>P.get()[0]),oe=i(()=>P.get().some((yt)=>c.get(yt)?.get().status==="pending")),ie=i(()=>({locationHref:_.get().href,resolvedLocationHref:z.get()?.href,status:g.get()})),ye=i(()=>({status:g.get(),loadedAt:x.get(),isLoading:v.get(),isTransitioning:b.get(),matches:X.get(),location:_.get(),resolvedLocation:z.get(),statusCode:k.get(),redirect:U.get()})),We=_M(64);function Ye(yt){let Ft=We.get(yt);if(!Ft)Ft=i(()=>{let Bt=P.get();for(let de of Bt){let _t=c.get(de);if(_t&&_t.routeId===yt)return _t.get()}}),We.set(yt,Ft);return Ft}let Se={status:g,loadedAt:x,isLoading:v,isTransitioning:b,location:_,resolvedLocation:z,statusCode:k,redirect:U,matchesId:P,pendingIds:T,cachedIds:G,matches:X,pendingMatches:J,cachedMatches:ee,firstId:re,hasPending:oe,matchRouteDeps:ie,matchStores:c,pendingMatchStores:d,cachedMatchStores:m,__store:ye,getRouteMatchStore:Ye,setMatches:He,setPending:dt,setCached:Ge};He(e.matches),l?.(Se);function He(yt){SB(yt,c,P,a,s)}function dt(yt){SB(yt,d,T,a,s)}function Ge(yt){SB(yt,m,G,a,s)}return Se}function zB(e,r){let a=[];for(let i of r){let s=e.get(i);if(s)a.push(s.get())}return a}function SB(e,r,a,i,s){let l=e.map((d)=>d.id),c=new Set(l);s(()=>{for(let d of r.keys())if(!c.has(d))r.delete(d);for(let d of e){let m=r.get(d.id);if(!m){let g=i(d);g.routeId=d.routeId,r.set(d.id,g);continue}if(m.routeId=d.routeId,m.get()!==d)m.set(d)}if(!ZX(a.get(),l))a.set(l)})}function w_e(){try{return sessionStorage}catch{return}}var z_e="tsr-scroll-restoration-v1_3",PX=w_e();function S_e(){try{return JSON.parse(PX?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function L_e(){try{PX?.setItem(z_e,JSON.stringify(GL))}catch{}}var GL=S_e(),IX="data-scroll-restoration-id",k_e=(e)=>e.state.__TSR_key||e.href;function C_e(e){let r=e.getAttribute(IX);if(r)return`[${IX}="${r}"]`;let a="",i=e,s;while(s=i.parentNode){let l=1,c=i;while(c=c.previousElementSibling)l++;let d=`${i.localName}:nth-child(${l})`;a=a?`${d} > ${a}`:d,i=s}return a}var aN=!1,XL="window";function CB(e){try{return typeof e==="function"?e():document.querySelector(e)}catch{}}function RX(e){let r=[];for(let a of e){if(a===XL)continue;let i=CB(a);if(i)r.push(i)}return r}function TX(e,r){if(r??e.options.scrollRestoration)e.isScrollRestoring=!0;if((qr??e.isServer)||e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,aN=!1;let a=e.options.getScrollRestorationKey||k_e,i=new Map,s=(d,m,g)=>{let x=i.get(d)||{};x.scrollX=m,x.scrollY=g,i.set(d,x)};history.scrollRestoration="manual";let l=(d)=>{if(aN||!e.isScrollRestoring)return;if(d.target===document)s(XL,scrollX,scrollY);else{let m=d.target;s(m,m.scrollLeft,m.scrollTop)}},c=(d)=>{if(!e.isScrollRestoring)return;let m=GL[d]||={};for(let[g,x]of i)if(g===XL)m[XL]=x;else if(g.isConnected)m[C_e(g)]=x};document.addEventListener("scroll",l,!0),e.subscribe("onBeforeLoad",(d)=>{if(d.fromLocation)c(a(d.fromLocation));i.clear()}),addEventListener("pagehide",()=>{c(a(e.stores.resolvedLocation.get()??e.stores.location.get())),L_e()}),e.subscribe("onRendered",(d)=>{let m=e.options.scrollRestorationBehavior,g=e.options.scrollToTopSelectors,x=e.resetNextScroll,v;if(i.clear(),!x)e.resetNextScroll=!0;if(typeof e.options.scrollRestoration==="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;let b=a(d.toLocation),_=d.fromLocation&&a(d.fromLocation);if(e.isScrollRestoring&&_&&_!==b){let z=GL[_];if(z){let k=GL[b];for(let U in z){if(U===XL){if(x)continue}else{let P=CB(U);if(!P)continue;if(x&&g){if(v??=RX(g),v.includes(P))continue}}if(!k)k=GL[b]={};k[U]??=z[U]}}}aN=!0;try{let z=d.toLocation.hash,k=d.toLocation.state.__hashScrollIntoViewOptions??!0,U=!1;if(x){let P=nN.get(d.toLocation),T=z&&k&&(P==="PUSH"||P==="REPLACE"),G=e.isScrollRestoring?GL[b]:void 0;if(G)for(let X in G){let{scrollX:J,scrollY:ee}=G[X];if(X===XL){if(T)continue;scrollTo({top:ee,left:J,behavior:m}),U=!0}else{let re=CB(X);if(re)re.scrollLeft=J,re.scrollTop=ee}}if(!U&&!z){let X={top:0,left:0,behavior:m};if(scrollTo(X),g){v??=RX(g);for(let J of v)J.scrollTo(X)}}}if(!U&&z&&k)document.getElementById(z)?.scrollIntoView(k)}finally{aN=!1}})}var IB=(e)=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},I_e=(e)=>e.stores.matchesId.get().some((r)=>e.stores.matchStores.get(r)?.get()._forcePending),sN=(e,r)=>!!(e.preload&&!e.router.stores.matchStores.has(r)),J8=(e,r,a=!0)=>{let i={...e.router.options.context??{}},s=a?r:r-1;for(let l=0;l<=s;l++){let c=e.matches[l];if(!c)continue;let d=e.router.getMatch(c.id);if(!d)continue;Object.assign(i,d.__routeContext,d.__beforeLoadContext)}return i},AX=(e,r)=>{if(!e.matches.length)return;let a=r.routeId,i=e.matches.findIndex((c)=>c.routeId===e.router.routeTree.id),s=i>=0?i:0,l=a?e.matches.findIndex((c)=>c.routeId===a):e.firstBadMatchIndex??e.matches.length-1;if(l<0)l=s;for(let c=l;c>=0;c--){let d=e.matches[c];if(e.router.looseRoutesById[d.routeId].options.notFoundComponent)return c}return a?l:s},LM=(e,r,a)=>{if(!ni(a)&&!Qa(a))return;if(ni(a)&&a.redirectHandled&&!a.options.reloadDocument)throw a;if(r){if(r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.loaderPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,r._nonReactive.loaderPromise=void 0,r._nonReactive.error=a,e.updateMatch(r.id,(i)=>({...i,status:ni(a)?"redirected":Qa(a)?"notFound":i.status==="pending"?"success":i.status,context:J8(e,r.index),isFetching:!1,error:a})),Qa(a)&&!a.routeId)a.routeId=r.routeId;r._nonReactive.loadPromise?.resolve()}if(ni(a))e.rendered=!0,a.options._fromLocation=e.location,a.redirectHandled=!0,a=e.router.resolveRedirect(a);throw a},NX=(e,r)=>{let a=e.router.getMatch(r);if(!a)return!0;if(!(qr??e.router.isServer)&&a._nonReactive.dehydrated)return!0;if((qr??e.router.isServer)&&a.ssr===!1)return!0;return!1},EX=(e,r,a)=>{let i=J8(e,a);e.updateMatch(r,(s)=>({...s,context:i}))},JR=(e,r,a)=>{let{id:i,routeId:s}=e.matches[r],l=e.router.looseRoutesById[s];if(a instanceof Promise)throw a;e.firstBadMatchIndex??=r,LM(e,e.router.getMatch(i),a);try{l.options.onError?.(a)}catch(c){a=c,LM(e,e.router.getMatch(i),a)}if(e.updateMatch(i,(c)=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:a,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!ni(a)&&!Qa(a))e.serialError??=a},R_e=(e,r,a,i)=>{let s=e.router.getMatch(r),l=e.matches[a-1]?.id,c=l?e.router.getMatch(l):void 0;if(e.router.isShell()){s.ssr=i.id===os;return}if(c?.ssr===!1){s.ssr=!1;return}let d=(_)=>{if(_===!0&&c?.ssr==="data-only")return"data-only";return _},m=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=d(m);return}if(typeof i.options.ssr!=="function"){s.ssr=d(i.options.ssr);return}let{search:g,params:x}=s,v={search:iN(g,s.searchError),params:iN(x,s.paramsError),location:e.location,matches:e.matches.map((_)=>({index:_.index,pathname:_.pathname,fullPath:_.fullPath,staticData:_.staticData,id:_.id,routeId:_.routeId,search:iN(_.search,_.searchError),params:iN(_.params,_.paramsError),ssr:_.ssr}))},b=i.options.ssr(v);if(yM(b))return b.then((_)=>{s.ssr=d(_??m)});s.ssr=d(b??m)},FX=(e,r,a,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;let s=a.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!(qr??e.router.isServer)&&!sN(e,r)&&(a.options.loader||a.options.beforeLoad||PB(a))&&typeof s==="number"&&s!==1/0&&(a.options.pendingComponent??e.router.options?.defaultPendingComponent)){let l=setTimeout(()=>{IB(e)},s);i._nonReactive.pendingTimeout=l}},P_e=(e,r,a)=>{let i=e.router.getMatch(r);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;FX(e,r,a,i);let s=()=>{let l=e.router.getMatch(r);if(l.preload&&(l.status==="redirected"||l.status==="notFound"))LM(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},T_e=(e,r,a,i)=>{let s=e.router.getMatch(r),l=s._nonReactive.loadPromise;s._nonReactive.loadPromise=au(()=>{l?.resolve(),l=void 0});let{paramsError:c,searchError:d}=s;if(c)JR(e,a,c);if(d)JR(e,a,d);FX(e,r,i,s);let m=new AbortController,g=!1,x=()=>{if(g)return;g=!0,e.updateMatch(r,(X)=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:m}))},v=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(r,(X)=>({...X,isFetching:!1}))};if(!i.options.beforeLoad){e.router.batch(()=>{x(),v()});return}s._nonReactive.beforeLoadPromise=au();let b={...J8(e,a,!1),...s.__routeContext},{search:_,params:z,cause:k}=s,U=sN(e,r),P={search:_,abortController:m,params:z,preload:U,context:b,location:e.location,navigate:(X)=>e.router.navigate({...X,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:U?"preload":k,matches:e.matches,routeId:i.id,...e.router.options.additionalContext},T=(X)=>{if(X===void 0){e.router.batch(()=>{x(),v()});return}if(ni(X)||Qa(X))x(),JR(e,a,X);e.router.batch(()=>{x(),e.updateMatch(r,(J)=>({...J,__beforeLoadContext:X})),v()})},G;try{if(G=i.options.beforeLoad(P),yM(G))return x(),G.catch((X)=>{JR(e,a,X)}).then(T)}catch(X){x(),JR(e,a,X)}T(G)},A_e=(e,r)=>{let{id:a,routeId:i}=e.matches[r],s=e.router.looseRoutesById[i],l=()=>{if(qr??e.router.isServer){let m=R_e(e,a,r,s);if(yM(m))return m.then(d)}return d()},c=()=>T_e(e,a,r,s),d=()=>{if(NX(e,a))return;let m=P_e(e,a,s);return yM(m)?m.then(c):c()};return l()},E_e=(e,r,a)=>{let i=e.router.getMatch(r);if(!i)return;if(!a.options.head&&!a.options.scripts&&!a.options.headers)return;let s={ssr:e.router.options.ssr,matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([a.options.head?.(s),a.options.scripts?.(s),a.options.headers?.(s)]).then(([l,c,d])=>({meta:l?.meta,links:l?.links,headScripts:l?.scripts,headers:d,scripts:c,styles:l?.styles}))},jX=(e,r,a,i,s)=>{let l=r[i-1],{params:c,loaderDeps:d,abortController:m,cause:g}=e.router.getMatch(a),x=J8(e,i),v=sN(e,a);return{params:c,deps:d,preload:!!v,parentMatchPromise:l,abortController:m,context:x,location:e.location,navigate:(b)=>e.router.navigate({...b,_fromLocation:e.location}),cause:v?"preload":g,route:s,...e.router.options.additionalContext}},DX=async(e,r,a,i,s)=>{try{let l=e.router.getMatch(a);try{if(!(qr??e.router.isServer)||l.ssr===!0)QL(s);let c=s.options.loader,d=typeof c==="function"?c:c?.handler,m=d?.(jX(e,r,a,i,s)),g=!!d&&yM(m);if(g||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||l._nonReactive.minPendingPromise)e.updateMatch(a,(v)=>({...v,isFetching:"loader"}));if(d){let v=g?await m:m;if(LM(e,e.router.getMatch(a),v),v!==void 0)e.updateMatch(a,(b)=>({...b,loaderData:v}))}if(s._lazyPromise)await s._lazyPromise;let x=l._nonReactive.minPendingPromise;if(x)await x;if(s._componentsPromise)await s._componentsPromise;e.updateMatch(a,(v)=>({...v,error:void 0,context:J8(e,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let d=c;if(d?.name==="AbortError"){if(l.abortController.signal.aborted){l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loaderPromise=void 0;return}e.updateMatch(a,(g)=>({...g,status:g.status==="pending"?"success":g.status,isFetching:!1,context:J8(e,i)}));return}let m=l._nonReactive.minPendingPromise;if(m)await m;if(Qa(c))await s.options.notFoundComponent?.preload?.();LM(e,e.router.getMatch(a),c);try{s.options.onError?.(c)}catch(g){d=g,LM(e,e.router.getMatch(a),g)}if(!ni(d)&&!Qa(d))await QL(s,["errorComponent"]);e.updateMatch(a,(g)=>({...g,error:d,context:J8(e,i),status:"error",isFetching:!1}))}}catch(l){let c=e.router.getMatch(a);if(c)c._nonReactive.loaderPromise=void 0;LM(e,c,l)}},D_e=async(e,r,a)=>{async function i(_,z,k,U,P){let T=Date.now()-z.updatedAt,G=_?P.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??30000:P.options.staleTime??e.router.options.defaultStaleTime??0,X=P.options.shouldReload,J=typeof X==="function"?X(jX(e,r,s,a,P)):X,{status:ee,invalid:re}=U,oe=T>=G&&(!!e.forceStaleReload||U.cause==="enter"||k!==void 0&&k!==U.id);if(c=ee==="success"&&(re||(J??oe)),_&&P.options.preload===!1);else if(c&&!e.sync&&x)d=!0,(async()=>{try{await DX(e,r,s,a,P);let ie=e.router.getMatch(s);ie._nonReactive.loaderPromise?.resolve(),ie._nonReactive.loadPromise?.resolve(),ie._nonReactive.loaderPromise=void 0,ie._nonReactive.loadPromise=void 0}catch(ie){if(ni(ie))await e.router.navigate(ie.options)}})();else if(ee!=="success"||c)await DX(e,r,s,a,P);else EX(e,s,a)}let{id:s,routeId:l}=e.matches[a],c=!1,d=!1,m=e.router.looseRoutesById[l],g=m.options.loader,x=((typeof g==="function"?void 0:g?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(NX(e,s)){if(!e.router.getMatch(s))return e.matches[a];if(EX(e,s,a),qr??e.router.isServer)return e.router.getMatch(s)}else{let _=e.router.getMatch(s),z=e.router.stores.matchesId.get()[a],k=(z&&e.router.stores.matchStores.get(z)||null)?.routeId===l?z:e.router.stores.matches.get().find((P)=>P.routeId===l)?.id,U=sN(e,s);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!e.sync&&!_.preload&&x)return _;await _._nonReactive.loaderPromise;let P=e.router.getMatch(s),T=P._nonReactive.error||P.error;if(T)LM(e,P,T);if(P.status==="pending")await i(U,_,k,P,m)}else{let P=U&&!e.router.stores.matchStores.has(s),T=e.router.getMatch(s);if(T._nonReactive.loaderPromise=au(),P!==T.preload)e.updateMatch(s,(G)=>({...G,preload:P}));await i(U,_,k,T,m)}}let v=e.router.getMatch(s);if(!d)v._nonReactive.loaderPromise?.resolve(),v._nonReactive.loadPromise?.resolve(),v._nonReactive.loadPromise=void 0;if(clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,!d)v._nonReactive.loaderPromise=void 0;v._nonReactive.dehydrated=void 0;let b=d?v.isFetching:!1;if(b!==v.isFetching||v.invalid!==!1)return e.updateMatch(s,(_)=>({..._,isFetching:b,invalid:!1})),e.router.getMatch(s);else return v};async function RB(e){let r=e,a=[];if(!(qr??r.router.isServer)&&I_e(r.router))IB(r);let i;for(let b=0;b<r.matches.length;b++){try{let _=A_e(r,b);if(yM(_))await _}catch(_){if(ni(_))throw _;if(Qa(_))i=_;else if(!r.preload)throw _;break}if(r.serialError||r.firstBadMatchIndex!=null)break}let s=r.firstBadMatchIndex??r.matches.length,l=i&&!r.preload?AX(r,i):void 0,c=i&&r.preload?0:l!==void 0?Math.min(l+1,s):s,d,m;for(let b=0;b<c;b++)a.push(D_e(r,a,b));try{await Promise.all(a)}catch{let b=await Promise.allSettled(a);for(let _ of b){if(_.status!=="rejected")continue;let z=_.reason;if(ni(z))throw z;if(Qa(z))d??=z;else m??=z}if(m!==void 0)throw m}let g=d??(i&&!r.preload?i:void 0),x=r.firstBadMatchIndex!==void 0?r.firstBadMatchIndex:r.matches.length-1;if(!g&&i&&r.preload)return r.matches;if(g){let b=AX(r,g);if(b===void 0)ai();let _=r.matches[b],z=r.router.looseRoutesById[_.routeId],k=r.router.options?.defaultNotFoundComponent;if(!z.options.notFoundComponent&&k)z.options.notFoundComponent=k;g.routeId=_.routeId;let U=_.routeId===r.router.routeTree.id;r.updateMatch(_.id,(P)=>({...P,...U?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),x=b,await QL(z,["notFoundComponent"])}else if(!r.preload){let b=r.matches[0];if(!b.globalNotFound){if(r.router.getMatch(b.id)?.globalNotFound)r.updateMatch(b.id,(_)=>({..._,globalNotFound:!1,error:void 0}))}}if(r.serialError&&r.firstBadMatchIndex!==void 0){let b=r.router.looseRoutesById[r.matches[r.firstBadMatchIndex].routeId];await QL(b,["errorComponent"])}for(let b=0;b<=x;b++){let{id:_,routeId:z}=r.matches[b],k=r.router.looseRoutesById[z];try{let U=E_e(r,_,k);if(U){let P=await U;r.updateMatch(_,(T)=>({...T,...P}))}}catch(U){console.error(`Error executing head for route ${z}:`,U)}}let v=IB(r);if(yM(v))await v;if(g)throw g;if(r.serialError&&!r.preload&&!r.onReady)throw r.serialError;return r.matches}function OX(e,r){let a=r.map((i)=>e.options[i]?.preload?.()).filter(Boolean);if(a.length===0)return;return Promise.all(a)}function QL(e,r=fN){if(!e._lazyLoaded&&e._lazyPromise===void 0)if(e.lazyFn)e._lazyPromise=e.lazyFn().then((i)=>{let{id:s,...l}=i.options;Object.assign(e.options,l),e._lazyLoaded=!0,e._lazyPromise=void 0});else e._lazyLoaded=!0;let a=()=>e._componentsLoaded?void 0:r===fN?(()=>{if(e._componentsPromise===void 0){let i=OX(e,fN);if(i)e._componentsPromise=i.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});else e._componentsLoaded=!0}return e._componentsPromise})():OX(e,r);return e._lazyPromise?e._lazyPromise.then(a):a()}function iN(e,r){if(r)return{status:"error",error:r};return{status:"success",value:e}}function PB(e){for(let r of fN)if(e.options[r]?.preload)return!0;return!1}var fN=["component","errorComponent","pendingComponent","notFoundComponent"];var kM="__TSR_index",BX="popstate",UX="beforeunload";function O_e(e){let r=e.getLocation(),a=new Set,i=(c)=>{r=e.getLocation(),a.forEach((d)=>d({location:r,action:c}))},s=(c)=>{if(e.notifyOnIndexChange??!0)i(c);else r=e.getLocation()},l=async({task:c,navigateOpts:d,...m})=>{if(d?.ignoreBlocker??!1){c();return}let g=e.getBlockers?.()??[],x=m.type==="PUSH"||m.type==="REPLACE";if(typeof document<"u"&&g.length&&x)for(let v of g){let b=$R(m.path,m.state);if(await v.blockerFn({currentLocation:r,nextLocation:b,action:m.type})){e.onBlocked?.();return}}c()};return{get location(){return r},get length(){return e.getLength()},subscribers:a,subscribe:(c)=>(a.add(c),()=>{a.delete(c)}),push:(c,d,m)=>{let g=r.state[kM];d=YX(g+1,d),l({task:()=>{e.pushState(c,d),i({type:"PUSH"})},navigateOpts:m,type:"PUSH",path:c,state:d})},replace:(c,d,m)=>{let g=r.state[kM];d=YX(g,d),l({task:()=>{e.replaceState(c,d),i({type:"REPLACE"})},navigateOpts:m,type:"REPLACE",path:c,state:d})},go:(c,d)=>{l({task:()=>{e.go(c),s({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:(c)=>{l({task:()=>{e.back(c?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:(c)=>{l({task:()=>{e.forward(c?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>r.state[kM]!==0,createHref:(c)=>e.createHref(c),block:(c)=>{if(!e.setBlockers)return()=>{};let d=e.getBlockers?.()??[];return e.setBlockers([...d,c]),()=>{let m=e.getBlockers?.()??[];e.setBlockers?.(m.filter((g)=>g!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function YX(e,r){if(!r)r={};let a=TB();return{...r,key:a,__TSR_key:a,[kM]:e}}function qX(e){let r=e?.window??(typeof document<"u"?window:void 0),a=r.history.pushState,i=r.history.replaceState,s=[],l=()=>s,c=(oe)=>s=oe,d=e?.createHref??((oe)=>oe),m=e?.parseLocation??(()=>$R(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state));if(!r.history.state?.__TSR_key&&!r.history.state?.key){let oe=TB();r.history.replaceState({[kM]:0,key:oe,__TSR_key:oe},"")}let g=m(),x,v=!1,b=!1,_=!1,z=!1,k=()=>g,U,P,T=()=>{if(!U)return;re._ignoreSubscribers=!0,(U.isPush?r.history.pushState:r.history.replaceState)(U.state,"",U.href),re._ignoreSubscribers=!1,U=void 0,P=void 0,x=void 0},G=(oe,ie,ye)=>{let We=d(ie);if(!P)x=g;if(g=$R(ie,ye),U={href:We,state:ye,isPush:U?.isPush||oe==="push"},!P)P=Promise.resolve().then(()=>T())},X=(oe)=>{g=m(),re.notify({type:oe})},J=async()=>{if(b){b=!1;return}let oe=m(),ie=oe.state[kM]-g.state[kM],ye=ie===1,We=ie===-1,Ye=!ye&&!We||v;v=!1;let Se=Ye?"GO":We?"BACK":"FORWARD",He=Ye?{type:"GO",index:ie}:{type:We?"BACK":"FORWARD"};if(_)_=!1;else{let dt=l();if(typeof document<"u"&&dt.length){for(let Ge of dt)if(await Ge.blockerFn({currentLocation:g,nextLocation:oe,action:Se})){b=!0,r.history.go(1),re.notify(He);return}}}g=m(),re.notify(He)},ee=(oe)=>{if(z){z=!1;return}let ie=!1,ye=l();if(typeof document<"u"&&ye.length)for(let We of ye){let Ye=We.enableBeforeUnload??!0;if(Ye===!0){ie=!0;break}if(typeof Ye==="function"&&Ye()===!0){ie=!0;break}}if(ie)return oe.preventDefault(),oe.returnValue=""},re=O_e({getLocation:k,getLength:()=>r.history.length,pushState:(oe,ie)=>G("push",oe,ie),replaceState:(oe,ie)=>G("replace",oe,ie),back:(oe)=>{if(oe)_=!0;return z=!0,r.history.back()},forward:(oe)=>{if(oe)_=!0;z=!0,r.history.forward()},go:(oe)=>{v=!0,r.history.go(oe)},createHref:(oe)=>d(oe),flush:T,destroy:()=>{r.history.pushState=a,r.history.replaceState=i,r.removeEventListener(UX,ee,{capture:!0}),r.removeEventListener(BX,J)},onBlocked:()=>{if(x&&g!==x)g=x},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return r.addEventListener(UX,ee,{capture:!0}),r.addEventListener(BX,J),r.history.pushState=function(...oe){let ie=a.apply(r.history,oe);if(!re._ignoreSubscribers)X("PUSH");return ie},r.history.replaceState=function(...oe){let ie=i.apply(r.history,oe);if(!re._ignoreSubscribers)X("REPLACE");return ie},re}function N_e(e){let r=e.replace(/[\x00-\x1f\x7f]/g,"");if(r.startsWith("//"))r="/"+r.replace(/^\/+/,"");return r}function $R(e,r){let a=N_e(e),i=a.indexOf("#"),s=a.indexOf("?"),l=TB();return{href:a,pathname:a.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:a.length),hash:i>-1?a.substring(i):"",search:s>-1?a.slice(s,i===-1?void 0:i):"",state:r||{[kM]:0,key:l,__TSR_key:l}}}function TB(){return(Math.random()+1).toString(36).substring(7)}function kZ(e,r){let a=r,i=e;return{fromLocation:a,toLocation:i,pathChanged:a?.pathname!==i.pathname,hrefChanged:a?.href!==i.href,hashChanged:a?.hash!==i.hash}}var nN=new WeakMap,AB=class{constructor(e,r){if(this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=(a)=>a(),this.update=(a)=>{let i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,c=i?.rewrite;if(this.options={...i,...a},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters)this.pathParamsDecoder=bX(this.options.pathParamsAllowedCharacters);if(!this.history||this.options.history&&this.options.history!==this.history)if(!this.options.history){if(!(qr??this.isServer))this.history=qX()}else this.history=this.options.history;if(this.origin=this.options.origin,!this.origin)if(!(qr??this.isServer)&&window?.origin&&window.origin!=="null")this.origin=window.origin;else this.origin="http://localhost";if(this.history)this.updateLatestLocation();if(this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let x;if((qr??this.isServer)&&!0&&globalThis.__TSR_CACHE__&&globalThis.__TSR_CACHE__.routeTree===this.routeTree){let v=globalThis.__TSR_CACHE__;this.resolvePathCache=v.resolvePathCache,x=v.processRouteTreeResult}else if(this.resolvePathCache=_M(1000),x=this.buildRouteTree(),(qr??this.isServer)&&!0&&globalThis.__TSR_CACHE__===void 0)globalThis.__TSR_CACHE__={routeTree:this.routeTree,processRouteTreeResult:x,resolvePathCache:this.resolvePathCache};this.setRoutes(x)}if(!this.stores&&this.latestLocation){let x=this.getStoreConfig(this);if(this.batch=x.batch,this.stores=CX(WX(this.latestLocation),x),!(qr??this.isServer))TX(this)}let d=!1,m=this.options.basepath??"/",g=this.options.rewrite;if(l||s!==m||c!==g){this.basepath=m;let x=[],v=KL(m);if(v&&v!=="/")x.push(kX({basepath:m}));if(g)x.push(g);if(this.rewrite=x.length===0?void 0:x.length===1?x[0]:bB(x),this.history)this.updateLatestLocation();d=!0}if(d&&this.stores)this.stores.location.set(this.latestLocation);if(typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports==="function")this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))")},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let a=vX(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});if(this.options.routeMasks)hX(this.options.routeMasks,a.processedTree);return a},this.subscribe=(a,i)=>{let s={eventType:a,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=(a)=>{this.subscribers.forEach((i)=>{if(i.eventType===a.type)i.fn(a)})},this.parseLocation=(a,i)=>{let s=({pathname:m,search:g,hash:x,href:v,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(m)){let P=this.options.parseSearch(g),T=this.options.stringifySearch(P);return{href:m+T+x,publicHref:m+T+x,pathname:VL(m).path,external:!1,searchStr:T,search:vM(i?.search,P),hash:VL(x.slice(1)).path,state:Is(i?.state,b)}}let _=new URL(v,this.origin),z=oN(this.rewrite,_),k=this.options.parseSearch(z.search),U=this.options.stringifySearch(k);return z.search=U,{href:z.href.replace(z.origin,""),publicHref:v,pathname:VL(z.pathname).path,external:!!this.rewrite&&z.origin!==this.origin,searchStr:U,search:vM(i?.search,k),hash:VL(z.hash.slice(1)).path,state:Is(i?.state,b)}},l=s(a),{__tempLocation:c,__tempKey:d}=l.state;if(c&&(!d||d===this.tempLocationKey)){let m=s(c);return m.state.key=l.state.key,m.state.__TSR_key=l.state.__TSR_key,delete m.state.__tempLocation,{...m,maskedLocation:l}}return l},this.resolvePathWithBase=(a,i)=>rN({base:a,to:i.includes("//")?WL(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(a,i,s)=>{if(typeof a==="string")return this.matchRoutesInternal({pathname:a,search:i},s);return this.matchRoutesInternal(a,i)},this.getMatchedRoutes=(a)=>KX({pathname:a,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=(a)=>{let i=this.getMatch(a);if(!i)return;i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach((a)=>{this.cancelMatch(a)}),this.stores.matchesId.get().forEach((a)=>{if(this.stores.pendingMatchStores.has(a))return;let i=this.stores.matchStores.get(a)?.get();if(!i)return;if(i.status==="pending"||i.isFetching==="loader")this.cancelMatch(a)})},this.buildLocation=(a)=>{let i=(l={})=>{let c=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(c);l.from;let m=l.unsafeRelative==="path"?c.pathname:l.from??d.fullPath,g=l.to?`${l.to}`:void 0,x=d.search,v=Object.assign(Object.create(null),d.params),b=g?.charCodeAt(0)===47?"/":this.resolvePathWithBase(m,"."),_=g?this.resolvePathWithBase(b,g):b,z=l.params===!1||l.params===null?Object.create(null):(l.params??!0)===!0?v:Object.assign(v,rs(l.params,v)),k=this.routesByPath[Rs(_)],U;if(k)U=this.getRouteBranch(k);else if(_.includes("$"))U=[];else{let We=this.getMatchedRoutes(_);if(U=We.matchedRoutes,this.options.notFoundRoute&&(!We.foundRoute||We.foundRoute.path!=="/"&&We.routeParams["**"]))U=[...U,this.options.notFoundRoute]}if(U.length&&xM(z))for(let We of U){let Ye=We.options.params?.stringify??We.options.stringifyParams;if(Ye)try{Object.assign(z,Ye(z))}catch{}}let P=a.leaveParams?_:VL(QR({path:_,params:z,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,T=x;if(a._includeValidateSearch&&this.options.search?.strict){let We={};U.forEach((Ye)=>{if(Ye.options.validateSearch)try{Object.assign(We,lN(Ye.options.validateSearch,{...We,...T}))}catch{}}),T=We}T=F_e({search:T,dest:l,destRoutes:U,_includeValidateSearch:a._includeValidateSearch}),T=vM(x,T);let G=this.options.stringifySearch(T),X=l.hash===!0?c.hash:l.hash?rs(l.hash,c.hash):void 0,J=X?`#${X}`:"",ee=l.state===!0?c.state:l.state?rs(l.state,c.state):{};ee=Is(c.state,ee);let re=`${P}${G}${J}`,oe,ie,ye=!1;if(this.rewrite){let We=new URL(re,this.origin),Ye=wB(this.rewrite,We);if(oe=We.href.replace(We.origin,""),Ye.origin!==this.origin)ie=Ye.href,ye=!0;else ie=Ye.pathname+Ye.search+Ye.hash}else oe=dX(re),ie=oe;return{publicHref:ie,href:oe,pathname:P,search:T,searchStr:G,state:ee,hash:X??"",external:ye,unmaskOnReload:l.unmaskOnReload}},s=(l={},c)=>{let d=i(l),m=c?i(c):void 0;if(!m){let g=Object.create(null);if(this.options.routeMasks){let x=gX(d.pathname,this.processedTree);if(x){Object.assign(g,x.rawParams);let{from:v,params:b,..._}=x.route,z=b===!1||b===null?Object.create(null):(b??!0)===!0?g:Object.assign(g,rs(b,g));c={from:a.from,..._,params:z},m=i(c)}}}if(m)d.maskedLocation=m;return d};if(a.mask)return s(a,{from:a.from,...a.mask});return s(a)},this.commitLocation=async({viewTransition:a,ignoreBlocker:i,...s})=>{let l,c=()=>{let g=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];g.forEach((v)=>{s.state[v]=this.latestLocation.state[v]});let x=oc(s.state,this.latestLocation.state);return g.forEach((v)=>{delete s.state[v]}),x},d=Rs(this.latestLocation.href)===Rs(s.href),m=this.commitLocationPromise;if(this.commitLocationPromise=au(()=>{m?.resolve(),m=void 0}),d&&c())this.load();else{let{maskedLocation:g,hashScrollIntoView:x,...v}=s;if(g){if(v={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},v.unmaskOnReload??this.options.unmaskOnReload??!1)v.state.__tempKey=this.tempLocationKey}v.state.__hashScrollIntoViewOptions=x??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=a,l=s.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:i})}if(this.resetNextScroll=s.resetScroll??!0,!this.history.subscribers.size)this.load(l?{action:{type:l}}:void 0);return this.commitLocationPromise},this.buildAndCommitLocation=({replace:a,resetScroll:i,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:c,href:d,...m}={})=>{if(d){let v=this.history.location.state.__TSR_index,b=$R(d,{__TSR_index:a?v:v+1}),_=new URL(b.pathname,this.origin);m.to=oN(this.rewrite,_).pathname,m.search=this.options.parseSearch(b.search),m.hash=b.hash.slice(1)}let g=this.buildLocation({...m,_includeValidateSearch:!0});this.pendingBuiltLocation=g;let x=this.commitLocation({...g,viewTransition:l,replace:a,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c});return Promise.resolve().then(()=>{if(this.pendingBuiltLocation===g)this.pendingBuiltLocation=void 0}),x},this.navigate=async({to:a,reloadDocument:i,href:s,publicHref:l,...c})=>{let d=!1;if(s)try{new URL(`${s}`),d=!0}catch{}if(d&&!i)i=!0;if(i){if(a!==void 0||!s){let g=this.buildLocation({to:a,...c});s=s??g.publicHref,l=l??g.publicHref}let m=!d&&l?l:s;if(Fu(m,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){let g=this.history.getBlockers?.()??[];for(let x of g)if(x?.blockerFn){if(await x.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}}if(c.replace)window.location.replace(m);else window.location.href=m;return Promise.resolve()}return this.buildAndCommitLocation({...c,href:s,to:a,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),qr??this.isServer){let s=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==s.publicHref){let l=this.getParsedLocationHref(s);if(s.external)throw sl({href:l});else throw sl({href:l,_builtLocation:s})}}let a=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter((s)=>!a.some((l)=>l.id===s.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(a),this.stores.setCached(i)})},this.load=async(a)=>{let i=a?.action?.type,s,l,c,d=this.stores.resolvedLocation.get()??this.stores.location.get();c=new Promise((g)=>{this.startTransition(async()=>{try{if(this.beforeLoad(),i)nN.set(this.latestLocation,i);else nN.delete(this.latestLocation);let x=this.latestLocation,v=kZ(x,this.stores.resolvedLocation.get());if(!this.stores.redirect.get())this.emit({type:"onBeforeNavigate",...v});this.emit({type:"onBeforeLoad",...v}),await RB({router:this,sync:a?.sync,forceStaleReload:d.href===x.href,matches:this.stores.pendingMatches.get(),location:x,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,_=null,z=null,k=null;this.batch(()=>{let U=this.stores.pendingMatches.get(),P=U.length,T=this.stores.matches.get();b=P?T.filter((J)=>!this.stores.pendingMatchStores.has(J.id)):null;let G=new Set;for(let J of this.stores.pendingMatchStores.values())if(J.routeId)G.add(J.routeId);let X=new Set;for(let J of this.stores.matchStores.values())if(J.routeId)X.add(J.routeId);if(_=P?T.filter((J)=>!G.has(J.routeId)):null,z=P?U.filter((J)=>!X.has(J.routeId)):null,k=P?U.filter((J)=>X.has(J.routeId)):T,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),P)this.stores.setMatches(U),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter((J)=>J.status!=="error"&&J.status!=="notFound"&&J.status!=="redirected")]),this.clearExpiredCache()});for(let[U,P]of[[_,"onLeave"],[z,"onEnter"],[k,"onStay"]]){if(!U)continue;for(let T of U)this.looseRoutesById[T.routeId].options[P]?.(T)}})})}})}catch(x){if(ni(x)){if(s=x,!(qr??this.isServer))this.navigate({...s.options,replace:!0,ignoreBlocker:!0})}else if(Qa(x))l=x;let v=s?s.status:l?404:this.stores.matches.get().some((b)=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(v),this.stores.redirect.set(s)})}if(this.latestLoadPromise===c)this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0;g()})}),this.latestLoadPromise=c,await c;while(this.latestLoadPromise&&c!==this.latestLoadPromise)await this.latestLoadPromise;let m=void 0;if(this.hasNotFoundMatch())m=404;else if(this.stores.matches.get().some((g)=>g.status==="error"))m=500;if(m!==void 0)this.stores.statusCode.set(m)},this.startViewTransition=(a)=>{let i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition==="function"){let s;if(typeof i==="object"&&this.isViewTransitionTypesSupported){let l=this.latestLocation,c=this.stores.resolvedLocation.get(),d=typeof i.types==="function"?i.types(kZ(l,c)):i.types;if(d===!1){a();return}s={update:a,types:d}}else s=a;document.startViewTransition(s)}else a()},this.updateMatch=(a,i)=>{this.startTransition(()=>{let s=this.stores.pendingMatchStores.get(a);if(s){s.set(i);return}let l=this.stores.matchStores.get(a);if(l){l.set(i);return}let c=this.stores.cachedMatchStores.get(a);if(c){let d=i(c.get());if(d.status==="redirected"){if(this.stores.cachedMatchStores.delete(a))this.stores.cachedIds.set((m)=>m.filter((g)=>g!==a))}else c.set(d)}})},this.getMatch=(a)=>this.stores.cachedMatchStores.get(a)?.get()??this.stores.pendingMatchStores.get(a)?.get()??this.stores.matchStores.get(a)?.get(),this.invalidate=(a)=>{let i=(s)=>{if(a?.filter?.(s)??!0)return{...s,invalid:!0,...a?.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0};return s};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.getParsedLocationHref=(a)=>a.publicHref||"/",this.resolveRedirect=(a)=>{let i=a.headers.get("Location");if(!a.options.href||a.options._builtLocation){let s=a.options._builtLocation??this.buildLocation(a.options),l=this.getParsedLocationHref(s);a.options.href=l,a.headers.set("Location",l)}else if(i)try{let s=new URL(i);if(this.origin&&s.origin===this.origin){let l=s.pathname+s.search+s.hash;a.options.href=l,a.headers.set("Location",l)}}catch{}if(a.options.href&&!a.options._builtLocation&&Fu(a.options.href,this.protocolAllowlist))throw Error("Redirect blocked: unsafe protocol");if(!a.headers.get("Location"))a.headers.set("Location",a.options.href);return a},this.clearCache=(a)=>{let i=a?.filter;if(i!==void 0)this.stores.setCached(this.stores.cachedMatches.get().filter((s)=>!i(s)));else this.stores.setCached([])},this.clearExpiredCache=()=>{let a=Date.now(),i=(s)=>{let l=this.looseRoutesById[s.routeId];if(!l.options.loader)return!0;let c=(s.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??300000;if(s.status==="error")return!0;return a-s.updatedAt>=c};this.clearCache({filter:i})},this.loadRouteChunk=QL,this.preloadRoute=async(a)=>{let i=a._builtLocation??this.buildLocation(a),s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:a}),l=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...l,...this.stores.cachedIds.get()]),d=s.filter((m)=>!c.has(m.id));if(d.length){let m=this.stores.cachedMatches.get();this.stores.setCached([...m,...d])}try{return s=await RB({router:this,matches:s,location:i,preload:!0,updateMatch:(m,g)=>{if(l.has(m))s=s.map((x)=>x.id===m?g(x):x);else this.updateMatch(m,g)}}),s}catch(m){if(ni(m)){if(m.options.reloadDocument)return;return await this.preloadRoute({...m.options,_fromLocation:i})}if(!Qa(m))console.error(m);return}},this.matchRoute=(a,i)=>{let s={...a,to:a.to?this.resolvePathWithBase(a.from||"",a.to):void 0,params:a.params||{},leaveParams:!0},l=this.buildLocation(s);if(i?.pending&&this.stores.status.get()!=="pending")return!1;let c=(i?.pending===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=MX(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);if(!d)return!1;if(a.params){if(!oc(d.rawParams,a.params,{partial:!0}))return!1}if(i?.includeSearch??!0)return oc(c.search,l.search,{partial:!0})?d.rawParams:!1;return d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some((a)=>a.status==="notFound"||a.globalNotFound),this.getStoreConfig=r,this.update({defaultPreloadDelay:50,defaultPendingMs:1000,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??_B,parseSearch:e.parseSearch??yB,protocolAllowlist:e.protocolAllowlist??QO}),typeof document<"u")self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:r,processedTree:a}){this.routesById=e,this.routesByPath=r,this.processedTree=a;let i=this.options.notFoundRoute;if(i)i.init({originalIndex:99999999999}),this.routesById[i.id]=i}getRouteBranch(e){let r=this.routeBranchCache.get(e);if(!r)r=xB(e),this.routeBranchCache.set(e,r);return r}get looseRoutesById(){return this.routesById}getParentContext(e){return!e?.id?this.options.context??void 0:e.context??this.options.context??void 0}matchRoutesInternal(e,r){let a=this.getMatchedRoutes(e.pathname),{foundRoute:i,routeParams:s}=a,{matchedRoutes:l}=a,c=!1;if(i?i.path!=="/"&&s["**"]:Rs(e.pathname))if(this.options.notFoundRoute)l=[...l,this.options.notFoundRoute];else c=!0;let d=c?B_e(this.options.notFoundMode,l):void 0,m=Array(l.length),g=new Map;for(let x of this.stores.matchStores.values())if(x.routeId)g.set(x.routeId,x.get());for(let x=0;x<l.length;x++){let v=l[x],b=m[x-1],_,z,k;{let Ye=b?.search??e.search,Se=b?._strictSearch??void 0;try{let He=lN(v.options.validateSearch,{...Ye})??void 0;_={...Ye,...He},z={...Se,...He},k=void 0}catch(He){let dt=He;if(!(He instanceof JL))dt=new JL(He.message,{cause:He});if(r?.throwOnError)throw dt;_=Ye,z={},k=dt}}let U=v.options.loaderDeps?.({search:_})??"",P=U?JSON.stringify(U):"",{interpolatedPath:T,usedParams:G}=QR({path:v.fullPath,params:s,decoder:this.pathParamsDecoder,server:this.isServer}),X=v.id+T+P,J=this.getMatch(X),ee=g.get(v.id),re=J?._strictParams??G,oe=void 0;if(!J)try{HX(v,re)}catch(Ye){if(Qa(Ye)||ni(Ye))oe=Ye;else oe=new VX(Ye.message,{cause:Ye});if(r?.throwOnError)throw oe}Object.assign(s,re);let ie=ee?"stay":"enter",ye;if(J)ye={...J,cause:ie,params:ee?.params??s,_strictParams:re,search:ee?vM(ee.search,_):vM(J.search,_),_strictSearch:z};else{let Ye=v.options.loader||v.options.beforeLoad||v.lazyFn||PB(v)?"pending":"success";ye={id:X,ssr:qr??this.isServer?void 0:v.options.ssr,index:x,routeId:v.id,params:ee?.params??s,_strictParams:re,pathname:T,updatedAt:Date.now(),search:ee?vM(ee.search,_):_,_strictSearch:z,searchError:void 0,status:Ye,isFetching:!1,error:void 0,paramsError:oe,__routeContext:void 0,_nonReactive:{loadPromise:au()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ie,loaderDeps:ee?Is(ee.loaderDeps,U):U,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}if(!r?.preload)ye.globalNotFound=d===v.id;ye.searchError=k;let We=this.getParentContext(b);ye.context={...We,...ye.__routeContext,...ye.__beforeLoadContext},m[x]=ye}for(let x=0;x<m.length;x++){let v=m[x],b=this.looseRoutesById[v.routeId],_=this.getMatch(v.id),z=g.get(v.routeId);if(v.params=z?vM(z.params,s):s,!_){let k=m[x-1],U=this.getParentContext(k);if(b.options.context){let P={deps:v.loaderDeps,params:v.params,context:U??{},location:e,navigate:(T)=>this.navigate({...T,_fromLocation:e}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:m,routeId:b.id};v.__routeContext=b.options.context(P)??void 0}v.context={...U,...v.__routeContext,...v.__beforeLoadContext}}}return m}matchRoutesLightweight(e){let{matchedRoutes:r,routeParams:a}=this.getMatchedRoutes(e.pathname),i=MM(r),s={...e.search};for(let g of r)try{Object.assign(s,lN(g.options.validateSearch,s))}catch{}let l=MM(this.stores.matchesId.get()),c=l&&this.stores.matchStores.get(l)?.get(),d=c&&c.routeId===i.id&&c.pathname===e.pathname,m;if(d)m=c.params;else{let g=Object.assign(Object.create(null),a);for(let x of r)try{HX(x,g)}catch{}m=g}return{matchedRoutes:r,fullPath:i.fullPath,search:s,params:m}}},JL=class extends Error{},VX=class extends Error{};function WX(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function lN(e,r){if(e==null)return{};if("~standard"in e){let a=e["~standard"].validate(r);if(a instanceof Promise)throw new JL("Async validation not supported");if(a.issues)throw new JL(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}if("parse"in e)return e.parse(r);if(typeof e==="function")return e(r);return{}}function KX({pathname:e,routesById:r,processedTree:a}){let i=Object.create(null),s=Rs(e),l=void 0,c=xX(s,a,!0);if(c)l=c.route,Object.assign(i,c.rawParams);return{matchedRoutes:c?.branch||[r.__root__],routeParams:i,foundRoute:l}}function F_e({search:e,dest:r,destRoutes:a,_includeValidateSearch:i}){return j_e(a)(e,r,i??!1)}function j_e(e){let r={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let s of e){if("search"in s.options){if(s.options.search?.middlewares)r.middlewares.push(...s.options.search.middlewares)}else if(s.options.preSearchFilters||s.options.postSearchFilters){let l=({search:c,next:d})=>{let m=c;if("preSearchFilters"in s.options&&s.options.preSearchFilters)m=s.options.preSearchFilters.reduce((x,v)=>v(x),c);let g=d(m);if("postSearchFilters"in s.options&&s.options.postSearchFilters)return s.options.postSearchFilters.reduce((x,v)=>v(x),g);return g};r.middlewares.push(l)}if(s.options.validateSearch){let l=({search:c,next:d})=>{let m=d(c);if(!r._includeValidateSearch)return m;try{return{...m,...lN(s.options.validateSearch,m)??void 0}}catch{return m}};r.middlewares.push(l)}}let a=({search:s})=>{let l=r.dest;if(!l.search)return{};if(l.search===!0)return s;return rs(l.search,s)};r.middlewares.push(a);let i=(s,l,c)=>{if(s>=c.length)return l;let d=c[s];return d({search:l,next:(g)=>i(s+1,g,c)})};return function(l,c,d){return r.dest=c,r._includeValidateSearch=d,i(0,l,r.middlewares)}}function B_e(e,r){if(e!=="root")for(let a=r.length-1;a>=0;a--){let i=r[a];if(i.children)return i.id}return os}function HX(e,r){let a=e.options.params?.parse??e.options.parseParams;if(a){let i=a(r);if(i===!1)throw Error("Route params.parse returned false for a matched route");Object.assign(r,i)}}var EB="Error preloading route! ☝️";var cN=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=(r)=>{this.originalIndex=r.originalIndex;let a=this.options,i=!a?.path&&!a?.id;if(this.parentRoute=this.options.getParentRoute?.(),i)this._path=os;else if(!this.parentRoute)ai();let s=i?os:a?.path;if(s&&s!=="/")s=XR(s);let l=a?.id||s,c=i?os:SM([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);if(s==="__root__")s="/";if(c!=="__root__")c=SM(["/",c]);let d=c==="__root__"?"/":SM([this.parentRoute.fullPath,s]);this._path=s,this._id=c,this._fullPath=d,this._to=Rs(d)},this.addChildren=(r)=>this._addFileChildren(r),this._addFileChildren=(r)=>{if(Array.isArray(r))this.children=r;if(typeof r==="object"&&r!==null)this.children=Object.values(r);return this},this._addFileTypes=()=>this,this.updateLoader=(r)=>(Object.assign(this.options,r),this),this.update=(r)=>(Object.assign(this.options,r),this),this.lazy=(r)=>(this.lazyFn=r,this),this.redirect=(r)=>sl({from:this.fullPath,...r}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}};var DB=class extends cN{constructor(e){super(e)}};S();var Ja=((e)=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ja||{});function XX({update:e,notify:r,unwatched:a}){return{link:i,unlink:s,propagate:l,checkDirty:c,shallowPropagate:d};function i(g,x,v){let b=x.depsTail;if(b!==void 0&&b.dep===g)return;let _=b!==void 0?b.nextDep:x.deps;if(_!==void 0&&_.dep===g){_.version=v,x.depsTail=_;return}let z=g.subsTail;if(z!==void 0&&z.version===v&&z.sub===x)return;let k=x.depsTail=g.subsTail={version:v,dep:g,sub:x,prevDep:b,nextDep:_,prevSub:z,nextSub:void 0};if(_!==void 0)_.prevDep=k;if(b!==void 0)b.nextDep=k;else x.deps=k;if(z!==void 0)z.nextSub=k;else g.subs=k}function s(g,x=g.sub){let{dep:v,prevDep:b,nextDep:_,nextSub:z,prevSub:k}=g;if(_!==void 0)_.prevDep=b;else x.depsTail=b;if(b!==void 0)b.nextDep=_;else x.deps=_;if(z!==void 0)z.prevSub=k;else v.subsTail=k;if(k!==void 0)k.nextSub=z;else if((v.subs=z)===void 0)a(v);return _}function l(g){let x=g.nextSub,v;e:do{let b=g.sub,_=b.flags;if(!(_&60))b.flags=_|32;else if(!(_&12))_=0;else if(!(_&4))b.flags=_&-9|32;else if(!(_&48)&&m(g,b))b.flags=_|40,_&=1;else _=0;if(_&2)r(b);if(_&1){let z=b.subs;if(z!==void 0){let k=(g=z).nextSub;if(k!==void 0)v={value:x,prev:v},x=k;continue}}if((g=x)!==void 0){x=g.nextSub;continue}while(v!==void 0)if(g=v.value,v=v.prev,g!==void 0){x=g.nextSub;continue e}break}while(!0)}function c(g,x){let v,b=0,_=!1;e:do{let z=g.dep,k=z.flags;if(x.flags&16)_=!0;else if((k&17)===17){if(e(z)){let U=z.subs;if(U.nextSub!==void 0)d(U);_=!0}}else if((k&33)===33){if(g.nextSub!==void 0||g.prevSub!==void 0)v={value:g,prev:v};g=z.deps,x=z,++b;continue}if(!_){let U=g.nextDep;if(U!==void 0){g=U;continue}}while(b--){let U=x.subs,P=U.nextSub!==void 0;if(P)g=v.value,v=v.prev;else g=U;if(_){if(e(x)){if(P)d(U);x=g.sub;continue}_=!1}else x.flags&=-33;x=g.sub;let T=g.nextDep;if(T!==void 0){g=T;continue e}}return _}while(!0)}function d(g){do{let x=g.sub,v=x.flags;if((v&48)===32){if(x.flags=v|16,(v&6)===2)r(x)}}while((g=g.nextSub)!==void 0)}function m(g,x){let v=x.depsTail;while(v!==void 0){if(v===g)return!0;v=v.prevDep}return!1}}function $X(e,r,a){let i=typeof e==="object",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:r)?.bind(s),complete:(i?e.complete:a)?.bind(s)}}var OB=[],dN=0,{link:QX,unlink:q_e,propagate:H_e,checkDirty:eQ,shallowPropagate:JX}=XX({update(e){return e._update()},notify(e){OB[NB++]=e,e.flags&=~Ja.Watching},unwatched(e){if(e.depsTail!==void 0)e.depsTail=void 0,e.flags=Ja.Mutable|Ja.Dirty,ZN(e)}}),uN=0,NB=0,Bu,FB=0;function eP(e){try{++FB,e()}finally{if(!--FB)jB()}}function ZN(e){let r=e.depsTail,a=r!==void 0?r.nextDep:e.deps;while(a!==void 0)a=q_e(a,e)}function jB(){if(FB>0)return;while(uN<NB){let e=OB[uN];OB[uN++]=void 0,e.notify()}uN=0,NB=0}function pN(e,r){let a=typeof e==="function",i=e,s={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?Ja.None:Ja.Mutable,get(){if(Bu!==void 0)QX(s,Bu,dN);return s._snapshot},subscribe(l){let c=$X(l),d={current:!1},m=V_e(()=>{if(s.get(),!d.current)d.current=!0;else c.next?.(s._snapshot)});return{unsubscribe:()=>{m.stop()}}},_update(l){let c=Bu,d=r?.compare??Object.is;if(a)Bu=s,++dN,s.depsTail=void 0;else if(l===void 0)return!1;if(a)s.flags=Ja.Mutable|Ja.RecursedCheck;try{let m=s._snapshot,g=typeof l==="function"?l(m):l===void 0&&a?i(m):l;if(m===void 0||!d(m,g))return s._snapshot=g,!0;return!1}finally{if(Bu=c,a)s.flags&=~Ja.RecursedCheck;ZN(s)}}};if(a)s.flags=Ja.Mutable|Ja.Dirty,s.get=function(){let l=s.flags;if(l&Ja.Dirty||l&Ja.Pending&&eQ(s.deps,s)){if(s._update()){let c=s.subs;if(c!==void 0)JX(c)}}else if(l&Ja.Pending)s.flags=l&~Ja.Pending;if(Bu!==void 0)QX(s,Bu,dN);return s._snapshot};else s.set=function(l){if(s._update(l)){let c=s.subs;if(c!==void 0)H_e(c),JX(c),jB()}};return s}function V_e(e){let r=()=>{let i=Bu;Bu=a,++dN,a.depsTail=void 0,a.flags=Ja.Watching|Ja.RecursedCheck;try{return e()}finally{Bu=i,a.flags&=~Ja.RecursedCheck,ZN(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ja.Watching|Ja.RecursedCheck,notify(){let i=this.flags;if(i&Ja.Dirty||i&Ja.Pending&&eQ(this.deps,this))r();else this.flags=Ja.Watching},stop(){this.flags=Ja.None,this.depsTail=void 0,ZN(this)}};return r(),a}S();S();var abe=tQ();function nbe(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var ibe=typeof Object.is==="function"?Object.is:nbe,fbe=abe.useSyncExternalStore,sbe=y,lbe=h,cbe=N,ube=di;var Rc=function(e,r,a,i,s){var l=sbe(null);if(l.current===null){var c={hasValue:!1,value:null};l.current=c}else c=l.current;l=cbe(function(){function m(_){if(!g){if(g=!0,x=_,_=i(_),s!==void 0&&c.hasValue){var z=c.value;if(s(z,_))return v=z}return v=_}if(z=v,ibe(x,_))return z;var k=i(_);if(s!==void 0&&s(z,k))return x=_,z;return x=_,v=k}var g=!1,x,v,b=a===void 0?null:a;return[function(){return m(r())},b===null?void 0:function(){return m(b())}]},[r,a,i,s]);var d=fbe(e,l[0],l[1]);return lbe(function(){c.hasValue=!0,c.value=d},[d]),ube(d),d};function dbe(e,r){return e===r}function wn(e,r,a=dbe){let i=D((c)=>{if(!e)return()=>{};let{unsubscribe:d}=e.subscribe(c);return d},[e]),s=D(()=>e?.get(),[e]);return Rc(i,s,s,r,a)}var Zbe={get:()=>{return},subscribe:()=>({unsubscribe:()=>{}})};function zi(e){let r=Ha(),a=ft(e.from?iX:X8),i=e.from??a,s=i?e.from?r.stores.getRouteMatchStore(i):r.stores.matchStores.get(i):void 0;if(qr??r.isServer){let c=s?.get();if((e.shouldThrow??!0)&&!c)ai();if(c===void 0)return;return e.select?e.select(c):c}let l=y(void 0);return wn(s??Zbe,(c)=>{if((e.shouldThrow??!0)&&!c)ai();if(c===void 0)return;let d=e.select?e.select(c):c;if(e.structuralSharing??r.options.defaultStructuralSharing){let m=Is(l.current,d);return l.current=m,m}return d})}function ll(e){return zi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:(r)=>{let a=e.strict===!1?r.params:r._strictParams;return e.select?e.select(a):a}})}S();var $8=typeof window<"u"?$e:h;function mN(e){let r=y({value:e,prev:null}),a=r.current.value;if(e!==a)r.current={value:e,prev:a};return r.current.prev}function rQ(e,r,a={},i={}){h(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!=="function")return;let s=new IntersectionObserver(([l])=>{r(l)},a);return s.observe(e.current),()=>{s.disconnect()}},[r,a,i.disabled,e])}function oQ(e){let r=y(null);return gn(e,()=>r.current,[]),r}S();function Re(e){let r=Ha();return D((a)=>r.navigate({...a,from:a.from??e?.from}),[e?.from,r])}S();function aQ({children:e,fallback:r=null}){return UB()?t(Cn,{children:e}):t(Cn,{children:r})}function UB(){return Yn(pbe,()=>!0,()=>!1)}function pbe(){return()=>{}}S();function iQ(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iQ)}catch(e){console.error(e)}}S();function nQ(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function CM(){}var tP={d:{f:CM,r:function(){throw Error(nQ(522))},D:CM,C:CM,L:CM,m:CM,X:CM,S:CM,M:CM},p:0,findDOMNode:null},mbe=Symbol.for("react.portal");function hbe(e,r,a){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mbe,key:i==null?null:""+i,children:e,containerInfo:r,implementation:a}}var YB=Wi;var qB=tP,Ji=function(e,r){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(nQ(299));return hbe(e,r,null,a)},rn=function(e){var r=YB.T,a=tP.p;try{if(YB.T=null,tP.p=2,e)return e()}finally{YB.T=r,tP.p=a,tP.d.f()}};iQ();function dQ(e,r){let a=Ha(),i=oQ(r),s=qr??a.isServer,{activeProps:l,inactiveProps:c,activeOptions:d,to:m,preload:g,preloadDelay:x,preloadIntentProximity:v,hashScrollIntoView:b,replace:_,startTransition:z,resetScroll:k,viewTransition:U,children:P,target:T,disabled:G,style:X,className:J,onClick:ee,onBlur:re,onFocus:oe,onMouseEnter:ie,onMouseLeave:ye,onTouchStart:We,ignoreBlocker:Ye,params:Se,search:He,hash:dt,state:Ge,mask:yt,reloadDocument:Ft,unsafeRelative:Bt,from:de,_fromLocation:_t,...Wt}=e;if(s){let Ke=uQ(m);if(typeof m==="string"&&!Ke&&m.indexOf(":")>-1)try{if(new URL(m),Fu(m,a.protocolAllowlist))return{...Wt,ref:i,href:void 0,...P&&{children:P},...T&&{target:T},...G&&{disabled:G},...X&&{style:X},...J&&{className:J}};return{...Wt,ref:i,href:m,...P&&{children:P},...T&&{target:T},...G&&{disabled:G},...X&&{style:X},...J&&{className:J}}}catch{}let Et=a.buildLocation({...e,from:e.from}),mr=cQ(Et.maskedLocation?Et.maskedLocation.publicHref:Et.publicHref,Et.maskedLocation?Et.maskedLocation.external:Et.external,a.history,G),Br=(()=>{if(mr?.external){if(Fu(mr.href,a.protocolAllowlist))return;return mr.href}if(Ke)return;if(typeof m==="string"&&m.indexOf(":")>-1)try{if(new URL(m),Fu(m,a.protocolAllowlist))return;return m}catch{}})(),$r=(()=>{if(Br)return!1;let je=a.stores.location.get(),Zt=d?.exact??!1;if(Zt){if(!tN(je.pathname,Et.pathname,a.basepath))return!1}else{let zt=zM(je.pathname,a.basepath),jt=zM(Et.pathname,a.basepath);if(!(zt.startsWith(jt)&&(zt.length===jt.length||zt[jt.length]==="/")))return!1}if(d?.includeSearch??!0){if(je.search!==Et.search){let zt=!je.search||typeof je.search==="object"&&!xM(je.search),jt=!Et.search||typeof Et.search==="object"&&!xM(Et.search);if(!(zt&&jt)){if(!oc(je.search,Et.search,{partial:!Zt,ignoreUndefined:!d?.explicitUndefined}))return!1}}}if(d?.includeHash)return!1;return!0})();if(Br)return{...Wt,ref:i,href:Br,...P&&{children:P},...T&&{target:T},...G&&{disabled:G},...X&&{style:X},...J&&{className:J}};let Vo=$r?rs(l,{})??fQ:ek,qa=$r?ek:rs(c,{})??ek,Ee=(()=>{let je=X,Zt=Vo.style,zt=qa.style;if(!je&&!Zt&&!zt)return;if(je&&!Zt&&!zt)return je;if(!je&&Zt&&!zt)return Zt;if(!je&&!Zt&&zt)return zt;return{...je,...Zt,...zt}})(),Oe=(()=>{let je=J,Zt=Vo.className,zt=qa.className;if(!je&&!Zt&&!zt)return"";let jt="";if(je)jt=je;if(Zt)jt=jt?`${jt} ${Zt}`:Zt;if(zt)jt=jt?`${jt} ${zt}`:zt;return jt})();return{...Wt,...Vo,...qa,href:mr?.href,ref:i,disabled:!!G,target:T,...Ee&&{style:Ee},...Oe&&{className:Oe},...G&&sQ,...$r&&lQ}}let Fe=UB(),fr=N(()=>e,[a,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),sr=wn(a.stores.location,(Ke)=>Ke,(Ke,Et)=>Ke.href===Et.href),Jt=N(()=>{let Ke={_fromLocation:sr,...fr};return a.buildLocation(Ke)},[a,sr,fr]),Fr=Jt.maskedLocation?Jt.maskedLocation.publicHref:Jt.publicHref,Kt=Jt.maskedLocation?Jt.maskedLocation.external:Jt.external,Xt=N(()=>cQ(Fr,Kt,a.history,G),[G,Kt,Fr,a.history]),Ir=N(()=>{if(Xt?.external){if(Fu(Xt.href,a.protocolAllowlist))return;return Xt.href}if(uQ(m))return;if(typeof m!=="string"||m.indexOf(":")===-1)return;try{if(new URL(m),Fu(m,a.protocolAllowlist))return;return m}catch{}},[m,Xt,a.protocolAllowlist]),wr=N(()=>{if(Ir)return!1;if(d?.exact){if(!tN(sr.pathname,Jt.pathname,a.basepath))return!1}else{let Ke=zM(sr.pathname,a.basepath),Et=zM(Jt.pathname,a.basepath);if(!(Ke.startsWith(Et)&&(Ke.length===Et.length||Ke[Et.length]==="/")))return!1}if(d?.includeSearch??!0){if(!oc(sr.search,Jt.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined}))return!1}if(d?.includeHash)return Fe&&sr.hash===Jt.hash;return!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,sr,Ir,Fe,Jt.hash,Jt.pathname,Jt.search,a.basepath]),Tr=wr?rs(l,{})??fQ:ek,Zr=wr?ek:rs(c,{})??ek,co=[J,Tr.className,Zr.className].filter(Boolean).join(" "),io=(X||Tr.style||Zr.style)&&{...X,...Tr.style,...Zr.style},[xa,cr]=u(!1),uo=y(!1),lo=e.reloadDocument||Ir?!1:g??a.options.defaultPreload,No=x??a.options.defaultPreloadDelay??0,pn=D(()=>{a.preloadRoute({...fr,_builtLocation:Jt}).catch((Ke)=>{console.warn(Ke),console.warn(EB)})},[a,fr,Jt]);rQ(i,D((Ke)=>{if(Ke?.isIntersecting)pn()},[pn]),Mbe,{disabled:!!G||lo!=="viewport"}),h(()=>{if(uo.current)return;if(!G&&lo==="render")pn(),uo.current=!0},[G,pn,lo]);let Ho=(Ke)=>{let Et=Ke.currentTarget.getAttribute("target"),mr=T!==void 0?T:Et;if(!G&&!xbe(Ke)&&!Ke.defaultPrevented&&(!mr||mr==="_self")&&Ke.button===0){Ke.preventDefault(),rn(()=>{cr(!0)});let Br=a.subscribe("onResolved",()=>{Br(),cr(!1)});a.navigate({...fr,replace:_,resetScroll:k,hashScrollIntoView:b,startTransition:z,viewTransition:U,ignoreBlocker:Ye})}};if(Ir)return{...Wt,ref:i,href:Ir,...P&&{children:P},...T&&{target:T},...G&&{disabled:G},...X&&{style:X},...J&&{className:J},...ee&&{onClick:ee},...re&&{onBlur:re},...oe&&{onFocus:oe},...ie&&{onMouseEnter:ie},...ye&&{onMouseLeave:ye},...We&&{onTouchStart:We}};let Fn=(Ke)=>{if(G||lo!=="intent")return;if(!No){pn();return}let Et=Ke.currentTarget;if(rP.has(Et))return;let mr=setTimeout(()=>{rP.delete(Et),pn()},No);rP.set(Et,mr)},mn=(Ke)=>{if(G||lo!=="intent")return;pn()},Hi=(Ke)=>{if(G||!lo||!No)return;let Et=Ke.currentTarget,mr=rP.get(Et);if(mr)clearTimeout(mr),rP.delete(Et)};return{...Wt,...Tr,...Zr,href:Xt?.href,ref:i,onClick:tk([ee,Ho]),onBlur:tk([re,Hi]),onFocus:tk([oe,Fn]),onMouseEnter:tk([ie,Fn]),onMouseLeave:tk([ye,Hi]),onTouchStart:tk([We,mn]),disabled:!!G,target:T,...io&&{style:io},...co&&{className:co},...G&&sQ,...wr&&lQ,...Fe&&xa&&gbe}}var ek={},fQ={className:"active"},sQ={role:"link","aria-disabled":!0},lQ={"data-status":"active","aria-current":"page"},gbe={"data-transitioning":"transitioning"},rP=new WeakMap,Mbe={rootMargin:"100px"},tk=(e)=>(r)=>{for(let a of e){if(!a)continue;if(r.defaultPrevented)return;a(r)}};function cQ(e,r,a,i){if(i)return;if(r)return{href:e,external:!0};return{href:a.createHref(e)||"/",external:!1}}function uQ(e){if(typeof e!=="string")return!1;let r=e.charCodeAt(0);if(r===47)return e.charCodeAt(1)!==47;return r===46}var Un=F((e,r)=>{let{_asChild:a,...i}=e,{type:s,...l}=dQ(i,r),c=typeof i.children==="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!a){let{disabled:d,...m}=l;return j("a",m,c)}return j(a,l,c)});function xbe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oP(e){return zi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:(r)=>e.select?e.select(r.loaderData):r.loaderData})}function aP(e){let{select:r,...a}=e;return zi({...a,select:(i)=>r?r(i.loaderDeps):i.loaderDeps})}function nP(e){return zi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:(r)=>e.select?e.select(r.search):r.search})}function iP(e){return zi({...e,select:(r)=>e.select?e.select(r.context):r.context})}S();var ZQ=class extends cN{constructor(e){super(e);this.useMatch=(r)=>zi({select:r?.select,from:this.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=(r)=>iP({...r,from:this.id}),this.useSearch=(r)=>nP({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useParams=(r)=>ll({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useLoaderDeps=(r)=>aP({...r,from:this.id}),this.useLoaderData=(r)=>oP({...r,from:this.id}),this.useNavigate=()=>Re({from:this.fullPath}),this.Link=F((r,a)=>t(Un,{ref:a,from:this.fullPath,...r}))}};function HB(e){return new ZQ(e)}function VB(){return(e)=>mQ(e)}var pQ=class extends DB{constructor(e){super(e);this.useMatch=(r)=>zi({select:r?.select,from:this.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=(r)=>iP({...r,from:this.id}),this.useSearch=(r)=>nP({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useParams=(r)=>ll({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useLoaderDeps=(r)=>aP({...r,from:this.id}),this.useLoaderData=(r)=>oP({...r,from:this.id}),this.useNavigate=()=>Re({from:this.fullPath}),this.Link=F((r,a)=>t(Un,{ref:a,from:this.fullPath,...r}))}};function mQ(e){return new pQ(e)}function Hr(e){return new hQ(e,{silent:!0}).createRoute}var hQ=class{constructor(e,r){this.path=e,this.createRoute=(a)=>{let i=HB(a);return i.isRoot=!1,i},this.silent=r?.silent}};var WB=class{constructor(e){this.useMatch=(r)=>zi({select:r?.select,from:this.options.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=(r)=>iP({...r,from:this.options.id}),this.useSearch=(r)=>nP({select:r?.select,structuralSharing:r?.structuralSharing,from:this.options.id}),this.useParams=(r)=>ll({select:r?.select,structuralSharing:r?.structuralSharing,from:this.options.id}),this.useLoaderDeps=(r)=>aP({...r,from:this.options.id}),this.useLoaderData=(r)=>oP({...r,from:this.options.id}),this.useNavigate=()=>Re({from:Ha().routesById[this.options.id].fullPath}),this.options=e}};function ze(e){if(typeof e==="object")return new WB(e);return(r)=>new WB({id:e,...r})}S();function ez(e){let r=e.errorComponent??tz;return t(vbe,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:a,reset:i})=>{if(a)return j(r,{error:a,reset:i});return e.children}})}var vbe=class extends Ns{constructor(...e){super(...e);this.state={error:null}}static getDerivedStateFromProps(e,r){let a=e.getResetKey();if(r.error&&r.resetKey!==a)return{resetKey:a,error:null};return{resetKey:a}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,r){if(this.props.onCatch)this.props.onCatch(e,r)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function tz({error:e}){let[r,a]=u(!1);return o("div",{style:{padding:".5rem",maxWidth:"100%"},children:[o("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[t("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),t("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a((i)=>!i),children:r?"Hide Error":"Show Error"})]}),t("div",{style:{height:".25rem"}}),r?t("div",{children:t("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?t("code",{children:e.message}):null})}):null]})}S();function gQ(e){let r=Ha();if(qr??r.isServer){let i=`not-found-${r.stores.location.get().pathname}-${r.stores.status.get()}`;return t(ez,{getResetKey:()=>i,onCatch:(s,l)=>{if(Qa(s))e.onCatch?.(s,l);else throw s},errorComponent:({error:s})=>{if(Qa(s))return e.fallback?.(s);else throw s},children:e.children})}let a=`not-found-${wn(r.stores.location,(i)=>i.pathname)}-${wn(r.stores.status,(i)=>i)}`;return t(ez,{getResetKey:()=>a,onCatch:(i,s)=>{if(Qa(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(Qa(i))return e.fallback?.(i);else throw i},children:e.children})}function MQ(){return t("p",{children:"Not Found"})}S();function IM(e){return t(L,{children:e.children})}S();function hN(e,r,a){if(!r.options.notFoundComponent){if(e.options.defaultNotFoundComponent)return t(e.options.defaultNotFoundComponent,{...a});return t(MQ,{})}return t(r.options.notFoundComponent,{...a})}function xQ({children:e}){let r=Ha();if(!(qr??r.isServer))return null;return t("script",{nonce:r.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+";document.currentScript.remove()"}})}function vQ(e){return null}function yQ(){let e=vQ(Ha());if(!e)return null;return t(xQ,{children:e})}S();var gN=Bn(function({matchId:r}){let a=Ha();if(qr??a.isServer){let c=a.stores.matchStores.get(r)?.get();if(!c)ai();let d=c.routeId,m=a.routesById[d].parentRoute?.id;return t(_Q,{router:a,matchId:r,resetKey:a.stores.loadedAt.get(),matchState:{routeId:d,ssr:c.ssr,_displayPending:c._displayPending,parentRouteId:m}})}let i=a.stores.matchStores.get(r);if(!i)ai();let s=wn(a.stores.loadedAt,(c)=>c),l=wn(i,(c)=>c);return t(_Q,{router:a,matchId:r,resetKey:s,matchState:N(()=>{let c=l.routeId,d=a.routesById[c].parentRoute?.id;return{routeId:c,ssr:l.ssr,_displayPending:l._displayPending,parentRouteId:d}},[l._displayPending,l.routeId,l.ssr,a.routesById])})});function _Q({router:e,matchId:r,resetKey:a,matchState:i}){let s=e.routesById[i.routeId],l=s.options.pendingComponent??e.options.defaultPendingComponent,c=l?t(l,{}):null,d=s.options.errorComponent??e.options.defaultErrorComponent,m=s.options.onCatch??e.options.defaultOnCatch,g=s.isRoot?s.options.notFoundComponent??e.options.notFoundRoute?.options.component:s.options.notFoundComponent,x=i.ssr===!1||i.ssr==="data-only",v=(!s.isRoot||s.options.wrapInSuspense||x)&&(s.options.wrapInSuspense??l??(s.options.errorComponent?.preload||x))?ui:IM,b=d?ez:IM,_=g?gQ:IM;return o(s.isRoot?s.options.shellComponent??IM:IM,{children:[t(X8.Provider,{value:r,children:t(v,{fallback:c,children:t(b,{getResetKey:()=>a,errorComponent:d||tz,onCatch:(z,k)=>{if(Qa(z))throw z.routeId??=i.routeId,z;m?.(z,k)},children:t(_,{fallback:(z)=>{if(z.routeId??=i.routeId,!g||z.routeId&&z.routeId!==i.routeId||!z.routeId&&!s.isRoot)throw z;return j(g,z)},children:x||i._displayPending?t(aQ,{fallback:c,children:t(bQ,{matchId:r})}):t(bQ,{matchId:r})})})})}),i.parentRouteId===os?o(L,{children:[t(ybe,{resetKey:a}),e.options.scrollRestoration&&(qr??e.isServer)?t(yQ,{}):null]}):null]})}function ybe({resetKey:e}){let r=Ha();if(qr??r.isServer)return null;let a=y(void 0);return $8(()=>{let i=r.latestLocation.href;if(a.current===void 0||a.current!==i)r.emit({type:"onRendered",...kZ(r.stores.location.get(),r.stores.resolvedLocation.get())}),a.current=i},[r.latestLocation.state.__TSR_key,e,r]),null}var bQ=Bn(function({matchId:r}){let a=Ha(),i=(x,v)=>a.getMatch(x.id)?._nonReactive[v]??x._nonReactive[v];if(qr??a.isServer){let x=a.stores.matchStores.get(r)?.get();if(!x)ai();let v=x.routeId,b=a.routesById[v],_=(a.routesById[v].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:v,loaderDeps:x.loaderDeps,params:x._strictParams,search:x._strictSearch}),z=_?JSON.stringify(_):void 0,k=b.options.component??a.options.defaultComponent,U=k?t(k,{},z):t(RM,{});if(x._displayPending)throw i(x,"displayPendingPromise");if(x._forcePending)throw i(x,"minPendingPromise");if(x.status==="pending")throw i(x,"loadPromise");if(x.status==="notFound"){if(!Qa(x.error))ai();return hN(a,b,x.error)}if(x.status==="redirected"){if(!ni(x.error))ai();throw i(x,"loadPromise")}if(x.status==="error")return t((b.options.errorComponent??a.options.defaultErrorComponent)||tz,{error:x.error,reset:void 0,info:{componentStack:""}});return U}let s=a.stores.matchStores.get(r);if(!s)ai();let l=wn(s,(x)=>x),c=l.routeId,d=a.routesById[c],m=N(()=>{let x=(a.routesById[c].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:c,loaderDeps:l.loaderDeps,params:l._strictParams,search:l._strictSearch});return x?JSON.stringify(x):void 0},[c,l.loaderDeps,l._strictParams,l._strictSearch,a.options.defaultRemountDeps,a.routesById]),g=N(()=>{let x=d.options.component??a.options.defaultComponent;if(x)return t(x,{},m);return t(RM,{})},[m,d.options.component,a.options.defaultComponent]);if(l._displayPending)throw i(l,"displayPendingPromise");if(l._forcePending)throw i(l,"minPendingPromise");if(l.status==="pending"){let x=d.options.pendingMinMs??a.options.defaultPendingMinMs;if(x){let v=a.getMatch(l.id);if(v&&!v._nonReactive.minPendingPromise){if(!(qr??a.isServer)){let b=au();v._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),v._nonReactive.minPendingPromise=void 0},x)}}}throw i(l,"loadPromise")}if(l.status==="notFound"){if(!Qa(l.error))ai();return hN(a,d,l.error)}if(l.status==="redirected"){if(!ni(l.error))ai();throw i(l,"loadPromise")}if(l.status==="error"){if(qr??a.isServer)return t((d.options.errorComponent??a.options.defaultErrorComponent)||tz,{error:l.error,reset:void 0,info:{componentStack:""}});throw l.error}return g}),RM=Bn(function(){let r=Ha(),a=ft(X8),i,s=!1,l;if(qr??r.isServer){let g=r.stores.matches.get(),x=a?g.findIndex((b)=>b.id===a):-1,v=x>=0?g[x]:void 0;i=v?.routeId,s=v?.globalNotFound??!1,l=x>=0?g[x+1]?.id:void 0}else{let g=a?r.stores.matchStores.get(a):void 0;[i,s]=wn(g,(x)=>[x?.routeId,x?.globalNotFound??!1]),l=wn(r.stores.matchesId,(x)=>x[x.findIndex((v)=>v===a)+1])}let c=i?r.routesById[i]:void 0,d=r.options.defaultPendingComponent?t(r.options.defaultPendingComponent,{}):null;if(s){if(!c)ai();return hN(r,c,void 0)}if(!l)return null;let m=t(gN,{matchId:l});if(i===os)return t(ui,{fallback:d,children:m});return m});var wQ=(e)=>{if(qr??e.isServer)return{createMutableStore:LB,createReadonlyStore:kB,batch:(r)=>r()};return{createMutableStore:pN,createReadonlyStore:pN,batch:eP}};var KB=(e)=>new zQ(e),zQ=class extends AB{constructor(e){super(e,wQ)}};S();function SQ(){let e=Ha(),r=y({router:e,mounted:!1}),[a,i]=u(!1),s=wn(e.stores.isLoading,(v)=>v),l=wn(e.stores.hasPending,(v)=>v),c=mN(s),d=s||a||l,m=mN(d),g=s||l,x=mN(g);return e.startTransition=(v)=>{i(!0),FL(()=>{v(),i(!1)})},h(()=>{let v=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Rs(e.latestLocation.publicHref)!==Rs(b.publicHref))e.commitLocation({...b,replace:!0});return()=>{v()}},[e,e.history]),$8(()=>{if(typeof window<"u"&&e.ssr||r.current.router===e&&r.current.mounted)return;r.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),$8(()=>{if(c&&!s)e.emit({type:"onLoad",...kZ(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,s]),$8(()=>{if(x&&!g)e.emit({type:"onBeforeRouteMount",...kZ(e.stores.location.get(),e.stores.resolvedLocation.get())})},[g,x,e]),$8(()=>{if(m&&!d){let v=kZ(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...v}),eP(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[d,m,e]),null}S();function LQ(){let e=Ha(),r=e.routesById[os].options.pendingComponent??e.options.defaultPendingComponent,a=r?t(r,{}):null,i=o((qr??e.isServer)||typeof document<"u"&&e.ssr?IM:ui,{fallback:a,children:[!(qr??e.isServer)&&t(SQ,{}),t(_be,{})]});return e.options.InnerWrap?t(e.options.InnerWrap,{children:i}):i}function _be(){let e=Ha(),r=qr??e.isServer,a=r?e.stores.firstId.get():wn(e.stores.firstId,(l)=>l),i=r?e.stores.loadedAt.get():wn(e.stores.loadedAt,(l)=>l),s=a?t(gN,{matchId:a}):null;return t(X8.Provider,{value:a,children:e.options.disableGlobalCatchBoundary?s:t(ez,{getResetKey:()=>i,errorComponent:tz,onCatch:void 0,children:s})})}S();function kQ({router:e,children:r,...a}){if(xM(a))e.update({...e.options,...a,context:{...e.options.context,...a.context}});let i=t(GO.Provider,{value:e,children:r});if(e.options.Wrap)return t(e.options.Wrap,{children:i});return i}function GB({router:e,...r}){return t(kQ,{router:e,...r,children:t(LQ,{})})}S();function rz(e){let r=Ha({warn:e?.router===void 0}),a=e?.router||r;if(qr??a.isServer){let s=a.stores.__store.get();return e?.select?e.select(s):s}let i=y(void 0);return wn(a.stores.__store,(s)=>{if(e?.select){if(e.structuralSharing??a.options.defaultStructuralSharing){let l=Is(i.current,e.select(s));return i.current=l,l}return e.select(s)}return s})}S();function Yte(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yte)}catch(e){console.error(e)}}Yu();S();function Yt(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function wbe(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function JP(e){var r=e,a=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(a=r.return),e=r.return;while(e)}return r.tag===3?a:null}function s$(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function l$(e){if(e.tag===31){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function FQ(e){if(JP(e)!==e)throw Error(Yt(188))}function zbe(e){var r=e.alternate;if(!r){if(r=JP(e),r===null)throw Error(Yt(188));return r!==e?null:e}for(var a=e,i=r;;){var s=a.return;if(s===null)break;var l=s.alternate;if(l===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===a)return FQ(s),e;if(l===i)return FQ(s),r;l=l.sibling}throw Error(Yt(188))}if(a.return!==i.return)a=s,i=l;else{for(var c=!1,d=s.child;d;){if(d===a){c=!0,a=s,i=l;break}if(d===i){c=!0,i=s,a=l;break}d=d.sibling}if(!c){for(d=l.child;d;){if(d===a){c=!0,a=l,i=s;break}if(d===i){c=!0,i=l,a=s;break}d=d.sibling}if(!c)throw Error(Yt(189))}}if(a.alternate!==i)throw Error(Yt(190))}if(a.tag!==3)throw Error(Yt(188));return a.stateNode.current===a?e:r}function c$(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e;for(e=e.child;e!==null;){if(r=c$(e),r!==null)return r;e=e.sibling}return null}var fn=Object.assign,Sbe=Symbol.for("react.element"),zN=Symbol.for("react.transitional.element"),hP=Symbol.for("react.portal"),lk=Symbol.for("react.fragment"),u$=Symbol.for("react.strict_mode"),O6=Symbol.for("react.profiler"),d$=Symbol.for("react.consumer"),OZ=Symbol.for("react.context"),AU=Symbol.for("react.forward_ref"),N6=Symbol.for("react.suspense"),F6=Symbol.for("react.suspense_list"),EU=Symbol.for("react.memo"),TM=Symbol.for("react.lazy"),j6=Symbol.for("react.activity"),Lbe=Symbol.for("react.memo_cache_sentinel"),jQ=Symbol.iterator;function cP(e){if(e===null||typeof e!=="object")return null;return e=jQ&&e[jQ]||e["@@iterator"],typeof e==="function"?e:null}var kbe=Symbol.for("react.client.reference");function B6(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===kbe?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case lk:return"Fragment";case O6:return"Profiler";case u$:return"StrictMode";case N6:return"Suspense";case F6:return"SuspenseList";case j6:return"Activity"}if(typeof e==="object")switch(e.$$typeof){case hP:return"Portal";case OZ:return e.displayName||"Context";case d$:return(e._context.displayName||"Context")+".Consumer";case AU:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case EU:return r=e.displayName||null,r!==null?r:B6(e.type)||"Memo";case TM:r=e._payload,e=e._init;try{return B6(e(r))}catch(a){}}return null}var gP=Array.isArray,Yr=Wi,Bo=qB,cz={pending:!1,data:null,method:null,action:null},U6=[],ck=-1;function aZ(e){return{current:e}}function Ei(e){0>ck||(e.current=U6[ck],U6[ck]=null,ck--)}function Va(e,r){ck++,U6[ck]=e.current,e.current=r}var oZ=aZ(null),NP=aZ(null),qM=aZ(null),t5=aZ(null);function r5(e,r){switch(Va(qM,r),Va(NP,e),Va(oZ,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)?(e=e.namespaceURI)?HJ(e):0:0;break;default:if(e=r.tagName,r=r.namespaceURI)r=HJ(r),e=Rte(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ei(oZ),Va(oZ,e)}function kk(){Ei(oZ),Ei(NP),Ei(qM)}function Y6(e){e.memoizedState!==null&&Va(t5,e);var r=oZ.current,a=Rte(r,e.type);r!==a&&(Va(NP,e),Va(oZ,a))}function o5(e){NP.current===e&&(Ei(oZ),Ei(NP)),t5.current===e&&(Ei(t5),GP._currentValue=cz)}var n6,BQ;function nz(e){if(n6===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);n6=r&&r[1]||"",BQ=-1<a.stack.indexOf(`
3
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+n6+e+BQ}var i6=!1;function f6(e,r){if(!e||i6)return"";i6=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(r){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(_){var b=_}Reflect.construct(e,[],v)}else{try{v.call()}catch(_){b=_}e.call(v.prototype)}}else{try{throw Error()}catch(_){b=_}(v=e())&&typeof v.catch==="function"&&v.catch(function(){})}}catch(_){if(_&&b&&typeof _.stack==="string")return[_.stack,b.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=i.DetermineComponentFrameRoot(),c=l[0],d=l[1];if(c&&d){var m=c.split(`
5
- `),g=d.split(`
6
- `);for(s=i=0;i<m.length&&!m[i].includes("DetermineComponentFrameRoot");)i++;for(;s<g.length&&!g[s].includes("DetermineComponentFrameRoot");)s++;if(i===m.length||s===g.length)for(i=m.length-1,s=g.length-1;1<=i&&0<=s&&m[i]!==g[s];)s--;for(;1<=i&&0<=s;i--,s--)if(m[i]!==g[s]){if(i!==1||s!==1)do if(i--,s--,0>s||m[i]!==g[s]){var x=`
7
- `+m[i].replace(" at new "," at ");return e.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",e.displayName)),x}while(1<=i&&0<=s);break}}}finally{i6=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nz(a):""}function Cbe(e,r){switch(e.tag){case 26:case 27:case 5:return nz(e.type);case 16:return nz("Lazy");case 13:return e.child!==r&&r!==null?nz("Suspense Fallback"):nz("Suspense");case 19:return nz("SuspenseList");case 0:case 15:return f6(e.type,!1);case 11:return f6(e.type.render,!1);case 1:return f6(e.type,!0);case 31:return nz("Activity");default:return""}}function UQ(e){try{var r="",a=null;do r+=Cbe(e,a),a=e,e=e.return;while(e);return r}catch(i){return`
8
- Error generating stack: `+i.message+`
9
- `+i.stack}}var q6=Object.prototype.hasOwnProperty,DU=Fs,s6=pl,Ibe=hl,Rbe=ml,Bl=Jn,Pbe=wN,Z$=dl,p$=fl,a5=Os,Tbe=bN,m$=Xi,Abe=void 0,Ebe=void 0,$P=null,Ul=null;function FM(e){if(typeof Abe==="function"&&Ebe(e),Ul&&typeof Ul.setStrictMode==="function")try{Ul.setStrictMode($P,e)}catch(r){}}var Yl=Math.clz32?Math.clz32:Nbe,{log:Dbe,LN2:Obe}=Math;function Nbe(e){return e>>>=0,e===0?32:31-(Dbe(e)/Obe|0)|0}var SN=256,LN=262144,kN=4194304;function iz(e){var r=e&42;if(r!==0)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function I5(e,r,a){var i=e.pendingLanes;if(i===0)return 0;var s=0,l=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=i&134217727;return d!==0?(i=d&~l,i!==0?s=iz(i):(c&=d,c!==0?s=iz(c):a||(a=d&~e,a!==0&&(s=iz(a))))):(d=i&~l,d!==0?s=iz(d):c!==0?s=iz(c):a||(a=i&~e,a!==0&&(s=iz(a)))),s===0?0:r!==0&&r!==s&&(r&l)===0&&(l=s&-s,a=r&-r,l>=a||l===32&&(a&4194048)!==0)?r:s}function ZA(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function Fbe(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function h$(){var e=kN;return kN<<=1,(kN&62914560)===0&&(kN=4194304),e}function l6(e){for(var r=[],a=0;31>a;a++)r.push(e);return r}function R5(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jbe(e,r,a,i,s,l){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:d,expirationTimes:m,hiddenUpdates:g}=e;for(a=c&~a;0<a;){var x=31-Yl(a),v=1<<x;d[x]=0,m[x]=-1;var b=g[x];if(b!==null)for(g[x]=null,x=0;x<b.length;x++){var _=b[x];_!==null&&(_.lane&=-536870913)}a&=~v}i!==0&&g$(e,i,0),l!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=l&~(c&~r))}function g$(e,r,a){e.pendingLanes|=r,e.suspendedLanes&=~r;var i=31-Yl(r);e.entangledLanes|=r,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function M$(e,r){var a=e.entangledLanes|=r;for(e=e.entanglements;a;){var i=31-Yl(a),s=1<<i;s&r|e[i]&r&&(e[i]|=r),a&=~s}}function x$(e,r){var a=r&-r;return a=(a&42)!==0?1:v$(a),(a&(e.suspendedLanes|r))!==0?0:a}function v$(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function OU(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function y$(){var e=Bo.p;if(e!==0)return e;return e=window.event,e===void 0?32:jte(e.type)}function YQ(e,r){var a=Bo.p;try{return Bo.p=e,r()}finally{Bo.p=a}}var t8=Math.random().toString(36).slice(2),Ki="__reactFiber$"+t8,Ws="__reactProps$"+t8,LA="__reactContainer$"+t8,H6="__reactEvents$"+t8,Bbe="__reactListeners$"+t8,Ube="__reactHandles$"+t8,qQ="__reactResources$"+t8,e2="__reactMarker$"+t8;function NU(e){delete e[Ki],delete e[Ws],delete e[H6],delete e[Bbe],delete e[Ube]}function uk(e){var r=e[Ki];if(r)return r;for(var a=e.parentNode;a;){if(r=a[LA]||a[Ki]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(e=XJ(e);e!==null;){if(a=e[Ki])return a;e=XJ(e)}return r}e=a,a=e.parentNode}return null}function Fk(e){if(e=e[Ki]||e[LA]){var r=e.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return e}return null}function MP(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e.stateNode;throw Error(Yt(33))}function yk(e){var r=e[qQ];return r||(r=e[qQ]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ti(e){e[e2]=!0}var _$=new Set,b$={};function _z(e,r){Ck(e,r),Ck(e+"Capture",r)}function Ck(e,r){b$[e]=r;for(e=0;e<r.length;e++)_$.add(r[e])}var Ybe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),HQ={},VQ={};function qbe(e){if(q6.call(VQ,e))return!0;if(q6.call(HQ,e))return!1;if(Ybe.test(e))return VQ[e]=!0;return HQ[e]=!0,!1}function FN(e,r,a){if(qbe(r))if(a===null)e.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(r);return;case"boolean":var i=r.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(r);return}}e.setAttribute(r,""+a)}}function CN(e,r,a){if(a===null)e.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttribute(r,""+a)}}function IZ(e,r,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(r,a,""+i)}}function ic(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function w$(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Hbe(e,r,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,r);if(!e.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get==="function"&&typeof i.set==="function"){var{get:s,set:l}=i;return Object.defineProperty(e,r,{configurable:!0,get:function(){return s.call(this)},set:function(c){a=""+c,l.call(this,c)}}),Object.defineProperty(e,r,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function V6(e){if(!e._valueTracker){var r=w$(e)?"checked":"value";e._valueTracker=Hbe(e,r,""+e[r])}}function z$(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var a=r.getValue(),i="";return e&&(i=w$(e)?e.checked?"true":"false":e.value),e=i,e!==a?(r.setValue(e),!0):!1}function n5(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(r){return e.body}}var Vbe=/[\n"\\]/g;function lc(e){return e.replace(Vbe,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function W6(e,r,a,i,s,l,c,d){if(e.name="",c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"?e.type=c:e.removeAttribute("type"),r!=null)if(c==="number"){if(r===0&&e.value===""||e.value!=r)e.value=""+ic(r)}else e.value!==""+ic(r)&&(e.value=""+ic(r));else c!=="submit"&&c!=="reset"||e.removeAttribute("value");r!=null?K6(e,c,ic(r)):a!=null?K6(e,c,ic(a)):i!=null&&e.removeAttribute("value"),s==null&&l!=null&&(e.defaultChecked=!!l),s!=null&&(e.checked=s&&typeof s!=="function"&&typeof s!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?e.name=""+ic(d):e.removeAttribute("name")}function S$(e,r,a,i,s,l,c,d){if(l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"&&(e.type=l),r!=null||a!=null){if(!(l!=="submit"&&l!=="reset"||r!==void 0&&r!==null)){V6(e);return}a=a!=null?""+ic(a):"",r=r!=null?""+ic(r):a,d||r===e.value||(e.value=r),e.defaultValue=r}i=i!=null?i:s,i=typeof i!=="function"&&typeof i!=="symbol"&&!!i,e.checked=d?e.checked:!!i,e.defaultChecked=!!i,c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"&&(e.name=c),V6(e)}function K6(e,r,a){r==="number"&&n5(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function _k(e,r,a,i){if(e=e.options,r){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=r.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&i&&(e[a].defaultSelected=!0)}else{a=""+ic(a),r=null;for(s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}r!==null||e[s].disabled||(r=e[s])}r!==null&&(r.selected=!0)}}function L$(e,r,a){if(r!=null&&(r=""+ic(r),r!==e.value&&(e.value=r),a==null)){e.defaultValue!==r&&(e.defaultValue=r);return}e.defaultValue=a!=null?""+ic(a):""}function k$(e,r,a,i){if(r==null){if(i!=null){if(a!=null)throw Error(Yt(92));if(gP(i)){if(1<i.length)throw Error(Yt(93));i=i[0]}a=i}a==null&&(a=""),r=a}a=ic(r),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),V6(e)}function Ik(e,r){if(r){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=r;return}}e.textContent=r}var Wbe=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function WQ(e,r,a){var i=r.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?i?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="":i?e.setProperty(r,a):typeof a!=="number"||a===0||Wbe.has(r)?r==="float"?e.cssFloat=a:e[r]=(""+a).trim():e[r]=a+"px"}function C$(e,r,a){if(r!=null&&typeof r!=="object")throw Error(Yt(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||r!=null&&r.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in r)i=r[s],r.hasOwnProperty(s)&&a[s]!==i&&WQ(e,s,i)}else for(var l in r)r.hasOwnProperty(l)&&WQ(e,l,r[l])}function FU(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kbe=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Gbe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jN(e){return Gbe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function NZ(){}var G6=null;function jU(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dk=null,bk=null;function KQ(e){var r=Fk(e);if(r&&(e=r.stateNode)){var a=e[Ws]||null;e:switch(e=r.stateNode,r.type){case"input":if(W6(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+lc(""+r)+'"][type="radio"]');for(r=0;r<a.length;r++){var i=a[r];if(i!==e&&i.form===e.form){var s=i[Ws]||null;if(!s)throw Error(Yt(90));W6(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(r=0;r<a.length;r++)i=a[r],i.form===e.form&&z$(i)}break e;case"textarea":L$(e,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&_k(e,!!a.multiple,r,!1)}}}var c6=!1;function I$(e,r,a){if(c6)return e(r,a);c6=!0;try{var i=e(r);return i}finally{if(c6=!1,dk!==null||bk!==null){if(Y5(),dk&&(r=dk,e=bk,bk=dk=null,KQ(r),e))for(r=0;r<e.length;r++)KQ(e[r])}}}function FP(e,r){var a=e.stateNode;if(a===null)return null;var i=a[Ws]||null;if(i===null)return null;a=i[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(Yt(231,r,typeof a));return a}var YZ=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),X6=!1;if(YZ)try{fz={},Object.defineProperty(fz,"passive",{get:function(){X6=!0}}),window.addEventListener("test",fz,fz),window.removeEventListener("test",fz,fz)}catch(e){X6=!1}var fz,jM=null,BU=null,BN=null;function R$(){if(BN)return BN;var e,r=BU,a=r.length,i,s="value"in jM?jM.value:jM.textContent,l=s.length;for(e=0;e<a&&r[e]===s[e];e++);var c=a-e;for(i=1;i<=c&&r[a-i]===s[l-i];i++);return BN=s.slice(e,1<i?1-i:void 0)}function UN(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function IN(){return!0}function GQ(){return!1}function Ks(e){function r(a,i,s,l,c){this._reactName=a,this._targetInst=s,this.type=i,this.nativeEvent=l,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(l):l[d]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?IN:GQ,this.isPropagationStopped=GQ,this}return fn(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=IN)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=IN)},persist:function(){},isPersistent:IN}),r}var bz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},P5=Ks(bz),t2=fn({},bz,{view:0,detail:0}),Xbe=Ks(t2),u6,d6,uP,T5=fn({},t2,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:UU,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==uP&&(uP&&e.type==="mousemove"?(u6=e.screenX-uP.screenX,d6=e.screenY-uP.screenY):d6=u6=0,uP=e),u6},movementY:function(e){return"movementY"in e?e.movementY:d6}}),XQ=Ks(T5),Qbe=fn({},T5,{dataTransfer:0}),Jbe=Ks(Qbe),$be=fn({},t2,{relatedTarget:0}),Z6=Ks($be),ewe=fn({},bz,{animationName:0,elapsedTime:0,pseudoElement:0}),twe=Ks(ewe),rwe=fn({},bz,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),owe=Ks(rwe),awe=fn({},bz,{data:0}),QQ=Ks(awe),nwe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iwe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fwe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function swe(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=fwe[e])?!!r[e]:!1}function UU(){return swe}var lwe=fn({},t2,{key:function(e){if(e.key){var r=nwe[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=UN(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?iwe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:UU,charCode:function(e){return e.type==="keypress"?UN(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?UN(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cwe=Ks(lwe),uwe=fn({},T5,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),JQ=Ks(uwe),dwe=fn({},t2,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:UU}),Zwe=Ks(dwe),pwe=fn({},bz,{propertyName:0,elapsedTime:0,pseudoElement:0}),mwe=Ks(pwe),hwe=fn({},T5,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gwe=Ks(hwe),Mwe=fn({},bz,{newState:0,oldState:0}),xwe=Ks(Mwe),vwe=[9,13,27,32],YU=YZ&&"CompositionEvent"in window,zP=null;YZ&&"documentMode"in document&&(zP=document.documentMode);var ywe=YZ&&"TextEvent"in window&&!zP,P$=YZ&&(!YU||zP&&8<zP&&11>=zP),$Q=String.fromCharCode(32),eJ=!1;function T$(e,r){switch(e){case"keyup":return vwe.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A$(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}var Zk=!1;function _we(e,r){switch(e){case"compositionend":return A$(r);case"keypress":if(r.which!==32)return null;return eJ=!0,$Q;case"textInput":return e=r.data,e===$Q&&eJ?null:e;default:return null}}function bwe(e,r){if(Zk)return e==="compositionend"||!YU&&T$(e,r)?(e=R$(),BN=BU=jM=null,Zk=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return P$&&r.locale!=="ko"?null:r.data;default:return null}}var wwe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tJ(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!wwe[e.type]:r==="textarea"?!0:!1}function E$(e,r,a,i){dk?bk?bk.push(i):bk=[i]:dk=i,r=b5(r,"onChange"),0<r.length&&(a=new P5("onChange","change",null,a,i),e.push({event:a,listeners:r}))}var SP=null,jP=null;function zwe(e){Lte(e,0)}function A5(e){var r=MP(e);if(z$(r))return e}function rJ(e,r){if(e==="change")return r}var D$=!1;if(YZ){if(YZ){if(vP="oninput"in document,!vP)YN=document.createElement("div"),YN.setAttribute("oninput","return;"),vP=typeof YN.oninput==="function";xP=vP}else xP=!1;D$=xP&&(!document.documentMode||9<document.documentMode)}var xP,vP,YN;function oJ(){SP&&(SP.detachEvent("onpropertychange",O$),jP=SP=null)}function O$(e){if(e.propertyName==="value"&&A5(jP)){var r=[];E$(r,jP,e,jU(e)),I$(zwe,r)}}function Swe(e,r,a){e==="focusin"?(oJ(),SP=r,jP=a,SP.attachEvent("onpropertychange",O$)):e==="focusout"&&oJ()}function Lwe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return A5(jP)}function kwe(e,r){if(e==="click")return A5(r)}function Cwe(e,r){if(e==="input"||e==="change")return A5(r)}function Iwe(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var ql=typeof Object.is==="function"?Object.is:Iwe;function BP(e,r){if(ql(e,r))return!0;if(typeof e!=="object"||e===null||typeof r!=="object"||r===null)return!1;var a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var s=a[i];if(!q6.call(r,s)||!ql(e[s],r[s]))return!1}return!0}function aJ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nJ(e,r){var a=aJ(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=r&&i>=r)return{node:a,offset:r-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=aJ(a)}}function N$(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?N$(e,r.parentNode):("contains"in e)?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function F$(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=n5(e.document);r instanceof e.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href==="string"}catch(i){a=!1}if(a)e=r.contentWindow;else break;r=n5(e.document)}return r}function qU(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var Rwe=YZ&&"documentMode"in document&&11>=document.documentMode,pk=null,Q6=null,LP=null,J6=!1;function iJ(e,r,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;J6||pk==null||pk!==n5(i)||(i=pk,("selectionStart"in i)&&qU(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),LP&&BP(LP,i)||(LP=i,i=b5(Q6,"onSelect"),0<i.length&&(r=new P5("onSelect","select",null,r,a),e.push({event:r,listeners:i}),r.target=pk)))}function az(e,r){var a={};return a[e.toLowerCase()]=r.toLowerCase(),a["Webkit"+e]="webkit"+r,a["Moz"+e]="moz"+r,a}var mk={animationend:az("Animation","AnimationEnd"),animationiteration:az("Animation","AnimationIteration"),animationstart:az("Animation","AnimationStart"),transitionrun:az("Transition","TransitionRun"),transitionstart:az("Transition","TransitionStart"),transitioncancel:az("Transition","TransitionCancel"),transitionend:az("Transition","TransitionEnd")},p6={},j$={};YZ&&(j$=document.createElement("div").style,("AnimationEvent"in window)||(delete mk.animationend.animation,delete mk.animationiteration.animation,delete mk.animationstart.animation),("TransitionEvent"in window)||delete mk.transitionend.transition);function wz(e){if(p6[e])return p6[e];if(!mk[e])return e;var r=mk[e],a;for(a in r)if(r.hasOwnProperty(a)&&a in j$)return p6[e]=r[a];return e}var B$=wz("animationend"),U$=wz("animationiteration"),Y$=wz("animationstart"),Pwe=wz("transitionrun"),Twe=wz("transitionstart"),Awe=wz("transitioncancel"),q$=wz("transitionend"),H$=new Map,$6="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");$6.push("scrollEnd");function lu(e,r){H$.set(e,r),_z(r,[e])}var i5=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},nc=[],hk=0,HU=0;function E5(){for(var e=hk,r=HU=hk=0;r<e;){var a=nc[r];nc[r++]=null;var i=nc[r];nc[r++]=null;var s=nc[r];nc[r++]=null;var l=nc[r];if(nc[r++]=null,i!==null&&s!==null){var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}l!==0&&V$(a,s,l)}}function D5(e,r,a,i){nc[hk++]=e,nc[hk++]=r,nc[hk++]=a,nc[hk++]=i,HU|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function VU(e,r,a,i){return D5(e,r,a,i),f5(e)}function zz(e,r){return D5(e,null,null,r),f5(e)}function V$(e,r,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var s=!1,l=e.return;l!==null;)l.childLanes|=a,i=l.alternate,i!==null&&(i.childLanes|=a),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(s=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,s&&r!==null&&(s=31-Yl(a),e=l.hiddenUpdates,i=e[s],i===null?e[s]=[r]:i.push(r),r.lane=a|536870912),l):null}function f5(e){if(50<DP)throw DP=0,vU=null,Error(Yt(185));for(var r=e.return;r!==null;)e=r,r=e.return;return e.tag===3?e.stateNode:null}var gk={};function Ewe(e,r,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,r,a,i){return new Ewe(e,r,a,i)}function WU(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jZ(e,r){var a=e.alternate;return a===null?(a=zl(e.tag,r,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=r,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,r=e.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function W$(e,r){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=r,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,r=a.dependencies,e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function qN(e,r,a,i,s,l){var c=0;if(i=e,typeof e==="function")WU(e)&&(c=1);else if(typeof e==="string")c=B0e(e,a,oZ.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case j6:return e=zl(31,a,r,s),e.elementType=j6,e.lanes=l,e;case lk:return uz(a.children,s,l,r);case u$:c=8,s|=24;break;case O6:return e=zl(12,a,r,s|2),e.elementType=O6,e.lanes=l,e;case N6:return e=zl(13,a,r,s),e.elementType=N6,e.lanes=l,e;case F6:return e=zl(19,a,r,s),e.elementType=F6,e.lanes=l,e;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case OZ:c=10;break e;case d$:c=9;break e;case AU:c=11;break e;case EU:c=14;break e;case TM:c=16,i=null;break e}c=29,a=Error(Yt(130,e===null?"null":typeof e,"")),i=null}return r=zl(c,a,r,s),r.elementType=e,r.type=i,r.lanes=l,r}function uz(e,r,a,i){return e=zl(7,e,i,r),e.lanes=a,e}function m6(e,r,a){return e=zl(6,e,null,r),e.lanes=a,e}function K$(e){var r=zl(18,null,null,0);return r.stateNode=e,r}function h6(e,r,a){return r=zl(4,e.children!==null?e.children:[],e.key,r),r.lanes=a,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var fJ=new WeakMap;function cc(e,r){if(typeof e==="object"&&e!==null){var a=fJ.get(e);if(a!==void 0)return a;return r={value:e,source:r,stack:UQ(r)},fJ.set(e,r),r}return{value:e,source:r,stack:UQ(r)}}var Mk=[],xk=0,s5=null,UP=0,fc=[],sc=0,QM=null,eZ=1,tZ="";function EZ(e,r){Mk[xk++]=UP,Mk[xk++]=s5,s5=e,UP=r}function G$(e,r,a){fc[sc++]=eZ,fc[sc++]=tZ,fc[sc++]=QM,QM=e;var i=eZ;e=tZ;var s=32-Yl(i)-1;i&=~(1<<s),a+=1;var l=32-Yl(r)+s;if(30<l){var c=s-s%5;l=(i&(1<<c)-1).toString(32),i>>=c,s-=c,eZ=1<<32-Yl(r)+s|a<<s|i,tZ=l+e}else eZ=1<<l|a<<s|i,tZ=e}function KU(e){e.return!==null&&(EZ(e,1),G$(e,1,0))}function GU(e){for(;e===s5;)s5=Mk[--xk],Mk[xk]=null,UP=Mk[--xk],Mk[xk]=null;for(;e===QM;)QM=fc[--sc],fc[sc]=null,tZ=fc[--sc],fc[sc]=null,eZ=fc[--sc],fc[sc]=null}function X$(e,r){fc[sc++]=eZ,fc[sc++]=tZ,fc[sc++]=QM,eZ=r.id,tZ=r.overflow,QM=e}var Gi=null,en=null,zo=!1,HM=null,uc=!1,eU=Error(Yt(519));function JM(e){var r=Error(Yt(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw YP(cc(r,e)),eU}function sJ(e){var{stateNode:r,type:a,memoizedProps:i}=e;switch(r[Ki]=e,r[Ws]=i,a){case"dialog":go("cancel",r),go("close",r);break;case"iframe":case"object":case"embed":go("load",r);break;case"video":case"audio":for(a=0;a<WP.length;a++)go(WP[a],r);break;case"source":go("error",r);break;case"img":case"image":case"link":go("error",r),go("load",r);break;case"details":go("toggle",r);break;case"input":go("invalid",r),S$(r,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":go("invalid",r);break;case"textarea":go("invalid",r),k$(r,i.value,i.defaultValue,i.children)}a=i.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||r.textContent===""+a||i.suppressHydrationWarning===!0||Ite(r.textContent,a)?(i.popover!=null&&(go("beforetoggle",r),go("toggle",r)),i.onScroll!=null&&go("scroll",r),i.onScrollEnd!=null&&go("scrollend",r),i.onClick!=null&&(r.onclick=NZ),r=!0):r=!1,r||JM(e,!0)}function lJ(e){for(Gi=e.return;Gi;)switch(Gi.tag){case 5:case 31:case 13:uc=!1;return;case 27:case 3:uc=!0;return;default:Gi=Gi.return}}function ak(e){if(e!==Gi)return!1;if(!zo)return lJ(e),zo=!0,!1;var r=e.tag,a;if(a=r!==3&&r!==27){if(a=r===5)a=e.type,a=!(a!=="form"&&a!=="button")||LU(e.type,e.memoizedProps);a=!a}if(a&&en&&JM(e),lJ(e),r===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Yt(317));en=GJ(e)}else if(r===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Yt(317));en=GJ(e)}else r===27?(r=en,r8(e.type)?(e=RU,RU=null,en=e):en=r):en=Gi?mc(e.stateNode.nextSibling):null;return!0}function gz(){en=Gi=null,zo=!1}function g6(){var e=HM;return e!==null&&(Ys===null?Ys=e:Ys.push.apply(Ys,e),HM=null),e}function YP(e){HM===null?HM=[e]:HM.push(e)}var tU=aZ(null),Sz=null,FZ=null;function EM(e,r,a){Va(tU,r._currentValue),r._currentValue=a}function BZ(e){e._currentValue=tU.current,Ei(tU)}function rU(e,r,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,i!==null&&(i.childLanes|=r)):i!==null&&(i.childLanes&r)!==r&&(i.childLanes|=r),e===a)break;e=e.return}}function oU(e,r,a,i){var s=e.child;s!==null&&(s.return=e);for(;s!==null;){var l=s.dependencies;if(l!==null){var c=s.child;l=l.firstContext;e:for(;l!==null;){var d=l;l=s;for(var m=0;m<r.length;m++)if(d.context===r[m]){l.lanes|=a,d=l.alternate,d!==null&&(d.lanes|=a),rU(l.return,a,e),i||(c=null);break e}l=d.next}}else if(s.tag===18){if(c=s.return,c===null)throw Error(Yt(341));c.lanes|=a,l=c.alternate,l!==null&&(l.lanes|=a),rU(c,a,e),c=null}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===e){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}}function jk(e,r,a,i){e=null;for(var s=r,l=!1;s!==null;){if(!l){if((s.flags&524288)!==0)l=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var c=s.alternate;if(c===null)throw Error(Yt(387));if(c=c.memoizedProps,c!==null){var d=s.type;ql(s.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(s===t5.current){if(c=s.alternate,c===null)throw Error(Yt(387));c.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(GP):e=[GP])}s=s.return}e!==null&&oU(r,e,a,i),r.flags|=262144}function l5(e){for(e=e.firstContext;e!==null;){if(!ql(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mz(e){Sz=e,FZ=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return Q$(Sz,e)}function RN(e,r){return Sz===null&&Mz(e),Q$(e,r)}function Q$(e,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},FZ===null){if(e===null)throw Error(Yt(308));FZ=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else FZ=FZ.next=r;return a}var Dwe=typeof AbortController<"u"?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){r.aborted=!0,e.forEach(function(a){return a()})}},Owe=Fs,Nwe=Os,li={$$typeof:OZ,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function XU(){return{controller:new Dwe,data:new Map,refCount:0}}function r2(e){e.refCount--,e.refCount===0&&Owe(Nwe,function(){e.controller.abort()})}var kP=null,aU=0,Rk=0,wk=null;function Fwe(e,r){if(kP===null){var a=kP=[];aU=0,Rk=yY(),wk={status:"pending",value:void 0,then:function(i){a.push(i)}}}return aU++,r.then(cJ,cJ),r}function cJ(){if(--aU===0&&kP!==null){wk!==null&&(wk.status="fulfilled");var e=kP;kP=null,Rk=0,wk=null;for(var r=0;r<e.length;r++)(0,e[r])()}}function jwe(e,r){var a=[],i={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){i.status="fulfilled",i.value=r;for(var s=0;s<a.length;s++)(0,a[s])(r)},function(s){i.status="rejected",i.reason=s;for(s=0;s<a.length;s++)(0,a[s])(void 0)}),i}var uJ=Yr.S;Yr.S=function(e,r){ste=Bl(),typeof r==="object"&&r!==null&&typeof r.then==="function"&&Fwe(e,r),uJ!==null&&uJ(e,r)};var dz=aZ(null);function QU(){var e=dz.current;return e!==null?e:ja.pooledCache}function HN(e,r){r===null?Va(dz,dz.current):Va(dz,r.pool)}function J$(){var e=QU();return e===null?null:{parent:li._currentValue,pool:e}}var Bk=Error(Yt(460)),JU=Error(Yt(474)),O5=Error(Yt(542)),c5={then:function(){}};function dJ(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $$(e,r,a){switch(a=e[a],a===void 0?e.push(r):a!==r&&(r.then(NZ,NZ),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,pJ(e),e;default:if(typeof r.status==="string")r.then(NZ,NZ);else{if(e=ja,e!==null&&100<e.shellSuspendCounter)throw Error(Yt(482));e=r,e.status="pending",e.then(function(i){if(r.status==="pending"){var s=r;s.status="fulfilled",s.value=i}},function(i){if(r.status==="pending"){var s=r;s.status="rejected",s.reason=i}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,pJ(e),e}throw Zz=r,Bk}}function sz(e){try{var r=e._init;return r(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw Zz=a,Bk;throw a}}var Zz=null;function ZJ(){if(Zz===null)throw Error(Yt(459));var e=Zz;return Zz=null,e}function pJ(e){if(e===Bk||e===O5)throw Error(Yt(483))}var zk=null,qP=0;function PN(e){var r=qP;return qP+=1,zk===null&&(zk=[]),$$(zk,e,r)}function dP(e,r){r=r.props.ref,e.ref=r!==void 0?r:null}function TN(e,r){if(r.$$typeof===Sbe)throw Error(Yt(525));throw e=Object.prototype.toString.call(r),Error(Yt(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function eee(e){function r(P,T){if(e){var G=P.deletions;G===null?(P.deletions=[T],P.flags|=16):G.push(T)}}function a(P,T){if(!e)return null;for(;T!==null;)r(P,T),T=T.sibling;return null}function i(P){for(var T=new Map;P!==null;)P.key!==null?T.set(P.key,P):T.set(P.index,P),P=P.sibling;return T}function s(P,T){return P=jZ(P,T),P.index=0,P.sibling=null,P}function l(P,T,G){if(P.index=G,!e)return P.flags|=1048576,T;if(G=P.alternate,G!==null)return G=G.index,G<T?(P.flags|=67108866,T):G;return P.flags|=67108866,T}function c(P){return e&&P.alternate===null&&(P.flags|=67108866),P}function d(P,T,G,X){if(T===null||T.tag!==6)return T=m6(G,P.mode,X),T.return=P,T;return T=s(T,G),T.return=P,T}function m(P,T,G,X){var J=G.type;if(J===lk)return x(P,T,G.props.children,X,G.key);if(T!==null&&(T.elementType===J||typeof J==="object"&&J!==null&&J.$$typeof===TM&&sz(J)===T.type))return T=s(T,G.props),dP(T,G),T.return=P,T;return T=qN(G.type,G.key,G.props,null,P.mode,X),dP(T,G),T.return=P,T}function g(P,T,G,X){if(T===null||T.tag!==4||T.stateNode.containerInfo!==G.containerInfo||T.stateNode.implementation!==G.implementation)return T=h6(G,P.mode,X),T.return=P,T;return T=s(T,G.children||[]),T.return=P,T}function x(P,T,G,X,J){if(T===null||T.tag!==7)return T=uz(G,P.mode,X,J),T.return=P,T;return T=s(T,G),T.return=P,T}function v(P,T,G){if(typeof T==="string"&&T!==""||typeof T==="number"||typeof T==="bigint")return T=m6(""+T,P.mode,G),T.return=P,T;if(typeof T==="object"&&T!==null){switch(T.$$typeof){case zN:return G=qN(T.type,T.key,T.props,null,P.mode,G),dP(G,T),G.return=P,G;case hP:return T=h6(T,P.mode,G),T.return=P,T;case TM:return T=sz(T),v(P,T,G)}if(gP(T)||cP(T))return T=uz(T,P.mode,G,null),T.return=P,T;if(typeof T.then==="function")return v(P,PN(T),G);if(T.$$typeof===OZ)return v(P,RN(P,T),G);TN(P,T)}return null}function b(P,T,G,X){var J=T!==null?T.key:null;if(typeof G==="string"&&G!==""||typeof G==="number"||typeof G==="bigint")return J!==null?null:d(P,T,""+G,X);if(typeof G==="object"&&G!==null){switch(G.$$typeof){case zN:return G.key===J?m(P,T,G,X):null;case hP:return G.key===J?g(P,T,G,X):null;case TM:return G=sz(G),b(P,T,G,X)}if(gP(G)||cP(G))return J!==null?null:x(P,T,G,X,null);if(typeof G.then==="function")return b(P,T,PN(G),X);if(G.$$typeof===OZ)return b(P,T,RN(P,G),X);TN(P,G)}return null}function _(P,T,G,X,J){if(typeof X==="string"&&X!==""||typeof X==="number"||typeof X==="bigint")return P=P.get(G)||null,d(T,P,""+X,J);if(typeof X==="object"&&X!==null){switch(X.$$typeof){case zN:return P=P.get(X.key===null?G:X.key)||null,m(T,P,X,J);case hP:return P=P.get(X.key===null?G:X.key)||null,g(T,P,X,J);case TM:return X=sz(X),_(P,T,G,X,J)}if(gP(X)||cP(X))return P=P.get(G)||null,x(T,P,X,J,null);if(typeof X.then==="function")return _(P,T,G,PN(X),J);if(X.$$typeof===OZ)return _(P,T,G,RN(T,X),J);TN(T,X)}return null}function z(P,T,G,X){for(var J=null,ee=null,re=T,oe=T=0,ie=null;re!==null&&oe<G.length;oe++){re.index>oe?(ie=re,re=null):ie=re.sibling;var ye=b(P,re,G[oe],X);if(ye===null){re===null&&(re=ie);break}e&&re&&ye.alternate===null&&r(P,re),T=l(ye,T,oe),ee===null?J=ye:ee.sibling=ye,ee=ye,re=ie}if(oe===G.length)return a(P,re),zo&&EZ(P,oe),J;if(re===null){for(;oe<G.length;oe++)re=v(P,G[oe],X),re!==null&&(T=l(re,T,oe),ee===null?J=re:ee.sibling=re,ee=re);return zo&&EZ(P,oe),J}for(re=i(re);oe<G.length;oe++)ie=_(re,P,oe,G[oe],X),ie!==null&&(e&&ie.alternate!==null&&re.delete(ie.key===null?oe:ie.key),T=l(ie,T,oe),ee===null?J=ie:ee.sibling=ie,ee=ie);return e&&re.forEach(function(We){return r(P,We)}),zo&&EZ(P,oe),J}function k(P,T,G,X){if(G==null)throw Error(Yt(151));for(var J=null,ee=null,re=T,oe=T=0,ie=null,ye=G.next();re!==null&&!ye.done;oe++,ye=G.next()){re.index>oe?(ie=re,re=null):ie=re.sibling;var We=b(P,re,ye.value,X);if(We===null){re===null&&(re=ie);break}e&&re&&We.alternate===null&&r(P,re),T=l(We,T,oe),ee===null?J=We:ee.sibling=We,ee=We,re=ie}if(ye.done)return a(P,re),zo&&EZ(P,oe),J;if(re===null){for(;!ye.done;oe++,ye=G.next())ye=v(P,ye.value,X),ye!==null&&(T=l(ye,T,oe),ee===null?J=ye:ee.sibling=ye,ee=ye);return zo&&EZ(P,oe),J}for(re=i(re);!ye.done;oe++,ye=G.next())ye=_(re,P,oe,ye.value,X),ye!==null&&(e&&ye.alternate!==null&&re.delete(ye.key===null?oe:ye.key),T=l(ye,T,oe),ee===null?J=ye:ee.sibling=ye,ee=ye);return e&&re.forEach(function(Ye){return r(P,Ye)}),zo&&EZ(P,oe),J}function U(P,T,G,X){if(typeof G==="object"&&G!==null&&G.type===lk&&G.key===null&&(G=G.props.children),typeof G==="object"&&G!==null){switch(G.$$typeof){case zN:e:{for(var J=G.key;T!==null;){if(T.key===J){if(J=G.type,J===lk){if(T.tag===7){a(P,T.sibling),X=s(T,G.props.children),X.return=P,P=X;break e}}else if(T.elementType===J||typeof J==="object"&&J!==null&&J.$$typeof===TM&&sz(J)===T.type){a(P,T.sibling),X=s(T,G.props),dP(X,G),X.return=P,P=X;break e}a(P,T);break}else r(P,T);T=T.sibling}G.type===lk?(X=uz(G.props.children,P.mode,X,G.key),X.return=P,P=X):(X=qN(G.type,G.key,G.props,null,P.mode,X),dP(X,G),X.return=P,P=X)}return c(P);case hP:e:{for(J=G.key;T!==null;){if(T.key===J)if(T.tag===4&&T.stateNode.containerInfo===G.containerInfo&&T.stateNode.implementation===G.implementation){a(P,T.sibling),X=s(T,G.children||[]),X.return=P,P=X;break e}else{a(P,T);break}else r(P,T);T=T.sibling}X=h6(G,P.mode,X),X.return=P,P=X}return c(P);case TM:return G=sz(G),U(P,T,G,X)}if(gP(G))return z(P,T,G,X);if(cP(G)){if(J=cP(G),typeof J!=="function")throw Error(Yt(150));return G=J.call(G),k(P,T,G,X)}if(typeof G.then==="function")return U(P,T,PN(G),X);if(G.$$typeof===OZ)return U(P,T,RN(P,G),X);TN(P,G)}return typeof G==="string"&&G!==""||typeof G==="number"||typeof G==="bigint"?(G=""+G,T!==null&&T.tag===6?(a(P,T.sibling),X=s(T,G),X.return=P,P=X):(a(P,T),X=m6(G,P.mode,X),X.return=P,P=X),c(P)):a(P,T)}return function(P,T,G,X){try{qP=0;var J=U(P,T,G,X);return zk=null,J}catch(re){if(re===Bk||re===O5)throw re;var ee=zl(29,re,null,P.mode);return ee.lanes=X,ee.return=P,ee}finally{}}}var xz=eee(!0),tee=eee(!1),AM=!1;function $U(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nU(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function pz(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mz(e,r,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(jo&2)!==0){var s=i.pending;return s===null?r.next=r:(r.next=s.next,s.next=r),i.pending=r,r=f5(e),V$(e,null,a),r}return D5(e,i,r,a),f5(e)}function CP(e,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var i=r.lanes;i&=e.pendingLanes,a|=i,r.lanes=a,M$(e,a)}}function M6(e,r){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var s=null,l=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};l===null?s=l=c:l=l.next=c,a=a.next}while(a!==null);l===null?s=l=r:l=l.next=r}else s=l=r;a={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=r:e.next=r,a.lastBaseUpdate=r}var iU=!1;function IP(){if(iU){var e=wk;if(e!==null)throw e}}function RP(e,r,a,i){iU=!1;var s=e.updateQueue;AM=!1;var{firstBaseUpdate:l,lastBaseUpdate:c}=s,d=s.shared.pending;if(d!==null){s.shared.pending=null;var m=d,g=m.next;m.next=null,c===null?l=g:c.next=g,c=m;var x=e.alternate;x!==null&&(x=x.updateQueue,d=x.lastBaseUpdate,d!==c&&(d===null?x.firstBaseUpdate=g:d.next=g,x.lastBaseUpdate=m))}if(l!==null){var v=s.baseState;c=0,x=g=m=null,d=l;do{var b=d.lane&-536870913,_=b!==d.lane;if(_?(_o&b)===b:(i&b)===b){b!==0&&b===Rk&&(iU=!0),x!==null&&(x=x.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var z=e,k=d;b=r;var U=a;switch(k.tag){case 1:if(z=k.payload,typeof z==="function"){v=z.call(U,v,b);break e}v=z;break e;case 3:z.flags=z.flags&-65537|128;case 0:if(z=k.payload,b=typeof z==="function"?z.call(U,v,b):z,b===null||b===void 0)break e;v=fn({},v,b);break e;case 2:AM=!0}}b=d.callback,b!==null&&(e.flags|=64,_&&(e.flags|=8192),_=s.callbacks,_===null?s.callbacks=[b]:_.push(b))}else _={lane:b,tag:d.tag,payload:d.payload,callback:d.callback,next:null},x===null?(g=x=_,m=v):x=x.next=_,c|=b;if(d=d.next,d===null)if(d=s.shared.pending,d===null)break;else _=d,d=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}while(1);x===null&&(m=v),s.baseState=m,s.firstBaseUpdate=g,s.lastBaseUpdate=x,l===null&&(s.shared.lanes=0),e8|=c,e.lanes=c,e.memoizedState=v}}function ree(e,r){if(typeof e!=="function")throw Error(Yt(191,e));e.call(r)}function oee(e,r){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ree(a[e],r)}var Pk=aZ(null),u5=aZ(0);function mJ(e,r){e=WZ,Va(u5,e),Va(Pk,r),WZ=e|r.baseLanes}function fU(){Va(u5,WZ),Va(Pk,Pk.current)}function eY(){WZ=u5.current,Ei(Pk),Ei(u5)}var Hl=aZ(null),dc=null;function DM(e){var r=e.alternate;Va(Vn,Vn.current&1),Va(Hl,e),dc===null&&(r===null||Pk.current!==null?dc=e:r.memoizedState!==null&&(dc=e))}function sU(e){Va(Vn,Vn.current),Va(Hl,e),dc===null&&(dc=e)}function aee(e){e.tag===22?(Va(Vn,Vn.current),Va(Hl,e),dc===null&&(dc=e)):OM(e)}function OM(){Va(Vn,Vn.current),Va(Hl,Hl.current)}function Zl(e){Ei(Hl),dc===e&&(dc=null),Ei(Vn)}var Vn=aZ(0);function d5(e){for(var r=e;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||CU(a)||IU(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var qZ=0,fo=null,_a=null,ii=null,Z5=!1,Sk=!1,vz=!1,p5=0,HP=0,Lk=null,Bwe=0;function Sn(){throw Error(Yt(321))}function tY(e,r){if(r===null)return!1;for(var a=0;a<r.length&&a<e.length;a++)if(!ql(e[a],r[a]))return!1;return!0}function rY(e,r,a,i,s,l){return qZ=l,fo=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Yr.H=e===null||e.memoizedState===null?Eee:ZY,vz=!1,l=a(i,s),vz=!1,Sk&&(l=iee(r,a,i,s)),nee(e),l}function nee(e){Yr.H=VP;var r=_a!==null&&_a.next!==null;if(qZ=0,ii=_a=fo=null,Z5=!1,HP=0,Lk=null,r)throw Error(Yt(300));e===null||ci||(e=e.dependencies,e!==null&&l5(e)&&(ci=!0))}function iee(e,r,a,i){fo=e;var s=0;do{if(Sk&&(Lk=null),HP=0,Sk=!1,25<=s)throw Error(Yt(301));if(s+=1,ii=_a=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}Yr.H=Dee,l=r(a,i)}while(Sk);return l}function Uwe(){var e=Yr.H,r=e.useState()[0];return r=typeof r.then==="function"?o2(r):r,e=e.useState()[0],(_a!==null?_a.memoizedState:null)!==e&&(fo.flags|=1024),r}function oY(){var e=p5!==0;return p5=0,e}function aY(e,r,a){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~a}function nY(e){if(Z5){for(e=e.memoizedState;e!==null;){var r=e.queue;r!==null&&(r.pending=null),e=e.next}Z5=!1}qZ=0,ii=_a=fo=null,Sk=!1,HP=p5=0,Lk=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ii===null?fo.memoizedState=ii=e:ii=ii.next=e,ii}function Wn(){if(_a===null){var e=fo.alternate;e=e!==null?e.memoizedState:null}else e=_a.next;var r=ii===null?fo.memoizedState:ii.next;if(r!==null)ii=r,_a=e;else{if(e===null){if(fo.alternate===null)throw Error(Yt(467));throw Error(Yt(310))}_a=e,e={memoizedState:_a.memoizedState,baseState:_a.baseState,baseQueue:_a.baseQueue,queue:_a.queue,next:null},ii===null?fo.memoizedState=ii=e:ii=ii.next=e}return ii}function N5(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function o2(e){var r=HP;return HP+=1,Lk===null&&(Lk=[]),e=$$(Lk,e,r),r=fo,(ii===null?r.memoizedState:ii.next)===null&&(r=r.alternate,Yr.H=r===null||r.memoizedState===null?Eee:ZY),e}function F5(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return o2(e);if(e.$$typeof===OZ)return Qi(e)}throw Error(Yt(438,String(e)))}function iY(e){var r=null,a=fo.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var i=fo.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(r={data:i.data.map(function(s){return s.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=N5(),fo.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(e),i=0;i<e;i++)a[i]=Lbe;return r.index++,a}function HZ(e,r){return typeof r==="function"?r(e):r}function VN(e){var r=Wn();return fY(r,_a,e)}function fY(e,r,a){var i=e.queue;if(i===null)throw Error(Yt(311));i.lastRenderedReducer=a;var s=e.baseQueue,l=i.pending;if(l!==null){if(s!==null){var c=s.next;s.next=l.next,l.next=c}r.baseQueue=s=l,i.pending=null}if(l=e.baseState,s===null)e.memoizedState=l;else{r=s.next;var d=c=null,m=null,g=r,x=!1;do{var v=g.lane&-536870913;if(v!==g.lane?(_o&v)===v:(qZ&v)===v){var b=g.revertLane;if(b===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),v===Rk&&(x=!0);else if((qZ&b)===b){g=g.next,b===Rk&&(x=!0);continue}else v={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=v,c=l):m=m.next=v,fo.lanes|=b,e8|=b;v=g.action,vz&&a(l,v),l=g.hasEagerState?g.eagerState:a(l,v)}else b={lane:v,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=b,c=l):m=m.next=b,fo.lanes|=v,e8|=v;g=g.next}while(g!==null&&g!==r);if(m===null?c=l:m.next=d,!ql(l,e.memoizedState)&&(ci=!0,x&&(a=wk,a!==null)))throw a;e.memoizedState=l,e.baseState=c,e.baseQueue=m,i.lastRenderedState=l}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function x6(e){var r=Wn(),a=r.queue;if(a===null)throw Error(Yt(311));a.lastRenderedReducer=e;var{dispatch:i,pending:s}=a,l=r.memoizedState;if(s!==null){a.pending=null;var c=s=s.next;do l=e(l,c.action),c=c.next;while(c!==s);ql(l,r.memoizedState)||(ci=!0),r.memoizedState=l,r.baseQueue===null&&(r.baseState=l),a.lastRenderedState=l}return[l,i]}function fee(e,r,a){var i=fo,s=Wn(),l=zo;if(l){if(a===void 0)throw Error(Yt(407));a=a()}else a=r();var c=!ql((_a||s).memoizedState,a);if(c&&(s.memoizedState=a,ci=!0),s=s.queue,sY(cee.bind(null,i,s,e),[e]),s.getSnapshot!==r||c||ii!==null&&ii.memoizedState.tag&1){if(i.flags|=2048,Tk(9,{destroy:void 0},lee.bind(null,i,s,a,r),null),ja===null)throw Error(Yt(349));l||(qZ&127)!==0||see(i,r,a)}return a}function see(e,r,a){e.flags|=16384,e={getSnapshot:r,value:a},r=fo.updateQueue,r===null?(r=N5(),fo.updateQueue=r,r.stores=[e]):(a=r.stores,a===null?r.stores=[e]:a.push(e))}function lee(e,r,a,i){r.value=a,r.getSnapshot=i,uee(r)&&dee(e)}function cee(e,r,a){return a(function(){uee(r)&&dee(e)})}function uee(e){var r=e.getSnapshot;e=e.value;try{var a=r();return!ql(e,a)}catch(i){return!0}}function dee(e){var r=zz(e,2);r!==null&&Vs(r,e,2)}function lU(e){var r=as();if(typeof e==="function"){var a=e;if(e=a(),vz){FM(!0);try{a()}finally{FM(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:HZ,lastRenderedState:e},r}function Zee(e,r,a,i){return e.baseState=a,fY(e,_a,typeof i==="function"?i:HZ)}function Ywe(e,r,a,i,s){if(B5(e))throw Error(Yt(485));if(e=r.action,e!==null){var l={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){l.listeners.push(c)}};Yr.T!==null?a(!0):l.isTransition=!1,i(l),a=r.pending,a===null?(l.next=r.pending=l,pee(r,l)):(l.next=a.next,r.pending=a.next=l)}}function pee(e,r){var{action:a,payload:i}=r,s=e.state;if(r.isTransition){var l=Yr.T,c={};Yr.T=c;try{var d=a(s,i),m=Yr.S;m!==null&&m(c,d),hJ(e,r,d)}catch(g){cU(e,r,g)}finally{l!==null&&c.types!==null&&(l.types=c.types),Yr.T=l}}else try{l=a(s,i),hJ(e,r,l)}catch(g){cU(e,r,g)}}function hJ(e,r,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(i){gJ(e,r,i)},function(i){return cU(e,r,i)}):gJ(e,r,a)}function gJ(e,r,a){r.status="fulfilled",r.value=a,mee(r),e.state=a,r=e.pending,r!==null&&(a=r.next,a===r?e.pending=null:(a=a.next,r.next=a,pee(e,a)))}function cU(e,r,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do r.status="rejected",r.reason=a,mee(r),r=r.next;while(r!==i)}e.action=null}function mee(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function hee(e,r){return r}function MJ(e,r){if(zo){var a=ja.formState;if(a!==null){e:{var i=fo;if(zo){if(en){t:{var s=en;for(var l=uc;s.nodeType!==8;){if(!l){s=null;break t}if(s=mc(s.nextSibling),s===null){s=null;break t}}l=s.data,s=l==="F!"||l==="F"?s:null}if(s){en=mc(s.nextSibling),i=s.data==="F!";break e}}JM(i)}i=!1}i&&(r=a[0])}}return a=as(),a.memoizedState=a.baseState=r,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hee,lastRenderedState:r},a.queue=i,a=Pee.bind(null,fo,i),i.dispatch=a,i=lU(!1),l=dY.bind(null,fo,!1,i.queue),i=as(),s={state:r,dispatch:null,action:e,pending:null},i.queue=s,a=Ywe.bind(null,fo,s,l,a),s.dispatch=a,i.memoizedState=e,[r,a,!1]}function xJ(e){var r=Wn();return gee(r,_a,e)}function gee(e,r,a){if(r=fY(e,r,hee)[0],e=VN(HZ)[0],typeof r==="object"&&r!==null&&typeof r.then==="function")try{var i=o2(r)}catch(c){if(c===Bk)throw O5;throw c}else i=r;r=Wn();var s=r.queue,l=s.dispatch;return a!==r.memoizedState&&(fo.flags|=2048,Tk(9,{destroy:void 0},qwe.bind(null,s,a),null)),[i,l,e]}function qwe(e,r){e.action=r}function vJ(e){var r=Wn(),a=_a;if(a!==null)return gee(r,a,e);Wn(),r=r.memoizedState,a=Wn();var i=a.queue.dispatch;return a.memoizedState=e,[r,i,!1]}function Tk(e,r,a,i){return e={tag:e,create:a,deps:i,inst:r,next:null},r=fo.updateQueue,r===null&&(r=N5(),fo.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,r.lastEffect=e),e}function Mee(){return Wn().memoizedState}function WN(e,r,a,i){var s=as();fo.flags|=e,s.memoizedState=Tk(1|r,{destroy:void 0},a,i===void 0?null:i)}function j5(e,r,a,i){var s=Wn();i=i===void 0?null:i;var l=s.memoizedState.inst;_a!==null&&i!==null&&tY(i,_a.memoizedState.deps)?s.memoizedState=Tk(r,l,a,i):(fo.flags|=e,s.memoizedState=Tk(1|r,l,a,i))}function yJ(e,r){WN(8390656,8,e,r)}function sY(e,r){j5(2048,8,e,r)}function Hwe(e){fo.flags|=4;var r=fo.updateQueue;if(r===null)r=N5(),fo.updateQueue=r,r.events=[e];else{var a=r.events;a===null?r.events=[e]:a.push(e)}}function xee(e){var r=Wn().memoizedState;return Hwe({ref:r,nextImpl:e}),function(){if((jo&2)!==0)throw Error(Yt(440));return r.impl.apply(void 0,arguments)}}function vee(e,r){return j5(4,2,e,r)}function yee(e,r){return j5(4,4,e,r)}function _ee(e,r){if(typeof r==="function"){e=e();var a=r(e);return function(){typeof a==="function"?a():r(null)}}if(r!==null&&r!==void 0)return e=e(),r.current=e,function(){r.current=null}}function bee(e,r,a){a=a!==null&&a!==void 0?a.concat([e]):null,j5(4,4,_ee.bind(null,r,e),a)}function lY(){}function wee(e,r){var a=Wn();r=r===void 0?null:r;var i=a.memoizedState;if(r!==null&&tY(r,i[1]))return i[0];return a.memoizedState=[e,r],e}function zee(e,r){var a=Wn();r=r===void 0?null:r;var i=a.memoizedState;if(r!==null&&tY(r,i[1]))return i[0];if(i=e(),vz){FM(!0);try{e()}finally{FM(!1)}}return a.memoizedState=[i,r],i}function cY(e,r,a){if(a===void 0||(qZ&1073741824)!==0&&(_o&261930)===0)return e.memoizedState=r;return e.memoizedState=a,e=cte(),fo.lanes|=e,e8|=e,a}function See(e,r,a,i){if(ql(a,r))return a;if(Pk.current!==null)return e=cY(e,a,i),ql(e,r)||(ci=!0),e;if((qZ&42)===0||(qZ&1073741824)!==0&&(_o&261930)===0)return ci=!0,e.memoizedState=a;return e=cte(),fo.lanes|=e,e8|=e,r}function Lee(e,r,a,i,s){var l=Bo.p;Bo.p=l!==0&&8>l?l:8;var c=Yr.T,d={};Yr.T=d,dY(e,!1,r,a);try{var m=s(),g=Yr.S;if(g!==null&&g(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){var x=jwe(m,i);PP(e,r,x,pc(e))}else PP(e,r,i,pc(e))}catch(v){PP(e,r,{then:function(){},status:"rejected",reason:v},pc())}finally{Bo.p=l,c!==null&&d.types!==null&&(c.types=d.types),Yr.T=c}}function Vwe(){}function uU(e,r,a,i){if(e.tag!==5)throw Error(Yt(476));var s=kee(e).queue;Lee(e,s,r,cz,a===null?Vwe:function(){return Cee(e),a(i)})}function kee(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:cz,baseState:cz,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:HZ,lastRenderedState:cz},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:HZ,lastRenderedState:a},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function Cee(e){var r=kee(e);r.next===null&&(r=e.alternate.memoizedState),PP(e,r.next.queue,{},pc())}function uY(){return Qi(GP)}function Iee(){return Wn().memoizedState}function Ree(){return Wn().memoizedState}function Wwe(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var a=pc();e=pz(a);var i=mz(r,e,a);i!==null&&(Vs(i,r,a),CP(i,r,a)),r={cache:XU()},e.payload=r;return}r=r.return}}function Kwe(e,r,a){var i=pc();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},B5(e)?Tee(r,a):(a=VU(e,r,a,i),a!==null&&(Vs(a,e,i),Aee(a,r,i)))}function Pee(e,r,a){var i=pc();PP(e,r,a,i)}function PP(e,r,a,i){var s={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(B5(e))Tee(r,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=r.lastRenderedReducer,l!==null))try{var c=r.lastRenderedState,d=l(c,a);if(s.hasEagerState=!0,s.eagerState=d,ql(d,c))return D5(e,r,s,0),ja===null&&E5(),!1}catch(m){}finally{}if(a=VU(e,r,s,i),a!==null)return Vs(a,e,i),Aee(a,r,i),!0}return!1}function dY(e,r,a,i){if(i={lane:2,revertLane:yY(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},B5(e)){if(r)throw Error(Yt(479))}else r=VU(e,a,i,2),r!==null&&Vs(r,e,2)}function B5(e){var r=e.alternate;return e===fo||r!==null&&r===fo}function Tee(e,r){Sk=Z5=!0;var a=e.pending;a===null?r.next=r:(r.next=a.next,a.next=r),e.pending=r}function Aee(e,r,a){if((a&4194048)!==0){var i=r.lanes;i&=e.pendingLanes,a|=i,r.lanes=a,M$(e,a)}}var VP={readContext:Qi,use:F5,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useLayoutEffect:Sn,useInsertionEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useSyncExternalStore:Sn,useId:Sn,useHostTransitionStatus:Sn,useFormState:Sn,useActionState:Sn,useOptimistic:Sn,useMemoCache:Sn,useCacheRefresh:Sn};VP.useEffectEvent=Sn;var Eee={readContext:Qi,use:F5,useCallback:function(e,r){return as().memoizedState=[e,r===void 0?null:r],e},useContext:Qi,useEffect:yJ,useImperativeHandle:function(e,r,a){a=a!==null&&a!==void 0?a.concat([e]):null,WN(4194308,4,_ee.bind(null,r,e),a)},useLayoutEffect:function(e,r){return WN(4194308,4,e,r)},useInsertionEffect:function(e,r){WN(4,2,e,r)},useMemo:function(e,r){var a=as();r=r===void 0?null:r;var i=e();if(vz){FM(!0);try{e()}finally{FM(!1)}}return a.memoizedState=[i,r],i},useReducer:function(e,r,a){var i=as();if(a!==void 0){var s=a(r);if(vz){FM(!0);try{a(r)}finally{FM(!1)}}}else s=r;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=Kwe.bind(null,fo,e),[i.memoizedState,e]},useRef:function(e){var r=as();return e={current:e},r.memoizedState=e},useState:function(e){e=lU(e);var r=e.queue,a=Pee.bind(null,fo,r);return r.dispatch=a,[e.memoizedState,a]},useDebugValue:lY,useDeferredValue:function(e,r){var a=as();return cY(a,e,r)},useTransition:function(){var e=lU(!1);return e=Lee.bind(null,fo,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,a){var i=fo,s=as();if(zo){if(a===void 0)throw Error(Yt(407));a=a()}else{if(a=r(),ja===null)throw Error(Yt(349));(_o&127)!==0||see(i,r,a)}s.memoizedState=a;var l={value:a,getSnapshot:r};return s.queue=l,yJ(cee.bind(null,i,l,e),[e]),i.flags|=2048,Tk(9,{destroy:void 0},lee.bind(null,i,l,a,r),null),a},useId:function(){var e=as(),r=ja.identifierPrefix;if(zo){var a=tZ,i=eZ;a=(i&~(1<<32-Yl(i)-1)).toString(32)+a,r="_"+r+"R_"+a,a=p5++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=Bwe++,r="_"+r+"r_"+a.toString(32)+"_";return e.memoizedState=r},useHostTransitionStatus:uY,useFormState:MJ,useActionState:MJ,useOptimistic:function(e){var r=as();r.memoizedState=r.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=dY.bind(null,fo,!0,a),a.dispatch=r,[e,r]},useMemoCache:iY,useCacheRefresh:function(){return as().memoizedState=Wwe.bind(null,fo)},useEffectEvent:function(e){var r=as(),a={impl:e};return r.memoizedState=a,function(){if((jo&2)!==0)throw Error(Yt(440));return a.impl.apply(void 0,arguments)}}},ZY={readContext:Qi,use:F5,useCallback:wee,useContext:Qi,useEffect:sY,useImperativeHandle:bee,useInsertionEffect:vee,useLayoutEffect:yee,useMemo:zee,useReducer:VN,useRef:Mee,useState:function(){return VN(HZ)},useDebugValue:lY,useDeferredValue:function(e,r){var a=Wn();return See(a,_a.memoizedState,e,r)},useTransition:function(){var e=VN(HZ)[0],r=Wn().memoizedState;return[typeof e==="boolean"?e:o2(e),r]},useSyncExternalStore:fee,useId:Iee,useHostTransitionStatus:uY,useFormState:xJ,useActionState:xJ,useOptimistic:function(e,r){var a=Wn();return Zee(a,_a,e,r)},useMemoCache:iY,useCacheRefresh:Ree};ZY.useEffectEvent=xee;var Dee={readContext:Qi,use:F5,useCallback:wee,useContext:Qi,useEffect:sY,useImperativeHandle:bee,useInsertionEffect:vee,useLayoutEffect:yee,useMemo:zee,useReducer:x6,useRef:Mee,useState:function(){return x6(HZ)},useDebugValue:lY,useDeferredValue:function(e,r){var a=Wn();return _a===null?cY(a,e,r):See(a,_a.memoizedState,e,r)},useTransition:function(){var e=x6(HZ)[0],r=Wn().memoizedState;return[typeof e==="boolean"?e:o2(e),r]},useSyncExternalStore:fee,useId:Iee,useHostTransitionStatus:uY,useFormState:vJ,useActionState:vJ,useOptimistic:function(e,r){var a=Wn();if(_a!==null)return Zee(a,_a,e,r);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:iY,useCacheRefresh:Ree};Dee.useEffectEvent=xee;function v6(e,r,a,i){r=e.memoizedState,a=a(i,r),a=a===null||a===void 0?r:fn({},r,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var dU={enqueueSetState:function(e,r,a){e=e._reactInternals;var i=pc(),s=pz(i);s.payload=r,a!==void 0&&a!==null&&(s.callback=a),r=mz(e,s,i),r!==null&&(Vs(r,e,i),CP(r,e,i))},enqueueReplaceState:function(e,r,a){e=e._reactInternals;var i=pc(),s=pz(i);s.tag=1,s.payload=r,a!==void 0&&a!==null&&(s.callback=a),r=mz(e,s,i),r!==null&&(Vs(r,e,i),CP(r,e,i))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var a=pc(),i=pz(a);i.tag=2,r!==void 0&&r!==null&&(i.callback=r),r=mz(e,i,a),r!==null&&(Vs(r,e,a),CP(r,e,a))}};function _J(e,r,a,i,s,l,c){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(i,l,c):r.prototype&&r.prototype.isPureReactComponent?!BP(a,i)||!BP(s,l):!0}function bJ(e,r,a,i){e=r.state,typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps(a,i),typeof r.UNSAFE_componentWillReceiveProps==="function"&&r.UNSAFE_componentWillReceiveProps(a,i),r.state!==e&&dU.enqueueReplaceState(r,r.state,null)}function yz(e,r){var a=r;if("ref"in r){a={};for(var i in r)i!=="ref"&&(a[i]=r[i])}if(e=e.defaultProps){a===r&&(a=fn({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Gwe(e){i5(e)}function Xwe(e){console.error(e)}function Qwe(e){i5(e)}function m5(e,r){try{var a=e.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(i){setTimeout(function(){throw i})}}function wJ(e,r,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ZU(e,r,a){return a=pz(a),a.tag=3,a.payload={element:null},a.callback=function(){m5(e,r)},a}function Oee(e){return e=pz(e),e.tag=3,e}function Nee(e,r,a,i){var s=a.type.getDerivedStateFromError;if(typeof s==="function"){var l=i.value;e.payload=function(){return s(l)},e.callback=function(){wJ(r,a,i)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch==="function"&&(e.callback=function(){wJ(r,a,i),typeof s!=="function"&&(VM===null?VM=new Set([this]):VM.add(this));var d=i.stack;this.componentDidCatch(i.value,{componentStack:d!==null?d:""})})}function Jwe(e,r,a,i,s){if(a.flags|=32768,i!==null&&typeof i==="object"&&typeof i.then==="function"){if(r=a.alternate,r!==null&&jk(r,a,s,!0),a=Hl.current,a!==null){switch(a.tag){case 31:case 13:return dc===null?v5():a.alternate===null&&Ln===0&&(Ln=3),a.flags&=-257,a.flags|=65536,a.lanes=s,i===c5?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([i]):r.add(i),R6(e,i,s)),!1;case 22:return a.flags|=65536,i===c5?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([i]):a.add(i)),R6(e,i,s)),!1}throw Error(Yt(435,a.tag))}return R6(e,i,s),v5(),!1}if(zo)return r=Hl.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=s,i!==eU&&(e=Error(Yt(422),{cause:i}),YP(cc(e,a)))):(i!==eU&&(r=Error(Yt(423),{cause:i}),YP(cc(r,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=cc(i,a),s=ZU(e.stateNode,i,s),M6(e,s),Ln!==4&&(Ln=2)),!1;var l=Error(Yt(520),{cause:i});if(l=cc(l,a),EP===null?EP=[l]:EP.push(l),Ln!==4&&(Ln=2),r===null)return!0;i=cc(i,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=ZU(a.stateNode,i,e),M6(a,e),!1;case 1:if(r=a.type,l=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError==="function"||l!==null&&typeof l.componentDidCatch==="function"&&(VM===null||!VM.has(l))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Oee(s),Nee(s,e,a,i),M6(a,s),!1}a=a.return}while(a!==null);return!1}var pY=Error(Yt(461)),ci=!1;function Vi(e,r,a,i){r.child=e===null?tee(r,null,a,i):xz(r,e.child,a,i)}function zJ(e,r,a,i,s){a=a.render;var l=r.ref;if("ref"in i){var c={};for(var d in i)d!=="ref"&&(c[d]=i[d])}else c=i;if(Mz(r),i=rY(e,r,a,c,l,s),d=oY(),e!==null&&!ci)return aY(e,r,s),VZ(e,r,s);return zo&&d&&KU(r),r.flags|=1,Vi(e,r,i,s),r.child}function SJ(e,r,a,i,s){if(e===null){var l=a.type;if(typeof l==="function"&&!WU(l)&&l.defaultProps===void 0&&a.compare===null)return r.tag=15,r.type=l,Fee(e,r,l,i,s);return e=qN(a.type,null,i,r,r.mode,s),e.ref=r.ref,e.return=r,r.child=e}if(l=e.child,!mY(e,s)){var c=l.memoizedProps;if(a=a.compare,a=a!==null?a:BP,a(c,i)&&e.ref===r.ref)return VZ(e,r,s)}return r.flags|=1,e=jZ(l,i),e.ref=r.ref,e.return=r,r.child=e}function Fee(e,r,a,i,s){if(e!==null){var l=e.memoizedProps;if(BP(l,i)&&e.ref===r.ref)if(ci=!1,r.pendingProps=i=l,mY(e,s))(e.flags&131072)!==0&&(ci=!0);else return r.lanes=e.lanes,VZ(e,r,s)}return pU(e,r,a,i,s)}function jee(e,r,a,i){var s=i.children,l=e!==null?e.memoizedState:null;if(e===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((r.flags&128)!==0){if(l=l!==null?l.baseLanes|a:a,e!==null){i=r.child=e.child;for(s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~l}else i=0,r.child=null;return LJ(e,r,l,a,i)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&HN(r,l!==null?l.cachePool:null),l!==null?mJ(r,l):fU(),aee(r);else return i=r.lanes=536870912,LJ(e,r,l!==null?l.baseLanes|a:a,a,i)}else l!==null?(HN(r,l.cachePool),mJ(r,l),OM(r),r.memoizedState=null):(e!==null&&HN(r,null),fU(),OM(r));return Vi(e,r,s,a),r.child}function yP(e,r){return e!==null&&e.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function LJ(e,r,a,i,s){var l=QU();return l=l===null?null:{parent:li._currentValue,pool:l},r.memoizedState={baseLanes:a,cachePool:l},e!==null&&HN(r,null),fU(),aee(r),e!==null&&jk(e,r,i,!0),r.childLanes=s,null}function KN(e,r){return r=h5({mode:r.mode,children:r.children},e.mode),r.ref=e.ref,e.child=r,r.return=e,r}function kJ(e,r,a){return xz(r,e.child,null,a),e=KN(r,r.pendingProps),e.flags|=2,Zl(r),r.memoizedState=null,e}function $we(e,r,a){var i=r.pendingProps,s=(r.flags&128)!==0;if(r.flags&=-129,e===null){if(zo){if(i.mode==="hidden")return e=KN(r,i),r.lanes=536870912,yP(null,e);if(sU(r),(e=en)?(e=Tte(e,uc),e=e!==null&&e.data==="&"?e:null,e!==null&&(r.memoizedState={dehydrated:e,treeContext:QM!==null?{id:eZ,overflow:tZ}:null,retryLane:536870912,hydrationErrors:null},a=K$(e),a.return=r,r.child=a,Gi=r,en=null)):e=null,e===null)throw JM(r);return r.lanes=536870912,null}return KN(r,i)}var l=e.memoizedState;if(l!==null){var c=l.dehydrated;if(sU(r),s)if(r.flags&256)r.flags&=-257,r=kJ(e,r,a);else if(r.memoizedState!==null)r.child=e.child,r.flags|=128,r=null;else throw Error(Yt(558));else if(ci||jk(e,r,a,!1),s=(a&e.childLanes)!==0,ci||s){if(i=ja,i!==null&&(c=x$(i,a),c!==0&&c!==l.retryLane))throw l.retryLane=c,zz(e,c),Vs(i,e,c),pY;v5(),r=kJ(e,r,a)}else e=l.treeContext,en=mc(c.nextSibling),Gi=r,zo=!0,HM=null,uc=!1,e!==null&&X$(r,e),r=KN(r,i),r.flags|=4096;return r}return e=jZ(e.child,{mode:i.mode,children:i.children}),e.ref=r.ref,r.child=e,e.return=r,e}function GN(e,r){var a=r.ref;if(a===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(Yt(284));if(e===null||e.ref!==a)r.flags|=4194816}}function pU(e,r,a,i,s){if(Mz(r),a=rY(e,r,a,i,void 0,s),i=oY(),e!==null&&!ci)return aY(e,r,s),VZ(e,r,s);return zo&&i&&KU(r),r.flags|=1,Vi(e,r,a,s),r.child}function CJ(e,r,a,i,s,l){if(Mz(r),r.updateQueue=null,a=iee(r,i,a,s),nee(e),i=oY(),e!==null&&!ci)return aY(e,r,l),VZ(e,r,l);return zo&&i&&KU(r),r.flags|=1,Vi(e,r,a,l),r.child}function IJ(e,r,a,i,s){if(Mz(r),r.stateNode===null){var l=gk,c=a.contextType;typeof c==="object"&&c!==null&&(l=Qi(c)),l=new a(i,l),r.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=dU,r.stateNode=l,l._reactInternals=r,l=r.stateNode,l.props=i,l.state=r.memoizedState,l.refs={},$U(r),c=a.contextType,l.context=typeof c==="object"&&c!==null?Qi(c):gk,l.state=r.memoizedState,c=a.getDerivedStateFromProps,typeof c==="function"&&(v6(r,a,c,i),l.state=r.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof l.getSnapshotBeforeUpdate==="function"||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(c=l.state,typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount(),c!==l.state&&dU.enqueueReplaceState(l,l.state,null),RP(r,i,l,s),IP(),l.state=r.memoizedState),typeof l.componentDidMount==="function"&&(r.flags|=4194308),i=!0}else if(e===null){l=r.stateNode;var d=r.memoizedProps,m=yz(a,d);l.props=m;var g=l.context,x=a.contextType;c=gk,typeof x==="object"&&x!==null&&(c=Qi(x));var v=a.getDerivedStateFromProps;x=typeof v==="function"||typeof l.getSnapshotBeforeUpdate==="function",d=r.pendingProps!==d,x||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(d||g!==c)&&bJ(r,l,i,c),AM=!1;var b=r.memoizedState;l.state=b,RP(r,i,l,s),IP(),g=r.memoizedState,d||b!==g||AM?(typeof v==="function"&&(v6(r,a,v,i),g=r.memoizedState),(m=AM||_J(r,a,m,i,b,g,c))?(x||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount==="function"&&(r.flags|=4194308)):(typeof l.componentDidMount==="function"&&(r.flags|=4194308),r.memoizedProps=i,r.memoizedState=g),l.props=i,l.state=g,l.context=c,i=m):(typeof l.componentDidMount==="function"&&(r.flags|=4194308),i=!1)}else{l=r.stateNode,nU(e,r),c=r.memoizedProps,x=yz(a,c),l.props=x,v=r.pendingProps,b=l.context,g=a.contextType,m=gk,typeof g==="object"&&g!==null&&(m=Qi(g)),d=a.getDerivedStateFromProps,(g=typeof d==="function"||typeof l.getSnapshotBeforeUpdate==="function")||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(c!==v||b!==m)&&bJ(r,l,i,m),AM=!1,b=r.memoizedState,l.state=b,RP(r,i,l,s),IP();var _=r.memoizedState;c!==v||b!==_||AM||e!==null&&e.dependencies!==null&&l5(e.dependencies)?(typeof d==="function"&&(v6(r,a,d,i),_=r.memoizedState),(x=AM||_J(r,a,x,i,b,_,m)||e!==null&&e.dependencies!==null&&l5(e.dependencies))?(g||typeof l.UNSAFE_componentWillUpdate!=="function"&&typeof l.componentWillUpdate!=="function"||(typeof l.componentWillUpdate==="function"&&l.componentWillUpdate(i,_,m),typeof l.UNSAFE_componentWillUpdate==="function"&&l.UNSAFE_componentWillUpdate(i,_,m)),typeof l.componentDidUpdate==="function"&&(r.flags|=4),typeof l.getSnapshotBeforeUpdate==="function"&&(r.flags|=1024)):(typeof l.componentDidUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=1024),r.memoizedProps=i,r.memoizedState=_),l.props=i,l.state=_,l.context=m,i=x):(typeof l.componentDidUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=1024),i=!1)}return l=i,GN(e,r),i=(r.flags&128)!==0,l||i?(l=r.stateNode,a=i&&typeof a.getDerivedStateFromError!=="function"?null:l.render(),r.flags|=1,e!==null&&i?(r.child=xz(r,e.child,null,s),r.child=xz(r,null,a,s)):Vi(e,r,a,s),r.memoizedState=l.state,e=r.child):e=VZ(e,r,s),e}function RJ(e,r,a,i){return gz(),r.flags|=256,Vi(e,r,a,i),r.child}var y6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _6(e){return{baseLanes:e,cachePool:J$()}}function b6(e,r,a){return e=e!==null?e.childLanes&~a:0,r&&(e|=jl),e}function Bee(e,r,a){var i=r.pendingProps,s=!1,l=(r.flags&128)!==0,c;if((c=l)||(c=e!==null&&e.memoizedState===null?!1:(Vn.current&2)!==0),c&&(s=!0,r.flags&=-129),c=(r.flags&32)!==0,r.flags&=-33,e===null){if(zo){if(s?DM(r):OM(r),(e=en)?(e=Tte(e,uc),e=e!==null&&e.data!=="&"?e:null,e!==null&&(r.memoizedState={dehydrated:e,treeContext:QM!==null?{id:eZ,overflow:tZ}:null,retryLane:536870912,hydrationErrors:null},a=K$(e),a.return=r,r.child=a,Gi=r,en=null)):e=null,e===null)throw JM(r);return IU(e)?r.lanes=32:r.lanes=536870912,null}var d=i.children;if(i=i.fallback,s)return OM(r),s=r.mode,d=h5({mode:"hidden",children:d},s),i=uz(i,s,a,null),d.return=r,i.return=r,d.sibling=i,r.child=d,i=r.child,i.memoizedState=_6(a),i.childLanes=b6(e,c,a),r.memoizedState=y6,yP(null,i);return DM(r),mU(r,d)}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(l)r.flags&256?(DM(r),r.flags&=-257,r=w6(e,r,a)):r.memoizedState!==null?(OM(r),r.child=e.child,r.flags|=128,r=null):(OM(r),d=i.fallback,s=r.mode,i=h5({mode:"visible",children:i.children},s),d=uz(d,s,a,null),d.flags|=2,i.return=r,d.return=r,i.sibling=d,r.child=i,xz(r,e.child,null,a),i=r.child,i.memoizedState=_6(a),i.childLanes=b6(e,c,a),r.memoizedState=y6,r=yP(null,i));else if(DM(r),IU(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var g=c.dgst;c=g,i=Error(Yt(419)),i.stack="",i.digest=c,YP({value:i,source:null,stack:null}),r=w6(e,r,a)}else if(ci||jk(e,r,a,!1),c=(a&e.childLanes)!==0,ci||c){if(c=ja,c!==null&&(i=x$(c,a),i!==0&&i!==m.retryLane))throw m.retryLane=i,zz(e,i),Vs(c,e,i),pY;CU(d)||v5(),r=w6(e,r,a)}else CU(d)?(r.flags|=192,r.child=e.child,r=null):(e=m.treeContext,en=mc(d.nextSibling),Gi=r,zo=!0,HM=null,uc=!1,e!==null&&X$(r,e),r=mU(r,i.children),r.flags|=4096);return r}if(s)return OM(r),d=i.fallback,s=r.mode,m=e.child,g=m.sibling,i=jZ(m,{mode:"hidden",children:i.children}),i.subtreeFlags=m.subtreeFlags&65011712,g!==null?d=jZ(g,d):(d=uz(d,s,a,null),d.flags|=2),d.return=r,i.return=r,i.sibling=d,r.child=i,yP(null,i),i=r.child,d=e.child.memoizedState,d===null?d=_6(a):(s=d.cachePool,s!==null?(m=li._currentValue,s=s.parent!==m?{parent:m,pool:m}:s):s=J$(),d={baseLanes:d.baseLanes|a,cachePool:s}),i.memoizedState=d,i.childLanes=b6(e,c,a),r.memoizedState=y6,yP(e.child,i);return DM(r),a=e.child,e=a.sibling,a=jZ(a,{mode:"visible",children:i.children}),a.return=r,a.sibling=null,e!==null&&(c=r.deletions,c===null?(r.deletions=[e],r.flags|=16):c.push(e)),r.child=a,r.memoizedState=null,a}function mU(e,r){return r=h5({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function h5(e,r){return e=zl(22,e,null,r),e.lanes=0,e}function w6(e,r,a){return xz(r,e.child,null,a),e=mU(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function PJ(e,r,a){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r),rU(e.return,r,a)}function z6(e,r,a,i,s,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:s,treeForkCount:l}:(c.isBackwards=r,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=a,c.tailMode=s,c.treeForkCount=l)}function Uee(e,r,a){var i=r.pendingProps,s=i.revealOrder,l=i.tail;i=i.children;var c=Vn.current,d=(c&2)!==0;if(d?(c=c&1|2,r.flags|=128):c&=1,Va(Vn,c),Vi(e,r,i,a),i=zo?UP:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&PJ(e,a,r);else if(e.tag===19)PJ(e,a,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":a=r.child;for(s=null;a!==null;)e=a.alternate,e!==null&&d5(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=r.child,r.child=null):(s=a.sibling,a.sibling=null),z6(r,!1,s,a,l,i);break;case"backwards":case"unstable_legacy-backwards":a=null,s=r.child;for(r.child=null;s!==null;){if(e=s.alternate,e!==null&&d5(e)===null){r.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}z6(r,!0,a,null,l,i);break;case"together":z6(r,!1,null,null,void 0,i);break;default:r.memoizedState=null}return r.child}function VZ(e,r,a){if(e!==null&&(r.dependencies=e.dependencies),e8|=r.lanes,(a&r.childLanes)===0)if(e!==null){if(jk(e,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(Yt(153));if(r.child!==null){e=r.child,a=jZ(e,e.pendingProps),r.child=a;for(a.return=r;e.sibling!==null;)e=e.sibling,a=a.sibling=jZ(e,e.pendingProps),a.return=r;a.sibling=null}return r.child}function mY(e,r){if((e.lanes&r)!==0)return!0;return e=e.dependencies,e!==null&&l5(e)?!0:!1}function e0e(e,r,a){switch(r.tag){case 3:r5(r,r.stateNode.containerInfo),EM(r,li,e.memoizedState.cache),gz();break;case 27:case 5:Y6(r);break;case 4:r5(r,r.stateNode.containerInfo);break;case 10:EM(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,sU(r),null;break;case 13:var i=r.memoizedState;if(i!==null){if(i.dehydrated!==null)return DM(r),r.flags|=128,null;if((a&r.child.childLanes)!==0)return Bee(e,r,a);return DM(r),e=VZ(e,r,a),e!==null?e.sibling:null}DM(r);break;case 19:var s=(e.flags&128)!==0;if(i=(a&r.childLanes)!==0,i||(jk(e,r,a,!1),i=(a&r.childLanes)!==0),s){if(i)return Uee(e,r,a);r.flags|=128}if(s=r.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Va(Vn,Vn.current),i)break;else return null;case 22:return r.lanes=0,jee(e,r,a,r.pendingProps);case 24:EM(r,li,e.memoizedState.cache)}return VZ(e,r,a)}function Yee(e,r,a){if(e!==null)if(e.memoizedProps!==r.pendingProps)ci=!0;else{if(!mY(e,a)&&(r.flags&128)===0)return ci=!1,e0e(e,r,a);ci=(e.flags&131072)!==0?!0:!1}else ci=!1,zo&&(r.flags&1048576)!==0&&G$(r,UP,r.index);switch(r.lanes=0,r.tag){case 16:e:{var i=r.pendingProps;if(e=sz(r.elementType),r.type=e,typeof e==="function")WU(e)?(i=yz(e,i),r.tag=1,r=IJ(null,r,e,i,a)):(r.tag=0,r=pU(null,r,e,i,a));else{if(e!==void 0&&e!==null){var s=e.$$typeof;if(s===AU){r.tag=11,r=zJ(null,r,e,i,a);break e}else if(s===EU){r.tag=14,r=SJ(null,r,e,i,a);break e}}throw r=B6(e)||e,Error(Yt(306,r,""))}}return r;case 0:return pU(e,r,r.type,r.pendingProps,a);case 1:return i=r.type,s=yz(i,r.pendingProps),IJ(e,r,i,s,a);case 3:e:{if(r5(r,r.stateNode.containerInfo),e===null)throw Error(Yt(387));i=r.pendingProps;var l=r.memoizedState;s=l.element,nU(e,r),RP(r,i,null,a);var c=r.memoizedState;if(i=c.cache,EM(r,li,i),i!==l.cache&&oU(r,[li],a,!0),IP(),i=c.element,l.isDehydrated)if(l={element:i,isDehydrated:!1,cache:c.cache},r.updateQueue.baseState=l,r.memoizedState=l,r.flags&256){r=RJ(e,r,i,a);break e}else if(i!==s){s=cc(Error(Yt(424)),r),YP(s),r=RJ(e,r,i,a);break e}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}en=mc(e.firstChild),Gi=r,zo=!0,HM=null,uc=!0,a=tee(r,null,i,a);for(r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(gz(),i===s){r=VZ(e,r,a);break e}Vi(e,r,i,a)}r=r.child}return r;case 26:return GN(e,r),e===null?(a=JJ(r.type,null,r.pendingProps,null))?r.memoizedState=a:zo||(a=r.type,e=r.pendingProps,i=w5(qM.current).createElement(a),i[Ki]=r,i[Ws]=e,$i(i,a,e),Ti(i),r.stateNode=i):r.memoizedState=JJ(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return Y6(r),e===null&&zo&&(i=r.stateNode=Ate(r.type,r.pendingProps,qM.current),Gi=r,uc=!0,s=en,r8(r.type)?(RU=s,en=mc(i.firstChild)):en=s),Vi(e,r,r.pendingProps.children,a),GN(e,r),e===null&&(r.flags|=4194304),r.child;case 5:if(e===null&&zo){if(s=i=en)i=k0e(i,r.type,r.pendingProps,uc),i!==null?(r.stateNode=i,Gi=r,en=mc(i.firstChild),uc=!1,s=!0):s=!1;s||JM(r)}return Y6(r),s=r.type,l=r.pendingProps,c=e!==null?e.memoizedProps:null,i=l.children,LU(s,l)?i=null:c!==null&&LU(s,c)&&(r.flags|=32),r.memoizedState!==null&&(s=rY(e,r,Uwe,null,null,a),GP._currentValue=s),GN(e,r),Vi(e,r,i,a),r.child;case 6:if(e===null&&zo){if(e=a=en)a=C0e(a,r.pendingProps,uc),a!==null?(r.stateNode=a,Gi=r,en=null,e=!0):e=!1;e||JM(r)}return null;case 13:return Bee(e,r,a);case 4:return r5(r,r.stateNode.containerInfo),i=r.pendingProps,e===null?r.child=xz(r,null,i,a):Vi(e,r,i,a),r.child;case 11:return zJ(e,r,r.type,r.pendingProps,a);case 7:return Vi(e,r,r.pendingProps,a),r.child;case 8:return Vi(e,r,r.pendingProps.children,a),r.child;case 12:return Vi(e,r,r.pendingProps.children,a),r.child;case 10:return i=r.pendingProps,EM(r,r.type,i.value),Vi(e,r,i.children,a),r.child;case 9:return s=r.type._context,i=r.pendingProps.children,Mz(r),s=Qi(s),i=i(s),r.flags|=1,Vi(e,r,i,a),r.child;case 14:return SJ(e,r,r.type,r.pendingProps,a);case 15:return Fee(e,r,r.type,r.pendingProps,a);case 19:return Uee(e,r,a);case 31:return $we(e,r,a);case 22:return jee(e,r,a,r.pendingProps);case 24:return Mz(r),i=Qi(li),e===null?(s=QU(),s===null&&(s=ja,l=XU(),s.pooledCache=l,l.refCount++,l!==null&&(s.pooledCacheLanes|=a),s=l),r.memoizedState={parent:i,cache:s},$U(r),EM(r,li,s)):((e.lanes&a)!==0&&(nU(e,r),RP(r,null,null,a),IP()),s=e.memoizedState,l=r.memoizedState,s.parent!==i?(s={parent:i,cache:i},r.memoizedState=s,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=s),EM(r,li,i)):(i=l.cache,EM(r,li,i),i!==s.cache&&oU(r,[li],a,!0))),Vi(e,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(Yt(156,r.tag))}function RZ(e){e.flags|=4}function S6(e,r,a,i,s){if(r=(e.mode&32)!==0)r=!1;if(r){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Zte())e.flags|=8192;else throw Zz=c5,JU}else e.flags&=-16777217}function TJ(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ote(r))if(Zte())e.flags|=8192;else throw Zz=c5,JU}function AN(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?h$():536870912,e.lanes|=r,Ak|=r)}function ZP(e,r){if(!zo)switch(e.tailMode){case"hidden":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function $a(e){var r=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(r)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=a,r}function t0e(e,r,a){var i=r.pendingProps;switch(GU(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $a(r),null;case 1:return $a(r),null;case 3:if(a=r.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),BZ(li),kk(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)ak(r)?RZ(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,g6());return $a(r),null;case 26:var{type:s,memoizedState:l}=r;return e===null?(RZ(r),l!==null?($a(r),TJ(r,l)):($a(r),S6(r,s,null,i,a))):l?l!==e.memoizedState?(RZ(r),$a(r),TJ(r,l)):($a(r),r.flags&=-16777217):(e=e.memoizedProps,e!==i&&RZ(r),$a(r),S6(r,s,e,i,a)),null;case 27:if(o5(r),a=qM.current,s=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==i&&RZ(r);else{if(!i){if(r.stateNode===null)throw Error(Yt(166));return $a(r),null}e=oZ.current,ak(r)?sJ(r,e):(e=Ate(s,i,a),r.stateNode=e,RZ(r))}return $a(r),null;case 5:if(o5(r),s=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==i&&RZ(r);else{if(!i){if(r.stateNode===null)throw Error(Yt(166));return $a(r),null}if(l=oZ.current,ak(r))sJ(r,l);else{var c=w5(qM.current);switch(l){case 1:l=c.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:l=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":l=c.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":l=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":l=c.createElement("div"),l.innerHTML="<script></script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof i.is==="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?l.multiple=!0:i.size&&(l.size=i.size);break;default:l=typeof i.is==="string"?c.createElement(s,{is:i.is}):c.createElement(s)}}l[Ki]=r,l[Ws]=i;e:for(c=r.child;c!==null;){if(c.tag===5||c.tag===6)l.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r.stateNode=l;e:switch($i(l,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&RZ(r)}}return $a(r),S6(r,r.type,e===null?null:e.memoizedProps,r.pendingProps,a),null;case 6:if(e&&r.stateNode!=null)e.memoizedProps!==i&&RZ(r);else{if(typeof i!=="string"&&r.stateNode===null)throw Error(Yt(166));if(e=qM.current,ak(r)){if(e=r.stateNode,a=r.memoizedProps,i=null,s=Gi,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[Ki]=r,e=e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Ite(e.nodeValue,a)?!0:!1,e||JM(r,!0)}else e=w5(e).createTextNode(i),e[Ki]=r,r.stateNode=e}return $a(r),null;case 31:if(a=r.memoizedState,e===null||e.memoizedState!==null){if(i=ak(r),a!==null){if(e===null){if(!i)throw Error(Yt(318));if(e=r.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Yt(557));e[Ki]=r}else gz(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;$a(r),e=!1}else a=g6(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(r.flags&256)return Zl(r),r;return Zl(r),null}if((r.flags&128)!==0)throw Error(Yt(558))}return $a(r),null;case 13:if(i=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ak(r),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(Yt(318));if(s=r.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Yt(317));s[Ki]=r}else gz(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;$a(r),s=!1}else s=g6(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s){if(r.flags&256)return Zl(r),r;return Zl(r),null}}if(Zl(r),(r.flags&128)!==0)return r.lanes=a,r;return a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=r.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048)),a!==e&&a&&(r.child.flags|=8192),AN(r,r.updateQueue),$a(r),null;case 4:return kk(),e===null&&kte(r.stateNode.containerInfo),$a(r),null;case 10:return BZ(r.type),$a(r),null;case 19:if(Ei(Vn),i=r.memoizedState,i===null)return $a(r),null;if(s=(r.flags&128)!==0,l=i.rendering,l===null)if(s)ZP(i,!1);else{if(Ln!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(l=d5(e),l!==null){r.flags|=128,ZP(i,!1),e=l.updateQueue,r.updateQueue=e,AN(r,e),r.subtreeFlags=0,e=a;for(a=r.child;a!==null;)W$(a,e),a=a.sibling;return Va(Vn,Vn.current&1|2),zo&&EZ(r,i.treeForkCount),r.child}e=e.sibling}i.tail!==null&&Bl()>M5&&(r.flags|=128,s=!0,ZP(i,!1),r.lanes=4194304)}else{if(!s)if(e=d5(l),e!==null){if(r.flags|=128,s=!0,e=e.updateQueue,r.updateQueue=e,AN(r,e),ZP(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!zo)return $a(r),null}else 2*Bl()-i.renderingStartTime>M5&&a!==536870912&&(r.flags|=128,s=!0,ZP(i,!1),r.lanes=4194304);i.isBackwards?(l.sibling=r.child,r.child=l):(e=i.last,e!==null?e.sibling=l:r.child=l,i.last=l)}if(i.tail!==null)return e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Bl(),e.sibling=null,a=Vn.current,Va(Vn,s?a&1|2:a&1),zo&&EZ(r,i.treeForkCount),e;return $a(r),null;case 22:case 23:return Zl(r),eY(),i=r.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(r.flags|=8192):i&&(r.flags|=8192),i?(a&536870912)!==0&&(r.flags&128)===0&&($a(r),r.subtreeFlags&6&&(r.flags|=8192)):$a(r),a=r.updateQueue,a!==null&&AN(r,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048),e!==null&&Ei(dz),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),BZ(li),$a(r),null;case 25:return null;case 30:return null}throw Error(Yt(156,r.tag))}function r0e(e,r){switch(GU(r),r.tag){case 1:return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return BZ(li),kk(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 26:case 27:case 5:return o5(r),null;case 31:if(r.memoizedState!==null){if(Zl(r),r.alternate===null)throw Error(Yt(340));gz()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 13:if(Zl(r),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(Yt(340));gz()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Ei(Vn),null;case 4:return kk(),null;case 10:return BZ(r.type),null;case 22:case 23:return Zl(r),eY(),e!==null&&Ei(dz),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 24:return BZ(li),null;case 25:return null;default:return null}}function qee(e,r){switch(GU(r),r.tag){case 3:BZ(li),kk();break;case 26:case 27:case 5:o5(r);break;case 4:kk();break;case 31:r.memoizedState!==null&&Zl(r);break;case 13:Zl(r);break;case 19:Ei(Vn);break;case 10:BZ(r.type);break;case 22:case 23:Zl(r),eY(),e!==null&&Ei(dz);break;case 24:BZ(li)}}function a2(e,r){try{var a=r.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){i=void 0;var l=a.create,c=a.inst;i=l(),c.destroy=i}a=a.next}while(a!==s)}}catch(d){pa(r,r.return,d)}}function $M(e,r,a){try{var i=r.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var l=s.next;i=l;do{if((i.tag&e)===e){var c=i.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,s=r;var m=a,g=d;try{g()}catch(x){pa(s,m,x)}}}i=i.next}while(i!==l)}}catch(x){pa(r,r.return,x)}}function Hee(e){var r=e.updateQueue;if(r!==null){var a=e.stateNode;try{oee(r,a)}catch(i){pa(e,e.return,i)}}}function Vee(e,r,a){a.props=yz(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){pa(e,r,i)}}function TP(e,r){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a==="function"?e.refCleanup=a(i):a.current=i}}catch(s){pa(e,r,s)}}function rZ(e,r){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i==="function")try{i()}catch(s){pa(e,r,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(s){pa(e,r,s)}else a.current=null}function Wee(e){var{type:r,memoizedProps:a,stateNode:i}=e;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(s){pa(e,e.return,s)}}function L6(e,r,a){try{var i=e.stateNode;_0e(i,e.type,a,r),i[Ws]=r}catch(s){pa(e,e.return,s)}}function Kee(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&r8(e.type)||e.tag===4}function k6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kee(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&r8(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hU(e,r,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||r.onclick!==null||(r.onclick=NZ));else if(i!==4&&(i===27&&r8(e.type)&&(a=e.stateNode,r=null),e=e.child,e!==null))for(hU(e,r,a),e=e.sibling;e!==null;)hU(e,r,a),e=e.sibling}function g5(e,r,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,r?a.insertBefore(e,r):a.appendChild(e);else if(i!==4&&(i===27&&r8(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(g5(e,r,a),e=e.sibling;e!==null;)g5(e,r,a),e=e.sibling}function Gee(e){var{stateNode:r,memoizedProps:a}=e;try{for(var i=e.type,s=r.attributes;s.length;)r.removeAttributeNode(s[0]);$i(r,i,a),r[Ki]=e,r[Ws]=a}catch(l){pa(e,e.return,l)}}var DZ=!1,si=!1,C6=!1,AJ=typeof WeakSet==="function"?WeakSet:Set,Pi=null;function o0e(e,r){if(e=e.containerInfo,zU=k5,e=F$(e),qU(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var s=i.anchorOffset,l=i.focusNode;i=i.focusOffset;try{a.nodeType,l.nodeType}catch(k){a=null;break e}var c=0,d=-1,m=-1,g=0,x=0,v=e,b=null;t:for(;;){for(var _;;){if(v!==a||s!==0&&v.nodeType!==3||(d=c+s),v!==l||i!==0&&v.nodeType!==3||(m=c+i),v.nodeType===3&&(c+=v.nodeValue.length),(_=v.firstChild)===null)break;b=v,v=_}for(;;){if(v===e)break t;if(b===a&&++g===s&&(d=c),b===l&&++x===i&&(m=c),(_=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=_}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;SU={focusedElem:e,selectionRange:a},k5=!1;for(Pi=r;Pi!==null;)if(r=Pi,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,Pi=e;else for(;Pi!==null;){switch(r=Pi,l=r.alternate,e=r.flags,r.tag){case 0:if((e&4)!==0&&(e=r.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&l!==null){e=void 0,a=r,s=l.memoizedProps,l=l.memoizedState,i=a.stateNode;try{var z=yz(a.type,s);e=i.getSnapshotBeforeUpdate(z,l),i.__reactInternalSnapshotBeforeUpdate=e}catch(k){pa(a,a.return,k)}}break;case 3:if((e&1024)!==0){if(e=r.stateNode.containerInfo,a=e.nodeType,a===9)kU(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":kU(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(Yt(163))}if(e=r.sibling,e!==null){e.return=r.return,Pi=e;break}Pi=r.return}}function Xee(e,r,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:TZ(e,a),i&4&&a2(5,a);break;case 1:if(TZ(e,a),i&4)if(e=a.stateNode,r===null)try{e.componentDidMount()}catch(c){pa(a,a.return,c)}else{var s=yz(a.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(s,r,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pa(a,a.return,c)}}i&64&&Hee(a),i&512&&TP(a,a.return);break;case 3:if(TZ(e,a),i&64&&(e=a.updateQueue,e!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{oee(e,r)}catch(c){pa(a,a.return,c)}}break;case 27:r===null&&i&4&&Gee(a);case 26:case 5:TZ(e,a),r===null&&i&4&&Wee(a),i&512&&TP(a,a.return);break;case 12:TZ(e,a);break;case 31:TZ(e,a),i&4&&$ee(e,a);break;case 13:TZ(e,a),i&4&&ete(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=d0e.bind(null,a),I0e(e,a))));break;case 22:if(i=a.memoizedState!==null||DZ,!i){r=r!==null&&r.memoizedState!==null||si,s=DZ;var l=si;DZ=i,(si=r)&&!l?AZ(e,a,(a.subtreeFlags&8772)!==0):TZ(e,a),DZ=s,si=l}break;case 30:break;default:TZ(e,a)}}function Qee(e){var r=e.alternate;r!==null&&(e.alternate=null,Qee(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&NU(r)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var hn=null,Es=!1;function PZ(e,r,a){for(a=a.child;a!==null;)Jee(e,r,a),a=a.sibling}function Jee(e,r,a){if(Ul&&typeof Ul.onCommitFiberUnmount==="function")try{Ul.onCommitFiberUnmount($P,a)}catch(l){}switch(a.tag){case 26:si||rZ(a,r),PZ(e,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:si||rZ(a,r);var i=hn,s=Es;r8(a.type)&&(hn=a.stateNode,Es=!1),PZ(e,r,a),OP(a.stateNode),hn=i,Es=s;break;case 5:si||rZ(a,r);case 6:if(i=hn,s=Es,hn=null,PZ(e,r,a),hn=i,Es=s,hn!==null)if(Es)try{(hn.nodeType===9?hn.body:hn.nodeName==="HTML"?hn.ownerDocument.body:hn).removeChild(a.stateNode)}catch(l){pa(a,r,l)}else try{hn.removeChild(a.stateNode)}catch(l){pa(a,r,l)}break;case 18:hn!==null&&(Es?(e=hn,WJ(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nk(e)):WJ(hn,a.stateNode));break;case 4:i=hn,s=Es,hn=a.stateNode.containerInfo,Es=!0,PZ(e,r,a),hn=i,Es=s;break;case 0:case 11:case 14:case 15:$M(2,a,r),si||$M(4,a,r),PZ(e,r,a);break;case 1:si||(rZ(a,r),i=a.stateNode,typeof i.componentWillUnmount==="function"&&Vee(a,r,i)),PZ(e,r,a);break;case 21:PZ(e,r,a);break;case 22:si=(i=si)||a.memoizedState!==null,PZ(e,r,a),si=i;break;default:PZ(e,r,a)}}function $ee(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nk(e)}catch(a){pa(r,r.return,a)}}}function ete(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nk(e)}catch(a){pa(r,r.return,a)}}function a0e(e){switch(e.tag){case 31:case 13:case 19:var r=e.stateNode;return r===null&&(r=e.stateNode=new AJ),r;case 22:return e=e.stateNode,r=e._retryCache,r===null&&(r=e._retryCache=new AJ),r;default:throw Error(Yt(435,e.tag))}}function EN(e,r){var a=a0e(e);r.forEach(function(i){if(!a.has(i)){a.add(i);var s=Z0e.bind(null,e,i);i.then(s,s)}})}function Ps(e,r){var a=r.deletions;if(a!==null)for(var i=0;i<a.length;i++){var s=a[i],l=e,c=r,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(r8(d.type)){hn=d.stateNode,Es=!1;break e}break;case 5:hn=d.stateNode,Es=!1;break e;case 3:case 4:hn=d.stateNode.containerInfo,Es=!0;break e}d=d.return}if(hn===null)throw Error(Yt(160));Jee(l,c,s),hn=null,Es=!1,l=s.alternate,l!==null&&(l.return=null),s.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)tte(r,e),r=r.sibling}var fu=null;function tte(e,r){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ps(r,e),Ts(e),i&4&&($M(3,e,e.return),a2(3,e),$M(5,e,e.return));break;case 1:Ps(r,e),Ts(e),i&512&&(si||a===null||rZ(a,a.return)),i&64&&DZ&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var s=fu;if(Ps(r,e),Ts(e),i&512&&(si||a===null||rZ(a,a.return)),i&4){var l=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":if(l=s.getElementsByTagName("title")[0],!l||l[e2]||l[Ki]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))l=s.createElement(i),s.head.insertBefore(l,s.querySelector("head > title"));$i(l,i,a),l[Ki]=e,Ti(l),i=l;break e;case"link":var c=e$("link","href",s).get(i+(a.href||""));if(c){for(var d=0;d<c.length;d++)if(l=c[d],l.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&l.getAttribute("rel")===(a.rel==null?null:a.rel)&&l.getAttribute("title")===(a.title==null?null:a.title)&&l.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(d,1);break t}}l=s.createElement(i),$i(l,i,a),s.head.appendChild(l);break;case"meta":if(c=e$("meta","content",s).get(i+(a.content||""))){for(d=0;d<c.length;d++)if(l=c[d],l.getAttribute("content")===(a.content==null?null:""+a.content)&&l.getAttribute("name")===(a.name==null?null:a.name)&&l.getAttribute("property")===(a.property==null?null:a.property)&&l.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&l.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(d,1);break t}}l=s.createElement(i),$i(l,i,a),s.head.appendChild(l);break;default:throw Error(Yt(468,i))}l[Ki]=e,Ti(l),i=l}e.stateNode=i}else t$(s,e.type,e.stateNode);else e.stateNode=$J(s,i,e.memoizedProps);else l!==i?(l===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):l.count--,i===null?t$(s,e.type,e.stateNode):$J(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&L6(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ps(r,e),Ts(e),i&512&&(si||a===null||rZ(a,a.return)),a!==null&&i&4&&L6(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ps(r,e),Ts(e),i&512&&(si||a===null||rZ(a,a.return)),e.flags&32){s=e.stateNode;try{Ik(s,"")}catch(z){pa(e,e.return,z)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,L6(e,s,a!==null?a.memoizedProps:s)),i&1024&&(C6=!0);break;case 6:if(Ps(r,e),Ts(e),i&4){if(e.stateNode===null)throw Error(Yt(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(z){pa(e,e.return,z)}}break;case 3:if(JN=null,s=fu,fu=z5(r.containerInfo),Ps(r,e),fu=s,Ts(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Nk(r.containerInfo)}catch(z){pa(e,e.return,z)}C6&&(C6=!1,rte(e));break;case 4:i=fu,fu=z5(e.stateNode.containerInfo),Ps(r,e),Ts(e),fu=i;break;case 12:Ps(r,e),Ts(e);break;case 31:Ps(r,e),Ts(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,EN(e,i)));break;case 13:Ps(r,e),Ts(e),e.child.flags&8192&&e.memoizedState!==null!==(a!==null&&a.memoizedState!==null)&&(U5=Bl()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,EN(e,i)));break;case 22:s=e.memoizedState!==null;var m=a!==null&&a.memoizedState!==null,g=DZ,x=si;if(DZ=g||s,si=x||m,Ps(r,e),si=x,DZ=g,Ts(e),i&8192)e:for(r=e.stateNode,r._visibility=s?r._visibility&-2:r._visibility|1,s&&(a===null||m||DZ||si||lz(e)),a=null,r=e;;){if(r.tag===5||r.tag===26){if(a===null){m=a=r;try{if(l=m.stateNode,s)c=l.style,typeof c.setProperty==="function"?c.setProperty("display","none","important"):c.display="none";else{d=m.stateNode;var v=m.memoizedProps.style,b=v!==void 0&&v!==null&&v.hasOwnProperty("display")?v.display:null;d.style.display=b==null||typeof b==="boolean"?"":(""+b).trim()}}catch(z){pa(m,m.return,z)}}}else if(r.tag===6){if(a===null){m=r;try{m.stateNode.nodeValue=s?"":m.memoizedProps}catch(z){pa(m,m.return,z)}}}else if(r.tag===18){if(a===null){m=r;try{var _=m.stateNode;s?KJ(_,!0):KJ(m.stateNode,!1)}catch(z){pa(m,m.return,z)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break e;for(;r.sibling===null;){if(r.return===null||r.return===e)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,EN(e,a))));break;case 19:Ps(r,e),Ts(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,EN(e,i)));break;case 30:break;case 21:break;default:Ps(r,e),Ts(e)}}function Ts(e){var r=e.flags;if(r&2){try{for(var a,i=e.return;i!==null;){if(Kee(i)){a=i;break}i=i.return}if(a==null)throw Error(Yt(160));switch(a.tag){case 27:var s=a.stateNode,l=k6(e);g5(e,l,s);break;case 5:var c=a.stateNode;a.flags&32&&(Ik(c,""),a.flags&=-33);var d=k6(e);g5(e,d,c);break;case 3:case 4:var m=a.stateNode.containerInfo,g=k6(e);hU(e,g,m);break;default:throw Error(Yt(161))}}catch(x){pa(e,e.return,x)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function rte(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var r=e;rte(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),e=e.sibling}}function TZ(e,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Xee(e,r.alternate,r),r=r.sibling}function lz(e){for(e=e.child;e!==null;){var r=e;switch(r.tag){case 0:case 11:case 14:case 15:$M(4,r,r.return),lz(r);break;case 1:rZ(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount==="function"&&Vee(r,r.return,a),lz(r);break;case 27:OP(r.stateNode);case 26:case 5:rZ(r,r.return),lz(r);break;case 22:r.memoizedState===null&&lz(r);break;case 30:lz(r);break;default:lz(r)}e=e.sibling}}function AZ(e,r,a){a=a&&(r.subtreeFlags&8772)!==0;for(r=r.child;r!==null;){var i=r.alternate,s=e,l=r,c=l.flags;switch(l.tag){case 0:case 11:case 15:AZ(s,l,a),a2(4,l);break;case 1:if(AZ(s,l,a),i=l,s=i.stateNode,typeof s.componentDidMount==="function")try{s.componentDidMount()}catch(g){pa(i,i.return,g)}if(i=l,s=i.updateQueue,s!==null){var d=i.stateNode;try{var m=s.shared.hiddenCallbacks;if(m!==null)for(s.shared.hiddenCallbacks=null,s=0;s<m.length;s++)ree(m[s],d)}catch(g){pa(i,i.return,g)}}a&&c&64&&Hee(l),TP(l,l.return);break;case 27:Gee(l);case 26:case 5:AZ(s,l,a),a&&i===null&&c&4&&Wee(l),TP(l,l.return);break;case 12:AZ(s,l,a);break;case 31:AZ(s,l,a),a&&c&4&&$ee(s,l);break;case 13:AZ(s,l,a),a&&c&4&&ete(s,l);break;case 22:l.memoizedState===null&&AZ(s,l,a),TP(l,l.return);break;case 30:break;default:AZ(s,l,a)}r=r.sibling}}function hY(e,r){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(e=r.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&r2(a))}function gY(e,r){e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&r2(e))}function iu(e,r,a,i){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ote(e,r,a,i),r=r.sibling}function ote(e,r,a,i){var s=r.flags;switch(r.tag){case 0:case 11:case 15:iu(e,r,a,i),s&2048&&a2(9,r);break;case 1:iu(e,r,a,i);break;case 3:iu(e,r,a,i),s&2048&&(e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&r2(e)));break;case 12:if(s&2048){iu(e,r,a,i),e=r.stateNode;try{var l=r.memoizedProps,c=l.id,d=l.onPostCommit;typeof d==="function"&&d(c,r.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){pa(r,r.return,m)}}else iu(e,r,a,i);break;case 31:iu(e,r,a,i);break;case 13:iu(e,r,a,i);break;case 23:break;case 22:l=r.stateNode,c=r.alternate,r.memoizedState!==null?l._visibility&2?iu(e,r,a,i):AP(e,r):l._visibility&2?iu(e,r,a,i):(l._visibility|=2,ik(e,r,a,i,(r.subtreeFlags&10256)!==0||!1)),s&2048&&hY(c,r);break;case 24:iu(e,r,a,i),s&2048&&gY(r.alternate,r);break;default:iu(e,r,a,i)}}function ik(e,r,a,i,s){s=s&&((r.subtreeFlags&10256)!==0||!1);for(r=r.child;r!==null;){var l=e,c=r,d=a,m=i,g=c.flags;switch(c.tag){case 0:case 11:case 15:ik(l,c,d,m,s),a2(8,c);break;case 23:break;case 22:var x=c.stateNode;c.memoizedState!==null?x._visibility&2?ik(l,c,d,m,s):AP(l,c):(x._visibility|=2,ik(l,c,d,m,s)),s&&g&2048&&hY(c.alternate,c);break;case 24:ik(l,c,d,m,s),s&&g&2048&&gY(c.alternate,c);break;default:ik(l,c,d,m,s)}r=r.sibling}}function AP(e,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=e,i=r,s=i.flags;switch(i.tag){case 22:AP(a,i),s&2048&&hY(i.alternate,i);break;case 24:AP(a,i),s&2048&&gY(i.alternate,i);break;default:AP(a,i)}r=r.sibling}}var _P=8192;function nk(e,r,a){if(e.subtreeFlags&_P)for(e=e.child;e!==null;)ate(e,r,a),e=e.sibling}function ate(e,r,a){switch(e.tag){case 26:nk(e,r,a),e.flags&_P&&e.memoizedState!==null&&U0e(a,fu,e.memoizedState,e.memoizedProps);break;case 5:nk(e,r,a);break;case 3:case 4:var i=fu;fu=z5(e.stateNode.containerInfo),nk(e,r,a),fu=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=_P,_P=16777216,nk(e,r,a),_P=i):nk(e,r,a));break;default:nk(e,r,a)}}function nte(e){var r=e.alternate;if(r!==null&&(e=r.child,e!==null)){r.child=null;do r=e.sibling,e.sibling=null,e=r;while(e!==null)}}function pP(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var i=r[a];Pi=i,fte(i,e)}nte(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ite(e),e=e.sibling}function ite(e){switch(e.tag){case 0:case 11:case 15:pP(e),e.flags&2048&&$M(9,e,e.return);break;case 3:pP(e);break;case 12:pP(e);break;case 22:var r=e.stateNode;e.memoizedState!==null&&r._visibility&2&&(e.return===null||e.return.tag!==13)?(r._visibility&=-3,XN(e)):pP(e);break;default:pP(e)}}function XN(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var i=r[a];Pi=i,fte(i,e)}nte(e)}for(e=e.child;e!==null;){switch(r=e,r.tag){case 0:case 11:case 15:$M(8,r,r.return),XN(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,XN(r));break;default:XN(r)}e=e.sibling}}function fte(e,r){for(;Pi!==null;){var a=Pi;switch(a.tag){case 0:case 11:case 15:$M(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:r2(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Pi=i;else e:for(a=e;Pi!==null;){i=Pi;var s=i.sibling,l=i.return;if(Qee(i),i===a){Pi=null;break e}if(s!==null){s.return=l,Pi=s;break e}Pi=l}}}var n0e={getCacheForType:function(e){var r=Qi(li),a=r.data.get(e);return a===void 0&&(a=e(),r.data.set(e,a)),a},cacheSignal:function(){return Qi(li).controller.signal}},i0e=typeof WeakMap==="function"?WeakMap:Map,jo=0,ja=null,Mo=null,_o=0,da=0,cl=null,BM=!1,Uk=!1,MY=!1,WZ=0,Ln=0,e8=0,hz=0,xY=0,jl=0,Ak=0,EP=null,Ys=null,gU=!1,U5=0,ste=0,M5=1/0,x5=null,VM=null,Si=0,WM=null,Ek=null,UZ=0,MU=0,xU=null,lte=null,DP=0,vU=null;function pc(){return(jo&2)!==0&&_o!==0?_o&-_o:Yr.T!==null?yY():y$()}function cte(){if(jl===0)if((_o&536870912)===0||zo){var e=LN;LN<<=1,(LN&3932160)===0&&(LN=262144),jl=e}else jl=536870912;return e=Hl.current,e!==null&&(e.flags|=32),jl}function Vs(e,r,a){if(e===ja&&(da===2||da===9)||e.cancelPendingCommit!==null)Dk(e,0),UM(e,_o,jl,!1);if(R5(e,a),(jo&2)===0||e!==ja)e===ja&&((jo&2)===0&&(hz|=a),Ln===4&&UM(e,_o,jl,!1)),KZ(e)}function ute(e,r,a){if((jo&6)!==0)throw Error(Yt(327));var i=!a&&(r&127)===0&&(r&e.expiredLanes)===0||ZA(e,r),s=i?l0e(e,r):I6(e,r,!0),l=i;do{if(s===0){Uk&&!i&&UM(e,r,0,!1);break}else{if(a=e.current.alternate,l&&!f0e(a)){s=I6(e,r,!1),l=!1;continue}if(s===2){if(l=r,e.errorRecoveryDisabledLanes&l)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){r=c;e:{var d=e;s=EP;var m=d.current.memoizedState.isDehydrated;if(m&&(Dk(d,c).flags|=256),c=I6(d,c,!1),c!==2){if(MY&&!m){d.errorRecoveryDisabledLanes|=l,hz|=l,s=4;break e}l=Ys,Ys=s,l!==null&&(Ys===null?Ys=l:Ys.push.apply(Ys,l))}s=c}if(l=!1,s!==2)continue}}if(s===1){Dk(e,0),UM(e,r,0,!0);break}e:{switch(i=e,l=s,l){case 0:case 1:throw Error(Yt(345));case 4:if((r&4194048)!==r)break;case 6:UM(i,r,jl,!BM);break e;case 2:Ys=null;break;case 3:case 5:break;default:throw Error(Yt(329))}if((r&62914560)===r&&(s=U5+300-Bl(),10<s)){if(UM(i,r,jl,!BM),I5(i,0,!0)!==0)break e;UZ=r,i.timeoutHandle=Pte(EJ.bind(null,i,a,Ys,x5,gU,r,jl,hz,Ak,BM,l,"Throttled",-0,0),s);break e}EJ(i,a,Ys,x5,gU,r,jl,hz,Ak,BM,l,null,-0,0)}}break}while(1);KZ(e)}function EJ(e,r,a,i,s,l,c,d,m,g,x,v,b,_){if(e.timeoutHandle=-1,v=r.subtreeFlags,v&8192||(v&16785408)===16785408){v={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:NZ},ate(r,l,v);var z=(l&62914560)===l?U5-Bl():(l&4194048)===l?ste-Bl():0;if(z=Y0e(v,z),z!==null){UZ=l,e.cancelPendingCommit=z(OJ.bind(null,e,r,l,a,i,s,c,d,m,x,v,null,b,_)),UM(e,l,c,!g);return}}OJ(e,r,l,a,i,s,c,d,m)}function f0e(e){for(var r=e;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var s=a[i],l=s.getSnapshot;s=s.value;try{if(!ql(l(),s))return!1}catch(c){return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function UM(e,r,a,i){r&=~xY,r&=~hz,e.suspendedLanes|=r,e.pingedLanes&=~r,i&&(e.warmLanes|=r),i=e.expirationTimes;for(var s=r;0<s;){var l=31-Yl(s),c=1<<l;i[l]=-1,s&=~c}a!==0&&g$(e,a,r)}function Y5(){return(jo&6)===0?(n2(0,!1),!1):!0}function vY(){if(Mo!==null){if(da===0)var e=Mo.return;else e=Mo,FZ=Sz=null,nY(e),zk=null,qP=0,e=Mo;for(;e!==null;)qee(e.alternate,e),e=e.return;Mo=null}}function Dk(e,r){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,z0e(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),UZ=0,vY(),ja=e,Mo=a=jZ(e.current,null),_o=r,da=0,cl=null,BM=!1,Uk=ZA(e,r),MY=!1,Ak=jl=xY=hz=e8=Ln=0,Ys=EP=null,gU=!1,(r&8)!==0&&(r|=r&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=r;0<i;){var s=31-Yl(i),l=1<<s;r|=e[s],i&=~l}return WZ=r,E5(),a}function dte(e,r){fo=null,Yr.H=VP,r===Bk||r===O5?(r=ZJ(),da=3):r===JU?(r=ZJ(),da=4):da=r===pY?8:r!==null&&typeof r==="object"&&typeof r.then==="function"?6:1,cl=r,Mo===null&&(Ln=1,m5(e,cc(r,e.current)))}function Zte(){var e=Hl.current;return e===null?!0:(_o&4194048)===_o?dc===null?!0:!1:(_o&62914560)===_o||(_o&536870912)!==0?e===dc:!1}function pte(){var e=Yr.H;return Yr.H=VP,e===null?VP:e}function mte(){var e=Yr.A;return Yr.A=n0e,e}function v5(){Ln=4,BM||(_o&4194048)!==_o&&Hl.current!==null||(Uk=!0),(e8&134217727)===0&&(hz&134217727)===0||ja===null||UM(ja,_o,jl,!1)}function I6(e,r,a){var i=jo;jo|=2;var s=pte(),l=mte();if(ja!==e||_o!==r)x5=null,Dk(e,r);r=!1;var c=Ln;e:do try{if(da!==0&&Mo!==null){var d=Mo,m=cl;switch(da){case 8:vY(),c=6;break e;case 3:case 2:case 9:case 6:Hl.current===null&&(r=!0);var g=da;if(da=0,cl=null,vk(e,d,m,g),a&&Uk){c=0;break e}break;default:g=da,da=0,cl=null,vk(e,d,m,g)}}s0e(),c=Ln;break}catch(x){dte(e,x)}while(1);return r&&e.shellSuspendCounter++,FZ=Sz=null,jo=i,Yr.H=s,Yr.A=l,Mo===null&&(ja=null,_o=0,E5()),c}function s0e(){for(;Mo!==null;)hte(Mo)}function l0e(e,r){var a=jo;jo|=2;var i=pte(),s=mte();ja!==e||_o!==r?(x5=null,M5=Bl()+500,Dk(e,r)):Uk=ZA(e,r);e:do try{if(da!==0&&Mo!==null){r=Mo;var l=cl;t:switch(da){case 1:da=0,cl=null,vk(e,r,l,1);break;case 2:case 9:if(dJ(l)){da=0,cl=null,DJ(r);break}r=function(){da!==2&&da!==9||ja!==e||(da=7),KZ(e)},l.then(r,r);break e;case 3:da=7;break e;case 4:da=5;break e;case 7:dJ(l)?(da=0,cl=null,DJ(r)):(da=0,cl=null,vk(e,r,l,7));break;case 5:var c=null;switch(Mo.tag){case 26:c=Mo.memoizedState;case 5:case 27:var d=Mo;if(c?Ote(c):d.stateNode.complete){da=0,cl=null;var m=d.sibling;if(m!==null)Mo=m;else{var g=d.return;g!==null?(Mo=g,q5(g)):Mo=null}break t}}da=0,cl=null,vk(e,r,l,5);break;case 6:da=0,cl=null,vk(e,r,l,6);break;case 8:vY(),Ln=6;break e;default:throw Error(Yt(462))}}c0e();break}catch(x){dte(e,x)}while(1);if(FZ=Sz=null,Yr.H=i,Yr.A=s,jo=a,Mo!==null)return 0;return ja=null,_o=0,E5(),Ln}function c0e(){for(;Mo!==null&&!Ibe();)hte(Mo)}function hte(e){var r=Yee(e.alternate,e,WZ);e.memoizedProps=e.pendingProps,r===null?q5(e):Mo=r}function DJ(e){var r=e,a=r.alternate;switch(r.tag){case 15:case 0:r=CJ(a,r,r.pendingProps,r.type,void 0,_o);break;case 11:r=CJ(a,r,r.pendingProps,r.type.render,r.ref,_o);break;case 5:nY(r);default:qee(a,r),r=Mo=W$(r,WZ),r=Yee(a,r,WZ)}e.memoizedProps=e.pendingProps,r===null?q5(e):Mo=r}function vk(e,r,a,i){FZ=Sz=null,nY(r),zk=null,qP=0;var s=r.return;try{if(Jwe(e,s,r,a,_o)){Ln=1,m5(e,cc(a,e.current)),Mo=null;return}}catch(l){if(s!==null)throw Mo=s,l;Ln=1,m5(e,cc(a,e.current)),Mo=null;return}if(r.flags&32768){if(zo||i===1)e=!0;else if(Uk||(_o&536870912)!==0)e=!1;else if(BM=e=!0,i===2||i===9||i===3||i===6)i=Hl.current,i!==null&&i.tag===13&&(i.flags|=16384);gte(r,e)}else q5(r)}function q5(e){var r=e;do{if((r.flags&32768)!==0){gte(r,BM);return}e=r.return;var a=t0e(r.alternate,r,WZ);if(a!==null){Mo=a;return}if(r=r.sibling,r!==null){Mo=r;return}Mo=r=e}while(r!==null);Ln===0&&(Ln=5)}function gte(e,r){do{var a=r0e(e.alternate,e);if(a!==null){a.flags&=32767,Mo=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(e=e.sibling,e!==null)){Mo=e;return}Mo=e=a}while(e!==null);Ln=6,Mo=null}function OJ(e,r,a,i,s,l,c,d,m){e.cancelPendingCommit=null;do H5();while(Si!==0);if((jo&6)!==0)throw Error(Yt(327));if(r!==null){if(r===e.current)throw Error(Yt(177));if(l=r.lanes|r.childLanes,l|=HU,jbe(e,a,l,c,d,m),e===ja&&(Mo=ja=null,_o=0),Ek=r,WM=e,UZ=a,MU=l,xU=s,lte=i,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,p0e(a5,function(){return _te(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||i){i=Yr.T,Yr.T=null,s=Bo.p,Bo.p=2,c=jo,jo|=4;try{o0e(e,r,a)}finally{jo=c,Bo.p=s,Yr.T=i}}Si=1,Mte(),xte(),vte()}}function Mte(){if(Si===1){Si=0;var e=WM,r=Ek,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=Yr.T,Yr.T=null;var i=Bo.p;Bo.p=2;var s=jo;jo|=4;try{tte(r,e);var l=SU,c=F$(e.containerInfo),{focusedElem:d,selectionRange:m}=l;if(c!==d&&d&&d.ownerDocument&&N$(d.ownerDocument.documentElement,d)){if(m!==null&&qU(d)){var{start:g,end:x}=m;if(x===void 0&&(x=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(x,d.value.length);else{var v=d.ownerDocument||document,b=v&&v.defaultView||window;if(b.getSelection){var _=b.getSelection(),z=d.textContent.length,k=Math.min(m.start,z),U=m.end===void 0?k:Math.min(m.end,z);!_.extend&&k>U&&(c=U,U=k,k=c);var P=nJ(d,k),T=nJ(d,U);if(P&&T&&(_.rangeCount!==1||_.anchorNode!==P.node||_.anchorOffset!==P.offset||_.focusNode!==T.node||_.focusOffset!==T.offset)){var G=v.createRange();G.setStart(P.node,P.offset),_.removeAllRanges(),k>U?(_.addRange(G),_.extend(T.node,T.offset)):(G.setEnd(T.node,T.offset),_.addRange(G))}}}}v=[];for(_=d;_=_.parentNode;)_.nodeType===1&&v.push({element:_,left:_.scrollLeft,top:_.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<v.length;d++){var X=v[d];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}k5=!!zU,SU=zU=null}finally{jo=s,Bo.p=i,Yr.T=a}}e.current=r,Si=2}}function xte(){if(Si===2){Si=0;var e=WM,r=Ek,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=Yr.T,Yr.T=null;var i=Bo.p;Bo.p=2;var s=jo;jo|=4;try{Xee(e,r.alternate,r)}finally{jo=s,Bo.p=i,Yr.T=a}}Si=3}}function vte(){if(Si===4||Si===3){Si=0,Rbe();var e=WM,r=Ek,a=UZ,i=lte;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Si=5:(Si=0,Ek=WM=null,yte(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(VM=null),OU(a),r=r.stateNode,Ul&&typeof Ul.onCommitFiberRoot==="function")try{Ul.onCommitFiberRoot($P,r,void 0,(r.current.flags&128)===128)}catch(m){}if(i!==null){r=Yr.T,s=Bo.p,Bo.p=2,Yr.T=null;try{for(var l=e.onRecoverableError,c=0;c<i.length;c++){var d=i[c];l(d.value,{componentStack:d.stack})}}finally{Yr.T=r,Bo.p=s}}(UZ&3)!==0&&H5(),KZ(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===vU?DP++:(DP=0,vU=e):DP=0,n2(0,!1)}}function yte(e,r){(e.pooledCacheLanes&=r)===0&&(r=e.pooledCache,r!=null&&(e.pooledCache=null,r2(r)))}function H5(){return Mte(),xte(),vte(),_te()}function _te(){if(Si!==5)return!1;var e=WM,r=MU;MU=0;var a=OU(UZ),i=Yr.T,s=Bo.p;try{Bo.p=32>a?32:a,Yr.T=null,a=xU,xU=null;var l=WM,c=UZ;if(Si=0,Ek=WM=null,UZ=0,(jo&6)!==0)throw Error(Yt(331));var d=jo;if(jo|=4,ite(l.current),ote(l,l.current,c,a),jo=d,n2(0,!1),Ul&&typeof Ul.onPostCommitFiberRoot==="function")try{Ul.onPostCommitFiberRoot($P,l)}catch(m){}return!0}finally{Bo.p=s,Yr.T=i,yte(e,r)}}function NJ(e,r,a){r=cc(a,r),r=ZU(e.stateNode,r,2),e=mz(e,r,2),e!==null&&(R5(e,2),KZ(e))}function pa(e,r,a){if(e.tag===3)NJ(e,e,a);else for(;r!==null;){if(r.tag===3){NJ(r,e,a);break}else if(r.tag===1){var i=r.stateNode;if(typeof r.type.getDerivedStateFromError==="function"||typeof i.componentDidCatch==="function"&&(VM===null||!VM.has(i))){e=cc(a,e),a=Oee(2),i=mz(r,a,2),i!==null&&(Nee(a,i,r,e),R5(i,2),KZ(i));break}}r=r.return}}function R6(e,r,a){var i=e.pingCache;if(i===null){i=e.pingCache=new i0e;var s=new Set;i.set(r,s)}else s=i.get(r),s===void 0&&(s=new Set,i.set(r,s));s.has(a)||(MY=!0,s.add(a),e=u0e.bind(null,e,r,a),r.then(e,e))}function u0e(e,r,a){var i=e.pingCache;i!==null&&i.delete(r),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ja===e&&(_o&a)===a&&(Ln===4||Ln===3&&(_o&62914560)===_o&&300>Bl()-U5?(jo&2)===0&&Dk(e,0):xY|=a,Ak===_o&&(Ak=0)),KZ(e)}function bte(e,r){r===0&&(r=h$()),e=zz(e,r),e!==null&&(R5(e,r),KZ(e))}function d0e(e){var r=e.memoizedState,a=0;r!==null&&(a=r.retryLane),bte(e,a)}function Z0e(e,r){var a=0;switch(e.tag){case 31:case 13:var{stateNode:i,memoizedState:s}=e;s!==null&&(a=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(Yt(314))}i!==null&&i.delete(r),bte(e,a)}function p0e(e,r){return DU(e,r)}var y5=null,fk=null,yU=!1,_5=!1,P6=!1,YM=0;function KZ(e){e!==fk&&e.next===null&&(fk===null?y5=fk=e:fk=fk.next=e),_5=!0,yU||(yU=!0,h0e())}function n2(e,r){if(!P6&&_5){P6=!0;do{var a=!1;for(var i=y5;i!==null;){if(!r)if(e!==0){var s=i.pendingLanes;if(s===0)var l=0;else{var c=i.suspendedLanes,d=i.pingedLanes;l=(1<<31-Yl(42|e)+1)-1,l&=s&~(c&~d),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,FJ(i,l))}else l=_o,l=I5(i,i===ja?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(l&3)===0||ZA(i,l)||(a=!0,FJ(i,l));i=i.next}}while(a);P6=!1}}function m0e(){wte()}function wte(){_5=yU=!1;var e=0;YM!==0&&w0e()&&(e=YM);for(var r=Bl(),a=null,i=y5;i!==null;){var s=i.next,l=zte(i,r);if(l===0)i.next=null,a===null?y5=s:a.next=s,s===null&&(fk=a);else if(a=i,e!==0||(l&3)!==0)_5=!0;i=s}Si!==0&&Si!==5||n2(e,!1),YM!==0&&(YM=0)}function zte(e,r){for(var{suspendedLanes:a,pingedLanes:i,expirationTimes:s}=e,l=e.pendingLanes&-62914561;0<l;){var c=31-Yl(l),d=1<<c,m=s[c];if(m===-1){if((d&a)===0||(d&i)!==0)s[c]=Fbe(d,r)}else m<=r&&(e.expiredLanes|=d);l&=~d}if(r=ja,a=_o,a=I5(e,e===r?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===r&&(da===2||da===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&s6(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ZA(e,a)){if(r=a&-a,r===e.callbackPriority)return r;switch(i!==null&&s6(i),OU(a)){case 2:case 8:a=p$;break;case 32:a=a5;break;case 268435456:a=m$;break;default:a=a5}return i=Ste.bind(null,e),a=DU(a,i),e.callbackPriority=r,e.callbackNode=a,r}return i!==null&&i!==null&&s6(i),e.callbackPriority=2,e.callbackNode=null,2}function Ste(e,r){if(Si!==0&&Si!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(H5()&&e.callbackNode!==a)return null;var i=_o;if(i=I5(e,e===ja?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0)return null;return ute(e,i,r),zte(e,Bl()),e.callbackNode!=null&&e.callbackNode===a?Ste.bind(null,e):null}function FJ(e,r){if(H5())return null;ute(e,r,!0)}function h0e(){S0e(function(){(jo&6)!==0?DU(Z$,m0e):wte()})}function yY(){if(YM===0){var e=Rk;e===0&&(e=SN,SN<<=1,(SN&261888)===0&&(SN=256)),YM=e}return YM}function jJ(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:jN(""+e)}function BJ(e,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,e.id&&a.setAttribute("form",e.id),r.parentNode.insertBefore(a,r),e=new FormData(e),a.parentNode.removeChild(a),e}function g0e(e,r,a,i,s){if(r==="submit"&&a&&a.stateNode===s){var l=jJ((s[Ws]||null).action),c=i.submitter;c&&(r=(r=c[Ws]||null)?jJ(r.formAction):c.getAttribute("formAction"),r!==null&&(l=r,c=null));var d=new P5("action","action",null,i,s);e.push({event:d,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(YM!==0){var m=c?BJ(s,c):new FormData(s);uU(a,{pending:!0,data:m,method:s.method,action:l},null,m)}}else typeof l==="function"&&(d.preventDefault(),m=c?BJ(s,c):new FormData(s),uU(a,{pending:!0,data:m,method:s.method,action:l},l,m))},currentTarget:s}]})}}for(bP=0;bP<$6.length;bP++)wP=$6[bP],_U=wP.toLowerCase(),bU=wP[0].toUpperCase()+wP.slice(1),lu(_U,"on"+bU);var wP,_U,bU,bP;lu(B$,"onAnimationEnd");lu(U$,"onAnimationIteration");lu(Y$,"onAnimationStart");lu("dblclick","onDoubleClick");lu("focusin","onFocus");lu("focusout","onBlur");lu(Pwe,"onTransitionRun");lu(Twe,"onTransitionStart");lu(Awe,"onTransitionCancel");lu(q$,"onTransitionEnd");Ck("onMouseEnter",["mouseout","mouseover"]);Ck("onMouseLeave",["mouseout","mouseover"]);Ck("onPointerEnter",["pointerout","pointerover"]);Ck("onPointerLeave",["pointerout","pointerover"]);_z("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_z("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_z("onBeforeInput",["compositionend","keypress","textInput","paste"]);_z("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_z("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_z("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var WP="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),M0e=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(WP));function Lte(e,r){r=(r&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],s=i.event;i=i.listeners;e:{var l=void 0;if(r)for(var c=i.length-1;0<=c;c--){var d=i[c],m=d.instance,g=d.currentTarget;if(d=d.listener,m!==l&&s.isPropagationStopped())break e;l=d,s.currentTarget=g;try{l(s)}catch(x){i5(x)}s.currentTarget=null,l=m}else for(c=0;c<i.length;c++){if(d=i[c],m=d.instance,g=d.currentTarget,d=d.listener,m!==l&&s.isPropagationStopped())break e;l=d,s.currentTarget=g;try{l(s)}catch(x){i5(x)}s.currentTarget=null,l=m}}}}function go(e,r){var a=r[H6];a===void 0&&(a=r[H6]=new Set);var i=e+"__bubble";a.has(i)||(Cte(r,e,2,!1),a.add(i))}function T6(e,r,a){var i=0;r&&(i|=4),Cte(a,e,i,r)}var DN="_reactListening"+Math.random().toString(36).slice(2);function kte(e){if(!e[DN]){e[DN]=!0,_$.forEach(function(a){a!=="selectionchange"&&(M0e.has(a)||T6(a,!1,e),T6(a,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[DN]||(r[DN]=!0,T6("selectionchange",!1,r))}}function Cte(e,r,a,i){switch(jte(r)){case 2:var s=K0e;break;case 8:s=G0e;break;default:s=zY}a=s.bind(null,r,a,e),s=void 0,!X6||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(r,a,{capture:!0,passive:s}):e.addEventListener(r,a,!0):s!==void 0?e.addEventListener(r,a,{passive:s}):e.addEventListener(r,a,!1)}function A6(e,r,a,i,s){var l=i;if((r&1)===0&&(r&2)===0&&i!==null)e:for(;;){if(i===null)return;var c=i.tag;if(c===3||c===4){var d=i.stateNode.containerInfo;if(d===s)break;if(c===4)for(c=i.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===s)return;c=c.return}for(;d!==null;){if(c=uk(d),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){i=l=c;continue e}d=d.parentNode}}i=i.return}I$(function(){var g=l,x=jU(a),v=[];e:{var b=H$.get(e);if(b!==void 0){var _=P5,z=e;switch(e){case"keypress":if(UN(a)===0)break e;case"keydown":case"keyup":_=cwe;break;case"focusin":z="focus",_=Z6;break;case"focusout":z="blur",_=Z6;break;case"beforeblur":case"afterblur":_=Z6;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=XQ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Jbe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Zwe;break;case B$:case U$:case Y$:_=twe;break;case q$:_=mwe;break;case"scroll":case"scrollend":_=Xbe;break;case"wheel":_=gwe;break;case"copy":case"cut":case"paste":_=owe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=JQ;break;case"toggle":case"beforetoggle":_=xwe}var k=(r&4)!==0,U=!k&&(e==="scroll"||e==="scrollend"),P=k?b!==null?b+"Capture":null:b;k=[];for(var T=g,G;T!==null;){var X=T;if(G=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||G===null||P===null||(X=FP(T,P),X!=null&&k.push(KP(T,X,G))),U)break;T=T.return}0<k.length&&(b=new _(b,z,null,a,x),v.push({event:b,listeners:k}))}}if((r&7)===0){e:{if(b=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",b&&a!==G6&&(z=a.relatedTarget||a.fromElement)&&(uk(z)||z[LA]))break e;if(_||b){if(b=x.window===x?x:(b=x.ownerDocument)?b.defaultView||b.parentWindow:window,_){if(z=a.relatedTarget||a.toElement,_=g,z=z?uk(z):null,z!==null&&(U=JP(z),k=z.tag,z!==U||k!==5&&k!==27&&k!==6))z=null}else _=null,z=g;if(_!==z){if(k=XQ,X="onMouseLeave",P="onMouseEnter",T="mouse",e==="pointerout"||e==="pointerover")k=JQ,X="onPointerLeave",P="onPointerEnter",T="pointer";if(U=_==null?b:MP(_),G=z==null?b:MP(z),b=new k(X,T+"leave",_,a,x),b.target=U,b.relatedTarget=G,X=null,uk(x)===g&&(k=new k(P,T+"enter",z,a,x),k.target=G,k.relatedTarget=U,X=k),U=X,_&&z)t:{k=x0e,P=_,T=z,G=0;for(X=P;X;X=k(X))G++;X=0;for(var J=T;J;J=k(J))X++;for(;0<G-X;)P=k(P),G--;for(;0<X-G;)T=k(T),X--;for(;G--;){if(P===T||T!==null&&P===T.alternate){k=P;break t}P=k(P),T=k(T)}k=null}else k=null;_!==null&&UJ(v,b,_,k,!1),z!==null&&U!==null&&UJ(v,U,z,k,!0)}}}e:{if(b=g?MP(g):window,_=b.nodeName&&b.nodeName.toLowerCase(),_==="select"||_==="input"&&b.type==="file")var ee=rJ;else if(tJ(b))if(D$)ee=Cwe;else{ee=Lwe;var re=Swe}else _=b.nodeName,!_||_.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?g&&FU(g.elementType)&&(ee=rJ):ee=kwe;if(ee&&(ee=ee(e,g))){E$(v,ee,a,x);break e}re&&re(e,b,g),e==="focusout"&&g&&b.type==="number"&&g.memoizedProps.value!=null&&K6(b,"number",b.value)}switch(re=g?MP(g):window,e){case"focusin":if(tJ(re)||re.contentEditable==="true")pk=re,Q6=g,LP=null;break;case"focusout":LP=Q6=pk=null;break;case"mousedown":J6=!0;break;case"contextmenu":case"mouseup":case"dragend":J6=!1,iJ(v,a,x);break;case"selectionchange":if(Rwe)break;case"keydown":case"keyup":iJ(v,a,x)}var oe;if(YU)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else Zk?T$(e,a)&&(ie="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ie="onCompositionStart");if(ie&&(P$&&a.locale!=="ko"&&(Zk||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&Zk&&(oe=R$()):(jM=x,BU=("value"in jM)?jM.value:jM.textContent,Zk=!0)),re=b5(g,ie),0<re.length&&(ie=new QQ(ie,e,null,a,x),v.push({event:ie,listeners:re}),oe?ie.data=oe:(oe=A$(a),oe!==null&&(ie.data=oe)))),oe=ywe?_we(e,a):bwe(e,a))ie=b5(g,"onBeforeInput"),0<ie.length&&(re=new QQ("onBeforeInput","beforeinput",null,a,x),v.push({event:re,listeners:ie}),re.data=oe);g0e(v,e,g,a,x)}Lte(v,r)})}function KP(e,r,a){return{instance:e,listener:r,currentTarget:a}}function b5(e,r){for(var a=r+"Capture",i=[];e!==null;){var s=e,l=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||l===null||(s=FP(e,a),s!=null&&i.unshift(KP(e,s,l)),s=FP(e,r),s!=null&&i.push(KP(e,s,l))),e.tag===3)return i;e=e.return}return[]}function x0e(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function UJ(e,r,a,i,s){for(var l=r._reactName,c=[];a!==null&&a!==i;){var d=a,m=d.alternate,g=d.stateNode;if(d=d.tag,m!==null&&m===i)break;d!==5&&d!==26&&d!==27||g===null||(m=g,s?(g=FP(a,l),g!=null&&c.unshift(KP(a,g,m))):s||(g=FP(a,l),g!=null&&c.push(KP(a,g,m)))),a=a.return}c.length!==0&&e.push({event:r,listeners:c})}var v0e=/\r\n?/g,y0e=/\u0000|\uFFFD/g;function YJ(e){return(typeof e==="string"?e:""+e).replace(v0e,`
10
- `).replace(y0e,"")}function Ite(e,r){return r=YJ(r),YJ(e)===r?!0:!1}function ya(e,r,a,i,s,l){switch(a){case"children":typeof i==="string"?r==="body"||r==="textarea"&&i===""||Ik(e,i):(typeof i==="number"||typeof i==="bigint")&&r!=="body"&&Ik(e,""+i);break;case"className":CN(e,"class",i);break;case"tabIndex":CN(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":CN(e,a,i);break;case"style":C$(e,i,l);break;case"data":if(r!=="object"){CN(e,"data",i);break}case"src":case"href":if(i===""&&(r!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i==="function"||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(a);break}i=jN(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l==="function"&&(a==="formAction"?(r!=="input"&&ya(e,r,"name",s.name,s,null),ya(e,r,"formEncType",s.formEncType,s,null),ya(e,r,"formMethod",s.formMethod,s,null),ya(e,r,"formTarget",s.formTarget,s,null)):(ya(e,r,"encType",s.encType,s,null),ya(e,r,"method",s.method,s,null),ya(e,r,"target",s.target,s,null)));if(i==null||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(a);break}i=jN(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=NZ);break;case"onScroll":i!=null&&go("scroll",e);break;case"onScrollEnd":i!=null&&go("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error(Yt(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(Yt(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"muted":e.muted=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i==="function"||typeof i==="boolean"||typeof i==="symbol"){e.removeAttribute("xlink:href");break}a=jN(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i==="function"||typeof i==="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":go("beforetoggle",e),go("toggle",e),FN(e,"popover",i);break;case"xlinkActuate":IZ(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":IZ(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":IZ(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":IZ(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":IZ(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":IZ(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":IZ(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":IZ(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":IZ(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":FN(e,"is",i);break;case"innerText":case"textContent":break;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=Kbe.get(a)||a,FN(e,a,i)}}function wU(e,r,a,i,s,l){switch(a){case"style":C$(e,i,l);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error(Yt(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(Yt(60));e.innerHTML=a}}break;case"children":typeof i==="string"?Ik(e,i):(typeof i==="number"||typeof i==="bigint")&&Ik(e,""+i);break;case"onScroll":i!=null&&go("scroll",e);break;case"onScrollEnd":i!=null&&go("scrollend",e);break;case"onClick":i!=null&&(e.onclick=NZ);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!b$.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),r=a.slice(2,s?a.length-7:void 0),l=e[Ws]||null,l=l!=null?l[a]:null,typeof l==="function"&&e.removeEventListener(r,l,s),typeof i==="function")){typeof l!=="function"&&l!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(r,i,s);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):FN(e,a,i)}}}function $i(e,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":go("error",e),go("load",e);var i=!1,s=!1,l;for(l in a)if(a.hasOwnProperty(l)){var c=a[l];if(c!=null)switch(l){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Yt(137,r));default:ya(e,r,l,c,a,null)}}s&&ya(e,r,"srcSet",a.srcSet,a,null),i&&ya(e,r,"src",a.src,a,null);return;case"input":go("invalid",e);var d=l=c=s=null,m=null,g=null;for(i in a)if(a.hasOwnProperty(i)){var x=a[i];if(x!=null)switch(i){case"name":s=x;break;case"type":c=x;break;case"checked":m=x;break;case"defaultChecked":g=x;break;case"value":l=x;break;case"defaultValue":d=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(Yt(137,r));break;default:ya(e,r,i,x,a,null)}}S$(e,l,d,m,g,c,s,!1);return;case"select":go("invalid",e),i=c=l=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":l=d;break;case"defaultValue":c=d;break;case"multiple":i=d;default:ya(e,r,s,d,a,null)}r=l,a=c,e.multiple=!!i,r!=null?_k(e,!!i,r,!1):a!=null&&_k(e,!!i,a,!0);return;case"textarea":go("invalid",e),l=s=i=null;for(c in a)if(a.hasOwnProperty(c)&&(d=a[c],d!=null))switch(c){case"value":i=d;break;case"defaultValue":s=d;break;case"children":l=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(Yt(91));break;default:ya(e,r,c,d,a,null)}k$(e,i,s,l);return;case"option":for(m in a)if(a.hasOwnProperty(m)&&(i=a[m],i!=null))switch(m){case"selected":e.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:ya(e,r,m,i,a,null)}return;case"dialog":go("beforetoggle",e),go("toggle",e),go("cancel",e),go("close",e);break;case"iframe":case"object":go("load",e);break;case"video":case"audio":for(i=0;i<WP.length;i++)go(WP[i],e);break;case"image":go("error",e),go("load",e);break;case"details":go("toggle",e);break;case"embed":case"source":case"link":go("error",e),go("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in a)if(a.hasOwnProperty(g)&&(i=a[g],i!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(Yt(137,r));default:ya(e,r,g,i,a,null)}return;default:if(FU(r)){for(x in a)a.hasOwnProperty(x)&&(i=a[x],i!==void 0&&wU(e,r,x,i,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(i=a[d],i!=null&&ya(e,r,d,i,a,null))}function _0e(e,r,a,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,l=null,c=null,d=null,m=null,g=null,x=null;for(_ in a){var v=a[_];if(a.hasOwnProperty(_)&&v!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":m=v;default:i.hasOwnProperty(_)||ya(e,r,_,null,i,v)}}for(var b in i){var _=i[b];if(v=a[b],i.hasOwnProperty(b)&&(_!=null||v!=null))switch(b){case"type":l=_;break;case"name":s=_;break;case"checked":g=_;break;case"defaultChecked":x=_;break;case"value":c=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(Yt(137,r));break;default:_!==v&&ya(e,r,b,_,i,v)}}W6(e,c,d,m,g,x,l,s);return;case"select":_=c=d=b=null;for(l in a)if(m=a[l],a.hasOwnProperty(l)&&m!=null)switch(l){case"value":break;case"multiple":_=m;default:i.hasOwnProperty(l)||ya(e,r,l,null,i,m)}for(s in i)if(l=i[s],m=a[s],i.hasOwnProperty(s)&&(l!=null||m!=null))switch(s){case"value":b=l;break;case"defaultValue":d=l;break;case"multiple":c=l;default:l!==m&&ya(e,r,s,l,i,m)}r=d,a=c,i=_,b!=null?_k(e,!!a,b,!1):!!i!==!!a&&(r!=null?_k(e,!!a,r,!0):_k(e,!!a,a?[]:"",!1));return;case"textarea":_=b=null;for(d in a)if(s=a[d],a.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ya(e,r,d,null,i,s)}for(c in i)if(s=i[c],l=a[c],i.hasOwnProperty(c)&&(s!=null||l!=null))switch(c){case"value":b=s;break;case"defaultValue":_=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(Yt(91));break;default:s!==l&&ya(e,r,c,s,i,l)}L$(e,b,_);return;case"option":for(var z in a)if(b=a[z],a.hasOwnProperty(z)&&b!=null&&!i.hasOwnProperty(z))switch(z){case"selected":e.selected=!1;break;default:ya(e,r,z,null,i,b)}for(m in i)if(b=i[m],_=a[m],i.hasOwnProperty(m)&&b!==_&&(b!=null||_!=null))switch(m){case"selected":e.selected=b&&typeof b!=="function"&&typeof b!=="symbol";break;default:ya(e,r,m,b,i,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var k in a)b=a[k],a.hasOwnProperty(k)&&b!=null&&!i.hasOwnProperty(k)&&ya(e,r,k,null,i,b);for(g in i)if(b=i[g],_=a[g],i.hasOwnProperty(g)&&b!==_&&(b!=null||_!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Yt(137,r));break;default:ya(e,r,g,b,i,_)}return;default:if(FU(r)){for(var U in a)b=a[U],a.hasOwnProperty(U)&&b!==void 0&&!i.hasOwnProperty(U)&&wU(e,r,U,void 0,i,b);for(x in i)b=i[x],_=a[x],!i.hasOwnProperty(x)||b===_||b===void 0&&_===void 0||wU(e,r,x,b,i,_);return}}for(var P in a)b=a[P],a.hasOwnProperty(P)&&b!=null&&!i.hasOwnProperty(P)&&ya(e,r,P,null,i,b);for(v in i)b=i[v],_=a[v],!i.hasOwnProperty(v)||b===_||b==null&&_==null||ya(e,r,v,b,i,_)}function qJ(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b0e(){if(typeof performance.getEntriesByType==="function"){for(var e=0,r=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var s=a[i],{transferSize:l,initiatorType:c,duration:d}=s;if(l&&d&&qJ(c)){c=0,d=s.responseEnd;for(i+=1;i<a.length;i++){var m=a[i],g=m.startTime;if(g>d)break;var x=m.transferSize,v=m.initiatorType;x&&qJ(v)&&(m=m.responseEnd,c+=x*(m<d?1:(d-g)/(m-g)))}if(--i,r+=8*(l+c)/(s.duration/1000),e++,10<e)break}}if(0<e)return r/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}var zU=null,SU=null;function w5(e){return e.nodeType===9?e:e.ownerDocument}function HJ(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Rte(e,r){if(e===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&r==="foreignObject"?0:e}function LU(e,r){return e==="textarea"||e==="noscript"||typeof r.children==="string"||typeof r.children==="number"||typeof r.children==="bigint"||typeof r.dangerouslySetInnerHTML==="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var E6=null;function w0e(){var e=window.event;if(e&&e.type==="popstate"){if(e===E6)return!1;return E6=e,!0}return E6=null,!1}var Pte=typeof setTimeout==="function"?setTimeout:void 0,z0e=typeof clearTimeout==="function"?clearTimeout:void 0,VJ=typeof Promise==="function"?Promise:void 0,S0e=typeof queueMicrotask==="function"?queueMicrotask:typeof VJ<"u"?function(e){return VJ.resolve(null).then(e).catch(L0e)}:Pte;function L0e(e){setTimeout(function(){throw e})}function r8(e){return e==="head"}function WJ(e,r){var a=r,i=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(s),Nk(r);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")OP(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,OP(a);for(var l=a.firstChild;l;){var c=l.nextSibling,d=l.nodeName;l[e2]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&l.rel.toLowerCase()==="stylesheet"||a.removeChild(l),l=c}}else a==="body"&&OP(e.ownerDocument.body);a=s}while(a);Nk(r)}function KJ(e,r){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function kU(e){var r=e.firstChild;r&&r.nodeType===10&&(r=r.nextSibling);for(;r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":kU(a),NU(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function k0e(e,r,a,i){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!i)if(r==="input"&&e.type==="hidden"){var l=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;else if(!e[e2])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(l!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=mc(e.nextSibling),e===null)break}return null}function C0e(e,r,a){if(r==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=mc(e.nextSibling),e===null)return null}return e}function Tte(e,r){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r)return null;if(e=mc(e.nextSibling),e===null)return null}return e}function CU(e){return e.data==="$?"||e.data==="$~"}function IU(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function I0e(e,r){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=r;else if(e.data!=="$?"||a.readyState!=="loading")r();else{var i=function(){r(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function mc(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return e}var RU=null;function GJ(e){e=e.nextSibling;for(var r=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(r===0)return mc(e.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}e=e.nextSibling}return null}function XJ(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return e;r--}else a!=="/$"&&a!=="/&"||r++}e=e.previousSibling}return null}function Ate(e,r,a){switch(r=w5(a),e){case"html":if(e=r.documentElement,!e)throw Error(Yt(452));return e;case"head":if(e=r.head,!e)throw Error(Yt(453));return e;case"body":if(e=r.body,!e)throw Error(Yt(454));return e;default:throw Error(Yt(451))}}function OP(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);NU(e)}var hc=new Map,QJ=new Set;function z5(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var GZ=Bo.d;Bo.d={f:R0e,r:P0e,D:T0e,C:A0e,L:E0e,m:D0e,X:N0e,S:O0e,M:F0e};function R0e(){var e=GZ.f(),r=Y5();return e||r}function P0e(e){var r=Fk(e);r!==null&&r.tag===5&&r.type==="form"?Cee(r):GZ.r(e)}var Yk=typeof document>"u"?null:document;function Ete(e,r,a){var i=Yk;if(i&&typeof r==="string"&&r){var s=lc(r);s='link[rel="'+e+'"][href="'+s+'"]',typeof a==="string"&&(s+='[crossorigin="'+a+'"]'),QJ.has(s)||(QJ.add(s),e={rel:e,crossOrigin:a,href:r},i.querySelector(s)===null&&(r=i.createElement("link"),$i(r,"link",e),Ti(r),i.head.appendChild(r)))}}function T0e(e){GZ.D(e),Ete("dns-prefetch",e,null)}function A0e(e,r){GZ.C(e,r),Ete("preconnect",e,r)}function E0e(e,r,a){GZ.L(e,r,a);var i=Yk;if(i&&e&&r){var s='link[rel="preload"][as="'+lc(r)+'"]';r==="image"?a&&a.imageSrcSet?(s+='[imagesrcset="'+lc(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(s+='[imagesizes="'+lc(a.imageSizes)+'"]')):s+='[href="'+lc(e)+'"]':s+='[href="'+lc(e)+'"]';var l=s;switch(r){case"style":l=Ok(e);break;case"script":l=qk(e)}hc.has(l)||(e=fn({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:e,as:r},a),hc.set(l,e),i.querySelector(s)!==null||r==="style"&&i.querySelector(i2(l))||r==="script"&&i.querySelector(f2(l))||(r=i.createElement("link"),$i(r,"link",e),Ti(r),i.head.appendChild(r)))}}function D0e(e,r){GZ.m(e,r);var a=Yk;if(a&&e){var i=r&&typeof r.as==="string"?r.as:"script",s='link[rel="modulepreload"][as="'+lc(i)+'"][href="'+lc(e)+'"]',l=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=qk(e)}if(!hc.has(l)&&(e=fn({rel:"modulepreload",href:e},r),hc.set(l,e),a.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(f2(l)))return}i=a.createElement("link"),$i(i,"link",e),Ti(i),a.head.appendChild(i)}}}function O0e(e,r,a){GZ.S(e,r,a);var i=Yk;if(i&&e){var s=yk(i).hoistableStyles,l=Ok(e);r=r||"default";var c=s.get(l);if(!c){var d={loading:0,preload:null};if(c=i.querySelector(i2(l)))d.loading=5;else{e=fn({rel:"stylesheet",href:e,"data-precedence":r},a),(a=hc.get(l))&&_Y(e,a);var m=c=i.createElement("link");Ti(m),$i(m,"link",e),m._p=new Promise(function(g,x){m.onload=g,m.onerror=x}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,QN(c,r,i)}c={type:"stylesheet",instance:c,count:1,state:d},s.set(l,c)}}}function N0e(e,r){GZ.X(e,r);var a=Yk;if(a&&e){var i=yk(a).hoistableScripts,s=qk(e),l=i.get(s);l||(l=a.querySelector(f2(s)),l||(e=fn({src:e,async:!0},r),(r=hc.get(s))&&bY(e,r),l=a.createElement("script"),Ti(l),$i(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},i.set(s,l))}}function F0e(e,r){GZ.M(e,r);var a=Yk;if(a&&e){var i=yk(a).hoistableScripts,s=qk(e),l=i.get(s);l||(l=a.querySelector(f2(s)),l||(e=fn({src:e,async:!0,type:"module"},r),(r=hc.get(s))&&bY(e,r),l=a.createElement("script"),Ti(l),$i(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},i.set(s,l))}}function JJ(e,r,a,i){var s=(s=qM.current)?z5(s):null;if(!s)throw Error(Yt(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(r=Ok(a.href),a=yk(s).hoistableStyles,i=a.get(r),i||(i={type:"style",instance:null,count:0,state:null},a.set(r,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Ok(a.href);var l=yk(s).hoistableStyles,c=l.get(e);if(c||(s=s.ownerDocument||s,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,c),(l=s.querySelector(i2(e)))&&!l._p&&(c.instance=l,c.state.loading=5),hc.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},hc.set(e,a),l||j0e(s,e,a,c.state))),r&&i===null)throw Error(Yt(528,""));return c}if(r&&i!==null)throw Error(Yt(529,""));return null;case"script":return r=a.async,a=a.src,typeof a==="string"&&r&&typeof r!=="function"&&typeof r!=="symbol"?(r=qk(a),a=yk(s).hoistableScripts,i=a.get(r),i||(i={type:"script",instance:null,count:0,state:null},a.set(r,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(Yt(444,e))}}function Ok(e){return'href="'+lc(e)+'"'}function i2(e){return'link[rel="stylesheet"]['+e+"]"}function Dte(e){return fn({},e,{"data-precedence":e.precedence,precedence:null})}function j0e(e,r,a,i){e.querySelector('link[rel="preload"][as="style"]['+r+"]")?i.loading=1:(r=e.createElement("link"),i.preload=r,r.addEventListener("load",function(){return i.loading|=1}),r.addEventListener("error",function(){return i.loading|=2}),$i(r,"link",a),Ti(r),e.head.appendChild(r))}function qk(e){return'[src="'+lc(e)+'"]'}function f2(e){return"script[async]"+e}function $J(e,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var i=e.querySelector('style[data-href~="'+lc(a.href)+'"]');if(i)return r.instance=i,Ti(i),i;var s=fn({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ti(i),$i(i,"style",s),QN(i,a.precedence,e),r.instance=i;case"stylesheet":s=Ok(a.href);var l=e.querySelector(i2(s));if(l)return r.state.loading|=4,r.instance=l,Ti(l),l;i=Dte(a),(s=hc.get(s))&&_Y(i,s),l=(e.ownerDocument||e).createElement("link"),Ti(l);var c=l;return c._p=new Promise(function(d,m){c.onload=d,c.onerror=m}),$i(l,"link",i),r.state.loading|=4,QN(l,a.precedence,e),r.instance=l;case"script":if(l=qk(a.src),s=e.querySelector(f2(l)))return r.instance=s,Ti(s),s;if(i=a,s=hc.get(l))i=fn({},a),bY(i,s);return e=e.ownerDocument||e,s=e.createElement("script"),Ti(s),$i(s,"link",i),e.head.appendChild(s),r.instance=s;case"void":return null;default:throw Error(Yt(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(i=r.instance,r.state.loading|=4,QN(i,a.precedence,e));return r.instance}function QN(e,r,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,l=s,c=0;c<i.length;c++){var d=i[c];if(d.dataset.precedence===r)l=d;else if(l!==s)break}l?l.parentNode.insertBefore(e,l.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(e,r.firstChild))}function _Y(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.title==null&&(e.title=r.title)}function bY(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.integrity==null&&(e.integrity=r.integrity)}var JN=null;function e$(e,r,a){if(JN===null){var i=new Map,s=JN=new Map;s.set(a,i)}else s=JN,i=s.get(a),i||(i=new Map,s.set(a,i));if(i.has(e))return i;i.set(e,null),a=a.getElementsByTagName(e);for(s=0;s<a.length;s++){var l=a[s];if(!(l[e2]||l[Ki]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var c=l.getAttribute(r)||"";c=e+c;var d=i.get(c);d?d.push(l):i.set(c,[l])}}return i}function t$(e,r,a){e=e.ownerDocument||e,e.head.insertBefore(a,r==="title"?e.querySelector("head > title"):null)}function B0e(e,r,a){if(a===1||r.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof r.precedence!=="string"||typeof r.href!=="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!=="string"||typeof r.href!=="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return e=r.disabled,typeof r.precedence==="string"&&e==null;default:return!0}case"script":if(r.async&&typeof r.async!=="function"&&typeof r.async!=="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src==="string")return!0}return!1}function Ote(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function U0e(e,r,a,i){if(a.type==="stylesheet"&&(typeof i.media!=="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Ok(i.href),l=r.querySelector(i2(s));if(l){r=l._p,r!==null&&typeof r==="object"&&typeof r.then==="function"&&(e.count++,e=S5.bind(e),r.then(e,e)),a.state.loading|=4,a.instance=l,Ti(l);return}l=r.ownerDocument||r,i=Dte(i),(s=hc.get(s))&&_Y(i,s),l=l.createElement("link"),Ti(l);var c=l;c._p=new Promise(function(d,m){c.onload=d,c.onerror=m}),$i(l,"link",i),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=S5.bind(e),r.addEventListener("load",a),r.addEventListener("error",a))}}var D6=0;function Y0e(e,r){return e.stylesheets&&e.count===0&&$N(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&$N(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},60000+r);0<e.imgBytes&&D6===0&&(D6=62500*b0e());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$N(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>D6?50:800)+r);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function S5(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$N(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var L5=null;function $N(e,r){e.stylesheets=null,e.unsuspend!==null&&(e.count++,L5=new Map,r.forEach(q0e,e),L5=null,S5.call(e))}function q0e(e,r){if(!(r.state.loading&4)){var a=L5.get(e);if(a)var i=a.get(null);else{a=new Map,L5.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<s.length;l++){var c=s[l];if(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")a.set(c.dataset.precedence,c),i=c}i&&a.set(null,i)}s=r.instance,c=s.getAttribute("data-precedence"),l=a.get(c)||i,l===i&&a.set(null,s),a.set(c,s),this.count++,i=S5.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),l?l.parentNode.insertBefore(s,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),r.state.loading|=4}}var GP={$$typeof:OZ,Provider:null,Consumer:null,_currentValue:cz,_currentValue2:cz,_threadCount:0};function H0e(e,r,a,i,s,l,c,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=l6(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=l6(0),this.hiddenUpdates=l6(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=l,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function V0e(e,r,a,i,s,l,c,d,m,g,x,v){return e=new H0e(e,r,a,c,m,g,x,v,d),r=1,l===!0&&(r|=24),l=zl(3,null,null,r),e.current=l,l.stateNode=e,r=XU(),r.refCount++,e.pooledCache=r,r.refCount++,l.memoizedState={element:i,isDehydrated:a,cache:r},$U(l),e}function W0e(e){if(!e)return gk;return e=gk,e}function Nte(e,r,a,i,s,l){s=W0e(s),i.context===null?i.context=s:i.pendingContext=s,i=pz(r),i.payload={element:a},l=l===void 0?null:l,l!==null&&(i.callback=l),a=mz(e,i,r),a!==null&&(Vs(a,e,r),CP(a,e,r))}function r$(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<r?a:r}}function wY(e,r){r$(e,r),(e=e.alternate)&&r$(e,r)}function Fte(e){if(e.tag===13||e.tag===31){var r=zz(e,67108864);r!==null&&Vs(r,e,67108864),wY(e,67108864)}}function o$(e){if(e.tag===13||e.tag===31){var r=pc();r=v$(r);var a=zz(e,r);a!==null&&Vs(a,e,r),wY(e,r)}}var k5=!0;function K0e(e,r,a,i){var s=Yr.T;Yr.T=null;var l=Bo.p;try{Bo.p=2,zY(e,r,a,i)}finally{Bo.p=l,Yr.T=s}}function G0e(e,r,a,i){var s=Yr.T;Yr.T=null;var l=Bo.p;try{Bo.p=8,zY(e,r,a,i)}finally{Bo.p=l,Yr.T=s}}function zY(e,r,a,i){if(k5){var s=PU(i);if(s===null)A6(e,r,i,C5,a),a$(e,i);else if(Q0e(s,e,r,a,i))i.stopPropagation();else if(a$(e,i),r&4&&-1<X0e.indexOf(e)){for(;s!==null;){var l=Fk(s);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var c=iz(l.pendingLanes);if(c!==0){var d=l;d.pendingLanes|=2;for(d.entangledLanes|=2;c;){var m=1<<31-Yl(c);d.entanglements[1]|=m,c&=~m}KZ(l),(jo&6)===0&&(M5=Bl()+500,n2(0,!1))}}break;case 31:case 13:d=zz(l,2),d!==null&&Vs(d,l,2),Y5(),wY(l,2)}if(l=PU(i),l===null&&A6(e,r,i,C5,a),l===s)break;s=l}s!==null&&i.stopPropagation()}else A6(e,r,i,null,a)}}function PU(e){return e=jU(e),SY(e)}var C5=null;function SY(e){if(C5=null,e=uk(e),e!==null){var r=JP(e);if(r===null)e=null;else{var a=r.tag;if(a===13){if(e=s$(r),e!==null)return e;e=null}else if(a===31){if(e=l$(r),e!==null)return e;e=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return C5=e,null}function jte(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Pbe()){case Z$:return 2;case p$:return 8;case a5:case Tbe:return 32;case m$:return 268435456;default:return 32}default:return 32}}var TU=!1,KM=null,GM=null,XM=null,XP=new Map,QP=new Map,NM=[],X0e="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function a$(e,r){switch(e){case"focusin":case"focusout":KM=null;break;case"dragenter":case"dragleave":GM=null;break;case"mouseover":case"mouseout":XM=null;break;case"pointerover":case"pointerout":XP.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":QP.delete(r.pointerId)}}function mP(e,r,a,i,s,l){if(e===null||e.nativeEvent!==l)return e={blockedOn:r,domEventName:a,eventSystemFlags:i,nativeEvent:l,targetContainers:[s]},r!==null&&(r=Fk(r),r!==null&&Fte(r)),e;return e.eventSystemFlags|=i,r=e.targetContainers,s!==null&&r.indexOf(s)===-1&&r.push(s),e}function Q0e(e,r,a,i,s){switch(r){case"focusin":return KM=mP(KM,e,r,a,i,s),!0;case"dragenter":return GM=mP(GM,e,r,a,i,s),!0;case"mouseover":return XM=mP(XM,e,r,a,i,s),!0;case"pointerover":var l=s.pointerId;return XP.set(l,mP(XP.get(l)||null,e,r,a,i,s)),!0;case"gotpointercapture":return l=s.pointerId,QP.set(l,mP(QP.get(l)||null,e,r,a,i,s)),!0}return!1}function Bte(e){var r=uk(e.target);if(r!==null){var a=JP(r);if(a!==null){if(r=a.tag,r===13){if(r=s$(a),r!==null){e.blockedOn=r,YQ(e.priority,function(){o$(a)});return}}else if(r===31){if(r=l$(a),r!==null){e.blockedOn=r,YQ(e.priority,function(){o$(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function e5(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var a=PU(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);G6=i,a.target.dispatchEvent(i),G6=null}else return r=Fk(a),r!==null&&Fte(r),e.blockedOn=a,!1;r.shift()}return!0}function n$(e,r,a){e5(e)&&a.delete(r)}function J0e(){TU=!1,KM!==null&&e5(KM)&&(KM=null),GM!==null&&e5(GM)&&(GM=null),XM!==null&&e5(XM)&&(XM=null),XP.forEach(n$),QP.forEach(n$)}function ON(e,r){e.blockedOn===r&&(e.blockedOn=null,TU||(TU=!0,Fs(Os,J0e)))}var NN=null;function i$(e){NN!==e&&(NN=e,Fs(Os,function(){NN===e&&(NN=null);for(var r=0;r<e.length;r+=3){var a=e[r],i=e[r+1],s=e[r+2];if(typeof i!=="function")if(SY(i||a)===null)continue;else break;var l=Fk(a);l!==null&&(e.splice(r,3),r-=3,uU(l,{pending:!0,data:s,method:a.method,action:i},i,s))}}))}function Nk(e){function r(m){return ON(m,e)}KM!==null&&ON(KM,e),GM!==null&&ON(GM,e),XM!==null&&ON(XM,e),XP.forEach(r),QP.forEach(r);for(var a=0;a<NM.length;a++){var i=NM[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<NM.length&&(a=NM[0],a.blockedOn===null);)Bte(a),a.blockedOn===null&&NM.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var s=a[i],l=a[i+1],c=s[Ws]||null;if(typeof l==="function")c||i$(a);else if(c){var d=null;if(l&&l.hasAttribute("formAction")){if(s=l,c=l[Ws]||null)d=c.formAction;else if(SY(s)!==null)continue}else d=c.action;typeof d==="function"?a[i+1]=d:(a.splice(i,3),i-=3),i$(a)}}}function $0e(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(c){return s=c})},focusReset:"manual",scroll:"manual"})}function r(){s!==null&&(s(),s=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),s!==null&&(s(),s=null)}}}function LY(e){this._internalRoot=e}kY.prototype.render=LY.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(Yt(409));var a=r.current,i=pc();Nte(a,i,e,r,null,null)};kY.prototype.unmount=LY.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;Nte(e.current,2,null,e,null,null),Y5(),r[LA]=null}};function kY(e){this._internalRoot=e}kY.prototype.unstable_scheduleHydration=function(e){if(e){var r=y$();e={blockedOn:null,target:e,priority:r};for(var a=0;a<NM.length&&r!==0&&r<NM[a].priority;a++);NM.splice(a,0,e),a===0&&Bte(e)}};var f$=Ds;if(f$!=="19.2.8")throw Error(Yt(527,f$,"19.2.8"));Bo.findDOMNode=function(e){var r=e._reactInternals;if(r===void 0){if(typeof e.render==="function")throw Error(Yt(188));throw e=Object.keys(e).join(","),Error(Yt(268,e))}return e=zbe(r),e=e!==null?c$(e):null,e=e===null?null:e.stateNode,e};var eze={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:Yr,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(sk=__REACT_DEVTOOLS_GLOBAL_HOOK__,!sk.isDisabled&&sk.supportsFiber)try{$P=sk.inject(eze),Ul=sk}catch(e){}}var sk;var Ute=function(e,r){if(!wbe(e))throw Error(Yt(299));var a=!1,i="",s=Gwe,l=Xwe,c=Qwe;return r!==null&&r!==void 0&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onUncaughtError!==void 0&&(s=r.onUncaughtError),r.onCaughtError!==void 0&&(l=r.onCaughtError),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=V0e(e,1,!1,null,null,a,i,null,s,l,c,$0e),e[LA]=r.current,kte(e),new LY(r)};Yte();S();var aze={theme:"system",setTheme:()=>null},qte=it(aze);function Hte({children:e,defaultTheme:r="system",storageKey:a="vite-ui-theme",...i}){let[s,l]=u(()=>localStorage.getItem(a)||r);h(()=>{let d=window.document.documentElement;if(d.classList.remove("light","dark"),s==="system"){let m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.classList.add(m);return}d.classList.add(s)},[s]);let c={theme:s,setTheme:(d)=>{localStorage.setItem(a,d),l(d)}};return t(qte.Provider,{...i,value:c,children:e})}var Vte=()=>{let e=ft(qte);if(e===void 0)throw Error("useTheme must be used within a ThemeProvider");return e};var nze=/^[\w!#$%&'*.^`|~+-]+$/;var ize=(e,r,a={})=>{if(!nze.test(e))throw Error("Invalid cookie name");let i=`${e}=${r}`;if(e.startsWith("__Secure-")&&!a.secure)throw Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!a.secure)throw Error("__Host- Cookie must have Secure attributes");if(a.path!=="/")throw Error('__Host- Cookie must have Path attributes with "/"');if(a.domain)throw Error("__Host- Cookie must not have Domain attributes")}for(let s of["domain","path","sameSite","priority"])if(a[s]&&/[;\r\n]/.test(a[s]))throw Error(`${s} must not contain ";", "\\r", or "\\n"`);if(a&&typeof a.maxAge==="number"&&a.maxAge>=0){if(a.maxAge>34560000)throw Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");i+=`; Max-Age=${a.maxAge|0}`}if(a.domain&&a.prefix!=="host")i+=`; Domain=${a.domain}`;if(a.path)i+=`; Path=${a.path}`;if(a.expires){if(a.expires.getTime()-Date.now()>34560000000)throw Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");i+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly)i+="; HttpOnly";if(a.secure)i+="; Secure";if(a.sameSite)i+=`; SameSite=${a.sameSite.charAt(0).toUpperCase()+a.sameSite.slice(1)}`;if(a.priority)i+=`; Priority=${a.priority.charAt(0).toUpperCase()+a.priority.slice(1)}`;if(a.partitioned){if(!a.secure)throw Error("Partitioned Cookie must have Secure attributes");i+="; Partitioned"}return i},Wte=(e,r,a)=>(r=encodeURIComponent(r),ize(e,r,a));var Kte=(e,r)=>(e=e.replace(/\/+$/,""),e=e+"/",r=r.replace(/^\/+/,""),e+r),W5=(e,r)=>{for(let[a,i]of Object.entries(r)){let s=new RegExp("/:"+a+"(?:{[^/]+})?\\??(?=/|$)");e=e.replace(s,()=>i?`/${i}`:"")}return e},Gte=(e)=>{let r=new URLSearchParams;for(let[a,i]of Object.entries(e)){if(i===void 0)continue;if(Array.isArray(i))for(let s of i){if(s===void 0)continue;r.append(a,s)}else r.set(a,i)}return r},Xte=(e,r)=>{switch(r){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},CY=(e)=>{if(/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e))return e.replace(/\/index(?=\?|$)/,"/");return e.replace(/\/index(?=\?|$)/,"")};function V5(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function IY(e,r){if(!V5(e)&&!V5(r))return r;let a={...e};for(let i in r){let s=r[i];if(V5(a[i])&&V5(s))a[i]=IY(a[i],s);else a[i]=s}return a}var Qte=(e,r)=>new Proxy(()=>{},{get(i,s){if(typeof s!=="string"||s==="then")return;return Qte(e,[...r,s])},apply(i,s,l){return e({path:r,args:l})}}),Jte=(e,r)=>{let a=r.toString();return a?`${e}?${a}`:e},sze=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,r,a){this.url=e,this.method=r,this.buildSearchParams=a.buildSearchParams}fetch=async(e,r)=>{if(e){if(e.query)this.queryParams=this.buildSearchParams(e.query);if(e.form){let d=new FormData;for(let[m,g]of Object.entries(e.form)){if(g===void 0)continue;if(Array.isArray(g))for(let x of g){if(x===void 0)continue;d.append(m,x)}else d.append(m,g)}this.rBody=d}if(e.json!==void 0)this.rBody=JSON.stringify(e.json),this.cType="application/json";if(e.param)this.pathParams=e.param}let a=this.method.toUpperCase(),i={...e?.header,...typeof r?.headers==="function"?await r.headers():r?.headers};if(e?.cookie){let d=[];for(let[m,g]of Object.entries(e.cookie)){if(g===void 0)continue;d.push(Wte(m,g))}if(d.length>0)i.Cookie=d.join("; ")}if(this.cType)i["Content-Type"]=this.cType;let s=new Headers;for(let[d,m]of Object.entries(i))if(m!==void 0)s.set(d,m);let l=this.url;if(l=CY(l),l=W5(l,this.pathParams),this.queryParams)l=Jte(l,this.queryParams);a=this.method.toUpperCase();let c=!(a==="GET"||a==="HEAD");return(r?.fetch||fetch)(l,{body:c?this.rBody:void 0,method:a,headers:s,...r?.init})}},RY=(e,r)=>Qte(function a(i){let s=r?.buildSearchParams??Gte,l=[...i.path],c=l.slice(-3).reverse();if(c[0]==="toString"){if(c[1]==="name")return c[2]||"";return a.toString()}if(c[0]==="valueOf"){if(c[1]==="name")return c[2]||"";return a}let d="";if(/^\$/.test(c[0])){let v=l.pop();if(v)d=v.replace(/^\$/,"")}let m=l.join("/"),g=Kte(e,m);if(d==="url"||d==="path"){let v=g;if(i.args[0]){if(i.args[0].param)v=W5(g,i.args[0].param);if(i.args[0].query)v=Jte(v,s(i.args[0].query))}if(v=CY(v),d==="url")return new URL(v);return v.slice(e.replace(/\/+$/,"").length).replace(/^\/?/,"/")}if(d==="ws"){let v=Xte(i.args[0]?.param?W5(g,i.args[0].param):g,"ws"),b=new URL(v),_=i.args[0]?.query;if(_)s(_).forEach((U,P)=>{b.searchParams.append(P,U)});return((...k)=>{if(r?.webSocket!==void 0&&typeof r.webSocket==="function")return r.webSocket(...k);return new WebSocket(...k)})(b.toString())}let x=new sze(g,d,{buildSearchParams:s});if(d){r??={};let v={...i.args[1]},b=r.headers,_=v.headers;if(b&&_)v.headers=async()=>({...typeof b==="function"?await b():b,...typeof _==="function"?await _():_});let z=IY(r,v);return x.fetch(i.args[0],z)}return x},[]);var $te=(e)=>{let r,a=new Set,i=(g,x)=>{let v=typeof g==="function"?g(r):g;if(!Object.is(v,r)){let b=r;r=(x!=null?x:typeof v!=="object"||v===null)?v:Object.assign({},r,v),a.forEach((_)=>_(r,b))}},s=()=>r,d={setState:i,getState:s,getInitialState:()=>m,subscribe:(g)=>(a.add(g),()=>a.delete(g))},m=r=e(i,s,d);return d},ere=(e)=>e?$te(e):$te;S();var lze=(e)=>e;function cze(e,r=lze){let a=Yn(e.subscribe,D(()=>r(e.getState()),[e,r]),D(()=>r(e.getInitialState()),[e,r]));return di(a),a}var tre=(e)=>{let r=ere(e),a=(i)=>cze(r,i);return Object.assign(a,r),a},Rr=(e)=>e?tre(e):tre;var rre=(e)=>!!e.dispatchFromDevtools&&typeof e.dispatch==="function",s2=new Map,K5=(e)=>{let r=s2.get(e);if(!r)return{};return Object.fromEntries(Object.entries(r.stores).map(([a,i])=>[a,i.getState()]))},uze=(e,r,a)=>{if(e===void 0)return{type:"untracked",connection:r.connect(a)};let i=s2.get(a.name);if(i)return{type:"tracked",store:e,...i};let s={connection:r.connect(a),stores:{}};return s2.set(a.name,s),{type:"tracked",store:e,...s}},dze=(e,r)=>{if(r===void 0)return;let a=s2.get(e);if(!a)return;if(delete a.stores[r],Object.keys(a.stores).length===0)s2.delete(e)},Zze=/^at (?:new |async )?(.+?) \(/,pze=/^([^@]+)@/;function mze(e){var r,a,i;if(!e)return;let s=e.split(`
11
- `),l=s.findIndex((d)=>d.includes("api.setState"));if(l<0)return;let c=((r=s[l+1])==null?void 0:r.trim())||"";return((a=Zze.exec(c))==null?void 0:a[1])||((i=pze.exec(c))==null?void 0:i[1])}var hze=(e,r={})=>(a,i,s)=>{let{enabled:l,anonymousActionType:c,store:d,...m}=r,g;try{g=(l!=null?l:(import.meta.env?import.meta.env.MODE:void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(k){}if(!g)return e(a,i,s);let{connection:x,...v}=uze(d,g,m),b=!0;s.setState=(k,U,P)=>{let T=a(k,U);if(!b)return T;let G=P===void 0?{type:c||mze(Error().stack)||"anonymous"}:typeof P==="string"?{type:P}:P;if(d===void 0)return x==null||x.send(G,i()),T;return x==null||x.send({...G,type:`${d}/${G.type}`},{...K5(m.name),[d]:s.getState()}),T},s.devtools={cleanup:()=>{if(x&&typeof x.unsubscribe==="function")x.unsubscribe();dze(m.name,d)}};let _=(...k)=>{let U=b;b=!1,a(...k),b=U},z=e(s.setState,i,s);if(v.type==="untracked")x==null||x.init(z);else v.stores[v.store]=s,x==null||x.init(Object.fromEntries(Object.entries(v.stores).map(([k,U])=>[k,k===v.store?z:U.getState()])));if(rre(s)){let k=!1,U=s.dispatch;s.dispatch=(...P)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&P[0].type==="__setState"&&!k)console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),k=!0;U(...P)}}return x.subscribe((k)=>{var U;switch(k.type){case"ACTION":if(typeof k.payload!=="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return PY(k.payload,(P)=>{if(P.type==="__setState"){if(d===void 0){_(P.state);return}if(Object.keys(P.state).length!==1)console.error(`
12
- [zustand devtools middleware] Unsupported __setState action format.
13
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
14
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
15
- `);let T=P.state[d];if(T===void 0||T===null)return;if(JSON.stringify(s.getState())!==JSON.stringify(T))_(T);return}if(rre(s))s.dispatch(P)});case"DISPATCH":switch(k.payload.type){case"RESET":if(_(z),d===void 0)return x==null?void 0:x.init(s.getState());return x==null?void 0:x.init(K5(m.name));case"COMMIT":if(d===void 0){x==null||x.init(s.getState());return}return x==null?void 0:x.init(K5(m.name));case"ROLLBACK":return PY(k.state,(P)=>{if(d===void 0){_(P),x==null||x.init(s.getState());return}_(P[d]),x==null||x.init(K5(m.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return PY(k.state,(P)=>{if(d===void 0){_(P);return}if(JSON.stringify(s.getState())!==JSON.stringify(P[d]))_(P[d])});case"IMPORT_STATE":{let{nextLiftedState:P}=k.payload,T=(U=P.computedStates.slice(-1)[0])==null?void 0:U.state;if(!T)return;if(d===void 0)_(T);else _(T[d]);x==null||x.send(null,P);return}case"PAUSE_RECORDING":return b=!b}return}}),z},ore=hze,PY=(e,r)=>{let a;try{a=JSON.parse(e)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}if(a!==void 0)r(a)};function Lz(e,r){let a;try{a=e()}catch(s){return}return{getItem:(s)=>{var l;let c=(m)=>{if(m===null)return null;return JSON.parse(m,r==null?void 0:r.reviver)},d=(l=a.getItem(s))!=null?l:null;if(d instanceof Promise)return d.then(c);return c(d)},setItem:(s,l)=>a.setItem(s,JSON.stringify(l,r==null?void 0:r.replacer)),removeItem:(s)=>a.removeItem(s)}}var TY=(e)=>(r)=>{try{let a=e(r);if(a instanceof Promise)return a;return{then(i){return TY(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return TY(i)(a)}}}},gze=(e,r)=>(a,i,s)=>{let l={storage:Lz(()=>window.localStorage),partialize:(U)=>U,version:0,merge:(U,P)=>({...P,...U}),...r},c=!1,d=0,m=new Set,g=new Set,x=l.storage;if(!x)return e((...U)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),a(...U)},i,s);let v=()=>{let U=l.partialize({...i()});return x.setItem(l.name,{state:U,version:l.version})},b=s.setState;s.setState=(U,P)=>(b(U,P),v());let _=e((...U)=>(a(...U),v()),i,s);s.getInitialState=()=>_;let z,k=()=>{var U,P;if(!x)return;let T=++d;c=!1,m.forEach((X)=>{var J;return X((J=i())!=null?J:_)});let G=((P=l.onRehydrateStorage)==null?void 0:P.call(l,(U=i())!=null?U:_))||void 0;return TY(x.getItem.bind(x))(l.name).then((X)=>{if(X)if(typeof X.version==="number"&&X.version!==l.version){if(l.migrate){let J=l.migrate(X.state,X.version);if(J instanceof Promise)return J.then((ee)=>[!0,ee]);return[!0,J]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,X.state];return[!1,void 0]}).then((X)=>{var J;if(T!==d)return;let[ee,re]=X;if(z=l.merge(re,(J=i())!=null?J:_),a(z,!0),ee)return v()}).then(()=>{if(T!==d)return;G==null||G(i(),void 0),z=i(),c=!0,g.forEach((X)=>X(z))}).catch((X)=>{if(T!==d)return;G==null||G(void 0,X)})};if(s.persist={setOptions:(U)=>{if(l={...l,...U},U.storage)x=U.storage},clearStorage:()=>{++d,x==null||x.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>k(),hasHydrated:()=>c,onHydrate:(U)=>(m.add(U),()=>{m.delete(U)}),onFinishHydration:(U)=>(g.add(U),()=>{g.delete(U)})},!l.skipHydration)k();return z||_},Hk=gze;var gf=Rr()(Hk((e)=>({user:null,setUser:(r)=>e({user:r}),clearAuth:()=>e({user:null})}),{name:"auth-storage",storage:Lz(()=>localStorage)}));var Mze=async(e,r)=>{let a=await fetch(e,r);if(a.status===401){let i=e.toString();if(!window.location.pathname.includes("/login")&&!window.location.pathname.includes("/signup")&&!window.location.pathname.startsWith("/share/")&&!i.includes("/api/authn"))gf.getState().clearAuth(),window.location.href="/login"}return a},A=RY("/",{fetch:Mze,init:{credentials:"include"}});S();var G5=(...e)=>e.filter((r,a,i)=>Boolean(r)&&r.trim()!==""&&i.indexOf(r)===a).join(" ").trim();var are=(e)=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var nre=(e)=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,a,i)=>i?i.toUpperCase():a.toLowerCase());var AY=(e)=>{let r=nre(e);return r.charAt(0).toUpperCase()+r.slice(1)};S();var X5={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"};var ire=(e)=>{for(let r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};S();var xze=it({});var fre=()=>ft(xze);var sre=F(({color:e,size:r,strokeWidth:a,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...d},m)=>{let{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:v=!1,color:b="currentColor",className:_=""}=fre()??{},z=i??v?Number(a??x)*24/Number(r??g):a??x;return j("svg",{ref:m,...X5,width:r??g??X5.width,height:r??g??X5.height,stroke:e??b,strokeWidth:z,className:G5("lucide",_,s),...!l&&!ire(d)&&{"aria-hidden":"true"},...d},[...c.map(([k,U])=>j(k,U)),...Array.isArray(l)?l:[l]])});var I=(e,r)=>{let a=F(({className:i,...s},l)=>j(sre,{ref:l,iconNode:r,className:G5(`lucide-${are(AY(e))}`,`lucide-${e}`,i),...s}));return a.displayName=AY(e),a};var vze=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],xr=I("circle-check",vze);var yze=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],zn=I("cloud-upload",yze);var _ze=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],o8=I("columns-2",_ze);var bze=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Sr=I("ellipsis-vertical",bze);var wze=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],or=I("ellipsis",wze);var zze=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],O=I("loader-circle",zze);var Sze=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],a8=I("octagon-x",Sze);var Lze=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],In=I("rotate-ccw-clock",Lze);var kze=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]],Do=I("square-kanban",kze);var Cze=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Gr=I("square-pen",Cze);var Ize=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Vr=I("triangle-alert",Ize);var Rze=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Xn=I("arrow-right",Rze);var Pze=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ea=I("arrow-up",Pze);var Tze=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],ta=I("bookmark",Tze);var Aze=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ct=I("bot",Aze);var Eze=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],jn=I("calendar",Eze);var Dze=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],l2=I("check-check",Dze);var Oze=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Pe=I("check",Oze);var Nze=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ve=I("chevron-down",Nze);var Fze=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nn=I("chevron-left",Fze);var jze=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vt=I("chevron-right",jze);var Bze=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ta=I("chevron-up",Bze);var Uze=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],kz=I("chevrons-down-up",Uze);var Yze=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Cz=I("chevrons-up-down",Yze);var qze=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],c2=I("circle",qze);var Hze=[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]],u2=I("clapperboard",Hze);var Vze=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],er=I("clock",Vze);var Wze=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],wt=I("download",Wze);var Kze=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],qn=I("file-text",Kze);var Gze=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],tr=I("file",Gze);var Xze=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],Ma=I("files",Xze);var Qze=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2",key:"1urifu"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Ls=I("folder-clock",Qze);var Jze=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],rr=I("folder",Jze);var $ze=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Zs=I("grip-vertical",$ze);var eSe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],eo=I("image",eSe);var tSe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Wo=I("info",tSe);var rSe=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],to=I("layout-grid",rSe);var oSe=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Bs=I("link-2",oSe);var aSe=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Oo=I("list",aSe);var nSe=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],on=I("lock",nSe);var iSe=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],d2=I("log-in",iSe);var fSe=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],fi=I("mail",fSe);var sSe=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],XZ=I("menu",sSe);var lSe=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],vo=I("message-square",lSe);var cSe=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],ka=I("paperclip",cSe);var uSe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pe=I("plus",uSe);var dSe=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ut=I("search",dSe);var ZSe=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Ra=I("share-2",ZSe);var pSe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],wo=I("target",pSe);var mSe=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],we=I("trash-2",mSe);var hSe=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Yo=I("user-check",hSe);var gSe=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Z2=I("user-plus",gSe);var MSe=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ne=I("x",MSe);S();var Vk=Rr((e)=>({isMobileMenuOpen:!1,activeItem:null,activeItemId:null,openMobileMenu:(r=null)=>e({isMobileMenuOpen:!0,activeItemId:typeof r==="string"?r:null,activeItem:typeof r==="number"?r:null}),closeMobileMenu:()=>e({isMobileMenuOpen:!1,activeItem:null,activeItemId:null}),toggleMobileMenu:()=>e((r)=>({isMobileMenuOpen:!r.isMobileMenuOpen,activeItem:r.isMobileMenuOpen?null:r.activeItem,activeItemId:r.isMobileMenuOpen?null:r.activeItemId})),setActiveItem:(r)=>e({activeItem:r,activeItemId:null}),setActiveItemId:(r)=>e({activeItemId:r})}));function Toe(e){var r,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(a=Toe(e[r]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function Q5(){for(var e,r,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(r=Toe(e))&&(i&&(i+=" "),i+=r);return i}var xSe=(e,r)=>{let a=Array(e.length+r.length);for(let i=0;i<e.length;i++)a[i]=e[i];for(let i=0;i<r.length;i++)a[e.length+i]=r[i];return a},vSe=(e,r)=>({classGroupId:e,validator:r}),Foe=(e=new Map,r=null,a)=>({nextPart:e,validators:r,classGroupId:a});var Aoe=[];var ySe=(e)=>{let r=bSe(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:(c)=>{if(c.startsWith("[")&&c.endsWith("]"))return _Se(c);let d=c.split("-"),m=d[0]===""&&d.length>1?1:0;return joe(d,m,r)},getConflictingClassGroupIds:(c,d)=>{if(d){let m=i[c],g=a[c];if(m){if(g)return xSe(g,m);return m}return g||Aoe}return a[c]||Aoe}}},joe=(e,r,a)=>{if(e.length-r===0)return a.classGroupId;let s=e[r],l=a.nextPart.get(s);if(l){let g=joe(e,r+1,l);if(g)return g}let c=a.validators;if(c===null)return;let d=r===0?e.join("-"):e.slice(r).join("-"),m=c.length;for(let g=0;g<m;g++){let x=c[g];if(x.validator(d))return x.classGroupId}return},_Se=(e)=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let r=e.slice(1,-1),a=r.indexOf(":"),i=r.slice(0,a);return i?"arbitrary.."+i:void 0})(),bSe=(e)=>{let{theme:r,classGroups:a}=e;return wSe(a,r)},wSe=(e,r)=>{let a=Foe();for(let i in e){let s=e[i];DY(s,a,i,r)}return a},DY=(e,r,a,i)=>{let s=e.length;for(let l=0;l<s;l++){let c=e[l];zSe(c,r,a,i)}},zSe=(e,r,a,i)=>{if(typeof e==="string"){SSe(e,r,a);return}if(typeof e==="function"){LSe(e,r,a,i);return}kSe(e,r,a,i)},SSe=(e,r,a)=>{let i=e===""?r:Boe(r,e);i.classGroupId=a},LSe=(e,r,a,i)=>{if(CSe(e)){DY(e(i),r,a,i);return}if(r.validators===null)r.validators=[];r.validators.push(vSe(a,e))},kSe=(e,r,a,i)=>{let s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){let[d,m]=s[c];DY(m,Boe(r,d),a,i)}},Boe=(e,r)=>{let a=e,i=r.split("-"),s=i.length;for(let l=0;l<s;l++){let c=i[l],d=a.nextPart.get(c);if(!d)d=Foe(),a.nextPart.set(c,d);a=d}return a},CSe=(e)=>("isThemeGetter"in e)&&e.isThemeGetter===!0,ISe=(e)=>{if(e<1)return{get:()=>{return},set:()=>{}};let r=0,a=Object.create(null),i=Object.create(null),s=(l,c)=>{if(a[l]=c,r++,r>e)r=0,i=a,a=Object.create(null)};return{get(l){let c=a[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){if(l in a)a[l]=c;else s(l,c)}}};var RSe=[],Eoe=(e,r,a,i,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:a,maybePostfixModifierPosition:i,isExternal:s}),PSe=(e)=>{let{prefix:r,experimentalParseClassName:a}=e,i=(s)=>{let l=[],c=0,d=0,m=0,g,x=s.length;for(let k=0;k<x;k++){let U=s[k];if(c===0&&d===0){if(U===":"){l.push(s.slice(m,k)),m=k+1;continue}if(U==="/"){g=k;continue}}if(U==="[")c++;else if(U==="]")c--;else if(U==="(")d++;else if(U===")")d--}let v=l.length===0?s:s.slice(m),b=v,_=!1;if(v.endsWith("!"))b=v.slice(0,-1),_=!0;else if(v.startsWith("!"))b=v.slice(1),_=!0;let z=g&&g>m?g-m:void 0;return Eoe(l,_,b,z)};if(r){let s=r+":",l=i;i=(c)=>c.startsWith(s)?l(c.slice(s.length)):Eoe(RSe,!1,c,void 0,!0)}if(a){let s=i;i=(l)=>a({className:l,parseClassName:s})}return i},TSe=(e)=>{let r=new Map;return e.orderSensitiveModifiers.forEach((a,i)=>{r.set(a,1e6+i)}),(a)=>{let i=[],s=[];for(let l=0;l<a.length;l++){let c=a[l],d=c[0]==="[",m=r.has(c);if(d||m){if(s.length>0)s.sort(),i.push(...s),s=[];i.push(c)}else s.push(c)}if(s.length>0)s.sort(),i.push(...s);return i}},ASe=(e)=>({cache:ISe(e.cacheSize),parseClassName:PSe(e),sortModifiers:TSe(e),postfixLookupClassGroupIds:ESe(e),...ySe(e)}),ESe=(e)=>{let r=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let i=0;i<a.length;i++)r[a[i]]=!0;return r},DSe=/\s+/,OSe=(e,r)=>{let{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:c}=r,d=[],m=e.trim().split(DSe),g="";for(let x=m.length-1;x>=0;x-=1){let v=m[x],{isExternal:b,modifiers:_,hasImportantModifier:z,baseClassName:k,maybePostfixModifierPosition:U}=a(v);if(b){g=v+(g.length>0?" "+g:g);continue}let P=!!U,T;if(P){let re=k.substring(0,U);T=i(re);let oe=T&&c[T]?i(k):void 0;if(oe&&oe!==T)T=oe,P=!1}else T=i(k);if(!T){if(!P){g=v+(g.length>0?" "+g:g);continue}if(T=i(k),!T){g=v+(g.length>0?" "+g:g);continue}P=!1}let G=_.length===0?"":_.length===1?_[0]:l(_).join(":"),X=z?G+"!":G,J=X+T;if(d.indexOf(J)>-1)continue;d.push(J);let ee=s(T,P);for(let re=0;re<ee.length;++re){let oe=ee[re];d.push(X+oe)}g=v+(g.length>0?" "+g:g)}return g},NSe=(...e)=>{let r=0,a,i,s="";while(r<e.length)if(a=e[r++]){if(i=Uoe(a))s&&(s+=" "),s+=i}return s},Uoe=(e)=>{if(typeof e==="string")return e;let r,a="";for(let i=0;i<e.length;i++)if(e[i]){if(r=Uoe(e[i]))a&&(a+=" "),a+=r}return a},FSe=(e,...r)=>{let a,i,s,l,c=(m)=>{let g=r.reduce((x,v)=>v(x),e());return a=ASe(g),i=a.cache.get,s=a.cache.set,l=d,d(m)},d=(m)=>{let g=i(m);if(g)return g;let x=OSe(m,a);return s(m,x),x};return l=c,(...m)=>l(NSe(...m))},jSe=[],Li=(e)=>{let r=(a)=>a[e]||jSe;return r.isThemeGetter=!0,r},Yoe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qoe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BSe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,USe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YSe=/\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$/,qSe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,HSe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VSe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,f8=(e)=>BSe.test(e),mo=(e)=>!!e&&!Number.isNaN(Number(e)),nZ=(e)=>!!e&&Number.isInteger(Number(e)),EY=(e)=>e.endsWith("%")&&mo(e.slice(0,-1)),QZ=(e)=>USe.test(e),Hoe=()=>!0,WSe=(e)=>YSe.test(e)&&!qSe.test(e),OY=()=>!1,KSe=(e)=>HSe.test(e),GSe=(e)=>VSe.test(e),XSe=(e)=>!Mr(e)&&!Lr(e),QSe=(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)),JSe=(e)=>s8(e,Koe,OY),Mr=(e)=>Yoe.test(e),Iz=(e)=>s8(e,Goe,WSe),Doe=(e)=>s8(e,iLe,mo),$Se=(e)=>s8(e,Qoe,Hoe),eLe=(e)=>s8(e,Xoe,OY),Ooe=(e)=>s8(e,Voe,OY),tLe=(e)=>s8(e,Woe,GSe),J5=(e)=>s8(e,Joe,KSe),Lr=(e)=>qoe.test(e),w2=(e)=>Rz(e,Goe),rLe=(e)=>Rz(e,Xoe),Noe=(e)=>Rz(e,Voe),oLe=(e)=>Rz(e,Koe),aLe=(e)=>Rz(e,Woe),$5=(e)=>Rz(e,Joe,!0),nLe=(e)=>Rz(e,Qoe,!0),s8=(e,r,a)=>{let i=Yoe.exec(e);if(i){if(i[1])return r(i[1]);return a(i[2])}return!1},Rz=(e,r,a=!1)=>{let i=qoe.exec(e);if(i){if(i[1])return r(i[1]);return a}return!1},Voe=(e)=>e==="position"||e==="percentage",Woe=(e)=>e==="image"||e==="url",Koe=(e)=>e==="length"||e==="size"||e==="bg-size",Goe=(e)=>e==="length",iLe=(e)=>e==="number",Xoe=(e)=>e==="family-name",Qoe=(e)=>e==="number"||e==="weight",Joe=(e)=>e==="shadow";var fLe=()=>{let e=Li("color"),r=Li("font"),a=Li("text"),i=Li("font-weight"),s=Li("tracking"),l=Li("leading"),c=Li("breakpoint"),d=Li("container"),m=Li("spacing"),g=Li("radius"),x=Li("shadow"),v=Li("inset-shadow"),b=Li("text-shadow"),_=Li("drop-shadow"),z=Li("blur"),k=Li("perspective"),U=Li("aspect"),P=Li("ease"),T=Li("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],J=()=>[...X(),Lr,Mr],ee=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto","contain","none"],oe=()=>[Lr,Mr,m],ie=()=>[f8,"full","auto",...oe()],ye=()=>[nZ,"none","subgrid",Lr,Mr],We=()=>["auto",{span:["full",nZ,Lr,Mr]},nZ,Lr,Mr],Ye=()=>[nZ,"auto",Lr,Mr],Se=()=>["auto","min","max","fr",Lr,Mr],He=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],dt=()=>["start","end","center","stretch","center-safe","end-safe"],Ge=()=>["auto",...oe()],yt=()=>[f8,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...oe()],Ft=()=>[f8,"screen","full","dvw","lvw","svw","min","max","fit",...oe()],Bt=()=>[f8,"screen","full","lh","dvh","lvh","svh","min","max","fit",...oe()],de=()=>[e,Lr,Mr],_t=()=>[...X(),Noe,Ooe,{position:[Lr,Mr]}],Wt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fe=()=>["auto","cover","contain",oLe,JSe,{size:[Lr,Mr]}],fr=()=>[EY,w2,Iz],sr=()=>["","none","full",g,Lr,Mr],Jt=()=>["",mo,w2,Iz],Fr=()=>["solid","dashed","dotted","double"],Kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Xt=()=>[mo,EY,Noe,Ooe],Ir=()=>["","none",z,Lr,Mr],wr=()=>["none",mo,Lr,Mr],Tr=()=>["none",mo,Lr,Mr],Zr=()=>[mo,Lr,Mr],co=()=>[f8,"full",...oe()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[QZ],breakpoint:[QZ],color:[Hoe],container:[QZ],"drop-shadow":[QZ],ease:["in","out","in-out"],font:[XSe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[QZ],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[QZ],shadow:[QZ],spacing:["px",mo],text:[QZ],"text-shadow":[QZ],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",f8,Mr,Lr,U]}],container:["container"],"container-type":[{"@container":["","normal","size",Lr,Mr]}],"container-named":[QSe],columns:[{columns:[mo,Mr,Lr,d]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:J()}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[nZ,"auto",Lr,Mr]}],basis:[{basis:[f8,"full","auto",d,...oe()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mo,f8,"auto","initial","none",Mr]}],grow:[{grow:["",mo,Lr,Mr]}],shrink:[{shrink:["",mo,Lr,Mr]}],order:[{order:[nZ,"first","last","none",Lr,Mr]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:We()}],"col-start":[{"col-start":Ye()}],"col-end":[{"col-end":Ye()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:We()}],"row-start":[{"row-start":Ye()}],"row-end":[{"row-end":Ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:oe()}],"gap-x":[{"gap-x":oe()}],"gap-y":[{"gap-y":oe()}],"justify-content":[{justify:[...He(),"normal"]}],"justify-items":[{"justify-items":[...dt(),"normal"]}],"justify-self":[{"justify-self":["auto",...dt()]}],"align-content":[{content:["normal",...He()]}],"align-items":[{items:[...dt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...dt(),{baseline:["","last"]}]}],"place-content":[{"place-content":He()}],"place-items":[{"place-items":[...dt(),"baseline"]}],"place-self":[{"place-self":["auto",...dt()]}],p:[{p:oe()}],px:[{px:oe()}],py:[{py:oe()}],ps:[{ps:oe()}],pe:[{pe:oe()}],pbs:[{pbs:oe()}],pbe:[{pbe:oe()}],pt:[{pt:oe()}],pr:[{pr:oe()}],pb:[{pb:oe()}],pl:[{pl:oe()}],m:[{m:Ge()}],mx:[{mx:Ge()}],my:[{my:Ge()}],ms:[{ms:Ge()}],me:[{me:Ge()}],mbs:[{mbs:Ge()}],mbe:[{mbe:Ge()}],mt:[{mt:Ge()}],mr:[{mr:Ge()}],mb:[{mb:Ge()}],ml:[{ml:Ge()}],"space-x":[{"space-x":oe()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":oe()}],"space-y-reverse":["space-y-reverse"],size:[{size:yt()}],"inline-size":[{inline:["auto",...Ft()]}],"min-inline-size":[{"min-inline":["auto",...Ft()]}],"max-inline-size":[{"max-inline":["none",...Ft()]}],"block-size":[{block:["auto",...Bt()]}],"min-block-size":[{"min-block":["auto",...Bt()]}],"max-block-size":[{"max-block":["none",...Bt()]}],w:[{w:[d,"screen",...yt()]}],"min-w":[{"min-w":[d,"screen","none",...yt()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...yt()]}],h:[{h:["screen","lh",...yt()]}],"min-h":[{"min-h":["screen","lh","none",...yt()]}],"max-h":[{"max-h":["screen","lh",...yt()]}],"font-size":[{text:["base",a,w2,Iz]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,nLe,$Se]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",EY,Mr]}],"font-family":[{font:[rLe,eLe,r]}],"font-features":[{"font-features":[Mr]}],"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:[s,Lr,Mr]}],"line-clamp":[{"line-clamp":[mo,"none",Lr,Doe]}],leading:[{leading:[l,...oe()]}],"list-image":[{"list-image":["none",Lr,Mr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Lr,Mr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:de()}],"text-color":[{text:de()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fr(),"wavy"]}],"text-decoration-thickness":[{decoration:[mo,"from-font","auto",Lr,Iz]}],"text-decoration-color":[{decoration:de()}],"underline-offset":[{"underline-offset":[mo,"auto",Lr,Mr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:oe()}],"tab-size":[{tab:[nZ,Lr,Mr]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Lr,Mr]}],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",Lr,Mr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_t()}],"bg-repeat":[{bg:Wt()}],"bg-size":[{bg:Fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nZ,Lr,Mr],radial:["",Lr,Mr],conic:[nZ,Lr,Mr]},aLe,tLe]}],"bg-color":[{bg:de()}],"gradient-from-pos":[{from:fr()}],"gradient-via-pos":[{via:fr()}],"gradient-to-pos":[{to:fr()}],"gradient-from":[{from:de()}],"gradient-via":[{via:de()}],"gradient-to":[{to:de()}],rounded:[{rounded:sr()}],"rounded-s":[{"rounded-s":sr()}],"rounded-e":[{"rounded-e":sr()}],"rounded-t":[{"rounded-t":sr()}],"rounded-r":[{"rounded-r":sr()}],"rounded-b":[{"rounded-b":sr()}],"rounded-l":[{"rounded-l":sr()}],"rounded-ss":[{"rounded-ss":sr()}],"rounded-se":[{"rounded-se":sr()}],"rounded-ee":[{"rounded-ee":sr()}],"rounded-es":[{"rounded-es":sr()}],"rounded-tl":[{"rounded-tl":sr()}],"rounded-tr":[{"rounded-tr":sr()}],"rounded-br":[{"rounded-br":sr()}],"rounded-bl":[{"rounded-bl":sr()}],"border-w":[{border:Jt()}],"border-w-x":[{"border-x":Jt()}],"border-w-y":[{"border-y":Jt()}],"border-w-s":[{"border-s":Jt()}],"border-w-e":[{"border-e":Jt()}],"border-w-bs":[{"border-bs":Jt()}],"border-w-be":[{"border-be":Jt()}],"border-w-t":[{"border-t":Jt()}],"border-w-r":[{"border-r":Jt()}],"border-w-b":[{"border-b":Jt()}],"border-w-l":[{"border-l":Jt()}],"divide-x":[{"divide-x":Jt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Jt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Fr(),"hidden","none"]}],"divide-style":[{divide:[...Fr(),"hidden","none"]}],"border-color":[{border:de()}],"border-color-x":[{"border-x":de()}],"border-color-y":[{"border-y":de()}],"border-color-s":[{"border-s":de()}],"border-color-e":[{"border-e":de()}],"border-color-bs":[{"border-bs":de()}],"border-color-be":[{"border-be":de()}],"border-color-t":[{"border-t":de()}],"border-color-r":[{"border-r":de()}],"border-color-b":[{"border-b":de()}],"border-color-l":[{"border-l":de()}],"divide-color":[{divide:de()}],"outline-style":[{outline:[...Fr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[mo,Lr,Mr]}],"outline-w":[{outline:["",mo,w2,Iz]}],"outline-color":[{outline:de()}],shadow:[{shadow:["","none",x,$5,J5]}],"shadow-color":[{shadow:de()}],"inset-shadow":[{"inset-shadow":["none",v,$5,J5]}],"inset-shadow-color":[{"inset-shadow":de()}],"ring-w":[{ring:Jt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:de()}],"ring-offset-w":[{"ring-offset":[mo,Iz]}],"ring-offset-color":[{"ring-offset":de()}],"inset-ring-w":[{"inset-ring":Jt()}],"inset-ring-color":[{"inset-ring":de()}],"text-shadow":[{"text-shadow":["none",b,$5,J5]}],"text-shadow-color":[{"text-shadow":de()}],opacity:[{opacity:[mo,Lr,Mr]}],"mix-blend":[{"mix-blend":[...Kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Kt()}],"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":[mo]}],"mask-image-linear-from-pos":[{"mask-linear-from":Xt()}],"mask-image-linear-to-pos":[{"mask-linear-to":Xt()}],"mask-image-linear-from-color":[{"mask-linear-from":de()}],"mask-image-linear-to-color":[{"mask-linear-to":de()}],"mask-image-t-from-pos":[{"mask-t-from":Xt()}],"mask-image-t-to-pos":[{"mask-t-to":Xt()}],"mask-image-t-from-color":[{"mask-t-from":de()}],"mask-image-t-to-color":[{"mask-t-to":de()}],"mask-image-r-from-pos":[{"mask-r-from":Xt()}],"mask-image-r-to-pos":[{"mask-r-to":Xt()}],"mask-image-r-from-color":[{"mask-r-from":de()}],"mask-image-r-to-color":[{"mask-r-to":de()}],"mask-image-b-from-pos":[{"mask-b-from":Xt()}],"mask-image-b-to-pos":[{"mask-b-to":Xt()}],"mask-image-b-from-color":[{"mask-b-from":de()}],"mask-image-b-to-color":[{"mask-b-to":de()}],"mask-image-l-from-pos":[{"mask-l-from":Xt()}],"mask-image-l-to-pos":[{"mask-l-to":Xt()}],"mask-image-l-from-color":[{"mask-l-from":de()}],"mask-image-l-to-color":[{"mask-l-to":de()}],"mask-image-x-from-pos":[{"mask-x-from":Xt()}],"mask-image-x-to-pos":[{"mask-x-to":Xt()}],"mask-image-x-from-color":[{"mask-x-from":de()}],"mask-image-x-to-color":[{"mask-x-to":de()}],"mask-image-y-from-pos":[{"mask-y-from":Xt()}],"mask-image-y-to-pos":[{"mask-y-to":Xt()}],"mask-image-y-from-color":[{"mask-y-from":de()}],"mask-image-y-to-color":[{"mask-y-to":de()}],"mask-image-radial":[{"mask-radial":[Lr,Mr]}],"mask-image-radial-from-pos":[{"mask-radial-from":Xt()}],"mask-image-radial-to-pos":[{"mask-radial-to":Xt()}],"mask-image-radial-from-color":[{"mask-radial-from":de()}],"mask-image-radial-to-color":[{"mask-radial-to":de()}],"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":X()}],"mask-image-conic-pos":[{"mask-conic":[mo]}],"mask-image-conic-from-pos":[{"mask-conic-from":Xt()}],"mask-image-conic-to-pos":[{"mask-conic-to":Xt()}],"mask-image-conic-from-color":[{"mask-conic-from":de()}],"mask-image-conic-to-color":[{"mask-conic-to":de()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_t()}],"mask-repeat":[{mask:Wt()}],"mask-size":[{mask:Fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Lr,Mr]}],filter:[{filter:["","none",Lr,Mr]}],blur:[{blur:Ir()}],brightness:[{brightness:[mo,Lr,Mr]}],contrast:[{contrast:[mo,Lr,Mr]}],"drop-shadow":[{"drop-shadow":["","none",_,$5,J5]}],"drop-shadow-color":[{"drop-shadow":de()}],grayscale:[{grayscale:["",mo,Lr,Mr]}],"hue-rotate":[{"hue-rotate":[mo,Lr,Mr]}],invert:[{invert:["",mo,Lr,Mr]}],saturate:[{saturate:[mo,Lr,Mr]}],sepia:[{sepia:["",mo,Lr,Mr]}],"backdrop-filter":[{"backdrop-filter":["","none",Lr,Mr]}],"backdrop-blur":[{"backdrop-blur":Ir()}],"backdrop-brightness":[{"backdrop-brightness":[mo,Lr,Mr]}],"backdrop-contrast":[{"backdrop-contrast":[mo,Lr,Mr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mo,Lr,Mr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mo,Lr,Mr]}],"backdrop-invert":[{"backdrop-invert":["",mo,Lr,Mr]}],"backdrop-opacity":[{"backdrop-opacity":[mo,Lr,Mr]}],"backdrop-saturate":[{"backdrop-saturate":[mo,Lr,Mr]}],"backdrop-sepia":[{"backdrop-sepia":["",mo,Lr,Mr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":oe()}],"border-spacing-x":[{"border-spacing-x":oe()}],"border-spacing-y":[{"border-spacing-y":oe()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Lr,Mr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mo,"initial",Lr,Mr]}],ease:[{ease:["linear","initial",P,Lr,Mr]}],delay:[{delay:[mo,Lr,Mr]}],animate:[{animate:["none",T,Lr,Mr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,Lr,Mr]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:wr()}],"rotate-x":[{"rotate-x":wr()}],"rotate-y":[{"rotate-y":wr()}],"rotate-z":[{"rotate-z":wr()}],scale:[{scale:Tr()}],"scale-x":[{"scale-x":Tr()}],"scale-y":[{"scale-y":Tr()}],"scale-z":[{"scale-z":Tr()}],"scale-3d":["scale-3d"],skew:[{skew:Zr()}],"skew-x":[{"skew-x":Zr()}],"skew-y":[{"skew-y":Zr()}],transform:[{transform:[Lr,Mr,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:co()}],"translate-x":[{"translate-x":co()}],"translate-y":[{"translate-y":co()}],"translate-z":[{"translate-z":co()}],"translate-none":["translate-none"],zoom:[{zoom:[nZ,Lr,Mr]}],accent:[{accent:de()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:de()}],"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",Lr,Mr]}],"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":de()}],"scrollbar-track-color":[{"scrollbar-track":de()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":oe()}],"scroll-mx":[{"scroll-mx":oe()}],"scroll-my":[{"scroll-my":oe()}],"scroll-ms":[{"scroll-ms":oe()}],"scroll-me":[{"scroll-me":oe()}],"scroll-mbs":[{"scroll-mbs":oe()}],"scroll-mbe":[{"scroll-mbe":oe()}],"scroll-mt":[{"scroll-mt":oe()}],"scroll-mr":[{"scroll-mr":oe()}],"scroll-mb":[{"scroll-mb":oe()}],"scroll-ml":[{"scroll-ml":oe()}],"scroll-p":[{"scroll-p":oe()}],"scroll-px":[{"scroll-px":oe()}],"scroll-py":[{"scroll-py":oe()}],"scroll-ps":[{"scroll-ps":oe()}],"scroll-pe":[{"scroll-pe":oe()}],"scroll-pbs":[{"scroll-pbs":oe()}],"scroll-pbe":[{"scroll-pbe":oe()}],"scroll-pt":[{"scroll-pt":oe()}],"scroll-pr":[{"scroll-pr":oe()}],"scroll-pb":[{"scroll-pb":oe()}],"scroll-pl":[{"scroll-pl":oe()}],"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",Lr,Mr]}],fill:[{fill:["none",...de()]}],"stroke-w":[{stroke:[mo,w2,Iz,Doe]}],stroke:[{stroke:["none",...de()]}],"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"]}};var $oe=FSe(fLe);function C(...e){return $oe(Q5(e))}var eae=(e)=>typeof e==="boolean"?`${e}`:e===0?"0":e,tae=Q5,fs=(e,r)=>(a)=>{var i;if((r===null||r===void 0?void 0:r.variants)==null)return tae(e,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className);let{variants:s,defaultVariants:l}=r,c=Object.keys(s).map((g)=>{let x=a===null||a===void 0?void 0:a[g],v=l===null||l===void 0?void 0:l[g];if(x===null)return null;let b=eae(x)||eae(v);return s[g][b]}),d=a&&Object.entries(a).reduce((g,x)=>{let[v,b]=x;if(b===void 0)return g;return g[v]=b,g},{}),m=r===null||r===void 0?void 0:(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:v,className:b,..._}=x;return Object.entries(_).every((z)=>{let[k,U]=z;return Array.isArray(U)?U.includes({...l,...d}[k]):{...l,...d}[k]===U})?[...g,v,b]:g},[]);return tae(e,c,m,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className)};S();S();var sLe=Object.defineProperty,gc=(e,r)=>sLe(e,"name",{value:r,configurable:!0});function lLe(e,r){let a=it(r);a.displayName=e+"Context";let i=gc((l)=>{let{children:c,...d}=l,m=N(()=>d,Object.values(d));return t(a.Provider,{value:m,children:c})},"Provider");i.displayName=e+"Provider";function s(l,c={}){let{optional:d=!1}=c,m=ft(a);if(m)return m;if(r!==void 0)return r;if(d)return;throw Error(`\`${l}\` must be used within \`${e}\``)}return gc(s,"useContext"),[i,s]}gc(lLe,"createContext");function mt(e,r=[]){let a=[];function i(l,c){let d=it(c);d.displayName=l+"Context";let m=a.length;a=[...a,c];let g=gc((v)=>{let{scope:b,children:_,...z}=v,k=b?.[e]?.[m]||d,U=N(()=>z,Object.values(z));return t(k.Provider,{value:U,children:_})},"Provider");g.displayName=l+"Provider";function x(v,b,_={}){let{optional:z=!1}=_,k=b?.[e]?.[m]||d,U=ft(k);if(U)return U;if(c!==void 0)return c;if(z)return;throw Error(`\`${v}\` must be used within \`${l}\``)}return gc(x,"useContext"),[g,x]}gc(i,"createContext");let s=gc(()=>{let l=a.map((c)=>it(c));return gc(function(d){let m=d?.[e]||l;return N(()=>({[`__scope${e}`]:{...d,[e]:m}}),[d,m])},"useScope")},"createScope");return s.scopeName=e,[i,rae(s,...r)]}gc(mt,"createContextScope");function rae(...e){let r=e[0];if(e.length===1)return r;let a=gc(()=>{let i=e.map((s)=>({useScope:s(),scopeName:s.scopeName}));return gc(function(l){let c=i.reduce((d,{useScope:m,scopeName:g})=>{let v=m(l)[`__scope${g}`];return{...d,...v}},{});return N(()=>({[`__scope${r.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return a.scopeName=r.scopeName,a}gc(rae,"composeContextScopes");S();var cLe=Object.defineProperty,FY=(e,r)=>cLe(e,"name",{value:r,configurable:!0});function NY(e,r){if(typeof e==="function")return e(r);else if(e!==null&&e!==void 0)e.current=r}FY(NY,"setRef");function oae(...e){return(r)=>{let a=!1,i=e.map((s)=>{let l=NY(s,r);if(!a&&typeof l=="function")a=!0;return l});if(a)return()=>{for(let s=0;s<i.length;s++){let l=i[s];if(typeof l=="function")l();else NY(e[s],null)}}}}FY(oae,"composeRefs");function _e(...e){return D(oae(...e),e)}FY(_e,"useComposedRefs");S();var uLe=Object.defineProperty,Wk=(e,r)=>uLe(e,"name",{value:r,configurable:!0}),aae=!!(typeof window<"u"&&window.document&&window.document.createElement);function Y(e,r,{checkForDefaultPrevented:a=!0}={}){return Wk(function(s){if(e?.(s),a===!1||!s||!s.defaultPrevented)return r?.(s)},"handleEvent")}Wk(Y,"composeEventHandlers");function dLe(e){if(!aae)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Wk(dLe,"getOwnerWindow");function jY(e){if(!aae)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Wk(jY,"getOwnerDocument");function nae(e,r=!1){let{activeElement:a}=jY(e);if(!a?.nodeName)return null;if(iae(a)&&a.contentDocument)return nae(a.contentDocument.body,r);if(r){let i=a.getAttribute("aria-activedescendant");if(i){let s=jY(a).getElementById(i);if(s)return s}}return a}Wk(nae,"getActiveElement");function iae(e){return e.tagName==="IFRAME"}Wk(iae,"isFrame");S();S();var Rt=globalThis?.document?$e:()=>{};var ZLe=Object.defineProperty,pLe=(e,r)=>ZLe(e,"name",{value:r,configurable:!0}),mLe=V[" useId ".trim().toString()]||(()=>{return}),hLe=0;function Er(e){let[r,a]=u(mLe());return Rt(()=>{if(!e)a((i)=>i??String(hLe++))},[e]),e||(r?`radix-${r}`:"")}pLe(Er,"useId");S();var pi=!1;S();S();var gLe=Object.defineProperty,MLe=(e,r)=>gLe(e,"name",{value:r,configurable:!0}),fae=V[" useEffectEvent ".trim().toString()],sae=V[" useInsertionEffect ".trim().toString()];function BY(e){if(typeof fae==="function")return fae(e);let r=y(()=>{throw Error("Cannot call an event handler while rendering.")});if(typeof sae==="function")sae(()=>{r.current=e});else Rt(()=>{r.current=e});return N(()=>(...a)=>r.current?.(...a),[])}MLe(BY,"useEffectEvent");var xLe=Object.defineProperty,z2=(e,r)=>xLe(e,"name",{value:r,configurable:!0}),vLe=V[" useInsertionEffect ".trim().toString()]||Rt;function Lt({prop:e,defaultProp:r,onChange:a=z2(()=>{},"onChange"),caller:i}){let[s,l,c]=cae({defaultProp:r,onChange:a}),d=e!==void 0,m=d?e:s;if(pi){let x=y(e!==void 0);h(()=>{let v=x.current;if(v!==d)console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${d?"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.`);x.current=d},[d,i])}let g=D((x)=>{if(d){let v=uae(x)?x(e):x;if(v!==e)c.current?.(v)}else l(x)},[d,e,l,c]);return[m,g]}z2(Lt,"useControllableState");function cae({defaultProp:e,onChange:r}){let[a,i]=u(e),s=y(a),l=y(r);return vLe(()=>{l.current=r},[r]),h(()=>{if(s.current!==a)l.current?.(a),s.current=a},[a,s]),[a,i,l]}z2(cae,"useUncontrolledState");function uae(e){return typeof e==="function"}z2(uae,"isFunction");var lae=Symbol("RADIX:SYNC_STATE");function yLe(e,r,a,i){let{prop:s,defaultProp:l,onChange:c,caller:d}=r,m=s!==void 0,g=BY(c);if(pi){let U=y(s!==void 0);h(()=>{let P=U.current;if(P!==m)console.warn(`${d} is changing from ${P?"controlled":"uncontrolled"} to ${m?"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=m},[m,d])}let x=[{...a,state:l}];if(i)x.push(i);let[v,b]=tn((U,P)=>{if(P.type===lae)return{...U,state:P.state};let T=e(U,P);if(m&&!Object.is(T.state,U.state))g(T.state);return T},...x),_=v.state,z=y(_);h(()=>{if(z.current!==_){if(z.current=_,!m)g(_)}},[_,z,m]);let k=N(()=>{if(s!==void 0)return{...v,state:s};return v},[v,s]);return h(()=>{if(m&&!Object.is(s,v.state))b({type:lae,state:s})},[s,v.state,m]),[k,b]}z2(yLe,"useControllableStateReducer");S();S();S();var _Le=Object.defineProperty,cu=(e,r)=>_Le(e,"name",{value:r,configurable:!0});function Di(e){let r=F((a,i)=>{let{children:s,...l}=a,c=null,d=!1,m=[];if(UY(s)&&typeof e4==="function")s=e4(s._payload);if(rc.forEach(s,(b)=>{if(hae(b)){d=!0;let _=b,z="child"in _.props?_.props.child:_.props.children;if(UY(z)&&typeof e4==="function")z=e4(z._payload);c=bLe(_,z),m.push(c?.props?.children)}else m.push(b)}),c)c=Du(c,void 0,m);else if(!d&&rc.count(s)===1&&ts(s))c=s;let g=c?mae(c):void 0,x=_e(i,g);if(!c){if(s||s===0)throw Error(d?SLe(e):zLe(e));return s}let v=pae(l,c.props??{});if(c.type!==Cn)v.ref=i?x:g;return Du(c,v)});return r.displayName=`${e}.Slot`,r}cu(Di,"createSlot");var dae=Di("Slot"),Zae=Symbol.for("radix.slottable");function YY(e){let r=cu((a)=>("child"in a)?a.children(a.child):a.children,"Slottable");return r.displayName=`${e}.Slottable`,r.__radixId=Zae,r}cu(YY,"createSlottable");var bLe=cu((e,r)=>{if("child"in e.props){let a=e.props.child;if(!ts(a))return null;return Du(a,void 0,e.props.children(a.props.children))}return ts(r)?r:null},"getSlottableElementFromSlottable");function pae(e,r){let a={...r};for(let i in r){let s=e[i],l=r[i];if(/^on[A-Z]/.test(i)){if(s&&l)a[i]=(...d)=>{let m=l(...d);return s(...d),m};else if(s)a[i]=s}else if(i==="style")a[i]={...s,...l};else if(i==="className")a[i]=[s,l].filter(Boolean).join(" ")}return{...e,...a}}cu(pae,"mergeProps");function mae(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}cu(mae,"getElementRef");function hae(e){return ts(e)&&typeof e.type==="function"&&"__radixId"in e.type&&e.type.__radixId===Zae}cu(hae,"isSlottable");var wLe=Symbol.for("react.lazy");function UY(e){return e!=null&&typeof e==="object"&&"$$typeof"in e&&e.$$typeof===wLe&&"_payload"in e&&gae(e._payload)}cu(UY,"isLazyComponent");function gae(e){return typeof e==="object"&&e!==null&&"then"in e}cu(gae,"isPromiseLike");var zLe=cu((e)=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),SLe=cu((e)=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),e4=V[" use ".trim().toString()];var LLe=Object.defineProperty,kLe=(e,r)=>LLe(e,"name",{value:r,configurable:!0}),CLe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=CLe.reduce((e,r)=>{let a=Di(`Primitive.${r}`),i=F((s,l)=>{let{asChild:c,...d}=s,m=c?a:r;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return t(m,{...d,ref:l})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function S2(e,r){if(e)rn(()=>e.dispatchEvent(r))}kLe(S2,"dispatchDiscreteCustomEvent");S();var ILe=Object.defineProperty,RLe=(e,r)=>ILe(e,"name",{value:r,configurable:!0});function Qo(e){let r=y(e);return h(()=>{r.current=e}),N(()=>(...a)=>r.current?.(...a),[])}RLe(Qo,"useCallbackRef");var PLe=Object.defineProperty,Oi=(e,r)=>PLe(e,"name",{value:r,configurable:!0}),HY="dismissableLayer.update",TLe="dismissableLayer.pointerDownOutside",ALe="dismissableLayer.focusOutside",Mae,xae=it({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),iZ=F(Oi(function(r,a){let{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:g,...x}=r,v=ft(xae),[b,_]=u(null),z=b?.ownerDocument??globalThis?.document,[,k]=u({}),U=_e(a,_),P=Array.from(v.layers),[T]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),G=T?P.indexOf(T):-1,X=b?P.indexOf(b):-1,J=v.layersWithOutsidePointerEventsDisabled.size>0,ee=X>=G,re=y(!1),oe=vae((Ye)=>{if(c?.(Ye),m?.(Ye),!Ye.defaultPrevented)g?.()},{ownerDocument:z,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:re,dismissableSurfaces:v.dismissableSurfaces,shouldHandlePointerDownOutside:D((Ye)=>{if(!(Ye instanceof Node))return!1;let Se=[...v.branches].some((He)=>He.contains(Ye));return ee&&!Se},[v.branches,ee])}),ie=yae((Ye)=>{if(s&&re.current)return;let Se=Ye.target;if([...v.branches].some((dt)=>dt.contains(Se)))return;if(d?.(Ye),m?.(Ye),!Ye.defaultPrevented)g?.()},z),ye=b?X===P.length-1:!1,We=Qo((Ye)=>{if(Ye.key!=="Escape")return;if(l?.(Ye),!Ye.defaultPrevented&&g)Ye.preventDefault(),g()});return h(()=>{if(!ye)return;return z.addEventListener("keydown",We,{capture:!0}),()=>z.removeEventListener("keydown",We,{capture:!0})},[z,ye,We]),h(()=>{if(!b)return;if(i){if(v.layersWithOutsidePointerEventsDisabled.size===0)Mae=z.body.style.pointerEvents,z.body.style.pointerEvents="none";v.layersWithOutsidePointerEventsDisabled.add(b)}return v.layers.add(b),VY(),()=>{if(i){if(v.layersWithOutsidePointerEventsDisabled.delete(b),v.layersWithOutsidePointerEventsDisabled.size===0)z.body.style.pointerEvents=Mae}}},[b,z,i,v]),h(()=>()=>{if(!b)return;v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),VY()},[b,v]),h(()=>{let Ye=Oi(()=>k({}),"handleUpdate");return document.addEventListener(HY,Ye),()=>document.removeEventListener(HY,Ye)},[]),t(se.div,{...x,ref:U,style:{pointerEvents:J?ee?"auto":"none":void 0,...r.style},onFocusCapture:Y(r.onFocusCapture,ie.onFocusCapture),onBlurCapture:Y(r.onBlurCapture,ie.onBlurCapture),onPointerDownCapture:Y(r.onPointerDownCapture,oe.onPointerDownCapture)})},"DismissableLayer"));function WY(){let e=ft(xae),[r,a]=u(null);return h(()=>{if(!r)return;return e.dismissableSurfaces.add(r),()=>{e.dismissableSurfaces.delete(r)}},[r,e.dismissableSurfaces]),a}Oi(WY,"useDismissableLayerSurface");var ELe=Oi(()=>!0,"IS_TRUE");function vae(e,r){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:c=ELe}=r,d=Qo(e),m=y(!1),g=y(!1),x=y(new Map),v=y(()=>{});return h(()=>{function b(){g.current=!1,s.current=!1,x.current.clear()}Oi(b,"resetOutsideInteraction");function _(){return Array.from(x.current.values()).some(Boolean)}Oi(_,"isOutsideInteractionIntercepted");function z(G){if(!g.current)return;let X=G.target;if(!(X instanceof Node&&[...l].some((ee)=>ee.contains(X))))x.current.set(G.type,!0);if(G.type==="click")window.setTimeout(()=>{if(g.current)v.current()},0)}Oi(z,"handleInteractionCapture");function k(G){if(g.current)x.current.set(G.type,!1)}Oi(k,"handleInteractionBubble");let U=Oi((G)=>{if(G.target&&!m.current){let J=function(){a.removeEventListener("click",v.current);let re=_();if(b(),!re)KY(TLe,d,ee,{discrete:!0})};var X=J;if(Oi(J,"handleAndDispatchPointerDownOutsideEvent"),!c(G.target)){a.removeEventListener("click",v.current),b(),m.current=!1;return}let ee={originalEvent:G};if(g.current=!0,s.current=i&&G.button===0,x.current.clear(),!i||G.button!==0)J();else a.removeEventListener("click",v.current),v.current=J,a.addEventListener("click",v.current,{once:!0})}else a.removeEventListener("click",v.current),b();m.current=!1},"handlePointerDown"),P=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let G of P)a.addEventListener(G,z,!0),a.addEventListener(G,k);let T=window.setTimeout(()=>{a.addEventListener("pointerdown",U)},0);return()=>{window.clearTimeout(T),a.removeEventListener("pointerdown",U),a.removeEventListener("click",v.current);for(let G of P)a.removeEventListener(G,z,!0),a.removeEventListener(G,k)}},[a,d,i,s,l,c]),{onPointerDownCapture:Oi(()=>m.current=!0,"onPointerDownCapture")}}Oi(vae,"usePointerDownOutside");function yae(e,r=globalThis?.document){let a=Qo(e),i=y(!1);return h(()=>{let s=Oi((l)=>{if(l.target&&!i.current)KY(ALe,a,{originalEvent:l},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,a]),{onFocusCapture:Oi(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Oi(()=>i.current=!1,"onBlurCapture")}}Oi(yae,"useFocusOutside");function VY(){let e=new CustomEvent(HY);document.dispatchEvent(e)}Oi(VY,"dispatchUpdate");function KY(e,r,a,{discrete:i}){let s=a.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});if(r)s.addEventListener(e,r,{once:!0});if(i)S2(s,l);else s.dispatchEvent(l)}Oi(KY,"handleAndDispatchCustomEvent");S();var DLe=Object.defineProperty,ns=(e,r)=>DLe(e,"name",{value:r,configurable:!0}),GY="focusScope.autoFocusOnMount",XY="focusScope.autoFocusOnUnmount",_ae={bubbles:!1,cancelable:!0},l8=F(ns(function(r,a){let{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:c,...d}=r,[m,g]=u(null),x=Qo(l),v=Qo(c),b=y(null),_=_e(a,g),z=y({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h(()=>{if(s){let G=function(re){if(z.paused||!m)return;let oe=re.target;if(m.contains(oe))b.current=oe;else JZ(b.current,{select:!0})},X=function(re){if(z.paused||!m)return;let oe=re.relatedTarget;if(oe===null)return;if(!m.contains(oe))JZ(b.current,{select:!0})},J=function(re){if(document.activeElement!==document.body)return;for(let ie of re)if(ie.removedNodes.length>0)JZ(m)};var U=G,P=X,T=J;ns(G,"handleFocusIn"),ns(X,"handleFocusOut"),ns(J,"handleMutations"),document.addEventListener("focusin",G),document.addEventListener("focusout",X);let ee=new MutationObserver(J);if(m)ee.observe(m,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",G),document.removeEventListener("focusout",X),ee.disconnect()}}},[s,m,z.paused]),h(()=>{if(m){bae.add(z);let U=document.activeElement;if(!m.contains(U)){let T=new CustomEvent(GY,_ae);if(m.addEventListener(GY,x),m.dispatchEvent(T),!T.defaultPrevented){if(wae(Cae($Y(m)),{select:!0}),document.activeElement===U)JZ(m)}}return()=>{m.removeEventListener(GY,x),setTimeout(()=>{let T=new CustomEvent(XY,_ae);if(m.addEventListener(XY,v),m.dispatchEvent(T),!T.defaultPrevented)JZ(U??document.body,{select:!0});m.removeEventListener(XY,v),bae.remove(z)},0)}}},[m,x,v,z]);let k=D((U)=>{if(!i&&!s)return;if(z.paused)return;let P=U.key==="Tab"&&!U.altKey&&!U.ctrlKey&&!U.metaKey,T=document.activeElement;if(P&&T){let G=U.currentTarget,[X,J]=zae(G);if(!(X&&J)){if(T===G)U.preventDefault()}else if(!U.shiftKey&&T===J){if(U.preventDefault(),i)JZ(X,{select:!0})}else if(U.shiftKey&&T===X){if(U.preventDefault(),i)JZ(J,{select:!0})}}},[i,s,z.paused]);return t(se.div,{tabIndex:-1,...d,ref:_,onKeyDown:k})},"FocusScope"));function wae(e,{select:r=!1}={}){let a=document.activeElement;for(let i of e)if(JZ(i,{select:r}),document.activeElement!==a)return}ns(wae,"focusFirst");function zae(e){let r=$Y(e),a=QY(r,e),i=QY(r.reverse(),e);return[a,i]}ns(zae,"getTabbableEdges");function $Y(e){let r=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ns((i)=>{let s=i.tagName==="INPUT"&&i.type==="hidden";if(i.disabled||i.hidden||s)return NodeFilter.FILTER_SKIP;return i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});while(a.nextNode())r.push(a.currentNode);return r}ns($Y,"getTabbableCandidates");function QY(e,r){let a=typeof r.checkVisibility==="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(let i of e)if(!(a?!i.checkVisibility({checkVisibilityCSS:!0}):Sae(i,{upTo:r})))return i}ns(QY,"findVisible");function Sae(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;while(e){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}ns(Sae,"isHidden");function Lae(e){return e instanceof HTMLInputElement&&"select"in e}ns(Lae,"isSelectableInput");function JZ(e,{select:r=!1}={}){if(e&&e.focus){let a=document.activeElement;if(e.focus({preventScroll:!0}),e!==a&&Lae(e)&&r)e.select()}}ns(JZ,"focus");var bae=kae();function kae(){let e=[];return{add(r){let a=e[0];if(r!==a)a?.pause();e=JY(e,r),e.unshift(r)},remove(r){e=JY(e,r),e[0]?.resume()}}}ns(kae,"createFocusScopesStack");function JY(e,r){let a=[...e],i=a.indexOf(r);if(i!==-1)a.splice(i,1);return a}ns(JY,"arrayRemove");function Cae(e){return e.filter((r)=>r.tagName!=="A")}ns(Cae,"removeLinks");S();var OLe=Object.defineProperty,NLe=(e,r)=>OLe(e,"name",{value:r,configurable:!0}),fZ=F(NLe(function(r,a){let{container:i,...s}=r,[l,c]=u(!1);Rt(()=>c(!0),[]);let d=i||l&&globalThis?.document?.body;return d?Ji(t(se.div,{...s,ref:a}),d):null},"Portal"));S();S();var FLe=Object.defineProperty,$Z=(e,r)=>FLe(e,"name",{value:r,configurable:!0});function Iae(e,r){return tn((a,i)=>r[a][i]??a,e)}$Z(Iae,"useStateMachine");var ar=$Z((e)=>{let{present:r,children:a}=e,i=Rae(r),s=typeof a==="function"?a({present:i.isPresent}):rc.only(a),l=Pae(i.ref,Tae(s));return typeof a==="function"||i.isPresent?Du(s,{ref:l}):null},"Presence");function Rae(e){let[r,a]=u(),i=y(null),s=y(e),l=y("none"),c=y(void 0),d=e?"mounted":"unmounted",[m,g]=Iae(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h(()=>{if(m==="mounted")l.current=c.current??Kk(i.current),c.current=void 0;else l.current="none"},[m]),Rt(()=>{let x=i.current,v=s.current;if(v!==e){let _=l.current,z=Kk(x);if(e)c.current=z,g("MOUNT");else if(z==="none"||x?.display==="none")g("UNMOUNT");else if(v&&_!==z)g("ANIMATION_OUT");else g("UNMOUNT");s.current=e}},[e,g]),Rt(()=>{if(r){let x,v=r.ownerDocument.defaultView??window,b=$Z((z)=>{let U=Kk(i.current).includes(CSS.escape(z.animationName));if(z.target===r&&U){if(g("ANIMATION_END"),!s.current){let P=r.style.animationFillMode;r.style.animationFillMode="forwards",x=v.setTimeout(()=>{if(r.style.animationFillMode==="forwards")r.style.animationFillMode=P})}}},"handleAnimationEnd"),_=$Z((z)=>{if(z.target===r)l.current=Kk(i.current)},"handleAnimationStart");return r.addEventListener("animationstart",_),r.addEventListener("animationcancel",b),r.addEventListener("animationend",b),()=>{v.clearTimeout(x),r.removeEventListener("animationstart",_),r.removeEventListener("animationcancel",b),r.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[r,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:D((x)=>{if(x){let v=getComputedStyle(x);i.current=v,c.current=Kk(v)}else i.current=null;a(x)},[])}}$Z(Rae,"usePresence");function e7(e,r){if(typeof e==="function")return e(r);else if(e!==null&&e!==void 0)e.current=r}$Z(e7,"setRef");function Pae(...e){let r=y(e);return r.current=e,D((a)=>{let i=r.current,s=!1,l=i.map((c)=>{let d=e7(c,a);if(!s&&typeof d==="function")s=!0;return d});if(s)return()=>{for(let c=0;c<l.length;c++){let d=l[c];if(typeof d==="function")d();else e7(i[c],null)}}},[])}$Z(Pae,"useStableComposedRefs");function Kk(e){return e?.animationName||"none"}$Z(Kk,"getAnimationName");function Tae(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}$Z(Tae,"getElementRef");S();var jLe=Object.defineProperty,r7=(e,r)=>jLe(e,"name",{value:r,configurable:!0}),t4=0,Gk=null;function BLe(e){return sZ(),e.children}r7(BLe,"FocusGuards");function sZ(){h(()=>{if(!Gk)Gk={start:t7(),end:t7()};let{start:e,end:r}=Gk;if(document.body.firstElementChild!==e)document.body.insertAdjacentElement("afterbegin",e);if(document.body.lastElementChild!==r)document.body.insertAdjacentElement("beforeend",r);return t4++,()=>{if(t4===1)Gk?.start.remove(),Gk?.end.remove(),Gk=null;t4=Math.max(0,t4-1)}},[])}r7(sZ,"useFocusGuards");function t7(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}r7(t7,"createFocusGuard");var Gs=function(){return Gs=Object.assign||function(r){for(var a,i=1,s=arguments.length;i<s;i++){a=arguments[i];for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l))r[l]=a[l]}return r},Gs.apply(this,arguments)};function r4(e,r){var a={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)if(r.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s]))a[i[s]]=e[i[s]]}return a}function Aae(e,r,a){if(a||arguments.length===2){for(var i=0,s=r.length,l;i<s;i++)if(l||!(i in r)){if(!l)l=Array.prototype.slice.call(r,0,i);l[i]=r[i]}}return e.concat(l||Array.prototype.slice.call(r))}S();S();var Pz="right-scroll-bar-position",Tz="width-before-scroll-bar",o7="with-scroll-bars-hidden",a7="--removed-body-scroll-bar-size";S();function o4(e,r){if(typeof e==="function")e(r);else if(e)e.current=r;return e}S();function Eae(e,r){var a=u(function(){return{value:e,callback:r,facade:{get current(){return a.value},set current(i){var s=a.value;if(s!==i)a.value=i,a.callback(i,s)}}}})[0];return a.callback=r,a.facade}var ULe=typeof window<"u"?$e:h,Dae=new WeakMap;function n7(e,r){var a=Eae(r||null,function(i){return e.forEach(function(s){return o4(s,i)})});return ULe(function(){var i=Dae.get(a);if(i){var s=new Set(i),l=new Set(e),c=a.current;s.forEach(function(d){if(!l.has(d))o4(d,null)}),l.forEach(function(d){if(!s.has(d))o4(d,c)})}Dae.set(a,e)},[e]),a}function YLe(e){return e}function qLe(e,r){if(r===void 0)r=YLe;var a=[],i=!1,s={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(a.length)return a[a.length-1];return e},useMedium:function(l){var c=r(l,i);return a.push(c),function(){a=a.filter(function(d){return d!==c})}},assignSyncMedium:function(l){i=!0;while(a.length){var c=a;a=[],c.forEach(l)}a={push:function(d){return l(d)},filter:function(){return a}}},assignMedium:function(l){i=!0;var c=[];if(a.length){var d=a;a=[],d.forEach(l),c=a}var m=function(){var x=c;c=[],x.forEach(l)},g=function(){return Promise.resolve().then(m)};g(),a={push:function(x){c.push(x),g()},filter:function(x){return c=c.filter(x),a}}}};return s}function i7(e){if(e===void 0)e={};var r=qLe(null);return r.options=Gs({async:!0,ssr:!1},e),r}S();var Oae=function(e){var r=e.sideCar,a=r4(e,["sideCar"]);if(!r)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw Error("Sidecar medium not found");return j(i,Gs({},a))};Oae.isSideCarExport=!0;function f7(e,r){return e.useMedium(r),Oae}var a4=i7();var s7=function(){return},L2=F(function(e,r){var a=y(null),i=u({onScrollCapture:s7,onWheelCapture:s7,onTouchMoveCapture:s7}),s=i[0],l=i[1],{forwardProps:c,children:d,className:m,removeScrollBar:g,enabled:x,shards:v,sideCar:b,noRelative:_,noIsolation:z,inert:k,allowPinchZoom:U,as:P}=e,T=P===void 0?"div":P,G=e.gapMode,X=r4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),J=b,ee=n7([a,r]),re=Gs(Gs({},X),s);return j(Cn,null,x&&j(J,{sideCar:a4,removeScrollBar:g,shards:v,noRelative:_,noIsolation:z,inert:k,setCallbacks:l,allowPinchZoom:!!U,lockRef:a,gapMode:G}),c?Du(rc.only(d),Gs(Gs({},re),{ref:ee})):j(T,Gs({},re,{className:m,ref:ee}),d))});L2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};L2.classNames={fullWidth:Tz,zeroRight:Pz};S();S();S();var Nae;var Fae=function(){if(Nae)return Nae;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function HLe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=Fae();if(r)e.setAttribute("nonce",r);return e}function VLe(e,r){if(e.styleSheet)e.styleSheet.cssText=r;else e.appendChild(document.createTextNode(r))}function WLe(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var l7=function(){var e=0,r=null;return{add:function(a){if(e==0){if(r=HLe())VLe(r,a),WLe(r)}e++},remove:function(){if(e--,!e&&r)r.parentNode&&r.parentNode.removeChild(r),r=null}}};var c7=function(){var e=l7();return function(r,a){h(function(){return e.add(r),function(){e.remove()}},[r&&a])}};var k2=function(){var e=c7(),r=function(a){var{styles:i,dynamic:s}=a;return e(i,s),null};return r};var KLe={left:0,top:0,right:0,gap:0},u7=function(e){return parseInt(e||"",10)||0},GLe=function(e){var r=window.getComputedStyle(document.body),a=r[e==="padding"?"paddingLeft":"marginLeft"],i=r[e==="padding"?"paddingTop":"marginTop"],s=r[e==="padding"?"paddingRight":"marginRight"];return[u7(a),u7(i),u7(s)]},d7=function(e){if(e===void 0)e="margin";if(typeof window>"u")return KLe;var r=GLe(e),a=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-a+r[2]-r[0])}};var XLe=k2(),Xk="data-scroll-locked",QLe=function(e,r,a,i){var{left:s,top:l,right:c,gap:d}=e;if(a===void 0)a="margin";return`
16
- .`.concat(o7,` {
17
- overflow: hidden `).concat(i,`;
18
- padding-right: `).concat(d,"px ").concat(i,`;
19
- }
20
- body[`).concat(Xk,`] {
21
- overflow: hidden `).concat(i,`;
22
- overscroll-behavior: contain;
23
- `).concat([r&&"position: relative ".concat(i,";"),a==="margin"&&`
24
- padding-left: `.concat(s,`px;
25
- padding-top: `).concat(l,`px;
26
- padding-right: `).concat(c,`px;
27
- margin-left:0;
28
- margin-top:0;
29
- margin-right: `).concat(d,"px ").concat(i,`;
30
- `),a==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
31
- }
32
-
33
- .`).concat(Pz,` {
34
- right: `).concat(d,"px ").concat(i,`;
35
- }
36
-
37
- .`).concat(Tz,` {
38
- margin-right: `).concat(d,"px ").concat(i,`;
39
- }
40
-
41
- .`).concat(Pz," .").concat(Pz,` {
42
- right: 0 `).concat(i,`;
43
- }
44
-
45
- .`).concat(Tz," .").concat(Tz,` {
46
- margin-right: 0 `).concat(i,`;
47
- }
48
-
49
- body[`).concat(Xk,`] {
50
- `).concat(a7,": ").concat(d,`px;
51
- }
52
- `)},jae=function(){var e=parseInt(document.body.getAttribute(Xk)||"0",10);return isFinite(e)?e:0},JLe=function(){h(function(){return document.body.setAttribute(Xk,(jae()+1).toString()),function(){var e=jae()-1;if(e<=0)document.body.removeAttribute(Xk);else document.body.setAttribute(Xk,e.toString())}},[])},Z7=function(e){var{noRelative:r,noImportant:a,gapMode:i}=e,s=i===void 0?"margin":i;JLe();var l=N(function(){return d7(s)},[s]);return j(XLe,{styles:QLe(l,!r,s,!a?"!important":"")})};var p7=!1;if(typeof window<"u")try{Qk=Object.defineProperty({},"passive",{get:function(){return p7=!0,!0}}),window.addEventListener("test",Qk,Qk),window.removeEventListener("test",Qk,Qk)}catch(e){p7=!1}var Qk,Az=p7?{passive:!1}:!1;var $Le=function(e){return e.tagName==="TEXTAREA"},Bae=function(e,r){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!$Le(e)&&a[r]==="visible")},eke=function(e){return Bae(e,"overflowY")},tke=function(e){return Bae(e,"overflowX")},m7=function(e,r){var a=r.ownerDocument,i=r;do{if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot)i=i.host;var s=Uae(e,i);if(s){var l=Yae(e,i),c=l[1],d=l[2];if(c>d)return!0}i=i.parentNode}while(i&&i!==a.body);return!1},rke=function(e){var{scrollTop:r,scrollHeight:a,clientHeight:i}=e;return[r,a,i]},oke=function(e){var{scrollLeft:r,scrollWidth:a,clientWidth:i}=e;return[r,a,i]},Uae=function(e,r){return e==="v"?eke(r):tke(r)},Yae=function(e,r){return e==="v"?rke(r):oke(r)},ake=function(e,r){return e==="h"&&r==="rtl"?-1:1},qae=function(e,r,a,i,s){var l=ake(e,window.getComputedStyle(r).direction),c=l*i,d=a.target,m=r.contains(d),g=!1,x=c>0,v=0,b=0;do{if(!d)break;var _=Yae(e,d),z=_[0],k=_[1],U=_[2],P=k-U-l*z;if(z||P){if(Uae(e,d))v+=P,b+=z}var T=d.parentNode;d=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!m&&d!==document.body||m&&(r.contains(d)||r===d));if(x&&(s&&Math.abs(v)<1||!s&&c>v))g=!0;else if(!x&&(s&&Math.abs(b)<1||!s&&-c>b))g=!0;return g};var n4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hae=function(e){return[e.deltaX,e.deltaY]},Vae=function(e){return e&&"current"in e?e.current:e},nke=function(e,r){return e[0]===r[0]&&e[1]===r[1]},ike=function(e){return`
53
- .block-interactivity-`.concat(e,` {pointer-events: none;}
54
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
55
- `)},fke=0,Jk=[];function Wae(e){var r=y([]),a=y([0,0]),i=y(),s=u(fke++)[0],l=u(k2)[0],c=y(e);h(function(){c.current=e},[e]),h(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var k=Aae([e.lockRef.current],(e.shards||[]).map(Vae),!0).filter(Boolean);return k.forEach(function(U){return U.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),k.forEach(function(U){return U.classList.remove("allow-interactivity-".concat(s))})}}return},[e.inert,e.lockRef.current,e.shards]);var d=D(function(k,U){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!c.current.allowPinchZoom;var P=n4(k),T=a.current,G="deltaX"in k?k.deltaX:T[0]-P[0],X="deltaY"in k?k.deltaY:T[1]-P[1],J,ee=k.target,re=Math.abs(G)>Math.abs(X)?"h":"v";if("touches"in k&&re==="h"&&ee.type==="range")return!1;var oe=window.getSelection(),ie=oe&&oe.anchorNode,ye=ie?ie===ee||ie.contains(ee):!1;if(ye)return!1;var We=m7(re,ee);if(!We)return!0;if(We)J=re;else J=re==="v"?"h":"v",We=m7(re,ee);if(!We)return!1;if(!i.current&&"changedTouches"in k&&(G||X))i.current=J;if(!J)return!0;var Ye=i.current||J;return qae(Ye,U,k,Ye==="h"?G:X,!0)},[]),m=D(function(k){var U=k;if(!Jk.length||Jk[Jk.length-1]!==l)return;var P="deltaY"in U?Hae(U):n4(U),T=r.current.filter(function(J){return J.name===U.type&&(J.target===U.target||U.target===J.shadowParent)&&nke(J.delta,P)})[0];if(T&&T.should){if(U.cancelable)U.preventDefault();return}if(!T){var G=(c.current.shards||[]).map(Vae).filter(Boolean).filter(function(J){return J.contains(U.target)}),X=G.length>0?d(U,G[0]):!c.current.noIsolation;if(X){if(U.cancelable)U.preventDefault()}}},[]),g=D(function(k,U,P,T){var G={name:k,delta:U,target:P,should:T,shadowParent:ske(P)};r.current.push(G),setTimeout(function(){r.current=r.current.filter(function(X){return X!==G})},1)},[]),x=D(function(k){a.current=n4(k),i.current=void 0},[]),v=D(function(k){g(k.type,Hae(k),k.target,d(k,e.lockRef.current))},[]),b=D(function(k){g(k.type,n4(k),k.target,d(k,e.lockRef.current))},[]);h(function(){return Jk.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",m,Az),document.addEventListener("touchmove",m,Az),document.addEventListener("touchstart",x,Az),function(){Jk=Jk.filter(function(k){return k!==l}),document.removeEventListener("wheel",m,Az),document.removeEventListener("touchmove",m,Az),document.removeEventListener("touchstart",x,Az)}},[]);var{removeScrollBar:_,inert:z}=e;return j(Cn,null,z?j(l,{styles:ike(s)}):null,_?j(Z7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ske(e){var r=null;while(e!==null){if(e instanceof ShadowRoot)r=e.host,e=e.host;e=e.parentNode}return r}var Kae=f7(a4,Wae);var Gae=F(function(e,r){return j(L2,Gs({},e,{ref:r,sideCar:Kae}))});Gae.classNames=L2.classNames;var fm=Gae;var lke=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},$k=new WeakMap,i4=new WeakMap,f4={},h7=0,Xae=function(e){return e&&(e.host||Xae(e.parentNode))},cke=function(e,r){return r.map(function(a){if(e.contains(a))return a;var i=Xae(a);if(i&&e.contains(i))return i;return console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null}).filter(function(a){return Boolean(a)})},uke=function(e,r,a,i){var s=cke(r,Array.isArray(e)?e:[e]);if(!f4[a])f4[a]=new WeakMap;var l=f4[a],c=[],d=new Set,m=new Set(s),g=function(v){if(!v||d.has(v))return;d.add(v),g(v.parentNode)};s.forEach(g);var x=function(v){if(!v||m.has(v))return;Array.prototype.forEach.call(v.children,function(b){if(d.has(b))x(b);else try{var _=b.getAttribute(i),z=_!==null&&_!=="false",k=($k.get(b)||0)+1,U=(l.get(b)||0)+1;if($k.set(b,k),l.set(b,U),c.push(b),k===1&&z)i4.set(b,!0);if(U===1)b.setAttribute(a,"true");if(!z)b.setAttribute(i,"true")}catch(P){console.error("aria-hidden: cannot operate on ",b,P)}})};return x(r),d.clear(),h7++,function(){if(c.forEach(function(v){var b=$k.get(v)-1,_=l.get(v)-1;if($k.set(v,b),l.set(v,_),!b){if(!i4.has(v))v.removeAttribute(i);i4.delete(v)}if(!_)v.removeAttribute(a)}),h7--,!h7)$k=new WeakMap,$k=new WeakMap,i4=new WeakMap,f4={}}},c8=function(e,r,a){if(a===void 0)a="data-aria-hidden";var i=Array.from(Array.isArray(e)?e:[e]),s=r||lke(e);if(!s)return function(){return null};return i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),uke(i,s,a,"aria-hidden")};var dke=Object.defineProperty,Vl=(e,r)=>dke(e,"name",{value:r,configurable:!0}),M7="Dialog",[Qae,x7]=mt(M7),[Zke,uu]=Qae(M7),v7=Vl((e)=>{let{__scopeDialog:r,children:a,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=y(null),m=y(null),[g,x]=Lt({prop:i,defaultProp:s??!1,onChange:l,caller:M7}),[v,b]=u(0),[_,z]=u(0);return t(Zke,{scope:r,triggerRef:d,contentRef:m,contentId:Er(),titleId:Er(),descriptionId:Er(),titlePresent:v>0,descriptionPresent:_>0,setTitleCount:b,setDescriptionCount:z,open:g,onOpenChange:x,onOpenToggle:D(()=>x((k)=>!k),[x]),modal:c,children:a})},"Dialog"),pke="DialogTrigger",y7=F(Vl(function(r,a){let{__scopeDialog:i,...s}=r,l=uu(pke,i),c=_e(a,l.triggerRef);return t(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":s4(l.open),...s,ref:c,onClick:Y(r.onClick,l.onOpenToggle)})},"DialogTrigger")),Jae="DialogPortal",[mke,$ae]=Qae(Jae,{forceMount:void 0}),_7=Vl((e)=>{let{__scopeDialog:r,forceMount:a,children:i,container:s}=e,l=uu(Jae,r);return t(mke,{scope:r,forceMount:a,children:rc.map(i,(c)=>t(ar,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:c})}))})},"DialogPortal"),g7="DialogOverlay",b7=F(Vl(function(r,a){let i=$ae(g7,r.__scopeDialog),{forceMount:s=i.forceMount,...l}=r,c=uu(g7,r.__scopeDialog);return c.modal?t(ar,{present:s||c.open,children:t(gke,{...l,ref:a})}):null},"DialogOverlay")),hke=Di("DialogOverlay.RemoveScroll"),gke=F(Vl(function(r,a){let{__scopeDialog:i,...s}=r,l=uu(g7,i),c=WY(),d=_e(a,c);return t(fm,{as:hke,allowPinchZoom:!0,shards:[l.contentRef],children:t(se.div,{"data-state":s4(l.open),...s,ref:d,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),C2="DialogContent",w7=F(Vl(function(r,a){let i=$ae(C2,r.__scopeDialog),{forceMount:s=i.forceMount,...l}=r,c=uu(C2,r.__scopeDialog);return t(ar,{present:s||c.open,children:c.modal?t(Mke,{...l,ref:a}):t(xke,{...l,ref:a})})},"DialogContent")),Mke=F(Vl(function(r,a){let i=uu(C2,r.__scopeDialog),s=y(null),l=_e(a,i.contentRef,s);return h(()=>{let c=s.current;if(c)return c8(c)},[]),t(ene,{...r,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:Y(r.onCloseAutoFocus,(c)=>{c.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:Y(r.onPointerDownOutside,(c)=>{let d=c.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;if(d.button===2||m)c.preventDefault()}),onFocusOutside:Y(r.onFocusOutside,(c)=>c.preventDefault())})},"DialogContentModal")),xke=F(Vl(function(r,a){let i=uu(C2,r.__scopeDialog),s=y(!1),l=y(!1);return t(ene,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(c)=>{if(r.onCloseAutoFocus?.(c),!c.defaultPrevented){if(!s.current)i.triggerRef.current?.focus();c.preventDefault()}s.current=!1,l.current=!1},onInteractOutside:(c)=>{if(r.onInteractOutside?.(c),!c.defaultPrevented){if(s.current=!0,c.detail.originalEvent.type==="pointerdown")l.current=!0}let d=c.target;if(i.triggerRef.current?.contains(d))c.preventDefault();if(c.detail.originalEvent.type==="focusin"&&l.current)c.preventDefault()}})},"DialogContentNonModal")),ene=F(Vl(function(r,a){let{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,...d}=r,m=uu(C2,i);return sZ(),t(L,{children:t(l8,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:c,children:t(iZ,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionPresent?m.descriptionId:void 0,"aria-labelledby":m.titlePresent?m.titleId:void 0,"data-state":s4(m.open),...d,ref:a,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})},"DialogContentImpl")),vke="DialogTitle",z7=F(Vl(function(r,a){let{__scopeDialog:i,...s}=r,l=uu(vke,i),{setTitleCount:c}=l;return Rt(()=>(c((d)=>d+1),()=>c((d)=>d-1)),[c]),t(se.h2,{id:l.titleId,...s,ref:a})},"DialogTitle")),yke="DialogDescription",S7=F(Vl(function(r,a){let{__scopeDialog:i,...s}=r,l=uu(yke,i),{setDescriptionCount:c}=l;return Rt(()=>(c((d)=>d+1),()=>c((d)=>d-1)),[c]),t(se.p,{id:l.descriptionId,...s,ref:a})},"DialogDescription")),_ke="DialogClose",I2=F(Vl(function(r,a){let{__scopeDialog:i,...s}=r,l=uu(_ke,i);return t(se.button,{type:"button",...s,ref:a,onClick:Y(r.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function s4(e){return e?"open":"closed"}Vl(s4,"getState");var bke=Object.defineProperty,cm=(e,r)=>bke(e,"name",{value:r,configurable:!0}),wke="AlertDialog",[zke,$Ko]=mt(wke,[x7]),um=x7(),Ske=cm((e)=>{let{__scopeAlertDialog:r,...a}=e,i=um(r);return t(v7,{...i,...a,modal:!0})},"AlertDialog"),eGo=F(cm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=um(i);return t(y7,{...l,...s,ref:a})},"AlertDialogTrigger")),Lke=cm((e)=>{let{__scopeAlertDialog:r,...a}=e,i=um(r);return t(_7,{...i,...a})},"AlertDialogPortal"),kke=F(cm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=um(i);return t(b7,{...l,...s,ref:a})},"AlertDialogOverlay")),Cke="AlertDialogContent",[Ike,Rke]=zke(Cke),Pke=F(cm(function(r,a){let{__scopeAlertDialog:i,children:s,...l}=r,c=um(i),d=y(null),m=_e(a,d),g=y(null);return t(Ike,{scope:i,cancelRef:g,children:t(w7,{role:"alertdialog",...c,...l,ref:m,onOpenAutoFocus:Y(l.onOpenAutoFocus,(x)=>{x.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:(x)=>x.preventDefault(),onInteractOutside:(x)=>x.preventDefault(),children:s})})},"AlertDialogContent")),Tke=F(cm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=um(i);return t(z7,{...l,...s,ref:a})},"AlertDialogTitle")),Ake=F(cm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=um(i);return t(S7,{...l,...s,ref:a})},"AlertDialogDescription")),Eke=F(cm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=um(i);return t(I2,{...l,...s,ref:a})},"AlertDialogAction")),Dke="AlertDialogCancel",Oke=F(cm(function(r,a){let{__scopeAlertDialog:i,...s}=r,{cancelRef:l}=Rke(Dke,i),c=um(i),d=_e(a,l);return t(I2,{...c,...s,ref:d})},"AlertDialogCancel")),Nke=Ske;var Fke=Lke,jke=kke,Bke=Pke,Uke=Eke,Yke=Oke,qke=Tke,Hke=Ake;S();var Vke=Object.defineProperty,dm=(e,r)=>Vke(e,"name",{value:r,configurable:!0}),rne="Avatar",[Wke,fGo]=mt(rne),Kke=[0,()=>{return}],[Gke,one]=Wke(rne),Xke=F(dm(function(r,a){let{__scopeAvatar:i,...s}=r,[l,c]=u("idle"),[d,m]=nne();return t(Gke,{scope:i,imageLoadingStatus:l,setImageLoadingStatus:c,imageCount:d,setImageCount:m,children:t(se.span,{...s,ref:a})})},"Avatar")),Qke="AvatarImage",Jke=F(dm(function(r,a){let{__scopeAvatar:i,src:s,onLoadingStatusChange:l,...c}=r,d=one(Qke,i);ine(d.setImageCount);let m=ane(s,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:d.imageLoadingStatus,setLoadingStatus:d.setImageLoadingStatus}),g=Qo((v)=>{l?.(v)}),x=y(m);return Rt(()=>{let v=x.current;if(x.current=m,m!==v)g(m)},[m,g]),m==="loaded"?t(se.img,{...c,ref:a,src:s}):null},"AvatarImage")),$ke="AvatarFallback",eCe=F(dm(function(r,a){let{__scopeAvatar:i,delayMs:s,...l}=r,c=one($ke,i),[d,m]=u(s===void 0);return h(()=>{if(s!==void 0){let g=window.setTimeout(()=>m(!0),s);return()=>window.clearTimeout(g)}},[s]),d&&c.imageLoadingStatus!=="loaded"?t(se.span,{...l,ref:a}):null},"AvatarFallback"));function ane(e,{loadingStatus:r,setLoadingStatus:a,referrerPolicy:i,crossOrigin:s}){return Rt(()=>{if(!e){a("error");return}let l=new window.Image,c=dm((m)=>{let g=m.currentTarget;a(k7(g))},"handleLoad"),d=dm(()=>a("error"),"handleError");if(l.addEventListener("load",c),l.addEventListener("error",d),i)l.referrerPolicy=i;return l.crossOrigin=s??null,l.src=e,a(k7(l)),()=>{l.removeEventListener("load",c),l.removeEventListener("error",d),a("idle")}},[e,s,i,a]),r}dm(ane,"useImageLoadingStatus");function k7(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}dm(k7,"getImageLoadingStatus");function nne(){let e=Kke;if(pi){e=u(0);let[r]=e,a=y(!1);h(()=>{if(r>1&&!a.current)a.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior.")},[r])}return e}dm(nne,"useImageCount");function ine(e){if(pi)h(()=>(e((r)=>r+1),()=>{e((r)=>r-1)}),[e])}dm(ine,"useUpdateImageCount");S();S();var tCe=Object.defineProperty,rCe=(e,r)=>tCe(e,"name",{value:r,configurable:!0});function mi(e){let[r,a]=u(void 0);return Rt(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let i=new ResizeObserver((s)=>{if(!Array.isArray(s))return;if(!s.length)return;let l=s[0],c,d;if("borderBoxSize"in l){let m=l.borderBoxSize,g=Array.isArray(m)?m[0]:m;c=g.inlineSize,d=g.blockSize}else c=e.offsetWidth,d=e.offsetHeight;a({width:c,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else a(void 0)},[e]),r}rCe(mi,"useSize");var oCe=Object.defineProperty,mm=(e,r)=>oCe(e,"name",{value:r,configurable:!0}),C7="Checkbox",[aCe,MGo]=mt(C7),[nCe,I7]=aCe(C7);function sne(e){let{__scopeCheckbox:r,checked:a,children:i,defaultChecked:s,disabled:l,form:c,name:d,onCheckedChange:m,required:g,value:x="on",internal_do_not_use_render:v}=e,[b,_]=Lt({prop:a,defaultProp:s??!1,onChange:m,caller:C7}),[z,k]=u(null),[U,P]=u(null),T=y(!1),[G,X]=tn((re)=>re+1,0),J=z?!!c||!!z.closest("form"):!0,ee={checked:b,disabled:l,setChecked:_,control:z,setControl:k,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:T,userInteractionCount:G,onUserInteraction:X,required:g,defaultChecked:pm(s)?!1:s,isFormControl:J,bubbleInput:U,setBubbleInput:P};return t(nCe,{scope:r,...ee,children:lne(v)?v(ee):i})}mm(sne,"CheckboxProvider");var iCe="CheckboxTrigger",fCe=F(mm(function({__scopeCheckbox:r,onKeyDown:a,onClick:i,...s},l){let{control:c,value:d,disabled:m,checked:g,required:x,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:_,onUserInteraction:z,isFormControl:k,bubbleInput:U}=I7(iCe,r),P=_e(l,v),T=y(g);return h(()=>{let G=c?.form;if(G){let X=mm(()=>b(T.current),"reset");return G.addEventListener("reset",X),()=>G.removeEventListener("reset",X)}},[c,b]),t(se.button,{type:"button",role:"checkbox","aria-checked":pm(g)?"mixed":g,"aria-required":x,"data-state":R7(g),"data-disabled":m?"":void 0,disabled:m,value:d,...s,ref:P,onKeyDown:Y(a,(G)=>{if(G.key==="Enter")G.preventDefault()}),onClick:Y(i,(G)=>{if(z(),b((X)=>pm(X)?!0:!X),U&&k){if(_.current=G.isPropagationStopped(),!_.current)G.stopPropagation()}})})},"CheckboxTrigger")),sCe=F(mm(function(r,a){let{__scopeCheckbox:i,name:s,checked:l,defaultChecked:c,required:d,disabled:m,value:g,onCheckedChange:x,form:v,...b}=r;return t(sne,{__scopeCheckbox:i,checked:l,defaultChecked:c,disabled:m,required:d,onCheckedChange:x,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:_})=>o(L,{children:[t(fCe,{...b,ref:a,__scopeCheckbox:i}),_&&t(dCe,{__scopeCheckbox:i})]})})},"Checkbox")),lCe="CheckboxIndicator",cCe=F(mm(function(r,a){let{__scopeCheckbox:i,forceMount:s,...l}=r,c=I7(lCe,i);return t(ar,{present:s||pm(c.checked)||c.checked===!0,children:t(se.span,{"data-state":R7(c.checked),"data-disabled":c.disabled?"":void 0,...l,ref:a,style:{pointerEvents:"none",...r.style}})})},"CheckboxIndicator")),uCe="CheckboxBubbleInput",dCe=F(mm(function({__scopeCheckbox:r,onClick:a,...i},s){let{control:l,hasConsumerStoppedPropagationRef:c,userInteractionCount:d,checked:m,defaultChecked:g,required:x,disabled:v,name:b,value:_,form:z,bubbleInput:k,setBubbleInput:U}=I7(uCe,r),P=_e(s,U),T=mi(l),G=y(!1),X=y(m),J=y(d);h(()=>{let re=k;if(!re)return;let oe=window.HTMLInputElement.prototype,ye=Object.getOwnPropertyDescriptor(oe,"checked").set,We=d!==J.current;J.current=d;let Ye=X.current!==m;X.current=m;let Se=!(We&&c.current);if(Ye&&ye){G.current=!We;let He=new Event("click",{bubbles:Se});re.indeterminate=pm(m),ye.call(re,pm(m)?!1:m),re.dispatchEvent(He),G.current=!1}},[k,m,c,d]);let ee=y(pm(m)?!1:m);return t(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??ee.current,required:x,disabled:v,name:b,value:_,form:z,...i,tabIndex:-1,ref:P,onClick:Y(a,(re)=>{if(G.current)re.stopPropagation()}),style:{...i.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function lne(e){return typeof e==="function"}mm(lne,"isFunction");function pm(e){return e==="indeterminate"}mm(pm,"isIndeterminate");function R7(e){return pm(e)?"indeterminate":e?"checked":"unchecked"}mm(R7,"getState");S();S();S();var ZCe=Object.defineProperty,Ni=(e,r)=>ZCe(e,"name",{value:r,configurable:!0});function hi(e){let r=e+"CollectionProvider",[a,i]=mt(r),[s,l]=a(r,{collectionRef:{current:null},itemMap:new Map}),c=Ni((k)=>{let{scope:U,children:P}=k,T=y(null),G=y(new Map).current;return t(s,{scope:U,itemMap:G,collectionRef:T,children:P})},"CollectionProvider");c.displayName=r;let d=e+"CollectionSlot",m=Di(d),g=F((k,U)=>{let{scope:P,children:T}=k,G=l(d,P),X=_e(U,G.collectionRef);return t(m,{ref:X,children:T})});g.displayName=d;let x=e+"CollectionItemSlot",v="data-radix-collection-item",b=Di(x),_=F((k,U)=>{let{scope:P,children:T,...G}=k,X=y(null),J=_e(U,X),ee=l(x,P);return h(()=>(ee.itemMap.set(X,{ref:X,...G}),()=>void ee.itemMap.delete(X))),t(b,{...{[v]:""},ref:J,children:T})});_.displayName=x;function z(k){let U=l(e+"CollectionConsumer",k);return D(()=>{let T=U.collectionRef.current;if(!T)return[];let G=Array.from(T.querySelectorAll(`[${v}]`));return Array.from(U.itemMap.values()).sort((ee,re)=>G.indexOf(ee.ref.current)-G.indexOf(re.ref.current))},[U.collectionRef,U.itemMap])}return Ni(z,"useCollection"),[{Provider:c,Slot:g,ItemSlot:_},z,i]}Ni(hi,"createCollection");var une=new WeakMap,P7=class e extends Map{static{Ni(this,"OrderedDict")}#e;constructor(r){super(r);this.#e=[...super.keys()],une.set(this,!0)}set(r,a){if(une.get(this))if(this.has(r))this.#e[this.#e.indexOf(r)]=r;else this.#e.push(r);return super.set(r,a),this}insert(r,a,i){let s=this.has(a),l=this.#e.length,c=A7(r),d=c>=0?c:l+c,m=d<0||d>=l?-1:d;if(m===this.size||s&&m===this.size-1||m===-1)return this.set(a,i),this;let g=this.size+(s?0:1);if(c<0)d++;let x=[...this.#e],v,b=!1;for(let _=d;_<g;_++)if(d===_){let z=x[_];if(x[_]===a)z=x[_+1];if(s)this.delete(a);v=this.get(z),this.set(a,i)}else{if(!b&&x[_-1]===a)b=!0;let z=x[b?_:_-1],k=v;v=this.get(z),this.delete(z),this.set(z,k)}return this}with(r,a,i){let s=new e(this);return s.insert(r,a,i),s}before(r){let a=this.#e.indexOf(r)-1;if(a<0)return;return this.entryAt(a)}setBefore(r,a,i){let s=this.#e.indexOf(r);if(s===-1)return this;return this.insert(s,a,i)}after(r){let a=this.#e.indexOf(r);if(a=a===-1||a===this.size-1?-1:a+1,a===-1)return;return this.entryAt(a)}setAfter(r,a,i){let s=this.#e.indexOf(r);if(s===-1)return this;return this.insert(s+1,a,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(r){let a=super.delete(r);if(a)this.#e.splice(this.#e.indexOf(r),1);return a}deleteAt(r){let a=this.keyAt(r);if(a!==void 0)return this.delete(a);return!1}at(r){let a=l4(this.#e,r);if(a!==void 0)return this.get(a)}entryAt(r){let a=l4(this.#e,r);if(a!==void 0)return[a,this.get(a)]}indexOf(r){return this.#e.indexOf(r)}keyAt(r){return l4(this.#e,r)}from(r,a){let i=this.indexOf(r);if(i===-1)return;let s=i+a;if(s<0)s=0;if(s>=this.size)s=this.size-1;return this.at(s)}keyFrom(r,a){let i=this.indexOf(r);if(i===-1)return;let s=i+a;if(s<0)s=0;if(s>=this.size)s=this.size-1;return this.keyAt(s)}find(r,a){let i=0;for(let s of this){if(Reflect.apply(r,a,[s,i,this]))return s;i++}return}findIndex(r,a){let i=0;for(let s of this){if(Reflect.apply(r,a,[s,i,this]))return i;i++}return-1}filter(r,a){let i=[],s=0;for(let l of this){if(Reflect.apply(r,a,[l,s,this]))i.push(l);s++}return new e(i)}map(r,a){let i=[],s=0;for(let l of this)i.push([l[0],Reflect.apply(r,a,[l,s,this])]),s++;return new e(i)}reduce(...r){let[a,i]=r,s=0,l=i??this.at(0);for(let c of this){if(s===0&&r.length===1)l=c;else l=Reflect.apply(a,this,[l,c,s,this]);s++}return l}reduceRight(...r){let[a,i]=r,s=i??this.at(-1);for(let l=this.size-1;l>=0;l--){let c=this.at(l);if(l===this.size-1&&r.length===1)s=c;else s=Reflect.apply(a,this,[s,c,l,this])}return s}toSorted(r){let a=[...this.entries()].sort(r);return new e(a)}toReversed(){let r=new e;for(let a=this.size-1;a>=0;a--){let i=this.keyAt(a),s=this.get(i);r.set(i,s)}return r}toSpliced(...r){let a=[...this.entries()];return a.splice(...r),new e(a)}slice(r,a){let i=new e,s=this.size-1;if(r===void 0)return i;if(r<0)r=r+this.size;if(a!==void 0&&a>0)s=a-1;for(let l=r;l<=s;l++){let c=this.keyAt(l),d=this.get(c);i.set(c,d)}return i}every(r,a){let i=0;for(let s of this){if(!Reflect.apply(r,a,[s,i,this]))return!1;i++}return!0}some(r,a){let i=0;for(let s of this){if(Reflect.apply(r,a,[s,i,this]))return!0;i++}return!1}};function l4(e,r){if("at"in Array.prototype)return Array.prototype.at.call(e,r);let a=dne(e,r);return a===-1?void 0:e[a]}Ni(l4,"at");function dne(e,r){let a=e.length,i=A7(r),s=i>=0?i:a+i;return s<0||s>=a?-1:s}Ni(dne,"toSafeIndex");function A7(e){return e!==e||e===0?0:Math.trunc(e)}Ni(A7,"toSafeInteger");function pCe(e){let r=e+"CollectionProvider",[a,i]=mt(r),[s,l]=a(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new P7,setItemMap:Ni(()=>{return},"setItemMap")}),c=Ni(({state:G,...X})=>G?t(m,{...X,state:G}):t(d,{...X}),"CollectionProvider");c.displayName=r;let d=Ni((G)=>{let X=U();return t(m,{...G,state:X})},"CollectionInit");d.displayName=r+"Init";let m=Ni((G)=>{let{scope:X,children:J,state:ee}=G,re=y(null),[oe,ie]=u(null),ye=_e(re,ie),[We,Ye]=ee;return h(()=>{if(!oe)return;let Se=mne(()=>{});return Se.observe(oe,{childList:!0,subtree:!0}),()=>{Se.disconnect()}},[oe]),t(s,{scope:X,itemMap:We,setItemMap:Ye,collectionRef:ye,collectionRefObject:re,collectionElement:oe,children:J})},"CollectionProviderImpl");m.displayName=r+"Impl";let g=e+"CollectionSlot",x=Di(g),v=F((G,X)=>{let{scope:J,children:ee}=G,re=l(g,J),oe=_e(X,re.collectionRef);return t(x,{ref:oe,children:ee})});v.displayName=g;let b=e+"CollectionItemSlot",_="data-radix-collection-item",z=Di(b),k=F((G,X)=>{let{scope:J,children:ee,...re}=G,oe=y(null),[ie,ye]=u(null),We=_e(X,oe,ye),Ye=l(b,J),{setItemMap:Se}=Ye,He=y(re);if(!Zne(He.current,re))He.current=re;let dt=He.current;return h(()=>{let Ge=dt;return Se((yt)=>{if(!ie)return yt;if(!yt.has(ie))return yt.set(ie,{...Ge,element:ie}),yt.toSorted(T7);return yt.set(ie,{...Ge,element:ie}).toSorted(T7)}),()=>{Se((yt)=>{if(!ie||!yt.has(ie))return yt;return yt.delete(ie),new P7(yt)})}},[ie,dt,Se]),t(z,{...{[_]:""},ref:We,children:ee})});k.displayName=b;function U(){return u(new P7)}Ni(U,"useInitCollection");function P(G){let{itemMap:X}=l(e+"CollectionConsumer",G);return X}return Ni(P,"useCollection"),[{Provider:c,Slot:v,ItemSlot:k},{createCollectionScope:i,useCollection:P,useInitCollection:U}]}Ni(pCe,"createCollection");function Zne(e,r){if(e===r)return!0;if(typeof e!=="object"||typeof r!=="object")return!1;if(e==null||r==null)return!1;let a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;for(let s of a){if(!Object.prototype.hasOwnProperty.call(r,s))return!1;if(e[s]!==r[s])return!1}return!0}Ni(Zne,"shallowEqual");function pne(e,r){return!!(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ni(pne,"isElementPreceding");function T7(e,r){return!e[1].element||!r[1].element?0:pne(e[1].element,r[1].element)?-1:1}Ni(T7,"sortByDocumentPosition");function mne(e){return new MutationObserver((a)=>{for(let i of a)if(i.type==="childList"){e();return}})}Ni(mne,"getChildListObserver");S();var mCe=Object.defineProperty,hCe=(e,r)=>mCe(e,"name",{value:r,configurable:!0}),gCe=it(void 0);function Hn(e){let r=ft(gCe);return e||r||"ltr"}hCe(Hn,"useDirection");S();var Mne=["top","right","bottom","left"];var{min:lZ,max:du,round:P2,floor:T2}=Math,cZ=(e)=>({x:e,y:e}),MCe={left:"right",right:"left",bottom:"top",top:"bottom"};function E7(e,r,a){return du(e,lZ(r,a))}function uZ(e,r){return typeof e==="function"?e(r):e}function hm(e){return e.split("-")[0]}function Ez(e){return e.split("-")[1]}function u4(e){return e==="x"?"y":"x"}function d4(e){return e==="y"?"height":"width"}function Zu(e){let r=e[0];return r==="t"||r==="b"?"y":"x"}function Z4(e){return u4(Zu(e))}function xne(e,r,a){if(a===void 0)a=!1;let i=Ez(e),s=Z4(e),l=d4(s),c=s==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";if(r.reference[l]>r.floating[l])c=R2(c);return[c,R2(c)]}function vne(e){let r=R2(e);return[c4(e),r,c4(r)]}function c4(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var hne=["left","right"],gne=["right","left"],xCe=["top","bottom"],vCe=["bottom","top"];function yCe(e,r,a){switch(e){case"top":case"bottom":if(a)return r?gne:hne;return r?hne:gne;case"left":case"right":return r?xCe:vCe;default:return[]}}function yne(e,r,a,i){let s=Ez(e),l=yCe(hm(e),a==="start",i);if(s){if(l=l.map((c)=>c+"-"+s),r)l=l.concat(l.map(c4))}return l}function R2(e){let r=hm(e);return MCe[r]+e.slice(r.length)}function _Ce(e){var r,a,i,s;return{top:(r=e.top)!=null?r:0,right:(a=e.right)!=null?a:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function D7(e){return typeof e!=="number"?_Ce(e):{top:e,right:e,bottom:e,left:e}}function Dz(e){let{x:r,y:a,width:i,height:s}=e;return{width:i,height:s,top:a,left:r,right:r+i,bottom:a+s,x:r,y:a}}function _ne(e,r,a){let{reference:i,floating:s}=e,l=Zu(r),c=Z4(r),d=d4(c),m=hm(r),g=l==="y",x=i.x+i.width/2-s.width/2,v=i.y+i.height/2-s.height/2,b=i[d]/2-s[d]/2,_;switch(m){case"top":_={x,y:i.y-s.height};break;case"bottom":_={x,y:i.y+i.height};break;case"right":_={x:i.x+i.width,y:v};break;case"left":_={x:i.x-s.width,y:v};break;default:_={x:i.x,y:i.y}}let z=Ez(r);if(z)_[c]+=b*(z==="end"?1:-1)*(a&&g?-1:1);return _}async function zne(e,r){var a;if(r===void 0)r={};let{x:i,y:s,platform:l,rects:c,elements:d,strategy:m}=e,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:v="floating",altBoundary:b=!1,padding:_=0}=uZ(r,e),z=D7(_),U=d[b?v==="floating"?"reference":"floating":v],P=Dz(await l.getClippingRect({element:((a=await(l.isElement==null?void 0:l.isElement(U)))!=null?a:!0)?U:U.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:g,rootBoundary:x,strategy:m})),T=v==="floating"?{x:i,y:s,width:c.floating.width,height:c.floating.height}:c.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),X=await(l.isElement==null?void 0:l.isElement(G))&&await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1},J=Dz(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:G,strategy:m}):T);return{top:(P.top-J.top+z.top)/X.y,bottom:(J.bottom-P.bottom+z.bottom)/X.y,left:(P.left-J.left+z.left)/X.x,right:(J.right-P.right+z.right)/X.x}}var bCe=50,Sne=async(e,r,a)=>{let{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:c}=a,d=c.detectOverflow?c:{...c,detectOverflow:zne},m=await(c.isRTL==null?void 0:c.isRTL(r)),g=await c.getElementRects({reference:e,floating:r,strategy:s}),{x,y:v}=_ne(g,i,m),b=i,_=0,z={};for(let k=0;k<l.length;k++){let U=l[k];if(!U)continue;let{name:P,fn:T}=U,{x:G,y:X,data:J,reset:ee}=await T({x,y:v,initialPlacement:i,placement:b,strategy:s,middlewareData:z,rects:g,platform:d,elements:{reference:e,floating:r}});if(x=G!=null?G:x,v=X!=null?X:v,z[P]={...z[P],...J},ee&&_<bCe){if(_++,typeof ee==="object"){if(ee.placement)b=ee.placement;if(ee.rects)g=ee.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:s}):ee.rects;({x,y:v}=_ne(g,b,m))}k=-1}}return{x,y:v,placement:b,strategy:s,middlewareData:z}},Lne=(e)=>({name:"arrow",options:e,async fn(r){let{x:a,y:i,placement:s,rects:l,platform:c,elements:d,middlewareData:m}=r,{element:g,padding:x=0}=uZ(e,r)||{};if(g==null)return{};let v=D7(x),b={x:a,y:i},_=Z4(s),z=d4(_),k=await c.getDimensions(g),U=_==="y",P=U?"top":"left",T=U?"bottom":"right",G=U?"clientHeight":"clientWidth",X=l.reference[z]+l.reference[_]-b[_]-l.floating[z],J=b[_]-l.reference[_],ee=await(c.getOffsetParent==null?void 0:c.getOffsetParent(g)),re=ee?ee[G]:0;if(!re||!await(c.isElement==null?void 0:c.isElement(ee)))re=d.floating[G]||l.floating[z];let oe=X/2-J/2,ie=re/2-k[z]/2-1,ye=lZ(v[P],ie),We=lZ(v[T],ie),Ye=re-k[z]-We,Se=re/2-k[z]/2+oe,He=E7(ye,Se,Ye),dt=!m.arrow&&Ez(s)!=null&&Se!==He&&l.reference[z]/2-(Se<ye?ye:We)-k[z]/2<0,Ge=dt?Se<ye?Se-ye:Se-Ye:0;return{[_]:b[_]+Ge,data:{[_]:He,centerOffset:Se-He-Ge,...dt&&{alignmentOffset:Ge}},reset:dt}}});var kne=function(e){if(e===void 0)e={};return{name:"flip",options:e,async fn(r){var a,i;let{placement:s,middlewareData:l,rects:c,initialPlacement:d,platform:m,elements:g}=r,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:k=!0,...U}=uZ(e,r);if((a=l.arrow)!=null&&a.alignmentOffset)return{};let P=hm(s),T=Zu(d),G=hm(d)===d,X=await(m.isRTL==null?void 0:m.isRTL(g.floating)),J=b||(G||!k?[R2(d)]:vne(d)),ee=z!=="none";if(!b&&ee)J.push(...yne(d,k,z,X));let re=[d,...J],oe=await m.detectOverflow(r,U),ie=[],ye=((i=l.flip)==null?void 0:i.overflows)||[];if(x)ie.push(oe[P]);if(v){let He=xne(s,c,X);ie.push(oe[He[0]],oe[He[1]])}if(ye=[...ye,{placement:s,overflows:ie}],!ie.every((He)=>He<=0)){var We,Ye;let He=(((We=l.flip)==null?void 0:We.index)||0)+1,dt=re[He];if(dt){if(!(v==="alignment"?T!==Zu(dt):!1)||ye.every((Ft)=>Zu(Ft.placement)===T?Ft.overflows[0]>0:!0))return{data:{index:He,overflows:ye},reset:{placement:dt}}}let Ge=(Ye=ye.filter((yt)=>yt.overflows[0]<=0).sort((yt,Ft)=>yt.overflows[1]-Ft.overflows[1])[0])==null?void 0:Ye.placement;if(!Ge)switch(_){case"bestFit":{var Se;let yt=(Se=ye.filter((Ft)=>{if(ee){let Bt=Zu(Ft.placement);return Bt===T||Bt==="y"}return!0}).map((Ft)=>[Ft.placement,Ft.overflows.filter((Bt)=>Bt>0).reduce((Bt,de)=>Bt+de,0)]).sort((Ft,Bt)=>Ft[1]-Bt[1])[0])==null?void 0:Se[0];if(yt)Ge=yt;break}case"initialPlacement":Ge=d;break}if(s!==Ge)return{reset:{placement:Ge}}}return{}}}};function bne(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function wne(e){return Mne.some((r)=>e[r]>=0)}var Cne=function(e){if(e===void 0)e={};return{name:"hide",options:e,async fn(r){let{rects:a,platform:i}=r,{strategy:s="referenceHidden",...l}=uZ(e,r);switch(s){case"referenceHidden":{let c=await i.detectOverflow(r,{...l,elementContext:"reference"}),d=bne(c,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:wne(d)}}}case"escaped":{let c=await i.detectOverflow(r,{...l,altBoundary:!0}),d=bne(c,a.floating);return{data:{escapedOffsets:d,escaped:wne(d)}}}default:return{}}}}};var Ine=new Set(["left","top"]);async function wCe(e,r){let{placement:a,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),c=hm(a),d=Ez(a),m=Zu(a)==="y",g=Ine.has(c)?-1:1,x=l&&m?-1:1,v=uZ(r,e),{mainAxis:b,crossAxis:_,alignmentAxis:z}=typeof v==="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};if(d&&typeof z==="number")_=d==="end"?z*-1:z;return m?{x:_*x,y:b*g}:{x:b*g,y:_*x}}var Rne=function(e){if(e===void 0)e=0;return{name:"offset",options:e,async fn(r){var a,i;let{x:s,y:l,placement:c,middlewareData:d}=r,m=await wCe(r,e);if(c===((a=d.offset)==null?void 0:a.placement)&&(i=d.arrow)!=null&&i.alignmentOffset)return{};return{x:s+m.x,y:l+m.y,data:{...m,placement:c}}}}},Pne=function(e){if(e===void 0)e={};return{name:"shift",options:e,async fn(r){let{x:a,y:i,placement:s,platform:l}=r,{mainAxis:c=!0,crossAxis:d=!1,limiter:m={fn:(T)=>{let{x:G,y:X}=T;return{x:G,y:X}}},...g}=uZ(e,r),x={x:a,y:i},v=await l.detectOverflow(r,g),b=Zu(s),_=u4(b),z=x[_],k=x[b],U=(T,G)=>E7(G+v[T==="y"?"top":"left"],G,G-v[T==="y"?"bottom":"right"]);if(c)z=U(_,z);if(d)k=U(b,k);let P=m.fn({...r,[_]:z,[b]:k});return{...P,data:{x:P.x-a,y:P.y-i,enabled:{[_]:c,[b]:d}}}}}},Tne=function(e){if(e===void 0)e={};return{options:e,fn(r){var a,i;let{x:s,y:l,placement:c,rects:d,middlewareData:m}=r,{offset:g=0,mainAxis:x=!0,crossAxis:v=!0}=uZ(e,r),b={x:s,y:l},_=Zu(c),z=u4(_),k=b[z],U=b[_],P=uZ(g,r),T=typeof P==="number"?{mainAxis:P,crossAxis:0}:{mainAxis:(a=P.mainAxis)!=null?a:0,crossAxis:(i=P.crossAxis)!=null?i:0};if(x){let J=z==="y"?"height":"width",ee=d.reference[z]-d.floating[J]+T.mainAxis,re=d.reference[z]+d.reference[J]-T.mainAxis;if(k<ee)k=ee;else if(k>re)k=re}if(v){var G,X;let J=z==="y"?"width":"height",ee=Ine.has(hm(c)),re=d.reference[_]-d.floating[J]+(ee?((G=m.offset)==null?void 0:G[_])||0:0)+(ee?0:T.crossAxis),oe=d.reference[_]+d.reference[J]+(ee?0:((X=m.offset)==null?void 0:X[_])||0)-(ee?T.crossAxis:0);if(U<re)U=re;else if(U>oe)U=oe}return{[z]:k,[_]:U}}}},Ane=function(e){if(e===void 0)e={};return{name:"size",options:e,async fn(r){let{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...d}=uZ(e,r),m=await s.detectOverflow(r,d),g=hm(a),x=Ez(a),v=Zu(a)==="y",{width:b,height:_}=i.floating,z,k;if(g==="top"||g==="bottom")z=g,k=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right";else k=g,z=x==="end"?"top":"bottom";let U=_-m.top-m.bottom,P=b-m.left-m.right,T=lZ(_-m[z],U),G=lZ(b-m[k],P),X=r.middlewareData.shift,J=!X,ee=T,re=G;if(X!=null&&X.enabled.x)re=P;if(X!=null&&X.enabled.y)ee=U;if(J&&!x)if(v)re=b-2*du(m.left,m.right);else ee=_-2*du(m.top,m.bottom);await c({...r,availableWidth:re,availableHeight:ee});let oe=await s.getDimensions(l.floating);if(b!==oe.width||_!==oe.height)return{reset:{rects:!0}};return{}}}};function p4(){return typeof window<"u"}function Fz(e){if(Dne(e))return(e.nodeName||"").toLowerCase();return"#document"}function is(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function dZ(e){var r;return(r=(Dne(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Dne(e){if(!p4())return!1;return e instanceof Node||e instanceof is(e).Node}function pu(e){if(!p4())return!1;return e instanceof Element||e instanceof is(e).Element}function gm(e){if(!p4())return!1;return e instanceof HTMLElement||e instanceof is(e).HTMLElement}function Ene(e){if(!p4()||typeof ShadowRoot>"u")return!1;return e instanceof ShadowRoot||e instanceof is(e).ShadowRoot}function A2(e){let{overflow:r,overflowX:a,overflowY:i,display:s}=mu(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+a)&&s!=="inline"&&s!=="contents"}function One(e){return/^(table|td|th)$/.test(Fz(e))}function E2(e){try{if(e.matches(":popover-open"))return!0}catch(r){}try{return e.matches(":modal")}catch(r){return!1}}var zCe=/transform|translate|scale|rotate|perspective|filter/,SCe=/paint|layout|strict|content/,Oz=(e)=>!!e&&e!=="none",O7;function m4(e){let r=pu(e)?mu(e):e;return Oz(r.transform)||Oz(r.translate)||Oz(r.scale)||Oz(r.rotate)||Oz(r.perspective)||!h4()&&(Oz(r.backdropFilter)||Oz(r.filter))||zCe.test(r.willChange||"")||SCe.test(r.contain||"")}function Nne(e){let r=u8(e);while(gm(r)&&!Z1(r)){if(m4(r))return r;else if(E2(r))return null;r=u8(r)}return null}function h4(){if(O7==null)O7=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return O7}function Z1(e){return/^(html|body|#document)$/.test(Fz(e))}function mu(e){return is(e).getComputedStyle(e)}function D2(e){if(pu(e))return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop};return{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function u8(e){if(Fz(e)==="html")return e;let r=e.assignedSlot||e.parentNode||Ene(e)&&e.host||dZ(e);return Ene(r)?r.host:r}function Fne(e){let r=u8(e);if(Z1(r))return(e.ownerDocument||e).body;if(gm(r)&&A2(r))return r;return Fne(r)}function Nz(e,r,a){var i;if(r===void 0)r=[];if(a===void 0)a=!0;let s=Fne(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),c=is(s);if(l){let d=g4(c);return r.concat(c,c.visualViewport||[],A2(s)?s:[],d&&a?Nz(d):[])}else return r.concat(s,Nz(s,[],a))}function g4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Une(e){let r=mu(e),a=parseFloat(r.width)||0,i=parseFloat(r.height)||0,s=gm(e),l=s?e.offsetWidth:a,c=s?e.offsetHeight:i,d=P2(a)!==l||P2(i)!==c;if(d)a=l,i=c;return{width:a,height:i,$:d}}function F7(e){return!pu(e)?e.contextElement:e}function z1(e){let r=F7(e);if(!gm(r))return cZ(1);let a=r.getBoundingClientRect(),{width:i,height:s,$:l}=Une(r),c=(l?P2(a.width):a.width)/i,d=(l?P2(a.height):a.height)/s;if(!c||!Number.isFinite(c))c=1;if(!d||!Number.isFinite(d))d=1;return{x:c,y:d}}var LCe=cZ(0);function Yne(e){let r=is(e);if(!h4()||!r.visualViewport)return LCe;return{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function kCe(e,r,a){if(r===void 0)r=!1;return!!a&&r&&a===is(e)}function jz(e,r,a,i){if(r===void 0)r=!1;if(a===void 0)a=!1;let s=e.getBoundingClientRect(),l=F7(e),c=cZ(1);if(r)if(i){if(pu(i))c=z1(i)}else c=z1(e);let d=kCe(l,a,i)?Yne(l):cZ(0),m=(s.left+d.x)/c.x,g=(s.top+d.y)/c.y,x=s.width/c.x,v=s.height/c.y;if(l&&i){let b=is(l),_=pu(i)?is(i):i,z=b,k=g4(z);while(k&&_!==z){let U=z1(k),P=k.getBoundingClientRect(),T=mu(k),G=P.left+(k.clientLeft+parseFloat(T.paddingLeft))*U.x,X=P.top+(k.clientTop+parseFloat(T.paddingTop))*U.y;m*=U.x,g*=U.y,x*=U.x,v*=U.y,m+=G,g+=X,z=is(k),k=g4(z)}}return Dz({width:x,height:v,x:m,y:g})}function M4(e,r){let a=D2(e).scrollLeft;if(!r)return jz(dZ(e)).left+a;return r.left+a}function qne(e,r){let a=e.getBoundingClientRect(),i=a.left+r.scrollLeft-M4(e,a),s=a.top+r.scrollTop;return{x:i,y:s}}function CCe(e){let{elements:r,rect:a,offsetParent:i,strategy:s}=e,l=s==="fixed",c=dZ(i),d=r?E2(r.floating):!1;if(i===c||d&&l)return a;let m={scrollLeft:0,scrollTop:0},g=cZ(1),x=cZ(0),v=gm(i);if(v||!l){if(Fz(i)!=="body"||A2(c))m=D2(i);if(v){let _=jz(i);g=z1(i),x.x=_.x+i.clientLeft,x.y=_.y+i.clientTop}}let b=c&&!v&&!l?qne(c,m):cZ(0);return{width:a.width*g.x,height:a.height*g.y,x:a.x*g.x-m.scrollLeft*g.x+x.x+b.x,y:a.y*g.y-m.scrollTop*g.y+x.y+b.y}}function ICe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function RCe(e){let r=D2(e),a=e.ownerDocument.body,i=du(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),s=du(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+M4(e),c=-r.scrollTop;if(mu(a).direction==="rtl")l+=du(e.clientWidth,a.clientWidth)-i;return{width:i,height:s,x:l,y:c}}var PCe=25;function TCe(e,r,a){if(a===void 0)a="viewport";let i=a==="layoutViewport",s=is(e),l=dZ(e),c=s.visualViewport,{clientWidth:d,clientHeight:m}=l,g=0,x=0;if(c){let b=!h4()||r==="fixed";if(i){if(!b)g=-c.offsetLeft,x=-c.offsetTop}else if(d=c.width,m=c.height,b)g=c.offsetLeft,x=c.offsetTop}if(M4(l)<=0){let b=l.ownerDocument,_=b.body,z=getComputedStyle(_),k=b.compatMode==="CSS1Compat"?parseFloat(z.marginLeft)+parseFloat(z.marginRight)||0:0,U=Math.abs(l.clientWidth-_.clientWidth-k),P=getComputedStyle(l).scrollbarGutter==="stable both-edges"?U/2:U;if(P<=PCe)d-=P}return{width:d,height:m,x:g,y:x}}function ACe(e,r){let a=jz(e,!0,r==="fixed"),i=a.top+e.clientTop,s=a.left+e.clientLeft,l=z1(e),c=e.clientWidth*l.x,d=e.clientHeight*l.y,m=s*l.x,g=i*l.y;return{width:c,height:d,x:m,y:g}}function jne(e,r,a){let i;if(r==="viewport"||r==="layoutViewport")i=TCe(e,a,r);else if(r==="document")i=RCe(dZ(e));else if(pu(r))i=ACe(r,a);else{let s=Yne(e);i={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Dz(i)}function ECe(e,r){let a=r.get(e);if(a)return a;let i=Nz(e,[],!1).filter((d)=>pu(d)&&Fz(d)!=="body"),s=null,l=mu(e).position==="fixed",c=l?u8(e):e;while(pu(c)&&!Z1(c)){let d=mu(c),m=m4(c),g=s?s.position:l?"fixed":"";if(!m&&(g==="fixed"||g==="absolute"&&d.position==="static"))i=i.filter((v)=>v!==c);else s=d;c=u8(c)}return r.set(e,i),i}function DCe(e){let{element:r,boundary:a,rootBoundary:i,strategy:s}=e,c=[...a==="clippingAncestors"?E2(r)?[]:ECe(r,this._c):[].concat(a),i],d=jne(r,c[0],s),{top:m,right:g,bottom:x,left:v}=d;for(let b=1;b<c.length;b++){let _=jne(r,c[b],s);m=du(_.top,m),g=lZ(_.right,g),x=lZ(_.bottom,x),v=du(_.left,v)}return{width:g-v,height:x-m,x:v,y:m}}function OCe(e){let{width:r,height:a}=Une(e);return{width:r,height:a}}function NCe(e,r,a){let i=gm(r),s=dZ(r),l=a==="fixed",c=jz(e,!0,l,r),d={scrollLeft:0,scrollTop:0},m=cZ(0);if(i||!l){if(Fz(r)!=="body"||A2(s))d=D2(r);if(i){let b=jz(r,!0,l,r);m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}}if(!i&&s)m.x=M4(s);let g=s&&!i&&!l?qne(s,d):cZ(0),x=c.left+d.scrollLeft-m.x-g.x,v=c.top+d.scrollTop-m.y-g.y;return{x,y:v,width:c.width,height:c.height}}function N7(e){return mu(e).position==="static"}function Bne(e,r){if(!gm(e)||mu(e).position==="fixed")return null;if(r)return r(e);let a=e.offsetParent;if(dZ(e)===a)a=a.ownerDocument.body;return a}function Hne(e,r){let a=is(e);if(E2(e))return a;if(!gm(e)){let s=u8(e);while(s&&!Z1(s)){if(pu(s)&&!N7(s))return s;s=u8(s)}return a}let i=Bne(e,r);while(i&&One(i)&&N7(i))i=Bne(i,r);if(i&&Z1(i)&&N7(i)&&!m4(i))return a;return i||Nne(e)||a}var FCe=async function(e){let r=this.getOffsetParent||Hne,a=this.getDimensions,i=await a(e.floating);return{reference:NCe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jCe(e){return mu(e).direction==="rtl"}var Vne={convertOffsetParentRelativeRectToViewportRelativeRect:CCe,getDocumentElement:dZ,getClippingRect:DCe,getOffsetParent:Hne,getElementRects:FCe,getClientRects:ICe,getDimensions:OCe,getScale:z1,isElement:pu,isRTL:jCe};function Wne(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function BCe(e,r,a){let i=null,s,l=dZ(e);function c(){var x;clearTimeout(s),(x=i)==null||x.disconnect(),i=null}function d(x,v){if(x===void 0)x=!1;if(v===void 0)v=1;c();let b=e.getBoundingClientRect(),{left:_,top:z,width:k,height:U}=b;if(!x)r();if(!k||!U)return;let P=T2(z),T=T2(l.clientWidth-(_+k)),G=T2(l.clientHeight-(z+U)),X=T2(_),ee={rootMargin:-P+"px "+-T+"px "+-G+"px "+-X+"px",threshold:du(0,lZ(1,v))||1},re=!0;function oe(ie){let ye=ie[0].intersectionRatio;if(!Wne(b,e.getBoundingClientRect()))return d();if(ye!==v){if(!re)return d();if(!ye)s=setTimeout(()=>{d(!1,0.0000001)},1000);else d(!1,ye)}re=!1}try{i=new IntersectionObserver(oe,{...ee,root:l.ownerDocument})}catch(ie){i=new IntersectionObserver(oe,ee)}i.observe(e)}let m=is(e),g=()=>d(a);return m.addEventListener("resize",g),d(!0),()=>{m.removeEventListener("resize",g),c()}}function j7(e,r,a,i){if(i===void 0)i={};let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver==="function",layoutShift:d=typeof IntersectionObserver==="function",animationFrame:m=!1}=i,g=F7(e),x=s||l?[...g?Nz(g):[],...r?Nz(r):[]]:[];x.forEach((P)=>{s&&P.addEventListener("scroll",a),l&&P.addEventListener("resize",a)});let v=g&&d?BCe(g,a,l):null,b=-1,_=null;if(c){if(_=new ResizeObserver((P)=>{let[T]=P;if(T&&T.target===g&&_&&r)_.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var G;(G=_)==null||G.observe(r)});a()}),g&&!m)_.observe(g);if(r)_.observe(r)}let z,k=m?jz(e):null;if(m)U();function U(){let P=jz(e);if(k&&!Wne(k,P))a();k=P,z=requestAnimationFrame(U)}return a(),()=>{var P;if(x.forEach((T)=>{s&&T.removeEventListener("scroll",a),l&&T.removeEventListener("resize",a)}),v==null||v(),(P=_)==null||P.disconnect(),_=null,m)cancelAnimationFrame(z)}}var Kne=Rne;var Gne=Pne,Xne=kne,Qne=Ane,Jne=Cne,B7=Lne;var $ne=Tne,U7=(e,r,a)=>{let i=new Map,s=a!=null?a:{},l={...Vne,...s.platform,_c:i};return Sne(e,r,{...s,platform:l})};S();S();var UCe=typeof document<"u",YCe=function(){},x4=UCe?$e:YCe;function v4(e,r){if(e===r)return!0;if(typeof e!==typeof r)return!1;if(typeof e==="function"&&e.toString()===r.toString())return!0;let a,i,s;if(e&&r&&typeof e==="object"){if(Array.isArray(e)){if(a=e.length,a!==r.length)return!1;for(i=a;i--!==0;)if(!v4(e[i],r[i]))return!1;return!0}if(s=Object.keys(e),a=s.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!{}.hasOwnProperty.call(r,s[i]))return!1;for(i=a;i--!==0;){let l=s[i];if(l==="_owner"&&e.$$typeof)continue;if(!v4(e[l],r[l]))return!1}return!0}return e!==e&&r!==r}function tie(e){if(typeof window>"u")return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eie(e,r){let a=tie(e);return Math.round(r*a)/a}function Y7(e){let r=y(e);return x4(()=>{r.current=e}),r}function rie(e){if(e===void 0)e={};let{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:m,open:g}=e,[x,v]=u({x:0,y:0,strategy:a,placement:r,middlewareData:{},isPositioned:!1}),[b,_]=u(i);if(!v4(b,i))_(i);let[z,k]=u(null),[U,P]=u(null),T=D((Ft)=>{if(Ft!==ee.current)ee.current=Ft,k(Ft)},[]),G=D((Ft)=>{if(Ft!==re.current)re.current=Ft,P(Ft)},[]),X=l||z,J=c||U,ee=y(null),re=y(null),oe=y(x),ie=m!=null,ye=Y7(m),We=Y7(s),Ye=Y7(g),Se=D(()=>{if(!ee.current||!re.current)return;let Ft={placement:r,strategy:a,middleware:b};if(We.current)Ft.platform=We.current;U7(ee.current,re.current,Ft).then((Bt)=>{let de={...Bt,isPositioned:Ye.current!==!1};if(He.current&&!v4(oe.current,de))oe.current=de,rn(()=>{v(de)})})},[b,r,a,We,Ye]);x4(()=>{if(g===!1&&oe.current.isPositioned)oe.current.isPositioned=!1,v((Ft)=>({...Ft,isPositioned:!1}))},[g]);let He=y(!1);x4(()=>(He.current=!0,()=>{He.current=!1}),[]),x4(()=>{if(X)ee.current=X;if(J)re.current=J;if(X&&J){if(ye.current)return ye.current(X,J,Se);Se()}},[X,J,Se,ye,ie]);let dt=N(()=>({reference:ee,floating:re,setReference:T,setFloating:G}),[T,G]),Ge=N(()=>({reference:X,floating:J}),[X,J]),yt=N(()=>{let Ft={position:a,left:0,top:0};if(!Ge.floating)return Ft;let Bt=eie(Ge.floating,x.x),de=eie(Ge.floating,x.y);if(d)return{...Ft,transform:"translate("+Bt+"px, "+de+"px)",...tie(Ge.floating)>=1.5&&{willChange:"transform"}};return{position:a,left:Bt,top:de}},[a,d,Ge.floating,x.x,x.y]);return N(()=>({...x,update:Se,refs:dt,elements:Ge,floatingStyles:yt}),[x,Se,dt,Ge,yt])}var qCe=(e)=>{function r(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:i,padding:s}=typeof e==="function"?e(a):e;if(i&&r(i)){if(i.current!=null)return B7({element:i.current,padding:s}).fn(a);return{}}if(i)return B7({element:i,padding:s}).fn(a);return{}}}},oie=(e,r)=>{let a=Kne(e);return{name:a.name,fn:a.fn,options:[e,r]}},aie=(e,r)=>{let a=Gne(e);return{name:a.name,fn:a.fn,options:[e,r]}},nie=(e,r)=>({fn:$ne(e).fn,options:[e,r]}),iie=(e,r)=>{let a=Xne(e);return{name:a.name,fn:a.fn,options:[e,r]}},fie=(e,r)=>{let a=Qne(e);return{name:a.name,fn:a.fn,options:[e,r]}};var sie=(e,r)=>{let a=Jne(e);return{name:a.name,fn:a.fn,options:[e,r]}};var lie=(e,r)=>{let a=qCe(e);return{name:a.name,fn:a.fn,options:[e,r]}};S();var HCe=Object.defineProperty,VCe=(e,r)=>HCe(e,"name",{value:r,configurable:!0}),WCe=F(VCe(function(r,a){let{children:i,width:s=10,height:l=5,...c}=r;return t(se.svg,{...c,ref:a,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?i:t("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),cie=WCe;var GCe=Object.defineProperty,xm=(e,r)=>GCe(e,"name",{value:r,configurable:!0});var uie="Popper",[die,xc]=mt(uie),[XCe,Zie]=die(uie),QCe=xm((e)=>{let{__scopePopper:r,children:a}=e,[i,s]=u(null),[l,c]=u(void 0);return t(XCe,{scope:r,anchor:i,onAnchorChange:s,placementState:l,setPlacementState:c,children:a})},"Popper"),JCe="PopperAnchor",$Ce=F(xm(function(r,a){let{__scopePopper:i,virtualRef:s,...l}=r,c=Zie(JCe,i),d=y(null),m=c.onAnchorChange,g=D((k)=>{if(d.current=k,k)m(k)},[m]),x=_e(a,g),v=y(null);h(()=>{if(!s)return;let k=v.current;if(v.current=s.current,k!==v.current)m(v.current)});let b=c.placementState&&y4(c.placementState),_=b?.[0],z=b?.[1];return s?null:t(se.div,{"data-radix-popper-side":_,"data-radix-popper-align":z,...l,ref:x})},"PopperAnchor")),pie="PopperContent",[eIe,tIe]=die(pie),rIe=F(xm(function(r,a){let{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:c="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:x=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:z="optimized",onPlaced:k,...U}=r,P=Zie(pie,i),[T,G]=u(null),X=_e(a,G),[J,ee]=u(null),re=mi(J),oe=re?.width??0,ie=re?.height??0,ye=s+(c!=="center"?"-"+c:""),We=typeof v==="number"?v:{top:0,right:0,bottom:0,left:0,...v},Ye=Array.isArray(x)?x:[x],Se=Ye.length>0,He={padding:We,boundary:Ye.filter(mie),altBoundary:Se},{refs:dt,floatingStyles:Ge,placement:yt,isPositioned:Ft,middlewareData:Bt}=rie({strategy:"fixed",placement:ye,whileElementsMounted:xm((...Xt)=>j7(...Xt,{animationFrame:z==="always"}),"whileElementsMounted"),elements:{reference:P.anchor},middleware:[oie({mainAxis:l+ie,alignmentAxis:d}),g&&aie({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?nie():void 0,...He}),g&&iie({...He}),fie({...He,apply:xm(({elements:Xt,rects:Ir,availableWidth:wr,availableHeight:Tr})=>{let{width:Zr,height:co}=Ir.reference,io=Xt.floating.style;io.setProperty("--radix-popper-available-width",`${wr}px`),io.setProperty("--radix-popper-available-height",`${Tr}px`),io.setProperty("--radix-popper-anchor-width",`${Zr}px`),io.setProperty("--radix-popper-anchor-height",`${co}px`)},"apply")}),J&&lie({element:J,padding:m}),iIe({arrowWidth:oe,arrowHeight:ie}),_&&sie({strategy:"referenceHidden",...He,boundary:Se?He.boundary:void 0})]}),de=P.setPlacementState;Rt(()=>(de(yt),()=>{de(void 0)}),[yt,de]);let[_t,Wt]=y4(yt),Fe=Qo(k);Rt(()=>{if(Ft)Fe?.()},[Ft,Fe]);let fr=Bt.arrow?.x,sr=Bt.arrow?.y,Jt=Bt.arrow?.centerOffset!==0,[Fr,Kt]=u();return Rt(()=>{if(T)Kt(window.getComputedStyle(T).zIndex)},[T]),t("div",{ref:dt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ge,transform:Ft?Ge.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Fr,"--radix-popper-transform-origin":[Bt.transformOrigin?.x,Bt.transformOrigin?.y].join(" "),...Bt.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:t(eIe,{scope:i,placedSide:_t,placedAlign:Wt,onArrowChange:ee,arrowX:fr,arrowY:sr,shouldHideArrow:Jt,children:t(se.div,{"data-side":_t,"data-align":Wt,...U,ref:X,style:{...U.style,animation:!Ft?"none":U.style?.animation}})})})},"PopperContent")),oIe="PopperArrow",aIe={top:"bottom",right:"left",bottom:"top",left:"right"},nIe=F(xm(function(r,a){let{__scopePopper:i,...s}=r,l=tIe(oIe,i),c=aIe[l.placedSide];return t("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:t(cie,{...s,ref:a,style:{...s.style,display:"block"}})})},"PopperArrow"));function mie(e){return e!==null}xm(mie,"isNotNull");var iIe=xm((e)=>({name:"transformOrigin",options:e,fn(r){let{placement:a,rects:i,middlewareData:s}=r,c=s.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,m=c?0:e.arrowHeight,[g,x]=y4(a),v={start:"0%",center:"50%",end:"100%"}[x],b=(s.arrow?.x??0)+d/2,_=(s.arrow?.y??0)+m/2,z="",k="";if(g==="bottom")z=c?v:`${b}px`,k=`${-m}px`;else if(g==="top")z=c?v:`${b}px`,k=`${i.floating.height+m}px`;else if(g==="right")z=`${-m}px`,k=c?v:`${_}px`;else if(g==="left")z=`${i.floating.width+m}px`,k=c?v:`${_}px`;return{data:{x:z,y:k}}}}),"transformOrigin");function y4(e){let[r,a="center"]=e.split("-");return[r,a]}xm(y4,"getSideAndAlignFromPlacement");var vm=QCe,d8=$Ce,Z8=rIe,O2=nIe;S();S();S();var fIe=Object.defineProperty,H7=(e,r)=>fIe(e,"name",{value:r,configurable:!0}),q7=!1;function hie(){let[e,r]=u(q7);return h(()=>{if(!q7)q7=!0,r(!0)},[]),e}H7(hie,"useIsHydrated");var gie=V[" useSyncExternalStore ".trim().toString()];function Mie(){return()=>{}}H7(Mie,"subscribe");function xie(){return gie(Mie,()=>!0,()=>!1)}H7(xie,"useIsHydratedModern");var vie=typeof gie==="function"?xie:hie;var sIe=Object.defineProperty,Bz=(e,r)=>sIe(e,"name",{value:r,configurable:!0}),V7="rovingFocusGroup.onEntryFocus",lIe={bubbles:!1,cancelable:!0},b4="RovingFocusGroup",[W7,yie,cIe]=hi(b4),[uIe,gi]=mt(b4,[cIe]),[dIe,ZIe]=uIe(b4),pIe=F(Bz(function(r,a){return t(W7.Provider,{scope:r.__scopeRovingFocusGroup,children:t(W7.Slot,{scope:r.__scopeRovingFocusGroup,children:t(mIe,{...r,ref:a})})})},"RovingFocusGroup")),mIe=F(Bz(function(r,a){let{__scopeRovingFocusGroup:i,orientation:s,loop:l=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:g,onEntryFocus:x,preventScrollOnEntryFocus:v=!1,...b}=r,_=y(null),z=_e(a,_),k=Hn(c),[U,P]=Lt({prop:d,defaultProp:m??null,onChange:g,caller:b4}),[T,G]=u(!1),X=Qo(x),J=yie(i),ee=y(!1),[re,oe]=u(0);return h(()=>{let ie=_.current;if(ie)return ie.addEventListener(V7,X),()=>ie.removeEventListener(V7,X)},[X]),t(dIe,{scope:i,orientation:s,dir:k,loop:l,currentTabStopId:U,onItemFocus:D((ie)=>P(ie),[P]),onItemShiftTab:D(()=>G(!0),[]),onFocusableItemAdd:D(()=>oe((ie)=>ie+1),[]),onFocusableItemRemove:D(()=>oe((ie)=>ie-1),[]),children:t(se.div,{tabIndex:T||re===0?-1:0,"data-orientation":s,...b,ref:z,style:{outline:"none",...r.style},onMouseDown:Y(r.onMouseDown,()=>{ee.current=!0}),onFocus:Y(r.onFocus,(ie)=>{let ye=!ee.current;if(ie.target===ie.currentTarget&&ye&&!T){let We=new CustomEvent(V7,lIe);if(ie.currentTarget.dispatchEvent(We),!We.defaultPrevented){let Ye=J().filter((yt)=>yt.focusable),Se=Ye.find((yt)=>yt.active),He=Ye.find((yt)=>yt.id===U),Ge=[Se,He,...Ye].filter(Boolean).map((yt)=>yt.ref.current);K7(Ge,v)}}ee.current=!1}),onBlur:Y(r.onBlur,()=>G(!1))})})},"RovingFocusGroupImpl")),hIe="RovingFocusGroupItem",gIe=F(Bz(function(r,a){let{__scopeRovingFocusGroup:i,focusable:s=!0,active:l=!1,tabStopId:c,children:d,...m}=r,g=Er(),x=c||g,v=ZIe(hIe,i),b=v.currentTabStopId===x,_=yie(i),{onFocusableItemAdd:z,onFocusableItemRemove:k,currentTabStopId:U}=v,P=vie();return Rt(()=>{if(!P||!s)return;return z(),()=>k()},[P,s,z,k]),h(()=>{if(P||!s)return;return z(),()=>k()},[P,s,z,k]),t(W7.ItemSlot,{scope:i,id:x,focusable:s,active:l,children:t(se.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...m,ref:a,onMouseDown:Y(r.onMouseDown,(T)=>{if(!s)T.preventDefault();else v.onItemFocus(x)}),onFocus:Y(r.onFocus,()=>v.onItemFocus(x)),onKeyDown:Y(r.onKeyDown,(T)=>{if(T.key==="Tab"&&T.shiftKey){v.onItemShiftTab();return}if(T.target!==T.currentTarget)return;let G=bie(T,v.orientation,v.dir);if(G!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let J=_().filter((ee)=>ee.focusable).map((ee)=>ee.ref.current);if(G==="last")J.reverse();else if(G==="prev"||G==="next"){if(G==="prev")J.reverse();let ee=J.indexOf(T.currentTarget);J=v.loop?wie(J,ee+1):J.slice(ee+1)}setTimeout(()=>K7(J))}}),children:typeof d==="function"?d({isCurrentTabStop:b,hasTabStop:U!=null}):d})})},"RovingFocusGroupItem")),MIe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _ie(e,r){if(r!=="rtl")return e;return e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Bz(_ie,"getDirectionAwareKey");function bie(e,r,a){let i=_ie(e.key,a);if(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))return;if(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i))return;return MIe[i]}Bz(bie,"getFocusIntent");function K7(e,r=!1){let a=document.activeElement;for(let i of e){if(i===a)return;if(i.focus({preventScroll:r}),document.activeElement!==a)return}}Bz(K7,"focusFirst");function wie(e,r){return e.map((a,i)=>e[(r+i)%e.length])}Bz(wie,"wrapArray");var gl=pIe,Al=gIe;var xIe=Object.defineProperty,Ro=(e,r)=>xIe(e,"name",{value:r,configurable:!0}),G7=["Enter"," "],vIe=["ArrowDown","PageUp","Home"],Lie=["ArrowUp","PageDown","End"],yIe=[...vIe,...Lie],_Ie={ltr:[...G7,"ArrowRight"],rtl:[...G7,"ArrowLeft"]},bIe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},z4="Menu",[N2,wIe,zIe]=hi(z4),[Uz,_l]=mt(z4,[zIe,xc,gi]),S4=xc(),kie=gi(),[Cie,p8]=Uz(z4),[SIe,F2]=Uz(z4),LIe=Ro((e)=>{let{__scopeMenu:r,open:a=!1,children:i,dir:s,onOpenChange:l,modal:c=!0}=e,d=S4(r),[m,g]=u(null),x=y(!1),v=Qo(l),b=Hn(s);return h(()=>{let _=Ro(()=>{x.current=!0,document.addEventListener("pointerdown",z,{capture:!0,once:!0}),document.addEventListener("pointermove",z,{capture:!0,once:!0})},"handleKeyDown"),z=Ro(()=>x.current=!1,"handlePointer");return document.addEventListener("keydown",_,{capture:!0}),()=>{document.removeEventListener("keydown",_,{capture:!0}),document.removeEventListener("pointerdown",z,{capture:!0}),document.removeEventListener("pointermove",z,{capture:!0})}},[]),h(()=>{if(!a)return;let _=Ro(()=>v(!1),"handleBlur");return window.addEventListener("blur",_),()=>window.removeEventListener("blur",_)},[a,v]),t(vm,{...d,children:t(Cie,{scope:r,open:a,onOpenChange:v,content:m,onContentChange:g,children:t(SIe,{scope:r,onClose:D(()=>v(!1),[v]),isUsingKeyboardRef:x,dir:b,modal:c,children:i})})})},"Menu"),Iie=F(Ro(function(r,a){let{__scopeMenu:i,...s}=r,l=S4(i);return t(d8,{...l,...s,ref:a})},"MenuAnchor")),Rie="MenuPortal",[kIe,Pie]=Uz(Rie,{forceMount:void 0}),CIe=Ro((e)=>{let{__scopeMenu:r,forceMount:a,children:i,container:s}=e,l=p8(Rie,r);return t(kIe,{scope:r,forceMount:a,children:t(ar,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:i})})})},"MenuPortal"),hu="MenuContent",[IIe,Q7]=Uz(hu),RIe=F(Ro(function(r,a){let i=Pie(hu,r.__scopeMenu),{forceMount:s=i.forceMount,...l}=r,c=p8(hu,r.__scopeMenu),d=F2(hu,r.__scopeMenu);return t(N2.Provider,{scope:r.__scopeMenu,children:t(ar,{present:s||c.open,children:t(N2.Slot,{scope:r.__scopeMenu,children:d.modal?t(PIe,{...l,ref:a}):t(TIe,{...l,ref:a})})})})},"MenuContent")),PIe=F(Ro(function(r,a){let i=p8(hu,r.__scopeMenu),s=y(null),l=_e(a,s);return h(()=>{let c=s.current;if(c)return c8(c)},[]),t(J7,{...r,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:Y(r.onFocusOutside,(c)=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})},"MenuRootContentModal")),TIe=F(Ro(function(r,a){let i=p8(hu,r.__scopeMenu);return t(J7,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})},"MenuRootContentNonModal")),AIe=Di("MenuContent.ScrollLock"),J7=F(Ro(function(r,a){let{__scopeMenu:i,loop:s=!1,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:m,onEntryFocus:g,onEscapeKeyDown:x,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:_,onDismiss:z,disableOutsideScroll:k,...U}=r,P=p8(hu,i),T=F2(hu,i),G=S4(i),X=kie(i),J=wIe(i),[ee,re]=u(null),oe=y(null),ie=_e(a,oe,P.onContentChange),ye=y(0),We=y(""),Ye=y(0),Se=y(null),He=y("right"),dt=y(0),Ge=k?fm:Cn,yt=k?{as:AIe,allowPinchZoom:!0}:void 0,Ft=Ro((de)=>{let _t=We.current+de,Wt=J().filter((Kt)=>!Kt.disabled),Fe=document.activeElement,fr=Wt.find((Kt)=>Kt.ref.current===Fe)?.textValue,sr=Wt.map((Kt)=>Kt.textValue),Jt=jie(sr,_t,fr),Fr=Wt.find((Kt)=>Kt.textValue===Jt)?.ref.current;if(Ro(function Kt(Xt){if(We.current=Xt,window.clearTimeout(ye.current),Xt!=="")ye.current=window.setTimeout(()=>Kt(""),1000)},"updateSearch")(_t),Fr)setTimeout(()=>Fr.focus())},"handleTypeaheadSearch");h(()=>()=>window.clearTimeout(ye.current),[]),sZ();let Bt=D((de)=>He.current===Se.current?.side&&Uie(de,Se.current?.area),[]);return t(IIe,{scope:i,searchRef:We,onItemEnter:D((de)=>{if(Bt(de))de.preventDefault()},[Bt]),onItemLeave:D((de)=>{if(Bt(de))return;oe.current?.focus(),re(null)},[Bt]),onTriggerLeave:D((de)=>{if(Bt(de))de.preventDefault()},[Bt]),pointerGraceTimerRef:Ye,onPointerGraceIntentChange:D((de)=>{Se.current=de},[]),children:t(Ge,{...yt,children:t(l8,{asChild:!0,trapped:l,onMountAutoFocus:Y(c,(de)=>{de.preventDefault(),oe.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:t(iZ,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:_,onDismiss:z,children:t(gl,{asChild:!0,...X,dir:T.dir,orientation:"vertical",loop:s,currentTabStopId:ee,onCurrentTabStopIdChange:re,onEntryFocus:Y(g,(de)=>{if(!T.isUsingKeyboardRef.current)de.preventDefault()}),preventScrollOnEntryFocus:!0,children:t(Z8,{role:"menu","aria-orientation":"vertical","data-state":$7(P.open),"data-radix-menu-content":"",dir:T.dir,...G,...U,ref:ie,style:{outline:"none",...U.style},onKeyDown:Y(U.onKeyDown,(de)=>{let Wt=de.target.closest("[data-radix-menu-content]")===de.currentTarget,Fe=de.ctrlKey||de.altKey||de.metaKey,fr=de.key.length===1;if(Wt){if(de.key==="Tab")de.preventDefault();if(!Fe&&fr)Ft(de.key)}let sr=oe.current;if(de.target!==sr)return;if(!yIe.includes(de.key))return;de.preventDefault();let Fr=J().filter((Kt)=>!Kt.disabled).map((Kt)=>Kt.ref.current);if(Lie.includes(de.key))Fr.reverse();Nie(Fr)}),onBlur:Y(r.onBlur,(de)=>{if(!de.currentTarget.contains(de.target))window.clearTimeout(ye.current),We.current=""}),onPointerMove:Y(r.onPointerMove,L1((de)=>{let _t=de.target,Wt=dt.current!==de.clientX;if(de.currentTarget.contains(_t)&&Wt){let Fe=de.clientX>dt.current?"right":"left";He.current=Fe,dt.current=de.clientX}}))})})})})})})},"MenuContentImpl")),EIe=F(Ro(function(r,a){let{__scopeMenu:i,...s}=r;return t(se.div,{role:"group",...s,ref:a})},"MenuGroup")),DIe=F(Ro(function(r,a){let{__scopeMenu:i,...s}=r;return t(se.div,{...s,ref:a})},"MenuLabel")),X7="MenuItem",Sie="menu.itemSelect",Tie=F(Ro(function(r,a){let{disabled:i=!1,onSelect:s,...l}=r,c=y(null),d=F2(X7,r.__scopeMenu),m=Q7(X7,r.__scopeMenu),g=_e(a,c),x=y(!1),v=Ro(()=>{let b=c.current;if(!i&&b){let _=new CustomEvent(Sie,{bubbles:!0,cancelable:!0});if(b.addEventListener(Sie,(z)=>s?.(z),{once:!0}),S2(b,_),_.defaultPrevented)x.current=!1;else d.onClose()}},"handleSelect");return t(Aie,{...l,ref:g,disabled:i,onClick:Y(r.onClick,v),onPointerDown:(b)=>{r.onPointerDown?.(b),x.current=!0},onPointerUp:Y(r.onPointerUp,(b)=>{if(!x.current)b.currentTarget?.click()}),onKeyDown:Y(r.onKeyDown,(b)=>{if(i||b.target!==b.currentTarget)return;if(m.searchRef.current!==""&&b.key===" ")return;if(G7.includes(b.key))b.currentTarget.click(),b.preventDefault()})})},"MenuItem")),Aie=F(Ro(function(r,a){let{__scopeMenu:i,disabled:s=!1,textValue:l,...c}=r,d=Q7(X7,i),m=kie(i),g=y(null),x=_e(a,g),[v,b]=u(!1),[_,z]=u("");return h(()=>{let k=g.current;if(k)z((k.textContent??"").trim())},[c.children]),t(N2.ItemSlot,{scope:i,disabled:s,textValue:l??_,children:t(Al,{asChild:!0,...m,focusable:!s,children:t(se.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:x,onPointerMove:Y(r.onPointerMove,L1((k)=>{if(s)d.onItemLeave(k);else if(d.onItemEnter(k),!k.defaultPrevented)k.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Y(r.onPointerLeave,L1((k)=>d.onItemLeave(k))),onFocus:Y(r.onFocus,()=>b(!0)),onBlur:Y(r.onBlur,()=>b(!1))})})})},"MenuItemImpl"));var OIe="MenuRadioGroup",[NIe,FIe]=Uz(OIe,{value:void 0,onValueChange:Ro(()=>{},"onValueChange")}),jIe=F(Ro(function(r,a){let{value:i,onValueChange:s,...l}=r,c=Qo(s);return t(NIe,{scope:r.__scopeMenu,value:i,onValueChange:c,children:t(EIe,{...l,ref:a})})},"MenuRadioGroup")),BIe="MenuRadioItem",UIe=F(Ro(function(r,a){let{value:i,...s}=r,l=FIe(BIe,r.__scopeMenu),c=i===l.value;return t(YIe,{scope:r.__scopeMenu,checked:c,children:t(Tie,{role:"menuitemradio","aria-checked":c,...s,ref:a,"data-state":tq(c),onSelect:Y(s.onSelect,()=>l.onValueChange?.(i),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),Eie="MenuItemIndicator",[YIe,qIe]=Uz(Eie,{checked:!1}),HIe=F(Ro(function(r,a){let{__scopeMenu:i,forceMount:s,...l}=r,c=qIe(Eie,i);return t(ar,{present:s||eq(c.checked)||c.checked===!0,children:t(se.span,{...l,ref:a,"data-state":tq(c.checked)})})},"MenuItemIndicator")),VIe=F(Ro(function(r,a){let{__scopeMenu:i,...s}=r;return t(se.div,{role:"separator","aria-orientation":"horizontal",...s,ref:a})},"MenuSeparator"));var Die="MenuSub",[WIe,Oie]=Uz(Die),KIe=Ro((e)=>{let{__scopeMenu:r,children:a,open:i=!1,onOpenChange:s}=e,l=p8(Die,r),c=S4(r),[d,m]=u(null),[g,x]=u(null),v=Qo(s);return h(()=>{if(l.open===!1)v(!1);return()=>v(!1)},[l.open,v]),t(vm,{...c,children:t(Cie,{scope:r,open:i,onOpenChange:v,content:g,onContentChange:x,children:t(WIe,{scope:r,contentId:Er(),triggerId:Er(),trigger:d,onTriggerChange:m,children:a})})})},"MenuSub"),w4="MenuSubTrigger",GIe=F(Ro(function(r,a){let i=p8(w4,r.__scopeMenu),s=F2(w4,r.__scopeMenu),l=Oie(w4,r.__scopeMenu),c=Q7(w4,r.__scopeMenu),d=y(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:g}=c,x={__scopeMenu:r.__scopeMenu},v=D(()=>{if(d.current)window.clearTimeout(d.current);d.current=null},[]);h(()=>v,[v]),h(()=>{let _=m.current;return()=>{window.clearTimeout(_),g(null)}},[m,g]);let b=_e(a,l.onTriggerChange);return t(Iie,{asChild:!0,...x,children:t(Aie,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?l.contentId:void 0,"data-state":$7(i.open),...r,ref:b,onClick:(_)=>{if(r.onClick?.(_),r.disabled||_.defaultPrevented)return;if(_.currentTarget.focus(),!i.open)i.onOpenChange(!0)},onPointerMove:Y(r.onPointerMove,L1((_)=>{if(c.onItemEnter(_),_.defaultPrevented)return;if(!r.disabled&&!i.open&&!d.current)c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{i.onOpenChange(!0),v()},100)})),onPointerLeave:Y(r.onPointerLeave,L1((_)=>{v();let z=i.content?.getBoundingClientRect();if(z){let k=i.content?.dataset.side,U=k==="right",P=U?-5:5,T=z[U?"left":"right"],G=z[U?"right":"left"];c.onPointerGraceIntentChange({area:[{x:_.clientX+P,y:_.clientY},{x:T,y:z.top},{x:G,y:z.top},{x:G,y:z.bottom},{x:T,y:z.bottom}],side:k}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(_),_.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:Y(r.onKeyDown,(_)=>{if(r.disabled||_.target!==_.currentTarget)return;if(c.searchRef.current!==""&&_.key===" ")return;if(_Ie[s.dir].includes(_.key))i.onOpenChange(!0),i.content?.focus(),_.preventDefault()})})})},"MenuSubTrigger")),XIe="MenuSubContent",QIe=F(Ro(function(r,a){let i=Pie(hu,r.__scopeMenu),{forceMount:s=i.forceMount,align:l="start",...c}=r,d=p8(hu,r.__scopeMenu),m=F2(hu,r.__scopeMenu),g=Oie(XIe,r.__scopeMenu),x=y(null),v=_e(a,x);return t(N2.Provider,{scope:r.__scopeMenu,children:t(ar,{present:s||d.open,children:t(N2.Slot,{scope:r.__scopeMenu,children:t(J7,{id:g.contentId,"aria-labelledby":g.triggerId,...c,ref:v,align:l,side:m.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(b)=>{if(m.isUsingKeyboardRef.current)x.current?.focus();b.preventDefault()},onCloseAutoFocus:(b)=>b.preventDefault(),onFocusOutside:Y(r.onFocusOutside,(b)=>{if(b.target!==g.trigger)d.onOpenChange(!1)}),onEscapeKeyDown:Y(r.onEscapeKeyDown,(b)=>{m.onClose(),b.preventDefault()}),onKeyDown:Y(r.onKeyDown,(b)=>{let _=b.currentTarget.contains(b.target),z=bIe[m.dir].includes(b.key);if(_&&z)d.onOpenChange(!1),g.trigger?.focus(),b.preventDefault()})})})})})},"MenuSubContent"));function $7(e){return e?"open":"closed"}Ro($7,"getOpenState");function eq(e){return e==="indeterminate"}Ro(eq,"isIndeterminate");function tq(e){return eq(e)?"indeterminate":e?"checked":"unchecked"}Ro(tq,"getCheckedState");function Nie(e){let r=document.activeElement;for(let a of e){if(a===r)return;if(a.focus(),document.activeElement!==r)return}}Ro(Nie,"focusFirst");function Fie(e,r){return e.map((a,i)=>e[(r+i)%e.length])}Ro(Fie,"wrapArray");function jie(e,r,a){let s=r.length>1&&Array.from(r).every((g)=>g===r[0])?r[0]:r,l=a?e.indexOf(a):-1,c=Fie(e,Math.max(l,0));if(s.length===1)c=c.filter((g)=>g!==a);let m=c.find((g)=>g.toLowerCase().startsWith(s.toLowerCase()));return m!==a?m:void 0}Ro(jie,"getNextMatch");function Bie(e,r){let{x:a,y:i}=e,s=!1;for(let l=0,c=r.length-1;l<r.length;c=l++){let d=r[l],m=r[c],{x:g,y:x}=d,{x:v,y:b}=m;if(x>i!==b>i&&a<(v-g)*(i-x)/(b-x)+g)s=!s}return s}Ro(Bie,"isPointInPolygon");function Uie(e,r){if(!r)return!1;let a={x:e.clientX,y:e.clientY};return Bie(a,r)}Ro(Uie,"isPointerInGraceArea");function L1(e){return(r)=>r.pointerType==="mouse"?e(r):void 0}Ro(L1,"whenMouse");var Ju=LIe,Xu=Iie,ed=CIe,td=RIe;var Yie=DIe,rd=Tie;var qie=jIe,Hie=UIe,Vie=HIe,nd=VIe;var od=KIe,sd=GIe,id=QIe;S();var $Ie=Object.defineProperty,Wl=(e,r)=>$Ie(e,"name",{value:r,configurable:!0}),rq="DropdownMenu",[e1e,KXo]=mt(rq,[_l]),Kl=_l(),[t1e,Wie]=e1e(rq),r1e=Wl((e)=>{let{__scopeDropdownMenu:r,children:a,dir:i,open:s,defaultOpen:l,onOpenChange:c,modal:d=!0}=e,m=Kl(r),g=y(null),[x,v]=Lt({prop:s,defaultProp:l??!1,onChange:c,caller:rq});return t(t1e,{scope:r,triggerId:Er(),triggerRef:g,contentId:Er(),open:x,onOpenChange:v,onOpenToggle:D(()=>v((b)=>!b),[v]),modal:d,children:t(Ju,{...m,open:x,onOpenChange:v,dir:i,modal:d,children:a})})},"DropdownMenu"),o1e="DropdownMenuTrigger",a1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,disabled:s=!1,...l}=r,c=Wie(o1e,i),d=Kl(i),m=_e(a,c.triggerRef);return t(Xu,{asChild:!0,...d,children:t(se.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...l,ref:m,onPointerDown:Y(r.onPointerDown,(g)=>{if(!s&&g.button===0&&g.ctrlKey===!1){if(c.onOpenToggle(),!c.open)g.preventDefault()}}),onKeyDown:Y(r.onKeyDown,(g)=>{if(s)return;if(["Enter"," "].includes(g.key))c.onOpenToggle();if(g.key==="ArrowDown")c.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(g.key))g.preventDefault()})})})},"DropdownMenuTrigger")),n1e=Wl((e)=>{let{__scopeDropdownMenu:r,...a}=e,i=Kl(r);return t(ed,{...i,...a})},"DropdownMenuPortal"),i1e="DropdownMenuContent",f1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Wie(i1e,i),c=Kl(i),d=y(!1);return t(td,{id:l.contentId,"aria-labelledby":l.triggerId,...c,...s,ref:a,onCloseAutoFocus:Y(r.onCloseAutoFocus,(m)=>{if(!d.current)l.triggerRef.current?.focus();d.current=!1,m.preventDefault()}),onInteractOutside:Y(r.onInteractOutside,(m)=>{let g=m.detail.originalEvent,x=g.button===0&&g.ctrlKey===!0,v=g.button===2||x;if(!l.modal||v)d.current=!0}),style:{...r.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})},"DropdownMenuContent"));var s1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(Yie,{...l,...s,ref:a})},"DropdownMenuLabel")),l1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(rd,{...l,...s,ref:a})},"DropdownMenuItem"));var c1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(qie,{...l,...s,ref:a})},"DropdownMenuRadioGroup")),u1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(Hie,{...l,...s,ref:a})},"DropdownMenuRadioItem")),d1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(Vie,{...l,...s,ref:a})},"DropdownMenuItemIndicator")),Z1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(nd,{...l,...s,ref:a})},"DropdownMenuSeparator"));var p1e=Wl((e)=>{let{__scopeDropdownMenu:r,children:a,open:i,onOpenChange:s,defaultOpen:l}=e,c=Kl(r),[d,m]=Lt({prop:i,defaultProp:l??!1,onChange:s,caller:"DropdownMenuSub"});return t(od,{...c,open:d,onOpenChange:m,children:a})},"DropdownMenuSub"),m1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(sd,{...l,...s,ref:a})},"DropdownMenuSubTrigger")),h1e=F(Wl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Kl(i);return t(id,{...l,...s,ref:a,style:{...r.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})},"DropdownMenuSubContent")),g1e=r1e,M1e=a1e,Kie=n1e,x1e=f1e;var v1e=s1e,y1e=l1e;var _1e=c1e,b1e=u1e,w1e=d1e,z1e=Z1e;var S1e=p1e,L1e=m1e,k1e=h1e;S();var C1e=Object.defineProperty,I1e=(e,r)=>C1e(e,"name",{value:r,configurable:!0}),R1e=F(I1e(function(r,a){return t(se.label,{...r,ref:a,onMouseDown:(i)=>{if(i.target.closest("button, input, select, textarea"))return;if(r.onMouseDown?.(i),!i.defaultPrevented&&i.detail>1)i.preventDefault()}})},"Label")),P1e=R1e;S();var T1e=Object.defineProperty,m8=(e,r)=>T1e(e,"name",{value:r,configurable:!0}),oq="Popover",[Qie,ZQo]=mt(oq,[xc]),aq=xc(),[A1e,P1]=Qie(oq),E1e=m8((e)=>{let{__scopePopover:r,children:a,open:i,defaultOpen:s,onOpenChange:l,modal:c=!1}=e,d=aq(r),m=y(null),[g,x]=u(!1),[v,b]=Lt({prop:i,defaultProp:s??!1,onChange:l,caller:oq});return t(vm,{...d,children:t(A1e,{scope:r,contentId:Er(),triggerRef:m,open:v,onOpenChange:b,onOpenToggle:D(()=>b((_)=>!_),[b]),hasCustomAnchor:g,onCustomAnchorAdd:D(()=>x(!0),[]),onCustomAnchorRemove:D(()=>x(!1),[]),modal:c,children:a})})},"Popover");var D1e="PopoverTrigger",O1e=F(m8(function(r,a){let{__scopePopover:i,...s}=r,l=P1(D1e,i),c=aq(i),d=_e(a,l.triggerRef),m=t(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":nq(l.open),...s,ref:d,onClick:Y(r.onClick,l.onOpenToggle)});return l.hasCustomAnchor?m:t(d8,{asChild:!0,...c,children:m})},"PopoverTrigger")),Jie="PopoverPortal",[N1e,F1e]=Qie(Jie,{forceMount:void 0}),j1e=m8((e)=>{let{__scopePopover:r,forceMount:a,children:i,container:s}=e,l=P1(Jie,r);return t(N1e,{scope:r,forceMount:a,children:t(ar,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:i})})})},"PopoverPortal"),j2="PopoverContent",B1e=F(m8(function(r,a){let i=F1e(j2,r.__scopePopover),{forceMount:s=i.forceMount,...l}=r,c=P1(j2,r.__scopePopover);return t(ar,{present:s||c.open,children:c.modal?t(Y1e,{...l,ref:a}):t(q1e,{...l,ref:a})})},"PopoverContent")),U1e=Di("PopoverContent.RemoveScroll"),Y1e=F(m8(function(r,a){let i=P1(j2,r.__scopePopover),s=y(null),l=_e(a,s),c=y(!1);return h(()=>{let d=s.current;if(d)return c8(d)},[]),t(fm,{as:U1e,allowPinchZoom:!0,children:t($ie,{...r,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(r.onCloseAutoFocus,(d)=>{if(d.preventDefault(),!c.current)i.triggerRef.current?.focus()}),onPointerDownOutside:Y(r.onPointerDownOutside,(d)=>{let m=d.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0,x=m.button===2||g;c.current=x},{checkForDefaultPrevented:!1}),onFocusOutside:Y(r.onFocusOutside,(d)=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),q1e=F(m8(function(r,a){let i=P1(j2,r.__scopePopover),s=y(!1),l=y(!1);return t($ie,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(c)=>{if(r.onCloseAutoFocus?.(c),!c.defaultPrevented){if(!s.current)i.triggerRef.current?.focus();c.preventDefault()}s.current=!1,l.current=!1},onInteractOutside:(c)=>{if(r.onInteractOutside?.(c),!c.defaultPrevented){if(s.current=!0,c.detail.originalEvent.type==="pointerdown")l.current=!0}let d=c.target;if(i.triggerRef.current?.contains(d))c.preventDefault();if(c.detail.originalEvent.type==="focusin"&&l.current)c.preventDefault()}})},"PopoverContentNonModal")),$ie=F(m8(function(r,a){let{__scopePopover:i,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:v,...b}=r,_=P1(j2,i),z=aq(i);return sZ(),t(l8,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:c,children:t(iZ,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:v,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:x,onDismiss:()=>_.onOpenChange(!1),deferPointerDownOutside:!0,children:t(Z8,{"data-state":nq(_.open),role:"dialog",id:_.contentId,...z,...b,ref:a,style:{...b.style,...{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}})})})},"PopoverContentImpl"));function nq(e){return e?"open":"closed"}m8(nq,"getState");var H1e=E1e;var V1e=O1e,W1e=j1e,K1e=B1e;S();var G1e=Object.defineProperty,ym=(e,r)=>G1e(e,"name",{value:r,configurable:!0}),tfe="Progress",sq=100,[X1e,gQo]=mt(tfe),[Q1e,J1e]=X1e(tfe),$1e=F(ym(function(r,a){let{__scopeProgress:i,value:s=null,max:l,getValueLabel:c=rfe,...d}=r;if((l||l===0)&&!iq(l))console.error(ofe(`${l}`,"Progress"));let m=iq(l)?l:sq;if(s!==null&&!fq(s,m))console.error(afe(`${s}`,"Progress"));let g=fq(s,m)?s:null,x=B2(g)?c(g,m):void 0;return t(Q1e,{scope:i,value:g,max:m,children:t(se.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":B2(g)?g:void 0,"aria-valuetext":x,role:"progressbar","data-state":lq(g,m),"data-value":g??void 0,"data-max":m,...d,ref:a})})},"Progress")),eRe="ProgressIndicator",tRe=F(ym(function(r,a){let{__scopeProgress:i,...s}=r,l=J1e(eRe,i);return t(se.div,{"data-state":lq(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...s,ref:a})},"ProgressIndicator"));function rfe(e,r){return`${Math.round(e/r*100)}%`}ym(rfe,"defaultGetValueLabel");function lq(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}ym(lq,"getProgressState");function B2(e){return typeof e==="number"}ym(B2,"isNumber");function iq(e){return B2(e)&&!isNaN(e)&&e>0}ym(iq,"isValidMaxNumber");function fq(e,r){return B2(e)&&!isNaN(e)&&e<=r&&e>=0}ym(fq,"isValidValueNumber");function ofe(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${sq}\`.`}ym(ofe,"getInvalidMaxError");function afe(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
56
- - a positive number
57
- - less than the value passed to \`max\` (or ${sq} if no \`max\` prop is set)
58
- - \`null\` or \`undefined\` if the progress is indeterminate.
59
-
60
- Defaulting to \`null\`.`}ym(afe,"getInvalidValueError");var rRe=$1e,oRe=tRe;S();var aRe=Object.defineProperty,nRe=(e,r)=>aRe(e,"name",{value:r,configurable:!0});function Ai(e,[r,a]){return Math.min(a,Math.max(r,e))}nRe(Ai,"clamp");S();var iRe=Object.defineProperty,yo=(e,r)=>iRe(e,"name",{value:r,configurable:!0});function ife(e,r){return tn((a,i)=>r[a][i]??a,e)}yo(ife,"useStateMachine");var ffe="ScrollArea",[sfe,CQo]=mt(ffe),[fRe,vc]=sfe(ffe),sRe=F(yo(function(r,a){let{__scopeScrollArea:i,type:s="hover",dir:l,scrollHideDelay:c=600,...d}=r,[m,g]=u(null),[x,v]=u(null),[b,_]=u(null),[z,k]=u(null),[U,P]=u(null),[T,G]=u(0),[X,J]=u(0),[ee,re]=u(!1),[oe,ie]=u(!1),ye=_e(a,g),We=Hn(l);return t(fRe,{scope:i,type:s,dir:We,scrollHideDelay:c,scrollArea:m,viewport:x,onViewportChange:v,content:b,onContentChange:_,scrollbarX:z,onScrollbarXChange:k,scrollbarXEnabled:ee,onScrollbarXEnabledChange:re,scrollbarY:U,onScrollbarYChange:P,scrollbarYEnabled:oe,onScrollbarYEnabledChange:ie,onCornerWidthChange:G,onCornerHeightChange:J,children:t(se.div,{dir:We,...d,ref:ye,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":X+"px",...r.style}})})},"ScrollArea")),lRe="ScrollAreaViewport",cRe=F(yo(function(r,a){let{__scopeScrollArea:i,children:s,nonce:l,...c}=r,d=vc(lRe,i),m=y(null),g=_e(a,m,d.onViewportChange);return o(L,{children:[t(uRe,{nonce:l}),t(se.div,{"data-radix-scroll-area-viewport":"",...c,ref:g,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...r.style},children:t("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})},"ScrollAreaViewport")),uRe=Bn(yo(function({nonce:r}){return t("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r})},"ScrollAreaViewportStyle"),(e,r)=>e.nonce===r.nonce),_m="ScrollAreaScrollbar",dRe=F(yo(function(r,a){let{forceMount:i,...s}=r,l=vc(_m,r.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:d}=l,m=r.orientation==="horizontal";return h(()=>(m?c(!0):d(!0),()=>{m?c(!1):d(!1)}),[m,c,d]),l.type==="hover"?t(ZRe,{...s,ref:a,forceMount:i}):l.type==="scroll"?t(pRe,{...s,ref:a,forceMount:i}):l.type==="auto"?t(lfe,{...s,ref:a,forceMount:i}):l.type==="always"?t(dq,{...s,ref:a,"data-state":"visible"}):null},"ScrollAreaScrollbar")),ZRe=F(yo(function(r,a){let{forceMount:i,...s}=r,l=vc(_m,r.__scopeScrollArea),[c,d]=u(!1);return h(()=>{let m=l.scrollArea,g=0;if(m){let x=yo(()=>{window.clearTimeout(g),d(!0)},"handlePointerEnter"),v=yo(()=>{g=window.setTimeout(()=>d(!1),l.scrollHideDelay)},"handlePointerLeave");return m.addEventListener("pointerenter",x),m.addEventListener("pointerleave",v),()=>{window.clearTimeout(g),m.removeEventListener("pointerenter",x),m.removeEventListener("pointerleave",v)}}},[l.scrollArea,l.scrollHideDelay]),t(ar,{present:i||c,children:t(lfe,{"data-state":c?"visible":"hidden",...s,ref:a})})},"ScrollAreaScrollbarHover")),pRe=F(yo(function(r,a){let{forceMount:i,...s}=r,l=vc(_m,r.__scopeScrollArea),c=r.orientation==="horizontal",d=q2(()=>g("SCROLL_END"),100),[m,g]=ife("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h(()=>{if(m==="idle"){let x=window.setTimeout(()=>g("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(x)}},[m,l.scrollHideDelay,g]),h(()=>{let x=l.viewport,v=c?"scrollLeft":"scrollTop";if(x){let b=x[v],_=yo(()=>{let z=x[v];if(b!==z)g("SCROLL"),d();b=z},"handleScroll");return x.addEventListener("scroll",_),()=>x.removeEventListener("scroll",_)}},[l.viewport,c,g,d]),t(ar,{present:i||m!=="hidden",children:t(dq,{"data-state":m==="hidden"?"hidden":"visible",...s,ref:a,onPointerEnter:Y(r.onPointerEnter,()=>g("POINTER_ENTER")),onPointerLeave:Y(r.onPointerLeave,()=>g("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),lfe=F(yo(function(r,a){let i=vc(_m,r.__scopeScrollArea),{forceMount:s,...l}=r,[c,d]=u(!1),m=r.orientation==="horizontal",g=q2(()=>{if(i.viewport){let x=i.viewport.offsetWidth<i.viewport.scrollWidth,v=i.viewport.offsetHeight<i.viewport.scrollHeight;d(m?x:v)}},10);return Yz(i.viewport,g),Yz(i.content,g),t(ar,{present:s||c,children:t(dq,{"data-state":c?"visible":"hidden",...l,ref:a})})},"ScrollAreaScrollbarAuto")),dq=F(yo(function(r,a){let{orientation:i="vertical",...s}=r,l=vc(_m,r.__scopeScrollArea),c=y(null),d=y(0),[m,g]=u({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),x=Zq(m.viewport,m.content),v={...s,sizes:m,onSizesChange:g,hasThumb:Boolean(x>0&&x<1),onThumbChange:yo((_)=>c.current=_,"onThumbChange"),onThumbPointerUp:yo(()=>d.current=0,"onThumbPointerUp"),onThumbPointerDown:yo((_)=>d.current=_,"onThumbPointerDown")};function b(_,z){return Zfe(_,d.current,m,z)}if(yo(b,"getScrollPosition"),i==="horizontal")return t(mRe,{...v,ref:a,onThumbPositionChange:()=>{if(l.viewport&&c.current){let _=l.viewport.scrollLeft,z=uq(_,m,l.dir);c.current.style.transform=`translate3d(${z}px, 0, 0)`}},onWheelScroll:(_)=>{if(l.viewport)l.viewport.scrollLeft=_},onDragScroll:(_)=>{if(l.viewport)l.viewport.scrollLeft=b(_,l.dir)}});if(i==="vertical")return t(hRe,{...v,ref:a,onThumbPositionChange:()=>{if(l.viewport&&c.current){let _=l.viewport.scrollTop,z=uq(_,m);c.current.style.transform=`translate3d(0, ${z}px, 0)`}},onWheelScroll:(_)=>{if(l.viewport)l.viewport.scrollTop=_},onDragScroll:(_)=>{if(l.viewport)l.viewport.scrollTop=b(_)}});return null},"ScrollAreaScrollbarVisible")),mRe=F(yo(function(r,a){let{sizes:i,onSizesChange:s,...l}=r,c=vc(_m,r.__scopeScrollArea),[d,m]=u(),g=y(null),x=_e(a,g,c.onScrollbarXChange);return h(()=>{if(g.current)m(getComputedStyle(g.current))},[g]),t(ufe,{"data-orientation":"horizontal",...l,ref:x,sizes:i,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y2(i)+"px",...r.style},onThumbPointerDown:(v)=>r.onThumbPointerDown(v.x),onDragScroll:(v)=>r.onDragScroll(v.x),onWheelScroll:(v,b)=>{if(c.viewport){let _=c.viewport.scrollLeft+v.deltaX;if(r.onWheelScroll(_),mq(_,b))v.preventDefault()}},onResize:()=>{if(g.current&&c.viewport&&d)s({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:g.current.clientWidth,paddingStart:U2(d.paddingLeft),paddingEnd:U2(d.paddingRight)}})}})},"ScrollAreaScrollbarX")),hRe=F(yo(function(r,a){let{sizes:i,onSizesChange:s,...l}=r,c=vc(_m,r.__scopeScrollArea),[d,m]=u(),g=y(null),x=_e(a,g,c.onScrollbarYChange);return h(()=>{if(g.current)m(getComputedStyle(g.current))},[g]),t(ufe,{"data-orientation":"vertical",...l,ref:x,sizes:i,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y2(i)+"px",...r.style},onThumbPointerDown:(v)=>r.onThumbPointerDown(v.y),onDragScroll:(v)=>r.onDragScroll(v.y),onWheelScroll:(v,b)=>{if(c.viewport){let _=c.viewport.scrollTop+v.deltaY;if(r.onWheelScroll(_),mq(_,b))v.preventDefault()}},onResize:()=>{if(g.current&&c.viewport&&d)s({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:g.current.clientHeight,paddingStart:U2(d.paddingTop),paddingEnd:U2(d.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[gRe,cfe]=sfe(_m),ufe=F(yo(function(r,a){let{__scopeScrollArea:i,sizes:s,hasThumb:l,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:m,onThumbPositionChange:g,onDragScroll:x,onWheelScroll:v,onResize:b,..._}=r,z=vc(_m,i),[k,U]=u(null),P=_e(a,U),T=y(null),G=y(""),X=z.viewport,J=s.content-s.viewport,ee=Qo(v),re=Qo(g),oe=q2(b,10);function ie(ye){if(T.current){let We=ye.clientX-T.current.left,Ye=ye.clientY-T.current.top;x({x:We,y:Ye})}}return yo(ie,"handleDragScroll"),h(()=>{let ye=yo((We)=>{let Ye=We.target;if(k?.contains(Ye))ee(We,J)},"handleWheel");return document.addEventListener("wheel",ye,{passive:!1}),()=>document.removeEventListener("wheel",ye,{passive:!1})},[X,k,J,ee]),h(re,[s,re]),Yz(k,oe),Yz(z.content,oe),t(gRe,{scope:i,scrollbar:k,hasThumb:l,onThumbChange:Qo(c),onThumbPointerUp:Qo(d),onThumbPositionChange:re,onThumbPointerDown:Qo(m),children:t(se.div,{..._,ref:P,style:{position:"absolute",..._.style},onPointerDown:Y(r.onPointerDown,(ye)=>{if(ye.button===0){if(ye.target.setPointerCapture(ye.pointerId),T.current=k.getBoundingClientRect(),G.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",z.viewport)z.viewport.style.scrollBehavior="auto";ie(ye)}}),onPointerMove:Y(r.onPointerMove,ie),onPointerUp:Y(r.onPointerUp,(ye)=>{let We=ye.target;if(We.hasPointerCapture(ye.pointerId))We.releasePointerCapture(ye.pointerId);if(document.body.style.webkitUserSelect=G.current,z.viewport)z.viewport.style.scrollBehavior="";T.current=null})})})},"ScrollAreaScrollbarImpl")),cq="ScrollAreaThumb",MRe=F(yo(function(r,a){let{forceMount:i,...s}=r,l=cfe(cq,r.__scopeScrollArea);return t(ar,{present:i||l.hasThumb,children:t(xRe,{ref:a,...s})})},"ScrollAreaThumb")),xRe=F(yo(function(r,a){let{__scopeScrollArea:i,style:s,...l}=r,c=vc(cq,i),d=cfe(cq,i),{onThumbPositionChange:m}=d,g=_e(a,d.onThumbChange),x=y(void 0),v=q2(()=>{if(x.current)x.current(),x.current=void 0},100);return h(()=>{let b=c.viewport;if(b){let _=yo(()=>{if(v(),!x.current){let z=_Re(b,m);x.current=z,m()}},"handleScroll");return m(),b.addEventListener("scroll",_),()=>b.removeEventListener("scroll",_)}},[c.viewport,v,m]),t(se.div,{"data-state":d.hasThumb?"visible":"hidden",...l,ref:g,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Y(r.onPointerDownCapture,(b)=>{let z=b.target.getBoundingClientRect(),k=b.clientX-z.left,U=b.clientY-z.top;d.onThumbPointerDown({x:k,y:U})}),onPointerUp:Y(r.onPointerUp,d.onThumbPointerUp)})},"ScrollAreaThumbImpl")),dfe="ScrollAreaCorner",vRe=F(yo(function(r,a){let i=vc(dfe,r.__scopeScrollArea),s=Boolean(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?t(yRe,{...r,ref:a}):null},"ScrollAreaCorner")),yRe=F(yo(function(r,a){let{__scopeScrollArea:i,...s}=r,l=vc(dfe,i),[c,d]=u(0),[m,g]=u(0),x=Boolean(c&&m),{onCornerWidthChange:v,onCornerHeightChange:b}=l;return Yz(l.scrollbarX,()=>{let _=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(_),g(_)}),Yz(l.scrollbarY,()=>{let _=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(_),d(_)}),h(()=>()=>{v(0),b(0)},[v,b]),x?t(se.div,{...s,ref:a,style:{width:c,height:m,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null},"ScrollAreaCornerImpl"));function U2(e){return e?parseInt(e,10):0}yo(U2,"toInt");function Zq(e,r){let a=e/r;return isNaN(a)?0:a}yo(Zq,"getThumbRatio");function Y2(e){let r=Zq(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-a)*r;return Math.max(i,18)}yo(Y2,"getThumbSize");function Zfe(e,r,a,i="ltr"){let s=Y2(a),l=s/2,c=r||l,d=s-c,m=a.scrollbar.paddingStart+c,g=a.scrollbar.size-a.scrollbar.paddingEnd-d,x=a.content-a.viewport,v=i==="ltr"?[0,x]:[x*-1,0];return pq([m,g],v)(e)}yo(Zfe,"getScrollPositionFromPointer");function uq(e,r,a="ltr"){let i=Y2(r),s=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-s,c=r.content-r.viewport,d=l-i,m=a==="ltr"?[0,c]:[c*-1,0],g=Ai(e,m);return pq([0,c],[0,d])(g)}yo(uq,"getThumbOffsetFromScroll");function pq(e,r){return(a)=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let i=(r[1]-r[0])/(e[1]-e[0]);return r[0]+i*(a-e[0])}}yo(pq,"linearScale");function mq(e,r){return e>0&&e<r}yo(mq,"isScrollingWithinScrollbarBounds");var _Re=yo((e,r=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},i=0;return yo(function s(){let l={left:e.scrollLeft,top:e.scrollTop},c=a.left!==l.left,d=a.top!==l.top;if(c||d)r();a=l,i=window.requestAnimationFrame(s)},"loop")(),()=>window.cancelAnimationFrame(i)},"addUnlinkedScrollListener");function q2(e,r){let a=Qo(e),i=y(0);return h(()=>()=>window.clearTimeout(i.current),[]),D(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(a,r)},[a,r])}yo(q2,"useDebounceCallback");function Yz(e,r){let a=Qo(r);Rt(()=>{let i=0;if(e){let s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(a)});return s.observe(e),()=>{window.cancelAnimationFrame(i),s.unobserve(e)}}},[e,a])}yo(Yz,"useResizeObserver");var bRe=sRe,wRe=cRe;var zRe=vRe;S();S();var SRe=Object.defineProperty,LRe=(e,r)=>SRe(e,"name",{value:r,configurable:!0});function Pc(e){let r=y({value:e,previous:e});return N(()=>{if(r.current.value!==e)r.current.previous=r.current.value,r.current.value=e;return r.current.previous},[e])}LRe(Pc,"usePrevious");S();var kRe=Object.defineProperty,CRe=(e,r)=>kRe(e,"name",{value:r,configurable:!0}),hq=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"}),IRe=F(CRe(function(r,a){return t(se.span,{...r,ref:a,style:{...hq,...r.style}})},"VisuallyHidden")),mfe=IRe;var PRe=Object.defineProperty,To=(e,r)=>PRe(e,"name",{value:r,configurable:!0}),TRe=[" ","Enter","ArrowUp","ArrowDown"],ARe=[" ","Enter"],D1="Select",[k4,C4,ERe]=hi(D1),[Hz,rJo]=mt(D1,[ERe,xc]),Mq=xc(),[DRe,h8]=Hz(D1),[ORe,NRe]=Hz(D1);function vfe(e){let{__scopeSelect:r,children:a,open:i,defaultOpen:s,onOpenChange:l,value:c,defaultValue:d,onValueChange:m,dir:g,name:x,autoComplete:v,disabled:b,required:_,form:z,internal_do_not_use_render:k}=e,U=Mq(r),[P,T]=u(null),[G,X]=u(null),[J,ee]=u(!1),re=Hn(g),[oe,ie]=Lt({prop:i,defaultProp:s??!1,onChange:l,caller:D1}),[ye,We]=Lt({prop:c,defaultProp:d,onChange:m,caller:D1}),Ye=y(null),Se=y(ye);h(()=>{let Wt=z?P?.ownerDocument.getElementById(z):P?.form;if(Wt instanceof HTMLFormElement){let Fe=To(()=>We(Se.current),"reset");return Wt.addEventListener("reset",Fe),()=>Wt.removeEventListener("reset",Fe)}},[z,P,We]);let He=P?!!z||!!P.closest("form"):!0,[dt,Ge]=u(new Set),yt=Er(),Ft=Array.from(dt).map((Wt)=>Wt.props.value).join(";"),Bt=D((Wt)=>{Ge((Fe)=>new Set(Fe).add(Wt))},[]),de=D((Wt)=>{Ge((Fe)=>{let fr=new Set(Fe);return fr.delete(Wt),fr})},[]),_t={required:_,trigger:P,onTriggerChange:T,valueNode:G,onValueNodeChange:X,valueNodeHasChildren:J,onValueNodeHasChildrenChange:ee,contentId:yt,value:ye,onValueChange:We,open:oe,onOpenChange:ie,dir:re,triggerPointerDownPosRef:Ye,disabled:b,name:x,autoComplete:v,form:z,nativeOptions:dt,nativeSelectKey:Ft,isFormControl:He};return t(vm,{...U,children:t(DRe,{scope:r,..._t,children:t(k4.Provider,{scope:r,children:t(ORe,{scope:r,onNativeOptionAdd:Bt,onNativeOptionRemove:de,children:wfe(k)?k(_t):a})})})})}To(vfe,"SelectProvider");var FRe=To((e)=>{let{__scopeSelect:r,children:a,...i}=e;return t(vfe,{__scopeSelect:r,...i,internal_do_not_use_render:({isFormControl:s})=>o(L,{children:[a,s?t(uPe,{__scopeSelect:r}):null]})})},"Select"),jRe="SelectTrigger",BRe=F(To(function(r,a){let{__scopeSelect:i,disabled:s=!1,...l}=r,c=Mq(i),d=h8(jRe,i),m=d.disabled||s,g=_e(a,d.onTriggerChange),x=C4(i),v=y("touch"),[b,_,z]=vq((U)=>{let P=x().filter((X)=>!X.disabled),T=P.find((X)=>X.value===d.value),G=yq(P,U,T);if(G!==void 0)d.onValueChange(G.value)}),k=To((U)=>{if(!m)d.onOpenChange(!0),z();if(U)d.triggerPointerDownPosRef.current={x:Math.round(U.pageX),y:Math.round(U.pageY)}},"handleOpen");return t(d8,{asChild:!0,...c,children:t(se.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":H2(d.value)?"":void 0,...l,ref:g,onClick:Y(l.onClick,(U)=>{if(U.currentTarget.focus(),v.current!=="mouse")k(U)}),onPointerDown:Y(l.onPointerDown,(U)=>{v.current=U.pointerType;let P=U.target;if(P.hasPointerCapture(U.pointerId))P.releasePointerCapture(U.pointerId);if(U.button===0&&U.ctrlKey===!1&&U.pointerType==="mouse")k(U),U.preventDefault()}),onKeyDown:Y(l.onKeyDown,(U)=>{let P=b.current!=="";if(!(U.ctrlKey||U.altKey||U.metaKey)&&U.key.length===1)_(U.key);if(P&&U.key===" ")return;if(TRe.includes(U.key))k(),U.preventDefault()})})})},"SelectTrigger")),URe="SelectValue",YRe=F(To(function(r,a){let{__scopeSelect:i,className:s,style:l,children:c,placeholder:d="",...m}=r,g=h8(URe,i),{onValueNodeHasChildrenChange:x}=g,v=c!==void 0,b=_e(a,g.onValueNodeChange);Rt(()=>{x(v)},[x,v]);let _=H2(g.value);return t(se.span,{...m,asChild:_?!1:m.asChild,ref:b,style:{pointerEvents:"none"},children:t(Cn,{children:_?d:c},_?"placeholder":"value")})},"SelectValue")),qRe=F(To(function(r,a){let{__scopeSelect:i,children:s,...l}=r;return t(se.span,{"aria-hidden":!0,...l,ref:a,children:s||"▼"})},"SelectIcon")),HRe="SelectPortal",[VRe,WRe]=Hz(HRe,{forceMount:void 0}),KRe=To((e)=>{let{__scopeSelect:r,forceMount:a,...i}=e;return t(VRe,{scope:e.__scopeSelect,forceMount:a,children:t(fZ,{asChild:!0,...i})})},"SelectPortal"),qz="SelectContent",GRe=F(To(function(r,a){let i=WRe(qz,r.__scopeSelect),{forceMount:s=i.forceMount,...l}=r,c=h8(qz,r.__scopeSelect),[d,m]=u();return Rt(()=>{m(new DocumentFragment)},[]),t(ar,{present:s||c.open,children:({present:g})=>g?t(JRe,{...l,ref:a}):t(XRe,{...l,fragment:d})})},"SelectContent")),XRe=F(To(function(r,a){let{__scopeSelect:i,children:s,fragment:l}=r;if(!l)return null;return Ji(t(yfe,{scope:i,children:t(k4.Slot,{scope:i,children:t("div",{ref:a,children:s})})}),l)},"SelectContentFragment")),gu=10,[yfe,Vz]=Hz(qz),QRe=Di("SelectContent.RemoveScroll"),JRe=F(To(function(r,a){let{__scopeSelect:i}=r,{position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,side:m,sideOffset:g,align:x,alignOffset:v,arrowPadding:b,collisionBoundary:_,collisionPadding:z,sticky:k,hideWhenDetached:U,avoidCollisions:P,...T}=r,G=h8(qz,i),[X,J]=u(null),[ee,re]=u(null),oe=_e(a,J),[ie,ye]=u(null),[We,Ye]=u(null),Se=C4(i),[He,dt]=u(!1),Ge=y(!1);h(()=>{if(X)return c8(X)},[X]),sZ();let yt=D((Kt)=>{let[Xt,...Ir]=Se().map((Zr)=>Zr.ref.current),[wr]=Ir.slice(-1),Tr=document.activeElement;for(let Zr of Kt){if(Zr===Tr)return;if(Zr?.scrollIntoView({block:"nearest"}),Zr===Xt&&ee)ee.scrollTop=0;if(Zr===wr&&ee)ee.scrollTop=ee.scrollHeight;if(Zr?.focus(),document.activeElement!==Tr)return}},[Se,ee]),Ft=D(()=>yt([ie,X]),[yt,ie,X]);h(()=>{if(He)Ft()},[He,Ft]);let{onOpenChange:Bt,triggerPointerDownPosRef:de}=G;h(()=>{if(X){let Kt={x:0,y:0},Xt=To((wr)=>{Kt={x:Math.abs(Math.round(wr.pageX)-(de.current?.x??0)),y:Math.abs(Math.round(wr.pageY)-(de.current?.y??0))}},"handlePointerMove"),Ir=To((wr)=>{if(Kt.x<=10&&Kt.y<=10)wr.preventDefault();else if(!wr.composedPath().includes(X))Bt(!1);document.removeEventListener("pointermove",Xt),de.current=null},"handlePointerUp");if(de.current!==null)document.addEventListener("pointermove",Xt),document.addEventListener("pointerup",Ir,{capture:!0,once:!0});return()=>{document.removeEventListener("pointermove",Xt),document.removeEventListener("pointerup",Ir,{capture:!0})}}},[X,Bt,de]),h(()=>{let Kt=To(()=>Bt(!1),"close");return window.addEventListener("blur",Kt),window.addEventListener("resize",Kt),()=>{window.removeEventListener("blur",Kt),window.removeEventListener("resize",Kt)}},[Bt]);let[_t,Wt]=vq((Kt)=>{let Xt=Se().filter((Tr)=>!Tr.disabled),Ir=Xt.find((Tr)=>Tr.ref.current===document.activeElement),wr=yq(Xt,Kt,Ir);if(wr)setTimeout(()=>wr.ref.current?.focus())}),Fe=D((Kt,Xt,Ir)=>{let wr=!Ge.current&&!Ir;if(G.value!==void 0&&G.value===Xt||wr){if(ye(Kt),wr)Ge.current=!0}},[G.value]),fr=D(()=>X?.focus(),[X]),sr=D((Kt,Xt,Ir)=>{let wr=!Ge.current&&!Ir;if(G.value!==void 0&&G.value===Xt||wr)Ye(Kt)},[G.value]),Jt=s==="popper"?hfe:$Re,Fr=Jt===hfe?{side:m,sideOffset:g,align:x,alignOffset:v,arrowPadding:b,collisionBoundary:_,collisionPadding:z,sticky:k,hideWhenDetached:U,avoidCollisions:P}:{};return t(yfe,{scope:i,content:X,viewport:ee,onViewportChange:re,itemRefCallback:Fe,selectedItem:ie,onItemLeave:fr,itemTextRefCallback:sr,focusSelectedItem:Ft,selectedItemText:We,position:s,isPositioned:He,searchRef:_t,children:t(fm,{as:QRe,allowPinchZoom:!0,children:t(l8,{asChild:!0,trapped:G.open,onMountAutoFocus:(Kt)=>{Kt.preventDefault()},onUnmountAutoFocus:Y(l,(Kt)=>{G.trigger?.focus({preventScroll:!0}),Kt.preventDefault()}),children:t(iZ,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:(Kt)=>Kt.preventDefault(),onDismiss:()=>G.onOpenChange(!1),children:t(Jt,{role:"listbox",id:G.contentId,"data-state":G.open?"open":"closed",dir:G.dir,onContextMenu:(Kt)=>Kt.preventDefault(),...T,...Fr,onPlaced:()=>dt(!0),ref:oe,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Y(T.onKeyDown,(Kt)=>{let Xt=Kt.ctrlKey||Kt.altKey||Kt.metaKey;if(Kt.key==="Tab")Kt.preventDefault();if(!Xt&&Kt.key.length===1)Wt(Kt.key);if(["ArrowUp","ArrowDown","Home","End"].includes(Kt.key)){let wr=Se().filter((Tr)=>!Tr.disabled).map((Tr)=>Tr.ref.current);if(["ArrowUp","End"].includes(Kt.key))wr=wr.slice().reverse();if(["ArrowUp","ArrowDown"].includes(Kt.key)){let Tr=Kt.target,Zr=wr.indexOf(Tr);wr=wr.slice(Zr+1)}setTimeout(()=>yt(wr)),Kt.preventDefault()}})})})})})})},"SelectContentImpl")),$Re=F(To(function(r,a){let{__scopeSelect:i,onPlaced:s,...l}=r,c=h8(qz,i),d=Vz(qz,i),[m,g]=u(null),[x,v]=u(null),b=_e(a,v),_=C4(i),z=y(!1),k=y(!0),{viewport:U,selectedItem:P,selectedItemText:T,focusSelectedItem:G}=d,X=D(()=>{if(c.trigger&&c.valueNode&&m&&x&&U&&P&&T){let oe=c.trigger.getBoundingClientRect(),ie=x.getBoundingClientRect(),ye=c.valueNode.getBoundingClientRect(),We=T.getBoundingClientRect();if(c.dir!=="rtl"){let Tr=We.left-ie.left,Zr=ye.left-Tr,co=oe.left-Zr,io=oe.width+co,xa=Math.max(io,ie.width),cr=window.innerWidth-gu,uo=Ai(Zr,[gu,Math.max(gu,cr-xa)]);m.style.minWidth=io+"px",m.style.left=uo+"px"}else{let Tr=ie.right-We.right,Zr=window.innerWidth-ye.right-Tr,co=window.innerWidth-oe.right-Zr,io=oe.width+co,xa=Math.max(io,ie.width),cr=window.innerWidth-gu,uo=Ai(Zr,[gu,Math.max(gu,cr-xa)]);m.style.minWidth=io+"px",m.style.right=uo+"px"}let Ye=_(),Se=window.innerHeight-gu*2,He=U.scrollHeight,dt=window.getComputedStyle(x),Ge=parseInt(dt.borderTopWidth,10),yt=parseInt(dt.paddingTop,10),Ft=parseInt(dt.borderBottomWidth,10),Bt=parseInt(dt.paddingBottom,10),de=Ge+yt+He+Bt+Ft,_t=Math.min(P.offsetHeight*5,de),Wt=window.getComputedStyle(U),Fe=parseInt(Wt.paddingTop,10),fr=parseInt(Wt.paddingBottom,10),sr=oe.top+oe.height/2-gu,Jt=Se-sr,Fr=P.offsetHeight/2,Kt=P.offsetTop+Fr,Xt=Ge+yt+Kt,Ir=de-Xt;if(Xt<=sr){let Tr=Ye.length>0&&P===Ye[Ye.length-1].ref.current;m.style.bottom="0px";let Zr=x.clientHeight-U.offsetTop-U.offsetHeight,co=Math.max(Jt,Fr+(Tr?fr:0)+Zr+Ft),io=Xt+co;m.style.height=io+"px"}else{let Tr=Ye.length>0&&P===Ye[0].ref.current;m.style.top="0px";let co=Math.max(sr,Ge+U.offsetTop+(Tr?Fe:0)+Fr)+Ir;m.style.height=co+"px",U.scrollTop=Xt-sr+U.offsetTop}m.style.margin=`${gu}px 0`,m.style.minHeight=_t+"px",m.style.maxHeight=Se+"px",s?.(),requestAnimationFrame(()=>z.current=!0)}},[_,c.trigger,c.valueNode,m,x,U,P,T,c.dir,s]);Rt(()=>X(),[X]);let[J,ee]=u();Rt(()=>{if(x)ee(window.getComputedStyle(x).zIndex)},[x]);let re=D((oe)=>{if(oe&&k.current===!0)X(),G?.(),k.current=!1},[X,G]);return t(ePe,{scope:i,contentWrapper:m,shouldExpandOnScrollRef:z,onScrollButtonChange:re,children:t("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:J},children:t(se.div,{...l,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),hfe=F(To(function(r,a){let{__scopeSelect:i,align:s="start",collisionPadding:l=gu,...c}=r,d=Mq(i);return t(Z8,{...d,...c,ref:a,align:s,collisionPadding:l,style:{boxSizing:"border-box",...c.style,...{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}})},"SelectPopperPosition")),[ePe,xq]=Hz(qz,{}),gfe="SelectViewport",tPe=F(To(function(r,a){let{__scopeSelect:i,nonce:s,...l}=r,c=Vz(gfe,i),d=xq(gfe,i),m=_e(a,c.onViewportChange),g=y(0);return o(L,{children:[t("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),t(k4.Slot,{scope:i,children:t(se.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Y(l.onScroll,(x)=>{let v=x.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:_}=d;if(_?.current&&b){let z=Math.abs(g.current-v.scrollTop);if(z>0){let k=window.innerHeight-gu*2,U=parseFloat(b.style.minHeight),P=parseFloat(b.style.height),T=Math.max(U,P);if(T<k){let G=T+z,X=Math.min(k,G),J=G-X;if(b.style.height=X+"px",b.style.bottom==="0px")v.scrollTop=J>0?J:0,b.style.justifyContent="flex-end"}}}g.current=v.scrollTop})})})]})},"SelectViewport")),rPe="SelectGroup",[oJo,aJo]=Hz(rPe);var gq="SelectItem",[oPe,_fe]=Hz(gq),aPe=F(To(function(r,a){let{__scopeSelect:i,value:s,disabled:l=!1,textValue:c,...d}=r,m=h8(gq,i),g=Vz(gq,i),x=m.value===s,[v,b]=u(c??""),[_,z]=u(!1),k=Qo((X)=>g.itemRefCallback?.(X,s,l)),U=_e(a,k),P=Er(),T=y("touch"),G=To(()=>{if(!l)m.onValueChange(s),m.onOpenChange(!1)},"handleSelect");return t(oPe,{scope:i,value:s,disabled:l,textId:P,isSelected:x,onItemTextChange:D((X)=>{b((J)=>J||(X?.textContent??"").trim())},[]),children:t(k4.ItemSlot,{scope:i,value:s,disabled:l,textValue:v,children:t(se.div,{role:"option","aria-labelledby":P,"data-highlighted":_?"":void 0,"aria-selected":x&&_,"data-state":x?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:U,onFocus:Y(d.onFocus,()=>z(!0)),onBlur:Y(d.onBlur,()=>z(!1)),onClick:Y(d.onClick,()=>{if(T.current!=="mouse")G()}),onPointerUp:Y(d.onPointerUp,()=>{if(T.current==="mouse")G()}),onPointerDown:Y(d.onPointerDown,(X)=>{T.current=X.pointerType}),onPointerMove:Y(d.onPointerMove,(X)=>{if(T.current=X.pointerType,l)g.onItemLeave?.();else if(T.current==="mouse")X.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(d.onPointerLeave,(X)=>{if(X.currentTarget===document.activeElement)g.onItemLeave?.()}),onKeyDown:Y(d.onKeyDown,(X)=>{if(l||X.target!==X.currentTarget)return;if(g.searchRef?.current!==""&&X.key===" ")return;if(ARe.includes(X.key))G();if(X.key===" ")X.preventDefault()})})})})},"SelectItem")),L4="SelectItemText",nPe=F(To(function(r,a){let{__scopeSelect:i,className:s,style:l,...c}=r,d=h8(L4,i),m=Vz(L4,i),g=_fe(L4,i),x=NRe(L4,i),[v,b]=u(null),_=Qo((G)=>m.itemTextRefCallback?.(G,g.value,g.disabled)),z=_e(a,b,g.onItemTextChange,_),k=v?.textContent,U=N(()=>t("option",{value:g.value,disabled:g.disabled,children:k},g.value),[g.disabled,g.value,k]),{onNativeOptionAdd:P,onNativeOptionRemove:T}=x;return Rt(()=>(P(U),()=>T(U)),[P,T,U]),o(L,{children:[t(se.span,{id:g.textId,...c,ref:z}),g.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!H2(d.value)?Ji(c.children,d.valueNode):null]})},"SelectItemText")),iPe="SelectItemIndicator",fPe=F(To(function(r,a){let{__scopeSelect:i,...s}=r;return _fe(iPe,i).isSelected?t(se.span,{"aria-hidden":!0,...s,ref:a}):null},"SelectItemIndicator")),Mfe="SelectScrollUpButton",sPe=F(To(function(r,a){let i=Vz(Mfe,r.__scopeSelect),s=xq(Mfe,r.__scopeSelect),[l,c]=u(!1),d=_e(a,s.onScrollButtonChange);return Rt(()=>{if(i.viewport&&i.isPositioned){let g=function(){let v=x.scrollTop>0;c(v)};var m=g;To(g,"handleScroll");let x=i.viewport;return g(),x.addEventListener("scroll",g),()=>x.removeEventListener("scroll",g)}},[i.viewport,i.isPositioned]),l?t(bfe,{...r,ref:d,onAutoScroll:()=>{let{viewport:m,selectedItem:g}=i;if(m&&g)m.scrollTop=m.scrollTop-g.offsetHeight}}):null},"SelectScrollUpButton")),xfe="SelectScrollDownButton",lPe=F(To(function(r,a){let i=Vz(xfe,r.__scopeSelect),s=xq(xfe,r.__scopeSelect),[l,c]=u(!1),d=_e(a,s.onScrollButtonChange);return Rt(()=>{if(i.viewport&&i.isPositioned){let g=function(){let v=x.scrollHeight-x.clientHeight,b=Math.ceil(x.scrollTop)<v;c(b)};var m=g;To(g,"handleScroll");let x=i.viewport;return g(),x.addEventListener("scroll",g),()=>x.removeEventListener("scroll",g)}},[i.viewport,i.isPositioned]),l?t(bfe,{...r,ref:d,onAutoScroll:()=>{let{viewport:m,selectedItem:g}=i;if(m&&g)m.scrollTop=m.scrollTop+g.offsetHeight}}):null},"SelectScrollDownButton")),bfe=F(To(function(r,a){let{__scopeSelect:i,onAutoScroll:s,...l}=r,c=Vz("SelectScrollButton",i),d=y(null),m=C4(i),g=D(()=>{if(d.current!==null)window.clearInterval(d.current),d.current=null},[]);return h(()=>()=>g(),[g]),Rt(()=>{m().find((v)=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),t(se.div,{"aria-hidden":!0,...l,ref:a,style:{flexShrink:0,...l.style},onPointerDown:Y(l.onPointerDown,()=>{if(d.current===null)d.current=window.setInterval(s,50)}),onPointerMove:Y(l.onPointerMove,()=>{if(c.onItemLeave?.(),d.current===null)d.current=window.setInterval(s,50)}),onPointerLeave:Y(l.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl"));var cPe="SelectBubbleInput",uPe=F(To(function({__scopeSelect:r,...a},i){let s=h8(cPe,r),{value:l,onValueChange:c,required:d,disabled:m,name:g,autoComplete:x,form:v}=s,{nativeOptions:b,nativeSelectKey:_}=s,z=y(null),k=_e(i,z),U=l??"",P=Pc(U),T=Array.from(b).some((G)=>(G.props.value??"")==="");return h(()=>{let G=z.current;if(!G)return;let X=window.HTMLSelectElement.prototype,ee=Object.getOwnPropertyDescriptor(X,"value").set;if(P!==U&&ee){let re=new Event("change",{bubbles:!0});ee.call(G,U),G.dispatchEvent(re)}},[P,U]),o(se.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:g,autoComplete:x,disabled:m,form:v,onChange:(G)=>c(G.target.value),...a,style:{...hq,...a.style},ref:k,defaultValue:U,children:[H2(l)&&!T?t("option",{value:""}):null,Array.from(b)]},_)},"SelectBubbleInput"));function wfe(e){return typeof e==="function"}To(wfe,"isFunction");function H2(e){return e===""||e===void 0}To(H2,"shouldShowPlaceholder");function vq(e){let r=Qo(e),a=y(""),i=y(0),s=D((c)=>{let d=a.current+c;r(d),To(function m(g){if(a.current=g,window.clearTimeout(i.current),g!=="")i.current=window.setTimeout(()=>m(""),1000)},"updateSearch")(d)},[r]),l=D(()=>{a.current="",window.clearTimeout(i.current)},[]);return h(()=>()=>window.clearTimeout(i.current),[]),[a,s,l]}To(vq,"useTypeaheadSearch");function yq(e,r,a){let s=r.length>1&&Array.from(r).every((g)=>g===r[0])?r[0]:r,l=a?e.indexOf(a):-1,c=zfe(e,Math.max(l,0));if(s.length===1)c=c.filter((g)=>g!==a);let m=c.find((g)=>g.textValue.toLowerCase().startsWith(s.toLowerCase()));return m!==a?m:void 0}To(yq,"findNextItem");function zfe(e,r){return e.map((a,i)=>e[(r+i)%e.length])}To(zfe,"wrapArray");S();var dPe=Object.defineProperty,kfe=(e,r)=>dPe(e,"name",{value:r,configurable:!0}),Lfe="horizontal",ZPe=["horizontal","vertical"],pPe=F(kfe(function(r,a){let{decorative:i,orientation:s=Lfe,...l}=r,c=Cfe(s)?s:Lfe,m=i?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return t(se.div,{"data-orientation":c,...m,...l,ref:a})},"Separator"));function Cfe(e){return ZPe.includes(e)}kfe(Cfe,"isValidOrientation");var mPe=pPe;S();var hPe=Object.defineProperty,g8=(e,r)=>hPe(e,"name",{value:r,configurable:!0}),_q="Switch",[gPe,pJo]=mt(_q),[MPe,bq]=gPe(_q);function Rfe(e){let{__scopeSwitch:r,checked:a,children:i,defaultChecked:s,disabled:l,form:c,name:d,onCheckedChange:m,required:g,value:x="on",internal_do_not_use_render:v}=e,[b,_]=Lt({prop:a,defaultProp:s??!1,onChange:m,caller:_q}),[z,k]=u(null),[U,P]=u(null),T=y(!1),[G,X]=tn((re)=>re+1,0),J=z?!!c||!!z.closest("form"):!0,ee={checked:b,setChecked:_,disabled:l,control:z,setControl:k,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:T,userInteractionCount:G,onUserInteraction:X,required:g,defaultChecked:s,isFormControl:J,bubbleInput:U,setBubbleInput:P};return t(MPe,{scope:r,...ee,children:Pfe(v)?v(ee):i})}g8(Rfe,"SwitchProvider");var xPe="SwitchTrigger",vPe=F(g8(function({__scopeSwitch:r,onClick:a,...i},s){let{control:l,form:c,value:d,disabled:m,checked:g,required:x,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:_,onUserInteraction:z,isFormControl:k,bubbleInput:U}=bq(xPe,r),P=_e(s,v),T=y(g);return h(()=>{let G=c?l?.ownerDocument.getElementById(c):l?.form;if(G instanceof HTMLFormElement){let X=g8(()=>b(T.current),"reset");return G.addEventListener("reset",X),()=>G.removeEventListener("reset",X)}},[l,c,b]),t(se.button,{type:"button",role:"switch","aria-checked":g,"aria-required":x,"data-state":wq(g),"data-disabled":m?"":void 0,disabled:m,value:d,...i,ref:P,onClick:Y(a,(G)=>{if(z(),b((X)=>!X),U&&k){if(_.current=G.isPropagationStopped(),!_.current)G.stopPropagation()}})})},"SwitchTrigger")),yPe=F(g8(function(r,a){let{__scopeSwitch:i,name:s,checked:l,defaultChecked:c,required:d,disabled:m,value:g,onCheckedChange:x,form:v,...b}=r;return t(Rfe,{__scopeSwitch:i,checked:l,defaultChecked:c,disabled:m,required:d,onCheckedChange:x,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:_})=>o(L,{children:[t(vPe,{...b,ref:a,__scopeSwitch:i}),_&&t(zPe,{__scopeSwitch:i})]})})},"Switch")),_Pe="SwitchThumb",bPe=F(g8(function(r,a){let{__scopeSwitch:i,...s}=r,l=bq(_Pe,i);return t(se.span,{"data-state":wq(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:a})},"SwitchThumb")),wPe="SwitchBubbleInput",zPe=F(g8(function({__scopeSwitch:r,onClick:a,...i},s){let{control:l,hasConsumerStoppedPropagationRef:c,userInteractionCount:d,checked:m,defaultChecked:g,required:x,disabled:v,name:b,value:_,form:z,bubbleInput:k,setBubbleInput:U}=bq(wPe,r),P=_e(s,U),T=mi(l),G=y(!1),X=y(m),J=y(d);h(()=>{let re=k;if(!re)return;let oe=window.HTMLInputElement.prototype,ye=Object.getOwnPropertyDescriptor(oe,"checked").set,We=d!==J.current;J.current=d;let Ye=X.current!==m;X.current=m;let Se=!(We&&c.current);if(Ye&&ye){G.current=!We;let He=new Event("click",{bubbles:Se});ye.call(re,m),re.dispatchEvent(He),G.current=!1}},[k,m,c,d]);let ee=y(m);return t(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??ee.current,required:x,disabled:v,name:b,value:_,form:z,...i,tabIndex:-1,ref:P,onClick:Y(a,(re)=>{if(G.current)re.stopPropagation()}),style:{...i.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function Pfe(e){return typeof e==="function"}g8(Pfe,"isFunction");function wq(e){return e?"checked":"unchecked"}g8(wq,"getState");S();var SPe=Object.defineProperty,O1=(e,r)=>SPe(e,"name",{value:r,configurable:!0}),zq="Tabs",[LPe,wJo]=mt(zq,[gi]),Afe=gi(),[kPe,Sq]=LPe(zq),CPe=F(O1(function(r,a){let{__scopeTabs:i,value:s,onValueChange:l,defaultValue:c,orientation:d="horizontal",dir:m,activationMode:g="automatic",...x}=r,v=Hn(m),[b,_]=Lt({prop:s,onChange:l,defaultProp:c??"",caller:zq});return t(kPe,{scope:i,baseId:Er(),value:b,onValueChange:_,orientation:d,dir:v,activationMode:g,children:t(se.div,{dir:v,"data-orientation":d,...x,ref:a})})},"Tabs")),IPe="TabsList",RPe=F(O1(function(r,a){let{__scopeTabs:i,loop:s=!0,...l}=r,c=Sq(IPe,i),d=Afe(i);return t(gl,{asChild:!0,...d,orientation:c.orientation,dir:c.dir,loop:s,children:t(se.div,{role:"tablist","aria-orientation":c.orientation,...l,ref:a})})},"TabsList")),PPe="TabsTrigger",TPe=F(O1(function(r,a){let{__scopeTabs:i,value:s,disabled:l=!1,...c}=r,d=Sq(PPe,i),m=Afe(i),g=Lq(d.baseId,s),x=kq(d.baseId,s),v=s===d.value;return t(Al,{asChild:!0,...m,focusable:!l,active:v,children:t(se.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":x,"data-state":v?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:g,...c,ref:a,onMouseDown:Y(r.onMouseDown,(b)=>{if(!l&&b.button===0&&b.ctrlKey===!1)d.onValueChange(s);else b.preventDefault()}),onKeyDown:Y(r.onKeyDown,(b)=>{if(l||b.target!==b.currentTarget)return;if([" ","Enter"].includes(b.key))d.onValueChange(s)}),onFocus:Y(r.onFocus,()=>{let b=d.activationMode!=="manual";if(!v&&!l&&b)d.onValueChange(s)})})})},"TabsTrigger")),APe="TabsContent",EPe=F(O1(function(r,a){let{__scopeTabs:i,value:s,forceMount:l,children:c,...d}=r,m=Sq(APe,i),g=Lq(m.baseId,s),x=kq(m.baseId,s),v=s===m.value,b=y(v);return h(()=>{let _=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(_)},[]),t(ar,{present:l||v,children:({present:_})=>t(se.div,{"data-state":v?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":g,hidden:!_,id:x,tabIndex:0,...d,ref:a,style:{...r.style,animationDuration:b.current?"0s":void 0},children:_&&c})})},"TabsContent"));function Lq(e,r){return`${e}-trigger-${r}`}O1(Lq,"makeTriggerId");function kq(e,r){return`${e}-content-${r}`}O1(kq,"makeContentId");var DPe=CPe,OPe=RPe,NPe=TPe,FPe=EPe;S();var jPe=Object.defineProperty,ki=(e,r)=>jPe(e,"name",{value:r,configurable:!0}),[Rq,NJo]=mt("Tooltip",[xc]),I4=xc(),BPe="TooltipProvider",UPe=700,Cq="tooltip.open",[YPe,Pq]=Rq(BPe),qPe=ki((e)=>{let{__scopeTooltip:r,delayDuration:a=UPe,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:l}=e,c=y(!0),d=y(!1),m=y(0);return h(()=>{let g=m.current;return()=>window.clearTimeout(g)},[]),t(YPe,{scope:r,isOpenDelayedRef:c,delayDuration:a,onOpen:D(()=>{if(i<=0)return;window.clearTimeout(m.current),c.current=!1},[i]),onClose:D(()=>{if(i<=0)return;window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:D((g)=>{d.current=g},[]),disableHoverableContent:s,children:l})},"TooltipProvider"),Iq="Tooltip",[HPe,W2]=Rq(Iq),VPe=ki((e)=>{let{__scopeTooltip:r,children:a,open:i,defaultOpen:s,onOpenChange:l,disableHoverableContent:c,delayDuration:d}=e,m=Pq(Iq,e.__scopeTooltip),g=I4(r),[x,v]=u(null),[b,_]=u(void 0),z=Er(),k=y(0),U=c??m.disableHoverableContent,P=d??m.delayDuration,T=y(!1),[G,X]=Lt({prop:i,defaultProp:s??!1,onChange:ki((ye)=>{if(ye)m.onOpen(),document.dispatchEvent(new CustomEvent(Cq));else m.onClose();l?.(ye)},"onChange"),caller:Iq}),J=N(()=>G?T.current?"delayed-open":"instant-open":"closed",[G]),ee=D(()=>{window.clearTimeout(k.current),k.current=0,T.current=!1,X(!0)},[X]),re=D(()=>{window.clearTimeout(k.current),k.current=0,X(!1)},[X]),oe=D(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{T.current=!0,X(!0),k.current=0},P)},[P,X]);return h(()=>()=>{if(k.current)window.clearTimeout(k.current),k.current=0},[]),t(vm,{...g,children:t(HPe,{scope:r,contentId:b??z,setContentId:_,open:G,stateAttribute:J,trigger:x,onTriggerChange:v,onTriggerEnter:D(()=>{if(m.isOpenDelayedRef.current)oe();else ee()},[m.isOpenDelayedRef,oe,ee]),onTriggerLeave:D(()=>{if(U)re();else window.clearTimeout(k.current),k.current=0},[re,U]),onOpen:ee,onClose:re,disableHoverableContent:U,children:a})})},"Tooltip"),Dfe="TooltipTrigger",WPe=F(ki(function(r,a){let{__scopeTooltip:i,...s}=r,l=W2(Dfe,i),c=Pq(Dfe,i),d=I4(i),m=y(null),g=_e(a,m,l.onTriggerChange),x=y(!1),v=y(!1),b=D(()=>x.current=!1,[]);return h(()=>()=>document.removeEventListener("pointerup",b),[b]),t(d8,{asChild:!0,...d,children:t(se.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:g,onPointerMove:Y(r.onPointerMove,(_)=>{if(_.pointerType==="touch")return;if(!v.current&&!c.isPointerInTransitRef.current)l.onTriggerEnter(),v.current=!0}),onPointerLeave:Y(r.onPointerLeave,()=>{l.onTriggerLeave(),v.current=!1}),onPointerDown:Y(r.onPointerDown,()=>{if(l.open)l.onClose();x.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Y(r.onFocus,()=>{if(!x.current)l.onOpen()}),onBlur:Y(r.onBlur,l.onClose),onClick:Y(r.onClick,l.onClose)})})},"TooltipTrigger")),Ofe="TooltipPortal",[KPe,GPe]=Rq(Ofe,{forceMount:void 0}),XPe=ki((e)=>{let{__scopeTooltip:r,forceMount:a,children:i,container:s}=e,l=W2(Ofe,r);return t(KPe,{scope:r,forceMount:a,children:t(ar,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:i})})})},"TooltipPortal"),V2="TooltipContent",QPe=F(ki(function(r,a){let i=GPe(V2,r.__scopeTooltip),{forceMount:s=i.forceMount,side:l="top",...c}=r,d=W2(V2,r.__scopeTooltip);return t(ar,{present:s||d.open,children:d.disableHoverableContent?t(Nfe,{side:l,...c,ref:a}):t(JPe,{side:l,...c,ref:a})})},"TooltipContent")),JPe=F(ki(function(r,a){let i=W2(V2,r.__scopeTooltip),s=Pq(V2,r.__scopeTooltip),l=y(null),c=_e(a,l),[d,m]=u(null),{trigger:g,onClose:x}=i,v=l.current,{onPointerInTransitChange:b}=s,_=D(()=>{m(null),b(!1)},[b]),z=D((k,U)=>{let P=k.currentTarget,T={x:k.clientX,y:k.clientY},G=Ffe(T,P.getBoundingClientRect()),X=jfe(T,G),J=Bfe(U.getBoundingClientRect()),ee=Yfe([...X,...J]);m(ee),b(!0)},[b]);return h(()=>()=>_(),[_]),h(()=>{if(g&&v){let k=ki((P)=>z(P,v),"handleTriggerLeave"),U=ki((P)=>z(P,g),"handleContentLeave");return g.addEventListener("pointerleave",k),v.addEventListener("pointerleave",U),()=>{g.removeEventListener("pointerleave",k),v.removeEventListener("pointerleave",U)}}},[g,v,z,_]),h(()=>{if(d){let k=ki((U)=>{let P=U.target,T={x:U.clientX,y:U.clientY},G=g?.contains(P)||v?.contains(P),X=!Ufe(T,d);if(G)_();else if(X)_(),x()},"handleTrackPointerGrace");return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[g,v,d,x,_]),t(Nfe,{...r,ref:c})},"TooltipContentHoverable")),$Pe=YY("TooltipContent"),Nfe=F(ki(function(r,a){let{__scopeTooltip:i,children:s,"aria-label":l,id:c,onEscapeKeyDown:d,onPointerDownOutside:m,...g}=r,x=W2(V2,i),v=I4(i),{onClose:b}=x;h(()=>(document.addEventListener(Cq,b),()=>document.removeEventListener(Cq,b)),[b]),h(()=>{if(x.trigger){let z=ki((k)=>{if(k.target instanceof Node&&k.target.contains(x.trigger))b()},"handleScroll");return window.addEventListener("scroll",z,{capture:!0}),()=>window.removeEventListener("scroll",z,{capture:!0})}},[x.trigger,b]);let{setContentId:_}=x;return Rt(()=>(_(c),()=>{_(void 0)}),[c,_]),t(iZ,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:(z)=>z.preventDefault(),onDismiss:b,children:o(Z8,{"data-state":x.stateAttribute,role:l?void 0:"tooltip",id:l?void 0:x.contentId,...v,...g,ref:a,style:{...g.style,...{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}},children:[t($Pe,{children:s}),l?t(mfe,{id:x.contentId,role:"tooltip",children:l}):null]})})},"TooltipContentImpl")),eTe=F(ki(function(r,a){let{__scopeTooltip:i,...s}=r,l=I4(i);return t(O2,{...l,...s,ref:a})},"TooltipArrow"));function Ffe(e,r){let a=Math.abs(r.top-e.y),i=Math.abs(r.bottom-e.y),s=Math.abs(r.right-e.x),l=Math.abs(r.left-e.x);switch(Math.min(a,i,s,l)){case l:return"left";case s:return"right";case a:return"top";case i:return"bottom";default:throw Error("unreachable")}}ki(Ffe,"getExitSideFromRect");function jfe(e,r,a=5){let i=[];switch(r){case"top":i.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":i.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":i.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":i.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return i}ki(jfe,"getPaddedExitPoints");function Bfe(e){let{top:r,right:a,bottom:i,left:s}=e;return[{x:s,y:r},{x:a,y:r},{x:a,y:i},{x:s,y:i}]}ki(Bfe,"getPointsFromRect");function Ufe(e,r){let{x:a,y:i}=e,s=!1;for(let l=0,c=r.length-1;l<r.length;c=l++){let d=r[l],m=r[c],{x:g,y:x}=d,{x:v,y:b}=m;if(x>i!==b>i&&a<(v-g)*(i-x)/(b-x)+g)s=!s}return s}ki(Ufe,"isPointInPolygon");function Yfe(e){let r=e.slice();return r.sort((a,i)=>{if(a.x<i.x)return-1;else if(a.x>i.x)return 1;else if(a.y<i.y)return-1;else if(a.y>i.y)return 1;else return 0}),qfe(r)}ki(Yfe,"getHull");function qfe(e){if(e.length<=1)return e.slice();let r=[];for(let i=0;i<e.length;i++){let s=e[i];while(r.length>=2){let l=r[r.length-1],c=r[r.length-2];if((l.x-c.x)*(s.y-c.y)>=(l.y-c.y)*(s.x-c.x))r.pop();else break}r.push(s)}r.pop();let a=[];for(let i=e.length-1;i>=0;i--){let s=e[i];while(a.length>=2){let l=a[a.length-1],c=a[a.length-2];if((l.x-c.x)*(s.y-c.y)>=(l.y-c.y)*(s.x-c.x))a.pop();else break}a.push(s)}if(a.pop(),r.length===1&&a.length===1&&r[0].x===a[0].x&&r[0].y===a[0].y)return r;else return r.concat(a)}ki(qfe,"getHullPresorted");var tTe=qPe,rTe=VPe,oTe=WPe,aTe=XPe,nTe=QPe,iTe=eTe;var R4=fs("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap cursor-pointer transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function E({className:e,variant:r="default",size:a="default",asChild:i=!1,...s}){let l=i?dae:"button";return t(l,{"data-slot":"button","data-variant":r,"data-size":a,className:C(R4({variant:r,size:a,className:e})),...s})}function sn({delayDuration:e=0,...r}){return t(tTe,{"data-slot":"tooltip-provider",delayDuration:e,...r})}function an({...e}){return t(rTe,{"data-slot":"tooltip",...e})}function ln({...e}){return t(oTe,{"data-slot":"tooltip-trigger",...e})}function cn({className:e,sideOffset:r=0,children:a,...i}){return t(aTe,{children:o(nTe,{"data-slot":"tooltip-content",sideOffset:r,className:C("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...i,children:[a,t(iTe,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function Ce({className:e,size:r="default",...a}){return t(Xke,{"data-slot":"avatar","data-size":r,className:C("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...a})}function Ie({className:e,...r}){return t(Jke,{"data-slot":"avatar-image",className:C("aspect-square size-full",e),...r})}function Te({className:e,...r}){return t(eCe,{"data-slot":"avatar-fallback",className:C("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...r})}function he({...e}){return t(g1e,{"data-slot":"dropdown-menu",...e})}function ra({...e}){return t(Kie,{"data-slot":"dropdown-menu-portal",...e})}function ge({...e}){return t(M1e,{"data-slot":"dropdown-menu-trigger",...e})}function Ae({className:e,sideOffset:r=4,...a}){return t(Kie,{children:t(x1e,{"data-slot":"dropdown-menu-content",sideOffset:r,className:C("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})})}function K({className:e,inset:r,variant:a="default",...i}){return t(y1e,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":a,className:C("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...i})}function Nc({...e}){return t(_1e,{"data-slot":"dropdown-menu-radio-group",...e})}function _i({className:e,children:r,...a}){return o(b1e,{"data-slot":"dropdown-menu-radio-item",className:C("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[t("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t(w1e,{children:t(c2,{className:"size-2 fill-current"})})}),r]})}function Qr({className:e,inset:r,...a}){return t(v1e,{"data-slot":"dropdown-menu-label","data-inset":r,className:C("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...a})}function Vt({className:e,...r}){return t(z1e,{"data-slot":"dropdown-menu-separator",className:C("-mx-1 my-1 h-px bg-border",e),...r})}function ps({...e}){return t(S1e,{"data-slot":"dropdown-menu-sub",...e})}function ms({className:e,inset:r,children:a,...i}){return o(L1e,{"data-slot":"dropdown-menu-sub-trigger","data-inset":r,className:C("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...i,children:[a,t(vt,{className:"ml-auto size-4"})]})}function hs({className:e,...r}){return t(k1e,{"data-slot":"dropdown-menu-sub-content",className:C("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...r})}S();function fTe(e){let r=e.match(/teams\/([^/]+)/);if(r)return{teamId:r[1]};let a=e.match(/projects\/([^/]+)/);if(a)return{projectId:a[1]};return{}}function gs(){let[e,r]=u(),a=rz({select:(c)=>c.location.pathname}),{teamId:i,projectId:s}=fTe(a),{data:l}=Z({queryKey:["projects",s,"team"],queryFn:async()=>{let c=await A.api.projects[":projectId"].team.$get({param:{projectId:s}});if(!c.ok)throw Error("failed to fetch project team");return await c.json()},enabled:!!s});return h(()=>{if(i)r(i);else if(l?.teamId)r(l.teamId)},[i,l]),e}var P4=Object.create(null),K2=(e)=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?P4:globalThis),bm=new Proxy(P4,{get(e,r){return K2()[r]??P4[r]},has(e,r){return r in K2()||r in P4},set(e,r,a){let i=K2(!0);return i[r]=a,!0},deleteProperty(e,r){if(!r)return!1;let a=K2(!0);return delete a[r],!0},ownKeys(){let e=K2(!0);return Object.keys(e)}});var sTe=typeof process<"u"&&process.env&&"production"||"";function M8(e,r){if(typeof process<"u"&&process.env)return process.env[e]??r;if(typeof Deno<"u")return Deno.env.get(e)??r;if(typeof Bun<"u")return Bun.env[e]??r;return r}var lTe=Object.freeze({get BETTER_AUTH_SECRET(){return M8("BETTER_AUTH_SECRET")},get AUTH_SECRET(){return M8("AUTH_SECRET")},get BETTER_AUTH_TELEMETRY(){return M8("BETTER_AUTH_TELEMETRY")},get BETTER_AUTH_TELEMETRY_ID(){return M8("BETTER_AUTH_TELEMETRY_ID")},get NODE_ENV(){return M8("NODE_ENV","development")},get PACKAGE_VERSION(){return M8("PACKAGE_VERSION","0.0.0")},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return M8("BETTER_AUTH_TELEMETRY_ENDPOINT","")}});function cTe(){let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(e===void 0)return Object.isExtensible(Error);return Object.prototype.hasOwnProperty.call(e,"writable")?e.writable:e.set!==void 0}function uTe(e){let r=e.split(`
61
- at `);if(r.length<=1)return e;return r.splice(1,1),r.join(`
62
- at `)}function dTe(e,r){class a extends e{#e;constructor(...i){if(cTe()){let l=Error.stackTraceLimit;Error.stackTraceLimit=0;super(...i);Error.stackTraceLimit=l}else super(...i);let s=Error().stack;if(s)this.#e=uTe(s.replace(/^Error/,this.name))}get errorStack(){return this.#e}}return Object.defineProperty(a.prototype,"constructor",{get(){return r},enumerable:!1,configurable:!0}),a}var ZTe={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511},pTe=class extends Error{constructor(e="INTERNAL_SERVER_ERROR",r=void 0,a={},i=typeof e==="number"?e:ZTe[e]){super(r?.message,r?.cause?{cause:r.cause}:void 0);this.status=e,this.body=r,this.headers=a,this.statusCode=i,this.name="APIError",this.status=e,this.headers=a,this.statusCode=i,this.body=r}};var mTe=dTe(pTe,Error);var N1=class extends Error{constructor(e,r){super(e,r);this.name="BetterAuthError",this.message=e,this.stack=""}};function hTe(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new N1(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function gTe(e){try{let r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new N1(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(r){if(r instanceof N1)throw r;throw new N1(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:r})}}function G2(e,r="/api/auth"){if(gTe(e),hTe(e))return e;let a=e.replace(/\/+$/,"");if(!r||r==="/")return a;return r=r.startsWith("/")?r:`/${r}`,`${a}${r}`}function Vfe(e,r){if(!e||e.trim()==="")return!1;if(r==="proto")return e==="http"||e==="https";if(r==="host"){if([/\.\./,/\0/,/[\s]/,/^[.]/,/[<>'"]/,/javascript:/i,/file:/i,/data:/i].some((a)=>a.test(e)))return!1;return/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*(:[0-9]{1,5})?$/.test(e)||/^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(e)||/^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(e)||/^localhost(:[0-9]{1,5})?$/i.test(e)}return!1}function Wfe(e,r,a,i,s){if(e)return G2(e,r);if(i!==!1){let d=bm.BETTER_AUTH_URL||bm.NEXT_PUBLIC_BETTER_AUTH_URL||bm.PUBLIC_BETTER_AUTH_URL||bm.NUXT_PUBLIC_BETTER_AUTH_URL||bm.NUXT_PUBLIC_AUTH_URL||(bm.BASE_URL!=="/"?bm.BASE_URL:void 0);if(d)return G2(d,r)}let l=a?.headers.get("x-forwarded-host"),c=a?.headers.get("x-forwarded-proto");if(l&&c&&s){if(Vfe(c,"proto")&&Vfe(l,"host"))try{return G2(`${c}://${l}`,r)}catch(d){}}if(a){let d=MTe(a.url);if(!d)throw new N1("Could not get origin from request. Please provide a valid base URL.");return G2(d,r)}if(typeof window<"u"&&window.location)return G2(window.location.origin,r)}function MTe(e){try{let r=new URL(e);return r.origin==="null"?null:r.origin}catch{return null}}var xTe={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},vTe=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,Kfe={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},yTe=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function _Te(e){return e instanceof Date&&!isNaN(e.getTime())}function bTe(e){let r=yTe.exec(e);if(!r)return null;let[,a,i,s,l,c,d,m,g,x,v]=r,b=new Date(Date.UTC(parseInt(a,10),parseInt(i,10)-1,parseInt(s,10),parseInt(l,10),parseInt(c,10),parseInt(d,10),m?parseInt(m.padEnd(3,"0"),10):0));if(g){let _=(parseInt(x,10)*60+parseInt(v,10))*(g==="+"?-1:1);b.setUTCMinutes(b.getUTCMinutes()+_)}return _Te(b)?b:null}function wTe(e,r={}){let{strict:a=!1,warnings:i=!1,reviver:s,parseDates:l=!0}=r;if(typeof e!=="string")return e;let c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);let d=c.toLowerCase();if(d.length<=9&&d in Kfe)return Kfe[d];if(!vTe.test(c)){if(a)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(xTe).some(([m,g])=>{let x=g.test(c);if(x&&i)console.warn(`[better-json] Detected potential prototype pollution attempt using ${m} pattern`);return x})&&a)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(g,x)=>{if(g==="__proto__"||g==="constructor"&&x&&typeof x==="object"&&"prototype"in x){if(i)console.warn(`[better-json] Dropping "${g}" key to prevent prototype pollution`);return}if(l&&typeof x==="string"){let v=bTe(x);if(v)return v}return s?s(g,x):x})}catch(m){if(a)throw m;return e}}function Gfe(e,r={strict:!0}){return wTe(e,r)}var Xfe={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect){if(typeof window<"u"&&window.location){if(window.location)try{window.location.href=e.data.url}catch{}}}}}};var Mu=[],x8=0,T4=null,A4=4,zTe=globalThis.nanostoresGlobal||={epoch:0},STe=()=>{let e;for(x8=0;x8<Mu.length;x8+=A4)try{Mu[x8](Mu[x8+1].value,Mu[x8+2],Mu[x8+3])}catch(r){e=r}if(Mu.length=0,e)throw e};var X2=(e)=>{let r=[],a={eq:Object.is,get(){if(!a.lc)a.listen(()=>{})();return a.value},init:e,lc:0,listen(i){return a.lc=r.push(i),()=>{for(let l=x8+A4;l<Mu.length;)if(Mu[l]===i)Mu.splice(l,A4);else l+=A4;let s=r.indexOf(i);if(~s){if(r.splice(s,1),!--a.lc)a.off()}}},notify(i,s){zTe.epoch++;let l=!Mu.length&&!T4;for(let c of r){if(T4?.has(c))continue;T4?.add(c),Mu.push(c,a,i,T4?void 0:s)}if(l)STe()},off(){},set(i){let s=a.value;if(!a.eq(s,i))a.value=i,a.notify(s)},subscribe(i){let s=a.listen(i);return i(a.value),s},value:e};return a};var LTe=5,E4=6,D4=10,kTe=(e,r,a,i)=>{if(e.events=e.events||{},!e.events[a+D4])e.events[a+D4]=i((s)=>{e.events[a].reduceRight((l,c)=>(c(l),l),{shared:{},...s})});return e.events[a]=e.events[a]||[],e.events[a].push(r),()=>{let s=e.events[a],l=s.indexOf(r);if(s.splice(l,1),!s.length)delete e.events[a],e.events[a+D4](),delete e.events[a+D4]}};var Qfe=1000,Q2=(e,r)=>kTe(e,(i)=>{let s=r(i);if(s)e.events[E4].push(s)},LTe,(i)=>{let s=e.listen;e.listen=(...c)=>{if(!e.lc&&!e.active)e.active=!0,i();return s(...c)};let l=e.off;return e.events[E4]=[],e.off=()=>{l(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[E4])c();e.events[E4]=[]}},Qfe)},()=>{e.listen=s,e.off=l}});function Tq(e,r){let a=CTe(r),i=e;for(let s of a){if(i==null)return;i=i[s]}return i}var Jfe=/(.*)\[(\d+)\]/;function CTe(e){return e.split(".").flatMap((r)=>$fe(r))}function $fe(e){if(Jfe.test(e)){let[,r,a]=e.match(Jfe);return[...$fe(r),a]}return[e]}function Aq(e,r,a){let i=new Set(r);return e.listen((s,l,c)=>{if(c===void 0?r.some((d)=>l===void 0||s[d]!==l[d]||Tq(s,d)!==Tq(l,d)):i.has(c)||i.has(c.split(/\.|\[/)[0]))a(s,l,c)})}var ITe=()=>typeof window>"u",ese=(e,r,a,i)=>{let s=X2({data:null,error:null,isPending:!0,isRefetching:!1,refetch:(d)=>l(d)}),l=async(d)=>new Promise((m)=>{let g=typeof i==="function"?i({data:s.get().data,error:s.get().error,isPending:s.get().isPending}):i;a(r,{...g,query:{...g?.query,...d?.query},async onSuccess(x){s.set({data:x.data,error:null,isPending:!1,isRefetching:!1,refetch:s.value.refetch}),await g?.onSuccess?.(x)},async onError(x){let{request:v}=x,b=typeof v.retry==="number"?v.retry:v.retry?.attempts,_=v.retryAttempt||0;if(b&&_<b)return;let z=x.error.status===401;s.set({error:x.error,data:z?null:s.get().data,isPending:!1,isRefetching:!1,refetch:s.value.refetch}),await g?.onError?.(x)},async onRequest(x){let v=s.get();s.set({isPending:v.data===null,data:v.data,error:null,isRefetching:!0,refetch:s.value.refetch}),await g?.onRequest?.(x)}}).catch((x)=>{s.set({error:x,data:s.get().data,isPending:!1,isRefetching:!1,refetch:s.value.refetch})}).finally(()=>{m(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(let d of e)d.subscribe(async()=>{if(ITe())return;if(c)await l();else Q2(s,()=>{let m=setTimeout(async()=>{if(!c)c=!0,await l()},0);return()=>{s.off(),d.off(),clearTimeout(m)}})});return s};var Eq=Symbol.for("better-auth:broadcast-channel"),RTe=()=>Math.floor(Date.now()/1000),PTe=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(typeof window>"u")return;try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:RTe()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};let e=(r)=>{if(r.key!==this.name)return;let a=JSON.parse(r.newValue??"{}");if(a?.event!=="session"||!a?.data)return;this.listeners.forEach((i)=>i(a))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function O4(e="better-auth.message"){if(!globalThis[Eq])globalThis[Eq]=new PTe(e);return globalThis[Eq]}var Dq=Symbol.for("better-auth:focus-manager"),TTe=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach((r)=>r(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};let e=()=>{if(document.visibilityState==="visible")this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function Oq(){if(!globalThis[Dq])globalThis[Dq]=new TTe;return globalThis[Dq]}var Nq=Symbol.for("better-auth:online-manager"),ATe=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach((r)=>r(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};let e=()=>this.setOnline(!0),r=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",r,!1)}}};function N4(){if(!globalThis[Nq])globalThis[Nq]=new ATe;return globalThis[Nq]}var F1=()=>Math.floor(Date.now()/1000);function tse(e){if(typeof e==="object"&&e!==null&&"data"in e&&"error"in e)return e;return{data:e,error:null}}var ETe=5;function rse(e){let{sessionAtom:r,sessionSignal:a,$fetch:i,options:s={}}=e,l=s.sessionOptions?.refetchInterval??0,c=s.sessionOptions?.refetchOnWindowFocus??!0,d=s.sessionOptions?.refetchWhenOffline??!1,m={lastSync:0,lastSessionRequest:0,cachedSession:void 0},g=()=>d||N4().isOnline,x=(T)=>{if(!g())return;if(T?.event==="storage"){m.lastSync=F1(),a.set(!a.get());return}let G=r.get(),X=()=>{m.lastSessionRequest=F1(),i("/get-session").then(async(J)=>{let{data:ee,error:re}=tse(J);if(ee?.needsRefresh)try{let ie=await i("/get-session",{method:"POST"});({data:ee,error:re}=tse(ie))}catch{}let oe=ee?.session&&ee?.user?ee:null;r.set({...G,data:oe,error:re}),m.lastSync=F1(),a.set(!a.get())}).catch(()=>{})};if(T?.event==="poll"){X();return}if(T?.event==="visibilitychange"){if(F1()-m.lastSessionRequest<ETe)return;m.lastSessionRequest=F1()}if(T?.event==="visibilitychange"){X();return}if(G?.data===null||G?.data===void 0)m.lastSync=F1(),a.set(!a.get())},v=(T)=>{O4().post({event:"session",data:{trigger:T},clientId:Math.random().toString(36).substring(7)})},b=()=>{if(l&&l>0)m.pollInterval=setInterval(()=>{if(r.get()?.data)x({event:"poll"})},l*1000)},_=()=>{m.unsubscribeBroadcast=O4().subscribe(()=>{x({event:"storage"})})},z=()=>{if(!c)return;m.unsubscribeFocus=Oq().subscribe(()=>{x({event:"visibilitychange"})})},k=()=>{m.unsubscribeOnline=N4().subscribe((T)=>{if(T)x({event:"visibilitychange"})})};return{init:()=>{b(),_(),z(),k(),O4().setup(),Oq().setup(),N4().setup()},cleanup:()=>{if(m.pollInterval)clearInterval(m.pollInterval),m.pollInterval=void 0;if(m.unsubscribeBroadcast)m.unsubscribeBroadcast(),m.unsubscribeBroadcast=void 0;if(m.unsubscribeFocus)m.unsubscribeFocus(),m.unsubscribeFocus=void 0;if(m.unsubscribeOnline)m.unsubscribeOnline(),m.unsubscribeOnline=void 0;m.lastSync=0,m.lastSessionRequest=0,m.cachedSession=void 0},triggerRefetch:x,broadcastSessionUpdate:v}}function ose(e,r){let a=X2(!1),i=ese(a,"/get-session",e,{method:"GET"}),s=()=>{};return Q2(i,()=>{let l=rse({sessionAtom:i,sessionSignal:a,$fetch:e,options:r});return l.init(),s=l.broadcastSessionUpdate,()=>{l.cleanup()}}),{session:i,$sessionSignal:a,broadcastSessionUpdate:(l)=>s(l)}}function Fq(e){if(e===null||typeof e!=="object")return!1;let r=Object.getPrototypeOf(e);if(r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null)return!1;if(Symbol.iterator in e)return!1;if(Symbol.toStringTag in e)return Object.prototype.toString.call(e)==="[object Module]";return!0}function jq(e,r,a=".",i){if(!Fq(r))return jq(e,{},a,i);let s={...r};for(let l of Object.keys(e)){if(l==="__proto__"||l==="constructor")continue;let c=e[l];if(c===null||c===void 0)continue;if(i&&i(s,l,c,a))continue;if(Array.isArray(c)&&Array.isArray(s[l]))s[l]=[...c,...s[l]];else if(Fq(c)&&Fq(s[l]))s[l]=jq(c,s[l],(a?`${a}.`:"")+l.toString(),i);else s[l]=c}return s}function Bq(e){return(...r)=>r.reduce((a,i)=>jq(a,i,"",e),{})}var ase=Bq(),rta=Bq((e,r,a)=>{if(e[r]!==void 0&&typeof a==="function")return e[r]=a(e[r]),!0}),ota=Bq((e,r,a)=>{if(Array.isArray(e[r])&&typeof a==="function")return e[r]=a(e[r]),!0});var{defineProperty:DTe,defineProperties:OTe,getOwnPropertyDescriptors:NTe,getOwnPropertySymbols:nse}=Object,FTe=Object.prototype.hasOwnProperty,jTe=Object.prototype.propertyIsEnumerable,ise=(e,r,a)=>(r in e)?DTe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,xu=(e,r)=>{for(var a in r||(r={}))if(FTe.call(r,a))ise(e,a,r[a]);if(nse){for(var a of nse(r))if(jTe.call(r,a))ise(e,a,r[a])}return e},ZZ=(e,r)=>OTe(e,NTe(r)),BTe=class extends Error{constructor(e,r,a){super(r||e.toString(),{cause:a});this.status=e,this.statusText=r,this.error=a,Error.captureStackTrace(this,this.constructor)}},UTe=async(e,r)=>{var a,i,s,l,c,d;let m=r||{},g={onRequest:[r==null?void 0:r.onRequest],onResponse:[r==null?void 0:r.onResponse],onSuccess:[r==null?void 0:r.onSuccess],onError:[r==null?void 0:r.onError],onRetry:[r==null?void 0:r.onRetry]};if(!r||!(r==null?void 0:r.plugins))return{url:e,options:m,hooks:g};for(let x of(r==null?void 0:r.plugins)||[]){if(x.init){let v=await((a=x.init)==null?void 0:a.call(x,e.toString(),r));m=v.options||m,e=v.url}g.onRequest.push((i=x.hooks)==null?void 0:i.onRequest),g.onResponse.push((s=x.hooks)==null?void 0:s.onResponse),g.onSuccess.push((l=x.hooks)==null?void 0:l.onSuccess),g.onError.push((c=x.hooks)==null?void 0:c.onError),g.onRetry.push((d=x.hooks)==null?void 0:d.onRetry)}return{url:e,options:m,hooks:g}},fse=class{constructor(e){this.options=e}shouldAttemptRetry(e,r){if(this.options.shouldRetry)return Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(r));return Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},YTe=class{constructor(e){this.options=e}shouldAttemptRetry(e,r){if(this.options.shouldRetry)return Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(r));return Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function qTe(e){if(typeof e==="number")return new fse({type:"linear",attempts:e,delay:1000});switch(e.type){case"linear":return new fse(e);case"exponential":return new YTe(e);default:throw Error("Invalid retry strategy")}}var HTe=async(e)=>{let r={},a=async(i)=>typeof i==="function"?await i():i;if(e==null?void 0:e.auth){if(e.auth.type==="Bearer"){let i=await a(e.auth.token);if(!i)return r;r.authorization=`Bearer ${i}`}else if(e.auth.type==="Basic"){let[i,s]=await Promise.all([a(e.auth.username),a(e.auth.password)]);if(!i||!s)return r;r.authorization=`Basic ${btoa(`${i}:${s}`)}`}else if(e.auth.type==="Custom"){let[i,s]=await Promise.all([a(e.auth.prefix),a(e.auth.value)]);if(!s)return r;r.authorization=`${i!=null?i:""} ${s}`}}return r},VTe=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function WTe(e){let r=e.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!r)return"json";let i=r.split(";").shift()||"";if(VTe.test(i))return"json";if(a.has(i)||i.startsWith("text/"))return"text";return"blob"}function KTe(e){try{return JSON.parse(e),!0}catch(r){return!1}}function Uq(e){if(e===void 0)return!1;let r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r===null)return!0;if(r!=="object")return!1;if(Array.isArray(e))return!0;if(e.buffer)return!1;return e.constructor&&e.constructor.name==="Object"||typeof e.toJSON==="function"}function sse(e){try{return JSON.parse(e)}catch(r){return e}}function lse(e){return typeof e==="function"}function GTe(e){if(e==null?void 0:e.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&lse(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&lse(window.fetch))return window.fetch;throw Error("No fetch implementation found")}async function XTe(e){let r=new Headers(e==null?void 0:e.headers),a=await HTe(e);for(let[i,s]of Object.entries(a||{}))r.set(i,s);if(!r.has("content-type")){let i=QTe(e==null?void 0:e.body);if(i)r.set("content-type",i)}return r}function QTe(e){if(Uq(e))return"application/json";return null}function JTe(e){if(!(e==null?void 0:e.body))return null;let r=new Headers(e==null?void 0:e.headers);if(Uq(e.body)&&!r.has("content-type")){for(let[a,i]of Object.entries(e==null?void 0:e.body))if(i instanceof Date)e.body[a]=i.toISOString();return JSON.stringify(e.body)}if(r.has("content-type")&&r.get("content-type")==="application/x-www-form-urlencoded"){if(Uq(e.body))return new URLSearchParams(e.body).toString();return e.body}return e.body}function $Te(e,r){var a;if(r==null?void 0:r.method)return r.method.toUpperCase();if(e.startsWith("@")){let i=(a=e.split("@")[1])==null?void 0:a.split("/")[0];if(!cse.includes(i))return(r==null?void 0:r.body)?"POST":"GET";return i.toUpperCase()}return(r==null?void 0:r.body)?"POST":"GET"}function eAe(e,r){let a;if(!(e==null?void 0:e.signal)&&(e==null?void 0:e.timeout))a=setTimeout(()=>r==null?void 0:r.abort(),e==null?void 0:e.timeout);return{abortTimeout:a,clearTimeout:()=>{if(a)clearTimeout(a)}}}var tAe=class e extends Error{constructor(r,a){super(a||JSON.stringify(r,null,2));this.issues=r,Object.setPrototypeOf(this,e.prototype)}};async function F4(e,r){let a=await e["~standard"].validate(r);if(a.issues)throw new tAe(a.issues);return a.value}var cse=["get","post","put","patch","delete"];var rAe=(e)=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(r,a){var i,s,l,c;let d=((s=(i=e.plugins)==null?void 0:i.find((m)=>{var g;return((g=m.schema)==null?void 0:g.config)?r.startsWith(m.schema.config.baseURL||"")||r.startsWith(m.schema.config.prefix||""):!1}))==null?void 0:s.schema)||e.schema;if(d){let m=r;if((l=d.config)==null?void 0:l.prefix){if(m.startsWith(d.config.prefix)){if(m=m.replace(d.config.prefix,""),d.config.baseURL)r=r.replace(d.config.prefix,d.config.baseURL)}}if((c=d.config)==null?void 0:c.baseURL){if(m.startsWith(d.config.baseURL))m=m.replace(d.config.baseURL,"")}let g=d.schema[m];if(g){let x=ZZ(xu({},a),{method:g.method,output:g.output});if(!(a==null?void 0:a.disableValidation))x=ZZ(xu({},x),{body:g.input?await F4(g.input,a==null?void 0:a.body):a==null?void 0:a.body,params:g.params?await F4(g.params,a==null?void 0:a.params):a==null?void 0:a.params,query:g.query?await F4(g.query,a==null?void 0:a.query):a==null?void 0:a.query});return{url:r,options:x}}}return{url:r,options:a}}}),use=(e)=>{async function r(a,i){let s=ZZ(xu(xu({},e),i),{plugins:[...(e==null?void 0:e.plugins)||[],rAe(e||{}),...(i==null?void 0:i.plugins)||[]]});if(e==null?void 0:e.catchAllError)try{return await Yq(a,s)}catch(l){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:l}}}return await Yq(a,s)}return r};function oAe(e,r){let{baseURL:a,params:i,query:s}=r||{query:{},params:{},baseURL:""},l=e.startsWith("http")?e.split("/").slice(0,3).join("/"):a||"";if(e.startsWith("@")){let v=e.toString().split("@")[1].split("/")[0];if(cse.includes(v))e=e.replace(`@${v}/`,"/")}if(!l.endsWith("/"))l+="/";let[c,d]=e.replace(l,"").split("?"),m=new URLSearchParams(d);for(let[v,b]of Object.entries(s||{})){if(b==null)continue;let _;if(typeof b==="string")_=b;else if(Array.isArray(b)){for(let z of b)m.append(v,z);continue}else _=JSON.stringify(b);m.set(v,_)}if(i)if(Array.isArray(i)){let v=c.split("/").filter((b)=>b.startsWith(":"));for(let[b,_]of v.entries()){let z=i[b];c=c.replace(_,z)}}else for(let[v,b]of Object.entries(i))c=c.replace(`:${v}`,String(b));if(c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/"))c=c.slice(1);let g=m.toString();if(g=g.length>0?`?${g}`.replace(/\+/g,"%20"):"",!l.startsWith("http"))return`${l}${c}${g}`;return new URL(`${c}${g}`,l)}var Yq=async(e,r)=>{var a,i,s,l,c,d,m,g;let{hooks:x,url:v,options:b}=await UTe(e,r),_=GTe(b),z=new AbortController,k=(a=b.signal)!=null?a:z.signal,U=oAe(v,b),P=JTe(b),T=await XTe(b),G=$Te(v,b),X=ZZ(xu({},b),{url:U,headers:T,body:P,method:G,signal:k});for(let Se of x.onRequest)if(Se){let He=await Se(X);if(typeof He==="object"&&He!==null)X=He}if("pipeTo"in X&&typeof X.pipeTo==="function"||typeof((i=r==null?void 0:r.body)==null?void 0:i.pipe)==="function"){if(!("duplex"in X))X.duplex="half"}let{clearTimeout:J}=eAe(b,z),ee=await _(X.url,X);J();let re={response:ee,request:X};for(let Se of x.onResponse)if(Se){let He=await Se(ZZ(xu({},re),{response:((s=r==null?void 0:r.hookOptions)==null?void 0:s.cloneResponse)?ee.clone():ee}));if(He instanceof Response)ee=He;else if(typeof He==="object"&&He!==null)ee=He.response}if(ee.ok){if(X.method==="HEAD")return{data:"",error:null};let He=WTe(ee),dt={data:null,response:ee,request:X};if(He==="json"||He==="text"){let Ge=await ee.text(),yt=(l=X.jsonParser)!=null?l:sse;dt.data=await yt(Ge)}else dt.data=await ee[He]();if(X==null?void 0:X.output){if(X.output&&!X.disableValidation)dt.data=await F4(X.output,dt.data)}for(let Ge of x.onSuccess)if(Ge)await Ge(ZZ(xu({},dt),{response:((c=r==null?void 0:r.hookOptions)==null?void 0:c.cloneResponse)?ee.clone():ee}));if(r==null?void 0:r.throw)return dt.data;return{data:dt.data,error:null}}let oe=(d=r==null?void 0:r.jsonParser)!=null?d:sse,ie=await ee.text(),ye=KTe(ie),We=ye?await oe(ie):null,Ye={response:ee,responseText:ie,request:X,error:ZZ(xu({},We),{status:ee.status,statusText:ee.statusText})};for(let Se of x.onError)if(Se)await Se(ZZ(xu({},Ye),{response:((m=r==null?void 0:r.hookOptions)==null?void 0:m.cloneResponse)?ee.clone():ee}));if(r==null?void 0:r.retry){let Se=qTe(r.retry),He=(g=r.retryAttempt)!=null?g:0;if(await Se.shouldAttemptRetry(He,ee)){for(let Ge of x.onRetry)if(Ge)await Ge(re);let dt=Se.getDelay(He);return await new Promise((Ge)=>setTimeout(Ge,dt)),await Yq(e,ZZ(xu({},r),{retryAttempt:He+1}))}}if(r==null?void 0:r.throw)throw new BTe(ee.status,ee.statusText,ye?We:ie);return{data:null,error:ZZ(xu({},We),{status:ee.status,statusText:ee.statusText})}};var aAe=(e)=>{if(typeof process>"u")return;let r=e??"/api/auth";if(process.env.NEXT_PUBLIC_AUTH_URL)return process.env.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(process.env.NEXTAUTH_URL)try{return process.env.NEXTAUTH_URL}catch{}if(process.env.VERCEL_URL)try{let a=process.env.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${a}${process.env.VERCEL_URL}`).origin}${r}`}catch{}}},dse=(e,r)=>{let a="credentials"in Request.prototype,i=Wfe(e?.baseURL,e?.basePath,void 0,r)??aAe(e?.basePath)??"/api/auth",s=e?.plugins?.flatMap((J)=>J.fetchPlugins).filter((J)=>J!==void 0)||[],l={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:d,onRequest:m,onResponse:g,...x}=e?.fetchOptions||{},v=use({baseURL:i,...a?{credentials:"include"}:{},method:"GET",jsonParser(J){if(!J)return null;return Gfe(J,{strict:!1})},customFetchImpl:fetch,...x,plugins:[l,...x.plugins||[],...e?.disableDefaultFetchPlugins?[]:[Xfe],...s]}),{$sessionSignal:b,session:_,broadcastSessionUpdate:z}=ose(v,e),k=e?.plugins||[],U={},P={$sessionSignal:b,session:_},T={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},G=[{signal:"$sessionSignal",matcher(J){return J==="/sign-out"||J==="/update-user"||J==="/update-session"||J==="/sign-up/email"||J==="/sign-in/email"||J==="/delete-user"||J==="/verify-email"||J==="/revoke-sessions"||J==="/revoke-session"||J==="/revoke-other-sessions"||J==="/change-email"||J==="/change-password"},callback(J){if(J==="/sign-out")z("signout");else if(J==="/update-user"||J==="/update-session")z("updateUser")}}];for(let J of k){if(J.getAtoms)Object.assign(P,J.getAtoms?.(v));if(J.pathMethods)Object.assign(T,J.pathMethods);if(J.atomListeners)G.push(...J.atomListeners)}let X={notify:(J)=>{P[J].set(!P[J].get())},listen:(J,ee)=>{P[J].subscribe(ee)},atoms:P};for(let J of k)if(J.getActions)U=ase(J.getActions?.(v,X,e)??{},U);return{get baseURL(){return i},pluginsActions:U,pluginsAtoms:P,pluginPathMethods:T,atomListeners:G,$fetch:v,$store:X}};function Zse(e){return typeof e==="object"&&e!==null&&"get"in e&&typeof e.get==="function"&&"lc"in e&&typeof e.lc==="number"}function nAe(e,r,a){let i=r[e],{fetchOptions:s,query:l,...c}=a||{};if(i)return i;if(s?.method)return s.method;if(c&&Object.keys(c).length>0)return"POST";return"GET"}function pse(e,r,a,i,s){function l(c=[]){return new Proxy(function(){},{get(d,m){if(typeof m!=="string")return;if(m==="then"||m==="catch"||m==="finally")return;let g=[...c,m],x=e;for(let v of g)if(x&&typeof x==="object"&&v in x)x=x[v];else{x=void 0;break}if(typeof x==="function")return x;if(Zse(x))return x;return l(g)},apply:async(d,m,g)=>{let x="/"+c.map((T)=>T.replace(/[A-Z]/g,(G)=>`-${G.toLowerCase()}`)).join("/"),v=g[0]||{},b=g[1]||{},{query:_,fetchOptions:z,...k}=v,U={...b,...z},P=nAe(x,a,v);return await r(x,{...U,body:P==="GET"?void 0:{...k,...U?.body||{}},query:_||U?.query,method:P,async onSuccess(T){if(await U?.onSuccess?.(T),!s||U.disableSignal)return;let G=s.filter((J)=>J.matcher(x));if(!G.length)return;let X=new Set;for(let J of G){let ee=i[J.signal];if(!ee)return;if(X.has(J.signal))continue;X.add(J.signal);let re=ee.get();setTimeout(()=>{ee.set(!re)},10),J.callback?.(x)}}})}})}return l()}S();function mse(e,r={}){let a=y(e.get()),{keys:i,deps:s=[e,i]}=r,l=D((d)=>{let m=(g)=>{if(a.current===g)return;a.current=g,d()};if(m(e.value),i?.length)return Aq(e,i,m);return e.listen(m)},s),c=()=>a.current;return Yn(l,c,c)}function hse(e){return e.charAt(0).toUpperCase()+e.slice(1)}function iAe(e){return`use${hse(e)}`}function gse(e){let{pluginPathMethods:r,pluginsActions:a,pluginsAtoms:i,$fetch:s,$store:l,atomListeners:c}=dse(e),d={};for(let[m,g]of Object.entries(i))d[iAe(m)]=()=>mse(g);return pse({...a,...d,$fetch:s,$store:l},s,r,i,c)}var fAe=gse({baseURL:window.location.origin}),{signIn:qq,signUp:Mse,useSession:Cta,signOut:xse,resetPassword:Cm}=fAe;var vse="0.5.1";var B4={};var Cse=["en","zh"];var Kq=["cookie","globalVariable","baseLocale"],yse=[],Gq=[{pattern:":protocol://:domain(.*)::port?/:path(.*)?",localized:[["zh",":protocol://:domain(.*)::port?/zh/:path(.*)?"],["en",":protocol://:domain(.*)::port?/:path(.*)?"]]}];var U4=void 0;var Kz=typeof window>"u",p=void 0;var Ise=!0,Rse=!1,Pse=!0,sAe=!1,Xq=!0,Tse=!1;globalThis.__paraglide=globalThis.__paraglide??{};globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var Y4,_se=!1,n=()=>{if(p!==void 0)return p;if(U4){let a=U4?.getStore()?.locale;if(a)return a}let e=Kq;if(!Kz&&typeof window<"u"&&window.location?.href)e=Fse(window.location.href);let r=lAe(e,typeof window<"u"?window.location?.href:void 0);if(r){if(!_se)Y4=r,_se=!0,Pa(r,{reload:!1});return r}throw Error("No locale found. Read the docs https://paraglidejs.com/errors#no-locale-found")};function lAe(e,r){let a;for(let i of e){if(Ise&&i==="cookie")a=pAe();else if(i==="baseLocale")a="en";else if(Rse&&i==="url"&&!Kz&&typeof r==="string")a=Dse(r);else if(Pse&&i==="globalVariable"&&Y4!==void 0)a=Y4;else if(sAe&&i==="preferredLanguage"&&!Kz)a=mAe();else if(Tse&&i==="localStorage"&&!Kz)a=localStorage.getItem("PARAGLIDE_LOCALE")??void 0;else if(jse(i)&&X4.has(i)){let l=X4.get(i);if(l){let c=l.getLocale();if(c instanceof Promise)continue;if(c!==void 0)return Ese(c)}}let s=v8(a);if(s)return s}return}var cAe=(e)=>{if(e)window.location.href=e;else window.location.reload()},Pa=(e,r)=>{let a={reload:!0,...r};if(p!==void 0&&e!==p&&a.reload===!1)console.warn(`Paraglide: setLocale(${JSON.stringify(e)}, { reload: false }) cannot switch away from the statically built locale ${JSON.stringify(p)}. A document navigation is required; reload has been forced to true.`),a.reload=!0;let i;try{i=n()}catch{}let s=[],l=void 0,c=Kq;if(!Kz&&typeof window<"u"&&window.location?.href)c=Fse(window.location.href);for(let m of c)if(Pse&&m==="globalVariable")Y4=e;else if(Ise&&m==="cookie"){if(Kz||typeof document>"u"||typeof window>"u")continue;let g=`PARAGLIDE_LOCALE=${e}; path=/; max-age=34560000`;document.cookie=g,Wq()}else if(m==="baseLocale")continue;else if(Rse&&m==="url"&&typeof window<"u")l=gAe(window.location.href,{locale:e}).href;else if(Tse&&m==="localStorage"&&typeof window<"u")localStorage.setItem("PARAGLIDE_LOCALE",e);else if(jse(m)&&X4.has(m)){let g=X4.get(m);if(g){let x=g.setLocale(e);if(x instanceof Promise)x=x.catch((v)=>{throw Error(`Custom strategy "${m}" setLocale failed.`,{cause:v})}),s.push(x)}}let d=()=>{if(!Kz&&a.reload&&window.location&&e!==i)cAe(l)};if(s.length)return Promise.all(s).then(()=>{d()});d();return};var Ase=()=>{if(U4)return U4.getStore()?.origin??"http://fallback.com";else if(typeof window<"u")return window.location.origin;return"http://fallback.com"};function v8(e){if(typeof e!=="string")return;let r=e.toLowerCase();for(let a of Cse)if(a.toLowerCase()===r)return a;return}function Ese(e){let r=v8(e);if(r)return r;throw Error(`Invalid locale: ${e}. Expected one of: ${Cse.join(", ")}`)}function yc(e){return e}function j1(e,r){return e.exec(r.href)}var uAe="PARAGLIDE_LOCALE".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),dAe=new RegExp(`(?:^|;\\s*)${uAe}=([^;]*)`),Qq=Symbol(),J2=Qq;function Wq(){J2=Qq}function ZAe(){if(typeof queueMicrotask==="function")queueMicrotask(Wq);else Promise.resolve().then(Wq)}function pAe(){if(typeof document>"u")return;if(J2!==Qq)return J2;let r=document.cookie.match(dAe)?.[1];return J2=v8(r),ZAe(),J2}function mAe(){if(!navigator?.languages?.length)return;let e=navigator.languages.map((r)=>({fullTag:r,baseTag:r.split("-")[0]}));for(let r of e){let a=v8(r.fullTag);if(a)return a;let i=v8(r.baseTag);if(i)return i}return}var bse,wse;function Dse(e){let r=typeof e==="string"?e:e.href;if(bse===r)return wse;let a;if(Xq){let i=typeof e==="string"?new URL(e,"http://example.com"):new URL(e);a=hAe(yc(i))}else{let i=yc(typeof e==="string"?new URL(e):new URL(e));for(let s of Gq){for(let[l,c]of s.localized)if(j1(new B4(c,i.href),i)){a=l;break}if(a)break}}return bse=r,wse=a,a}function hAe(e){let a=new URL(e,"http://example.com").pathname.split("/").filter(Boolean);return v8(a[0])||"en"}function gAe(e,r){let a=r?.locale?Ese(r?.locale):n();if(Xq)return MAe(e,a);let i=typeof e==="string"?new URL(e):e,s=i;for(let l of Gq){let c=bAe(s,a,l);if(c!==void 0)return c;for(let[,m]of l.localized){let g=j1(W4(m,s),s);if(!g)continue;let x=l.localized.find(([b])=>b===a)?.[1];if(!x)continue;let v=H4(x,V4(g),s.origin);return yc(q4(v,g))}let d=j1(W4(l.pattern,s),s);if(d){let m=l.localized.find(([g])=>g===a)?.[1];if(m){let g=H4(m,V4(d),s.origin);return yc(q4(g,d))}}}return i}function MAe(e,r){let a=yc(typeof e==="string"?new URL(e,Ase()):new URL(e));if(Dse(a)===r)return yc(a);let s=a.pathname.split("/").filter(Boolean);if(s.length>0&&v8(s[0]))s.shift();if(r==="en")a.pathname="/"+s.join("/");else a.pathname="/"+r+"/"+s.join("/");return yc(a)}function xAe(e){if(Xq)return vAe(e);let r=typeof e==="string"?new URL(e):e,a=r;for(let i of Gq){let s=wAe(a,i);if(s!==void 0)return s;for(let[,c]of i.localized){let d=j1(W4(c,a),a);if(d){let m=V4(d),g=H4(i.pattern,m,a.origin);return yc(q4(g,d))}}let l=j1(W4(i.pattern,a),a);if(l){let c=H4(i.pattern,V4(l),a.origin);return yc(q4(c,l))}}return r}function vAe(e){let r=yc(typeof e==="string"?new URL(e,Ase()):new URL(e)),a=r.pathname.split("/").filter(Boolean);if(a.length>0&&v8(a[0]))r.pathname="/"+a.slice(1).join("/");return yc(r)}function q4(e,r){if(r.protocol.groups["0"])e.protocol=r.protocol.groups["0"]??"";if(r.hostname.groups["0"])e.hostname=r.hostname.groups["0"]??"";if(r.username.groups["0"])e.username=r.username.groups["0"]??"";if(r.password.groups["0"])e.password=r.password.groups["0"]??"";if(r.port.groups["0"])e.port=r.port.groups["0"]??"";if(r.pathname.groups["0"])e.pathname=r.pathname.groups["0"]??"";if(r.search.groups["0"])e.search=r.search.groups["0"]??"";if(r.hash.groups["0"])e.hash=r.hash.groups["0"]??"";return e}function H4(e,r,a){let l=e.replace(/(https?:\/\/[^:/]+):(\d+)(\/|$)/g,(c,d,m,g)=>`${d}#PORT-${m}#${g}`).replace(/\{([^{}]*)\}([?+*]?)/g,(c,d,m)=>{if(m==="?")return d;return d}).replace(/(\/?):([a-zA-Z0-9_]+)(\([^)]*\))?([?+*]?)/g,(c,d,m,g,x)=>{let v=r[m];if(v===null)return"";if(x==="?")return v!==void 0?`${d}${v}`:"";if(x==="+"||x==="*"){if(v===void 0&&x==="+")throw Error(`Missing value for "${m}" (one or more required)`);return v?`${d}${v}`:""}if(v===void 0)throw Error(`Missing value for "${m}"`);return`${d}${v}`});return l=l.replace(/#PORT-(\d+)#/g,":$1"),new URL(l,a)}function V4(e){return{...e.hash.groups,...e.hostname.groups,...e.password.groups,...e.pathname.groups,...e.port.groups,...e.protocol.groups,...e.search.groups,...e.username.groups}}var Wz=new Map,yAe=128,_Ae=/^(?:[A-Za-z][A-Za-z\d+.-]*|:[A-Za-z][A-Za-z\d_-]*):\/\//;function W4(e,r){let a=_Ae.test(e),i=e.startsWith("/");if(!a&&!i)return new B4(e,r.href);let s=a?e:JSON.stringify([r.origin,e]),l=Wz.get(s);if(l!==void 0)return Wz.delete(s),Wz.set(s,l),l;let c=new B4(e,r.href);if(Wz.size>=yAe){let d=Wz.keys().next().value;if(d!==void 0)Wz.delete(d)}return Wz.set(s,c),c}var j4=new WeakMap;function bAe(e,r,a){let i=Ose(a);if(i===null)return;for(let l of i.localized){let c=K4(l.pattern,e);if(c===void 0)continue;let d=i.localized.find((m)=>m.locale===r)?.pattern;if(d===void 0)continue;return G4(d,c,e)}let s=K4(i.base,e);if(s!==void 0){let l=i.localized.find((c)=>c.locale===r)?.pattern;if(l!==void 0)return G4(l,s,e)}return}function wAe(e,r){let a=Ose(r);if(a===null)return;for(let s of a.localized){let l=K4(s.pattern,e);if(l!==void 0)return G4(a.base,l,e)}let i=K4(a.base,e);if(i!==void 0)return G4(a.base,i,e);return}function Ose(e){let r=j4.get(e);if(r!==void 0)return r;let a=zse(e.pattern);if(a===void 0)return j4.set(e,null),null;let i=[];for(let[l,c]of e.localized){let d=zse(c);if(d===void 0||d.pathMode!==a.pathMode)return j4.set(e,null),null;i.push({locale:l,pattern:d})}let s={base:a,localized:i};return j4.set(e,s),s}function zse(e){let r=e.match(/\/:path(?:\(\.\*\)(?:\?)?|\*)$/);if(r===null||r.index===void 0)return;let a=e.slice(0,r.index),i=zAe(a);if(i===void 0)return;let s=r[0].endsWith("*")?"segments":r[0].endsWith("?")?"catch-all-optional":"catch-all-required";return{...i,pathMode:s}}function zAe(e){if(e===""||e.startsWith("/")){if(Hq(e))return;return{protocol:void 0,hostname:void 0,port:void 0,pathnamePrefix:Vq(e),pathMode:"catch-all-optional"}}let r=e.match(/^:protocol:\/\/([^/]+)(\/.*)?$/),a=e.match(/^([A-Za-z][A-Za-z\d+.-]*):\/\/([^/]+)(\/.*)?$/);if(r!==null){let d=(r[1]??"").match(/^([^:(){}?*+]+)(?::(\d+))?$/);if(d===null||r[2]!==void 0&&Hq(r[2]))return;return{protocol:void 0,hostname:(d[1]??"").toLowerCase(),port:d[2],pathnamePrefix:Vq(r[2]??""),pathMode:"catch-all-optional"}}if(a===null)return;let i=a[2]??"",s=a[3],l=i.match(/^([^:(){}?*+]+)(?::(\d+))?$/);if(l===null||s!==void 0&&Hq(s))return;return{protocol:`${a[1]}:`,hostname:(l[1]??"").toLowerCase(),port:SAe(l[2],`${a[1]}:`),pathnamePrefix:Vq(s??""),pathMode:"catch-all-optional"}}function SAe(e,r){if(e==="80"&&r==="http:")return"";if(e==="443"&&r==="https:")return"";return e}function Hq(e){return/[:(){}?*+]/.test(e)}function Vq(e){if(e===""||e==="/")return"/";return e.endsWith("/")?e.slice(0,-1):e}function K4(e,r){if(e.protocol!==void 0&&e.protocol!==r.protocol)return;if(e.hostname!==void 0&&e.hostname!==r.hostname.toLowerCase())return;if(e.hostname!==void 0){if((e.port??Nse(e.protocol??r.protocol))!==r.port)return}let a=e.pathnamePrefix;if(a==="/"){if(r.pathname.startsWith("//"))return;if(e.pathMode==="segments")return Sse(r.pathname)?r.pathname:void 0;return r.pathname}if(r.pathname===a)return e.pathMode==="catch-all-required"?void 0:"";if(r.pathname.startsWith(`${a}/`)){let i=r.pathname.slice(a.length);if(i.startsWith("//"))return;if(e.pathMode==="segments"&&!Sse(i))return;return i}return}function Sse(e){return e.length>1&&!e.endsWith("/")&&!e.includes("//")}function Nse(e){if(e==="http:")return"";if(e==="https:")return"";return""}function G4(e,r,a){let i=new URL(a.href);if(e.protocol!==void 0)i.protocol=e.protocol;if(e.hostname!==void 0)i.hostname=e.hostname,i.port=e.port??Nse(i.protocol);return i.pathname=LAe(e.pathnamePrefix,r),i}function LAe(e,r){if(e==="/")return r===""?"/":r;if(r==="")return e;return`${e}${r.startsWith("/")?r:`/${r}`}`}var Lse,kse;function kAe(e){if(yse.length===0)return;let r=typeof e==="string"?e:e.href;if(Lse===r)return kse;let a=yc(new URL(r,"http://example.com")),i=xAe(a),s=i.href===a.href?[a]:[a,i],l;for(let c of s){for(let d of yse){let m=new B4(d.match,c.href);if(j1(m,c)){l=d;break}}if(l)break}return Lse=r,kse=l,l}function Fse(e){let r=kAe(e);if(r&&r.exclude!==!0&&Array.isArray(r.strategy))return r.strategy;return Kq}var X4=new Map;function jse(e){return typeof e==="string"&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var CAe=()=>"Access Denied",IAe=()=>"访问被拒绝",BA=(e={},r={})=>{if((p??r.locale??n())==="zh")return IAe(e);return CAe(e)};var RAe=()=>"Action",PAe=()=>"操作",UA=(e={},r={})=>{if((p??r.locale??n())==="zh")return PAe(e);return RAe(e)};var TAe=()=>"Actions",AAe=()=>"操作",zA=(e={},r={})=>{if((p??r.locale??n())==="zh")return AAe(e);return TAe(e)};var EAe=()=>"Active",DAe=()=>"启用",jA=(e={},r={})=>{if((p??r.locale??n())==="zh")return DAe(e);return EAe(e)};var OAe=()=>"active",NAe=()=>"个激活",qA=(e={},r={})=>{if((p??r.locale??n())==="zh")return NAe(e);return OAe(e)};var FAe=()=>"Activity",jAe=()=>"活动",BAe=(e={},r={})=>{if((p??r.locale??n())==="zh")return jAe(e);return FAe(e)};var UAe=()=>"Activity Notifications",YAe=()=>"活动通知",HA=(e={},r={})=>{if((p??r.locale??n())==="zh")return YAe(e);return UAe(e)};var qAe=()=>"Receive in-app updates for comments, uploads, and automated background analysis tasks inside this project.",HAe=()=>"接收此项目中评论、上传及自动后台分析任务的应用内通知。",$A=(e={},r={})=>{if((p??r.locale??n())==="zh")return HAe(e);return qAe(e)};var VAe=()=>"Add",WAe=()=>"添加",wf=(e={},r={})=>{if((p??r.locale??n())==="zh")return WAe(e);return VAe(e)};var KAe=()=>"Add Assets",GAe=()=>"添加资产",Bse=(e={},r={})=>{if((p??r.locale??n())==="zh")return GAe(e);return KAe(e)};var XAe=()=>"+ Add condition",QAe=()=>"+ 添加条件",GA=(e={},r={})=>{if((p??r.locale??n())==="zh")return QAe(e);return XAe(e)};var JAe=()=>"Add Domain",$Ae=()=>"添加域名",VA=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ae(e);return JAe(e)};var e2e=()=>"Add your first AI provider to get started.",t2e=()=>"添加您的第一个 AI 提供商以开始使用。",QA=(e={},r={})=>{if((p??r.locale??n())==="zh")return t2e(e);return e2e(e)};var r2e=()=>"Add Image Block",o2e=()=>"添加图片块",Im=(e={},r={})=>{if((p??r.locale??n())==="zh")return o2e(e);return r2e(e)};var a2e=()=>"Add MCP Server",n2e=()=>"添加 MCP 服务",xf=(e={},r={})=>{if((p??r.locale??n())==="zh")return n2e(e);return a2e(e)};var i2e=()=>"Add an MCP server to extend your AI agent tools.",f2e=()=>"添加 MCP 服务以扩展 AI Agent 的工具能力。",KA=(e={},r={})=>{if((p??r.locale??n())==="zh")return f2e(e);return i2e(e)};var s2e=()=>"Add Members from Other Projects",l2e=()=>"从其他项目添加成员",WA=(e={},r={})=>{if((p??r.locale??n())==="zh")return l2e(e);return s2e(e)};var c2e=()=>"Project-scoped members who currently do not have access to this project.",u2e=()=>"当前无权访问此项目的项目成员。",YA=(e={},r={})=>{if((p??r.locale??n())==="zh")return u2e(e);return c2e(e)};var d2e=()=>"Add Model",Z2e=()=>"添加模型",ad=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z2e(e);return d2e(e)};var p2e=()=>"Add New Provider",m2e=()=>"添加新提供商",JA=(e={},r={})=>{if((p??r.locale??n())==="zh")return m2e(e);return p2e(e)};var h2e=()=>"Add New Skill",g2e=()=>"添加新技能",XA=(e={},r={})=>{if((p??r.locale??n())==="zh")return g2e(e);return h2e(e)};var M2e=()=>"Add option",x2e=()=>"添加选项",ld=(e={},r={})=>{if((p??r.locale??n())==="zh")return x2e(e);return M2e(e)};var v2e=(e)=>`Add options: ${e?.name}`,y2e=(e)=>`添加选项:${e?.name}`,Tm=(e,r={})=>{if((p??r.locale??n())==="zh")return y2e(e);return v2e(e)};var _2e=()=>"Add Provider",b2e=()=>"添加提供商",Mm=(e={},r={})=>{if((p??r.locale??n())==="zh")return b2e(e);return _2e(e)};var w2e=()=>"Add Quota",z2e=()=>"添加配额",km=(e={},r={})=>{if((p??r.locale??n())==="zh")return z2e(e);return w2e(e)};var S2e=()=>"Add reaction",L2e=()=>"添加回应",e0=(e={},r={})=>{if((p??r.locale??n())==="zh")return L2e(e);return S2e(e)};var k2e=()=>"Add Skill",C2e=()=>"添加技能",t0=(e={},r={})=>{if((p??r.locale??n())==="zh")return C2e(e);return k2e(e)};var I2e=()=>"Add a skill via GitHub URL or upload a ZIP file to get started.",R2e=()=>"通过 GitHub URL 添加技能或上传 ZIP 文件以开始使用。",r0=(e={},r={})=>{if((p??r.locale??n())==="zh")return R2e(e);return I2e(e)};var P2e=()=>"Customize Team Member Role",T2e=()=>"自定义团队成员在项目的角色",n0=(e={},r={})=>{if((p??r.locale??n())==="zh")return T2e(e);return P2e(e)};var A2e=()=>"Team members already have access to all projects with their default team role. Set a custom role for this specific project here.",E2e=()=>"团队成员默认使用其团队角色访问所有项目。您可以在此为其设置独立的项目角色。",o0=(e={},r={})=>{if((p??r.locale??n())==="zh")return E2e(e);return A2e(e)};var D2e=()=>"Add Text Block",O2e=()=>"添加文本块",Sf=(e={},r={})=>{if((p??r.locale??n())==="zh")return O2e(e);return D2e(e)};var N2e=()=>"Add to Project",F2e=()=>"添加到项目",s0=(e={},r={})=>{if((p??r.locale??n())==="zh")return F2e(e);return N2e(e)};var j2e=()=>"Add to Share Links",B2e=()=>"添加到分享链接",Rm=(e={},r={})=>{if((p??r.locale??n())==="zh")return B2e(e);return j2e(e)};var U2e=()=>"Add Variable",Y2e=()=>"添加变量",i0=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y2e(e);return U2e(e)};var q2e=(e)=>`Added ${e?.name} successfully`,H2e=(e)=>`已成功添加 ${e?.name}`,Pm=(e,r={})=>{if((p??r.locale??n())==="zh")return H2e(e);return q2e(e)};var V2e=()=>"Agent Avatar",W2e=()=>"智能体头像",a0=(e={},r={})=>{if((p??r.locale??n())==="zh")return W2e(e);return V2e(e)};var K2e=()=>"Agent created successfully",G2e=()=>"智能体创建成功",l0=(e={},r={})=>{if((p??r.locale??n())==="zh")return G2e(e);return K2e(e)};var X2e=()=>"Agent deleted successfully",Q2e=()=>"智能体删除成功",c0=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q2e(e);return X2e(e)};var J2e=()=>"Step-by-step execution trace of the agent's background tasks and tool calls.",$2e=()=>"智能体后台任务和工具调用的逐步执行跟踪。",u0=(e={},r={})=>{if((p??r.locale??n())==="zh")return $2e(e);return J2e(e)};var eEe=()=>"Agent Name",tEe=()=>"智能体名称",d0=(e={},r={})=>{if((p??r.locale??n())==="zh")return tEe(e);return eEe(e)};var rEe=()=>"e.g., Support Assistant",oEe=()=>"例如:支持助手",f0=(e={},r={})=>{if((p??r.locale??n())==="zh")return oEe(e);return rEe(e)};var aEe=()=>"Agent Sandbox",nEe=()=>"智能体沙箱",p0=(e={},r={})=>{if((p??r.locale??n())==="zh")return nEe(e);return aEe(e)};var iEe=()=>"Agent Sandbox Settings",fEe=()=>"智能体沙箱设置",m0=(e={},r={})=>{if((p??r.locale??n())==="zh")return fEe(e);return iEe(e)};var sEe=()=>"Agent Session Logs",lEe=()=>"智能体会话日志",h0=(e={},r={})=>{if((p??r.locale??n())==="zh")return lEe(e);return sEe(e)};var cEe=()=>"Agent Soul (Personality)",uEe=()=>"智能体灵魂(个性)",g0=(e={},r={})=>{if((p??r.locale??n())==="zh")return uEe(e);return cEe(e)};var dEe=()=>"Describe the agent's personality, tone, and behavior...",ZEe=()=>"描述智能体的个性、语调和行为...",A0=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZEe(e);return dEe(e)};var pEe=()=>"Allows the agent to run terminal/shell commands in a highly isolated environment.",mEe=()=>"允许智能体在高度隔离的环境中运行终端/命令行命令。",_0=(e={},r={})=>{if((p??r.locale??n())==="zh")return mEe(e);return pEe(e)};var hEe=()=>"Sandboxed Terminal",gEe=()=>"沙箱终端",y0=(e={},r={})=>{if((p??r.locale??n())==="zh")return gEe(e);return hEe(e)};var MEe=()=>"Allows the agent to create files in Shumai, either by uploading a local file or by providing the file name and content directly.",xEe=()=>"允许智能体在 Shumai 中创建文件,既可以通过上传本地文件,也可以直接提供文件名和内容。",b0=(e={},r={})=>{if((p??r.locale??n())==="zh")return xEe(e);return MEe(e)};var vEe=()=>"Create File",yEe=()=>"创建文件",Nm=(e={},r={})=>{if((p??r.locale??n())==="zh")return yEe(e);return vEe(e)};var _Ee=()=>"Allows the agent to create new folders in Shumai.",bEe=()=>"允许智能体在 Shumai 中创建新文件夹。",v0=(e={},r={})=>{if((p??r.locale??n())==="zh")return bEe(e);return _Ee(e)};var wEe=()=>"Create Folder",zEe=()=>"创建文件夹",Dm=(e={},r={})=>{if((p??r.locale??n())==="zh")return zEe(e);return wEe(e)};var SEe=()=>"Allows the agent to upload and stack a new version of an existing file in Shumai.",LEe=()=>"允许智能体在 Shumai 中为已有文件上传并叠加新版本。",w0=(e={},r={})=>{if((p??r.locale??n())==="zh")return LEe(e);return SEe(e)};var kEe=()=>"Create Version",CEe=()=>"创建版本",Om=(e={},r={})=>{if((p??r.locale??n())==="zh")return CEe(e);return kEe(e)};var IEe=()=>"Allows the agent to delete a single file or folder in Shumai.",REe=()=>"允许智能体在 Shumai 中删除单个文件或文件夹。",x0=(e={},r={})=>{if((p??r.locale??n())==="zh")return REe(e);return IEe(e)};var PEe=()=>"Delete Asset",TEe=()=>"删除资产",Fm=(e={},r={})=>{if((p??r.locale??n())==="zh")return TEe(e);return PEe(e)};var AEe=()=>"Allows the agent to generate images from prompts and reference images using configured AI image models.",EEe=()=>"允许智能体使用已配置的 AI 图片模型根据提示词和参考图片生成图片。",S0=(e={},r={})=>{if((p??r.locale??n())==="zh")return EEe(e);return AEe(e)};var DEe=()=>"Generate Image",OEe=()=>"生成图片",Lm=(e={},r={})=>{if((p??r.locale??n())==="zh")return OEe(e);return DEe(e)};var NEe=()=>"Allows the agent to generate videos from text, images, or frame sequences using configured AI video models.",FEe=()=>"允许智能体使用已配置的 AI 视频模型根据提示词、图片或首尾帧生成视频。",E0=(e={},r={})=>{if((p??r.locale??n())==="zh")return FEe(e);return NEe(e)};var jEe=()=>"Generate Video",BEe=()=>"生成视频",Zm=(e={},r={})=>{if((p??r.locale??n())==="zh")return BEe(e);return jEe(e)};var UEe=()=>"Allows the agent to list folders and browse files in Shumai.",YEe=()=>"允许智能体列出文件夹并浏览 Shumai 中的文件。",C0=(e={},r={})=>{if((p??r.locale??n())==="zh")return YEe(e);return UEe(e)};var qEe=()=>"Browse Shumai",HEe=()=>"浏览 Shumai",Bm=(e={},r={})=>{if((p??r.locale??n())==="zh")return HEe(e);return qEe(e)};var VEe=()=>"Allows the agent to move one or more assets to another folder in Shumai.",WEe=()=>"允许智能体将一个或多个资产移动到 Shumai 中的其他文件夹。",I0=(e={},r={})=>{if((p??r.locale??n())==="zh")return WEe(e);return VEe(e)};var KEe=()=>"Move Assets",GEe=()=>"移动资产",Um=(e={},r={})=>{if((p??r.locale??n())==="zh")return GEe(e);return KEe(e)};var XEe=()=>"Allows the agent to view and inspect images, video frames, and document pages.",QEe=()=>"允许智能体查看和分析图片、视频画面和文档页面。",T0=(e={},r={})=>{if((p??r.locale??n())==="zh")return QEe(e);return XEe(e)};var JEe=()=>"Read Asset",$Ee=()=>"读取资源",zm=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ee(e);return JEe(e)};var eDe=()=>"Allows the agent to load and read skill definitions to perform specialized actions.",tDe=()=>"允许智能体加载和读取技能定义以执行特定操作。",M0=(e={},r={})=>{if((p??r.locale??n())==="zh")return tDe(e);return eDe(e)};var rDe=()=>"Read Skills",oDe=()=>"读取技能",k0=(e={},r={})=>{if((p??r.locale??n())==="zh")return oDe(e);return rDe(e)};var aDe=()=>"Allows the agent to rename an existing file or folder in Shumai.",nDe=()=>"允许智能体在 Shumai 中重命名现有的文件或文件夹。",R0=(e={},r={})=>{if((p??r.locale??n())==="zh")return nDe(e);return aDe(e)};var iDe=()=>"Rename Asset",fDe=()=>"重命名资产",jm=(e={},r={})=>{if((p??r.locale??n())==="zh")return fDe(e);return iDe(e)};var sDe=()=>"Tools",lDe=()=>"工具",P0=(e={},r={})=>{if((p??r.locale??n())==="zh")return lDe(e);return sDe(e)};var cDe=()=>"Configure which tools the agent is permitted to use.",uDe=()=>"配置允许智能体使用的工具。",N0=(e={},r={})=>{if((p??r.locale??n())==="zh")return uDe(e);return cDe(e)};var dDe=()=>"Agent Type",ZDe=()=>"智能体类型",D0=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZDe(e);return dDe(e)};var pDe=()=>"Autofill",mDe=()=>"自动填充",qm=(e={},r={})=>{if((p??r.locale??n())==="zh")return mDe(e);return pDe(e)};var hDe=()=>"Chat",gDe=()=>"对话",Hm=(e={},r={})=>{if((p??r.locale??n())==="zh")return gDe(e);return hDe(e)};var MDe=()=>"Embedding",xDe=()=>"嵌入",$m=(e={},r={})=>{if((p??r.locale??n())==="zh")return xDe(e);return MDe(e)};var vDe=()=>"Agent updated successfully",yDe=()=>"智能体更新成功",Gm=(e={},r={})=>{if((p??r.locale??n())==="zh")return yDe(e);return vDe(e)};var _De=()=>"Agents",bDe=()=>"智能体",O0=(e={},r={})=>{if((p??r.locale??n())==="zh")return bDe(e);return _De(e)};var wDe=()=>"Manage AI agents and their personalities.",zDe=()=>"管理 AI 智能体及其个性。",F0=(e={},r={})=>{if((p??r.locale??n())==="zh")return zDe(e);return wDe(e)};var SDe=()=>"AGENTS.md",LDe=()=>"AGENTS.md",L0=(e={},r={})=>{if((p??r.locale??n())==="zh")return LDe(e);return SDe(e)};var kDe=()=>"Loading AGENTS.md...",CDe=()=>"正在加载 AGENTS.md...",Z0=(e={},r={})=>{if((p??r.locale??n())==="zh")return CDe(e);return kDe(e)};var IDe=()=>`Give AI agents instructions and context for this project or folder.
63
-
64
- Shumai automatically loads this file, along with AGENTS.md files from parent folders up to the project level, whenever an agent works here.
65
-
66
- Use it to define things like:
67
- - What this project or folder contains
68
- - Rules the agent should follow
69
- - Terminology, style, or workflow
70
- - How metadata and autofill should be generated`,RDe=()=>`为在此项目或文件夹中工作的 AI Agent 提供指引和上下文。
71
-
72
- 当 Agent 在此处工作时,Shumai 会自动加载此文件以及向上追溯至项目根目录各级父文件夹中的 AGENTS.md 文件。
73
-
74
- 您可以用它来定义:
75
- - 此项目或文件夹包含的内容
76
- - Agent 应当遵守的规则
77
- - 术语、风格或工作流规范
78
- - 元数据和自动填充的生成方式`,B0=(e={},r={})=>{if((p??r.locale??n())==="zh")return RDe(e);return IDe(e)};var PDe=()=>"Only team owners can edit this file.",TDe=()=>"只有团队所有者可以修改此文件。",Vm=(e={},r={})=>{if((p??r.locale??n())==="zh")return TDe(e);return PDe(e)};var ADe=()=>"Failed to save",EDe=()=>"保存失败",U0=(e={},r={})=>{if((p??r.locale??n())==="zh")return EDe(e);return ADe(e)};var DDe=()=>"AI",ODe=()=>"AI",z0=(e={},r={})=>{if((p??r.locale??n())==="zh")return ODe(e);return DDe(e)};var NDe=()=>"AI Agents",FDe=()=>"AI 智能体",j0=(e={},r={})=>{if((p??r.locale??n())==="zh")return FDe(e);return NDe(e)};var jDe=()=>"AI Providers",BDe=()=>"AI 提供商",q0=(e={},r={})=>{if((p??r.locale??n())==="zh")return BDe(e);return jDe(e)};var UDe=()=>"AI Token Usage",YDe=()=>"AI Token 用量",H0=(e={},r={})=>{if((p??r.locale??n())==="zh")return YDe(e);return UDe(e)};var qDe=()=>"Monitor AI token consumption and estimated costs for your team and members.",HDe=()=>"查看并监控团队及成员的 AI Token 消耗与预估费用。",$0=(e={},r={})=>{if((p??r.locale??n())==="zh")return HDe(e);return qDe(e)};var VDe=()=>"All",WDe=()=>"全部",KDe=(e={},r={})=>{if((p??r.locale??n())==="zh")return WDe(e);return VDe(e)};var GDe=()=>"All Collections",XDe=()=>"所有媒体合集",G0=(e={},r={})=>{if((p??r.locale??n())==="zh")return XDe(e);return GDe(e)};var QDe=(e)=>`All Collections (${e?.count})`,JDe=(e)=>`所有媒体合集 (${e?.count})`,$De=(e,r={})=>{if((p??r.locale??n())==="zh")return JDe(e);return QDe(e)};var eOe=()=>"All comments",tOe=()=>"所有评论",Ef=(e={},r={})=>{if((p??r.locale??n())==="zh")return tOe(e);return eOe(e)};var rOe=()=>"All",oOe=()=>"全部",V0=(e={},r={})=>{if((p??r.locale??n())==="zh")return oOe(e);return rOe(e)};var aOe=()=>"All Projects",nOe=()=>"所有项目",iOe=(e={},r={})=>{if((p??r.locale??n())==="zh")return nOe(e);return aOe(e)};var fOe=()=>"All Share Links",sOe=()=>"所有分享链接",Q0=(e={},r={})=>{if((p??r.locale??n())==="zh")return sOe(e);return fOe(e)};var lOe=(e)=>`All Share Links (${e?.count})`,cOe=(e)=>`所有分享链接 (${e?.count})`,uOe=(e,r={})=>{if((p??r.locale??n())==="zh")return cOe(e);return lOe(e)};var dOe=()=>"All Tasks",ZOe=()=>"所有任务",Qm=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZOe(e);return dOe(e)};var pOe=()=>"Allow download",mOe=()=>"允许下载",K0=(e={},r={})=>{if((p??r.locale??n())==="zh")return mOe(e);return pOe(e)};var hOe=()=>"Visitors can download files from this share link",gOe=()=>"访客可以从该分享链接下载文件",W0=(e={},r={})=>{if((p??r.locale??n())==="zh")return gOe(e);return hOe(e)};var MOe=()=>"Allowed Domains",xOe=()=>"允许的域名",Y0=(e={},r={})=>{if((p??r.locale??n())==="zh")return xOe(e);return MOe(e)};var vOe=()=>"Already have an account? ",yOe=()=>"已有账户?",Use=(e={},r={})=>{if((p??r.locale??n())==="zh")return yOe(e);return vOe(e)};var _Oe=()=>"An unknown error occurred",bOe=()=>"发生了未知错误",cd=(e={},r={})=>{if((p??r.locale??n())==="zh")return bOe(e);return _Oe(e)};var wOe=()=>"API Key",zOe=()=>"API 密钥",ud=(e={},r={})=>{if((p??r.locale??n())==="zh")return zOe(e);return wOe(e)};var SOe=()=>"You can provide a literal value (e.g. sk-...) or an Environment variable name (e.g. MY_API_KEY).",LOe=()=>"您可以提供一个字面值(例如 sk-...)或环境变量名称(例如 MY_API_KEY)。",Km=(e={},r={})=>{if((p??r.locale??n())==="zh")return LOe(e);return SOe(e)};var kOe=(e)=>`Enter an API key or an environment variable name (e.g. ${e?.envKey}). Leave empty to restore default environment variable.`,COe=(e)=>`输入 API 密钥或环境变量名(例如 ${e?.envKey})。留空将恢复默认环境变量。`,J0=(e,r={})=>{if((p??r.locale??n())==="zh")return COe(e);return kOe(e)};var IOe=(e)=>`Leave empty to use default env var (${e?.envKey})`,ROe=(e)=>`留空以使用默认环境变量 (${e?.envKey})`,X0=(e,r={})=>{if((p??r.locale??n())==="zh")return ROe(e);return IOe(e)};var POe=()=>"Enter API Key or Environment Variable",TOe=()=>"输入 API 密钥或环境变量",Wm=(e={},r={})=>{if((p??r.locale??n())==="zh")return TOe(e);return POe(e)};var AOe=()=>"API token generated successfully",EOe=()=>"API 令牌生成成功",e_=(e={},r={})=>{if((p??r.locale??n())==="zh")return EOe(e);return AOe(e)};var DOe=()=>"API token revoked successfully",OOe=()=>"API 令牌已成功撤销",t_=(e={},r={})=>{if((p??r.locale??n())==="zh")return OOe(e);return DOe(e)};var NOe=()=>"API Tokens",FOe=()=>"API 令牌",Ym=(e={},r={})=>{if((p??r.locale??n())==="zh")return FOe(e);return NOe(e)};var jOe=()=>"Generate and manage API tokens. These tokens allow you or your agents to run terminal commands via shumai-cli.",BOe=()=>"生成和管理 API 令牌。这些令牌允许您或您的智能体通过 shumai-cli 运行终端命令。",r_=(e={},r={})=>{if((p??r.locale??n())==="zh")return BOe(e);return jOe(e)};var UOe=()=>"Appearance",YOe=()=>"外观",Cf=(e={},r={})=>{if((p??r.locale??n())==="zh")return YOe(e);return UOe(e)};var qOe=()=>"Appearance",HOe=()=>"外观",Jm=(e={},r={})=>{if((p??r.locale??n())==="zh")return HOe(e);return qOe(e)};var VOe=()=>"Manage visual appearance and interface display settings for your team.",WOe=()=>"管理团队的视觉外观与界面显示设置。",Xm=(e={},r={})=>{if((p??r.locale??n())==="zh")return WOe(e);return VOe(e)};var KOe=()=>"Appearance settings updated",GOe=()=>"外观设置已更新",n_=(e={},r={})=>{if((p??r.locale??n())==="zh")return GOe(e);return KOe(e)};var XOe=()=>"Apply and Close",QOe=()=>"应用并关闭",o_=(e={},r={})=>{if((p??r.locale??n())==="zh")return QOe(e);return XOe(e)};var JOe=()=>"Approve",$Oe=()=>"批准",s_=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Oe(e);return JOe(e)};var eNe=()=>"Are you absolutely sure?",tNe=()=>"你确定要这样做吗?",dd=(e={},r={})=>{if((p??r.locale??n())==="zh")return tNe(e);return eNe(e)};var rNe=()=>"Are you absolutely sure?",oNe=()=>"确定要执行此操作吗?",i_=(e={},r={})=>{if((p??r.locale??n())==="zh")return oNe(e);return rNe(e)};var aNe=()=>"Ascending",nNe=()=>"升序",If=(e={},r={})=>{if((p??r.locale??n())==="zh")return nNe(e);return aNe(e)};var iNe=()=>"Asset linked to task",fNe=()=>"资产已关联到任务",Yse=(e={},r={})=>{if((p??r.locale??n())==="zh")return fNe(e);return iNe(e)};var sNe=()=>"Asset unlinked from task",lNe=()=>"资产已取消关联",qse=(e={},r={})=>{if((p??r.locale??n())==="zh")return lNe(e);return sNe(e)};var cNe=()=>"Assets",uNe=()=>"资源",a_=(e={},r={})=>{if((p??r.locale??n())==="zh")return uNe(e);return cNe(e)};var dNe=()=>"Assets added to context:",ZNe=()=>"已添加至上下文的资源:",l_=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZNe(e);return dNe(e)};var pNe=()=>"Assets & Statuses",mNe=()=>"素材与状态",c_=(e={},r={})=>{if((p??r.locale??n())==="zh")return mNe(e);return pNe(e)};var hNe=()=>"Manage notifications related to file uploads and metadata field status updates.",gNe=()=>"管理与文件上传和元数据字段状态更新相关的通知。",u_=(e={},r={})=>{if((p??r.locale??n())==="zh")return gNe(e);return hNe(e)};var MNe=()=>"Assignee",xNe=()=>"负责人",eh=(e={},r={})=>{if((p??r.locale??n())==="zh")return xNe(e);return MNe(e)};var vNe=()=>"@Mentions",yNe=()=>"@提及",d_=(e={},r={})=>{if((p??r.locale??n())==="zh")return yNe(e);return vNe(e)};var _Ne=()=>"Attach files",bNe=()=>"附加文件",f_=(e={},r={})=>{if((p??r.locale??n())==="zh")return bNe(e);return _Ne(e)};var wNe=()=>"Attachments",zNe=()=>"附件",p_=(e={},r={})=>{if((p??r.locale??n())==="zh")return zNe(e);return wNe(e)};var SNe=()=>"Audit Logs",LNe=()=>"审计日志",Tf=(e={},r={})=>{if((p??r.locale??n())==="zh")return LNe(e);return SNe(e)};var kNe=()=>"View and monitor all audit logs of team actions.",CNe=()=>"查看并监控团队操作的所有审计日志。",m_=(e={},r={})=>{if((p??r.locale??n())==="zh")return CNe(e);return kNe(e)};var INe=()=>"Join our community of developers and designers.",RNe=()=>"加入我们的开发者和设计师社区。",PNe=(e={},r={})=>{if((p??r.locale??n())==="zh")return RNe(e);return INe(e)};var TNe=()=>"Upload and index your files, enrich them with custom metadata schemas, draw annotations directly on media, and gather instant feedback — all in one modern workspace built for creators.",ANe=()=>"上传您的创意资产,添加各种类型的自定义元数据,直接在图片或视频上绘制标注和添加评论,——这一切都在Shumai,一个为创作者打造的一站式平台上完成。",ENe=(e={},r={})=>{if((p??r.locale??n())==="zh")return ANe(e);return TNe(e)};var DNe=()=>"Custom metadata schemas & drawing canvas reviews",ONe=()=>"自定义元数据模式 & 画布标注审阅",NNe=(e={},r={})=>{if((p??r.locale??n())==="zh")return ONe(e);return DNe(e)};var FNe=()=>"Frictionless team workspaces & secure sharing",jNe=()=>"无缝团队工作区 & 安全分享",BNe=(e={},r={})=>{if((p??r.locale??n())==="zh")return jNe(e);return FNe(e)};var UNe=()=>"Instant asset uploads & high-fidelity media players",YNe=()=>"即时资产上传 & 高保真媒体播放器",qNe=(e={},r={})=>{if((p??r.locale??n())==="zh")return YNe(e);return UNe(e)};var HNe=()=>"One workspace for all your creative assets.",VNe=()=>"一站式创意资产管理协作平台。",WNe=(e={},r={})=>{if((p??r.locale??n())==="zh")return VNe(e);return HNe(e)};var KNe=()=>"Autofill Agent",GNe=()=>"自动填充智能体",h_=(e={},r={})=>{if((p??r.locale??n())==="zh")return GNe(e);return KNe(e)};var XNe=()=>"Autofill Source",QNe=()=>"自动填充来源",fd=(e={},r={})=>{if((p??r.locale??n())==="zh")return QNe(e);return XNe(e)};var JNe=()=>"Content",$Ne=()=>"文件内容",Dc=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ne(e);return JNe(e)};var e5e=()=>"Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first create and enable an Autofill Agent in team settings for content extraction to run.",t5e=()=>"设置为“文件内容”的字段将在文件上传后,由 AI 自动分析并从文件的视觉或文本内容中提取填写。注意:需要团队 Owner 先在设置中创建并启用“Autofill Agent”(自动填充 Agent),上传后才会触发内容提取。",g_=(e={},r={})=>{if((p??r.locale??n())==="zh")return t5e(e);return e5e(e)};var r5e=()=>"Example: Image subject category, visual color palette, document summary, auto-detected language.",o5e=()=>"示例:图片类别、主色调、文档摘要、自动识别语言。",A_=(e={},r={})=>{if((p??r.locale??n())==="zh")return o5e(e);return r5e(e)};var a5e=()=>"Creation Context",n5e=()=>"创建上下文",Oc=(e={},r={})=>{if((p??r.locale??n())==="zh")return n5e(e);return a5e(e)};var i5e=()=>"Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a Shumai AI Agent, the agent will automatically populate these fields upon creation (without needing an Autofill Agent enabled). If uploaded manually by a human user, the user must enter these values manually.",f5e=()=>"设置为“创建上下文”的字段用于记录生成资产时的上下文信息(如 Prompt、模型或供应商)。若文件由 Shumai AI Agent 生成/创建,Agent 会在创建时刻自动填入这些字段(无需启用 Autofill Agent);若由真实用户手动上传,则需用户手动填写,不会自动提取。",__=(e={},r={})=>{if((p??r.locale??n())==="zh")return f5e(e);return i5e(e)};var s5e=()=>"Example: Generation prompt, AI model name, LLM provider, sampler seed parameters.",l5e=()=>"示例:生成 Prompt、AI 模型名称、LLM 供应商、采样种子参数。",y_=(e={},r={})=>{if((p??r.locale??n())==="zh")return l5e(e);return s5e(e)};var c5e=()=>"Understand how each autofill source option works and when to use it.",u5e=()=>"了解每种自动填充来源的工作方式及适用场景。",b_=(e={},r={})=>{if((p??r.locale??n())==="zh")return u5e(e);return c5e(e)};var d5e=()=>"Autofill Source Guide",Z5e=()=>"自动填充来源说明",Mf=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z5e(e);return d5e(e)};var p5e=()=>"None",m5e=()=>"无",Fc=(e={},r={})=>{if((p??r.locale??n())==="zh")return m5e(e);return p5e(e)};var h5e=()=>"Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry.",g5e=()=>"设置为“无”的字段不会由 AI 自动填充,需由用户手动填写。",v_=(e={},r={})=>{if((p??r.locale??n())==="zh")return g5e(e);return h5e(e)};var M5e=()=>"Example: Internal tags, manual notes, status tracking flags.",x5e=()=>"示例:内部标签、手动备注、状态标记。",w_=(e={},r={})=>{if((p??r.locale??n())==="zh")return x5e(e);return M5e(e)};var v5e=()=>"Avatar",y5e=()=>"头像",x_=(e={},r={})=>{if((p??r.locale??n())==="zh")return y5e(e);return v5e(e)};var _5e=()=>"Avatar removed successfully",b5e=()=>"头像已移除",S_=(e={},r={})=>{if((p??r.locale??n())==="zh")return b5e(e);return _5e(e)};var w5e=()=>"Avatar Source",z5e=()=>"头像来源",E_=(e={},r={})=>{if((p??r.locale??n())==="zh")return z5e(e);return w5e(e)};var S5e=()=>"Avatar updated successfully",L5e=()=>"头像更新成功",C_=(e={},r={})=>{if((p??r.locale??n())==="zh")return L5e(e);return S5e(e)};var k5e=()=>"Back to Chat",C5e=()=>"返回聊天",I_=(e={},r={})=>{if((p??r.locale??n())==="zh")return C5e(e);return k5e(e)};var I5e=()=>"Base URL (Optional)",R5e=()=>"基础 URL(可选)",th=(e={},r={})=>{if((p??r.locale??n())==="zh")return R5e(e);return I5e(e)};var P5e=()=>"Bash Match Wildcard",T5e=()=>"Bash 命令通配符",T_=(e={},r={})=>{if((p??r.locale??n())==="zh")return T5e(e);return P5e(e)};var A5e=()=>"e.g. * or npm*",E5e=()=>"例如 * 或 npm*",M_=(e={},r={})=>{if((p??r.locale??n())==="zh")return E5e(e);return A5e(e)};var D5e=()=>"Best match",O5e=()=>"最佳匹配",k_=(e={},r={})=>{if((p??r.locale??n())==="zh")return O5e(e);return D5e(e)};var N5e=()=>"Generates a single optimal resolution matching the source quality.",F5e=()=>"生成与源质量匹配的单一最优分辨率。",R_=(e={},r={})=>{if((p??r.locale??n())==="zh")return F5e(e);return N5e(e)};var j5e=()=>"Cache Read Cost (1M)",B5e=()=>"缓存读取成本(每百万)",P_=(e={},r={})=>{if((p??r.locale??n())==="zh")return B5e(e);return j5e(e)};var U5e=()=>"Cache Read Tokens",Y5e=()=>"缓存读取 Token",rh=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y5e(e);return U5e(e)};var q5e=()=>"Cache Write Cost (1M)",H5e=()=>"缓存写入成本(每百万)",N_=(e={},r={})=>{if((p??r.locale??n())==="zh")return H5e(e);return q5e(e)};var V5e=()=>"Calling Tool:",W5e=()=>"调用工具:",kf=(e={},r={})=>{if((p??r.locale??n())==="zh")return W5e(e);return V5e(e)};var K5e=()=>"Cancel",G5e=()=>"取消",De=(e={},r={})=>{if((p??r.locale??n())==="zh")return G5e(e);return K5e(e)};var X5e=()=>"Only team owners, task reporters, or assignees can change task status",Q5e=()=>"只有负责人、报告人或被指派人可以更改任务状态",D_=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q5e(e);return X5e(e)};var J5e=()=>"Change",$5e=()=>"更改",O_=(e={},r={})=>{if((p??r.locale??n())==="zh")return $5e(e);return J5e(e)};var e4e=()=>"Change time format",t4e=()=>"更改时间格式",F_=(e={},r={})=>{if((p??r.locale??n())==="zh")return t4e(e);return e4e(e)};var r4e=()=>"Chat Agents",o4e=()=>"对话智能体",L_=(e={},r={})=>{if((p??r.locale??n())==="zh")return o4e(e);return r4e(e)};var a4e=()=>"Drag and drop files or folders here to add them to chatbot context",n4e=()=>"拖拽文件或文件夹到此处以添加到聊天机器人上下文",nh=(e={},r={})=>{if((p??r.locale??n())==="zh")return n4e(e);return a4e(e)};var i4e=()=>"简体中文 (Chinese)",f4e=()=>"简体中文 (Chinese)",Z_=(e={},r={})=>{if((p??r.locale??n())==="zh")return f4e(e);return i4e(e)};var s4e=()=>"Clear Custom Key",l4e=()=>"清除自定义密钥",B_=(e={},r={})=>{if((p??r.locale??n())==="zh")return l4e(e);return s4e(e)};var c4e=()=>"Clear",u4e=()=>"清除",U_=(e={},r={})=>{if((p??r.locale??n())==="zh")return u4e(e);return c4e(e)};var d4e=()=>"Clear search",Z4e=()=>"清除搜索",z_=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z4e(e);return d4e(e)};var p4e=()=>"Click to copy link",m4e=()=>"点击复制链接",j_=(e={},r={})=>{if((p??r.locale??n())==="zh")return m4e(e);return p4e(e)};var h4e=()=>"Close",g4e=()=>"关闭",Lc=(e={},r={})=>{if((p??r.locale??n())==="zh")return g4e(e);return h4e(e)};var M4e=()=>"collection",x4e=()=>"媒体合集",v4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return x4e(e);return M4e(e)};var y4e=()=>"Collection created",_4e=()=>"媒体合集已创建",b4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return _4e(e);return y4e(e)};var w4e=()=>"Collection deleted",z4e=()=>"媒体合集已删除",S4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return z4e(e);return w4e(e)};var L4e=()=>"Collection Name",k4e=()=>"媒体合集名称",q_=(e={},r={})=>{if((p??r.locale??n())==="zh")return k4e(e);return L4e(e)};var C4e=()=>"Collection renamed",I4e=()=>"媒体合集已重命名",R4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return I4e(e);return C4e(e)};var P4e=()=>"Collection saved",T4e=()=>"媒体合集已保存",H_=(e={},r={})=>{if((p??r.locale??n())==="zh")return T4e(e);return P4e(e)};var A4e=()=>"Collections",E4e=()=>"媒体合集",D4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return E4e(e);return A4e(e)};var O4e=()=>"Color",N4e=()=>"颜色",$_=(e={},r={})=>{if((p??r.locale??n())==="zh")return N4e(e);return O4e(e)};var F4e=()=>"Write a comment...",j4e=()=>"写下评论...",B4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return j4e(e);return F4e(e)};var U4e=()=>"Comment Replies",Y4e=()=>"评论回复",G_=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y4e(e);return U4e(e)};var q4e=()=>"Comments",H4e=()=>"评论",pd=(e={},r={})=>{if((p??r.locale??n())==="zh")return H4e(e);return q4e(e)};var V4e=()=>"Comments & Replies",W4e=()=>"评论与回复",V_=(e={},r={})=>{if((p??r.locale??n())==="zh")return W4e(e);return V4e(e)};var K4e=()=>"Control notification preferences when other users comment on assets you collaborate on or mention you.",G4e=()=>"控制其他用户对您协作的素材评论或提及您时的通知偏好。",Q_=(e={},r={})=>{if((p??r.locale??n())==="zh")return G4e(e);return K4e(e)};var X4e=()=>"Compare Versions",Q4e=()=>"对比版本",J4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q4e(e);return X4e(e)};var $4e=()=>"Configure your AI agent's personality and capabilities.",eFe=()=>"配置 AI 智能体的个性和功能。",K_=(e={},r={})=>{if((p??r.locale??n())==="zh")return eFe(e);return $4e(e)};var tFe=()=>"Configure your new project workspace and appearance.",rFe=()=>"配置您的新项目工作区和外观。",W_=(e={},r={})=>{if((p??r.locale??n())==="zh")return rFe(e);return tFe(e)};var oFe=()=>"Configure authentication and model details for your AI provider.",aFe=()=>"配置 AI 提供商的身份验证和模型详情。",oh=(e={},r={})=>{if((p??r.locale??n())==="zh")return aFe(e);return oFe(e)};var nFe=(e)=>`Configure Skill: ${e?.name}`,iFe=(e)=>`配置技能:${e?.name}`,Y_=(e,r={})=>{if((p??r.locale??n())==="zh")return iFe(e);return nFe(e)};var fFe=()=>"Configured AI Providers",sFe=()=>"已配置的 AI 提供商",J_=(e={},r={})=>{if((p??r.locale??n())==="zh")return sFe(e);return fFe(e)};var lFe=()=>"Confirm",cFe=()=>"确认",na=(e={},r={})=>{if((p??r.locale??n())==="zh")return cFe(e);return lFe(e)};var uFe=()=>"Are you sure you want to delete this field?",dFe=()=>"确定要删除此字段吗?",X_=(e={},r={})=>{if((p??r.locale??n())==="zh")return dFe(e);return uFe(e)};var ZFe=()=>"Confirm Download",pFe=()=>"确认下载",sh=(e={},r={})=>{if((p??r.locale??n())==="zh")return pFe(e);return ZFe(e)};var mFe=()=>"Confirm Password",hFe=()=>"确认密码",ey=(e={},r={})=>{if((p??r.locale??n())==="zh")return hFe(e);return mFe(e)};var gFe=()=>"Confirm new password",MFe=()=>"确认新密码",ty=(e={},r={})=>{if((p??r.locale??n())==="zh")return MFe(e);return gFe(e)};var xFe=()=>"Contains drawing annotations",vFe=()=>"包含标注绘图",ry=(e={},r={})=>{if((p??r.locale??n())==="zh")return vFe(e);return xFe(e)};var yFe=()=>"Context Window (tokens)",_Fe=()=>"上下文窗口(令牌数)",ny=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Fe(e);return yFe(e)};var bFe=()=>"Copied!",wFe=()=>"已复制!",oy=(e={},r={})=>{if((p??r.locale??n())==="zh")return wFe(e);return bFe(e)};var zFe=()=>"Copied API token to clipboard",SFe=()=>"已将 API 令牌复制到剪贴板",sy=(e={},r={})=>{if((p??r.locale??n())==="zh")return SFe(e);return zFe(e)};var LFe=()=>"Copied name and download link to clipboard",kFe=()=>"已复制名称和下载链接到剪贴板",iy=(e={},r={})=>{if((p??r.locale??n())==="zh")return kFe(e);return LFe(e)};var CFe=()=>"Copied to clipboard",IFe=()=>"已复制到剪贴板",ay=(e={},r={})=>{if((p??r.locale??n())==="zh")return IFe(e);return CFe(e)};var RFe=()=>"Copy",PFe=()=>"复制",ly=(e={},r={})=>{if((p??r.locale??n())==="zh")return PFe(e);return RFe(e)};var TFe=()=>"Copy optimized image to clipboard",AFe=()=>"复制优化图片到剪贴板",cy=(e={},r={})=>{if((p??r.locale??n())==="zh")return AFe(e);return TFe(e)};var EFe=()=>"Copy Link",DFe=()=>"复制链接",uy=(e={},r={})=>{if((p??r.locale??n())==="zh")return DFe(e);return EFe(e)};var OFe=()=>"Copy name and download link",NFe=()=>"复制名称和下载链接",Rf=(e={},r={})=>{if((p??r.locale??n())==="zh")return NFe(e);return OFe(e)};var FFe=()=>"Copy to",jFe=()=>"复制到",ih=(e={},r={})=>{if((p??r.locale??n())==="zh")return jFe(e);return FFe(e)};var BFe=()=>"Cost",UFe=()=>"费用",ah=(e={},r={})=>{if((p??r.locale??n())==="zh")return UFe(e);return BFe(e)};var YFe=(e)=>`$${e?.input}/1M in · $${e?.output}/1M out`,qFe=(e)=>`$${e?.input}/1M 输入 · $${e?.output}/1M 输出`,lh=(e,r={})=>{if((p??r.locale??n())==="zh")return qFe(e);return YFe(e)};var HFe=()=>"10000+ Assets",VFe=()=>"10000+ 资源",dy=(e={},r={})=>{if((p??r.locale??n())==="zh")return VFe(e);return HFe(e)};var WFe=()=>"10000+ Folders",KFe=()=>"10000+ 文件夹",fy=(e={},r={})=>{if((p??r.locale??n())==="zh")return KFe(e);return WFe(e)};var GFe=()=>"Cover Preview",XFe=()=>"封面预览",py=(e={},r={})=>{if((p??r.locale??n())==="zh")return XFe(e);return GFe(e)};var QFe=()=>"Create",JFe=()=>"创建",Zc=(e={},r={})=>{if((p??r.locale??n())==="zh")return JFe(e);return QFe(e)};var $Fe=()=>"Create Account",e3e=()=>"创建账户",t3e=(e={},r={})=>{if((p??r.locale??n())==="zh")return e3e(e);return $Fe(e)};var r3e=()=>"Create Agent",o3e=()=>"创建智能体",my=(e={},r={})=>{if((p??r.locale??n())==="zh")return o3e(e);return r3e(e)};var a3e=()=>"Create your first goal to organize related tasks.",n3e=()=>"创建第一个目标来组织相关任务。",hy=(e={},r={})=>{if((p??r.locale??n())==="zh")return n3e(e);return a3e(e)};var i3e=()=>"Create Goal",f3e=()=>"创建目标",gy=(e={},r={})=>{if((p??r.locale??n())==="zh")return f3e(e);return i3e(e)};var s3e=()=>"Create New Project",l3e=()=>"创建新项目",Ay=(e={},r={})=>{if((p??r.locale??n())==="zh")return l3e(e);return s3e(e)};var c3e=()=>"Create New Template",u3e=()=>"创建新模板",ch=(e={},r={})=>{if((p??r.locale??n())==="zh")return u3e(e);return c3e(e)};var d3e=()=>"Create new version",Z3e=()=>"创建新版本",_y=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z3e(e);return d3e(e)};var p3e=()=>"Create one now",m3e=()=>"立即创建",yy=(e={},r={})=>{if((p??r.locale??n())==="zh")return m3e(e);return p3e(e)};var h3e=()=>"Create Project",g3e=()=>"创建项目",Pf=(e={},r={})=>{if((p??r.locale??n())==="zh")return g3e(e);return h3e(e)};var M3e=()=>"Create Quota Rule",x3e=()=>"创建配额规则",by=(e={},r={})=>{if((p??r.locale??n())==="zh")return x3e(e);return M3e(e)};var v3e=()=>"Set up a new resource quota to prevent unexpected usage.",y3e=()=>"设置新的资源配额以防止意外的超量使用。",vy=(e={},r={})=>{if((p??r.locale??n())==="zh")return y3e(e);return v3e(e)};var _3e=()=>"Create Share Link",b3e=()=>"创建分享链接",uh=(e={},r={})=>{if((p??r.locale??n())==="zh")return b3e(e);return _3e(e)};var w3e=()=>"Create Task",z3e=()=>"创建任务",Nf=(e={},r={})=>{if((p??r.locale??n())==="zh")return z3e(e);return w3e(e)};var S3e=()=>"Create Time",L3e=()=>"创建时间",wy=(e={},r={})=>{if((p??r.locale??n())==="zh")return L3e(e);return S3e(e)};var k3e=(e)=>`Create ${e?.type} Agent`,C3e=(e)=>`创建${e?.type}智能体`,xy=(e,r={})=>{if((p??r.locale??n())==="zh")return C3e(e);return k3e(e)};var I3e=()=>"Created At",R3e=()=>"创建时间",Sy=(e={},r={})=>{if((p??r.locale??n())==="zh")return R3e(e);return I3e(e)};var P3e=()=>"Created by Agent",T3e=()=>"由智能体创建",Ey=(e={},r={})=>{if((p??r.locale??n())==="zh")return T3e(e);return P3e(e)};var A3e=(e)=>`${e?.time} by ${e?.author}`,E3e=(e)=>`${e?.time} 由 ${e?.author} 创建`,Cy=(e,r={})=>{if((p??r.locale??n())==="zh")return E3e(e);return A3e(e)};var D3e=()=>"Created Date",O3e=()=>"创建日期",Df=(e={},r={})=>{if((p??r.locale??n())==="zh")return O3e(e);return D3e(e)};var N3e=()=>"Creating account...",F3e=()=>"创建账户中...",j3e=(e={},r={})=>{if((p??r.locale??n())==="zh")return F3e(e);return N3e(e)};var B3e=()=>"Creator",U3e=()=>"创建者",Bc=(e={},r={})=>{if((p??r.locale??n())==="zh")return U3e(e);return B3e(e)};var Y3e=()=>"Current Custom Avatar",q3e=()=>"当前自定义头像",Iy=(e={},r={})=>{if((p??r.locale??n())==="zh")return q3e(e);return Y3e(e)};var H3e=()=>"Current Project",V3e=()=>"当前项目",W3e=(e={},r={})=>{if((p??r.locale??n())==="zh")return V3e(e);return H3e(e)};var K3e=()=>"Custom Fields",G3e=()=>"自定义字段",Ty=(e={},r={})=>{if((p??r.locale??n())==="zh")return G3e(e);return K3e(e)};var X3e=()=>"Custom Model...",Q3e=()=>"自定义模型...",My=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q3e(e);return X3e(e)};var J3e=()=>"Dark",$3e=()=>"深色",eje=(e={},r={})=>{if((p??r.locale??n())==="zh")return $3e(e);return J3e(e)};var tje=()=>"Dashboard",rje=()=>"仪表板",dh=(e={},r={})=>{if((p??r.locale??n())==="zh")return rje(e);return tje(e)};var oje=()=>"MMMM d, yyyy",aje=()=>"yyyy年M月d日",nje=(e={},r={})=>{if((p??r.locale??n())==="zh")return aje(e);return oje(e)};var ije=()=>"One month ago",fje=()=>"一个月前",ky=(e={},r={})=>{if((p??r.locale??n())==="zh")return fje(e);return ije(e)};var sje=()=>"One month from now",lje=()=>"一个月后",Ry=(e={},r={})=>{if((p??r.locale??n())==="zh")return lje(e);return sje(e)};var cje=()=>"One week ago",uje=()=>"一周前",Py=(e={},r={})=>{if((p??r.locale??n())==="zh")return uje(e);return cje(e)};var dje=()=>"One week from now",Zje=()=>"一周后",Ny=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zje(e);return dje(e)};var pje=()=>"Today",mje=()=>"今天",Dy=(e={},r={})=>{if((p??r.locale??n())==="zh")return mje(e);return pje(e)};var hje=()=>"Tomorrow",gje=()=>"明天",Oy=(e={},r={})=>{if((p??r.locale??n())==="zh")return gje(e);return hje(e)};var Mje=()=>"Date type",xje=()=>"日期类型",Fy=(e={},r={})=>{if((p??r.locale??n())==="zh")return xje(e);return Mje(e)};var vje=()=>"Yesterday",yje=()=>"昨天",Ly=(e={},r={})=>{if((p??r.locale??n())==="zh")return yje(e);return vje(e)};var _je=(e)=>`${e?.count}d`,bje=(e)=>`${e?.count}天`,fh=(e,r={})=>{if((p??r.locale??n())==="zh")return bje(e);return _je(e)};var wje=(e)=>`Default: ${e?.envKey}`,zje=(e)=>`默认:${e?.envKey}`,Zy=(e,r={})=>{if((p??r.locale??n())==="zh")return zje(e);return wje(e)};var Sje=()=>"Default Value",Lje=()=>"默认值",By=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lje(e);return Sje(e)};var kje=()=>"Delete",Cje=()=>"删除",at=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cje(e);return kje(e)};var Ije=()=>"Delete Agent",Rje=()=>"删除智能体",Uy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rje(e);return Ije(e)};var Pje=(e)=>`This action cannot be undone. This will permanently delete the agent "${e?.name}" and remove all its data from our servers.`,Tje=(e)=>`此操作无法撤销。这将永久删除智能体 "${e?.name}" 并从服务器上删除其所有数据。`,zy=(e,r={})=>{if((p??r.locale??n())==="zh")return Tje(e);return Pje(e)};var Aje=()=>"Deleted items can be recovered for 30 days before being permanently deleted.",Eje=()=>"已删除的项目可在 30 天内恢复,之后将被永久删除。",Uc=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eje(e);return Aje(e)};var Dje=()=>"Delete Asset?",Oje=()=>"删除资源?",zc=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oje(e);return Dje(e)};var Nje=()=>"Delete Collection?",Fje=()=>"删除媒体合集?",jje=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fje(e);return Nje(e)};var Bje=()=>"Delete Comment?",Uje=()=>"删除评论?",ph=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uje(e);return Bje(e)};var Yje=()=>"Are you sure you want to delete this comment? This action cannot be undone.",qje=()=>"您确定要删除这条评论吗?此操作将无法撤回。",mh=(e={},r={})=>{if((p??r.locale??n())==="zh")return qje(e);return Yje(e)};var Hje=(e)=>`Are you sure you want to delete this ${e?.type}? This action cannot be undone.`,Vje=(e)=>`确定要删除此${e?.type}吗?此操作无法撤销。`,Wje=(e,r={})=>{if((p??r.locale??n())==="zh")return Vje(e);return Hje(e)};var Kje=()=>"Delete field",Gje=()=>"删除字段",jy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gje(e);return Kje(e)};var Xje=()=>"Delete Folder?",Qje=()=>"删除文件夹?",Jje=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qje(e);return Xje(e)};var $je=()=>"Delete Goal",eBe=()=>"删除目标",qy=(e={},r={})=>{if((p??r.locale??n())==="zh")return eBe(e);return $je(e)};var tBe=(e)=>`Are you sure you want to delete goal "${e?.title}"? Associated tasks will remain but will no longer be linked to this goal.`,rBe=(e)=>`确定要删除目标"${e?.title}"吗?关联的任务仍将保留,但不再关联此目标。`,Hy=(e,r={})=>{if((p??r.locale??n())==="zh")return rBe(e);return tBe(e)};var oBe=()=>"Delete MCP Server",aBe=()=>"删除 MCP 服务",$y=(e={},r={})=>{if((p??r.locale??n())==="zh")return aBe(e);return oBe(e)};var nBe=(e)=>`This action cannot be undone. This will permanently delete the MCP server "${e?.name}".`,iBe=(e)=>`此操作无法撤销。这将永久删除 MCP 服务 "${e?.name}"。`,Gy=(e,r={})=>{if((p??r.locale??n())==="zh")return iBe(e);return nBe(e)};var fBe=(e)=>`This action cannot be undone. This will permanently delete the model "${e?.name}".`,sBe=(e)=>`此操作无法撤销。这将永久删除模型 "${e?.name}"。`,Vy=(e,r={})=>{if((p??r.locale??n())==="zh")return sBe(e);return fBe(e)};var lBe=()=>"delete",cBe=()=>"delete",Qy=(e={},r={})=>{if((p??r.locale??n())==="zh")return cBe(e);return lBe(e)};var uBe=(e)=>`This action cannot be undone. This will permanently delete the project "${e?.name}" and all its assets.`,dBe=(e)=>`此操作无法撤销。这将永久删除项目 "${e?.name}" 及其所有资产。`,Ky=(e,r={})=>{if((p??r.locale??n())==="zh")return dBe(e);return uBe(e)};var ZBe=(e)=>`This action cannot be undone. This will permanently delete the provider "${e?.name}" and all associated model configurations.`,pBe=(e)=>`此操作无法撤销。这将永久删除提供商 "${e?.name}" 及所有关联的模型配置。`,Wy=(e,r={})=>{if((p??r.locale??n())==="zh")return pBe(e);return ZBe(e)};var mBe=()=>"Delete Quota",hBe=()=>"删除配额",Of=(e={},r={})=>{if((p??r.locale??n())==="zh")return hBe(e);return mBe(e)};var gBe=()=>"Are you sure you want to delete this quota rule? This action cannot be undone.",MBe=()=>"确定要删除此配额规则吗?此操作无法撤销。",hh=(e={},r={})=>{if((p??r.locale??n())==="zh")return MBe(e);return gBe(e)};var xBe=()=>"Delete Session",vBe=()=>"删除会话",Yy=(e={},r={})=>{if((p??r.locale??n())==="zh")return vBe(e);return xBe(e)};var yBe=()=>"Are you sure you want to delete this chat session?",_Be=()=>"您确定要删除此会话记录吗?",Jy=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Be(e);return yBe(e)};var bBe=()=>"Delete Share Link?",wBe=()=>"删除分享链接?",zBe=(e={},r={})=>{if((p??r.locale??n())==="zh")return wBe(e);return bBe(e)};var SBe=(e)=>`This action cannot be undone. This will permanently delete the skill "${e?.name}" and all its configurations.`,LBe=(e)=>`此操作无法撤销。这将永久删除技能 "${e?.name}" 及其所有配置。`,Xy=(e,r={})=>{if((p??r.locale??n())==="zh")return LBe(e);return SBe(e)};var kBe=()=>"Delete Task",CBe=()=>"删除任务",eb=(e={},r={})=>{if((p??r.locale??n())==="zh")return CBe(e);return kBe(e)};var IBe=(e)=>`Are you sure you want to delete task "${e?.title}"? This action cannot be undone.`,RBe=(e)=>`确定要删除任务"${e?.title}"吗?此操作无法撤销。`,tb=(e,r={})=>{if((p??r.locale??n())==="zh")return RBe(e);return IBe(e)};var PBe=()=>"Deleted",TBe=()=>"已删除",rb=(e={},r={})=>{if((p??r.locale??n())==="zh")return TBe(e);return PBe(e)};var ABe=()=>"Deleting...",EBe=()=>"删除中...",nb=(e={},r={})=>{if((p??r.locale??n())==="zh")return EBe(e);return ABe(e)};var DBe=()=>"Demo Access:",OBe=()=>"演示访问:",NBe=(e={},r={})=>{if((p??r.locale??n())==="zh")return OBe(e);return DBe(e)};var FBe=()=>'This demo account is a read-only "Reviewer" role user.',jBe=()=>'该演示账户为只读 "Reviewer" 角色用户。',BBe=(e={},r={})=>{if((p??r.locale??n())==="zh")return jBe(e);return FBe(e)};var UBe=()=>"Descending",YBe=()=>"降序",Ff=(e={},r={})=>{if((p??r.locale??n())==="zh")return YBe(e);return UBe(e)};var qBe=()=>"Description",HBe=()=>"描述",yl=(e={},r={})=>{if((p??r.locale??n())==="zh")return HBe(e);return qBe(e)};var VBe=()=>"Optional, used for AI autofill",WBe=()=>"可选,用于 AI 自动填充",md=(e={},r={})=>{if((p??r.locale??n())==="zh")return WBe(e);return VBe(e)};var KBe=()=>"Generate and manage API keys for developers and automated workflows.",GBe=()=>"为开发者和自动化工作流生成和管理 API 密钥。",ob=(e={},r={})=>{if((p??r.locale??n())==="zh")return GBe(e);return KBe(e)};var XBe=()=>"Developer Settings",QBe=()=>"开发者设置",sb=(e={},r={})=>{if((p??r.locale??n())==="zh")return QBe(e);return XBe(e)};var JBe=()=>"Disable Timestamp",$Be=()=>"禁用时间戳",ib=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Be(e);return JBe(e)};var e6e=()=>"Disabled",t6e=()=>"已禁用",Lf=(e={},r={})=>{if((p??r.locale??n())==="zh")return t6e(e);return e6e(e)};var r6e=()=>"Display Name (Optional)",o6e=()=>"显示名称(可选)",ab=(e={},r={})=>{if((p??r.locale??n())==="zh")return o6e(e);return r6e(e)};var a6e=()=>"Domain already exists",n6e=()=>"域名已存在",lb=(e={},r={})=>{if((p??r.locale??n())==="zh")return n6e(e);return a6e(e)};var i6e=()=>"Done",f6e=()=>"完成",s6e=(e={},r={})=>{if((p??r.locale??n())==="zh")return f6e(e);return i6e(e)};var l6e=()=>"Download",c6e=()=>"下载",hr=(e={},r={})=>{if((p??r.locale??n())==="zh")return c6e(e);return l6e(e)};var u6e=(e)=>`This download will include ${e?.count} file(s).`,d6e=(e)=>`此下载将包含 ${e?.count} 个文件。`,gh=(e,r={})=>{if((p??r.locale??n())==="zh")return d6e(e);return u6e(e)};var Z6e=()=>"Download original file",p6e=()=>"下载原始文件",cb=(e={},r={})=>{if((p??r.locale??n())==="zh")return p6e(e);return Z6e(e)};var m6e=()=>"Download original image",h6e=()=>"下载原始图片",ub=(e={},r={})=>{if((p??r.locale??n())==="zh")return h6e(e);return m6e(e)};var g6e=()=>"Due Date",M6e=()=>"截止日期",hd=(e={},r={})=>{if((p??r.locale??n())==="zh")return M6e(e);return g6e(e)};var x6e=()=>"Edit",v6e=()=>"编辑",db=(e={},r={})=>{if((p??r.locale??n())==="zh")return v6e(e);return x6e(e)};var y6e=()=>"Edit Goal",_6e=()=>"编辑目标",Ah=(e={},r={})=>{if((p??r.locale??n())==="zh")return _6e(e);return y6e(e)};var b6e=(e)=>`Edit ${e?.name}`,w6e=(e)=>`编辑 ${e?.name}`,_h=(e,r={})=>{if((p??r.locale??n())==="zh")return w6e(e);return b6e(e)};var z6e=()=>"Edit MCP Server",S6e=()=>"编辑 MCP 服务",fb=(e={},r={})=>{if((p??r.locale??n())==="zh")return S6e(e);return z6e(e)};var L6e=()=>"Edit Model",k6e=()=>"编辑模型",yh=(e={},r={})=>{if((p??r.locale??n())==="zh")return k6e(e);return L6e(e)};var C6e=()=>"Edit Quota Rule",I6e=()=>"编辑配额规则",pb=(e={},r={})=>{if((p??r.locale??n())==="zh")return I6e(e);return C6e(e)};var R6e=()=>"Configure resource limits, target scopes, and evaluation periods.",P6e=()=>"配置资源上限、目标范围以及评估周期。",mb=(e={},r={})=>{if((p??r.locale??n())==="zh")return P6e(e);return R6e(e)};var T6e=()=>"Edit Task",A6e=()=>"编辑任务",E6e=(e={},r={})=>{if((p??r.locale??n())==="zh")return A6e(e);return T6e(e)};var D6e=()=>"Edit Watermark",O6e=()=>"编辑水印",hb=(e={},r={})=>{if((p??r.locale??n())==="zh")return O6e(e);return D6e(e)};var N6e=()=>"Editor",F6e=()=>"创作者",Us=(e={},r={})=>{if((p??r.locale??n())==="zh")return F6e(e);return N6e(e)};var j6e=()=>"Email",B6e=()=>"邮箱",Zf=(e={},r={})=>{if((p??r.locale??n())==="zh")return B6e(e);return j6e(e)};var U6e=()=>"Email Address",Y6e=()=>"邮箱地址",Hse=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y6e(e);return U6e(e)};var q6e=()=>"john@example.com",H6e=()=>"zhangsan@example.com",gb=(e={},r={})=>{if((p??r.locale??n())==="zh")return H6e(e);return q6e(e)};var V6e=()=>"Email address is managed by authentication provider.",W6e=()=>"邮箱地址由认证提供商管理。",Ab=(e={},r={})=>{if((p??r.locale??n())==="zh")return W6e(e);return V6e(e)};var K6e=()=>"Email Notifications",G6e=()=>"邮件通知",bh=(e={},r={})=>{if((p??r.locale??n())==="zh")return G6e(e);return K6e(e)};var X6e=()=>"Configure SMTP settings for sending email notifications to team members.",Q6e=()=>"配置用于向团队成员发送邮件通知的 SMTP 设置。",_b=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q6e(e);return X6e(e)};var J6e=()=>"Email settings saved successfully",$6e=()=>"邮件设置已保存",vh=(e={},r={})=>{if((p??r.locale??n())==="zh")return $6e(e);return J6e(e)};var eUe=()=>"Embedding Agent",tUe=()=>"嵌入智能体",yb=(e={},r={})=>{if((p??r.locale??n())==="zh")return tUe(e);return eUe(e)};var rUe=()=>"All items in the recently deleted folder will be permanently removed both from the database and from storage. This action cannot be undone.",oUe=()=>"回收站中的所有项目将从数据库和存储中永久删除。此操作无法撤销。",bb=(e={},r={})=>{if((p??r.locale??n())==="zh")return oUe(e);return rUe(e)};var aUe=()=>"Empty Trash?",nUe=()=>"清空回收站?",vb=(e={},r={})=>{if((p??r.locale??n())==="zh")return nUe(e);return aUe(e)};var iUe=()=>"Enable Email Notifications",fUe=()=>"启用邮件通知",wb=(e={},r={})=>{if((p??r.locale??n())==="zh")return fUe(e);return iUe(e)};var sUe=()=>"Send email notifications for comments, mentions, uploads, and other team activity.",lUe=()=>"当有评论、提及、上传及其他团队活动时发送邮件通知。",xb=(e={},r={})=>{if((p??r.locale??n())==="zh")return lUe(e);return sUe(e)};var cUe=()=>"Please create and enable an embedding agent in the team settings to use semantic search.",uUe=()=>"请在团队设置中创建并启用嵌入智能体以使用语义搜索。",Sb=(e={},r={})=>{if((p??r.locale??n())==="zh")return uUe(e);return cUe(e)};var dUe=()=>"Enable Network Sandbox",ZUe=()=>"启用网络沙箱",Eb=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZUe(e);return dUe(e)};var pUe=()=>"Enable Timestamp",mUe=()=>"启用时间戳",Cb=(e={},r={})=>{if((p??r.locale??n())==="zh")return mUe(e);return pUe(e)};var hUe=()=>"Enabled",gUe=()=>"已启用",Bf=(e={},r={})=>{if((p??r.locale??n())==="zh")return gUe(e);return hUe(e)};var MUe=()=>"English",xUe=()=>"English",Ib=(e={},r={})=>{if((p??r.locale??n())==="zh")return xUe(e);return MUe(e)};var vUe=()=>"Enter a value",yUe=()=>"输入一个值",Tb=(e={},r={})=>{if((p??r.locale??n())==="zh")return yUe(e);return vUe(e)};var _Ue=()=>"Enter custom model ID",bUe=()=>"输入自定义模型 ID",Mb=(e={},r={})=>{if((p??r.locale??n())==="zh")return bUe(e);return _Ue(e)};var wUe=()=>"Enter MCP Server ID",zUe=()=>"输入 MCP 服务 ID",wh=(e={},r={})=>{if((p??r.locale??n())==="zh")return zUe(e);return wUe(e)};var SUe=()=>"Enter new name",LUe=()=>"输入新名称",gd=(e={},r={})=>{if((p??r.locale??n())==="zh")return LUe(e);return SUe(e)};var kUe=()=>"Enter password",CUe=()=>"请输入密码",kb=(e={},r={})=>{if((p??r.locale??n())==="zh")return CUe(e);return kUe(e)};var IUe=()=>"Enter template name...",RUe=()=>"请输入模板名称...",xh=(e={},r={})=>{if((p??r.locale??n())==="zh")return RUe(e);return IUe(e)};var PUe=()=>"Enter your details",TUe=()=>"输入您的信息",Rb=(e={},r={})=>{if((p??r.locale??n())==="zh")return TUe(e);return PUe(e)};var AUe=()=>"Enter your name",EUe=()=>"请输入您的名称",Pb=(e={},r={})=>{if((p??r.locale??n())==="zh")return EUe(e);return AUe(e)};var DUe=()=>"Entry ID",OUe=()=>"条目 ID",Ad=(e={},r={})=>{if((p??r.locale??n())==="zh")return OUe(e);return DUe(e)};var NUe=()=>"If left empty, the value will be read from the host machine's environment.",FUe=()=>"如果留空,将从主机的环境中读取值。",Nb=(e={},r={})=>{if((p??r.locale??n())==="zh")return FUe(e);return NUe(e)};var jUe=()=>"Error",BUe=()=>"错误",Tn=(e={},r={})=>{if((p??r.locale??n())==="zh")return BUe(e);return jUe(e)};var UUe=(e)=>`Error: ${e?.message}`,YUe=(e)=>`错误:${e?.message}`,zs=(e,r={})=>{if((p??r.locale??n())==="zh")return YUe(e);return UUe(e)};var qUe=()=>"Essentials",HUe=()=>"基本信息",Db=(e={},r={})=>{if((p??r.locale??n())==="zh")return HUe(e);return qUe(e)};var VUe=()=>"Exact date...",WUe=()=>"精确日期...",Ob=(e={},r={})=>{if((p??r.locale??n())==="zh")return WUe(e);return VUe(e)};var KUe=()=>"Exit compare",GUe=()=>"退出对比",Fb=(e={},r={})=>{if((p??r.locale??n())==="zh")return GUe(e);return KUe(e)};var XUe=()=>"Expiration Date",QUe=()=>"过期日期",Lb=(e={},r={})=>{if((p??r.locale??n())==="zh")return QUe(e);return XUe(e)};var JUe=()=>"Export Comments",$Ue=()=>"导出评论",Zb=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ue(e);return JUe(e)};var eYe=()=>"Failed to create collection",tYe=()=>"创建媒体合集失败",rYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return tYe(e);return eYe(e)};var oYe=()=>"Failed to create field",aYe=()=>"创建字段失败",Uf=(e={},r={})=>{if((p??r.locale??n())==="zh")return aYe(e);return oYe(e)};var nYe=()=>"Failed to create project",iYe=()=>"创建项目失败",Bb=(e={},r={})=>{if((p??r.locale??n())==="zh")return iYe(e);return nYe(e)};var fYe=()=>"Failed to create share link",sYe=()=>"创建分享链接失败",lYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return sYe(e);return fYe(e)};var cYe=()=>"Failed to delete collection",uYe=()=>"删除媒体合集失败",dYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return uYe(e);return cYe(e)};var ZYe=()=>"Failed to delete field",pYe=()=>"删除字段失败",Ub=(e={},r={})=>{if((p??r.locale??n())==="zh")return pYe(e);return ZYe(e)};var mYe=()=>"Failed to delete folder",hYe=()=>"删除文件夹失败",gYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return hYe(e);return mYe(e)};var MYe=()=>"Failed to delete share link",xYe=()=>"删除分享链接失败",vYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return xYe(e);return MYe(e)};var yYe=()=>"Failed to fetch collections",_Ye=()=>"获取媒体合集失败",bYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ye(e);return yYe(e)};var wYe=()=>"Failed to fetch fields",zYe=()=>"获取字段列表失败",zb=(e={},r={})=>{if((p??r.locale??n())==="zh")return zYe(e);return wYe(e)};var SYe=()=>"Failed to fetch files",LYe=()=>"获取文件失败",jb=(e={},r={})=>{if((p??r.locale??n())==="zh")return LYe(e);return SYe(e)};var kYe=()=>"Failed to fetch folders",CYe=()=>"获取文件夹失败",qb=(e={},r={})=>{if((p??r.locale??n())==="zh")return CYe(e);return kYe(e)};var IYe=()=>"Failed to fetch share link",RYe=()=>"获取分享链接失败",Hb=(e={},r={})=>{if((p??r.locale??n())==="zh")return RYe(e);return IYe(e)};var PYe=()=>"Failed to fetch share links",TYe=()=>"获取分享链接失败",AYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return TYe(e);return PYe(e)};var EYe=()=>"Failed to load settings.",DYe=()=>"加载设置失败。",Jo=(e={},r={})=>{if((p??r.locale??n())==="zh")return DYe(e);return EYe(e)};var OYe=()=>"Failed to remove",NYe=()=>"移除失败",$b=(e={},r={})=>{if((p??r.locale??n())==="zh")return NYe(e);return OYe(e)};var FYe=()=>"Failed to remove avatar",jYe=()=>"移除头像失败",Gb=(e={},r={})=>{if((p??r.locale??n())==="zh")return jYe(e);return FYe(e)};var BYe=()=>"Failed to rename collection",UYe=()=>"重命名媒体合集失败",YYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return UYe(e);return BYe(e)};var qYe=()=>"Failed to rename folder",HYe=()=>"重命名文件夹失败",VYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return HYe(e);return qYe(e)};var WYe=()=>"Failed to rename share link",KYe=()=>"重命名分享链接失败",GYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return KYe(e);return WYe(e)};var XYe=()=>"Failed to save collection",QYe=()=>"保存媒体合集失败",Vb=(e={},r={})=>{if((p??r.locale??n())==="zh")return QYe(e);return XYe(e)};var JYe=(e)=>`Failed to add ${e?.name}`,$Ye=(e)=>`添加 ${e?.name} 失败`,Sh=(e,r={})=>{if((p??r.locale??n())==="zh")return $Ye(e);return JYe(e)};var e7e=()=>"Failed to add model",t7e=()=>"添加模型失败",Qb=(e={},r={})=>{if((p??r.locale??n())==="zh")return t7e(e);return e7e(e)};var r7e=()=>"Failed to create quota rule",o7e=()=>"创建配额规则失败",Eh=(e={},r={})=>{if((p??r.locale??n())==="zh")return o7e(e);return r7e(e)};var a7e=()=>"Failed to delete",n7e=()=>"删除失败",Na=(e={},r={})=>{if((p??r.locale??n())==="zh")return n7e(e);return a7e(e)};var i7e=()=>"Failed to delete quota rule",f7e=()=>"删除配额规则失败",_d=(e={},r={})=>{if((p??r.locale??n())==="zh")return f7e(e);return i7e(e)};var s7e=()=>"Failed to export comments",l7e=()=>"导出评论失败",Kb=(e={},r={})=>{if((p??r.locale??n())==="zh")return l7e(e);return s7e(e)};var c7e=()=>"Failed to fetch folder children",u7e=()=>"获取子文件夹失败",d7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return u7e(e);return c7e(e)};var Z7e=()=>"Failed to generate invite link",p7e=()=>"生成邀请链接失败",Wb=(e={},r={})=>{if((p??r.locale??n())==="zh")return p7e(e);return Z7e(e)};var m7e=()=>"Failed to generate token",h7e=()=>"生成令牌失败",Yb=(e={},r={})=>{if((p??r.locale??n())==="zh")return h7e(e);return m7e(e)};var g7e=()=>"Failed to install skill",M7e=()=>"安装技能失败",Jb=(e={},r={})=>{if((p??r.locale??n())==="zh")return M7e(e);return g7e(e)};var x7e=()=>"Failed to load email settings",v7e=()=>"加载邮件设置失败",Ch=(e={},r={})=>{if((p??r.locale??n())==="zh")return v7e(e);return x7e(e)};var y7e=()=>"Failed to load quota usage",_7e=()=>"加载配额使用量失败",Ih=(e={},r={})=>{if((p??r.locale??n())==="zh")return _7e(e);return y7e(e)};var b7e=()=>"Failed to post comment",w7e=()=>"发送评论失败",Xb=(e={},r={})=>{if((p??r.locale??n())==="zh")return w7e(e);return b7e(e)};var z7e=()=>"Failed to prepare download links",S7e=()=>"准备下载链接失败",Vse=(e={},r={})=>{if((p??r.locale??n())==="zh")return S7e(e);return z7e(e)};var L7e=()=>"Failed to remove member",k7e=()=>"移除成员失败",ev=(e={},r={})=>{if((p??r.locale??n())==="zh")return k7e(e);return L7e(e)};var C7e=()=>"Failed to remove version",I7e=()=>"移除版本失败",R7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return I7e(e);return C7e(e)};var P7e=()=>"Failed to rename",T7e=()=>"重命名失败",tv=(e={},r={})=>{if((p??r.locale??n())==="zh")return T7e(e);return P7e(e)};var A7e=()=>"Failed to reorder versions",E7e=()=>"版本重新排序失败",D7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return E7e(e);return A7e(e)};var O7e=()=>"Failed to reset quota usage",N7e=()=>"重置配额使用量失败",Th=(e={},r={})=>{if((p??r.locale??n())==="zh")return N7e(e);return O7e(e)};var F7e=()=>"Failed to revoke token",j7e=()=>"撤销令牌失败",rv=(e={},r={})=>{if((p??r.locale??n())==="zh")return j7e(e);return F7e(e)};var B7e=()=>"Failed to save email settings",U7e=()=>"保存邮件设置失败",zf=(e={},r={})=>{if((p??r.locale??n())==="zh")return U7e(e);return B7e(e)};var Y7e=()=>"Failed to send test email",q7e=()=>"发送测试邮件失败",Mh=(e={},r={})=>{if((p??r.locale??n())==="zh")return q7e(e);return Y7e(e)};var H7e=()=>"Failed to update member role",V7e=()=>"更新成员角色失败",nv=(e={},r={})=>{if((p??r.locale??n())==="zh")return V7e(e);return H7e(e)};var W7e=()=>"Failed to update notification settings",K7e=()=>"更新通知设置失败",kh=(e={},r={})=>{if((p??r.locale??n())==="zh")return K7e(e);return W7e(e)};var G7e=()=>"Failed to update permission",X7e=()=>"更新权限失败",bl=(e={},r={})=>{if((p??r.locale??n())==="zh")return X7e(e);return G7e(e)};var Q7e=()=>"Failed to update provider",J7e=()=>"更新提供商失败",ov=(e={},r={})=>{if((p??r.locale??n())==="zh")return J7e(e);return Q7e(e)};var $7e=()=>"Failed to update quota rule",eqe=()=>"更新配额规则失败",yd=(e={},r={})=>{if((p??r.locale??n())==="zh")return eqe(e);return $7e(e)};var tqe=()=>"Failed to update sandbox settings",rqe=()=>"更新沙箱设置失败",Rh=(e={},r={})=>{if((p??r.locale??n())==="zh")return rqe(e);return tqe(e)};var oqe=()=>"Failed to upload",aqe=()=>"上传失败",sv=(e={},r={})=>{if((p??r.locale??n())==="zh")return aqe(e);return oqe(e)};var nqe=()=>"(Failed to upload)",iqe=()=>"(上传失败)",iv=(e={},r={})=>{if((p??r.locale??n())==="zh")return iqe(e);return nqe(e)};var fqe=()=>"Failed to update",sqe=()=>"更新失败",yi=(e={},r={})=>{if((p??r.locale??n())==="zh")return sqe(e);return fqe(e)};var lqe=()=>"Failed to update appearance settings",cqe=()=>"更新外观设置失败",Ph=(e={},r={})=>{if((p??r.locale??n())==="zh")return cqe(e);return lqe(e)};var uqe=()=>"Failed to update avatar",dqe=()=>"头像更新失败",av=(e={},r={})=>{if((p??r.locale??n())==="zh")return dqe(e);return uqe(e)};var Zqe=()=>"Failed to update field",pqe=()=>"更新字段失败",vl=(e={},r={})=>{if((p??r.locale??n())==="zh")return pqe(e);return Zqe(e)};var mqe=()=>"Failed to update fields order",hqe=()=>"更新字段排序失败",jf=(e={},r={})=>{if((p??r.locale??n())==="zh")return hqe(e);return mqe(e)};var gqe=()=>"Failed to update language",Mqe=()=>"语言更新失败",lv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mqe(e);return gqe(e)};var xqe=()=>"Failed to update profile",vqe=()=>"更新个人资料失败",cv=(e={},r={})=>{if((p??r.locale??n())==="zh")return vqe(e);return xqe(e)};var yqe=()=>"Failed to update project",_qe=()=>"更新项目失败",uv=(e={},r={})=>{if((p??r.locale??n())==="zh")return _qe(e);return yqe(e)};var bqe=()=>"Failed to update project notification settings",wqe=()=>"更新项目通知设置失败",dv=(e={},r={})=>{if((p??r.locale??n())==="zh")return wqe(e);return bqe(e)};var zqe=()=>"Failed to update settings",Sqe=()=>"更新设置失败",Nh=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sqe(e);return zqe(e)};var Lqe=()=>"Failed to upload file",kqe=()=>"上传文件失败",jc=(e={},r={})=>{if((p??r.locale??n())==="zh")return kqe(e);return Lqe(e)};var Cqe=()=>"FFmpeg Threads",Iqe=()=>"FFmpeg 线程数",fv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Iqe(e);return Cqe(e)};var Rqe=()=>"Maximum number of CPU threads used by FFmpeg during transcoding. Set to 0 for Auto.",Pqe=()=>"FFmpeg 转码时使用的最大 CPU 线程数。设置为 0 表示自动。",pv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pqe(e);return Rqe(e)};var Tqe=()=>"Field",Aqe=()=>"字段",qf=(e={},r={})=>{if((p??r.locale??n())==="zh")return Aqe(e);return Tqe(e)};var Eqe=()=>"Created At",Dqe=()=>"创建时间",mv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dqe(e);return Eqe(e)};var Oqe=()=>"Field created successfully",Nqe=()=>"字段创建成功",hv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nqe(e);return Oqe(e)};var Fqe=()=>"Field deleted successfully",jqe=()=>"字段删除成功",gv=(e={},r={})=>{if((p??r.locale??n())==="zh")return jqe(e);return Fqe(e)};var Bqe=()=>"Field Name",Uqe=()=>"字段名称",Hf=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uqe(e);return Bqe(e)};var Yqe=()=>"e.g. Status",qqe=()=>"例如:状态",Av=(e={},r={})=>{if((p??r.locale??n())==="zh")return qqe(e);return Yqe(e)};var Hqe=()=>"Size",Vqe=()=>"大小",_v=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vqe(e);return Hqe(e)};var Wqe=()=>"Field Type",Kqe=()=>"字段类型",$f=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kqe(e);return Wqe(e)};var Gqe=()=>"Updated At",Xqe=()=>"更新时间",yv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xqe(e);return Gqe(e)};var Qqe=()=>"Field updated successfully",Jqe=()=>"字段更新成功",bv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jqe(e);return Qqe(e)};var $qe=()=>"Fields",e9e=()=>"字段",Da=(e={},r={})=>{if((p??r.locale??n())==="zh")return e9e(e);return $qe(e)};var t9e=()=>"File size exceeds the 1MB limit",r9e=()=>"文件大小不能超过 1MB",vv=(e={},r={})=>{if((p??r.locale??n())==="zh")return r9e(e);return t9e(e)};var o9e=()=>"File not found.",a9e=()=>"文件未找到。",Dh=(e={},r={})=>{if((p??r.locale??n())==="zh")return a9e(e);return o9e(e)};var n9e=(e)=>`${e?.uploaded} / ${e?.total} files`,i9e=(e)=>`${e?.uploaded} / ${e?.total} 个文件`,Wse=(e,r={})=>{if((p??r.locale??n())==="zh")return i9e(e);return n9e(e)};var f9e=()=>"Filesystem Restriction",s9e=()=>"文件系统限制",wv=(e={},r={})=>{if((p??r.locale??n())==="zh")return s9e(e);return f9e(e)};var l9e=()=>"Sandboxed shell commands can read workspace files except sensitive environment, certificate, and key files. They can write to the project's .pi folder and the system temporary directory, plus a few runtime-managed system paths. These filesystem rules are currently hardcoded for security.",c9e=()=>"沙箱 Shell 命令可以读取工作区文件,但环境变量、证书和密钥等敏感文件除外;可以写入项目的 .pi 文件夹和系统临时目录,以及少量由运行时管理的系统路径。这些文件系统规则目前出于安全考虑已硬编码。",xv=(e={},r={})=>{if((p??r.locale??n())==="zh")return c9e(e);return l9e(e)};var u9e=()=>"and",d9e=()=>"且",Sv=(e={},r={})=>{if((p??r.locale??n())==="zh")return d9e(e);return u9e(e)};var Z9e=()=>"Filter by Action",p9e=()=>"按操作筛选",Ev=(e={},r={})=>{if((p??r.locale??n())==="zh")return p9e(e);return Z9e(e)};var m9e=()=>"Filter by User",h9e=()=>"按用户筛选",Cv=(e={},r={})=>{if((p??r.locale??n())==="zh")return h9e(e);return m9e(e)};var g9e=()=>"Search tasks in this status...",M9e=()=>"搜索此状态下的任务...",x9e=(e={},r={})=>{if((p??r.locale??n())==="zh")return M9e(e);return g9e(e)};var v9e=()=>"Where",y9e=()=>"条件",Iv=(e={},r={})=>{if((p??r.locale??n())==="zh")return y9e(e);return v9e(e)};var _9e=()=>"Filters",b9e=()=>"筛选条件",Tv=(e={},r={})=>{if((p??r.locale??n())==="zh")return b9e(e);return _9e(e)};var w9e=()=>"You will be the owner of the default workspace as the first user!",z9e=()=>"作为第一位用户,您将成为默认工作空间的拥有者!",S9e=(e={},r={})=>{if((p??r.locale??n())==="zh")return z9e(e);return w9e(e)};var L9e=()=>"Fit",k9e=()=>"适应窗口",Gf=(e={},r={})=>{if((p??r.locale??n())==="zh")return k9e(e);return L9e(e)};var C9e=()=>"Folder",I9e=()=>"文件夹",Oh=(e={},r={})=>{if((p??r.locale??n())==="zh")return I9e(e);return C9e(e)};var R9e=()=>"Folder deleted",P9e=()=>"文件夹已删除",T9e=(e={},r={})=>{if((p??r.locale??n())==="zh")return P9e(e);return R9e(e)};var A9e=()=>"Selected folder files will be prepared for download.",E9e=()=>"所选文件夹中的文件将被准备下载。",Fh=(e={},r={})=>{if((p??r.locale??n())==="zh")return E9e(e);return A9e(e)};var D9e=()=>"Folder name",O9e=()=>"文件夹名称",Lh=(e={},r={})=>{if((p??r.locale??n())==="zh")return O9e(e);return D9e(e)};var N9e=()=>"Folder renamed",F9e=()=>"文件夹已重命名",j9e=(e={},r={})=>{if((p??r.locale??n())==="zh")return F9e(e);return N9e(e)};var B9e=()=>"Folder hierarchy will be flattened. All nested files will be downloaded directly into your default download folder.",U9e=()=>"文件夹层级将被扁平化。所有嵌套文件将直接下载到您的默认下载文件夹中。",Zh=(e={},r={})=>{if((p??r.locale??n())==="zh")return U9e(e);return B9e(e)};var Y9e=()=>"Assets",q9e=()=>"资产",Kse=(e={},r={})=>{if((p??r.locale??n())==="zh")return q9e(e);return Y9e(e)};var H9e=()=>"Font Size",V9e=()=>"字体大小",Mv=(e={},r={})=>{if((p??r.locale??n())==="zh")return V9e(e);return H9e(e)};var W9e=()=>"Format",K9e=()=>"格式",kv=(e={},r={})=>{if((p??r.locale??n())==="zh")return K9e(e);return W9e(e)};var G9e=()=>"Frames",X9e=()=>"帧数",Rv=(e={},r={})=>{if((p??r.locale??n())==="zh")return X9e(e);return G9e(e)};var Q9e=()=>"From address is required",J9e=()=>"必须提供发件人地址",Pv=(e={},r={})=>{if((p??r.locale??n())==="zh")return J9e(e);return Q9e(e)};var $9e=()=>"Fullscreen",eHe=()=>"全屏",bd=(e={},r={})=>{if((p??r.locale??n())==="zh")return eHe(e);return $9e(e)};var tHe=()=>"General",rHe=()=>"通用",Nv=(e={},r={})=>{if((p??r.locale??n())==="zh")return rHe(e);return tHe(e)};var oHe=()=>"General Comments",aHe=()=>"普通评论",Dv=(e={},r={})=>{if((p??r.locale??n())==="zh")return aHe(e);return oHe(e)};var nHe=()=>"General Settings",iHe=()=>"通用设置",Bh=(e={},r={})=>{if((p??r.locale??n())==="zh")return iHe(e);return nHe(e)};var fHe=()=>"View your personal information and team role.",sHe=()=>"查看您的个人信息和团队角色。",Ov=(e={},r={})=>{if((p??r.locale??n())==="zh")return sHe(e);return fHe(e)};var lHe=()=>"Generate",cHe=()=>"生成",Fv=(e={},r={})=>{if((p??r.locale??n())==="zh")return cHe(e);return lHe(e)};var uHe=()=>"Generate Link",dHe=()=>"生成链接",Lv=(e={},r={})=>{if((p??r.locale??n())==="zh")return dHe(e);return uHe(e)};var ZHe=()=>"GitHub Repository URL",pHe=()=>"GitHub 仓库 URL",Zv=(e={},r={})=>{if((p??r.locale??n())==="zh")return pHe(e);return ZHe(e)};var mHe=()=>"Example: https://github.com/google/gemini-cli",hHe=()=>"示例:https://github.com/google/gemini-cli",Bv=(e={},r={})=>{if((p??r.locale??n())==="zh")return hHe(e);return mHe(e)};var gHe=()=>"Global API Protocol",MHe=()=>"全局 API 协议",Uh=(e={},r={})=>{if((p??r.locale??n())==="zh")return MHe(e);return gHe(e)};var xHe=()=>"Go to Login",vHe=()=>"前往登录",Vf=(e={},r={})=>{if((p??r.locale??n())==="zh")return vHe(e);return xHe(e)};var yHe=()=>"Goal created",_He=()=>"目标已创建",Uv=(e={},r={})=>{if((p??r.locale??n())==="zh")return _He(e);return yHe(e)};var bHe=()=>"Goal deleted",wHe=()=>"目标已删除",zv=(e={},r={})=>{if((p??r.locale??n())==="zh")return wHe(e);return bHe(e)};var zHe=()=>"Goal Description",SHe=()=>"目标描述",jv=(e={},r={})=>{if((p??r.locale??n())==="zh")return SHe(e);return zHe(e)};var LHe=()=>"Describe the desired outcome and success criteria...",kHe=()=>"描述预期成果和衡量标准...",qv=(e={},r={})=>{if((p??r.locale??n())==="zh")return kHe(e);return LHe(e)};var CHe=()=>"Goal Title",IHe=()=>"目标标题",Hv=(e={},r={})=>{if((p??r.locale??n())==="zh")return IHe(e);return CHe(e)};var RHe=()=>"e.g. Q3 Launch Deliverables",PHe=()=>"例如:Q3 发布交付物",$v=(e={},r={})=>{if((p??r.locale??n())==="zh")return PHe(e);return RHe(e)};var THe=()=>"Goal updated",AHe=()=>"目标已更新",Gv=(e={},r={})=>{if((p??r.locale??n())==="zh")return AHe(e);return THe(e)};var EHe=()=>"Goals",DHe=()=>"目标",vd=(e={},r={})=>{if((p??r.locale??n())==="zh")return DHe(e);return EHe(e)};var OHe=()=>"Grid",NHe=()=>"网格",Vv=(e={},r={})=>{if((p??r.locale??n())==="zh")return NHe(e);return OHe(e)};var FHe=()=>"Groups",jHe=()=>"分组",Qv=(e={},r={})=>{if((p??r.locale??n())==="zh")return jHe(e);return FHe(e)};var BHe=()=>"Hardware Acceleration",UHe=()=>"硬件加速",Kv=(e={},r={})=>{if((p??r.locale??n())==="zh")return UHe(e);return BHe(e)};var YHe=()=>"Auto Detect",qHe=()=>"自动检测",Wv=(e={},r={})=>{if((p??r.locale??n())==="zh")return qHe(e);return YHe(e)};var HHe=()=>"Automatically probes and uses GPU/Hardware acceleration (NVENC, QSV, VA-API, AMF, VideoToolbox). If hardware acceleration is unsupported on the host, video transcoding may fail.",VHe=()=>"自动检测并使用 GPU/硬件加速(NVENC、QSV、VA-API、AMF、VideoToolbox)。若宿主硬件不支持加速,视频转码可能会失败。",Yv=(e={},r={})=>{if((p??r.locale??n())==="zh")return VHe(e);return HHe(e)};var WHe=()=>"Disabled (Software)",KHe=()=>"已禁用 (软件编码)",Jv=(e={},r={})=>{if((p??r.locale??n())==="zh")return KHe(e);return WHe(e)};var GHe=()=>"Uses software libx264 encoder with constant rate factor (CRF).",XHe=()=>"使用 CPU 的 libx264 软件编码器及 CRF 恒定画质模式。",Xv=(e={},r={})=>{if((p??r.locale??n())==="zh")return XHe(e);return GHe(e)};var QHe=()=>"Configure hardware-accelerated video encoding to offload workloads to GPUs, or use CPU software encoding.",JHe=()=>"配置硬件加速视频编码以将工作负载分流至 GPU,或使用 CPU 软件编码。",ew=(e={},r={})=>{if((p??r.locale??n())==="zh")return JHe(e);return QHe(e)};var $He=()=>"HDR",eVe=()=>"HDR",qc=(e={},r={})=>{if((p??r.locale??n())==="zh")return eVe(e);return $He(e)};var tVe=()=>"Hide Agent",rVe=()=>"隐藏 Agent",tw=(e={},r={})=>{if((p??r.locale??n())==="zh")return rVe(e);return tVe(e)};var oVe=()=>"Hide the AGENTS.md button, agent-chat sidebar, and chatbot trigger button across the entire team.",aVe=()=>"在整个团队中隐藏 AGENTS.md 按钮、Agent 聊天侧边栏和触发按钮。",rw=(e={},r={})=>{if((p??r.locale??n())==="zh")return aVe(e);return oVe(e)};var nVe=()=>"Hide Chatbot",iVe=()=>"隐藏聊天机器人",fVe=(e={},r={})=>{if((p??r.locale??n())==="zh")return iVe(e);return nVe(e)};var sVe=()=>"History",lVe=()=>"历史记录",zh=(e={},r={})=>{if((p??r.locale??n())==="zh")return lVe(e);return sVe(e)};var cVe=()=>"Resolution Ladders",uVe=()=>"分辨率阶梯",nw=(e={},r={})=>{if((p??r.locale??n())==="zh")return uVe(e);return cVe(e)};var dVe=()=>"Select the target resolutions to generate for HLS streaming. Ladders are only generated up to the source video resolution.",ZVe=()=>"选择 HLS 流媒体生成的目标分辨率。仅会生成不超过原始视频分辨率的分辨率阶梯。",ow=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZVe(e);return dVe(e)};var pVe=()=>"HLS Streaming",mVe=()=>"HLS 流媒体",sw=(e={},r={})=>{if((p??r.locale??n())==="zh")return mVe(e);return pVe(e)};var hVe=()=>"Enable HTTP Live Streaming (HLS) with adaptive bitrate ladders for smooth video playback.",gVe=()=>"启用自适应码率阶梯的 HTTP Live Streaming (HLS),带来流畅的视频流播放体验。",iw=(e={},r={})=>{if((p??r.locale??n())==="zh")return gVe(e);return hVe(e)};var MVe=()=>"Home",xVe=()=>"主页",vVe=(e={},r={})=>{if((p??r.locale??n())==="zh")return xVe(e);return MVe(e)};var yVe=()=>"Image Asset",_Ve=()=>"图片资源",aw=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ve(e);return yVe(e)};var bVe=(e)=>`${e?.count} enabled`,wVe=(e)=>`${e?.count} 个已启用`,lw=(e,r={})=>{if((p??r.locale??n())==="zh")return wVe(e);return bVe(e)};var zVe=()=>"[Image Object]",SVe=()=>"[图片对象]",Qf=(e={},r={})=>{if((p??r.locale??n())==="zh")return SVe(e);return zVe(e)};var LVe=()=>"Image Size",kVe=()=>"图片大小",cw=(e={},r={})=>{if((p??r.locale??n())==="zh")return kVe(e);return LVe(e)};var CVe=()=>"Image / Video Generation",IVe=()=>"图像与视频生成",jh=(e={},r={})=>{if((p??r.locale??n())==="zh")return IVe(e);return CVe(e)};var RVe=()=>"Import a skill from a local ZIP archive or a GitHub repository.",PVe=()=>"从本地 ZIP 压缩包或 GitHub 仓库导入技能。",uw=(e={},r={})=>{if((p??r.locale??n())==="zh")return PVe(e);return RVe(e)};var TVe=()=>"Input Cost (1M)",AVe=()=>"输入成本(每百万)",dw=(e={},r={})=>{if((p??r.locale??n())==="zh")return AVe(e);return TVe(e)};var EVe=()=>"Input Tokens",DVe=()=>"输入 Token",qh=(e={},r={})=>{if((p??r.locale??n())==="zh")return DVe(e);return EVe(e)};var OVe=()=>"Install",NVe=()=>"安装",fw=(e={},r={})=>{if((p??r.locale??n())==="zh")return NVe(e);return OVe(e)};var FVe=()=>"Invalid credentials",jVe=()=>"凭证无效",Gse=(e={},r={})=>{if((p??r.locale??n())==="zh")return jVe(e);return FVe(e)};var BVe=()=>"Invalid email address",UVe=()=>"无效的邮箱地址",Xse=(e={},r={})=>{if((p??r.locale??n())==="zh")return UVe(e);return BVe(e)};var YVe=()=>"Invalid or missing reset token.",qVe=()=>"无效或缺失的重置令牌。",Kf=(e={},r={})=>{if((p??r.locale??n())==="zh")return qVe(e);return YVe(e)};var HVe=()=>"Please contact your administrator to generate a new password reset link.",VVe=()=>"请联系管理员生成新的密码重置链接。",pw=(e={},r={})=>{if((p??r.locale??n())==="zh")return VVe(e);return HVe(e)};var WVe=(e)=>`${e?.inviterName} invited you to join ${e?.targetName} as ${e?.role}.`,KVe=(e)=>`${e?.inviterName} 邀请您加入 ${e?.targetName},角色为 ${e?.role}。`,GVe=(e,r={})=>{if((p??r.locale??n())==="zh")return KVe(e);return WVe(e)};var XVe=()=>"Invite link copied to clipboard",QVe=()=>"邀请链接已复制到剪贴板",mw=(e={},r={})=>{if((p??r.locale??n())==="zh")return QVe(e);return XVe(e)};var JVe=()=>"Invite New Member",$Ve=()=>"邀请新成员",hw=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ve(e);return JVe(e)};var eWe=()=>"Item ID",tWe=()=>"条目 ID",gw=(e={},r={})=>{if((p??r.locale??n())==="zh")return tWe(e);return eWe(e)};var rWe=()=>"Kanban",oWe=()=>"看板",aWe=(e={},r={})=>{if((p??r.locale??n())==="zh")return oWe(e);return rWe(e)};var nWe=()=>"Kanban Comments",iWe=()=>"看板评论",Aw=(e={},r={})=>{if((p??r.locale??n())==="zh")return iWe(e);return nWe(e)};var fWe=()=>"Manage notifications for Kanban board tasks and comments.",sWe=()=>"管理看板任务和评论相关的通知偏好。",_w=(e={},r={})=>{if((p??r.locale??n())==="zh")return sWe(e);return fWe(e)};var lWe=()=>"Kanban Notifications",cWe=()=>"看板通知",yw=(e={},r={})=>{if((p??r.locale??n())==="zh")return cWe(e);return lWe(e)};var uWe=()=>"Kanban Tasks",dWe=()=>"看板任务",bw=(e={},r={})=>{if((p??r.locale??n())==="zh")return dWe(e);return uWe(e)};var ZWe=()=>"Language Settings",pWe=()=>"语言设置",vw=(e={},r={})=>{if((p??r.locale??n())==="zh")return pWe(e);return ZWe(e)};var mWe=()=>"Language updated successfully",hWe=()=>"语言更新成功",ww=(e={},r={})=>{if((p??r.locale??n())==="zh")return hWe(e);return mWe(e)};var gWe=()=>"Light",MWe=()=>"浅色",xWe=(e={},r={})=>{if((p??r.locale??n())==="zh")return MWe(e);return gWe(e)};var vWe=()=>"Link copied to clipboard",yWe=()=>"链接已复制到剪贴板",xw=(e={},r={})=>{if((p??r.locale??n())==="zh")return yWe(e);return vWe(e)};var _We=()=>"Link to Task",bWe=()=>"关联到任务",wWe=(e={},r={})=>{if((p??r.locale??n())==="zh")return bWe(e);return _We(e)};var zWe=()=>"Link Visibility",SWe=()=>"链接可见性",Sw=(e={},r={})=>{if((p??r.locale??n())==="zh")return SWe(e);return zWe(e)};var LWe=(e)=>`${e?.count} assets`,kWe=(e)=>`${e?.count} 个资产`,Ew=(e,r={})=>{if((p??r.locale??n())==="zh")return kWe(e);return LWe(e)};var CWe=()=>"Linked Tasks",IWe=()=>"关联任务",Wf=(e={},r={})=>{if((p??r.locale??n())==="zh")return IWe(e);return CWe(e)};var RWe=()=>"List",PWe=()=>"列表",Cw=(e={},r={})=>{if((p??r.locale??n())==="zh")return PWe(e);return RWe(e)};var TWe=()=>"Load Template",AWe=()=>"加载模板",Iw=(e={},r={})=>{if((p??r.locale??n())==="zh")return AWe(e);return TWe(e)};var EWe=()=>"Loading...",DWe=()=>"加载中...",wd=(e={},r={})=>{if((p??r.locale??n())==="zh")return DWe(e);return EWe(e)};var OWe=()=>"Loading collection...",NWe=()=>"正在加载媒体合集...",Hh=(e={},r={})=>{if((p??r.locale??n())==="zh")return NWe(e);return OWe(e)};var FWe=()=>"Loading models...",jWe=()=>"正在加载模型...",Tw=(e={},r={})=>{if((p??r.locale??n())==="zh")return jWe(e);return FWe(e)};var BWe=()=>"Loading more...",UWe=()=>"加载更多...",Mw=(e={},r={})=>{if((p??r.locale??n())==="zh")return UWe(e);return BWe(e)};var YWe=()=>"Log out",qWe=()=>"退出登录",HWe=(e={},r={})=>{if((p??r.locale??n())==="zh")return qWe(e);return YWe(e)};var VWe=()=>"Logging in...",WWe=()=>"登录中...",Qse=(e={},r={})=>{if((p??r.locale??n())==="zh")return WWe(e);return VWe(e)};var KWe=()=>"Login",GWe=()=>"登录",Jse=(e={},r={})=>{if((p??r.locale??n())==="zh")return GWe(e);return KWe(e)};var XWe=()=>"Login as demo user",QWe=()=>"以演示用户登录",JWe=(e={},r={})=>{if((p??r.locale??n())==="zh")return QWe(e);return XWe(e)};var $We=()=>"Login here",eKe=()=>"在此登录",tKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return eKe(e);return $We(e)};var rKe=()=>"Enter your credentials to access your account.",oKe=()=>"输入您的凭证以访问您的账户。",aKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return oKe(e);return rKe(e)};var nKe=()=>"Loop",iKe=()=>"循环",kw=(e={},r={})=>{if((p??r.locale??n())==="zh")return iKe(e);return nKe(e)};var fKe=()=>"Manage environment variables for this skill instance.",sKe=()=>"管理此技能实例的环境变量。",Rw=(e={},r={})=>{if((p??r.locale??n())==="zh")return sKe(e);return fKe(e)};var lKe=()=>"Manage Fields",cKe=()=>"管理字段",Yf=(e={},r={})=>{if((p??r.locale??n())==="zh")return cKe(e);return lKe(e)};var uKe=()=>"Manage and update your project workspace configurations.",dKe=()=>"管理和更新您的项目工作区配置。",Pw=(e={},r={})=>{if((p??r.locale??n())==="zh")return dKe(e);return uKe(e)};var ZKe=()=>"Manage versions",pKe=()=>"管理版本",Jf=(e={},r={})=>{if((p??r.locale??n())==="zh")return pKe(e);return ZKe(e)};var mKe=()=>"Manage versions",hKe=()=>"管理版本",gKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return hKe(e);return mKe(e)};var MKe=()=>"Mark all as read",xKe=()=>"全部标记为已读",vKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return xKe(e);return MKe(e)};var yKe=()=>"Mark as complete",_Ke=()=>"标记为已完成",Nw=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ke(e);return yKe(e)};var bKe=()=>"Mark as incomplete",wKe=()=>"标记为未完成",Dw=(e={},r={})=>{if((p??r.locale??n())==="zh")return wKe(e);return bKe(e)};var zKe=()=>"Markup is not supported for this file type",SKe=()=>"此文件类型不支持标注",Xf=(e={},r={})=>{if((p??r.locale??n())==="zh")return SKe(e);return zKe(e)};var LKe=()=>"Match found at",kKe=()=>"在以下位置找到匹配",Ow=(e={},r={})=>{if((p??r.locale??n())==="zh")return kKe(e);return LKe(e)};var CKe=(e)=>`Matched ${e?.count} items`,IKe=(e)=>`匹配了 ${e?.count} 项`,Fw=(e,r={})=>{if((p??r.locale??n())==="zh")return IKe(e);return CKe(e)};var RKe=()=>"Max Output Tokens",PKe=()=>"最大输出令牌数",Lw=(e={},r={})=>{if((p??r.locale??n())==="zh")return PKe(e);return RKe(e)};var TKe=(e)=>`max ${e?.count}`,AKe=(e)=>`最大 ${e?.count}`,Zw=(e,r={})=>{if((p??r.locale??n())==="zh")return AKe(e);return TKe(e)};var EKe=()=>"Auto-Detect (Default)",DKe=()=>"自动检测 (默认)",Bw=(e={},r={})=>{if((p??r.locale??n())==="zh")return DKe(e);return EKe(e)};var OKe=()=>"Bearer Token",NKe=()=>"Bearer 令牌",Uw=(e={},r={})=>{if((p??r.locale??n())==="zh")return NKe(e);return OKe(e)};var FKe=()=>"Failed to authenticate MCP server",jKe=()=>"MCP 服务身份验证失败",ep=(e={},r={})=>{if((p??r.locale??n())==="zh")return jKe(e);return FKe(e)};var BKe=()=>"None",UKe=()=>"无",zw=(e={},r={})=>{if((p??r.locale??n())==="zh")return UKe(e);return BKe(e)};var YKe=()=>"OAuth 2.0",qKe=()=>"OAuth 2.0",jw=(e={},r={})=>{if((p??r.locale??n())==="zh")return qKe(e);return YKe(e)};var HKe=()=>"MCP server authenticated successfully",VKe=()=>"MCP 服务身份验证成功",$h=(e={},r={})=>{if((p??r.locale??n())==="zh")return VKe(e);return HKe(e)};var WKe=()=>"Authentication Type",KKe=()=>"身份验证类型",qw=(e={},r={})=>{if((p??r.locale??n())==="zh")return KKe(e);return WKe(e)};var GKe=()=>"Bearer Token",XKe=()=>"Bearer 令牌",Hw=(e={},r={})=>{if((p??r.locale??n())==="zh")return XKe(e);return GKe(e)};var QKe=()=>"All Direct",JKe=()=>"全部直连",$w=(e={},r={})=>{if((p??r.locale??n())==="zh")return JKe(e);return QKe(e)};var $Ke=()=>"All Off",eGe=()=>"全部关闭",Gw=(e={},r={})=>{if((p??r.locale??n())==="zh")return eGe(e);return $Ke(e)};var tGe=()=>"All Proxy",rGe=()=>"全部代理",Vw=(e={},r={})=>{if((p??r.locale??n())==="zh")return rGe(e);return tGe(e)};var oGe=()=>"Connect Account",aGe=()=>"连接账号",Gh=(e={},r={})=>{if((p??r.locale??n())==="zh")return aGe(e);return oGe(e)};var nGe=()=>"Disconnect Auth",iGe=()=>"断开身份验证",Vh=(e={},r={})=>{if((p??r.locale??n())==="zh")return iGe(e);return nGe(e)};var fGe=()=>"Client ID",sGe=()=>"Client ID",Qw=(e={},r={})=>{if((p??r.locale??n())==="zh")return sGe(e);return fGe(e)};var lGe=()=>"Client Secret",cGe=()=>"Client Secret",Kw=(e={},r={})=>{if((p??r.locale??n())==="zh")return cGe(e);return lGe(e)};var uGe=()=>"Grant Type",dGe=()=>"授权模式 (Grant Type)",Ww=(e={},r={})=>{if((p??r.locale??n())==="zh")return dGe(e);return uGe(e)};var ZGe=()=>"Scope",pGe=()=>"作用域 (Scope)",Yw=(e={},r={})=>{if((p??r.locale??n())==="zh")return pGe(e);return ZGe(e)};var mGe=()=>"Refresh Server",hGe=()=>"刷新服务器",Qh=(e={},r={})=>{if((p??r.locale??n())==="zh")return hGe(e);return mGe(e)};var gGe=()=>"Server refreshed",MGe=()=>"服务器已刷新",Jw=(e={},r={})=>{if((p??r.locale??n())==="zh")return MGe(e);return gGe(e)};var xGe=()=>"Name and description are auto-detected from the server after connecting.",vGe=()=>"连接后将自动从服务端获取名称和描述。",Kh=(e={},r={})=>{if((p??r.locale??n())==="zh")return vGe(e);return xGe(e)};var yGe=()=>"Server Instructions",_Ge=()=>"服务器说明",Xw=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ge(e);return yGe(e)};var bGe=()=>"Server Name",wGe=()=>"服务名称",ex=(e={},r={})=>{if((p??r.locale??n())==="zh")return wGe(e);return bGe(e)};var zGe=()=>"Endpoint URL",SGe=()=>"Endpoint URL",Wh=(e={},r={})=>{if((p??r.locale??n())==="zh")return SGe(e);return zGe(e)};var LGe=()=>"MCP Servers",kGe=()=>"MCP 服务",Hc=(e={},r={})=>{if((p??r.locale??n())==="zh")return kGe(e);return LGe(e)};var CGe=()=>"Configure Model Context Protocol (MCP) servers and tools for your team.",IGe=()=>"为团队配置 Model Context Protocol (MCP) 服务与工具。",xd=(e={},r={})=>{if((p??r.locale??n())==="zh")return IGe(e);return CGe(e)};var RGe=()=>"Connected",PGe=()=>"已连接",tx=(e={},r={})=>{if((p??r.locale??n())==="zh")return PGe(e);return RGe(e)};var TGe=()=>"Failed",AGe=()=>"连接失败",rx=(e={},r={})=>{if((p??r.locale??n())==="zh")return AGe(e);return TGe(e)};var EGe=()=>"Needs Authentication",DGe=()=>"需要身份验证",Yh=(e={},r={})=>{if((p??r.locale??n())==="zh")return DGe(e);return EGe(e)};var OGe=()=>"Not Connected",NGe=()=>"未连接",nx=(e={},r={})=>{if((p??r.locale??n())==="zh")return NGe(e);return OGe(e)};var FGe=()=>"Direct",jGe=()=>"直连",ox=(e={},r={})=>{if((p??r.locale??n())==="zh")return jGe(e);return FGe(e)};var BGe=()=>"Off",UGe=()=>"关闭",sx=(e={},r={})=>{if((p??r.locale??n())==="zh")return UGe(e);return BGe(e)};var YGe=()=>"Proxy",qGe=()=>"代理",ix=(e={},r={})=>{if((p??r.locale??n())==="zh")return qGe(e);return YGe(e)};var HGe=()=>"MCP Tools",VGe=()=>"MCP 工具",ax=(e={},r={})=>{if((p??r.locale??n())==="zh")return VGe(e);return HGe(e)};var WGe=(e)=>`${e?.count} Tools`,KGe=(e)=>`${e?.count} 个工具`,lx=(e,r={})=>{if((p??r.locale??n())==="zh")return KGe(e);return WGe(e)};var GGe=()=>"Configure how MCP tools are exposed to the agent. Proxy mode keeps context usage low by hiding tools behind an MCP proxy, while Direct mode exposes selected tools as native agent tools for better discovery and faster access. Use Direct mode for frequently used or critical tools, and keep large MCP servers behind the proxy to avoid unnecessary context overhead.",XGe=()=>"配置 MCP 工具向 Agent 的暴露方式。代理模式通过 MCP 代理隐匿工具,以保持较低的上下文占用;直连模式将选定工具直接作为 Agent 原生工具暴露,便于更好地发现与更快地调用。建议对高频或关键工具使用直连模式,对于大型 MCP 服务保持代理模式以避免不必要的上下文开销。",cx=(e={},r={})=>{if((p??r.locale??n())==="zh")return XGe(e);return GGe(e)};var QGe=()=>"Transport Protocol",JGe=()=>"传输协议",ux=(e={},r={})=>{if((p??r.locale??n())==="zh")return JGe(e);return QGe(e)};var $Ge=()=>"Configure providers and enabled models for built-in image and video generation tools.",eXe=()=>"配置内置图像和视频生成工具的提供商与已启用模型。",dx=(e={},r={})=>{if((p??r.locale??n())==="zh")return eXe(e);return $Ge(e)};var tXe=()=>"Media is not available.",rXe=()=>"媒体不可用。",fx=(e={},r={})=>{if((p??r.locale??n())==="zh")return rXe(e);return tXe(e)};var oXe=()=>"Media processing failed",aXe=()=>"媒体处理失败",Jh=(e={},r={})=>{if((p??r.locale??n())==="zh")return aXe(e);return oXe(e)};var nXe=()=>"An error occurred while processing this media file. You can still download the original file.",iXe=()=>"处理此媒体文件时发生错误。您仍可以下载原始文件。",Xh=(e={},r={})=>{if((p??r.locale??n())==="zh")return iXe(e);return nXe(e)};var fXe=()=>"Media Providers",sXe=()=>"媒体提供商",px=(e={},r={})=>{if((p??r.locale??n())==="zh")return sXe(e);return fXe(e)};var lXe=()=>"Configure API keys for built-in media generation providers. Providers can use environment variables or custom keys.",cXe=()=>"为内置媒体生成提供商配置 API 密钥。提供商可以使用环境变量或自定义密钥。",mx=(e={},r={})=>{if((p??r.locale??n())==="zh")return cXe(e);return lXe(e)};var uXe=()=>"Image",dXe=()=>"图像",tp=(e={},r={})=>{if((p??r.locale??n())==="zh")return dXe(e);return uXe(e)};var ZXe=()=>"Video",pXe=()=>"视频",rp=(e={},r={})=>{if((p??r.locale??n())==="zh")return pXe(e);return ZXe(e)};var mXe=()=>"Member removed",hXe=()=>"成员已移除",hx=(e={},r={})=>{if((p??r.locale??n())==="zh")return hXe(e);return mXe(e)};var gXe=()=>"Member role updated",MXe=()=>"成员角色已更新",gx=(e={},r={})=>{if((p??r.locale??n())==="zh")return MXe(e);return gXe(e)};var xXe=()=>"Members",vXe=()=>"成员",Ax=(e={},r={})=>{if((p??r.locale??n())==="zh")return vXe(e);return xXe(e)};var yXe=()=>"Members",_Xe=()=>"成员",_x=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Xe(e);return yXe(e)};var bXe=()=>"Message...",wXe=()=>"发送消息...",yx=(e={},r={})=>{if((p??r.locale??n())==="zh")return wXe(e);return bXe(e)};var zXe=()=>"Model",SXe=()=>"模型",bx=(e={},r={})=>{if((p??r.locale??n())==="zh")return SXe(e);return zXe(e)};var LXe=()=>"Model created successfully",kXe=()=>"模型创建成功",vx=(e={},r={})=>{if((p??r.locale??n())==="zh")return kXe(e);return LXe(e)};var CXe=()=>"Model deleted successfully",IXe=()=>"模型删除成功",wx=(e={},r={})=>{if((p??r.locale??n())==="zh")return IXe(e);return CXe(e)};var RXe=()=>"Model ID",PXe=()=>"模型 ID",eg=(e={},r={})=>{if((p??r.locale??n())==="zh")return PXe(e);return RXe(e)};var TXe=()=>"Model ID already exists for this provider",AXe=()=>"此提供商已存在该模型 ID",xx=(e={},r={})=>{if((p??r.locale??n())==="zh")return AXe(e);return TXe(e)};var EXe=()=>"e.g., gpt-4o, claude-3-5-sonnet-20241022",DXe=()=>"例如:gpt-4o, claude-3-5-sonnet-20241022",Sx=(e={},r={})=>{if((p??r.locale??n())==="zh")return DXe(e);return EXe(e)};var OXe=()=>"Model is required",NXe=()=>"模型为必填项",Ex=(e={},r={})=>{if((p??r.locale??n())==="zh")return NXe(e);return OXe(e)};var FXe=()=>"e.g., GPT-4o",jXe=()=>"例如:GPT-4o",Cx=(e={},r={})=>{if((p??r.locale??n())==="zh")return jXe(e);return FXe(e)};var BXe=()=>"Model updated successfully",UXe=()=>"模型更新成功",Ix=(e={},r={})=>{if((p??r.locale??n())==="zh")return UXe(e);return BXe(e)};var YXe=()=>"Models",qXe=()=>"模型列表",Sd=(e={},r={})=>{if((p??r.locale??n())==="zh")return qXe(e);return YXe(e)};var HXe=()=>"Models Configuration",VXe=()=>"模型配置",Tx=(e={},r={})=>{if((p??r.locale??n())==="zh")return VXe(e);return HXe(e)};var WXe=()=>"More options",KXe=()=>"更多选项",np=(e={},r={})=>{if((p??r.locale??n())==="zh")return KXe(e);return WXe(e)};var GXe=()=>"Move to",XXe=()=>"移动到",tg=(e={},r={})=>{if((p??r.locale??n())==="zh")return XXe(e);return GXe(e)};var QXe=(e)=>`Moving ${e?.count} item(s)`,JXe=(e)=>`正在移动 ${e?.count} 个项目`,Mx=(e,r={})=>{if((p??r.locale??n())==="zh")return JXe(e);return QXe(e)};var $Xe=()=>"MP4 Transcoding",eQe=()=>"MP4 转码",kx=(e={},r={})=>{if((p??r.locale??n())==="zh")return eQe(e);return $Xe(e)};var tQe=()=>"Generate web-compatible MP4 files for file downloads and standard video playback.",rQe=()=>"生成适用于文件下载和标准视频播放的 Web 兼容 MP4 文件。",Rx=(e={},r={})=>{if((p??r.locale??n())==="zh")return rQe(e);return tQe(e)};var oQe=()=>"Multi resolutions",aQe=()=>"多分辨率",Px=(e={},r={})=>{if((p??r.locale??n())==="zh")return aQe(e);return oQe(e)};var nQe=()=>"Generates selected resolutions up to the source quality.",iQe=()=>"生成选中的不超过源质量的分辨率。",Nx=(e={},r={})=>{if((p??r.locale??n())==="zh")return iQe(e);return nQe(e)};var fQe=()=>"My Tasks",sQe=()=>"我的任务",Dx=(e={},r={})=>{if((p??r.locale??n())==="zh")return sQe(e);return fQe(e)};var lQe=(e)=>`${e?.count} Assets`,cQe=(e)=>`${e?.count} 个资源`,op=(e,r={})=>{if((p??r.locale??n())==="zh")return cQe(e);return lQe(e)};var uQe=(e)=>`${e?.count} assets selected`,dQe=(e)=>`已选择 ${e?.count} 个资产`,ZQe=(e,r={})=>{if((p??r.locale??n())==="zh")return dQe(e);return uQe(e)};var pQe=(e)=>`${e?.count} Asset`,mQe=(e)=>`${e?.count} 个资源`,sp=(e,r={})=>{if((p??r.locale??n())==="zh")return mQe(e);return pQe(e)};var hQe=(e)=>`${e?.count} days ago`,gQe=(e)=>`${e?.count} 天前`,$se=(e,r={})=>{if((p??r.locale??n())==="zh")return gQe(e);return hQe(e)};var MQe=(e)=>`${e?.count} day ago`,xQe=(e)=>`${e?.count} 天前`,ele=(e,r={})=>{if((p??r.locale??n())==="zh")return xQe(e);return MQe(e)};var vQe=(e)=>`${e?.count} days left before permanent deletion`,yQe=(e)=>`永久删除前还剩 ${e?.count} 天`,rg=(e,r={})=>{if((p??r.locale??n())==="zh")return yQe(e);return vQe(e)};var _Qe=(e)=>`${e?.count} day left before permanent deletion`,bQe=(e)=>`永久删除前还剩 ${e?.count} 天`,ng=(e,r={})=>{if((p??r.locale??n())==="zh")return bQe(e);return _Qe(e)};var wQe=(e)=>`${e?.count} Folders`,zQe=(e)=>`${e?.count} 个文件夹`,ip=(e,r={})=>{if((p??r.locale??n())==="zh")return zQe(e);return wQe(e)};var SQe=(e)=>`${e?.count} Folder`,LQe=(e)=>`${e?.count} 个文件夹`,ap=(e,r={})=>{if((p??r.locale??n())==="zh")return LQe(e);return SQe(e)};var kQe=(e)=>`${e?.count} Items`,CQe=(e)=>`${e?.count} 个项目`,og=(e,r={})=>{if((p??r.locale??n())==="zh")return CQe(e);return kQe(e)};var IQe=(e)=>`${e?.count} Item`,RQe=(e)=>`${e?.count} 个项目`,sg=(e,r={})=>{if((p??r.locale??n())==="zh")return RQe(e);return IQe(e)};var PQe=(e)=>`${e?.count} Models`,TQe=(e)=>`${e?.count} 个模型`,Ox=(e,r={})=>{if((p??r.locale??n())==="zh")return TQe(e);return PQe(e)};var AQe=(e)=>`${e?.count} tasks`,EQe=(e)=>`${e?.count} 个任务`,DQe=(e,r={})=>{if((p??r.locale??n())==="zh")return EQe(e);return AQe(e)};var OQe=(e)=>`${e?.count} task`,NQe=(e)=>`${e?.count} 个任务`,FQe=(e,r={})=>{if((p??r.locale??n())==="zh")return NQe(e);return OQe(e)};var jQe=()=>"Name",BQe=()=>"名称",wl=(e={},r={})=>{if((p??r.locale??n())==="zh")return BQe(e);return jQe(e)};var UQe=()=>"Name is required",YQe=()=>"名称为必填项",Fx=(e={},r={})=>{if((p??r.locale??n())==="zh")return YQe(e);return UQe(e)};var qQe=()=>"John Doe",HQe=()=>"张三",Lx=(e={},r={})=>{if((p??r.locale??n())==="zh")return HQe(e);return qQe(e)};var VQe=()=>"You need at least one project in your team to upload skills.",WQe=()=>"您的团队中至少需要一个项目才能上传技能。",Zx=(e={},r={})=>{if((p??r.locale??n())==="zh")return WQe(e);return VQe(e)};var KQe=()=>"Network Sandbox",GQe=()=>"网络沙箱",Bx=(e={},r={})=>{if((p??r.locale??n())==="zh")return GQe(e);return KQe(e)};var XQe=()=>"Configure domain access controls for the sandboxed agent.",QQe=()=>"配置沙箱智能体的域名访问控制。",Ux=(e={},r={})=>{if((p??r.locale??n())==="zh")return QQe(e);return XQe(e)};var JQe=()=>"Network Sandbox is currently OFF. All outbound network requests from agent scripts are permitted without restrictions.",$Qe=()=>"网络沙箱目前处于关闭状态。智能体脚本的所有出站网络请求均不受限制。",zx=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Qe(e);return JQe(e)};var eJe=()=>"When enabled, network requests from the agent are restricted to allowed domains. When disabled, all network requests are permitted.",tJe=()=>"启用后,智能体的网络请求将受限于允许的域名列表。禁用时,允许所有网络请求。",jx=(e={},r={})=>{if((p??r.locale??n())==="zh")return tJe(e);return eJe(e)};var rJe=()=>"New Chat",oJe=()=>"开启新会话",ig=(e={},r={})=>{if((p??r.locale??n())==="zh")return oJe(e);return rJe(e)};var aJe=()=>"New Field",nJe=()=>"新建字段",qx=(e={},r={})=>{if((p??r.locale??n())==="zh")return nJe(e);return aJe(e)};var iJe=()=>"New Field",fJe=()=>"新字段",Hx=(e={},r={})=>{if((p??r.locale??n())==="zh")return fJe(e);return iJe(e)};var sJe=()=>"New Folder",lJe=()=>"新建文件夹",xl=(e={},r={})=>{if((p??r.locale??n())==="zh")return lJe(e);return sJe(e)};var cJe=()=>"New Goal",uJe=()=>"新建目标",ag=(e={},r={})=>{if((p??r.locale??n())==="zh")return uJe(e);return cJe(e)};var dJe=()=>"New",ZJe=()=>"新建",$x=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZJe(e);return dJe(e)};var pJe=()=>"New Option",mJe=()=>"新选项",Ed=(e={},r={})=>{if((p??r.locale??n())==="zh")return mJe(e);return pJe(e)};var hJe=()=>"New Password",gJe=()=>"新密码",Gx=(e={},r={})=>{if((p??r.locale??n())==="zh")return gJe(e);return hJe(e)};var MJe=()=>"Enter new password",xJe=()=>"输入新密码",Vx=(e={},r={})=>{if((p??r.locale??n())==="zh")return xJe(e);return MJe(e)};var vJe=()=>"Next file",yJe=()=>"下一个文件",lg=(e={},r={})=>{if((p??r.locale??n())==="zh")return yJe(e);return vJe(e)};var _Je=()=>"Next Page",bJe=()=>"下一页",Qx=(e={},r={})=>{if((p??r.locale??n())==="zh")return bJe(e);return _Je(e)};var wJe=()=>"Don't have an account? ",zJe=()=>"还没有账户?",SJe=(e={},r={})=>{if((p??r.locale??n())==="zh")return zJe(e);return wJe(e)};var LJe=()=>"No activity recorded yet",kJe=()=>"暂无活动记录",CJe=(e={},r={})=>{if((p??r.locale??n())==="zh")return kJe(e);return LJe(e)};var IJe=(e)=>`No ${e?.type} agents found`,RJe=(e)=>`未找到${e?.type}智能体`,Kx=(e,r={})=>{if((p??r.locale??n())==="zh")return RJe(e);return IJe(e)};var PJe=()=>"No API tokens found. Generate one above to get started.",TJe=()=>"未找到 API 令牌。请在上方生成一个以开始使用。",Wx=(e={},r={})=>{if((p??r.locale??n())==="zh")return TJe(e);return PJe(e)};var AJe=()=>"No assets in this folder",EJe=()=>"此文件夹中没有资产",DJe=(e={},r={})=>{if((p??r.locale??n())==="zh")return EJe(e);return AJe(e)};var OJe=()=>"No audit logs found",NJe=()=>"未找到审计日志",Yx=(e={},r={})=>{if((p??r.locale??n())==="zh")return NJe(e);return OJe(e)};var FJe=()=>"No chat agents found. Please create a Chat Agent below first.",jJe=()=>"未找到聊天智能体。请先在下方创建聊天智能体。",Jx=(e={},r={})=>{if((p??r.locale??n())==="zh")return jJe(e);return FJe(e)};var BJe=()=>"No collections created yet.",UJe=()=>"暂无媒体合集。",Xx=(e={},r={})=>{if((p??r.locale??n())==="zh")return UJe(e);return BJe(e)};var YJe=()=>"No comments yet",qJe=()=>"暂无评论",cg=(e={},r={})=>{if((p??r.locale??n())==="zh")return qJe(e);return YJe(e)};var HJe=()=>"No custom domains allowed",VJe=()=>"没有自定义允许域名",eS=(e={},r={})=>{if((p??r.locale??n())==="zh")return VJe(e);return HJe(e)};var WJe=()=>"No description provided.",KJe=()=>"暂无描述。",ug=(e={},r={})=>{if((p??r.locale??n())==="zh")return KJe(e);return WJe(e)};var GJe=()=>'No environment variables found. Click "Add Variable" to create one.',XJe=()=>'未找到环境变量。点击"添加变量"创建一个。',tS=(e={},r={})=>{if((p??r.locale??n())==="zh")return XJe(e);return GJe(e)};var QJe=()=>"No fields found",JJe=()=>"未找到字段",rS=(e={},r={})=>{if((p??r.locale??n())==="zh")return JJe(e);return QJe(e)};var $Je=()=>"No folder selected",e$e=()=>"未选择文件夹",t$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return e$e(e);return $Je(e)};var r$e=()=>"No Folder Structure",o$e=()=>"无文件夹结构",dg=(e={},r={})=>{if((p??r.locale??n())==="zh")return o$e(e);return r$e(e)};var a$e=()=>"No goals yet",n$e=()=>"暂无目标",nS=(e={},r={})=>{if((p??r.locale??n())==="zh")return n$e(e);return a$e(e)};var i$e=()=>"No chat history found.",f$e=()=>"暂无历史会话记录",oS=(e={},r={})=>{if((p??r.locale??n())==="zh")return f$e(e);return i$e(e)};var s$e=()=>"No item selected",l$e=()=>"未选择项目",sS=(e={},r={})=>{if((p??r.locale??n())==="zh")return l$e(e);return s$e(e)};var c$e=()=>"No tasks linked to this asset",u$e=()=>"该资产暂无关联任务",d$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return u$e(e);return c$e(e)};var Z$e=()=>"No logs found for this session.",p$e=()=>"未找到此会话的日志。",iS=(e={},r={})=>{if((p??r.locale??n())==="zh")return p$e(e);return Z$e(e)};var m$e=()=>"No matches found",h$e=()=>"未找到匹配结果",fg=(e={},r={})=>{if((p??r.locale??n())==="zh")return h$e(e);return m$e(e)};var g$e=()=>"No matching tasks found",M$e=()=>"未找到匹配的任务",tle=(e={},r={})=>{if((p??r.locale??n())==="zh")return M$e(e);return g$e(e)};var x$e=()=>"No MCP servers configured",v$e=()=>"暂未配置 MCP 服务",pg=(e={},r={})=>{if((p??r.locale??n())==="zh")return v$e(e);return x$e(e)};var y$e=()=>"No models found",_$e=()=>"未找到模型",Cd=(e={},r={})=>{if((p??r.locale??n())==="zh")return _$e(e);return y$e(e)};var b$e=()=>"No notifications",w$e=()=>"暂无通知",z$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return w$e(e);return b$e(e)};var S$e=()=>"No options found",L$e=()=>"未找到选项",mg=(e={},r={})=>{if((p??r.locale??n())==="zh")return L$e(e);return S$e(e)};var k$e=()=>"No pending domains requiring approval",C$e=()=>"没有待审核的域名",aS=(e={},r={})=>{if((p??r.locale??n())==="zh")return C$e(e);return k$e(e)};var I$e=()=>"No project selected",R$e=()=>"未选择项目",rle=(e={},r={})=>{if((p??r.locale??n())==="zh")return R$e(e);return I$e(e)};var P$e=()=>"No Providers Configured",T$e=()=>"暂无已配置的提供商",lS=(e={},r={})=>{if((p??r.locale??n())==="zh")return T$e(e);return P$e(e)};var A$e=()=>"No providers found",E$e=()=>"未找到提供商",cS=(e={},r={})=>{if((p??r.locale??n())==="zh")return E$e(e);return A$e(e)};var D$e=()=>"Set limits on AI tokens, costs, skill executions, and agent tool calls to manage team usage.",O$e=()=>"为 AI Token、费用、MCP 服务和智能体工具调用设置限制,以便管理团队的使用情况。",lp=(e={},r={})=>{if((p??r.locale??n())==="zh")return O$e(e);return D$e(e)};var N$e=()=>"No resource quotas configured",F$e=()=>"暂未配置资源配额",cp=(e={},r={})=>{if((p??r.locale??n())==="zh")return F$e(e);return N$e(e)};var j$e=()=>"No recently viewed files",B$e=()=>"暂无最近浏览文件",up=(e={},r={})=>{if((p??r.locale??n())==="zh")return B$e(e);return j$e(e)};var U$e=()=>"Files you view in this project will appear here.",Y$e=()=>"您在此项目中查看的文件将显示在此处。",dp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y$e(e);return U$e(e)};var q$e=()=>"No records matched your criteria",H$e=()=>"没有记录匹配您的条件",uS=(e={},r={})=>{if((p??r.locale??n())==="zh")return H$e(e);return q$e(e)};var V$e=()=>"No related assets linked",W$e=()=>"暂无关联资产",K$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return W$e(e);return V$e(e)};var G$e=()=>"No sessions found",X$e=()=>"未找到会话",dS=(e={},r={})=>{if((p??r.locale??n())==="zh")return X$e(e);return G$e(e)};var Q$e=()=>"No share links created yet.",J$e=()=>"暂无分享链接。",fS=(e={},r={})=>{if((p??r.locale??n())==="zh")return J$e(e);return Q$e(e)};var $$e=()=>"No skills available.",eet=()=>"暂无可用技能。",pS=(e={},r={})=>{if((p??r.locale??n())==="zh")return eet(e);return $$e(e)};var tet=()=>"No skills installed",ret=()=>"暂无已安装的技能",mS=(e={},r={})=>{if((p??r.locale??n())==="zh")return ret(e);return tet(e)};var oet=()=>"No tasks in this column",aet=()=>"该列暂无任务",hS=(e={},r={})=>{if((p??r.locale??n())==="zh")return aet(e);return oet(e)};var net=()=>"No saved templates",iet=()=>"没有保存的模板",gS=(e={},r={})=>{if((p??r.locale??n())==="zh")return iet(e);return net(e)};var fet=()=>"No tools found matching your search.",set=()=>"未找到符合搜索条件的工具。",AS=(e={},r={})=>{if((p??r.locale??n())==="zh")return set(e);return fet(e)};var cet=()=>"Upload files in the project view to track progress here.",uet=()=>"在项目视图中上传文件以在此处跟踪进度。",det=(e={},r={})=>{if((p??r.locale??n())==="zh")return uet(e);return cet(e)};var Zet=()=>"No uploads yet",pet=()=>"暂无上传",met=(e={},r={})=>{if((p??r.locale??n())==="zh")return pet(e);return Zet(e)};var het=()=>"No versions found",get=()=>"暂无版本",Met=(e={},r={})=>{if((p??r.locale??n())==="zh")return get(e);return het(e)};var xet=()=>"No watermark blocks added yet",vet=()=>"尚未添加水印块",_S=(e={},r={})=>{if((p??r.locale??n())==="zh")return vet(e);return xet(e)};var yet=()=>"Notification",_et=()=>"通知",yS=(e={},r={})=>{if((p??r.locale??n())==="zh")return _et(e);return yet(e)};var bet=(e)=>`${e?.creator} commented on ${e?.asset}`,wet=(e)=>`${e?.creator} 评论了 ${e?.asset}`,zet=(e,r={})=>{if((p??r.locale??n())==="zh")return wet(e);return bet(e)};var Let=(e)=>`New notification from ${e?.creator}`,ket=(e)=>`来自 ${e?.creator} 的新通知`,Cet=(e,r={})=>{if((p??r.locale??n())==="zh")return ket(e);return Let(e)};var Iet=(e)=>`${e?.user} joined ${e?.project}`,Ret=(e)=>`${e?.user} 加入了 ${e?.project}`,Pet=(e,r={})=>{if((p??r.locale??n())==="zh")return Ret(e);return Iet(e)};var Tet=(e)=>`${e?.user} joined ${e?.team}`,Aet=(e)=>`${e?.user} 加入了 ${e?.team}`,Eet=(e,r={})=>{if((p??r.locale??n())==="zh")return Aet(e);return Tet(e)};var Det=(e)=>`${e?.creator} assigned you to task ${e?.task}`,Oet=(e)=>`${e?.creator} 将任务 ${e?.task} 分配给了你`,Net=(e,r={})=>{if((p??r.locale??n())==="zh")return Oet(e);return Det(e)};var Fet=(e)=>`${e?.creator} commented on task ${e?.task}`,jet=(e)=>`${e?.creator} 评论了任务 ${e?.task}`,Bet=(e,r={})=>{if((p??r.locale??n())==="zh")return jet(e);return Fet(e)};var Uet=(e)=>`${e?.creator} created task ${e?.task}`,Yet=(e)=>`${e?.creator} 创建了任务 ${e?.task}`,qet=(e,r={})=>{if((p??r.locale??n())==="zh")return Yet(e);return Uet(e)};var Het=(e)=>`${e?.creator} deleted task ${e?.task}`,Vet=(e)=>`${e?.creator} 删除了任务 ${e?.task}`,Wet=(e,r={})=>{if((p??r.locale??n())==="zh")return Vet(e);return Het(e)};var Ket=(e)=>`${e?.creator} updated status of task ${e?.task}`,Get=(e)=>`${e?.creator} 更新了任务 ${e?.task} 的状态`,Xet=(e,r={})=>{if((p??r.locale??n())==="zh")return Get(e);return Ket(e)};var Qet=(e)=>`${e?.creator} updated task ${e?.task}`,Jet=(e)=>`${e?.creator} 更新了任务 ${e?.task}`,$et=(e,r={})=>{if((p??r.locale??n())==="zh")return Jet(e);return Qet(e)};var ett=(e)=>`${e?.creator} mentioned you in ${e?.asset}`,ttt=(e)=>`${e?.creator} 在 ${e?.asset} 中提及了你`,rtt=(e,r={})=>{if((p??r.locale??n())==="zh")return ttt(e);return ett(e)};var ott=(e)=>`${e?.creator} mentioned you in task ${e?.task}`,att=(e)=>`${e?.creator} 在任务 ${e?.task} 中提及了你`,ntt=(e,r={})=>{if((p??r.locale??n())==="zh")return att(e);return ott(e)};var itt=(e)=>`${e?.creator} replied to a comment on ${e?.asset}`,ftt=(e)=>`${e?.creator} 回复了 ${e?.asset} 上的评论`,stt=(e,r={})=>{if((p??r.locale??n())==="zh")return ftt(e);return itt(e)};var ltt=()=>"Notification Settings",ctt=()=>"通知设置",bS=(e={},r={})=>{if((p??r.locale??n())==="zh")return ctt(e);return ltt(e)};var utt=()=>"Notification settings updated",dtt=()=>"通知设置已更新",vS=(e={},r={})=>{if((p??r.locale??n())==="zh")return dtt(e);return utt(e)};var Ztt=(e)=>`${e?.creator} updated status of ${e?.asset}`,ptt=(e)=>`${e?.creator} 更新了 ${e?.asset} 的状态`,mtt=(e,r={})=>{if((p??r.locale??n())==="zh")return ptt(e);return Ztt(e)};var htt=(e)=>`${e?.creator} uploaded ${e?.asset} to ${e?.project}`,gtt=(e)=>`${e?.creator} 将 ${e?.asset} 上传到 ${e?.project}`,Mtt=(e,r={})=>{if((p??r.locale??n())==="zh")return gtt(e);return htt(e)};var xtt=()=>"Notifications",vtt=()=>"通知",hg=(e={},r={})=>{if((p??r.locale??n())==="zh")return vtt(e);return xtt(e)};var ytt=()=>"Configure your personal notification preferences for this team.",_tt=()=>"配置您在此团队的个人通知偏好。",wS=(e={},r={})=>{if((p??r.locale??n())==="zh")return _tt(e);return ytt(e)};var btt=()=>"Only team owners can access the dashboard.",wtt=()=>"只有团队所有者才能访问仪表盘。",xS=(e={},r={})=>{if((p??r.locale??n())==="zh")return wtt(e);return btt(e)};var ztt=()=>"Only .zip files are supported.",Stt=()=>"仅支持 .zip 文件。",SS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Stt(e);return ztt(e)};var Ltt=()=>"Opacity",ktt=()=>"透明度",ES=(e={},r={})=>{if((p??r.locale??n())==="zh")return ktt(e);return Ltt(e)};var Ctt=()=>"Open a supported file to add markup",Itt=()=>"打开支持的文件以添加标注",CS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Itt(e);return Ctt(e)};var Rtt=()=>"Open Share Link",Ptt=()=>"打开分享链接",IS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ptt(e);return Rtt(e)};var Ttt=()=>"Operator",Att=()=>"运算符",TS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Att(e);return Ttt(e)};var Ett=()=>"contains",Dtt=()=>"包含",MS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dtt(e);return Ett(e)};var Ott=()=>"does not contain",Ntt=()=>"不包含",kS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ntt(e);return Ott(e)};var Ftt=()=>"has all of",jtt=()=>"含有全部",RS=(e={},r={})=>{if((p??r.locale??n())==="zh")return jtt(e);return Ftt(e)};var Btt=()=>"has any of",Utt=()=>"含有其中之一",PS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Utt(e);return Btt(e)};var Ytt=()=>"has none of",qtt=()=>"不含有其中任何",NS=(e={},r={})=>{if((p??r.locale??n())==="zh")return qtt(e);return Ytt(e)};var Htt=()=>"is",Vtt=()=>"是",Sl=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vtt(e);return Htt(e)};var Wtt=()=>"is after",Ktt=()=>"在之后",DS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ktt(e);return Wtt(e)};var Gtt=()=>"is any of",Xtt=()=>"是其中之一",OS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xtt(e);return Gtt(e)};var Qtt=()=>"is before",Jtt=()=>"在之前",FS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jtt(e);return Qtt(e)};var $tt=()=>"is empty",ert=()=>"为空",El=(e={},r={})=>{if((p??r.locale??n())==="zh")return ert(e);return $tt(e)};var trt=()=>"is exactly",rrt=()=>"完全匹配",LS=(e={},r={})=>{if((p??r.locale??n())==="zh")return rrt(e);return trt(e)};var ort=()=>"is none of",art=()=>"不在其中",ZS=(e={},r={})=>{if((p??r.locale??n())==="zh")return art(e);return ort(e)};var nrt=()=>"is not",irt=()=>"不是",Id=(e={},r={})=>{if((p??r.locale??n())==="zh")return irt(e);return nrt(e)};var frt=()=>"is not empty",srt=()=>"不为空",Cl=(e={},r={})=>{if((p??r.locale??n())==="zh")return srt(e);return frt(e)};var lrt=()=>"is on or after",crt=()=>"在当天或之后",BS=(e={},r={})=>{if((p??r.locale??n())==="zh")return crt(e);return lrt(e)};var urt=()=>"is on or before",drt=()=>"在当天或之前",US=(e={},r={})=>{if((p??r.locale??n())==="zh")return drt(e);return urt(e)};var Zrt=()=>"is within",prt=()=>"在范围内",zS=(e={},r={})=>{if((p??r.locale??n())==="zh")return prt(e);return Zrt(e)};var mrt=()=>"Option name",hrt=()=>"选项名称",fp=(e={},r={})=>{if((p??r.locale??n())==="zh")return hrt(e);return mrt(e)};var grt=()=>"Optional default value...",Mrt=()=>"可选默认值...",jS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mrt(e);return grt(e)};var xrt=()=>"Options",vrt=()=>"选项",Td=(e={},r={})=>{if((p??r.locale??n())==="zh")return vrt(e);return xrt(e)};var yrt=()=>"OR",_rt=()=>"或",gg=(e={},r={})=>{if((p??r.locale??n())==="zh")return _rt(e);return yrt(e)};var brt=()=>"Order",wrt=()=>"顺序",pp=(e={},r={})=>{if((p??r.locale??n())==="zh")return wrt(e);return brt(e)};var zrt=()=>"Original",Srt=()=>"原始",Oa=(e={},r={})=>{if((p??r.locale??n())==="zh")return Srt(e);return zrt(e)};var Lrt=()=>"Other Uploads",krt=()=>"其他上传",qS=(e={},r={})=>{if((p??r.locale??n())==="zh")return krt(e);return Lrt(e)};var Crt=()=>"Output Cost (1M)",Irt=()=>"输出成本(每百万)",HS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Irt(e);return Crt(e)};var Rrt=()=>"Output Tokens",Prt=()=>"输出 Token",Ag=(e={},r={})=>{if((p??r.locale??n())==="zh")return Prt(e);return Rrt(e)};var Trt=()=>"Override the default endpoint.",Art=()=>"覆盖默认端点。",_g=(e={},r={})=>{if((p??r.locale??n())==="zh")return Art(e);return Trt(e)};var Ert=()=>"Do you want to override the existing skill?",Drt=()=>"你想覆盖现有技能吗?",$S=(e={},r={})=>{if((p??r.locale??n())==="zh")return Drt(e);return Ert(e)};var Ort=()=>"Overwrite Existing Template",Nrt=()=>"覆盖现有模板",yg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nrt(e);return Ort(e)};var Frt=()=>"Owner",jrt=()=>"管理员",$c=(e={},r={})=>{if((p??r.locale??n())==="zh")return jrt(e);return Frt(e)};var Brt=()=>"Package Upload",Urt=()=>"包上传",GS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Urt(e);return Brt(e)};var Yrt=()=>"Packages must contain a SKILL.md",qrt=()=>"包必须包含 SKILL.md",VS=(e={},r={})=>{if((p??r.locale??n())==="zh")return qrt(e);return Yrt(e)};var Hrt=(e)=>`Page ${e?.current} of ${e?.total}`,Vrt=(e)=>`第 ${e?.current} / ${e?.total} 页`,QS=(e,r={})=>{if((p??r.locale??n())==="zh")return Vrt(e);return Hrt(e)};var Wrt=(e)=>`Page ${e?.page}`,Krt=(e)=>`第 ${e?.page} 页`,bg=(e,r={})=>{if((p??r.locale??n())==="zh")return Krt(e);return Wrt(e)};var Grt=()=>"Parameters",Xrt=()=>"参数",KS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xrt(e);return Grt(e)};var Qrt=()=>"Parent Tasks",Jrt=()=>"前置任务",vg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jrt(e);return Qrt(e)};var $rt=()=>"Password",eot=()=>"密码",mp=(e={},r={})=>{if((p??r.locale??n())==="zh")return eot(e);return $rt(e)};var tot=()=>"Password is required",rot=()=>"密码为必填项",oot=(e={},r={})=>{if((p??r.locale??n())==="zh")return rot(e);return tot(e)};var aot=()=>"Password must be at least 3 characters",not=()=>"密码至少需要 3 个字符",hp=(e={},r={})=>{if((p??r.locale??n())==="zh")return not(e);return aot(e)};var iot=()=>"At least 3 characters",fot=()=>"至少 3 个字符",sot=(e={},r={})=>{if((p??r.locale??n())==="zh")return fot(e);return iot(e)};var lot=()=>"Your password",cot=()=>"请输入密码",uot=(e={},r={})=>{if((p??r.locale??n())==="zh")return cot(e);return lot(e)};var dot=()=>"Password Protected",Zot=()=>"密码保护",WS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zot(e);return dot(e)};var pot=()=>"Password reset successfully!",mot=()=>"密码重置成功!",YS=(e={},r={})=>{if((p??r.locale??n())==="zh")return mot(e);return pot(e)};var hot=()=>"You will be redirected to the login page shortly.",got=()=>"您将很快被重定向到登录页面。",JS=(e={},r={})=>{if((p??r.locale??n())==="zh")return got(e);return hot(e)};var Mot=()=>"Passwords do not match",xot=()=>"两次输入的密码不一致",XS=(e={},r={})=>{if((p??r.locale??n())==="zh")return xot(e);return Mot(e)};var vot=()=>"Pending Domain Approvals",yot=()=>"待审核域名",eE=(e={},r={})=>{if((p??r.locale??n())==="zh")return yot(e);return vot(e)};var _ot=()=>"These domains were blocked during agent execution. You can approve them to allow future network requests, or delete them from this list.",bot=()=>"这些域名在智能体执行期间被阻止。您可以批准它们以允许将来的网络请求,或从此列表中删除它们。",tE=(e={},r={})=>{if((p??r.locale??n())==="zh")return bot(e);return _ot(e)};var wot=()=>"All Users",zot=()=>"所有成员",Fa=(e={},r={})=>{if((p??r.locale??n())==="zh")return zot(e);return wot(e)};var Sot=()=>"Owner & Editor",Lot=()=>"管理员与编辑",La=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lot(e);return Sot(e)};var kot=()=>"Owner Only",Cot=()=>"仅管理员",Za=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cot(e);return kot(e)};var Iot=()=>"Personal Info",Rot=()=>"个人信息",rE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rot(e);return Iot(e)};var Pot=()=>"Manage your profile name and avatar image.",Tot=()=>"管理您的个人资料名称和头像图片。",nE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tot(e);return Pot(e)};var Aot=()=>"Personal Settings",Eot=()=>"个人设置",oE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eot(e);return Aot(e)};var Dot=()=>"Playback Speed",Oot=()=>"播放速度",sE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oot(e);return Dot(e)};var Not=()=>"Position and resize",Fot=()=>"定位和调整大小",iE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fot(e);return Not(e)};var jot=()=>"Position X (%)",Bot=()=>"水平位置 (%)",aE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bot(e);return jot(e)};var Uot=()=>"Position Y (%)",Yot=()=>"垂直位置 (%)",lE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yot(e);return Uot(e)};var qot=()=>"Preparing...",Hot=()=>"准备中...",cE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hot(e);return qot(e)};var Vot=()=>"Preparing Download",Wot=()=>"正在准备下载",wg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wot(e);return Vot(e)};var Kot=()=>"Preparing download links...",Got=()=>"正在准备下载链接...",xg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Got(e);return Kot(e)};var Xot=()=>"Preset Avatar Option",Qot=()=>"预设头像选项",uE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qot(e);return Xot(e)};var Jot=()=>"Previous file",$ot=()=>"上一个文件",Sg=(e={},r={})=>{if((p??r.locale??n())==="zh")return $ot(e);return Jot(e)};var eat=()=>"Previous Page",tat=()=>"上一页",gp=(e={},r={})=>{if((p??r.locale??n())==="zh")return tat(e);return eat(e)};var rat=()=>"Pricing ($ per 1M tokens)",oat=()=>"计费(每百万令牌美元)",dE=(e={},r={})=>{if((p??r.locale??n())==="zh")return oat(e);return rat(e)};var aat=()=>"High",nat=()=>"高",iat=(e={},r={})=>{if((p??r.locale??n())==="zh")return nat(e);return aat(e)};var fat=()=>"Low",sat=()=>"低",lat=(e={},r={})=>{if((p??r.locale??n())==="zh")return sat(e);return fat(e)};var cat=()=>"Medium",uat=()=>"中",dat=(e={},r={})=>{if((p??r.locale??n())==="zh")return uat(e);return cat(e)};var Zat=()=>"Urgent",pat=()=>"紧急",mat=(e={},r={})=>{if((p??r.locale??n())==="zh")return pat(e);return Zat(e)};var hat=()=>"Processing...",gat=()=>"处理中...",fE=(e={},r={})=>{if((p??r.locale??n())==="zh")return gat(e);return hat(e)};var Mat=()=>"Processing failed",xat=()=>"处理失败",Eg=(e={},r={})=>{if((p??r.locale??n())==="zh")return xat(e);return Mat(e)};var vat=()=>"(Processing failed)",yat=()=>"(处理失败)",pE=(e={},r={})=>{if((p??r.locale??n())==="zh")return yat(e);return vat(e)};var _at=()=>"Processing package...",bat=()=>"正在处理包...",mE=(e={},r={})=>{if((p??r.locale??n())==="zh")return bat(e);return _at(e)};var wat=()=>"Profile updated successfully",zat=()=>"个人资料更新成功",Cg=(e={},r={})=>{if((p??r.locale??n())==="zh")return zat(e);return wat(e)};var Sat=()=>"project",Lat=()=>"项目",hE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lat(e);return Sat(e)};var kat=()=>"Project Cover",Cat=()=>"项目封面",gE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cat(e);return kat(e)};var Iat=()=>"Project ID",Rat=()=>"项目 ID",AE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rat(e);return Iat(e)};var Pat=()=>"Project Member",Tat=()=>"项目成员",Ap=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tat(e);return Pat(e)};var Aat=()=>"Project-scoped member roles are managed within individual project settings",Eat=()=>"项目成员的角色需在具体的项目设置中管理",_E=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eat(e);return Aat(e)};var Dat=()=>"Project Members",Oat=()=>"项目成员",yE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oat(e);return Dat(e)};var Nat=()=>"Project Name",Fat=()=>"项目名称",bE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fat(e);return Nat(e)};var jat=()=>"A clear, concise name to identify your project space.",Bat=()=>"简洁明了的名称,用于标识您的项目空间。",vE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bat(e);return jat(e)};var Uat=()=>"e.g. Acme Marketing, Q3 Product Launch...",Yat=()=>"例如:品牌营销、第三季度产品发布...",wE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yat(e);return Uat(e)};var qat=()=>"Project notification settings updated",Hat=()=>"项目通知设置已更新",xE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hat(e);return qat(e)};var Vat=()=>"Project Preferences",Wat=()=>"项目偏好设置",SE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wat(e);return Vat(e)};var Kat=()=>"Project Settings",Gat=()=>"项目设置",Ig=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gat(e);return Kat(e)};var Xat=()=>"Projects",Qat=()=>"项目",EE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qat(e);return Xat(e)};var Jat=()=>"Please provide your name and email to add a comment.",$at=()=>"请提供您的姓名和邮箱以添加评论。",CE=(e={},r={})=>{if((p??r.locale??n())==="zh")return $at(e);return Jat(e)};var ent=()=>"Provider",tnt=()=>"提供商",IE=(e={},r={})=>{if((p??r.locale??n())==="zh")return tnt(e);return ent(e)};var rnt=()=>"Provider created successfully",ont=()=>"提供商创建成功",TE=(e={},r={})=>{if((p??r.locale??n())==="zh")return ont(e);return rnt(e)};var ant=()=>"Provider deleted successfully",nnt=()=>"提供商删除成功",ME=(e={},r={})=>{if((p??r.locale??n())==="zh")return nnt(e);return ant(e)};var int=()=>"Provider is required",fnt=()=>"提供商为必填项",kE=(e={},r={})=>{if((p??r.locale??n())==="zh")return fnt(e);return int(e)};var snt=()=>"Provider Name",lnt=()=>"提供商名称",Tg=(e={},r={})=>{if((p??r.locale??n())==="zh")return lnt(e);return snt(e)};var cnt=()=>"Provider name is required",unt=()=>"提供商名称为必填项",Mg=(e={},r={})=>{if((p??r.locale??n())==="zh")return unt(e);return cnt(e)};var dnt=()=>"Provider name must be unique",Znt=()=>"提供商名称必须唯一",kg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Znt(e);return dnt(e)};var pnt=()=>"e.g., My OpenAI",mnt=()=>"例如:我的 OpenAI",Rg=(e={},r={})=>{if((p??r.locale??n())==="zh")return mnt(e);return pnt(e)};var hnt=()=>"This provider is not configured. Configure an API key in the API Key tab before using these models.",gnt=()=>"此提供商尚未配置。在使用这些模型前,请在 API 密钥标签页中配置密钥。",RE=(e={},r={})=>{if((p??r.locale??n())==="zh")return gnt(e);return hnt(e)};var Mnt=()=>"Configured (Custom)",xnt=()=>"已配置(自定义)",Pg=(e={},r={})=>{if((p??r.locale??n())==="zh")return xnt(e);return Mnt(e)};var vnt=()=>"Configured (Environment)",ynt=()=>"已配置(环境变量)",Ng=(e={},r={})=>{if((p??r.locale??n())==="zh")return ynt(e);return vnt(e)};var _nt=()=>"Not Configured",bnt=()=>"未配置",Dg=(e={},r={})=>{if((p??r.locale??n())==="zh")return bnt(e);return _nt(e)};var wnt=()=>"Provider updated successfully",znt=()=>"提供商更新成功",Og=(e={},r={})=>{if((p??r.locale??n())==="zh")return znt(e);return wnt(e)};var Snt=()=>"Providers",Lnt=()=>"提供商",PE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lnt(e);return Snt(e)};var knt=()=>"Configure AI providers and their models for this team.",Cnt=()=>"为此团队配置 AI 提供商及其模型。",NE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cnt(e);return knt(e)};var Int=()=>"Public Link",Rnt=()=>"公开链接",DE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rnt(e);return Int(e)};var Pnt=()=>"Quality",Tnt=()=>"画质",Fg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tnt(e);return Pnt(e)};var Ant=()=>"Auto",Ent=()=>"自动",Il=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ent(e);return Ant(e)};var Dnt=()=>"Querying database...",Ont=()=>"正在查询数据库...",OE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ont(e);return Dnt(e)};var Nnt=()=>"Quota available",Fnt=()=>"配额可用",Lg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fnt(e);return Nnt(e)};var jnt=()=>"Supports wildcards (*). Examples: git *, npm test, curl *, python script.py (use * for all commands)",Bnt=()=>"支持通配符 (*)。示例:git *、npm test、curl *、python script.py(使用 * 匹配所有命令)",FE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bnt(e);return jnt(e)};var Unt=()=>"Collapse quota rule",Ynt=()=>"收起配额规则",LE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ynt(e);return Unt(e)};var qnt=()=>"Quota rule created successfully",Hnt=()=>"配额规则创建成功",ZE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hnt(e);return qnt(e)};var Vnt=()=>"Monitor live quota usage and reset individual usage windows.",Wnt=()=>"在仪表盘中监控实时配额使用情况,并重置单个使用窗口。",BE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wnt(e);return Vnt(e)};var Knt=()=>"Quota rule deleted successfully",Gnt=()=>"配额规则删除成功",Zg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gnt(e);return Knt(e)};var Xnt=()=>"Disabled",Qnt=()=>"已禁用",_p=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qnt(e);return Xnt(e)};var Jnt=()=>"Enabled",$nt=()=>"已启用",UE=(e={},r={})=>{if((p??r.locale??n())==="zh")return $nt(e);return Jnt(e)};var eit=()=>"Expand quota rule",tit=()=>"展开配额规则",zE=(e={},r={})=>{if((p??r.locale??n())==="zh")return tit(e);return eit(e)};var rit=()=>"Limit",oit=()=>"上限",jE=(e={},r={})=>{if((p??r.locale??n())==="zh")return oit(e);return rit(e)};var ait=()=>"e.g. 100000",nit=()=>"例如 100000",qE=(e={},r={})=>{if((p??r.locale??n())==="zh")return nit(e);return ait(e)};var iit=()=>"No usage records found",fit=()=>"暂无使用记录",HE=(e={},r={})=>{if((p??r.locale??n())==="zh")return fit(e);return iit(e)};var sit=()=>"Period Window",lit=()=>"周期窗口",$E=(e={},r={})=>{if((p??r.locale??n())==="zh")return lit(e);return sit(e)};var cit=()=>"1 Day",uit=()=>"1 天",yp=(e={},r={})=>{if((p??r.locale??n())==="zh")return uit(e);return cit(e)};var dit=()=>"1 Hour",Zit=()=>"1 小时",bp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zit(e);return dit(e)};var pit=()=>"5 Hours",mit=()=>"5 小时",vp=(e={},r={})=>{if((p??r.locale??n())==="zh")return mit(e);return pit(e)};var hit=()=>"7 Days",git=()=>"7 天",wp=(e={},r={})=>{if((p??r.locale??n())==="zh")return git(e);return hit(e)};var Mit=(e)=>`Refreshes in ${e?.time}`,xit=(e)=>`${e?.time} 后重置`,Bg=(e,r={})=>{if((p??r.locale??n())==="zh")return xit(e);return Mit(e)};var vit=()=>"Remaining",yit=()=>"剩余额度",GE=(e={},r={})=>{if((p??r.locale??n())==="zh")return yit(e);return vit(e)};var _it=()=>"Quota usage reset successfully",bit=()=>"配额使用量重置成功",VE=(e={},r={})=>{if((p??r.locale??n())==="zh")return bit(e);return _it(e)};var wit=()=>"Reset Usage",zit=()=>"重置使用量",Ug=(e={},r={})=>{if((p??r.locale??n())==="zh")return zit(e);return wit(e)};var Sit=(e)=>`Reset usage for ${e?.target}? Consumption will be cleared and a new quota window will start now.`,Lit=(e)=>`确定要重置 ${e?.target} 的使用量吗?当前消耗将被清零,并立即开始新的配额周期。`,QE=(e,r={})=>{if((p??r.locale??n())==="zh")return Lit(e);return Sit(e)};var kit=()=>"Resource",Cit=()=>"资源类型",KE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cit(e);return kit(e)};var Iit=()=>"Agent Bash Calls",Rit=()=>"智能体 Bash 执行次数",Md=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rit(e);return Iit(e)};var Pit=()=>"AI Cost ($)",Tit=()=>"AI 费用 ($)",kd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tit(e);return Pit(e)};var Ait=()=>"MCP Server Calls",Eit=()=>"MCP 服务调用次数",Rd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eit(e);return Ait(e)};var Dit=()=>"Agent Tool Calls",Oit=()=>"智能体工具调用次数",Pd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oit(e);return Dit(e)};var Nit=()=>"AI Tokens",Fit=()=>"AI Token 总量",Nd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fit(e);return Nit(e)};var jit=()=>"Role Shared Pool",Bit=()=>"角色共享配额池",WE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bit(e);return jit(e)};var Uit=()=>"Scope",Yit=()=>"范围",YE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yit(e);return Uit(e)};var qit=()=>"Target Mode",Hit=()=>"目标模式",JE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hit(e);return qit(e)};var Vit=()=>"All Members",Wit=()=>"所有成员",Dd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wit(e);return Vit(e)};var Kit=()=>"Shared pooled limit across all matching members",Git=()=>"所有符合条件的成员共同享有总配额上限",XE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Git(e);return Kit(e)};var Xit=()=>"Each Member",Qit=()=>"每个成员",Od=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qit(e);return Xit(e)};var Jit=()=>"Individual limit for each matching member",$it=()=>"为每个符合条件的成员分别设定独立的配额上限",eC=(e={},r={})=>{if((p??r.locale??n())==="zh")return $it(e);return Jit(e)};var eft=()=>"Selected Members",tft=()=>"指定成员",Fd=(e={},r={})=>{if((p??r.locale??n())==="zh")return tft(e);return eft(e)};var rft=()=>"Individual limit for selected users",oft=()=>"为选定的成员分别设定独立的配额上限",tC=(e={},r={})=>{if((p??r.locale??n())==="zh")return oft(e);return rft(e)};var aft=()=>"Role-based",nft=()=>"按角色",xp=(e={},r={})=>{if((p??r.locale??n())==="zh")return nft(e);return aft(e)};var ift=()=>"Entire Team",fft=()=>"整个团队",Tl=(e={},r={})=>{if((p??r.locale??n())==="zh")return fft(e);return ift(e)};var sft=()=>"Search members...",lft=()=>"搜索成员...",Sp=(e={},r={})=>{if((p??r.locale??n())==="zh")return lft(e);return sft(e)};var cft=(e)=>`${e?.count} members selected`,uft=(e)=>`已选择 ${e?.count} 位成员`,rC=(e,r={})=>{if((p??r.locale??n())==="zh")return uft(e);return cft(e)};var dft=()=>"Quota status updated",Zft=()=>"配额状态已更新",nC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zft(e);return dft(e)};var pft=(e)=>`Match: ${e?.value}`,mft=(e)=>`匹配:${e?.value}`,oC=(e,r={})=>{if((p??r.locale??n())==="zh")return mft(e);return pft(e)};var hft=(e)=>`Server: ${e?.value}`,gft=(e)=>`服务:${e?.value}`,sC=(e,r={})=>{if((p??r.locale??n())==="zh")return gft(e);return hft(e)};var Mft=(e)=>`Tool: ${e?.value}`,xft=(e)=>`工具:${e?.value}`,iC=(e,r={})=>{if((p??r.locale??n())==="zh")return xft(e);return Mft(e)};var vft=()=>"Team Shared Pool",yft=()=>"团队共享配额池",aC=(e={},r={})=>{if((p??r.locale??n())==="zh")return yft(e);return vft(e)};var _ft=()=>"Select a specific agent tool to configure its quota limit",bft=()=>"选择特定的智能体工具以配置其配额限制",lC=(e={},r={})=>{if((p??r.locale??n())==="zh")return bft(e);return _ft(e)};var wft=()=>"Quota rule updated successfully",zft=()=>"配额规则更新成功",cC=(e={},r={})=>{if((p??r.locale??n())==="zh")return zft(e);return wft(e)};var Sft=()=>"Quotas",Lft=()=>"配额",Ld=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lft(e);return Sft(e)};var kft=(e)=>`${e?.others} reacted with ${e?.emoji}`,Cft=(e)=>`${e?.others} 回应了 ${e?.emoji}`,uC=(e,r={})=>{if((p??r.locale??n())==="zh")return Cft(e);return kft(e)};var Ift=(e)=>`You reacted with ${e?.emoji}`,Rft=(e)=>`你回应了 ${e?.emoji}`,dC=(e,r={})=>{if((p??r.locale??n())==="zh")return Rft(e);return Ift(e)};var Pft=(e)=>`You and ${e?.others} reacted with ${e?.emoji}`,Tft=(e)=>`你和 ${e?.others} 回应了 ${e?.emoji}`,fC=(e,r={})=>{if((p??r.locale??n())==="zh")return Tft(e);return Pft(e)};var Aft=()=>"Ready to Search",Eft=()=>"准备搜索",pC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eft(e);return Aft(e)};var Dft=()=>"Reasoning Support",Oft=()=>"推理支持",Ep=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oft(e);return Dft(e)};var Nft=()=>"Recently Deleted",Fft=()=>"最近删除",zg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fft(e);return Nft(e)};var jft=()=>"Items are automatically deleted after 30 days.",Bft=()=>"项目将在 30 天后自动删除。",Cp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bft(e);return jft(e)};var Uft=()=>"Recently Viewed",Yft=()=>"最近浏览",jg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yft(e);return Uft(e)};var qft=()=>"This page displays the 100 most recent files you viewed in this project.",Hft=()=>"此页面显示您最近在当前项目中查看过的 100 个文件。",mC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hft(e);return qft(e)};var Vft=()=>"Registration Disabled",Wft=()=>"注册已关闭",Kft=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wft(e);return Vft(e)};var Gft=()=>"Public registration is currently disabled. You will need an invite code to join this team.",Xft=()=>"公开注册目前已关闭。您需要邀请码才能加入此团队。",Qft=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xft(e);return Gft(e)};var Jft=()=>"Related Assets",$ft=()=>"关联资产",est=(e={},r={})=>{if((p??r.locale??n())==="zh")return $ft(e);return Jft(e)};var tst=()=>"Remove",rst=()=>"移除",Ml=(e={},r={})=>{if((p??r.locale??n())==="zh")return rst(e);return tst(e)};var ost=()=>"Remove Cover",ast=()=>"移除封面",hC=(e={},r={})=>{if((p??r.locale??n())==="zh")return ast(e);return ost(e)};var nst=()=>"Remove from context",ist=()=>"从上下文中移除",gC=(e={},r={})=>{if((p??r.locale??n())==="zh")return ist(e);return nst(e)};var fst=()=>"Remove from Share",sst=()=>"从分享中移除",Ip=(e={},r={})=>{if((p??r.locale??n())==="zh")return sst(e);return fst(e)};var lst=()=>"Remove from stack",cst=()=>"从版本堆栈中移除",ust=(e={},r={})=>{if((p??r.locale??n())==="zh")return cst(e);return lst(e)};var dst=()=>"Remove Member",Zst=()=>"移除成员",AC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zst(e);return dst(e)};var pst=(e)=>`Are you sure you want to remove ${e?.name} from this ${e?.type}? This action cannot be undone.`,mst=(e)=>`确定要从此${e?.type}中移除 ${e?.name} 吗?此操作无法撤销。`,_C=(e,r={})=>{if((p??r.locale??n())==="zh")return mst(e);return pst(e)};var hst=()=>"Removed from share",gst=()=>"已从分享中移除",yC=(e={},r={})=>{if((p??r.locale??n())==="zh")return gst(e);return hst(e)};var Mst=()=>"Rename",xst=()=>"重命名",Fo=(e={},r={})=>{if((p??r.locale??n())==="zh")return xst(e);return Mst(e)};var vst=()=>"Rename Collection",yst=()=>"重命名媒体合集",_st=(e={},r={})=>{if((p??r.locale??n())==="zh")return yst(e);return vst(e)};var bst=()=>"Rename Folder",wst=()=>"重命名文件夹",zst=(e={},r={})=>{if((p??r.locale??n())==="zh")return wst(e);return bst(e)};var Sst=()=>"Rename Share Link",Lst=()=>"重命名分享链接",kst=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lst(e);return Sst(e)};var Cst=()=>"Renamed successfully",Ist=()=>"重命名成功",bC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ist(e);return Cst(e)};var Rst=()=>"Reply",Pst=()=>"回复",vC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pst(e);return Rst(e)};var Tst=()=>"Reply...",Ast=()=>"回复...",wC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ast(e);return Tst(e)};var Est=(e)=>`reply to: ${e?.message}`,Dst=(e)=>`回复:${e?.message}`,xC=(e,r={})=>{if((p??r.locale??n())==="zh")return Dst(e);return Est(e)};var Ost=()=>"Reporter / Reviewer",Nst=()=>"报告人 / 审核人",qg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nst(e);return Ost(e)};var Fst=()=>"Reset",jst=()=>"重置",SC=(e={},r={})=>{if((p??r.locale??n())==="zh")return jst(e);return Fst(e)};var Bst=()=>"Reset Password",Ust=()=>"重置密码",Hg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ust(e);return Bst(e)};var Yst=()=>"Enter your new password below.",qst=()=>"请在下方输入您的新密码。",EC=(e={},r={})=>{if((p??r.locale??n())==="zh")return qst(e);return Yst(e)};var Hst=()=>"Resetting password...",Vst=()=>"正在重置密码...",CC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vst(e);return Hst(e)};var Wst=()=>"Resolving all files and folders. Please wait...",Kst=()=>"正在解析所有文件和文件夹,请稍候...",$g=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kst(e);return Wst(e)};var Gst=()=>"Resource Quotas",Xst=()=>"资源配额",Gg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xst(e);return Gst(e)};var Qst=()=>"Manage and limit resource usage across team members, roles, and AI operations.",Jst=()=>"管理并限制团队成员、角色以及 AI 操作的资源使用。",Vg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jst(e);return Qst(e)};var $st=()=>"Restore",elt=()=>"恢复",Tp=(e={},r={})=>{if((p??r.locale??n())==="zh")return elt(e);return $st(e)};var tlt=()=>"Reviewer",rlt=()=>"评审员",js=(e={},r={})=>{if((p??r.locale??n())==="zh")return rlt(e);return tlt(e)};var olt=()=>"Role",alt=()=>"角色",IC=(e={},r={})=>{if((p??r.locale??n())==="zh")return alt(e);return olt(e)};var nlt=()=>"Agent",ilt=()=>"智能体",TC=(e={},r={})=>{if((p??r.locale??n())==="zh")return ilt(e);return nlt(e)};var flt=()=>"Thinking",slt=()=>"思考中",Mp=(e={},r={})=>{if((p??r.locale??n())==="zh")return slt(e);return flt(e)};var llt=()=>"User",clt=()=>"用户",Qg=(e={},r={})=>{if((p??r.locale??n())==="zh")return clt(e);return llt(e)};var ult=()=>"Rotation",dlt=()=>"旋转角度",MC=(e={},r={})=>{if((p??r.locale??n())==="zh")return dlt(e);return ult(e)};var Zlt=()=>"Configure security and network restrictions for the AI agent.",plt=()=>"配置 AI 智能体的安全和网络限制。",kC=(e={},r={})=>{if((p??r.locale??n())==="zh")return plt(e);return Zlt(e)};var mlt=()=>"Sandbox settings updated",hlt=()=>"沙箱设置已更新",RC=(e={},r={})=>{if((p??r.locale??n())==="zh")return hlt(e);return mlt(e)};var glt=()=>"Save",Mlt=()=>"保存",xo=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mlt(e);return glt(e)};var xlt=()=>"Save & Send Test Email",vlt=()=>"保存并发送测试邮件",PC=(e={},r={})=>{if((p??r.locale??n())==="zh")return vlt(e);return xlt(e)};var ylt=()=>"Save as collection",_lt=()=>"保存为媒体合集",NC=(e={},r={})=>{if((p??r.locale??n())==="zh")return _lt(e);return ylt(e)};var blt=()=>"Save Changes",wlt=()=>"保存更改",qs=(e={},r={})=>{if((p??r.locale??n())==="zh")return wlt(e);return blt(e)};var zlt=()=>"Save Watermark",Slt=()=>"保存水印",DC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Slt(e);return zlt(e)};var Llt=()=>"Saved",klt=()=>"已保存",Kg=(e={},r={})=>{if((p??r.locale??n())==="zh")return klt(e);return Llt(e)};var Clt=()=>"Saving...",Ilt=()=>"保存中...",Wg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ilt(e);return Clt(e)};var Rlt=()=>"Saving...",Plt=()=>"保存中...",kp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Plt(e);return Rlt(e)};var Tlt=()=>"Search",Alt=()=>"搜索",OC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Alt(e);return Tlt(e)};var Elt=()=>"Search",Dlt=()=>"搜索",FC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dlt(e);return Elt(e)};var Olt=()=>"Search records by content...",Nlt=()=>"按内容搜索记录...",LC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nlt(e);return Olt(e)};var Flt=()=>"Search records by name...",jlt=()=>"按名称搜索记录...",ZC=(e={},r={})=>{if((p??r.locale??n())==="zh")return jlt(e);return Flt(e)};var Blt=()=>"Search",Ult=()=>"搜索",BC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ult(e);return Blt(e)};var Ylt=()=>"Search emoji",qlt=()=>"搜索表情",UC=(e={},r={})=>{if((p??r.locale??n())==="zh")return qlt(e);return Ylt(e)};var Hlt=()=>"Search failed",Vlt=()=>"搜索失败",Yg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vlt(e);return Hlt(e)};var Wlt=()=>"Search fields",Klt=()=>"搜索字段",zC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Klt(e);return Wlt(e)};var Glt=()=>"Search Item ID...",Xlt=()=>"搜索条目 ID...",jC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xlt(e);return Glt(e)};var Qlt=()=>"Search models by ID or name...",Jlt=()=>"按 ID 或名称搜索模型...",Rp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jlt(e);return Qlt(e)};var $lt=()=>"Search options...",ect=()=>"搜索选项...",Jg=(e={},r={})=>{if((p??r.locale??n())==="zh")return ect(e);return $lt(e)};var tct=()=>"Search providers...",rct=()=>"搜索提供商...",Xg=(e={},r={})=>{if((p??r.locale??n())==="zh")return rct(e);return tct(e)};var oct=()=>"Search Results",act=()=>"搜索结果",qC=(e={},r={})=>{if((p??r.locale??n())==="zh")return act(e);return oct(e)};var nct=()=>"Search tasks...",ict=()=>"搜索任务...",fct=(e={},r={})=>{if((p??r.locale??n())==="zh")return ict(e);return nct(e)};var sct=()=>"Security",lct=()=>"安全",HC=(e={},r={})=>{if((p??r.locale??n())==="zh")return lct(e);return sct(e)};var cct=()=>"Select a Team",uct=()=>"选择团队",dct=(e={},r={})=>{if((p??r.locale??n())==="zh")return uct(e);return cct(e)};var Zct=()=>"Select Actions",pct=()=>"选择操作",$C=(e={},r={})=>{if((p??r.locale??n())==="zh")return pct(e);return Zct(e)};var mct=()=>"Select Agent",hct=()=>"选择智能体",Zd=(e={},r={})=>{if((p??r.locale??n())==="zh")return hct(e);return mct(e)};var gct=()=>"Select API Protocol",Mct=()=>"选择 API 协议",eA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mct(e);return gct(e)};var xct=()=>"Select an asset to view details",vct=()=>"选择资产查看详情",GC=(e={},r={})=>{if((p??r.locale??n())==="zh")return vct(e);return xct(e)};var yct=()=>"Select Assets",_ct=()=>"选择资产",bct=(e={},r={})=>{if((p??r.locale??n())==="zh")return _ct(e);return yct(e)};var wct=()=>"Select a block to edit its properties",zct=()=>"选择一个水印块以编辑其属性",VC=(e={},r={})=>{if((p??r.locale??n())==="zh")return zct(e);return wct(e)};var Sct=()=>"Select Current Folder",Lct=()=>"选择当前文件夹",kct=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lct(e);return Sct(e)};var Cct=()=>"Select field",Ict=()=>"选择字段",QC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ict(e);return Cct(e)};var Rct=()=>"Select a field to edit options",Pct=()=>"选择一个字段以编辑选项",KC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pct(e);return Rct(e)};var Tct=()=>"Select field type",Act=()=>"选择字段类型",WC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Act(e);return Tct(e)};var Ect=()=>"Select a file to view its details and comments.",Dct=()=>"选择一个文件以查看其详情和评论。",YC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dct(e);return Ect(e)};var Oct=()=>"Select Language",Nct=()=>"选择语言",JC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nct(e);return Oct(e)};var Fct=()=>"Select MCP Server",jct=()=>"选择 MCP 服务",tA=(e={},r={})=>{if((p??r.locale??n())==="zh")return jct(e);return Fct(e)};var Bct=()=>"Select Members",Uct=()=>"选择成员",rA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uct(e);return Bct(e)};var Yct=()=>"Select Model",qct=()=>"选择模型",XC=(e={},r={})=>{if((p??r.locale??n())==="zh")return qct(e);return Yct(e)};var Hct=()=>"Select option",Vct=()=>"选择选项",eI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vct(e);return Hct(e)};var Wct=()=>"Select options...",Kct=()=>"选择选项...",tI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kct(e);return Wct(e)};var Gct=()=>"Select parent tasks...",Xct=()=>"选择前置任务...",Qct=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xct(e);return Gct(e)};var Jct=()=>"Select your preferred display language.",$ct=()=>"选择您首选的显示语言。",rI=(e={},r={})=>{if((p??r.locale??n())==="zh")return $ct(e);return Jct(e)};var eut=()=>"Select Project",tut=()=>"选择项目",Jq=(e={},r={})=>{if((p??r.locale??n())==="zh")return tut(e);return eut(e)};var rut=()=>"Select Provider",out=()=>"选择提供商",nI=(e={},r={})=>{if((p??r.locale??n())==="zh")return out(e);return rut(e)};var aut=()=>"Select Target Folder",nut=()=>"选择目标文件夹",Pp=(e={},r={})=>{if((p??r.locale??n())==="zh")return nut(e);return aut(e)};var iut=()=>"You are a member of multiple teams. Please select one to continue.",fut=()=>"您是多个团队的成员,请选择一个以继续。",sut=(e={},r={})=>{if((p??r.locale??n())==="zh")return fut(e);return iut(e)};var lut=()=>"Select template to overwrite",cut=()=>"选择要覆盖的模板",nA=(e={},r={})=>{if((p??r.locale??n())==="zh")return cut(e);return lut(e)};var uut=()=>"Select Tool",dut=()=>"选择工具",oA=(e={},r={})=>{if((p??r.locale??n())==="zh")return dut(e);return uut(e)};var Zut=()=>"Select type",put=()=>"选择类型",oI=(e={},r={})=>{if((p??r.locale??n())==="zh")return put(e);return Zut(e)};var mut=()=>"Select User",hut=()=>"选择用户",sI=(e={},r={})=>{if((p??r.locale??n())==="zh")return hut(e);return mut(e)};var gut=()=>"Select Users",Mut=()=>"选择用户",iI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mut(e);return gut(e)};var xut=()=>"Select ZIP file",vut=()=>"选择 ZIP 文件",aI=(e={},r={})=>{if((p??r.locale??n())==="zh")return vut(e);return xut(e)};var yut=()=>"Semantic Search",_ut=()=>"语义搜索",lI=(e={},r={})=>{if((p??r.locale??n())==="zh")return _ut(e);return yut(e)};var but=()=>"Semantic search results will be ordered by their relevance to the search query text, but won't be strictly filtered. If you need accurate filtering, please add filter conditions to control that.",wut=()=>"语义搜索结果将按与搜索查询文本的相关性排序,但不会严格筛选。如果需要精确筛选,请添加筛选条件来控制。",cI=(e={},r={})=>{if((p??r.locale??n())==="zh")return wut(e);return but(e)};var zut=()=>"* Semantic search requires an enabled embedding agent.",Sut=()=>"* 语义搜索需要启用嵌入智能体。",uI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sut(e);return zut(e)};var Lut=()=>"Semantic search using media intelligence might be slow...",kut=()=>"使用媒体智能的语义搜索可能较慢...",dI=(e={},r={})=>{if((p??r.locale??n())==="zh")return kut(e);return Lut(e)};var Cut=()=>"Send Test Email",Iut=()=>"发送测试邮件",sA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Iut(e);return Cut(e)};var Rut=()=>`Sender email address, for example: "Shumai <noreply@example.com>". Make sure to use an address you're allowed to send emails from.`,Put=()=>"发件人邮箱地址,例如:“Shumai <noreply@example.com>”。请确保使用您有权使用的邮箱地址进行发送。",fI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Put(e);return Rut(e)};var Tut=()=>"From Address",Aut=()=>"发件人地址",iA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Aut(e);return Tut(e)};var Eut=()=>`Sender email address, for example: "Shumai <noreply@example.com>". Make sure to use an address you're allowed to send emails from.`,Dut=()=>"发件人邮箱地址,例如:“Shumai <noreply@example.com>”。请确保使用您有权使用的邮箱地址进行发送。",pI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dut(e);return Eut(e)};var Out=()=>"Reply-To Address",Nut=()=>"回复地址",mI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nut(e);return Out(e)};var Fut=()=>"Optional address where replies to notifications should be directed.",jut=()=>"通知邮件回复时指向的可选邮箱地址。",hI=(e={},r={})=>{if((p??r.locale??n())==="zh")return jut(e);return Fut(e)};var But=()=>"Sender Information",Uut=()=>"发件人信息",gI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uut(e);return But(e)};var Yut=()=>"Session Name",qut=()=>"会话名称",AI=(e={},r={})=>{if((p??r.locale??n())==="zh")return qut(e);return Yut(e)};var Hut=()=>"The session might have been initialized but has not produced any entries yet.",Vut=()=>"该会话可能已初始化但尚未产生任何条目。",_I=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vut(e);return Hut(e)};var Wut=()=>"Session Type",Kut=()=>"会话类型",yI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kut(e);return Wut(e)};var Gut=()=>"Chat",Xut=()=>"对话",bI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xut(e);return Gut(e)};var Qut=()=>"Comment",Jut=()=>"评论",vI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jut(e);return Qut(e)};var $ut=()=>"Naming",edt=()=>"命名",wI=(e={},r={})=>{if((p??r.locale??n())==="zh")return edt(e);return $ut(e)};var tdt=()=>"Sessions",rdt=()=>"会话列表",aA=(e={},r={})=>{if((p??r.locale??n())==="zh")return rdt(e);return tdt(e)};var odt=()=>"View and inspect all agent sessions created within the team.",adt=()=>"查看并检查团队内创建的所有 Agent 会话。",xI=(e={},r={})=>{if((p??r.locale??n())==="zh")return adt(e);return odt(e)};var ndt=()=>"Set Role",idt=()=>"设置角色",SI=(e={},r={})=>{if((p??r.locale??n())==="zh")return idt(e);return ndt(e)};var fdt=()=>"Settings",sdt=()=>"设置",Np=(e={},r={})=>{if((p??r.locale??n())==="zh")return sdt(e);return fdt(e)};var ldt=()=>"Settings updated",cdt=()=>"设置已更新",Gc=(e={},r={})=>{if((p??r.locale??n())==="zh")return cdt(e);return ldt(e)};var udt=()=>"share link",ddt=()=>"分享链接",Zdt=(e={},r={})=>{if((p??r.locale??n())==="zh")return ddt(e);return udt(e)};var pdt=()=>"Share link created",mdt=()=>"分享链接已创建",hdt=(e={},r={})=>{if((p??r.locale??n())==="zh")return mdt(e);return pdt(e)};var gdt=()=>"Share link deleted",Mdt=()=>"分享链接已删除",xdt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mdt(e);return gdt(e)};var vdt=()=>"Share link renamed",ydt=()=>"分享链接已重命名",_dt=(e={},r={})=>{if((p??r.locale??n())==="zh")return ydt(e);return vdt(e)};var bdt=()=>"Share link status updated",wdt=()=>"分享链接状态已更新",EI=(e={},r={})=>{if((p??r.locale??n())==="zh")return wdt(e);return bdt(e)};var zdt=()=>"Share Links",Sdt=()=>"分享链接",Ldt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sdt(e);return zdt(e)};var kdt=()=>"Show Chatbot",Cdt=()=>"显示聊天机器人",Idt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cdt(e);return kdt(e)};var Rdt=()=>"Shumai Agent",Pdt=()=>"数脉智能体",CI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pdt(e);return Rdt(e)};var Tdt=()=>"Sign up",Adt=()=>"注册",ole=(e={},r={})=>{if((p??r.locale??n())==="zh")return Adt(e);return Tdt(e)};var Edt=()=>"Signup failed",Ddt=()=>"注册失败",Odt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ddt(e);return Edt(e)};var Ndt=()=>"Start building and organizing your space.",Fdt=()=>"开始构建和整理您的空间。",jdt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fdt(e);return Ndt(e)};var Bdt=()=>"Size:",Udt=()=>"大小:",II=(e={},r={})=>{if((p??r.locale??n())==="zh")return Udt(e);return Bdt(e)};var Ydt=()=>"Permission",qdt=()=>"权限",Dp=(e={},r={})=>{if((p??r.locale??n())==="zh")return qdt(e);return Ydt(e)};var Hdt=()=>"Skills",Vdt=()=>"技能",lA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vdt(e);return Hdt(e)};var Wdt=(e)=>`${e?.count} Skills`,Kdt=(e)=>`${e?.count} 个技能`,TI=(e,r={})=>{if((p??r.locale??n())==="zh")return Kdt(e);return Wdt(e)};var Gdt=()=>"Add, update and configure AI skills for the team.",Xdt=()=>"为团队添加、更新和配置 AI 技能。",MI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xdt(e);return Gdt(e)};var Qdt=()=>"Skills Management",Jdt=()=>"技能管理",cA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jdt(e);return Qdt(e)};var $dt=()=>"Extend your chatbot's capabilities with custom skills.",eZt=()=>"使用自定义技能扩展聊天机器人的功能。",kI=(e={},r={})=>{if((p??r.locale??n())==="zh")return eZt(e);return $dt(e)};var tZt=()=>"SMTP Host",rZt=()=>"SMTP 主机",RI=(e={},r={})=>{if((p??r.locale??n())==="zh")return rZt(e);return tZt(e)};var oZt=()=>"e.g. smtp.example.com",aZt=()=>"例如 smtp.example.com",PI=(e={},r={})=>{if((p??r.locale??n())==="zh")return aZt(e);return oZt(e)};var nZt=()=>"SMTP Host is required",iZt=()=>"必须提供 SMTP 主机",NI=(e={},r={})=>{if((p??r.locale??n())==="zh")return iZt(e);return nZt(e)};var fZt=()=>"Ignore Certificate Errors",sZt=()=>"忽略证书错误",DI=(e={},r={})=>{if((p??r.locale??n())==="zh")return sZt(e);return fZt(e)};var lZt=()=>"Allow self-signed or unverified SSL/TLS certificates.",cZt=()=>"允许自签名或未验证的 SSL/TLS 证书。",OI=(e={},r={})=>{if((p??r.locale??n())==="zh")return cZt(e);return lZt(e)};var uZt=()=>"Password",dZt=()=>"密码",FI=(e={},r={})=>{if((p??r.locale??n())==="zh")return dZt(e);return uZt(e)};var ZZt=()=>"•••••••• (Leave blank to keep current)",pZt=()=>"••••••••(留空以保持当前密码)",LI=(e={},r={})=>{if((p??r.locale??n())==="zh")return pZt(e);return ZZt(e)};var mZt=()=>"Enter SMTP password",hZt=()=>"输入 SMTP 密码",ZI=(e={},r={})=>{if((p??r.locale??n())==="zh")return hZt(e);return mZt(e)};var gZt=()=>"SMTP Port",MZt=()=>"SMTP 端口",BI=(e={},r={})=>{if((p??r.locale??n())==="zh")return MZt(e);return gZt(e)};var xZt=()=>"SSL / TLS (SMTPS)",vZt=()=>"SSL / TLS (SMTPS)",UI=(e={},r={})=>{if((p??r.locale??n())==="zh")return vZt(e);return xZt(e)};var yZt=()=>"Connect directly over SSL/TLS (commonly used with port 465).",_Zt=()=>"直接使用 SSL/TLS 连接(通常用于 465 端口)。",zI=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Zt(e);return yZt(e)};var bZt=()=>"SMTP Server Settings",wZt=()=>"SMTP 服务器设置",jI=(e={},r={})=>{if((p??r.locale??n())==="zh")return wZt(e);return bZt(e)};var zZt=()=>"Username",SZt=()=>"用户名",qI=(e={},r={})=>{if((p??r.locale??n())==="zh")return SZt(e);return zZt(e)};var LZt=()=>"e.g. user@example.com",kZt=()=>"例如 user@example.com",HI=(e={},r={})=>{if((p??r.locale??n())==="zh")return kZt(e);return LZt(e)};var CZt=()=>"Some downloads could not be started",IZt=()=>"部分下载无法启动",RZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return IZt(e);return CZt(e)};var PZt=()=>"A → Z",TZt=()=>"A → Z",Vc=(e={},r={})=>{if((p??r.locale??n())==="zh")return TZt(e);return PZt(e)};var AZt=()=>"Sort by",EZt=()=>"排序",kl=(e={},r={})=>{if((p??r.locale??n())==="zh")return EZt(e);return AZt(e)};var DZt=()=>"Created",OZt=()=>"创建时间",$I=(e={},r={})=>{if((p??r.locale??n())==="zh")return OZt(e);return DZt(e)};var NZt=()=>"Custom",FZt=()=>"自定义",Op=(e={},r={})=>{if((p??r.locale??n())==="zh")return FZt(e);return NZt(e)};var jZt=()=>"Date Created",BZt=()=>"创建日期",Fp=(e={},r={})=>{if((p??r.locale??n())==="zh")return BZt(e);return jZt(e)};var UZt=()=>"Date Modified",YZt=()=>"修改日期",GI=(e={},r={})=>{if((p??r.locale??n())==="zh")return YZt(e);return UZt(e)};var qZt=()=>"Largest → Smallest",HZt=()=>"最大 → 最小",Lp=(e={},r={})=>{if((p??r.locale??n())==="zh")return HZt(e);return qZt(e)};var VZt=()=>"Name",WZt=()=>"名称",Rl=(e={},r={})=>{if((p??r.locale??n())==="zh")return WZt(e);return VZt(e)};var KZt=()=>"Newest → Oldest",GZt=()=>"最新 → 最旧",Qc=(e={},r={})=>{if((p??r.locale??n())==="zh")return GZt(e);return KZt(e)};var XZt=()=>"Oldest → Newest",QZt=()=>"最旧 → 最新",Kc=(e={},r={})=>{if((p??r.locale??n())==="zh")return QZt(e);return XZt(e)};var JZt=()=>"Size",$Zt=()=>"大小",Zp=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Zt(e);return JZt(e)};var ept=()=>"Smallest → Largest",tpt=()=>"最小 → 最大",Bp=(e={},r={})=>{if((p??r.locale??n())==="zh")return tpt(e);return ept(e)};var rpt=()=>"Updated",opt=()=>"更新时间",VI=(e={},r={})=>{if((p??r.locale??n())==="zh")return opt(e);return rpt(e)};var apt=()=>"Z → A",npt=()=>"Z → A",Wc=(e={},r={})=>{if((p??r.locale??n())==="zh")return npt(e);return apt(e)};var ipt=(e)=>`Sorted by ${e?.field}`,fpt=(e)=>`按${e?.field}排序`,QI=(e,r={})=>{if((p??r.locale??n())==="zh")return fpt(e);return ipt(e)};var spt=()=>"Sorted by",lpt=()=>"排序方式",KI=(e={},r={})=>{if((p??r.locale??n())==="zh")return lpt(e);return spt(e)};var cpt=()=>"Standard Time",upt=()=>"标准时间",WI=(e={},r={})=>{if((p??r.locale??n())==="zh")return upt(e);return cpt(e)};var dpt=()=>"Start Date",Zpt=()=>"开始日期",Bd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zpt(e);return dpt(e)};var ppt=()=>"Start Download",mpt=()=>"开始下载",uA=(e={},r={})=>{if((p??r.locale??n())==="zh")return mpt(e);return ppt(e)};var hpt=(e)=>`Starting download of ${e?.count} files. Please allow multiple downloads if prompted by your browser.`,gpt=(e)=>`正在开始下载 ${e?.count} 个文件。如果浏览器提示,请允许多个下载。`,Mpt=(e,r={})=>{if((p??r.locale??n())==="zh")return gpt(e);return hpt(e)};var xpt=()=>"Blocked",vpt=()=>"已受阻",dA=(e={},r={})=>{if((p??r.locale??n())==="zh")return vpt(e);return xpt(e)};var ypt=()=>"Done",_pt=()=>"已完成",bpt=(e={},r={})=>{if((p??r.locale??n())==="zh")return _pt(e);return ypt(e)};var wpt=()=>"In Progress",zpt=()=>"进行中",Spt=(e={},r={})=>{if((p??r.locale??n())==="zh")return zpt(e);return wpt(e)};var Lpt=()=>"In Review",kpt=()=>"审核中",Cpt=(e={},r={})=>{if((p??r.locale??n())==="zh")return kpt(e);return Lpt(e)};var Ipt=()=>"Ready",Rpt=()=>"就绪",Ppt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rpt(e);return Ipt(e)};var Tpt=()=>"To Do",Apt=()=>"待办",Ept=(e={},r={})=>{if((p??r.locale??n())==="zh")return Apt(e);return Tpt(e)};var Dpt=()=>"Status Updates",Opt=()=>"状态更新",YI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Opt(e);return Dpt(e)};var Npt=()=>"Switch version",Fpt=()=>"切换版本",Ud=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fpt(e);return Npt(e)};var jpt=()=>"Sync Providers",Bpt=()=>"同步提供商",JI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bpt(e);return jpt(e)};var Upt=(e)=>`Add Selected (${e?.count})`,Ypt=(e)=>`添加所选 (${e?.count})`,XI=(e,r={})=>{if((p??r.locale??n())==="zh")return Ypt(e);return Upt(e)};var qpt=()=>"Adding...",Hpt=()=>"正在添加...",eT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hpt(e);return qpt(e)};var Vpt=()=>"Checking for updates...",Wpt=()=>"正在检查更新...",tT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wpt(e);return Vpt(e)};var Kpt=()=>"Collapse All",Gpt=()=>"全部折叠",rT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gpt(e);return Kpt(e)};var Xpt=(e)=>`${e?.count}k ctx`,Qpt=(e)=>`${e?.count}k 上下文`,nT=(e,r={})=>{if((p??r.locale??n())==="zh")return Qpt(e);return Xpt(e)};var Jpt=()=>"Deselect All",$pt=()=>"取消全选",oT=(e={},r={})=>{if((p??r.locale??n())==="zh")return $pt(e);return Jpt(e)};var emt=()=>"Select the new providers and models you want to add. Existing providers, custom endpoints, API keys, and model configurations will never be deleted or modified.",tmt=()=>"选择您希望添加的新提供商和模型。现有的提供商、自定义端点、API 密钥和模型配置绝不会被删除或修改。",sT=(e={},r={})=>{if((p??r.locale??n())==="zh")return tmt(e);return emt(e)};var rmt=()=>"Sync Providers & Models",omt=()=>"同步提供商与模型",iT=(e={},r={})=>{if((p??r.locale??n())==="zh")return omt(e);return rmt(e)};var amt=()=>"Existing Provider",nmt=()=>"现有提供商",aT=(e={},r={})=>{if((p??r.locale??n())==="zh")return nmt(e);return amt(e)};var imt=()=>"Expand All",fmt=()=>"全部展开",lT=(e={},r={})=>{if((p??r.locale??n())==="zh")return fmt(e);return imt(e)};var smt=(e)=>`${e?.count} new models`,lmt=(e)=>`${e?.count} 个新模型`,cT=(e,r={})=>{if((p??r.locale??n())==="zh")return lmt(e);return smt(e)};var cmt=()=>"New Provider",umt=()=>"新提供商",uT=(e={},r={})=>{if((p??r.locale??n())==="zh")return umt(e);return cmt(e)};var dmt=()=>"reasoning",Zmt=()=>"深度思考",dT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zmt(e);return dmt(e)};var pmt=()=>"Filter new providers or models...",mmt=()=>"筛选新提供商或模型...",fT=(e={},r={})=>{if((p??r.locale??n())==="zh")return mmt(e);return pmt(e)};var hmt=()=>"Select All",gmt=()=>"全选",pT=(e={},r={})=>{if((p??r.locale??n())==="zh")return gmt(e);return hmt(e)};var Mmt=(e)=>`${e?.modelCount} models selected across ${e?.providerCount} providers`,xmt=(e)=>`已选 ${e?.modelCount} 个模型,分布在 ${e?.providerCount} 个提供商中`,mT=(e,r={})=>{if((p??r.locale??n())==="zh")return xmt(e);return Mmt(e)};var vmt=(e)=>`Successfully added ${e?.modelCount} models across ${e?.providerCount} providers.`,ymt=(e)=>`已成功添加 ${e?.providerCount} 个提供商中的 ${e?.modelCount} 个模型。`,hT=(e,r={})=>{if((p??r.locale??n())==="zh")return ymt(e);return vmt(e)};var _mt=()=>"All providers and models are already up to date.",bmt=()=>"所有提供商和模型均已是最新状态。",gT=(e={},r={})=>{if((p??r.locale??n())==="zh")return bmt(e);return _mt(e)};var wmt=()=>"System",zmt=()=>"跟随系统",Smt=(e={},r={})=>{if((p??r.locale??n())==="zh")return zmt(e);return wmt(e)};var Lmt=()=>"Target Folder",kmt=()=>"目标文件夹",Up=(e={},r={})=>{if((p??r.locale??n())==="zh")return kmt(e);return Lmt(e)};var Cmt=()=>"Task created",Imt=()=>"任务已创建",AT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Imt(e);return Cmt(e)};var Rmt=()=>"Task deleted successfully",Pmt=()=>"任务已成功删除",_T=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pmt(e);return Rmt(e)};var Tmt=()=>"Description",Amt=()=>"任务描述",fA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Amt(e);return Tmt(e)};var Emt=()=>"Add details, acceptance criteria, or context...",Dmt=()=>"添加详细说明、验收标准或背景信息...",pA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dmt(e);return Emt(e)};var Omt=()=>"Priority",Nmt=()=>"优先级",mA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nmt(e);return Omt(e)};var Fmt=()=>"Task Title",jmt=()=>"任务标题",hA=(e={},r={})=>{if((p??r.locale??n())==="zh")return jmt(e);return Fmt(e)};var Bmt=()=>"What needs to be done?",Umt=()=>"需要完成什么任务?",gA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Umt(e);return Bmt(e)};var Ymt=()=>"Agent Task",qmt=()=>"智能体任务",zd=(e={},r={})=>{if((p??r.locale??n())==="zh")return qmt(e);return Ymt(e)};var Hmt=()=>"Executed autonomously by an AI agent",Vmt=()=>"由 AI 智能体自主执行",AA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vmt(e);return Hmt(e)};var Wmt=()=>"team",Kmt=()=>"团队",jd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kmt(e);return Wmt(e)};var Gmt=()=>"Team AI Settings",Xmt=()=>"团队 AI 设置",yT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xmt(e);return Gmt(e)};var Qmt=()=>"Team Attributes",Jmt=()=>"团队属性",bT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jmt(e);return Qmt(e)};var $mt=()=>"Team",eht=()=>"团队",vT=(e={},r={})=>{if((p??r.locale??n())==="zh")return eht(e);return $mt(e)};var tht=()=>"Team Member",rht=()=>"团队成员",zp=(e={},r={})=>{if((p??r.locale??n())==="zh")return rht(e);return tht(e)};var oht=()=>"Team Members",aht=()=>"团队成员",wT=(e={},r={})=>{if((p??r.locale??n())==="zh")return aht(e);return oht(e)};var nht=()=>"Team Settings",iht=()=>"团队设置",xT=(e={},r={})=>{if((p??r.locale??n())==="zh")return iht(e);return nht(e)};var fht=()=>"Team Tasks",sht=()=>"团队任务",ST=(e={},r={})=>{if((p??r.locale??n())==="zh")return sht(e);return fht(e)};var lht=()=>"Team",cht=()=>"团队",ET=(e={},r={})=>{if((p??r.locale??n())==="zh")return cht(e);return lht(e)};var uht=()=>"Template deleted successfully",dht=()=>"模板删除成功",CT=(e={},r={})=>{if((p??r.locale??n())==="zh")return dht(e);return uht(e)};var Zht=()=>"Template Name",pht=()=>"模板名称",IT=(e={},r={})=>{if((p??r.locale??n())==="zh")return pht(e);return Zht(e)};var mht=()=>"Template saved successfully",hht=()=>"模板保存成功",TT=(e={},r={})=>{if((p??r.locale??n())==="zh")return hht(e);return mht(e)};var ght=()=>"Template updated successfully",Mht=()=>"模板更新成功",MT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mht(e);return ght(e)};var xht=()=>"Test email sent successfully",vht=()=>"测试邮件发送成功",kT=(e={},r={})=>{if((p??r.locale??n())==="zh")return vht(e);return xht(e)};var yht=()=>"Text Content",_ht=()=>"文本内容",RT=(e={},r={})=>{if((p??r.locale??n())==="zh")return _ht(e);return yht(e)};var bht=()=>"Theme",wht=()=>"主题",zht=(e={},r={})=>{if((p??r.locale??n())==="zh")return wht(e);return bht(e)};var Sht=()=>"Disable",Lht=()=>"禁用",PT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lht(e);return Sht(e)};var kht=()=>"High",Cht=()=>"高",NT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cht(e);return kht(e)};var Iht=()=>"Thinking Level",Rht=()=>"思考级别",DT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rht(e);return Iht(e)};var Pht=()=>"Low",Tht=()=>"低",OT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tht(e);return Pht(e)};var Aht=()=>"Medium",Eht=()=>"中",FT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eht(e);return Aht(e)};var Dht=()=>"Thinking...",Oht=()=>"思考中...",LT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oht(e);return Dht(e)};var Nht=()=>"This folder is empty",Fht=()=>"此文件夹为空",jp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fht(e);return Nht(e)};var jht=()=>"Auto",Bht=()=>"自动",_A=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bht(e);return jht(e)};var Uht=(e)=>`${e?.count} threads`,Yht=(e)=>`${e?.count} 线程`,ZT=(e,r={})=>{if((p??r.locale??n())==="zh")return Yht(e);return Uht(e)};var qht=()=>"Timecode",Hht=()=>"时间码",BT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hht(e);return qht(e)};var Vht=()=>"Timestamp",Wht=()=>"时间戳",UT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wht(e);return Vht(e)};var Kht=()=>"Today",Ght=()=>"今天",ale=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ght(e);return Kht(e)};var Xht=(e)=>`Today ${e?.time}`,Qht=(e)=>`今天 ${e?.time}`,Jht=(e,r={})=>{if((p??r.locale??n())==="zh")return Qht(e);return Xht(e)};var $ht=()=>"Toggle Annotation",egt=()=>"切换标注",zT=(e={},r={})=>{if((p??r.locale??n())==="zh")return egt(e);return $ht(e)};var tgt=()=>"Checked",rgt=()=>"已选中",jT=(e={},r={})=>{if((p??r.locale??n())==="zh")return rgt(e);return tgt(e)};var ogt=()=>"Unchecked",agt=()=>"未选中",qT=(e={},r={})=>{if((p??r.locale??n())==="zh")return agt(e);return ogt(e)};var ngt=()=>"Token",igt=()=>"令牌",HT=(e={},r={})=>{if((p??r.locale??n())==="zh")return igt(e);return ngt(e)};var fgt=()=>"Token Name",sgt=()=>"令牌名称",$T=(e={},r={})=>{if((p??r.locale??n())==="zh")return sgt(e);return fgt(e)};var lgt=()=>"e.g. My CLI token",cgt=()=>"例如:我的 CLI 令牌",GT=(e={},r={})=>{if((p??r.locale??n())==="zh")return cgt(e);return lgt(e)};var ugt=()=>"tokens",dgt=()=>"令牌",yA=(e={},r={})=>{if((p??r.locale??n())==="zh")return dgt(e);return ugt(e)};var Zgt=()=>"Arguments",pgt=()=>"参数",qp=(e={},r={})=>{if((p??r.locale??n())==="zh")return pgt(e);return Zgt(e)};var mgt=()=>"Parameters",hgt=()=>"参数列表",VT=(e={},r={})=>{if((p??r.locale??n())==="zh")return hgt(e);return mgt(e)};var ggt=(e)=>`Tool Result: ${e?.name}`,Mgt=(e)=>`工具结果:${e?.name}`,Hp=(e,r={})=>{if((p??r.locale??n())==="zh")return Mgt(e);return ggt(e)};var xgt=()=>"Total Tokens",vgt=()=>"总 Token",bA=(e={},r={})=>{if((p??r.locale??n())==="zh")return vgt(e);return xgt(e)};var ygt=()=>"Transcode Policy",_gt=()=>"转码策略",QT=(e={},r={})=>{if((p??r.locale??n())==="zh")return _gt(e);return ygt(e)};var bgt=()=>"When HLS is disabled, both playback and download use MP4. When HLS is enabled, playback uses HLS streaming while download uses MP4. Note that enabling HLS may significantly increase storage usage.",wgt=()=>"未启用 HLS 时,播放和下载均使用 MP4。启用 HLS 后,播放将使用 HLS 自适应流,而下载使用 MP4。请注意,启用 HLS 可能会显著增加存储空间占用。",KT=(e={},r={})=>{if((p??r.locale??n())==="zh")return wgt(e);return bgt(e)};var zgt=()=>"Transcoding Failed",Sgt=()=>"转码失败",WT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sgt(e);return zgt(e)};var Lgt=()=>"Trash emptied successfully",kgt=()=>"回收站已清空",YT=(e={},r={})=>{if((p??r.locale??n())==="zh")return kgt(e);return Lgt(e)};var Cgt=(e)=>`Try adjusting your search for "${e?.query}"`,Igt=(e)=>`请尝试调整搜索 "${e?.query}"`,JT=(e,r={})=>{if((p??r.locale??n())==="zh")return Igt(e);return Cgt(e)};var Rgt=()=>"Try adjusting spelling or removing filter rows.",Pgt=()=>"请尝试调整拼写或移除筛选条件。",XT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pgt(e);return Rgt(e)};var Tgt=()=>"Type a message...",Agt=()=>"输入消息...",e1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Agt(e);return Tgt(e)};var Egt=()=>"Type **delete** to confirm:",Dgt=()=>"输入 **delete** 以确认:",t1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dgt(e);return Egt(e)};var Ogt=()=>"Type:",Ngt=()=>"类型:",r1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ngt(e);return Ogt(e)};var Fgt=()=>"Type your query above and click the Search button to display results.",jgt=()=>"在上方输入查询内容并点击搜索按钮以显示结果。",n1=(e={},r={})=>{if((p??r.locale??n())==="zh")return jgt(e);return Fgt(e)};var Bgt=()=>"Unassigned",Ugt=()=>"未指派",As=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ugt(e);return Bgt(e)};var Ygt=()=>"Unknown",qgt=()=>"未知",An=(e={},r={})=>{if((p??r.locale??n())==="zh")return qgt(e);return Ygt(e)};var Hgt=()=>"unknown asset",Vgt=()=>"未知资源",Wgt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vgt(e);return Hgt(e)};var Kgt=()=>"Unknown Date",Ggt=()=>"未知日期",Xgt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ggt(e);return Kgt(e)};var Qgt=()=>"unknown project",Jgt=()=>"未知项目",$gt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jgt(e);return Qgt(e)};var eMt=()=>"unknown task",tMt=()=>"未知任务",rMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return tMt(e);return eMt(e)};var oMt=()=>"unknown team",aMt=()=>"未知团队",nMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return aMt(e);return oMt(e)};var iMt=()=>"Unknown User",fMt=()=>"未知用户",Pl=(e={},r={})=>{if((p??r.locale??n())==="zh")return fMt(e);return iMt(e)};var sMt=()=>"Unlink Asset",lMt=()=>"取消关联资产",cMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return lMt(e);return sMt(e)};var uMt=()=>"Unlink Task",dMt=()=>"取消关联",ZMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return dMt(e);return uMt(e)};var pMt=()=>"Unread",mMt=()=>"未读",hMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return mMt(e);return pMt(e)};var gMt=()=>"Untitled Collection",MMt=()=>"未命名媒体合集",vA=(e={},r={})=>{if((p??r.locale??n())==="zh")return MMt(e);return gMt(e)};var xMt=()=>"Untitled Session",vMt=()=>"未命名会话",$p=(e={},r={})=>{if((p??r.locale??n())==="zh")return vMt(e);return xMt(e)};var yMt=()=>"Untitled Upload",_Mt=()=>"未命名上传",bMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Mt(e);return yMt(e)};var wMt=()=>"Updated",zMt=()=>"更新于",o1=(e={},r={})=>{if((p??r.locale??n())==="zh")return zMt(e);return wMt(e)};var SMt=()=>"Updated",LMt=()=>"更新于",wA=(e={},r={})=>{if((p??r.locale??n())==="zh")return LMt(e);return SMt(e)};var kMt=()=>"Upload",CMt=()=>"上传",s1=(e={},r={})=>{if((p??r.locale??n())==="zh")return CMt(e);return kMt(e)};var IMt=()=>"Upload cover",RMt=()=>"上传封面",i1=(e={},r={})=>{if((p??r.locale??n())==="zh")return RMt(e);return IMt(e)};var PMt=()=>"Drag and drop, or browse. Recommended 1:1 (400×400px).",TMt=()=>"拖放或浏览文件。推荐比例 1:1(400×400像素)。",a1=(e={},r={})=>{if((p??r.locale??n())==="zh")return TMt(e);return PMt(e)};var AMt=()=>"Upload File",EMt=()=>"上传文件",Gp=(e={},r={})=>{if((p??r.locale??n())==="zh")return EMt(e);return AMt(e)};var DMt=()=>"Upload Folder",OMt=()=>"上传文件夹",Vp=(e={},r={})=>{if((p??r.locale??n())==="zh")return OMt(e);return DMt(e)};var NMt=()=>"Upload Image",FMt=()=>"上传图片",Qp=(e={},r={})=>{if((p??r.locale??n())==="zh")return FMt(e);return NMt(e)};var jMt=()=>"Upload Watermark Image",BMt=()=>"上传水印图片",l1=(e={},r={})=>{if((p??r.locale??n())==="zh")return BMt(e);return jMt(e)};var UMt=()=>"Drag and drop, or browse. Max 1MB.",YMt=()=>"拖放或浏览文件。最大 1MB。",c1=(e={},r={})=>{if((p??r.locale??n())==="zh")return YMt(e);return UMt(e)};var qMt=()=>"Uploading...",HMt=()=>"上传中...",Yc=(e={},r={})=>{if((p??r.locale??n())==="zh")return HMt(e);return qMt(e)};var VMt=()=>"Uploading",WMt=()=>"上传中",KMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return WMt(e);return VMt(e)};var GMt=()=>"Uploads",XMt=()=>"上传管理",QMt=(e={},r={})=>{if((p??r.locale??n())==="zh")return XMt(e);return GMt(e)};var JMt=()=>"Usage",$Mt=()=>"用量",u1=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Mt(e);return JMt(e)};var e8t=()=>"User",t8t=()=>"用户",d1=(e={},r={})=>{if((p??r.locale??n())==="zh")return t8t(e);return e8t(e)};var r8t=(e)=>`${e?.user} via ${e?.agent}`,o8t=(e)=>`${e?.user} 通过 ${e?.agent}`,Jc=(e,r={})=>{if((p??r.locale??n())==="zh")return o8t(e);return r8t(e)};var a8t=()=>"Variable Name",n8t=()=>"变量名称",f1=(e={},r={})=>{if((p??r.locale??n())==="zh")return n8t(e);return a8t(e)};var i8t=(e)=>`Version ${e?.version}`,f8t=(e)=>`版本 ${e?.version}`,s8t=(e,r={})=>{if((p??r.locale??n())==="zh")return f8t(e);return i8t(e)};var l8t=()=>"Version removed from stack",c8t=()=>"已从版本堆栈中移除版本",u8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return c8t(e);return l8t(e)};var d8t=()=>"Version order updated",Z8t=()=>"版本顺序已更新",p8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z8t(e);return d8t(e)};var m8t=(e)=>`${e?.count} enabled`,h8t=(e)=>`${e?.count} 个已启用`,p1=(e,r={})=>{if((p??r.locale??n())==="zh")return h8t(e);return m8t(e)};var g8t=()=>"Resolution Ladders",M8t=()=>"分辨率阶梯",m1=(e={},r={})=>{if((p??r.locale??n())==="zh")return M8t(e);return g8t(e)};var x8t=()=>"Select the target resolutions to generate for MP4 transcoding. Resolutions are only generated up to the source video resolution.",v8t=()=>"选择 MP4 转码的目标分辨率。仅生成不超过原始视频分辨率的分辨率阶梯。",h1=(e={},r={})=>{if((p??r.locale??n())==="zh")return v8t(e);return x8t(e)};var y8t=()=>"Video Transcoding",_8t=()=>"视频转码",xA=(e={},r={})=>{if((p??r.locale??n())==="zh")return _8t(e);return y8t(e)};var b8t=()=>"Manage your team's video transcoding configurations.",w8t=()=>"管理团队的视频转码配置。",g1=(e={},r={})=>{if((p??r.locale??n())==="zh")return w8t(e);return b8t(e)};var z8t=(e)=>`(${e?.count} visible)`,S8t=(e)=>`(${e?.count} 个可见)`,A1=(e,r={})=>{if((p??r.locale??n())==="zh")return S8t(e);return z8t(e)};var L8t=()=>"Watermark",k8t=()=>"水印",SA=(e={},r={})=>{if((p??r.locale??n())==="zh")return k8t(e);return L8t(e)};var C8t=()=>"Watermark disabled",I8t=()=>"水印已禁用",_1=(e={},r={})=>{if((p??r.locale??n())==="zh")return I8t(e);return C8t(e)};var R8t=()=>"Watermark Editor",P8t=()=>"水印编辑器",y1=(e={},r={})=>{if((p??r.locale??n())==="zh")return P8t(e);return R8t(e)};var T8t=()=>"Templates",A8t=()=>"水印模板",b1=(e={},r={})=>{if((p??r.locale??n())==="zh")return A8t(e);return T8t(e)};var E8t=()=>"Transcoding watermark media...",D8t=()=>"水印媒体转码处理中...",v1=(e={},r={})=>{if((p??r.locale??n())==="zh")return D8t(e);return E8t(e)};var O8t=()=>"Watermark updated successfully",N8t=()=>"水印更新成功",w1=(e={},r={})=>{if((p??r.locale??n())==="zh")return N8t(e);return O8t(e)};var F8t=()=>"Welcome Back",j8t=()=>"欢迎回来",B8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return j8t(e);return F8t(e)};var U8t=()=>"When someone comments on a task",Y8t=()=>"当有人在任务中发表评论时",x1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y8t(e);return U8t(e)};var q8t=()=>"When tasks are created, assigned, updated, or deleted",H8t=()=>"当任务被创建、分配、更新或删除时",S1=(e={},r={})=>{if((p??r.locale??n())==="zh")return H8t(e);return q8t(e)};var V8t=()=>"When other users upload assets",W8t=()=>"当其他用户上传素材时",E1=(e={},r={})=>{if((p??r.locale??n())==="zh")return W8t(e);return V8t(e)};var K8t=()=>"When someone changes an asset's status",G8t=()=>"当有人更改素材的状态时",C1=(e={},r={})=>{if((p??r.locale??n())==="zh")return G8t(e);return K8t(e)};var X8t=()=>"When someone comments on an asset",Q8t=()=>"当有人评论素材时",I1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q8t(e);return X8t(e)};var J8t=()=>"When someone @mentions you in a comment",$8t=()=>"当有人在评论中 @提及你时",T1=(e={},r={})=>{if((p??r.locale??n())==="zh")return $8t(e);return J8t(e)};var ext=()=>"When someone replies to your comment",txt=()=>"当有人回复你的评论时",M1=(e={},r={})=>{if((p??r.locale??n())==="zh")return txt(e);return ext(e)};var rxt=()=>"When you upload assets",oxt=()=>"当你上传素材时",k1=(e={},r={})=>{if((p??r.locale??n())==="zh")return oxt(e);return rxt(e)};var axt=()=>"Yesterday",nxt=()=>"昨天",nle=(e={},r={})=>{if((p??r.locale??n())==="zh")return nxt(e);return axt(e)};var ixt=(e)=>`Yesterday ${e?.time}`,fxt=(e)=>`昨天 ${e?.time}`,sxt=(e,r={})=>{if((p??r.locale??n())==="zh")return fxt(e);return ixt(e)};var lxt=()=>"Your Uploads",cxt=()=>"你的上传",R1=(e={},r={})=>{if((p??r.locale??n())==="zh")return cxt(e);return lxt(e)};var uxt=()=>"Zoom In",dxt=()=>"放大",Kp=(e={},r={})=>{if((p??r.locale??n())==="zh")return dxt(e);return uxt(e)};var Zxt=()=>"Zoom Out",pxt=()=>"缩小",Wp=(e={},r={})=>{if((p??r.locale??n())==="zh")return pxt(e);return Zxt(e)};var mxt=(e)=>o("svg",{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",...e,children:[t("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),t("path",{d:"M9 18c-4.51 2-5-2-7-2"})]});function ile(){let{clearAuth:e}=gf(),r=gs(),a=(g)=>{if(!g)return"";switch(g.toLowerCase()){case"owner":return $c();case"editor":return Us();case"reviewer":return js();default:return g}},{data:i}=Z({queryKey:["teams",r,"me"],queryFn:async()=>{let g=await A.api.teams[":teamId"].me.$get({param:{teamId:r}});if(!g.ok)throw Error("Failed to fetch me");return await g.json()},enabled:!!r}),{setTheme:s,theme:l}=Vte(),c=Re(),d=async()=>{await xse(),e(),c({to:"/login"})},m=(g)=>{if(!g)return"U";let x=g.split(" ");if(x.length>1)return`${x[0][0]}${x[x.length-1][0]}`.toUpperCase();return g.substring(0,2).toUpperCase()};return o(he,{children:[t(ge,{asChild:!0,children:o(Ce,{className:"rounded-lg w-10 h-10 cursor-pointer",children:[i?.image&&t(Ie,{src:i.image,alt:i.name,className:"object-cover rounded-lg w-10 h-10"}),t(Te,{className:"rounded-lg bg-primary/40 text-foreground",children:m(i?.name)})]})}),o(Ae,{className:"w-56",align:"end",forceMount:!0,children:[i&&o(L,{children:[t(Qr,{className:"font-normal",children:o("div",{className:"flex flex-col space-y-1",children:[t("p",{className:"text-sm font-medium leading-none",children:i.name}),t("p",{className:"text-xs leading-none text-muted-foreground",children:a(i.role)})]})}),t(Vt,{})]}),o(ps,{children:[t(ms,{children:zht()}),t(ra,{children:o(hs,{children:[o(K,{className:"justify-between flex items-center",onClick:()=>s("light"),children:[t("span",{children:xWe()}),l==="light"&&t(Pe,{className:"size-4"})]}),o(K,{className:"justify-between flex items-center",onClick:()=>s("dark"),children:[t("span",{children:eje()}),l==="dark"&&t(Pe,{className:"size-4"})]}),o(K,{className:"justify-between flex items-center",onClick:()=>s("system"),children:[t("span",{children:Smt()}),l==="system"&&t(Pe,{className:"size-4"})]})]})})]}),t(Vt,{}),t(K,{onClick:()=>c({to:"/teams/$teamId/settings",params:{teamId:r}}),disabled:!r,children:Np()}),t(Vt,{}),t(K,{className:"text-red-500 focus:text-red-500",onClick:d,children:HWe()}),t(Vt,{}),o(K,{className:"text-xs text-muted-foreground flex items-center gap-2 cursor-pointer focus:bg-accent focus:text-accent-foreground justify-center bg-accent border",onClick:()=>window.open("https://github.com/shumaiOne/shumai","_blank","noopener,noreferrer"),children:[t(mxt,{className:"size-3.5"}),t("span",{children:s8t({version:vse})})]})]})]})}var Gz=()=>null,fle=({children:e,hideMobileButton:r=!1,defaultMobileContent:a})=>{let{isMobileMenuOpen:i,activeItem:s,setActiveItem:l,toggleMobileMenu:c,closeMobileMenu:d}=Vk(),m=rz({select:(k)=>k.location.pathname}),g=N(()=>rc.toArray(e).filter((k)=>ts(k)&&k.type===Gz),[e]),x=y(m);h(()=>{if(x.current!==m)x.current=m,d()},[m,d]);let v=s!==null?g[s]?.props:null,b=v??(i?a:null),_=Boolean(v||i&&a),z=(k)=>{let U=g[k];if(!U.props.children){l(null),U.props.onItemClick?.();return}if(s===k)l(null);else{if(U&&U.props.onItemClick)U.props.onItemClick();l(k)}};return o(L,{children:[!r&&t(E,{variant:"ghost",size:"icon",onClick:c,className:"md:hidden fixed top-4 left-4 z-50 rounded-md bg-sidebar/50 backdrop-blur-sm text-sidebar-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring","aria-label":"Open navigation menu","aria-expanded":i,children:t(XZ,{})}),i&&t("div",{onClick:d,className:"fixed inset-0 bg-black/60 z-30 md:hidden","aria-hidden":"true"}),s!==null&&t("div",{onClick:()=>l(null),className:"hidden md:block fixed inset-0 bg-black/20 z-30","aria-hidden":"true"}),o("aside",{className:`fixed inset-y-0 left-0 z-40 flex transition-transform duration-300 ease-in-out ${i?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[t("div",{className:"absolute bottom-0 w-full h-[70dvh] bg-linear-to-t from-sidebar-primary/10 to-transparent"}),o("nav",{className:"w-16 bg-card border-r border-sidebar-border flex flex-col items-center pb-4 pt-0 space-y-2 flex-shrink-0",children:[t("div",{className:"flex-1 w-full flex flex-col items-center gap-5 pt-1",children:t(sn,{children:g.map((k,U)=>{let P=Boolean(k.props.active||s===U);return o(an,{children:[t(ln,{asChild:!0,children:o(E,{variant:"ghost",size:"icon-lg",onClick:()=>z(U),"aria-label":k.props.label,"aria-expanded":s===U,className:`relative w-12 h-12 [&_svg:not([class*='size-'])]:size-6 transition-colors duration-200 ${P?"text-sidebar-primary hover:bg-sidebar-accent hover:text-sidebar-primary":"text-sidebar-foreground/60 hover:text-sidebar-foreground hover:bg-sidebar-accent"}`,children:[k.props.icon,k.props.badge]})}),t(cn,{side:"right",children:t("p",{children:k.props.label})})]},k.props.label)})})}),t("div",{className:"mt-auto w-full flex flex-col items-center pb-2",children:t(ile,{})})]}),t("div",{className:C("transition-all duration-300 ease-in-out bg-sidebar/95 backdrop-blur-sm shadow-lg overflow-hidden",_?"w-[calc(100vw-4rem)] border-r border-sidebar-border":"w-0",v?"md:w-100 md:border-r md:border-sidebar-border":"md:w-0 md:border-r-0"),children:t("div",{className:"w-[calc(100vw-4rem)] md:w-100 h-full flex flex-col",children:b&&o(L,{children:[o("header",{className:"h-16 flex items-center justify-between px-4 font-bold text-lg border-b border-sidebar-border flex-shrink-0",children:[t("h2",{className:"truncate",children:b.label}),t(E,{variant:"ghost",size:"icon",onClick:d,className:"h-8 w-8 text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Close navigation menu",children:t(Ne,{className:"h-5 w-5"})})]}),t("div",{className:"flex-1 overflow-y-auto p-2",children:b.children})]})})})]})]})};function Je({...e}){return t(Nke,{"data-slot":"alert-dialog",...e})}function hxt({...e}){return t(Fke,{"data-slot":"alert-dialog-portal",...e})}function gxt({className:e,...r}){return t(jke,{"data-slot":"alert-dialog-overlay",className:C("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...r})}function Xe({className:e,size:r="default",...a}){return o(hxt,{children:[t(gxt,{}),t(Bke,{"data-slot":"alert-dialog-content","data-size":r,className:C("group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",e),...a})]})}function et({className:e,...r}){return t("div",{"data-slot":"alert-dialog-header",className:C("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function tt({className:e,...r}){return t("div",{"data-slot":"alert-dialog-footer",className:C("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function rt({className:e,...r}){return t(qke,{"data-slot":"alert-dialog-title",className:C("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function nt({className:e,...r}){return t(Hke,{"data-slot":"alert-dialog-description",className:C("text-sm text-muted-foreground",e),...r})}function ot({className:e,variant:r="default",size:a="default",...i}){return t(E,{variant:r,size:a,asChild:!0,children:t(Uke,{"data-slot":"alert-dialog-action",className:C(e),...i})})}function st({className:e,variant:r="outline",size:a="default",...i}){return t(E,{variant:r,size:a,asChild:!0,children:t(Yke,{"data-slot":"alert-dialog-cancel",className:C(e),...i})})}function ue({...e}){return t(v7,{"data-slot":"dialog",...e})}function EA({...e}){return t(y7,{"data-slot":"dialog-trigger",...e})}function Mxt({...e}){return t(_7,{"data-slot":"dialog-portal",...e})}function xxt({className:e,...r}){return t(b7,{"data-slot":"dialog-overlay",className:C("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...r})}function ae({className:e,children:r,showCloseButton:a=!0,...i}){return o(Mxt,{"data-slot":"dialog-portal",children:[t(xxt,{}),o(w7,{"data-slot":"dialog-content",className:C("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...i,children:[r,a&&o(I2,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[t(Ne,{}),t("span",{className:"sr-only",children:"Close"})]})]})]})}function fe({className:e,...r}){return t("div",{"data-slot":"dialog-header",className:C("flex flex-col gap-2 text-center sm:text-left",e),...r})}function qe({className:e,showCloseButton:r=!1,children:a,...i}){return o("div",{"data-slot":"dialog-footer",className:C("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...i,children:[a,r&&t(I2,{asChild:!0,children:t(E,{variant:"outline",children:"Close"})})]})}function le({className:e,...r}){return t(z7,{"data-slot":"dialog-title",className:C("text-lg leading-none font-semibold",e),...r})}function It({className:e,...r}){return t(S7,{"data-slot":"dialog-description",className:C("text-sm text-muted-foreground",e),...r})}function q({className:e,type:r,...a}){return t("input",{type:r,"data-slot":"input",className:C("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...a})}function ce({className:e,children:r,...a}){return o(bRe,{"data-slot":"scroll-area",className:C("relative",e),...a,children:[t(wRe,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:r}),t(Q4,{}),t(zRe,{})]})}function Q4({className:e,orientation:r="vertical",...a}){return t(dRe,{"data-slot":"scroll-area-scrollbar",orientation:r,className:C("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:t(MRe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var lt=Rr()(Hk((e,r)=>({teamId:null,projectTeamMap:{},setTeamId:(a)=>e({teamId:a}),ensureTeamIdForProject:async(a)=>{let i=r();if(i.projectTeamMap[a]){let s=i.projectTeamMap[a];if(i.teamId!==s)e({teamId:s});return s}try{let s=await A.api.projects[":projectId"].team.$get({param:{projectId:a}});if(!s.ok)throw Error("failed to fetch project team");let l=await s.json();if(l&&l.teamId)return e((c)=>({teamId:l.teamId,projectTeamMap:{...c.projectTeamMap,[a]:l.teamId}})),l.teamId}catch(s){console.error("Failed to fetch team ID for project",a,s)}return null}}),{name:"team-context-storage",storage:Lz(()=>localStorage)}));S();function Dt(e){let r=lt((i)=>i.teamId),{data:a}=Z({queryKey:e?["projects",e,"me"]:["teams",r,"me"],queryFn:async()=>{if(e){let i=await A.api.projects[":projectId"].me.$get({param:{projectId:e}});if(!i.ok)throw Error("Failed to fetch project me");return await i.json()}else{if(!r)return null;let i=await A.api.teams[":teamId"].me.$get({param:{teamId:r}});if(!i.ok)throw Error("Failed to fetch team me");return await i.json()}},enabled:e?!!e:!!r});return N(()=>({role:a?.role,canEdit:a?.role==="owner"||a?.role==="editor",canAdmin:a?.role==="owner"}),[a?.role])}S();var vxt=Symbol.for("preact-signals");function tF(){if(!(Am>1)){var e,r=!1;(function(){var s=$4;$4=void 0;while(s!==void 0){var l=s.S;if(l.v===s.v){for(var c=l.t;c!==void 0;c=c.x)if(c.i===s.i)c.i=l.i}s=s.o}})();while(eD!==void 0){var a=eD;eD=void 0,J4++;while(a!==void 0){var i=a.u;if(a.u=void 0,a.f&=-3,!(8&a.f)&&lle(a))try{a.c()}catch(s){if(!r)e=s,r=!0}a=i}}if(J4=0,Am--,r)throw e}else Am--}function $o(e){if(Am>0)return e();$q=++yxt,Am++;try{return e()}finally{tF()}}var $2,xn=void 0;function ho(e){var r=xn,a=$2;xn=void 0,$2=void 0;try{return e()}finally{xn=r,$2=a}}var eD=void 0,Am=0,J4=0,yxt=0,$q=0,$4=void 0,eF=0;function sle(e){if(xn!==void 0){var r=e.n;if(r===void 0||r.t!==xn){if(r={i:0,S:e,p:xn.s,n:void 0,t:xn,e:void 0,x:void 0,r},xn.s!==void 0)xn.s.n=r;if(xn.s=r,e.n=r,32&xn.f)e.S(r);return r}else if(r.i===-1){if(r.i=0,r.n!==void 0){if(r.n.p=r.p,r.p!==void 0)r.p.n=r.n;r.p=xn.s,r.n=void 0,xn.s.n=r,xn.s=r}return r}}}function vf(e,r){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=r==null?void 0:r.watched,this.Z=r==null?void 0:r.unwatched,this.name=r==null?void 0:r.name}vf.prototype.brand=vxt;vf.prototype.h=function(){return!0};vf.prototype.S=function(e){var r=this,a=this.t;if(a!==e&&e.e===void 0)if(e.x=a,this.t=e,a!==void 0)a.e=e;else ho(function(){var i;(i=r.W)==null||i.call(r)})};vf.prototype.U=function(e){var r=this;if(this.t!==void 0){var{e:a,x:i}=e;if(a!==void 0)a.x=i,e.e=void 0;if(i!==void 0)i.e=a,e.x=void 0;if(e===this.t){if(this.t=i,i===void 0)ho(function(){var s;(s=r.Z)==null||s.call(r)})}}};vf.prototype.subscribe=function(e){var r=this;return Ci(function(){var a=r.value;ho(function(){return e(a)})},{name:"sub"})};vf.prototype.valueOf=function(){return this.value};vf.prototype.toString=function(){return this.value+""};vf.prototype.toJSON=function(){return this.value};vf.prototype.peek=function(){var e=this;return ho(function(){return e.value})};Object.defineProperty(vf.prototype,"value",{get:function(){var e=sle(this);if(e!==void 0)e.i=this.i;return this.v},set:function(e){if(e!==this.v){if(J4>100)throw Error("Cycle detected");(function(a){if(Am!==0&&J4===0){if(a.l!==$q)a.l=$q,$4={S:a,v:a.v,i:a.i,o:$4}}})(this),this.v=e,this.i++,eF++,Am++;try{for(var r=this.t;r!==void 0;r=r.x)r.t.N()}finally{tF()}}}});function pZ(e,r){return new vf(e,r)}function lle(e){for(var r=e.s;r!==void 0;r=r.n)if(r.S.i!==r.i||!r.S.h()||r.S.i!==r.i)return!0;return!1}function cle(e){for(var r=e.s;r!==void 0;r=r.n){var a=r.S.n;if(a!==void 0)r.r=a;if(r.S.n=r,r.i=-1,r.n===void 0){e.s=r;break}}}function ule(e){var r=e.s,a=void 0;while(r!==void 0){var i=r.p;if(r.i===-1){if(r.S.U(r),i!==void 0)i.n=r.n;if(r.n!==void 0)r.n.p=i}else a=r;if(r.S.n=r.r,r.r!==void 0)r.r=void 0;r=i}e.s=a}function Xz(e,r){vf.call(this,void 0,r),this.x=e,this.s=void 0,this.g=eF-1,this.f=4}Xz.prototype=new vf;Xz.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32)return!0;if(this.f&=-5,this.g===eF)return!0;if(this.g=eF,this.f|=1,this.i>0&&!lle(this))return this.f&=-2,!0;var e=xn;try{cle(this),xn=this;var r=this.x();if(16&this.f||this.v!==r||this.i===0)this.v=r,this.f&=-17,this.i++}catch(a){this.v=a,this.f|=16,this.i++}return xn=e,ule(this),this.f&=-2,!0};Xz.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var r=this.s;r!==void 0;r=r.n)r.S.S(r)}vf.prototype.S.call(this,e)};Xz.prototype.U=function(e){if(this.t!==void 0){if(vf.prototype.U.call(this,e),this.t===void 0){this.f&=-33;for(var r=this.s;r!==void 0;r=r.n)r.S.U(r)}}};Xz.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Xz.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=sle(this);if(this.h(),e!==void 0)e.i=this.i;if(16&this.f)throw this.v;return this.v}});function e9(e,r){return new Xz(e,r)}function dle(e){var r=e.m;if(e.m=void 0,typeof r=="function"){Am++;var a=xn;xn=void 0;try{r()}catch(i){throw e.f&=-2,e.f|=8,t9(e),i}finally{xn=a,tF()}}}function t9(e){for(var r=e.s;r!==void 0;r=r.n)r.S.U(r);e.x=void 0,e.s=void 0,dle(e)}function _xt(e){if(xn!==this)throw Error("Out-of-order effect");if(ule(this),xn=e,this.f&=-2,8&this.f)t9(this);tF()}function B1(e,r){if(this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=r==null?void 0:r.name,$2)$2.push(this)}B1.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(this.x===void 0)return;var r=this.x();if(typeof r=="function")this.m=r}finally{e()}};B1.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,dle(this),cle(this),Am++;var e=xn;return xn=this,_xt.bind(this,e)};B1.prototype.N=function(){if(!(2&this.f))this.f|=2,this.u=eD,eD=this};B1.prototype.d=function(){if(this.f|=8,!(1&this.f))t9(this)};B1.prototype.dispose=function(){this.d()};function Ci(e,r){var a=new B1(e,r);try{a.c()}catch(s){throw a.d(),s}var i=a.d.bind(a);return i[Symbol.dispose]=i,i}var{create:bxt,defineProperty:d9,defineProperties:wxt,getOwnPropertyDescriptor:zxt,getOwnPropertyDescriptors:Sxt,getOwnPropertySymbols:Zle}=Object,Lxt=Object.prototype.hasOwnProperty,kxt=Object.prototype.propertyIsEnumerable,mle=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),U1=(e)=>{throw TypeError(e)},i9=(e,r,a)=>(r in e)?d9(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,Cxt=(e,r)=>{for(var a in r||(r={}))if(Lxt.call(r,a))i9(e,a,r[a]);if(Zle){for(var a of Zle(r))if(kxt.call(r,a))i9(e,a,r[a])}return e},Ixt=(e,r)=>wxt(e,Sxt(r)),ple=(e,r)=>d9(e,"name",{value:r,configurable:!0}),Rxt=(e)=>{var r;return[,,,bxt((r=e==null?void 0:e[mle("metadata")])!=null?r:null)]},hle=["class","method","getter","setter","accessor","field","value","get","set"],tD=(e)=>e!==void 0&&typeof e!=="function"?U1("Function expected"):e,Pxt=(e,r,a,i,s)=>({kind:hle[e],name:r,metadata:i,addInitializer:(l)=>a._?U1("Already initialized"):s.push(tD(l||null))}),gle=(e,r)=>i9(r,mle("metadata"),e[3]),Qz=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},Y1=(e,r,a,i,s,l)=>{var c,d,m,g,x,v=r&7,b=!!(r&8),_=!!(r&16),z=v>3?e.length+1:v?b?1:2:0,k=hle[v+5],U=v>3&&(e[z-1]=[]),P=e[z]||(e[z]=[]),T=v&&(!_&&!b&&(s=s.prototype),v<5&&(v>3||!_)&&zxt(v<4?s:{get[a](){return _c(this,l)},set[a](X){return y8(this,l,X)}},a));v?_&&v<4&&ple(l,(v>2?"set ":v>1?"get ":"")+a):ple(s,a);for(var G=i.length-1;G>=0;G--){if(g=Pxt(v,a,m={},e[3],P),v){if(g.static=b,g.private=_,x=g.access={has:_?(X)=>Txt(s,X):(X)=>(a in X)},v^3)x.get=_?(X)=>(v^1?_c:Axt)(X,s,v^4?l:T.get):(X)=>X[a];if(v>2)x.set=_?(X,J)=>y8(X,s,J,v^4?l:T.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?_?l:T[k]:v>4?void 0:{get:T.get,set:T.set}:s,g),m._=1,v^4||d===void 0)tD(d)&&(v>4?U.unshift(d):v?_?l=d:T[k]=d:s=d);else if(typeof d!=="object"||d===null)U1("Object expected");else tD(c=d.get)&&(T.get=c),tD(c=d.set)&&(T.set=c),tD(c=d.init)&&U.unshift(c)}return v||gle(e,s),T&&d9(s,a,T),_?v^4?l:T:s},Z9=(e,r,a)=>r.has(e)||U1("Cannot "+a),Txt=(e,r)=>Object(r)!==r?U1('Cannot use the "in" operator on this value'):e.has(r),_c=(e,r,a)=>(Z9(e,r,"read from private field"),a?a.call(e):r.get(e)),rD=(e,r,a)=>r.has(e)?U1("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),y8=(e,r,a,i)=>(Z9(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),Axt=(e,r,a)=>(Z9(e,r,"access private method"),a);function q1(e,r){if(r){let a;return e9(()=>{let i=e();if(i&&a&&r(a,i))return a;return a=i,i})}return e9(e)}function of(e,r){if(Object.is(e,r))return!0;if(e===null||r===null)return!1;if(typeof e==="function"&&typeof r==="function")return e===r;if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(let a of e)if(!r.has(a))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;return!e.some((i,s)=>!of(i,r[s]))}if(typeof e==="object"&&typeof r==="object"){let a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;return!a.some((l)=>!of(e[l],r[l]))}return!1}function ko({get:e},r){return{init(a){return pZ(a)},get(){return e.call(this).value},set(a){let i=e.call(this);if(i.peek()===a)return;i.value=a}}}function dn(e,r){let a=new WeakMap;return function(){let i=a.get(this);if(!i)i=q1(e.bind(this)),a.set(this,i);return i.value}}function r9(e=!0){return function(r,a){a.addInitializer(function(){let i=a.kind==="field"?this:a.static?this:Object.getPrototypeOf(this),s=Object.getOwnPropertyDescriptor(i,a.name);if(s)Object.defineProperty(i,a.name,Ixt(Cxt({},s),{enumerable:e}))})}}function $z(...e){let r=e.map((a)=>Ci(a));return()=>r.forEach((a)=>a())}var Mle,xle,vle,yle,_le,ble,ss,p9,o9,f9,s9,yf,m9,a9,wle,l9,h9,n9,c9,u9;ble=[ko],_le=[ko],yle=[ko],vle=[r9()],xle=[r9()],Mle=[r9()];var mZ=class{constructor(e,r=Object.is){this.defaultValue=e,this.equals=r,Qz(ss,5,this),rD(this,yf),rD(this,p9,Qz(ss,8,this)),Qz(ss,11,this),rD(this,m9,Qz(ss,12,this)),Qz(ss,15,this),rD(this,h9,Qz(ss,16,this)),Qz(ss,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return _c(this,yf,c9)}get initial(){return _c(this,yf,f9)}get previous(){return _c(this,yf,wle)}set current(e){let r=ho(()=>_c(this,yf,c9));if(e&&r&&this.equals(r,e))return;$o(()=>{if(!_c(this,yf,f9))y8(this,yf,e,s9);y8(this,yf,r,l9),y8(this,yf,e,u9)})}reset(e=this.defaultValue){$o(()=>{y8(this,yf,void 0,l9),y8(this,yf,e,s9),y8(this,yf,e,u9)})}};ss=Rxt(null);p9=new WeakMap;yf=new WeakSet;m9=new WeakMap;h9=new WeakMap;o9=Y1(ss,20,"#initial",ble,yf,p9),f9=o9.get,s9=o9.set;a9=Y1(ss,20,"#previous",_le,yf,m9),wle=a9.get,l9=a9.set;n9=Y1(ss,20,"#current",yle,yf,h9),c9=n9.get,u9=n9.set;Y1(ss,2,"current",vle,mZ);Y1(ss,2,"initial",xle,mZ);Y1(ss,2,"previous",Mle,mZ);gle(ss,mZ);function rF(e){return ho(()=>{let r={};for(let a in e)r[a]=e[a];return r})}var Jz,zle=class{constructor(){rD(this,Jz,new WeakMap)}get(e,r){var a;return e?(a=_c(this,Jz).get(e))==null?void 0:a.get(r):void 0}set(e,r,a){var i;if(!e)return;if(!_c(this,Jz).has(e))_c(this,Jz).set(e,new Map);return(i=_c(this,Jz).get(e))==null?void 0:i.set(r,a)}clear(e){var r;return e?(r=_c(this,Jz).get(e))==null?void 0:r.clear():void 0}};Jz=new WeakMap;var{create:Ext,defineProperty:y9,getOwnPropertyDescriptor:Dxt,getOwnPropertySymbols:Sle}=Object,Oxt=Object.prototype.hasOwnProperty,Nxt=Object.prototype.propertyIsEnumerable,Cle=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),H1=(e)=>{throw TypeError(e)},Lle=Math.pow,g9=(e,r,a)=>(r in e)?y9(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,Fxt=(e,r)=>{for(var a in r||(r={}))if(Oxt.call(r,a))g9(e,a,r[a]);if(Sle){for(var a of Sle(r))if(Nxt.call(r,a))g9(e,a,r[a])}return e},kle=(e,r)=>y9(e,"name",{value:r,configurable:!0}),jxt=(e)=>{var r;return[,,,Ext((r=e==null?void 0:e[Cle("metadata")])!=null?r:null)]},Ile=["class","method","getter","setter","accessor","field","value","get","set"],oD=(e)=>e!==void 0&&typeof e!=="function"?H1("Function expected"):e,Bxt=(e,r,a,i,s)=>({kind:Ile[e],name:r,metadata:i,addInitializer:(l)=>a._?H1("Already initialized"):s.push(oD(l||null))}),Rle=(e,r)=>g9(r,Cle("metadata"),e[3]),Uxt=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},Ple=(e,r,a,i,s,l)=>{var c,d,m,g,x,v=r&7,b=!!(r&8),_=!!(r&16),z=v>3?e.length+1:v?b?1:2:0,k=Ile[v+5],U=v>3&&(e[z-1]=[]),P=e[z]||(e[z]=[]),T=v&&(!_&&!b&&(s=s.prototype),v<5&&(v>3||!_)&&Dxt(v<4?s:{get[a](){return M9(this,l)},set[a](X){return x9(this,l,X)}},a));v?_&&v<4&&kle(l,(v>2?"set ":v>1?"get ":"")+a):kle(s,a);for(var G=i.length-1;G>=0;G--){if(g=Bxt(v,a,m={},e[3],P),v){if(g.static=b,g.private=_,x=g.access={has:_?(X)=>Yxt(s,X):(X)=>(a in X)},v^3)x.get=_?(X)=>(v^1?M9:Hxt)(X,s,v^4?l:T.get):(X)=>X[a];if(v>2)x.set=_?(X,J)=>x9(X,s,J,v^4?l:T.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?_?l:T[k]:v>4?void 0:{get:T.get,set:T.set}:s,g),m._=1,v^4||d===void 0)oD(d)&&(v>4?U.unshift(d):v?_?l=d:T[k]=d:s=d);else if(typeof d!=="object"||d===null)H1("Object expected");else oD(c=d.get)&&(T.get=c),oD(c=d.set)&&(T.set=c),oD(c=d.init)&&U.unshift(c)}return v||Rle(e,s),T&&y9(s,a,T),_?v^4?l:T:s},_9=(e,r,a)=>r.has(e)||H1("Cannot "+a),Yxt=(e,r)=>Object(r)!==r?H1('Cannot use the "in" operator on this value'):e.has(r),M9=(e,r,a)=>(_9(e,r,"read from private field"),a?a.call(e):r.get(e)),qxt=(e,r,a)=>r.has(e)?H1("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),x9=(e,r,a,i)=>(_9(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),Hxt=(e,r,a)=>(_9(e,r,"access private method"),a),_f=class e{constructor(r,a){this.x=r,this.y=a}static delta(r,a){return new e(r.x-a.x,r.y-a.y)}static distance(r,a){return Math.hypot(r.x-a.x,r.y-a.y)}static equals(r,a){return r.x===a.x&&r.y===a.y}static from({x:r,y:a}){return new e(r,a)}},Xs=class e{constructor(r,a,i,s){this.left=r,this.top=a,this.width=i,this.height=s,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(r,a){let{top:i,left:s,width:l,height:c,scale:d}=this,m=new e(s+r,i+a,l,c);return m.scale=Fxt({},d),m}get boundingRectangle(){let{width:r,height:a,left:i,top:s,right:l,bottom:c}=this;return{width:r,height:a,left:i,top:s,right:l,bottom:c}}get center(){let{left:r,top:a,right:i,bottom:s}=this;return new _f((r+i)/2,(a+s)/2)}get area(){let{width:r,height:a}=this;return r*a}equals(r){if(!(r instanceof e))return!1;let{left:a,top:i,width:s,height:l}=this;return a===r.left&&i===r.top&&s===r.width&&l===r.height}containsPoint(r){let{top:a,left:i,bottom:s,right:l}=this;return a<=r.y&&r.y<=s&&i<=r.x&&r.x<=l}intersectionArea(r){if(r instanceof e)return Vxt(this,r);return 0}intersectionRatio(r){let{area:a}=this,i=this.intersectionArea(r);return i/(r.area+a-i)}get bottom(){let{top:r,height:a}=this;return r+a}get right(){let{left:r,width:a}=this;return r+a}get aspectRatio(){let{width:r,height:a}=this;return r/a}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:r,left:a,width:i,height:s}){return new e(a,r,i,s)}static delta(r,a,i={x:"center",y:"center"}){let s=(l,c)=>{let d=i[c],m=c==="x"?l.left:l.top,g=c==="x"?l.width:l.height;if(d=="start")return m;if(d=="end")return m+g;return m+g/2};return _f.delta({x:s(r,"x"),y:s(r,"y")},{x:s(a,"x"),y:s(a,"y")})}static intersectionRatio(r,a){return e.from(r).intersectionRatio(e.from(a))}};function Vxt(e,r){let a=Math.max(r.top,e.top),i=Math.max(r.left,e.left),s=Math.min(r.left+r.width,e.left+e.width),l=Math.min(r.top+r.height,e.top+e.height),c=s-i,d=l-a;if(i<s&&a<l)return c*d;return 0}var Tle,Ale,v9,oF,aD,nD=class extends(v9=mZ,Ale=[dn],Tle=[dn],v9){constructor(e){let r=_f.from(e);super(r,(a,i)=>_f.equals(a,i));Uxt(aD,5,this),qxt(this,oF,0),this.velocity={x:0,y:0}}get delta(){return _f.delta(this.current,this.initial)}get direction(){let{current:e,previous:r}=this;if(!r)return null;let a={x:e.x-r.x,y:e.y-r.y};if(!a.x&&!a.y)return null;if(Math.abs(a.x)>Math.abs(a.y))return a.x>0?"right":"left";return a.y>0?"down":"up"}get current(){return super.current}set current(e){let{current:r}=this,a=_f.from(e),i={x:a.x-r.x,y:a.y-r.y},s=Date.now(),l=s-M9(this,oF),c=(d)=>Math.round(d/l*100);$o(()=>{x9(this,oF,s),this.velocity={x:c(i.x),y:c(i.y)},super.current=a})}reset(e=this.defaultValue){super.reset(_f.from(e)),this.velocity={x:0,y:0}}};aD=jxt(v9);oF=new WeakMap;Ple(aD,2,"delta",Ale,nD);Ple(aD,2,"direction",Tle,nD);Rle(aD,nD);function aF({x:e,y:r},a){let i=Math.abs(e),s=Math.abs(r);if(typeof a==="number")return Math.sqrt(Lle(i,2)+Lle(s,2))>a;if("x"in a&&"y"in a)return i>a.x&&s>a.y;if("x"in a)return i>a.x;if("y"in a)return s>a.y;return!1}var Ele=((e)=>(e.Horizontal="x",e.Vertical="y",e))(Ele||{}),b9=Object.values(Ele);var{create:Wxt,defineProperty:k9,defineProperties:Kxt,getOwnPropertyDescriptor:Gxt,getOwnPropertyDescriptors:Xxt,getOwnPropertySymbols:uF}=Object,Nle=Object.prototype.hasOwnProperty,Fle=Object.prototype.propertyIsEnumerable,jle=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),Q1=(e)=>{throw TypeError(e)},z9=(e,r,a)=>(r in e)?k9(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,C9=(e,r)=>{for(var a in r||(r={}))if(Nle.call(r,a))z9(e,a,r[a]);if(uF){for(var a of uF(r))if(Fle.call(r,a))z9(e,a,r[a])}return e},I9=(e,r)=>Kxt(e,Xxt(r)),Dle=(e,r)=>k9(e,"name",{value:r,configurable:!0}),Ble=(e,r)=>{var a={};for(var i in e)if(Nle.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&uF){for(var i of uF(e))if(r.indexOf(i)<0&&Fle.call(e,i))a[i]=e[i]}return a},J1=(e)=>{var r;return[,,,Wxt((r=e==null?void 0:e[jle("metadata")])!=null?r:null)]},Ule=["class","method","getter","setter","accessor","field","value","get","set"],iD=(e)=>e!==void 0&&typeof e!=="function"?Q1("Function expected"):e,Qxt=(e,r,a,i,s)=>({kind:Ule[e],name:r,metadata:i,addInitializer:(l)=>a._?Q1("Already initialized"):s.push(iD(l||null))}),tL=(e,r)=>z9(r,jle("metadata"),e[3]),Zo=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},Ao=(e,r,a,i,s,l)=>{var c,d,m,g,x,v=r&7,b=!!(r&8),_=!!(r&16),z=v>3?e.length+1:v?b?1:2:0,k=Ule[v+5],U=v>3&&(e[z-1]=[]),P=e[z]||(e[z]=[]),T=v&&(!_&&!b&&(s=s.prototype),v<5&&(v>3||!_)&&Gxt(v<4?s:{get[a](){return Kn(this,l)},set[a](X){return Gl(this,l,X)}},a));v?_&&v<4&&Dle(l,(v>2?"set ":v>1?"get ":"")+a):Dle(s,a);for(var G=i.length-1;G>=0;G--){if(g=Qxt(v,a,m={},e[3],P),v){if(g.static=b,g.private=_,x=g.access={has:_?(X)=>Jxt(s,X):(X)=>(a in X)},v^3)x.get=_?(X)=>(v^1?Kn:Yle)(X,s,v^4?l:T.get):(X)=>X[a];if(v>2)x.set=_?(X,J)=>Gl(X,s,J,v^4?l:T.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?_?l:T[k]:v>4?void 0:{get:T.get,set:T.set}:s,g),m._=1,v^4||d===void 0)iD(d)&&(v>4?U.unshift(d):v?_?l=d:T[k]=d:s=d);else if(typeof d!=="object"||d===null)Q1("Object expected");else iD(c=d.get)&&(T.get=c),iD(c=d.set)&&(T.set=c),iD(c=d.init)&&U.unshift(c)}return v||tL(e,s),T&&k9(s,a,T),_?v^4?l:T:s},R9=(e,r,a)=>r.has(e)||Q1("Cannot "+a),Jxt=(e,r)=>Object(r)!==r?Q1('Cannot use the "in" operator on this value'):e.has(r),Kn=(e,r,a)=>(R9(e,r,"read from private field"),a?a.call(e):r.get(e)),ma=(e,r,a)=>r.has(e)?Q1("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),Gl=(e,r,a,i)=>(R9(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),Yle=(e,r,a)=>(R9(e,r,"access private method"),a);function qle(e,r){return{plugin:e,options:r}}function oa(e){return(r)=>qle(e,r)}function X1(e){if(typeof e==="function")return{plugin:e,options:void 0};return e}var Hle,lD,P9,iF;Hle=[ko];var Fi=class{constructor(e,r){this.manager=e,this.options=r,ma(this,P9,Zo(lD,8,this,!1)),Zo(lD,11,this),ma(this,iF,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return ho(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let r=Ci(e.bind(this));return Kn(this,iF).add(r),r}destroy(){Kn(this,iF).forEach((e)=>e())}static configure(e){return qle(this,e)}};lD=J1(null);P9=new WeakMap;iF=new WeakMap;Ao(lD,4,"disabled",Hle,Fi,P9);tL(lD,Fi);var $1=class extends Fi{},fF,w9=class{constructor(e){this.manager=e,this.instances=new Map,ma(this,fF,[])}get values(){return Array.from(this.instances.values())}set values(e){let r=e.map(X1).reduce((i,s)=>{let l=i.find(({plugin:c})=>c===s.plugin);if(l)return l.options=s.options,i;return[...i,s]},[]),a=r.map(({plugin:i})=>i);for(let i of Kn(this,fF))if(!a.includes(i)){if(i.prototype instanceof $1)continue;this.unregister(i)}for(let{plugin:i,options:s}of r)this.register(i,s);Gl(this,fF,a)}get(e){return this.instances.get(e)}register(e,r){let a=this.instances.get(e);if(a){if(a.options!==r)a.options=r;return a}let i=new e(this.manager,r);return this.instances.set(e,i),i}unregister(e){let r=this.instances.get(e);if(r)r.destroy(),this.instances.delete(e)}destroy(){for(let e of this.instances.values())e.destroy();this.instances.clear()}};fF=new WeakMap;function $xt(e,r){if(e.priority===r.priority){if(e.type===r.type)return r.value-e.value;return r.type-e.type}return r.priority-e.priority}var nF=[],V1,W1,evt=class extends Fi{constructor(e){super(e);ma(this,V1),ma(this,W1),this.computeCollisions=this.computeCollisions.bind(this),Gl(this,W1,pZ(nF)),this.destroy=$z(()=>{let r=this.computeCollisions(),a=ho(()=>this.manager.dragOperation.position.current);if(r!==nF){let i=Kn(this,V1);if(Gl(this,V1,a),i&&a.x==i.x&&a.y==i.y)return}else Gl(this,V1,void 0);Kn(this,W1).value=r},()=>{let{dragOperation:r}=this.manager;if(r.status.initialized)this.forceUpdate()})}forceUpdate(e=!0){ho(()=>{if(e)Kn(this,W1).value=this.computeCollisions();else Gl(this,V1,void 0)})}computeCollisions(e,r){let{registry:a,dragOperation:i}=this.manager,{source:s,shape:l,status:c}=i;if(!c.initialized||!l)return nF;let d=[],m=[];for(let g of e!=null?e:a.droppables){if(g.disabled)continue;if(s&&!g.accepts(s))continue;let x=r!=null?r:g.collisionDetector;if(!x)continue;m.push(g),g.shape;let v=ho(()=>x({droppable:g,dragOperation:i}));if(v){if(g.collisionPriority!=null)v.priority=g.collisionPriority;d.push(v)}}if(m.length===0)return nF;return d.sort($xt),d}get collisions(){return Kn(this,W1).value}};V1=new WeakMap;W1=new WeakMap;var Vle,Wle,Kle,T9,Gle,vu,A9,G1,E9,D9;Kle=[ko],Wle=[ko],Vle=[ko];var eM=class e{constructor(r,a){ma(this,A9,Zo(vu,8,this)),Zo(vu,11,this),ma(this,G1),ma(this,E9,Zo(vu,12,this)),Zo(vu,15,this),ma(this,D9,Zo(vu,16,this)),Zo(vu,19,this);let{effects:i,id:s,data:l={},disabled:c=!1,register:d=!0}=r,m=s;if(Gl(this,G1,pZ(s)),this.manager=a,this.data=l,this.disabled=c,this.effects=()=>{var g;return[()=>{let{id:x,manager:v}=this;if(x===m)return;return m=x,v==null||v.registry.register(this),()=>v==null?void 0:v.registry.unregister(this)},...(g=i==null?void 0:i())!=null?g:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),a&&d)queueMicrotask(this.register)}get id(){var r,a;let i=Kn(this,G1).value;return(a=(r=e.pendingIdChanges)==null?void 0:r.get(this))!=null?a:i}set id(r){var a,i;let s=(i=(a=e.pendingIdChanges)==null?void 0:a.get(this))!=null?i:Kn(this,G1).peek();if(r===s)return;if(!e.pendingIdChanges)e.pendingIdChanges=new Map,queueMicrotask(()=>{var l;return Yle(l=e,T9,Gle).call(l)});e.pendingIdChanges.set(this,r)}register(){var r;return(r=this.manager)==null?void 0:r.registry.register(this)}unregister(){var r;(r=this.manager)==null||r.registry.unregister(this)}destroy(){var r;(r=this.manager)==null||r.registry.unregister(this)}};vu=J1(null);T9=new WeakSet;Gle=function(){let e=eM.pendingIdChanges;if(eM.pendingIdChanges=null,e)$o(()=>{for(let[r,a]of e)Kn(r,G1).value=a})};A9=new WeakMap;G1=new WeakMap;E9=new WeakMap;D9=new WeakMap;Ao(vu,4,"manager",Kle,eM,A9);Ao(vu,4,"data",Wle,eM,E9);Ao(vu,4,"disabled",Vle,eM,D9);ma(eM,T9);tL(vu,eM);eM.pendingIdChanges=null;var dF=eM,Ole=class{constructor(){this.map=pZ(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,r)=>{let a=this.map.peek(),i=a.get(e),s=()=>this.unregister(e,r);if(i===r)return s;if(i){if(i.id===e){let d=this.cleanupFunctions.get(i);d==null||d(),this.cleanupFunctions.delete(i)}}let l=new Map(a);for(let[d,m]of a)if(m===r&&d!==e){l.delete(d);break}l.set(e,r),this.map.value=l;let c=$z(...r.effects());return this.cleanupFunctions.set(r,c),s},this.unregister=(e,r)=>{let a=this.map.peek();if(a.get(e)!==r)return;let i=this.cleanupFunctions.get(r);i==null||i(),this.cleanupFunctions.delete(r);let s=new Map(a);s.delete(e),this.map.value=s}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(let e of this){let r=this.cleanupFunctions.get(e);r==null||r(),e.destroy()}this.map.value=new Map}},Xle,Qle,Jle,$le,ece,tce,S9,ls,O9,N9,F9,yu=class extends(S9=dF,tce=[ko],ece=[ko],$le=[ko],Jle=[dn],Qle=[dn],Xle=[dn],S9){constructor(e,r){var a=e,{modifiers:i,type:s,sensors:l,plugins:c,effects:d}=a,m=Ble(a,["modifiers","type","sensors","plugins","effects"]);super(I9(C9({},m),{effects:()=>{var g;return[...(g=d==null?void 0:d())!=null?g:[],()=>{let{manager:x,plugins:v}=this;if(!x||!v)return;for(let b of v){let{plugin:_}=X1(b);x.registry.plugins.register(_)}}]}}),r);Zo(ls,5,this),ma(this,O9,Zo(ls,8,this)),Zo(ls,11,this),ma(this,N9,Zo(ls,12,this)),Zo(ls,15,this),ma(this,F9,Zo(ls,16,this,this.isDragSource?"dragging":"idle")),Zo(ls,19,this),this.type=s,this.sensors=l,this.modifiers=i,this.alignment=m.alignment,this.plugins=c}pluginConfig(e){if(!this.plugins)return;for(let r of this.plugins){let a=X1(r);if(a.plugin===e)return a.options}return}get isDropping(){return this.status==="dropping"&&this.isDragSource}get isDragging(){return this.status==="dragging"&&this.isDragSource}get isDragSource(){var e,r;return((r=(e=this.manager)==null?void 0:e.dragOperation.source)==null?void 0:r.id)===this.id}};ls=J1(S9);O9=new WeakMap;N9=new WeakMap;F9=new WeakMap;Ao(ls,4,"type",tce,yu,O9);Ao(ls,4,"modifiers",ece,yu,N9);Ao(ls,4,"status",$le,yu,F9);Ao(ls,2,"isDropping",Jle,yu);Ao(ls,2,"isDragging",Qle,yu);Ao(ls,2,"isDragSource",Xle,yu);tL(ls,yu);var rce,oce,ace,nce,ice,fce,L9,Ii,j9,B9,U9,Y9,q9,_u=class extends(L9=dF,fce=[ko],ice=[ko],nce=[ko],ace=[ko],oce=[ko],rce=[dn],L9){constructor(e,r){var a=e,{accept:i,collisionDetector:s,collisionPriority:l,type:c}=a,d=Ble(a,["accept","collisionDetector","collisionPriority","type"]);super(d,r);Zo(Ii,5,this),ma(this,j9,Zo(Ii,8,this)),Zo(Ii,11,this),ma(this,B9,Zo(Ii,12,this)),Zo(Ii,15,this),ma(this,U9,Zo(Ii,16,this)),Zo(Ii,19,this),ma(this,Y9,Zo(Ii,20,this)),Zo(Ii,23,this),ma(this,q9,Zo(Ii,24,this)),Zo(Ii,27,this),this.accept=i,this.collisionDetector=s,this.collisionPriority=l,this.type=c}accepts(e){let{accept:r}=this;if(!r)return!0;if(typeof r==="function")return r(e);if(!e.type)return!1;if(Array.isArray(r))return r.includes(e.type);return e.type===r}get isDropTarget(){var e,r;return((r=(e=this.manager)==null?void 0:e.dragOperation.target)==null?void 0:r.id)===this.id}};Ii=J1(L9);j9=new WeakMap;B9=new WeakMap;U9=new WeakMap;Y9=new WeakMap;q9=new WeakMap;Ao(Ii,4,"accept",fce,_u,j9);Ao(Ii,4,"type",ice,_u,B9);Ao(Ii,4,"collisionDetector",nce,_u,U9);Ao(Ii,4,"collisionPriority",ace,_u,Y9);Ao(Ii,4,"shape",oce,_u,q9);Ao(Ii,2,"isDropTarget",rce,_u);tL(Ii,_u);var tvt=class{constructor(){this.registry=new Map}addEventListener(e,r){let{registry:a}=this,i=new Set(a.get(e));return i.add(r),a.set(e,i),()=>this.removeEventListener(e,r)}removeEventListener(e,r){let{registry:a}=this,i=new Set(a.get(e));i.delete(r),a.set(e,i)}dispatch(e,...r){let{registry:a}=this,i=a.get(e);if(!i)return;for(let s of i)s(...r)}},rvt=class extends tvt{constructor(e){super();this.manager=e}dispatch(e,r){let a=[r,this.manager];super.dispatch(e,...a)}};function sF(e,r=!0){let a=!1;return I9(C9({},e),{cancelable:r,get defaultPrevented(){return a},preventDefault(){if(!r)return;a=!0}})}var ovt=class extends $1{constructor(e){super(e);let r=(i,s)=>i.map(({id:l})=>l).join("")===s.map(({id:l})=>l).join(""),a=[];this.destroy=$z(()=>{let{dragOperation:i,collisionObserver:s}=e;if(i.status.initializing)a=[],s.enable()},()=>{let{collisionObserver:i,monitor:s}=e,{collisions:l}=i;if(i.isDisabled())return;if(dF.pendingIdChanges)return;let c=sF({collisions:l});if(s.dispatch("collision",c),c.defaultPrevented)return;if(r(l,a))return;else a=l;let[d]=l;ho(()=>{var m;if((d==null?void 0:d.id)!==((m=e.dragOperation.target)==null?void 0:m.id))i.disable(),e.actions.setDropTarget(d==null?void 0:d.id).then(()=>{i.enable()})})})}},hZ=((e)=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(hZ||{}),gZ=((e)=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(gZ||{}),sce,lce,cce,uce,dce,Zce,pce,bc,H9;pce=[ko],Zce=[dn],dce=[dn],uce=[dn],cce=[dn],lce=[dn],sce=[dn];var tM=class{constructor(){Zo(bc,5,this),ma(this,H9,Zo(bc,8,this,"idle")),Zo(bc,11,this)}get current(){return this.value}get idle(){return this.value==="idle"}get initializing(){return this.value==="initializing"}get initialized(){let{value:e}=this;return e!=="idle"&&e!=="initialization-pending"}get dragging(){return this.value==="dragging"}get dropped(){return this.value==="dropped"}set(e){this.value=e}};bc=J1(null);H9=new WeakMap;Ao(bc,4,"value",pce,tM,H9);Ao(bc,2,"current",Zce,tM);Ao(bc,2,"idle",dce,tM);Ao(bc,2,"initializing",uce,tM);Ao(bc,2,"initialized",cce,tM);Ao(bc,2,"dragging",lce,tM);Ao(bc,2,"dropped",sce,tM);tL(bc,tM);var avt=class{constructor(e){this.manager=e}setDragSource(e){let{dragOperation:r}=this.manager;r.sourceIdentifier=typeof e==="string"||typeof e==="number"?e:e.id}setDropTarget(e){return ho(()=>{let{dragOperation:r}=this.manager,a=e!=null?e:null;if(r.targetIdentifier===a)return Promise.resolve(!1);r.targetIdentifier=a;let i=sF({operation:r.snapshot()});if(r.status.dragging)this.manager.monitor.dispatch("dragover",i);return this.manager.renderer.rendering.then(()=>i.defaultPrevented)})}start(e){return ho(()=>{let{dragOperation:r}=this.manager;if(e.source!=null)this.setDragSource(e.source);if(!r.source)throw Error("Cannot start a drag operation without a drag source");if(!r.status.idle)throw Error("Cannot start a drag operation while another is active");let i=new AbortController,{event:s,coordinates:l}=e;$o(()=>{r.status.set("initialization-pending"),r.shape=null,r.canceled=!1,r.activatorEvent=s!=null?s:null,r.position.reset(l)});let c=sF({operation:r.snapshot()});if(this.manager.monitor.dispatch("beforedragstart",c),c.defaultPrevented)return r.reset(),i.abort(),i;return r.status.set("initializing"),r.controller=i,this.manager.renderer.rendering.then(()=>{if(i.signal.aborted)return;let{status:d}=r;if(d.current!=="initializing")return;$o(()=>{r.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:s,operation:r.snapshot(),cancelable:!1})})}),i})}move(e){return ho(()=>{var r,a;let{dragOperation:i}=this.manager,{status:s,controller:l}=i;if(!s.dragging||!l||l.signal.aborted)return;let c=sF({nativeEvent:e.event,operation:i.snapshot(),by:e.by,to:e.to},(r=e.cancelable)!=null?r:!0);if((a=e.propagate)!=null?a:!0)this.manager.monitor.dispatch("dragmove",c);queueMicrotask(()=>{var d,m,g,x,v;if(c.defaultPrevented)return;let b=(v=e.to)!=null?v:{x:i.position.current.x+((m=(d=e.by)==null?void 0:d.x)!=null?m:0),y:i.position.current.y+((x=(g=e.by)==null?void 0:g.y)!=null?x:0)};i.position.current=b})})}stop(e={}){return ho(()=>{var r,a;let{dragOperation:i}=this.manager,{controller:s}=i;if(!s||s.signal.aborted)return;let l,c=()=>{let m={resume:()=>{},abort:()=>{}};return l=new Promise((g,x)=>{m.resume=g,m.abort=x}),m};s.abort();let d=()=>{this.manager.renderer.rendering.then(()=>{i.status.set("dropped");let m=ho(()=>{var x;return((x=i.source)==null?void 0:x.status)==="dropping"}),g=()=>{if(i.controller===s)i.controller=void 0;i.reset()};if(m){let{source:x}=i,v=Ci(()=>{if((x==null?void 0:x.status)==="idle")v(),g()})}else this.manager.renderer.rendering.then(g)})};if(i.canceled=(r=e.canceled)!=null?r:!1,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:i.snapshot(),canceled:(a=e.canceled)!=null?a:!1,suspend:c}),l)l.then(d).catch(()=>i.reset());else d()})}},eL=class extends Fi{constructor(e,r){super(e,r);this.manager=e,this.options=r}},mce=class extends AbortController{constructor(e,r){super();this.constraints=e,this.onActivate=r,this.activated=!1;for(let a of e!=null?e:[])a.controller=this}onEvent(e){var r;if(this.activated)return;if((r=this.constraints)==null?void 0:r.length)for(let a of this.constraints)a.onEvent(e);else this.activate(e)}activate(e){if(this.activated)return;this.activated=!0,this.onActivate(e)}abort(e){this.activated=!1,super.abort(e)}},lF,V9=class{constructor(e){this.options=e,ma(this,lF)}set controller(e){Gl(this,lF,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var r;(r=Kn(this,lF))==null||r.activate(e)}};lF=new WeakMap;var qd=class extends Fi{constructor(e,r){super(e,r);this.manager=e,this.options=r}apply(e){return e.transform}},nvt=class{constructor(e){this.draggables=new Ole,this.droppables=new Ole,this.plugins=new w9(e),this.sensors=new w9(e),this.modifiers=new w9(e)}register(e,r){if(e instanceof yu)return this.draggables.register(e.id,e);if(e instanceof _u)return this.droppables.register(e.id,e);if(e.prototype instanceof qd)return this.modifiers.register(e,r);if(e.prototype instanceof eL)return this.sensors.register(e,r);if(e.prototype instanceof Fi)return this.plugins.register(e,r);throw Error("Invalid instance type")}unregister(e){if(e instanceof dF){if(e instanceof yu)return this.draggables.unregister(e.id,e);if(e instanceof _u)return this.droppables.unregister(e.id,e);return()=>{}}if(e.prototype instanceof qd)return this.modifiers.unregister(e);if(e.prototype instanceof eL)return this.sensors.unregister(e);if(e.prototype instanceof Fi)return this.plugins.unregister(e);throw Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}},hce,gce,Mce,xce,vce,yce,_ce,bce,wce,fD,cF,K1,Rn,W9,K9,G9,X9,Q9,sD;wce=[dn],bce=[ko],_ce=[ko],yce=[ko],vce=[ko],xce=[ko],Mce=[dn],gce=[dn],hce=[dn];var bu=class{constructor(e){Zo(Rn,5,this),ma(this,fD),ma(this,cF),ma(this,K1,new mZ(void 0,(r,a)=>r&&a?r.equals(a):r===a)),this.status=new tM,ma(this,W9,Zo(Rn,8,this,!1)),Zo(Rn,11,this),ma(this,K9,Zo(Rn,12,this,null)),Zo(Rn,15,this),ma(this,G9,Zo(Rn,16,this,null)),Zo(Rn,19,this),ma(this,X9,Zo(Rn,20,this,null)),Zo(Rn,23,this),ma(this,Q9,Zo(Rn,24,this,[])),Zo(Rn,27,this),this.position=new nD({x:0,y:0}),ma(this,sD,{x:0,y:0}),Gl(this,fD,e)}get shape(){let{current:e,initial:r,previous:a}=Kn(this,K1);if(!e||!r)return null;return{current:e,initial:r,previous:a}}set shape(e){if(!e)Kn(this,K1).reset();else Kn(this,K1).current=e}get source(){var e;let r=this.sourceIdentifier;if(r==null)return null;let a=Kn(this,fD).registry.draggables.get(r);if(a)Gl(this,cF,a);return(e=a!=null?a:Kn(this,cF))!=null?e:null}get target(){var e;let r=this.targetIdentifier;return r!=null?(e=Kn(this,fD).registry.droppables.get(r))!=null?e:null:null}get transform(){let{x:e,y:r}=this.position.delta,a={x:e,y:r};for(let i of this.modifiers)a=i.apply(I9(C9({},this.snapshot()),{transform:a}));return Gl(this,sD,a),a}snapshot(){return ho(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:Kn(this,sD),shape:this.shape?rF(this.shape):null,position:rF(this.position),status:rF(this.status),canceled:this.canceled}))}reset(){$o(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,Kn(this,K1).reset(),this.position.reset({x:0,y:0}),Gl(this,sD,{x:0,y:0}),this.modifiers=[]})}};Rn=J1(null);fD=new WeakMap;cF=new WeakMap;K1=new WeakMap;W9=new WeakMap;K9=new WeakMap;G9=new WeakMap;X9=new WeakMap;Q9=new WeakMap;sD=new WeakMap;Ao(Rn,2,"shape",wce,bu);Ao(Rn,4,"canceled",bce,bu,W9);Ao(Rn,4,"activatorEvent",_ce,bu,K9);Ao(Rn,4,"sourceIdentifier",yce,bu,G9);Ao(Rn,4,"targetIdentifier",vce,bu,X9);Ao(Rn,4,"modifiers",xce,bu,Q9);Ao(Rn,2,"source",Mce,bu);Ao(Rn,2,"target",gce,bu);Ao(Rn,2,"transform",hce,bu);tL(Rn,bu);var ivt={get rendering(){return Promise.resolve()}};function cs(e,r){if(typeof e==="function")return e(r);return e!=null?e:r}var zce=class{constructor(e){this.destroy=()=>{if(!this.dragOperation.status.idle)this.actions.stop({canceled:!0});this.dragOperation.modifiers.forEach((v)=>v.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};var r;let a=e!=null?e:{},i=cs(a.plugins,[]),s=cs(a.sensors,[]),l=cs(a.modifiers,[]),c=(r=a.renderer)!=null?r:ivt,d=new rvt(this),m=new nvt(this);this.registry=m,this.monitor=d,this.renderer=c,this.actions=new avt(this),this.dragOperation=new bu(this),this.collisionObserver=new evt(this),this.plugins=[ovt,...i],this.modifiers=l,this.sensors=s;let{destroy:g}=this,x=$z(()=>{var v,b,_;let z=ho(()=>this.dragOperation.modifiers),k=this.modifiers;for(let U of z)if(!k.includes(U))U.destroy();this.dragOperation.modifiers=(_=(b=(v=this.dragOperation.source)==null?void 0:v.modifiers)==null?void 0:b.map((U)=>{let{plugin:P,options:T}=X1(U);return new P(this,T)}))!=null?_:k});this.destroy=()=>{x(),g()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}};var Pce=(e)=>{throw TypeError(e)},eH=(e,r,a)=>r.has(e)||Pce("Cannot "+a),po=(e,r,a)=>(eH(e,r,"read from private field"),r.get(e)),Qs=(e,r,a)=>r.has(e)?Pce("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),Xl=(e,r,a,i)=>(eH(e,r,"write to private field"),r.set(e,a),a),Tce=(e,r,a)=>(eH(e,r,"access private method"),a);function yF(e){if(!e)return!1;if(e instanceof KeyframeEffect)return!0;return"getKeyframes"in e&&typeof e.getKeyframes==="function"}function tH(e,r){let a=e.getAnimations(),i=null;for(let s of a){if(s.playState!=="running")continue;let{effect:l}=s,d=(yF(l)?l.getKeyframes():[]).filter(r);if(d.length>0)i=[d[d.length-1],s]}return i}function _F(e){let{width:r,height:a,top:i,left:s,bottom:l,right:c}=e.getBoundingClientRect();return{width:r,height:a,top:i,left:s,bottom:l,right:c}}function rH(e){let r=Object.prototype.toString.call(e);return r==="[object Window]"||r==="[object global]"}function hD(e){return"nodeType"in e}function us(e){var r,a,i;if(!e)return window;if(rH(e))return e;if(!hD(e))return window;if("defaultView"in e)return(r=e.defaultView)!=null?r:window;return(i=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?i:window}function bF(e){let{Document:r}=us(e);return e instanceof r||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function rM(e){if(!e||rH(e))return!1;return e instanceof us(e).HTMLElement||"namespaceURI"in e&&typeof e.namespaceURI==="string"&&e.namespaceURI.endsWith("html")}function Ace(e){return e instanceof us(e).SVGElement||"namespaceURI"in e&&typeof e.namespaceURI==="string"&&e.namespaceURI.endsWith("svg")}function nL(e){if(!e)return document;if(rH(e))return e.document;if(!hD(e))return document;if(bF(e))return e;if(rM(e)||Ace(e))return e.ownerDocument;return document}function fvt(e){var r,a,i,s;let{documentElement:l}=nL(e),c=us(e).visualViewport,d=(r=c==null?void 0:c.width)!=null?r:l.clientWidth,m=(a=c==null?void 0:c.height)!=null?a:l.clientHeight,g=(i=c==null?void 0:c.offsetTop)!=null?i:0,x=(s=c==null?void 0:c.offsetLeft)!=null?s:0;return{top:g,left:x,right:x+d,bottom:g+m,width:d,height:m}}function svt(e,r){if(lvt(e)&&e.open===!1)return!1;let{overflow:a,overflowX:i,overflowY:s}=getComputedStyle(e);return a==="visible"&&i==="visible"&&s==="visible"}function lvt(e){return e.tagName==="DETAILS"}function tR(e,r=e.getBoundingClientRect(),a=0){var i,s,l,c,d;let m=r,{ownerDocument:g}=e,x=(i=g.defaultView)!=null?i:window,v=e.parentElement;while(v&&v!==g.documentElement){if(!svt(v)){let G=v.getBoundingClientRect(),X=a*(G.bottom-G.top),J=a*(G.right-G.left),ee=a*(G.bottom-G.top),re=a*(G.right-G.left);m={top:Math.max(m.top,G.top-X),right:Math.min(m.right,G.right+J),bottom:Math.min(m.bottom,G.bottom+ee),left:Math.max(m.left,G.left-re),width:0,height:0},m.width=m.right-m.left,m.height=m.bottom-m.top}v=v.parentElement}let b=x.visualViewport,_=(s=b==null?void 0:b.offsetTop)!=null?s:0,z=(l=b==null?void 0:b.offsetLeft)!=null?l:0,k=(c=b==null?void 0:b.width)!=null?c:x.innerWidth,U=(d=b==null?void 0:b.height)!=null?d:x.innerHeight,P=a*U,T=a*k;if(m={top:Math.max(m.top,_-P),right:Math.min(m.right,z+k+T),bottom:Math.min(m.bottom,_+U+P),left:Math.max(m.left,z-T),width:0,height:0},m.width=m.right-m.left,m.height=m.bottom-m.top,m.width<0)m.width=0;if(m.height<0)m.height=0;return m}function iL(e){return{x:e.clientX,y:e.clientY}}var Ece=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gF(e=document,r=new Set){if(r.has(e))return[];r.add(e);let a=[e];for(let i of Array.from(e.querySelectorAll("iframe, frame")))try{let s=i.contentDocument;if(s&&!r.has(s))a.push(...gF(s,r))}catch(s){}try{let i=e.defaultView;if(i&&i!==window.top){let s=i.parent;if(s&&s.document&&s.document!==e)a.push(...gF(s.document,r))}}catch(i){}return a}function wF(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function oH(){var e,r;let a=wF()?window.visualViewport:null;return{x:(e=a==null?void 0:a.offsetLeft)!=null?e:0,y:(r=a==null?void 0:a.offsetTop)!=null?r:0}}function zF(e){if(!e||!hD(e))return!1;return e instanceof us(e).ShadowRoot}function gD(e){if(e&&hD(e)){let r=e.getRootNode();if(zF(r))return r;else if(r instanceof Document)return r}return nL(e)}function MD(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Dce(e){let a=e.cloneNode(!0),i=Array.from(e.querySelectorAll("input, textarea, select, canvas, [contenteditable]"));return Array.from(a.querySelectorAll("input, textarea, select, canvas, [contenteditable]")).forEach((l,c)=>{let d=i[c];if(Sce(l)&&Sce(d)){if(l.type!=="file")l.value=d.value;if(l.type==="radio"&&l.name)l.name=`Cloned__${l.name}`}if(Lce(l)&&Lce(d)&&d.width>0&&d.height>0){let m=l.getContext("2d");m==null||m.drawImage(d,0,0)}}),a}function Sce(e){return"value"in e}function Lce(e){return e.tagName==="CANVAS"}function aH(e,{x:r,y:a}){let i=e.elementFromPoint(r,a);if(cvt(i)){let{contentDocument:s}=i;if(s){let{left:l,top:c}=i.getBoundingClientRect();return aH(s,{x:r-l,y:a-c})}}return i}function cvt(e){return(e==null?void 0:e.tagName)==="IFRAME"}var xD=new WeakMap;function Oce(e){return e.closest(`
79
- input:not([disabled]),
80
- select:not([disabled]),
81
- textarea:not([disabled]),
82
- button:not([disabled]),
83
- a[href],
84
- [contenteditable]:not([contenteditable="false"])
85
- `)}var nH=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[r,{type:a,listener:i,options:s}]=e;r.removeEventListener(a,i,s)}this.entries.clear()}}bind(e,r){let a=Array.isArray(e)?e:[e],i=Array.isArray(r)?r:[r],s=[];for(let c of a)for(let d of i){let{type:m,listener:g,options:x}=d,v=[c,d];c.addEventListener(m,g,x),this.entries.add(v),s.push(v)}let l=this.entries;return function(){for(let d of s){let[m,{type:g,listener:x,options:v}]=d;m.removeEventListener(g,x,v),l.delete(d)}}}};function aL(e){let r=e==null?void 0:e.ownerDocument.defaultView;if(r&&r.self!==r.parent)return r.frameElement}function uvt(e){let r=new Set,a=aL(e);while(a)r.add(a),a=aL(a);return r}function dvt(e,r){let a=setTimeout(e,r);return()=>clearTimeout(a)}function Nce(e,r){let a=()=>performance.now(),i,s;return function(...l){let c=this;if(!s)e.apply(c,l),s=a();else i==null||i(),i=dvt(()=>{e.apply(c,l),s=a()},r-(a()-s))}}function Zvt(e,r){if(e===r)return!0;if(!e||!r)return!1;return e.top==r.top&&e.left==r.left&&e.right==r.right&&e.bottom==r.bottom}function pvt(e,r=e.getBoundingClientRect()){let{width:a,height:i}=tR(e,r);return a>0&&i>0}var mvt=Ece?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},mF,hvt=class extends mvt{constructor(e){super((r)=>{if(!po(this,mF)){Xl(this,mF,!0);return}e(r,this)});Qs(this,mF,!1)}};mF=new WeakMap;var kce=Array.from({length:100},(e,r)=>r/100),Fce=75,rL,MF,_8,oL,cD,af,pD,uD,xF,jce,Bce,Uce=class{constructor(e,r,a={debug:!1,skipInitial:!1}){this.element=e,this.callback=r,Qs(this,xF),this.disconnect=()=>{var l,c,d;Xl(this,pD,!0),(l=po(this,_8))==null||l.disconnect(),(c=po(this,oL))==null||c.disconnect(),po(this,cD).disconnect(),(d=po(this,af))==null||d.remove()},Qs(this,rL,!0),Qs(this,MF),Qs(this,_8),Qs(this,oL),Qs(this,cD),Qs(this,af),Qs(this,pD,!1),Qs(this,uD,Nce(()=>{var l,c,d;let{element:m}=this;if((l=po(this,oL))==null||l.disconnect(),po(this,pD)||!po(this,rL)||!m.isConnected)return;let g=(c=m.ownerDocument)!=null?c:document,{innerHeight:x,innerWidth:v}=(d=g.defaultView)!=null?d:window,b=m.getBoundingClientRect(),_=tR(m,b),{top:z,left:k,bottom:U,right:P}=_,T=-Math.floor(z),G=-Math.floor(k),X=-Math.floor(v-P),J=-Math.floor(x-U),ee=`${T}px ${X}px ${J}px ${G}px`;this.boundingClientRect=b,Xl(this,oL,new IntersectionObserver((re)=>{let[oe]=re,{intersectionRect:ie}=oe;if((oe.intersectionRatio!==1?oe.intersectionRatio:Xs.intersectionRatio(ie,tR(m)))!==1)po(this,uD).call(this)},{threshold:kce,rootMargin:ee,root:g})),po(this,oL).observe(m),Tce(this,xF,jce).call(this)},Fce)),this.boundingClientRect=e.getBoundingClientRect(),Xl(this,rL,pvt(e,this.boundingClientRect));let i=!0;this.callback=(l)=>{if(i){if(i=!1,a.skipInitial)return}r(l)};let s=e.ownerDocument;if(a==null?void 0:a.debug)Xl(this,af,document.createElement("div")),po(this,af).style.background="rgba(0,0,0,0.15)",po(this,af).style.position="fixed",po(this,af).style.pointerEvents="none",s.body.appendChild(po(this,af));if(Xl(this,cD,new IntersectionObserver((l)=>{var c,d;let m=l[l.length-1],{boundingClientRect:g,isIntersecting:x}=m,{width:v,height:b}=g,_=po(this,rL);if(Xl(this,rL,x),!v&&!b)return;if(_&&!x){if((c=po(this,oL))==null||c.disconnect(),this.callback(null),(d=po(this,_8))==null||d.disconnect(),Xl(this,_8,void 0),po(this,af))po(this,af).style.visibility="hidden"}else po(this,uD).call(this);if(x&&!po(this,_8))Xl(this,_8,new hvt(po(this,uD))),po(this,_8).observe(e)},{threshold:kce,root:s})),po(this,rL)&&!a.skipInitial)this.callback(this.boundingClientRect);po(this,cD).observe(e)}};rL=new WeakMap;MF=new WeakMap;_8=new WeakMap;oL=new WeakMap;cD=new WeakMap;af=new WeakMap;pD=new WeakMap;uD=new WeakMap;xF=new WeakSet;jce=function(){if(po(this,pD))return;if(Tce(this,xF,Bce).call(this),Zvt(this.boundingClientRect,po(this,MF)))return;this.callback(this.boundingClientRect),Xl(this,MF,this.boundingClientRect)};Bce=function(){if(po(this,af)){let{top:e,left:r,width:a,height:i}=tR(this.element);po(this,af).style.overflow="hidden",po(this,af).style.visibility="visible",po(this,af).style.top=`${Math.floor(e)}px`,po(this,af).style.left=`${Math.floor(r)}px`,po(this,af).style.width=`${Math.floor(a)}px`,po(this,af).style.height=`${Math.floor(i)}px`}};var ZF=new WeakMap,pF=new WeakMap;function gvt(e,r){let a=ZF.get(e);if(!a)a={disconnect:new Uce(e,(s)=>{let l=ZF.get(e);if(!l)return;l.callbacks.forEach((c)=>c(s))},{skipInitial:!0}).disconnect,callbacks:new Set};return a.callbacks.add(r),ZF.set(e,a),()=>{if(a.callbacks.delete(r),a.callbacks.size===0)ZF.delete(e),a.disconnect()}}function Mvt(e,r){let a=new Set;for(let i of e){let s=gvt(i,r);a.add(s)}return()=>a.forEach((i)=>i())}function xvt(e,r){var a;let i=e.ownerDocument;if(!pF.has(i)){let c=new AbortController,d=new Set;document.addEventListener("scroll",(m)=>d.forEach((g)=>g(m)),{capture:!0,passive:!0,signal:c.signal}),pF.set(i,{disconnect:()=>c.abort(),listeners:d})}let{listeners:s,disconnect:l}=(a=pF.get(i))!=null?a:{};if(!s||!l)return()=>{};return s.add(r),()=>{if(s.delete(r),s.size===0)l(),pF.delete(i)}}var dD,ZD,hF,$9,Yce=class{constructor(e,r,a){this.callback=r,Qs(this,dD),Qs(this,ZD,!1),Qs(this,hF),Qs(this,$9,Nce((c)=>{if(po(this,ZD))return;if(!c.target)return;if("contains"in c.target&&typeof c.target.contains==="function"){for(let d of po(this,hF))if(c.target.contains(d)){this.callback(po(this,dD).boundingClientRect);break}}},Fce));let i=uvt(e),s=Mvt(i,r),l=xvt(e,po(this,$9));Xl(this,hF,i),Xl(this,dD,new Uce(e,r,a)),this.disconnect=()=>{if(po(this,ZD))return;Xl(this,ZD,!0),s(),l(),po(this,dD).disconnect()}}};dD=new WeakMap;ZD=new WeakMap;hF=new WeakMap;$9=new WeakMap;function SF(e){return"showPopover"in e&&"hidePopover"in e&&typeof e.showPopover==="function"&&typeof e.hidePopover==="function"}function fL(e){try{if(SF(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open"))e.showPopover()}catch(r){}}function Cce(e){if(!Ece||!e)return!1;return e===nL(e).scrollingElement}function qce(e){var r,a;let i=us(e),s=Cce(e)?fvt(e):_F(e),l=i.visualViewport,c=Cce(e)?{height:(r=l==null?void 0:l.height)!=null?r:i.innerHeight,width:(a=l==null?void 0:l.width)!=null?a:i.innerWidth}:{height:e.clientHeight,width:e.clientWidth},d={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-c.width,y:e.scrollHeight-c.height}},m=d.current.y<=0,g=d.current.x<=0,x=d.current.y>=d.max.y,v=d.current.x>=d.max.x;return{rect:s,position:d,isTop:m,isLeft:g,isBottom:x,isRight:v}}function Hce(e,r){let{isTop:a,isBottom:i,isLeft:s,isRight:l,position:c}=qce(e),{x:d,y:m}=r!=null?r:{x:0,y:0},g=!a&&c.current.y+m>0,x=!i&&c.current.y+m<c.max.y,v=!s&&c.current.x+d>0,b=!l&&c.current.x+d<c.max.x;return{top:g,bottom:x,left:v,right:b,x:v||b,y:g||x}}var iH=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:r,resolvers:a}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let i of r)i();for(let i of a)i()}}schedule(e){if(this.tasks.add(e),!this.pending)this.pending=!0,this.scheduler(this.flush);return new Promise((r)=>this.resolvers.add(r))}},vD=new iH((e)=>{if(typeof requestAnimationFrame==="function")requestAnimationFrame(e);else e()}),vvt=new iH((e)=>setTimeout(e,50)),vF=new Map,yvt=vF.clear.bind(vF);function wc(e,r=!1){if(!r)return Ice(e);let a=vF.get(e);if(a)return a;return a=Ice(e),vF.set(e,a),vvt.schedule(yvt),a}function Ice(e){return us(e).getComputedStyle(e)}function _vt(e,r=wc(e,!0)){return r.position==="fixed"||r.position==="sticky"}function bvt(e,r=wc(e,!0)){let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((s)=>{let l=r[s];return typeof l==="string"?a.test(l):!1})}var wvt={excludeElement:!0,escapeShadowDOM:!0};function LF(e,r=wvt){let{limit:a,excludeElement:i,escapeShadowDOM:s}=r,l=new Set;function c(d){if(a!=null&&l.size>=a)return l;if(!d)return l;if(bF(d)&&d.scrollingElement!=null&&!l.has(d.scrollingElement))return l.add(d.scrollingElement),l;if(s&&zF(d))return c(d.host);if(!rM(d)){if(Ace(d))return c(d.parentElement);return l}if(l.has(d))return l;let m=wc(d,!0);if(i&&d===e);else if(bvt(d,m))l.add(d);if(_vt(d,m)){let{scrollingElement:g}=d.ownerDocument;if(g)l.add(g);return l}return c(d.parentNode)}if(!e)return l;return c(e)}function sL(e,r=window.frameElement){let a={x:0,y:0,scaleX:1,scaleY:1};if(!e)return a;let i=aL(e);while(i){if(i===r)return a;let s=_F(i),{x:l,y:c}=zvt(i,s);a.x=a.x+s.left,a.y=a.y+s.top,a.scaleX=a.scaleX*l,a.scaleY=a.scaleY*c,i=aL(i)}return a}function zvt(e,r=_F(e)){let a=Math.round(r.width),i=Math.round(r.height);if(rM(e))return{x:a/e.offsetWidth,y:i/e.offsetHeight};let s=wc(e,!0);return{x:(parseFloat(s.width)||a)/a,y:(parseFloat(s.height)||i)/i}}function Svt(e){if(!e||e==="none")return null;let r=e.split(" "),a=parseFloat(r[0]),i=parseFloat(r[1]);if(isNaN(a)&&isNaN(i))return null;return{x:isNaN(a)?i:a,y:isNaN(i)?a:i}}function rR(e){if(!e||e==="none")return null;let[r,a,i="0"]=e.split(" "),s={x:parseFloat(r),y:parseFloat(a),z:parseInt(i,10)};if(isNaN(s.x)&&isNaN(s.y))return null;return{x:isNaN(s.x)?0:s.x,y:isNaN(s.y)?0:s.y,z:isNaN(s.z)?0:s.z}}function yD(e){var r,a,i,s,l,c,d,m,g;let{scale:x,transform:v,translate:b}=e,_=Svt(x),z=rR(b),k=Lvt(v);if(!k&&!_&&!z)return null;let U={x:(r=_==null?void 0:_.x)!=null?r:1,y:(a=_==null?void 0:_.y)!=null?a:1},P={x:(i=z==null?void 0:z.x)!=null?i:0,y:(s=z==null?void 0:z.y)!=null?s:0},T={x:(l=k==null?void 0:k.x)!=null?l:0,y:(c=k==null?void 0:k.y)!=null?c:0,scaleX:(d=k==null?void 0:k.scaleX)!=null?d:1,scaleY:(m=k==null?void 0:k.scaleY)!=null?m:1};return{x:P.x+T.x,y:P.y+T.y,z:(g=z==null?void 0:z.z)!=null?g:0,scaleX:U.x*T.scaleX,scaleY:U.y*T.scaleY}}function Lvt(e){if(e.startsWith("matrix3d(")){let r=e.slice(9,-1).split(/, /);return{x:+r[12],y:+r[13],scaleX:+r[0],scaleY:+r[5]}}else if(e.startsWith("matrix(")){let r=e.slice(7,-1).split(/, /);return{x:+r[4],y:+r[5],scaleX:+r[0],scaleY:+r[3]}}return null}var Ql=((e)=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(Ql||{}),kvt={x:0.2,y:0.2},Cvt={x:10,y:10};function Vce(e,r,a,i=25,s=kvt,l=Cvt){let{x:c,y:d}=r,{rect:m,isTop:g,isBottom:x,isLeft:v,isRight:b}=qce(e),_=sL(e),z=wc(e,!0),k=yD(z),U=k!==null?(k==null?void 0:k.scaleX)<0:!1,P=k!==null?(k==null?void 0:k.scaleY)<0:!1,T=new Xs(m.left*_.scaleX+_.x,m.top*_.scaleY+_.y,m.width*_.scaleX,m.height*_.scaleY),G={x:0,y:0},X={x:0,y:0},J={height:T.height*s.y,width:T.width*s.x};if(J.height>0&&(!g||P&&!x)&&d<=T.top+J.height&&(a==null?void 0:a.y)!==1&&c>=T.left-l.x&&c<=T.right+l.x)G.y=P?1:-1,X.y=i*Math.abs((T.top+J.height-d)/J.height);else if(J.height>0&&(!x||P&&!g)&&d>=T.bottom-J.height&&(a==null?void 0:a.y)!==-1&&c>=T.left-l.x&&c<=T.right+l.x)G.y=P?-1:1,X.y=i*Math.abs((T.bottom-J.height-d)/J.height);if(J.width>0&&(!b||U&&!v)&&c>=T.right-J.width&&(a==null?void 0:a.x)!==-1&&d>=T.top-l.y&&d<=T.bottom+l.y)G.x=U?-1:1,X.x=i*Math.abs((T.right-J.width-c)/J.width);else if(J.width>0&&(!v||U&&!b)&&c<=T.left+J.width&&(a==null?void 0:a.x)!==1&&d>=T.top-l.y&&d<=T.bottom+l.y)G.x=U?1:-1,X.x=i*Math.abs((T.left+J.width-c)/J.width);return{direction:G,speed:X}}function kF(e,{block:r="nearest",inline:a="nearest"}={}){if(!rM(e))return;let i=LF(e),s=[];for(let l of i){if(!rM(l))continue;let{top:c,left:d}=Ivt(e,l),m=c,g=d;for(let x of s)m-=x.scrollTop,g-=x.scrollLeft;if(r!=="none"){let x=m<l.scrollTop,v=m+e.offsetHeight>l.scrollTop+l.clientHeight;if(x!==v)if(r==="center")l.scrollTop=m-l.clientHeight/2+e.offsetHeight/2;else if(x)l.scrollTop=m;else l.scrollTop=m+e.offsetHeight-l.clientHeight}if(a!=="none"){let x=g<l.scrollLeft,v=g+e.offsetWidth>l.scrollLeft+l.clientWidth;if(x!==v)if(a==="center")l.scrollLeft=g-l.clientWidth/2+e.offsetWidth/2;else if(x)l.scrollLeft=g;else l.scrollLeft=g+e.offsetWidth-l.clientWidth}s.push(l)}}function Rce(e){let r=0,a=0,i=e;while(i){r+=i.offsetTop,a+=i.offsetLeft;let s=i.offsetParent;if(!rM(s))break;r+=s.clientTop,a+=s.clientLeft,i=s}return{top:r,left:a}}function Ivt(e,r){let a=Rce(e),i=Rce(r);return{top:a.top-i.top-r.clientTop,left:a.left-i.left-r.clientLeft}}function Rvt(e,r,a){let{scaleX:i,scaleY:s,x:l,y:c}=r,d=e.left+l+(1-i)*parseFloat(a),m=e.top+c+(1-s)*parseFloat(a.slice(a.indexOf(" ")+1)),g=i?e.width*i:e.width,x=s?e.height*s:e.height;return{width:g,height:x,top:m,right:d+g,bottom:m+x,left:d}}function Pvt(e,r,a){let{scaleX:i,scaleY:s,x:l,y:c}=r,d=e.left-l-(1-i)*parseFloat(a),m=e.top-c-(1-s)*parseFloat(a.slice(a.indexOf(" ")+1)),g=i?e.width/i:e.width,x=s?e.height/s:e.height;return{width:g,height:x,top:m,right:d+g,bottom:m+x,left:d}}function CF({element:e,keyframes:r,options:a}){return e.animate(r,a).finished}function fH(e,r=wc(e).translate,a=!0){if(a){let i=tH(e,(s)=>("translate"in s));if(i){let{translate:s=""}=i[0];if(typeof s==="string"){let l=rR(s);if(l)return l}}}if(r){let i=rR(r);if(i)return i}return{x:0,y:0,z:0}}var Tvt=new iH((e)=>setTimeout(e,0)),mD=new Map,Avt=mD.clear.bind(mD);function Evt(e){let r=e.ownerDocument,a=mD.get(r);if(a)return a;a=r.getAnimations(),mD.set(r,a),Tvt.schedule(Avt);let i=a.filter((s)=>yF(s.effect)&&s.effect.target===e);return mD.set(e,i),a}function Dvt(e,r){let a=Evt(e).filter((i)=>{var s,l;if(yF(i.effect)){let{target:c}=i.effect;if((l=c&&((s=r.isValidTarget)==null?void 0:s.call(r,c)))!=null?l:!0)return i.effect.getKeyframes().some((m)=>{for(let g of r.properties)if(m[g])return!0})}}).map((i)=>{let{effect:s,currentTime:l}=i,c=s==null?void 0:s.getComputedTiming().duration;if(i.pending||i.playState==="finished")return;if(typeof c=="number"&&typeof l=="number"&&l<c)return i.currentTime=c,()=>{i.currentTime=l}});if(a.length>0)return()=>a.forEach((i)=>i==null?void 0:i())}var Sc=class extends Xs{constructor(e,r={}){var a,i,s,l;let{frameTransform:c=sL(e),ignoreTransforms:d,getBoundingClientRect:m=_F}=r,g=Dvt(e,{properties:["transform","translate","scale","width","height"],isValidTarget:(J)=>(J!==e||wF())&&J.contains(e)}),x=m(e),{top:v,left:b,width:_,height:z}=x,k,U=wc(e),P=yD(U),T={x:(a=P==null?void 0:P.scaleX)!=null?a:1,y:(i=P==null?void 0:P.scaleY)!=null?i:1},G=Ovt(e,U);if(g==null||g(),P){if(k=Pvt(x,P,U.transformOrigin),d||G)v=k.top,b=k.left,_=k.width,z=k.height}let X={width:(s=k==null?void 0:k.width)!=null?s:_,height:(l=k==null?void 0:k.height)!=null?l:z};if(G&&!d&&k){let J=Rvt(k,G,U.transformOrigin);v=J.top,b=J.left,_=J.width,z=J.height,T.x=G.scaleX,T.y=G.scaleY}if(c){if(!d)b*=c.scaleX,_*=c.scaleX,v*=c.scaleY,z*=c.scaleY;b+=c.x,v+=c.y}super(b,v,_,z);this.scale=T,this.intrinsicWidth=X.width,this.intrinsicHeight=X.height}};function Ovt(e,r){let a=e.getAnimations();if(!a.length)return null;let i,s,l,c=!1;for(let d of a){if(d.playState!=="running")continue;let m=yF(d.effect)?d.effect.getKeyframes():[],g=m[m.length-1];if(!g)continue;let{transform:x,translate:v,scale:b}=g;if(typeof x==="string"&&x)i=x,c=!0;if(typeof v==="string"&&v)s=v,c=!0;if(typeof b==="string"&&b)l=b,c=!0}if(!c)return null;return yD({transform:i!=null?i:r.transform,translate:s!=null?s:r.translate,scale:l!=null?l:r.scale})}function eR(e){return"style"in e&&typeof e.style==="object"&&e.style!==null&&"setProperty"in e.style&&"removeProperty"in e.style&&typeof e.style.setProperty==="function"&&typeof e.style.removeProperty==="function"}var Wce=class{constructor(e){this.element=e,this.initial=new Map}set(e,r=""){let{element:a}=this;if(!eR(a))return;for(let[i,s]of Object.entries(e)){let l=`${r}${i}`;if(!this.initial.has(l))this.initial.set(l,a.style.getPropertyValue(l));a.style.setProperty(l,typeof s==="string"?s:`${s}px`)}}remove(e,r=""){let{element:a}=this;if(!eR(a))return;for(let i of e){let s=`${r}${i}`;a.style.removeProperty(s)}}reset(){let{element:e}=this;if(!eR(e))return;for(let[r,a]of this.initial)e.style.setProperty(r,a);if(e.getAttribute("style")==="")e.removeAttribute("style")}};function b8(e){if(!e)return!1;return e instanceof us(e).Element||hD(e)&&e.nodeType===Node.ELEMENT_NODE}function lL(e){if(!e)return!1;let{KeyboardEvent:r}=us(e.target);return e instanceof r}function Kce(e){if(!e)return!1;let{PointerEvent:r}=us(e.target);return e instanceof r}function Gce(e){if(!b8(e))return!1;let{tagName:r}=e;return r==="INPUT"||r==="TEXTAREA"||Nvt(e)}function Nvt(e){return e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"}var J9={};function IF(e){let r=J9[e]==null?0:J9[e]+1;return J9[e]=r,`${e}-${r}`}var Fvt=({dragOperation:e,droppable:r})=>{let a=e.position.current;if(!a)return null;let{id:i}=r;if(!r.shape)return null;if(r.shape.containsPoint(a)){let s=_f.distance(r.shape.center,a);return{id:i,value:1/s,type:gZ.PointerIntersection,priority:hZ.High}}return null},jvt=({dragOperation:e,droppable:r})=>{let{shape:a}=e;if(!r.shape||!(a==null?void 0:a.current))return null;let i=a.current.intersectionArea(r.shape);if(i){let{position:s}=e,l=_f.distance(r.shape.center,s.current),d=i/(a.current.area+r.shape.area-i)/l;return{id:r.id,value:d,type:gZ.ShapeIntersection,priority:hZ.Normal}}return null},RF=(e)=>{var r;return(r=Fvt(e))!=null?r:jvt(e)},Xce=(e)=>{let{dragOperation:r,droppable:a}=e,{shape:i,position:s}=r;if(!a.shape)return null;let l=i?Xs.from(i.current.boundingRectangle).corners:void 0,d=Xs.from(a.shape.boundingRectangle).corners.reduce((m,g,x)=>{var v;return m+_f.distance(_f.from(g),(v=l==null?void 0:l[x])!=null?v:s.current)},0)/4;return{id:a.id,value:1/d,type:gZ.Collision,priority:hZ.Normal}};var{create:Bvt,defineProperty:yH,defineProperties:Uvt,getOwnPropertyDescriptor:Yvt,getOwnPropertyDescriptors:qvt,getOwnPropertySymbols:AF}=Object,nue=Object.prototype.hasOwnProperty,iue=Object.prototype.propertyIsEnumerable,fue=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),lR=(e)=>{throw TypeError(e)},cH=(e,r,a)=>(r in e)?yH(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,kD=(e,r)=>{for(var a in r||(r={}))if(nue.call(r,a))cH(e,a,r[a]);if(AF){for(var a of AF(r))if(iue.call(r,a))cH(e,a,r[a])}return e},_H=(e,r)=>Uvt(e,qvt(r)),Qce=(e,r)=>yH(e,"name",{value:r,configurable:!0}),sue=(e,r)=>{var a={};for(var i in e)if(nue.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&AF){for(var i of AF(e))if(r.indexOf(i)<0&&iue.call(e,i))a[i]=e[i]}return a},cR=(e)=>{var r;return[,,,Bvt((r=e==null?void 0:e[fue("metadata")])!=null?r:null)]},lue=["class","method","getter","setter","accessor","field","value","get","set"],bD=(e)=>e!==void 0&&typeof e!=="function"?lR("Function expected"):e,Hvt=(e,r,a,i,s)=>({kind:lue[e],name:r,metadata:i,addInitializer:(l)=>a._?lR("Already initialized"):s.push(bD(l||null))}),pL=(e,r)=>cH(r,fue("metadata"),e[3]),Ri=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},Cc=(e,r,a,i,s,l)=>{var c,d,m,g,x,v=r&7,b=!!(r&8),_=!!(r&16),z=v>3?e.length+1:v?b?1:2:0,k=lue[v+5],U=v>3&&(e[z-1]=[]),P=e[z]||(e[z]=[]),T=v&&(!_&&!b&&(s=s.prototype),v<5&&(v>3||!_)&&Yvt(v<4?s:{get[a](){return Wa(this,l)},set[a](X){return ds(this,l,X)}},a));v?_&&v<4&&Qce(l,(v>2?"set ":v>1?"get ":"")+a):Qce(s,a);for(var G=i.length-1;G>=0;G--){if(g=Hvt(v,a,m={},e[3],P),v){if(g.static=b,g.private=_,x=g.access={has:_?(X)=>Vvt(s,X):(X)=>(a in X)},v^3)x.get=_?(X)=>(v^1?Wa:ZL)(X,s,v^4?l:T.get):(X)=>X[a];if(v>2)x.set=_?(X,J)=>ds(X,s,J,v^4?l:T.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?_?l:T[k]:v>4?void 0:{get:T.get,set:T.set}:s,g),m._=1,v^4||d===void 0)bD(d)&&(v>4?U.unshift(d):v?_?l=d:T[k]=d:s=d);else if(typeof d!=="object"||d===null)lR("Object expected");else bD(c=d.get)&&(T.get=c),bD(c=d.set)&&(T.set=c),bD(c=d.init)&&U.unshift(c)}return v||pL(e,s),T&&yH(s,a,T),_?v^4?l:T:s},bH=(e,r,a)=>r.has(e)||lR("Cannot "+a),Vvt=(e,r)=>Object(r)!==r?lR('Cannot use the "in" operator on this value'):e.has(r),Wa=(e,r,a)=>(bH(e,r,"read from private field"),a?a.call(e):r.get(e)),Gn=(e,r,a)=>r.has(e)?lR("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),ds=(e,r,a,i)=>(bH(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),ZL=(e,r,a)=>(bH(e,r,"access private method"),a),Jce={role:"button",roleDescription:"draggable"},Wvt="dnd-kit-description",Kvt="dnd-kit-announcement",Gvt={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},Xvt={dragstart({operation:{source:e}}){if(!e)return;return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:r}}){if(!e||e.id===(r==null?void 0:r.id))return;if(r)return`Draggable item ${e.id} was moved over droppable target ${r.id}.`;return`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:r},canceled:a}){if(!e)return;if(a)return`Dragging was cancelled. Draggable item ${e.id} was dropped.`;if(r)return`Draggable item ${e.id} was dropped over droppable target ${r.id}`;return`Draggable item ${e.id} was dropped.`}};function Qvt(e){let r=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(r)}function Jvt(e,r){let a=document.createElement("div");return a.id=e,a.style.setProperty("display","none"),a.textContent=r,a}function $vt(e){let r=document.createElement("div");return r.id=e,r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),r.style.setProperty("position","fixed"),r.style.setProperty("width","1px"),r.style.setProperty("height","1px"),r.style.setProperty("margin","-1px"),r.style.setProperty("border","0"),r.style.setProperty("padding","0"),r.style.setProperty("overflow","hidden"),r.style.setProperty("clip","rect(0 0 0 0)"),r.style.setProperty("clip-path","inset(100%)"),r.style.setProperty("white-space","nowrap"),r}var eyt=["dragover","dragmove"],tyt=class extends Fi{constructor(e,r){super(e);let{id:a,idPrefix:{description:i=Wvt,announcement:s=Kvt}={},announcements:l=Xvt,screenReaderInstructions:c=Gvt,debounce:d=500}=r!=null?r:{},m=a?`${i}-${a}`:IF(i),g=a?`${s}-${a}`:IF(s),x,v,b,_,z=(J=_)=>{if(!b||!J)return;if((b==null?void 0:b.nodeValue)!==J)b.nodeValue=J},k=()=>vD.schedule(z),U=ryt(k,d),P=Object.entries(l).map(([J,ee])=>this.manager.monitor.addEventListener(J,(re,oe)=>{let ie=b;if(!ie)return;let ye=ee==null?void 0:ee(re,oe);if(ye&&ie.nodeValue!==ye)if(_=ye,eyt.includes(J))U();else k(),U.cancel()})),T=()=>{let J=[];if(!(x==null?void 0:x.isConnected))x=Jvt(m,c.draggable),J.push(x);if(!(v==null?void 0:v.isConnected))v=$vt(g),b=document.createTextNode(""),v.appendChild(b),J.push(v);if(J.length>0)document.body.append(...J)},G=new Set;function X(){for(let J of G)J()}this.registerEffect(()=>{var J;G.clear();for(let ee of this.manager.registry.draggables.value){let re=(J=ee.handle)!=null?J:ee.element;if(re){if(!x||!v)G.add(T);if((!Qvt(re)||wF())&&!re.hasAttribute("tabindex"))G.add(()=>re.setAttribute("tabindex","0"));if(!re.hasAttribute("role")&&re.tagName.toLowerCase()!=="button")G.add(()=>re.setAttribute("role",Jce.role));if(!re.hasAttribute("aria-roledescription"))G.add(()=>re.setAttribute("aria-roledescription",Jce.roleDescription));if(!re.hasAttribute("aria-describedby"))G.add(()=>re.setAttribute("aria-describedby",m));for(let ie of["aria-pressed","aria-grabbed"]){let ye=String(ee.isDragging);if(re.getAttribute(ie)!==ye)G.add(()=>re.setAttribute(ie,ye))}let oe=String(ee.disabled);if(re.getAttribute("aria-disabled")!==oe)G.add(()=>re.setAttribute("aria-disabled",oe))}}if(G.size>0)vD.schedule(X)}),this.destroy=()=>{super.destroy(),x==null||x.remove(),v==null||v.remove(),P.forEach((J)=>J())}}};function ryt(e,r){let a,i=()=>{clearTimeout(a),a=setTimeout(e,r)};return i.cancel=()=>clearTimeout(a),i}var EF=new Map,cue,uue,due,Zue,uH,SD,oM,wH,fR,pue,mue,hue,gue,k8=class extends(uH=$1,Zue=[ko],due=[dn],uue=[dn],cue=[dn],uH){constructor(r,a){super(r,a);Ri(oM,5,this),Gn(this,fR),Gn(this,SD,new Set),Gn(this,wH,Ri(oM,8,this,new Set)),Ri(oM,11,this),this.registerEffect(ZL(this,fR,pue))}register(r){return Wa(this,SD).add(r),()=>{Wa(this,SD).delete(r)}}addRoot(r){return ho(()=>{let a=new Set(this.additionalRoots);a.add(r),this.additionalRoots=a}),()=>{ho(()=>{let a=new Set(this.additionalRoots);a.delete(r),this.additionalRoots=a})}}get sourceRoot(){var r;let{source:a}=this.manager.dragOperation;return gD((r=a==null?void 0:a.element)!=null?r:null)}get targetRoot(){var r;let{target:a}=this.manager.dragOperation;return gD((r=a==null?void 0:a.element)!=null?r:null)}get roots(){let{status:r}=this.manager.dragOperation;if(r.initializing||r.initialized){let a=[this.sourceRoot,this.targetRoot].filter((i)=>i!=null);return new Set([...a,...this.additionalRoots])}return new Set}};oM=cR(uH);SD=new WeakMap;wH=new WeakMap;fR=new WeakSet;pue=function(){let{roots:e}=this,r=[];for(let a of e)for(let i of Wa(this,SD))r.push(ZL(this,fR,mue).call(this,a,i));return()=>{for(let a of r)a()}};mue=function(e,r){let a=EF.get(e);if(!a)a=new Map,EF.set(e,a);let i=a.get(r);if(!i){let l=bF(e)?ZL(this,fR,hue).call(this,e,a,r):ZL(this,fR,gue).call(this,e,a,r);if(!l)return()=>{};i=l,a.set(r,i)}i.refCount++;let s=!1;return()=>{if(s)return;if(s=!0,i.refCount--,i.refCount===0)i.cleanup()}};hue=function(e,r,a){var i;let s=e.createElement("style"),{nonce:l}=(i=this.options)!=null?i:{};if(l)s.setAttribute("nonce",l);s.textContent=a,e.head.prepend(s);let c=new MutationObserver((d)=>{for(let m of d)for(let g of Array.from(m.removedNodes))if(g===s){e.head.prepend(s);return}});return c.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{if(c.disconnect(),s.remove(),r.delete(a),r.size===0)EF.delete(e)}}};gue=function(e,r,a){"adoptedStyleSheets"in e&&Array.isArray(e.adoptedStyleSheets);let i=e.ownerDocument.defaultView,{CSSStyleSheet:s}=i!=null?i:{};if(!s)return null;let l=new s;return l.replaceSync(a),e.adoptedStyleSheets.push(l),{refCount:0,cleanup:()=>{var c;if(zF(e)&&((c=e.host)==null?void 0:c.isConnected)){let d=e.adoptedStyleSheets.indexOf(l);if(d!==-1)e.adoptedStyleSheets.splice(d,1)}if(r.delete(a),r.size===0)EF.delete(e)}}};Cc(oM,4,"additionalRoots",Zue,k8,wH);Cc(oM,2,"sourceRoot",due,k8);Cc(oM,2,"targetRoot",uue,k8);Cc(oM,2,"roots",cue,k8);pL(oM,k8);k8.configure=oa(k8);var FF=k8,oyt=class extends Fi{constructor(e,r){super(e,r);this.manager=e;let{cursor:a="grabbing"}=r!=null?r:{},i=e.registry.plugins.get(FF),s=i==null?void 0:i.register(`* { cursor: ${a} !important; }`);if(s){let l=this.destroy.bind(this);this.destroy=()=>{s(),l()}}}},PD="data-dnd-",dH=`${PD}dropping`,ff="--dnd-",MZ=`${PD}dragging`,DF=`${PD}placeholder`,ayt=[MZ,DF,"popover","aria-pressed","aria-grabbing"],nyt=["view-transition-name"],iyt=`
86
- :is(:root,:host) [${MZ}] {
87
- position: fixed !important;
88
- pointer-events: none !important;
89
- touch-action: none;
90
- z-index: calc(infinity);
91
- will-change: translate;
92
- top: var(${ff}top, 0px) !important;
93
- left: var(${ff}left, 0px) !important;
94
- right: unset !important;
95
- bottom: unset !important;
96
- width: var(${ff}width, auto);
97
- max-width: var(${ff}width, auto);
98
- height: var(${ff}height, auto);
99
- max-height: var(${ff}height, auto);
100
- transform: var(${ff}transform, none) !important;
101
- transition: var(${ff}transition) !important;
102
- }
103
-
104
- :is(:root,:host) [${DF}] {
105
- transition: none;
106
- }
107
-
108
- :is(:root,:host) [${DF}='hidden'] {
109
- visibility: hidden;
110
- }
111
-
112
- [${MZ}] * {
113
- pointer-events: none !important;
114
- }
115
-
116
- [${MZ}]:not([${dH}]) {
117
- translate: var(${ff}translate) !important;
118
- }
119
-
120
- [${MZ}][style*='${ff}scale'] {
121
- scale: var(${ff}scale) !important;
122
- transform-origin: var(${ff}transform-origin) !important;
123
- }
124
-
125
- @layer dnd-kit {
126
- :where([${MZ}][popover]) {
127
- overflow: visible;
128
- background: unset;
129
- border: unset;
130
- margin: unset;
131
- padding: unset;
132
- color: inherit;
133
-
134
- &:is(input, button) {
135
- border: revert;
136
- background: revert;
137
- }
138
- }
139
- }
140
- [${MZ}]::backdrop, [${PD}overlay]:not([${MZ}]) {
141
- display: none;
142
- visibility: hidden;
143
- }
144
- `.replace(/\n+/g," ").replace(/\s+/g," ").trim();function fyt(e,r="hidden"){return ho(()=>{let{element:a,manager:i}=e;if(!a||!i)return;let s=syt(a,i.registry.droppables),l=[],c=Dce(a),{remove:d}=c;return lyt(s,c,l),cyt(c,r),c.remove=()=>{l.forEach((m)=>m()),d.call(c)},c})}function syt(e,r){let a=new Map;for(let i of r){if(!i.element)continue;if(e===i.element||e.contains(i.element)){let s=`${PD}${IF("dom-id")}`;i.element.setAttribute(s,""),a.set(i,s)}}return a}function lyt(e,r,a){for(let[i,s]of e){if(!i.element)continue;let l=`[${s}]`,c=r.matches(l)?r:r.querySelector(l);if(i.element.removeAttribute(s),!c)continue;let d=i.element;i.proxy=c,c.removeAttribute(s),xD.set(d,c),a.push(()=>{xD.delete(d),i.proxy=void 0})}}function cyt(e,r="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(DF,r)}function Mue(e,r){if(e===r)return!0;return aL(e)===aL(r)}function $ce(e){let{target:r}=e;if("newState"in e&&e.newState==="closed"&&b8(r)&&r.hasAttribute("popover"))requestAnimationFrame(()=>fL(r))}function ZH(e){return e.tagName==="TR"}function uyt(e,r,a){let i=new MutationObserver((s)=>{let l=!1;for(let c of s){if(c.target!==e){l=!0;continue}if(c.type!=="attributes")continue;let d=c.attributeName;if(d.startsWith("aria-")||ayt.includes(d))continue;let m=e.getAttribute(d);if(d==="style"){if(eR(e)&&eR(r)){let g=e.style;for(let x of Array.from(r.style))if(g.getPropertyValue(x)==="")r.style.removeProperty(x);for(let x of Array.from(g)){if(nyt.includes(x)||x.startsWith(ff))continue;let v=g.getPropertyValue(x);r.style.setProperty(x,v)}}}else if(m!==null)r.setAttribute(d,m);else r.removeAttribute(d)}if(l&&a)r.replaceChildren(...e.cloneNode(!0).childNodes)});return i.observe(e,{attributes:!0,subtree:!0,childList:!0}),i}function dyt(e,r,a){let i=new MutationObserver((s)=>{for(let l of s){if(l.addedNodes.length===0)continue;for(let c of Array.from(l.addedNodes)){if(c.contains(e)&&e.nextElementSibling!==r){e.insertAdjacentElement("afterend",r),fL(a);return}if(c.contains(r)&&r.previousElementSibling!==e){r.insertAdjacentElement("beforebegin",e),fL(a);return}}}if(e.isConnected&&r.isConnected&&e.nextElementSibling!==r)e.insertAdjacentElement("afterend",r),fL(a)});return i.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),i}function Zyt(e){return new ResizeObserver(()=>{var r,a,i;let s=new Sc(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),l=(r=e.transformOrigin)!=null?r:{x:1,y:1},c=(e.width-s.width)*l.x+e.delta.x,d=(e.height-s.height)*l.y+e.delta.y,m=oH();if(e.styles.set({width:s.width-e.widthOffset,height:s.height-e.heightOffset,top:e.top+d+m.y,left:e.left+c+m.x},ff),(a=e.getElementMutationObserver())==null||a.takeRecords(),ZH(e.element)&&ZH(e.placeholder)){let k=Array.from(e.element.cells),U=Array.from(e.placeholder.cells);if(!e.getSavedCellWidths())e.setSavedCellWidths(k.map((P)=>P.style.width));for(let[P,T]of k.entries()){let G=U[P];T.style.width=`${G.getBoundingClientRect().width}px`}}let g=(i=e.getTranslate())!=null?i:{x:0,y:0},x=e.left+c+m.x+g.x,v=e.top+d+m.y+g.y,b=s.width-e.widthOffset,_=s.height-e.heightOffset,z=e.frameTransform;e.dragOperation.shape=new Xs(x*z.scaleX+z.x,v*z.scaleY+z.y,b*z.scaleX,_*z.scaleY)})}var pyt=250,myt="ease";function hyt(e){var r,a,i,s;let{animation:l}=e;if(typeof l==="function"){let T=l({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(T).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:c=pyt,easing:d=myt}=l!=null?l:{};fL(e.feedbackElement);let[,m]=(r=tH(e.feedbackElement,(T)=>("translate"in T)))!=null?r:[];m==null||m.pause();let g=(a=e.placeholder)!=null?a:e.element,x={frameTransform:Mue(e.feedbackElement,g)?null:void 0},v=new Sc(e.feedbackElement,x),b=(i=rR(wc(e.feedbackElement).translate))!=null?i:e.translate,_=new Sc(g,x),z=Xs.delta(v,_,e.alignment),k={x:b.x-z.x,y:b.y-z.y},U=Math.round(v.intrinsicHeight)!==Math.round(_.intrinsicHeight)?{minHeight:[`${v.intrinsicHeight}px`,`${_.intrinsicHeight}px`],maxHeight:[`${v.intrinsicHeight}px`,`${_.intrinsicHeight}px`]}:{},P=Math.round(v.intrinsicWidth)!==Math.round(_.intrinsicWidth)?{minWidth:[`${v.intrinsicWidth}px`,`${_.intrinsicWidth}px`],maxWidth:[`${v.intrinsicWidth}px`,`${_.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},ff),e.feedbackElement.setAttribute(dH,""),(s=e.getElementMutationObserver())==null||s.takeRecords(),CF({element:e.feedbackElement,keyframes:_H(kD(kD({},U),P),{translate:[`${b.x}px ${b.y}px 0`,`${k.x}px ${k.y}px 0`]}),options:{duration:MD(us(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?c:0,easing:d}}).then(()=>{e.feedbackElement.removeAttribute(dH),m==null||m.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var xue,pH,CD,zH,TF,vue,yue,sR=class extends(pH=Fi,xue=[ko],pH){constructor(r,a){super(r,a);Gn(this,TF),Gn(this,zH,Ri(CD,8,this)),Ri(CD,11,this),this.state={initial:{},current:{}};let i=r.registry.plugins.get(FF),s=i==null?void 0:i.register(iyt);if(s){let l=this.destroy.bind(this);this.destroy=()=>{s(),l()}}this.registerEffect(ZL(this,TF,vue).bind(this,i)),this.registerEffect(ZL(this,TF,yue))}};CD=cR(pH);zH=new WeakMap;TF=new WeakSet;vue=function(e){let{overlay:r}=this;if(!r||!e)return;let a=gD(r);if(!a)return;return e.addRoot(a)};yue=function(){var e,r,a,i,s,l,c;let{state:d,manager:m,options:g}=this,{dragOperation:x}=m,{position:v,source:b,status:_}=x;if(_.idle){d.current={},d.initial={};return}if(!b)return;let{element:z}=b,k=b.pluginConfig(sR),U=(r=(e=k==null?void 0:k.feedback)!=null?e:g==null?void 0:g.feedback)!=null?r:"default",P=typeof U==="function"?U(b,m):U;if(!z||P==="none"||!_.initialized||_.initializing)return;let{initial:T}=d,G=(a=this.overlay)!=null?a:z,X=sL(G),J=sL(z),ee=!Mue(z,G),re=new Sc(z,{frameTransform:ee?J:null,ignoreTransforms:!ee}),oe={x:J.scaleX/X.scaleX,y:J.scaleY/X.scaleY},{width:ie,height:ye,top:We,left:Ye}=re;if(ee)ie=ie/oe.x,ye=ye/oe.y;let Se=new Wce(G),He=wc(z),{transition:dt,translate:Ge,boxSizing:yt,paddingBlockStart:Ft,paddingBlockEnd:Bt,paddingInlineStart:de,paddingInlineEnd:_t,borderInlineStartWidth:Wt,borderInlineEndWidth:Fe,borderBlockStartWidth:fr,borderBlockEndWidth:sr}=He,Jt=dt.split(",").filter((bt)=>!/^\s*(transform|translate|scale)\b/.test(bt)).join(","),Fr=yD(He),Kt=He.transform,Xt=P==="clone",Ir=yt==="content-box",wr=Ir?parseInt(de)+parseInt(_t)+parseInt(Wt)+parseInt(Fe):0,Tr=Ir?parseInt(Ft)+parseInt(Bt)+parseInt(fr)+parseInt(sr):0,Zr=P!=="move"&&!this.overlay?fyt(b,Xt?"clone":"hidden"):null,co=ho(()=>lL(m.dragOperation.activatorEvent));if(!T.translate){if(this.overlay&&Fr)T.translate={x:Fr.x,y:Fr.y};else if(Ge!=="none"){let bt=rR(Ge);if(bt)T.translate=bt}}if(!T.transformOrigin){let bt=ho(()=>v.current),qt=Ye+((i=Fr==null?void 0:Fr.x)!=null?i:0),Nr=We+((s=Fr==null?void 0:Fr.y)!=null?s:0);T.transformOrigin={x:(bt.x-qt*X.scaleX-X.x)/(ie*X.scaleX),y:(bt.y-Nr*X.scaleY-X.y)/(ye*X.scaleY)}}let{transformOrigin:io}=T,xa=We*X.scaleY+X.y,cr=Ye*X.scaleX+X.x;if(!T.coordinates){if(T.coordinates={x:cr,y:xa},oe.x!==1||oe.y!==1){let{scaleX:bt,scaleY:qt}=J,{x:Nr,y:jr}=io;T.coordinates.x+=(ie*bt-ie)*Nr,T.coordinates.y+=(ye*qt-ye)*jr}}if(!T.dimensions)T.dimensions={width:ie,height:ye};if(!T.frameTransform)T.frameTransform=X;let uo={x:T.coordinates.x-cr,y:T.coordinates.y-xa},lo={width:(T.dimensions.width*T.frameTransform.scaleX-ie*X.scaleX)*io.x,height:(T.dimensions.height*T.frameTransform.scaleY-ye*X.scaleY)*io.y},No={x:uo.x/X.scaleX+lo.width,y:uo.y/X.scaleY+lo.height},pn={left:Ye+No.x,top:We+No.y};G.setAttribute(MZ,"true");let Ho=ho(()=>x.transform),Fn=(l=T.translate)!=null?l:{x:0,y:0},mn=Ho.x*X.scaleX+Fn.x,Hi=Ho.y*X.scaleY+Fn.y,Ke=oH();if(Se.set({width:ie-wr,height:ye-Tr,top:pn.top+Ke.y,left:pn.left+Ke.x,translate:`${mn}px ${Hi}px 0`,transform:this.overlay?"none":Kt,transition:Jt?`${Jt}, translate 0ms linear`:"translate 0ms linear",scale:ee?`${oe.x} ${oe.y}`:"","transform-origin":`${io.x*100}% ${io.y*100}%`},ff),Zr){if(z.insertAdjacentElement("afterend",Zr),g==null?void 0:g.rootElement)(typeof g.rootElement==="function"?g.rootElement(b):g.rootElement).appendChild(z)}if(SF(G)){if(!G.hasAttribute("popover"))G.setAttribute("popover","manual");fL(G),G.addEventListener("beforetoggle",$ce)}let Et,mr,Br,$r=Zyt({placeholder:Zr,element:z,feedbackElement:G,frameTransform:X,transformOrigin:io,width:ie,height:ye,top:We,left:Ye,widthOffset:wr,heightOffset:Tr,delta:No,styles:Se,dragOperation:x,getTranslate:()=>d.current.translate,getElementMutationObserver:()=>Et,getSavedCellWidths:()=>Br,setSavedCellWidths:(bt)=>{Br=bt}}),Vo=new Sc(G);ho(()=>x.shape=Vo);let qa=us(G),Ee=(bt)=>{this.manager.actions.stop({event:bt})},Oe=MD(qa);if(co)qa.addEventListener("resize",Ee);if(ho(()=>b.status)==="idle")requestAnimationFrame(()=>b.status="dragging");if(Zr)$r.observe(Zr),Et=uyt(z,Zr,Xt),mr=dyt(z,Zr,G);let je=(c=m.dragOperation.source)==null?void 0:c.id,Zt=()=>{var bt;if(!co||je==null)return;let qt=m.registry.draggables.get(je),Nr=(bt=qt==null?void 0:qt.handle)!=null?bt:qt==null?void 0:qt.element;if(rM(Nr))Nr.focus()},zt=()=>{if(Et==null||Et.disconnect(),mr==null||mr.disconnect(),$r.disconnect(),qa.removeEventListener("resize",Ee),SF(G))G.removeEventListener("beforetoggle",$ce),G.removeAttribute("popover");G.removeAttribute(MZ),Se.reset();let bt=()=>{var qt;if(Br&&ZH(z)){let ua=Array.from(z.cells);for(let[nr,Go]of ua.entries())Go.style.width=(qt=Br[nr])!=null?qt:""}b.status="idle";let Nr=d.current.translate!=null,jr=x.status.dragging;if(Zr&&(!jr&&Nr||Zr.parentElement!==G.parentElement)&&G.isConnected)Zr.replaceWith(G);Zr==null||Zr.remove()};if(G===this.overlay)setTimeout(bt,0);else bt()},jt=g==null?void 0:g.dropAnimation,ir=this,Nt=$z(()=>{var bt,qt,Nr;let{transform:jr,status:ua}=x;if(!jr.x&&!jr.y&&!d.current.translate)return;if(ua.dragging){let nr=(bt=T.translate)!=null?bt:{x:0,y:0},Go={x:jr.x/X.scaleX+nr.x,y:jr.y/X.scaleY+nr.y},va=d.current.translate,oi=ho(()=>x.modifiers),pf=ho(()=>{var mf;return(mf=x.shape)==null?void 0:mf.current}),Ea=g==null?void 0:g.keyboardTransition,es=co&&!Oe&&Ea!==null?`${(qt=Ea==null?void 0:Ea.duration)!=null?qt:250}ms ${(Nr=Ea==null?void 0:Ea.easing)!=null?Nr:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(Se.set({transition:Jt?`${Jt}, translate ${es}`:`translate ${es}`,translate:`${Go.x}px ${Go.y}px 0`},ff),Et==null||Et.takeRecords(),pf&&pf!==Vo&&va&&!oi.length){let mf=_f.delta(Go,va);x.shape=Xs.from(pf.boundingRectangle).translate(mf.x*X.scaleX,mf.y*X.scaleY)}else x.shape=new Sc(G);d.current.translate=Go}},function(){if(x.status.dropped){this.dispose(),b.status="dropping";let bt=(k==null?void 0:k.dropAnimation)!==void 0?k.dropAnimation:ir.dropAnimation!==void 0?ir.dropAnimation:jt,qt=d.current.translate,Nr=qt!=null;if(!qt&&z!==G)qt={x:0,y:0};if(!qt||bt===null){zt();return}m.renderer.rendering.then(()=>{hyt({source:b,element:z,feedbackElement:G,placeholder:Zr,translate:qt,moved:Nr,transition:dt,alignment:b.alignment,styles:Se,animation:bt!=null?bt:void 0,getElementMutationObserver:()=>Et,cleanup:zt,restoreFocus:Zt})})}});return()=>{zt(),Nt()}};Cc(CD,4,"overlay",xue,sR,zH);pL(CD,sR);sR.configure=oa(sR);var _s=sR,_D=!0,gyt=!1,_ue,bue,wue,zue,z8,SH,LH;zue=(wue=[ko],Ql.Forward),bue=(_ue=[ko],Ql.Reverse);var ID=class{constructor(){Gn(this,SH,Ri(z8,8,this,_D)),Ri(z8,11,this),Gn(this,LH,Ri(z8,12,this,_D)),Ri(z8,15,this)}isLocked(e){if(e===Ql.Idle)return!1;if(e==null)return this[Ql.Forward]===_D&&this[Ql.Reverse]===_D;return this[e]===_D}unlock(e){if(e===Ql.Idle)return;this[e]=gyt}};z8=cR(null);SH=new WeakMap;LH=new WeakMap;Cc(z8,4,zue,wue,ID,SH);Cc(z8,4,bue,_ue,ID,LH);pL(z8,ID);var Myt=[Ql.Forward,Ql.Reverse],eue=class{constructor(){this.x=new ID,this.y=new ID}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},xyt=class extends Fi{constructor(e){super(e);let r=pZ(new eue),a=null;this.signal=r,Ci(()=>{let{status:i}=e.dragOperation;if(!i.initialized){a=null,r.value=new eue;return}let{delta:s}=e.dragOperation.position;if(a){let l={x:tue(s.x,a.x),y:tue(s.y,a.y)},c=r.peek();$o(()=>{for(let d of b9)for(let m of Myt)if(l[d]===m)c[d].unlock(m);r.value=c})}a=s})}get current(){return this.signal.peek()}};function tue(e,r){return Math.sign(e-r)}var Sue,mH,RD,kH,w8,hH,uR=class extends(mH=$1,Sue=[ko],mH){constructor(e){super(e);Gn(this,kH,Ri(RD,8,this,!1)),Ri(RD,11,this),Gn(this,w8),Gn(this,hH,()=>{if(!Wa(this,w8))return;let{element:l,by:c}=Wa(this,w8);if(c.y)l.scrollTop+=c.y;if(c.x)l.scrollLeft+=c.x}),this.scroll=(l,c)=>{var d;if(this.disabled)return!1;let m=this.getScrollableElements();if(!m)return ds(this,w8,void 0),!1;let{position:g}=this.manager.dragOperation,x=g==null?void 0:g.current;if(x){let{by:v}=l!=null?l:{},b=v?{x:rue(v.x),y:rue(v.y)}:void 0,_=b?void 0:this.scrollIntentTracker.current;if(_==null?void 0:_.isLocked())return!1;for(let z of m){let k=Hce(z,v);if(k.x||k.y){let{speed:U,direction:P}=Vce(z,x,b,c==null?void 0:c.acceleration,c==null?void 0:c.threshold);if(_){for(let T of b9)if(_[T].isLocked(P[T]))U[T]=0,P[T]=0}if(P.x||P.y){let{x:T,y:G}=v!=null?v:P,X=T*U.x,J=G*U.y;if(X||J){let ee=(d=Wa(this,w8))==null?void 0:d.by;if(this.autoScrolling&&ee){if(ee.x&&!X||ee.y&&!J)continue}return ds(this,w8,{element:z,by:{x:X,y:J}}),vD.schedule(Wa(this,hH)),!0}}}}}return ds(this,w8,void 0),!1};let r=null,a=null,i=q1(()=>{let{position:l,source:c}=e.dragOperation;if(!l)return null;let d=aH(gD(c==null?void 0:c.element),l.current);if(d)r=d;return d!=null?d:r}),s=q1(()=>{let l=i.value,{documentElement:c}=nL(l);if(!l||l===c){let{target:d}=e.dragOperation,m=d==null?void 0:d.element;if(m){let g=LF(m,{excludeElement:!1});return a=g,g}}if(l){let d=LF(l,{excludeElement:!1});if(this.autoScrolling&&a&&d.size<(a==null?void 0:a.size))return a;return a=d,d}return a=null,null},of);this.getScrollableElements=()=>s.value,this.scrollIntentTracker=new xyt(e),this.destroy=e.monitor.addEventListener("dragmove",(l)=>{if(this.disabled||l.defaultPrevented||!lL(e.dragOperation.activatorEvent)||!l.by)return;if(this.scroll({by:l.by}))l.preventDefault()})}};RD=cR(mH);kH=new WeakMap;w8=new WeakMap;hH=new WeakMap;Cc(RD,4,"autoScrolling",Sue,uR,kH);pL(RD,uR);function rue(e){if(e>0)return Ql.Forward;if(e<0)return Ql.Reverse;return Ql.Idle}var vyt=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:r,resolvers:a}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let i of r)i();for(let i of a)i()}}schedule(e){if(this.tasks.add(e),!this.pending)this.pending=!0,this.scheduler(this.flush);return new Promise((r)=>this.resolvers.add(r))}},yyt=new vyt((e)=>{if(typeof requestAnimationFrame==="function")requestAnimationFrame(e);else e()}),_yt=10,gH=class extends Fi{constructor(r,a){super(r,a);let i=r.registry.plugins.get(uR);if(!i)throw Error("AutoScroller plugin depends on Scroller plugin");this.destroy=Ci(()=>{var s,l,c;if(this.disabled)return;let{position:d,status:m}=r.dragOperation;if(m.dragging){let g={acceleration:(s=this.options)==null?void 0:s.acceleration,threshold:typeof((l=this.options)==null?void 0:l.threshold)==="number"?{x:this.options.threshold,y:this.options.threshold}:(c=this.options)==null?void 0:c.threshold};if(i.scroll(void 0,g)){i.autoScrolling=!0;let v=setInterval(()=>yyt.schedule(()=>i.scroll(void 0,g)),_yt);return()=>{clearInterval(v)}}else i.autoScrolling=!1}})}};gH.configure=oa(gH);var Lue=gH,oue={capture:!0,passive:!0},wD,byt=class extends $1{constructor(e){super(e);Gn(this,wD),this.handleScroll=()=>{if(Wa(this,wD)==null)ds(this,wD,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),ds(this,wD,void 0)},50))};let{dragOperation:r}=this.manager;this.destroy=Ci(()=>{var a,i,s;if(r.status.dragging){let c=(s=(i=(a=r.source)==null?void 0:a.element)==null?void 0:i.ownerDocument)!=null?s:document;return c.addEventListener("scroll",this.handleScroll,oue),()=>{c.removeEventListener("scroll",this.handleScroll,oue)}}})}};wD=new WeakMap;var wyt="* { user-select: none !important; -webkit-user-select: none !important; }",zyt=class extends Fi{constructor(e){super(e);this.manager=e;let r=e.registry.plugins.get(FF),a=r==null?void 0:r.register(wyt);if(this.destroy=Ci(()=>{let{dragOperation:i}=this.manager;if(i.status.initialized)return sH(),document.addEventListener("selectionchange",sH,{capture:!0}),()=>{document.removeEventListener("selectionchange",sH,{capture:!0})}}),a){let i=this.destroy.bind(this);this.destroy=()=>{a(),i()}}}};function sH(){var e;(e=document.getSelection())==null||e.removeAllRanges()}var zD=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,r){var a;let i=(a=r.handle)!=null?a:r.element;return e.target!==i}}),aR,OF=class extends eL{constructor(r,a){super(r);this.manager=r,this.options=a,Gn(this,aR,[]),this.listeners=new nH,this.handleSourceKeyDown=(i,s,l)=>{if(this.disabled||i.defaultPrevented)return;if(!b8(i.target))return;if(s.disabled)return;let{keyboardCodes:c=zD.keyboardCodes,preventActivation:d=zD.preventActivation}=l!=null?l:{};if(!c.start.includes(i.code))return;if(!this.manager.dragOperation.status.idle)return;if(d==null?void 0:d(i,s))return;this.handleStart(i,s,l)}}bind(r,a=this.options){return Ci(()=>{var s;let l=(s=r.handle)!=null?s:r.element,c=(d)=>{if(lL(d))this.handleSourceKeyDown(d,r,a)};if(l)return l.addEventListener("keydown",c),()=>{l.removeEventListener("keydown",c)}})}handleStart(r,a,i){let{element:s}=a;if(!s)throw Error("Source draggable does not have an associated element");r.preventDefault(),r.stopImmediatePropagation(),kF(s);let{center:l}=new Sc(s);if(this.manager.actions.start({event:r,coordinates:{x:l.x,y:l.y},source:a}).signal.aborted)return this.cleanup();this.sideEffects();let d=nL(s),m=[this.listeners.bind(d,[{type:"keydown",listener:(g)=>this.handleKeyDown(g,a,i),options:{capture:!0}}])];Wa(this,aR).push(...m)}handleKeyDown(r,a,i){let{keyboardCodes:s=zD.keyboardCodes}=i!=null?i:{};if(oR(r,[...s.end,...s.cancel])){r.preventDefault();let l=oR(r,s.cancel);this.handleEnd(r,l);return}if(oR(r,s.up))this.handleMove("up",r);else if(oR(r,s.down))this.handleMove("down",r);if(oR(r,s.left))this.handleMove("left",r);else if(oR(r,s.right))this.handleMove("right",r)}handleEnd(r,a){this.manager.actions.stop({event:r,canceled:a}),this.cleanup()}handleMove(r,a){var i,s;let{shape:l}=this.manager.dragOperation,c=a.shiftKey?5:1,d={x:0,y:0},m=(s=(i=this.options)==null?void 0:i.offset)!=null?s:zD.offset;if(typeof m==="number")m={x:m,y:m};if(!l)return;switch(r){case"up":d={x:0,y:-m.y*c};break;case"down":d={x:0,y:m.y*c};break;case"left":d={x:-m.x*c,y:0};break;case"right":d={x:m.x*c,y:0};break}if(d.x||d.y)a.preventDefault(),this.manager.actions.move({event:a,by:d})}sideEffects(){let r=this.manager.registry.plugins.get(Lue);if((r==null?void 0:r.disabled)===!1)r.disable(),Wa(this,aR).push(()=>{r.enable()})}cleanup(){Wa(this,aR).forEach((r)=>r()),ds(this,aR,[])}destroy(){this.cleanup(),this.listeners.clear()}};aR=new WeakMap;OF.configure=oa(OF);OF.defaults=zD;var Xo=OF;function oR(e,r){return r.includes(e.code)}var cL,Syt=class extends V9{constructor(){super(...arguments);Gn(this,cL)}onEvent(e){switch(e.type){case"pointerdown":ds(this,cL,iL(e));break;case"pointermove":if(!Wa(this,cL))return;let{x:r,y:a}=iL(e),i={x:r-Wa(this,cL).x,y:a-Wa(this,cL).y},{tolerance:s}=this.options;if(s&&aF(i,s)){this.abort();return}if(aF(i,this.options.value))this.activate(e);break;case"pointerup":this.abort();break}}abort(){ds(this,cL,void 0)}};cL=new WeakMap;var nR,uL,Lyt=class extends V9{constructor(){super(...arguments);Gn(this,nR),Gn(this,uL)}onEvent(e){switch(e.type){case"pointerdown":ds(this,uL,iL(e)),ds(this,nR,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Wa(this,uL))return;let{x:r,y:a}=iL(e),i={x:r-Wa(this,uL).x,y:a-Wa(this,uL).y};if(aF(i,this.options.tolerance))this.abort();break;case"pointerup":this.abort();break}}abort(){if(Wa(this,nR))clearTimeout(Wa(this,nR)),ds(this,uL,void 0),ds(this,nR,void 0)}};nR=new WeakMap;uL=new WeakMap;var Dr=class{};Dr.Delay=Lyt;Dr.Distance=Syt;var MH=Object.freeze({activationConstraints(e,r){var a;let{pointerType:i,target:s}=e;if(i==="mouse"&&b8(s)&&(r.handle===s||((a=r.handle)==null?void 0:a.contains(s))))return;if(i==="touch")return[new Dr.Delay({value:250,tolerance:5})];if(Gce(s)&&!e.defaultPrevented)return[new Dr.Delay({value:200,tolerance:0})];return[new Dr.Delay({value:200,tolerance:10}),new Dr.Distance({value:5})]},preventActivation(e,r){var a;let{target:i}=e;if(i===r.element)return!1;if(i===r.handle)return!1;if(!b8(i))return!1;if((a=r.handle)==null?void 0:a.contains(i))return!1;let s=Oce(i);if(s===r.element)return!1;return Boolean(s)}}),iR,NF=class extends eL{constructor(r,a){super(r);this.manager=r,this.options=a,Gn(this,iR,new Set),this.listeners=new nH,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:i,coordinates:s}=this.latest;if(!i||!s)return;this.manager.actions.move({event:i,to:s})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(r,a,i=this.options){let{activationConstraints:s=MH.activationConstraints}=i!=null?i:{};return typeof s==="function"?s(r,a):s}bind(r,a=this.options){return Ci(()=>{var s;let l=new AbortController,{signal:c}=l,d=(g)=>{if(Kce(g))this.handlePointerDown(g,r,a)},m=[(s=r.handle)!=null?s:r.element];if(a==null?void 0:a.activatorElements)if(Array.isArray(a.activatorElements))m=a.activatorElements;else m=a.activatorElements(r);for(let g of m){if(!g)continue;Iyt(g.ownerDocument.defaultView),g.addEventListener("pointerdown",d,{signal:c})}return()=>l.abort()})}handlePointerDown(r,a,i){if(this.disabled||!r.isPrimary||r.button!==0||!b8(r.target)||a.disabled||kyt(r)||!this.manager.dragOperation.status.idle)return;let{preventActivation:s=MH.preventActivation}=i!=null?i:{};if(s==null?void 0:s(r,a))return;let{target:l}=r,c=rM(l)&&l.draggable&&l.getAttribute("draggable")==="true",d=sL(a.element),{x:m,y:g}=iL(r);this.initialCoordinates={x:m*d.scaleX+d.x,y:g*d.scaleY+d.y};let x=this.activationConstraints(r,a,i);r.sensor=this;let v=new mce(x,(k)=>this.handleStart(a,k));v.signal.onabort=()=>this.handleCancel(r),v.onEvent(r),this.controller=v;let b=gF(),_=this.listeners.bind(b,[{type:"pointermove",listener:(k)=>this.handlePointerMove(k,a)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:c?this.handleCancel:PF,options:{capture:!0}}]),z=()=>{_(),this.initialCoordinates=void 0};Wa(this,iR).add(z)}handlePointerMove(r,a){var i,s;if(((i=this.controller)==null?void 0:i.activated)===!1){(s=this.controller)==null||s.onEvent(r);return}if(this.manager.dragOperation.status.dragging){let l=iL(r),c=sL(a.element);l.x=l.x*c.scaleX+c.x,l.y=l.y*c.scaleY+c.y,r.preventDefault(),r.stopPropagation(),this.latest.event=r,this.latest.coordinates=l,vD.schedule(this.handleMove)}}handlePointerUp(r){let{status:a}=this.manager.dragOperation;if(!a.idle){r.preventDefault(),r.stopPropagation();let i=!a.initialized;this.manager.actions.stop({event:r,canceled:i})}this.cleanup()}handleKeyDown(r){if(r.key==="Escape")r.preventDefault(),this.handleCancel(r)}handleStart(r,a){let{manager:i,initialCoordinates:s}=this;if(!s||!i.dragOperation.status.idle)return;if(a.defaultPrevented)return;if(i.actions.start({coordinates:s,event:a,source:r}).signal.aborted)return this.cleanup();a.preventDefault();let d=nL(a.target).body;try{d.setPointerCapture(a.pointerId)}catch(x){this.handleCancel(a);return}let m=b8(a.target)?[a.target,d]:d,g=this.listeners.bind(m,[{type:"touchmove",listener:PF,options:{passive:!1}},{type:"click",listener:PF},{type:"contextmenu",listener:PF},{type:"keydown",listener:this.handleKeyDown}]);Wa(this,iR).add(g)}handleCancel(r){let{dragOperation:a}=this.manager;if(a.status.initialized)this.manager.actions.stop({event:r,canceled:!0});this.cleanup()}cleanup(){let{controller:r}=this;if(this.controller=void 0,r&&!r.signal.aborted)r.abort();this.latest={event:void 0,coordinates:void 0},Wa(this,iR).forEach((a)=>a()),Wa(this,iR).clear()}destroy(){this.cleanup(),this.listeners.clear()}};iR=new WeakMap;NF.configure=oa(NF);NF.defaults=MH;var _n=NF;function kyt(e){return"sensor"in e}function PF(e){e.preventDefault()}function Cyt(){}var aue=new WeakSet;function Iyt(e){if(!e||aue.has(e))return;e.addEventListener("touchmove",Cyt,{capture:!1,passive:!1}),aue.add(e)}var dL={modifiers:[],plugins:[tyt,Lue,oyt,_s,zyt],sensors:[_n,Xo]},CH=class extends zce{constructor(e={}){let r=cs(e.plugins,dL.plugins),a=cs(e.sensors,dL.sensors),i=cs(e.modifiers,dL.modifiers);super(_H(kD({},e),{plugins:[byt,uR,FF,...r],sensors:a,modifiers:i}))}},kue,Cue,xH,S8,IH,RH,mL=class extends(xH=yu,Cue=[ko],kue=[ko],xH){constructor(e,r){var a=e,{element:i,effects:s=()=>[],handle:l}=a,c=sue(a,["element","effects","handle"]);super(kD({effects:()=>[...s(),()=>{var d,m;let{manager:g}=this;if(!g)return;let v=((m=(d=this.sensors)==null?void 0:d.map(X1))!=null?m:[...g.sensors]).map((b)=>{let _=b instanceof eL?b:g.registry.register(b.plugin),z=b instanceof eL?void 0:b.options;return _.bind(this,z)});return function(){v.forEach((_)=>_())}}]},c),r);Gn(this,IH,Ri(S8,8,this)),Ri(S8,11,this),Gn(this,RH,Ri(S8,12,this)),Ri(S8,15,this),this.element=i,this.handle=l}};S8=cR(xH);IH=new WeakMap;RH=new WeakMap;Cc(S8,4,"handle",Cue,mL,IH);Cc(S8,4,"element",kue,mL,RH);pL(S8,mL);var Iue,Rue,vH,L8,PH,lH,Pue,Tue,LD,TH,dR=class extends(vH=_u,Rue=[ko],Iue=[ko],vH){constructor(e,r){var a=e,{element:i,effects:s=()=>[]}=a,l=sue(a,["element","effects"]);let{collisionDetector:c=RF}=l,d=(g)=>{let{manager:x,element:v}=this;if(!v||g===null){this.shape=void 0;return}if(!x)return;let b=new Sc(v),_=ho(()=>this.shape);if(b&&(_==null?void 0:_.equals(b)))return _;return this.shape=b,b},m=pZ(!1);super(_H(kD({},l),{collisionDetector:c,effects:()=>[...s(),()=>{let{element:g,manager:x}=this;if(!x)return;let{dragOperation:v}=x,{source:b}=v;m.value=Boolean(b&&v.status.initialized&&g&&!this.disabled&&this.accepts(b))},()=>{let{element:g}=this;if(m.value&&g){let x=new Yce(g,d);return()=>{x.disconnect(),this.shape=void 0}}},()=>{var g;if((g=this.manager)==null?void 0:g.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),r);Gn(this,LD),Gn(this,PH,Ri(L8,8,this)),Ri(L8,11,this),Gn(this,TH,Ri(L8,12,this)),Ri(L8,15,this),this.element=i,this.refreshShape=()=>d()}set element(e){ds(this,LD,e,Tue)}get element(){var e;return(e=this.proxy)!=null?e:Wa(this,LD,Pue)}};L8=cR(vH);PH=new WeakMap;LD=new WeakSet;TH=new WeakMap;lH=Cc(L8,20,"#element",Rue,LD,PH),Pue=lH.get,Tue=lH.set;Cc(L8,4,"proxy",Iue,dR,TH);pL(L8,dR);S();function Ryt(e){return e!=null&&typeof e==="object"&&"current"in e}function wu(e){var r;if(e==null)return;if(Ryt(e))return(r=e.current)!=null?r:void 0;return e}var Pyt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aM=Pyt?$e:h;function Aue(){let e=u(0)[1];return D(()=>{e((r)=>r+1)},[e])}function Tyt(e,r=!1){let a=y(e.peek()),i=y(!1),s=Aue();return aM(()=>Ci(()=>{let l=a.current,c=e.value;if(l!==c){if(a.current=c,!i.current)return;if(r)rn(s);else s()}}),[e,r,s]),{get value(){return i.current=!0,e.peek()}}}function jF(e,r=[],a=!1){let i=y(e);return i.current=e,Tyt(N(()=>q1(()=>i.current()),r),a)}function ZR(e,r){let a=y(new Map),i=Aue();return aM(()=>{if(!e){a.current.clear();return}return Ci(()=>{var s;let l=!1,c=!1;for(let d of a.current){let[m]=d,g=ho(()=>d[1]),x=e[m];if(g!==x)l=!0,a.current.set(m,x),c=(s=r==null?void 0:r(m,g,x))!=null?s:!1}if(l)if(c)queueMicrotask(()=>rn(i));else i()})},[e]),N(()=>e?new Proxy(e,{get(s,l){let c=s[l];return a.current.set(l,c),c}}):e,[e])}function Eue(e,r){e()}function hL(e){let r=y(e);return aM(()=>{r.current=e},[e]),r}function Uo(e,r,a=h,i=Object.is){let s=y(e);a(()=>{let l=s.current;if(!i(e,l))s.current=e,r(e,l)},[r,e])}function C8(e,r){let a=y(wu(e));aM(()=>{let i=wu(e);if(i!==a.current)a.current=i,r(i)})}var{defineProperty:Ayt,defineProperties:Eyt,getOwnPropertyDescriptors:Dyt,getOwnPropertySymbols:UF}=Object,Oue=Object.prototype.hasOwnProperty,Nue=Object.prototype.propertyIsEnumerable,Due=(e,r,a)=>(r in e)?Ayt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,Fue=(e,r)=>{for(var a in r||(r={}))if(Oue.call(r,a))Due(e,a,r[a]);if(UF){for(var a of UF(r))if(Nue.call(r,a))Due(e,a,r[a])}return e},jue=(e,r)=>Eyt(e,Dyt(r)),Oyt=(e,r)=>{var a={};for(var i in e)if(Oue.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&UF){for(var i of UF(e))if(r.indexOf(i)<0&&Nue.call(e,i))a[i]=e[i]}return a},Nyt=new CH,DH=it(Nyt),Fyt=Bn(F(({children:e},r)=>{let[a,i]=u(0),s=y(null),l=y(null),c=N(()=>({renderer:{get rendering(){var d;return(d=s.current)!=null?d:Promise.resolve()}},trackRendering(d){if(!s.current)s.current=new Promise((m)=>{l.current=m});FL(()=>{d(),i((m)=>m+1)})}}),[]);return aM(()=>{var d;(d=l.current)==null||d.call(l),s.current=null},[e,a]),gn(r,()=>c),null})),AH=[void 0,of];function $n(e){var r=e,{children:a,onCollision:i,onBeforeDragStart:s,onDragStart:l,onDragMove:c,onDragOver:d,onDragEnd:m}=r,g=Oyt(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);let x=y(null),{plugins:v,modifiers:b,sensors:_}=g,z=cs(v,dL.plugins),k=cs(_,dL.sensors),U=cs(b,dL.modifiers),P=hL(s),T=hL(l),G=hL(d),X=hL(c),J=hL(m),ee=hL(i),re=jyt(()=>{var oe;return(oe=g.manager)!=null?oe:new CH(g)});return h(()=>{if(!x.current)throw Error("Renderer not found");let{renderer:oe,trackRendering:ie}=x.current,{monitor:ye}=re;re.renderer=oe;let We=[ye.addEventListener("beforedragstart",(Ye)=>{let Se=P.current;if(Se)ie(()=>Se(Ye,re))}),ye.addEventListener("dragstart",(Ye)=>{var Se;return(Se=T.current)==null?void 0:Se.call(T,Ye,re)}),ye.addEventListener("dragover",(Ye)=>{let Se=G.current;if(Se)ie(()=>Se(Ye,re))}),ye.addEventListener("dragmove",(Ye)=>{let Se=X.current;if(Se)ie(()=>Se(Ye,re))}),ye.addEventListener("dragend",(Ye)=>{let Se=J.current;if(Se)ie(()=>Se(Ye,re))}),ye.addEventListener("collision",(Ye)=>{var Se;return(Se=ee.current)==null?void 0:Se.call(ee,Ye,re)})];return()=>We.forEach((Ye)=>Ye())},[re]),Uo(z,()=>re&&(re.plugins=z),...AH),Uo(k,()=>re&&(re.sensors=k),...AH),Uo(U,()=>re&&(re.modifiers=U),...AH),o(DH.Provider,{value:re,children:[t(Fyt,{ref:x,children:a}),a]})}function jyt(e){let r=y(null);if(!r.current)r.current=e();return FO(()=>()=>{var a;return(a=r.current)==null?void 0:a.destroy()},[]),r.current}function OH(){return ft(DH)}function YF(e){var r;let a=(r=OH())!=null?r:void 0,[i]=u(()=>e(a));if(i.manager!==a)i.manager=a;return aM(i.register,[a,i]),i}function ys(e){let{disabled:r,data:a,element:i,handle:s,id:l,modifiers:c,sensors:d,plugins:m}=e,g=YF((v)=>new mL(jue(Fue({},e),{register:!1,handle:wu(s),element:wu(i)}),v)),x=ZR(g,Byt);return Uo(l,()=>g.id=l),C8(s,(v)=>g.handle=v),C8(i,(v)=>g.element=v),Uo(a,()=>a&&(g.data=a)),Uo(r,()=>g.disabled=r===!0),Uo(d,()=>g.sensors=d,void 0,of),Uo(c,()=>g.modifiers=c,void 0,of),Uo(m,()=>g.plugins=m,void 0,of),Uo(e.alignment,()=>g.alignment=e.alignment),{draggable:x,get isDragging(){return x.isDragging},get isDropping(){return x.isDropping},get isDragSource(){return x.isDragSource},handleRef:D((v)=>{g.handle=v!=null?v:void 0},[g]),ref:D((v)=>{var b,_;if(!v&&((b=g.element)==null?void 0:b.isConnected)&&!((_=g.manager)==null?void 0:_.dragOperation.status.idle))return;g.element=v!=null?v:void 0},[g])}}function Byt(e,r,a){if(e==="isDragSource"&&!a&&r)return!0;return!1}function Xc({children:e,className:r,dropAnimation:a,style:i,tag:s,disabled:l}){var c;let d=y(null),m=OH(),g=(c=jF(()=>m==null?void 0:m.dragOperation.source,[m]).value)!=null?c:null,x=typeof l==="function"?l(g):l;h(()=>{if(!d.current||!m||x)return;let _=m.plugins.find((z)=>z instanceof _s);if(!_)return;return _.overlay=d.current,()=>{_.overlay=void 0}},[m,x]),h(()=>{if(!m)return;let _=m.plugins.find((z)=>z instanceof _s);if(!_)return;return _.dropAnimation=a,()=>{_.dropAnimation=void 0}},[m,a]);let v=N(()=>{if(!m)return null;let _=new Proxy(m.registry,{get(z,k){if(k==="register"||k==="unregister")return Uyt;return z[k]}});return new Proxy(m,{get(z,k){if(k==="registry")return _;return z[k]}})},[m]);return t(DH.Provider,{value:v,children:j(s||"div",{ref:d,className:r,style:i,"data-dnd-overlay":!0},b())});function b(){if(!g||x)return null;if(typeof e==="function")return t(Yyt,{source:g,children:e});return e}}function Uyt(){return()=>{}}function Yyt({children:e,source:r}){return e(ZR(r))}var{create:qyt,defineProperty:Bue,getOwnPropertyDescriptor:Hyt}=Object,Uue=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),qF=(e)=>{throw TypeError(e)},Vyt=(e,r,a)=>(r in e)?Bue(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,Wyt=(e)=>{var r;return[,,,qyt((r=e==null?void 0:e[Uue("metadata")])!=null?r:null)]},Yue=["class","method","getter","setter","accessor","field","value","get","set"],que=(e)=>e!==void 0&&typeof e!=="function"?qF("Function expected"):e,Kyt=(e,r,a,i,s)=>({kind:Yue[e],name:r,metadata:i,addInitializer:(l)=>a._?qF("Already initialized"):s.push(que(l||null))}),Gyt=(e,r)=>Vyt(r,Uue("metadata"),e[3]),Xyt=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)l[s].call(a);return i},Hue=(e,r,a,i,s,l)=>{var c,d,m,g,x=r&7,v=!1,b=!1,_=2,z=Yue[x+5],k=e[_]||(e[_]=[]),U=(s=s.prototype,Hyt(s,a));for(var P=i.length-1;P>=0;P--)m=Kyt(x,a,d={},e[3],k),m.static=v,m.private=b,g=m.access={has:(T)=>(a in T)},g.get=(T)=>T[a],c=(0,i[P])(U[z],m),d._=1,que(c)&&(U[z]=c);return U&&Bue(s,a,U),s},Vue=(e,r,a)=>r.has(e)||qF("Cannot "+a),Qyt=(e,r,a)=>(Vue(e,r,"read from private field"),r.get(e)),Jyt=(e,r,a)=>r.has(e)?qF("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),$yt=(e,r,a,i)=>(Vue(e,r,"write to private field"),r.set(e,a),a),gL=class e{constructor(r,a){this.x=r,this.y=a}static delta(r,a){return new e(r.x-a.x,r.y-a.y)}static distance(r,a){return Math.hypot(r.x-a.x,r.y-a.y)}static equals(r,a){return r.x===a.x&&r.y===a.y}static from({x:r,y:a}){return new e(r,a)}},Wue,Kue,EH,BF,TD,NH=class extends(EH=mZ,Kue=[dn],Wue=[dn],EH){constructor(e){let r=gL.from(e);super(r,(a,i)=>gL.equals(a,i));Xyt(TD,5,this),Jyt(this,BF,0),this.velocity={x:0,y:0}}get delta(){return gL.delta(this.current,this.initial)}get direction(){let{current:e,previous:r}=this;if(!r)return null;let a={x:e.x-r.x,y:e.y-r.y};if(!a.x&&!a.y)return null;if(Math.abs(a.x)>Math.abs(a.y))return a.x>0?"right":"left";return a.y>0?"down":"up"}get current(){return super.current}set current(e){let{current:r}=this,a=gL.from(e),i={x:a.x-r.x,y:a.y-r.y},s=Date.now(),l=s-Qyt(this,BF),c=(d)=>Math.round(d/l*100);$o(()=>{$yt(this,BF,s),this.velocity={x:c(i.x),y:c(i.y)},super.current=a})}reset(e=this.defaultValue){super.reset(gL.from(e)),this.velocity={x:0,y:0}}};TD=Wyt(EH);BF=new WeakMap;Hue(TD,2,"delta",Kue,NH);Hue(TD,2,"direction",Wue,NH);Gyt(TD,NH);var Gue=((e)=>(e.Horizontal="x",e.Vertical="y",e))(Gue||{});Object.values(Gue);var e_t=({dragOperation:e,droppable:r})=>{let a=e.position.current;if(!a)return null;let{id:i}=r;if(!r.shape)return null;if(r.shape.containsPoint(a)){let s=gL.distance(r.shape.center,a);return{id:i,value:1/s,type:gZ.PointerIntersection,priority:hZ.High}}return null},t_t=({dragOperation:e,droppable:r})=>{let{shape:a}=e;if(!r.shape||!(a==null?void 0:a.current))return null;let i=a.current.intersectionArea(r.shape);if(i){let{position:s}=e,l=gL.distance(r.shape.center,s.current),d=i/(a.current.area+r.shape.area-i)/l;return{id:r.id,value:d,type:gZ.ShapeIntersection,priority:hZ.Normal}}return null},r_t=(e)=>{var r;return(r=e_t(e))!=null?r:t_t(e)};function Or(e){let{collisionDetector:r,data:a,disabled:i,element:s,id:l,accept:c,type:d}=e,m=YF((x)=>new dR(jue(Fue({},e),{register:!1,element:wu(s)}),x)),g=ZR(m);return Uo(l,()=>m.id=l),C8(s,(x)=>m.element=x),Uo(c,()=>m.accept=c,void 0,of),Uo(r,()=>m.collisionDetector=r!=null?r:r_t),Uo(a,()=>a&&(m.data=a)),Uo(i,()=>m.disabled=i===!0),Uo(d,()=>m.type=d),{droppable:g,get isDropTarget(){return g.isDropTarget},ref:D((x)=>{var v,b;if(!x&&((v=m.element)==null?void 0:v.isConnected)&&!((b=m.manager)==null?void 0:b.dragOperation.status.idle))return;m.element=x!=null?x:void 0},[m])}}function Hd(){let e=OH(),r=jF(()=>e==null?void 0:e.dragOperation.source,[e]),a=jF(()=>e==null?void 0:e.dragOperation.target,[e]);return{get source(){return r.value},get target(){return a.value}}}S();S();S();S();var FH=new Map,HF=new WeakMap,Xue=0,o_t;function a_t(e){if(!e)return"0";if(HF.has(e))return HF.get(e);return Xue+=1,HF.set(e,Xue.toString()),HF.get(e)}function n_t(e){return Object.keys(e).sort().filter((r)=>e[r]!==void 0).map((r)=>`${r}_${r==="root"?a_t(e.root):e[r]}`).toString()}function i_t(e){let r=n_t(e),a=FH.get(r);if(!a){let i=new Map,s,l=new IntersectionObserver((c)=>{c.forEach((d)=>{var m;let g=d.isIntersecting&&s.some((x)=>d.intersectionRatio>=x);if(e.trackVisibility&&typeof d.isVisible>"u")d.isVisible=g;[...(m=i.get(d.target))!=null?m:[]].forEach((x)=>{x(g,d)})})},e);s=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:r,observer:l,elements:i},FH.set(r,a)}return a}function f_t(e,r,a={},i=o_t){if(typeof window.IntersectionObserver>"u"&&i!==void 0){let g=e.getBoundingClientRect();return r(i,{isIntersecting:i,target:e,intersectionRatio:typeof a.threshold==="number"?a.threshold:0,time:0,boundingClientRect:g,intersectionRect:g,rootBounds:g}),()=>{}}let{id:s,observer:l,elements:c}=i_t(a),d=c.get(e)||[];if(!c.has(e))c.set(e,d);d.push(r),l.observe(e);let m=!1;return function(){if(m)return;if(m=!0,d.splice(d.indexOf(r),1),d.length===0)c.delete(e),l.unobserve(e);if(c.size===0)l.disconnect(),FH.delete(s)}}var jH=Reflect.get(V,"useInsertionEffect"),s_t=jH!=null?jH:h;function l_t(e){return(e==null?void 0:e.startsWith("19."))||!1}var Que=l_t(Ds);function c_t(e,{threshold:r,root:a,rootMargin:i,scrollMargin:s,trackVisibility:l,delay:c,fallbackInView:d,skip:m,triggerOnce:g}){let x=y(e),v=y({node:null,stop:void 0,owner:null});if(!jH)x.current=e;return s_t(()=>{x.current=e},[e]),D(function b(_){let z=v.current;if(!_&&z.owner!==b)return;if(_===z.node)return z.owner=b,Que?z.stop:void 0;let k=z.stop;if(z.stop=void 0,k==null||k(),!_||m){z.node=null,z.owner=_?b:null;return}z.node=_,z.owner=b;let U,P;function T(){if(U==null||U(),z.stop===T)z.node=null,z.stop=void 0}if(z.stop=T,U=f_t(_,(G,X)=>{if(x.current(G,X,P),P=G,g&&G)T()},{threshold:r,root:a,rootMargin:i,scrollMargin:s,trackVisibility:l,delay:c},d),z.stop!==T)U();return Que?z.stop:void 0},[Array.isArray(r)?r.toString():r,a,i,s,l,c,d,m,g])}var u_t=typeof window>"u"?h:$e;function Pt({threshold:e,delay:r,trackVisibility:a,rootMargin:i,scrollMargin:s,root:l,triggerOnce:c,skip:d,initialInView:m,fallbackInView:g,onChange:x}={}){let v=y(m),[b,_]=u({inView:!!m,entry:void 0}),z=c_t((T,G)=>{let X=v.current;if(v.current=T,X===void 0&&!T)return;_({inView:T,entry:G}),x==null||x(T,G)},{threshold:e,root:l,rootMargin:i,scrollMargin:s,trackVisibility:a,delay:r,fallbackInView:g,skip:d,triggerOnce:c}),k=y({node:null,reset:!1}),U=D(function(G){if(G)k.current.node=G,k.current.reset=!1;else if(k.current.node)k.current.node=null,k.current.reset=!0;let X=z(G);if(!X)return;return()=>{if(X(),k.current.node===G)k.current.node=null,k.current.reset=!0}},[z]);u_t(()=>{if(!k.current.reset)return;if(k.current.reset=!1,c||d)return;_({inView:!!m,entry:void 0}),v.current=m});let P=[U,b.inView,b.entry];return P.ref=P[0],P.inView=P[1],P.entry=P[2],P}S();function d_t(e){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}var Z_t=(e)=>{switch(e){case"success":return h_t;case"info":return M_t;case"warning":return g_t;case"error":return x_t;default:return null}},p_t=Array(12).fill(0),m_t=({visible:e,className:r})=>j("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":e},j("div",{className:"sonner-spinner"},p_t.map((a,i)=>j("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),h_t=j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},j("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),g_t=j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},j("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),M_t=j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},j("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),x_t=j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},j("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),v_t=j("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},j("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),y_t=()=>{let[e,r]=u(document.hidden);return h(()=>{let a=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",a),()=>document.removeEventListener("visibilitychange",a)},[]),e},__t=1,b_t=100,Jue=(e)=>{var r;return typeof(e==null?void 0:e.id)==="number"||(e==null?void 0:(r=e.id)==null?void 0:r.length)>0?e.id:__t++};class tde{constructor(){this.subscribe=(e)=>(this.subscribers.push(e),this.getActiveToasts().forEach((r)=>e(r)),()=>{let r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=(e)=>{this.subscribers.forEach((r)=>r(e))},this.addToast=(e)=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-b_t;if(e<=0)return;this.toasts=this.toasts.filter((r)=>{if(e>0&&this.dismissedToasts.has(r.id))return this.dismissedToasts.delete(r.id),e--,!1;return!0})},this.create=(e)=>{let{message:r,...a}=e,i=Jue(e),s=this.pendingDismissals.get(i);if(s!==void 0)cancelAnimationFrame(s),this.pendingDismissals.delete(i),this.dismissedToasts.delete(i);let l=this.dismissedToasts.has(i),c=e.dismissible===void 0?!0:e.dismissible;if(l)this.dismissedToasts.delete(i),this.toasts=this.toasts.filter((m)=>m.id!==i);if(l?void 0:this.toasts.find((m)=>m.id===i))this.toasts=this.toasts.map((m)=>{if(m.id===i)return this.publish({...m,...e,id:i,title:r}),{...m,...e,id:i,dismissible:c,title:r};return m});else this.addToast({title:r,...a,dismissible:c,id:i});return i},this.dismiss=(e)=>{if(e===void 0||e===null)return this.getActiveToasts().forEach((a)=>{this.dismissedToasts.add(a.id),this.subscribers.forEach((i)=>i({id:a.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let r=this.pendingDismissals.get(e);if(r!==void 0)cancelAnimationFrame(r);return this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach((a)=>a({id:e,dismiss:!0}))})),e},this.message=(e,r)=>this.create({...r,message:e,type:void 0}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let a=void 0;if(r.loading!==void 0)a=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!=="function"?r.description:void 0});let i=Promise.resolve(e instanceof Function?e():e),s=a!==void 0,l,c=i.then(async(m)=>{if(l=["resolve",m],ts(m))s=!1,this.create({id:a,type:"default",message:m});else if(z_t(m)&&!m.ok){s=!1;let x=typeof r.error==="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,v=typeof r.description==="function"?await r.description(`HTTP error! status: ${m.status}`):r.description,_=typeof x==="object"&&!ts(x)?x:{message:x};this.create({id:a,type:"error",description:v,..._})}else if(m instanceof Error){s=!1;let x=typeof r.error==="function"?await r.error(m):r.error,v=typeof r.description==="function"?await r.description(m):r.description,_=typeof x==="object"&&!ts(x)?x:{message:x};this.create({id:a,type:"error",description:v,..._})}else if(r.success!==void 0){s=!1;let x=typeof r.success==="function"?await r.success(m):r.success,v=typeof r.description==="function"?await r.description(m):r.description,_=typeof x==="object"&&!ts(x)?x:{message:x};this.create({id:a,type:"success",description:v,..._})}}).catch(async(m)=>{if(l=["reject",m],r.error!==void 0){s=!1;let g=typeof r.error==="function"?await r.error(m):r.error,x=typeof r.description==="function"?await r.description(m):r.description,b=typeof g==="object"&&!ts(g)?g:{message:g};this.create({id:a,type:"error",description:x,...b})}}).finally(()=>{if(s)this.dismiss(a),a=void 0;r.finally==null||r.finally.call(r)}),d=()=>new Promise((m,g)=>c.then(()=>l[0]==="reject"?g(l[1]):m(l[1])).catch(g));if(typeof a!=="string"&&typeof a!=="number")return{unwrap:d};else return Object.assign(a,{unwrap:d})},this.custom=(e,r)=>{let a=Jue(r);return this.create({...r,jsx:e(a),id:a,type:void 0}),a},this.getActiveToasts=()=>this.toasts.filter((e)=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}var Js=new tde,w_t=(e,r)=>Js.message(e,r),z_t=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",S_t=w_t,L_t=()=>Js.toasts,k_t=()=>Js.getActiveToasts(),M=Object.assign(S_t,{success:Js.success,info:Js.info,warning:Js.warning,error:Js.error,custom:Js.custom,message:Js.message,promise:Js.promise,dismiss:Js.dismiss,loading:Js.loading},{getHistory:L_t,getToasts:k_t});d_t("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function VF(e){return e.label!==void 0}var C_t=3,I_t="24px",R_t="16px",$ue=4000,P_t=356,T_t=14,A_t=45,E_t=200;function xZ(...e){return e.filter(Boolean).join(" ")}function D_t(e){let[r,a]=e.split("-"),i=[];if(r)i.push(r);if(a)i.push(a);return i}var O_t=(e)=>{var r,a,i,s,l,c,d,m,g;let{invert:x,toast:v,unstyled:b,interacting:_,setHeights:z,visibleToasts:k,heights:U,index:P,toasts:T,expanded:G,removeToast:X,defaultRichColors:J,closeButton:ee,style:re,cancelButtonStyle:oe,actionButtonStyle:ie,className:ye="",descriptionClassName:We="",duration:Ye,position:Se,gap:He,expandByDefault:dt,classNames:Ge,icons:yt,closeButtonAriaLabel:Ft="Close toast"}=e,[Bt,de]=u(null),[_t,Wt]=u(null),[Fe,fr]=u(!1),[sr,Jt]=u(!1),[Fr,Kt]=u(!1),[Xt,Ir]=u(!1),[wr,Tr]=u(!1),[Zr,co]=u(0),[io,xa]=u(0),cr=y(v.duration||Ye||$ue),uo=y(null),lo=y(null),No=P===0,pn=P+1<=k,Ho=v.type,Fn=Ho!=null?Ho:"default",mn=v.dismissible!==!1,Hi=v.className||"",Ke=v.descriptionClassName||"",Et=N(()=>U.findIndex((nr)=>nr.toastId===v.id)||0,[U,v.id]),mr=N(()=>{var nr;return(nr=v.closeButton)!=null?nr:ee},[v.closeButton,ee]),Br=N(()=>v.duration||Ye||$ue,[v.duration,Ye]),$r=y(0),Vo=y(0),qa=y(0),Ee=y(null),[Oe,je]=Se.split("-"),Zt=N(()=>U.reduce((nr,Go,va)=>{if(va>=Et)return nr;return nr+Go.height},0),[U,Et]),zt=y_t(),jt=N(()=>{var nr;return(nr=e.swipeDirections)!=null?nr:D_t(Se)},[e.swipeDirections,Se]),ir=v.invert||x,Nt=Ho==="loading";Vo.current=N(()=>Et*He+Zt,[Et,Zt]),h(()=>{cr.current=Br},[Br]),h(()=>{fr(!0)},[]),h(()=>{let nr=lo.current;if(nr){let Go=nr.getBoundingClientRect().height;return xa(Go),z((va)=>[{toastId:v.id,height:Go,position:v.position},...va]),()=>z((va)=>va.filter((oi)=>oi.toastId!==v.id))}},[z,v.id]),$e(()=>{if(!Fe)return;let nr=lo.current,Go=nr.style.height;nr.style.height="auto";let va=nr.getBoundingClientRect().height;nr.style.height=Go,xa(va),z((oi)=>{if(!oi.find((Ea)=>Ea.toastId===v.id))return[{toastId:v.id,height:va,position:v.position},...oi];else return oi.map((Ea)=>Ea.toastId===v.id?{...Ea,height:va}:Ea)})},[Fe,v.title,v.description,z,v.id,v.jsx,v.action,v.cancel]);let bt=D(()=>{Jt(!0),co(Vo.current),z((nr)=>nr.filter((Go)=>Go.toastId!==v.id)),setTimeout(()=>{X(v)},E_t)},[v,X,z,Vo]);h(()=>{if(v.promise&&Ho==="loading"||v.duration===1/0||v.type==="loading")return;let nr,Go=()=>{if(qa.current<$r.current){let oi=new Date().getTime()-$r.current;cr.current=cr.current-oi}qa.current=new Date().getTime()},va=()=>{if(cr.current===1/0)return;$r.current=new Date().getTime(),nr=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),bt()},cr.current)};if(G||_||zt)Go();else va();return()=>clearTimeout(nr)},[G,_,v,Ho,zt,bt]),h(()=>{if(v.delete)bt(),v.onDismiss==null||v.onDismiss.call(v,v)},[bt,v.delete]);function qt(){var nr;if(yt==null?void 0:yt.loading){var Go;return j("div",{className:xZ(Ge==null?void 0:Ge.loader,v==null?void 0:(Go=v.classNames)==null?void 0:Go.loader,"sonner-loader"),"data-visible":Ho==="loading"},yt.loading)}return j(m_t,{className:xZ(Ge==null?void 0:Ge.loader,v==null?void 0:(nr=v.classNames)==null?void 0:nr.loader),visible:Ho==="loading"})}let Nr=v.icon||(yt==null?void 0:yt[Ho])||Z_t(Ho);var jr,ua;return j("li",{tabIndex:0,ref:lo,className:xZ(ye,Hi,Ge==null?void 0:Ge.toast,v==null?void 0:(r=v.classNames)==null?void 0:r.toast,Ge==null?void 0:Ge[Fn],v==null?void 0:(a=v.classNames)==null?void 0:a[Fn]),"data-sonner-toast":"","data-rich-colors":(jr=v.richColors)!=null?jr:J,"data-styled":!Boolean(v.jsx||v.unstyled||b),"data-mounted":Fe,"data-promise":Boolean(v.promise),"data-swiped":wr,"data-removed":sr,"data-visible":pn,"data-y-position":Oe,"data-x-position":je,"data-index":P,"data-front":No,"data-swiping":Fr,"data-dismissible":mn,"data-type":Ho,"data-invert":ir,"data-swipe-out":Xt,"data-swipe-direction":_t,"data-expanded":Boolean(G||dt&&Fe),"data-testid":v.testId,style:{"--index":P,"--toasts-before":P,"--z-index":T.length-P,"--offset":`${sr?Zr:Vo.current}px`,"--initial-height":dt?"auto":`${io}px`,...re,...v.style},onDragEnd:()=>{Kt(!1),de(null),Ee.current=null},onPointerDown:(nr)=>{if(nr.button===2)return;if(Nt||!mn)return;if(uo.current=new Date,co(Vo.current),nr.target.setPointerCapture(nr.pointerId),nr.target.tagName==="BUTTON")return;Kt(!0),Ee.current={x:nr.clientX,y:nr.clientY}},onPointerUp:()=>{var nr,Go,va;if(Xt||!mn)return;Ee.current=null;let oi=Number(((nr=lo.current)==null?void 0:nr.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pf=Number(((Go=lo.current)==null?void 0:Go.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ea=new Date().getTime()-((va=uo.current)==null?void 0:va.getTime()),es=Bt==="x"?oi:pf,mf=Math.abs(es)/Ea;if((Bt==="x"?jt.includes(oi>0?"right":"left"):jt.includes(pf>0?"bottom":"top"))&&(Math.abs(es)>=A_t||mf>0.11)){if(co(Vo.current),v.onDismiss==null||v.onDismiss.call(v,v),Bt==="x")Wt(oi>0?"right":"left");else Wt(pf>0?"down":"up");bt(),Ir(!0);return}else{var Eu,Wj;(Eu=lo.current)==null||Eu.style.setProperty("--swipe-amount-x","0px"),(Wj=lo.current)==null||Wj.style.setProperty("--swipe-amount-y","0px")}Tr(!1),Kt(!1),de(null)},onPointerMove:(nr)=>{var Go,va,oi;if(!Ee.current||!mn)return;if(((Go=window.getSelection())==null?void 0:Go.toString().length)>0)return;let Ea=nr.clientY-Ee.current.y,es=nr.clientX-Ee.current.x;if(!Bt&&(Math.abs(es)>1||Math.abs(Ea)>1))de(Math.abs(es)>Math.abs(Ea)?"x":"y");let mf={x:0,y:0},Vj=(Eu)=>1/(1.5+Math.abs(Eu)/20);if(Bt==="y"){if(jt.includes("top")||jt.includes("bottom"))if(jt.includes("top")&&Ea<0||jt.includes("bottom")&&Ea>0)mf.y=Ea;else{let Eu=Ea*Vj(Ea);mf.y=Math.abs(Eu)<Math.abs(Ea)?Eu:Ea}}else if(Bt==="x"){if(jt.includes("left")||jt.includes("right"))if(jt.includes("left")&&es<0||jt.includes("right")&&es>0)mf.x=es;else{let Eu=es*Vj(es);mf.x=Math.abs(Eu)<Math.abs(es)?Eu:es}}if(Math.abs(mf.x)>0||Math.abs(mf.y)>0)Tr(!0);(va=lo.current)==null||va.style.setProperty("--swipe-amount-x",`${mf.x}px`),(oi=lo.current)==null||oi.style.setProperty("--swipe-amount-y",`${mf.y}px`)}},mr&&!v.jsx&&Ho!=="loading"?j("button",{"aria-label":Ft,"data-disabled":Nt,"data-close-button":!0,onClick:Nt||!mn?()=>{}:()=>{bt(),v.onDismiss==null||v.onDismiss.call(v,v)},className:xZ(Ge==null?void 0:Ge.closeButton,v==null?void 0:(i=v.classNames)==null?void 0:i.closeButton)},(ua=yt==null?void 0:yt.close)!=null?ua:v_t):null,(Ho||v.icon||v.promise)&&v.icon!==null&&((yt==null?void 0:yt[Ho])!==null||v.icon)?j("div",{"data-icon":"",className:xZ(Ge==null?void 0:Ge.icon,v==null?void 0:(s=v.classNames)==null?void 0:s.icon)},Ho==="loading"?v.icon||qt():v.promise?qt():null,Ho!=="loading"?Nr:null):null,j("div",{"data-content":"",className:xZ(Ge==null?void 0:Ge.content,v==null?void 0:(l=v.classNames)==null?void 0:l.content)},j("div",{"data-title":"",className:xZ(Ge==null?void 0:Ge.title,v==null?void 0:(c=v.classNames)==null?void 0:c.title)},v.jsx?v.jsx:typeof v.title==="function"?v.title():v.title),v.description?j("div",{"data-description":"",className:xZ(We,Ke,Ge==null?void 0:Ge.description,v==null?void 0:(d=v.classNames)==null?void 0:d.description)},typeof v.description==="function"?v.description():v.description):null),ts(v.cancel)?v.cancel:v.cancel&&VF(v.cancel)?j("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||oe,onClick:(nr)=>{if(!VF(v.cancel))return;if(!mn)return;v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,nr),bt()},className:xZ(Ge==null?void 0:Ge.cancelButton,v==null?void 0:(m=v.classNames)==null?void 0:m.cancelButton)},v.cancel.label):null,ts(v.action)?v.action:v.action&&VF(v.action)?j("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ie,onClick:(nr)=>{if(!VF(v.action))return;if(v.action.onClick==null||v.action.onClick.call(v.action,nr),nr.defaultPrevented)return;bt()},className:xZ(Ge==null?void 0:Ge.actionButton,v==null?void 0:(g=v.classNames)==null?void 0:g.actionButton)},v.action.label):null)};function ede(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");if(e==="auto"||!e)return window.getComputedStyle(document.documentElement).direction;return e}function N_t(e,r){let a={};return[e,r].forEach((i,s)=>{let l=s===1,c=l?"--mobile-offset":"--offset",d=l?R_t:I_t;function m(g){["top","right","bottom","left"].forEach((x)=>{a[`${c}-${x}`]=typeof g==="number"?`${g}px`:g})}if(typeof i==="number"||typeof i==="string")m(i);else if(typeof i==="object")["top","right","bottom","left"].forEach((g)=>{if(i[g]===void 0)a[`${c}-${g}`]=d;else a[`${c}-${g}`]=typeof i[g]==="number"?`${i[g]}px`:i[g]});else m(d)}),a}var rde=F(function(r,a){let{id:i,invert:s,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:g,offset:x,mobileOffset:v,theme:b="light",richColors:_,duration:z,style:k,visibleToasts:U=C_t,toastOptions:P,dir:T=ede(),gap:G=T_t,icons:X,customAriaLabel:J,containerAriaLabel:ee="Notifications"}=r,[re,oe]=u([]),ie=N(()=>{if(i)return re.filter((fr)=>fr.toasterId===i);return re.filter((fr)=>!fr.toasterId)},[re,i]),ye=N(()=>Array.from(new Set([l].concat(ie.filter((fr)=>fr.position).map((fr)=>fr.position)))),[ie,l]),[We,Ye]=u([]),[Se,He]=u(!1),[dt,Ge]=u(!1),[yt,Ft]=u(b!=="system"?b:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),Bt=y(null),de=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),_t=y(null),Wt=y(!1),Fe=D((fr)=>{oe((sr)=>{var Jt;if(!((Jt=sr.find((Fr)=>Fr.id===fr.id))==null?void 0:Jt.delete))Js.dismiss(fr.id);return sr.filter(({id:Fr})=>Fr!==fr.id)})},[]);return h(()=>Js.subscribe((fr)=>{if(fr.dismiss){requestAnimationFrame(()=>{oe((sr)=>sr.map((Jt)=>Jt.id===fr.id?{...Jt,delete:!0}:Jt))});return}setTimeout(()=>{rn(()=>{oe((sr)=>{let Jt=sr.findIndex((Fr)=>Fr.id===fr.id);if(Jt!==-1)return[...sr.slice(0,Jt),{...sr[Jt],...fr},...sr.slice(Jt+1)];return[fr,...sr]})})})}),[]),h(()=>{if(b!=="system"){Ft(b);return}if(b==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)Ft("dark");else Ft("light");if(typeof window>"u")return;let fr=window.matchMedia("(prefers-color-scheme: dark)");try{fr.addEventListener("change",({matches:sr})=>{if(sr)Ft("dark");else Ft("light")})}catch(sr){fr.addListener(({matches:Jt})=>{try{if(Jt)Ft("dark");else Ft("light")}catch(Fr){console.error(Fr)}})}},[b]),h(()=>{if(re.length<=1)He(!1)},[re]),h(()=>{let fr=(sr)=>{var Jt;if(c.length>0&&c.every((Xt)=>sr[Xt]||sr.code===Xt)){var Kt;He(!0),(Kt=Bt.current)==null||Kt.focus()}if(sr.code==="Escape"&&(document.activeElement===Bt.current||((Jt=Bt.current)==null?void 0:Jt.contains(document.activeElement))))He(!1)};return document.addEventListener("keydown",fr),()=>document.removeEventListener("keydown",fr)},[c]),h(()=>{if(Bt.current)return()=>{if(_t.current)_t.current.focus({preventScroll:!0}),_t.current=null,Wt.current=!1}},[Bt.current]),j("section",{ref:a,"aria-label":J!=null?J:`${ee} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},ye.map((fr,sr)=>{var Jt;let[Fr,Kt]=fr.split("-");if(!ie.length)return null;return j("ol",{key:fr,dir:T==="auto"?ede():T,tabIndex:-1,ref:Bt,className:g,"data-sonner-toaster":!0,"data-sonner-theme":yt,"data-y-position":Fr,"data-x-position":Kt,style:{"--front-toast-height":`${((Jt=We[0])==null?void 0:Jt.height)||0}px`,"--width":`${P_t}px`,"--gap":`${G}px`,...k,...N_t(x,v)},onBlur:(Xt)=>{if(Wt.current&&!Xt.currentTarget.contains(Xt.relatedTarget)){if(Wt.current=!1,_t.current)_t.current.focus({preventScroll:!0}),_t.current=null}},onFocus:(Xt)=>{if(Xt.target instanceof HTMLElement&&Xt.target.dataset.dismissible==="false")return;if(!Wt.current)Wt.current=!0,_t.current=Xt.relatedTarget},onMouseEnter:()=>He(!0),onMouseMove:()=>He(!0),onMouseLeave:()=>{if(!dt)He(!1)},onDragEnd:()=>He(!1),onPointerDown:(Xt)=>{if(Xt.target instanceof HTMLElement&&Xt.target.dataset.dismissible==="false")return;Ge(!0)},onPointerUp:()=>Ge(!1)},ie.filter((Xt)=>!Xt.position&&sr===0||Xt.position===fr).map((Xt,Ir)=>{var wr,Tr;return j(O_t,{key:Xt.id,icons:X,index:Ir,toast:Xt,defaultRichColors:_,duration:(wr=P==null?void 0:P.duration)!=null?wr:z,className:P==null?void 0:P.className,descriptionClassName:P==null?void 0:P.descriptionClassName,invert:s,visibleToasts:U,closeButton:(Tr=P==null?void 0:P.closeButton)!=null?Tr:m,interacting:dt,position:fr,style:P==null?void 0:P.style,unstyled:P==null?void 0:P.unstyled,classNames:P==null?void 0:P.classNames,cancelButtonStyle:P==null?void 0:P.cancelButtonStyle,actionButtonStyle:P==null?void 0:P.actionButtonStyle,closeButtonAriaLabel:P==null?void 0:P.closeButtonAriaLabel,removeToast:Fe,toasts:ie.filter((Zr)=>Zr.position==Xt.position),heights:We.filter((Zr)=>Zr.position==Xt.position),setHeights:Ye,expandByDefault:d,gap:G,expanded:Se,swipeDirections:r.swipeDirections})}))}))});function br({teamId:e,projectId:r,projectName:a,rootFolderId:i,dragState:s,onSelect:l,selectedFolderId:c,hideCollections:d,hideShares:m,hideRecentlyDeleted:g,hideRecents:x,ancestorFolders:v}){let b=Re(),_=Q(),{canEdit:z}=Dt(r),k=zi({from:"/projects/$projectId/recently-deleted",shouldThrow:!1}),U=zi({from:"/projects/$projectId/recents",shouldThrow:!1}),[P,T]=u(!0),[G,X]=u(!0),[J,ee]=u(!0),{data:re,fetchNextPage:oe,hasNextPage:ie,isFetchingNextPage:ye}=pt({queryKey:["shares",r],queryFn:async({pageParam:Oe})=>{let je=await A.api.projects[":projectId"].shares.$get({param:{projectId:r},query:{first:"20",after:Oe}});if(!je.ok)throw Error(AYe());return await je.json()},initialPageParam:"",getNextPageParam:(Oe)=>Oe.pageInfo?.cursor||void 0,enabled:!!r}),{data:We,fetchNextPage:Ye,hasNextPage:Se,isFetchingNextPage:He}=pt({queryKey:["collections",r],queryFn:async({pageParam:Oe})=>{let je=await A.api.projects[":projectId"].collections.$get({param:{projectId:r},query:{first:"20",after:Oe}});if(!je.ok)throw Error(bYe());return await je.json()},initialPageParam:"",getNextPageParam:(Oe)=>Oe.pageInfo?.cursor||void 0,enabled:!!r}),{ref:dt,inView:Ge}=Pt(),{ref:yt,inView:Ft}=Pt();h(()=>{if(Ge&&Se&&!He)Ye()},[Ge,Se,He,Ye]),h(()=>{if(Ft&&ie&&!ye)oe()},[Ft,ie,ye,oe]);let Bt=N(()=>We?.pages.flatMap((Oe)=>Oe.data)||[],[We]),de=N(()=>re?.pages.flatMap((Oe)=>Oe.data)||[],[re]),{mutate:_t}=B({mutationFn:async()=>{let Oe=await A.api.projects[":projectId"].collections.$post({param:{projectId:r},json:{name:vA(),filter:{sourceFolderId:i,searchFilter:{conditions:[],recursively:!0}}}});if(!Oe.ok)throw Error(rYe());return await Oe.json()},onSuccess:(Oe)=>{_.invalidateQueries({queryKey:["collections",r]}),M.success(b4e()),b({to:"/projects/$projectId/collections/$collectionId",params:{projectId:r,collectionId:Oe.id}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Wt}=B({mutationFn:async()=>{let Oe=await A.api.projects[":projectId"].shares.$post({param:{projectId:r},json:{name:new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}});if(!Oe.ok)throw Error(lYe());return await Oe.json()},onSuccess:(Oe)=>{_.invalidateQueries({queryKey:["shares",r]}),M.success(hdt()),b({to:"/projects/$projectId/shares/$shareId",params:{projectId:r,shareId:Oe.id}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),Fe=ll({from:"/projects/$projectId/collections/$collectionId",shouldThrow:!1}),fr=ll({from:"/projects/$projectId/shares/$shareId",shouldThrow:!1}),sr=ll({from:"/projects/$projectId/folders/$folderId",shouldThrow:!1}),[Jt,Fr]=u(null),[Kt,Xt]=u("collection"),[Ir,wr]=u(""),[Tr,Zr]=u(!1),[co,io]=u(null),[xa,cr]=u("collection"),[uo,lo]=u(!1),{mutate:No}=B({mutationFn:async({id:Oe,name:je})=>{let Zt=await A.api.folders[":folderId"].$put({param:{folderId:Oe},json:{name:je}});if(!Zt.ok)throw Error(VYe());return await Zt.json()},onSuccess:()=>{_.invalidateQueries({queryKey:["search",e]}),_.invalidateQueries({queryKey:["folders"]}),M.success(j9e()),Zr(!1)},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:pn}=B({mutationFn:async(Oe)=>{if(!(await A.api.folders.$delete({json:{ids:[Oe]}})).ok)throw Error(gYe());return Oe},onSuccess:(Oe)=>{if(_.invalidateQueries({queryKey:["search",e]}),_.invalidateQueries({queryKey:["folders"]}),M.success(T9e()),lo(!1),sr?.folderId===Oe)b({to:"/projects/$projectId",params:{projectId:r}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),[Ho,Fn]=u(!1),[mn,Hi]=u(!1),[Ke,Et]=u([]),mr=async(Oe)=>{Fn(!0),Hi(!0),Et([]);try{let je=await A.api.files["download-links"].$post({json:{ids:[Oe]}});if(!je.ok)throw Error(Vse());let Zt=await je.json();Et(Zt.files)}catch(je){M.error(Vse()),Fn(!1),console.error(je)}finally{Hi(!1)}},Br=()=>{let Oe=[...Ke];if(Fn(!1),Oe.length===0)return;M.info(Mpt({count:Oe.length}),{duration:5000});let je=(zt)=>new Promise((jt)=>setTimeout(jt,zt));(async()=>{for(let jt=0;jt<Oe.length;jt+=5){let ir=Oe.slice(jt,jt+5);for(let Nt of ir){let bt=document.createElement("a");bt.href=Nt.url,bt.download=Nt.name,bt.target="_blank",document.body.appendChild(bt),bt.click(),bt.remove()}await je(1000)}})().catch((zt)=>{console.error("Background downloads failed:",zt),M.error(RZt())})},{mutate:$r}=B({mutationFn:async({id:Oe,name:je})=>{let Zt=await A.api.collections[":collectionId"].$patch({param:{collectionId:Oe},json:{name:je}});if(!Zt.ok)throw Error(YYe());return await Zt.json()},onSuccess:()=>{_.invalidateQueries({queryKey:["collections",r]}),M.success(R4e()),Zr(!1)},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Vo}=B({mutationFn:async(Oe)=>{let je=await A.api.collections[":collectionId"].$delete({param:{collectionId:Oe}});if(!je.ok)throw Error(dYe());return await je.json()},onSuccess:(Oe,je)=>{if(_.invalidateQueries({queryKey:["collections",r]}),M.success(S4e()),lo(!1),Fe?.collectionId===je)b({to:"/projects/$projectId",params:{projectId:r}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:qa}=B({mutationFn:async({id:Oe,name:je})=>{let Zt=await A.api.shares[":shareId"].$put({param:{shareId:Oe},json:{name:je}});if(!Zt.ok)throw Error(GYe());return await Zt.json()},onSuccess:()=>{_.invalidateQueries({queryKey:["shares",r]}),M.success(_dt()),Zr(!1)},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Ee}=B({mutationFn:async(Oe)=>{if(!(await A.api.shares[":shareId"].$delete({param:{shareId:Oe}})).ok)throw Error(vYe());return Oe},onSuccess:(Oe)=>{if(_.invalidateQueries({queryKey:["shares",r]}),M.success(xdt()),lo(!1),fr?.shareId===Oe)b({to:"/projects/$projectId",params:{projectId:r}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}});return o("div",{className:"flex flex-col h-full overflow-hidden p-3 gap-4 bg-background",children:[o("div",{className:C("flex flex-col overflow-hidden transition-all duration-300 ease-in-out border-b border-border pb-4",P?"flex-1 min-h-[50%] h-full":"flex-none h-[44px] max-h-[44px]"),children:[t("header",{className:"group flex items-center justify-between px-2 mb-1 flex-none",children:o("div",{className:"flex-1 flex items-center gap-1.5 cursor-pointer select-none text-muted-foreground hover:text-foreground transition-colors",onClick:()=>T(!P),children:[t("h3",{className:"text-xs font-semibold uppercase tracking-wider",children:Kse()}),P?t(kz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}):t(Cz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]})}),t(ce,{className:C("flex-1 min-h-0 transition-all duration-300 ease-in-out [&>div>div]:block!",P?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none h-0"),children:o("div",{className:"space-y-0.5 pr-3",children:[!x&&o("div",{className:C("group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",U&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium"),onClick:()=>b({to:"/projects/$projectId/recents",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(Ls,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:jg()})]}),t(ode,{teamId:e,projectId:r,folder:{id:i,name:a,type:"folder",sizeByte:0,fileCount:0,status:"processed",createdAt:"",updatedAt:""},level:0,isRoot:!0,dragState:s,onSelect:l,selectedFolderId:c,canEdit:z,onRenameTrigger:(Oe,je)=>{Fr(Oe),Xt("folder"),wr(je),Zr(!0)},onDeleteTrigger:(Oe)=>{io(Oe),cr("folder"),lo(!0)},onDownloadTrigger:(Oe)=>{mr(Oe)},ancestorFolders:v},i),z&&!g&&o("div",{className:C("group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",k&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium"),onClick:()=>b({to:"/projects/$projectId/recently-deleted",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(we,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:zg()})]})]})})]}),!d&&o("div",{className:C("flex flex-col overflow-hidden transition-all duration-300 ease-in-out border-b border-border pb-4",G?"flex-1 min-h-0 h-full":"flex-none h-[44px] max-h-[44px]"),children:[o("header",{className:"group flex items-center justify-between px-2 mb-1 flex-none",children:[o("div",{className:"flex-1 flex items-center gap-1.5 cursor-pointer select-none text-muted-foreground hover:text-foreground transition-colors",onClick:()=>X(!G),children:[t("h3",{className:"text-xs font-semibold uppercase tracking-wider",children:D4e()}),G?t(kz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}):t(Cz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]}),z&&t("button",{"data-testid":"create-collection",onClick:()=>_t(),className:"text-muted-foreground hover:text-foreground flex-none",children:t(pe,{className:"h-3.5 w-3.5"})})]}),t(ce,{className:C("flex-1 min-h-0 transition-all duration-300 ease-in-out [&>div>div]:block!",G?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none h-0"),children:o("div",{className:"space-y-0.5 pr-3",children:[o("div",{className:"group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",onClick:()=>b({to:"/projects/$projectId/collections",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(to,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:$De({count:We?.pages[0]?.pageInfo?.total||0})})]}),Bt.map((Oe)=>{let je=Fe?.collectionId===Oe.id;return o("div",{className:C("group flex cursor-pointer items-center justify-between rounded-md px-2 py-1 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground min-w-0",je&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium"),onClick:()=>b({to:"/projects/$projectId/collections/$collectionId",params:{projectId:r,collectionId:Oe.id}}),children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[t("div",{className:"flex h-4 w-4 items-center justify-center shrink-0",children:t(ta,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"truncate text-sidebar-foreground flex-1",children:Oe.name})]}),z&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:(Zt)=>Zt.stopPropagation(),children:o(he,{modal:!1,children:[t(ge,{asChild:!0,children:t(E,{variant:"ghost",size:"icon-sm",className:"h-6 w-6 shrink-0 hover:bg-muted hover:text-muted-foreground p-0",children:t(or,{className:"h-3.5 w-3.5"})})}),o(Ae,{align:"end",className:"w-32",children:[t(K,{onClick:()=>{Fr(Oe.id),Xt("collection"),wr(Oe.name),Zr(!0)},children:Fo()}),t(K,{className:"text-destructive focus:text-destructive focus:bg-destructive/10",onClick:()=>{io(Oe.id),cr("collection"),lo(!0)},children:at()})]})]})})]},Oe.id)}),t("div",{ref:dt,className:"h-1"}),He&&t("div",{className:"flex justify-center p-2",children:t(O,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]})})]}),!m&&o("div",{className:C("flex flex-col overflow-hidden transition-all duration-300 ease-in-out",J?"flex-1 min-h-0 h-full":"flex-none h-[44px] max-h-[44px]"),children:[o("header",{className:"group flex items-center justify-between px-2 mb-1 flex-none",children:[o("div",{className:"flex-1 flex items-center gap-1.5 cursor-pointer select-none text-muted-foreground hover:text-foreground transition-colors",onClick:()=>ee(!J),children:[t("h3",{className:"text-xs font-semibold uppercase tracking-wider",children:Ldt()}),J?t(kz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}):t(Cz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]}),z&&t("div",{className:"flex items-center gap-1 flex-none",children:t("button",{onClick:()=>Wt(),className:"text-muted-foreground hover:text-foreground",children:t(pe,{className:"h-3.5 w-3.5"})})})]}),t(ce,{className:C("flex-1 min-h-0 transition-all duration-300 ease-in-out [&>div>div]:block!",J?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none h-0"),children:o("div",{className:"space-y-0.5 pr-3",children:[o("div",{className:"group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",onClick:()=>b({to:"/projects/$projectId/shares",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(to,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:uOe({count:re?.pages[0]?.pageInfo?.total||0})})]}),de.map((Oe)=>t(F_t,{link:Oe,projectId:r,dragState:s,canEdit:z,onRenameTrigger:(je,Zt)=>{Fr(je),Xt("share"),wr(Zt),Zr(!0)},onDeleteTrigger:(je)=>{io(je),cr("share"),lo(!0)}},Oe.id)),t("div",{ref:yt,className:"h-1"}),ye&&t("div",{className:"flex justify-center p-2",children:t(O,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]})})]}),t(ue,{open:Tr,onOpenChange:Zr,children:o(ae,{onClick:(Oe)=>Oe.stopPropagation(),children:[t(fe,{children:t(le,{children:Kt==="collection"?_st():Kt==="share"?kst():zst()})}),t("div",{className:"py-4",children:t(q,{value:Ir,onChange:(Oe)=>wr(Oe.target.value),placeholder:gd(),onKeyDown:(Oe)=>{if(Oe.key==="Enter"&&Ir.trim()){if(Kt==="collection")$r({id:Jt,name:Ir});else if(Kt==="share")qa({id:Jt,name:Ir});else if(Kt==="folder")No({id:Jt,name:Ir})}}})}),o(qe,{children:[t(E,{variant:"ghost",onClick:()=>Zr(!1),children:De()}),t(E,{disabled:!Ir.trim(),onClick:()=>{if(Kt==="collection")$r({id:Jt,name:Ir});else if(Kt==="share")qa({id:Jt,name:Ir});else if(Kt==="folder")No({id:Jt,name:Ir})},children:Fo()})]})]})}),t(Je,{open:uo,onOpenChange:lo,children:o(Xe,{onClick:(Oe)=>Oe.stopPropagation(),children:[o(et,{children:[t(rt,{children:xa==="collection"?jje():xa==="share"?zBe():Jje()}),t(nt,{children:Wje({type:xa==="collection"?v4e():xa==="share"?Zdt():Oh().toLowerCase()})})]}),o(tt,{children:[t(st,{children:De()}),t(ot,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>{if(xa==="collection")Vo(co);else if(xa==="share")Ee(co);else if(xa==="folder")pn(co)},children:at()})]})]})}),t(ue,{open:Ho,onOpenChange:Fn,children:o(ae,{className:"sm:max-w-md",children:[o(fe,{children:[t(le,{children:mn?wg():sh()}),t(It,{children:mn?$g():Fh()})]}),mn?o("div",{className:"space-y-4 py-6 flex flex-col items-center justify-center",children:[t(O,{className:"h-8 w-8 animate-spin text-primary"}),t("span",{className:"text-sm font-medium text-muted-foreground mt-2",children:xg()})]}):o("div",{className:"space-y-4 py-2",children:[t("div",{className:"text-sm text-muted-foreground",children:gh({count:Ke.length})}),o("div",{className:"flex items-start gap-3 p-3 text-sm rounded-lg bg-amber-50 dark:bg-amber-950/30 text-amber-800 dark:text-amber-300 border border-amber-200 dark:border-amber-900/30",children:[t(Vr,{className:"h-5 w-5 shrink-0 mt-0.5"}),o("div",{children:[t("p",{className:"font-semibold",children:dg()}),t("p",{className:"mt-0.5 text-xs text-amber-700/90 dark:text-amber-400/90",children:Zh()})]})]})]}),t(qe,{children:!mn?o(L,{children:[t(E,{variant:"outline",onClick:()=>Fn(!1),children:De()}),o(E,{onClick:Br,className:"gap-2",disabled:Ke.length===0,children:[t(wt,{className:"h-4 w-4"}),uA()]})]}):t(E,{disabled:!0,variant:"outline",children:De()})})]})})]})}function F_t({link:e,projectId:r,dragState:a,canEdit:i,onRenameTrigger:s,onDeleteTrigger:l}){let c=Re(),m=ll({from:"/projects/$projectId/shares/$shareId",shouldThrow:!1})?.shareId===e.id,{ref:g,isDropTarget:x}=Or({id:`share:${e.id}`,data:{type:"share-link",id:e.id}}),v=!!a?.isActive;return o("div",{ref:g,className:C("group flex cursor-pointer items-center justify-between rounded-md px-2 py-1 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground min-w-0",m&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium",x&&v&&"bg-sidebar-accent ring-2 ring-primary ring-inset"),onClick:()=>c({to:"/projects/$projectId/shares/$shareId",params:{projectId:r,shareId:e.id}}),children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[t("div",{className:"flex h-4 w-4 items-center justify-center shrink-0",children:t(Ra,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"truncate text-sidebar-foreground flex-1",children:e.name})]}),i&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:(b)=>b.stopPropagation(),children:o(he,{modal:!1,children:[t(ge,{asChild:!0,children:t(E,{variant:"ghost",size:"icon-sm",className:"h-6 w-6 shrink-0 hover:bg-muted hover:text-muted-foreground p-0",children:t(or,{className:"h-3.5 w-3.5"})})}),o(Ae,{align:"end",className:"w-32",children:[t(K,{onClick:()=>{s(e.id,e.name)},children:Fo()}),t(K,{className:"text-destructive focus:text-destructive focus:bg-destructive/10",onClick:()=>{l(e.id)},children:at()})]})]})})]})}function ode({teamId:e,projectId:r,folder:a,level:i,isRoot:s,dragState:l,onSelect:c,selectedFolderId:d,canEdit:m,onRenameTrigger:g,onDeleteTrigger:x,onDownloadTrigger:v,ancestorFolders:b}){let _=N(()=>b?.some((Wt)=>Wt.id===a.id)??!1,[b,a.id]),[z,k]=u(s||_);h(()=>{if(_)k(!0)},[_]);let U=Re(),P=ll({from:"/projects/$projectId/folders/$folderId",select:(Wt)=>({folderId:Wt.folderId}),shouldThrow:!1}),T=ll({from:"/projects/$projectId/",shouldThrow:!1}),G=s?!!T:P?.folderId===a.id,{data:X,fetchNextPage:J,hasNextPage:ee,isFetchingNextPage:re,isLoading:oe}=pt({queryKey:["folders",a.id,"children",{assetType:"folder"}],queryFn:async({pageParam:Wt})=>{let Fe=await A.api.folders[":folderId"].children.$get({param:{folderId:a.id},query:{assetType:"folder",after:Wt,first:"20"}});if(!Fe.ok)throw Error(d7e());return await Fe.json()},initialPageParam:"",getNextPageParam:(Wt)=>Wt.pageInfo?.cursor||void 0,enabled:z||!!s}),{ref:ie,inView:ye}=Pt();h(()=>{if(ye&&ee&&!re)J()},[ye,ee,re,J]);let We=X?.pages.flatMap((Wt)=>Wt.data??[])??[],Ye=(Wt)=>{Wt.stopPropagation(),k(!z)},Se=()=>{if(c){c(a);return}if(s)U({to:"/projects/$projectId",params:{projectId:r}});else U({to:"/projects/$projectId/folders/$folderId",params:{projectId:r,folderId:a.id}})},{ref:He,isDragging:dt}=ys({id:`tree:${a.id}`,data:{type:"folder",item:a},disabled:!!s||!!c||!m}),{ref:Ge,isDropTarget:yt}=Or({id:`tree:${a.id}`,data:{type:"folder",item:a},disabled:l?.draggedIds.has(a.id)||!!c||!m}),Ft=(Wt)=>{He(Wt),Ge(Wt)},Bt=N(()=>{if(c)return!1;if(!l?.isActive)return!1;if(l.draggedIds.has(a.id))return!1;return!0},[l,a.id,c]),de=yt&&Bt,_t=d===a.id;return o("div",{children:[o("div",{ref:Ft,className:C("group flex cursor-pointer items-center gap-1 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground min-w-0",(G||_t)&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium",dt&&"opacity-50",de&&"bg-sidebar-accent ring-2 ring-primary ring-inset"),style:{...s?{}:{paddingLeft:`${i*12+8}px`}},onClick:Se,children:[!s&&t("button",{onClick:Ye,className:"flex h-4 w-4 items-center justify-center shrink-0",children:z?t(ve,{className:"h-3 w-3"}):t(vt,{className:"h-3 w-3"})}),s?t(u2,{className:"h-4 w-4 text-sidebar-primary shrink-0"}):t(rr,{className:"h-4 w-4 text-sidebar-primary shrink-0"}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:a.name}),m&&!s&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:(Wt)=>Wt.stopPropagation(),children:o(he,{modal:!1,children:[t(ge,{asChild:!0,children:t(E,{variant:"ghost",size:"icon-sm",className:"h-6 w-6 shrink-0 hover:bg-muted hover:text-muted-foreground p-0",children:t(or,{className:"h-3.5 w-3.5"})})}),o(Ae,{align:"end",className:"w-32",children:[o(K,{onClick:()=>{g(a.id,a.name)},children:[t(Gr,{className:"mr-2 h-4 w-4"}),Fo()]}),o(K,{onClick:()=>{v(a.id)},children:[t(wt,{className:"mr-2 h-4 w-4"}),hr()]}),t(Vt,{}),o(K,{className:"text-destructive focus:text-destructive focus:bg-destructive/10",onClick:()=>{x(a.id)},children:[t(we,{className:"mr-2 h-4 w-4"}),at()]})]})]})})]}),z&&o("div",{children:[oe&&t("div",{className:"flex items-center justify-center p-2",style:{paddingLeft:`${(i+1)*12+8}px`},children:t(O,{className:"h-4 w-4 animate-spin"})}),We.map((Wt)=>t(ode,{teamId:e,projectId:r,folder:Wt,level:i+1,dragState:l,onSelect:c,selectedFolderId:d,canEdit:m,onRenameTrigger:g,onDeleteTrigger:x,onDownloadTrigger:v,ancestorFolders:b},Wt.id)),ee&&t("div",{ref:ie,className:"flex items-center justify-center p-2",style:{paddingLeft:`${(i+1)*12+8}px`},children:re&&t(O,{className:"h-4 w-4 animate-spin"})})]})]})}var j_t=Math.pow(10,8)*24*60*60*1000,Rxn=-j_t,WF=604800000,ade=86400000,BH=60000,AD=3600000;var UH=Symbol.for("constructDateFrom");function ct(e,r){if(typeof e==="function")return e(r);if(e&&typeof e==="object"&&UH in e)return e[UH](r);if(e instanceof Date)return new e.constructor(r);return new Date(r)}function xe(e,r){return ct(r||e,e)}function pR(e,r,a){let i=xe(e,a?.in);if(isNaN(r))return ct(a?.in||e,NaN);if(!r)return i;return i.setDate(i.getDate()+r),i}function Ba(e,r,a){let i=xe(e,a?.in);if(isNaN(r))return ct(a?.in||e,NaN);if(!r)return i;let s=i.getDate(),l=ct(a?.in||e,i.getTime());l.setMonth(i.getMonth()+r+1,0);let c=l.getDate();if(s>=c)return l;else return i.setFullYear(l.getFullYear(),l.getMonth(),s),i}function nde(e,r,a){return ct(a?.in||e,+xe(e)+r)}function ide(e,r,a){return nde(e,r*AD,a)}var B_t={};function vZ(){return B_t}function zu(e,r){let a=vZ(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,s=xe(e,r?.in),l=s.getDay(),c=(l<i?7:0)+l-i;return s.setDate(s.getDate()-c),s.setHours(0,0,0,0),s}function nM(e,r){return zu(e,{...r,weekStartsOn:1})}function KF(e,r){let a=xe(e,r?.in),i=a.getFullYear(),s=ct(a,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);let l=nM(s),c=ct(a,0);c.setFullYear(i,0,4),c.setHours(0,0,0,0);let d=nM(c);if(a.getTime()>=l.getTime())return i+1;else if(a.getTime()>=d.getTime())return i;else return i-1}function YH(e){let r=xe(e),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),+e-+a}function el(e,...r){let a=ct.bind(null,e||r.find((i)=>typeof i==="object"));return r.map(a)}function I8(e,r){let a=xe(e,r?.in);return a.setHours(0,0,0,0),a}function R8(e,r,a){let[i,s]=el(a?.in,e,r),l=I8(i),c=I8(s),d=+l-YH(l),m=+c-YH(c);return Math.round((d-m)/ade)}function fde(e,r){let a=KF(e,r),i=ct(r?.in||e,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),nM(i)}function ED(e,r,a){return pR(e,r*7,a)}function sde(e,r,a){return Ba(e,r*12,a)}function lde(e,r){let a,i=r?.in;return e.forEach((s)=>{if(!i&&typeof s==="object")i=ct.bind(null,s);let l=xe(s,i);if(!a||a<l||isNaN(+l))a=l}),ct(i,a||NaN)}function cde(e,r){let a,i=r?.in;return e.forEach((s)=>{if(!i&&typeof s==="object")i=ct.bind(null,s);let l=xe(s,i);if(!a||a>l||isNaN(+l))a=l}),ct(i,a||NaN)}function GF(e){return ct(e,Date.now())}function mR(e,r,a){let[i,s]=el(a?.in,e,r);return+I8(i)===+I8(s)}function XF(e){return e instanceof Date||typeof e==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sa(e){return!(!XF(e)&&typeof e!=="number"||isNaN(+xe(e)))}function QF(e,r,a){let[i,s]=el(a?.in,e,r),l=i.getFullYear()-s.getFullYear(),c=i.getMonth()-s.getMonth();return l*12+c}function qH(e,r,a){let[i,s]=el(a?.in,e,r),l=ude(i,s),c=Math.abs(R8(i,s));i.setDate(i.getDate()-l*c);let d=Number(ude(i,s)===-l),m=l*(c-d);return m===0?0:m}function ude(e,r){let a=e.getFullYear()-r.getFullYear()||e.getMonth()-r.getMonth()||e.getDate()-r.getDate()||e.getHours()-r.getHours()||e.getMinutes()-r.getMinutes()||e.getSeconds()-r.getSeconds()||e.getMilliseconds()-r.getMilliseconds();if(a<0)return-1;if(a>0)return 1;return a}function $d(e,r){let a=xe(e,r?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(23,59,59,999),a}function Nl(e,r){let[a,i]=el(e,r.start,r.end);return{start:a,end:i}}function dde(e,r){let{start:a,end:i}=Nl(r?.in,e),s=+a>+i,l=s?+a:+i,c=s?i:a;c.setHours(0,0,0,0),c.setDate(1);let d=r?.step??1;if(!d)return[];if(d<0)d=-d,s=!s;let m=[];while(+c<=l)m.push(ct(a,c)),c.setMonth(c.getMonth()+d);return s?m.reverse():m}function Zde(e,r){let a=xe(e,r?.in);return a.setDate(1),a.setHours(0,0,0,0),a}function pde(e,r){let a=xe(e,r?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(23,59,59,999),a}function JF(e,r){let a=xe(e,r?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function mde(e,r){let{start:a,end:i}=Nl(r?.in,e),s=+a>+i,l=s?+a:+i,c=s?i:a;c.setHours(0,0,0,0),c.setMonth(0,1);let d=r?.step??1;if(!d)return[];if(d<0)d=-d,s=!s;let m=[];while(+c<=l)m.push(ct(a,c)),c.setFullYear(c.getFullYear()+d);return s?m.reverse():m}function $F(e,r){let a=vZ(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,s=xe(e,r?.in),l=s.getDay(),c=(l<i?-7:0)+6-(l-i);return s.setDate(s.getDate()+c),s.setHours(23,59,59,999),s}function hde(e,r){return $F(e,{...r,weekStartsOn:1})}var U_t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},gde=(e,r,a)=>{let i,s=U_t[e];if(typeof s==="string")i=s;else if(r===1)i=s.one;else i=s.other.replace("{{count}}",r.toString());if(a?.addSuffix)if(a.comparison&&a.comparison>0)return"in "+i;else return i+" ago";return i};function e3(e){return(r={})=>{let a=r.width?String(r.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var Y_t={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},q_t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},H_t={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mde={date:e3({formats:Y_t,defaultWidth:"full"}),time:e3({formats:q_t,defaultWidth:"full"}),dateTime:e3({formats:H_t,defaultWidth:"full"})};var V_t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xde=(e,r,a,i)=>V_t[e];function hR(e){return(r,a)=>{let i=a?.context?String(a.context):"standalone",s;if(i==="formatting"&&e.formattingValues){let c=e.defaultFormattingWidth||e.defaultWidth,d=a?.width?String(a.width):c;s=e.formattingValues[d]||e.formattingValues[c]}else{let c=e.defaultWidth,d=a?.width?String(a.width):e.defaultWidth;s=e.values[d]||e.values[c]}let l=e.argumentCallback?e.argumentCallback(r):r;return s[l]}}var W_t={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},K_t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},G_t={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},X_t={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Q_t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J_t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$_t=(e,r)=>{let a=Number(e),i=a%100;if(i>20||i<10)switch(i%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},vde={ordinalNumber:$_t,era:hR({values:W_t,defaultWidth:"wide"}),quarter:hR({values:K_t,defaultWidth:"wide",argumentCallback:(e)=>e-1}),month:hR({values:G_t,defaultWidth:"wide"}),day:hR({values:X_t,defaultWidth:"wide"}),dayPeriod:hR({values:Q_t,defaultWidth:"wide",formattingValues:J_t,defaultFormattingWidth:"wide"})};function gR(e){return(r,a={})=>{let i=a.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],l=r.match(s);if(!l)return null;let c=l[0],d=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(d)?tbt(d,(v)=>v.test(c)):ebt(d,(v)=>v.test(c)),g;g=e.valueCallback?e.valueCallback(m):m,g=a.valueCallback?a.valueCallback(g):g;let x=r.slice(c.length);return{value:g,rest:x}}}function ebt(e,r){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&r(e[a]))return a;return}function tbt(e,r){for(let a=0;a<e.length;a++)if(r(e[a]))return a;return}function yde(e){return(r,a={})=>{let i=r.match(e.matchPattern);if(!i)return null;let s=i[0],l=r.match(e.parsePattern);if(!l)return null;let c=e.valueCallback?e.valueCallback(l[0]):l[0];c=a.valueCallback?a.valueCallback(c):c;let d=r.slice(s.length);return{value:c,rest:d}}}var rbt=/^(\d+)(th|st|nd|rd)?/i,obt=/\d+/i,abt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nbt={any:[/^b/i,/^(a|c)/i]},ibt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fbt={any:[/1/i,/2/i,/3/i,/4/i]},sbt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},lbt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},cbt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ubt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},dbt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zbt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_de={ordinalNumber:yde({matchPattern:rbt,parsePattern:obt,valueCallback:(e)=>parseInt(e,10)}),era:gR({matchPatterns:abt,defaultMatchWidth:"wide",parsePatterns:nbt,defaultParseWidth:"any"}),quarter:gR({matchPatterns:ibt,defaultMatchWidth:"wide",parsePatterns:fbt,defaultParseWidth:"any",valueCallback:(e)=>e+1}),month:gR({matchPatterns:sbt,defaultMatchWidth:"wide",parsePatterns:lbt,defaultParseWidth:"any"}),day:gR({matchPatterns:cbt,defaultMatchWidth:"wide",parsePatterns:ubt,defaultParseWidth:"any"}),dayPeriod:gR({matchPatterns:dbt,defaultMatchWidth:"any",parsePatterns:Zbt,defaultParseWidth:"any"})};var iM={code:"en-US",formatDistance:gde,formatLong:Mde,formatRelative:xde,localize:vde,match:_de,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bde(e,r){let a=xe(e,r?.in);return R8(a,JF(a))+1}function MR(e,r){let a=xe(e,r?.in),i=+nM(a)-+fde(a);return Math.round(i/WF)+1}function t3(e,r){let a=xe(e,r?.in),i=a.getFullYear(),s=vZ(),l=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,c=ct(r?.in||e,0);c.setFullYear(i+1,0,l),c.setHours(0,0,0,0);let d=zu(c,r),m=ct(r?.in||e,0);m.setFullYear(i,0,l),m.setHours(0,0,0,0);let g=zu(m,r);if(+a>=+d)return i+1;else if(+a>=+g)return i;else return i-1}function wde(e,r){let a=vZ(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=t3(e,r),l=ct(r?.in||e,0);return l.setFullYear(s,0,i),l.setHours(0,0,0,0),zu(l,r)}function xR(e,r){let a=xe(e,r?.in),i=+zu(a,r)-+wde(a,r);return Math.round(i/WF)+1}function qo(e,r){let a=e<0?"-":"",i=Math.abs(e).toString().padStart(r,"0");return a+i}var fM={y(e,r){let a=e.getFullYear(),i=a>0?a:1-a;return qo(r==="yy"?i%100:i,r.length)},M(e,r){let a=e.getMonth();return r==="M"?String(a+1):qo(a+1,2)},d(e,r){return qo(e.getDate(),r.length)},a(e,r){let a=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,r){return qo(e.getHours()%12||12,r.length)},H(e,r){return qo(e.getHours(),r.length)},m(e,r){return qo(e.getMinutes(),r.length)},s(e,r){return qo(e.getSeconds(),r.length)},S(e,r){let a=r.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,a-3));return qo(s,r.length)}};var vR={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},HH={G:function(e,r,a){let i=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})}},y:function(e,r,a){if(r==="yo"){let i=e.getFullYear(),s=i>0?i:1-i;return a.ordinalNumber(s,{unit:"year"})}return fM.y(e,r)},Y:function(e,r,a,i){let s=t3(e,i),l=s>0?s:1-s;if(r==="YY"){let c=l%100;return qo(c,2)}if(r==="Yo")return a.ordinalNumber(l,{unit:"year"});return qo(l,r.length)},R:function(e,r){let a=KF(e);return qo(a,r.length)},u:function(e,r){let a=e.getFullYear();return qo(a,r.length)},Q:function(e,r,a){let i=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return qo(i,2);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,a){let i=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return qo(i,2);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,a){let i=e.getMonth();switch(r){case"M":case"MM":return fM.M(e,r);case"Mo":return a.ordinalNumber(i+1,{unit:"month"});case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,a){let i=e.getMonth();switch(r){case"L":return String(i+1);case"LL":return qo(i+1,2);case"Lo":return a.ordinalNumber(i+1,{unit:"month"});case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,a,i){let s=xR(e,i);if(r==="wo")return a.ordinalNumber(s,{unit:"week"});return qo(s,r.length)},I:function(e,r,a){let i=MR(e);if(r==="Io")return a.ordinalNumber(i,{unit:"week"});return qo(i,r.length)},d:function(e,r,a){if(r==="do")return a.ordinalNumber(e.getDate(),{unit:"date"});return fM.d(e,r)},D:function(e,r,a){let i=bde(e);if(r==="Do")return a.ordinalNumber(i,{unit:"dayOfYear"});return qo(i,r.length)},E:function(e,r,a){let i=e.getDay();switch(r){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,a,i){let s=e.getDay(),l=(s-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(l);case"ee":return qo(l,2);case"eo":return a.ordinalNumber(l,{unit:"day"});case"eee":return a.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(s,{width:"short",context:"formatting"});case"eeee":default:return a.day(s,{width:"wide",context:"formatting"})}},c:function(e,r,a,i){let s=e.getDay(),l=(s-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(l);case"cc":return qo(l,r.length);case"co":return a.ordinalNumber(l,{unit:"day"});case"ccc":return a.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(s,{width:"narrow",context:"standalone"});case"cccccc":return a.day(s,{width:"short",context:"standalone"});case"cccc":default:return a.day(s,{width:"wide",context:"standalone"})}},i:function(e,r,a){let i=e.getDay(),s=i===0?7:i;switch(r){case"i":return String(s);case"ii":return qo(s,r.length);case"io":return a.ordinalNumber(s,{unit:"day"});case"iii":return a.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(i,{width:"short",context:"formatting"});case"iiii":default:return a.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,a){let s=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,r,a){let i=e.getHours(),s;if(i===12)s=vR.noon;else if(i===0)s=vR.midnight;else s=i/12>=1?"pm":"am";switch(r){case"b":case"bb":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,r,a){let i=e.getHours(),s;if(i>=17)s=vR.evening;else if(i>=12)s=vR.afternoon;else if(i>=4)s=vR.morning;else s=vR.night;switch(r){case"B":case"BB":case"BBB":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,r,a){if(r==="ho"){let i=e.getHours()%12;if(i===0)i=12;return a.ordinalNumber(i,{unit:"hour"})}return fM.h(e,r)},H:function(e,r,a){if(r==="Ho")return a.ordinalNumber(e.getHours(),{unit:"hour"});return fM.H(e,r)},K:function(e,r,a){let i=e.getHours()%12;if(r==="Ko")return a.ordinalNumber(i,{unit:"hour"});return qo(i,r.length)},k:function(e,r,a){let i=e.getHours();if(i===0)i=24;if(r==="ko")return a.ordinalNumber(i,{unit:"hour"});return qo(i,r.length)},m:function(e,r,a){if(r==="mo")return a.ordinalNumber(e.getMinutes(),{unit:"minute"});return fM.m(e,r)},s:function(e,r,a){if(r==="so")return a.ordinalNumber(e.getSeconds(),{unit:"second"});return fM.s(e,r)},S:function(e,r){return fM.S(e,r)},X:function(e,r,a){let i=e.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Sde(i);case"XXXX":case"XX":return ML(i);case"XXXXX":case"XXX":default:return ML(i,":")}},x:function(e,r,a){let i=e.getTimezoneOffset();switch(r){case"x":return Sde(i);case"xxxx":case"xx":return ML(i);case"xxxxx":case"xxx":default:return ML(i,":")}},O:function(e,r,a){let i=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+zde(i,":");case"OOOO":default:return"GMT"+ML(i,":")}},z:function(e,r,a){let i=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+zde(i,":");case"zzzz":default:return"GMT"+ML(i,":")}},t:function(e,r,a){let i=Math.trunc(+e/1000);return qo(i,r.length)},T:function(e,r,a){return qo(+e,r.length)}};function zde(e,r=""){let a=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),l=i%60;if(l===0)return a+String(s);return a+String(s)+r+qo(l,2)}function Sde(e,r){if(e%60===0)return(e>0?"-":"+")+qo(Math.abs(e)/60,2);return ML(e,r)}function ML(e,r=""){let a=e>0?"-":"+",i=Math.abs(e),s=qo(Math.trunc(i/60),2),l=qo(i%60,2);return a+s+r+l}var Lde=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},kde=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},pbt=(e,r)=>{let a=e.match(/(P+)(p+)?/)||[],i=a[1],s=a[2];if(!s)return Lde(e,r);let l;switch(i){case"P":l=r.dateTime({width:"short"});break;case"PP":l=r.dateTime({width:"medium"});break;case"PPP":l=r.dateTime({width:"long"});break;case"PPPP":default:l=r.dateTime({width:"full"});break}return l.replace("{{date}}",Lde(i,r)).replace("{{time}}",kde(s,r))},Cde={p:kde,P:pbt};var mbt=/^D+$/,hbt=/^Y+$/,gbt=["D","DD","YY","YYYY"];function Ide(e){return mbt.test(e)}function Rde(e){return hbt.test(e)}function Pde(e,r,a){let i=Mbt(e,r,a);if(console.warn(i),gbt.includes(e))throw RangeError(i)}function Mbt(e,r,a){let i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${i} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var xbt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vbt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ybt=/^'([^]*?)'?$/,_bt=/''/g,bbt=/[a-zA-Z]/;function gr(e,r,a){let i=vZ(),s=a?.locale??i.locale??iM,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d=xe(e,a?.in);if(!sa(d))throw RangeError("Invalid time value");let m=r.match(vbt).map((x)=>{let v=x[0];if(v==="p"||v==="P"){let b=Cde[v];return b(x,s.formatLong)}return x}).join("").match(xbt).map((x)=>{if(x==="''")return{isToken:!1,value:"'"};let v=x[0];if(v==="'")return{isToken:!1,value:wbt(x)};if(HH[v])return{isToken:!0,value:x};if(v.match(bbt))throw RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:x}});if(s.localize.preprocessor)m=s.localize.preprocessor(d,m);let g={firstWeekContainsDate:l,weekStartsOn:c,locale:s};return m.map((x)=>{if(!x.isToken)return x.value;let v=x.value;if(!a?.useAdditionalWeekYearTokens&&Rde(v)||!a?.useAdditionalDayOfYearTokens&&Ide(v))Pde(v,r,String(e));let b=HH[v[0]];return b(d,v,s.localize,g)}).join("")}function wbt(e){let r=e.match(ybt);if(!r)return e;return r[1].replace(_bt,"'")}function Tde(e,r){let a=xe(e,r?.in),i=a.getFullYear(),s=a.getMonth(),l=ct(a,0);return l.setFullYear(i,s+1,0),l.setHours(0,0,0,0),l.getDate()}function eu(e,r){return xe(e,r?.in).getMonth()}function tu(e,r){return xe(e,r?.in).getFullYear()}function Ade(e,r){return+xe(e)>+xe(r)}function Ede(e,r){return+xe(e)<+xe(r)}function Dde(e,r,a){let[i,s]=el(a?.in,e,r);return i.getFullYear()===s.getFullYear()&&i.getMonth()===s.getMonth()}function Ode(e,r,a){let[i,s]=el(a?.in,e,r);return i.getFullYear()===s.getFullYear()}function DD(e,r){return mR(ct(r?.in||e,e),GF(r?.in||e))}function Nde(e,r,a){return pR(e,-r,a)}function OD(e,r){return mR(ct(r?.in||e,e),Nde(GF(r?.in||e),1))}function sM(e,r){let a=()=>ct(r?.in,NaN),i=r?.additionalDigits??2,s=kbt(e),l;if(s.date){let g=Cbt(s.date,i);l=Ibt(g.restDateString,g.year)}if(!l||isNaN(+l))return a();let c=+l,d=0,m;if(s.time){if(d=Rbt(s.time),isNaN(d))return a()}if(s.timezone){if(m=Pbt(s.timezone),isNaN(m))return a()}else{let g=new Date(c+d),x=xe(0,r?.in);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}return xe(c+d+m,r?.in)}var r3={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zbt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Sbt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Lbt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kbt(e){let r={},a=e.split(r3.dateTimeDelimiter),i;if(a.length>2)return r;if(/:/.test(a[0]))i=a[0];else if(r.date=a[0],i=a[1],r3.timeZoneDelimiter.test(r.date))r.date=e.split(r3.timeZoneDelimiter)[0],i=e.substr(r.date.length,e.length);if(i){let s=r3.timezone.exec(i);if(s)r.time=i.replace(s[1],""),r.timezone=s[1];else r.time=i}return r}function Cbt(e,r){let a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),i=e.match(a);if(!i)return{year:NaN,restDateString:""};let s=i[1]?parseInt(i[1]):null,l=i[2]?parseInt(i[2]):null;return{year:l===null?s:l*100,restDateString:e.slice((i[1]||i[2]).length)}}function Ibt(e,r){if(r===null)return new Date(NaN);let a=e.match(zbt);if(!a)return new Date(NaN);let i=!!a[4],s=ND(a[1]),l=ND(a[2])-1,c=ND(a[3]),d=ND(a[4]),m=ND(a[5])-1;if(i){if(!Obt(r,d,m))return new Date(NaN);return Tbt(r,d,m)}else{let g=new Date(0);if(!Ebt(r,l,c)||!Dbt(r,s))return new Date(NaN);return g.setUTCFullYear(r,l,Math.max(s,c)),g}}function ND(e){return e?parseInt(e):1}function Rbt(e){let r=e.match(Sbt);if(!r)return NaN;let a=VH(r[1]),i=VH(r[2]),s=VH(r[3]);if(!Nbt(a,i,s))return NaN;return a*AD+i*BH+s*1000}function VH(e){return e&&parseFloat(e.replace(",","."))||0}function Pbt(e){if(e==="Z")return 0;let r=e.match(Lbt);if(!r)return 0;let a=r[1]==="+"?-1:1,i=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;if(!Fbt(i,s))return NaN;return a*(i*AD+s*BH)}function Tbt(e,r,a){let i=new Date(0);i.setUTCFullYear(e,0,4);let s=i.getUTCDay()||7,l=(r-1)*7+a+1-s;return i.setUTCDate(i.getUTCDate()+l),i}var Abt=[31,null,31,30,31,30,31,31,30,31,30,31];function Fde(e){return e%400===0||e%4===0&&e%100!==0}function Ebt(e,r,a){return r>=0&&r<=11&&a>=1&&a<=(Abt[r]||(Fde(e)?29:28))}function Dbt(e,r){return r>=1&&r<=(Fde(e)?366:365)}function Obt(e,r,a){return r>=1&&r<=53&&a>=0&&a<=6}function Nbt(e,r,a){if(e===24)return r===0&&a===0;return a>=0&&a<60&&r>=0&&r<60&&e>=0&&e<25}function Fbt(e,r){return r>=0&&r<=59}function jde(e,r,a){let i=xe(e,a?.in),s=i.getFullYear(),l=i.getDate(),c=ct(a?.in||e,0);c.setFullYear(s,r,15),c.setHours(0,0,0,0);let d=Tde(c);return i.setMonth(r,Math.min(l,d)),i}function Bde(e,r,a){let i=xe(e,a?.in);if(isNaN(+i))return ct(a?.in||e,NaN);return i.setFullYear(r),i}function o3(e){let r=Object.values(e).filter((i)=>typeof i==="number");return Object.entries(e).filter(([i,s])=>r.indexOf(+i)===-1).map(([i,s])=>s)}function KH(e,r="|"){return e.map((a)=>QH(a)).join(r)}function jD(e,r){if(typeof r==="bigint")return r.toString();return r}function BD(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw Error("cached value already set")}}}function Yde(e){return e===null||e===void 0}function a3(e){let r=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(r,a)}function qde(e,r){let a=e/r,i=Math.round(a),s=4*Number.EPSILON*Math.max(Math.abs(a),1);if(Math.abs(a-i)<s)return 0;return a-i}var Ude=Symbol("evaluating");function Hde(e,r,a){let i=void 0;Object.defineProperty(e,r,{get(){if(i===Ude)return;if(i===void 0)i=Ude,i=a();return i},set(s){Object.defineProperty(e,r,{value:s})},configurable:!0})}function ji(e,r,a){Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0})}function T8(...e){let r={};for(let a of e){let i=Object.getOwnPropertyDescriptors(a);Object.assign(r,i)}return Object.defineProperties({},r)}function Vde(e){return JSON.stringify(e)}function Wde(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var GH="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function yR(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var Kde=BD(()=>{if(tl.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function vL(e){if(yR(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;if(typeof r!=="function")return!0;let a=r.prototype;if(yR(a)===!1)return!1;if(Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)return!1;return!0}function XH(e){if(vL(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}var Gde=new Set(["string","number","symbol"]);function A8(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yZ(e,r,a){let i=new e._zod.constr(r??e._zod.def);if(!r||a?.parent)i._zod.parent=e;return i}function _r(e){let r=e;if(!r)return{};if(typeof r==="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");r.error=r.message}if(delete r.message,typeof r.error==="string")return{...r,error:()=>r.error};return r}function QH(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function Xde(e){return Object.keys(e).filter((r)=>e[r]._zod.optin!==void 0&&e[r]._zod.optout==="optional")}var Qde=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))();function jbt(e,r){let a=e._zod.def,i=a.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let l=T8(e._zod.def,{get shape(){let c={};for(let d of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(a.shape,d))throw Error(`Unrecognized key: "${String(d)}"`);if(!r[d])continue;ji(c,d,a.shape[d])}return ji(this,"shape",c),c},checks:[]});return yZ(e,l)}function Bbt(e,r){let a=e._zod.def,i=a.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let l=T8(e._zod.def,{get shape(){let c={...e._zod.def.shape};for(let d of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(a.shape,d))throw Error(`Unrecognized key: "${String(d)}"`);if(!r[d])continue;delete c[d]}return ji(this,"shape",c),c},checks:[]});return yZ(e,l)}function Ubt(e,r){if(!vL(r))throw Error("Invalid input to extend: expected a plain object");let a=e._zod.def.checks;if(a&&a.length>0){let l=e._zod.def.shape;for(let c of Reflect.ownKeys(r))if(Object.getOwnPropertyDescriptor(l,c)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let s=T8(e._zod.def,{get shape(){let l={...e._zod.def.shape,...r};return ji(this,"shape",l),l}});return yZ(e,s)}function Ybt(e,r){if(!vL(r))throw Error("Invalid input to safeExtend: expected a plain object");let a=T8(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return ji(this,"shape",i),i}});return yZ(e,a)}function qbt(e,r){if(!r?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let a=T8(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r._zod.def.shape};return ji(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return yZ(e,a)}function Jde(e,r,a,i="partial"){let l=r._zod.def.checks;if(l&&l.length>0)throw Error(`.${i}() cannot be used on object schemas containing refinements`);let d=T8(r._zod.def,{get shape(){let m=r._zod.def.shape,g={...m};if(a)for(let x of Reflect.ownKeys(a)){if(!Object.prototype.hasOwnProperty.call(m,x))throw Error(`Unrecognized key: "${String(x)}"`);if(!a[x])continue;g[x]=e?new e({type:"optional",innerType:m[x]}):m[x]}else for(let x of Reflect.ownKeys(m))g[x]=e?new e({type:"optional",innerType:m[x]}):m[x];return ji(this,"shape",g),g},checks:[]});return yZ(r,d)}function Hbt(e,r,a){let i=T8(r._zod.def,{get shape(){let s=r._zod.def.shape,l={...s};if(a)for(let c of Reflect.ownKeys(a)){if(!Object.prototype.hasOwnProperty.call(l,c))throw Error(`Unrecognized key: "${String(c)}"`);if(!a[c])continue;l[c]=new e({type:"nonoptional",innerType:s[c]})}else for(let c of Reflect.ownKeys(s))l[c]=new e({type:"nonoptional",innerType:s[c]});return ji(this,"shape",l),l}});return yZ(r,i)}function yL(e,r=0){if(e.aborted===!0)return!0;for(let a=r;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function $de(e,r=0){if(e.aborted===!0)return!0;for(let a=r;a<e.issues.length;a++)if(e.issues[a]?.continue===!1)return!0;return!1}function E8(e,r){return r.map((a)=>{var i;return(i=a).path??(i.path=[]),a.path.unshift(e),a})}function FD(e){return typeof e==="string"?e:e?.message}function JH(e,r,a){var i;for(let s=r;s<e.length;s++)(i=e[s]).schema??(i.schema=a)}function _Z(e,r,a){var i;let s=e.inst?._zod?.traits;if(s?.has("$ZodType"))if(s.has("$ZodCheck"))(i=e).schema??(i.schema=e.inst);else e.schema=e.inst;let l=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,c=e.message?e.message:FD(e.inst?._zod.def?.error?.(e))??FD(l?.(e))??FD(r?.error?.(e))??FD(a.customError?.(e))??FD(a.localeError?.(e))??"Invalid input",{inst:d,schema:m,continue:g,input:x,...v}=e;if(v.path??(v.path=[]),v.message=c,r?.reportInput)v.input=x;return v}var Vbt=/[\uD800-\uDBFF]/;function n3(e){let r=e.length;if(!Vbt.test(e))return r;let a=r;for(let i=0;i<r-1;i++)if((e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320)a--,i++;return a}function i3(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function eZe(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let a=e;if(a&&Object.getPrototypeOf(a)!==Object.prototype&&"constructor"in a&&a.constructor)return a.constructor.name}}return r}function _L(...e){let[r,a,i]=e;if(typeof r==="string")return{message:r,code:"custom",input:a,inst:i};return{...r}}function tZe(e,r){for(let a in r){let i=Object.getOwnPropertyDescriptor(r,a);if(i.get)Object.defineProperty(e,a,{...i,enumerable:!1});else Wbt(e,a,i.value)}}function xL(e,r,a,i=!0){return Object.defineProperty(e,r,{configurable:!0,writable:!0,enumerable:i,value:a}),a}function $H(e,r,a){return xL(e,r,a,!1)}function Wbt(e,r,a){Object.defineProperty(e,r,{configurable:!0,get(){return this==null?a:xL(this,r,a.bind(this))},set(i){xL(this,r,i)}})}function Kbt(e,r){let a=Object.getPrototypeOf(e);return r in a?void 0:a}var WH,P8=!1,Gbt={configurable:!0,get(){P8=!0;return}};function Po(e,r,a){let i=Object.getPrototypeOf(e._zod);if(r in i&&WH!==e._zod){WH=void 0;return}WH=e._zod,Object.defineProperty(i,r,{configurable:!0,get(){Object.defineProperty(this,r,Gbt);let s=P8;P8=!1;try{let l=a(this);if(P8)delete this[r];else Object.defineProperty(this,r,{configurable:!0,writable:!0,value:l});return P8=P8||s,l}catch(l){throw delete this[r],P8=P8||s,l}},set(s){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:s})}})}function Xbt(e,r,a,i){let s=Kbt(e,r);if(!s)return;Object.defineProperty(s,r,{configurable:!0,get(){let l={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,r,l),l.value=a(this),Object.defineProperty(this,r,l),l.value},set(l){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:i,value:l})}})}var Qbt="~constantCatch";function rZe(e){let r=()=>e;return r[Qbt]=!0,r}var oZe;var eV={value:void 0,enumerable:!1},aZe="captureStackTrace"in Error?Error:null;function Jbt(e){let r=aZe;if(r){let a=r.stackTraceLimit;if(typeof a==="number"){try{r.stackTraceLimit=0}catch{return aZe=null,new e}try{return new e}finally{r.stackTraceLimit=a}}}return new e}function kt(e,r,a,i){let s={};function l(b){this.def=b,this.constr=v,this.traits=new Set}l.prototype=s;let c=a,d=c&&new WeakSet;function m(b,_){if(!b._zod){eV.value=new l(_);try{Object.defineProperty(b,"_zod",eV)}finally{eV.value=void 0}}if(b._zod.traits.has(e))return;if(b._zod.traits.add(e),r(b,_),d){let k=Object.getPrototypeOf(b),U=b._zod.constr.prototype,P=k;while(P&&P!==U)P=Object.getPrototypeOf(P);let T=P??k;if(!d.has(T))d.add(T),tZe(T,c)}let z=v.prototype;for(let k in z){if(!Object.prototype.hasOwnProperty.call(z,k))continue;if(!(k in b))b[k]=z[k].bind(b)}}let g=i?.Parent??Object;class x extends g{}Object.defineProperty(x,"name",{value:e});function v(b){let _=i?.Parent?Jbt(x):this;m(_,b);let z=_._zod.deferred;if(z){for(let U of z)U();_._zod.deferred=void 0}let k=globalThis.__zod_globalConfig?.postProcessor;if(k)k(_);return _}return Object.defineProperty(v,"init",{value:m}),Object.defineProperty(v,Symbol.hasInstance,{value:(b)=>{if(i?.Parent&&b instanceof i.Parent)return!0;return b?._zod?.traits?.has(e)}}),Object.defineProperty(v,"name",{value:e}),v}class lM extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class UD extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(oZe=globalThis).__zod_globalConfig??(oZe.__zod_globalConfig={});var tl=globalThis.__zod_globalConfig;function Jl(e){if(e)Object.assign(tl,e);return tl}function $bt(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,jD,2)),e.message}function ewt(e){this._zod.message=e}var twt={get:$bt,set:ewt,enumerable:!0,configurable:!0},rV={value:void 0,enumerable:!1},oV={value:void 0,enumerable:!1},nZe=new WeakSet([Object.prototype,Error.prototype]),iZe=(e,r)=>{e.name="$ZodError",rV.value=e._zod,Object.defineProperty(e,"_zod",rV),oV.value=r,Object.defineProperty(e,"issues",oV),rV.value=void 0,oV.value=void 0,Object.defineProperty(e,"message",twt);let a=Object.getPrototypeOf(e);if(!nZe.has(a))nZe.add(a),Object.defineProperty(a,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}})},f3=kt("$ZodError",iZe),aV=kt("$ZodError",iZe,void 0,{Parent:Error});function rwt(e,r,a){if(!Object.prototype.hasOwnProperty.call(e,r))if(r==="__proto__")Object.defineProperty(e,r,{value:a(),writable:!0,enumerable:!0,configurable:!0});else e[r]=a();return e[r]}function fZe(e,r=(a)=>a.message){let a={},i=[];for(let s of e.issues)if(s.path.length>0)rwt(a,s.path[0],()=>[]).push(r(s));else i.push(r(s));return{formErrors:i,fieldErrors:a}}function sZe(e,r=(a)=>a.message){let a={_errors:[]},i=(s,l=[])=>{for(let c of s.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map((d)=>i({issues:d},[...l,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...l,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...l,...c.path]);else{let d=[...l,...c.path];if(d.length===0)a._errors.push(r(c));else{let m=a,g=0;while(g<d.length){let x=d[g],v=g===d.length-1;if(x==="_errors"){if(v)m._errors.push(r(c));g++;continue}if(!Object.prototype.hasOwnProperty.call(m,x))Object.defineProperty(m,x,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let b=m[x];if(v)b._errors.push(r(c));m=b,g++}}}};return i(e),a}function s3(e,r){return{callee:r?.callee??e,Err:r?.Err}}var l3=(e)=>{let r=(a,i,s,l)=>{let c=s?{...s,async:!1}:{async:!1},d=a._zod.run({value:i,issues:[]},c);if(d instanceof Promise)throw new lM;if(d.issues.length){let m=new(l?.Err??e)(d.issues.map((g)=>_Z(g,c,Jl())));throw GH(m,l?.callee??r),m}return d.value};return r};var c3=(e)=>{let r=async(a,i,s,l)=>{let c=s?{...s,async:!0}:{async:!0},d=a._zod.run({value:i,issues:[]},c);if(d instanceof Promise)d=await d;if(d.issues.length){let m=new(l?.Err??e)(d.issues.map((g)=>_Z(g,c,Jl())));throw GH(m,l?.callee??r),m}return d.value};return r};var YD=(e)=>(r,a,i)=>{let s=i?{...i,async:!1}:{async:!1},l=r._zod.run({value:a,issues:[]},s);if(l instanceof Promise)throw new lM;return l.issues.length?{success:!1,error:new(e??f3)(l.issues.map((c)=>_Z(c,s,Jl())))}:{success:!0,data:l.value}},lZe=YD(aV),qD=(e)=>async(r,a,i)=>{let s=i?{...i,async:!0}:{async:!0},l=r._zod.run({value:a,issues:[]},s);if(l instanceof Promise)l=await l;return l.issues.length?{success:!1,error:new e(l.issues.map((c)=>_Z(c,s,Jl())))}:{success:!0,data:l.value}},cZe=qD(aV);var uZe=(e)=>{let r=l3(e),a=(i,s,l,c)=>{let d=l?{...l,direction:"backward"}:{direction:"backward"};return r(i,s,d,s3(a,c))};return a};var dZe=(e)=>{let r=l3(e),a=(i,s,l,c)=>r(i,s,l,s3(a,c));return a};var ZZe=(e)=>{let r=c3(e),a=async(i,s,l,c)=>{let d=l?{...l,direction:"backward"}:{direction:"backward"};return await r(i,s,d,s3(a,c))};return a};var pZe=(e)=>{let r=c3(e),a=async(i,s,l,c)=>await r(i,s,l,s3(a,c));return a};var mZe=(e)=>(r,a,i)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return YD(e)(r,a,s)};var hZe=(e)=>(r,a,i)=>YD(e)(r,a,i);var gZe=(e)=>async(r,a,i)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return qD(e)(r,a,s)};var MZe=(e)=>async(r,a,i)=>qD(e)(r,a,i);var xZe=/^[cC][0-9a-z]{6,}$/,vZe=/^[0-9a-z]+$/,yZe=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,_Ze=/^[0-9a-vA-V]{20}$/,bZe=/^[A-Za-z0-9]{27}$/,wZe=/^[a-zA-Z0-9_-]{21}$/;function zZe(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var SZe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var LZe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,iV=(e)=>{if(!e)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var kZe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var awt="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function CZe(){return new RegExp(awt,"u")}var IZe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,RZe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var PZe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,TZe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,AZe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fV=/^[A-Za-z0-9_-]*$/;var EZe=/^https?$/,DZe=/^\+[1-9]\d{6,14}$/;var OZe="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function nwt(e){return new RegExp(`^${e}$`)}var NZe=nwt(OZe);function nV(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function FZe(e){return new RegExp(`^${nV(e)}$`)}function jZe(e){let r=["Z"];if(e.offset)r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${nV({precision:e.precision,seconds:!0})}(?:${r.join("|")})`,i=e.local?`${a}|${nV({precision:e.precision})}`:a;return new RegExp(`^${OZe}T(?:${i})$`)}var BZe=(e)=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},UZe=/^-?\d+n?$/,u3=/^-?\d+$/,HD=/^-?\d+(?:\.\d+)?$/,YZe=/^(?:true|false)$/i;var qZe=/^[^A-Z]*$/,HZe=/^[^a-z]*$/;var sf=kt("$ZodCheck",(e,r)=>{var a;e._zod??(e._zod={}),e._zod.def=r,(a=e._zod).onattach??(a.onattach=[])});var sV=(e)=>{let r=e.value;return!Yde(r)&&r.length!==void 0},d3={number:"number",bigint:"bigint",object:"date"},lV=kt("$ZodCheckLessThan",(e,r)=>{sf.init(e,r);let a=d3[typeof r.value];e._zod.onattach.push((i)=>{let s=i._zod.bag,l=(r.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(r.value<l)if(r.inclusive)s.maximum=r.value;else s.exclusiveMaximum=r.value}),e._zod.check=(i)=>{if(r.inclusive?i.value<=r.value:i.value<r.value)return;i.issues.push({origin:d3[typeof i.value]??a,code:"too_big",maximum:typeof r.value==="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),cV=kt("$ZodCheckGreaterThan",(e,r)=>{sf.init(e,r);let a=d3[typeof r.value];e._zod.onattach.push((i)=>{let s=i._zod.bag,l=(r.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(r.value>l)if(r.inclusive)s.minimum=r.value;else s.exclusiveMinimum=r.value}),e._zod.check=(i)=>{if(r.inclusive?i.value>=r.value:i.value>r.value)return;i.issues.push({origin:d3[typeof i.value]??a,code:"too_small",minimum:typeof r.value==="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),VZe=kt("$ZodCheckMultipleOf",(e,r)=>{sf.init(e,r),e._zod.onattach.push((a)=>{var i;(i=a._zod.bag).multipleOf??(i.multipleOf=r.value)}),e._zod.check=(a)=>{if(typeof a.value!==typeof r.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof a.value==="bigint"?r.value!==BigInt(0)&&a.value%r.value===BigInt(0):qde(a.value,r.value)===0)return;a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:r.value,input:a.value,inst:e,continue:!r.abort})}}),WZe=kt("$ZodCheckNumberFormat",(e,r)=>{sf.init(e,r),r.format=r.format||"float64";let a=r.format?.includes("int"),i=a?"int":"number",[s,l]=Qde[r.format];e._zod.onattach.push((c)=>{let d=c._zod.bag;if(d.format=r.format,d.minimum=s,d.maximum=l,a)d.pattern=u3}),e._zod.check=(c)=>{let d=c.value;if(a){if(!Number.isInteger(d)){c.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){if(d>0)c.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!r.abort});else c.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!r.abort});return}}if(d<s)c.issues.push({origin:"number",input:d,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!r.abort});if(d>l)c.issues.push({origin:"number",input:d,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!r.abort})}});var KZe=kt("$ZodCheckMaxLength",(e,r)=>{var a;sf.init(e,r),(a=e._zod.def).when??(a.when=sV),e._zod.onattach.push((i)=>{let s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;if(r.maximum<s)i._zod.bag.maximum=r.maximum}),e._zod.check=(i)=>{let s=i.value,l=s.length;if((typeof s==="string"&&l>r.maximum?n3(s):l)<=r.maximum)return;let d=i3(s);i.issues.push({origin:d,code:"too_big",maximum:r.maximum,inclusive:!0,input:s,inst:e,continue:!r.abort})}}),GZe=kt("$ZodCheckMinLength",(e,r)=>{var a;sf.init(e,r),(a=e._zod.def).when??(a.when=sV),e._zod.onattach.push((i)=>{let s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(r.minimum>s)i._zod.bag.minimum=r.minimum}),e._zod.check=(i)=>{let s=i.value,l=s.length;if((typeof s==="string"&&l>=r.minimum&&l<r.minimum*2?n3(s):l)>=r.minimum)return;let d=i3(s);i.issues.push({origin:d,code:"too_small",minimum:r.minimum,inclusive:!0,input:s,inst:e,continue:!r.abort})}}),XZe=kt("$ZodCheckLengthEquals",(e,r)=>{var a;sf.init(e,r),(a=e._zod.def).when??(a.when=sV),e._zod.onattach.push((i)=>{let s=i._zod.bag;s.minimum=r.length,s.maximum=r.length,s.length=r.length}),e._zod.check=(i)=>{let s=i.value,l=s.length,c=typeof s==="string"&&l>=r.length&&l<=r.length*2?n3(s):l;if(c===r.length)return;let d=i3(s),m=c>r.length;i.issues.push({origin:d,...m?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),WD=kt("$ZodCheckStringFormat",(e,r)=>{var a,i;if(sf.init(e,r),e._zod.onattach.push((s)=>{let l=s._zod.bag;if(l.format=r.format,r.pattern)l.patterns??(l.patterns=new Set),l.patterns.add(r.pattern)}),r.pattern)(a=e._zod).check??(a.check=(s)=>{if(r.pattern.lastIndex=0,r.pattern.test(s.value))return;s.issues.push({origin:"string",code:"invalid_format",format:r.format,input:s.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})});else(i=e._zod).check??(i.check=()=>{})}),QZe=kt("$ZodCheckRegex",(e,r)=>{WD.init(e,r),e._zod.check=(a)=>{if(r.pattern.lastIndex=0,r.pattern.test(a.value))return;a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),JZe=kt("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=qZe),WD.init(e,r)}),$Ze=kt("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=HZe),WD.init(e,r)}),epe=kt("$ZodCheckIncludes",(e,r)=>{sf.init(e,r);let a=A8(r.includes),i=new RegExp(typeof r.position==="number"?`^.{${r.position},}${a}`:a);r.pattern=i,e._zod.onattach.push((s)=>{let l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=(s)=>{if(s.value.includes(r.includes,r.position))return;s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:s.value,inst:e,continue:!r.abort})}}),tpe=kt("$ZodCheckStartsWith",(e,r)=>{sf.init(e,r);let a=new RegExp(`^${A8(r.prefix)}.*`);r.pattern??(r.pattern=a),e._zod.onattach.push((i)=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),e._zod.check=(i)=>{if(i.value.startsWith(r.prefix))return;i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:e,continue:!r.abort})}}),rpe=kt("$ZodCheckEndsWith",(e,r)=>{sf.init(e,r);let a=new RegExp(`.*${A8(r.suffix)}$`);r.pattern??(r.pattern=a),e._zod.onattach.push((i)=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),e._zod.check=(i)=>{if(i.value.endsWith(r.suffix))return;i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:e,continue:!r.abort})}});var ope=kt("$ZodCheckOverwrite",(e,r)=>{sf.init(e,r),e._zod.check=(a)=>{a.value=r.tx(a.value)}});class uV{constructor(e=[],r={}){this.content=[],this.indent=0,this.args=e,this.closed=r}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e==="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let a=e.split(`
145
- `).filter((l)=>l),i=Math.min(...a.map((l)=>l.length-l.trimStart().length)),s=a.map((l)=>l.slice(i)).map((l)=>" ".repeat(this.indent*2)+l);for(let l of s)this.content.push(l)}compile(){let e=Function,r=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
146
- ${r.join(`
147
- `)}
148
- };`)(...Object.values(this.closed))}}var npe={major:4,minor:5,patch:4};var wa=kt("$ZodType",(e,r)=>{var a;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=npe;let i=e._zod.def.checks,s=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let l of s)for(let c of l._zod.onattach)c(e);if(s.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let l=(d,m,g)=>{if(d.memo)return d;let x=yL(d),v;for(let b of m){if(b._zod.def.when){if($de(d))continue;if(!b._zod.def.when(d))continue}else if(x)continue;let _=d.issues.length,z=b._zod.check(d);if(z instanceof Promise&&g?.async===!1)throw new lM;if(v||z instanceof Promise)v=(v??Promise.resolve()).then(async()=>{if(await z,d.issues.length===_)return;if(JH(d.issues,_,e),!x)x=yL(d,_)});else{if(d.issues.length===_)continue;if(JH(d.issues,_,e),!x)x=yL(d,_)}}if(v)return v.then(()=>d);return d},c=(d,m,g)=>{if(yL(d))return d.aborted=!0,d;let x=l(m,s,g);if(x instanceof Promise){if(g.async===!1)throw new lM;return x.then((v)=>e._zod.parse(v,g))}return e._zod.parse(x,g)};e._zod.run=(d,m)=>{if(m.skipChecks)return e._zod.parse(d,m);if(m.direction==="backward"){let x=e._zod.parse({value:d.value,issues:[]},{...m,skipChecks:!0});if(x instanceof Promise)return x.then((v)=>c(v,d,m));return c(x,d,m)}let g=e._zod.parse(d,m);if(g instanceof Promise){if(m.async===!1)throw new lM;return g.then((x)=>l(x,s,m))}return l(g,s,m)}}},{get "~standard"(){return $H(this,"~standard",pV(this))},set "~standard"(e){xL(this,"~standard",e)}}),ipe=(e)=>e.success?{value:e.data}:{issues:e.error?.issues};function pV(e){return{validate:(r)=>{try{return ipe(lZe(e,r))}catch(a){return cZe(e,r).then(ipe)}},vendor:"zod",version:1}}var m3=kt("$ZodString",(e,r)=>{wa.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??BZe(e._zod.bag),e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=String(a.value)}catch(s){}if(typeof a.value==="string")return a;return a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Zn=kt("$ZodStringFormat",(e,r)=>{WD.init(e,r),m3.init(e,r)}),hpe=kt("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=LZe),Zn.init(e,r)}),gpe=kt("$ZodUUID",(e,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=iV(i))}else r.pattern??(r.pattern=iV());Zn.init(e,r)}),Mpe=kt("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=kZe),Zn.init(e,r)}),xpe=1,vpe=2;function iwt(e,r){if(!r.normalize&&r.protocol?.source===EZe.source&&!/^https?:\/\//i.test(e))return xpe;try{return new URL(e)}catch{return vpe}}var fwt=/[\t\n\r]/g;function swt(e){return e.replace(fwt,"")}function lwt(e,r){return r.lastIndex=0,r.test(e.hostname)}function cwt(e,r){return r.lastIndex=0,r.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var ype=kt("$ZodURL",(e,r)=>{Zn.init(e,r),e._zod.check=(a)=>{try{let i=a.value.trim(),s=iwt(i,r);if(s===xpe){a.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:a.value,inst:e,continue:!r.abort});return}if(s===vpe){a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!r.abort});return}if(r.hostname&&!lwt(s,r.hostname))a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:a.value,inst:e,continue:!r.abort});if(r.protocol&&!cwt(s,r.protocol))a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:a.value,inst:e,continue:!r.abort});a.value=r.normalize?s.href:swt(i);return}catch(i){a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!r.abort})}}}),_pe=kt("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=CZe()),Zn.init(e,r)}),bpe=kt("$ZodNanoID",(e,r)=>{if(r.length!==void 0&&(!Number.isInteger(r.length)||r.length<1))throw Error(`Invalid nanoid length: ${r.length}`);r.pattern??(r.pattern=r.length===void 0?wZe:zZe(r.length)),Zn.init(e,r)}),wpe=kt("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=xZe),Zn.init(e,r)}),zpe=kt("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=vZe),Zn.init(e,r)}),Spe=kt("$ZodULID",(e,r)=>{r.pattern??(r.pattern=yZe),Zn.init(e,r)}),Lpe=kt("$ZodXID",(e,r)=>{r.pattern??(r.pattern=_Ze),Zn.init(e,r)}),kpe=kt("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=bZe),Zn.init(e,r)}),Cpe=kt("$ZodISODateTime",(e,r)=>{if(r.pattern??(r.pattern=jZe(r)),Zn.init(e,r),r.local||r.precision===-1)e._zod.bag.laxFormat=!0,e._zod.onattach.push((a)=>{a._zod.bag.laxFormat=!0})}),Ipe=kt("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=NZe),Zn.init(e,r)}),Rpe=kt("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=FZe(r)),Zn.init(e,r)}),Ppe=kt("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=SZe),Zn.init(e,r)}),Tpe=kt("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=IZe),Zn.init(e,r),e._zod.bag.format="ipv4"}),uwt=/^[0-9a-fA-F:.]+$/;function Ape(e){if(!uwt.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Epe=kt("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=RZe),Zn.init(e,r),e._zod.bag.format="ipv6",e._zod.check=(a)=>{if(!Ape(a.value))a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!r.abort})}});var Dpe=kt("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=PZe),Zn.init(e,r)});function dwt(e){let r=e.split("/");if(r.length!==2)return!1;let[a,i]=r;if(!i)return!1;let s=Number(i);if(`${s}`!==i)return!1;if(s<0||s>128)return!1;return Ape(a)}var Ope=kt("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=TZe),Zn.init(e,r),e._zod.check=(a)=>{if(!dwt(a.value))a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!r.abort})}});function Npe(e){if(e==="")return!0;if(/\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Fpe=kt("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=AZe),Zn.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=(a)=>{if(Npe(a.value))return;a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!r.abort})}});function Zwt(e){if(!fV.test(e))return!1;let r=e.replace(/[-_]/g,(i)=>i==="-"?"+":"/"),a=r.padEnd(Math.ceil(r.length/4)*4,"=");return Npe(a)}var jpe=kt("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=fV),Zn.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=(a)=>{if(Zwt(a.value))return;a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!r.abort})}}),Bpe=kt("$ZodE164",(e,r)=>{r.pattern??(r.pattern=DZe),Zn.init(e,r)});function pwt(e,r=null){try{let a=e.split(".");if(a.length!==3)return!1;let[i]=a;if(!i)return!1;let s=JSON.parse(atob(i));if("typ"in s&&s?.typ!=="JWT")return!1;if(!s.alg)return!1;if(r&&(!("alg"in s)||s.alg!==r))return!1;return!0}catch{return!1}}var Upe=kt("$ZodJWT",(e,r)=>{Zn.init(e,r),e._zod.check=(a)=>{if(pwt(a.value,r.alg))return;a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!r.abort})}});var mV=kt("$ZodNumber",(e,r)=>{wa.init(e,r),e._zod.pattern=e._zod.bag.pattern??HD,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=Number(a.value)}catch(c){}let s=a.value;if(typeof s==="number"&&!Number.isNaN(s)&&Number.isFinite(s))return a;let l=typeof s==="number"?Number.isNaN(s)?"NaN":!Number.isFinite(s)?String(s):void 0:void 0;return a.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...l?{received:l}:{}}),a}}),Ype=kt("$ZodNumberFormat",(e,r)=>{WZe.init(e,r),mV.init(e,r)}),qpe=kt("$ZodBoolean",(e,r)=>{wa.init(e,r),e._zod.pattern=YZe,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=Boolean(a.value)}catch(l){}let s=a.value;if(typeof s==="boolean")return a;return a.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),a}}),Hpe=kt("$ZodBigInt",(e,r)=>{wa.init(e,r),e._zod.pattern=UZe,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=BigInt(a.value)}catch(s){}if(typeof a.value==="bigint")return a;return a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}});var Vpe=kt("$ZodAny",(e,r)=>{wa.init(e,r),e._zod.parse=(a)=>a}),Wpe=kt("$ZodUnknown",(e,r)=>{wa.init(e,r),e._zod.parse=(a)=>a}),Kpe=kt("$ZodNever",(e,r)=>{wa.init(e,r),e._zod.parse=(a,i)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});var Gpe=kt("$ZodDate",(e,r)=>{wa.init(e,r),e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=new Date(a.value)}catch(d){}let s=a.value,l=s instanceof Date;if(l&&!Number.isNaN(s.getTime()))return a;return a.issues.push({expected:"date",code:"invalid_type",input:s,...l?{received:"Invalid Date"}:{},inst:e}),a}});function fpe(e,r,a){if(e.issues.length)r.issues.push(...E8(a,e.issues));r.value[a]=e.value}var Xpe=kt("$ZodArray",(e,r)=>{wa.init(e,r);let a=tl.memoizer;a?.attach(e),e._zod.parse=(i,s)=>{let l=i.value;if(!Array.isArray(l))return i.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),i;i.value=a?a.alloc(e,i,Array(l.length),s):Array(l.length);let c=[];for(let d=0;d<l.length;d++){let m=l[d],g=r.element._zod.run({value:m,issues:[]},s);if(g instanceof Promise)c.push(g.then((x)=>fpe(x,i,d)));else fpe(g,i,d)}if(c.length)return Promise.all(c).then(()=>i);return i}});function p3(e,r,a,i,s,l){let c=a in i,d=l==="optional";if(!c&&d&&s==="optional")return;if(e.issues.length){if(s!==void 0&&d&&!c)return;r.issues.push(...E8(a,e.issues))}if(!c&&s===void 0){if(!e.issues.length)r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}if(e.value===void 0){if(c)r.value[a]=void 0}else r.value[a]=e.value}var mwt=[];function Qpe(e){let r=Object.keys(e.shape),a=Object.getOwnPropertySymbols(e.shape),i=a.length?a:mwt,s=i.length?[...r,...i]:r;for(let c of s)if(!e.shape?.[c]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(c)}": expected a Zod schema`);let l=Xde(e.shape);return{...e,allKeys:s,symbolKeys:i,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(l)}}function Jpe(e,r,a,i,s,l){let c=[],d=s.keySet,m=s.catchall._zod,g=m.def.type,{optin:x,optout:v}=m;for(let b in r){if(d.has(b))continue;if(b==="__proto__"){if(g==="never")c.push(b);continue}if(g==="never"){c.push(b);continue}let _=m.run({value:r[b],issues:[]},i);if(_ instanceof Promise)e.push(_.then((z)=>p3(z,a,b,r,x,v)));else p3(_,a,b,r,x,v)}if(c.length)a.issues.push({code:"unrecognized_keys",keys:c,input:r,inst:l,continue:!0});if(!e.length)return a;return Promise.all(e).then(()=>a)}var dV=new WeakMap,hwt=kt("$ZodObject",(e,r)=>{if(wa.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let m=r.shape;dV.set(r,m),Object.defineProperty(r,"shape",{get:()=>{let g={...m};return Object.defineProperty(r,"shape",{value:g}),dV.set(r,g),g}})}let i=BD(()=>Qpe(r));Po(e,"propValues",(m)=>{let g=m.def.shape,x={};for(let v in g){let b=g[v]._zod;if(b.values){if(!Object.prototype.hasOwnProperty.call(x,v))ji(x,v,new Set);for(let _ of b.values)x[v].add(_);if(b.optin!==void 0)x[v].add(void 0)}}return x});let s=yR,l=r.catchall,c,d=tl.memoizer;d?.attach(e),e._zod.parse=(m,g)=>{c??(c=i.value);let x=m.value;if(!s(x))return m.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),m;m.value=d?d.alloc(e,m,{},g):{};let v=[],b=c.shape;for(let _ of c.allKeys){if(_==="__proto__")continue;let z=b[_],k=z._zod.optin,U=z._zod.optout,P=z._zod.run({value:x[_],issues:[]},g);if(P instanceof Promise)v.push(P.then((T)=>p3(T,m,_,x,k,U)));else p3(P,m,_,x,k,U)}if(!l)return v.length?Promise.all(v).then(()=>m):m;return Jpe(v,x,m,g,i.value,e)}}),$pe=kt("$ZodObjectJIT",(e,r)=>{hwt.init(e,r);let a=e._zod.parse,i=BD(()=>Qpe(r)),s=tl.memoizer,l=(_)=>{let z=i.value,k=z.symbolKeys,U=new uV(["payload","ctx"],{shape:_,inst:e,memo:s,syms:k}),P=(J)=>`shape[${J}]._zod.run({ value: input[${J}], issues: [] }, ctx)`,T=(J,ee)=>`
149
- for (let i = 0; i < ${J}.issues.length; i++) {
150
- const iss = ${J}.issues[i];
151
- iss.path = iss.path ? [${ee}, ...iss.path] : [${ee}];
152
- payload.issues.push(iss);
153
- }`;U.write("const input = payload.value;");let G=Object.create(null),X=0;for(let J of z.allKeys)G[J]=`key_${X++}`;U.write(s?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let J of z.allKeys){if(J==="__proto__")continue;let ee=G[J],re=typeof J==="symbol"?`syms[${k.indexOf(J)}]`:Vde(J),oe=`${re} in input`,ie=_[J],ye=ie?._zod?.optin,We=ye!==void 0,Ye=ie?._zod?.optout==="optional";if(U.write(`const ${ee} = ${P(re)};`),We&&Ye){let Se=ye==="optional"?`${ee}_present`:`${ee}.value !== undefined || ${ee}_present`;U.write(`
154
- const ${ee}_present = ${oe};
155
- if (!${ee}.issues.length || ${ee}_present) {
156
- if (${ee}.issues.length) {${T(ee,re)}
157
- }
158
-
159
- if (${Se}) {
160
- newResult[${re}] = ${ee}.value;
161
- }
162
- }
163
-
164
- `)}else if(!We)U.write(`
165
- const ${ee}_present = ${oe};
166
- if (${ee}.issues.length) {${T(ee,re)}
167
- }
168
- if (!${ee}_present && !${ee}.issues.length) {
169
- payload.issues.push({
170
- code: "invalid_type",
171
- expected: "nonoptional",
172
- input: undefined,
173
- path: [${re}]
174
- });
175
- }
176
-
177
- if (${ee}_present) {
178
- newResult[${re}] = ${ee}.value;
179
- }
180
-
181
- `);else U.write(`
182
- if (${ee}.issues.length) {${T(ee,re)}
183
- }
184
-
185
- if (${ee}.value === undefined) {
186
- if (${oe}) {
187
- newResult[${re}] = undefined;
188
- }
189
- } else {
190
- newResult[${re}] = ${ee}.value;
191
- }
192
-
193
- `)}return U.write("payload.value = newResult;"),U.write("return payload;"),U.compile()},c,d=yR,m=!tl.jitless,x=m&&Kde.value,v=r.catchall,b;e._zod.parse=(_,z)=>{b??(b=i.value);let k=_.value;if(!d(k))return _.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),_;if(m&&x&&z?.async===!1&&z.jitless!==!0){if(!c)c=l(r.shape);if(_=c(_,z),!v)return _;return Jpe([],k,_,z,b,e)}return a(_,z)}});function spe(e,r,a,i){for(let l of e)if(l.issues.length===0)return r.value=l.value,r;let s=e.filter((l)=>!yL(l));if(s.length===1)return r.value=s[0].value,s[0];return r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:e.map((l)=>l.issues.map((c)=>_Z(c,i,Jl())))}),r}var hV=kt("$ZodUnion",(e,r)=>{wa.init(e,r),Po(e,"optin",(i)=>i.def.options.some((s)=>s._zod.optin==="defaulted")?"defaulted":i.def.options.some((s)=>s._zod.optin!==void 0)?"optional":void 0),Po(e,"optout",(i)=>i.def.options.some((s)=>s._zod.optout==="optional")?"optional":void 0),Po(e,"values",(i)=>{if(i.def.options.every((s)=>s._zod.values))return new Set(i.def.options.flatMap((s)=>Array.from(s._zod.values)));return}),Po(e,"pattern",(i)=>{if(i.def.options.every((s)=>s._zod.pattern)){let s=i.def.options.map((l)=>l._zod.pattern);return new RegExp(`^(${s.map((l)=>a3(l.source)).join("|")})$`)}return});let a=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(i,s)=>{if(a)return a(i,s);let l=!1,c=[];for(let d of r.options){let m=d._zod.run({value:i.value,issues:[]},s);if(m instanceof Promise)c.push(m),l=!0;else{if(m.issues.length===0)return m;c.push(m)}}if(!l)return spe(c,i,e,s);return Promise.all(c).then((d)=>spe(d,i,e,s))}});var eme=kt("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,hV.init(e,r);let a=e._zod.parse;Po(e,"propValues",(s)=>{let l={};for(let c of s.def.options){let d=c._zod.propValues;if(!d||Object.keys(d).length===0)throw Error(`Invalid discriminated union option at index "${s.def.options.indexOf(c)}"`);for(let[m,g]of Object.entries(d)){if(!Object.prototype.hasOwnProperty.call(l,m))ji(l,m,new Set);for(let x of g)l[m].add(x)}}return l}),r.options.forEach((s,l)=>{let c=dV.get(s._zod.def);if(c&&!Object.prototype.hasOwnProperty.call(c,r.discriminator))throw Error(`Invalid discriminated union option at index "${l}"`)});let i=BD(()=>{let s=r.options,l=new Map;for(let c of s){let d=c._zod.propValues?.[r.discriminator];if(!d||d.size===0)throw Error(`Invalid discriminated union option at index "${r.options.indexOf(c)}"`);for(let m of d){if(l.has(m))throw Error(`Duplicate discriminator value "${String(m)}"`);l.set(m,c)}}return l});e._zod.parse=(s,l)=>{let c=s.value;if(!yR(c))return s.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),s;let d=i.value.get(c?.[r.discriminator]);if(d)return d._zod.run(s,l);if(r.unionFallback||l.direction==="backward")return a(s,l);return s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(i.value.keys()),input:c,path:[r.discriminator],inst:e}),s}}),tme=kt("$ZodIntersection",(e,r)=>{wa.init(e,r),e._zod.parse=(a,i)=>{let s=a.value,l=r.left._zod.run({value:s,issues:[]},i),c=r.right._zod.run({value:s,issues:[]},i);if(l instanceof Promise||c instanceof Promise)return Promise.all([l,c]).then(([m,g])=>lpe(a,m,g));return lpe(a,l,c)}});function ZV(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e===+r)return{valid:!0,data:e};if(vL(e)&&vL(r)){let a=Object.keys(r),i=Object.keys(e).filter((l)=>a.indexOf(l)!==-1),s={...e,...r};if(Object.prototype.hasOwnProperty.call(s,"__proto__"))delete s.__proto__;for(let l of i){if(l==="__proto__")continue;let c=ZV(e[l],r[l]);if(!c.valid)return{valid:!1,mergeErrorPath:[l,...c.mergeErrorPath]};s[l]=c.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let i=0;i<e.length;i++){let s=e[i],l=r[i],c=ZV(s,l);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};a.push(c.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function lpe(e,r,a){let i=new Map,s,l=new Map,c=(g,x)=>{let v;if(g.code==="unrecognized_keys"&&!g.path?.length)s??(s=g),v=g.keys;else if(g.code==="invalid_key"&&g.origin==="record"&&g.path?.length===1){let b=String(g.path[0]);if(!l.has(b))l.set(b,g);v=[b]}else return!1;for(let b of v){if(!i.has(b))i.set(b,{});i.get(b)[x]=!0}return!0};for(let g of r.issues)if(!c(g,"l"))e.issues.push(g);for(let g of a.issues)if(!c(g,"r"))e.issues.push(g);let d=[...i].filter(([,g])=>g.l&&g.r).map(([g])=>g);if(d.length){let g=s?d.filter((x)=>s.keys.includes(x)):[];if(g.length)e.issues.push({...s,keys:g});for(let x of d)if(!g.includes(x)&&l.has(x))e.issues.push(l.get(x))}let m=ZV(r.value,a.value);if(!m.valid){if(yL(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(m.mergeErrorPath)}`)}return e.value=m.data,e}var rme=kt("$ZodRecord",(e,r)=>{wa.init(e,r);let a=tl.memoizer;a?.attach(e),e._zod.parse=(i,s)=>{let l=i.value;if(!vL(l))return i.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),i;let c=[],d=r.keyType._zod.values;if(d&&!r.partial){i.value=a?a.alloc(e,i,{},s):{};let m=new Set;for(let x of d)if(typeof x==="string"||typeof x==="number"||typeof x==="symbol"){if(m.add(typeof x==="number"?x.toString():x),x==="__proto__")continue;let v=r.keyType._zod.run({value:x,issues:[]},s);if(v instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(v.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:v.issues.map((z)=>_Z(z,s,Jl())),input:x,path:[x],inst:e});continue}let b=v.value;if(b==="__proto__")continue;let _=r.valueType._zod.run({value:l[x],issues:[]},s);if(_ instanceof Promise)c.push(_.then((z)=>{if(z.issues.length)i.issues.push(...E8(x,z.issues));i.value[b]=z.value}));else{if(_.issues.length)i.issues.push(...E8(x,_.issues));i.value[b]=_.value}}let g;for(let x in l)if(!m.has(x))if(r.mode==="loose"){if(x==="__proto__")continue;i.value[x]=l[x]}else g=g??[],g.push(x);if(g&&g.length>0)i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:g,continue:!0})}else{i.value=a?a.alloc(e,i,{},s):{};let m;for(let g of Reflect.ownKeys(l)){if(g==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(l,g))continue;let x=r.keyType._zod.run({value:g,issues:[]},s);if(x instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof g==="string"&&HD.test(g)&&x.issues.length){let z=r.keyType._zod.run({value:Number(g),issues:[]},s);if(z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(z.issues.length===0)x=z}if(x.issues.length){if(r.mode==="loose")i.value[g]=l[g];else if(d)m=m??[],m.push(g);else i.issues.push({code:"invalid_key",origin:"record",issues:x.issues.map((z)=>_Z(z,s,Jl())),input:g,path:[g],inst:e});continue}let b=x.value;if(b==="__proto__")continue;let _=r.valueType._zod.run({value:l[g],issues:[]},s);if(_ instanceof Promise)c.push(_.then((z)=>{if(z.issues.length)i.issues.push(...E8(g,z.issues));i.value[b]=z.value}));else{if(_.issues.length)i.issues.push(...E8(g,_.issues));i.value[b]=_.value}}if(m&&m.length>0)i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:m,continue:!0})}if(c.length)return Promise.all(c).then(()=>i);return i}});var ome=kt("$ZodEnum",(e,r)=>{wa.init(e,r);let a=o3(r.entries),i=new Set(a);e._zod.values=i;let s=a.filter((l)=>Gde.has(typeof l));e._zod.pattern=new RegExp(s.length?`^(${s.map((l)=>A8(l.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(l,c)=>{let d=l.value;if(i.has(d))return l;return l.issues.push({code:"invalid_value",values:a,input:d,inst:e}),l}}),ame=kt("$ZodLiteral",(e,r)=>{wa.init(e,r);let a=new Set(r.values);e._zod.values=a,e._zod.pattern=new RegExp(r.values.length?`^(${r.values.map((i)=>typeof i==="string"?A8(i):i?A8(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(i,s)=>{let l=i.value;if(a.has(l))return i;return i.issues.push({code:"invalid_value",values:r.values,input:l,inst:e}),i}});var nme=kt("$ZodTransform",(e,r)=>{wa.init(e,r),e._zod.optin="optional",tl.memoizer?.guard(e),e._zod.parse=(a,i)=>{if(i.direction==="backward")throw new UD(e.constructor.name);let s=r.transform(a.value,a);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then((c)=>(a.value=c,a));if(s instanceof Promise)throw new lM;return a.value=s,a}});function cpe(e,r){return e.value=r.issues.length?void 0:r.value,e}var gV=kt("$ZodOptional",(e,r)=>{wa.init(e,r),Po(e,"optin",(a)=>a.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Po(e,"values",(a)=>{let i=a.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),Po(e,"pattern",(a)=>{let i=a.def.innerType._zod.pattern;return i?new RegExp(`^(${a3(i.source)})?$`):void 0}),e._zod.parse=(a,i)=>{if(a.value===void 0){if(r.innerType._zod.optin!=="defaulted")return a;let s=r.innerType._zod.run({value:a.value,issues:[]},i);if(s instanceof Promise)return s.then((l)=>cpe(a,l));return cpe(a,s)}return r.innerType._zod.run(a,i)}}),ime=kt("$ZodExactOptional",(e,r)=>{gV.init(e,r),Po(e,"values",(a)=>a.def.innerType._zod.values),Po(e,"pattern",(a)=>a.def.innerType._zod.pattern),e._zod.parse=(a,i)=>r.innerType._zod.run(a,i)}),fme=kt("$ZodNullable",(e,r)=>{wa.init(e,r),Po(e,"optin",(a)=>a.def.innerType._zod.optin),Po(e,"optout",(a)=>a.def.innerType._zod.optout),Po(e,"pattern",(a)=>{let i=a.def.innerType._zod.pattern;return i?new RegExp(`^(${a3(i.source)}|null)$`):void 0}),Po(e,"values",(a)=>a.def.innerType._zod.values?new Set([...a.def.innerType._zod.values,null]):void 0),e._zod.parse=(a,i)=>{if(a.value===null)return a;return r.innerType._zod.run(a,i)}}),sme=kt("$ZodDefault",(e,r)=>{wa.init(e,r),e._zod.optin="defaulted",Po(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);if(a.value===void 0)return a.value=r.defaultValue,a;let s=r.innerType._zod.run(a,i);if(s instanceof Promise)return s.then((l)=>upe(l,r));return upe(s,r)}});function upe(e,r){if(e.value===void 0)e.value=r.defaultValue;return e}var lme=kt("$ZodPrefault",(e,r)=>{wa.init(e,r),e._zod.optin="defaulted",Po(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);if(a.value===void 0)a.value=r.defaultValue;return r.innerType._zod.run(a,i)}}),cme=kt("$ZodNonOptional",(e,r)=>{wa.init(e,r),Po(e,"values",(a)=>{let i=a.def.innerType._zod.values;return i?new Set([...i].filter((s)=>s!==void 0)):void 0}),e._zod.parse=(a,i)=>{let s=r.innerType._zod.run(a,i);if(s instanceof Promise)return s.then((l)=>dpe(l,e));return dpe(s,e)}});function dpe(e,r){if(!e.issues.length&&e.value===void 0)e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r});return e}function Zpe(e,r,a,i){if(!r.issues.length){if(e.value=r.value,r.memo)e.memo=!0;return e}return e.value=a.catchValue({...r,value:e.value,error:{issues:r.issues.map((s)=>_Z(s,i,Jl()))},input:e.value}),e}var ume=kt("$ZodCatch",(e,r)=>{wa.init(e,r),Po(e,"optin",(a)=>a.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Po(e,"optout",(a)=>a.def.innerType._zod.optout),Po(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);let s=r.innerType._zod.run({value:a.value,issues:[]},i);if(s instanceof Promise)return s.then((l)=>Zpe(a,l,r,i));return Zpe(a,s,r,i)}});var dme=kt("$ZodPipe",(e,r)=>{wa.init(e,r),Po(e,"values",(a)=>a.def.in._zod.values),Po(e,"optin",(a)=>a.def.in._zod.optin),Po(e,"optout",(a)=>a.def.out._zod.optout),Po(e,"propValues",(a)=>a.def.in._zod.propValues),e._zod.parse=(a,i)=>{if(i.direction==="backward"){let l=r.out._zod.run(a,i);if(l instanceof Promise)return l.then((c)=>Z3(c,r.in,i));return Z3(l,r.in,i)}let s=r.in._zod.run(a,i);if(s instanceof Promise)return s.then((l)=>Z3(l,r.out,i));return Z3(s,r.out,i)}});function Z3(e,r,a){if(e.issues.some((i)=>i.code!=="unrecognized_keys"))return e.aborted=!0,e;return r._zod.run({value:e.value,issues:e.issues},a)}var Zme=kt("$ZodReadonly",(e,r)=>{wa.init(e,r),Po(e,"propValues",(a)=>a.def.innerType._zod.propValues),Po(e,"values",(a)=>a.def.innerType._zod.values),Po(e,"optin",(a)=>a.def.innerType?._zod?.optin),Po(e,"optout",(a)=>a.def.innerType?._zod?.optout),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);let s=r.innerType._zod.run(a,i);if(s instanceof Promise)return s.then(ppe);return ppe(s)}});function ppe(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var pme=kt("$ZodLazy",(e,r)=>{wa.init(e,r),Hde(e._zod,"innerType",()=>{let a=r;if(!a._cachedInner)a._cachedInner=r.getter();return a._cachedInner}),Po(e,"pattern",(a)=>a.innerType?._zod?.pattern),Po(e,"propValues",(a)=>a.innerType?._zod?.propValues),Po(e,"optin",(a)=>a.innerType?._zod?.optin??void 0),Po(e,"optout",(a)=>a.innerType?._zod?.optout??void 0),e._zod.parse=(a,i)=>e._zod.innerType._zod.run(a,i)}),mme=kt("$ZodCustom",(e,r)=>{sf.init(e,r),wa.init(e,r),e._zod.parse=(a,i)=>a,e._zod.check=(a)=>{let i=a.value,s=r.fn(i);if(s instanceof Promise)return s.then((l)=>mpe(l,a,i,e));mpe(s,a,i,e);return}});function mpe(e,r,a,i){if(!e){let s={code:"custom",input:a,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};if(i._zod.def.params)s.params=i._zod.def.params;r.issues.push(_L(s))}}class Mme extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var xV="~memo",hme=[];function MV(e){return e.map((r)=>r.path?{...r,path:r.path.slice()}:{...r})}var gme=new WeakMap;function xme(e,r){let a=gme.get(e);if(a!==void 0)return a;if(r.has(e))return!0;r.add(e);let i=!1,s=(d)=>{if(!i&&d?._zod&&xme(d,r))i=!0},l=e._zod.def,c=l.type;switch(c){case"object":{for(let d of Reflect.ownKeys(l.shape))s(l.shape[d]);s(l.catchall);break}case"array":s(l.element);break;case"tuple":for(let d of l.items)s(d);s(l.rest);break;case"record":case"map":s(l.keyType),s(l.valueType);break;case"set":s(l.valueType);break;case"union":for(let d of l.options)s(d);break;case"intersection":s(l.left),s(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":s(l.innerType);break;case"pipe":s(l.in),s(l.out);break;case"function":s(l.input),s(l.output);break;case"lazy":s(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let d in l){let m=Object.getOwnPropertyDescriptor(l,d);if(!m||m.get)continue;let g=m.value;if(!g||typeof g!=="object")continue;if(g._zod)s(g);else if(Array.isArray(g))for(let x of g)s(x)}}return r.delete(e),gme.set(e,i),i}function gwt(e,r){let a=e.buckets.get(r);if(!a)a=new Map,e.buckets.set(r,a);return a}var h3,g3=[],Mwt={alloc(e,r,a){let i=h3;if(!i)return a;h3=void 0;let s={value:a,issues:null};return i.set(r.value,s),g3.push(s),a},guard(e){var r;(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,i=(s,l)=>{if(l.direction!=="backward"&&xwt(l,s.value))throw new Mme;return a(s,l)};if(e._zod.parse=i,e._zod.run===a)e._zod.run=i})},attach(e){var r;let a,i,s;(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred.push(()=>{let l=e._zod.parse,c=(d,m)=>{if(a===void 0){if(a=xme(e,new Set),!a){if(e._zod.parse=l,e._zod.run===c)e._zod.run=l;return l(d,m)}}let g=d.value;if(g===null||typeof g!=="object")return l(d,m);let x=m[xV];if(!x)x={buckets:new Map,backEdges:void 0},m[xV]=x;let v;if(i===m)v=s;else v=gwt(x,e),i=m,s=v;let b=v.get(g);if(b){if(d.value=b.value,b.issues){if(b.issues.length)d.issues.push(...MV(b.issues))}else d.memo=!0,x.backEdges??(x.backEdges=new Set),x.backEdges.add(b.value);return d}h3=v;let _=g3.length,z=l(d,m);h3=void 0;let k=g3.length>_?g3.pop():void 0;if(z instanceof Promise)return z.then((U)=>{if(k)k.issues=U.issues.length?MV(U.issues):hme;return U});if(k)k.issues=z.issues.length?MV(z.issues):hme;return z};if(e._zod.parse=c,e._zod.run===l)e._zod.run=c})}};function vme(){return Mwt}function xwt(e,r){let a=e[xV]?.backEdges;return a!==void 0&&r!==null&&typeof r==="object"&&a.has(r)}var vwt=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(l){return e[l]??null}let a={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function s(l,c){if(l==="number"&&typeof c==="number"&&!Number.isFinite(c))return String(c);return i[l]??l}return(l)=>{switch(l.code){case"invalid_type":{let c=s(l.expected),d=eZe(l.input),m=s(d,l.input);return`Invalid input: expected ${c}, received ${m}`}case"invalid_value":if(l.values.length===1)return`Invalid input: expected ${QH(l.values[0])}`;return`Invalid option: expected one of ${KH(l.values,"|")}`;case"too_big":{let c=l.exact?"exactly ":l.inclusive?"<=":"<",d=r(l.origin);if(d)return`Too big: expected ${l.origin??"value"} to have ${c}${l.maximum.toString()} ${d.unit??"elements"}`;return`Too big: expected ${l.origin??"value"} to be ${c}${l.maximum.toString()}`}case"too_small":{let c=l.exact?"exactly ":l.inclusive?">=":">",d=r(l.origin);if(d)return`Too small: expected ${l.origin} to have ${c}${l.minimum.toString()} ${d.unit}`;return`Too small: expected ${l.origin} to be ${c}${l.minimum.toString()}`}case"invalid_format":{let c=l;if(c.format==="starts_with")return`Invalid string: must start with "${c.prefix}"`;if(c.format==="ends_with")return`Invalid string: must end with "${c.suffix}"`;if(c.format==="includes")return`Invalid string: must include "${c.includes}"`;if(c.format==="regex")return`Invalid string: must match pattern ${c.pattern}`;return`Invalid ${a[c.format]??l.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${l.divisor}`;case"unrecognized_keys":return`Unrecognized key${l.keys.length>1?"s":""}: ${KH(l.keys,", ")}`;case"invalid_key":return`Invalid key in ${l.origin}`;case"invalid_union":if(l.options&&Array.isArray(l.options)&&l.options.length>0)return`Invalid discriminator value. Expected ${l.options.map((d)=>`'${d}'`).join(" | ")}`;if(l.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${l.origin}`;default:return"Invalid input"}}};function vV(){return{localeError:vwt()}}var yme;class _me{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let a=r[0];if(this._map.set(e,a),a&&typeof a==="object"&&"id"in a)this._idmap.set(a.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);if(r&&typeof r==="object"&&"id"in r)this._idmap.delete(r.id);return this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let i={...a,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function ywt(){return new _me}(yme=globalThis).__zod_globalRegistry??(yme.__zod_globalRegistry=ywt());var bL=globalThis.__zod_globalRegistry;function bme(e,r){return new e({type:"string",..._r(r)})}function wme(e,r){return new e({type:"string",coerce:!0,..._r(r)})}function zme(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._r(r)})}function Sme(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._r(r)})}function Lme(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._r(r)})}function kme(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._r(r)})}function Cme(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._r(r)})}function Ime(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._r(r)})}function Rme(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._r(r)})}function Pme(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._r(r)})}function Tme(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._r(r)})}function Ame(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._r(r)})}function Eme(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._r(r)})}function Dme(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._r(r)})}function Ome(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._r(r)})}function Nme(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._r(r)})}function Fme(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._r(r)})}function jme(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._r(r)})}function Bme(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._r(r)})}function Ume(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._r(r)})}function Yme(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._r(r)})}function qme(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._r(r)})}function Hme(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._r(r)})}function Vme(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._r(r)})}function Wme(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._r(r)})}function Kme(e,r){return new e({type:"string",format:"date",check:"string_format",..._r(r)})}function Gme(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,..._r(r)})}function Xme(e,r){return new e({type:"string",format:"duration",check:"string_format",..._r(r)})}function Qme(e,r){return new e({type:"number",checks:[],..._r(r)})}function Jme(e,r){return new e({type:"number",coerce:!0,checks:[],..._r(r)})}function $me(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._r(r)})}function ehe(e,r){return new e({type:"boolean",..._r(r)})}function the(e,r){return new e({type:"boolean",coerce:!0,..._r(r)})}function rhe(e,r){return new e({type:"bigint",coerce:!0,..._r(r)})}function ohe(e){return new e({type:"any"})}function ahe(e){return new e({type:"unknown"})}function nhe(e,r){return new e({type:"never",..._r(r)})}function ihe(e,r){return new e({type:"date",..._r(r)})}function fhe(e,r){return new e({type:"date",coerce:!0,..._r(r)})}function _R(e,r){return new lV({check:"less_than",..._r(r),value:e,inclusive:!1})}function cM(e,r){return new lV({check:"less_than",..._r(r),value:e,inclusive:!0})}function bR(e,r){return new cV({check:"greater_than",..._r(r),value:e,inclusive:!1})}function uM(e,r){return new cV({check:"greater_than",..._r(r),value:e,inclusive:!0})}function KD(e,r){return new VZe({check:"multiple_of",..._r(r),value:e})}function M3(e,r){return new KZe({check:"max_length",..._r(r),maximum:e})}function wR(e,r){return new GZe({check:"min_length",..._r(r),minimum:e})}function x3(e,r){return new XZe({check:"length_equals",..._r(r),length:e})}function yV(e,r){return new QZe({check:"string_format",format:"regex",..._r(r),pattern:e})}function _V(e){return new JZe({check:"string_format",format:"lowercase",..._r(e)})}function bV(e){return new $Ze({check:"string_format",format:"uppercase",..._r(e)})}function wV(e,r){return new epe({check:"string_format",format:"includes",..._r(r),includes:e})}function zV(e,r){return new tpe({check:"string_format",format:"starts_with",..._r(r),prefix:e})}function SV(e,r){return new rpe({check:"string_format",format:"ends_with",..._r(r),suffix:e})}function D8(e){return new ope({check:"overwrite",tx:e})}function LV(e){return D8((r)=>r.normalize(e))}function kV(){return D8((e)=>e.trim())}function CV(){return D8((e)=>e.toLowerCase())}function IV(){return D8((e)=>e.toUpperCase())}function RV(){return D8((e)=>Wde(e))}function she(e,r,a){return new e({type:"array",element:r,..._r(a)})}function lhe(e,r,a){return new e({type:"custom",check:"custom",fn:r,..._r(a)})}function che(e,r){let a=_wt((i)=>(i.addIssue=(s)=>{if(typeof s==="string")i.issues.push(_L(s,i.value,a._zod.def));else{let l=s;if(l.fatal)l.continue=!1;if(l.code??(l.code="custom"),!("input"in l))l.input=i.value;l.inst??(l.inst=a),l.continue??(l.continue=!a._zod.def.abort),i.issues.push(_L(l))}},e(i.value,i)),r);return a}function _wt(e,r){let a=new sf({check:"custom",..._r(r)});return a._zod.check=e,a}function GD(e,...r){for(let a of r)for(let i of Reflect.ownKeys(a))if(Object.prototype.propertyIsEnumerable.call(a,i))ji(e,i,a[i]);return e}function TV(e){let r=e?.target??"draft-2020-12";if(r==="draft-4")r="draft-04";if(r==="draft-7")r="draft-07";return{processors:e.processors??{},metadataRegistry:e?.metadata??bL,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Su(e,r,a,i,s){let l=typeof r.unrepresentable==="function"?r.unrepresentable({zodSchema:e,path:i.path,message:s}):r.unrepresentable;if(l==="any")return!1;if(l===void 0||l==="throw")throw Error(s);return Object.assign(a,l),!0}function Pn(e,r,a={path:[],schemaPath:[]}){var i;let s=e._zod.def,l=r.seen.get(e);if(l){if(l.count++,a.schemaPath.includes(e))l.cycle=a.path;return l.schema}let c={schema:{},count:1,cycle:void 0,path:a.path};r.seen.set(e,c),r.sharedDefsExtractedFor=void 0,r.sharedEmitDoneFor=void 0;let d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{let x={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,c.schema,x);else{let b=c.schema,_=r.processors[s.type];if(!_)throw Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);_(e,r,b,x)}let v=e._zod.parent;if(v){if(!c.ref)c.ref=v;Pn(v,r,x),r.seen.get(v).isParent=!0}}let m=r.metadataRegistry.get(e);if(m)GD(c.schema,m);if(r.io==="input"&&Ms(e))delete c.schema.examples,delete c.schema.default;if(r.io==="input"&&"_prefault"in c.schema)(i=c.schema).default??(i.default=c.schema._prefault);return delete c.schema._prefault,r.seen.get(e).schema}function uhe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function AV(e,r){let a=e.seen.get(r);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let c of e.seen.entries()){let d=e.metadataRegistry.get(c[0])?.id;if(d){let m=i.get(d);if(m&&m!==c[0])throw Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,c[0])}}let s=(c)=>{let d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let v=e.external.registry.get(c[0])?.id,b=e.external.uri??((z)=>z);if(v)return{ref:b(v)};let _=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=_,{defId:_,ref:`${b("__shared")}#/${d}/${uhe(_)}`}}let m="#",g=`${m}/${d}/`;if(c[1]===a&&!c[1].schema.id)return{ref:m};let x=c[1].schema.id??`__schema${e.counter++}`;return{defId:x,ref:g+uhe(x)}},l=(c)=>{if(c[1].schema.$ref)return;let d=c[1],{ref:m,defId:g}=s(c);if(d.def={...d.schema},g)d.defId=g;let x=d.schema;for(let v in x)delete x[v];x.$ref=m};if(e.cycles==="throw")for(let c of e.seen.entries()){let d=c[1];if(d.cycle)throw Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
194
-
195
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let c of e.seen.entries()){let d=c[1];if(r===c[0]){l(c);continue}if(e.external){let g=e.external.registry.get(c[0])?.id;if(r!==c[0]&&g){l(c);continue}}if(e.metadataRegistry.get(c[0])?.id){l(c);continue}if(d.cycle){l(c);continue}if(d.count>1){if(e.reused==="ref"){l(c);continue}}}if(e.external)e.sharedDefsExtractedFor=e.external}function phe(e){let r=e.anyOf;if(!Array.isArray(r)||r.length===0||e.type!==void 0)return;let a=[];for(let i of r){if(!i||typeof i!=="object")return;phe(i);let s=Object.keys(i);if(s.length!==1||s[0]!=="type")return;let l=i.type;for(let c of Array.isArray(l)?l:[l]){if(typeof c!=="string")return;if(!a.includes(c))a.push(c)}}delete e.anyOf,e.type=a.length===1?a[0]:a}var mhe=new Set(["type","properties","required","additionalProperties"]),dhe=["oneOf","anyOf"];function Zhe(e){let r=e.additionalProperties;if(r===void 0||r===!1||typeof r!=="object"||r===null)return null;return Object.keys(r).length?r:null}function PV(e){let r=[];for(let l of e){if(typeof l!=="object"||l.type!=="object")return null;for(let c in l)if(!mhe.has(c))return null;r.push(l)}let a={},i=new Set;for(let l of r){for(let c in l.properties){if(Object.prototype.hasOwnProperty.call(a,c))continue;let d=[];for(let g of r){let x=g.properties?.[c]??Zhe(g);if(x===null||x===void 0)continue;if(!d.some((v)=>JSON.stringify(v)===JSON.stringify(x)))d.push(x)}let m=d.length===1?d[0]:PV(d)??{allOf:d};ji(a,c,m)}for(let c of l.required??[])i.add(c)}let s={type:"object",properties:a};if(i.size)s.required=[...i];if(r.every((l)=>l.additionalProperties===!1))s.additionalProperties=!1;else{let l=[];for(let c of r){let d=Zhe(c);if(d&&!l.some((m)=>JSON.stringify(m)===JSON.stringify(d)))l.push(d)}if(l.length===1)s.additionalProperties=l[0];else if(l.length>1)s.additionalProperties={allOf:l}}return s}function bwt(e){let r=e.allOf;if(!Array.isArray(r)||r.length<2)return;for(let s of mhe)if(s in e)return;let a=r.filter((s)=>dhe.some((l)=>Array.isArray(s[l]))),i=null;if(!a.length)i=PV(r);else{let s=a[0],l=dhe.find((m)=>Array.isArray(s[m]));if(Object.keys(s).length!==1)return;let c=r.filter((m)=>m!==s),d=s[l].map((m)=>PV([...c,m]));if(d.some((m)=>!m))return;i={[l]:d}}if(!i)return;delete e.allOf,GD(e,i)}function EV(e,r){let a=e.seen.get(r);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");let i=(d)=>{let m=e.seen.get(d);if(m.ref===null)return;let g=m.def??m.schema,x={...g},v=m.ref;if(m.ref=null,v){i(v);let _=e.seen.get(v),z=_.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"))g.allOf=g.allOf??[],g.allOf.push(z);else GD(g,z);if(GD(g,x),d._zod.parent===v)for(let U in g){if(U==="$ref"||U==="allOf")continue;if(!(U in x))delete g[U]}if(z.$ref&&_.def)for(let U in g){if(U==="$ref"||U==="allOf")continue;if(U in _.def&&JSON.stringify(g[U])===JSON.stringify(_.def[U]))delete g[U]}}let b=d._zod.parent;if(b&&b!==v){i(b);let _=e.seen.get(b);if(_?.schema.$ref){if(g.$ref=_.schema.$ref,_.def)for(let z in g){if(z==="$ref"||z==="allOf")continue;if(z in _.def&&JSON.stringify(g[z])===JSON.stringify(_.def[z]))delete g[z]}}}e.override({zodSchema:d,jsonSchema:g,path:m.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let d of[...e.seen.entries()].reverse())i(d[0]);if(e.target!=="openapi-3.0")for(let d of e.seen.entries())phe(d[1].def??d[1].schema);for(let d of e.deferred)d();if(e.intersections.length){let d=new Map;for(let m of e.seen.values())for(let g of[m.schema,m.def]){let x=g?.allOf;if(!Array.isArray(x))continue;let v=d.get(x);if(v)v.push(g);else d.set(x,[g])}for(let m of e.intersections)for(let g of d.get(m)??[])bwt(g)}}let s={};if(e.target==="draft-2020-12")s.$schema="https://json-schema.org/draft/2020-12/schema";else if(e.target==="draft-07")s.$schema="http://json-schema.org/draft-07/schema#";else if(e.target==="draft-04")s.$schema="http://json-schema.org/draft-04/schema#";else if(e.target==="openapi-3.0");if(e.external?.uri){let d=e.external.registry.get(r)?.id;if(!d)throw Error("Schema is missing an `id` property");s.$id=e.external.uri(d)}GD(s,a.defId?a.schema:a.def??a.schema);let l=e.metadataRegistry.get(r)?.id;if(l!==void 0&&s.id===l)delete s.id;let c=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let d of e.seen.entries()){let m=d[1];if(m.def&&m.defId){if(m.def.id===m.defId)delete m.def.id;ji(c,m.defId,m.def)}}if(e.external)e.sharedEmitDoneFor=e.external;if(e.external);else if(Object.keys(c).length>0)if(e.target==="draft-2020-12")s.$defs=c;else s.definitions=c;try{let d=JSON.parse(JSON.stringify(s));return Object.defineProperty(d,"~standard",{value:{...r["~standard"],jsonSchema:{input:XD(r,"input",e.processors),output:XD(r,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch(d){throw Error("Error converting schema to JSON.")}}function Ms(e,r){let a=r??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Ms(i.element,a);if(i.type==="set")return Ms(i.valueType,a);if(i.type==="lazy")return Ms(i.getter(),a);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return Ms(i.innerType,a);if(i.type==="intersection")return Ms(i.left,a)||Ms(i.right,a);if(i.type==="record"||i.type==="map")return Ms(i.keyType,a)||Ms(i.valueType,a);if(i.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return Ms(i.in,a)||Ms(i.out,a)}if(i.type==="object"){for(let s in i.shape)if(Ms(i.shape[s],a))return!0;return!1}if(i.type==="union"){for(let s of i.options)if(Ms(s,a))return!0;return!1}if(i.type==="tuple"){for(let s of i.items)if(Ms(s,a))return!0;if(i.rest&&Ms(i.rest,a))return!0;return!1}return!1}var hhe=(e,r={})=>(a)=>{let i=TV({...a,processors:r});return Pn(e,i),AV(i,e),EV(i,e)},XD=(e,r,a={})=>(i)=>{let{libraryOptions:s,target:l}=i??{},c=TV({...s??{},target:l,io:r,processors:a});return Pn(e,c),AV(c,e),EV(c,e)};var wwt={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ghe=(e,r,a,i)=>{let s=a;s.type="string";let{minimum:l,maximum:c,format:d,patterns:m,contentEncoding:g,laxFormat:x}=e._zod.bag;if(typeof l==="number")s.minLength=l;if(typeof c==="number")s.maxLength=c;if(d){if(s.format=wwt[d]??d,s.format==="")delete s.format;if(d==="time"||x)delete s.format}if(g)s.contentEncoding=g;if(m&&m.size>0){let v=[...m];if(v.length===1)s.pattern=v[0].source;else if(v.length>1)s.allOf=[...v.map((b)=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))]}},Mhe=(e,r,a,i)=>{let s=a,{minimum:l,maximum:c,format:d,multipleOf:m,exclusiveMaximum:g,exclusiveMinimum:x}=e._zod.bag;if(typeof d==="string"&&d.includes("int"))s.type="integer";else s.type="number";let v=typeof x==="number"&&x>=(l??Number.NEGATIVE_INFINITY),b=typeof g==="number"&&g<=(c??Number.POSITIVE_INFINITY),_=r.target==="draft-04"||r.target==="openapi-3.0";if(v)if(_)s.minimum=x,s.exclusiveMinimum=!0;else s.exclusiveMinimum=x;else if(typeof l==="number")s.minimum=l;if(b)if(_)s.maximum=g,s.exclusiveMaximum=!0;else s.exclusiveMaximum=g;else if(typeof c==="number")s.maximum=c;if(typeof m==="number")if(Number.isFinite(m)&&m!==0)s.multipleOf=Math.abs(m);else Su(e,r,s,i,`A multipleOf divisor of ${m} cannot be represented in JSON Schema`)},xhe=(e,r,a,i)=>{a.type="boolean"},vhe=(e,r,a,i)=>{Su(e,r,a,i,"BigInt cannot be represented in JSON Schema")};var yhe=(e,r,a,i)=>{a.not={}},_he=(e,r,a,i)=>{},bhe=(e,r,a,i)=>{},whe=(e,r,a,i)=>{Su(e,r,a,i,"Date cannot be represented in JSON Schema")},zhe=(e,r,a,i)=>{let s=e._zod.def,l=o3(s.entries);if(l.length===0){a.not={};return}if(l.every((c)=>typeof c==="number"))a.type="number";if(l.every((c)=>typeof c==="string"))a.type="string";a.enum=l},She=(e,r,a,i)=>{let s=e._zod.def;if(s.values.length===0){a.not={};return}let l=[];for(let c of s.values)if(c===void 0){if(Su(e,r,a,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof c==="bigint"){if(Su(e,r,a,i,"BigInt literals cannot be represented in JSON Schema"))return;l.push(Number(c))}else l.push(c);if(l.length===0);else if(l.length===1){let c=l[0];if(a.type=c===null?"null":typeof c,r.target==="draft-04"||r.target==="openapi-3.0")a.enum=[c];else a.const=c}else{if(l.every((c)=>typeof c==="number"))a.type="number";if(l.every((c)=>typeof c==="string"))a.type="string";if(l.every((c)=>typeof c==="boolean"))a.type="boolean";if(l.every((c)=>c===null))a.type="null";a.enum=l}};var Lhe=(e,r,a,i)=>{Su(e,r,a,i,"Custom types cannot be represented in JSON Schema")};var khe=(e,r,a,i)=>{Su(e,r,a,i,"Transforms cannot be represented in JSON Schema")};var Che=(e,r,a,i)=>{let s=a,l=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;if(typeof c==="number")s.minItems=c;if(typeof d==="number")s.maxItems=d;s.type="array",s.items=Pn(l.element,r,{...i,path:[...i.path,"items"]})};function v3(e){let r=e._zod.def;if(r.type==="pipe"&&r.in._zod.traits.has("$ZodTransform"))return v3(r.out);if(r.type==="catch")return v3(r.innerType);return e._zod.optin}var Ihe=(e,r,a,i)=>{let s=a,l=e._zod.def,c=l.shape;if(Object.getOwnPropertySymbols(c).length&&Su(e,r,s,i,"Symbol keys cannot be represented in JSON Schema"))return;s.type="object",s.properties={};for(let x in c)ji(s.properties,x,Pn(c[x],r,{...i,path:[...i.path,"properties",x]}));let m=new Set(Object.keys(c)),g=new Set([...m].filter((x)=>{let v=l.shape[x];if(r.io==="input")return v3(v)===void 0;else return v._zod.optout===void 0}));if(g.size>0)s.required=Array.from(g);if(l.catchall?._zod.def.type==="never")s.additionalProperties=!1;else if(!l.catchall){if(r.io==="output")s.additionalProperties=!1}else if(l.catchall)s.additionalProperties=Pn(l.catchall,r,{...i,path:[...i.path,"additionalProperties"]})},Rhe=(e,r,a,i)=>{let s=e._zod.def,l=s.inclusive===!1,c=s.options.map((d,m)=>Pn(d,r,{...i,path:[...i.path,l?"oneOf":"anyOf",m]}));if(l)a.oneOf=c;else a.anyOf=c},Phe=(e,r,a,i)=>{let s=e._zod.def,l=Pn(s.left,r,{...i,path:[...i.path,"allOf",0]}),c=Pn(s.right,r,{...i,path:[...i.path,"allOf",1]}),d=(g)=>("allOf"in g)&&Object.keys(g).length===1,m=[...d(l)?l.allOf:[l],...d(c)?c.allOf:[c]];a.allOf=m,r.intersections.push(m)};function DV(e,r,a){if(r.$ref){if(a.has(r))return r;a.add(r);let z=e.get(r)?.def;if(!z)return r;let k=DV(e,z,a);return k===z?r:k}for(let z of["anyOf","oneOf"]){let k=r[z];if(!Array.isArray(k))continue;let U=k.map((P)=>DV(e,P,a));if(U.some((P,T)=>P!==k[T]))r={...r,[z]:U}}let i=Array.isArray(r.type)?r.type:[r.type],s=!i.includes("string")&&i.some((z)=>z==="number"||z==="integer"),l=r.enum??(r.const!==void 0?[r.const]:void 0);if(!s&&!l?.some((z)=>typeof z==="number"))return r;let{minimum:c,maximum:d,exclusiveMinimum:m,exclusiveMaximum:g,multipleOf:x,format:v,id:b,..._}=r;if(_.enum)_.enum=_.enum.map((z)=>typeof z==="number"?String(z):z);else if(typeof _.const==="number")_.const=String(_.const);if(!s)return _;if(_.type="string",!l)_.pattern=(i.includes("number")?HD:u3).source;return _}var OV=new WeakMap;function zwt(e){let r=new Map;for(let i of e.seen.values())if(i.def&&!r.has(i.schema))r.set(i.schema,i);let a=new Map;for(let i of OV.get(e)??[]){let s=e.seen.get(i),l=(s?.def??s?.schema)?.propertyNames;if(!l||l===!0||a.has(l))continue;let c=DV(r,l,new Set);if(c!==l)a.set(l,c)}if(!a.size)return;for(let i of e.seen.values())for(let s of[i.schema,i.def]){let l=s&&a.get(s.propertyNames);if(l)s.propertyNames=l}}var The=(e,r,a,i)=>{let s=a,l=e._zod.def;s.type="object";let c=l.keyType,m=c._zod.bag?.patterns;if(l.mode==="loose"&&m&&m.size>0){let v=Pn(l.valueType,r,{...i,path:[...i.path,"patternProperties","*"]});s.patternProperties={};for(let b of m)ji(s.patternProperties,b.source,v)}else{if(r.target==="draft-07"||r.target==="draft-2020-12"){s.propertyNames=Pn(l.keyType,r,{...i,path:[...i.path,"propertyNames"]});let v=OV.get(r);if(!v)v=[],OV.set(r,v),r.deferred.push(()=>zwt(r));v.push(e)}s.additionalProperties=Pn(l.valueType,r,{...i,path:[...i.path,"additionalProperties"]})}let g=c._zod.values,x=r.io==="input"&&v3(l.valueType)!==void 0;if(g&&!l.partial&&!x){let v=[...g].filter((b)=>typeof b==="string"||typeof b==="number");if(v.length>0)s.required=v.map(String)}},Ahe=(e,r,a,i)=>{let s=e._zod.def,l=Pn(s.innerType,r,i),c=r.seen.get(e);if(r.target==="openapi-3.0")c.ref=s.innerType,a.nullable=!0;else a.anyOf=[l,{type:"null"}]},Ehe=(e,r,a,i)=>{let s=e._zod.def;Pn(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType},NV=Symbol();function Dhe(e,r,a,i,s){let l=!1,c=JSON.stringify(e,(d,m)=>{if(typeof m!=="bigint")return m;return l=!0,null});if(!l)return JSON.parse(c);return Su(r,a,i,s,"BigInt defaults cannot be represented in JSON Schema"),NV}var Ohe=(e,r,a,i)=>{let s=e._zod.def;Pn(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType;let c=Dhe(s.defaultValue,e,r,a,i);if(c!==NV)a.default=c},Nhe=(e,r,a,i)=>{let s=e._zod.def;Pn(s.innerType,r,i);let l=r.seen.get(e);if(l.ref=s.innerType,r.io!=="input")return;let c=Dhe(s.defaultValue,e,r,a,i);if(c!==NV)a._prefault=c},Fhe=(e,r,a,i)=>{let s=e._zod.def;Pn(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType;let c;try{c=s.catchValue(void 0)}catch{Su(e,r,a,i,"Dynamic catch values are not supported in JSON Schema");return}a.default=c},jhe=(e,r,a,i)=>{let s=e._zod.def,l=s.in._zod.traits.has("$ZodTransform"),c=r.io==="input"?l?s.out:s.in:s.out;Pn(c,r,i);let d=r.seen.get(e);d.ref=c},Bhe=(e,r,a,i)=>{let s=e._zod.def;Pn(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType,a.readOnly=!0};var FV=(e,r,a,i)=>{let s=e._zod.def;Pn(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType},Uhe=(e,r,a,i)=>{let s=e._zod.innerType;Pn(s,r,i);let l=r.seen.get(e);l.ref=s};var Yhe=new WeakSet([Object.prototype,Error.prototype]);function y3(e,r,a){Object.defineProperty(e,r,{configurable:!0,enumerable:!1,get(){let i=a(this);return Object.defineProperty(this,r,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,r,{value:i,configurable:!0,writable:!0})}})}var Twt=(e,r)=>{f3.init(e,r),e.name="ZodError";let a=Object.getPrototypeOf(e);if(Yhe.has(a))return;Yhe.add(a),y3(a,"format",(i)=>(s)=>sZe(i,s)),y3(a,"flatten",(i)=>(s)=>fZe(i,s)),y3(a,"addIssue",(i)=>(s)=>{i.issues.push(s),i.message=JSON.stringify(i.issues,jD,2)}),y3(a,"addIssues",(i)=>(s)=>{i.issues.push(...s),i.message=JSON.stringify(i.issues,jD,2)}),Object.defineProperty(a,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var $l=kt("ZodError",Twt,void 0,{Parent:Error});var qhe=l3($l),Hhe=c3($l),Vhe=YD($l),Whe=qD($l),Khe=uZe($l),Ghe=dZe($l),Xhe=ZZe($l),Qhe=pZe($l),Jhe=mZe($l),$he=hZe($l),ege=gZe($l),tge=MZe($l);function Ewt(){if(!tl.localeError)Jl(vV())}function w3(){if(!tl.memoizer)Jl({memoizer:vme()})}var Ya=kt("ZodType",(e,r)=>(Ewt(),wa.init(e,r),e.def=r,e.type=r.type,e),{check(...e){let r=this.def;return this.clone(T8(r,{checks:[...r.checks??[],...e.map((a)=>typeof a==="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,r){return yZ(this,e,r)},brand(){return this},register(e,r){return e.add(this,r),this},refine(e,r){return this.check(C0t(e,r))},superRefine(e,r){return this.check(I0t(e,r))},overwrite(e){return this.check(D8(e))},optional(){return age(this)},exactOptional(){return h0t(this)},nullable(){return nge(this)},nullish(){return age(nge(this))},nonoptional(e){return _0t(this,e)},array(){return te(this)},or(e){return Ka([this,e])},and(e){return uge(this,e)},transform(e){return ige(this,m0t(e))},default(e){return x0t(this,e)},prefault(e){return y0t(this,e)},catch(e){return w0t(this,e)},pipe(e){return ige(this,e)},readonly(){return L0t(this)},describe(e){let r=this.clone();return bL.add(r,{description:e}),r},meta(...e){if(e.length===0)return bL.get(this);let r=this.clone();return bL.add(r,e[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...r){return r.length===0?e(this):e(this,...r)},get "~standard"(){return $H(this,"~standard",{...pV(this),jsonSchema:{input:XD(this,"input"),output:XD(this,"output")}})},set "~standard"(e){xL(this,"~standard",e)},parse:function e(r,a){return qhe(this,r,a,{callee:e})},parseAsync:async function e(r,a){return await Hhe(this,r,a,{callee:e})},safeParse(e,r){return Vhe(this,e,r)},async safeParseAsync(e,r){return Whe(this,e,r)},get spa(){return this?.safeParseAsync},set spa(e){xL(this,"spa",e)},encode:function e(r,a){return Khe(this,r,a,{callee:e})},decode:function e(r,a){return Ghe(this,r,a,{callee:e})},encodeAsync:async function e(r,a){return await Xhe(this,r,a,{callee:e})},decodeAsync:async function e(r,a){return await Qhe(this,r,a,{callee:e})},safeEncode(e,r){return Jhe(this,e,r)},safeDecode(e,r){return $he(this,e,r)},async safeEncodeAsync(e,r){return ege(this,e,r)},async safeDecodeAsync(e,r){return tge(this,e,r)},toJSONSchema(e){return hhe(this,{})(e)},get description(){return bL.get(this)?.description},get _def(){return this._zod.def}}),fge=kt("_ZodString",(e,r)=>{m3.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>ghe(e,i,s,l);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null},{regex(...e){return this.check(yV(...e))},includes(...e){return this.check(wV(...e))},startsWith(...e){return this.check(zV(...e))},endsWith(...e){return this.check(SV(...e))},min(...e){return this.check(wR(...e))},max(...e){return this.check(M3(...e))},length(...e){return this.check(x3(...e))},nonempty(...e){return this.check(wR(1,...e))},lowercase(e){return this.check(_V(e))},uppercase(e){return this.check(bV(e))},trim(){return this.check(kV())},normalize(...e){return this.check(LV(...e))},toLowerCase(){return this.check(CV())},toUpperCase(){return this.check(IV())},slugify(){return this.check(RV())}}),jV=kt("ZodString",(e,r)=>{m3.init(e,r),fge.init(e,r)},{email(e){return this.check(zme(jwt,e))},url(e){return this.check(Rme(Uwt,e))},jwt(e){return this.check(Vme(o0t,e))},emoji(e){return this.check(Pme(Ywt,e))},guid(e){return this.check(Sme(Bwt,e))},uuid(e){return this.check(Lme(_3,e))},uuidv4(e){return this.check(kme(_3,e))},uuidv6(e){return this.check(Cme(_3,e))},uuidv7(e){return this.check(Ime(_3,e))},nanoid(e){return this.check(Tme(qwt,e))},cuid(e){return this.check(Ame(Hwt,e))},cuid2(e){return this.check(Eme(Vwt,e))},ulid(e){return this.check(Dme(Wwt,e))},base64(e){return this.check(Yme(e0t,e))},base64url(e){return this.check(qme(t0t,e))},xid(e){return this.check(Ome(Kwt,e))},ksuid(e){return this.check(Nme(Gwt,e))},ipv4(e){return this.check(Fme(Xwt,e))},ipv6(e){return this.check(jme(Qwt,e))},cidrv4(e){return this.check(Bme(Jwt,e))},cidrv6(e){return this.check(Ume($wt,e))},e164(e){return this.check(Hme(r0t,e))},datetime(e){return this.check(Wme(Dwt,e))},date(e){return this.check(Kme(Owt,e))},time(e){return this.check(Gme(Nwt,e))},duration(e){return this.check(Xme(Fwt,e))}});function f(e){return bme(jV,e)}var vn=kt("ZodStringFormat",(e,r)=>{Zn.init(e,r),fge.init(e,r)}),Dwt=kt("ZodISODateTime",(e,r)=>{Cpe.init(e,r),vn.init(e,r)}),Owt=kt("ZodISODate",(e,r)=>{Ipe.init(e,r),vn.init(e,r)}),Nwt=kt("ZodISOTime",(e,r)=>{Rpe.init(e,r),vn.init(e,r)}),Fwt=kt("ZodISODuration",(e,r)=>{Ppe.init(e,r),vn.init(e,r)}),jwt=kt("ZodEmail",(e,r)=>{Mpe.init(e,r),vn.init(e,r)});var Bwt=kt("ZodGUID",(e,r)=>{hpe.init(e,r),vn.init(e,r)});var _3=kt("ZodUUID",(e,r)=>{gpe.init(e,r),vn.init(e,r)});var Uwt=kt("ZodURL",(e,r)=>{ype.init(e,r),vn.init(e,r)});var Ywt=kt("ZodEmoji",(e,r)=>{_pe.init(e,r),vn.init(e,r)});var qwt=kt("ZodNanoID",(e,r)=>{bpe.init(e,r),vn.init(e,r)});var Hwt=kt("ZodCUID",(e,r)=>{wpe.init(e,r),vn.init(e,r)});var Vwt=kt("ZodCUID2",(e,r)=>{zpe.init(e,r),vn.init(e,r)});var Wwt=kt("ZodULID",(e,r)=>{Spe.init(e,r),vn.init(e,r)});var Kwt=kt("ZodXID",(e,r)=>{Lpe.init(e,r),vn.init(e,r)});var Gwt=kt("ZodKSUID",(e,r)=>{kpe.init(e,r),vn.init(e,r)});var Xwt=kt("ZodIPv4",(e,r)=>{Tpe.init(e,r),vn.init(e,r)});var Qwt=kt("ZodIPv6",(e,r)=>{Epe.init(e,r),vn.init(e,r)});var Jwt=kt("ZodCIDRv4",(e,r)=>{Dpe.init(e,r),vn.init(e,r)});var $wt=kt("ZodCIDRv6",(e,r)=>{Ope.init(e,r),vn.init(e,r)});var e0t=kt("ZodBase64",(e,r)=>{Fpe.init(e,r),vn.init(e,r)});var t0t=kt("ZodBase64URL",(e,r)=>{jpe.init(e,r),vn.init(e,r)});var r0t=kt("ZodE164",(e,r)=>{Bpe.init(e,r),vn.init(e,r)});var o0t=kt("ZodJWT",(e,r)=>{Upe.init(e,r),vn.init(e,r)});var z3=kt("ZodNumber",(e,r)=>{mV.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Mhe(e,i,s,l);let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??0.5),e.isFinite=!0,e.format=a.format??null},{gt(e,r){return this.check(bR(e,r))},gte(e,r){return this.check(uM(e,r))},min(e,r){return this.check(uM(e,r))},lt(e,r){return this.check(_R(e,r))},lte(e,r){return this.check(cM(e,r))},max(e,r){return this.check(cM(e,r))},int(e){return this.check(rge(e))},safe(e){return this.check(rge(e))},positive(e){return this.check(bR(0,e))},nonnegative(e){return this.check(uM(0,e))},negative(e){return this.check(_R(0,e))},nonpositive(e){return this.check(cM(0,e))},multipleOf(e,r){return this.check(KD(e,r))},step(e,r){return this.check(KD(e,r))},finite(){return this}});function Gt(e){return Qme(z3,e)}var a0t=kt("ZodNumberFormat",(e,r)=>{Ype.init(e,r),z3.init(e,r)});function rge(e){return $me(a0t,e)}var BV=kt("ZodBoolean",(e,r)=>{qpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>xhe(e,a,i,s)});function ur(e){return ehe(BV,e)}var sge=kt("ZodBigInt",(e,r)=>{Hpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>vhe(e,i,s,l);let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null},{gte(e,r){return this.check(uM(e,r))},min(e,r){return this.check(uM(e,r))},gt(e,r){return this.check(bR(e,r))},lt(e,r){return this.check(_R(e,r))},lte(e,r){return this.check(cM(e,r))},max(e,r){return this.check(cM(e,r))},positive(e){return this.check(bR(BigInt(0),e))},negative(e){return this.check(_R(BigInt(0),e))},nonpositive(e){return this.check(cM(BigInt(0),e))},nonnegative(e){return this.check(uM(BigInt(0),e))},multipleOf(e,r){return this.check(KD(e,r))}});var n0t=kt("ZodAny",(e,r)=>{Vpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>_he(e,a,i,s)});function xs(){return ohe(n0t)}var i0t=kt("ZodUnknown",(e,r)=>{Wpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>bhe(e,a,i,s)});function wZ(){return ahe(i0t)}var f0t=kt("ZodNever",(e,r)=>{Kpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>yhe(e,a,i,s)});function s0t(e){return nhe(f0t,e)}var UV=kt("ZodDate",(e,r)=>{Gpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>whe(e,i,s,l),e.min=(i,s)=>e.check(uM(i,s)),e.max=(i,s)=>e.check(cM(i,s));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function Qn(e){return ihe(UV,e)}var l0t=kt("ZodArray",(e,r)=>{w3(),Xpe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Che(e,a,i,s),e.element=r.element},{min(e,r){return this.check(wR(e,r))},nonempty(e){return this.check(wR(1,e))},max(e,r){return this.check(M3(e,r))},length(e,r){return this.check(x3(e,r))},unwrap(){return this.element}});function te(e,r){return she(l0t,e,r)}var c0t=kt("ZodObject",(e,r)=>{w3(),$pe.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Ihe(e,a,i,s),Xbt(e,"shape",(a)=>a._zod.def.shape,!1)},{keyof(){return Ve(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:wZ()})},loose(){return this.clone({...this._zod.def,catchall:wZ()})},strict(){return this.clone({...this._zod.def,catchall:s0t()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ubt(this,e)},safeExtend(e){return Ybt(this,e)},merge(e){return qbt(this,e)},pick(e){return jbt(this,e)},omit(e){return Bbt(this,e)},partial(...e){return Jde(dge,this,e[0])},exactPartial(...e){return Jde(Zge,this,e[0],"exactPartial")},required(...e){return Hbt(pge,this,e[0])}});function R(e,r){let a={type:"object",shape:e??{},..._r(r)};return new c0t(a)}var lge=kt("ZodUnion",(e,r)=>{hV.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Rhe(e,a,i,s),e.options=r.options});function Ka(e,r){return new lge({type:"union",options:e,..._r(r)})}var u0t=kt("ZodDiscriminatedUnion",(e,r)=>{lge.init(e,r),eme.init(e,r)});function cge(e,r,a){return new u0t({type:"union",options:r,discriminator:e,..._r(a)})}var d0t=kt("ZodIntersection",(e,r)=>{tme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Phe(e,a,i,s)});function uge(e,r){return new d0t({type:"intersection",left:e,right:r})}var oge=kt("ZodRecord",(e,r)=>{w3(),rme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>The(e,a,i,s),e.keyType=r.keyType,e.valueType=r.valueType});function wL(e,r,a){if(!r||!r._zod)return new oge({type:"record",keyType:f(),valueType:e,..._r(r)});return new oge({type:"record",keyType:e,valueType:r,..._r(a)})}var b3=kt("ZodEnum",(e,r)=>{ome.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>zhe(e,i,s,l),e.enum=r.entries,e.options=Object.values(r.entries);let a=new Set(Object.keys(r.entries));e.extract=(i,s)=>{let l={};for(let c of i)if(a.has(c))l[c]=r.entries[c];else throw Error(`Key ${c} not found in enum`);return new b3({...r,checks:[],..._r(s),entries:l})},e.exclude=(i,s)=>{let l={...r.entries};for(let c of i)if(a.has(c))delete l[c];else throw Error(`Key ${c} not found in enum`);return new b3({...r,checks:[],..._r(s),entries:l})}});function Ve(e,r){let a=Array.isArray(e)?Object.fromEntries(e.map((i)=>[i,i])):e;return new b3({type:"enum",entries:a,..._r(r)})}function fa(e,r){return new b3({type:"enum",entries:e,..._r(r)})}var Z0t=kt("ZodLiteral",(e,r)=>{ame.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>She(e,a,i,s),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function rl(e,r){return new Z0t({type:"literal",values:Array.isArray(e)?e:[e],..._r(r)})}var p0t=kt("ZodTransform",(e,r)=>{w3(),nme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>khe(e,a,i,s),e._zod.parse=(a,i)=>{if(i.direction==="backward")throw new UD(e.constructor.name);a.addIssue=(l)=>{if(typeof l==="string")a.issues.push(_L(l,a.value,r));else{let c=l;if(c.fatal)c.continue=!1;if(c.code??(c.code="custom"),!("input"in c))c.input=a.value;c.inst??(c.inst=e),a.issues.push(_L(c))}};let s=r.transform(a.value,a);if(s instanceof Promise)return s.then((l)=>(a.value=l,a));return a.value=s,a}});function m0t(e){return new p0t({type:"transform",transform:e})}var dge=kt("ZodOptional",(e,r)=>{gV.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>FV(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function age(e){return new dge({type:"optional",innerType:e})}var Zge=kt("ZodExactOptional",(e,r)=>{ime.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>FV(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function h0t(e){return new Zge({type:"optional",innerType:e})}var g0t=kt("ZodNullable",(e,r)=>{fme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Ahe(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function nge(e){return new g0t({type:"nullable",innerType:e})}var M0t=kt("ZodDefault",(e,r)=>{sme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Ohe(e,a,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function x0t(e,r){return new M0t({type:"default",innerType:e,get defaultValue(){return typeof r==="function"?r():XH(r)}})}var v0t=kt("ZodPrefault",(e,r)=>{lme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Nhe(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function y0t(e,r){return new v0t({type:"prefault",innerType:e,get defaultValue(){return typeof r==="function"?r():XH(r)}})}var pge=kt("ZodNonOptional",(e,r)=>{cme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Ehe(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function _0t(e,r){return new pge({type:"nonoptional",innerType:e,..._r(r)})}var b0t=kt("ZodCatch",(e,r)=>{ume.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Fhe(e,a,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function w0t(e,r){return new b0t({type:"catch",innerType:e,catchValue:typeof r==="function"?r:rZe(r)})}var z0t=kt("ZodPipe",(e,r)=>{dme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>jhe(e,a,i,s),e.in=r.in,e.out=r.out});function ige(e,r){return new z0t({type:"pipe",in:e,out:r})}var S0t=kt("ZodReadonly",(e,r)=>{Zme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Bhe(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function L0t(e){return new S0t({type:"readonly",innerType:e})}var k0t=kt("ZodLazy",(e,r)=>{pme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Uhe(e,a,i,s),e.unwrap=()=>e._zod.def.getter()});function YV(e){return new k0t({type:"lazy",getter:e})}var mge=kt("ZodCustom",(e,r)=>{mme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Lhe(e,a,i,s)});function C0t(e,r={}){return lhe(mge,e,r)}function I0t(e,r){return che(e,r)}function hge(e,r={}){let a=new mge({type:"custom",check:"custom",fn:(i)=>i instanceof e,abort:!0,..._r(r)});return a._zod.bag.Class=e,a._zod.check=(i)=>{if(!(i.value instanceof e))i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:a,path:[...a._zod.def.path??[]]})},a}var ro={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var gge;(function(e){})(gge||(gge={}));var JD={};ke(JD,{bigint:()=>E0t,boolean:()=>A0t,date:()=>D0t,number:()=>T0t,string:()=>P0t});function P0t(e){return wme(jV,e)}function T0t(e){return Jme(z3,e)}function A0t(e){return the(BV,e)}function E0t(e){return rhe(sge,e)}function D0t(e){return fhe(UV,e)}var S3={human:"human",agent:"agent"};var qV={editor:"editor",reviewer:"reviewer"};var Mge={team:"team",project:"project"};var xge={all_members:"all_members",each_member:"each_member",selected_members:"selected_members"};var vge={agent_total_tokens:"agent_total_tokens",agent_cost:"agent_cost",agent_mcp_call_count:"agent_mcp_call_count",agent_bash_call_count:"agent_bash_call_count",agent_tool_call_count:"agent_tool_call_count"},Qe={TODO:"TODO",READY:"READY",IN_PROGRESS:"IN_PROGRESS",BLOCKED:"BLOCKED",IN_REVIEW:"IN_REVIEW",DONE:"DONE"},Ur={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH",URGENT:"URGENT"},lf={CREATED:"CREATED",STATUS_CHANGED:"STATUS_CHANGED",ASSIGNED:"ASSIGNED",UNASSIGNED:"UNASSIGNED",COMMENTED:"COMMENTED",CHANGES_REQUESTED:"CHANGES_REQUESTED",BLOCKED:"BLOCKED",UNBLOCKED:"UNBLOCKED",PRIORITY_CHANGED:"PRIORITY_CHANGED",GOAL_CHANGED:"GOAL_CHANGED",DEPENDENCY_ADDED:"DEPENDENCY_ADDED",DEPENDENCY_REMOVED:"DEPENDENCY_REMOVED"},yge={chat:"chat",autofill:"autofill",embedding:"embedding"};var O0t=["avatar-1","avatar-2","avatar-3","avatar-4","avatar-5","avatar-6","avatar-7","avatar-8"];var N0t={"avatar-1":"UklGRtInAABXRUJQVlA4IMYnAACwmACdASosASwBPm0ylUekIyIhp1L7UIANiWVu3P6nGjxxkZZTIvmXwJRUeg/Jf+ndPZ0L4H6mVI3YJ/D/tH5j9vT9C/6f3AP1d/Xz+79l/zDfsj6yP+59R39j/y/sAf3r/VdZ36EXly+0Z+6/peaqTMC4q/u/7z45+fr5VuB3l+xvUg7u/5f+G9tH9D3q/Lv/a9Qj25/vvGH2lFyP2J9gX3F+8f9H1AfzfM/+G/0nsBfrb/0PZDvp/yf/H9gP+nf4j9lPeL/2PKX+yf8H2F/6D1Of3o9pv9uzXj2UCILxSqTJtnLrjF0IFB27Vo5QPaRJKEf73CFDiYb46kQh9ZimTAfOlbMytbJDx1VHoVO115vAHuMthHxJoOL/D/OOWk7DrZTEtbvTiXzv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fSgvcNf0/nak24VtiVYnatZNGk0d9StstQUQCEN2d0HWi9XkcGkqhqyTDXBOW8b/JXjFBxthPq8CcjS2kuYM64vWb5bPlo3TBJvlM7/S6A+aUHE8Ysr+3Urij3a4OlmHZCAbH72tqwo+C+pwAc9daUTrAcq3y7XKuoBeLxX7xUt9D28IJlAYaj2vFxnpDT9965ai9w+/iZhggv1j57YepY/lSYkU7TmhdRROUnWKrmW7Aun4RGGx2g5aAJLFTK2d7y3E320mXPdgSpc7dD7yRJe+ux5Pz1d/DkwhHeA487pzdWCeMLTc5oZxVRSmY0orTzQgjc3Vb1qUNhw1sf+pzbcaq1cUKzDT0S0UJuN1KK2ZWrt3jSW9GtYzf/4p/Wte+gT0BeWuuGk8CWJhTwcjrkF8bzYCm3Sht9Av1I8sC7HI1yRwa1wBybvlrPjWRR6Jfkyb0YxACVUzGy678cj/fDKSBH/7hlbS4hB6It3rJbQTz8zCfQ2WdhV7n27w4n5o3cyZK2PDXtRnQqBXpHxIxrxRPcUB/GO9z8TzlY2e0cexQbZ3HkD/bupeupZVrpjIq1k9/EwyB+EEGeNHb63rBnxbgSVuEWo0b3WihxMTaZTyre7jogHA2nw8INlzaWrb2Is+v9I5xQN5elt2+hXPAyR160GZ6Ij6NAJPHLEMhw5M7JszydIJxX6bekzNdInyXDwLp5B/pGOIBmgYqQj3NERx5UzJGwruLTFZvHgUj42OMzurfF7niHyu6gM//+uZn94CG5+kMmCCldqOGMrVqWosLAAAAA=="},ru=O0t.map((e)=>({id:e,preview:`data:image/webp;base64,${N0t[e]}`}));var _ge=fa(yge),nu=Ve(["off","minimal","low","medium","high","xhigh"]),HV=Ve(["owner","editor","reviewer"]),CA=["delete_asset"],F0t=R({id:f().optional(),skillId:f(),skill:R({id:f(),name:f()}).optional()}),z0n=R({id:f(),name:f(),type:_ge,enabled:ur(),permission:HV.optional().default("reviewer"),avatar:f().optional(),avatarPreset:f().optional(),providerId:f().optional(),modelId:f().optional(),thinkingLevel:nu.optional().default("off"),systemPrompt:f().optional(),soul:f().optional(),skills:te(F0t).optional(),mcpServerIds:te(f()).optional(),deniedTools:te(f()).optional()}),bge=R({name:f().min(1),type:_ge,enabled:ur().optional().default(!0),permission:HV.optional(),avatar:f().optional(),providerId:f().optional(),modelId:f().optional(),thinkingLevel:nu.optional().default("off"),systemPrompt:f().optional(),soul:f().optional(),skills:te(f()).optional(),mcpServerIds:te(f()).optional(),deniedTools:te(f()).optional()}),S0n=bge.superRefine((e,r)=>{if(e.type==="chat"||e.type==="autofill"){if(!e.providerId)r.addIssue({code:ro.custom,message:"providerId is required for chat/autofill agents",path:["providerId"]});if(!e.modelId)r.addIssue({code:ro.custom,message:"modelId is required for chat/autofill agents",path:["modelId"]})}}),L0n=bge.superRefine((e,r)=>{if(e.type==="chat"||e.type==="autofill"){if(!e.providerId)r.addIssue({code:ro.custom,message:"providerId is required for chat/autofill agents",path:["providerId"]});if(!e.modelId)r.addIssue({code:ro.custom,message:"modelId is required for chat/autofill agents",path:["modelId"]})}}),k0n=R({permission:HV}),C0n=R({id:f(),sessionId:f(),entry:wZ()}),I0n=R({id:f(),name:f().nullable().optional(),type:f(),createdAt:f(),creator:R({id:f(),name:f().nullable().optional(),email:f().nullable().optional(),image:f().nullable().optional()}).nullable().optional(),agentId:f().optional()});var A0n=R({apiKey:f().optional(),baseUrl:f().optional(),chatModels:te(f()).optional()}),j0t=Ve(["1h","24h","7d","30d"]),E0n=R({timeframe:j0t.default("30d"),userId:f().optional()});var O8=R({cursor:f().optional(),total:Gt().optional(),totalSize:Gt().optional()}),vs=R({first:JD.number().optional(),after:f().optional()});var zge=30,B0n=R({data:te(YV(()=>H0t)),pageInfo:O8}),Sge=R({proxyType:Ve(["image","video","audio","pdf"]).nullable().optional(),thumbnailUrl:f().optional(),originalHeight:Gt().optional(),originalWidth:Gt().optional(),rotation:Gt().optional(),spriteUrl:f().optional(),duration:Gt().optional(),pageCount:Gt().optional()}),B0t=R({type:f().nullable(),preview:Sge.nullable()}),L3=R({id:f(),name:f(),image:f().optional()}),wge=R({id:f(),name:f()}),U0t=R({fieldId:f(),value:xs()}),Y0t=R({id:f(),name:f()}),q0t=R({duration:Gt().optional(),originalWidth:Gt().optional(),originalHeight:Gt().optional(),rotation:Gt().optional(),frameRate:Gt().optional(),totalFrames:Gt().optional(),startTimecode:f().optional()}),H0t=R({id:f(),name:f(),sizeByte:Gt(),fileCount:Gt(),type:f(),targetType:f().optional().nullable(),status:f(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional(),latestChildren:te(B0t).optional(),preview:Sge.nullable().optional(),createdAt:f(),updatedAt:f(),deletedAt:f().nullable().optional(),projectId:f().optional().nullable(),creator:L3.nullable().optional(),agentId:f().optional().nullable(),agent:wge.optional().nullable(),fieldValues:te(U0t).optional(),sortIndex:f().optional().nullable(),startTime:Gt().optional().nullable(),endTime:Gt().optional().nullable(),hasAgentsMd:ur().optional(),commentsCount:Gt().optional(),media:R({original:R({key:f().optional()}).optional(),videoTranscodes:te(R({id:f(),url:f(),key:f(),width:Gt(),height:Gt(),size:Gt(),resolution:f().optional(),hdr:ur().optional()})).optional(),imageTranscodes:te(R({id:f(),url:f(),key:f(),width:Gt(),height:Gt(),size:Gt()})).optional(),videoPreview:R({url:f(),key:f().optional()}).optional(),pdfTranscode:R({url:f(),key:f().optional()}).optional(),isHls:ur().optional(),hls:R({key:f(),url:f().optional(),resolutions:te(R({width:Gt(),height:Gt(),resolution:f().optional(),hdr:ur().optional(),key:f().optional(),url:f().optional()})).optional()}).optional(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional(),metadata:q0t.optional(),error:f().optional()}).optional(),ancestorFolders:te(Y0t).optional(),versionStack:R({id:f(),versions:te(R({version:Gt(),current:ur(),id:f(),name:f().optional().nullable(),previewUrl:f().optional().nullable(),createdAt:f().optional().nullable(),creator:R({id:f(),name:f().nullable(),image:f().optional().nullable()}).nullable().optional(),agent:wge.optional().nullable()}))}).optional().nullable()}),U0n=R({name:f(),type:f(),projectId:f().optional(),parentId:f().optional(),key:f().optional(),sizeByte:Gt().optional(),contentType:f().optional(),creatorId:f().optional(),agentId:f().optional()}),Y0n=R({assetId:f()}),q0n=R({id:f(),name:f()}),VV=Ve(["file","folder","all"]),H0n=R({assetId:f().optional(),assetType:VV.optional().default("all"),projectId:f().optional(),showDeleted:ur().optional(),prefix:f().optional(),sort:f().optional(),order:f().optional(),...vs.shape}),V0n=R({assetId:f(),userId:f(),replyToId:f().optional(),message:f(),annotations:xs().optional(),second:Gt().optional(),attachmentIds:te(f())}),V0t=R({id:f(),assetId:f(),url:f(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional()}),W0t=R({code:f(),count:Gt(),requestingUserReacted:ur(),creatorNames:te(f())}),W0n=R({code:f().min(1)}),K0n=R({code:f().min(1)}),K0t=R({id:f(),assetId:f(),message:f().nullable(),annotations:xs(),second:Gt().nullable(),creator:L3,replies:te(YV(()=>K0t)),attachments:te(V0t),mentions:te(L3),createdAt:f(),updatedAt:f(),sessionId:f().nullable(),isCompleted:ur(),completionLastChangedBy:L3.nullable(),reactionCounts:te(W0t)}),G0n=R({isCompleted:ur()}),X0n=R({newParentId:f(),assetIds:te(f()),creatorId:f().optional()}),Q0n=R({newParentId:f(),assetIds:te(f()),withComments:ur().default(!1),creatorId:f().optional()}),J0n=R({name:f()}),$0n=R({beforeIndex:f().optional(),afterIndex:f().optional()}),ezn=R({ids:te(f())}),tzn=R({ids:te(f())}),rzn=R({file:hge(File)}),ozn=R({key:f()}),azn=R({fileName:f(),contentType:f(),size:Gt()}),nzn=R({id:f(),uploadUrl:f()}),izn=R({ids:te(f())}),G0t=R({id:f(),name:f(),url:f()}),fzn=R({files:te(G0t)}),X0t=Ve(["fcp-fiojson","media-composer-xml","premiere-xml","resolve-edl"]),szn=R({format:X0t,timeZone:f().refine((e)=>{try{return Intl.DateTimeFormat(void 0,{timeZone:e}),!0}catch{return!1}},{message:"Invalid IANA time zone identifier"}).optional()});var uzn=R({userCount:Gt()}),dzn=R({name:f().min(1,"Name is required").max(100,"Name is too long")}),Zzn=R({id:f(),token:f(),name:f(),createdAt:f()});var Q0t=Ve(["is","eq","neq","gt","gte","lt","lte","contains","notContains","isEmpty","isNotEmpty","in","notIn","hasAny","hasAll","hasNone","isWithin"]),J0t=R({field:f(),operator:Q0t,value:xs()}),$0t=Ve(["asc","desc"]),ezt=R({field:f(),order:$0t}),tzt=Ve(["AND","OR"]),rzt=Ve(["file","folder"]),k3=Ve(["jpeg","webp"]),WV=R({operator:tzt.optional().default("AND"),conditions:te(J0t).optional().default([]),sort:ezt.optional(),assetType:rzt.optional(),showSymlink:ur().optional(),recursively:ur().optional().default(!0),query:f().optional(),isSemantic:ur().optional().default(!1),previewFormat:k3.optional()}),gzn=WV.extend(vs.shape);var KV=R({sourceFolderId:f(),searchFilter:WV}),ozt=R({id:f(),name:f(),filter:KV,projectId:f(),createdAt:f(),updatedAt:f(),creator:R({id:f(),name:f(),image:f().optional().nullable()}).optional().nullable()}),_zn=R({name:f(),filter:KV}),bzn=R({name:f().optional(),filter:KV.optional()});var wzn=R({data:te(ozt),pageInfo:R({cursor:f().optional(),total:Gt().optional()})});var Lzn=R({name:f(),parentId:f()}),kzn=R({name:f()}),Czn=R({ids:te(f())}),Izn=R({ids:te(f())}),Rzn=R({content:f().max(1e5)});var Ezn=R({code:f(),role:f(),teamId:f(),teamName:f(),projectId:f().optional(),projectName:f().optional(),inviterName:f(),isUsed:ur()}),Dzn=R({role:fa(qV)}),Ozn=R({role:fa(qV)}),Nzn=R({code:f()});var Pr={text:"text",longText:"longText",select:"select",selectMulti:"selectMulti",rating:"rating",number:"number",toggle:"toggle",date:"date",user:"user",userMulti:"userMulti"},Cr={NONE:"NONE",CONTENT:"CONTENT",CREATION_CONTEXT:"CREATION_CONTEXT"},Yzn=R({id:f(),displayName:f(),color:f().optional()}),GV=R({name:f(),type:Ve(["text","longText","select","selectMulti","rating","number","toggle","date","user","userMulti"]),autofillSource:fa(Cr).optional(),text:xs().optional(),longText:xs().optional(),select:xs().optional(),selectMulti:xs().optional(),rating:xs().optional(),number:xs().optional(),toggle:xs().optional(),date:xs().optional(),user:xs().optional(),userMulti:xs().optional()}),qzn=R({key:f().optional(),label:f().optional(),scope:f().optional(),config:GV,description:f().default("")}),Hzn=R({label:f().optional(),config:GV,description:f().optional()}),azt=R({fieldId:f(),visible:ur()}),Vzn=te(azt),nzt=R({key:f(),value:xs()}),Wzn=te(nzt),Kzn=R({id:f(),config:GV,scope:f(),readOnly:ur(),visible:ur(),description:f()});var Lge=Ve(["auto","none","bearer","oauth"]),XV=Ve(["streamable_http","sse"]),C3=Ve(["owner","editor","reviewer"]),izt=R({grantType:Ve(["authorization_code","client_credentials"]).optional(),clientId:f().optional(),clientSecret:f().optional(),scope:f().optional(),authorizationParams:wL(f(),f()).optional(),redirectUri:f().optional(),clientName:f().optional(),clientUri:f().optional(),skipIssuerMetadataValidation:ur().optional()}),kge=R({type:Lge.optional(),bearerToken:f().optional(),headers:wL(f(),f()).optional(),oauth:izt.optional()}),QV=R({excludeTools:te(f()).optional(),requestTimeoutMs:Gt().int().positive().optional(),idleTimeoutMs:Gt().int().positive().optional(),keepAlive:ur().optional(),protocolVersion:Ve(["legacy","auto","2026-07-28"]).optional(),directTools:te(f()).optional()}),fzt=R({name:f(),title:f().optional(),description:f().optional(),inputSchema:wZ().optional()}),Qzn=R({url:f().url(),transport:XV.optional(),authConfig:kge.optional(),config:QV.optional(),permission:C3.optional()}),Jzn=R({transport:XV.optional(),authConfig:kge.optional(),config:QV.optional(),permission:C3.optional()}),$zn=R({permission:C3}),szt=R({id:f(),name:f(),description:f().optional(),instructions:f().optional(),url:f(),transport:XV,authType:Lge,config:QV.optional(),permission:C3,status:f(),lastError:f().nullable().optional(),toolCount:Gt(),hasCredential:ur(),createdAt:f(),updatedAt:f()}),eSn=R({servers:te(szt)}),tSn=R({}),rSn=R({tools:te(fzt)}),Cge=Ve(["authenticated","expired","not_authenticated","in_progress"]),oSn=R({status:Cge}),aSn=R({authorizationUrl:f().optional(),status:Cge}),nSn=R({code:f(),iss:f().optional()}),iSn=R({ok:ur(),toolCount:Gt(),message:f().optional()});var Ige=R({id:f().optional(),name:f().optional(),role:f().optional()}),Rge=R({id:f().optional(),name:f().optional()}),lzt=R({id:f().optional(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional(),name:f().optional(),preview:f().optional(),thumbnailUrl:f().optional(),originalWidth:Gt().optional(),originalHeight:Gt().optional()}),czt=R({id:f().optional(),title:f().optional(),status:f().optional()}),lSn=R({id:f().optional(),creator:Ige.optional(),type:f().optional(),team:Rge.optional(),project:Rge.optional(),asset:lzt.optional(),kanbanTask:czt.optional(),user:Ige.optional(),createdAt:f().optional(),isRead:ur().optional()}),cSn=R({unreadOnly:Ka([ur(),f()]).transform((e)=>e===!0||e==="true").optional(),after:f().optional(),pageSize:JD.number().optional()}),uSn=R({notificationId:f().min(1)}),dSn=R({comments:ur().default(!0),replies:ur().default(!0),mentions:ur().default(!0),yourUploads:ur().default(!1),otherUploads:ur().default(!0),statusUpdates:ur().default(!0),kanbanTasks:ur().default(!0),kanbanComments:ur().default(!0)}),ZSn=R({enabled:ur(),host:f().default(""),port:Gt().int().min(1).max(65535).default(587),username:f().optional(),password:f().optional(),smtps:ur().default(!1),ignoreCert:ur().default(!1),from:f().default(""),replyTo:f().optional()}),pSn=R({enabled:ur(),host:f().default(""),port:Gt().int().min(1).max(65535).default(587),username:f().optional(),password:f().optional(),smtps:ur().default(!1),ignoreCert:ur().default(!1),from:f().default(""),replyTo:f().optional()}),mSn=R({host:f().optional(),port:Gt().int().min(1).max(65535).optional(),username:f().optional(),password:f().optional(),smtps:ur().optional(),ignoreCert:ur().optional(),from:f().optional(),replyTo:f().optional()}),hSn=R({success:ur(),messageId:f()});var _Sn=R({name:f(),coverImageKey:f().optional(),enableNotification:ur().default(!0)}),bSn=R({name:f().optional(),coverImageKey:f().optional(),enableNotification:ur().optional()}),uzt=R({id:f(),name:f(),teamId:f(),rootFolder:f().optional(),coverImage:f().optional(),coverImageKey:f().optional(),enableNotification:ur(),updatedAt:Ka([f(),Qn()])}),zSn=R({sortBy:f().optional(),sortDirection:Ve(["asc","desc"]).optional(),previewFormat:k3.optional()}).merge(vs),SSn=R({previewFormat:k3.optional()}).merge(vs),LSn=R({data:te(uzt),pageInfo:O8}),kSn=R({teamId:f()}),CSn=R({id:f(),name:f(),role:Ve(["owner","editor","reviewer","bot","unknown"]),type:fa(S3).optional(),image:f().optional(),scope:Ve(["team","project"]).optional(),hasCustomRole:ur().optional()}),ISn=R({assetType:VV.optional().default("all"),sort:Ve(["createdAt","name","size"]).optional(),order:Ve(["asc","desc"]).optional()}).merge(vs),RSn=R({role:Ve(["editor","reviewer"])}),PSn=R({userId:f(),role:Ve(["owner","editor","reviewer"])}),TSn=R({id:f(),name:f(),role:Ve(["owner","editor","reviewer","bot","unknown"]),image:f().optional()});var ou=["openai-completions","mistral-conversations","openai-responses","azure-openai-responses","openai-codex-responses","anthropic-messages","bedrock-converse-stream","google-generative-ai","google-vertex"],I3=R({api:Ve(ou).optional(),reasoning:ur().default(!1),input:te(Ve(["text","image"])).default(["text"]),contextWindow:Gt().int().positive().default(128000),maxTokens:Gt().int().positive().default(4096),cost:R({input:Gt().nonnegative().default(0),output:Gt().nonnegative().default(0),cacheRead:Gt().nonnegative().default(0),cacheWrite:Gt().nonnegative().default(0)})}),JV=R({id:f().optional(),modelId:f().min(1,"Model ID is required"),name:f().min(0).default(""),config:I3}),ia=R({baseUrl:f().url("Must be a valid URL").optional().or(rl("")),apiKey:f().optional().or(rl("")),api:Ve(ou),headers:wL(f(),f()).optional(),authHeader:ur().optional()}),DSn=R({name:f().min(1,"Provider name is required"),config:ia,models:te(JV).default([])}),OSn=R({name:f().min(1,"Provider name is required").optional(),config:ia,models:te(JV).optional()}),IA=R({modelId:f().min(1,"Model ID is required"),name:f().min(0).default(""),config:I3}),NSn=R({modelId:f().min(1,"Model ID is required").optional(),name:f().min(0).optional(),config:I3.optional()}),FSn=R({id:f(),name:f(),isBuiltin:ur(),config:ia,models:te(JV).optional(),modelsCount:Gt().optional(),createdAt:Qn(),updatedAt:Qn()}),Pge=R({modelId:f().min(1),name:f().default(""),config:I3}),dzt=R({name:f(),isNewProvider:ur(),config:ia,models:te(Pge)}),jSn=R({providers:te(dzt),totalNewProviders:Gt(),totalNewModels:Gt()}),BSn=R({providers:te(R({name:f(),isNewProvider:ur(),config:ia,models:te(Pge)}))}),USn=R({addedProviders:Gt(),addedModels:Gt()});var VSn=R({name:f().min(1),expireAt:f().datetime().optional(),password:f().optional(),isDisabled:ur().optional(),allowDownload:ur().optional(),defaultSortOrder:f().optional(),viewMode:f().optional()}),WSn=R({name:f().min(1).optional(),expireAt:f().datetime().optional().nullable(),password:f().optional().nullable(),isDisabled:ur().optional(),allowDownload:ur().optional(),defaultSortOrder:f().optional().nullable(),viewMode:f().optional().nullable(),fieldVisibility:wL(f(),ur()).optional().nullable()}),KSn=vs.extend({projectId:f().optional()}),GSn=R({assetIds:te(f().min(1)).min(1)});var JSn=R({assetId:f().optional(),githubUrl:f().optional(),override:ur().optional()}),$Sn=R({config:R({environmentVariables:te(R({name:f(),default:f().optional()}))})}),eLn=R({permission:Ve(["owner","editor","reviewer"])});var nLn=R({name:f()}),Zzt=R({id:f(),name:f(),rootFolder:f().optional(),updatedAt:Ka([f(),Qn()])});var iLn=R({data:te(Zzt),pageInfo:O8}),fLn=R({teamId:f(),userId:f()}),sLn=R({id:f(),name:f(),email:f().optional(),role:Ve(["owner","editor","reviewer","bot","unknown"]),image:f().optional(),unreadNotificationCount:Gt().optional()}),lLn=R({name:f().optional(),imageKey:f().nullable().optional()}),cLn=R({id:f(),name:f(),role:Ve(["owner","editor","reviewer","bot","unknown"]),email:f().optional(),type:fa(S3).optional(),image:f().optional(),scope:fa(Mge).optional()}),uLn=R({includeAgents:f().optional().transform((e)=>e==="true")}),Hs={best_match:"best_match",multi:"multi",all:"all"},pzt={r480p:"480p",r720p:"720p",r1080p:"1080p",r1440p:"1440p",r2160p:"2160p"},TA=["480p","720p","1080p","1440p","2160p"],Ua={off:"off",auto:"auto"},mzt={r480p:"480p",r720p:"720p",r1080p:"1080p",r1440p:"1440p",r2160p:"2160p"},MA=["480p","720p","1080p"],dLn=Ka([R({key:rl("transcode.videoStrategy"),value:fa(Hs)}),R({key:rl("transcode.videoResolutions"),value:te(fa(pzt))}),R({key:rl("transcode.hardwareAcceleration"),value:fa(Ua)}),R({key:rl("transcode.threads"),value:Gt().int().min(0).max(32)}),R({key:rl("transcode.hlsEnabled"),value:ur()}),R({key:rl("transcode.hlsResolutions"),value:te(fa(mzt))}),R({key:rl("appearance.hideAgent"),value:ur()})]),ZLn=R({networkSandboxEnabled:ur(),allowedDomains:te(f()),pendingDomains:te(f()).default([])}),pLn=R({networkSandboxEnabled:ur().optional(),allowedDomains:te(f()).optional(),pendingDomains:te(f()).optional()}),mLn=R({role:Ve(["editor","reviewer"])});var Tge=YV(()=>R({name:f(),id:f(),size:Gt(),children:te(Tge),type:f(),mediaType:f().optional()})),MLn=R({parentId:f(),files:te(Tge)}),hzt=R({id:f(),fileId:f(),url:f()}),xLn=R({taskId:f(),presignedUrls:te(hzt),storageBackend:Ve(["s3","local"]).default("local"),createdAssets:te(R({tempId:f(),assetId:f(),key:f().optional()})).optional()}),vLn=R({key:f().min(1),method:Ve(["PUT","POST","GET","DELETE"]),uploadId:f().optional(),partNumber:Gt().int().positive().optional(),fileId:f().min(1)}),yLn=R({url:f()}),_Ln=R({fileId:f().min(1),uploadId:f().optional(),key:f().optional()}),bLn=R({success:ur()}),wLn=R({fileId:f(),errorMessage:f().optional()}),zLn=R({id:f(),name:f(),total:Gt(),uploaded:Gt(),createdAt:f()}),SLn=R({bucket:f(),key:f(),Signature:f()}),LLn=R({file:hge(File)});var gzt=R({key:f(),value:wZ()}),ILn=R({value:wZ()}),RLn=te(gzt);var ALn=R({fileIds:te(f())}),ELn=R({fileId:f(),beforeId:f()}),DLn=R({id:f(),version:Gt(),name:f().optional().nullable(),previewUrl:f().optional().nullable(),createdAt:f().optional().nullable(),creator:R({id:f(),name:f().nullable(),image:f().optional().nullable()}).nullable().optional(),agent:R({id:f(),name:f()}).nullable().optional()});var FLn=R({agentId:f(),textPrompt:f().optional(),attachedFiles:te(f()).optional(),assetIds:te(f()).optional(),sessionId:f().optional(),contextAssetId:f().optional(),projectId:f().optional(),second:Gt().nullable().optional(),annotations:te(wL(f(),wZ())).optional()}).superRefine((e,r)=>{let a=e.textPrompt&&e.textPrompt.trim().length>0,i=e.attachedFiles&&e.attachedFiles.length>0,s=e.assetIds&&e.assetIds.length>0,l=e.annotations&&e.annotations.length>0;if(!a&&!i&&!s&&!l)r.addIssue({code:ro.custom,message:"At least one of textPrompt, attachedFiles, assetIds, or annotations must be provided.",path:["textPrompt"]})}),jLn=R({id:f(),agentId:f(),userId:f().nullable(),assetId:f().nullable(),userCommentId:f().nullable(),name:f().nullable().optional(),createdAt:f(),updatedAt:f()}),Mzt=R({id:f(),name:f(),type:f(),mediaType:Ve(["image","video","pdf","audio","other"]).optional(),mimeType:f().optional(),parentId:f().optional(),path:f().optional(),durationSeconds:Gt().optional(),totalFrames:Gt().optional(),totalPages:Gt().optional(),navigated:ur().optional(),ancestors:te(R({id:f(),name:f()})).optional()}),Age=R({id:f(),name:f(),type:f(),mediaType:Ve(["image","video","pdf","audio","other"]).optional(),mimeType:f().optional(),path:f().optional(),url:f().optional()}),xzt=cge("type",[R({type:rl("time"),seconds:Gt()}),R({type:rl("page"),page:Gt()})]),vzt=R({id:f(),replyCount:Gt().optional()}),BLn=R({id:f().optional(),user:R({id:f(),name:f(),role:f()}).optional(),thread:vzt.optional(),currentAsset:Mzt.optional(),position:xzt.optional(),annotation:ur().optional(),annotations:te(wL(f(),wZ())).optional(),attachedFiles:te(Age).optional(),referencedAssets:te(Age).optional()}),ULn=uge(R({id:f()}),wZ());var Dl;((Ke)=>{Ke.team_create="team_create";Ke.team_update="team_update";Ke.team_delete="team_delete";Ke.team_member_add="team_member_add";Ke.team_member_update="team_member_update";Ke.team_member_remove="team_member_remove";Ke.project_create="project_create";Ke.project_update="project_update";Ke.project_delete="project_delete";Ke.project_empty_trash="project_empty_trash";Ke.project_member_add="project_member_add";Ke.project_member_update="project_member_update";Ke.project_member_remove="project_member_remove";Ke.file_create="file_create";Ke.file_update="file_update";Ke.file_delete="file_delete";Ke.folder_create="folder_create";Ke.folder_update="folder_update";Ke.folder_delete="folder_delete";Ke.asset_reparent="asset_reparent";Ke.asset_copy="asset_copy";Ke.share_create="share_create";Ke.share_update="share_update";Ke.share_delete="share_delete";Ke.agent_create="agent_create";Ke.agent_update="agent_update";Ke.agent_delete="agent_delete";Ke.skill_create="skill_create";Ke.skill_update="skill_update";Ke.skill_delete="skill_delete";Ke.mcp_server_create="mcp_server_create";Ke.mcp_server_update="mcp_server_update";Ke.mcp_server_delete="mcp_server_delete";Ke.provider_create="provider_create";Ke.provider_update="provider_update";Ke.provider_delete="provider_delete";Ke.invite_create="invite_create";Ke.invite_revoke="invite_revoke";Ke.metadata_field_create="metadata_field_create";Ke.metadata_field_update="metadata_field_update";Ke.metadata_field_delete="metadata_field_delete";Ke.comment_create="comment_create";Ke.comment_update="comment_update";Ke.comment_delete="comment_delete";Ke.comment_complete="comment_complete";Ke.quota_rule_create="quota_rule_create";Ke.quota_rule_update="quota_rule_update";Ke.quota_rule_delete="quota_rule_delete";Ke.quota_record_reset="quota_record_reset";Ke.quota_policy_create="quota_policy_create";Ke.quota_policy_update="quota_policy_update";Ke.quota_policy_delete="quota_policy_delete";Ke.kanban_goal_create="kanban_goal_create";Ke.kanban_goal_update="kanban_goal_update";Ke.kanban_goal_delete="kanban_goal_delete";Ke.kanban_task_create="kanban_task_create";Ke.kanban_task_update="kanban_task_update";Ke.kanban_task_delete="kanban_task_delete";Ke.kanban_comment_create="kanban_comment_create";Ke.kanban_comment_delete="kanban_comment_delete";Ke.kanban_dependency_add="kanban_dependency_add";Ke.kanban_dependency_remove="kanban_dependency_remove"})(Dl||={});var yzt=R({id:f(),action:fa(Dl),teamId:f(),userId:f().nullable().optional(),agentId:f().nullable().optional(),agent:R({id:f(),name:f()}).nullable().optional(),projectId:f().nullable().optional(),itemId:f().nullable().optional(),createdAt:f()}),HLn=R({first:JD.number().optional(),after:f().optional(),actions:Ka([fa(Dl),te(fa(Dl))]).transform((e)=>Array.isArray(e)?e:[e]).optional(),userIds:Ka([f(),te(f())]).transform((e)=>Array.isArray(e)?e:[e]).optional(),agentIds:Ka([f(),te(f())]).transform((e)=>Array.isArray(e)?e:[e]).optional(),itemId:f().optional()}),VLn=R({nodes:te(yzt),pageInfo:R({hasNextPage:ur(),endCursor:f().nullable()}),total:Gt()});var _zt=R({id:f(),type:rl("text"),x:Gt().min(0).max(1),y:Gt().min(0).max(1),opacity:Gt().min(0).max(1),rotation:Gt().min(-180).max(180),text:f(),size:Gt().positive().max(1),color:f()}),bzt=R({id:f(),type:rl("image"),x:Gt().min(0).max(1),y:Gt().min(0).max(1),opacity:Gt().min(0).max(1),rotation:Gt().min(-180).max(180),imageAssetKey:f().min(1),imageAssetUrl:f().optional(),size:Gt().positive().max(1)}),wzt=cge("type",[_zt,bzt]),$V=R({blocks:te(wzt)}),GLn=R({name:f().min(1),teamId:f().optional(),config:$V}),XLn=R({name:f().min(1).optional(),config:$V.optional()}),QLn=R({enabled:ur(),config:$V.optional()}).superRefine((e,r)=>{if(e.enabled&&(!e.config||e.config.blocks.length===0))r.addIssue({code:"custom",path:["config"],message:"Watermark configuration is required when enabling watermark"})});var eW=fa(xge),tW=Ve(["1hour","5hour","1day","7day","one_hour","five_hours","one_day","seven_days"]);function su(e){switch(e){case"one_hour":case"1hour":return"1hour";case"five_hours":case"5hour":return"5hour";case"one_day":case"1day":return"1day";case"seven_days":case"7day":return"7day";default:return e}}var rW=fa(vge),oW=Ve(["owner","editor","reviewer"]),Ege=R({id:f().min(1,"MCP server ID is required")}),Dge=R({match:f().min(1,"Bash match wildcard is required")}),Oge=R({name:f().min(1,"Tool name is required")}),aW=wL(f(),wZ()),zzt=R({id:f().nullable(),ruleId:f(),teamId:f(),userId:f().nullable().optional(),user:R({id:f(),name:f(),email:f(),image:f().nullable().optional()}).nullable().optional(),periodStart:f().nullable().optional(),periodEnd:f().nullable().optional(),consumed:Gt(),remaining:Gt(),percent:Gt(),isWindowActive:ur()}),rkn=R({records:te(zzt),total:Gt()}),Szt=R({id:f(),teamId:f(),scopeMode:eW,role:oW.nullable().optional(),userIds:te(f()).nullable().optional(),resource:rW,resourceData:aW.nullable().optional(),limit:Gt(),period:tW,enabled:ur(),recordsCount:Gt().optional(),createdAt:f(),updatedAt:f()}),okn=R({rules:te(Szt),total:Gt()}),akn=R({scopeMode:eW,role:oW.optional().nullable(),userIds:te(f()).optional().nullable(),resource:rW,resourceData:aW.optional().nullable(),limit:Gt().positive("Limit must be greater than 0"),period:tW,enabled:ur().optional().default(!0)}).superRefine((e,r)=>{if(e.scopeMode==="selected_members"){if(!e.userIds||e.userIds.length===0)r.addIssue({code:ro.custom,message:'userIds must contain at least one user when scopeMode is "selected_members"',path:["userIds"]})}if(e.resource==="agent_mcp_call_count"){if(!Ege.safeParse(e.resourceData).success)r.addIssue({code:ro.custom,message:"resourceData.id is required for agent_mcp_call_count",path:["resourceData","id"]})}else if(e.resource==="agent_bash_call_count"){if(!Dge.safeParse(e.resourceData).success)r.addIssue({code:ro.custom,message:"resourceData.match is required for agent_bash_call_count",path:["resourceData","match"]})}else if(e.resource==="agent_tool_call_count"){if(!Oge.safeParse(e.resourceData).success)r.addIssue({code:ro.custom,message:"resourceData.name is required for agent_tool_call_count",path:["resourceData","name"]})}}),nkn=R({userId:f().nullable()}),ikn=R({scopeMode:eW.optional(),role:oW.optional().nullable(),userIds:te(f()).optional().nullable(),resource:rW.optional(),resourceData:aW.optional().nullable(),limit:Gt().positive("Limit must be greater than 0").optional(),period:tW.optional(),enabled:ur().optional()}).superRefine((e,r)=>{if(e.scopeMode==="selected_members"&&e.userIds!==void 0){if(!e.userIds||e.userIds.length===0)r.addIssue({code:ro.custom,message:'userIds must contain at least one user when scopeMode is "selected_members"',path:["userIds"]})}if(e.resource==="agent_mcp_call_count"&&e.resourceData!==void 0){if(!Ege.safeParse(e.resourceData).success)r.addIssue({code:ro.custom,message:"resourceData.id is required for agent_mcp_call_count",path:["resourceData","id"]})}else if(e.resource==="agent_bash_call_count"&&e.resourceData!==void 0){if(!Dge.safeParse(e.resourceData).success)r.addIssue({code:ro.custom,message:"resourceData.match is required for agent_bash_call_count",path:["resourceData","match"]})}else if(e.resource==="agent_tool_call_count"&&e.resourceData!==void 0){if(!Oge.safeParse(e.resourceData).success)r.addIssue({code:ro.custom,message:"resourceData.name is required for agent_tool_call_count",path:["resourceData","name"]})}});var bi="unassigned",lkn=R({title:f().min(1),description:f().optional()}),ckn=R({title:f().min(1).optional(),description:f().nullable().optional()}),Lzt=R({id:f(),title:f(),description:f().nullable().optional(),teamId:f(),creatorId:f().nullable().optional(),taskCount:Gt().optional(),createdAt:Ka([f(),Qn()]),updatedAt:Ka([f(),Qn()])}),ukn=R({}),dkn=R({data:te(Lzt)});var dM=R({id:f(),name:f(),image:f().optional()}),kzt=R({summary:f().optional(),blockReason:f().optional(),blockKind:f().optional(),reason:f().optional(),assets:te(R({id:f(),type:f().optional(),name:f().optional(),description:f().optional()})).optional()}).passthrough(),nW=R({id:f(),taskId:f(),actor:dM.nullable().optional(),type:fa(lf),fromStatus:fa(Qe).nullable().optional(),toStatus:fa(Qe).nullable().optional(),data:kzt.nullable().optional(),createdAt:Ka([f(),Qn()])}),hkn=R({data:te(nW)});var Czt=R({id:f(),name:f(),key:f(),sizeByte:Gt(),contentType:f().nullable().optional(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional()}),Izt=R({id:f(),name:f(),sizeByte:Gt(),contentType:f().nullable().optional(),url:f(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional()}),vkn=R({id:f(),name:f(),key:f(),sizeByte:Gt(),contentType:f().nullable().optional(),uploadUrl:f(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional()}),ykn=R({body:f().default(""),attachments:te(Czt).optional()}).refine((e)=>e.body.trim().length>0||e.attachments&&e.attachments.length>0,{message:"Comment body or attachments required"}),iW=R({id:f(),taskId:f(),author:dM,body:f(),attachments:te(Izt).default([]),createdAt:Ka([f(),Qn()]),updatedAt:Ka([f(),Qn()])}),_kn=R({data:te(iW)});var Ckn=R({title:f().min(1),description:f().optional(),isAgentTask:ur().optional(),priority:fa(Ur).optional(),startDate:Ka([f(),Qn()]).optional(),dueDate:Ka([f(),Qn()]).optional(),goalId:f().optional(),projectId:f().optional(),reporterId:f().optional(),assigneeId:f().optional(),targetFolderId:f().optional(),parentIds:te(f()).optional(),assetIds:te(f()).optional()}),Ikn=R({fromStatus:fa(Qe).optional(),title:f().min(1).optional(),description:f().nullable().optional(),status:fa(Qe).optional(),reason:f().optional(),priority:fa(Ur).optional(),startDate:Ka([f(),Qn()]).nullable().optional(),dueDate:Ka([f(),Qn()]).nullable().optional(),goalId:f().nullable().optional(),projectId:f().nullable().optional(),reporterId:f().nullable().optional(),assigneeId:f().nullable().optional(),targetFolderId:f().nullable().optional(),beforeIndex:f().optional(),afterIndex:f().optional(),parentIds:te(f()).optional(),assetIds:te(f()).optional()}),Rkn=R({status:fa(Qe).optional(),isAgentTask:Ka([ur(),f()]).transform((e)=>e===!0||e==="true").optional(),goalId:f().optional(),projectId:f().optional(),priority:fa(Ur).optional(),assigneeId:f().optional(),reporterId:f().optional()}).merge(vs),Rzt=R({id:f(),type:fa(lf),actor:dM.nullable().optional(),summary:f().optional(),blockReason:f().optional(),blockKind:f().optional(),reason:f().optional(),createdAt:Ka([f(),Qn()])}),Pzt=R({id:f(),title:f()}),Nge=R({id:f(),title:f(),isAgentTask:ur(),status:fa(Qe),priority:fa(Ur),sortIndex:f().nullable().optional()}),Tzt=R({id:f(),name:f(),type:f(),proxyType:Ve(["image","video","audio","pdf"]).nullable().optional(),thumbnailUrl:f().nullable().optional(),path:f(),creator:dM.nullable().optional(),sizeByte:Gt().optional(),fileCount:Gt().optional(),projectId:f().nullable().optional(),createdAt:Ka([f(),Qn()])}),fW=R({id:f(),title:f(),description:f().nullable().optional(),isAgentTask:ur(),status:fa(Qe),priority:fa(Ur),startDate:Ka([f(),Qn()]).nullable().optional(),dueDate:Ka([f(),Qn()]).nullable().optional(),startedAt:Ka([f(),Qn()]).nullable().optional(),completedAt:Ka([f(),Qn()]).nullable().optional(),teamId:f(),projectId:f().nullable().optional(),sortIndex:f().nullable().optional(),creator:dM,reporter:dM.nullable().optional(),assignee:dM.nullable().optional(),goal:Pzt.nullable().optional(),targetFolderId:f().nullable().optional(),latestStatusEvent:Rzt.nullable().optional(),commentCount:Gt().default(0),dependencyCount:Gt().default(0),dependentCount:Gt().default(0),assetCount:Gt().default(0),createdAt:Ka([f(),Qn()]),updatedAt:Ka([f(),Qn()])}),Pkn=fW.extend({dependencies:te(Nge),dependents:te(Nge),assets:te(Tzt),comments:te(iW),events:te(nW)}),Tkn=R({data:te(fW),pageInfo:O8}),Akn=R({taskId:f()}),Ekn=R({assetIds:te(f())}),Dkn=R({data:te(fW),total:Gt()});var Hkn=R({assetId:f()});function Fge(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Sa(e,r){if(r===void 0||r===null)return"";return` ${e}="${Fge(r)}"`}function kA(e){if(!e)return"";let r=[];if(e.user){let a="";if(e.user.id!==void 0)a+=Sa("id",e.user.id);if(e.user.name!==void 0)a+=Sa("name",e.user.name);if(e.user.role!==void 0)a+=Sa("role",e.user.role);if(a)r.push(` <user${a} />`)}if(e.thread){let a="";if(e.thread.id!==void 0)a+=Sa("id",e.thread.id);if(e.thread.replyCount!==void 0)a+=` reply_count="${Math.round(e.thread.replyCount)}"`;if(a)r.push(` <thread${a} />`)}if(e.currentAsset){let a=e.currentAsset,i="";if(a.id!==void 0)i+=Sa("id",a.id);if(a.name!==void 0)i+=Sa("name",a.name);if(a.type!==void 0)i+=Sa("type",a.type);if(a.mediaType!==void 0)i+=Sa("media_type",a.mediaType);if(a.mimeType!==void 0)i+=Sa("mime_type",a.mimeType);if(a.parentId!==void 0)i+=Sa("parent_id",a.parentId);if(a.path!==void 0)i+=Sa("path",a.path);if(a.durationSeconds!==void 0)i+=` duration_seconds="${a.durationSeconds.toFixed(2)}"`;if(a.totalFrames!==void 0)i+=` total_frames="${Math.round(a.totalFrames)}"`;if(a.totalPages!==void 0)i+=` total_pages="${Math.round(a.totalPages)}"`;if(a.navigated!==void 0)i+=` navigated="${String(a.navigated)}"`;if(a.ancestors&&a.ancestors.length>0){r.push(` <current_asset${i}>`),r.push(" <ancestors>");for(let s of a.ancestors){let l="";if(s.id!==void 0)l+=Sa("id",s.id);if(s.name!==void 0)l+=Sa("name",s.name);r.push(` <folder${l} />`)}r.push(" </ancestors>"),r.push(" </current_asset>")}else r.push(` <current_asset${i} />`)}if(e.position){if(e.position.type==="time")r.push(` <position type="time" seconds="${e.position.seconds.toFixed(4)}" />`);else if(e.position.type==="page")r.push(` <position type="page" page="${Math.round(e.position.page)}" />`)}if(e.annotation)if(e.id!==void 0)r.push(` <annotation id="${Fge(e.id)}" />`);else r.push(" <annotation />");if(e.attachedFiles&&e.attachedFiles.length>0){let a=[...e.attachedFiles].sort((i,s)=>i.id.localeCompare(s.id));r.push(" <attached_files>");for(let i of a){let s="";if(i.id!==void 0)s+=Sa("id",i.id);if(i.name!==void 0)s+=Sa("name",i.name);if(i.type!==void 0)s+=Sa("type",i.type);if(i.mediaType!==void 0)s+=Sa("media_type",i.mediaType);if(i.mimeType!==void 0)s+=Sa("mime_type",i.mimeType);if(i.path!==void 0)s+=Sa("path",i.path);r.push(` <file${s} />`)}r.push(" </attached_files>")}if(e.referencedAssets&&e.referencedAssets.length>0){let a=[...e.referencedAssets].sort((i,s)=>i.id.localeCompare(s.id));r.push(" <referenced_assets>");for(let i of a)if(i.type==="folder"){let s="";if(i.id!==void 0)s+=Sa("id",i.id);if(i.name!==void 0)s+=Sa("name",i.name);if(i.path!==void 0)s+=Sa("path",i.path);r.push(` <folder${s} />`)}else{let s="";if(i.id!==void 0)s+=Sa("id",i.id);if(i.name!==void 0)s+=Sa("name",i.name);if(i.type!==void 0)s+=Sa("type",i.type);if(i.mediaType!==void 0)s+=Sa("media_type",i.mediaType);if(i.mimeType!==void 0)s+=Sa("mime_type",i.mimeType);if(i.path!==void 0)s+=Sa("path",i.path);r.push(` <asset${s} />`)}r.push(" </referenced_assets>")}if(r.length===0)return"";return`<context>
196
- ${r.join(`
197
- `)}
198
- </context>`}var zR=Ve(["image","video"]),Azt=Ve(["configured_custom","configured_env","not_configured"]),Gkn=R({apiKey:f().optional().or(rl("")),models:te(R({type:zR,modelId:f().min(1,"Model ID is required"),name:f().optional()})).optional()});var Xkn=R({type:zR,provider:f().min(1,"Provider is required"),modelId:f().min(1,"Model ID is required"),name:f().optional()}),Ezt=R({id:f(),type:zR,provider:f(),modelId:f(),name:f(),createdAt:f()}),Dzt=R({provider:f(),defaultEnvKey:f(),apiKeyConfigured:ur(),status:Azt,customApiKeyOrEnv:f().optional(),supportedTypes:te(zR)}),Qkn=R({providers:te(Dzt),enabledModels:te(Ezt)}),Jkn=R({modelId:f(),name:f(),type:zR}),$kn=R({provider:f().optional(),type:zR.optional()});var jge=86400000,Mn=(e)=>{let r=sM(e),a=new Date;if(isNaN(r.getTime()))return e;let i=gr(r,"HH:mm");if(DD(r))return Jht({time:i});if(OD(r))return sxt({time:i});let s=qH(a,r),l=s>=0?s:0;return l===1?ele({count:l}):$se({count:l})},RA=(e)=>{let r=sM(e),a=new Date;if(isNaN(r.getTime()))return e;if(DD(r))return ale();if(OD(r))return nle();let i=qH(a,r),s=i>=0?i:0;return s===1?ele({count:s}):$se({count:s})},Yp=(e,r=new Date)=>{let a=typeof e==="string"?sM(e).getTime():e instanceof Date?e.getTime():NaN;if(isNaN(a))return"< 1m";let i=a-r.getTime();if(i<=0)return"< 1m";let s=Math.floor(i/1000),l=Math.floor(s/86400),c=Math.floor(s%86400/3600),d=Math.floor(s%3600/60);if(l>0)return c>0?`${l}d ${c}h`:`${l}d`;if(c>0)return d>0?`${c}h ${d}m`:`${c}h`;return d>0?`${d}m`:"< 1m"},Gd=(e,r=new Date)=>{if(!e)return null;let a=sM(e);if(isNaN(a.getTime()))return null;let i=a.getTime()+zge*jge;return Math.max(0,Math.ceil((i-r.getTime())/jge))};S();var $D=10,sW=10,Bge=$D*sW,Vd=({spriteUrl:e,thumbnailUrl:r,videoWidth:a,videoHeight:i,className:s=""})=>{let l=y(null),[c,d]=u({width:0,height:0}),[m,g]=u({width:0,height:0}),[x,v]=u(!1),[b,_]=u(!1),[z,k]=u(!1),[U,P]=u(0),[T,G]=u(0);h(()=>{if(!l.current)return;let ie=new ResizeObserver((ye)=>{for(let We of ye)d({width:We.contentRect.width,height:We.contentRect.height})});return ie.observe(l.current),()=>ie.disconnect()},[]);let X=D(()=>{if(b||z)return;k(!0);let ie=new Image;ie.src=e,ie.onload=()=>{g({width:ie.naturalWidth,height:ie.naturalHeight}),_(!0),k(!1)},ie.onerror=()=>{console.error("Failed to load sprite image"),k(!1)}},[e,b,z]),J=()=>{v(!0),X()},ee=()=>{v(!1)},re=(ie)=>{if(!l.current)return;let ye=l.current.getBoundingClientRect(),We=ie.clientX-ye.left,Ye=Math.max(0,Math.min(We,ye.width));G(Ye);let Se=Ye/ye.width,He=Math.min(Math.floor(Se*Bge),Bge-1);P(He)},oe=N(()=>{if(c.width===0||c.height===0)return{};let ie=a/i;if(m.width>0&&m.height>0){let _t=m.width/$D,Wt=m.height/sW;ie=_t/Wt}let ye=c.width/c.height,We,Ye;if(ye>ie)Ye=c.height,We=Ye*ie;else We=c.width,Ye=We/ie;let Se=Math.ceil(We),He=Math.ceil(Ye),dt=Se*$D,Ge=He*sW,yt=U%$D,Ft=Math.floor(U/$D),Bt=-(yt*Se),de=-(Ft*He);return{backgroundImage:`url(${e})`,backgroundSize:`${dt}px ${Ge}px`,backgroundPosition:`${Bt}px ${de}px`,backgroundRepeat:"no-repeat",width:`${Se}px`,height:`${He}px`,imageRendering:"auto"}},[c,a,i,U,e,m]);return o("div",{ref:l,className:`relative w-full h-full overflow-hidden cursor-crosshair group bg-black select-none ${s}`,onMouseEnter:J,onMouseLeave:ee,onMouseMove:re,children:[t("img",{src:r,alt:"Thumbnail",className:`absolute inset-0 w-full h-full object-contain transition-opacity duration-200 ${x&&b?"opacity-0":"opacity-100"}`,draggable:!1}),x&&!b&&t("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 z-10",children:t("div",{className:"w-6 h-6 border-2 border-white/30 border-t-white rounded-full animate-spin"})}),b&&t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-75 ${x?"opacity-100":"opacity-0"}`,children:t("div",{style:oe})}),x&&t("div",{className:"absolute top-0 bottom-0 w-0.5 bg-red-500 shadow-[0_0_4px_rgba(255,0,0,0.8)] z-20 pointer-events-none",style:{transform:`translateX(${T}px)`}})]})};S();var ol=(e,r)=>{let a=new RegExp(`(${Object.keys(r).map((i)=>`\\{${i}\\}`).join("|")})`,"g");return t("span",{children:e.split(a).map((i,s)=>{let l=i.match(/^\{(.+)\}$/);if(l&&r[l[1]])return t(Cn,{children:r[l[1]]},s);return i})})},Uge=({notification:e})=>{let r=Re(),{creator:a,createdAt:i,isRead:s,type:l,asset:c,project:d,team:m,user:g,kanbanTask:x}=e,v=(()=>{let k=a?.name||Pl(),U=c?.name||Wgt(),P=x?.title||rMt(),T=d?.name||$gt(),G=m?.name||nMt(),X=g?.name||Pl(),J={creator:t("span",{className:"font-semibold",children:k}),asset:t("span",{className:"font-semibold",children:U}),task:t("span",{className:"font-semibold",children:P}),project:t("span",{className:"font-semibold",children:T}),team:t("span",{className:"font-semibold",children:G}),user:t("span",{className:"font-semibold",children:X})};switch(l){case"comment_created":return ol(zet({creator:"{creator}",asset:"{asset}"}),J);case"reply_created":return ol(stt({creator:"{creator}",asset:"{asset}"}),J);case"mention":return ol(x?ntt({creator:"{creator}",task:"{task}"}):rtt({creator:"{creator}",asset:"{asset}"}),J);case"successful_file_uploaded":return ol(Mtt({creator:"{creator}",asset:"{asset}",project:"{project}"}),J);case"metadata_field_updated_status":return ol(mtt({creator:"{creator}",asset:"{asset}"}),J);case"new_user_join_team":return ol(Eet({user:"{user}",team:"{team}"}),J);case"new_user_join_project":return ol(Pet({user:"{user}",project:"{project}"}),J);case"kanban_task_created":return ol(qet({creator:"{creator}",task:"{task}"}),J);case"kanban_task_assigned":return ol(Net({creator:"{creator}",task:"{task}"}),J);case"kanban_task_status_updated":return ol(Xet({creator:"{creator}",task:"{task}"}),J);case"kanban_task_updated":return ol($et({creator:"{creator}",task:"{task}"}),J);case"kanban_task_deleted":return ol(Wet({creator:"{creator}",task:"{task}"}),J);case"kanban_task_comment_created":return ol(Bet({creator:"{creator}",task:"{task}"}),J);default:return ol(Cet({creator:"{creator}"}),J)}})(),b=c?.proxyType==="video"&&c.preview&&c.thumbnailUrl&&c.originalWidth&&c.originalHeight,_=c?.preview&&(c.proxyType==="image"||c.proxyType==="video");return o("div",{onClick:()=>{if(x?.id&&m?.id)r({to:"/teams/$teamId/kanban",params:{teamId:m.id},search:{taskId:x.id}});else if(d?.id&&c?.id)r({to:"/projects/$projectId/files/$fileId",params:{projectId:d.id,fileId:c.id}})},className:"flex py-2 cursor-pointer group border border-transparent items-center justify-center hover:bg-muted/50 rounded-md px-1 transition-colors",children:[t("div",{className:C("w-1.5 h-1.5 rounded-full shadow-xs",s?"bg-transparent":"bg-destructive")}),o("div",{className:"flex-1 min-w-0 flex flex-col justify-center pl-2",children:[t("div",{className:"text-sm text-foreground break-all leading-snug",children:v}),t("div",{className:"text-[11px] text-muted-foreground mt-1",children:Mn(i||"")})]}),_&&t("div",{className:"w-18 h-18 ml-2 rounded-md overflow-hidden flex-shrink-0 bg-muted border border-border flex items-center justify-center mt-0.5",children:b?t(Vd,{spriteUrl:c.preview,thumbnailUrl:c.thumbnailUrl,videoWidth:c.originalWidth,videoHeight:c.originalHeight}):t("img",{src:c.preview,alt:c.name,className:"w-full h-full object-cover"})})]})};function So({className:e,orientation:r="horizontal",...a}){return t(DPe,{"data-slot":"tabs","data-orientation":r,orientation:r,className:C("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...a})}var Ozt=fs("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Eo({className:e,variant:r="default",...a}){return t(OPe,{"data-slot":"tabs-list","data-variant":r,className:C(Ozt({variant:r}),e),...a})}function Kr({className:e,...r}){return t(NPe,{"data-slot":"tabs-trigger",className:C("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...r})}function kn({className:e,...r}){return t(FPe,{"data-slot":"tabs-content",className:C("flex-1 outline-none",e),...r})}S();var Yge=()=>{let{teamId:e}=lt(),[r,a]=u("all"),i=Q(),{ref:s,inView:l}=Pt(),c=(P,T)=>["notifications",P,{unreadOnly:T}],{data:d,fetchNextPage:m,hasNextPage:g,isFetchingNextPage:x,isLoading:v,refetch:b}=pt({queryKey:c(e??null,r==="unread"),queryFn:async({pageParam:P})=>{let T=await A.api.teams[":teamId"].notifications.$get({param:{teamId:e},query:{unreadOnly:r==="unread"?"true":"false",...P?{after:P}:{},pageSize:"20"}});if(!T.ok)throw Error("failed to fetch notifications");return T.json()},initialPageParam:void 0,getNextPageParam:(P)=>P.pageInfo?.cursor||void 0,enabled:!!e});h(()=>{if(l&&g)m()},[l,g,m]);let _=N(()=>d?.pages.flatMap((P)=>P.data||[])||[],[d]);h(()=>{if(e)i.invalidateQueries({queryKey:["teams",e,"me"]})},[e,_.length,i]);let z=A.api.teams[":teamId"].notifications.read.$post,k=B({mutationFn:async({teamId:P,notificationId:T})=>{if(!(await z({param:{teamId:P},json:{notificationId:T}})).ok)throw Error("failed to mark read");return null}}),U=async()=>{if(_.length>0&&e){let P=_[0].id;if(P){i.setQueryData(["teams",e,"me"],(T)=>{if(!T)return T;return{...T,unreadNotificationCount:0}});try{await k.mutateAsync({teamId:e,notificationId:P})}catch(T){console.error("Failed to mark all as read:",T)}i.invalidateQueries({queryKey:["notifications",e]}),i.invalidateQueries({queryKey:["teams",e,"me"]}),b()}}};return o("div",{className:"flex flex-col h-full w-full bg-transparent",children:[t("div",{className:"flex-none pb-1",children:t(So,{value:r,onValueChange:(P)=>a(P),className:"w-full",children:o("div",{className:"flex items-center justify-between mb-2",children:[o(Eo,{className:"h-8",children:[t(Kr,{value:"all",className:"text-xs px-3 h-6",children:KDe()}),t(Kr,{value:"unread",className:"text-xs px-3 h-6",children:hMt()})]}),t(E,{variant:"ghost",size:"sm",className:"h-8 px-2 text-muted-foreground hover:text-foreground",onClick:U,disabled:_.length===0||k.isPending,title:vKe(),children:t(l2,{className:"w-4 h-4"})})]})})}),o("div",{className:"flex-1 overflow-y-auto p-2 min-h-0",children:[v&&t("div",{className:"flex justify-center p-4",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}),!v&&_.length===0&&t("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground",children:t("p",{className:"text-sm",children:z$e()})}),t("div",{className:"space-y-1",children:_.map((P)=>t(Uge,{notification:P},P.id))}),t("div",{ref:s,className:"h-4 w-full flex justify-center p-1",children:x&&t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})})]})]})};var zL=null,un=Rr((e)=>({projectState:null,setProjectState:(r)=>{if(zL)clearTimeout(zL),zL=null;e({projectState:r})},clearProjectState:()=>{if(zL)clearTimeout(zL);zL=setTimeout(()=>{e({projectState:null}),zL=null},10)}}));var Nzt=fs("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function be({className:e,variant:r="default",asChild:a=!1,...i}){let s=a?dae:"span";return t(s,{"data-slot":"badge","data-variant":r,className:C(Nzt({variant:r}),e),...i})}var R3={viewBox:"0 -960 960 960",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},qge=(e)=>t("svg",{...R3,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Z"})}),Hge=(e)=>t("svg",{...R3,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Zm200 0v-560H640v560h120Z"})}),Vge=(e)=>t("svg",{...R3,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm560-80v-560H400v560h360Z"})}),Wge=(e)=>t("svg",{...R3,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Z"})}),Kge=(e)=>o("svg",{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",...e,children:[t("path",{d:"M12 8V4H8"}),t("path",{d:"M6 7H18A3 3 0 0 1 21 10V18A3 3 0 0 1 18 21H6A3 3 0 0 1 3 18V10A3 3 0 0 1 6 7ZM8 13V15A1 1 0 0 0 10 15V13A1 1 0 0 0 8 13ZM14 13V15A1 1 0 0 0 16 15V13A1 1 0 0 0 14 13Z",fill:"currentColor",stroke:"none"}),t("path",{d:"M2 14h2"}),t("path",{d:"M20 14h2"})]}),Gge=(e)=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"120 -792 720 720",fill:"none","aria-hidden":"true",focusable:"false",...e,children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 160 -180 v -72 h 80 v -252 q 0 -74.7 50 -132.75 T 420 -712.8 v -25.2 q 0 -22.5 17.5 -38.25 T 480 -792 q 25 0 42.5 15.75 T 540 -738 v 25.2 q 80 18 130 76.05 T 720 -504 v 252 h 80 v 72 H 160 Z M 480 -72 q -33 0 -56.5 -21.15 T 400 -144 h 160 q 0 29.7 -23.5 50.85 T 480 -72 Z",fill:"currentColor"})}),vi=(e)=>o("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",...e,children:[t("path",{d:"M10.77 10.377a1 1 0 0 0-.132.437l-.105 1.665a.5.5 0 0 0 .793.436l1.32-.96a1 1 0 0 0 .278-.309l3.912-6.775a1.25 1.25 0 1 0-2.165-1.25l-3.901 6.756Z",fill:"currentColor"}),t("path",{d:"M11.016 6.75a.758.758 0 0 1-.758.748c-2.938 0-4.882 1.71-5.517 3.95-.708 2.499.245 4.459 1.979 5.851 1.767 1.42 4.31 2.203 6.547 2.203.415 0 .749.335.745.748a.758.758 0 0 1-.758.748c-2.536 0-5.421-.873-7.485-2.531-2.098-1.686-3.38-4.225-2.475-7.414.818-2.883 3.354-5.051 6.977-5.051.415 0 .749.335.745.748Z",fill:"currentColor"}),t("path",{d:"M17.147 8.315a.767.767 0 0 1 1.058-.168c1.666 1.188 2.508 2.542 2.733 3.876a4.5 4.5 0 0 1-.805 3.392c-.919 1.434-2.714 2.074-4.479 2.185-1.799.113-3.78-.302-5.292-1.216a.733.733 0 0 1-.242-1.022.768.768 0 0 1 1.042-.246c1.216.734 2.881 1.096 4.409 1 1.553-.097 2.755-.647 3.292-1.5l.015-.022.015-.021a3.025 3.025 0 0 0 .553-2.294c-.148-.876-.72-1.915-2.137-2.926a.733.733 0 0 1-.162-1.038Z",fill:"currentColor"})]}),ZM=(e)=>o("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t("defs",{children:t("clipPath",{id:"bg-clip",children:t("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22"})})}),t("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22",fill:"#D95A66"}),t("path",{d:"M 35 75 L 65 75 L 80 60 L 75 30 L 175 130 L 135 175 Z",fill:"#A8384D",clipPath:"url(#bg-clip)"}),t("path",{d:"M 25 30 Q 38 36 50 42 L 35 55 L 35 75 L 20 60 Z",fill:"#FDF0D5"}),t("path",{d:"M 50 42 Q 62 36 75 30 L 80 60 L 65 75 L 65 55 Z",fill:"#E77A65"}),t("path",{d:"M 35 75 L 65 75 L 65 55 L 50 42 L 35 55 Z",fill:"#F5B895"}),t("path",{d:"M 50 42 Q 38 36 25 30 Q 38 26 50 20 Q 62 26 75 30 Q 62 36 50 42 Z",fill:"#F4B8B8"}),t("path",{d:"M 50 25 L 42 30 L 50 35 Z",fill:"#E57A5F"}),t("path",{d:"M 50 25 L 58 30 L 50 35 Z",fill:"#C2523C"})]}),Xge=(e)=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"24 24 152 152",fill:"none","aria-hidden":"true",focusable:"false",...e,children:t("path",{d:"M 44 170 L 44 100 L 24 100 L 100 30 L 126 54 L 126 36 L 142 36 L 142 69 L 176 100 L 156 100 L 156 170 L 120 170 L 120 136 A 20 20 0 0 0 80 136 L 80 170 Z",fill:"currentColor"})});function Qge({uploading:e=!1,className:r="",...a}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"15 15 70 70",width:30,height:30,className:`${r} ${e?"animate-upload-breathing":""}`,"aria-hidden":"true",focusable:"false",style:e?{transformOrigin:"center"}:void 0,...a,children:[e&&t("defs",{children:o("linearGradient",{id:"upload-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t("stop",{offset:"0%",stopColor:"#3b82f6",children:t("animate",{attributeName:"stop-color",values:"#3b82f6;#ec4899;#8b5cf6;#3b82f6",dur:"3s",repeatCount:"indefinite"})}),t("stop",{offset:"50%",stopColor:"#8b5cf6",children:t("animate",{attributeName:"stop-color",values:"#8b5cf6;#3b82f6;#ec4899;#8b5cf6",dur:"3s",repeatCount:"indefinite"})}),t("stop",{offset:"100%",stopColor:"#ec4899",children:t("animate",{attributeName:"stop-color",values:"#ec4899;#8b5cf6;#3b82f6;#ec4899",dur:"3s",repeatCount:"indefinite"})})]})}),t("path",{d:"M 44.1 75 H 30 A 15 15 0 0 1 30 45 A 20 20 0 0 1 70 45 A 15 15 0 0 1 70 75 H 55.9 V 60.2 H 61.9 L 50 45.3 L 38.1 60.2 H 44.1 Z",fill:e?"url(#upload-gradient)":"currentColor"})]})}var Jge=({className:e,...r})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor","aria-hidden":"true",focusable:"false",className:e?`rotate-180 ${e}`:"rotate-180",...r,children:t("path",{d:"M172-84q-36.3 0-62.15-25.85T84-172v-616q0-36.3 25.85-62.15T172-876h616q36.3 0 62.15 25.85T876-788v616q0 36.3-25.85 62.15T788-84H172Zm88-176h88v-440h-88v440Zm176 0h88v-264h-88v264Zm176 0h88v-352h-88v352Z"})}),$ge=(e)=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:t("path",{d:"M520-600v-240h320v240H520ZM120-440v-400h320v400H120Zm400 320v-400h320v400H520Zm-400 0v-240h320v240H120Z"})});S();S();var{create:Fzt,defineProperty:sMe,defineProperties:jzt,getOwnPropertyDescriptor:Bzt,getOwnPropertyDescriptors:Uzt,getOwnPropertySymbols:O3}=Object,lMe=Object.prototype.hasOwnProperty,cMe=Object.prototype.propertyIsEnumerable,Yzt=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),nO=(e)=>{throw TypeError(e)},dW=(e,r,a)=>(r in e)?sMe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,lW=(e,r)=>{for(var a in r||(r={}))if(lMe.call(r,a))dW(e,a,r[a]);if(O3){for(var a of O3(r))if(cMe.call(r,a))dW(e,a,r[a])}return e},cW=(e,r)=>jzt(e,Uzt(r)),qzt=(e,r)=>{var a={};for(var i in e)if(lMe.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&O3){for(var i of O3(e))if(r.indexOf(i)<0&&cMe.call(e,i))a[i]=e[i]}return a},Hzt=(e)=>{var r;return[,,,Fzt((r=void 0)!=null?r:null)]},uMe=["class","method","getter","setter","accessor","field","value","get","set"],tO=(e)=>e!==void 0&&typeof e!=="function"?nO("Function expected"):e,Vzt=(e,r,a,i,s)=>({kind:uMe[e],name:r,metadata:i,addInitializer:(l)=>a._?nO("Already initialized"):s.push(tO(l||null))}),Wzt=(e,r)=>dW(r,Yzt("metadata"),e[3]),P3=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},dMe=(e,r,a,i,s,l)=>{var c,d,m,g,x,v=r&7,b=!1,_=!1,z=e.length+1,k=uMe[v+5],U=e[z-1]=[],P=e[z]||(e[z]=[]),T=(s=s.prototype,Bzt({get[a](){return rO(this,l)},set[a](X){return SL(this,l,X)}},a));for(var G=i.length-1;G>=0;G--)if(g=Vzt(v,a,m={},e[3],P),g.static=b,g.private=_,x=g.access={has:(X)=>(a in X)},x.get=(X)=>X[a],x.set=(X,J)=>X[a]=J,d=(0,i[G])({get:T.get,set:T.set},g),m._=1,d===void 0)tO(d)&&(T[k]=d);else if(typeof d!=="object"||d===null)nO("Object expected");else tO(c=d.get)&&(T.get=c),tO(c=d.set)&&(T.set=c),tO(c=d.init)&&U.unshift(c);return T&&sMe(s,a,T),s},ZMe=(e,r,a)=>r.has(e)||nO("Cannot "+a),rO=(e,r,a)=>(ZMe(e,r,"read from private field"),r.get(e)),eO=(e,r,a)=>r.has(e)?nO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),SL=(e,r,a,i)=>(ZMe(e,r,"write to private field"),r.set(e,a),a);function no(e){return e instanceof hW||e instanceof hMe}var T3=10,Kzt=class extends Fi{constructor(e){super(e);let r=Ci(()=>{let{dragOperation:i}=e;if(!lL(i.activatorEvent))return;if(!no(i.source))return;if(i.status.initialized){let s=e.registry.plugins.get(uR);if(s)return s.disable(),()=>s.enable()}}),a=e.monitor.addEventListener("dragmove",(i,s)=>{queueMicrotask(()=>{if(this.disabled||i.defaultPrevented||!i.nativeEvent)return;let{dragOperation:l}=s;if(!lL(i.nativeEvent))return;if(!no(l.source))return;if(!l.shape)return;let{actions:c,collisionObserver:d,registry:m}=s,{by:g}=i;if(!g)return;let x=Gzt(g),{source:v,target:b}=l,{center:_}=l.shape.current,z=[],k=[];$o(()=>{for(let J of m.droppables){let{id:ee}=J;if(!J.accepts(v)||ee===(b==null?void 0:b.id)&&no(J)||!J.element)continue;let re=J.shape,oe=new Sc(J.element,{getBoundingClientRect:(ie)=>tR(ie,void 0,0.2)});if(!oe.height||!oe.width)continue;if(x=="down"&&_.y+T3<oe.center.y||x=="up"&&_.y-T3>oe.center.y||x=="left"&&_.x-T3>oe.center.x||x=="right"&&_.x+T3<oe.center.x)z.push(J),J.shape=oe,k.push(()=>J.shape=re)}}),i.preventDefault(),d.disable();let U=d.computeCollisions(z,Xce);$o(()=>k.forEach((J)=>J()));let[P]=U;if(!P)return;let{id:T}=P,{index:G,group:X}=v.sortable;c.setDropTarget(T).then(()=>{let{source:J,target:ee,shape:re}=l;if(!J||!no(J)||!re)return;let{index:oe,group:ie,target:ye}=J.sortable,We=G!==oe||X!==ie,Ye=We?ye:ee==null?void 0:ee.element;if(!Ye)return;kF(Ye);let Se=new Sc(Ye);if(!Se)return;let He=Xs.delta(Se,Xs.from(re.current.boundingRectangle),J.alignment);if(c.move({by:He}),We)c.setDropTarget(J.id).then(()=>d.enable());else d.enable()})})});this.destroy=()=>{a(),r()}}};function Gzt(e){let{x:r,y:a}=e;if(r>0)return"right";else if(r<0)return"left";else if(a>0)return"down";else if(a<0)return"up"}var{defineProperty:Xzt,defineProperties:Qzt,getOwnPropertyDescriptors:Jzt,getOwnPropertySymbols:eMe}=Object,$zt=Object.prototype.hasOwnProperty,eSt=Object.prototype.propertyIsEnumerable,tMe=(e,r,a)=>(r in e)?Xzt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,SR=(e,r)=>{for(var a in r||(r={}))if($zt.call(r,a))tMe(e,a,r[a]);if(eMe){for(var a of eMe(r))if(eSt.call(r,a))tMe(e,a,r[a])}return e},LR=(e,r)=>Qzt(e,Jzt(r));function tSt(e,r,a){if(r===a)return e;let i=e.slice();return i.splice(a,0,i.splice(r,1)[0]),i}function A3(e,r){let a=String(r);return Object.prototype.hasOwnProperty.call(e,a)?a:void 0}function uW(e){return"initialIndex"in e&&typeof e.initialIndex==="number"&&"index"in e&&typeof e.index==="number"}function rSt(e,r,a){var i,s;let{source:l,target:c,canceled:d}=r.operation;if(!l||!c||d){if("preventDefault"in r)r.preventDefault();return e}let m=(G,X)=>G===X||G!==null&&typeof G==="object"&&("id"in G)&&G.id===X;if(Array.isArray(e)){let G=e.findIndex((J)=>m(J,l.id)),X=e.findIndex((J)=>m(J,c.id));if(G===-1||X===-1){if(uW(l)){let{initialIndex:J,index:ee}=l;if(J===ee||J<0||J>=e.length){if("preventDefault"in r)r.preventDefault();return e}return a(e,J,ee)}return e}if(!d&&"index"in l&&typeof l.index==="number"){let J=l.index;if(J!==G)return a(e,G,J)}return a(e,G,X)}let g=Object.entries(e),x=-1,v,b=-1,_;for(let[G,X]of g){if(x===-1){if(x=X.findIndex((J)=>m(J,l.id)),x!==-1)v=G}if(b===-1){if(b=X.findIndex((J)=>m(J,c.id)),b!==-1)_=G}if(x!==-1&&b!==-1)break}if(x===-1&&uW(l)){let G=l.initialGroup==null?void 0:A3(e,l.initialGroup),X=l.initialIndex,J=l.group==null?void 0:A3(e,l.group),ee=l.index;if(G==null||J==null){if("preventDefault"in r)r.preventDefault();return e}if(G===J&&X===ee){if("preventDefault"in r)r.preventDefault();return e}if(G===J)return LR(SR({},e),{[G]:a(e[G],X,ee)});let re=e[G][X];return LR(SR({},e),{[G]:[...e[G].slice(0,X),...e[G].slice(X+1)],[J]:[...e[J].slice(0,ee),re,...e[J].slice(ee)]})}if(!l.manager)return e;let{dragOperation:z}=l.manager,k=(s=(i=z.shape)==null?void 0:i.current.center)!=null?s:z.position.current;if(_==null){let G=A3(e,c.id);if(G!=null){let X=c.shape&&k.y>c.shape.center.y?e[G].length:0;_=G,b=X}}if(v==null||_==null||v===_&&x===b){if(v!=null&&v===_&&x===b&&uW(l)){let G=l.group==null?void 0:A3(e,l.group),X=l.group!=null&&G!==v,J=l.index!==x;if(X||J){let ee=l.group==null?v:G;if(ee!=null){if(v===ee)return LR(SR({},e),{[v]:a(e[v],x,l.index)});let re=e[v][x];return LR(SR({},e),{[v]:[...e[v].slice(0,x),...e[v].slice(x+1)],[ee]:[...e[ee].slice(0,l.index),re,...e[ee].slice(l.index)]})}}}if("preventDefault"in r)r.preventDefault();return e}if(v===_)return LR(SR({},e),{[v]:a(e[v],x,b)});let P=c.shape&&Math.round(k.y)>Math.round(c.shape.center.y)?1:0,T=e[v][x];return LR(SR({},e),{[v]:[...e[v].slice(0,x),...e[v].slice(x+1)],[_]:[...e[_].slice(0,b+P),T,...e[_].slice(b+P)]})}function oSt(e,r){return rSt(e,r,tSt)}function rMe(e){let r=new Map;for(let[,a]of e)for(let i of a)r.set(i.id,i.index);return r}function oMe(e,r,a){var i;for(let[s,l]of r)for(let c of l){let d=e.get(c.id);if(c.index!==d||c.group!==s||!((i=a.get(s))==null?void 0:i.has(c)))return!0}return!1}var aMe="__default__",aSt=class extends Fi{constructor(e){super(e);let r=()=>{let i=new Map;for(let s of e.registry.droppables)if(s instanceof hW){let{sortable:l}=s,{group:c}=l,d=i.get(c);if(!d)d=new Set,i.set(c,d);d.add(l)}return i},a=[e.monitor.addEventListener("dragover",(i,s)=>{if(this.disabled)return;let{dragOperation:l}=s,{source:c,target:d}=l;if(!no(c)||!no(d))return;if(c.sortable===d.sortable)return;let m=r(),g=rMe(m),x=c.sortable.group===d.sortable.group,v=m.get(c.sortable.group),b=x?v:m.get(d.sortable.group);if(!v||!b)return;queueMicrotask(()=>{if(i.defaultPrevented)return;s.renderer.rendering.then(()=>{var _,z;let k=r();if(oMe(g,m,k))return;let U=c.sortable.element,P=d.sortable.element;if(!P||!U)return;if(!x&&d.id===c.sortable.group)return;let T=E3(v),G=x?T:E3(b),X=(_=c.sortable.group)!=null?_:aMe,J=(z=d.sortable.group)!=null?z:aMe,ee={[X]:T,[J]:G},re=oSt(ee,i);if(ee===re)return;let oe=re[J].indexOf(c.sortable),ie=re[J].indexOf(d.sortable);s.collisionObserver.disable(),nMe(U,oe,P,ie),$o(()=>{for(let[ye,We]of re[X].entries())We.index=ye;if(!x)for(let[ye,We]of re[J].entries())We.group=d.sortable.group,We.index=ye}),s.actions.setDropTarget(c.id).then(()=>s.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(i,s)=>{if(!i.canceled)return;let{dragOperation:l}=s,{source:c}=l;if(!no(c))return;if(c.sortable.initialIndex===c.sortable.index&&c.sortable.initialGroup===c.sortable.group)return;queueMicrotask(()=>{let d=r(),m=rMe(d),g=d.get(c.sortable.initialGroup);if(!g)return;s.renderer.rendering.then(()=>{let x=r();if(oMe(m,d,x))return;let v=E3(g),b=E3(g,iSt),_=c.sortable.element,z=b.indexOf(c.sortable),k=v[z],U=k==null?void 0:k.element;if(!k||!U||!_)return;nMe(_,k.index,U,c.index),$o(()=>{for(let P of d.values()){let T=Array.from(P).values();for(let G of T)G.index=G.initialIndex,G.group=G.initialGroup}})})})})];this.destroy=()=>{for(let i of a)i()}}};function nMe(e,r,a,i){let s=i<r?"afterend":"beforebegin";a.insertAdjacentElement(s,e)}function nSt(e,r){return e.index-r.index}function iSt(e,r){return e.initialIndex-r.initialIndex}function E3(e,r=nSt){return Array.from(e).sort(r)}var iMe=[Kzt,aSt],ZW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function fMe(e){var r,a;if(typeof e==="boolean")return{draggable:e,droppable:e};return{draggable:(r=e==null?void 0:e.draggable)!=null?r:!1,droppable:(a=e==null?void 0:e.droppable)!=null?a:!1}}var D3=new zle,pMe,mMe,N8,pW,oO,aO,mW,kR;mMe=[ko],pMe=[ko];var iO=class{constructor(e,r){eO(this,pW,P3(N8,8,this)),P3(N8,11,this),eO(this,oO),eO(this,aO),eO(this,mW,P3(N8,12,this)),P3(N8,15,this),eO(this,kR),this.register=()=>($o(()=>{var z,k;(z=this.manager)==null||z.registry.register(this.droppable),(k=this.manager)==null||k.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{$o(()=>{var z,k;(z=this.manager)==null||z.registry.unregister(this.droppable),(k=this.manager)==null||k.registry.unregister(this.draggable)})},this.destroy=()=>{$o(()=>{this.droppable.destroy(),this.draggable.destroy()})};var a=e,{effects:i=()=>[],disabled:s,group:l,index:c,sensors:d,type:m,transition:g=ZW,plugins:x}=a,v=qzt(a,["effects","disabled","group","index","sensors","type","transition","plugins"]);let b=cs(x,iMe),_=fMe(s);this.droppable=new hW(cW(lW({},v),{disabled:_.droppable}),r,this),this.draggable=new hMe(cW(lW({},v),{disabled:_.draggable,plugins:b,effects:()=>[()=>{var z,k,U;let P=(z=this.manager)==null?void 0:z.dragOperation.status;if((P==null?void 0:P.initializing)&&this.id===((U=(k=this.manager)==null?void 0:k.dragOperation.source)==null?void 0:U.id))D3.clear(this.manager);if(P==null?void 0:P.dragging)D3.set(this.manager,this.id,ho(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{let{index:z,group:k,manager:U}=this,P=rO(this,aO),T=rO(this,oO);if(z!==P||k!==T)SL(this,aO,z),SL(this,oO,k),this.animate()},()=>{var z,k;let{target:U}=this,{isDragSource:P}=this.draggable;if(((k=(z=this.draggable.pluginConfig(_s))==null?void 0:z.feedback)!=null?k:"default")==="move"&&P)this.droppable.disabled=!U},...i()],type:m,sensors:d}),r,this),SL(this,kR,v.element),this.manager=r,this.index=c,SL(this,aO,c),this.group=l,SL(this,oO,l),this.type=m,this.transition=g}get initialIndex(){var e,r;return(r=(e=D3.get(this.manager,this.id))==null?void 0:e.initialIndex)!=null?r:this.index}get initialGroup(){var e,r;return(r=(e=D3.get(this.manager,this.id))==null?void 0:e.initialGroup)!=null?r:this.group}animate(){ho(()=>{let{manager:e,transition:r}=this,{shape:a}=this.droppable;if(!e)return;let{idle:i}=e.dragOperation.status;if(!a||!r||i&&!r.idle)return;e.renderer.rendering.then(()=>{let{element:s}=this;if(!s)return;for(let x of s.getAnimations())if("transitionProperty"in x&&(x.transitionProperty==="transform"||x.transitionProperty==="translate"||x.transitionProperty==="scale"))x.cancel();let l=this.refreshShape();if(!l)return;let c={x:a.boundingRectangle.left-l.boundingRectangle.left,y:a.boundingRectangle.top-l.boundingRectangle.top},{translate:d}=wc(s),m=fH(s,d,!1),g=fH(s,d);if(c.x||c.y){let x=MD(us(s))?cW(lW({},r),{duration:0}):r;CF({element:s,keyframes:{translate:[`${m.x+c.x}px ${m.y+c.y}px ${m.z}`,`${g.x}px ${g.y}px ${g.z}`]},options:x}).then(()=>{if(!e.dragOperation.status.dragging)this.droppable.shape=void 0})}})})}get manager(){return this.draggable.manager}set manager(e){$o(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){$o(()=>{let r=rO(this,kR),a=this.droppable.element,i=this.draggable.element;if(!a||a===r)this.droppable.element=e;if(!i||i===r)this.draggable.element=e;SL(this,kR,e)})}get element(){var e,r;let a=rO(this,kR);if(!a)return;return(r=(e=xD.get(a))!=null?e:a)!=null?r:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){let{disabled:e}=this.draggable,{disabled:r}=this.droppable;return e===r?e:{draggable:e,droppable:r}}set plugins(e){this.draggable.plugins=cs(e,iMe)}set disabled(e){let r=fMe(e);$o(()=>{this.droppable.disabled=r.droppable,this.draggable.disabled=r.draggable})}set data(e){$o(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=e!=null?e:RF}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){$o(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};N8=Hzt();pW=new WeakMap;oO=new WeakMap;aO=new WeakMap;mW=new WeakMap;kR=new WeakMap;dMe(N8,4,"index",mMe,iO,pW);dMe(N8,4,"group",pMe,iO,mW);Wzt(N8,iO);var hMe=class extends mL{constructor(e,r,a){super(e,r);this.sortable=a}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},hW=class extends dR{constructor(e,r,a){super(e,r);this.sortable=a}get index(){return this.sortable.index}get group(){return this.sortable.group}};var{defineProperty:fSt,defineProperties:sSt,getOwnPropertyDescriptors:lSt,getOwnPropertySymbols:gMe}=Object,cSt=Object.prototype.hasOwnProperty,uSt=Object.prototype.propertyIsEnumerable,MMe=(e,r,a)=>(r in e)?fSt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,gW=(e,r)=>{for(var a in r||(r={}))if(cSt.call(r,a))MMe(e,a,r[a]);if(gMe){for(var a of gMe(r))if(uSt.call(r,a))MMe(e,a,r[a])}return e},dSt=(e,r)=>sSt(e,lSt(r));function za(e){let{accept:r,collisionDetector:a,collisionPriority:i,id:s,data:l,element:c,handle:d,index:m,group:g,disabled:x,modifiers:v,sensors:b,target:_,type:z,plugins:k}=e,U=gW(gW({},ZW),e.transition),P=YF((G)=>new iO(dSt(gW({},e),{transition:U,register:!1,handle:wu(d),element:wu(c),target:wu(_)}),G)),T=ZR(P,ZSt);return Uo(s,()=>P.id=s),aM(()=>{$o(()=>{P.group=g,P.index=m})},[P,g,m]),Uo(z,()=>P.type=z),Uo(r,()=>P.accept=r,void 0,of),Uo(l,()=>l&&(P.data=l)),Uo(m,()=>{var G;if(((G=P.manager)==null?void 0:G.dragOperation.status.idle)&&(U==null?void 0:U.idle))P.refreshShape()},Eue),C8(d,(G)=>P.handle=G),C8(c,(G)=>P.element=G),C8(_,(G)=>P.target=G),Uo(x,()=>P.disabled=x!=null?x:!1,void 0,of),Uo(b,()=>P.sensors=b,void 0,of),Uo(a,()=>P.collisionDetector=a),Uo(i,()=>P.collisionPriority=i),Uo(k,()=>P.plugins=k,void 0,of),Uo(U,()=>P.transition=U,void 0,of),Uo(v,()=>P.modifiers=v,void 0,of),Uo(e.alignment,()=>P.alignment=e.alignment),{sortable:T,get isDragging(){return T.isDragging},get isDropping(){return T.isDropping},get isDragSource(){return T.isDragSource},get isDropTarget(){return T.isDropTarget},handleRef:D((G)=>{P.handle=G!=null?G:void 0},[P]),ref:D((G)=>{var X,J;if(!G&&((X=P.element)==null?void 0:X.isConnected)&&!((J=P.manager)==null?void 0:J.dragOperation.status.idle))return;P.element=G!=null?G:void 0},[P]),sourceRef:D((G)=>{var X,J;if(!G&&((X=P.source)==null?void 0:X.isConnected)&&!((J=P.manager)==null?void 0:J.dragOperation.status.idle))return;P.source=G!=null?G:void 0},[P]),targetRef:D((G)=>{var X,J;if(!G&&((X=P.target)==null?void 0:X.isConnected)&&!((J=P.manager)==null?void 0:J.dragOperation.status.idle))return;P.target=G!=null?G:void 0},[P])}}function ZSt(e,r,a){if(e==="isDragSource"&&!a&&r)return!0;return!1}S();function pSt(e){if(!e)return null;try{let r=sM(e);if(isNaN(r.getTime()))return null;return gr(r,"MMM d, yyyy")}catch{return null}}function mSt({version:e,displayVersionNumber:r,index:a,canEdit:i,onRemove:s}){let[l,c]=u(!1),{ref:d,handleRef:m}=za({id:e.id,index:a,disabled:!i}),g=pSt(e.createdAt);return o("div",{ref:d,className:"group flex items-center gap-3 p-2.5 rounded-lg border border-border bg-card hover:bg-accent/40 transition-colors",children:[o("div",{className:"flex-shrink-0 flex items-center justify-center bg-muted text-muted-foreground rounded-full px-2.5 py-0.5 text-xs font-semibold select-none min-w-[2.25rem]",children:["v",r]}),i?t("div",{ref:m,className:"cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground p-1 -m-1 rounded touch-none flex items-center justify-center",children:t(Zs,{className:"h-4 w-4"})}):t("div",{className:"w-4"}),t("div",{className:"h-12 w-20 flex-shrink-0 overflow-hidden rounded-md border border-border bg-muted flex items-center justify-center",children:e.previewUrl?t("img",{src:e.previewUrl,alt:e.name||"",className:"h-full w-full object-cover"}):t(tr,{className:"h-5 w-5 text-muted-foreground"})}),o("div",{className:"flex flex-col flex-1 min-w-0 text-left",children:[t("span",{className:"truncate text-sm font-medium text-foreground",title:e.name||"",children:e.name||"Untitled"}),o("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground truncate",children:[e.agent?o("span",{className:"flex items-center gap-1 truncate",children:[t(Ct,{className:"h-3 w-3 shrink-0"}),t("span",{className:"truncate",children:Jc({user:e.creator?.name||An(),agent:e.agent.name})})]}):t("span",{children:e.creator?.name||An()}),g&&o(L,{children:[t("span",{children:"•"}),t("span",{children:g})]})]})]}),i&&o(he,{modal:!1,open:l,onOpenChange:c,children:[t(ge,{asChild:!0,children:t(E,{variant:"ghost",size:"icon","aria-label":"More options",className:C("h-8 w-8 text-muted-foreground hover:text-foreground transition-opacity flex-shrink-0",l?"opacity-100":"opacity-0 group-hover:opacity-100 focus:opacity-100"),children:t(Sr,{className:"h-4 w-4"})})}),t(Ae,{align:"end",children:o(K,{onClick:()=>s(e.id),className:"text-destructive focus:text-destructive cursor-pointer",children:[t(we,{className:"h-4 w-4 mr-2"}),t("span",{children:ust()})]})})]})]})}function Qd({open:e,onOpenChange:r,stackId:a,canEdit:i=!0,onVersionRemoved:s,onStackDissolved:l}){let c=Q(),[d,m]=u([]),{data:g,isLoading:x}=Z({queryKey:["version_stacks",a,"versions"],queryFn:async()=>{let U=await A.api.version_stacks[":stackId"].versions.$get({param:{stackId:a}});if(!U.ok)throw Error("Failed to fetch versions");return await U.json()},enabled:e&&!!a});h(()=>{if(g)m(g)},[g]);let{mutate:v}=B({mutationFn:async({fileId:U,beforeId:P})=>{if(!(await A.api.version_stacks[":stackId"].order.$post({param:{stackId:a},json:{fileId:U,beforeId:P}})).ok)throw Error("Failed to reorder versions")},onSuccess:()=>{c.invalidateQueries({queryKey:["version_stacks"]}),c.invalidateQueries({queryKey:["files"]}),c.invalidateQueries({queryKey:["file"]}),c.invalidateQueries({queryKey:["search"]}),c.invalidateQueries({queryKey:["folders"]}),c.invalidateQueries({queryKey:["projects"]}),M.success(p8t())},onError:()=>{if(M.error(D7e()),g)m(g)}}),{mutate:b,isPending:_}=B({mutationFn:async(U)=>{if(!(await A.api.version_stacks[":stackId"].versions[":versionId"].$delete({param:{stackId:a,versionId:U}})).ok)throw Error("Failed to remove version from stack");return U},onSuccess:(U)=>{M.success(u8t());let P=d.filter((T)=>T.id!==U);if(m(P),c.invalidateQueries({queryKey:["version_stacks"]}),c.invalidateQueries({queryKey:["files"]}),c.invalidateQueries({queryKey:["file"]}),c.invalidateQueries({queryKey:["search"]}),c.invalidateQueries({queryKey:["folders"]}),c.invalidateQueries({queryKey:["projects"]}),P.length<=1){let T=P[0];if(r(!1),T)l?.(T.id)}else s?.(U,P)},onError:()=>{M.error(R7e())}}),z=(U)=>{if(U.canceled)return;let{source:P}=U.operation;if(!no(P))return;let{initialIndex:T,index:G}=P;if(T===G)return;let X=[...d],[J]=X.splice(T,1);X.splice(G,0,J),m(X);let ee=G===X.length-1?"-1":X[G+1].id;v({fileId:J.id,beforeId:ee})},k=(U)=>{if(_)return;b(U)};return t(ue,{open:e,onOpenChange:r,children:o(ae,{className:"max-w-lg p-0 gap-0 overflow-hidden",children:[t(fe,{className:"p-4 pb-3 border-b border-border",children:t(le,{className:"text-base font-semibold",children:gKe()})}),t(ce,{className:"max-h-[60vh] p-4",children:x?t("div",{className:"py-8 text-center text-sm text-muted-foreground",children:wd?.()||"Loading..."}):d.length===0?t("div",{className:"py-8 text-center text-sm text-muted-foreground",children:Met()}):t("div",{className:"space-y-2",children:t($n,{sensors:[_n.configure({activationConstraints:[new Dr.Distance({value:6})]}),Xo],onDragEnd:z,children:d.map((U,P)=>t(mSt,{version:U,displayVersionNumber:d.length-P,index:P,canEdit:i,onRemove:k},U.id))})})})]})})}S();function ht({...e}){return t(H1e,{"data-slot":"popover",...e})}function gt({...e}){return t(V1e,{"data-slot":"popover-trigger",...e})}function At({className:e,align:r="center",sideOffset:a=4,...i}){return t(W1e,{children:t(K1e,{"data-slot":"popover-content",align:r,sideOffset:a,className:C("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...i})})}var PA=[Qe.TODO,Qe.READY,Qe.IN_PROGRESS,Qe.BLOCKED,Qe.IN_REVIEW,Qe.DONE];function oo(e){switch(e){case Qe.TODO:return Ept();case Qe.READY:return Ppt();case Qe.IN_PROGRESS:return Spt();case Qe.BLOCKED:return dA();case Qe.IN_REVIEW:return Cpt();case Qe.DONE:return bpt();default:return e}}function Jp(e){switch(e){case Qe.TODO:return{badge:"bg-muted text-muted-foreground border-border",border:"border-border",dot:"bg-muted-foreground",bg:"bg-muted/30"};case Qe.READY:return{badge:"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20",border:"border-blue-500/30",dot:"bg-blue-500",bg:"bg-blue-500/5"};case Qe.IN_PROGRESS:return{badge:"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20",border:"border-amber-500/30",dot:"bg-amber-500",bg:"bg-amber-500/5"};case Qe.BLOCKED:return{badge:"bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20",border:"border-red-500/30",dot:"bg-red-500",bg:"bg-red-500/5"};case Qe.IN_REVIEW:return{badge:"bg-purple-500/10 text-purple-600 dark:text-purple-400 border-purple-500/20",border:"border-purple-500/30",dot:"bg-purple-500",bg:"bg-purple-500/5"};case Qe.DONE:return{badge:"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/20",border:"border-emerald-500/30",dot:"bg-emerald-500",bg:"bg-emerald-500/5"}}}function F8(e){return Jp(e).badge}function aa(e){switch(e){case Ur.LOW:return lat();case Ur.MEDIUM:return dat();case Ur.HIGH:return iat();case Ur.URGENT:return mat();default:return e}}function la(e){switch(e){case Ur.LOW:return"bg-muted text-muted-foreground border-border";case Ur.MEDIUM:return"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20";case Ur.HIGH:return"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20";case Ur.URGENT:return"bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20 font-semibold";default:return"bg-muted text-muted-foreground border-border"}}S();function wi({className:e,...r}){return t("textarea",{"data-slot":"textarea",className:C("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...r})}function W({className:e,...r}){return t(P1e,{"data-slot":"label",className:C("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}function Me({className:e,size:r="default",...a}){return t(yPe,{"data-slot":"switch","data-size":r,className:C("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",e),...a,children:t(bPe,{"data-slot":"switch-thumb",className:C("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function Le({...e}){return t(FRe,{"data-slot":"select",...e})}function Ze({...e}){return t(YRe,{"data-slot":"select-value",...e})}function Be({className:e,size:r="default",children:a,...i}){return o(BRe,{"data-slot":"select-trigger","data-size":r,className:C("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...i,children:[a,t(qRe,{asChild:!0,children:t(ve,{className:"size-4 opacity-50"})})]})}function Ue({className:e,children:r,position:a="item-aligned",align:i="center",...s}){return t(KRe,{children:o(GRe,{"data-slot":"select-content",className:C("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:i,...s,children:[t(hSt,{}),t(tPe,{className:C("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),t(gSt,{})]})})}function ne({className:e,children:r,...a}){return o(aPe,{"data-slot":"select-item",className:C("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[t("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:t(fPe,{children:t(Pe,{className:"size-4"})})}),t(nPe,{children:r})]})}function hSt({className:e,...r}){return t(sPe,{"data-slot":"select-scroll-up-button",className:C("flex cursor-default items-center justify-center py-1",e),...r,children:t(Ta,{className:"size-4"})})}function gSt({className:e,...r}){return t(lPe,{"data-slot":"select-scroll-down-button",className:C("flex cursor-default items-center justify-center py-1",e),...r,children:t(ve,{className:"size-4"})})}S();function xMe(e,r,a="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:a}).format(r).split(/\s/g).slice(2).join(" ")}var MSt={},fO={};function Lu(e,r){try{let i=(MSt[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];if(i in fO)return fO[i];return vMe(i,i.split(":"))}catch{if(e in fO)return fO[e];let a=e?.match(xSt);if(a)return vMe(e,a.slice(1));return NaN}}var xSt=/([+-]\d\d):?(\d\d)?/;function vMe(e,r){let a=+(r[0]||0),i=+(r[1]||0),s=+(r[2]||0)/60;return fO[e]=a*60+i>0?a*60+i+s:a*60-i-s}class ku extends Date{constructor(...e){super();if(e.length>1&&typeof e[e.length-1]==="string")this.timeZone=e.pop();if(this.internal=new Date,isNaN(Lu(this.timeZone,this)))this.setTime(NaN);else if(!e.length)this.setTime(Date.now());else if(typeof e[0]==="number"&&(e.length===1||e.length===2&&typeof e[1]!=="number"))this.setTime(e[0]);else if(typeof e[0]==="string")this.setTime(+new Date(e[0]));else if(e[0]instanceof Date)this.setTime(+e[0]);else this.setTime(+new Date(...e)),bMe(this,e)}static tz(e,...r){return r.length?new ku(...r,e):new ku(Date.now(),e)}withTimeZone(e){return new ku(+this,e)}getTimezoneOffset(){let e=-Lu(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),N3(this),+this}[Symbol.for("constructDateFrom")](e){return new ku(+new Date(e),this.timeZone)}}var yMe=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach((e)=>{if(!yMe.test(e))return;let r=e.replace(yMe,"$1UTC");if(!ku.prototype[r])return;if(e.startsWith("get"))ku.prototype[e]=function(){return this.internal[r]()};else ku.prototype[e]=function(){return Date.prototype[r].apply(this.internal,arguments),vSt(this),+this},ku.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),N3(this),+this}});function N3(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Lu(e.timeZone,e)*60))}function vSt(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bMe(e)}function bMe(e,r){let a=Array.isArray(r)?ySt(r):+e.internal,i=Lu(e.timeZone,e),s=i>0?Math.floor(i):Math.ceil(i),l=new Date(+e);l.setUTCHours(l.getUTCHours()-1);let c=-new Date(+e).getTimezoneOffset(),d=-new Date(+l).getTimezoneOffset(),m=c-d,g=c;if(m&&c!==s){let ie=Date.prototype.getHours.apply(e),ye=Array.isArray(r)?r[3]||0:e.internal.getUTCHours();if(ie!==ye){let We=new Date(+e),Ye=c-s;if(Ye)We.setUTCMinutes(We.getUTCMinutes()+Ye);let Se=Lu(e.timeZone,We);if((Se>0?Math.floor(Se):Math.ceil(Se))===s)g=d}}let x=g-s;if(x)Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x);let v=new Date(+e);v.setUTCSeconds(0);let b=c>0?v.getSeconds():(v.getSeconds()-60)%60,_=Math.round(-(Lu(e.timeZone,e)*60))%60;if(_||b)Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+_+b);let z=Lu(e.timeZone,e),k=z>0?Math.floor(z):Math.ceil(z),P=-new Date(+e).getTimezoneOffset()-k,T=k!==s,G=P-x,X=k-s,J=a-k*60*1000,ee=X>0&&_Me(e)-a===X*60*1000&&_Me(e,J)!==a;if(T&&G&&!ee){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+G);let ie=Lu(e.timeZone,e),ye=ie>0?Math.floor(ie):Math.ceil(ie),We=k-ye;if(We&&G<0)Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+We)}N3(e);let oe=(r?a:a+_*1000)-+e.internal;if(oe&&Math.abs(oe)<1800000)Date.prototype.setTime.call(e,+e+oe),N3(e)}function ySt(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function _Me(e,r){let a=new Date(r??+e);return a.setUTCSeconds(a.getUTCSeconds()-Math.round(-Lu(e.timeZone,a)*60)),+a}class En extends ku{static tz(e,...r){return r.length?new En(...r,e):new En(Date.now(),e)}toISOString(){let[e,r,a]=this.tzComponents(),i=`${e}${r}:${a}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,r,a,i]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${a} ${r} ${i}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[r,a,i]=this.tzComponents();return`${e} GMT${r}${a}${i} (${xMe(this.timeZone,this)})`}toLocaleString(e,r){return Date.prototype.toLocaleString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(e,r){return Date.prototype.toLocaleDateString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(e,r){return Date.prototype.toLocaleTimeString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),r=e>0?"-":"+",a=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),i=String(Math.abs(e)%60).padStart(2,"0");return[r,a,i]}withTimeZone(e){return new En(+this,e)}[Symbol.for("constructDateFrom")](e){return new En(+new Date(e),this.timeZone)}}function wMe(e,r){let a=r.startOfMonth(e),i=a.getDay()>0?a.getDay():7,s=r.addDays(e,-i+1),l=r.addDays(s,34);return r.getMonth(e)===r.getMonth(l)?5:4}function F3(e,r){let a=r.startOfMonth(e),i=a.getDay();if(i===1)return a;else if(i===0)return r.addDays(a,-6);else return r.addDays(a,-1*(i-1))}function zMe(e,r){let a=F3(e,r),i=wMe(e,r);return r.addDays(a,i*7-1)}var sO={...iM,labels:{labelDayButton:(e,r,a,i)=>{let s;if(i&&typeof i.format==="function")s=i.format.bind(i);else s=(c,d)=>gr(c,d,{locale:iM,...a});let l=s(e,"PPPP");if(r.today)l=`Today, ${l}`;if(r.selected)l=`${l}, selected`;return l},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:(e)=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,r,a)=>{let i;if(a&&typeof a.format==="function")i=a.format.bind(a);else i=(s,l)=>gr(s,l,{locale:iM,...r});return i(e,"LLLL yyyy")},labelGridcell:(e,r,a,i)=>{let s;if(i&&typeof i.format==="function")s=i.format.bind(i);else s=(c,d)=>gr(c,d,{locale:iM,...a});let l=s(e,"PPPP");if(r?.today)l=`Today, ${l}`;return l},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,r,a)=>{let i;if(a&&typeof a.format==="function")i=a.format.bind(a);else i=(s,l)=>gr(s,l,{locale:iM,...r});return i(e,"cccc")}}};class ei{constructor(e,r){this.today=()=>{if(this.overrides?.today)return this.overrides.today();if(this.options.timeZone)return En.tz(this.options.timeZone);return new(this.options.Date??Date)},this.newDate=(a,i,s)=>{if(this.overrides?.newDate)return this.overrides.newDate(a,i,s);if(this.options.timeZone)return new En(a,i,s,this.options.timeZone);return new Date(a,i,s)},this.addDays=(a,i)=>this.overrides?.addDays?this.overrides.addDays(a,i):pR(a,i),this.addMonths=(a,i)=>this.overrides?.addMonths?this.overrides.addMonths(a,i):Ba(a,i),this.addWeeks=(a,i)=>this.overrides?.addWeeks?this.overrides.addWeeks(a,i):ED(a,i),this.addYears=(a,i)=>this.overrides?.addYears?this.overrides.addYears(a,i):sde(a,i),this.differenceInCalendarDays=(a,i)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(a,i):R8(a,i),this.differenceInCalendarMonths=(a,i)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(a,i):QF(a,i),this.eachMonthOfInterval=(a)=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(a):dde(a),this.eachYearOfInterval=(a)=>{let i=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(a):mde(a),s=new Set(i.map((c)=>this.getYear(c)));if(s.size===i.length)return i;let l=[];return s.forEach((c)=>{l.push(new Date(c,0,1))}),l},this.endOfBroadcastWeek=(a)=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(a):zMe(a,this),this.endOfISOWeek=(a)=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(a):hde(a),this.endOfMonth=(a)=>this.overrides?.endOfMonth?this.overrides.endOfMonth(a):$d(a),this.endOfWeek=(a,i)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(a,i):$F(a,this.options),this.endOfYear=(a)=>this.overrides?.endOfYear?this.overrides.endOfYear(a):pde(a),this.format=(a,i,s)=>{let l=this.overrides?.format?this.overrides.format(a,i,this.options):gr(a,i,this.options);if(this.options.numerals&&this.options.numerals!=="latn")return this.replaceDigits(l);return l},this.getISOWeek=(a)=>this.overrides?.getISOWeek?this.overrides.getISOWeek(a):MR(a),this.getMonth=(a,i)=>this.overrides?.getMonth?this.overrides.getMonth(a,this.options):eu(a,this.options),this.getYear=(a,i)=>this.overrides?.getYear?this.overrides.getYear(a,this.options):tu(a,this.options),this.getWeek=(a,i)=>this.overrides?.getWeek?this.overrides.getWeek(a,this.options):xR(a,this.options),this.isAfter=(a,i)=>this.overrides?.isAfter?this.overrides.isAfter(a,i):Ade(a,i),this.isBefore=(a,i)=>this.overrides?.isBefore?this.overrides.isBefore(a,i):Ede(a,i),this.isDate=(a)=>this.overrides?.isDate?this.overrides.isDate(a):XF(a),this.isSameDay=(a,i)=>this.overrides?.isSameDay?this.overrides.isSameDay(a,i):mR(a,i),this.isSameMonth=(a,i)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(a,i):Dde(a,i),this.isSameYear=(a,i)=>this.overrides?.isSameYear?this.overrides.isSameYear(a,i):Ode(a,i),this.max=(a)=>this.overrides?.max?this.overrides.max(a):lde(a),this.min=(a)=>this.overrides?.min?this.overrides.min(a):cde(a),this.setMonth=(a,i)=>this.overrides?.setMonth?this.overrides.setMonth(a,i):jde(a,i),this.setYear=(a,i)=>this.overrides?.setYear?this.overrides.setYear(a,i):Bde(a,i),this.startOfBroadcastWeek=(a,i)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(a,this):F3(a,this),this.startOfDay=(a)=>this.overrides?.startOfDay?this.overrides.startOfDay(a):I8(a),this.startOfISOWeek=(a)=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(a):nM(a),this.startOfMonth=(a)=>this.overrides?.startOfMonth?this.overrides.startOfMonth(a):Zde(a),this.startOfWeek=(a,i)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(a,this.options):zu(a,this.options),this.startOfYear=(a)=>this.overrides?.startOfYear?this.overrides.startOfYear(a):JF(a),this.options={locale:sO,...e},this.overrides=r}getDigitMap(){let{numerals:e="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:e}),a={};for(let i=0;i<10;i++)a[i.toString()]=r.format(i);return a}replaceDigits(e){let r=this.getDigitMap();return e.replace(/\d/g,(a)=>r[a]||a)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let e=this.options.locale?.code;if(!e)return"month-first";return ei.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){let{locale:r,timeZone:a,numerals:i}=this.options,s=r?.code;if(s&&ei.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:a,numberingSystem:i}).format(e)}catch{}let l=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,l)}}ei.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);var Zi=new ei;class lO{constructor(e,r,a=Zi){this.date=e,this.displayMonth=r,this.outside=Boolean(r&&!a.isSameMonth(e,r)),this.dateLib=a,this.isoDate=a.format(e,"yyyy-MM-dd"),this.displayMonthId=a.format(r,"yyyy-MM"),this.dateMonthId=a.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class MW{constructor(e,r){this.date=e,this.weeks=r}}class xW{constructor(e,r){this.days=r,this.weekNumber=e}}var yW={};ke(yW,{CaptionLabel:()=>_St,Chevron:()=>bSt,Day:()=>wSt,DayButton:()=>zSt,Dropdown:()=>SSt,DropdownNav:()=>LSt,Footer:()=>kSt,Month:()=>CSt,MonthCaption:()=>ISt,MonthGrid:()=>RSt,Months:()=>PSt,MonthsDropdown:()=>TSt,Nav:()=>ASt,NextMonthButton:()=>ESt,Option:()=>DSt,PreviousMonthButton:()=>OSt,Root:()=>NSt,Select:()=>FSt,Week:()=>jSt,WeekNumber:()=>YSt,WeekNumberHeader:()=>qSt,Weekday:()=>BSt,Weekdays:()=>USt,Weeks:()=>HSt,YearsDropdown:()=>VSt});S();function _St(e){return j("span",{...e})}S();function bSt(e){let{size:r=24,orientation:a="left",className:i,style:s}=e;return j("svg",{className:i,style:s,width:r,height:r,viewBox:"0 0 24 24"},a==="up"&&j("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),a==="down"&&j("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),a==="left"&&j("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),a==="right"&&j("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}S();function wSt(e){let{day:r,modifiers:a,...i}=e;return j("td",{...i})}S();function zSt(e){let{day:r,modifiers:a,...i}=e,s=y(null);return h(()=>{if(a.focused)s.current?.focus()},[a.focused]),j("button",{ref:s,...i})}S();var dr;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(dr||(dr={}));var Aa;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Aa||(Aa={}));var al;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(al||(al={}));var ws;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ws||(ws={}));S();var vW=it(void 0);function j8(){let e=ft(vW);if(e===void 0)throw Error("useDayPicker() must be used within a custom component.");return e}function SSt(e){let{options:r,className:a,...i}=e,{classNames:s,components:l,styles:c}=j8(),d=[s[dr.Dropdown],a].join(" "),m=r?.find(({value:g})=>g===i.value);return j("span",{"data-disabled":i.disabled,className:s[dr.DropdownRoot],style:c?.[dr.DropdownRoot]},j(l.Select,{className:d,...i},r?.map(({value:g,label:x,disabled:v})=>j(l.Option,{key:g,value:g,disabled:v},x))),j("span",{className:s[dr.CaptionLabel],style:c?.[dr.CaptionLabel],"aria-hidden":!0},m?.label,j(l.Chevron,{orientation:"down",size:18,className:s[dr.Chevron],style:c?.[dr.Chevron]})))}S();function LSt(e){return j("div",{...e})}S();function kSt(e){return j("div",{...e})}S();function CSt(e){let{calendarMonth:r,displayIndex:a,...i}=e;return j("div",{...i},e.children)}S();function ISt(e){let{calendarMonth:r,displayIndex:a,...i}=e;return j("div",{...i})}S();function RSt(e){return j("table",{...e})}S();function PSt(e){return j("div",{...e})}S();function TSt(e){let{components:r}=j8();return j(r.Dropdown,{...e})}S();function ASt(e){let{onPreviousClick:r,onNextClick:a,previousMonth:i,nextMonth:s,...l}=e,{components:c,classNames:d,styles:m,labels:{labelPrevious:g,labelNext:x}}=j8(),v=D((_)=>{if(s)a?.(_)},[s,a]),b=D((_)=>{if(i)r?.(_)},[i,r]);return j("nav",{...l},j(c.PreviousMonthButton,{type:"button",className:d[dr.PreviousMonthButton],style:m?.[dr.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":g(i),onClick:b},j(c.Chevron,{disabled:i?void 0:!0,className:d[dr.Chevron],style:m?.[dr.Chevron],orientation:"left"})),j(c.NextMonthButton,{type:"button",className:d[dr.NextMonthButton],style:m?.[dr.NextMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":x(s),onClick:v},j(c.Chevron,{disabled:s?void 0:!0,orientation:"right",className:d[dr.Chevron],style:m?.[dr.Chevron]})))}S();function ESt(e){return j("button",{...e})}S();function DSt(e){return j("option",{...e})}S();function OSt(e){return j("button",{...e})}S();function NSt(e){let{rootRef:r,...a}=e;return j("div",{...a,ref:r})}S();function FSt(e){return j("select",{...e})}S();function jSt(e){let{week:r,...a}=e;return j("tr",{...a})}S();function BSt(e){return j("th",{...e})}S();function USt(e){return j("thead",{"aria-hidden":!0},j("tr",{...e}))}S();function YSt(e){let{week:r,...a}=e;return j("th",{...a})}S();function qSt(e){return j("th",{...e})}S();function HSt(e){return j("tbody",{...e})}S();function VSt(e){let{components:r}=j8();return j(r.Dropdown,{...e})}S();function nl(e,r,a=!1,i=Zi){let{from:s,to:l}=e,{differenceInCalendarDays:c,isSameDay:d}=i;if(s&&l){if(c(l,s)<0)[s,l]=[l,s];return c(r,s)>=(a?1:0)&&c(l,r)>=(a?1:0)}if(!a&&l)return d(l,r);if(!a&&s)return d(s,r);return!1}function CR(e){return Boolean(e&&typeof e==="object"&&"before"in e&&"after"in e)}function B8(e){return Boolean(e&&typeof e==="object"&&"from"in e)}function IR(e){return Boolean(e&&typeof e==="object"&&"after"in e)}function RR(e){return Boolean(e&&typeof e==="object"&&"before"in e)}function j3(e){return Boolean(e&&typeof e==="object"&&"dayOfWeek"in e)}function B3(e,r){return Array.isArray(e)&&e.every(r.isDate)}function Ic(e,r,a=Zi){let i=!Array.isArray(r)?[r]:r,{isSameDay:s,differenceInCalendarDays:l,isAfter:c}=a;return i.some((d)=>{if(typeof d==="boolean")return d;if(a.isDate(d))return s(e,d);if(B3(d,a))return d.some((m)=>s(e,m));if(B8(d))return nl(d,e,!1,a);if(j3(d)){if(!Array.isArray(d.dayOfWeek))return d.dayOfWeek===e.getDay();return d.dayOfWeek.includes(e.getDay())}if(CR(d)){let m=l(d.before,e),g=l(d.after,e),x=m>0,v=g<0;if(c(d.before,d.after))return v&&x;else return x||v}if(IR(d))return l(e,d.after)>0;if(RR(d))return l(d.before,e)>0;if(typeof d==="function")return d(e);return!1})}function SMe(e,r,a,i,s){let{disabled:l,hidden:c,modifiers:d,showOutsideDays:m,broadcastCalendar:g,today:x=s.today()}=r,{isSameDay:v,isSameMonth:b,startOfMonth:_,isBefore:z,endOfMonth:k,isAfter:U}=s,P=a&&_(a),T=i&&k(i),G={[Aa.focused]:[],[Aa.outside]:[],[Aa.disabled]:[],[Aa.hidden]:[],[Aa.today]:[]},X={};for(let J of e){let{date:ee,displayMonth:re}=J,oe=Boolean(re&&!b(ee,re)),ie=Boolean(P&&z(ee,P)),ye=Boolean(T&&U(ee,T)),We=Boolean(l&&Ic(ee,l,s)),Ye=Boolean(c&&Ic(ee,c,s))||ie||ye||!g&&!m&&oe||g&&m===!1&&oe,Se=v(ee,x);if(oe)G.outside.push(J);if(We)G.disabled.push(J);if(Ye)G.hidden.push(J);if(Se)G.today.push(J);if(d)Object.keys(d).forEach((He)=>{let dt=d?.[He];if(!(dt?Ic(ee,dt,s):!1))return;if(X[He])X[He].push(J);else X[He]=[J]})}return(J)=>{let ee={[Aa.focused]:!1,[Aa.disabled]:!1,[Aa.hidden]:!1,[Aa.outside]:!1,[Aa.today]:!1},re={};for(let oe in G){let ie=G[oe];ee[oe]=ie.some((ye)=>ye===J)}for(let oe in X)re[oe]=X[oe].some((ie)=>ie===J);return{...ee,...re}}}function LMe(e,r,a={}){return Object.entries(e).filter(([,s])=>s===!0).reduce((s,[l])=>{if(a[l])s.push(a[l]);else if(r[Aa[l]])s.push(r[Aa[l]]);else if(r[al[l]])s.push(r[al[l]]);return s},[r[dr.Day]])}function kMe(e){return{...yW,...e}}function CMe(e){let r={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([a,i])=>{if(a.startsWith("data-"))r[a]=i}),r}function cO(){let e={};for(let r in dr)e[dr[r]]=`rdp-${dr[r]}`;for(let r in Aa)e[Aa[r]]=`rdp-${Aa[r]}`;for(let r in al)e[al[r]]=`rdp-${al[r]}`;for(let r in ws)e[ws[r]]=`rdp-${ws[r]}`;return e}var _W={};ke(_W,{formatCaption:()=>WSt,formatDay:()=>KSt,formatMonthDropdown:()=>GSt,formatWeekNumber:()=>QSt,formatWeekNumberHeader:()=>JSt,formatWeekdayName:()=>XSt,formatYearDropdown:()=>$St});function WSt(e,r,a){return(a??new ei(r)).formatMonthYear(e)}function KSt(e,r,a){return(a??new ei(r)).format(e,"d")}function GSt(e,r=Zi){return r.format(e,"LLLL")}function XSt(e,r,a){return(a??new ei(r)).format(e,"cccccc")}function QSt(e,r=Zi){if(e<10)return r.formatNumber(`0${e.toLocaleString()}`);return r.formatNumber(`${e.toLocaleString()}`)}function JSt(){return""}function $St(e,r=Zi){return r.format(e,"yyyy")}function IMe(e){return{..._W,...e}}var AW={};ke(AW,{labelDayButton:()=>bW,labelGrid:()=>wW,labelGridcell:()=>zW,labelMonthDropdown:()=>SW,labelNav:()=>LW,labelNext:()=>kW,labelPrevious:()=>CW,labelWeekNumber:()=>RW,labelWeekNumberHeader:()=>PW,labelWeekday:()=>IW,labelYearDropdown:()=>TW});function bW(e,r,a,i){let s=(i??new ei(a)).format(e,"PPPP");if(r.today)s=`Today, ${s}`;if(r.selected)s=`${s}, selected`;return s}function wW(e,r,a){return(a??new ei(r)).formatMonthYear(e)}function zW(e,r,a,i){let s=(i??new ei(a)).format(e,"PPPP");if(r?.today)s=`Today, ${s}`;return s}function SW(e){return"Choose the Month"}function LW(){return""}function kW(e,r){return"Go to the Next Month"}function CW(e){return"Go to the Previous Month"}function IW(e,r,a){return(a??new ei(r)).format(e,"cccc")}function RW(e,r){return`Week ${e}`}function PW(e){return"Week Number"}function TW(e){return"Choose the Year"}var Cu=(e,r,a)=>{if(r)return r;if(a)return typeof a==="function"?a:(...i)=>a;return e};function RMe(e,r){let a=r.locale?.labels??{};return{...AW,...e??{},labelDayButton:Cu(bW,e?.labelDayButton,a.labelDayButton),labelMonthDropdown:Cu(SW,e?.labelMonthDropdown,a.labelMonthDropdown),labelNext:Cu(kW,e?.labelNext,a.labelNext),labelPrevious:Cu(CW,e?.labelPrevious,a.labelPrevious),labelWeekNumber:Cu(RW,e?.labelWeekNumber,a.labelWeekNumber),labelYearDropdown:Cu(TW,e?.labelYearDropdown,a.labelYearDropdown),labelGrid:Cu(wW,e?.labelGrid,a.labelGrid),labelGridcell:Cu(zW,e?.labelGridcell,a.labelGridcell),labelNav:Cu(LW,e?.labelNav,a.labelNav),labelWeekNumberHeader:Cu(PW,e?.labelWeekNumberHeader,a.labelWeekNumberHeader),labelWeekday:Cu(IW,e?.labelWeekday,a.labelWeekday)}}function PMe(e,r,a,i,s){let{startOfMonth:l,startOfYear:c,endOfYear:d,eachMonthOfInterval:m,getMonth:g}=s;return m({start:c(e),end:d(e)}).map((b)=>{let _=i.formatMonthDropdown(b,s),z=g(b),k=r&&b<l(r)||a&&b>l(a)||!1;return{value:z,label:_,disabled:k}})}function TMe(e,r={},a={}){let i={...r?.[dr.Day]};return Object.entries(e).filter(([,s])=>s===!0).forEach(([s])=>{i={...i,...a?.[s]}}),i}function AMe(e,r,a,i){let s=i??e.today(),l=a?e.startOfBroadcastWeek(s,e):r?e.startOfISOWeek(s):e.startOfWeek(s),c=[];for(let d=0;d<7;d++){let m=e.addDays(l,d);c.push(m)}return c}function EMe(e,r,a,i,s=!1){if(!e)return;if(!r)return;let{startOfYear:l,endOfYear:c,eachYearOfInterval:d,getYear:m}=i,g=l(e),x=c(r),v=d({start:g,end:x});if(s)v.reverse();return v.map((b)=>{let _=a.formatYearDropdown(b,i);return{value:m(b),label:_,disabled:!1}})}function DMe(e,r={}){let{weekStartsOn:a,locale:i}=r,s=a??i?.options?.weekStartsOn??0,l=(d)=>{let m=typeof d==="number"||typeof d==="string"?new Date(d):d;return new En(m.getFullYear(),m.getMonth(),m.getDate(),12,0,0,e)},c=(d)=>{let m=l(d);return new Date(m.getFullYear(),m.getMonth(),m.getDate(),0,0,0,0)};return{today:()=>l(En.tz(e)),newDate:(d,m,g)=>new En(d,m,g,12,0,0,e),startOfDay:(d)=>l(d),startOfWeek:(d,m)=>{let g=l(d),x=m?.weekStartsOn??s,v=(g.getDay()-x+7)%7;return g.setDate(g.getDate()-v),g},startOfISOWeek:(d)=>{let m=l(d),g=(m.getDay()-1+7)%7;return m.setDate(m.getDate()-g),m},startOfMonth:(d)=>{let m=l(d);return m.setDate(1),m},startOfYear:(d)=>{let m=l(d);return m.setMonth(0,1),m},endOfWeek:(d,m)=>{let g=l(d),b=(((m?.weekStartsOn??s)+6)%7-g.getDay()+7)%7;return g.setDate(g.getDate()+b),g},endOfISOWeek:(d)=>{let m=l(d),g=(7-m.getDay())%7;return m.setDate(m.getDate()+g),m},endOfMonth:(d)=>{let m=l(d);return m.setMonth(m.getMonth()+1,0),m},endOfYear:(d)=>{let m=l(d);return m.setMonth(11,31),m},eachMonthOfInterval:(d)=>{let m=l(d.start),g=l(d.end),x=[],v=new En(m.getFullYear(),m.getMonth(),1,12,0,0,e),b=g.getFullYear()*12+g.getMonth();while(v.getFullYear()*12+v.getMonth()<=b)x.push(new En(v,e)),v.setMonth(v.getMonth()+1,1);return x},addDays:(d,m)=>{let g=l(d);return g.setDate(g.getDate()+m),g},addWeeks:(d,m)=>{let g=l(d);return g.setDate(g.getDate()+m*7),g},addMonths:(d,m)=>{let g=l(d);return g.setMonth(g.getMonth()+m),g},addYears:(d,m)=>{let g=l(d);return g.setFullYear(g.getFullYear()+m),g},eachYearOfInterval:(d)=>{let m=l(d.start),g=l(d.end),x=[],v=new En(m.getFullYear(),0,1,12,0,0,e);while(v.getFullYear()<=g.getFullYear())x.push(new En(v,e)),v.setFullYear(v.getFullYear()+1,0,1);return x},getWeek:(d,m)=>{let g=c(d);return xR(g,{weekStartsOn:m?.weekStartsOn??s,firstWeekContainsDate:m?.firstWeekContainsDate??i?.options?.firstWeekContainsDate??1})},getISOWeek:(d)=>{let m=c(d);return MR(m)},differenceInCalendarDays:(d,m)=>{let g=c(d),x=c(m);return R8(g,x)},differenceInCalendarMonths:(d,m)=>{let g=c(d),x=c(m);return QF(g,x)}}}S();var uO=(e)=>{if(e instanceof HTMLElement)return e;return null},EW=(e)=>[...e.querySelectorAll("[data-animated-month]")??[]],eLt=(e)=>uO(e.querySelector("[data-animated-month]")),DW=(e)=>uO(e.querySelector("[data-animated-caption]")),OW=(e)=>uO(e.querySelector("[data-animated-weeks]")),tLt=(e)=>uO(e.querySelector("[data-animated-nav]")),rLt=(e)=>uO(e.querySelector("[data-animated-weekdays]"));function OMe(e,r,{classNames:a,months:i,focused:s,dateLib:l}){let c=y(null),d=y(i),m=y(!1);$e(()=>{let g=d.current;if(d.current=i,!r||!e.current||!(e.current instanceof HTMLElement)||i.length===0||g.length===0||i.length!==g.length)return;let x=l.isSameMonth(i[0].date,g[0].date),v=l.isAfter(i[0].date,g[0].date),b=v?a[ws.caption_after_enter]:a[ws.caption_before_enter],_=v?a[ws.weeks_after_enter]:a[ws.weeks_before_enter],z=c.current,k=e.current.cloneNode(!0);if(k instanceof HTMLElement)EW(k).forEach((G)=>{if(!(G instanceof HTMLElement))return;let X=eLt(G);if(X&&G.contains(X))G.removeChild(X);let J=DW(G);if(J)J.classList.remove(b);let ee=OW(G);if(ee)ee.classList.remove(_)}),c.current=k;else c.current=null;if(m.current||x||s)return;let U=z instanceof HTMLElement?EW(z):[],P=EW(e.current);if(P?.every((T)=>T instanceof HTMLElement)&&U?.every((T)=>T instanceof HTMLElement)){m.current=!0;let T=[];e.current.style.isolation="isolate";let G=tLt(e.current);if(G)G.style.zIndex="1";P.forEach((X,J)=>{let ee=U[J];if(!ee)return;X.style.position="relative",X.style.overflow="hidden";let re=DW(X);if(re)re.classList.add(b);let oe=OW(X);if(oe)oe.classList.add(_);let ie=()=>{if(m.current=!1,e.current)e.current.style.isolation="";if(G)G.style.zIndex="";if(re)re.classList.remove(b);if(oe)oe.classList.remove(_);if(X.style.position="",X.style.overflow="",X.contains(ee))X.removeChild(ee)};T.push(ie),ee.style.pointerEvents="none",ee.style.position="absolute",ee.style.overflow="hidden",ee.setAttribute("aria-hidden","true");let ye=rLt(ee);if(ye)ye.style.opacity="0";let We=DW(ee);if(We)We.classList.add(v?a[ws.caption_before_exit]:a[ws.caption_after_exit]),We.addEventListener("animationend",ie);let Ye=OW(ee);if(Ye)Ye.classList.add(v?a[ws.weeks_before_exit]:a[ws.weeks_after_exit]);X.insertBefore(ee,X.firstChild)})}})}S();function NMe(e,r,a,i){let s=e[0],l=e[e.length-1],{ISOWeek:c,fixedWeeks:d,broadcastCalendar:m}=a??{},{addDays:g,differenceInCalendarDays:x,differenceInCalendarMonths:v,endOfBroadcastWeek:b,endOfISOWeek:_,endOfMonth:z,endOfWeek:k,isAfter:U,startOfBroadcastWeek:P,startOfISOWeek:T,startOfWeek:G}=i,X=m?P(s,i):c?T(s):G(s),J=m?b(l):c?_(z(l)):k(z(l)),ee=r&&(m?b(r):c?_(r):k(r)),re=ee&&U(J,ee)?ee:J,oe=x(re,X),ie=v(l,s)+1,ye=[];for(let Se=0;Se<=oe;Se++){let He=g(X,Se);ye.push(He)}let Ye=(m?35:42)*ie;if(d&&ye.length<Ye){let Se=Ye-ye.length;for(let He=0;He<Se;He++){let dt=g(ye[ye.length-1],1);ye.push(dt)}}return ye}function FMe(e){let r=[];return e.reduce((a,i)=>{let s=i.weeks.reduce((l,c)=>l.concat(c.days.slice()),r.slice());return a.concat(s.slice())},r.slice())}function jMe(e,r,a,i){let{numberOfMonths:s=1}=a,l=[];for(let c=0;c<s;c++){let d=i.addMonths(e,c);if(r&&d>r)break;l.push(d)}return l}function NW(e,r,a,i){let{month:s,defaultMonth:l,today:c=i.today(),numberOfMonths:d=1}=e,m=s||l||c,{differenceInCalendarMonths:g,addMonths:x,startOfMonth:v}=i;if(a&&g(a,m)<d-1){let b=-1*(d-1);m=x(a,b)}if(r&&g(m,r)<0)m=r;return v(m)}function BMe(e,r,a,i){let{addDays:s,endOfBroadcastWeek:l,endOfISOWeek:c,endOfMonth:d,endOfWeek:m,getISOWeek:g,getWeek:x,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:_}=i,z=e.reduce((k,U)=>{let P=a.broadcastCalendar?v(U,i):a.ISOWeek?b(U):_(U),T=a.broadcastCalendar?l(U):a.ISOWeek?c(d(U)):m(d(U)),G=r.filter((re)=>re>=P&&re<=T),X=a.broadcastCalendar?35:42;if(a.fixedWeeks&&G.length<X){let re=r.filter((oe)=>{let ie=X-G.length;return oe>T&&oe<=s(T,ie)});G.push(...re)}let J=G.reduce((re,oe)=>{let ie=a.ISOWeek?g(oe):x(oe),ye=re.find((Ye)=>Ye.weekNumber===ie),We=new lO(oe,U,i);if(!ye)re.push(new xW(ie,[We]));else ye.days.push(We);return re},[]),ee=new MW(U,J);return k.push(ee),k},[]);if(!a.reverseMonths)return z;else return z.reverse()}function UMe(e,r){let{startMonth:a,endMonth:i}=e,{startOfYear:s,startOfDay:l,startOfMonth:c,endOfMonth:d,addYears:m,endOfYear:g,today:x}=r,v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";if(a)a=c(a);else if(!a&&v)a=s(m(e.today??x(),-100));if(i)i=d(i);else if(!i&&v)i=g(e.today??x());return[a?l(a):a,i?l(i):i]}function YMe(e,r,a,i){if(a.disableNavigation)return;let{pagedNavigation:s,numberOfMonths:l=1}=a,{startOfMonth:c,addMonths:d,differenceInCalendarMonths:m}=i,g=s?l:1,x=c(e);if(!r)return d(x,g);if(m(r,e)<l)return;return d(x,g)}function qMe(e,r,a,i){if(a.disableNavigation)return;let{pagedNavigation:s,numberOfMonths:l}=a,{startOfMonth:c,addMonths:d,differenceInCalendarMonths:m}=i,g=s?l??1:1,x=c(e);if(!r)return d(x,-g);if(m(x,r)<=0)return;return d(x,-g)}function HMe(e){let r=[];return e.reduce((a,i)=>a.concat(i.weeks.slice()),r.slice())}S();function U8(e,r){let[a,i]=u(e);return[r===void 0?a:r,i]}function VMe(e,r){let[a,i]=UMe(e,r),{startOfMonth:s,endOfMonth:l}=r,c=NW(e,a,i,r),[d,m]=U8(c,e.month?c:void 0);h(()=>{let X=NW(e,a,i,r);m(X)},[e.timeZone]);let{months:g,weeks:x,days:v,previousMonth:b,nextMonth:_}=N(()=>{let X=jMe(d,i,{numberOfMonths:e.numberOfMonths},r),J=NMe(X,e.endMonth?l(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},r),ee=BMe(X,J,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},r),re=HMe(ee),oe=FMe(ee),ie=qMe(d,a,e,r),ye=YMe(d,i,e,r);return{months:ee,weeks:re,days:oe,previousMonth:ie,nextMonth:ye}},[r,d.getTime(),i?.getTime(),a?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:z,onMonthChange:k}=e,U=(X)=>x.some((J)=>J.days.some((ee)=>ee.isEqualTo(X))),P=(X)=>{if(z)return;let J=s(X);if(a&&J<s(a))J=s(a);if(i&&J>s(i))J=s(i);m(J),k?.(J)};return{months:g,weeks:x,days:v,navStart:a,navEnd:i,previousMonth:b,nextMonth:_,goToMonth:P,goToDay:(X)=>{if(U(X))return;P(X.date)}}}S();var zZ;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(zZ||(zZ={}));function WMe(e){return!e[Aa.disabled]&&!e[Aa.hidden]&&!e[Aa.outside]}function KMe(e,r,a,i){let s,l=-1;for(let c of e){let d=r(c);if(WMe(d)){if(d[Aa.focused]&&l<zZ.FocusedModifier)s=c,l=zZ.FocusedModifier;else if(i?.isEqualTo(c)&&l<zZ.LastFocused)s=c,l=zZ.LastFocused;else if(a(c.date)&&l<zZ.Selected)s=c,l=zZ.Selected;else if(d[Aa.today]&&l<zZ.Today)s=c,l=zZ.Today}}if(!s)s=e.find((c)=>WMe(r(c)));return s}function GMe(e,r,a,i,s,l,c){let{ISOWeek:d,broadcastCalendar:m}=l,{addDays:g,addMonths:x,addWeeks:v,addYears:b,endOfBroadcastWeek:_,endOfISOWeek:z,endOfWeek:k,max:U,min:P,startOfBroadcastWeek:T,startOfISOWeek:G,startOfWeek:X}=c,ee={day:g,week:v,month:x,year:b,startOfWeek:(re)=>m?T(re,c):d?G(re):X(re),endOfWeek:(re)=>m?_(re):d?z(re):k(re)}[e](a,r==="after"?1:-1);if(r==="before"&&i)ee=U([i,ee]);else if(r==="after"&&s)ee=P([s,ee]);return ee}function FW(e,r,a,i,s,l,c,d=0){if(d>365)return;let m=GMe(e,r,a.date,i,s,l,c),g=Boolean(l.disabled&&Ic(m,l.disabled,c)),x=Boolean(l.hidden&&Ic(m,l.hidden,c)),b=new lO(m,m,c);if(!g&&!x)return b;return FW(e,r,b,i,s,l,c,d+1)}function XMe(e,r,a,i,s){let{autoFocus:l}=e,[c,d]=u(),m=KMe(r.days,a,i||(()=>!1),c),[g,x]=u(l?m:void 0);return{isFocusTarget:(k)=>Boolean(m?.isEqualTo(k)),setFocused:x,focused:g,blur:()=>{d(g),x(void 0)},moveFocus:(k,U)=>{if(!g)return;let P=FW(k,U,g,r.navStart,r.navEnd,e,s);if(!P)return;if(e.disableNavigation){if(!r.days.some((G)=>G.isEqualTo(P)))return}r.goToDay(P),x(P)}}}function QMe(e,r){let{selected:a,required:i,onSelect:s}=e,[l,c]=U8(a,s?a:void 0),d=!s?l:a,{isSameDay:m}=r,g=(_)=>d?.some((z)=>m(z,_))??!1,{min:x,max:v}=e;return{selected:d,select:(_,z,k)=>{let U=[...d??[]];if(g(_)){if(d?.length===x)return;if(i&&d?.length===1)return;U=d?.filter((P)=>!m(P,_))}else if(d?.length===v)U=[_];else U=[...U,_];if(!s)c(U);return s?.(U,_,z,k),U},isSelected:g}}function JMe(e,r,a=0,i=0,s=!1,l=Zi){let{from:c,to:d}=r||{},{isSameDay:m,isAfter:g,isBefore:x}=l,v;if(!c&&!d)v={from:e,to:a>0?void 0:e};else if(c&&!d)if(m(c,e))if(a===0)v={from:c,to:e};else if(s)v={from:c,to:void 0};else v=void 0;else if(x(e,c))v={from:e,to:c};else v={from:c,to:e};else if(c&&d)if(m(c,e)&&m(d,e))if(s)v={from:c,to:d};else v=void 0;else if(m(c,e))v={from:c,to:a>0?void 0:e};else if(m(d,e))v={from:e,to:a>0?void 0:e};else if(x(e,c))v={from:e,to:d};else if(g(e,c))v={from:c,to:e};else if(g(e,d))v={from:c,to:e};else throw Error("Invalid range");if(v?.from&&v?.to){let b=l.differenceInCalendarDays(v.to,v.from);if(i>0&&b>i)v={from:e,to:void 0};else if(a>1&&b<a)v={from:e,to:void 0}}return v}function $Me(e,r,a=Zi){let i=!Array.isArray(r)?[r]:r,s=e.from,l=a.differenceInCalendarDays(e.to,e.from),c=Math.min(l,6);for(let d=0;d<=c;d++){if(i.includes(s.getDay()))return!0;s=a.addDays(s,1)}return!1}function jW(e,r,a=Zi){return nl(e,r.from,!1,a)||nl(e,r.to,!1,a)||nl(r,e.from,!1,a)||nl(r,e.to,!1,a)}function e8e(e,r,a=Zi){let i=Array.isArray(r)?r:[r];if(i.filter((d)=>typeof d!=="function").some((d)=>{if(typeof d==="boolean")return d;if(a.isDate(d))return nl(e,d,!1,a);if(B3(d,a))return d.some((m)=>nl(e,m,!1,a));if(B8(d)){if(d.from&&d.to)return jW(e,{from:d.from,to:d.to},a);return!1}if(j3(d))return $Me(e,d.dayOfWeek,a);if(CR(d)){if(a.isAfter(d.before,d.after))return jW(e,{from:a.addDays(d.after,1),to:a.addDays(d.before,-1)},a);return Ic(e.from,d,a)||Ic(e.to,d,a)}if(IR(d)||RR(d))return Ic(e.from,d,a)||Ic(e.to,d,a);return!1}))return!0;let c=i.filter((d)=>typeof d==="function");if(c.length){let d=e.from,m=a.differenceInCalendarDays(e.to,e.from);for(let g=0;g<=m;g++){if(c.some((x)=>x(d)))return!0;d=a.addDays(d,1)}}return!1}function t8e(e,r){let{disabled:a,excludeDisabled:i,resetOnSelect:s,selected:l,required:c,onSelect:d}=e,[m,g]=U8(l,d?l:void 0),x=!d?m:l;return{selected:x,select:(_,z,k)=>{let{min:U,max:P}=e,T;if(_){let G=x?.from,X=x?.to,J=!!G&&!!X,ee=!!G&&!!X&&r.isSameDay(G,X)&&r.isSameDay(_,G);if(s&&(J||!x?.from))if(!c&&ee)T=void 0;else T={from:_,to:void 0};else T=JMe(_,x,U,P,c,r)}if(i&&a&&T?.from&&T.to){if(e8e({from:T.from,to:T.to},a,r))T.from=_,T.to=void 0}if(!d)g(T);return d?.(T,_,z,k),T},isSelected:(_)=>x&&nl(x,_,!1,r)}}function r8e(e,r){let{selected:a,required:i,onSelect:s}=e,[l,c]=U8(a,s?a:void 0),d=!s?l:a,{isSameDay:m}=r;return{selected:d,select:(v,b,_)=>{let z=v;if(!i&&d&&d&&m(v,d))z=void 0;if(!s)c(z);if(i)s?.(z,v,b,_);else s?.(z,v,b,_);return z},isSelected:(v)=>d?m(d,v):!1}}function o8e(e,r){let a=r8e(e,r),i=QMe(e,r),s=t8e(e,r);switch(e.mode){case"single":return a;case"multiple":return i;case"range":return s;default:return}}function Ss(e,r){if(e instanceof En&&e.timeZone===r)return e;return new En(e,r)}function PR(e,r,a){if(!a)return Ss(e,r);let i=Ss(e,r),s=new En(i.getFullYear(),i.getMonth(),i.getDate(),12,0,0,r);return new Date(s.getTime())}function a8e(e,r,a){if(typeof e==="boolean"||typeof e==="function")return e;if(e instanceof Date)return PR(e,r,a);if(Array.isArray(e))return e.map((i)=>i instanceof Date?PR(i,r,a):i);if(B8(e))return{...e,from:e.from?Ss(e.from,r):e.from,to:e.to?Ss(e.to,r):e.to};if(CR(e))return{before:PR(e.before,r,a),after:PR(e.after,r,a)};if(IR(e))return{after:PR(e.after,r,a)};if(RR(e))return{before:PR(e.before,r,a)};return e}function U3(e,r,a){if(!e)return e;if(Array.isArray(e))return e.map((i)=>a8e(i,r,a));return a8e(e,r,a)}function n8e(e){let r=e,a=r.timeZone;if(a){if(r={...e,timeZone:a},r.today)r.today=Ss(r.today,a);if(r.month)r.month=Ss(r.month,a);if(r.defaultMonth)r.defaultMonth=Ss(r.defaultMonth,a);if(r.startMonth)r.startMonth=Ss(r.startMonth,a);if(r.endMonth)r.endMonth=Ss(r.endMonth,a);if(r.mode==="single"&&r.selected)r.selected=Ss(r.selected,a);else if(r.mode==="multiple"&&r.selected)r.selected=r.selected?.map((Nt)=>Ss(Nt,a));else if(r.mode==="range"&&r.selected)r.selected={from:r.selected.from?Ss(r.selected.from,a):r.selected.from,to:r.selected.to?Ss(r.selected.to,a):r.selected.to};if(r.disabled!==void 0)r.disabled=U3(r.disabled,a);if(r.hidden!==void 0)r.hidden=U3(r.hidden,a);if(r.modifiers){let Nt={};Object.keys(r.modifiers).forEach((bt)=>{Nt[bt]=U3(r.modifiers?.[bt],a)}),r.modifiers=Nt}}let{components:i,formatters:s,labels:l,dateLib:c,locale:d,classNames:m}=N(()=>{let Nt={...sO,...r.locale},bt=r.broadcastCalendar?1:r.weekStartsOn,qt=r.noonSafe&&r.timeZone?DMe(r.timeZone,{weekStartsOn:bt,locale:Nt}):void 0,Nr=r.dateLib&&qt?{...qt,...r.dateLib}:r.dateLib??qt,jr=new ei({locale:Nt,weekStartsOn:bt,firstWeekContainsDate:r.firstWeekContainsDate,useAdditionalWeekYearTokens:r.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:r.useAdditionalDayOfYearTokens,timeZone:r.timeZone,numerals:r.numerals},Nr);return{dateLib:jr,components:kMe(r.components),formatters:IMe(r.formatters),labels:RMe(r.labels,jr.options),locale:Nt,classNames:{...cO(),...r.classNames}}},[r.locale,r.broadcastCalendar,r.weekStartsOn,r.firstWeekContainsDate,r.useAdditionalWeekYearTokens,r.useAdditionalDayOfYearTokens,r.timeZone,r.numerals,r.dateLib,r.noonSafe,r.components,r.formatters,r.labels,r.classNames]);if(!r.today)r={...r,today:c.today()};let{captionLayout:g,mode:x,navLayout:v,numberOfMonths:b=1,onDayBlur:_,onDayClick:z,onDayFocus:k,onDayKeyDown:U,onDayMouseEnter:P,onDayMouseLeave:T,onNextClick:G,onPrevClick:X,showWeekNumber:J,styles:ee}=r,{formatCaption:re,formatDay:oe,formatMonthDropdown:ie,formatWeekNumber:ye,formatWeekNumberHeader:We,formatWeekdayName:Ye,formatYearDropdown:Se}=s,He=VMe(r,c),{days:dt,months:Ge,navStart:yt,navEnd:Ft,previousMonth:Bt,nextMonth:de,goToMonth:_t}=He,Wt=SMe(dt,r,yt,Ft,c),{isSelected:Fe,select:fr,selected:sr}=o8e(r,c)??{},{blur:Jt,focused:Fr,isFocusTarget:Kt,moveFocus:Xt,setFocused:Ir}=XMe(r,He,Wt,Fe??(()=>!1),c),{labelDayButton:wr,labelGridcell:Tr,labelGrid:Zr,labelMonthDropdown:co,labelNav:io,labelPrevious:xa,labelNext:cr,labelWeekday:uo,labelWeekNumber:lo,labelWeekNumberHeader:No,labelYearDropdown:pn}=l,Ho=N(()=>AMe(c,r.ISOWeek,r.broadcastCalendar,r.today),[c,r.ISOWeek,r.broadcastCalendar,r.today]),Fn=x!==void 0||z!==void 0,mn=D(()=>{if(!Bt)return;_t(Bt),X?.(Bt)},[Bt,_t,X]),Hi=D(()=>{if(!de)return;_t(de),G?.(de)},[_t,de,G]),Ke=D((Nt,bt)=>(qt)=>{if(qt.preventDefault(),qt.stopPropagation(),Ir(Nt),bt.disabled)return;fr?.(Nt.date,bt,qt),z?.(Nt.date,bt,qt)},[fr,z,Ir]),Et=D((Nt,bt)=>(qt)=>{Ir(Nt),k?.(Nt.date,bt,qt)},[k,Ir]),mr=D((Nt,bt)=>(qt)=>{Jt(),_?.(Nt.date,bt,qt)},[Jt,_]),Br=D((Nt,bt)=>(qt)=>{let Nr={ArrowLeft:[qt.shiftKey?"month":"day",r.dir==="rtl"?"after":"before"],ArrowRight:[qt.shiftKey?"month":"day",r.dir==="rtl"?"before":"after"],ArrowDown:[qt.shiftKey?"year":"week","after"],ArrowUp:[qt.shiftKey?"year":"week","before"],PageUp:[qt.shiftKey?"year":"month","before"],PageDown:[qt.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Nr[qt.key]){qt.preventDefault(),qt.stopPropagation();let[jr,ua]=Nr[qt.key];Xt(jr,ua)}U?.(Nt.date,bt,qt)},[Xt,U,r.dir]),$r=D((Nt,bt)=>(qt)=>{P?.(Nt.date,bt,qt)},[P]),Vo=D((Nt,bt)=>(qt)=>{T?.(Nt.date,bt,qt)},[T]),qa=D((Nt,bt)=>(qt)=>{let Nr=Number(qt.target.value),jr=c.setMonth(c.startOfMonth(Nt),Nr);_t(c.addMonths(jr,-bt))},[c,_t]),Ee=D((Nt,bt)=>(qt)=>{let Nr=Number(qt.target.value),jr=c.setYear(c.startOfMonth(Nt),Nr);_t(c.addMonths(jr,-bt))},[c,_t]),{className:Oe,style:je}=N(()=>({className:[m[dr.Root],r.className].filter(Boolean).join(" "),style:{...ee?.[dr.Root],...r.style}}),[m,r.className,r.style,ee]),Zt=CMe(r),zt=(Nt)=>{let bt=ee?.[dr.Dropdown],qt=ee?.[Nt];if(!bt&&!qt)return;return{...bt,...qt}},jt=y(null);OMe(jt,Boolean(r.animate),{classNames:m,months:Ge,focused:Fr,dateLib:c});let ir={dayPickerProps:r,selected:sr,select:fr,isSelected:Fe,months:Ge,nextMonth:de,previousMonth:Bt,goToMonth:_t,getModifiers:Wt,components:i,classNames:m,styles:ee,labels:l,formatters:s};return j(vW.Provider,{value:ir},j(i.Root,{rootRef:r.animate?jt:void 0,className:Oe,style:je,dir:r.dir,id:r.id,lang:r.lang??d.code,nonce:r.nonce,title:r.title,role:r.role,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],...Zt},j(i.Months,{className:m[dr.Months],style:ee?.[dr.Months]},!r.hideNavigation&&!v&&j(i.Nav,{"data-animated-nav":r.animate?"true":void 0,className:m[dr.Nav],style:ee?.[dr.Nav],"aria-label":io(),onPreviousClick:mn,onNextClick:Hi,previousMonth:Bt,nextMonth:de}),Ge.map((Nt,bt)=>{let qt=r.reverseMonths?Ge.length-1-bt:bt;return j(i.Month,{"data-animated-month":r.animate?"true":void 0,className:m[dr.Month],style:ee?.[dr.Month],key:bt,displayIndex:bt,calendarMonth:Nt},v==="around"&&!r.hideNavigation&&bt===0&&j(i.PreviousMonthButton,{type:"button",className:m[dr.PreviousMonthButton],style:ee?.[dr.PreviousMonthButton],tabIndex:Bt?void 0:-1,"aria-disabled":Bt?void 0:!0,"aria-label":xa(Bt),onClick:mn,"data-animated-button":r.animate?"true":void 0},j(i.Chevron,{disabled:Bt?void 0:!0,className:m[dr.Chevron],style:ee?.[dr.Chevron],orientation:r.dir==="rtl"?"right":"left"})),j(i.MonthCaption,{"data-animated-caption":r.animate?"true":void 0,className:m[dr.MonthCaption],style:ee?.[dr.MonthCaption],calendarMonth:Nt,displayIndex:bt},g?.startsWith("dropdown")?j(i.DropdownNav,{className:m[dr.Dropdowns],style:ee?.[dr.Dropdowns]},(()=>{let Nr=g==="dropdown"||g==="dropdown-months"?j(i.MonthsDropdown,{key:"month",className:m[dr.MonthsDropdown],"aria-label":co(),disabled:Boolean(r.disableNavigation),onChange:qa(Nt.date,qt),options:PMe(Nt.date,yt,Ft,s,c),style:zt(dr.MonthsDropdown),value:c.getMonth(Nt.date)}):j("span",{key:"month"},ie(Nt.date,c)),jr=g==="dropdown"||g==="dropdown-years"?j(i.YearsDropdown,{key:"year",className:m[dr.YearsDropdown],"aria-label":pn(c.options),disabled:Boolean(r.disableNavigation),onChange:Ee(Nt.date,qt),options:EMe(yt,Ft,s,c,Boolean(r.reverseYears)),style:zt(dr.YearsDropdown),value:c.getYear(Nt.date)}):j("span",{key:"year"},Se(Nt.date,c));return c.getMonthYearOrder()==="year-first"?[jr,Nr]:[Nr,jr]})(),j("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},re(Nt.date,c.options,c))):j(i.CaptionLabel,{className:m[dr.CaptionLabel],style:ee?.[dr.CaptionLabel],role:"status","aria-live":"polite"},re(Nt.date,c.options,c))),v==="around"&&!r.hideNavigation&&bt===b-1&&j(i.NextMonthButton,{type:"button",className:m[dr.NextMonthButton],style:ee?.[dr.NextMonthButton],tabIndex:de?void 0:-1,"aria-disabled":de?void 0:!0,"aria-label":cr(de),onClick:Hi,"data-animated-button":r.animate?"true":void 0},j(i.Chevron,{disabled:de?void 0:!0,className:m[dr.Chevron],style:ee?.[dr.Chevron],orientation:r.dir==="rtl"?"left":"right"})),bt===b-1&&v==="after"&&!r.hideNavigation&&j(i.Nav,{"data-animated-nav":r.animate?"true":void 0,className:m[dr.Nav],style:ee?.[dr.Nav],"aria-label":io(),onPreviousClick:mn,onNextClick:Hi,previousMonth:Bt,nextMonth:de}),j(i.MonthGrid,{role:"grid","aria-multiselectable":x==="multiple"||x==="range","aria-label":Zr(Nt.date,c.options,c)||void 0,className:m[dr.MonthGrid],style:ee?.[dr.MonthGrid]},!r.hideWeekdays&&j(i.Weekdays,{"data-animated-weekdays":r.animate?"true":void 0,className:m[dr.Weekdays],style:ee?.[dr.Weekdays]},J&&j(i.WeekNumberHeader,{"aria-label":No(c.options),className:m[dr.WeekNumberHeader],style:ee?.[dr.WeekNumberHeader],scope:"col"},We()),Ho.map((Nr)=>j(i.Weekday,{"aria-label":uo(Nr,c.options,c),className:m[dr.Weekday],key:String(Nr),style:ee?.[dr.Weekday],scope:"col"},Ye(Nr,c.options,c)))),j(i.Weeks,{"data-animated-weeks":r.animate?"true":void 0,className:m[dr.Weeks],style:ee?.[dr.Weeks]},Nt.weeks.map((Nr)=>j(i.Week,{className:m[dr.Week],key:Nr.weekNumber,style:ee?.[dr.Week],week:Nr},J&&j(i.WeekNumber,{week:Nr,style:ee?.[dr.WeekNumber],"aria-label":lo(Nr.weekNumber,{locale:d}),className:m[dr.WeekNumber],scope:"row",role:"rowheader"},ye(Nr.weekNumber,c)),Nr.days.map((jr)=>{let{date:ua}=jr,nr=Wt(jr);if(nr[Aa.focused]=!nr.hidden&&Boolean(Fr?.isEqualTo(jr)),nr[al.selected]=Fe?.(ua)||nr.selected,B8(sr)){let{from:pf,to:Ea}=sr;nr[al.range_start]=Boolean(pf&&Ea&&c.isSameDay(ua,pf)),nr[al.range_end]=Boolean(pf&&Ea&&c.isSameDay(ua,Ea)),nr[al.range_middle]=nl(sr,ua,!0,c)}let Go=TMe(nr,ee,r.modifiersStyles),va=LMe(nr,m,r.modifiersClassNames),oi=!Fn&&!nr.hidden?Tr(ua,nr,c.options,c):void 0;return j(i.Day,{key:`${jr.isoDate}_${jr.displayMonthId}`,day:jr,modifiers:nr,className:va.join(" "),style:Go,role:"gridcell","aria-selected":nr.selected||void 0,"aria-label":oi,"data-day":jr.isoDate,"data-month":jr.outside?jr.dateMonthId:void 0,"data-selected":nr.selected||void 0,"data-disabled":nr.disabled||void 0,"data-hidden":nr.hidden||void 0,"data-outside":jr.outside||void 0,"data-focused":nr.focused||void 0,"data-today":nr.today||void 0},!nr.hidden&&Fn?j(i.DayButton,{className:m[dr.DayButton],style:ee?.[dr.DayButton],type:"button",day:jr,modifiers:nr,disabled:!nr.focused&&nr.disabled||void 0,"aria-disabled":nr.focused&&nr.disabled||void 0,tabIndex:Kt(jr)?0:-1,"aria-label":wr(ua,nr,c.options,c),onClick:Ke(jr,nr),onBlur:mr(jr,nr),onFocus:Et(jr,nr),onKeyDown:Br(jr,nr),onMouseEnter:$r(jr,nr),onMouseLeave:Vo(jr,nr)},oe(ua,c.options,c)):!nr.hidden&&oe(jr.date,c.options,c))}))))))})),r.footer&&j(i.Footer,{className:m[dr.Footer],style:ee?.[dr.Footer],role:"status","aria-live":"polite"},r.footer)))}function i8e({className:e,classNames:r,showOutsideDays:a=!0,captionLayout:i="label",buttonVariant:s="ghost",formatters:l,components:c,...d}){let m=cO();return t(n8e,{showOutsideDays:a,className:C("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:i,formatters:{formatMonthDropdown:(g)=>g.toLocaleString("default",{month:"short"}),...l},classNames:{root:C("w-fit",m.root),months:C("relative flex flex-col gap-4 md:flex-row",m.months),month:C("flex w-full flex-col gap-4",m.month),nav:C("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",m.nav),button_previous:C(R4({variant:s}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",m.button_previous),button_next:C(R4({variant:s}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",m.button_next),month_caption:C("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",m.month_caption),dropdowns:C("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",m.dropdowns),dropdown_root:C("relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",m.dropdown_root),dropdown:C("absolute inset-0 bg-popover opacity-0",m.dropdown),caption_label:C("font-medium select-none",i==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",m.caption_label),month_grid:"w-full border-collapse",weekdays:C("flex",m.weekdays),weekday:C("flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",m.weekday),week:C("mt-2 flex w-full",m.week),week_number_header:C("w-(--cell-size) select-none",m.week_number_header),week_number:C("text-[0.8rem] text-muted-foreground select-none",m.week_number),day:C("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",d.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",m.day),range_start:C("rounded-l-md bg-accent",m.range_start),range_middle:C("rounded-none",m.range_middle),range_end:C("rounded-r-md bg-accent",m.range_end),today:C("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",m.today),outside:C("text-muted-foreground aria-selected:text-muted-foreground",m.outside),disabled:C("text-muted-foreground opacity-50",m.disabled),hidden:C("invisible",m.hidden),...r},components:{Root:({className:g,rootRef:x,...v})=>t("div",{"data-slot":"calendar",ref:x,className:C(g),...v}),Chevron:({className:g,orientation:x,...v})=>{if(x==="left")return t(nn,{className:C("size-4",g),...v});if(x==="right")return t(vt,{className:C("size-4",g),...v});return t(ve,{className:C("size-4",g),...v})},DayButton:oLt,WeekNumber:({children:g,...x})=>t("td",{...x,children:t("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:g})}),...c},...d})}function oLt({className:e,day:r,modifiers:a,...i}){let s=cO(),l=y(null);return h(()=>{if(a.focused)l.current?.focus()},[a.focused]),t(E,{ref:l,variant:"ghost",size:"icon","data-day":r.date.toLocaleDateString(),"data-selected-single":a.selected&&!a.range_start&&!a.range_end&&!a.range_middle,"data-range-start":a.range_start,"data-range-end":a.range_end,"data-range-middle":a.range_middle,className:C("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",s.day,e),...i})}function so({className:e,orientation:r="horizontal",decorative:a=!0,...i}){return t(mPe,{"data-slot":"separator",decorative:a,orientation:r,className:C("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...i})}S();function xi({value:e,onChange:r,placeholder:a="Pick a date",disabled:i,className:s}){let[l,c]=u(!1),[d,m]=u(e);h(()=>{if(l)m(e)},[l,e]);let g=Array.from({length:24},(k,U)=>U),x=Array.from({length:12},(k,U)=>U*5),v=(k)=>{if(k){let U=d?new Date(d):new Date;U.setFullYear(k.getFullYear()),U.setMonth(k.getMonth()),U.setDate(k.getDate()),m(U)}else m(void 0)},b=(k,U)=>{let P=d?new Date(d):new Date;if(k==="hour")P.setHours(U);else P.setMinutes(U);m(P)},_=(k)=>{let U=new Date;if(k==="24h")U=ide(U,24);else if(k==="1w")U=ED(U,1);else if(k==="2w")U=ED(U,2);m(U)},z=()=>{r?.(d),c(!1)};return o(ht,{open:l,onOpenChange:c,children:[t(gt,{asChild:!0,children:o(E,{variant:"outline",disabled:i,className:C("w-full justify-start text-left font-normal h-9",!e&&"text-muted-foreground",s),children:[t(jn,{className:"mr-2 h-4 w-4"}),e?gr(e,"yyyy/MM/dd HH:mm"):t("span",{children:a})]})}),t(At,{className:"w-[22rem] p-0",align:"start",children:o("div",{className:"flex flex-col w-full",children:[o("div",{className:"flex w-full",children:[t(i8e,{mode:"single",selected:d,onSelect:v,className:"grow"}),o("div",{className:"flex flex-col sm:flex-row sm:h-[300px] divide-y sm:divide-y-0 sm:divide-x border-t sm:border-t-0 border-l",children:[o(ce,{className:"w-64 sm:w-auto [&_[data-orientation=vertical]]:hidden",children:[t("div",{className:"flex sm:flex-col p-2",children:g.map((k)=>t(E,{size:"icon",variant:d&&d.getHours()===k?"default":"ghost",className:"sm:w-full shrink-0 aspect-square text-xs h-8 w-8",onClick:()=>b("hour",k),children:k.toString().padStart(2,"0")},k))}),t(Q4,{orientation:"horizontal",className:"sm:hidden"})]}),o(ce,{className:"w-64 sm:w-auto [&_[data-orientation=vertical]]:hidden",children:[t("div",{className:"flex sm:flex-col p-2",children:x.map((k)=>t(E,{size:"icon",variant:d&&d.getMinutes()===k?"default":"ghost",className:"sm:w-full shrink-0 aspect-square text-xs h-8 w-8",onClick:()=>b("minute",k),children:k.toString().padStart(2,"0")},k))}),t(Q4,{orientation:"horizontal",className:"sm:hidden"})]})]})]}),t(so,{}),o("div",{className:"p-2 flex items-center justify-between bg-muted/50",children:[o("div",{className:"flex gap-2",children:[t(E,{variant:"outline",size:"sm",className:"text-[10px] h-7 px-2",onClick:()=>_("24h"),children:"24 Hours"}),t(E,{variant:"outline",size:"sm",className:"text-[10px] h-7 px-2",onClick:()=>_("1w"),children:"1 Week"}),t(E,{variant:"outline",size:"sm",className:"text-[10px] h-7 px-2",onClick:()=>_("2w"),children:"2 Weeks"})]}),t(E,{size:"sm",className:"h-7 px-4",onClick:z,children:"Save"})]})]})})]})}S();var aLt=[Qe.TODO,Qe.READY,Qe.IN_PROGRESS,Qe.IN_REVIEW,Qe.DONE,Qe.BLOCKED];function Kd({teamId:e,currentTaskId:r,excludeTaskIds:a=[],value:i=[],knownTasks:s=[],onChange:l,disabled:c=!1,canEdit:d=!0,className:m}){let[g,x]=u(!1),[v,b]=u(Qe.TODO),[_,z]=u(""),[k,U]=u(()=>{let ie={};for(let ye of s)ie[ye.id]={title:ye.title,status:ye.status};return ie}),{data:P,isLoading:T}=Z({queryKey:["teams",e,"kanban","tasks","status",v],queryFn:async()=>{let ie=await A.api.teams[":teamId"].kanban.tasks.$get({param:{teamId:e},query:{status:v,first:"100"}});if(!ie.ok)return{data:[]};return await ie.json()},enabled:!!e&&g}),G=P?.data||[];N(()=>{if(G.length>0)U((ie)=>{let ye=!1,We={...ie};for(let Ye of G)if(!We[Ye.id]||We[Ye.id].title!==Ye.title||We[Ye.id].status!==Ye.status)We[Ye.id]={title:Ye.title,status:Ye.status},ye=!0;return ye?We:ie})},[G]);let X=N(()=>{let ie=new Set(a);if(r)ie.add(r);return ie},[r,a]),J=N(()=>{let ie=_.trim().toLowerCase();return G.filter((ye)=>{if(X.has(ye.id))return!1;if(!ie)return!0;return ye.title.toLowerCase().includes(ie)})},[G,X,_]),ee=(ie)=>{if(!d||c)return;let We=i.includes(ie)?i.filter((Ye)=>Ye!==ie):[...i,ie];l?.(We)},re=(ie,ye)=>{if(ye.stopPropagation(),!d||c)return;l?.(i.filter((We)=>We!==ie))},oe=d&&!c;return o(ht,{open:g&&oe,onOpenChange:(ie)=>oe&&x(ie),children:[t(gt,{asChild:!0,children:t("div",{role:"button",tabIndex:oe?0:-1,className:C("w-full min-h-[36px] px-2.5 py-1.5 flex flex-wrap items-center gap-1.5 rounded-md border border-input bg-background text-xs transition-colors",oe?"cursor-pointer hover:border-ring/60 focus:outline-none focus:ring-2 focus:ring-ring/50":"cursor-not-allowed opacity-70",m),children:i.length===0?o("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[t(Bs,{className:"w-3.5 h-3.5 text-muted-foreground/70"}),t("span",{children:Qct()})]}):i.map((ie)=>{let ye=k[ie];return o("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md text-[11px] bg-muted text-foreground border border-border/80 shrink-0 max-w-[220px]",children:[ye?.status&&t("span",{className:C("px-1 py-0.2 rounded text-[9px] uppercase font-semibold shrink-0",F8(ye.status)),children:oo(ye.status)}),t("span",{className:"truncate font-medium",children:ye?.title||ie}),oe&&t("button",{type:"button",onClick:(We)=>re(ie,We),className:"text-muted-foreground hover:text-destructive shrink-0 p-0.5 -mr-1",children:t(Ne,{className:"w-3 h-3"})})]},ie)})})}),o(At,{align:"start",sideOffset:4,className:"w-[var(--radix-popover-trigger-width)] min-w-[320px] sm:min-w-[420px] max-w-[500px] p-2.5 space-y-2 bg-popover border border-border rounded-lg shadow-lg",children:[t("div",{className:"flex flex-wrap gap-1.5 pb-0.5",children:aLt.map((ie)=>t("button",{type:"button",onClick:()=>b(ie),className:C("text-[11px] h-7 px-2.5 rounded-md font-medium transition-colors border shrink-0",v===ie?"bg-primary text-primary-foreground border-primary shadow-xs":"bg-muted/50 hover:bg-accent text-muted-foreground hover:text-foreground border-border/60"),children:oo(ie)},ie))}),o("div",{className:"relative",children:[t(Ut,{className:"w-3.5 h-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"}),t(q,{value:_,onChange:(ie)=>z(ie.target.value),placeholder:x9e(),className:"h-8 pl-8 text-xs bg-muted/40",autoFocus:!0})]}),t("div",{className:"border rounded-md overflow-hidden bg-background/50",children:t(ce,{className:"h-48 p-1",children:T?t("div",{className:"flex items-center justify-center py-8",children:t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})}):J.length===0?t("div",{className:"py-8 text-center text-xs text-muted-foreground italic",children:tle()}):t("div",{className:"space-y-1",children:J.map((ie)=>{let ye=i.includes(ie.id);return o("div",{onClick:()=>ee(ie.id),className:C("flex items-center justify-between p-2 rounded-md hover:bg-accent cursor-pointer transition-colors text-xs border border-transparent",ye&&"bg-accent/50 border-border/50"),children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1 pr-2",children:[t("div",{className:C("w-4 h-4 rounded border flex items-center justify-center shrink-0 transition-colors",ye?"bg-primary border-primary text-primary-foreground":"border-input bg-background"),children:ye&&t(Pe,{className:"w-3 h-3 stroke-[3]"})}),t("span",{className:C("px-1.5 py-0.5 rounded text-[10px] uppercase font-medium shrink-0",F8(ie.status)),children:oo(ie.status)}),t("span",{className:"font-medium text-foreground truncate",children:ie.title})]}),ie.assignee&&t("span",{className:"text-[10px] text-muted-foreground truncate shrink-0",children:ie.assignee.name})]},ie.id)})})})})]})]})}S();function vr({className:e,...r}){return t(sCe,{"data-slot":"checkbox",className:C("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...r,children:t(cCe,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:t(Pe,{className:"size-3.5"})})})}function Wr(e){if(!e||e<=0)return"0 B";let r=1000,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));if(i<0)i=0;if(i>=a.length)i=a.length-1;let s=e/Math.pow(r,i);if(i===0)return`${Math.round(s)} B`;let l=parseFloat(s.toFixed(2));if(l>=1000&&i<a.length-1)return parseFloat((e/Math.pow(r,i+1)).toFixed(2))+" "+a[i+1];return`${l} ${a[i]}`}S();function f8e({teamId:e,initialProjectId:r,excludeAssetIds:a=[],isOpen:i,onClose:s,onConfirm:l}){let[c,d]=u(r||""),[m,g]=u(null),[x,v]=u(new Map),{data:b,isLoading:_}=Z({queryKey:["teams",e,"projects"],queryFn:async()=>{let _t=await A.api.teams[":teamId"].projects.$get({param:{teamId:e},query:{first:"100"}});if(!_t.ok)throw Error("Failed to fetch projects");return await _t.json()},enabled:!!e&&i}),z=b?.data||[],k=c||(z[0]?.id??""),U=z.find((_t)=>_t.id===k),P=m?.id||U?.rootFolder||"",T=P===U?.rootFolder,{data:G,fetchNextPage:X,hasNextPage:J,isFetchingNextPage:ee,isLoading:re}=pt({queryKey:["folders",P,"children","folder","picker"],queryFn:async({pageParam:_t})=>{let Wt=await A.api.folders[":folderId"].children.$get({param:{folderId:P},query:{assetType:"folder",after:_t,first:"20"}});if(!Wt.ok)throw Error("Failed to fetch folders");return await Wt.json()},initialPageParam:"",getNextPageParam:(_t)=>_t.pageInfo?.cursor||void 0,enabled:!!P&&i}),{data:oe,fetchNextPage:ie,hasNextPage:ye,isFetchingNextPage:We,isLoading:Ye}=pt({queryKey:["folders",P,"children","file","picker"],queryFn:async({pageParam:_t})=>{let Wt=await A.api.folders[":folderId"].children.$get({param:{folderId:P},query:{assetType:"file",after:_t,first:"20"}});if(!Wt.ok)throw Error("Failed to fetch files");return await Wt.json()},initialPageParam:"",getNextPageParam:(_t)=>_t.pageInfo?.cursor||void 0,enabled:!!P&&i}),{ref:Se,inView:He}=Pt();h(()=>{if(He){if(J&&!ee)X();else if(ye&&!We)ie()}},[He,J,ee,X,ye,We,ie]);let dt=re&&!G||Ye&&!oe,Ge=ee||We,yt=N(()=>{let _t=G?.pages.flatMap((Fe)=>Fe.data??[])??[],Wt=oe?.pages.flatMap((Fe)=>Fe.data??[])??[];return[..._t,...Wt]},[G,oe]),Ft=(_t)=>{let Wt=new Map(x);if(Wt.has(_t.id))Wt.delete(_t.id);else{let Fe=U?`/${[U.name,...(_t.ancestorFolders||[]).map((fr)=>fr.name)].filter(Boolean).join("/")}`:"/";Wt.set(_t.id,{id:_t.id,name:_t.name,type:_t.type,proxyType:_t.proxyType??null,thumbnailUrl:_t.preview?.thumbnailUrl??null,path:Fe,creator:_t.creator?{id:_t.creator.id,name:_t.creator.name,image:_t.creator.image??void 0}:null,sizeByte:_t.sizeByte??0,fileCount:_t.fileCount??null,projectId:_t.projectId??U?.id??null,createdAt:_t.createdAt??new Date().toISOString()})}v(Wt)},Bt=()=>{if(!m||T)return;let _t=new Map(x);if(_t.has(m.id))_t.delete(m.id);else{let Wt=U?`/${[U.name,...(m.ancestorFolders||[]).map((Fe)=>Fe.name)].filter(Boolean).join("/")}`:"/";_t.set(m.id,{id:m.id,name:m.name,type:"folder",proxyType:null,thumbnailUrl:null,path:Wt,creator:m.creator?{id:m.creator.id,name:m.creator.name,image:m.creator.image??void 0}:null,sizeByte:m.sizeByte??0,fileCount:m.fileCount??null,projectId:m.projectId??U?.id??null,createdAt:m.createdAt??new Date().toISOString()})}v(_t)},de=()=>{l(Array.from(x.values())),s()};return t(ue,{open:i,onOpenChange:(_t)=>{if(!_t)s()},children:o(ae,{className:"sm:max-w-4xl flex flex-col h-[650px] p-0 overflow-hidden gap-1",children:[t(fe,{className:"px-4 py-3 border-b shrink-0",children:o("div",{className:"flex items-center gap-2",children:[t(rr,{className:"w-5 h-5 text-primary"}),t(le,{children:bct()})]})}),o("div",{className:"flex items-center gap-2.5 px-4 py-1.5 border-b bg-transparent shrink-0",children:[o("span",{className:"text-xs font-medium text-muted-foreground whitespace-nowrap",children:[W3e(),":"]}),t("div",{className:"w-64",children:o(Le,{value:k,onValueChange:(_t)=>{d(_t),g(null)},children:[t(Be,{className:"h-8 text-xs bg-background",children:t(Ze,{placeholder:Jq()})}),t(Ue,{children:z.map((_t)=>t(ne,{value:_t.id,className:"text-xs",children:_t.name},_t.id))})]})})]}),o("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[t("div",{className:"w-1/3 min-h-0 border-r bg-sidebar/30 flex flex-col overflow-hidden",children:t(ce,{className:"flex-1 min-h-0 [&>div>div]:block!",children:U&&U.rootFolder?t("div",{className:"p-2",children:t(br,{teamId:e,projectId:U.id,projectName:U.name,rootFolderId:U.rootFolder,onSelect:(_t)=>g(_t),selectedFolderId:P,hideCollections:!0,hideShares:!0,hideRecentlyDeleted:!0})}):t("div",{className:"flex items-center justify-center h-full p-6 text-xs text-muted-foreground",children:_?t(O,{className:"w-5 h-5 animate-spin text-muted-foreground"}):rle()})})}),o("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden bg-background",children:[o("div",{className:"p-2.5 px-4 border-b flex items-center justify-between bg-muted/20 shrink-0",children:[o("div",{className:"flex items-center gap-2 text-xs font-medium truncate",children:[t(rr,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t("span",{className:"truncate",children:m?m.name:U?.name||""}),T&&t("span",{className:"text-[10px] text-muted-foreground/70 bg-muted px-1.5 py-0.5 rounded",children:"Root"})]}),!T&&m&&t(E,{size:"sm",variant:x.has(m.id)?"secondary":"outline",className:"h-7 text-xs gap-1.5",onClick:Bt,disabled:a.includes(m.id),children:x.has(m.id)?o(L,{children:[t(Pe,{className:"w-3.5 h-3.5 text-primary"}),Kg()]}):o(L,{children:[t(pe,{className:"w-3.5 h-3.5"}),kct()]})})]}),t(ce,{className:"flex-1 min-h-0 [&>div>div]:block!",children:dt?t("div",{className:"flex items-center justify-center p-12",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):yt.length===0?o("div",{className:"flex flex-col items-center justify-center p-12 text-center text-xs text-muted-foreground gap-2",children:[t(rr,{className:"w-8 h-8 opacity-30"}),t("p",{children:DJe()})]}):o("div",{className:"divide-y divide-border/40",children:[yt.map((_t)=>{let Wt=a.includes(_t.id),Fe=x.has(_t.id),fr=_t.type==="folder";return o("div",{onClick:()=>{if(!Wt)Ft(_t)},className:`flex items-center gap-3 px-4 py-2.5 hover:bg-muted/40 cursor-pointer transition-colors ${Fe?"bg-primary/5":""} ${Wt?"opacity-50 cursor-not-allowed":""}`,children:[t(vr,{checked:Fe,disabled:Wt,onCheckedChange:()=>{if(!Wt)Ft(_t)},onClick:(sr)=>sr.stopPropagation()}),t("div",{className:"w-9 h-9 rounded bg-muted/60 border shrink-0 flex items-center justify-center overflow-hidden",children:_t.preview?.thumbnailUrl?t("img",{src:_t.preview.thumbnailUrl,alt:_t.name,className:"w-full h-full object-cover"}):fr?t(rr,{className:"w-5 h-5 text-primary fill-primary/20"}):t(tr,{className:"w-5 h-5 text-muted-foreground"})}),o("div",{className:"flex-1 min-w-0",children:[t("p",{className:"text-xs font-medium truncate text-foreground",children:_t.name}),o("p",{className:"text-[11px] text-muted-foreground truncate",children:[fr?`${_t.fileCount??0} items`:Wr(_t.sizeByte||0),_t.creator?.name?` • ${_t.creator.name}`:""]})]})]},_t.id)}),t("div",{ref:Se,className:"h-1"}),Ge&&t("div",{className:"flex items-center justify-center p-3",children:t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})})]})})]})]}),o(qe,{className:"p-3 px-4 border-t flex items-center justify-between sm:justify-between bg-muted/10 shrink-0",children:[t("div",{className:"text-xs text-muted-foreground",children:x.size>0&&ZQe({count:x.size})}),o("div",{className:"flex items-center gap-2",children:[t(E,{variant:"outline",size:"sm",onClick:s,children:De()}),t(E,{size:"sm",onClick:de,disabled:x.size===0,children:Bse()})]})]})]})})}function Wd({teamId:e,projectId:r,assets:a,onAddAssets:i,onRemoveAsset:s,disabled:l=!1}){let[c,d]=u(!1),m=(g)=>{let x=new Set(a.map((b)=>b.id)),v=g.filter((b)=>!x.has(b.id));if(v.length>0)i(v)};return o("div",{className:"space-y-2",children:[o("div",{className:"flex items-center justify-between",children:[o("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-foreground",children:[t(Ma,{className:"w-3.5 h-3.5 text-muted-foreground"}),t("span",{children:est()}),a.length>0&&o("span",{className:"text-[11px] text-muted-foreground font-normal",children:["(",a.length,")"]})]}),!l&&t(E,{type:"button",variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted",onClick:()=>d(!0),title:Bse(),children:t(pe,{className:"w-3.5 h-3.5"})})]}),t(so,{}),a.length===0?t("p",{className:"text-xs text-muted-foreground/70 py-1 italic",children:K$e()}):t("div",{className:"space-y-1.5 max-h-48 overflow-y-auto pr-1",children:a.map((g)=>{let x=g.type==="folder";return o("div",{className:"flex items-center justify-between gap-2 p-1.5 px-2 rounded-md bg-muted/40 hover:bg-muted/70 transition-colors text-xs border border-border/40",children:[o("div",{className:"flex items-center gap-2.5 min-w-0 flex-1",children:[t("div",{className:"w-7 h-7 rounded bg-muted border shrink-0 flex items-center justify-center overflow-hidden",children:g.thumbnailUrl?t("img",{src:g.thumbnailUrl,alt:g.name,className:"w-full h-full object-cover"}):x?t(rr,{className:"w-4 h-4 text-primary fill-primary/20"}):t(tr,{className:"w-4 h-4 text-muted-foreground"})}),o("div",{className:"flex-1 min-w-0",children:[t("p",{className:"font-medium truncate text-foreground leading-snug",children:g.name}),t("p",{className:"text-[10px] text-muted-foreground truncate leading-none mt-0.5",children:g.path||"/"})]})]}),o("div",{className:"flex items-center gap-2 shrink-0",children:[g.creator&&o("div",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",title:g.creator.name,children:[o(Ce,{className:"w-4 h-4 text-[9px]",children:[t(Ie,{src:g.creator.image||void 0}),t(Te,{children:g.creator.name.slice(0,1).toUpperCase()})]}),t("span",{className:"hidden sm:inline text-[11px] max-w-[80px] truncate",children:g.creator.name})]}),!l&&t(E,{type:"button",variant:"ghost",size:"sm",className:"h-5 w-5 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:()=>s(g.id),title:cMt(),children:t(Ne,{className:"w-3 h-3"})})]})]},g.id)})}),c&&t(f8e,{teamId:e,initialProjectId:r,excludeAssetIds:a.map((g)=>g.id),isOpen:c,onClose:()=>d(!1),onConfirm:m})]})}S();function Yd({teamId:e,currentProjectId:r,currentTargetFolderId:a,isOpen:i,onClose:s,onSelect:l}){let[c,d]=u(r||""),[m,g]=u(null),{data:x,isLoading:v}=Z({queryKey:["teams",e,"projects"],queryFn:async()=>{let U=await A.api.teams[":teamId"].projects.$get({param:{teamId:e},query:{first:"100"}});if(!U.ok)throw Error("Failed to fetch projects");return await U.json()},enabled:!!e&&i}),b=x?.data||[],_=c||(b[0]?.id??""),z=b.find((U)=>U.id===_),k=()=>{if(!_)return;let U=m?.id||z?.rootFolder;if(U)l(_,U,m?.name||z?.name),s()};return t(ue,{open:i,onOpenChange:(U)=>!U&&s(),children:o(ae,{className:"sm:max-w-2xl flex flex-col h-[580px]",children:[t(fe,{children:o("div",{className:"flex items-center gap-2",children:[t(rr,{className:"w-5 h-5 text-primary"}),t(le,{children:Pp()})]})}),o("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden py-2",children:[o("div",{className:"space-y-1.5",children:[t("label",{className:"text-xs font-medium text-muted-foreground",children:Jq()}),o(Le,{value:_,onValueChange:(U)=>{d(U),g(null)},children:[t(Be,{className:"h-9",children:t(Ze,{placeholder:Jq()})}),t(Ue,{children:b.map((U)=>t(ne,{value:U.id,children:U.name},U.id))})]})]}),o("div",{className:"space-y-1.5 flex-1 flex flex-col overflow-hidden",children:[t("label",{className:"text-xs font-medium text-muted-foreground",children:Up()}),t("div",{className:"border rounded-md flex-1 overflow-hidden bg-sidebar/50",children:t(ce,{className:"h-full",children:z&&z.rootFolder?t(br,{teamId:e,projectId:z.id,projectName:z.name,rootFolderId:z.rootFolder,onSelect:g,selectedFolderId:m?.id||a||z.rootFolder,hideCollections:!0,hideShares:!0,hideRecentlyDeleted:!0}):t("div",{className:"flex items-center justify-center h-full p-6 text-xs text-muted-foreground",children:v?t(O,{className:"w-5 h-5 animate-spin text-muted-foreground"}):rle()})})})]})]}),o(qe,{children:[t(E,{variant:"outline",onClick:s,children:De()}),t(E,{onClick:k,disabled:!_,children:na()})]})]})})}function s8e({teamId:e,task:r,canEdit:a=!0}){let i=Q(),[s,l]=u(r.title),[c,d]=u(r.description||""),[m,g]=u(!1),[x,v]=u(null),b=y(null);h(()=>{l(r.title),d(r.description||"")},[r.id,r.title,r.description]);let{data:_=[]}=Z({queryKey:["teams",e,"members","human"],queryFn:async()=>{let re=await A.api.teams[":teamId"].members.$get({param:{teamId:e},query:{includeAgents:"false"}});if(!re.ok)return[];let oe=await re.json();return Array.isArray(oe)?oe:[]},enabled:!!e}),{data:z=[]}=Z({queryKey:["teams",e,"agents"],queryFn:async()=>{let re=await A.api.teams[":teamId"].agents.$get({param:{teamId:e}});if(!re.ok)return[];return await re.json()||[]},enabled:!!e}),{data:k}=Z({queryKey:["teams",e,"kanban","goals"],queryFn:async()=>{let re=await A.api.teams[":teamId"].kanban.goals.$get({param:{teamId:e},query:{}});if(!re.ok)return{data:[]};return await re.json()},enabled:!!e}),U=k?.data||[],{mutate:P,isPending:T}=B({mutationFn:async(re)=>{let oe=await A.api.teams[":teamId"].kanban.tasks[":taskId"].$patch({param:{teamId:e,taskId:r.id},json:re});if(!oe.ok){let ie=await oe.json().catch(()=>({message:Tn()}));throw Error(ie.message||Tn())}return await oe.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","task",r.id]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]})},onError:(re)=>{M.error(re.message)}}),{mutate:G}=B({mutationFn:async(re)=>{let oe=await A.api.teams[":teamId"].kanban.tasks[":taskId"].assets.$post({param:{teamId:e,taskId:r.id},json:{assetIds:re.map((ie)=>ie.id)}});if(!oe.ok)throw Error("Failed to link assets");return await oe.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","task",r.id]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]}),M.success(Yse())},onError:(re)=>{M.error(re.message)}}),{mutate:X}=B({mutationFn:async(re)=>{let oe=await A.api.teams[":teamId"].kanban.tasks[":taskId"].assets[":assetId"].$delete({param:{teamId:e,taskId:r.id,assetId:re}});if(!oe.ok)throw Error("Failed to unlink asset");return await oe.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","task",r.id]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]}),M.success(qse())},onError:(re)=>{M.error(re.message)}}),J=(re,oe)=>{if(re==="title")l(oe);if(re==="description")d(oe);if(b.current)clearTimeout(b.current);b.current=setTimeout(()=>{if(re==="title"&&oe.trim()&&oe.trim()!==r.title)P({title:oe.trim()});else if(re==="description"&&oe!==(r.description||""))P({description:oe.trim()||null})},600)},ee=r.isAgentTask;return o(ce,{className:"h-full p-5",children:[o("div",{className:"space-y-6 w-full pr-3",children:[o("div",{className:"space-y-1.5",children:[o("div",{className:"flex items-center justify-between",children:[t(W,{htmlFor:"task-title",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:hA()}),T&&o("span",{className:"flex items-center gap-1 text-[11px] text-muted-foreground animate-pulse",children:[t(O,{className:"w-3 h-3 animate-spin"}),Wg()]})]}),t(q,{id:"task-title",value:s,onChange:(re)=>J("title",re.target.value),disabled:!a,className:"text-base font-semibold h-10 bg-background",placeholder:gA()})]}),o("div",{className:"space-y-1.5",children:[t(W,{htmlFor:"task-description",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:fA()}),t(wi,{id:"task-description",value:c,onChange:(re)=>J("description",re.target.value),disabled:!a,rows:5,className:"text-xs leading-relaxed bg-background",placeholder:pA()})]}),o("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 p-4 rounded-lg bg-muted/20 border border-border/60",children:[o("div",{className:"sm:col-span-2 flex items-center justify-between space-x-2 rounded-md border border-border/60 bg-background/50 px-3 py-2 h-14",children:[o("div",{className:"space-y-0.5 min-w-0 pr-2",children:[o(W,{className:"text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[t(Ct,{className:"w-3.5 h-3.5 text-orange-500"}),t("span",{children:zd()})]}),t("p",{className:"text-[11px] text-muted-foreground/80 line-clamp-1",children:AA()})]}),t(Me,{checked:r.isAgentTask,disabled:!0})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:mA()}),o(Le,{value:r.priority,onValueChange:(re)=>P({priority:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{})}),t(Ue,{children:Object.values(Ur).map((re)=>t(ne,{value:re,children:t("span",{className:C("px-1.5 py-0.5 rounded text-[10px] uppercase font-medium",la(re)),children:aa(re)})},re))})]})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:vd()}),o(Le,{value:r.goal?.id||"none",onValueChange:(re)=>P({goalId:re==="none"?null:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{placeholder:t$e()})}),o(Ue,{children:[t(ne,{value:"none",children:t("span",{className:"text-muted-foreground italic",children:"None"})}),U.filter((re)=>re.id!==bi).map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[t(wo,{className:"w-3.5 h-3.5 text-primary"}),t("span",{children:re.title})]})},re.id))]})]})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:ee?Zd():eh()}),o(Le,{value:r.assignee?.id||"none",onValueChange:(re)=>P({assigneeId:re==="none"?null:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{placeholder:As()})}),o(Ue,{children:[t(ne,{value:"none",children:t("span",{className:"text-muted-foreground italic",children:As()})}),ee?z.map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[t(Ct,{className:"w-3.5 h-3.5 text-purple-500"}),t("span",{children:re.name})]})},re.id)):_.map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[o(Ce,{size:"sm",className:"w-4 h-4",children:[t(Ie,{src:re.image}),t(Te,{className:"text-[8px]",children:re.name.slice(0,2).toUpperCase()})]}),t("span",{children:re.name})]})},re.id))]})]})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:qg()}),o(Le,{value:r.reporter?.id||"none",onValueChange:(re)=>P({reporterId:re==="none"?null:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{placeholder:As()})}),o(Ue,{children:[t(ne,{value:"none",children:t("span",{className:"text-muted-foreground italic",children:As()})}),_.map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[o(Ce,{size:"sm",className:"w-4 h-4",children:[t(Ie,{src:re.image}),t(Te,{className:"text-[8px]",children:re.name.slice(0,2).toUpperCase()})]}),t("span",{children:re.name})]})},re.id))]})]})]}),ee&&o("div",{className:"sm:col-span-2 space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:Up()}),t("div",{className:"flex items-center gap-2",children:o(E,{type:"button",variant:"outline",size:"sm",onClick:()=>g(!0),disabled:!a,className:"w-full justify-start h-8 text-xs bg-background truncate font-normal",children:[t(rr,{className:"w-3.5 h-3.5 mr-2 text-primary shrink-0"}),t("span",{className:"truncate",children:x||(r.targetFolderId?"Selected Folder":Pp())})]})})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:Bd()}),t(xi,{value:r.startDate?new Date(r.startDate):void 0,onChange:(re)=>P({startDate:re?re.toISOString():null}),disabled:!a,placeholder:Bd(),className:"h-8 text-xs bg-background"})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:hd()}),t(xi,{value:r.dueDate?new Date(r.dueDate):void 0,onChange:(re)=>P({dueDate:re?re.toISOString():null}),disabled:!a,placeholder:hd(),className:"h-8 text-xs bg-background"})]}),o("div",{className:"sm:col-span-2 space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:vg()}),t(Kd,{teamId:e,currentTaskId:r.id,excludeTaskIds:r.dependents.map((re)=>re.id),value:r.dependencies.map((re)=>re.id),knownTasks:[...r.dependencies,...r.dependents],onChange:(re)=>P({parentIds:re}),canEdit:a})]}),t("div",{className:"sm:col-span-2 pt-1",children:t(Wd,{teamId:e,projectId:r.projectId,assets:r.assets||[],onAddAssets:(re)=>G(re),onRemoveAsset:(re)=>X(re),disabled:!a})})]})]}),m&&t(Yd,{teamId:e,currentProjectId:r.projectId,currentTargetFolderId:r.targetFolderId,isOpen:m,onClose:()=>g(!1),onSelect:(re,oe,ie)=>{v(ie||"Selected Folder"),P({projectId:re,targetFolderId:oe})}})]})}S();S();function ks(){}function Y3(){}function l8e(e,r){let a=r||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var nLt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iLt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fLt={};function q3(e,r){return((r||fLt).jsx?iLt:nLt).test(e)}var sLt=/[ \t\n\f\r]/g;function BW(e){return typeof e==="object"?e.type==="text"?c8e(e.value):!1:c8e(e)}function c8e(e){return e.replace(sLt,"")===""}class Y8{constructor(e,r,a){if(this.normal=r,this.property=e,a)this.space=a}}Y8.prototype.normal={};Y8.prototype.property={};Y8.prototype.space=void 0;function UW(e,r){let a={},i={};for(let s of e)Object.assign(a,s.property),Object.assign(i,s.normal);return new Y8(a,i,r)}function dO(e){return e.toLowerCase()}class cf{constructor(e,r){this.attribute=r,this.property=e}}cf.prototype.attribute="";cf.prototype.booleanish=!1;cf.prototype.boolean=!1;cf.prototype.commaOrSpaceSeparated=!1;cf.prototype.commaSeparated=!1;cf.prototype.defined=!1;cf.prototype.mustUseProperty=!1;cf.prototype.number=!1;cf.prototype.overloadedBoolean=!1;cf.prototype.property="";cf.prototype.spaceSeparated=!1;cf.prototype.space=void 0;var ZO={};ke(ZO,{boolean:()=>Xr,booleanish:()=>Dn,commaOrSpaceSeparated:()=>il,commaSeparated:()=>pM,number:()=>Qt,overloadedBoolean:()=>H3,spaceSeparated:()=>ca});var lLt=0,Xr=LL(),Dn=LL(),H3=LL(),Qt=LL(),ca=LL(),pM=LL(),il=LL();function LL(){return 2**++lLt}var YW=Object.keys(ZO);class TR extends cf{constructor(e,r,a,i){let s=-1;super(e,r);if(u8e(this,"space",i),typeof a==="number")while(++s<YW.length){let l=YW[s];u8e(this,YW[s],(a&ZO[l])===ZO[l])}}}TR.prototype.defined=!0;function u8e(e,r,a){if(a)e[r]=a}function Tc(e){let r={},a={};for(let[i,s]of Object.entries(e.properties)){let l=new TR(i,e.transform(e.attributes||{},i),s,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i))l.mustUseProperty=!0;r[i]=l,a[dO(i)]=i,a[dO(l.attribute)]=i}return new Y8(r,a,e.space)}var qW=Tc({properties:{ariaActiveDescendant:null,ariaAtomic:Dn,ariaAutoComplete:null,ariaBusy:Dn,ariaChecked:Dn,ariaColCount:Qt,ariaColIndex:Qt,ariaColSpan:Qt,ariaControls:ca,ariaCurrent:null,ariaDescribedBy:ca,ariaDetails:null,ariaDisabled:Dn,ariaDropEffect:ca,ariaErrorMessage:null,ariaExpanded:Dn,ariaFlowTo:ca,ariaGrabbed:Dn,ariaHasPopup:null,ariaHidden:Dn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ca,ariaLevel:Qt,ariaLive:null,ariaModal:Dn,ariaMultiLine:Dn,ariaMultiSelectable:Dn,ariaOrientation:null,ariaOwns:ca,ariaPlaceholder:null,ariaPosInSet:Qt,ariaPressed:Dn,ariaReadOnly:Dn,ariaRelevant:null,ariaRequired:Dn,ariaRoleDescription:ca,ariaRowCount:Qt,ariaRowIndex:Qt,ariaRowSpan:Qt,ariaSelected:Dn,ariaSetSize:Qt,ariaSort:null,ariaValueMax:Qt,ariaValueMin:Qt,ariaValueNow:Qt,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function V3(e,r){return r in e?e[r]:r}function W3(e,r){return V3(e,r.toLowerCase())}var d8e=Tc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pM,acceptCharset:ca,accessKey:ca,action:null,allow:null,allowFullScreen:Xr,allowPaymentRequest:Xr,allowUserMedia:Xr,alpha:Xr,alt:null,as:null,async:Xr,autoCapitalize:null,autoComplete:ca,autoFocus:Xr,autoPlay:Xr,blocking:ca,capture:null,charSet:null,checked:Xr,cite:null,className:ca,closedBy:null,colorSpace:null,cols:Qt,colSpan:Qt,command:null,commandFor:null,content:null,contentEditable:Dn,controls:Xr,controlsList:ca,coords:Qt|pM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xr,defer:Xr,dir:null,dirName:null,disabled:Xr,download:H3,draggable:Dn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xr,formTarget:null,headers:ca,height:Qt,hidden:H3,high:Qt,href:null,hrefLang:null,htmlFor:ca,httpEquiv:ca,id:null,imageSizes:null,imageSrcSet:null,inert:Xr,inputMode:null,integrity:null,is:null,isMap:Xr,itemId:null,itemProp:ca,itemRef:ca,itemScope:Xr,itemType:ca,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xr,low:Qt,manifest:null,max:null,maxLength:Qt,media:null,method:null,min:null,minLength:Qt,multiple:Xr,muted:Xr,name:null,nonce:null,noModule:Xr,noValidate:Xr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xr,optimum:Qt,pattern:null,ping:ca,placeholder:null,playsInline:Xr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xr,referrerPolicy:null,rel:ca,required:Xr,reversed:Xr,rows:Qt,rowSpan:Qt,sandbox:ca,scope:null,scoped:Xr,seamless:Xr,selected:Xr,shadowRootClonable:Xr,shadowRootCustomElementRegistry:Xr,shadowRootDelegatesFocus:Xr,shadowRootMode:null,shadowRootSerializable:Xr,shape:null,size:Qt,sizes:null,slot:null,span:Qt,spellCheck:Dn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Qt,step:null,style:null,tabIndex:Qt,target:null,title:null,translate:null,type:null,typeMustMatch:Xr,useMap:null,value:Dn,width:Qt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ca,axis:null,background:null,bgColor:null,border:Qt,borderColor:null,bottomMargin:Qt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xr,declare:Xr,event:null,face:null,frame:null,frameBorder:null,hSpace:Qt,leftMargin:Qt,link:null,longDesc:null,lowSrc:null,marginHeight:Qt,marginWidth:Qt,noResize:Xr,noHref:Xr,noShade:Xr,noWrap:Xr,object:null,profile:null,prompt:null,rev:null,rightMargin:Qt,rules:null,scheme:null,scrolling:Dn,standby:null,summary:null,text:null,topMargin:Qt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Qt,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Xr,disablePictureInPicture:Xr,disableRemotePlayback:Xr,exportParts:pM,part:ca,prefix:null,property:null,results:Qt,security:null,unselectable:null},space:"html",transform:W3});var Z8e=Tc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:il,accentHeight:Qt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Qt,amplitude:Qt,arabicForm:null,ascent:Qt,attributeName:null,attributeType:null,azimuth:Qt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Qt,by:null,calcMode:null,capHeight:Qt,className:ca,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Qt,diffuseConstant:Qt,direction:null,display:null,dur:null,divisor:Qt,dominantBaseline:null,download:Xr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Qt,enableBackground:null,end:null,event:null,exponent:Qt,externalResourcesRequired:null,fill:null,fillOpacity:Qt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pM,g2:pM,glyphName:pM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Qt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Qt,horizOriginX:Qt,horizOriginY:Qt,id:null,ideographic:Qt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Qt,k:Qt,k1:Qt,k2:Qt,k3:Qt,k4:Qt,kernelMatrix:il,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Qt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Qt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Qt,overlineThickness:Qt,paintOrder:null,panose1:null,path:null,pathLength:Qt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ca,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Qt,pointsAtY:Qt,pointsAtZ:Qt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:il,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:il,rev:il,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:il,requiredFeatures:il,requiredFonts:il,requiredFormats:il,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Qt,specularExponent:Qt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Qt,strikethroughThickness:Qt,string:null,stroke:null,strokeDashArray:il,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Qt,strokeOpacity:Qt,strokeWidth:null,style:null,surfaceScale:Qt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:il,tabIndex:Qt,tableValues:null,target:null,targetX:Qt,targetY:Qt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:il,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Qt,underlineThickness:Qt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Qt,values:null,vAlphabetic:Qt,vMathematical:Qt,vectorEffect:null,vHanging:Qt,vIdeographic:Qt,version:null,vertAdvY:Qt,vertOriginX:Qt,vertOriginY:Qt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Qt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:V3});var HW=Tc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}});var VW=Tc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:W3});var WW=Tc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}});var KW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var cLt=/[A-Z]/g,p8e=/-[a-z]/g,uLt=/^data[-\w.:]+$/i;function GW(e,r){let a=dO(r),i=r,s=cf;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&uLt.test(r)){if(r.charAt(4)==="-"){let l=r.slice(5).replace(p8e,ZLt);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{let l=r.slice(4);if(!p8e.test(l)){let c=l.replace(cLt,dLt);if(c.charAt(0)!=="-")c="-"+c;r="data"+c}}s=TR}return new s(i,r)}function dLt(e){return"-"+e.toLowerCase()}function ZLt(e){return e.charAt(1).toUpperCase()}var m8e=UW([qW,d8e,HW,VW,WW],"html"),K3=UW([qW,Z8e,HW,VW,WW],"svg");function h8e(e){return e.join(" ").trim()}var T8e=H(C8e(),1);var G3=I8e("end"),AR=I8e("start");function I8e(e){return r;function r(a){let i=a&&a.position&&a.position[e]||{};if(typeof i.line==="number"&&i.line>0&&typeof i.column==="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset==="number"&&i.offset>-1?i.offset:void 0}}}function JW(e){let r=AR(e),a=G3(e);if(r&&a)return{start:r,end:a}}function q8(e){if(!e||typeof e!=="object")return"";if("position"in e||"type"in e)return R8e(e.position);if("start"in e||"end"in e)return R8e(e);if("line"in e||"column"in e)return $W(e);return""}function $W(e){return P8e(e&&e.line)+":"+P8e(e&&e.column)}function R8e(e){return $W(e&&e.start)+"-"+$W(e&&e.end)}function P8e(e){return e&&typeof e==="number"?e:1}class Mi extends Error{constructor(e,r,a){super();if(typeof r==="string")a=r,r=void 0;let i="",s={},l=!1;if(r)if("line"in r&&"column"in r)s={place:r};else if("start"in r&&"end"in r)s={place:r};else if("type"in r)s={ancestors:[r],place:r.position};else s={...r};if(typeof e==="string")i=e;else if(!s.cause&&e)l=!0,i=e.message,s.cause=e;if(!s.ruleId&&!s.source&&typeof a==="string"){let d=a.indexOf(":");if(d===-1)s.ruleId=a;else s.source=a.slice(0,d),s.ruleId=a.slice(d+1)}if(!s.place&&s.ancestors&&s.ancestors){let d=s.ancestors[s.ancestors.length-1];if(d)s.place=d.position}let c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=c?c.line:void 0,this.name=q8(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=l&&s.cause&&typeof s.cause.stack==="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mi.prototype.file="";Mi.prototype.name="";Mi.prototype.reason="";Mi.prototype.message="";Mi.prototype.stack="";Mi.prototype.column=void 0;Mi.prototype.line=void 0;Mi.prototype.ancestors=void 0;Mi.prototype.cause=void 0;Mi.prototype.fatal=void 0;Mi.prototype.place=void 0;Mi.prototype.ruleId=void 0;Mi.prototype.source=void 0;var eK={}.hasOwnProperty,FLt=new Map,jLt=/[A-Z]/g,BLt=new Set(["table","tbody","thead","tfoot","tr"]),ULt=new Set(["td","th"]),A8e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tK(e,r){if(!r||r.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let a=r.filePath||void 0,i;if(r.development){if(typeof r.jsxDEV!=="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");i=XLt(a,r.jsxDEV)}else{if(typeof r.jsx!=="function")throw TypeError("Expected `jsx` in production options");if(typeof r.jsxs!=="function")throw TypeError("Expected `jsxs` in production options");i=GLt(a,r.jsx,r.jsxs)}let s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:i,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?K3:m8e,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},l=E8e(s,e,void 0);if(l&&typeof l!=="string")return l;return s.create(e,s.Fragment,{children:l||void 0},void 0)}function E8e(e,r,a){if(r.type==="element")return YLt(e,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return qLt(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return VLt(e,r,a);if(r.type==="mdxjsEsm")return HLt(e,r);if(r.type==="root")return WLt(e,r,a);if(r.type==="text")return KLt(e,r)}function YLt(e,r,a){let i=e.schema,s=i;if(r.tagName.toLowerCase()==="svg"&&i.space==="html")s=K3,e.schema=s;e.ancestors.push(r);let l=O8e(e,r.tagName,!1),c=QLt(e,r),d=oK(e,r);if(BLt.has(r.tagName))d=d.filter(function(m){return typeof m==="string"?!BW(m):!0});return D8e(e,c,l,r),rK(c,d),e.ancestors.pop(),e.schema=i,e.create(r,l,c,a)}function qLt(e,r){if(r.data&&r.data.estree&&e.evaluater){let i=r.data.estree.body[0];return ks(i.type==="ExpressionStatement"),e.evaluater.evaluateExpression(i.expression)}mO(e,r.position)}function HLt(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);mO(e,r.position)}function VLt(e,r,a){let i=e.schema,s=i;if(r.name==="svg"&&i.space==="html")s=K3,e.schema=s;e.ancestors.push(r);let l=r.name===null?e.Fragment:O8e(e,r.name,!0),c=JLt(e,r),d=oK(e,r);return D8e(e,c,l,r),rK(c,d),e.ancestors.pop(),e.schema=i,e.create(r,l,c,a)}function WLt(e,r,a){let i={};return rK(i,oK(e,r)),e.create(r,e.Fragment,i,a)}function KLt(e,r){return r.value}function D8e(e,r,a,i){if(typeof a!=="string"&&a!==e.Fragment&&e.passNode)r.node=i}function rK(e,r){if(r.length>0){let a=r.length>1?r:r[0];if(a)e.children=a}}function GLt(e,r,a){return i;function i(s,l,c,d){let g=Array.isArray(c.children)?a:r;return d?g(l,c,d):g(l,c)}}function XLt(e,r){return a;function a(i,s,l,c){let d=Array.isArray(l.children),m=AR(i);return r(s,l,c,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function QLt(e,r){let a={},i,s;for(s in r.properties)if(s!=="children"&&eK.call(r.properties,s)){let l=$Lt(e,s,r.properties[s]);if(l){let[c,d]=l;if(e.tableCellAlignToStyle&&c==="align"&&typeof d==="string"&&ULt.has(r.tagName))i=d;else a[c]=d}}if(i){let l=a.style||(a.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function JLt(e,r){let a={};for(let i of r.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){let l=i.data.estree.body[0];ks(l.type==="ExpressionStatement");let c=l.expression;ks(c.type==="ObjectExpression");let d=c.properties[0];ks(d.type==="SpreadElement"),Object.assign(a,e.evaluater.evaluateExpression(d.argument))}else mO(e,r.position);else{let s=i.name,l;if(i.value&&typeof i.value==="object")if(i.value.data&&i.value.data.estree&&e.evaluater){let d=i.value.data.estree.body[0];ks(d.type==="ExpressionStatement"),l=e.evaluater.evaluateExpression(d.expression)}else mO(e,r.position);else l=i.value===null?!0:i.value;a[s]=l}return a}function oK(e,r){let a=[],i=-1,s=e.passKeys?new Map:FLt;while(++i<r.children.length){let l=r.children[i],c;if(e.passKeys){let m=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(m){let g=s.get(m)||0;c=m+"-"+g,s.set(m,g+1)}}let d=E8e(e,l,c);if(d!==void 0)a.push(d)}return a}function $Lt(e,r,a){let i=GW(e.schema,r);if(a===null||a===void 0||typeof a==="number"&&Number.isNaN(a))return;if(Array.isArray(a))a=i.commaSeparated?l8e(a):h8e(a);if(i.property==="style"){let s=typeof a==="object"?a:ekt(e,String(a));if(e.stylePropertyNameCase==="css")s=tkt(s);return["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?KW[i.property]||i.property:i.attribute,a]}function ekt(e,r){try{return T8e.default(r,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let i=a,s=new Mi("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=A8e+"#cannot-parse-style-attribute",s}}function O8e(e,r,a){let i;if(!a)i={type:"Literal",value:r};else if(r.includes(".")){let s=r.split("."),l=-1,c;while(++l<s.length){let d=q3(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:d,computed:Boolean(l&&d.type==="Literal"),optional:!1}:d}ks(c,"always a result"),i=c}else i=q3(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(i.type==="Literal"){let s=i.value;return eK.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);mO(e)}function mO(e,r){let a=new Mi("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=A8e+"#cannot-handle-mdx-estrees-without-createevaluater",a}function tkt(e){let r={},a;for(a in e)if(eK.call(e,a))r[rkt(a)]=e[a];return r}function rkt(e){let r=e.replace(jLt,okt);if(r.slice(0,3)==="ms-")r="-"+r;return r}function okt(e){return"-"+e.toLowerCase()}var hO={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};S();var akt={};function aK(e,r){let a=r||akt,i=typeof a.includeImageAlt==="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml==="boolean"?a.includeHtml:!0;return F8e(e,i,s)}function F8e(e,r,a){if(nkt(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return N8e(e.children,r,a)}if(Array.isArray(e))return N8e(e,r,a);return""}function N8e(e,r,a){let i=[],s=-1;while(++s<e.length)i[s]=F8e(e[s],r,a);return i.join("")}function nkt(e){return Boolean(e&&typeof e==="object")}var j8e=document.createElement("i");function ER(e){let r="&"+e+";";j8e.innerHTML=r;let a=j8e.textContent;if(a.charCodeAt(a.length-1)===59&&e!=="semi")return!1;return a===r?!1:a}function uf(e,r,a,i){let s=e.length,l=0,c;if(r<0)r=-r>s?0:s+r;else r=r>s?s:r;if(a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(r,a),e.splice(...c);else{if(a)e.splice(r,a);while(l<i.length)c=i.slice(l,l+1e4),c.unshift(r,0),e.splice(...c),l+=1e4,r+=1e4}}function Cs(e,r){if(e.length>0)return uf(e,e.length,0,r),e;return r}var B8e={}.hasOwnProperty;function U8e(e){let r={},a=-1;while(++a<e.length)ikt(r,e[a]);return r}function ikt(e,r){let a;for(a in r){let s=(B8e.call(e,a)?e[a]:void 0)||(e[a]={}),l=r[a],c;if(l)for(c in l){if(!B8e.call(s,c))s[c]=[];let d=l[c];fkt(s[c],Array.isArray(d)?d:d?[d]:[])}}}function fkt(e,r){let a=-1,i=[];while(++a<r.length)(r[a].add==="after"?e:i).push(r[a]);uf(e,0,0,i)}function X3(e,r){let a=Number.parseInt(e,r);if(a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111)return"�";return String.fromCodePoint(a)}function mM(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ec=H8(/[A-Za-z]/),Bi=H8(/[\dA-Za-z]/),Y8e=H8(/[#-'*+\--9=?A-Z^-~]/);function gO(e){return e!==null&&(e<32||e===127)}var MO=H8(/\d/),q8e=H8(/[\dA-Fa-f]/),H8e=H8(/[!-/:-@[-`{-~]/);function kr(e){return e!==null&&e<-2}function ti(e){return e!==null&&(e<0||e===32)}function Jr(e){return e===-2||e===-1||e===32}var V8e=H8(/\p{P}|\p{S}/u),W8e=H8(/\s/);function H8(e){return r;function r(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Ac(e){let r=[],a=-1,i=0,s=0;while(++a<e.length){let l=e.charCodeAt(a),c="";if(l===37&&Bi(e.charCodeAt(a+1))&&Bi(e.charCodeAt(a+2)))s=2;else if(l<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l)))c=String.fromCharCode(l)}else if(l>55295&&l<57344){let d=e.charCodeAt(a+1);if(l<56320&&d>56319&&d<57344)c=String.fromCharCode(l,d),s=1;else c="�"}else c=String.fromCharCode(l);if(c)r.push(e.slice(i,a),encodeURIComponent(c)),i=a+s+1,c="";if(s)a+=s,s=0}return r.join("")+e.slice(i)}function ao(e,r,a,i){let s=i?i-1:Number.POSITIVE_INFINITY,l=0;return c;function c(m){if(Jr(m))return e.enter(a),d(m);return r(m)}function d(m){if(Jr(m)&&l++<s)return e.consume(m),d;return e.exit(a),r(m)}}var K8e={tokenize:skt};function skt(e){let r=e.attempt(this.parser.constructs.contentInitial,i,s),a;return r;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ao(e,r,"linePrefix")}function s(d){return e.enter("paragraph"),l(d)}function l(d){let m=e.enter("chunkText",{contentType:"text",previous:a});if(a)a.next=m;return a=m,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}if(kr(d))return e.consume(d),e.exit("chunkText"),l;return e.consume(d),c}}var X8e={tokenize:lkt},G8e={tokenize:ckt};function lkt(e){let r=this,a=[],i=0,s,l,c;return d;function d(G){if(i<a.length){let X=a[i];return r.containerState=X[1],e.attempt(X[0].continuation,m,g)(G)}return g(G)}function m(G){if(i++,r.containerState._closeFlow){if(r.containerState._closeFlow=void 0,s)T();let X=r.events.length,J=X,ee;while(J--)if(r.events[J][0]==="exit"&&r.events[J][1].type==="chunkFlow"){ee=r.events[J][1].end;break}P(i);let re=X;while(re<r.events.length)r.events[re][1].end={...ee},re++;return uf(r.events,J+1,0,r.events.slice(X)),r.events.length=re,g(G)}return d(G)}function g(G){if(i===a.length){if(!s)return b(G);if(s.currentConstruct&&s.currentConstruct.concrete)return z(G);r.interrupt=Boolean(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(G8e,x,v)(G)}function x(G){if(s)T();return P(i),b(G)}function v(G){return r.parser.lazy[r.now().line]=i!==a.length,c=r.now().offset,z(G)}function b(G){return r.containerState={},e.attempt(G8e,_,z)(G)}function _(G){return i++,a.push([r.currentConstruct,r.containerState]),b(G)}function z(G){if(G===null){if(s)T();P(0),e.consume(G);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),k(G)}function k(G){if(G===null){U(e.exit("chunkFlow"),!0),P(0),e.consume(G);return}if(kr(G))return e.consume(G),U(e.exit("chunkFlow")),i=0,r.interrupt=void 0,d;return e.consume(G),k}function U(G,X){let J=r.sliceStream(G);if(X)J.push(null);if(G.previous=l,l)l.next=G;if(l=G,s.defineSkip(G.start),s.write(J),r.parser.lazy[G.start.line]){let ee=s.events.length;while(ee--)if(s.events[ee][1].start.offset<c&&(!s.events[ee][1].end||s.events[ee][1].end.offset>c))return;let re=r.events.length,oe=re,ie,ye;while(oe--)if(r.events[oe][0]==="exit"&&r.events[oe][1].type==="chunkFlow"){if(ie){ye=r.events[oe][1].end;break}ie=!0}P(i),ee=re;while(ee<r.events.length)r.events[ee][1].end={...ye},ee++;uf(r.events,oe+1,0,r.events.slice(re)),r.events.length=ee}}function P(G){let X=a.length;while(X-- >G){let J=a[X];r.containerState=J[1],J[0].exit.call(r,e)}a.length=G}function T(){s.write([null]),l=void 0,s=void 0,r.containerState._closeFlow=void 0}}function ckt(e,r,a){return ao(e,e.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nK(e){if(e===null||ti(e)||W8e(e))return 1;if(V8e(e))return 2}function DR(e,r,a){let i=[],s=-1;while(++s<e.length){let l=e[s].resolveAll;if(l&&!i.includes(l))r=l(r,a),i.push(l)}return r}var xO={name:"attention",resolveAll:ukt,tokenize:dkt};function ukt(e,r){let a=-1,i,s,l,c,d,m,g,x;while(++a<e.length)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){i=a;while(i--)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&r.sliceSerialize(e[i][1]).charCodeAt(0)===r.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;m=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let v={...e[i][1].end},b={...e[a][1].start};if(Q8e(v,-m),Q8e(b,m),c={type:m>1?"strongSequence":"emphasisSequence",start:v,end:{...e[i][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:b},l={type:m>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},s={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[a][1].start={...d.end},g=[],e[i][1].end.offset-e[i][1].start.offset)g=Cs(g,[["enter",e[i][1],r],["exit",e[i][1],r]]);if(g=Cs(g,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",l,r]]),g=Cs(g,DR(r.parser.constructs.insideSpan.null,e.slice(i+1,a),r)),g=Cs(g,[["exit",l,r],["enter",d,r],["exit",d,r],["exit",s,r]]),e[a][1].end.offset-e[a][1].start.offset)x=2,g=Cs(g,[["enter",e[a][1],r],["exit",e[a][1],r]]);else x=0;uf(e,i-1,a-i+3,g),a=i+g.length-x-2;break}}a=-1;while(++a<e.length)if(e[a][1].type==="attentionSequence")e[a][1].type="data";return e}function dkt(e,r){let a=this.parser.constructs.attentionMarkers.null,i=this.previous,s=nK(i),l;return c;function c(m){return l=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===l)return e.consume(m),d;let g=e.exit("attentionSequence"),x=nK(m),v=!x||x===2&&s||a.includes(m),b=!s||s===2&&x||a.includes(i);return g._open=Boolean(l===42?v:v&&(s||!b)),g._close=Boolean(l===42?b:b&&(x||!v)),r(m)}}function Q8e(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}var iK={name:"autolink",tokenize:Zkt};function Zkt(e,r,a){let i=0;return s;function s(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(_){if(ec(_))return e.consume(_),c;if(_===64)return a(_);return g(_)}function c(_){if(_===43||_===45||_===46||Bi(_))return i=1,d(_);return g(_)}function d(_){if(_===58)return e.consume(_),i=0,m;if((_===43||_===45||_===46||Bi(_))&&i++<32)return e.consume(_),d;return i=0,g(_)}function m(_){if(_===62)return e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),r;if(_===null||_===32||_===60||gO(_))return a(_);return e.consume(_),m}function g(_){if(_===64)return e.consume(_),x;if(Y8e(_))return e.consume(_),g;return a(_)}function x(_){return Bi(_)?v(_):a(_)}function v(_){if(_===46)return e.consume(_),i=0,x;if(_===62)return e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),r;return b(_)}function b(_){if((_===45||Bi(_))&&i++<63){let z=_===45?b:v;return e.consume(_),z}return a(_)}}var V8={partial:!0,tokenize:pkt};function pkt(e,r,a){return i;function i(l){return Jr(l)?ao(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||kr(l)?r(l):a(l)}}var Q3={continuation:{tokenize:hkt},exit:gkt,name:"blockQuote",tokenize:mkt};function mkt(e,r,a){let i=this;return s;function s(c){if(c===62){let d=i.containerState;if(!d.open)e.enter("blockQuote",{_container:!0}),d.open=!0;return e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return a(c)}function l(c){if(Jr(c))return e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r;return e.exit("blockQuotePrefix"),r(c)}}function hkt(e,r,a){let i=this;return s;function s(c){if(Jr(c))return ao(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c);return l(c)}function l(c){return e.attempt(Q3,r,a)(c)}}function gkt(e){e.exit("blockQuote")}var J3={name:"characterEscape",tokenize:Mkt};function Mkt(e,r,a){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){if(H8e(l))return e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),r;return a(l)}}var $3={name:"characterReference",tokenize:xkt};function xkt(e,r,a){let i=this,s=0,l,c;return d;function d(v){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),m}function m(v){if(v===35)return e.enter("characterReferenceMarkerNumeric"),e.consume(v),e.exit("characterReferenceMarkerNumeric"),g;return e.enter("characterReferenceValue"),l=31,c=Bi,x(v)}function g(v){if(v===88||v===120)return e.enter("characterReferenceMarkerHexadecimal"),e.consume(v),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=q8e,x;return e.enter("characterReferenceValue"),l=7,c=MO,x(v)}function x(v){if(v===59&&s){let b=e.exit("characterReferenceValue");if(c===Bi&&!ER(i.sliceSerialize(b)))return a(v);return e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),e.exit("characterReference"),r}if(c(v)&&s++<l)return e.consume(v),x;return a(v)}}var J8e={partial:!0,tokenize:ykt},ej={concrete:!0,name:"codeFenced",tokenize:vkt};function vkt(e,r,a){let i=this,s={partial:!0,tokenize:J},l=0,c=0,d;return m;function m(ee){return g(ee)}function g(ee){let re=i.events[i.events.length-1];return l=re&&re[1].type==="linePrefix"?re[2].sliceSerialize(re[1],!0).length:0,d=ee,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),x(ee)}function x(ee){if(ee===d)return c++,e.consume(ee),x;if(c<3)return a(ee);return e.exit("codeFencedFenceSequence"),Jr(ee)?ao(e,v,"whitespace")(ee):v(ee)}function v(ee){if(ee===null||kr(ee))return e.exit("codeFencedFence"),i.interrupt?r(ee):e.check(J8e,k,X)(ee);return e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(ee)}function b(ee){if(ee===null||kr(ee))return e.exit("chunkString"),e.exit("codeFencedFenceInfo"),v(ee);if(Jr(ee))return e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ao(e,_,"whitespace")(ee);if(ee===96&&ee===d)return a(ee);return e.consume(ee),b}function _(ee){if(ee===null||kr(ee))return v(ee);return e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),z(ee)}function z(ee){if(ee===null||kr(ee))return e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(ee);if(ee===96&&ee===d)return a(ee);return e.consume(ee),z}function k(ee){return e.attempt(s,X,U)(ee)}function U(ee){return e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),P}function P(ee){return l>0&&Jr(ee)?ao(e,T,"linePrefix",l+1)(ee):T(ee)}function T(ee){if(ee===null||kr(ee))return e.check(J8e,k,X)(ee);return e.enter("codeFlowValue"),G(ee)}function G(ee){if(ee===null||kr(ee))return e.exit("codeFlowValue"),T(ee);return e.consume(ee),G}function X(ee){return e.exit("codeFenced"),r(ee)}function J(ee,re,oe){let ie=0;return ye;function ye(dt){return ee.enter("lineEnding"),ee.consume(dt),ee.exit("lineEnding"),We}function We(dt){return ee.enter("codeFencedFence"),Jr(dt)?ao(ee,Ye,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(dt):Ye(dt)}function Ye(dt){if(dt===d)return ee.enter("codeFencedFenceSequence"),Se(dt);return oe(dt)}function Se(dt){if(dt===d)return ie++,ee.consume(dt),Se;if(ie>=c)return ee.exit("codeFencedFenceSequence"),Jr(dt)?ao(ee,He,"whitespace")(dt):He(dt);return oe(dt)}function He(dt){if(dt===null||kr(dt))return ee.exit("codeFencedFence"),re(dt);return oe(dt)}}}function ykt(e,r,a){let i=this;return s;function s(c){if(c===null)return a(c);return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l}function l(c){return i.parser.lazy[i.now().line]?a(c):r(c)}}var vO={name:"codeIndented",tokenize:bkt},_kt={partial:!0,tokenize:wkt};function bkt(e,r,a){let i=this;return s;function s(g){return e.enter("codeIndented"),ao(e,l,"linePrefix",5)(g)}function l(g){let x=i.events[i.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?c(g):a(g)}function c(g){if(g===null)return m(g);if(kr(g))return e.attempt(_kt,c,m)(g);return e.enter("codeFlowValue"),d(g)}function d(g){if(g===null||kr(g))return e.exit("codeFlowValue"),c(g);return e.consume(g),d}function m(g){return e.exit("codeIndented"),r(g)}}function wkt(e,r,a){let i=this;return s;function s(c){if(i.parser.lazy[i.now().line])return a(c);if(kr(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s;return ao(e,l,"linePrefix",5)(c)}function l(c){let d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):kr(c)?s(c):a(c)}}var fK={name:"codeText",previous:Skt,resolve:zkt,tokenize:Lkt};function zkt(e){let r=e.length-4,a=3,i,s;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){i=a;while(++i<r)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}}i=a-1,r++;while(++i<=r)if(s===void 0){if(i!==r&&e[i][1].type!=="lineEnding")s=i}else if(i===r||e[i][1].type==="lineEnding"){if(e[s][1].type="codeTextData",i!==s+2)e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),r-=i-s-2,i=s+2;s=void 0}return e}function Skt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lkt(e,r,a){let i=this,s=0,l,c;return d;function d(b){return e.enter("codeText"),e.enter("codeTextSequence"),m(b)}function m(b){if(b===96)return e.consume(b),s++,m;return e.exit("codeTextSequence"),g(b)}function g(b){if(b===null)return a(b);if(b===32)return e.enter("space"),e.consume(b),e.exit("space"),g;if(b===96)return c=e.enter("codeTextSequence"),l=0,v(b);if(kr(b))return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g;return e.enter("codeTextData"),x(b)}function x(b){if(b===null||b===32||b===96||kr(b))return e.exit("codeTextData"),g(b);return e.consume(b),x}function v(b){if(b===96)return e.consume(b),l++,v;if(l===s)return e.exit("codeTextSequence"),e.exit("codeText"),r(b);return c.type="codeTextData",x(b)}}class sK{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(e<this.left.length)return this.left[e];return this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){let a=r===null||r===void 0?Number.POSITIVE_INFINITY:r;if(a<this.left.length)return this.left.slice(e,a);if(e>this.left.length)return this.right.slice(this.right.length-a+this.left.length,this.right.length-e+this.left.length).reverse();return this.left.slice(e).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(e,r,a){let i=r||0;this.setCursor(Math.trunc(e));let s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);if(a)yO(this.left,a);return s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),yO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),yO(this.right,e.reverse())}setCursor(e){if(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)return;if(e<this.left.length){let r=this.left.splice(e,Number.POSITIVE_INFINITY);yO(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);yO(this.left,r.reverse())}}}function yO(e,r){let a=0;if(r.length<1e4)e.push(...r);else while(a<r.length)e.push(...r.slice(a,a+1e4)),a+=1e4}function tj(e){let r={},a=-1,i,s,l,c,d,m,g,x=new sK(e);while(++a<x.length){while(a in r)a=r[a];if(i=x.get(a),a&&i[1].type==="chunkFlow"&&x.get(a-1)[1].type==="listItemPrefix"){if(m=i[1]._tokenizer.events,l=0,l<m.length&&m[l][1].type==="lineEndingBlank")l+=2;if(l<m.length&&m[l][1].type==="content")while(++l<m.length){if(m[l][1].type==="content")break;if(m[l][1].type==="chunkText")m[l][1]._isInFirstContentOfListItem=!0,l++}}if(i[0]==="enter"){if(i[1].contentType)Object.assign(r,kkt(x,a)),a=r[a],g=!0}else if(i[1]._container){l=a,s=void 0;while(l--)if(c=x.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank"){if(c[0]==="enter"){if(s)x.get(s)[1].type="lineEndingBlank";c[1].type="lineEnding",s=l}}else if(c[1].type==="linePrefix"||c[1].type==="listItemIndent");else break;if(s)i[1].end={...x.get(s)[1].start},d=x.slice(s,a),d.unshift(i),x.splice(s,a-s+1,d)}}return uf(e,0,Number.POSITIVE_INFINITY,x.slice(0)),!g}function kkt(e,r){let a=e.get(r)[1],i=e.get(r)[2],s=r-1,l=[],c=a._tokenizer;if(!c){if(c=i.parser[a.contentType](a.start),a._contentTypeTextTrailing)c._contentTypeTextTrailing=!0}let d=c.events,m=[],g={},x,v,b=-1,_=a,z=0,k=0,U=[k];while(_){while(e.get(++s)[1]!==_);if(l.push(s),!_._tokenizer){if(x=i.sliceStream(_),!_.next)x.push(null);if(v)c.defineSkip(_.start);if(_._isInFirstContentOfListItem)c._gfmTasklistFirstContentOfListItem=!0;if(c.write(x),_._isInFirstContentOfListItem)c._gfmTasklistFirstContentOfListItem=void 0}v=_,_=_.next}_=a;while(++b<d.length)if(d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line)k=b+1,U.push(k),_._tokenizer=void 0,_.previous=void 0,_=_.next;if(c.events=[],_)_._tokenizer=void 0,_.previous=void 0;else U.pop();b=U.length;while(b--){let P=d.slice(U[b],U[b+1]),T=l.pop();m.push([T,T+P.length-1]),e.splice(T,2,P)}m.reverse(),b=-1;while(++b<m.length)g[z+m[b][0]]=z+m[b][1],z+=m[b][1]-m[b][0]-1;return g}var lK={resolve:Ikt,tokenize:Rkt},Ckt={partial:!0,tokenize:Pkt};function Ikt(e){return tj(e),e}function Rkt(e,r){let a;return i;function i(d){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){if(d===null)return l(d);if(kr(d))return e.check(Ckt,c,l)(d);return e.consume(d),s}function l(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function c(d){return e.consume(d),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,s}}function Pkt(e,r,a){let i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ao(e,l,"linePrefix")}function l(c){if(c===null||kr(c))return a(c);let d=i.events[i.events.length-1];if(!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4)return r(c);return e.interrupt(i.parser.constructs.flow,a,r)(c)}}function rj(e,r,a,i,s,l,c,d,m){let g=m||Number.POSITIVE_INFINITY,x=0;return v;function v(P){if(P===60)return e.enter(i),e.enter(s),e.enter(l),e.consume(P),e.exit(l),b;if(P===null||P===32||P===41||gO(P))return a(P);return e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),k(P)}function b(P){if(P===62)return e.enter(l),e.consume(P),e.exit(l),e.exit(s),e.exit(i),r;return e.enter(d),e.enter("chunkString",{contentType:"string"}),_(P)}function _(P){if(P===62)return e.exit("chunkString"),e.exit(d),b(P);if(P===null||P===60||kr(P))return a(P);return e.consume(P),P===92?z:_}function z(P){if(P===60||P===62||P===92)return e.consume(P),_;return _(P)}function k(P){if(!x&&(P===null||P===41||ti(P)))return e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),r(P);if(x<g&&P===40)return e.consume(P),x++,k;if(P===41)return e.consume(P),x--,k;if(P===null||P===32||P===40||gO(P))return a(P);return e.consume(P),P===92?U:k}function U(P){if(P===40||P===41||P===92)return e.consume(P),k;return k(P)}}function oj(e,r,a,i,s,l){let c=this,d=0,m;return g;function g(_){return e.enter(i),e.enter(s),e.consume(_),e.exit(s),e.enter(l),x}function x(_){if(d>999||_===null||_===91||_===93&&!m||_===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs)return a(_);if(_===93)return e.exit(l),e.enter(s),e.consume(_),e.exit(s),e.exit(i),r;if(kr(_))return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),x;return e.enter("chunkString",{contentType:"string"}),v(_)}function v(_){if(_===null||_===91||_===93||kr(_)||d++>999)return e.exit("chunkString"),x(_);if(e.consume(_),!m)m=!Jr(_);return _===92?b:v}function b(_){if(_===91||_===92||_===93)return e.consume(_),d++,v;return v(_)}}function aj(e,r,a,i,s,l){let c;return d;function d(b){if(b===34||b===39||b===40)return e.enter(i),e.enter(s),e.consume(b),e.exit(s),c=b===40?41:b,m;return a(b)}function m(b){if(b===c)return e.enter(s),e.consume(b),e.exit(s),e.exit(i),r;return e.enter(l),g(b)}function g(b){if(b===c)return e.exit(l),m(c);if(b===null)return a(b);if(kr(b))return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ao(e,g,"linePrefix");return e.enter("chunkString",{contentType:"string"}),x(b)}function x(b){if(b===c||b===null||kr(b))return e.exit("chunkString"),g(b);return e.consume(b),b===92?v:x}function v(b){if(b===c||b===92)return e.consume(b),x;return x(b)}}function CL(e,r){let a;return i;function i(s){if(kr(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a=!0,i;if(Jr(s))return ao(e,i,a?"linePrefix":"lineSuffix")(s);return r(s)}}var cK={name:"definition",tokenize:Akt},Tkt={partial:!0,tokenize:Ekt};function Akt(e,r,a){let i=this,s;return l;function l(_){return e.enter("definition"),c(_)}function c(_){return oj.call(i,e,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function d(_){if(s=mM(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),_===58)return e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),m;return a(_)}function m(_){return ti(_)?CL(e,g)(_):g(_)}function g(_){return rj(e,x,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function x(_){return e.attempt(Tkt,v,v)(_)}function v(_){return Jr(_)?ao(e,b,"whitespace")(_):b(_)}function b(_){if(_===null||kr(_))return e.exit("definition"),i.parser.defined.push(s),r(_);return a(_)}}function Ekt(e,r,a){return i;function i(d){return ti(d)?CL(e,s)(d):a(d)}function s(d){return aj(e,l,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function l(d){return Jr(d)?ao(e,c,"whitespace")(d):c(d)}function c(d){return d===null||kr(d)?r(d):a(d)}}var uK={name:"hardBreakEscape",tokenize:Dkt};function Dkt(e,r,a){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){if(kr(l))return e.exit("hardBreakEscape"),r(l);return a(l)}}var dK={name:"headingAtx",resolve:Okt,tokenize:Nkt};function Okt(e,r){let a=e.length-2,i=3,s,l;if(e[i][1].type==="whitespace")i+=2;if(a-2>i&&e[a][1].type==="whitespace")a-=2;if(e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace"))a-=i+1===a?2:4;if(a>i)s={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},l={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},uf(e,i,a-i+1,[["enter",s,r],["enter",l,r],["exit",l,r],["exit",s,r]]);return e}function Nkt(e,r,a){let i=0;return s;function s(x){return e.enter("atxHeading"),l(x)}function l(x){return e.enter("atxHeadingSequence"),c(x)}function c(x){if(x===35&&i++<6)return e.consume(x),c;if(x===null||ti(x))return e.exit("atxHeadingSequence"),d(x);return a(x)}function d(x){if(x===35)return e.enter("atxHeadingSequence"),m(x);if(x===null||kr(x))return e.exit("atxHeading"),r(x);if(Jr(x))return ao(e,d,"whitespace")(x);return e.enter("atxHeadingText"),g(x)}function m(x){if(x===35)return e.consume(x),m;return e.exit("atxHeadingSequence"),d(x)}function g(x){if(x===null||x===35||ti(x))return e.exit("atxHeadingText"),d(x);return e.consume(x),g}}var $8e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ZK=["pre","script","style","textarea"];var pK={concrete:!0,name:"htmlFlow",resolveTo:Bkt,tokenize:Ukt},Fkt={partial:!0,tokenize:qkt},jkt={partial:!0,tokenize:Ykt};function Bkt(e){let r=e.length;while(r--)if(e[r][0]==="enter"&&e[r][1].type==="htmlFlow")break;if(r>1&&e[r-2][1].type==="linePrefix")e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2);return e}function Ukt(e,r,a){let i=this,s,l,c,d,m;return g;function g(Fe){return x(Fe)}function x(Fe){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Fe),v}function v(Fe){if(Fe===33)return e.consume(Fe),b;if(Fe===47)return e.consume(Fe),l=!0,k;if(Fe===63)return e.consume(Fe),s=3,i.interrupt?r:de;if(ec(Fe))return e.consume(Fe),c=String.fromCharCode(Fe),U;return a(Fe)}function b(Fe){if(Fe===45)return e.consume(Fe),s=2,_;if(Fe===91)return e.consume(Fe),s=5,d=0,z;if(ec(Fe))return e.consume(Fe),s=4,i.interrupt?r:de;return a(Fe)}function _(Fe){if(Fe===45)return e.consume(Fe),i.interrupt?r:de;return a(Fe)}function z(Fe){if(Fe==="CDATA[".charCodeAt(d++)){if(e.consume(Fe),d===6)return i.interrupt?r:Ye;return z}return a(Fe)}function k(Fe){if(ec(Fe))return e.consume(Fe),c=String.fromCharCode(Fe),U;return a(Fe)}function U(Fe){if(Fe===null||Fe===47||Fe===62||ti(Fe)){let fr=Fe===47,sr=c.toLowerCase();if(!fr&&!l&&ZK.includes(sr))return s=1,i.interrupt?r(Fe):Ye(Fe);if($8e.includes(c.toLowerCase())){if(s=6,fr)return e.consume(Fe),P;return i.interrupt?r(Fe):Ye(Fe)}return s=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(Fe):l?T(Fe):G(Fe)}if(Fe===45||Bi(Fe))return e.consume(Fe),c+=String.fromCharCode(Fe),U;return a(Fe)}function P(Fe){if(Fe===62)return e.consume(Fe),i.interrupt?r:Ye;return a(Fe)}function T(Fe){if(Jr(Fe))return e.consume(Fe),T;return ye(Fe)}function G(Fe){if(Fe===47)return e.consume(Fe),ye;if(Fe===58||Fe===95||ec(Fe))return e.consume(Fe),X;if(Jr(Fe))return e.consume(Fe),G;return ye(Fe)}function X(Fe){if(Fe===45||Fe===46||Fe===58||Fe===95||Bi(Fe))return e.consume(Fe),X;return J(Fe)}function J(Fe){if(Fe===61)return e.consume(Fe),ee;if(Jr(Fe))return e.consume(Fe),J;return G(Fe)}function ee(Fe){if(Fe===null||Fe===60||Fe===61||Fe===62||Fe===96)return a(Fe);if(Fe===34||Fe===39)return e.consume(Fe),m=Fe,re;if(Jr(Fe))return e.consume(Fe),ee;return oe(Fe)}function re(Fe){if(Fe===m)return e.consume(Fe),m=null,ie;if(Fe===null||kr(Fe))return a(Fe);return e.consume(Fe),re}function oe(Fe){if(Fe===null||Fe===34||Fe===39||Fe===47||Fe===60||Fe===61||Fe===62||Fe===96||ti(Fe))return J(Fe);return e.consume(Fe),oe}function ie(Fe){if(Fe===47||Fe===62||Jr(Fe))return G(Fe);return a(Fe)}function ye(Fe){if(Fe===62)return e.consume(Fe),We;return a(Fe)}function We(Fe){if(Fe===null||kr(Fe))return Ye(Fe);if(Jr(Fe))return e.consume(Fe),We;return a(Fe)}function Ye(Fe){if(Fe===45&&s===2)return e.consume(Fe),Ge;if(Fe===60&&s===1)return e.consume(Fe),yt;if(Fe===62&&s===4)return e.consume(Fe),_t;if(Fe===63&&s===3)return e.consume(Fe),de;if(Fe===93&&s===5)return e.consume(Fe),Bt;if(kr(Fe)&&(s===6||s===7))return e.exit("htmlFlowData"),e.check(Fkt,Wt,Se)(Fe);if(Fe===null||kr(Fe))return e.exit("htmlFlowData"),Se(Fe);return e.consume(Fe),Ye}function Se(Fe){return e.check(jkt,He,Wt)(Fe)}function He(Fe){return e.enter("lineEnding"),e.consume(Fe),e.exit("lineEnding"),dt}function dt(Fe){if(Fe===null||kr(Fe))return Se(Fe);return e.enter("htmlFlowData"),Ye(Fe)}function Ge(Fe){if(Fe===45)return e.consume(Fe),de;return Ye(Fe)}function yt(Fe){if(Fe===47)return e.consume(Fe),c="",Ft;return Ye(Fe)}function Ft(Fe){if(Fe===62){let fr=c.toLowerCase();if(ZK.includes(fr))return e.consume(Fe),_t;return Ye(Fe)}if(ec(Fe)&&c.length<8)return e.consume(Fe),c+=String.fromCharCode(Fe),Ft;return Ye(Fe)}function Bt(Fe){if(Fe===93)return e.consume(Fe),de;return Ye(Fe)}function de(Fe){if(Fe===62)return e.consume(Fe),_t;if(Fe===45&&s===2)return e.consume(Fe),de;return Ye(Fe)}function _t(Fe){if(Fe===null||kr(Fe))return e.exit("htmlFlowData"),Wt(Fe);return e.consume(Fe),_t}function Wt(Fe){return e.exit("htmlFlow"),r(Fe)}}function Ykt(e,r,a){let i=this;return s;function s(c){if(kr(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l;return a(c)}function l(c){return i.parser.lazy[i.now().line]?a(c):r(c)}}function qkt(e,r,a){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(V8,r,a)}}var mK={name:"htmlText",tokenize:Hkt};function Hkt(e,r,a){let i=this,s,l,c;return d;function d(de){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(de),m}function m(de){if(de===33)return e.consume(de),g;if(de===47)return e.consume(de),J;if(de===63)return e.consume(de),G;if(ec(de))return e.consume(de),oe;return a(de)}function g(de){if(de===45)return e.consume(de),x;if(de===91)return e.consume(de),l=0,z;if(ec(de))return e.consume(de),T;return a(de)}function x(de){if(de===45)return e.consume(de),_;return a(de)}function v(de){if(de===null)return a(de);if(de===45)return e.consume(de),b;if(kr(de))return c=v,yt(de);return e.consume(de),v}function b(de){if(de===45)return e.consume(de),_;return v(de)}function _(de){return de===62?Ge(de):de===45?b(de):v(de)}function z(de){if(de==="CDATA[".charCodeAt(l++))return e.consume(de),l===6?k:z;return a(de)}function k(de){if(de===null)return a(de);if(de===93)return e.consume(de),U;if(kr(de))return c=k,yt(de);return e.consume(de),k}function U(de){if(de===93)return e.consume(de),P;return k(de)}function P(de){if(de===62)return Ge(de);if(de===93)return e.consume(de),P;return k(de)}function T(de){if(de===null||de===62)return Ge(de);if(kr(de))return c=T,yt(de);return e.consume(de),T}function G(de){if(de===null)return a(de);if(de===63)return e.consume(de),X;if(kr(de))return c=G,yt(de);return e.consume(de),G}function X(de){return de===62?Ge(de):G(de)}function J(de){if(ec(de))return e.consume(de),ee;return a(de)}function ee(de){if(de===45||Bi(de))return e.consume(de),ee;return re(de)}function re(de){if(kr(de))return c=re,yt(de);if(Jr(de))return e.consume(de),re;return Ge(de)}function oe(de){if(de===45||Bi(de))return e.consume(de),oe;if(de===47||de===62||ti(de))return ie(de);return a(de)}function ie(de){if(de===47)return e.consume(de),Ge;if(de===58||de===95||ec(de))return e.consume(de),ye;if(kr(de))return c=ie,yt(de);if(Jr(de))return e.consume(de),ie;return Ge(de)}function ye(de){if(de===45||de===46||de===58||de===95||Bi(de))return e.consume(de),ye;return We(de)}function We(de){if(de===61)return e.consume(de),Ye;if(kr(de))return c=We,yt(de);if(Jr(de))return e.consume(de),We;return ie(de)}function Ye(de){if(de===null||de===60||de===61||de===62||de===96)return a(de);if(de===34||de===39)return e.consume(de),s=de,Se;if(kr(de))return c=Ye,yt(de);if(Jr(de))return e.consume(de),Ye;return e.consume(de),He}function Se(de){if(de===s)return e.consume(de),s=void 0,dt;if(de===null)return a(de);if(kr(de))return c=Se,yt(de);return e.consume(de),Se}function He(de){if(de===null||de===34||de===39||de===60||de===61||de===96)return a(de);if(de===47||de===62||ti(de))return ie(de);return e.consume(de),He}function dt(de){if(de===47||de===62||ti(de))return ie(de);return a(de)}function Ge(de){if(de===62)return e.consume(de),e.exit("htmlTextData"),e.exit("htmlText"),r;return a(de)}function yt(de){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(de),e.exit("lineEnding"),Ft}function Ft(de){return Jr(de)?ao(e,Bt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):Bt(de)}function Bt(de){return e.enter("htmlTextData"),c(de)}}var IL={name:"labelEnd",resolveAll:Gkt,resolveTo:Xkt,tokenize:Qkt},Vkt={tokenize:Jkt},Wkt={tokenize:$kt},Kkt={tokenize:eCt};function Gkt(e){let r=-1,a=[];while(++r<e.length){let i=e[r][1];if(a.push(e[r]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let s=i.type==="labelImage"?4:2;i.type="data",r+=s}}if(e.length!==a.length)uf(e,0,e.length,a);return e}function Xkt(e,r){let a=e.length,i=0,s,l,c,d;while(a--)if(s=e[a][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;if(e[a][0]==="enter"&&s.type==="labelLink")s._inactive=!0}else if(c){if(e[a][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced){if(l=a,s.type!=="labelLink"){i=2;break}}}else if(s.type==="labelEnd")c=a;let m={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},g={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},x={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",m,r],["enter",g,r]],d=Cs(d,e.slice(l+1,l+i+3)),d=Cs(d,[["enter",x,r]]),d=Cs(d,DR(r.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),r)),d=Cs(d,[["exit",x,r],e[c-2],e[c-1],["exit",g,r]]),d=Cs(d,e.slice(c+1)),d=Cs(d,[["exit",m,r]]),uf(e,l,e.length,d),e}function Qkt(e,r,a){let i=this,s=i.events.length,l,c;while(s--)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return d;function d(b){if(!l)return a(b);if(l._inactive)return v(b);return c=i.parser.defined.includes(mM(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),m}function m(b){if(b===40)return e.attempt(Vkt,x,c?x:v)(b);if(b===91)return e.attempt(Wkt,x,c?g:v)(b);return c?x(b):v(b)}function g(b){return e.attempt(Kkt,x,v)(b)}function x(b){return r(b)}function v(b){return l._balanced=!0,a(b)}}function Jkt(e,r,a){return i;function i(v){return e.enter("resource"),e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),s}function s(v){return ti(v)?CL(e,l)(v):l(v)}function l(v){if(v===41)return x(v);return rj(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function c(v){return ti(v)?CL(e,m)(v):x(v)}function d(v){return a(v)}function m(v){if(v===34||v===39||v===40)return aj(e,g,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(v);return x(v)}function g(v){return ti(v)?CL(e,x)(v):x(v)}function x(v){if(v===41)return e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),e.exit("resource"),r;return a(v)}}function $kt(e,r,a){let i=this;return s;function s(d){return oj.call(i,e,l,c,"reference","referenceMarker","referenceString")(d)}function l(d){return i.parser.defined.includes(mM(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?r(d):a(d)}function c(d){return a(d)}}function eCt(e,r,a){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){if(l===93)return e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),r;return a(l)}}var hK={name:"labelStartImage",resolveAll:IL.resolveAll,tokenize:tCt};function tCt(e,r,a){let i=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),l}function l(d){if(d===91)return e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c;return a(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(d):r(d)}}var gK={name:"labelStartLink",resolveAll:IL.resolveAll,tokenize:rCt};function rCt(e,r,a){let i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):r(c)}}var _O={name:"lineEnding",tokenize:oCt};function oCt(e,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ao(e,r,"linePrefix")}}var RL={name:"thematicBreak",tokenize:aCt};function aCt(e,r,a){let i=0,s;return l;function l(g){return e.enter("thematicBreak"),c(g)}function c(g){return s=g,d(g)}function d(g){if(g===s)return e.enter("thematicBreakSequence"),m(g);if(i>=3&&(g===null||kr(g)))return e.exit("thematicBreak"),r(g);return a(g)}function m(g){if(g===s)return e.consume(g),i++,m;return e.exit("thematicBreakSequence"),Jr(g)?ao(e,d,"whitespace")(g):d(g)}}var bf={continuation:{tokenize:sCt},exit:cCt,name:"list",tokenize:fCt},nCt={partial:!0,tokenize:uCt},iCt={partial:!0,tokenize:lCt};function fCt(e,r,a){let i=this,s=i.events[i.events.length-1],l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(_){let z=i.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!i.containerState.marker||_===i.containerState.marker:MO(_)){if(!i.containerState.type)i.containerState.type=z,e.enter(z,{_container:!0});if(z==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(RL,a,g)(_):g(_);if(!i.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(_)}return a(_)}function m(_){if(MO(_)&&++c<10)return e.consume(_),m;if((!i.interrupt||c<2)&&(i.containerState.marker?_===i.containerState.marker:_===41||_===46))return e.exit("listItemValue"),g(_);return a(_)}function g(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||_,e.check(V8,i.interrupt?a:x,e.attempt(nCt,b,v))}function x(_){return i.containerState.initialBlankLine=!0,l++,b(_)}function v(_){if(Jr(_))return e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),b;return a(_)}function b(_){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(_)}}function sCt(e,r,a){let i=this;return i.containerState._closeFlow=void 0,e.check(V8,s,l);function s(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ao(e,r,"listItemIndent",i.containerState.size+1)(d)}function l(d){if(i.containerState.furtherBlankLines||!Jr(d))return i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d);return i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(iCt,r,c)(d)}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,ao(e,e.attempt(bf,r,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function lCt(e,r,a){let i=this;return ao(e,s,"listItemIndent",i.containerState.size+1);function s(l){let c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?r(l):a(l)}}function cCt(e){e.exit(this.containerState.type)}function uCt(e,r,a){let i=this;return ao(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){let c=i.events[i.events.length-1];return!Jr(l)&&c&&c[1].type==="listItemPrefixWhitespace"?r(l):a(l)}}var nj={name:"setextUnderline",resolveTo:dCt,tokenize:ZCt};function dCt(e,r){let a=e.length,i,s,l;while(a--)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}if(e[a][1].type==="paragraph")s=a}else{if(e[a][1].type==="content")e.splice(a,1);if(!l&&e[a][1].type==="definition")l=a}let c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};if(e[s][1].type="setextHeadingText",l)e.splice(s,0,["enter",c,r]),e.splice(l+1,0,["exit",e[i][1],r]),e[i][1].end={...e[l][1].end};else e[i][1]=c;return e.push(["exit",c,r]),e}function ZCt(e,r,a){let i=this,s;return l;function l(g){let x=i.events.length,v;while(x--)if(i.events[x][1].type!=="lineEnding"&&i.events[x][1].type!=="linePrefix"&&i.events[x][1].type!=="content"){v=i.events[x][1].type==="paragraph";break}if(!i.parser.lazy[i.now().line]&&(i.interrupt||v))return e.enter("setextHeadingLine"),s=g,c(g);return a(g)}function c(g){return e.enter("setextHeadingLineSequence"),d(g)}function d(g){if(g===s)return e.consume(g),d;return e.exit("setextHeadingLineSequence"),Jr(g)?ao(e,m,"lineSuffix")(g):m(g)}function m(g){if(g===null||kr(g))return e.exit("setextHeadingLine"),r(g);return a(g)}}var exe={tokenize:pCt};function pCt(e){let r=this,a=e.attempt(V8,i,e.attempt(this.parser.constructs.flowInitial,s,ao(e,e.attempt(this.parser.constructs.flow,s,e.attempt(lK,s)),"linePrefix")));return a;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r.currentConstruct=void 0,a}}var txe={resolveAll:nxe()},rxe=axe("string"),oxe=axe("text");function axe(e){return{resolveAll:nxe(e==="text"?mCt:void 0),tokenize:r};function r(a){let i=this,s=this.parser.constructs[e],l=a.attempt(s,c,d);return c;function c(x){return g(x)?l(x):d(x)}function d(x){if(x===null){a.consume(x);return}return a.enter("data"),a.consume(x),m}function m(x){if(g(x))return a.exit("data"),l(x);return a.consume(x),m}function g(x){if(x===null)return!0;let v=s[x],b=-1;if(v)while(++b<v.length){let _=v[b];if(!_.previous||_.previous.call(i,i.previous))return!0}return!1}}}function nxe(e){return r;function r(a,i){let s=-1,l;while(++s<=a.length)if(l===void 0){if(a[s]&&a[s][1].type==="data")l=s,s++}else if(!a[s]||a[s][1].type!=="data"){if(s!==l+2)a[l][1].end=a[s-1][1].end,a.splice(l+2,s-l-2),s=l+2;l=void 0}return e?e(a,i):a}}function mCt(e,r){let a=0;while(++a<=e.length)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let i=e[a-1][1],s=r.sliceStream(i),l=s.length,c=-1,d=0,m;while(l--){let g=s[l];if(typeof g==="string"){c=g.length;while(g.charCodeAt(c-1)===32)d++,c--;if(c)break;c=-1}else if(g===-2)m=!0,d++;else if(g===-1);else{l++;break}}if(r._contentTypeTextTrailing&&a===e.length)d=0;if(d){let g={type:a===e.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};if(i.end={...g.start},i.start.offset===i.end.offset)Object.assign(i,g);else e.splice(a,0,["enter",g,r],["exit",g,r]),a+=2}a++}return e}var MK={};ke(MK,{attentionMarkers:()=>bCt,contentInitial:()=>gCt,disable:()=>wCt,document:()=>hCt,flow:()=>xCt,flowInitial:()=>MCt,insideSpan:()=>_Ct,string:()=>vCt,text:()=>yCt});var hCt={[42]:bf,[43]:bf,[45]:bf,[48]:bf,[49]:bf,[50]:bf,[51]:bf,[52]:bf,[53]:bf,[54]:bf,[55]:bf,[56]:bf,[57]:bf,[62]:Q3},gCt={[91]:cK},MCt={[-2]:vO,[-1]:vO,[32]:vO},xCt={[35]:dK,[42]:RL,[45]:[nj,RL],[60]:pK,[61]:nj,[95]:RL,[96]:ej,[126]:ej},vCt={[38]:$3,[92]:J3},yCt={[-5]:_O,[-4]:_O,[-3]:_O,[33]:hK,[38]:$3,[42]:xO,[60]:[iK,mK],[91]:gK,[92]:[uK,J3],[93]:IL,[95]:xO,[96]:fK},_Ct={null:[xO,txe]},bCt={null:[42,95]},wCt={null:[]};function ixe(e,r,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},s={},l=[],c=[],d=[],m=!0,g={attempt:ie(re),check:ie(oe),consume:X,enter:J,exit:ee,interrupt:ie(oe,{interrupt:!0})},x={code:null,containerState:{},defineSkip:P,events:[],now:U,parser:e,previous:null,sliceSerialize:z,sliceStream:k,write:_},v=r.tokenize.call(x,g),b;if(r.resolveAll)l.push(r);return x;function _(Se){if(c=Cs(c,Se),T(),c[c.length-1]!==null)return[];return ye(r,0),x.events=DR(l,x.events,x),x.events}function z(Se,He){return SCt(k(Se),He)}function k(Se){return zCt(c,Se)}function U(){let{_bufferIndex:Se,_index:He,line:dt,column:Ge,offset:yt}=i;return{_bufferIndex:Se,_index:He,line:dt,column:Ge,offset:yt}}function P(Se){s[Se.line]=Se.column,Ye()}function T(){let Se;while(i._index<c.length){let He=c[i._index];if(typeof He==="string"){if(Se=i._index,i._bufferIndex<0)i._bufferIndex=0;while(i._index===Se&&i._bufferIndex<He.length)G(He.charCodeAt(i._bufferIndex))}else G(He)}}function G(Se){m=void 0,b=Se,v=v(Se)}function X(Se){if(kr(Se))i.line++,i.column=1,i.offset+=Se===-3?2:1,Ye();else if(Se!==-1)i.column++,i.offset++;if(i._bufferIndex<0)i._index++;else if(i._bufferIndex++,i._bufferIndex===c[i._index].length)i._bufferIndex=-1,i._index++;x.previous=Se,m=!0}function J(Se,He){let dt=He||{};return dt.type=Se,dt.start=U(),x.events.push(["enter",dt,x]),d.push(dt),dt}function ee(Se){let He=d.pop();return He.end=U(),x.events.push(["exit",He,x]),He}function re(Se,He){ye(Se,He.from)}function oe(Se,He){He.restore()}function ie(Se,He){return dt;function dt(Ge,yt,Ft){let Bt,de,_t,Wt;return Array.isArray(Ge)?fr(Ge):("tokenize"in Ge)?fr([Ge]):Fe(Ge);function Fe(Kt){return Xt;function Xt(Ir){let wr=Ir!==null&&Kt[Ir],Tr=Ir!==null&&Kt.null,Zr=[...Array.isArray(wr)?wr:wr?[wr]:[],...Array.isArray(Tr)?Tr:Tr?[Tr]:[]];return fr(Zr)(Ir)}}function fr(Kt){if(Bt=Kt,de=0,Kt.length===0)return Ft;return sr(Kt[de])}function sr(Kt){return Xt;function Xt(Ir){if(Wt=We(),_t=Kt,!Kt.partial)x.currentConstruct=Kt;if(Kt.name&&x.parser.constructs.disable.null.includes(Kt.name))return Fr(Ir);return Kt.tokenize.call(He?Object.assign(Object.create(x),He):x,g,Jt,Fr)(Ir)}}function Jt(Kt){return m=!0,Se(_t,Wt),yt}function Fr(Kt){if(m=!0,Wt.restore(),++de<Bt.length)return sr(Bt[de]);return Ft}}}function ye(Se,He){if(Se.resolveAll&&!l.includes(Se))l.push(Se);if(Se.resolve)uf(x.events,He,x.events.length-He,Se.resolve(x.events.slice(He),x));if(Se.resolveTo)x.events=Se.resolveTo(x.events,x)}function We(){let Se=U(),{previous:He,currentConstruct:dt}=x,Ge=x.events.length,yt=Array.from(d);return{from:Ge,restore:Ft};function Ft(){i=Se,x.previous=He,x.currentConstruct=dt,x.events.length=Ge,d=yt,Ye()}}function Ye(){if(i.line in s&&i.column<2)i.column=s[i.line],i.offset+=s[i.line]-1}}function zCt(e,r){let a=r.start._index,i=r.start._bufferIndex,s=r.end._index,l=r.end._bufferIndex,c;if(a===s)c=[e[a].slice(i,l)];else{if(c=e.slice(a,s),i>-1){let d=c[0];if(typeof d==="string")c[0]=d.slice(i);else c.shift()}if(l>0)c.push(e[s].slice(0,l))}return c}function SCt(e,r){let a=-1,i=[],s;while(++a<e.length){let l=e[a],c;if(typeof l==="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
199
- `;break}case-3:{c=`\r
200
- `;break}case-2:{c=r?" ":"\t";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function xK(e){let i={constructs:U8e([MK,...(e||{}).extensions||[]]),content:s(K8e),defined:[],document:s(X8e),flow:s(exe),lazy:{},string:s(rxe),text:s(oxe)};return i;function s(l){return c;function c(d){return ixe(i,l,d)}}}function vK(e){while(!tj(e));return e}var fxe=/[\0\t\n\r]/g;function yK(){let e=1,r="",a=!0,i;return s;function s(l,c,d){let m=[],g,x,v,b,_;if(l=r+(typeof l==="string"?l.toString():new TextDecoder(c||void 0).decode(l)),v=0,r="",a){if(l.charCodeAt(0)===65279)v++;a=void 0}while(v<l.length){if(fxe.lastIndex=v,g=fxe.exec(l),b=g&&g.index!==void 0?g.index:l.length,_=l.charCodeAt(b),!g){r=l.slice(v);break}if(_===10&&v===b&&i)m.push(-3),i=void 0;else{if(i)m.push(-5),i=void 0;if(v<b)m.push(l.slice(v,b)),e+=b-v;switch(_){case 0:{m.push(65533),e++;break}case 9:{x=Math.ceil(e/4)*4,m.push(-2);while(e++<x)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:i=!0,e=1}}v=b+1}if(d){if(i)m.push(-5);if(r)m.push(r);m.push(null)}return m}}var LCt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sxe(e){return e.replace(LCt,kCt)}function kCt(e,r,a){if(r)return r;if(a.charCodeAt(0)===35){let s=a.charCodeAt(1),l=s===120||s===88;return X3(a.slice(l?2:1),l?16:10)}return ER(a)||e}var cxe={}.hasOwnProperty;function _K(e,r,a){if(r&&typeof r==="object")a=r,r=void 0;return CCt(a)(vK(xK(a).document().write(yK()(e,r,!0))))}function CCt(e){let r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(lo),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:l(io),blockQuote:l(Ir),characterEscape:ie,characterReference:ie,codeFenced:l(wr),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(wr,c),codeText:l(Tr,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:l(Zr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(co),hardBreakEscape:l(xa),hardBreakTrailing:l(xa),htmlFlow:l(cr,c),htmlFlowData:ie,htmlText:l(cr,c),htmlTextData:ie,image:l(uo),label:c,link:l(lo),listItem:l(pn),listItemValue:b,listOrdered:l(No,v),listUnordered:l(No),paragraph:l(Ho),reference:Fe,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(io),strong:l(Fn),thematicBreak:l(Hi)},exit:{atxHeading:m(),atxHeadingSequence:J,autolink:m(),autolinkEmail:Xt,autolinkProtocol:Kt,blockQuote:m(),characterEscapeValue:ye,characterReferenceMarkerHexadecimal:sr,characterReferenceMarkerNumeric:sr,characterReferenceValue:Jt,characterReference:Fr,codeFenced:m(U),codeFencedFence:k,codeFencedFenceInfo:_,codeFencedFenceMeta:z,codeFlowValue:ye,codeIndented:m(P),codeText:m(dt),codeTextData:ye,data:ye,definition:m(),definitionDestinationString:X,definitionLabelString:T,definitionTitleString:G,emphasis:m(),hardBreakEscape:m(Ye),hardBreakTrailing:m(Ye),htmlFlow:m(Se),htmlFlowData:ye,htmlText:m(He),htmlTextData:ye,image:m(yt),label:Bt,labelText:Ft,lineEnding:We,link:m(Ge),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:fr,resourceDestinationString:de,resourceTitleString:_t,resource:Wt,setextHeading:m(oe),setextHeadingLineSequence:re,setextHeadingText:ee,strong:m(),thematicBreak:m()}};uxe(r,(e||{}).mdastExtensions||[]);let a={};return i;function i(Ke){let Et={type:"root",children:[]},mr={stack:[Et],tokenStack:[],config:r,enter:d,exit:g,buffer:c,resume:x,data:a},Br=[],$r=-1;while(++$r<Ke.length)if(Ke[$r][1].type==="listOrdered"||Ke[$r][1].type==="listUnordered")if(Ke[$r][0]==="enter")Br.push($r);else{let Vo=Br.pop();$r=s(Ke,Vo,$r)}$r=-1;while(++$r<Ke.length){let Vo=r[Ke[$r][0]];if(cxe.call(Vo,Ke[$r][1].type))Vo[Ke[$r][1].type].call(Object.assign({sliceSerialize:Ke[$r][2].sliceSerialize},mr),Ke[$r][1])}if(mr.tokenStack.length>0){let Vo=mr.tokenStack[mr.tokenStack.length-1];(Vo[1]||lxe).call(mr,void 0,Vo[0])}Et.position={start:W8(Ke.length>0?Ke[0][1].start:{line:1,column:1,offset:0}),end:W8(Ke.length>0?Ke[Ke.length-2][1].end:{line:1,column:1,offset:0})},$r=-1;while(++$r<r.transforms.length)Et=r.transforms[$r](Et)||Et;return Et}function s(Ke,Et,mr){let Br=Et-1,$r=-1,Vo=!1,qa,Ee,Oe,je;while(++Br<=mr){let Zt=Ke[Br];switch(Zt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(Zt[0]==="enter")$r++;else $r--;je=void 0;break}case"lineEndingBlank":{if(Zt[0]==="enter"){if(qa&&!je&&!$r&&!Oe)Oe=Br;je=void 0}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:je=void 0}if(!$r&&Zt[0]==="enter"&&Zt[1].type==="listItemPrefix"||$r===-1&&Zt[0]==="exit"&&(Zt[1].type==="listUnordered"||Zt[1].type==="listOrdered")){if(qa){let zt=Br;Ee=void 0;while(zt--){let jt=Ke[zt];if(jt[1].type==="lineEnding"||jt[1].type==="lineEndingBlank"){if(jt[0]==="exit")continue;if(Ee)Ke[Ee][1].type="lineEndingBlank",Vo=!0;jt[1].type="lineEnding",Ee=zt}else if(jt[1].type==="linePrefix"||jt[1].type==="blockQuotePrefix"||jt[1].type==="blockQuotePrefixWhitespace"||jt[1].type==="blockQuoteMarker"||jt[1].type==="listItemIndent");else break}if(Oe&&(!Ee||Oe<Ee))qa._spread=!0;qa.end=Object.assign({},Ee?Ke[Ee][1].start:Zt[1].end),Ke.splice(Ee||Br,0,["exit",qa,Zt[2]]),Br++,mr++}if(Zt[1].type==="listItemPrefix"){let zt={type:"listItem",_spread:!1,start:Object.assign({},Zt[1].start),end:void 0};qa=zt,Ke.splice(Br,0,["enter",zt,Zt[2]]),Br++,mr++,Oe=void 0,je=!0}}}return Ke[Et][1]._spread=Vo,mr}function l(Ke,Et){return mr;function mr(Br){if(d.call(this,Ke(Br),Br),Et)Et.call(this,Br)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(Ke,Et,mr){this.stack[this.stack.length-1].children.push(Ke),this.stack.push(Ke),this.tokenStack.push([Et,mr||void 0]),Ke.position={start:W8(Et.start),end:void 0}}function m(Ke){return Et;function Et(mr){if(Ke)Ke.call(this,mr);g.call(this,mr)}}function g(Ke,Et){let mr=this.stack.pop(),Br=this.tokenStack.pop();if(!Br)throw Error("Cannot close `"+Ke.type+"` ("+q8({start:Ke.start,end:Ke.end})+"): it’s not open");else if(Br[0].type!==Ke.type)if(Et)Et.call(this,Ke,Br[0]);else(Br[1]||lxe).call(this,Ke,Br[0]);mr.position.end=W8(Ke.end)}function x(){return aK(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function b(Ke){if(this.data.expectingFirstListItemValue){let Et=this.stack[this.stack.length-2];Et.start=Number.parseInt(this.sliceSerialize(Ke),10),this.data.expectingFirstListItemValue=void 0}}function _(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.lang=Ke}function z(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.meta=Ke}function k(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function U(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.value=Ke.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.value=Ke.replace(/(\r?\n|\r)$/g,"")}function T(Ke){let Et=this.resume(),mr=this.stack[this.stack.length-1];mr.label=Et,mr.identifier=mM(this.sliceSerialize(Ke)).toLowerCase()}function G(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.title=Ke}function X(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.url=Ke}function J(Ke){let Et=this.stack[this.stack.length-1];if(!Et.depth){let mr=this.sliceSerialize(Ke).length;Et.depth=mr}}function ee(){this.data.setextHeadingSlurpLineEnding=!0}function re(Ke){let Et=this.stack[this.stack.length-1];Et.depth=this.sliceSerialize(Ke).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(Ke){let mr=this.stack[this.stack.length-1].children,Br=mr[mr.length-1];if(!Br||Br.type!=="text")Br=mn(),Br.position={start:W8(Ke.start),end:void 0},mr.push(Br);this.stack.push(Br)}function ye(Ke){let Et=this.stack.pop();Et.value+=this.sliceSerialize(Ke),Et.position.end=W8(Ke.end)}function We(Ke){let Et=this.stack[this.stack.length-1];if(this.data.atHardBreak){let mr=Et.children[Et.children.length-1];mr.position.end=W8(Ke.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(Et.type))ie.call(this,Ke),ye.call(this,Ke)}function Ye(){this.data.atHardBreak=!0}function Se(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.value=Ke}function He(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.value=Ke}function dt(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.value=Ke}function Ge(){let Ke=this.stack[this.stack.length-1];if(this.data.inReference){let Et=this.data.referenceType||"shortcut";Ke.type+="Reference",Ke.referenceType=Et,delete Ke.url,delete Ke.title}else delete Ke.identifier,delete Ke.label;this.data.referenceType=void 0}function yt(){let Ke=this.stack[this.stack.length-1];if(this.data.inReference){let Et=this.data.referenceType||"shortcut";Ke.type+="Reference",Ke.referenceType=Et,delete Ke.url,delete Ke.title}else delete Ke.identifier,delete Ke.label;this.data.referenceType=void 0}function Ft(Ke){let Et=this.sliceSerialize(Ke),mr=this.stack[this.stack.length-2];mr.label=sxe(Et),mr.identifier=mM(Et).toLowerCase()}function Bt(){let Ke=this.stack[this.stack.length-1],Et=this.resume(),mr=this.stack[this.stack.length-1];if(this.data.inReference=!0,mr.type==="link"){let Br=Ke.children;mr.children=Br}else mr.alt=Et}function de(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.url=Ke}function _t(){let Ke=this.resume(),Et=this.stack[this.stack.length-1];Et.title=Ke}function Wt(){this.data.inReference=void 0}function Fe(){this.data.referenceType="collapsed"}function fr(Ke){let Et=this.resume(),mr=this.stack[this.stack.length-1];mr.label=Et,mr.identifier=mM(this.sliceSerialize(Ke)).toLowerCase(),this.data.referenceType="full"}function sr(Ke){this.data.characterReferenceType=Ke.type}function Jt(Ke){let Et=this.sliceSerialize(Ke),mr=this.data.characterReferenceType,Br;if(mr)Br=X3(Et,mr==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0;else Br=ER(Et);let $r=this.stack[this.stack.length-1];$r.value+=Br}function Fr(Ke){let Et=this.stack.pop();Et.position.end=W8(Ke.end)}function Kt(Ke){ye.call(this,Ke);let Et=this.stack[this.stack.length-1];Et.url=this.sliceSerialize(Ke)}function Xt(Ke){ye.call(this,Ke);let Et=this.stack[this.stack.length-1];Et.url="mailto:"+this.sliceSerialize(Ke)}function Ir(){return{type:"blockquote",children:[]}}function wr(){return{type:"code",lang:null,meta:null,value:""}}function Tr(){return{type:"inlineCode",value:""}}function Zr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function co(){return{type:"emphasis",children:[]}}function io(){return{type:"heading",depth:0,children:[]}}function xa(){return{type:"break"}}function cr(){return{type:"html",value:""}}function uo(){return{type:"image",title:null,url:"",alt:null}}function lo(){return{type:"link",title:null,url:"",children:[]}}function No(Ke){return{type:"list",ordered:Ke.type==="listOrdered",start:null,spread:Ke._spread,children:[]}}function pn(Ke){return{type:"listItem",spread:Ke._spread,checked:null,children:[]}}function Ho(){return{type:"paragraph",children:[]}}function Fn(){return{type:"strong",children:[]}}function mn(){return{type:"text",value:""}}function Hi(){return{type:"thematicBreak"}}}function W8(e){return{line:e.line,column:e.column,offset:e.offset}}function uxe(e,r){let a=-1;while(++a<r.length){let i=r[a];if(Array.isArray(i))uxe(e,i);else ICt(e,i)}}function ICt(e,r){let a;for(a in r)if(cxe.call(r,a))switch(a){case"canContainEols":{let i=r[a];if(i)e[a].push(...i);break}case"transforms":{let i=r[a];if(i)e[a].push(...i);break}case"enter":case"exit":{let i=r[a];if(i)Object.assign(e[a],i);break}}}function lxe(e,r){if(e)throw Error("Cannot close `"+e.type+"` ("+q8({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+q8({start:r.start,end:r.end})+") is open");else throw Error("Cannot close document, a token (`"+r.type+"`, "+q8({start:r.start,end:r.end})+") is still open")}function ij(e){let r=this;r.parser=a;function a(i){return _K(i,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}var fj=-1,OR=0,PL=1,NR=2,bO=3,wO=4,zO=5,SO=6,sj=7,lj=8;var{defineProperty:RCt}=Object,Zxe=typeof self==="object"?self:globalThis,dxe=(e,r)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new Zxe[e](r)},PCt=(e,r)=>{let a=(s,l)=>(e.set(l,s),s),i=(s)=>{if(e.has(s))return e.get(s);let[l,c]=r[s];switch(l){case OR:case fj:return a(c,s);case PL:{let d=a([],s);for(let m of c)d.push(i(m));return d}case NR:{let d=a({},s);for(let[m,g]of c){let x=i(m),v=i(g);if(x==="__proto__")RCt(d,x,{value:v,configurable:!0,enumerable:!0,writable:!0});else d[x]=v}return d}case bO:return a(new Date(c),s);case wO:{let{source:d,flags:m}=c;return a(new RegExp(d,m),s)}case zO:{let d=a(new Map,s);for(let[m,g]of c)d.set(i(m),i(g));return d}case SO:{let d=a(new Set,s);for(let m of c)d.add(i(m));return d}case sj:{let{name:d,message:m}=c;return a(typeof Zxe[d]==="function"?dxe(d,m):Error(m),s)}case lj:return a(BigInt(c),s);case"BigInt":return a(Object(BigInt(c)),s);case"ArrayBuffer":return a(new Uint8Array(c).buffer,c);case"DataView":{let{buffer:d}=new Uint8Array(c);return a(new DataView(d),c)}case"-0":return-0}return a(dxe(l,c),s)};return i},bK=(e)=>PCt(new Map,e)(0);var TL="",{toString:TCt}={},{keys:ACt,is:ECt}=Object,LO=(e)=>{let r=typeof e;if(r!=="object"||!e)return[OR,r];let a=TCt.call(e).slice(8,-1);switch(a){case"Array":return[PL,TL];case"Object":return[NR,TL];case"Date":return[bO,TL];case"RegExp":return[wO,TL];case"Map":return[zO,TL];case"Set":return[SO,TL];case"DataView":return[PL,a]}if(a.includes("Array"))return[PL,a];if(e instanceof Error)return[sj,e.name||"Error"];return[NR,a]},cj=([e,r])=>e===OR&&(r==="function"||r==="symbol"),DCt=(e,r,a,i)=>{let s=(c,d)=>{let m=i.push(c)-1;return a.set(d,m),m},l=(c)=>{if(a.has(c))return a.get(c);let[d,m]=LO(c);switch(d){case OR:{let x=c;switch(m){case"bigint":d=lj,x=c.toString();break;case"number":if(!c&&ECt(c,-0))return i.push(["-0"])-1;break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+m);x=null;break;case"undefined":return s([fj],c)}return s([d,x],c)}case PL:{if(m){let b=c;if(m==="DataView")b=new Uint8Array(c.buffer);else if(m==="ArrayBuffer")b=new Uint8Array(c);return s([m,[...b]],c)}let x=[],v=s([d,x],c);for(let b of c)x.push(l(b));return v}case NR:{if(m)switch(m){case"BigInt":return s([m,c.toString()],c);case"Boolean":case"Number":case"String":return s([m,c.valueOf()],c)}if(r&&"toJSON"in c)return l(c.toJSON());let x=[],v=s([d,x],c);for(let b of ACt(c))if(e||!cj(LO(c[b])))x.push([l(b),l(c[b])]);return v}case bO:return s([d,isNaN(c.getTime())?TL:c.toISOString()],c);case wO:{let{source:x,flags:v}=c;return s([d,{source:x,flags:v}],c)}case zO:{let x=[],v=s([d,x],c);for(let[b,_]of c)if(e||!(cj(LO(b))||cj(LO(_))))x.push([l(b),l(_)]);return v}case SO:{let x=[],v=s([d,x],c);for(let b of c)if(e||!cj(LO(b)))x.push(l(b));return v}}let{message:g}=c;return s([d,{name:m,message:g}],c)};return l},wK=(e,{json:r,lossy:a}={})=>{let i=[];return DCt(!(r||a),!!r,new Map,i)(e),i};var FR=typeof structuredClone==="function"?(e,r)=>r&&(("json"in r)||("lossy"in r))?bK(wK(e,r)):structuredClone(e):(e,r)=>bK(wK(e,r));function OCt(e,r){let a=[{type:"text",value:"↩"}];if(r>1)a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]});return a}function NCt(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function pxe(e){let r=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||OCt,i=e.options.footnoteBackLabel||NCt,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[],m=-1;while(++m<e.footnoteOrder.length){let g=e.footnoteById.get(e.footnoteOrder[m]);if(!g)continue;let x=e.all(g),v=String(g.identifier).toUpperCase(),b=Ac(v.toLowerCase()),_=0,z=[],k=e.footnoteCounts.get(v);while(k!==void 0&&++_<=k){if(z.length>0)z.push({type:"text",value:" "});let T=typeof a==="string"?a:a(m,_);if(typeof T==="string")T={type:"text",value:T};z.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof i==="string"?i:i(m,_),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}let U=x[x.length-1];if(U&&U.type==="element"&&U.tagName==="p"){let T=U.children[U.children.length-1];if(T&&T.type==="text")T.value+=" ";else U.children.push({type:"text",value:" "});U.children.push(...z)}else x.push(...z);let P={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:e.wrap(x,!0)};e.patch(g,P),d.push(P)}if(d.length===0)return;return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...FR(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
201
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
202
- `}]}}var uj=function(e){if(e===null||e===void 0)return UCt;if(typeof e==="function")return dj(e);if(typeof e==="object")return Array.isArray(e)?FCt(e):jCt(e);if(typeof e==="string")return BCt(e);throw Error("Expected function, string, or object as test")};function FCt(e){let r=[],a=-1;while(++a<e.length)r[a]=uj(e[a]);return dj(i);function i(...s){let l=-1;while(++l<r.length)if(r[l].apply(this,s))return!0;return!1}}function jCt(e){let r=e;return dj(a);function a(i){let s=i,l;for(l in e)if(s[l]!==r[l])return!1;return!0}}function BCt(e){return dj(r);function r(a){return a&&a.type===e}}function dj(e){return r;function r(a,i,s){return Boolean(YCt(a)&&e.call(this,a,typeof i==="number"?i:void 0,s||void 0))}}function UCt(){return!0}function YCt(e){return e!==null&&typeof e==="object"&&"type"in e}function mxe(e){return e}var hxe=[],zK=!0,Zj=!1,SK="skip";function LK(e,r,a,i){let s;if(typeof r==="function"&&typeof a!=="function")i=a,a=r;else s=r;let l=uj(s),c=i?-1:1;d(e,void 0,[])();function d(m,g,x){let v=m&&typeof m==="object"?m:{};if(typeof v.type==="string"){let _=typeof v.tagName==="string"?v.tagName:typeof v.name==="string"?v.name:void 0;Object.defineProperty(b,"name",{value:"node ("+mxe(m.type+(_?"<"+_+">":""))+")"})}return b;function b(){let _=hxe,z,k,U;if(!r||l(m,g,x[x.length-1]||void 0)){if(_=qCt(a(m,x)),_[0]===Zj)return _}if("children"in m&&m.children){let P=m;if(P.children&&_[0]!==SK){k=(i?P.children.length:-1)+c,U=x.concat(P);while(k>-1&&k<P.children.length){let T=P.children[k];if(z=d(T,k,U)(),z[0]===Zj)return z;k=typeof z[1]==="number"?z[1]:k+c}}}return _}}}function qCt(e){if(Array.isArray(e))return e;if(typeof e==="number")return[zK,e];return e===null||e===void 0?hxe:[e]}function kO(e,r,a,i){let s,l,c;if(typeof r==="function"&&typeof a!=="function")l=void 0,c=r,s=a;else l=r,c=a,s=i;LK(e,l,d,s);function d(m,g){let x=g[g.length-1],v=x?x.children.indexOf(m):void 0;return c(m,v,x)}}function gxe(e,r){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,a),e.applyData(r,a)}function Mxe(e,r){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,a),[e.applyData(r,a),{type:"text",value:`
203
- `}]}function xxe(e,r){let a=r.value?r.value+`
204
- `:"",i={},s=r.lang?r.lang.split(/\s+/):[];if(s.length>0)i.className=["language-"+s[0]];let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};if(r.meta)l.data={meta:r.meta};return e.patch(r,l),l=e.applyData(r,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(r,l),l}function vxe(e,r){let a={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function yxe(e,r){let a={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function _xe(e,r){let a=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-",i=String(r.identifier).toUpperCase(),s=Ac(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),c,d=e.footnoteCounts.get(i);if(d===void 0)d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length;else c=l+1;d+=1,e.footnoteCounts.set(i,d);let m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,m);let g={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(r,g),e.applyData(r,g)}function bxe(e,r){let a={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function wxe(e,r){if(e.options.allowDangerousHtml){let a={type:"raw",value:r.value};return e.patch(r,a),e.applyData(r,a)}return}function pj(e,r){let a=r.referenceType,i="]";if(a==="collapsed")i+="[]";else if(a==="full")i+="["+(r.label||r.identifier)+"]";if(r.type==="imageReference")return[{type:"text",value:"!["+r.alt+i}];let s=e.all(r),l=s[0];if(l&&l.type==="text")l.value="["+l.value;else s.unshift({type:"text",value:"["});let c=s[s.length-1];if(c&&c.type==="text")c.value+=i;else s.push({type:"text",value:i});return s}function zxe(e,r){let a=String(r.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return pj(e,r);let s={src:Ac(i.url||""),alt:r.alt};if(i.title!==null&&i.title!==void 0)s.title=i.title;let l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,l),e.applyData(r,l)}function Sxe(e,r){let a={src:Ac(r.url)};if(r.alt!==null&&r.alt!==void 0)a.alt=r.alt;if(r.title!==null&&r.title!==void 0)a.title=r.title;let i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function Lxe(e,r){let a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,a);let i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(r,i),e.applyData(r,i)}function kxe(e,r){let a=String(r.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return pj(e,r);let s={href:Ac(i.url||"")};if(i.title!==null&&i.title!==void 0)s.title=i.title;let l={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function Cxe(e,r){let a={href:Ac(r.url)};if(r.title!==null&&r.title!==void 0)a.title=r.title;let i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function Ixe(e,r,a){let i=e.all(r),s=a?HCt(a):Rxe(r),l={},c=[];if(typeof r.checked==="boolean"){let x=i[0],v;if(x&&x.type==="element"&&x.tagName==="p")v=x;else v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v);if(v.children.length>0)v.children.unshift({type:"text",value:" "});v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let d=-1;while(++d<i.length){let x=i[d];if(s||d!==0||x.type!=="element"||x.tagName!=="p")c.push({type:"text",value:`
205
- `});if(x.type==="element"&&x.tagName==="p"&&!s)c.push(...x.children);else c.push(x)}let m=i[i.length-1];if(m&&(s||m.type!=="element"||m.tagName!=="p"))c.push({type:"text",value:`
206
- `});let g={type:"element",tagName:"li",properties:l,children:c};return e.patch(r,g),e.applyData(r,g)}function HCt(e){let r=!1;if(e.type==="list"){r=e.spread||!1;let a=e.children,i=-1;while(!r&&++i<a.length)r=Rxe(a[i])}return r}function Rxe(e){let r=e.spread;return r===null||r===void 0?e.children.length>1:r}function Pxe(e,r){let a={},i=e.all(r),s=-1;if(typeof r.start==="number"&&r.start!==1)a.start=r.start;while(++s<i.length){let c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}let l={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(r,l),e.applyData(r,l)}function Txe(e,r){let a={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Axe(e,r){let a={type:"root",children:e.wrap(e.all(r))};return e.patch(r,a),e.applyData(r,a)}function Exe(e,r){let a={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Dxe(e,r){let a=e.all(r),i=a.shift(),s=[];if(i){let c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(r.children[0],c),s.push(c)}if(a.length>0){let c={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=AR(r.children[1]),m=G3(r.children[r.children.length-1]);if(d&&m)c.position={start:d,end:m};s.push(c)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,l),e.applyData(r,l)}function Oxe(e,r,a){let i=a?a.children:void 0,l=(i?i.indexOf(r):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,d=c?c.length:r.children.length,m=-1,g=[];while(++m<d){let v=r.children[m],b={},_=c?c[m]:void 0;if(_)b.align=_;let z={type:"element",tagName:l,properties:b,children:[]};if(v)z.children=e.all(v),e.patch(v,z),z=e.applyData(v,z);g.push(z)}let x={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(r,x),e.applyData(r,x)}function Nxe(e,r){let a={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function jxe(e){let r=String(e),a=/\r?\n|\r/g,i=a.exec(r),s=0,l=[];while(i)l.push(Fxe(r.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=a.exec(r);return l.push(Fxe(r.slice(s),s>0,!1)),l.join("")}function Fxe(e,r,a){let i=0,s=e.length;if(r){let l=e.codePointAt(i);while(l===9||l===32)i++,l=e.codePointAt(i)}if(a){let l=e.codePointAt(s-1);while(l===9||l===32)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function Bxe(e,r){let a={type:"text",value:jxe(String(r.value))};return e.patch(r,a),e.applyData(r,a)}function Uxe(e,r){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,a),e.applyData(r,a)}var Yxe={blockquote:gxe,break:Mxe,code:xxe,delete:vxe,emphasis:yxe,footnoteReference:_xe,heading:bxe,html:wxe,imageReference:zxe,image:Sxe,inlineCode:Lxe,linkReference:kxe,link:Cxe,listItem:Ixe,list:Pxe,paragraph:Txe,root:Axe,strong:Exe,table:Dxe,tableCell:Nxe,tableRow:Oxe,text:Bxe,thematicBreak:Uxe,toml:mj,yaml:mj,definition:mj,footnoteDefinition:mj};function mj(){return}var kK={}.hasOwnProperty,VCt={};function Hxe(e,r){let a=r||VCt,i=new Map,s=new Map,l=new Map,c={...Yxe,...a.handlers},d={all:g,applyData:KCt,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:m,options:a,patch:WCt,wrap:XCt};return kO(e,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){let v=x.type==="definition"?i:s,b=String(x.identifier).toUpperCase();if(!v.has(b))v.set(b,x)}}),d;function m(x,v){let b=x.type,_=d.handlers[b];if(kK.call(d.handlers,b)&&_)return _(d,x,v);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in x){let{children:k,...U}=x,P=FR(U);return P.children=d.all(x),P}return FR(x)}return(d.options.unknownHandler||GCt)(d,x,v)}function g(x){let v=[];if("children"in x){let b=x.children,_=-1;while(++_<b.length){let z=d.one(b[_],x);if(z){if(_&&b[_-1].type==="break"){if(!Array.isArray(z)&&z.type==="text")z.value=qxe(z.value);if(!Array.isArray(z)&&z.type==="element"){let k=z.children[0];if(k&&k.type==="text")k.value=qxe(k.value)}}if(Array.isArray(z))v.push(...z);else v.push(z)}}}return v}}function WCt(e,r){if(e.position)r.position=JW(e)}function KCt(e,r){let a=r;if(e&&e.data){let i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i==="string")if(a.type==="element")a.tagName=i;else{let c="children"in a?a.children:[a];a={type:"element",tagName:i,properties:{},children:c}}if(a.type==="element"&&l)Object.assign(a.properties,FR(l));if("children"in a&&a.children&&s!==null&&s!==void 0)a.children=s}return a}function GCt(e,r){let a=r.data||{},i="value"in r&&!(kK.call(a,"hProperties")||kK.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function XCt(e,r){let a=[],i=-1;if(r)a.push({type:"text",value:`
207
- `});while(++i<e.length){if(i)a.push({type:"text",value:`
208
- `});a.push(e[i])}if(r&&e.length>0)a.push({type:"text",value:`
209
- `});return a}function qxe(e){let r=0,a=e.charCodeAt(r);while(a===9||a===32)r++,a=e.charCodeAt(r);return e.slice(r)}function hj(e,r){let a=Hxe(e,r),i=a.one(e,void 0),s=pxe(a),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};if(s)ks("children"in l),l.children.push({type:"text",value:`
210
- `},s);return l}function gj(e,r){if(e&&"run"in e)return async function(a,i){let s=hj(a,{file:i,...r});await e.run(s,i)};return function(a,i){return hj(a,{file:i,...e||r})}}function CK(e){if(e)throw e}var vj=H(eve(),1);function CO(e){if(typeof e!=="object"||e===null)return!1;let r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function IK(){let e=[],r={run:a,use:i};return r;function a(...s){let l=-1,c=s.pop();if(typeof c!=="function")throw TypeError("Expected function as last argument, not "+c);d(null,...s);function d(m,...g){let x=e[++l],v=-1;if(m){c(m);return}while(++v<s.length)if(g[v]===null||g[v]===void 0)g[v]=s[v];if(s=g,x)tve(x,d)(...g);else c(null,...g)}}function i(s){if(typeof s!=="function")throw TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function tve(e,r){let a;return i;function i(...c){let d=e.length>c.length,m;if(d)c.push(s);try{m=e.apply(this,c)}catch(g){let x=g;if(d&&a)throw x;return s(x)}if(!d)if(m&&m.then&&typeof m.then==="function")m.then(l,s);else if(m instanceof Error)s(m);else l(m)}function s(c,...d){if(!a)a=!0,r(c,...d)}function l(c){s(null,c)}}var Iu={basename:QCt,dirname:JCt,extname:$Ct,join:eIt,sep:"/"};function QCt(e,r){if(r!==void 0&&typeof r!=="string")throw TypeError('"ext" argument must be a string');IO(e);let a=0,i=-1,s=e.length,l;if(r===void 0||r.length===0||r.length>e.length){while(s--)if(e.codePointAt(s)===47){if(l){a=s+1;break}}else if(i<0)l=!0,i=s+1;return i<0?"":e.slice(a,i)}if(r===e)return"";let c=-1,d=r.length-1;while(s--)if(e.codePointAt(s)===47){if(l){a=s+1;break}}else{if(c<0)l=!0,c=s+1;if(d>-1)if(e.codePointAt(s)===r.codePointAt(d--)){if(d<0)i=s}else d=-1,i=c}if(a===i)i=c;else if(i<0)i=e.length;return e.slice(a,i)}function JCt(e){if(IO(e),e.length===0)return".";let r=-1,a=e.length,i;while(--a)if(e.codePointAt(a)===47){if(i){r=a;break}}else if(!i)i=!0;return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function $Ct(e){IO(e);let r=e.length,a=-1,i=0,s=-1,l=0,c;while(r--){let d=e.codePointAt(r);if(d===47){if(c){i=r+1;break}continue}if(a<0)c=!0,a=r+1;if(d===46){if(s<0)s=r;else if(l!==1)l=1}else if(s>-1)l=-1}if(s<0||a<0||l===0||l===1&&s===a-1&&s===i+1)return"";return e.slice(s,a)}function eIt(...e){let r=-1,a;while(++r<e.length)if(IO(e[r]),e[r])a=a===void 0?e[r]:a+"/"+e[r];return a===void 0?".":tIt(a)}function tIt(e){IO(e);let r=e.codePointAt(0)===47,a=rIt(e,!r);if(a.length===0&&!r)a=".";if(a.length>0&&e.codePointAt(e.length-1)===47)a+="/";return r?"/"+a:a}function rIt(e,r){let a="",i=0,s=-1,l=0,c=-1,d,m;while(++c<=e.length){if(c<e.length)d=e.codePointAt(c);else if(d===47)break;else d=47;if(d===47){if(s===c-1||l===1);else if(s!==c-1&&l===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(m=a.lastIndexOf("/"),m!==a.length-1){if(m<0)a="",i=0;else a=a.slice(0,m),i=a.length-1-a.lastIndexOf("/");s=c,l=0;continue}}else if(a.length>0){a="",i=0,s=c,l=0;continue}}if(r)a=a.length>0?a+"/..":"..",i=2}else{if(a.length>0)a+="/"+e.slice(s+1,c);else a=e.slice(s+1,c);i=c-s-1}s=c,l=0}else if(d===46&&l>-1)l++;else l=-1}return a}function IO(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}var rve={cwd:oIt};function oIt(){return"/"}function jR(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ove(e){if(typeof e==="string")e=new URL(e);else if(!jR(e)){let r=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){let r=TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return aIt(e)}function aIt(e){if(e.hostname!==""){let i=TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}let r=e.pathname,a=-1;while(++a<r.length)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){let i=r.codePointAt(a+2);if(i===70||i===102){let s=TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}var RK=["history","path","basename","stem","extname","dirname"];class BR{constructor(e){let r;if(!e)r={};else if(jR(e))r={path:e};else if(typeof e==="string"||nIt(e))r={value:e};else r=e;this.cwd="cwd"in r?"":rve.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;while(++a<RK.length){let s=RK[a];if(s in r&&r[s]!==void 0&&r[s]!==null)this[s]=s==="history"?[...r[s]]:r[s]}let i;for(i in r)if(!RK.includes(i))this[i]=r[i]}get basename(){return typeof this.path==="string"?Iu.basename(this.path):void 0}set basename(e){TK(e,"basename"),PK(e,"basename"),this.path=Iu.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?Iu.dirname(this.path):void 0}set dirname(e){ave(this.basename,"dirname"),this.path=Iu.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?Iu.extname(this.path):void 0}set extname(e){if(PK(e,"extname"),ave(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=Iu.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(jR(e))e=ove(e);if(TK(e,"path"),this.path!==e)this.history.push(e)}get stem(){return typeof this.path==="string"?Iu.basename(this.path,this.extname):void 0}set stem(e){TK(e,"stem"),PK(e,"stem"),this.path=Iu.join(this.dirname||"",e+(this.extname||""))}fail(e,r,a){let i=this.message(e,r,a);throw i.fatal=!0,i}info(e,r,a){let i=this.message(e,r,a);return i.fatal=void 0,i}message(e,r,a){let i=new Mi(e,r,a);if(this.path)i.name=this.path+":"+i.name,i.file=this.path;return i.fatal=!1,this.messages.push(i),i}toString(e){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function PK(e,r){if(e&&e.includes(Iu.sep))throw Error("`"+r+"` cannot be a path: did not expect `"+Iu.sep+"`")}function TK(e,r){if(!e)throw Error("`"+r+"` cannot be empty")}function ave(e,r){if(!e)throw Error("Setting `"+r+"` requires `path` to be set too")}function nIt(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var nve=function(e){let i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l};var iIt={}.hasOwnProperty;class OK extends nve{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=IK()}copy(){let e=new OK,r=-1;while(++r<this.attachers.length){let a=this.attachers[r];e.use(...a)}return e.data(vj.default(!0,{},this.namespace)),e}data(e,r){if(typeof e==="string"){if(arguments.length===2)return DK("data",this.frozen),this.namespace[e]=r,this;return iIt.call(this.namespace,e)&&this.namespace[e]||void 0}if(e)return DK("data",this.frozen),this.namespace=e,this;return this.namespace}freeze(){if(this.frozen)return this;let e=this;while(++this.freezeIndex<this.attachers.length){let[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;if(a[0]===!0)a[0]=void 0;let i=r.call(e,...a);if(typeof i==="function")this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let r=xj(e),a=this.parser||this.Parser;return AK("parse",a),a(String(r),r)}process(e,r){let a=this;return this.freeze(),AK("process",this.parser||this.Parser),EK("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(s,l){let c=xj(e),d=a.parse(c);a.run(d,c,function(g,x,v){if(g||!x||!v)return m(g);let b=x,_=a.stringify(b,v);if(sIt(_))v.value=_;else v.result=_;m(g,v)});function m(g,x){if(g||!x)l(g);else if(s)s(x);else ks(r,"`done` is defined if `resolve` is not"),r(void 0,x)}}}processSync(e){let r=!1,a;return this.freeze(),AK("processSync",this.parser||this.Parser),EK("processSync",this.compiler||this.Compiler),this.process(e,i),fve("processSync","process",r),ks(a,"we either bailed on an error or have a tree"),a;function i(s,l){r=!0,CK(s),a=l}}run(e,r,a){ive(e),this.freeze();let i=this.transformers;if(!a&&typeof r==="function")a=r,r=void 0;return a?s(void 0,a):new Promise(s);function s(l,c){ks(typeof r!=="function","`file` can’t be a `done` anymore, we checked");let d=xj(r);i.run(e,d,m);function m(g,x,v){let b=x||e;if(g)c(g);else if(l)l(b);else ks(a,"`done` is defined if `resolve` is not"),a(void 0,b,v)}}}runSync(e,r){let a=!1,i;return this.run(e,r,s),fve("runSync","run",a),ks(i,"we either bailed on an error or have a tree"),i;function s(l,c){CK(l),i=c,a=!0}}stringify(e,r){this.freeze();let a=xj(r),i=this.compiler||this.Compiler;return EK("stringify",i),ive(e),i(e,a)}use(e,...r){let a=this.attachers,i=this.namespace;if(DK("use",this.frozen),e===null||e===void 0);else if(typeof e==="function")d(e,r);else if(typeof e==="object")if(Array.isArray(e))c(e);else l(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function s(m){if(typeof m==="function")d(m,[]);else if(typeof m==="object")if(Array.isArray(m)){let[g,...x]=m;d(g,x)}else l(m);else throw TypeError("Expected usable value, not `"+m+"`")}function l(m){if(!("plugins"in m)&&!("settings"in m))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(c(m.plugins),m.settings)i.settings=vj.default(!0,i.settings,m.settings)}function c(m){let g=-1;if(m===null||m===void 0);else if(Array.isArray(m))while(++g<m.length){let x=m[g];s(x)}else throw TypeError("Expected a list of plugins, not `"+m+"`")}function d(m,g){let x=-1,v=-1;while(++x<a.length)if(a[x][0]===m){v=x;break}if(v===-1)a.push([m,...g]);else if(g.length>0){let[b,..._]=g,z=a[v][1];if(CO(z)&&CO(b))b=vj.default(!0,z,b);a[v]=[m,b,..._]}}}}var NK=new OK().freeze();function AK(e,r){if(typeof r!=="function")throw TypeError("Cannot `"+e+"` without `parser`")}function EK(e,r){if(typeof r!=="function")throw TypeError("Cannot `"+e+"` without `compiler`")}function DK(e,r){if(r)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ive(e){if(!CO(e)||typeof e.type!=="string")throw TypeError("Expected node, got `"+e+"`")}function fve(e,r,a){if(!a)throw Error("`"+e+"` finished async. Use `"+r+"` instead")}function xj(e){return fIt(e)?e:new BR(e)}function fIt(e){return Boolean(e&&typeof e==="object"&&"message"in e&&"messages"in e)}function sIt(e){return typeof e==="string"||lIt(e)}function lIt(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var cIt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",sve=[],lve={allowDangerousHtml:!0},uIt=/^(https?|ircs?|mailto|xmpp)$/i,dIt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Co(e){let r=ZIt(e),a=pIt(e);return mIt(r.runSync(r.parse(a),a),e)}function ZIt(e){let r=e.rehypePlugins||sve,a=e.remarkPlugins||sve,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...lve}:lve;return NK().use(ij).use(a).use(gj,i).use(r)}function pIt(e){let r=e.children||"",a=new BR;if(typeof r==="string")a.value=r;else Y3("Unexpected value `"+r+"` for `children` prop, expected `string`");return a}function mIt(e,r){let{allowedElements:a,allowElement:i,components:s,disallowedElements:l,skipHtml:c,unwrapDisallowed:d}=r,m=r.urlTransform||cve;for(let x of dIt)if(Object.hasOwn(r,x.from))Y3("Unexpected `"+x.from+"` prop, "+(x.to?"use `"+x.to+"` instead":"remove it")+" (see <"+cIt+"#"+x.id+"> for more info)");if(a&&l)Y3("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");return kO(e,g),tK(e,{Fragment:L,components:s,ignoreInvalidStyle:!0,jsx:t,jsxs:o,passKeys:!0,passNode:!0});function g(x,v,b){if(x.type==="raw"&&b&&typeof v==="number"){if(c)b.children.splice(v,1);else b.children[v]={type:"text",value:x.value};return v}if(x.type==="element"){let _;for(_ in hO)if(Object.hasOwn(hO,_)&&Object.hasOwn(x.properties,_)){let z=x.properties[_],k=hO[_];if(k===null||k.includes(x.tagName))x.properties[_]=m(String(z||""),_,x)}}if(x.type==="element"){let _=a?!a.includes(x.tagName):l?l.includes(x.tagName):!1;if(!_&&i&&typeof v==="number")_=!i(x,v,b);if(_&&b&&typeof v==="number"){if(d&&x.children)b.children.splice(v,1,...x.children);else b.children.splice(v,1);return v}}}}function cve(e){let r=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");if(r===-1||s!==-1&&r>s||a!==-1&&r>a||i!==-1&&r>i||uIt.test(e.slice(0,r)))return e;return""}var hIt=/\.(png|jpe?g|webp|gif|svg|avif|bmp|ico)$/i;function $s(e){if(!e)return!1;return hIt.test(e)}function Jd(e,r){if(!e||e.length===0)return null;let a=[...e].sort((s,l)=>{let c=s.width??0;return(l.width??0)-c}),i=a.filter((s)=>(s.width??0)>=r);if(i.length>0)return i.sort((s,l)=>{let c=s.width??0,d=l.width??0;return c-d}),i[0];return a[0]}function bs(e){if(!e)return"";if(e.resolution)return e.resolution;let r=e.width??0,a=e.height??0;if(r>0&&a>0){let i=Math.max(r,a);if(i>=3840)return"2160p";if(i>=2560)return"1440p";if(i>=1920)return"1080p";if(i>=1280)return"720p";if(i>=854)return"480p";if(i>=640)return"360p";if(i>=320)return"180p";return`${Math.min(r,a)}p`}if(a>0)return`${a}p`;if(r>0)return`${r}p`;return""}function uve({teamId:e,taskId:r,comment:a,currentUserId:i,isOwnerOrAdmin:s}){let l=Q(),[c,d]=u(!1),[m,g]=u(null),x=s||a.author.id===i,{mutate:v,isPending:b}=B({mutationFn:async()=>{let z=await A.api.teams[":teamId"].kanban.tasks[":taskId"].comments[":commentId"].$delete({param:{teamId:e,taskId:r,commentId:a.id}});if(!z.ok){let k=await z.json().catch(()=>({message:Tn()}));throw Error(k.message||Tn())}return await z.json()},onSuccess:()=>{l.invalidateQueries({queryKey:["teams",e,"kanban","tasks",r,"comments"]}),l.invalidateQueries({queryKey:["teams",e,"kanban","task",r]}),l.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]}),M.success("Comment deleted"),d(!1)},onError:(z)=>{M.error(z.message)}}),_=(a.author.name||"U").split(" ").map((z)=>z[0]).slice(0,2).join("").toUpperCase();return o("div",{className:"relative flex gap-3 p-3 rounded-xl border border-transparent bg-foreground/[0.03] dark:bg-foreground/[0.08] hover:bg-foreground/[0.06] dark:hover:bg-foreground/[0.12] transition-colors group w-full max-w-full overflow-hidden",children:[o(Ce,{className:"w-7 h-7 shrink-0 mt-0.5 border border-border",children:[a.author.image&&t(Ie,{src:a.author.image,alt:a.author.name}),t(Te,{className:"text-[10px] font-medium bg-muted text-muted-foreground",children:_})]}),o("div",{className:"flex-1 min-w-0 space-y-1.5 overflow-hidden",children:[o("div",{className:"flex items-center justify-between gap-2",children:[o("div",{className:"flex items-center gap-2 min-w-0",children:[t("span",{className:"font-semibold text-xs text-foreground truncate",children:a.author.name}),t("span",{className:"text-[10px] text-muted-foreground shrink-0 font-mono",children:gr(new Date(a.createdAt),"MMM d, h:mm a")})]}),x&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:o(he,{modal:!1,children:[t(ge,{asChild:!0,children:t(E,{size:"icon-xs",variant:"ghost",className:"h-5 w-5 text-muted-foreground",children:t(or,{className:"h-3.5 w-3.5"})})}),t(Ae,{align:"end",children:o(K,{className:"text-destructive focus:text-destructive cursor-pointer text-xs",onClick:()=>d(!0),children:[t(we,{className:"mr-1.5 h-3.5 w-3.5"}),t("span",{children:at()})]})})]})})]}),a.body&&t("div",{className:"text-xs leading-relaxed prose prose-xs dark:prose-invert max-w-none break-words text-foreground/90 font-sans",children:t(Co,{children:a.body})}),a.attachments&&a.attachments.length>0&&t("div",{className:"flex flex-col gap-1.5 pt-1.5 w-full max-w-full overflow-hidden",children:a.attachments.map((z)=>{let k=$s(z.name||z.url);return o("div",{className:`group/att relative flex items-center w-full max-w-full rounded-lg border border-border bg-card hover:bg-muted/40 transition-colors overflow-hidden ${k?"h-18 p-1.5 gap-2.5 cursor-pointer":"h-9 px-2.5 gap-2.5"}`,onClick:()=>{if(k)g({url:z.url,name:z.name});else window.open(z.url,"_blank","noreferrer")},children:[k?t("div",{className:"h-full aspect-square rounded-md overflow-hidden bg-muted/40 shrink-0",children:t("img",{src:z.url,alt:z.name,className:"w-full h-full object-cover group-hover/att:scale-105 transition-transform duration-200"})}):t(qn,{className:"w-4 h-4 text-muted-foreground shrink-0"}),o("div",{className:"min-w-0 flex-1 overflow-hidden",children:[t("p",{className:"text-xs font-medium text-foreground truncate block w-full",title:z.name,children:z.name}),z.sizeByte!==void 0&&z.sizeByte>0&&t("p",{className:"text-[10px] text-muted-foreground font-mono truncate",children:Wr(z.sizeByte)})]}),t("a",{href:z.url,download:z.name,target:"_blank",rel:"noreferrer",className:"p-1 text-muted-foreground hover:text-foreground shrink-0 rounded-md hover:bg-muted transition-colors opacity-0 group-hover/att:opacity-100",onClick:(U)=>U.stopPropagation(),title:hr(),children:t(wt,{className:"w-3.5 h-3.5"})})]},z.id)})})]}),t(Je,{open:c,onOpenChange:d,children:o(Xe,{children:[o(et,{children:[t(rt,{children:ph()}),t(nt,{children:mh()})]}),o(tt,{children:[t(st,{disabled:b,children:De()}),t(ot,{className:"bg-destructive hover:bg-destructive/90 text-white",disabled:b,onClick:()=>v(),children:at()})]})]})}),t(ue,{open:!!m,onOpenChange:(z)=>!z&&g(null),children:o(ae,{className:"w-auto max-w-[80vw] sm:max-w-[80vw] max-h-[80vh] p-2 sm:p-3 bg-background/95 backdrop-blur-sm border-border flex flex-col items-center justify-center overflow-hidden",onClick:(z)=>z.stopPropagation(),children:[t(fe,{className:"sr-only",children:t(le,{children:m?.name||"Image Preview"})}),m&&o("div",{className:"flex flex-col items-center justify-center max-w-[80vw] max-h-[80vh] overflow-hidden",children:[t("img",{src:m.url,alt:m.name,className:"max-w-[80vw] max-h-[calc(80vh-2.5rem)] w-auto h-auto object-contain rounded-md"}),t("p",{className:"text-xs text-muted-foreground truncate max-w-full px-2 pt-1.5 text-center",children:m.name})]})]})})]})}S();var vve=Symbol.for("immer-nothing"),dve=Symbol.for("immer-draftable"),Af=Symbol.for("immer-state");function Ru(e,...r){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tc=Object,YR=tc.getPrototypeOf,wj="constructor",Ij="prototype",UK="configurable",zj="enumerable",_j="writable",RO="value",K8=(e)=>!!e&&!!e[Af];function SZ(e){if(!e)return!1;return yve(e)||Pj(e)||!!e[dve]||!!e[wj]?.[dve]||Tj(e)||Aj(e)}var gIt=tc[Ij][wj].toString(),Zve=new WeakMap;function yve(e){if(!e||!XK(e))return!1;let r=YR(e);if(r===null||r===tc[Ij])return!0;let a=tc.hasOwnProperty.call(r,wj)&&r[wj];if(a===Object)return!0;if(!UR(a))return!1;let i=Zve.get(a);if(i===void 0)i=Function.toString.call(a),Zve.set(a,i);return i===gIt}function Rj(e,r,a=!0){if(AO(e)===0)(a?Reflect.ownKeys(e):tc.keys(e)).forEach((s)=>{r(s,e[s],e)});else e.forEach((i,s)=>r(s,i,e))}function AO(e){let r=e[Af];return r?r.type_:Pj(e)?1:Tj(e)?2:Aj(e)?3:0}var FK=(e,r,a=AO(e))=>a===2?e.has(r):tc[Ij].hasOwnProperty.call(e,r),YK=(e,r,a=AO(e))=>a===2?e.get(r):e[r],Sj=(e,r,a,i=AO(e))=>{if(i===2)e.set(r,a);else if(i===3)e.add(a);else e[r]=a};function MIt(e,r){if(e===r)return e!==0||1/e===1/r;else return e!==e&&r!==r}var Pj=Array.isArray,Tj=(e)=>e instanceof Map,Aj=(e)=>e instanceof Set,XK=(e)=>typeof e==="object",UR=(e)=>typeof e==="function",jK=(e)=>typeof e==="boolean";function xIt(e){let r=+e;return Number.isInteger(r)&&String(r)===e}var hM=(e)=>e.copy_||e.base_;var QK=(e)=>e.modified_?e.copy_:e.base_;function qK(e,r){if(Tj(e))return new Map(e);if(Aj(e))return new Set(e);if(Pj(e))return Array[Ij].slice.call(e);let a=yve(e);if(r===!0||r==="class_only"&&!a){let i=tc.getOwnPropertyDescriptors(e);delete i[Af];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){let c=s[l],d=i[c];if(d[_j]===!1)d[_j]=!0,d[UK]=!0;if(d.get||d.set)i[c]={[UK]:!0,[_j]:!0,[zj]:d[zj],[RO]:e[c]}}return tc.create(YR(e),i)}else{let i=YR(e);if(i!==null&&a)return{...e};let s=tc.create(i);return tc.assign(s,e)}}function JK(e,r=!1){if(Ej(e)||K8(e)||!SZ(e))return e;if(AO(e)>1)tc.defineProperties(e,{set:yj,add:yj,clear:yj,delete:yj});if(tc.freeze(e),r)Rj(e,(a,i)=>{JK(i,!0)},!1);return e}function vIt(){Ru(2)}var yj={[RO]:vIt};function Ej(e){if(e===null||!XK(e))return!0;return tc.isFrozen(e)}var Lj="MapSet",HK="Patches",pve="ArrayMethods",_ve={};function AL(e){let r=_ve[e];if(!r)Ru(0,e);return r}var mve=(e)=>!!_ve[e];var PO,bve=()=>PO,yIt=(e,r)=>({drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:mve(Lj)?AL(Lj):void 0,arrayMethodsPlugin_:mve(pve)?AL(pve):void 0});function hve(e,r){if(r)e.patchPlugin_=AL(HK),e.patches_=[],e.inversePatches_=[],e.patchListener_=r}function VK(e){WK(e),e.drafts_.forEach(_It),e.drafts_=null}function WK(e){if(e===PO)PO=e.parent_}var gve=(e)=>PO=yIt(PO,e);function _It(e){let r=e[Af];if(r.type_===0||r.type_===1)r.revoke_();else r.revoked_=!0}function Mve(e,r){r.unfinalizedDrafts_=r.drafts_.length;let a=r.drafts_[0];if(e!==void 0&&e!==a){if(a[Af].modified_)VK(r),Ru(4);if(SZ(e))e=xve(r,e);let{patchPlugin_:s}=r;if(s)s.generateReplacementPatches_(a[Af].base_,e,r)}else e=xve(r,a);if(bIt(r,e,!0),VK(r),r.patches_)r.patchListener_(r.patches_,r.inversePatches_);return e!==vve?e:void 0}function xve(e,r){if(Ej(r))return r;let a=r[Af];if(!a)return kj(r,e.handledSet_,e);if(!Dj(a,e))return r;if(!a.modified_)return a.base_;if(!a.finalized_){let{callbacks_:i}=a;if(i)while(i.length>0)i.pop()(e);Sve(a,e)}return a.copy_}function bIt(e,r,a=!1){if(!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_)JK(r,a)}function wve(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Dj=(e,r)=>e.scope_===r,wIt=[];function zve(e,r,a,i){let s=hM(e),l=e.type_;if(i!==void 0){if(YK(s,i,l)===r){Sj(s,i,a,l);return}}if(!e.draftLocations_){let d=e.draftLocations_=new Map;Rj(s,(m,g)=>{if(K8(g)){let x=d.get(g)||[];x.push(m),d.set(g,x)}})}let c=e.draftLocations_.get(r)??wIt;for(let d of c)Sj(s,d,a,l)}function zIt(e,r,a){e.callbacks_.push(function(s){let l=r;if(!l||!Dj(l,s))return;s.mapSetPlugin_?.fixSetContents(l);let c=QK(l);zve(e,l.draft_??l,c,a),Sve(l,s)})}function Sve(e,r){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=r;if(i){let s=i.getPath(e);if(s)i.generatePatches_(e,s,r)}wve(e)}}function SIt(e,r,a){let{scope_:i}=e;if(K8(a)){let s=a[Af];if(Dj(s,i))s.callbacks_.push(function(){bj(e);let c=QK(s);zve(e,a,c,r)})}else if(SZ(a))e.callbacks_.push(function(){let l=hM(e);if(e.type_===3){if(l.has(a))kj(a,i.handledSet_,i)}else if(YK(l,r,e.type_)===a){if(i.drafts_.length>1&&(e.assigned_.get(r)??!1)===!0&&e.copy_)kj(YK(e.copy_,r,e.type_),i.handledSet_,i)}})}function kj(e,r,a){if(!a.immer_.autoFreeze_&&a.unfinalizedDrafts_<1)return e;if(K8(e)||r.has(e)||!SZ(e)||Ej(e))return e;return r.add(e),Rj(e,(i,s)=>{if(K8(s)){let l=s[Af];if(Dj(l,a)){let c=QK(l);Sj(e,i,c,e.type_),wve(l)}}else if(SZ(s))kj(s,r,a)}),e}function LIt(e,r){let a=Pj(e),i={type_:a?1:0,scope_:r?r.scope_:bve(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,l=Cj;if(a)s=[i],l=TO;let{revoke:c,proxy:d}=Proxy.revocable(s,l);return i.draft_=d,i.revoke_=c,[d,i]}var Cj={get(e,r){if(r===Af)return e;let a=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof r==="string";if(i){if(a?.isArrayOperationMethod(r))return a.createMethodInterceptor(e,r)}let s=hM(e);if(!FK(s,r,e.type_))return CIt(e,s,r);let l=s[r];if(e.finalized_||!SZ(l))return l;if(i&&e.operationMethod&&a?.isMutatingArrayMethod(e.operationMethod)&&xIt(r))return l;if(l===BK(e.base_,r)||kIt(e,r,l)){bj(e);let c=e.type_===1?+r:r,d=GK(e.scope_,l,e,c);return e.copy_[c]=d}return l},has(e,r){return r in hM(e)},ownKeys(e){return Reflect.ownKeys(hM(e))},set(e,r,a){let i=Lve(hM(e),r);if(i?.set)return i.set.call(e.draft_,a),!0;if(!e.modified_){let s=BK(hM(e),r),l=s?.[Af];if(l&&l.base_===a)return e.copy_[r]=a,e.assigned_.set(r,!1),!0;if(MIt(a,s)&&(a!==void 0||FK(e.base_,r,e.type_)))return!0;bj(e),KK(e)}if(e.copy_[r]===a&&(a!==void 0||FK(e.copy_,r,e.type_))||Number.isNaN(a)&&Number.isNaN(e.copy_[r]))return!0;return e.copy_[r]=a,e.assigned_.set(r,!0),SIt(e,r,a),!0},deleteProperty(e,r){if(bj(e),BK(e.base_,r)!==void 0||r in e.base_)e.assigned_.set(r,!1),KK(e);else e.assigned_.delete(r);if(e.copy_)delete e.copy_[r];return!0},getOwnPropertyDescriptor(e,r){let a=hM(e),i=Reflect.getOwnPropertyDescriptor(a,r);if(!i)return i;return{[_j]:!0,[UK]:e.type_!==1||r!=="length",[zj]:i[zj],[RO]:a[r]}},defineProperty(){Ru(11)},getPrototypeOf(e){return YR(e.base_)},setPrototypeOf(){Ru(12)}},TO={};for(let e in Cj){let r=Cj[e];TO[e]=function(){let a=arguments;return a[0]=a[0][0],r.apply(this,a)}}TO.deleteProperty=function(e,r){return TO.set.call(this,e,r,void 0)};TO.set=function(e,r,a){return Cj.set.call(this,e[0],r,a,e[0])};function BK(e,r){let a=e[Af];return(a?hM(a):e)[r]}function kIt(e,r,a){if(e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(r)||!SZ(a)||a[Af])return!1;return e.baseRefs_.has(a)}function CIt(e,r,a){let i=Lve(r,a);return i?RO in i?i[RO]:i.get?.call(e.draft_):void 0}function Lve(e,r){if(!(r in e))return;let a=YR(e);while(a){let i=Object.getOwnPropertyDescriptor(a,r);if(i)return i;a=YR(a)}return}function KK(e){if(!e.modified_){if(e.modified_=!0,e.parent_)KK(e.parent_)}}function bj(e){if(!e.copy_)e.assigned_=new Map,e.copy_=qK(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var IIt=class{constructor(e){if(this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,a,i)=>{if(UR(r)&&!UR(a)){let l=a;a=r;let c=this;return function(m=l,...g){return c.produce(m,(x)=>a.call(this,x,...g))}}if(!UR(a))Ru(6);if(i!==void 0&&!UR(i))Ru(7);let s;if(SZ(r)){let l=gve(this),c=GK(l,r,void 0),d=!0;try{s=a(c),d=!1}finally{if(d)VK(l);else WK(l)}return hve(l,i),Mve(s,l)}else if(!r||!XK(r)){if(s=a(r),s===void 0)s=r;if(s===vve)s=void 0;if(this.autoFreeze_)JK(s,!0);if(i){let l=[],c=[];AL(HK).generateReplacementPatches_(r,s,{patches_:l,inversePatches_:c}),i(l,c)}return s}else Ru(1,r)},this.produceWithPatches=(r,a)=>{if(UR(r))return(c,...d)=>this.produceWithPatches(c,(m)=>r(m,...d));let i,s;return[this.produce(r,a,(c,d)=>{i=c,s=d}),i,s]},jK(e?.autoFreeze))this.setAutoFreeze(e.autoFreeze);if(jK(e?.useStrictShallowCopy))this.setUseStrictShallowCopy(e.useStrictShallowCopy);if(jK(e?.useStrictIteration))this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){if(!SZ(e))Ru(8);if(K8(e))e=RIt(e);let r=gve(this),a=GK(r,e,void 0);return a[Af].isManual_=!0,WK(r),a}finishDraft(e,r){let a=e&&e[Af];if(!a||!a.isManual_)Ru(9);let{scope_:i}=a;return hve(i,r),Mve(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,r){let a;for(a=r.length-1;a>=0;a--){let s=r[a];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}if(a>-1)r=r.slice(a+1);let i=AL(HK).applyPatches_;if(K8(e))return i(e,r);return this.produce(e,(s)=>i(s,r))}};function GK(e,r,a,i){let[s,l]=Tj(r)?AL(Lj).proxyMap_(r,a):Aj(r)?AL(Lj).proxySet_(r,a):LIt(r,a);if((a?.scope_??bve()).drafts_.push(s),l.callbacks_=a?.callbacks_??[],l.key_=i,a&&i!==void 0)zIt(a,l,i);else l.callbacks_.push(function(m){m.mapSetPlugin_?.fixSetContents(l);let{patchPlugin_:g}=m;if(l.modified_&&g)g.generatePatches_(l,[],m)});return s}function RIt(e){if(!K8(e))Ru(10,e);return kve(e)}function kve(e){if(!SZ(e)||Ej(e))return e;let r=e[Af],a,i=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,a=qK(e,r.scope_.immer_.useStrictShallowCopy_),i=r.scope_.immer_.shouldUseStrictIteration()}else a=qK(e,!0);if(Rj(a,(s,l)=>{Sj(a,s,kve(l))},i),r)r.finalized_=!1;return a}var PIt=globalThis.Iterator,jBn=typeof PIt?.from==="function";var TIt=new IIt,Cve=TIt.produce;var AIt=(e)=>(r,a,i)=>(i.setState=(s,l,...c)=>{let d=typeof s==="function"?Cve(s):s;return r(d,l,...c)},e(i.setState,a,i)),Ive=AIt;var zr=Rr()(ore(Ive((e,r)=>({members:[],loading:!1,fetchMembers:async(a,i,s)=>{if(!s&&r().loadedTeamId===a&&r().loadedWithAgents===i)return;e({loading:!0});try{let l=await A.api.teams[":teamId"].members.$get({param:{teamId:a},query:{includeAgents:i?"true":"false"}});if(!l.ok)throw Error("failed to fetch members");let c=await l.json();e({members:c||[],loadedTeamId:a,loadedProjectId:void 0,loadedWithAgents:i,loading:!1})}catch{e({loading:!1})}},fetchProjectMembers:async(a,i,s)=>{if(!s&&r().loadedProjectId===a&&r().loadedWithAgents===i)return;e({loading:!0});try{let l=await A.api.projects[":projectId"].members.$get({param:{projectId:a},query:{includeAgents:i?"true":"false"}});if(!l.ok)throw Error("failed to fetch project members");let c=await l.json();e({members:c||[],loadedProjectId:a,loadedTeamId:void 0,loadedWithAgents:i,loading:!1})}catch{e({loading:!1})}}}))));function Rve({teamId:e,onSendMessage:r,isSubmitting:a}){let[i,s]=u(""),[l,c]=u([]),[d,m]=u(!1),[g,x]=u(""),[v,b]=u(0),_=y(null),z=y(null),k=y(null),{members:U,fetchMembers:P}=zr();h(()=>{if(e)P(e,!0,!0)},[e,P]);let{mutateAsync:T}=B({mutationFn:async(Se)=>{let He=await A.api.teams[":teamId"].kanban.attachments.$post({param:{teamId:e},json:Se});if(!He.ok)throw Error("Failed to get attachment upload url");return await He.json()}}),G=(Se)=>{let He=Se.target.value;if(s(He),_.current)_.current.style.height="auto",_.current.style.height=`${Math.min(_.current.scrollHeight,160)}px`;let dt=Se.target.selectionStart||0,Ge=He.slice(0,dt),yt=Ge.lastIndexOf("@");if(yt!==-1){let Ft=yt===0,Bt=Ge[yt-1];if(Ft||/\s/.test(Bt)){let _t=Ge.slice(yt+1);if(!/\s/.test(_t)){x(_t),m(!0);return}}}m(!1)},X=U.filter((Se)=>Se.name?.toLowerCase().includes(g.toLowerCase()));h(()=>{b(0)},[g,d]);let J=(Se)=>{if(!_.current)return;let He=_.current.selectionStart||0,dt=i.slice(0,He),Ge=i.slice(He),yt=dt.lastIndexOf("@");if(yt!==-1){let Ft=`${i.slice(0,yt)}@${Se.name} ${Ge}`;s(Ft),m(!1),setTimeout(()=>{if(_.current){_.current.focus();let Bt=yt+Se.name.length+2;_.current.setSelectionRange(Bt,Bt)}},0)}},ee=async(Se)=>{let He=Array.from(Se.target.files||[]);if(He.length===0)return;let dt=He.map((Ge)=>({id:`${Date.now()}-${Ge.name}-${Math.random()}`,file:Ge,isUploading:!0}));c((Ge)=>[...Ge,...dt]);for(let Ge of dt)try{let yt=await T({fileName:Ge.file.name,size:Ge.file.size,contentType:Ge.file.type||"application/octet-stream"});if(!(await fetch(yt.uploadUrl,{method:"PUT",body:Ge.file,headers:{"Content-Type":Ge.file.type||"application/octet-stream"}})).ok)throw Error("Failed to upload file to storage");c((Bt)=>Bt.map((de)=>de.id===Ge.id?{...de,isUploading:!1,payload:{id:yt.id,name:yt.name,key:yt.key,sizeByte:yt.sizeByte,contentType:yt.contentType,proxyType:yt.proxyType}}:de))}catch(yt){let Ft=yt instanceof Error?yt.message:"Upload failed";M.error(`${Ge.file.name}: ${Ft}`),c((Bt)=>Bt.map((de)=>de.id===Ge.id?{...de,isUploading:!1,error:Ft}:de))}if(z.current)z.current.value=""},re=(Se)=>{c((He)=>He.filter((dt)=>dt.id!==Se))},oe=l.some((Se)=>Se.isUploading),ie=l.map((Se)=>Se.payload).filter((Se)=>!!Se),ye=(i.trim().length>0||ie.length>0)&&!oe,We=async()=>{if(!ye||a)return;try{if(await r(i.trim(),ie.length>0?ie:void 0),s(""),c([]),_.current)_.current.style.height="auto"}catch{}},Ye=(Se)=>{if(d&&X.length>0){if(Se.key==="ArrowDown"){Se.preventDefault(),b((He)=>(He+1)%X.length);return}if(Se.key==="ArrowUp"){Se.preventDefault(),b((He)=>(He-1+X.length)%X.length);return}if(Se.key==="Enter"||Se.key==="Tab"){Se.preventDefault();let He=X[v];if(He)J(He);return}if(Se.key==="Escape"){m(!1);return}}if(Se.key==="Enter"&&(Se.metaKey||Se.ctrlKey))Se.preventDefault(),We()};return o("div",{className:"relative flex flex-col w-full border border-border focus-within:border-foreground/40 bg-card rounded-2xl p-2.5 shadow-2xs transition-all",children:[d&&X.length>0&&t("div",{ref:k,className:"absolute bottom-full left-0 mb-2 w-64 max-h-48 overflow-y-auto rounded-xl border border-border bg-popover p-1 shadow-lg z-50",children:X.map((Se,He)=>o("button",{type:"button",onClick:()=>J(Se),className:`w-full flex items-center gap-2 px-2.5 py-1.5 rounded-lg text-xs transition-colors text-left ${He===v?"bg-primary text-primary-foreground font-medium":"hover:bg-muted text-foreground"}`,children:[o(Ce,{className:"w-5 h-5",children:[Se.image&&t(Ie,{src:Se.image}),t(Te,{className:"text-[9px]",children:Se.name?.slice(0,2).toUpperCase()})]}),t("span",{className:"truncate",children:Se.name})]},Se.id))}),l.length>0&&t("div",{className:"flex flex-wrap gap-1.5 pb-2 mb-1.5 border-b border-border/50",children:l.map((Se)=>{let He=Se.file.type.startsWith("image/");return o("div",{className:"flex items-center gap-1.5 pl-2 pr-1.5 py-1 rounded-lg bg-muted/60 border border-border text-xs max-w-[200px]",children:[Se.isUploading?t(O,{className:"w-3.5 h-3.5 animate-spin text-primary shrink-0"}):He?t(eo,{className:"w-3.5 h-3.5 text-primary shrink-0"}):t(qn,{className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),o("div",{className:"min-w-0 flex-1 truncate",children:[t("span",{className:"truncate block font-medium text-[11px]",children:Se.file.name}),t("span",{className:"text-[9px] text-muted-foreground font-mono",children:Wr(Se.file.size)})]}),t("button",{type:"button",onClick:()=>re(Se.id),className:"p-0.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted shrink-0",children:t(Ne,{className:"w-3 h-3"})})]},Se.id)})}),t("textarea",{ref:_,value:i,onChange:G,onKeyDown:Ye,placeholder:B4e(),rows:1,className:"w-full min-h-[44px] max-h-[160px] bg-transparent border-0 focus:outline-hidden focus-visible:ring-0 resize-none text-xs text-foreground placeholder:text-muted-foreground/70 p-1 font-sans leading-relaxed"}),o("div",{className:"flex items-center justify-between pt-1 mt-1 border-t border-border/40",children:[o("div",{className:"flex items-center gap-1",children:[t("input",{ref:z,type:"file",multiple:!0,className:"hidden",onChange:ee}),t(E,{type:"button",variant:"ghost",size:"icon-xs",onClick:()=>z.current?.click(),className:"h-7 w-7 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted",title:"Attach files",disabled:a,children:t(ka,{className:"w-3.5 h-3.5"})}),t("span",{className:"text-[10px] text-muted-foreground/60 hidden sm:inline pl-1",children:"Cmd+Enter to send"})]}),t(E,{type:"button",size:"icon-xs",onClick:We,disabled:!ye||a,className:"h-7 w-7 rounded-full shadow-xs bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-40 transition-all shrink-0",title:"Send comment",children:a||oe?t(O,{className:"w-3.5 h-3.5 animate-spin"}):t(ea,{className:"w-3.5 h-3.5 stroke-[2.5]"})})]})]})}function Pve({teamId:e,taskId:r,initialComments:a}){let i=Q(),{data:s}=Z({queryKey:["teams",e,"me"],queryFn:async()=>{let b=await A.api.teams[":teamId"].me.$get({param:{teamId:e}});if(!b.ok)throw Error("Failed to fetch me");return await b.json()},enabled:!!e}),l=s?.role?.toLowerCase()==="owner"||s?.role?.toLowerCase()==="editor",{data:c,isLoading:d}=Z({queryKey:["teams",e,"kanban","tasks",r,"comments"],queryFn:async()=>{let b=await A.api.teams[":teamId"].kanban.tasks[":taskId"].comments.$get({param:{teamId:e,taskId:r}});if(!b.ok)throw Error("Failed to fetch comments");return await b.json()},initialData:a?{data:a}:void 0,enabled:!!e&&!!r,refetchInterval:4000}),m=c?.data||[],{mutateAsync:g,isPending:x}=B({mutationFn:async({body:b,attachments:_})=>{let z=await A.api.teams[":teamId"].kanban.tasks[":taskId"].comments.$post({param:{teamId:e,taskId:r},json:{body:b,attachments:_}});if(!z.ok){let k=await z.json().catch(()=>({message:Tn()}));throw Error(k.message||Tn())}return await z.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","tasks",r,"comments"]}),i.invalidateQueries({queryKey:["teams",e,"kanban","task",r]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]})},onError:(b)=>{M.error(b.message)}}),v=async(b,_)=>{await g({body:b,attachments:_})};return o("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[t(ce,{className:"flex-1 min-h-0 p-3.5 [&>div>div]:block!",children:t("div",{className:"space-y-3 pr-1 pb-2 w-full max-w-full",children:d?t("div",{className:"flex items-center justify-center py-12",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):m.length===0?o("div",{className:"flex flex-col items-center justify-center py-16 text-center text-xs text-muted-foreground/80 space-y-2",children:[t("div",{className:"w-10 h-10 rounded-full bg-muted/60 flex items-center justify-center",children:t(vo,{className:"w-5 h-5 opacity-40"})}),t("p",{className:"font-medium",children:cg()})]}):m.map((b)=>t(uve,{teamId:e,taskId:r,comment:b,currentUserId:s?.id,isOwnerOrAdmin:l},b.id))})}),t("div",{className:"p-3 border-t border-border/60 bg-card/60 shrink-0",children:t(Rve,{teamId:e,onSendMessage:v,isSubmitting:x})})]})}function EIt(e){let r=e.data||{};switch(e.type){case lf.CREATED:return"Created task";case lf.STATUS_CHANGED:return`Changed status from ${e.fromStatus?oo(e.fromStatus):"None"} to ${e.toStatus?oo(e.toStatus):"None"}`;case lf.ASSIGNED:return"Assigned task";case lf.UNASSIGNED:return"Unassigned task";case lf.PRIORITY_CHANGED:return`Changed priority to ${String(r.to||"")}`;case lf.GOAL_CHANGED:return"Updated goal association";case lf.DEPENDENCY_ADDED:return"Added prerequisite dependency";case lf.DEPENDENCY_REMOVED:return"Removed prerequisite dependency";case lf.CHANGES_REQUESTED:return`Requested changes: "${String(r.reason||"")}"`;case lf.BLOCKED:return`Task blocked: "${String(r.reason||r.blockReason||"")}"`;case lf.UNBLOCKED:return"Task unblocked";case lf.COMMENTED:return"Added a comment";default:return e.type}}function Tve({teamId:e,taskId:r,initialEvents:a}){let{data:i,isLoading:s}=Z({queryKey:["teams",e,"kanban","tasks",r,"events"],queryFn:async()=>{let c=await A.api.teams[":teamId"].kanban.tasks[":taskId"].events.$get({param:{teamId:e,taskId:r}});if(!c.ok)throw Error("Failed to fetch events");return await c.json()},initialData:a?{data:a}:void 0,enabled:!!e&&!!r}),l=i?.data||[];return t(ce,{className:"h-full p-3",children:t("div",{className:"space-y-4 pr-2",children:t("div",{className:"space-y-2",children:s?t("div",{className:"flex items-center justify-center py-6",children:t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})}):l.length===0?t("div",{className:"py-6 text-center text-xs text-muted-foreground",children:CJe()}):t("div",{className:"relative pl-5 space-y-3 before:absolute before:left-[4px] before:top-2 before:bottom-2 before:w-[2px] before:bg-border/60",children:l.map((c)=>o("div",{className:"relative flex items-start gap-2 text-xs",children:[t("div",{className:"absolute -left-5 top-[3px] w-2.5 h-2.5 rounded-full bg-background border-2 border-primary shrink-0"}),o("div",{className:"flex-1 min-w-0",children:[o("div",{className:"flex items-center justify-between gap-1",children:[t("span",{className:"font-medium text-foreground truncate",children:c.actor?.name||"System"}),t("span",{className:"text-[10px] text-muted-foreground font-mono shrink-0",children:gr(new Date(c.createdAt),"MM/dd HH:mm")})]}),t("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:EIt(c)})]})]},c.id))})})})})}function Ave({teamId:e,task:r}){let[a,i]=u("comments");return t("div",{className:"flex flex-col h-full bg-sidebar/30 border-l border-border/60 overflow-hidden",children:o(So,{value:a,onValueChange:(s)=>i(s),className:"flex flex-col h-full",children:[t("div",{className:"px-3 pt-2.5 pb-1 border-b border-border/60 bg-card/50 shrink-0",children:o(Eo,{className:"w-full grid grid-cols-2 h-8 bg-muted/60",children:[o(Kr,{value:"comments",className:"text-xs h-7",children:[t("span",{children:pd()}),r.comments.length>0&&o("span",{className:"text-[10px] font-mono text-muted-foreground ml-1",children:["(",r.comments.length,")"]})]}),t(Kr,{value:"activity",className:"text-xs h-7",children:t("span",{children:BAe()})})]})}),o("div",{className:"flex-1 overflow-hidden",children:[t(kn,{value:"comments",className:"h-full m-0 data-[state=active]:flex data-[state=active]:flex-col",children:t(Pve,{teamId:e,taskId:r.id,initialComments:r.comments})}),t(kn,{value:"activity",className:"h-full m-0 data-[state=active]:block",children:t(Tve,{teamId:e,taskId:r.id,initialEvents:r.events})})]})]})})}function Xd({teamId:e,taskId:r,isOpen:a,onClose:i,canEdit:s=!0}){let{data:l,isLoading:c,error:d}=Z({queryKey:["teams",e,"kanban","task",r],queryFn:async()=>{if(!r)return null;let m=await A.api.teams[":teamId"].kanban.tasks[":taskId"].$get({param:{teamId:e,taskId:r}});if(!m.ok)throw Error("Failed to fetch task details");return await m.json()},enabled:!!e&&!!r&&a});return t(ue,{open:a,onOpenChange:(m)=>!m&&i(),children:o(ae,{className:"sm:max-w-5xl w-[95vw] h-[88vh] p-0 gap-0 flex flex-col overflow-hidden bg-background",children:[t(fe,{className:"px-5 py-3 border-b border-border/70 flex flex-row items-center justify-between space-y-0 shrink-0 bg-card/80",children:o("div",{className:"flex items-center gap-2 min-w-0 pr-4",children:[l?.isAgentTask&&o("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-semibold bg-orange-500/15 text-orange-600 dark:text-orange-400 border border-orange-500/30 shrink-0",children:[t(Ct,{className:"w-3.5 h-3.5"}),t("span",{children:zd()})]}),l?.status&&t("span",{className:C("px-2 py-0.5 rounded text-[11px] font-medium border uppercase shrink-0",F8(l.status)),children:oo(l.status)}),t(le,{className:"text-sm font-semibold truncate text-foreground",children:l?.title||E6e()})]})}),t("div",{className:"flex-1 flex flex-col md:flex-row overflow-hidden",children:c?t("div",{className:"flex-1 flex items-center justify-center p-12",children:t(O,{className:"w-8 h-8 animate-spin text-muted-foreground"})}):d||!l?t("div",{className:"flex-1 flex items-center justify-center p-12 text-xs text-muted-foreground",children:Dh()}):o(L,{children:[t("div",{className:"flex-1 md:w-2/3 h-full overflow-hidden flex flex-col",children:t(s8e,{teamId:e,task:l,canEdit:s})}),t("div",{className:"md:w-1/3 h-full overflow-hidden flex flex-col",children:t(Ave,{teamId:e,task:l})})]})})]})})}var DIt=[Qe.TODO,Qe.READY,Qe.IN_PROGRESS,Qe.IN_REVIEW,Qe.DONE,Qe.BLOCKED];function ef({teamId:e,assetId:r,assetName:a,isOpen:i,onClose:s}){let l=Q(),[c,d]=u(null),[m,g]=u(!1),[x,v]=u(Qe.TODO),[b,_]=u(""),{data:z,isLoading:k}=Z({queryKey:["teams",e,"kanban","assets",r,"tasks"],queryFn:async()=>{let oe=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks.$get({param:{teamId:e,assetId:r}});if(!oe.ok)throw Error("Failed to fetch linked tasks");return await oe.json()},enabled:!!e&&!!r&&i}),U=z?.data||[],P=N(()=>new Set(U.map((oe)=>oe.id)),[U]),{data:T,isLoading:G}=Z({queryKey:["teams",e,"kanban","tasks","status",x],queryFn:async()=>{let oe=await A.api.teams[":teamId"].kanban.tasks.$get({param:{teamId:e},query:{status:x,first:"100"}});if(!oe.ok)return{data:[]};return await oe.json()},enabled:!!e&&m&&i}),X=T?.data||[],J=N(()=>{let oe=b.trim().toLowerCase();return X.filter((ie)=>{if(P.has(ie.id))return!1;if(!oe)return!0;return ie.title.toLowerCase().includes(oe)})},[X,P,b]),ee=B({mutationFn:async(oe)=>{let ie=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks.$post({param:{teamId:e,assetId:r},json:{taskId:oe}});if(!ie.ok)throw Error("Failed to link task");return await ie.json()},onSuccess:()=>{l.invalidateQueries({queryKey:["teams",e,"kanban","assets",r,"tasks"]}),l.invalidateQueries({queryKey:["teams",e,"kanban"]}),M.success(Yse())}}),re=B({mutationFn:async(oe)=>{let ie=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks[":taskId"].$delete({param:{teamId:e,assetId:r,taskId:oe}});if(!ie.ok)throw Error("Failed to unlink task");return await ie.json()},onSuccess:()=>{l.invalidateQueries({queryKey:["teams",e,"kanban","assets",r,"tasks"]}),l.invalidateQueries({queryKey:["teams",e,"kanban"]}),M.success(qse())}});return o(L,{children:[t(ue,{open:i,onOpenChange:(oe)=>!oe&&s(),children:o(ae,{className:"sm:max-w-2xl flex flex-col h-[520px] p-0 overflow-hidden",children:[t(fe,{className:"p-4 border-b flex flex-row items-center justify-between space-y-0 shrink-0",children:o("div",{className:"flex items-center gap-2 min-w-0 pr-4",children:[t(Do,{className:"w-5 h-5 text-primary shrink-0"}),o("div",{className:"min-w-0",children:[t(le,{className:"text-sm font-semibold truncate",children:Wf()}),a&&t("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:a})]})]})}),t("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden bg-background",children:t(ce,{className:"flex-1 min-h-0 p-4 [&>div>div]:block!",children:k?t("div",{className:"flex items-center justify-center p-12",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):U.length===0?o("div",{className:"flex flex-col items-center justify-center p-12 text-center text-xs text-muted-foreground gap-2",children:[t(Do,{className:"w-8 h-8 opacity-30"}),t("p",{children:d$e()})]}):t("div",{className:"space-y-2",children:U.map((oe)=>o("div",{onClick:()=>d(oe.id),className:"flex items-center justify-between gap-3 p-2.5 rounded-lg border border-border/60 bg-muted/20 hover:bg-muted/50 cursor-pointer transition-all hover:border-border",children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[oe.isAgentTask&&t("span",{className:"p-1 rounded bg-orange-500/15 text-orange-600 dark:text-orange-400 shrink-0",children:t(Ct,{className:"w-3.5 h-3.5"})}),t("span",{className:C("text-[10px] px-1.5 py-0.5 rounded border uppercase font-medium shrink-0",F8(oe.status)),children:oo(oe.status)}),t("span",{className:C("text-[10px] px-1.5 py-0.5 rounded border uppercase font-medium shrink-0",la(oe.priority)),children:aa(oe.priority)}),t("span",{className:"text-xs font-medium text-foreground truncate flex-1",children:oe.title})]}),o("div",{className:"flex items-center gap-2 shrink-0",children:[oe.assignee&&o("div",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",title:oe.assignee.name,children:[o(Ce,{className:"w-4 h-4 text-[9px]",children:[t(Ie,{src:oe.assignee.image||void 0}),t(Te,{children:oe.assignee.name.slice(0,1).toUpperCase()})]}),t("span",{className:"hidden sm:inline text-[11px] max-w-[70px] truncate",children:oe.assignee.name})]}),t(E,{type:"button",variant:"ghost",size:"sm",className:"h-6 w-6 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:(ie)=>{ie.stopPropagation(),re.mutate(oe.id)},title:ZMt(),children:t(Ne,{className:"w-3.5 h-3.5"})})]})]},oe.id))})})}),o("div",{className:"p-3 px-4 border-t bg-muted/10 flex items-center justify-between shrink-0",children:[o(ht,{open:m,onOpenChange:g,children:[t(gt,{asChild:!0,children:o(E,{variant:"outline",size:"sm",className:"gap-1.5 text-xs h-8",children:[t(pe,{className:"w-3.5 h-3.5"}),t("span",{children:wWe()})]})}),o(At,{className:"w-80 sm:w-96 p-0",align:"start",children:[t("div",{className:"p-2 border-b",children:o("div",{className:"relative",children:[t(Ut,{className:"w-3.5 h-3.5 absolute left-2.5 top-2.5 text-muted-foreground"}),t(q,{placeholder:fct(),value:b,onChange:(oe)=>_(oe.target.value),className:"pl-8 h-8 text-xs bg-muted/30",autoFocus:!0})]})}),t("div",{className:"flex border-b overflow-x-auto p-1 gap-1 bg-muted/20",children:DIt.map((oe)=>t("button",{type:"button",onClick:()=>v(oe),className:C("px-2 py-1 text-[11px] font-medium rounded transition-colors whitespace-nowrap",x===oe?"bg-background shadow-xs text-foreground font-semibold":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:oo(oe)},oe))}),t(ce,{className:"h-56",children:G?o("div",{className:"flex items-center justify-center p-6 text-xs text-muted-foreground",children:[t(O,{className:"w-4 h-4 animate-spin mr-1.5"}),t("span",{children:wd()})]}):J.length===0?t("div",{className:"p-6 text-center text-xs text-muted-foreground",children:tle()}):t("div",{className:"p-1 space-y-0.5",children:J.map((oe)=>o("button",{type:"button",onClick:()=>{ee.mutate(oe.id),g(!1)},className:"w-full text-left p-2 rounded hover:bg-muted/60 transition-colors flex items-center justify-between gap-2 text-xs group",children:[t("span",{className:"truncate flex-1 font-medium text-foreground",children:oe.title}),t("span",{className:C("text-[10px] px-1.5 py-0.5 rounded border uppercase shrink-0",F8(oe.status)),children:oo(oe.status)})]},oe.id))})})]})]}),t(E,{variant:"ghost",size:"sm",onClick:s,className:"text-xs h-8",children:Lc()})]})]})}),c&&t(Xd,{teamId:e,taskId:c,isOpen:!0,onClose:()=>d(null)})]})}function Eve({teamId:e,projectId:r,projectName:a,ancestorFolders:i,currentAsset:s,isRootFolder:l,customTerminalBreadcrumb:c,displayStyle:d,onDisplayStyleChange:m,isLeftSidebarCollapsed:g,onLeftSidebarToggle:x,isRightSidebarCollapsed:v,onRightSidebarToggle:b,isChatbotOpen:_=!1,onChatbotToggle:z,isPublic:k=!1,onFolderClick:U,onRename:P,onDelete:T,fileId:G,shareId:X,allowDownload:J=!0,downloadInfo:ee,versions:re,compareMode:oe=!1,canCompareVersions:ie=!1,onCompareVersions:ye}){let We=Re(),{canEdit:Ye}=Dt(r),{openMobileMenu:Se}=Vk(),[He,dt]=u(!1),[Ge,yt]=u(!1),[Ft,Bt]=u(!1),de=G||s.id,_t=s.name==="Recently Deleted",Wt=s.name==="All Collections",Fe=!k&&!l&&!_t&&!Wt&&!oe&&!!de,{data:fr}=Z({queryKey:["teams",e,"kanban","assets",de,"tasks"],queryFn:async()=>{if(!e||!de)return{data:[],total:0};let cr=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks.$get({param:{teamId:e,assetId:de}});if(!cr.ok)return{data:[],total:0};return await cr.json()},enabled:!!e&&!!de&&Fe}),sr=fr?.total??fr?.data?.length??0,Jt=!1,Fr=(cr)=>{if(!G)return;if(k&&X){We({to:"/share/$shareId/files/$fileId",params:{shareId:X,fileId:G},search:(uo)=>({...uo,version:cr})});return}if(!r)return;We({to:"/projects/$projectId/files/$fileId",params:{projectId:r,fileId:G},search:(uo)=>({...uo,version:cr})})},Kt=async(cr)=>{if(!G)return;try{let uo=X?await A.api.shares[":shareId"].files[":fileId"]["download-url"].$post({param:{shareId:X,fileId:G},json:{key:cr}}):await A.api.files["download-url"].$post({json:{key:cr,assetId:G}});if(!uo.ok)return;let{url:lo}=await uo.json(),No=document.createElement("a");No.href=lo,No.download="",document.body.appendChild(No),No.click(),document.body.removeChild(No)}catch{}},Ir=s.proxyType!=="audio"&&(ee?.videoTranscodes?.length??0)>0,wr=Boolean(c||!l&&!oe),Tr={name:a,path:k?void 0:`/projects/${r}`,id:"root"},Zr=i.slice().reverse().map((cr)=>({name:cr.name||"",path:k?void 0:`/projects/${r}/folders/${cr.id}`,id:cr.id})),co=wr?Zr:Zr.slice(0,-1),io=!wr&&Zr.length>0?Zr[Zr.length-1]:null,xa=()=>{if(c)return t("span",{className:"truncate rounded px-2 py-1 text-sm font-medium text-foreground",children:c});if(!l&&!oe){if(s.type==="folder")return t("span",{className:"truncate rounded px-2 py-1 text-sm font-medium text-foreground",children:s.name});return o(he,{modal:!1,open:Ft,onOpenChange:Bt,children:[o("div",{className:"flex items-center gap-1 truncate rounded px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground cursor-pointer select-none",onClick:()=>Bt((cr)=>!cr),children:[t("span",{className:"truncate",children:s.name}),s.version!==void 0&&o(be,{variant:"outline",className:"px-1 py-0 text-xs shrink-0",children:["v",s.version]}),t(ge,{asChild:!0,onClick:(cr)=>cr.stopPropagation(),onPointerDown:(cr)=>cr.stopPropagation(),children:t("button",{type:"button","aria-label":s.name,className:"flex items-center justify-center p-0.5 rounded shrink-0 focus:outline-none",children:t(ve,{className:"h-4 w-4 shrink-0"})})})]}),o(Ae,{className:"w-56",align:"center",children:[J&&(Ir?o(ps,{children:[t(ms,{className:"flex items-center gap-2",children:t("span",{children:hr()})}),t(ra,{children:o(hs,{className:"w-48",children:[t(Qr,{children:hr()}),ee?.videoTranscodes?.map((cr)=>{let uo=bs(cr),lo=cr.hdr?`${uo} (HDR)`:uo;return o(K,{onClick:()=>Kt(cr.key),className:"flex items-center justify-between",children:[t("span",{children:lo}),t("span",{className:"text-xs text-muted-foreground",children:"MP4"})]},cr.key||`${uo}-${cr.hdr?"hdr":"sdr"}`)}),ee?.originalKey&&o(L,{children:[t(Vt,{}),o(K,{onClick:()=>Kt(ee.originalKey),className:"flex items-center justify-between",children:[t("span",{children:"Original"}),t("span",{className:"text-xs text-muted-foreground",children:s.name?.split(".").pop()?.toUpperCase()||"RAW"})]})]})]})})]}):t(K,{onClick:()=>ee?.originalKey&&Kt(ee.originalKey),disabled:!ee?.originalKey,children:hr()})),Ye&&P&&t(K,{onClick:P,children:Fo()}),Ye&&T&&t(K,{onClick:T,className:"text-destructive focus:text-destructive",children:at()}),ie&&ye&&o(L,{children:[t(Vt,{}),o(K,{onClick:()=>ye(),children:[t(o8,{className:"h-4 w-4"}),t("span",{children:J4e()})]})]}),re&&re.length>0&&o(L,{children:[t(Vt,{}),o(ps,{children:[o(ms,{className:"flex items-center gap-2",children:[t(In,{className:"h-4 w-4"}),t("span",{children:"Versions"})]}),t(ra,{children:o(hs,{className:"w-80 p-1",children:[t("div",{className:"flex flex-col gap-1 max-h-96 overflow-y-auto",children:re.map((cr)=>{let uo=s.version===cr.version;return o(K,{onClick:()=>Fr(cr.id),className:"flex items-center gap-3 py-2 px-3 rounded-md cursor-pointer focus:bg-accent focus:text-accent-foreground",children:[o("div",{className:"flex-shrink-0 flex items-center justify-center bg-muted dark:bg-muted-foreground/20 text-muted-foreground dark:text-muted-foreground rounded-full px-2 py-0.5 text-xs font-semibold select-none min-w-[2rem]",children:["v",cr.version]}),t("div",{className:"h-10 w-16 flex-shrink-0 overflow-hidden rounded-md border border-border bg-muted flex items-center justify-center",children:cr.previewUrl?t("img",{src:cr.previewUrl,alt:cr.name||void 0,className:"h-full w-full object-cover"}):t(tr,{className:"h-4 w-4 text-muted-foreground"})}),o("div",{className:"flex flex-col flex-1 min-w-0 text-left",children:[t("span",{className:"truncate text-sm font-semibold text-foreground",children:cr.name}),t("span",{className:"truncate text-xs text-muted-foreground flex items-center gap-1",children:cr.agent?o(L,{children:[t(Ct,{className:"h-3 w-3 shrink-0"}),t("span",{className:"truncate",children:Jc({user:cr.creator?.name||Pl(),agent:cr.agent.name})})]}):cr.creator?.name||Pl()})]}),uo&&t(Pe,{className:"h-4 w-4 text-primary ml-auto flex-shrink-0"})]},cr.id)})}),t(Vt,{}),t("div",{className:"p-1",children:t("button",{className:"w-full text-center text-xs font-medium py-2 px-3 rounded-md bg-muted/80 hover:bg-muted text-foreground transition-colors cursor-pointer",onClick:()=>dt(!0),children:Jf()})})]})})]})]})]})]})}return null};return o("div",{className:"flex h-14 flex-nowrap items-center justify-between gap-2 border-b border-border bg-card px-4 py-2 overflow-hidden",children:[o("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden",children:[!k&&t(E,{variant:"ghost",size:"icon",onClick:()=>Se(),className:"md:hidden h-8 w-8 text-foreground hover:bg-accent shrink-0 -ml-2 mr-1","aria-label":"Open navigation menu",children:t(XZ,{className:"h-5 w-5"})}),!k&&o("div",{className:"hidden md:flex items-center gap-1 shrink-0",children:[t(Un,{to:`/teams/${e}`,className:"truncate rounded px-2 py-1 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground text-muted-foreground",children:iOe()}),t("span",{className:"text-muted-foreground",children:"/"})]}),wr||i.length>0?Tr.path?t(Un,{to:Tr.path,className:"min-w-0 max-w-[45%] md:max-w-none truncate rounded px-1.5 md:px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground shrink",children:Tr.name}):t("button",{onClick:()=>Tr.id&&U?.(Tr.id),className:"min-w-0 max-w-[45%] md:max-w-none truncate rounded px-1.5 md:px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground text-left shrink cursor-pointer",children:Tr.name}):t("span",{className:"min-w-0 flex-1 truncate rounded px-1.5 md:px-2 py-1 text-sm font-medium text-foreground",children:Tr.name}),co.length>0&&o("div",{className:"flex md:hidden items-center gap-1 shrink-0",children:[t("span",{className:"text-muted-foreground shrink-0",children:"/"}),o(he,{modal:!1,children:[t(ge,{asChild:!0,children:t("button",{className:"text-muted-foreground hover:text-foreground text-sm font-medium px-1.5 py-0.5 rounded hover:bg-accent shrink-0 cursor-pointer","aria-label":"Show omitted folders",children:"..."})}),t(Ae,{align:"start",children:co.map((cr,uo)=>t(K,{asChild:!0,children:cr.path?t(Un,{to:cr.path,className:"cursor-pointer",children:cr.name}):t("button",{onClick:()=>cr.id&&U?.(cr.id),className:"cursor-pointer w-full text-left",children:cr.name})},uo))})]}),t("span",{className:"text-muted-foreground shrink-0",children:"/"})]}),i.slice().reverse().map((cr)=>{let uo=k?void 0:`/projects/${r}/folders/${cr.id}`;return o("div",{className:"hidden md:flex items-center gap-1",children:[t("span",{className:"text-muted-foreground",children:"/"}),uo?t(Un,{to:uo,className:"truncate rounded px-2 py-1 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground text-foreground",children:cr.name}):t("button",{onClick:()=>cr.id&&U?.(cr.id),className:"truncate rounded px-2 py-1 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground text-foreground",children:cr.name})]},cr.id)}),(wr||!wr&&i.length>0)&&o("div",{className:"flex items-center gap-1 min-w-0 shrink overflow-hidden",children:[t("span",{className:C("text-muted-foreground shrink-0",co.length>0?"hidden md:inline":"inline"),children:"/"}),wr?xa():io&&t("span",{className:"min-w-0 truncate rounded px-2 py-1 text-sm font-medium text-foreground",children:io.name})]}),Fe&&o(E,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1.5 text-muted-foreground hover:text-foreground hover:bg-muted ml-1 cursor-pointer shrink-0",onClick:()=>yt(!0),title:Wf(),children:[t(Do,{className:"w-4 h-4"}),sr>0&&t("span",{className:"inline-flex items-center justify-center px-1.5 py-0.2 text-[10px] font-semibold rounded-full bg-muted-foreground/15 text-foreground",children:sr})]})]}),Fe&&Ge&&de&&t(ef,{teamId:e,assetId:de,assetName:s.name,isOpen:Ge,onClose:()=>yt(!1)}),G&&re&&re.length>0&&t(Qd,{open:He,onOpenChange:dt,stackId:G,canEdit:Ye,onStackDissolved:(cr)=>{dt(!1),We({to:"/projects/$projectId/files/$fileId",params:{projectId:r,fileId:cr}})},onVersionRemoved:(cr,uo)=>{if((s.version?re.find((No)=>No.version===s.version)?.id:void 0)===cr){let No=uo[0];if(No)We({to:"/projects/$projectId/files/$fileId",params:{projectId:r,fileId:G},search:(pn)=>({...pn,version:No.id})})}}}),o("div",{className:"hidden md:flex items-center gap-2",children:[o("div",{className:"flex flex-shrink-0 items-center gap-1 rounded-md border border-border bg-background p-1",children:[!G&&!k&&x&&t("button",{onClick:x,className:"rounded p-1.5 text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",title:g?"Show Left Sidebar":"Hide Left Sidebar",children:g?t(qge,{className:"h-4 w-4"}):t(Vge,{className:"h-4 w-4 fill-primary stroke-0"})}),!G&&!k&&d&&m&&o(L,{children:[t("button",{onClick:()=>m("card"),className:`rounded p-1.5 transition-colors ${d==="card"?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,title:"Card View",children:t(to,{className:"h-4 w-4"})}),t("button",{onClick:()=>m("list"),className:`rounded p-1.5 transition-colors ${d==="list"?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,title:"List View",children:t(Oo,{className:"h-4 w-4"})})]}),t("button",{onClick:b,className:`rounded p-1.5 transition-colors ${!v&&!_?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,title:v?"Show Right Sidebar":"Hide Right Sidebar",children:!v&&!_?t(Wge,{className:"h-4 w-4 fill-primary stroke-0"}):t(Hge,{className:"h-4 w-4"})})]}),!k&&z&&t(sn,{children:o(an,{children:[t(ln,{asChild:!0,children:t("span",{children:t("button",{disabled:!1,onClick:z,className:C("h-9 w-9 flex items-center justify-center rounded-full border border-border bg-background transition-colors",_?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground",!1),children:_?t(Kge,{className:"h-6 w-6 text-primary transition-colors"}):t(Ct,{className:"h-6 w-6 text-muted-foreground transition-colors"})})})}),t(cn,{children:t("p",{children:_?fVe():Idt()})})]})})]})]})}var $t=Rr()(Hk((e)=>({fileViewLeftSidebarCollapsed:!0,setFileViewLeftSidebarCollapsed:(r)=>e({fileViewLeftSidebarCollapsed:r}),fileViewRightSidebarCollapsed:!1,setFileViewRightSidebarCollapsed:(r)=>e({fileViewRightSidebarCollapsed:r}),fileListLeftSidebarCollapsed:!1,setFileListLeftSidebarCollapsed:(r)=>e({fileListLeftSidebarCollapsed:r}),fileListRightSidebarCollapsed:!0,setFileListRightSidebarCollapsed:(r)=>e({fileListRightSidebarCollapsed:r}),shareConfigLeftSidebarCollapsed:!1,setShareConfigLeftSidebarCollapsed:(r)=>e({shareConfigLeftSidebarCollapsed:r}),shareConfigRightSidebarCollapsed:!1,setShareConfigRightSidebarCollapsed:(r)=>e({shareConfigRightSidebarCollapsed:r}),viewModes:{},setViewMode:(r,a)=>e((i)=>({viewModes:{...i.viewModes,[r]:a}})),videoTimeDisplayMode:"standard",setVideoTimeDisplayMode:(r)=>e({videoTimeDisplayMode:r})}),{name:"ui-storage",storage:Lz(()=>localStorage)}));var $K="shumai_selected_agent_id",Dve=()=>{if(typeof window<"u"&&window.localStorage)return localStorage.getItem($K);return null},lr=Rr((e)=>({isChatbotOpen:!1,setIsChatbotOpen:(r)=>e({isChatbotOpen:r}),isHistoryMode:!1,setIsHistoryMode:(r)=>e({isHistoryMode:r}),currentSessionId:null,setCurrentSessionId:(r)=>e({currentSessionId:r}),chatAssets:[],addAssets:(r)=>e((a)=>{let i=new Set(a.chatAssets.map((l)=>l.id)),s=r.filter((l)=>!i.has(l.id));return{chatAssets:[...a.chatAssets,...s]}}),removeAsset:(r)=>e((a)=>({chatAssets:a.chatAssets.filter((i)=>i.id!==r)})),clearAssets:()=>e({chatAssets:[]}),messages:[],setMessages:(r)=>e({messages:r}),historySessions:[],setHistorySessions:(r)=>e({historySessions:r}),isStreaming:!1,setIsStreaming:(r)=>e({isStreaming:r}),selectedAgentId:Dve(),setSelectedAgentId:(r)=>{if(typeof window<"u"&&window.localStorage)if(r)localStorage.setItem($K,r);else localStorage.removeItem($K);e({selectedAgentId:r})},inputText:"",setInputText:(r)=>e({inputText:r}),scrollTop:0,isAtBottom:!0,setScrollState:(r,a)=>e({scrollTop:r,isAtBottom:a}),fetchHistorySessions:async(r)=>{try{let a=await A.api.teams[":teamId"].chat.sessions.$get({param:{teamId:r},query:{first:"50"}});if(a.ok){let i=await a.json();e({historySessions:i.data||[]})}}catch(a){console.error("Failed to fetch history sessions:",a)}},loadSession:async(r,a)=>{try{let i=await A.api.teams[":teamId"].chat.sessions[":sessionId"].messages.$get({param:{teamId:r,sessionId:a}});if(i.ok){let s=await i.json(),c=lr.getState().historySessions.find((d)=>d.id===a)?.agentId||null;e({currentSessionId:a,messages:s,isHistoryMode:!1,scrollTop:0,isAtBottom:!0,...c?{selectedAgentId:c}:{}})}else throw Error("Failed to load session messages")}catch(i){let s=i instanceof Error?i.message:"Failed to load session";M.error(s)}},deleteSession:async(r,a)=>{try{if((await A.api.teams[":teamId"].chat.sessions[":sessionId"].$delete({param:{teamId:r,sessionId:a}})).ok)M.success("Session deleted successfully"),e((s)=>({historySessions:s.historySessions.filter((l)=>l.id!==a),currentSessionId:s.currentSessionId===a?null:s.currentSessionId,messages:s.currentSessionId===a?[]:s.messages}));else throw Error("Failed to delete session")}catch(i){let s=i instanceof Error?i.message:"Failed to delete session";M.error(s)}},startNewSession:()=>{let r=Dve();e({currentSessionId:null,messages:[],chatAssets:[],inputText:"",scrollTop:0,isAtBottom:!0,...r?{selectedAgentId:r}:{}})},sendMessage:async(r,a,i,s,l,c,d,m,g)=>{let x=lr.getState();if(x.isStreaming)return;let v=`temp-${Date.now()}`,b={id:v,role:"custom",customType:"shumai_message",content:a,display:!0,details:{currentAsset:s?{id:s,name:"",type:"file"}:void 0,position:m!==void 0&&m!==null?{type:"time",seconds:m}:void 0,annotation:!!(d&&d.length>0),annotations:d||void 0,attachedFiles:g||void 0,referencedAssets:x.chatAssets.length>0?x.chatAssets.map((U)=>({id:U.id,name:U.name,type:U.type})):void 0},timestamp:Date.now()},_=[...x.messages,b];e({messages:_,isStreaming:!0,chatAssets:[],isAtBottom:!0});let z=x.chatAssets.map((U)=>U.id),k=x.selectedAgentId;if(!k){M.error("No agent selected");return}try{let U=await A.api.teams[":teamId"].chat.$post({param:{teamId:r},json:{agentId:k,textPrompt:a||void 0,attachedFiles:c&&c.length>0?c:void 0,assetIds:z&&z.length>0?z:void 0,sessionId:x.currentSessionId||void 0,contextAssetId:s,projectId:i,second:m??void 0,annotations:d&&d.length>0?d:void 0}});if(!U.ok)throw Error("Failed to start chat");let P=U.headers.get("x-session-id");if(P&&!x.currentSessionId)e({currentSessionId:P});let T=U.body?.getReader();if(!T)throw Error("No stream body");let G=new TextDecoder,X="";while(!0){let{done:ee,value:re}=await T.read();if(ee)break;X+=G.decode(re,{stream:!0});let oe=X.split(`
211
- `);X=oe.pop()||"";for(let ie of oe){let ye=ie.trim();if(!ye)continue;if(ye.startsWith("data: ")){let We=ye.slice(6);try{let Ye=JSON.parse(We);if(Ye.type==="session"){if(!lr.getState().currentSessionId)e({currentSessionId:Ye.sessionId})}else if(Ye.type==="entry"){let Se=Ye.entry,He=Se;if(He.role==="toolResult"&&typeof He.toolName==="string"&&["create_file","create_folder","create_version","rename_asset","move_assets","delete_asset"].includes(He.toolName)&&!He.isError)l?.();e((dt)=>{let Ge=dt.messages.some((de)=>de.id===Se.id),yt=(Se.role==="user"||Se.role==="custom"&&Se.customType==="shumai_message")&&!Ge,Ft=dt.messages.filter((de)=>{if(yt)return!de.id.startsWith("temp-");if(Se.role==="custom"&&Se.customType==="context_display_info"&&!Ge)return!de.id.startsWith("temp-context-");return!0}),Bt=Ft.findIndex((de)=>de.id===Se.id);if(Bt!==-1){let de=[...Ft];return de[Bt]=Se,{messages:de}}else return{messages:[...Ft,Se]}})}else if(Ye.type==="done"){if(Ye.status==="failed")M.error(Ye.error||"Workflow failed")}}catch(Ye){console.error("Error parsing SSE line:",Ye)}}}}lr.getState().fetchHistorySessions(r)}catch(U){let P=U instanceof Error?U.message:"Failed to send message";M.error(P),e((T)=>({messages:T.messages.filter((G)=>G.id!==v)}))}finally{e({isStreaming:!1})}},abortActiveSession:async(r)=>{let{currentSessionId:a,isStreaming:i}=lr.getState();if(!a||!i)return;try{if((await A.api.teams[":teamId"].chat.sessions[":sessionId"].abort.$post({param:{teamId:r,sessionId:a}})).ok)M.success("Agent execution stopped");else throw Error("Failed to abort agent execution")}catch(s){let l=s instanceof Error?s.message:"Failed to abort execution";M.error(l)}}}));var Ar=Rr((e,r)=>({metadata:{},isLoading:!1,error:null,fetchMetadata:async(a)=>{e({isLoading:!0,error:null});try{let i=await A.api.teams[":teamId"]["user-metadata"].$get({param:{teamId:a}});if(!i.ok)throw Error("failed to fetch user metadata");let l=(await i.json()).reduce((c,d)=>(c[d.key]=d.value,c),{});e({metadata:l,isLoading:!1})}catch(i){e({error:i instanceof Error?i.message:String(i),isLoading:!1})}},setMetadata:async(a,i,s)=>{let l=r().metadata;e((c)=>({metadata:{...c.metadata,[i]:s}}));try{if(!(await A.api.teams[":teamId"]["user-metadata"][":key"].$put({param:{teamId:a,key:i},json:{value:s}})).ok)throw Error("failed to update user metadata")}catch(c){e({metadata:l}),console.error(c)}},getMetadata:(a,i)=>{let s=r().metadata[a];return s!==void 0?s:i}}));S();var eG=768;function Lo(){let[e,r]=u(void 0);return h(()=>{let a=window.matchMedia(`(max-width: ${eG-1}px)`),i=()=>{r(window.innerWidth<eG)};return a.addEventListener("change",i),r(window.innerWidth<eG),()=>a.removeEventListener("change",i)},[]),!!e}function tf(){let{projectState:e}=un(),r=$t(),{isChatbotOpen:a,setIsChatbotOpen:i}=lr(),s=Ar((Bt)=>Boolean(Bt.metadata["appearance.hideAgent"]));if(Lo()&&e?.fileId)return null;if(!e)return t(OIt,{});let{teamId:c,projectId:d,projectName:m,ancestorFolders:g,currentAsset:x,isRootFolder:v,customTerminalBreadcrumb:b,fileId:_,downloadInfo:z,versions:k,isPublic:U,shareId:P,allowDownload:T,onFolderClick:G,onRename:X,onDelete:J,compareMode:ee,canCompareVersions:re,onCompareVersions:oe}=e,ie=!!_,ye=!!b,We=!!P&&!ie,Ye=ie?r.fileViewLeftSidebarCollapsed:We?r.shareConfigLeftSidebarCollapsed:r.fileListLeftSidebarCollapsed,Se=U?void 0:()=>ie?r.setFileViewLeftSidebarCollapsed(!r.fileViewLeftSidebarCollapsed):We?r.setShareConfigLeftSidebarCollapsed(!r.shareConfigLeftSidebarCollapsed):r.setFileListLeftSidebarCollapsed(!r.fileListLeftSidebarCollapsed),He=U&&e.isRightSidebarCollapsed!==void 0?e.isRightSidebarCollapsed:ie?r.fileViewRightSidebarCollapsed:We?r.shareConfigRightSidebarCollapsed:r.fileListRightSidebarCollapsed,dt=U&&e.onRightSidebarToggle?e.onRightSidebarToggle:()=>{if(!U&&a&&!s)if(i(!1),ie)r.setFileViewRightSidebarCollapsed(!1);else if(We)r.setShareConfigRightSidebarCollapsed(!1);else r.setFileListRightSidebarCollapsed(!1);else if(ie)r.setFileViewRightSidebarCollapsed(!r.fileViewRightSidebarCollapsed);else if(We)r.setShareConfigRightSidebarCollapsed(!r.shareConfigRightSidebarCollapsed);else r.setFileListRightSidebarCollapsed(!r.fileListRightSidebarCollapsed)},Ge=U||s?void 0:()=>{i(!a)},yt=d?r.viewModes[d]??"card":"card";return t(Eve,{teamId:c,projectId:d,projectName:m,ancestorFolders:g,currentAsset:x,isRootFolder:v,customTerminalBreadcrumb:b,displayStyle:ie||We||ye?void 0:yt,onDisplayStyleChange:ie||We||ye?void 0:U?void 0:(Bt)=>{if(d)r.setViewMode(d,Bt)},isLeftSidebarCollapsed:Ye,onLeftSidebarToggle:Se,isRightSidebarCollapsed:He,onRightSidebarToggle:dt,isChatbotOpen:!U&&!s&&a,onChatbotToggle:s?void 0:Ge,isPublic:U,shareId:P,allowDownload:T,fileId:_,downloadInfo:z,versions:k,onFolderClick:G,onRename:X,onDelete:J,compareMode:ee,canCompareVersions:re,onCompareVersions:oe})}function OIt(){let{toggleMobileMenu:e}=Vk();return o("div",{className:"flex h-14 items-center justify-between border-b border-border bg-card px-4 py-2 flex-shrink-0",children:[t(E,{variant:"ghost",size:"icon",onClick:e,className:"md:hidden text-foreground hover:bg-accent -ml-2","aria-label":"Open navigation menu",children:t(XZ,{className:"h-5 w-5"})}),t("div",{className:"flex flex-1 items-center justify-center",children:t(ZM,{className:"w-10 h-10 text-orange-600"})}),t("div",{className:"w-9 md:hidden"})]})}S();var NIt=(e,r,a,i,s,l,c,d)=>{let m=document.documentElement,g=["light","dark"];function x(_){(Array.isArray(e)?e:[e]).forEach((z)=>{let k=z==="class",U=k&&l?s.map((P)=>l[P]||P):s;k?(m.classList.remove(...U),m.classList.add(l&&l[_]?l[_]:_)):m.setAttribute(z,_)}),v(_)}function v(_){d&&g.includes(_)&&(m.style.colorScheme=_)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)x(i);else try{let _=localStorage.getItem(r)||a,z=c&&_==="system"?b():_;x(z)}catch(_){}};var FIt=it(void 0),jIt={setTheme:(e)=>{},themes:[]},Ove=()=>{var e;return(e=ft(FIt))!=null?e:jIt};var $Un=Bn(({forcedTheme:e,storageKey:r,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:d,nonce:m,scriptProps:g})=>{let x=JSON.stringify([a,r,l,e,d,c,i,s]).slice(1,-1);return j("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${NIt.toString()})(${x})`}})});var Nve=({...e})=>{let{theme:r="system"}=Ove();return t(rde,{theme:r,className:"toaster group",icons:{success:t(xr,{className:"size-4"}),info:t(Wo,{className:"size-4"}),warning:t(Vr,{className:"size-4"}),error:t(a8,{className:"size-4"}),loading:t(O,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})};var yn=Rr((e)=>({uploading:0,tasks:{},fileProgress:{},increment:()=>e((r)=>({uploading:r.uploading+1})),decrement:()=>e((r)=>({uploading:r.uploading-1})),startTask:(r,a,i)=>e((s)=>{let l={},c=0;i.forEach((g)=>{l[g.fileId]={fileId:g.fileId,name:g.name,loaded:0,total:g.size,status:"uploading"},c+=g.size});let d={...s.tasks,[r]:{taskId:r,name:a,loaded:0,total:c,files:l}},m={...s.fileProgress};return i.forEach((g)=>{m[g.fileId]=l[g.fileId]}),{tasks:d,fileProgress:m}}),updateFileProgress:(r,a,i)=>e((s)=>{let l=s.tasks[r];if(!l)return{};let c=l.files[a];if(!c)return{};let d={...c,loaded:i},m={...l.files,[a]:d},g=Object.values(m).reduce((x,v)=>x+v.loaded,0);return{tasks:{...s.tasks,[r]:{...l,loaded:g,files:m}},fileProgress:{...s.fileProgress,[a]:d}}}),completeFile:(r,a)=>e((i)=>{let s=i.tasks[r];if(!s)return{};let l=s.files[a];if(!l)return{};let c={...l,status:"completed",loaded:l.total},d={...s.files,[a]:c},m=Object.values(d).reduce((g,x)=>g+x.loaded,0);return{tasks:{...i.tasks,[r]:{...s,loaded:m,files:d}},fileProgress:{...i.fileProgress,[a]:c}}}),failFile:(r,a)=>e((i)=>{let s=i.tasks[r];if(!s)return{};let l=s.files[a];if(!l)return{};let c={...l,status:"failed"},d={...s.files,[a]:c},m=Object.values(d).reduce((g,x)=>g+x.loaded,0);return{tasks:{...i.tasks,[r]:{...s,loaded:m,files:d}},fileProgress:{...i.fileProgress,[a]:c}}})}));S();function rf({className:e,value:r,...a}){return t(rRe,{"data-slot":"progress",className:C("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...a,children:t(oRe,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})}function BIt(e){let r=sM(e);if(isNaN(r.getTime()))return Xgt();if(DD(r))return ale();if(OD(r))return nle();return gr(r,nje())}function Fve(e){if(e===0)return"0 B";let r=1024,a=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(1))+" "+a[i]}function UIt({task:e}){let r=yn((l)=>l.tasks[e.id]),a=r?r.loaded===r.total&&e.uploaded===e.total:e.uploaded===e.total,i=r?r.total>0?r.loaded/r.total*100:0:e.total>0?e.uploaded/e.total*100:0,s;try{s=Mn(e.createdAt)}catch{s=An()}return o("div",{className:"group relative flex flex-col p-4 rounded-xl border border-sidebar-border bg-sidebar-accent/30 text-sidebar-foreground shadow-xs transition-all duration-200 hover:shadow-md hover:border-sidebar-foreground/20 hover:bg-sidebar-accent/50",children:[o("div",{className:"flex items-start justify-between gap-2 mb-2",children:[t("div",{className:"min-w-0 flex-1",children:t("span",{className:"text-sm font-semibold tracking-tight text-sidebar-foreground truncate block",title:e.name,children:e.name||bMt()})}),t("div",{className:"flex-shrink-0",children:a?o("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-muted-foreground bg-muted px-2 py-0.5 rounded-full transition-colors",children:[t(xr,{className:"w-3.5 h-3.5"}),s6e()]}):o("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-sidebar-primary bg-sidebar-primary/10 px-2 py-0.5 rounded-full animate-pulse",children:[t(O,{className:"w-3.5 h-3.5 animate-spin"}),KMt()]})})]}),o("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground mb-3 font-medium",children:[t(er,{className:"w-3.5 h-3.5 text-muted-foreground/75"}),t("span",{children:s})]}),o("div",{className:"space-y-1.5 mt-auto",children:[o("div",{className:"flex items-center justify-between text-xs font-semibold",children:[t("span",{className:"text-muted-foreground/80",children:r?`${Fve(r.loaded)} / ${Fve(r.total)} (${Wse({uploaded:e.uploaded,total:e.total})})`:Wse({uploaded:e.uploaded,total:e.total})}),!a&&o("span",{className:"text-sidebar-primary font-mono font-bold",children:[Math.round(i),"%"]})]}),t(rf,{value:i,className:"h-1.5 w-full bg-muted"})]})]})}function jve(){let e=gs(),r=yn((_)=>_.uploading),a=yn((_)=>_.tasks),{data:i,fetchNextPage:s,hasNextPage:l,isFetchingNextPage:c,isLoading:d}=pt({queryKey:["teams",e,"upload","tasks"],queryFn:async({pageParam:_})=>{let z=await A.api.teams[":teamId"].upload.tasks.$get({param:{teamId:e},query:{after:_}});if(!z.ok)throw Error("Failed to fetch upload tasks");return await z.json()},initialPageParam:"",getNextPageParam:(_)=>_.pageInfo?.cursor||void 0,enabled:!!e,refetchInterval:r>0?2000:!1}),{ref:m,inView:g}=Pt();h(()=>{if(g&&l&&!c)s()},[g,l,c,s]);let x=i?.pages.flatMap((_)=>_.data??[])??[],v=N(()=>{let _=new Set(x.map((k)=>k.id));return[...Object.values(a).filter((k)=>!_.has(k.taskId)).map((k)=>{let U=Object.values(k.files).filter((P)=>P.status==="completed"||P.status==="failed").length;return{id:k.taskId,name:k.name,total:Object.keys(k.files).length,uploaded:U,createdAt:new Date().toISOString()}}),...x].sort((k,U)=>U.id.localeCompare(k.id))},[x,a]);if(d)return t("div",{className:"flex items-center justify-center p-8",children:t(O,{className:"h-6 w-6 animate-spin text-muted-foreground"})});if(v.length===0)return o("div",{className:"flex flex-col items-center justify-center p-8 text-center border border-dashed border-border rounded-xl bg-muted/10 my-4",children:[t(zn,{className:"h-8 w-8 text-muted-foreground/50 mb-3"}),t("p",{className:"text-sm font-semibold text-muted-foreground",children:met()}),t("p",{className:"text-xs text-muted-foreground/60 mt-1 max-w-[180px]",children:det()})]});let b=[];return v.forEach((_)=>{let z=BIt(_.createdAt),k=b.find((U)=>U.day===z);if(!k)k={day:z,tasks:[]},b.push(k);k.tasks.push(_)}),o("div",{className:"flex flex-col space-y-4",children:[b.map((_)=>o("div",{className:"relative flex flex-col",children:[o("div",{className:"sticky top-0 bg-sidebar/95 backdrop-blur-sm z-10 py-2 px-1 flex items-center justify-between border-b border-border/40",children:[t("span",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground/80",children:_.day}),t("span",{className:"text-[10px] font-semibold text-muted-foreground/60 bg-muted px-2 py-0.5 rounded-full",children:_.tasks.length===1?FQe({count:_.tasks.length}):DQe({count:_.tasks.length})})]}),t("div",{className:"mt-3 space-y-3",children:_.tasks.map((z)=>t(UIt,{task:z},z.id))})]},_.day)),l&&t("div",{ref:m,className:"flex items-center justify-center p-4",children:c&&t(O,{className:"h-5 w-5 animate-spin text-muted-foreground"})})]})}S();async function Bve(e){let r=e.match(/^\/teams\/([^/]+)/),a=r?r[1]:null;if(a)return a;let i=e.match(/^\/projects\/([^/]+)/),s=i?i[1]:null;if(s){let{ensureTeamIdForProject:l}=lt.getState();return await l(s)}return null}function YIt(){let e=gf((z)=>z.user),{uploading:r}=yn(),a=rz({select:(z)=>z.location.pathname}),i=Re(),{teamId:s,setTeamId:l}=lt(),{projectState:c}=un(),d=e&&(a.startsWith("/teams/")||a.startsWith("/projects/"));h(()=>{Bve(a).then((z)=>{if(z&&z!==s)l(z)})},[a,s,l]);let{data:m}=Z({queryKey:["teams",s,"me"],queryFn:async()=>{if(!s)return null;let z=await A.api.teams[":teamId"].me.$get({param:{teamId:s}});if(!z.ok)throw Error("Failed to fetch me");return await z.json()},enabled:!!s});if(!d)return t(RM,{});let g=m?.unreadNotificationCount??0,x=g>99?"99+":g,v=g>0?t("span",{className:"absolute justify-center top-0 -right-1 mt-1 inline-flex items-center px-1.5 py-0.5 rounded-full text-xs leading-4 bg-red-400 dark:bg-red-500 text-white pointer-events-none h-5 min-w-5",children:x}):null,b=a.includes("/kanban"),_=a.includes("/dashboard");return o("div",{className:"flex h-[100dvh] w-full bg-background overflow-hidden",children:[t(Nve,{}),o(fle,{hideMobileButton:!0,defaultMobileContent:c?.projectId?{label:Kse(),children:t(br,{teamId:c.teamId,projectId:c.projectId,projectName:c.projectName,rootFolderId:c.rootFolderId||"",ancestorFolders:c.ancestorFolders})}:void 0,children:[t(Gz,{icon:t(Xge,{}),label:vVe(),onItemClick:()=>{if(s)i({to:"/teams/$teamId",params:{teamId:s}})}}),t(Gz,{icon:t(Gge,{}),label:hg(),badge:v,children:t(Yge,{})}),t(Gz,{icon:t(Qge,{uploading:r>0,className:r>0?"text-blue-500":""}),label:QMt(),children:t(jve,{})}),t(Gz,{icon:t(Jge,{}),label:aWe(),active:b,onItemClick:()=>{if(s)i({to:"/teams/$teamId/kanban",params:{teamId:s}})}}),m?.role?.toLowerCase()==="owner"&&t(Gz,{icon:t($ge,{}),label:dh(),active:_,onItemClick:()=>{if(s)i({to:"/teams/$teamId/dashboard",params:{teamId:s}})}})]}),o("div",{className:"flex flex-col flex-1 md:pl-16 overflow-hidden relative",children:[t(tf,{}),t("main",{className:"flex-1 overflow-hidden relative flex flex-col",children:t(RM,{})})]})]})}var On=VB()({beforeLoad:async({location:e})=>{if(typeof window<"u"){let r=e.pathname,a=await Bve(r);if(a){let{fetchMetadata:i,getMetadata:s}=Ar.getState();try{await i(a);let l=s("locale");if((l==="en"||l==="zh")&&l!==n())Pa(l,{reload:!1})}catch(l){console.error("Failed to load user locale metadata:",l)}}document.documentElement.setAttribute("lang",n())}},component:YIt});function Ol({children:e}){return o("div",{className:"min-h-screen w-full flex items-center justify-center p-4 md:p-8 bg-zinc-100/80 dark:bg-black font-sans overflow-hidden relative",children:[t("div",{className:"bg-rose-500/10 dark:bg-rose-600/5 w-[600px] h-[600px] rounded-full blur-[140px] absolute top-[-10%] left-[-10%] animate-drift-slow"}),t("div",{className:"bg-orange-500/10 dark:bg-orange-600/5 w-[600px] h-[600px] rounded-full blur-[140px] absolute bottom-[-10%] right-[-10%] animate-drift-medium"}),o("div",{className:"relative max-w-4xl w-full flex flex-col md:flex-row rounded-3xl border border-zinc-200 dark:border-zinc-800 shadow-2xl bg-white dark:bg-zinc-900 overflow-hidden min-h-[580px] z-10 transition-all duration-300 hover:shadow-rose-500/5",children:[o("div",{className:"hidden md:flex flex-col w-full md:w-1/2 bg-gradient-to-br from-rose-500/15 via-orange-500/10 to-amber-500/5 dark:from-rose-950/30 dark:via-orange-950/15 dark:to-zinc-900/40 p-8 md:p-12 justify-between border-r border-zinc-200 dark:border-zinc-800 relative overflow-hidden",children:[t("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#8080800a_1px,transparent_1px),linear-gradient(to_bottom,#8080800a_1px,transparent_1px)] bg-[size:14px_24px] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_70%,transparent_100%)] pointer-events-none"}),o("div",{className:"relative flex items-center gap-3",children:[t(ZM,{className:"h-12 w-12 shadow-lg shadow-rose-500/10 rounded-2xl transition-transform duration-500 hover:scale-105"}),t("span",{className:"text-xl font-extrabold tracking-tight bg-gradient-to-r from-rose-500 via-orange-500 to-amber-500 bg-clip-text text-transparent",children:"Shumai"})]}),o("div",{className:"relative my-8 md:my-0 space-y-6",children:[t("h2",{className:"text-3xl font-extrabold tracking-tight leading-tight text-zinc-900 dark:text-zinc-50",children:WNe()}),t("p",{className:"text-zinc-600 dark:text-zinc-400 text-sm leading-relaxed max-w-sm",children:ENe()}),t("ul",{className:"space-y-3.5 pt-4",children:[qNe(),NNe(),BNe()].map((r,a)=>o("li",{className:"flex items-center gap-3 text-sm text-zinc-700 dark:text-zinc-300 font-medium",children:[t(xr,{className:"w-5 h-5 text-rose-500 flex-shrink-0"}),t("span",{children:r})]},a))})]}),t("div",{className:"relative pt-4 border-t border-zinc-200/30 dark:border-zinc-800/30",children:t("a",{href:"https://discord.gg/sUzhujK6DD",target:"_blank",rel:"noreferrer",className:"text-xs text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200 font-medium transition-colors hover:underline inline-flex items-center gap-1",children:PNe()})})]}),t("div",{className:"w-full md:w-1/2 p-8 md:p-12 flex flex-col justify-center",children:e})]})]})}function ut({className:e,...r}){return t("div",{"data-slot":"card",className:C("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...r})}function Tt({className:e,...r}){return t("div",{"data-slot":"card-header",className:C("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function Mt({className:e,...r}){return t("div",{"data-slot":"card-title",className:C("leading-none font-semibold",e),...r})}function Ot({className:e,...r}){return t("div",{"data-slot":"card-description",className:C("text-sm text-muted-foreground",e),...r})}function xt({className:e,...r}){return t("div",{"data-slot":"card-content",className:C("px-6",e),...r})}function nf({className:e,...r}){return t("div",{"data-slot":"card-footer",className:C("flex items-center px-6 [.border-t]:pt-6",e),...r})}S();var OO=(e)=>e.type==="checkbox",Bj=(e)=>e.type==="file",G8=(e)=>e instanceof Date,Ui=(e)=>e==null,fG=(e)=>typeof e==="object",Nn=(e)=>!Ui(e)&&!Array.isArray(e)&&fG(e)&&!G8(e),qIt=(e)=>Nn(e)&&e.target?OO(e.target)?e.target.checked:Bj(e.target)?e.target.files:e.target.value:e,HIt=(e,r)=>r.split(".").some((a,i,s)=>!isNaN(Number(a))&&e.has(s.slice(0,i).join("."))),Uj=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bn(e){if(e===null||typeof e!=="object")return e;if(e instanceof Date)return new Date(e);let r=typeof FileList<"u"&&e instanceof FileList;if(Uj&&(e instanceof Blob||r))return e;let a=Array.isArray(e);if(!a&&e.constructor!==Object)return e;let i=a?[]:Object.create(Object.getPrototypeOf(e));for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))i[s]=bn(e[s]);return i}var qR={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Au={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Pu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},tye="root",sG=["__proto__","constructor","prototype"],VIt=/^\w*$/,DL=(e)=>VIt.test(e),ga=(e)=>e===void 0,WIt=/[.[\]'"]/,VR=(e)=>e.split(WIt).filter(Boolean),pr=(e,r,a)=>{if(!r||!Nn(e))return a;let i=DL(r)?[r]:VR(r);if(i.some((l)=>sG.includes(l)))return a;let s=i.reduce((l,c)=>Ui(l)?void 0:l[c],e);return ga(s)||s===e?ga(e[r])?a:e[r]:s},LZ=(e)=>typeof e==="boolean",Ec=(e)=>typeof e==="function",ha=(e,r,a)=>{let i=-1,s=DL(r)?[r]:VR(r),l=s.length,c=l-1;while(++i<l){let d=s[i],m=a;if(i!==c){let g=e[d];m=Nn(g)||Array.isArray(g)?g:!isNaN(+s[i+1])?[]:{}}if(sG.includes(d))return;e[d]=m,e=e[d]}},KIt=it(null);KIt.displayName="HookFormControlContext";var GIt=(e,r,a,i=!0)=>{let s={};for(let l in e)Object.defineProperty(s,l,{get:()=>{let c=l;if(r._proxyFormState[c]!==Au.all)r._proxyFormState[c]=!i||Au.all;return a&&(a[c]=!0),e[c]}});return s},XIt=Uj?$e:h,QIt=(e)=>{let r=e.constructor&&e.constructor.prototype;return Nn(r)&&r.hasOwnProperty("isPrototypeOf")},aG=(e)=>Ui(e)||!fG(e),Uve=(e,r)=>r.length===0&&!Array.isArray(e)&&!QIt(e);function Tu(e,r,a=new WeakMap){if(e===r)return!0;if(aG(e)||aG(r))return Object.is(e,r);if(G8(e)&&G8(r))return Object.is(e.getTime(),r.getTime());let i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;if(Uve(e,i)||Uve(r,s))return Object.is(e,r);if(!i.length&&Array.isArray(e)!==Array.isArray(r))return!1;let l=a.get(e);if(l&&l.has(r))return!0;if(l)l.add(r);else{let c=new WeakSet;c.add(r),a.set(e,c)}for(let c of i){let d=e[c];if(!(c in r))return!1;if(c!=="ref"){let m=r[c];if(G8(d)&&G8(m)||(Nn(d)||Array.isArray(d))&&(Nn(m)||Array.isArray(m))?!Tu(d,m,a):!Object.is(d,m))return!1}}return!0}function JIt(){let e=y(!1),r=y(void 0),a=D((s,l,c)=>{if(s&&e.current){let d=l();if(!Tu(r.current,d))c(d)}e.current=!0},[]),i=D((s,l)=>{if(s)r.current=bn(l())},[]);return{resyncIfNeeded:a,snapshot:i}}var qi=(e)=>typeof e==="string",$It=(e,r,a,i,s)=>{if(qi(e))return i&&r.watch.add(e),pr(a,e,s);if(Array.isArray(e))return e.map((l)=>(i&&r.watch.add(l),pr(a,l)));return i&&(r.watchAll=!0),a};var Oj=(e)=>({isOnSubmit:!e||e===Au.onSubmit,isOnBlur:e===Au.onBlur,isOnChange:e===Au.onChange,isOnAll:e===Au.all,isOnTouch:e===Au.onTouched}),tG=(e,r,a)=>{if(a)return!1;if(r.watchAll||r.watch.has(e))return!0;for(let i of r.watch)if(e.startsWith(i)&&e.charAt(i.length)===".")return!0;return!1},DO=(e,r,a,i)=>{for(let s of a||Object.keys(e)){if(s==="_f")continue;let l=a?pr(e,s):e[s];if(l){let{_f:c}=l;if(c){if(c.refs&&c.refs[0]&&r(c.refs[0],s)&&!i)return!0;else if(c.ref&&r(c.ref,c.name)&&!i)return!0;else if(DO(l,r))break}else if(Nn(l)||Array.isArray(l)){if(DO(l,r))break}}}return},Yve=(e,r,a)=>{let i=pr(e,a),s=Array.isArray(i)?i:[];return ha(s,tye,r[a]),ha(e,a,s),e},df=(e)=>Nn(e)&&!Object.keys(e).length,Fj=(e)=>{if(!Uj)return!1;let r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},lG=(e)=>e.type==="radio",jj=(e)=>e instanceof RegExp,Yj=(e,r,a,i,s)=>r?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[i]:s||!0}}:{},qve={value:!1,isValid:!1},Hve={value:!0,isValid:!0},rye=(e)=>{if(!Array.isArray(e))return qve;if(e.length>1){let a=e.filter((i)=>i&&i.checked&&!i.disabled).map((i)=>i.value);return{value:a,isValid:!!a.length}}let r=e[0];if(!r||!r.checked||r.disabled)return qve;if(!r.attributes||!("value"in r.attributes))return Hve;return ga(r.value)||r.value===""?Hve:{value:r.value,isValid:!0}},Vve={isValid:!1,value:null},oye=(e)=>Array.isArray(e)?e.reduce((r,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:r,Vve):Vve;function Wve(e,r,a="validate"){if(qi(e)||Array.isArray(e)&&e.every(qi)||LZ(e)&&!e)return{type:a,message:qi(e)?e:"",ref:r}}var HR=(e)=>Nn(e)&&!jj(e)?e:{value:e,message:""},Kve=async(e,r,a,i,s,l)=>{let{ref:c,refs:d,required:m,maxLength:g,minLength:x,min:v,max:b,pattern:_,validate:z,name:k,valueAsNumber:U,mount:P}=e._f,T=pr(a,k);if(!P||r.has(k))return{};let G=d?d[0]:c,X=(Se)=>{if(s&&G.reportValidity){let He=LZ(Se)?"":Se||"";if(d)d.forEach((dt)=>dt.setCustomValidity(He));else G.setCustomValidity(He);G.reportValidity()}},J={},ee=lG(c),re=OO(c),oe=ee||re,ie=(U||Bj(c))&&ga(c.value)&&ga(T)||Fj(c)&&c.value===""||T===""||Array.isArray(T)&&!T.length,ye=Yj.bind(null,k,i,J),We=(Se,He,dt,Ge=Pu.maxLength,yt=Pu.minLength)=>{let Ft=Se?He:dt;J[k]={type:Se?Ge:yt,message:Ft,ref:c,...ye(Se?Ge:yt,Ft)}};if(l?!Array.isArray(T)||!T.length:m&&(!oe&&(ie||Ui(T))||LZ(T)&&!T||re&&!rye(d).isValid||ee&&!oye(d).isValid)){let{value:Se,message:He}=qi(m)?{value:!!m,message:m}:HR(m);if(Se){if(J[k]={type:Pu.required,message:He,ref:G,...ye(Pu.required,He)},!i)return X(He),J}}if(!ie&&(!Ui(v)||!Ui(b))){let Se,He,dt=HR(b),Ge=HR(v);if(!Ui(T)&&!G8(T)&&!isNaN(T)){let yt=c.valueAsNumber||(T?+T:T);if(!Ui(dt.value))Se=yt>dt.value;if(!Ui(Ge.value))He=yt<Ge.value}else{let yt=c.valueAsDate||new Date(T),Ft=(_t)=>new Date(new Date().toDateString()+" "+_t),Bt=c.type=="time",de=c.type=="week";if(qi(dt.value)&&T)Se=Bt?Ft(T)>Ft(dt.value):de?T>dt.value:yt>new Date(dt.value);if(qi(Ge.value)&&T)He=Bt?Ft(T)<Ft(Ge.value):de?T<Ge.value:yt<new Date(Ge.value)}if(Se||He){if(We(!!Se,dt.message,Ge.message,Pu.max,Pu.min),!i)return X(J[k].message),J}}if((g||x)&&!ie&&(qi(T)||l&&Array.isArray(T))){let Se=HR(g),He=HR(x),dt=!Ui(Se.value)&&T.length>+Se.value,Ge=!Ui(He.value)&&T.length<+He.value;if(dt||Ge){if(We(dt,Se.message,He.message),!i)return X(J[k].message),J}}if(_&&!ie&&qi(T)){let{value:Se,message:He}=HR(_);if(jj(Se)&&!T.match(Se)){if(J[k]={type:Pu.pattern,message:He,ref:c,...ye(Pu.pattern,He)},!i)return X(He),J}}if(z){if(Ec(z)){let Se=await z(T,a),He=Wve(Se,G);if(He){if(J[k]={...He,...ye(Pu.validate,He.message)},!i)return X(He.message),J}}else if(Nn(z)){let Se={};for(let He in z){if(!df(Se)&&!i)break;let dt=Wve(await z[He](T,a),G,He);if(dt){if(Se={...dt,...ye(He,dt.message)},X(dt.message),i)J[k]=Se}}if(!df(Se)){if(J[k]={ref:G,...Se},!i)return J}}}let Ye=J[k];return X(Ye?Ye.message:!0),J},Nj=(e)=>Array.isArray(e)?e:[e];var aye=(e)=>Array.isArray(e)?e.filter(Boolean):[];function e1t(e,r){let a=r.length-1,i=0;while(i<a){if(Ui(e)){e=void 0;break}e=e[r[i]],i++}return e}function t1t(e){for(let r in e)if(e.hasOwnProperty(r)&&!ga(e[r]))return!1;return!0}function ri(e,r){if(qi(r)&&Object.prototype.hasOwnProperty.call(e,r))return delete e[r],e;let a=Array.isArray(r)?r:DL(r)?[r]:VR(r);if(a.some((c)=>sG.includes(String(c))))return e;let i=a.length===1?e:e1t(e,a),s=a.length-1,l=a[s];if(i)delete i[l];if(s!==0&&(Nn(i)&&df(i)||Array.isArray(i)&&t1t(i)))ri(e,a.slice(0,-1));return e}var r1t=it(null);r1t.displayName="HookFormContext";var Gve=()=>{let e=[];return{get observers(){return e},next:(s)=>{for(let l of e)l.next&&l.next(s)},subscribe:(s)=>(e.push(s),{unsubscribe:()=>{e=e.filter((l)=>l!==s)}}),unsubscribe:()=>{e=[]}}};function nye(e,r){let a={};for(let i in e)if(e.hasOwnProperty(i)){let s=e[i],l=r[i];if(s&&Nn(s)&&l){let c=nye(s,l);if(Nn(c))a[i]=c}else if(e[i])a[i]=l}return a}var Xve=(e,r)=>e!==null&&fG(e)&&Object.prototype.hasOwnProperty.call(e,r),o1t=(e,r)=>{if(!r)return!1;let a=e;for(let i of DL(r)?[r]:VR(r)){if(!Xve(a,i))return Xve(e,r);a=a[i]}return!0},iye=(e)=>e.type==="select-multiple",a1t=(e)=>lG(e)||OO(e),rG=(e)=>Fj(e)&&e.isConnected;function Qve(e){return Array.isArray(e)||Nn(e)}function fye(e,r,a="",i=[]){for(let s in e){let l=a?`${a}.${s}`:s,c=e[s];if(Qve(c)&&Qve(pr(r,l)))fye(c,r,l,i);else i.push(l)}return i}var n1t=(e)=>{for(let r in e)if(Ec(e[r]))return!0;return!1};function sye(e){return Array.isArray(e)||Nn(e)&&!n1t(e)}function lye(e){return!!(e&&("_f"in e))}function cye(e){return Array.isArray(e)?!e.some((r)=>!ga(r)):!Object.keys(e).length}function nG(e,r){if(Array.isArray(e))e[r]=void 0;else delete e[r]}function iG(e,r={},a){for(let i in e){let s=e[i],l=a&&a[i];if(sye(s)&&(!Array.isArray(s)||!lye(l))){if(r[i]=Array.isArray(s)?[]:{},iG(s,r[i],l),cye(r[i]))nG(r,i)}else if(!ga(s))r[i]=!0}return r}function EL(e,r,a,i){if(!a)a=iG(r,{},i);for(let s in e){let l=e[s],c=i&&i[s];if(sye(l)&&(!Array.isArray(l)||!lye(c))){if(ga(r)||aG(a[s]))a[s]=iG(l,Array.isArray(l)?[]:{},c);else EL(l,Ui(r)?{}:r[s],a[s],c);if(cye(a[s]))nG(a,s)}else if(Tu(l,r[s]))nG(a,s);else a[s]=!0}return a}var i1t=(e,r)=>{let a=r.split("."),i=[],s=a[0];for(let l=1;l<a.length;s+="."+a[l++])if(!isNaN(+a[l])&&e.has(s))i.push(`${s}.${a[l]}`);return i},uye=(e,{valueAsNumber:r,valueAsDate:a,setValueAs:i})=>ga(e)?e:r?e===""?NaN:e?+e:e:a&&qi(e)?new Date(e):i?i(e):e;function Jve(e){let r=e.ref;if(Bj(r))return r.files;if(lG(r))return oye(e.refs).value;if(iye(r))return[...r.selectedOptions].map(({value:a})=>a);if(OO(r))return rye(e.refs).value;return uye(r.value,e)}var f1t=(e,r,a,i)=>{let s={};for(let l of e){let c=pr(r,l);c&&ha(s,l,c._f)}return{criteriaMode:a,names:[...e],fields:s,shouldUseNativeValidation:i}},EO=(e)=>ga(e)?e:jj(e)?e.source:Nn(e)?jj(e.value)?e.value.source:e.value:e,$ve="AsyncFunction",s1t=(e)=>{if(!e||!e.validate)return!1;if(Ec(e.validate))return e.validate.constructor.name===$ve;if(Nn(e.validate)){for(let r in e.validate)if(e.validate[r].constructor.name===$ve)return!0}return!1},l1t=(e)=>e.mount&&(e.required||!ga(e.required)&&e.required!==!1||!ga(e.min)||!ga(e.max)||!ga(e.maxLength)||!ga(e.minLength)||e.pattern||e.validate);function eye(e,r,a){let i=pr(e,a);if(i||DL(a))return{error:i,name:a};let s=a.split(".");while(s.length){let l=s.join("."),c=pr(r,l),d=pr(e,l);if(c&&!Array.isArray(c)&&a!==l)return{name:a};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};s.pop()}return{name:a}}var c1t=(e,r,a,i)=>{a(e);let s=Object.keys(e).filter((l)=>l!=="name");return!s.length||i&&s.length>=Object.keys(r).length||s.find((l)=>r[l]===(!i||Au.all))},u1t=(e,r,a)=>!e||!r||e===r||Nj(e).some((i)=>i&&(a?i===r||i.startsWith(r+"."):i.startsWith(r)||r.startsWith(i))),d1t=(e,r,a,i,s)=>{if(s.isOnAll)return!1;else if(!a&&s.isOnTouch)return!(r||e);else if(a?i.isOnBlur:s.isOnBlur)return!e;else if(a?i.isOnChange:s.isOnChange)return e;return!0},Z1t=(e,r)=>{let a=pr(e,r);!aye(a).length&&!(a===null||a===void 0?void 0:a.root)&&ri(e,r)},p1t={mode:Au.onSubmit,reValidateMode:Au.onChange,shouldFocusError:!0},oG="form",m1t=(e,r)=>{for(let a in e)if(!(a in r))delete e[a];Object.assign(e,r)},dye={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function h1t(e={}){let r={...p1t,...e},a={...bn(dye),isLoading:Ec(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},i={},s=Nn(r.defaultValues)||Nn(r.values)?bn(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:bn(s),c={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},m={},g={},x=0,v=Oj(r.mode),b=Oj(r.reValidateMode),_={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},z={..._},k={...z},U={array:Gve(),state:Gve()},P=0,T=r.criteriaMode===Au.all,G=(Ee,Oe)=>(je)=>{clearTimeout(g[Ee]),g[Ee]=setTimeout(Oe,je)},X=async(Ee)=>{if(c.keepIsValid)return;if(!r.disabled&&(z.isValid||k.isValid||Ee)){let Oe=++P,je;if(r.resolver)je=df((await dt()).errors),Oe===P&&J();else je=await Ft({fields:i,onlyCheckValid:!0,eventType:qR.VALID});if(Oe===P&&je!==a.isValid)U.state.next({isValid:je})}},J=(Ee,Oe)=>{if(!r.disabled&&(z.isValidating||z.validatingFields||k.isValidating||k.validatingFields))(Ee||d.mount).forEach((je)=>{if(je)Oe?ha(a.validatingFields,je,Oe):ri(a.validatingFields,je)}),U.state.next({validatingFields:a.validatingFields,isValidating:!df(a.validatingFields)})},ee=()=>{a.dirtyFields=EL(s,l,void 0,i)},re=(Ee,Oe=[],je,Zt,zt=!0,jt=!0)=>{if(Zt&&je&&!r.disabled){c.action=!0;let ir=pr(i,Ee);if(!c.actionArrayLengths.has(Ee))c.actionArrayLengths.set(Ee,Array.isArray(ir)?ir.length:0);if(jt&&Array.isArray(ir)){let qt=je(ir,Zt.argA,Zt.argB);zt&&ha(i,Ee,qt)}let Nt=pr(a.errors,Ee);if(jt&&Array.isArray(Nt)){let qt=Nt.root,Nr=je(Nt,Zt.argA,Zt.argB)||Nt;if(qt)Nr.root=qt;zt&&ha(a.errors,Ee,Nr),Z1t(a.errors,Ee)}let bt=pr(a.touchedFields,Ee);if((z.touchedFields||k.touchedFields)&&jt&&Array.isArray(bt)){let qt=je(bt,Zt.argA,Zt.argB);zt&&ha(a.touchedFields,Ee,qt)}if(z.dirtyFields||k.dirtyFields)ee();U.state.next({name:Ee,isDirty:de(Ee,Oe),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else ha(l,Ee,Oe)},oe=(Ee,Oe)=>{ha(a.errors,Ee,Oe),a.errors={...a.errors},U.state.next({errors:a.errors})},ie=(Ee)=>{a.errors=Ee,U.state.next({errors:a.errors,isValid:!1})},ye=(Ee)=>{let Oe=DL(Ee)?[Ee]:VR(Ee),je=l,Zt=s;for(let zt=0;zt<Oe.length-1;zt++){let jt=Oe[zt];if(je=Ui(je)?je:je[jt],Zt=Ui(Zt)?Zt:Zt[jt],je===null&&Zt!==null)return!0}return!1},We=(Ee)=>{if(!c.actionArrayLengths.size)return!1;let Oe=DL(Ee)?[Ee]:VR(Ee),je=l,Zt="",zt=-1,jt=0;for(let ir=0;ir<Oe.length;ir++){if(Ui(je))return!1;let Nt=Oe[ir];if(Zt=Zt?`${Zt}.${Nt}`:Nt,Array.isArray(je)&&+Nt>=je.length)return zt===-1?!1:ir===zt?+Nt<jt:!0;if(c.actionArrayLengths.has(Zt))zt=ir+1,jt=c.actionArrayLengths.get(Zt);je=je[Nt]}return!1},Ye=(Ee,Oe,je,Zt)=>{let zt=pr(i,Ee);if(zt){if(ye(Ee)||We(Ee))return;let jt=ga(pr(l,Ee)),ir=pr(l,Ee,ga(je)?pr(s,Ee):je);if(ga(ir)||Zt&&Zt.defaultChecked||Oe?ha(l,Ee,Oe?ir:Jve(zt._f)):Fe(Ee,ir),c.mount&&!c.action){if(X(),jt&&a.isDirty&&(z.isDirty||k.isDirty)){if(!de())a.isDirty=!1,U.state.next({...a})}if(e.shouldUnregister&&jt&&!ga(pr(l,Ee))&&tG(Ee,d))c.watch=!0}}},Se=(Ee,Oe,je,Zt,zt)=>{let jt=!1,ir=!1,Nt={name:Ee};if(!r.disabled||Zt===!0){if(!je||Zt){let bt=Tu(pr(s,Ee),Oe);if(z.isDirty||k.isDirty)ir=a.isDirty,a.isDirty=Nt.isDirty=!bt||de(),jt=ir!==Nt.isDirty;if(ir=!!pr(a.dirtyFields,Ee),bt!==a.isDirty)m1t(a.dirtyFields,EL(s,l,void 0,i));else bt?ri(a.dirtyFields,Ee):ha(a.dirtyFields,Ee,!0);Nt.dirtyFields=a.dirtyFields,jt=jt||(z.dirtyFields||k.dirtyFields)&&ir!==!bt}if(je){let bt=pr(a.touchedFields,Ee);if(!bt)ha(a.touchedFields,Ee,je),Nt.touchedFields=a.touchedFields,jt=jt||(z.touchedFields||k.touchedFields)&&bt!==je}jt&&zt&&U.state.next(Nt)}return jt?Nt:{}},He=(Ee,Oe,je,Zt)=>{let zt=pr(a.errors,Ee),jt=(z.isValid||k.isValid)&&LZ(Oe)&&a.isValid!==Oe;if(r.delayError&&je)m[Ee]=G(Ee,()=>oe(Ee,je)),m[Ee](r.delayError);else clearTimeout(g[Ee]),delete m[Ee],je?ha(a.errors,Ee,je):ri(a.errors,Ee),a.errors={...a.errors};if((je?!Tu(zt,je):zt)||!df(Zt)||jt){let ir={...Zt,...jt&&LZ(Oe)?{isValid:Oe}:{},errors:a.errors,name:Ee};U.state.next(ir)}},dt=async(Ee)=>(J(Ee,!0),await r.resolver(l,r.context,f1t(Ee||d.mount,i,r.criteriaMode,r.shouldUseNativeValidation))),Ge=async(Ee)=>{let{errors:Oe}=await dt(Ee);if(J(Ee),Ee){for(let je of Ee){let Zt=pr(Oe,je);Zt?d.array.has(je)&&Nn(Zt)&&!Object.keys(Zt).some((zt)=>!Number.isNaN(Number(zt)))?Yve(a.errors,{[je]:Zt},je):ha(a.errors,je,Zt):ri(a.errors,je)}a.errors={...a.errors}}else a.errors=Oe;return Oe},yt=async({name:Ee,eventType:Oe})=>{if(e.validate){let je=await e.validate({formValues:l,formState:a,name:Ee,eventType:Oe});if(Nn(je))for(let Zt in je){let zt=je[Zt];if(zt)io(`${oG}.${Zt}`,{message:qi(zt.message)?zt.message:"",type:zt.type||Pu.validate})}else if(qi(je)||!je)io(oG,{message:je||"",type:Pu.validate});else co(oG);return je}return!0},Ft=async({fields:Ee,onlyCheckValid:Oe,name:je,eventType:Zt,context:zt={valid:!0,runRootValidation:!1}})=>{if(e.validate){if(zt.runRootValidation=!0,!await yt({name:je,eventType:Zt})){if(zt.valid=!1,Oe)return zt.valid}}for(let jt in Ee){let ir=Ee[jt];if(ir){let{_f:Nt,...bt}=ir;if(Nt){let qt=d.array.has(Nt.name),Nr=ir._f&&s1t(ir._f),jr=z.validatingFields||z.isValidating||k.validatingFields||k.isValidating;if(Nr&&jr)J([Nt.name],!0);let ua=await Kve(ir,d.disabled,l,T,r.shouldUseNativeValidation&&!Oe,qt);if(Nr&&jr)J([Nt.name]);if(ua[Nt.name]){if(zt.valid=!1,Oe)break}if(!Oe&&(pr(ua,Nt.name)?qt?Yve(a.errors,ua,Nt.name):ha(a.errors,Nt.name,ua[Nt.name]):ri(a.errors,Nt.name)),e.shouldUseNativeValidation&&ua[Nt.name])break}!df(bt)&&await Ft({context:zt,onlyCheckValid:Oe,fields:bt,name:jt,eventType:Zt})}}return zt.valid},Bt=()=>{for(let Ee of d.unMount){let Oe=pr(i,Ee);Oe&&(Oe._f.refs?Oe._f.refs.every((je)=>!rG(je)):!rG(Oe._f.ref))&&lo(Ee)}d.unMount=new Set},de=(Ee,Oe)=>(Ee&&Oe&&ha(l,Ee,Oe),!Tu(c.mount?l:s,s)),_t=(Ee,Oe,je)=>$It(Ee,d,{...c.mount?l:ga(Oe)||qi(Ee)?s:Oe},je,Oe),Wt=(Ee)=>aye(pr(c.mount?l:s,Ee,r.shouldUnregister?pr(s,Ee,[]):[])),Fe=(Ee,Oe,je={},Zt=!1,zt=!1,jt=!1)=>{let ir=pr(i,Ee),Nt=Oe;if(ir){let bt=ir._f;if(bt){if(!bt.disabled&&ha(l,Ee,uye(Oe,bt)),Nt=Fj(bt.ref)&&Ui(Oe)?"":Oe,iye(bt.ref))[...bt.ref.options].forEach((qt)=>qt.selected=Nt.includes(qt.value));else if(bt.refs)if(OO(bt.ref))bt.refs.forEach((qt)=>{if(!qt.defaultChecked||!qt.disabled)if(Array.isArray(Nt))qt.checked=!!Nt.find((Nr)=>Nr===qt.value);else qt.checked=Nt===qt.value||!!Nt});else bt.refs.forEach((qt)=>qt.checked=qt.value===Nt);else if(Bj(bt.ref))bt.ref.value="";else if(bt.ref.value=Nt,!bt.ref.type&&!zt&&!jt)U.state.next({name:Ee,values:Zt?l:bn(l)})}}(je.shouldDirty||je.shouldTouch)&&Se(Ee,Nt,je.shouldTouch,je.shouldDirty,!zt),je.shouldValidate&&Ir(Ee,{delayError:je.delayError})},fr=(Ee,Oe,je,Zt=!1,zt=!1,jt=!1)=>{if(d.array.has(Ee))U.array.next({name:Ee,values:Zt?l:bn(l)});for(let ir in Oe){if(!Oe.hasOwnProperty(ir))return;let Nt=Oe[ir],bt=Ee+"."+ir,qt=pr(i,bt);(d.array.has(Ee)||Nn(Nt)||qt&&!qt._f)&&!G8(Nt)?fr(bt,Nt,je,Zt,zt,jt):Fe(bt,Nt,je,Zt,zt,jt)}},sr=(Ee,Oe,je,Zt,zt=!1)=>{let jt=pr(i,Ee),ir=d.array.has(Ee),Nt=Zt?Oe:bn(Oe),bt=pr(l,Ee),qt=Tu(bt,Nt);if(!qt)ha(l,Ee,Nt);if(ir){if(U.array.next({name:Ee,values:Zt?l:bn(l)}),(z.isDirty||z.dirtyFields||k.isDirty||k.dirtyFields)&&je.shouldDirty){if(ee(),!zt)U.state.next({name:Ee,dirtyFields:a.dirtyFields,isDirty:de(Ee,Nt)})}}else{let Nr=Array.isArray(Nt)&&!Nt.length||df(Nt),jr=!qt&&!zt;if(!jt||jt._f||Ui(Nt)||Nr)Fe(Ee,Nt,je,Zt,zt,jr);else fr(Ee,Nt,je,Zt,zt,jr)}if(!qt&&!zt){let Nr=tG(Ee,d),jr=Zt?l:bn(l);if(U.state.next({...Nr&&a,name:c.mount||Nr?Ee:void 0,values:jr}),!ir)for(let ua of i1t(d.array,Ee))U.state.next({name:ua,values:jr})}},Jt=(Ee,Oe,je={})=>sr(Ee,Oe,je,!1),Fr=(Ee,Oe={})=>{let je=Ec(Ee)?Ee(l):Ee;if(!Tu(l,je)){l={...l,...je};for(let Zt of d.mount)if(o1t(je,Zt))sr(Zt,pr(je,Zt),Oe,!0,!0);if(U.state.next({...a,name:void 0,type:void 0,...x?{values:l}:{}}),Oe.shouldValidate)X()}},Kt=async(Ee)=>{c.mount=!0;let Oe=Ee.target,je=Oe.name,Zt=!0,zt=pr(i,je),jt=(ir)=>{Zt=Number.isNaN(ir)||G8(ir)&&isNaN(ir.getTime())||Tu(ir,pr(l,je,ir))};if(zt){let ir,Nt,bt=Oe.type?Jve(zt._f):qIt(Ee),qt=Ee.type===qR.BLUR||Ee.type===qR.FOCUS_OUT,Nr=!l1t(zt._f)&&!e.validate&&!r.resolver&&!pr(a.errors,je)&&!zt._f.deps,jr=Nr||d1t(qt,pr(a.touchedFields,je),a.isSubmitted,b,v),ua=tG(je,d,qt);if(ha(l,je,bt),qt){if(!Oe||!Oe.readOnly){zt._f.onBlur&&zt._f.onBlur(Ee);let va=m[je];va&&va(0)}}else if(zt._f.onChange)zt._f.onChange(Ee);let nr=Se(je,bt,qt),Go=!df(nr)||ua;if(!qt&&U.state.next({name:je,type:Ee.type,...x?{values:bn(l)}:{}}),jr){if((!Nr||!a.isValid)&&(z.isValid||k.isValid)){if(r.mode==="onBlur"){if(qt)X()}else if(!qt)X()}return Go&&U.state.next({name:je,...ua?{}:nr})}if(!r.resolver&&e.validate)await yt({name:je,eventType:Ee.type});if(!qt&&ua&&U.state.next({...a}),r.resolver){let{errors:va}=await dt([je]);if(J([je]),jt(bt),!Zt){!df(nr)&&U.state.next(nr);return}let oi=eye(a.errors,i,je),pf=eye(va,i,oi.name||je);ir=pf.error,je=pf.name,Nt=df(va)}else if(J([je],!0),ir=(await Kve(zt,d.disabled,l,T,r.shouldUseNativeValidation))[je],J([je]),jt(bt),Zt){if(ir)Nt=!1;else if(z.isValid||k.isValid)Nt=await Ft({fields:i,onlyCheckValid:!0,name:je,eventType:Ee.type})}if(Zt)zt._f.deps&&(!Array.isArray(zt._f.deps)||zt._f.deps.length>0)&&Ir(zt._f.deps),He(je,Nt,ir,nr)}},Xt=(Ee,Oe)=>{if(pr(a.errors,Oe)&&Ee.focus)return Ee.focus(),1;return},Ir=async(Ee,Oe={})=>{let je,Zt,zt=Nj(Ee);if(r.resolver){let jt=await Ge(ga(Ee)?Ee:zt);je=df(jt),Zt=Ee?!zt.some((ir)=>pr(jt,ir)):je}else if(Ee)Zt=(await Promise.all(zt.map(async(jt)=>{let ir=pr(i,jt);return await Ft({fields:ir&&ir._f?{[jt]:ir}:ir,eventType:qR.TRIGGER})}))).every(Boolean),!(!Zt&&!a.isValid)&&X();else Zt=je=await Ft({fields:i,name:Ee,eventType:qR.TRIGGER});if(Oe.delayError&&r.delayError&&qi(Ee)){let jt=pr(a.errors,Ee);if(jt)ri(a.errors,Ee),m[Ee]=G(Ee,()=>oe(Ee,jt)),m[Ee](r.delayError);else clearTimeout(g[Ee]),delete m[Ee]}return U.state.next({...!qi(Ee)||(z.isValid||k.isValid)&&je!==a.isValid?{}:{name:Ee},...r.resolver||!Ee?{isValid:je}:{},errors:a.errors}),Oe.shouldFocus&&!Zt&&DO(i,Xt,Ee?zt:d.mount),Zt},wr=(Ee,Oe)=>{let je={...c.mount?l:s};if(Oe)je=nye(Oe.dirtyFields?a.dirtyFields:a.touchedFields,je);return ga(Ee)?je:qi(Ee)?pr(je,Ee):Ee.map((Zt)=>pr(je,Zt))},Tr=(Ee)=>ga(Ee)?{...a.errors}:qi(Ee)?pr(a.errors,Ee):Ee.map((Oe)=>pr(a.errors,Oe)),Zr=(Ee,Oe)=>{let je=Oe||a,Zt=pr(je.errors,Ee);return{invalid:!!Zt,isDirty:!!pr(je.dirtyFields,Ee),error:Zt,isValidating:!!pr(a.validatingFields,Ee),isTouched:!!pr(je.touchedFields,Ee)}},co=(Ee)=>{let Oe=Ee?Nj(Ee):void 0;if(Oe===null||Oe===void 0||Oe.forEach((je)=>ri(a.errors,je)),Oe)Oe.forEach((je)=>{U.state.next({name:je,errors:a.errors})});else a.errors={},U.state.next({errors:a.errors})},io=(Ee,Oe,je)=>{let Zt=(pr(i,Ee,{_f:{}})._f||{}).ref,zt=pr(a.errors,Ee)||{},{ref:jt,message:ir,type:Nt,...bt}=zt;ha(a.errors,Ee,{...bt,...Oe,ref:Zt}),U.state.next({name:Ee,errors:a.errors,isValid:!1}),je&&je.shouldFocus&&Zt&&Zt.focus&&Zt.focus()},xa=(Ee,Oe)=>{if(Ec(Ee)){x++;let{unsubscribe:je}=U.state.subscribe({next:(zt)=>("values"in zt)&&Ee(zt.values||_t(void 0,Oe),zt)}),Zt=!1;return{unsubscribe:()=>{if(Zt)return;Zt=!0,x--,je()}}}return _t(Ee,Oe,!0)},cr=(Ee)=>{var Oe;let je=!!((Oe=Ee.formState)===null||Oe===void 0?void 0:Oe.values);if(je)x++;let{unsubscribe:Zt}=U.state.subscribe({next:(jt)=>{if(u1t(Ee.name,jt.name,Ee.exact)&&c1t(jt,Ee.formState||z,Br,Ee.reRenderRoot)){let ir={...l};Ee.callback({values:ir,...a,...jt,defaultValues:s})}}});if(!je)return Zt;let zt=!1;return()=>{if(zt)return;zt=!0,x--,Zt()}},uo=(Ee)=>(c.mount=!0,k={...k,...Ee.formState},cr({...Ee,formState:{..._,...Ee.formState}})),lo=(Ee,Oe={})=>{for(let je of Ee?Nj(Ee):d.mount){if(d.mount.delete(je),d.array.delete(je),!Oe.keepValue)ri(i,je),ri(l,je);!Oe.keepError&&ri(a.errors,je),!Oe.keepDirty&&ri(a.dirtyFields,je),!Oe.keepTouched&&ri(a.touchedFields,je),!Oe.keepIsValidating&&ri(a.validatingFields,je),!r.shouldUnregister&&!Oe.keepDefaultValue&&ri(s,je)}x&&U.state.next({values:bn(l)}),U.state.next({...a,...Oe.keepDirty?{}:{isDirty:de()}}),!Oe.keepIsValid&&X()},No=({disabled:Ee,name:Oe})=>{if(LZ(Ee)&&c.mount||!!Ee||d.disabled.has(Oe)){let zt=d.disabled.has(Oe)!==!!Ee;Ee?d.disabled.add(Oe):d.disabled.delete(Oe),zt&&c.mount&&!c.action&&X()}},pn=(Ee,Oe={})=>{let je=pr(i,Ee),Zt=LZ(Oe.disabled)||LZ(r.disabled),zt=!d.registerName.has(Ee)&&je&&je._f&&!je._f.mount;if(ha(i,Ee,{...je||{},_f:{...je&&je._f?je._f:{ref:{name:Ee}},name:Ee,mount:!0,...Oe}}),d.mount.add(Ee),je&&!zt)No({disabled:LZ(Oe.disabled)?Oe.disabled:r.disabled,name:Ee});else Ye(Ee,!0,Oe.value);return{...Zt?{disabled:Oe.disabled||r.disabled}:{},...r.progressive?{required:!!Oe.required,min:EO(Oe.min),max:EO(Oe.max),minLength:EO(Oe.minLength),maxLength:EO(Oe.maxLength),pattern:EO(Oe.pattern)}:{},name:Ee,onChange:Kt,onBlur:Kt,ref:(jt)=>{if(jt){d.registerName.add(Ee),pn(Ee,Oe),d.registerName.delete(Ee),je=pr(i,Ee);let ir=ga(jt.value)?jt.querySelectorAll?jt.querySelectorAll("input,select,textarea")[0]||jt:jt:jt,Nt=a1t(ir),bt=je._f.refs||[];if(Nt?bt.find((Nr)=>Nr===ir):ir===je._f.ref)return;let qt={...je._f};if(Nt)qt.refs=[...bt.filter(rG),ir,...Array.isArray(pr(s,Ee))?[{}]:[]],qt.ref={type:ir.type,name:Ee};else qt.ref=ir,delete qt.refs;ha(i,Ee,{_f:qt}),Ye(Ee,!1,void 0,ir)}else{if(je=pr(i,Ee,{}),je._f)je._f.mount=!1;(r.shouldUnregister||Oe.shouldUnregister)&&!(HIt(d.array,Ee)&&c.action)&&d.unMount.add(Ee)}}}},Ho=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&DO(i,Xt,d.mount),Fn=(Ee)=>{if(LZ(Ee))U.state.next({disabled:Ee}),DO(i,(Oe,je)=>{let Zt=pr(i,je);if(Zt){if(Oe.disabled=Zt._f.disabled||Ee,Array.isArray(Zt._f.refs))Zt._f.refs.forEach((zt)=>{zt.disabled=Zt._f.disabled||Ee})}},0,!1)},mn=(Ee,Oe)=>async(je)=>{let Zt=void 0,zt=void 0;if(je)je.preventDefault&&je.preventDefault(),je.persist&&je.persist();let jt=bn(l);if(U.state.next({isSubmitting:!0}),r.resolver){let{errors:ir,values:Nt}=await dt();J(),a.errors=ir,jt=bn(Nt)}else await Ft({fields:i,eventType:qR.SUBMIT});if(d.disabled.size)for(let ir of d.disabled)ri(jt,ir);if(ri(a.errors,tye),df(a.errors)){U.state.next({errors:{}});try{Zt=await Ee(jt,je)}catch(ir){zt=ir}}else{if(Oe)await Oe({...a.errors},je);Ho(),setTimeout(Ho)}if(U.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:df(a.errors)&&!zt,submitCount:a.submitCount+1,errors:a.errors}),zt)throw zt;return Zt},Hi=(Ee,Oe={})=>{if(pr(i,Ee)){if(ga(Oe.defaultValue))Jt(Ee,bn(pr(s,Ee)));else Jt(Ee,Oe.defaultValue),ha(s,Ee,bn(Oe.defaultValue));if(!Oe.keepTouched)ri(a.touchedFields,Ee);if(!Oe.keepDirty)ri(a.dirtyFields,Ee),a.isDirty=Oe.defaultValue?de(Ee,bn(pr(s,Ee))):de();if(!Oe.keepError)ri(a.errors,Ee),z.isValid&&X();U.state.next({...a})}},Ke=(Ee,Oe={})=>{let je=Ee?bn(Ee):s,Zt=bn(je),zt=df(Ee),jt=Zt,ir=i;if(!Oe.keepDefaultValues)s=je;if(!Oe.keepValues){if(Oe.keepDirtyValues){let Nt=new Set([...d.mount,...fye(EL(s,l,void 0,ir),a.dirtyFields)]);for(let bt of Nt){let qt=pr(a.dirtyFields,bt),Nr=pr(l,bt),jr=pr(jt,bt);if(qt&&!ga(Nr))ha(jt,bt,Nr);else if(!qt&&!ga(jr))Jt(bt,jr)}}else{if(Uj&&ga(Ee))for(let Nt of d.mount){let bt=pr(i,Nt);if(bt&&bt._f){let qt=Array.isArray(bt._f.refs)?bt._f.refs[0]:bt._f.ref;if(Fj(qt)){let Nr=qt.closest("form");if(Nr){Nr.reset();break}}}}if(Oe.keepFieldsRef)for(let Nt of d.mount)Jt(Nt,pr(jt,Nt));else i={}}if(r.shouldUnregister){if(l=Oe.keepDefaultValues?bn(s):{},Oe.keepFieldsRef)for(let Nt of d.mount)ha(l,Nt,pr(jt,Nt))}else l=bn(jt);U.array.next({values:{...jt}}),U.state.next({name:void 0,type:void 0,values:{...jt}})}if(d={mount:Oe.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!z.isValid||!!Oe.keepIsValid||!!Oe.keepDirtyValues||!r.shouldUnregister&&!df(jt),c.watch=!!r.shouldUnregister,c.keepIsValid=!!Oe.keepIsValid,c.action=!1,c.actionArrayLengths.clear(),!Oe.keepErrors)a.errors={};U.state.next({submitCount:Oe.keepSubmitCount?a.submitCount:0,isDirty:zt?!1:Oe.keepDirty?a.isDirty:Oe.keepValues?de():!!(Oe.keepDefaultValues&&!Tu(Ee,s)),isSubmitted:Oe.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:zt?{}:Oe.keepDirtyValues?Oe.keepDefaultValues&&l?EL(s,l,void 0,ir):a.dirtyFields:Oe.keepDefaultValues&&Ee?EL(s,Ee,void 0,ir):Oe.keepDirty?a.dirtyFields:{},touchedFields:Oe.keepTouched?a.touchedFields:{},errors:Oe.keepErrors?a.errors:{},isSubmitSuccessful:Oe.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Et=(Ee,Oe)=>Ke(Ec(Ee)?Ee(l):Ee,{...r.resetOptions,...Oe}),mr=(Ee,Oe={})=>{let je=pr(i,Ee),Zt=je&&je._f;if(Zt){let zt=Zt.refs?Zt.refs[0]:Zt.ref;if(zt.focus)setTimeout(()=>{zt.focus(),Oe.shouldSelect&&Ec(zt.select)&&zt.select()})}},Br=(Ee)=>{let{name:Oe,type:je,values:Zt,...zt}=Ee;a={...a,...zt}};U.state.subscribe({next:Br});let qa={control:{register:pn,unregister:lo,getFieldState:Zr,handleSubmit:mn,setError:io,_subscribe:cr,_runSchema:dt,_updateIsValidating:J,_focusError:Ho,_getWatch:_t,_getDirty:de,_setValid:X,_setFieldArray:re,_setDisabledField:No,_setErrors:ie,_getFieldArray:Wt,_reset:Ke,_resetDefaultValues:()=>Ec(r.defaultValues)&&r.defaultValues().then((Ee)=>{Et(Ee,r.resetOptions),U.state.next({isLoading:!1})}),_removeUnmounted:Bt,_disableForm:Fn,_subjects:U,_proxyFormState:z,get _fields(){return i},get _formValues(){return l},get _state(){return c},set _state(Ee){c=Ee},get _defaultValues(){return s},get _names(){return d},set _names(Ee){d=Ee},get _formState(){return a},get _options(){return r},set _options(Ee){r={...r,...Ee},v=Oj(r.mode),b=Oj(r.reValidateMode)}},subscribe:uo,trigger:Ir,register:pn,handleSubmit:mn,watch:xa,setValue:Jt,setValues:Fr,getValues:wr,getErrors:Tr,reset:Et,resetField:Hi,resetDefaultValues:(Ee,Oe={})=>{if(s=bn(Ee),!Oe.keepDirty){let je=EL(s,l,void 0,i);a.dirtyFields=je,a.isDirty=!df(je)}if(!Oe.keepIsValid)X();U.state.next({...a,defaultValues:s})},clearErrors:co,unregister:lo,setError:io,setFocus:mr,getFieldState:Zr};return{...qa,formControl:qa}}function Fl(e={}){let r=y(void 0),a=y(void 0),i=y(e.formControl),[s,l]=u(()=>({...bn(dye),isLoading:Ec(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ec(e.defaultValues)?void 0:e.defaultValues}));if(!r.current||e.formControl&&i.current!==e.formControl)if(i.current=e.formControl,e.formControl){if(r.current={...e.formControl,formState:s},e.defaultValues&&!Ec(e.defaultValues))e.formControl.reset(e.defaultValues,e.resetOptions)}else{let{formControl:g,...x}=h1t(e);r.current={...x,formState:s}}let c=r.current.control;c._options=e;let{resyncIfNeeded:d,snapshot:m}=JIt();return XIt(()=>{let g=()=>({...c._formState,defaultValues:c._defaultValues});d(!0,g,l);let x=c._subscribe({formState:c._proxyFormState,callback:()=>l({...c._formState,defaultValues:c._defaultValues}),reRenderRoot:!0});return l((v)=>({...v,isReady:!0})),c._formState.isReady=!0,()=>{x(),m(!0,g)}},[c,d,m]),h(()=>c._disableForm(e.disabled),[c,e.disabled]),h(()=>{if(e.mode)c._options.mode=e.mode;if(e.reValidateMode)c._options.reValidateMode=e.reValidateMode},[c,e.mode,e.reValidateMode]),h(()=>{if(e.errors)c._setErrors(e.errors),c._focusError()},[c,e.errors]),h(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),h(()=>{if(c._proxyFormState.isDirty){let g=c._getDirty();if(g!==s.isDirty)c._subjects.state.next({isDirty:g})}},[c,s.isDirty]),h(()=>{var g;if(e.values&&!Tu(e.values,a.current)){if(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),!((g=c._options.resetOptions)===null||g===void 0?void 0:g.keepIsValid))c._setValid();a.current=e.values,l((x)=>({...x}))}else c._resetDefaultValues()},[c,e.values]),h(()=>{if(!c._state.mount)c._setValid(),c._state.mount=!0;if(c._state.watch)c._state.watch=!1,c._subjects.state.next({...c._formState});c._removeUnmounted()}),r.current.formState=N(()=>GIt(s,c),[c,s]),r.current}var Zye=(e,r,a)=>{if(e&&"reportValidity"in e){let i=pr(a,r);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},qj=(e,r)=>{for(let a in r.fields){let i=r.fields[a];i&&i.ref&&"reportValidity"in i.ref?Zye(i.ref,a,e):i&&i.refs&&i.refs.forEach((s)=>Zye(s,a,e))}},cG=(e,r)=>{r.shouldUseNativeValidation&&qj(e,r);let a={};for(let i in e){let s=pr(r.fields,i),l=Object.assign(e[i]||{},{ref:s&&s.refs?s.refs[0]:s&&s.ref});if(g1t(r.names||Object.keys(e),i)){let c=Object.assign({},pr(a,i));ha(c,"root",l),ha(a,i,c)}else ha(a,i,l)}return a},g1t=(e,r)=>{let a=pye(r).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some((i)=>pye(i).match(`^${a}\\.\\d+`))};function pye(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function uG(){return uG=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},uG.apply(null,arguments)}function mye(e,r){try{var a=e()}catch(i){return r(i)}return a&&a.then?a.then(void 0,r):a}function M1t(e,r){for(var a=Object.create(null);e.length;){var i=e[0],{code:s,message:l}=i,c=i.path.join(".");if(!a[c])if("unionErrors"in i){var d,m,g=i.unionErrors.reduce(function(b,_){return _.errors.length<b.errors.length?_:b}).errors[0];a[c]={message:(d=g==null?void 0:g.message)!=null?d:l,type:(m=g==null?void 0:g.code)!=null?m:s}}else a[c]={message:l,type:s};if("unionErrors"in i&&i.unionErrors.forEach(function(b){return b.errors.forEach(function(_){return e.push(_)})}),r){var x=a[c].types,v=x&&x[i.code];a[c]=Yj(c,r,a,s,v?[].concat(v,i.message):i.message)}e.shift()}return a}function x1t(e,r){for(var a=Object.create(null),i=function(){var s=e[0],{code:l,message:c}=s,d=s.path.join(".");if(!a[d])if(s.code==="invalid_union"&&s.errors.length>0){var m,g,x=s.errors.reduce(function(_,z){return z.length<_.length?z:_})[0];a[d]={message:(m=x==null?void 0:x.message)!=null?m:c,type:(g=x==null?void 0:x.code)!=null?g:l}}else a[d]={message:c,type:l};if(s.code==="invalid_union"&&s.errors.forEach(function(_){return _.forEach(function(z){return e.push(uG({},z,{path:[].concat(s.path,z.path)}))})}),r){var v=a[d].types,b=v&&v[s.code];a[d]=Yj(d,r,a,l,b?[].concat(b,s.message):s.message)}e.shift()};e.length;)i();return a}function Ll(e,r,a){if(a===void 0&&(a={}),function(i){return"_zod"in i&&typeof i._zod=="object"}(e))return function(i,s,l){try{return Promise.resolve(mye(function(){function c(m){return l.shouldUseNativeValidation&&qj({},l),{errors:{},values:a.raw?Object.assign({},i):m}}var d=e;return a.mode==="sync"?c(d.parse(i,r)):Promise.resolve(d.parseAsync(i,r)).then(c)},function(c){if(function(d){var m;return!(d==null||(m=d._zod)==null||(m=m.traits)==null||!m.has("$ZodError"))}(c))return{values:{},errors:cG(x1t(c.issues,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw c}))}catch(c){return Promise.reject(c)}};if(function(i){return"_def"in i&&typeof i._def=="object"}(e))return function(i,s,l){try{return Promise.resolve(mye(function(){return Promise.resolve(e[a.mode==="sync"?"parse":"parseAsync"](i,r)).then(function(c){return l.shouldUseNativeValidation&&qj({},l),{errors:{},values:a.raw?Object.assign({},i):c}})},function(c){if(function(d){return Array.isArray(d==null?void 0:d.issues)}(c))return{values:{},errors:cG(M1t(c.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw c}))}catch(c){return Promise.reject(c)}};throw Error("Invalid input: not a Zod schema")}S();var v1t=R({email:f().email(Xse()),password:f().min(3,hp()),inviteCode:f().optional()});function y1t(){let e=Re(),a=dG.useSearch().inviteCode,[i,s]=u(null),[l,c]=u(!1),[d,m]=u(()=>n()==="zh"?"zh":"en"),g=(T)=>{m(T),Pa(T)},{data:x}=Z({queryKey:["invite",a],queryFn:async()=>{let T=await A.api.invite[":code"].$get({param:{code:a}});if(!T.ok)throw Error("Failed to fetch invite info");return await T.json()},enabled:!!a}),{data:v,isLoading:b}=Z({queryKey:["/signup-info"],queryFn:async()=>{let T=await A.api["signup-info"].$get();if(!T.ok)throw Error("Failed to fetch signup info");return await T.json()}}),_=gf((T)=>T.setUser),z=Fl({resolver:Ll(v1t),defaultValues:{inviteCode:a}}),k=async(T)=>{c(!0),s(null);let{data:G,error:X}=await Mse.email({email:T.email,password:T.password,name:T.email,inviteCode:T.inviteCode,locale:d});if(c(!1),X){s(X.message||Odt());return}if(G)_(G.user),e({to:"/"})};if(b)return t("div",{className:"flex items-center justify-center min-h-screen bg-zinc-100/80 dark:bg-black",children:o("div",{className:"relative flex flex-col items-center",children:[t(ZM,{className:"h-16 w-16 animate-pulse mb-4 text-rose-500 shadow-xl rounded-2xl"}),t(O,{className:"h-6 w-6 animate-spin text-rose-500/70"})]})});let U=v?.initialized===!1;if(!U&&!a)return o("div",{className:"min-h-screen w-full flex items-center justify-center p-4 md:p-8 bg-zinc-100/80 dark:bg-black font-sans overflow-hidden relative",children:[t("div",{className:"bg-rose-500/10 dark:bg-rose-600/5 w-[500px] h-[500px] rounded-full blur-[120px] absolute top-[-10%] left-[-10%] animate-drift-slow"}),t("div",{className:"bg-orange-500/10 dark:bg-orange-600/5 w-[500px] h-[500px] rounded-full blur-[120px] absolute bottom-[-10%] right-[-10%] animate-drift-medium"}),o(ut,{className:"w-full max-w-md relative z-10 border border-zinc-200 dark:border-zinc-850 shadow-2xl bg-white dark:bg-zinc-900 rounded-3xl overflow-hidden",children:[o(Tt,{className:"text-center pt-8 pb-4",children:[t("div",{className:"flex justify-center mb-4",children:t(ZM,{className:"h-16 w-16 shadow-lg shadow-rose-500/10 rounded-2xl"})}),t(Mt,{className:"text-2xl font-bold tracking-tight bg-gradient-to-r from-rose-500 to-orange-500 bg-clip-text text-transparent",children:Kft()}),t(Ot,{className:"mt-2 text-zinc-600 dark:text-zinc-400",children:Qft()})]}),t(nf,{className:"flex flex-col gap-4 pb-8 text-center text-sm border-t border-zinc-200/30 dark:border-zinc-800/30 pt-6",children:o("p",{className:"text-zinc-500 dark:text-zinc-400",children:[Use()," ",o("a",{href:"/login",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-1",children:[tKe()," ",t(Xn,{className:"w-3.5 h-3.5"})]})]})})]})]});return o(Ol,{children:[o("div",{className:"mb-8",children:[t("h1",{className:"text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50",children:t3e()}),t("p",{className:"text-zinc-500 dark:text-zinc-400 text-sm mt-1 mb-4",children:jdt()}),U&&o("div",{className:"flex items-start gap-3 p-3 bg-amber-500/10 border border-amber-500/20 text-amber-800 dark:text-amber-300 rounded-2xl text-xs leading-relaxed font-medium",children:[t("span",{children:"\uD83C\uDF89"}),t("span",{children:S9e()})]}),x&&!("error"in x)&&o("div",{className:"flex items-start gap-3 p-3 bg-rose-500/10 border border-rose-500/20 text-rose-800 dark:text-rose-300 rounded-2xl text-xs leading-relaxed font-medium mt-3",children:[t("span",{children:"\uD83D\uDC4B"}),t("span",{children:GVe({inviterName:x.inviterName,targetName:x.projectName||x.teamName,role:x.role})})]})]}),i&&t("div",{className:"mb-6 p-3 bg-red-500/10 border border-red-500/20 text-red-600 dark:text-red-400 rounded-xl text-sm text-center font-medium",children:i}),o("form",{onSubmit:z.handleSubmit(k),className:"space-y-5",children:[o("div",{className:"space-y-2",children:[t(W,{htmlFor:"email",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:Hse()}),o("div",{className:"relative group",children:[t(fi,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(q,{id:"email",...z.register("email"),placeholder:"you@example.com",type:"email",className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),z.formState.errors.email&&t("p",{className:"text-red-500 text-xs font-medium",children:z.formState.errors.email.message})]}),o("div",{className:"space-y-2",children:[t(W,{htmlFor:"password",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:mp()}),o("div",{className:"relative group",children:[t(on,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(q,{id:"password",type:"password",...z.register("password"),placeholder:sot(),className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),z.formState.errors.password&&t("p",{className:"text-red-500 text-xs font-medium",children:z.formState.errors.password.message})]}),t(E,{type:"submit",className:"w-full h-11 bg-gradient-to-r from-rose-500 to-orange-500 hover:from-rose-600 hover:to-orange-600 text-white font-semibold rounded-xl shadow-md shadow-rose-500/10 hover:shadow-rose-500/20 active:scale-[0.98] transition-all flex items-center justify-center gap-2 border-0",disabled:l,children:l?o(L,{children:[t(O,{className:"h-4 w-4 animate-spin"}),j3e()]}):o(L,{children:[t(Z2,{className:"w-4 h-4"}),ole()]})})]}),o("div",{className:"mt-12 pt-10 border-t border-zinc-200/30 dark:border-zinc-800/30 text-center text-sm flex flex justify-between gap-4",children:[o("div",{children:[o("span",{className:"text-zinc-500 dark:text-zinc-400",children:[Use()," "]}),o("a",{href:"/login",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-0.5",children:[Jse()," ",t(Xn,{className:"w-3.5 h-3.5"})]})]}),o("div",{className:"flex items-center gap-2 text-xs text-zinc-400 dark:text-zinc-500",children:[t("button",{type:"button",onClick:()=>g("en"),className:`cursor-pointer hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors ${d==="en"?"font-bold text-rose-500 dark:text-rose-400":""}`,children:"English"}),t("span",{className:"text-zinc-300 dark:text-zinc-850",children:"/"}),t("button",{type:"button",onClick:()=>g("zh"),className:`cursor-pointer hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors ${d==="zh"?"font-bold text-rose-500 dark:text-rose-400":""}`,children:"中文"})]})]})]})}var dG=Hr("/signup")({component:y1t,validateSearch:(e)=>({inviteCode:e.inviteCode||void 0}),beforeLoad:()=>{if(gf.getState().user)throw sl({to:"/"})}});var _1t=R({token:f().catch("")}),hye=Hr("/reset-password")({validateSearch:(e)=>_1t.parse(e),beforeLoad:()=>{if(gf.getState().user)throw sl({to:"/"})}});S();var b1t=R({email:f().email(Xse()),password:f().min(1,oot())});function w1t(){let e=Re(),r=gf((z)=>z.setUser),[a,i]=u(null),[s,l]=u(!1),[c,d]=u(!1),{data:m,isLoading:g}=Z({queryKey:["/signup-info"],queryFn:async()=>{let z=await A.api["signup-info"].$get();if(!z.ok)throw Error("Failed to fetch signup info");return await z.json()}});h(()=>{if(m&&!m.initialized)e({to:"/signup",search:{inviteCode:""}})},[m,e]);let x=m?.demoMode===!0,v=Fl({resolver:Ll(b1t)}),b=async(z)=>{l(!0),i(null);let{data:k,error:U}=await qq.email({email:z.email,password:z.password});if(l(!1),U){i(U.message||Gse());return}if(k)r(k.user),e({to:"/"})},_=async()=>{d(!0),i(null),v.clearErrors(),v.setValue("email","foo@bar.com"),v.setValue("password","foo");let{data:z,error:k}=await qq.email({email:"foo@bar.com",password:"foo"});if(d(!1),k){i(k.message||Gse());return}if(z)r(z.user),e({to:"/"})};if(g)return t("div",{className:"flex items-center justify-center min-h-screen bg-zinc-100/80 dark:bg-black",children:o("div",{className:"relative flex flex-col items-center",children:[t(ZM,{className:"h-16 w-16 animate-pulse mb-4 text-rose-500 shadow-xl rounded-2xl"}),t(O,{className:"h-6 w-6 animate-spin text-rose-500/70"})]})});return o(Ol,{children:[o("div",{className:"mb-8",children:[t("h1",{className:"text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50",children:B8t()}),t("p",{className:"text-zinc-500 dark:text-zinc-400 text-sm mt-1",children:aKe()})]}),a&&t("div",{className:"mb-6 p-3 bg-red-500/10 border border-red-500/20 text-red-600 dark:text-red-400 rounded-xl text-sm text-center font-medium",children:a}),o("form",{onSubmit:v.handleSubmit(b),className:"space-y-5",children:[o("div",{className:"space-y-2",children:[t(W,{htmlFor:"email",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:Hse()}),o("div",{className:"relative group",children:[t(fi,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(q,{id:"email",...v.register("email"),placeholder:"you@example.com",type:"email",className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),v.formState.errors.email&&t("p",{className:"text-red-500 text-xs font-medium",children:v.formState.errors.email.message})]}),o("div",{className:"space-y-2",children:[t(W,{htmlFor:"password",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:mp()}),o("div",{className:"relative group",children:[t(on,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(q,{id:"password",type:"password",...v.register("password"),placeholder:uot(),className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),v.formState.errors.password&&t("p",{className:"text-red-500 text-xs font-medium",children:v.formState.errors.password.message})]}),t(E,{type:"submit",className:"w-full h-11 bg-gradient-to-r from-rose-500 to-orange-500 hover:from-rose-600 hover:to-orange-600 text-white font-semibold rounded-xl shadow-md shadow-rose-500/10 hover:shadow-rose-500/20 active:scale-[0.98] transition-all flex items-center justify-center gap-2 border-0",disabled:s||c,children:s?o(L,{children:[t(O,{className:"h-4 w-4 animate-spin"}),Qse()]}):o(L,{children:[t(d2,{className:"w-4 h-4"}),Jse()]})})]}),x&&o("div",{className:"mt-4 space-y-4",children:[o("div",{className:"relative",children:[t("div",{className:"absolute inset-0 flex items-center",children:t("span",{className:"w-full border-t border-zinc-200/80 dark:border-zinc-800"})}),t("div",{className:"relative flex justify-center text-xs uppercase",children:t("span",{className:"bg-white dark:bg-zinc-900 px-2 text-zinc-400 dark:text-zinc-500 font-medium",children:gg()})})]}),t(E,{type:"button",variant:"outline",onClick:_,disabled:s||c,className:"w-full h-11 border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-800 font-semibold rounded-xl transition-all flex items-center justify-center gap-2 shadow-xs cursor-pointer",children:c?o(L,{children:[t(O,{className:"h-4 w-4 animate-spin"}),Qse()]}):o(L,{children:[t(Yo,{className:"w-4 h-4 text-zinc-500 dark:text-zinc-400"}),JWe()]})}),t("div",{className:"p-3 bg-blue-500/10 border border-blue-500/20 text-blue-700 dark:text-blue-400 rounded-xl text-xs leading-relaxed text-center",children:o("p",{children:[t("strong",{children:NBe()})," ",BBe()]})})]}),o("div",{className:"mt-8 pt-6 border-t border-zinc-200/30 dark:border-zinc-800/30 text-center text-sm",children:[t("span",{className:"text-zinc-500 dark:text-zinc-400",children:SJe()}),o("a",{href:"/signup",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-0.5",children:[ole()," ",t(Xn,{className:"w-3.5 h-3.5"})]})]})]})}var gye=Hr("/login")({component:w1t,beforeLoad:()=>{if(gf.getState().user)throw sl({to:"/"})}});S();function Mye(){let e=Re(),{data:r,isLoading:a}=Z({queryKey:["teams"],queryFn:async()=>{let l=await A.api.teams.$get({query:{}});if(!l.ok)throw Error("Failed to get teams");return await l.json()}}),i=r?.data,s=i?.length===1?i[0].id:null;if(h(()=>{if(s)e({to:`/teams/${s}`})},[s,e]),a)return t("div",{children:wd()});if(s)return null;return t(ue,{open:!0,children:o(ae,{children:[o(fe,{children:[t(le,{children:dct()}),t(It,{children:sut()})]}),t("div",{className:"space-y-2",children:i?.map((l)=>t("div",{className:"p-2 border rounded-md cursor-pointer hover:bg-gray-100",onClick:()=>e({to:`/teams/${l.id}`}),children:l.name},l.id))})]})})}S();function z1t(){let e=gf((a)=>a.user),r=Re();if(h(()=>{if(!e)r({to:"/login"})},[e,r]),!e)return null;return t(Mye,{})}var xye=Hr("/")({component:z1t});function S1t(){return t(RM,{})}var vye=Hr("/share/$shareId")({component:S1t});var yye=Hr("/teams/$teamId/")({});var _ye=Hr("/share/$shareId/")({});function me({className:e,...r}){return t("div",{"data-slot":"skeleton",className:C("animate-pulse rounded-md bg-accent",e),...r})}function St(){return o("div",{className:"flex h-screen flex-col bg-background min-h-0",children:[o("div",{className:"flex h-14 items-center justify-between border-b px-6 shrink-0",children:[o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-4 w-24"}),t("span",{className:"text-muted-foreground",children:"/"}),t(me,{className:"h-4 w-32"})]}),o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-8 w-8 rounded-md"}),t(me,{className:"h-8 w-20 rounded-md"})]})]}),o("div",{className:"flex flex-1 overflow-hidden",children:[o("div",{className:"w-[240px] border-r p-4 space-y-4 hidden md:block shrink-0",children:[o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-4 w-4 rounded"}),t(me,{className:"h-4 w-24"})]}),o("div",{className:"pl-4 space-y-3",children:[o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-3 w-3 rounded"}),t(me,{className:"h-3 w-28"})]}),o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-3 w-3 rounded"}),t(me,{className:"h-3 w-20"})]}),o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-3 w-3 rounded"}),t(me,{className:"h-3 w-24"})]})]})]}),o("div",{className:"flex-1 p-6 space-y-6 overflow-y-auto",children:[o("div",{className:"flex items-center justify-between border-b pb-4",children:[o("div",{className:"flex items-center gap-4",children:[t(me,{className:"h-5 w-40"}),t(me,{className:"h-4 w-20"})]}),o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-8 w-8 rounded"}),t(me,{className:"h-8 w-8 rounded"}),t(me,{className:"h-8 w-32 rounded"})]})]}),o("div",{className:"space-y-4",children:[t("div",{className:"flex items-center gap-2",children:t(me,{className:"h-4 w-24"})}),t("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:Array.from({length:10}).map((e,r)=>o("div",{className:"flex flex-col rounded-lg border bg-card p-3 space-y-3",children:[t(me,{className:"aspect-square w-full rounded-md"}),o("div",{className:"space-y-2",children:[t(me,{className:"h-4 w-3/4"}),o("div",{className:"flex justify-between items-center",children:[t(me,{className:"h-3 w-1/4"}),t(me,{className:"h-3 w-1/3"})]})]})]},r))})]})]})]})]})}function NA(){return o("div",{className:"h-screen flex flex-col bg-background",children:[o("div",{className:"flex h-14 items-center justify-between border-b px-6 shrink-0",children:[o("div",{className:"flex items-center gap-2",children:[t(me,{className:"h-4 w-16"}),t("span",{className:"text-muted-foreground",children:"/"}),t(me,{className:"h-4 w-28"}),t("span",{className:"text-muted-foreground",children:"/"}),t(me,{className:"h-4 w-32"})]}),t("div",{className:"flex items-center gap-2",children:t(me,{className:"h-8 w-20 rounded"})})]}),o("div",{className:"flex flex-1 overflow-hidden",children:[o("div",{className:"w-[280px] border-r p-4 flex flex-col gap-4 shrink-0 hidden md:flex",children:[t(me,{className:"h-5 w-24"}),t("div",{className:"space-y-3 flex-1 overflow-y-auto",children:Array.from({length:4}).map((e,r)=>o("div",{className:"flex gap-3 p-2 rounded border",children:[t(me,{className:"h-12 w-12 rounded bg-muted shrink-0"}),o("div",{className:"space-y-2 flex-1",children:[t(me,{className:"h-3 w-2/3"}),t(me,{className:"h-2 w-1/2"})]})]},r))})]}),o("div",{className:"flex-1 bg-muted/20 p-6 flex flex-col justify-between relative min-w-0",children:[t("div",{className:"flex-1 flex items-center justify-center",children:t(me,{className:"w-full max-w-4xl aspect-video rounded-lg shadow-lg"})}),o("div",{className:"mt-4 flex items-center justify-between shrink-0",children:[o("div",{className:"flex items-center gap-4",children:[t(me,{className:"h-8 w-8 rounded-full"}),t(me,{className:"h-4 w-32"})]}),t(me,{className:"h-4 w-24"})]})]}),o("div",{className:"w-[360px] border-l p-4 flex flex-col gap-6 shrink-0 hidden lg:flex bg-card",children:[o("div",{className:"space-y-4",children:[t(me,{className:"h-5 w-32"}),t("div",{className:"space-y-3",children:Array.from({length:3}).map((e,r)=>o("div",{className:"flex justify-between items-center py-1 border-b",children:[t(me,{className:"h-3 w-20"}),t(me,{className:"h-3 w-32"})]},r))})]}),o("div",{className:"flex-1 flex flex-col gap-4",children:[t(me,{className:"h-5 w-24"}),t("div",{className:"space-y-3 flex-1 overflow-y-auto",children:Array.from({length:3}).map((e,r)=>o("div",{className:"flex gap-3 p-3 rounded-lg border bg-muted/10",children:[t(me,{className:"h-8 w-8 rounded-full shrink-0"}),o("div",{className:"space-y-2 flex-1",children:[o("div",{className:"flex justify-between",children:[t(me,{className:"h-3 w-24"}),t(me,{className:"h-2 w-12"})]}),t(me,{className:"h-3 w-full"}),t(me,{className:"h-3 w-5/6"})]})]},r))})]})]})]})]})}function DA({displayStyle:e="card"}){if(e==="list")return t("div",{className:"p-4 space-y-2","data-testid":"file-browser-loading-skeleton",children:Array.from({length:8}).map((r,a)=>o("div",{className:"flex items-center gap-4 py-2 border-b border-border/40",children:[t(me,{className:"h-4 w-4 rounded"}),t(me,{className:"h-4 w-4 rounded"}),t(me,{className:"h-4 w-48"}),o("div",{className:"ml-auto flex items-center gap-8",children:[t(me,{className:"h-3 w-16"}),t(me,{className:"h-3 w-24"})]})]},a))});return t("div",{className:"p-4 space-y-4","data-testid":"file-browser-loading-skeleton",children:t("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:Array.from({length:10}).map((r,a)=>o("div",{className:"flex flex-col rounded-lg border bg-card p-3 space-y-3",children:[t(me,{className:"aspect-square w-full rounded-md"}),o("div",{className:"space-y-2",children:[t(me,{className:"h-4 w-3/4"}),o("div",{className:"flex justify-between items-center",children:[t(me,{className:"h-3 w-1/4"}),t(me,{className:"h-3 w-1/3"})]})]})]},a))})})}function OA(){return t("div",{className:"p-3 space-y-3 max-w-lg mx-auto w-full","data-testid":"mobile-file-browser-loading-skeleton",children:Array.from({length:6}).map((e,r)=>o("div",{className:"flex items-center gap-3 p-3 rounded-lg border bg-card",children:[t(me,{className:"h-10 w-10 rounded-md shrink-0"}),o("div",{className:"space-y-2 flex-1",children:[t(me,{className:"h-4 w-3/4"}),t(me,{className:"h-3 w-1/3"})]})]},r))})}var Xp=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("failed to fetch project");return await r.json()}}),bye=Hr("/projects/$projectId/")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(Xp(r)),pendingComponent:()=>t(St,{})});var wye=Hr("/teams/$teamId/settings")({});var L1t=R({taskId:f().optional()}),zye=Hr("/teams/$teamId/kanban")({validateSearch:(e)=>L1t.parse(e)});var Sye=Hr("/teams/$teamId/dashboard")({});var em=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),Lye=Hr("/projects/$projectId/recents")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(em(r)),pendingComponent:()=>t(St,{})});var tm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),kye=Hr("/projects/$projectId/recently-deleted")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(tm(r)),pendingComponent:()=>t(St,{})});var rm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("failed to fetch project");return await r.json()}}),Cye=Hr("/projects/$projectId/agentsmd")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(rm(r)),pendingComponent:()=>t(St,{})});var nm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),Iye=Hr("/projects/$projectId/shares/")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(nm(r)),pendingComponent:()=>t(St,{})});var om=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),Rye=Hr("/projects/$projectId/collections/")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(om(r)),pendingComponent:()=>t(St,{})});var Pye=Hr("/share/$shareId/folders/$folderId")({});var Tye=Hr("/share/$shareId/files/$fileId")({validateSearch:(e)=>({start:e.start?Number(e.start):void 0,version:e.version||void 0,compare:e.compare===!0||e.compare==="true"||void 0,cmpLeft:e.cmpLeft||void 0,cmpRight:e.cmpRight||void 0,cmpActive:e.cmpActive==="right"?"right":void 0})});var sm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),Aye=Hr("/projects/$projectId/shares/$shareId")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(sm(r)),pendingComponent:()=>t(St,{})});var im=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),Eye=Hr("/projects/$projectId/folders/$folderId")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(im(r)),pendingComponent:()=>t(St,{})});var Dye=Hr("/projects/$projectId/files/$fileId")({validateSearch:(e)=>({version:e.version||void 0,start:e.start?Number(e.start):void 0,compare:e.compare===!0||e.compare==="true"||void 0,cmpLeft:e.cmpLeft||void 0,cmpRight:e.cmpRight||void 0,cmpActive:e.cmpActive==="right"?"right":void 0})});var am=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),FA=(e)=>({queryKey:["collections",e],queryFn:async()=>{let r=await A.api.collections[":collectionId"].$get({param:{collectionId:e}});if(!r.ok)throw Error("Failed to fetch collection");return await r.json()}}),Oye=Hr("/projects/$projectId/collections/$collectionId")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(am(r)),pendingComponent:()=>t("div",{children:Hh()})});var lm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),Nye=Hr("/projects/$projectId/folders/$folderId_/agentsmd")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(lm(r)),pendingComponent:()=>t(St,{})});var k1t=dG.update({id:"/signup",path:"/signup",getParentRoute:()=>On}),C1t=hye.update({id:"/reset-password",path:"/reset-password",getParentRoute:()=>On}).lazy(()=>import("./chunk-xyh5dkr5.js").then((e)=>e.Route)),I1t=gye.update({id:"/login",path:"/login",getParentRoute:()=>On}),R1t=xye.update({id:"/",path:"/",getParentRoute:()=>On}),Hj=vye.update({id:"/share/$shareId",path:"/share/$shareId",getParentRoute:()=>On}),P1t=yye.update({id:"/teams/$teamId/",path:"/teams/$teamId/",getParentRoute:()=>On}).lazy(()=>import("./chunk-zf2h3w7t.js").then((e)=>e.Route)),T1t=_ye.update({id:"/",path:"/",getParentRoute:()=>Hj}).lazy(()=>import("./chunk-wf32n1s3.js").then((e)=>e.Route)),A1t=bye.update({id:"/projects/$projectId/",path:"/projects/$projectId/",getParentRoute:()=>On}).lazy(()=>import("./chunk-zkep4r7d.js").then((e)=>e.Route)),E1t=wye.update({id:"/teams/$teamId/settings",path:"/teams/$teamId/settings",getParentRoute:()=>On}).lazy(()=>import("./chunk-088e1ath.js").then((e)=>e.Route)),D1t=zye.update({id:"/teams/$teamId/kanban",path:"/teams/$teamId/kanban",getParentRoute:()=>On}).lazy(()=>import("./chunk-57nqvcg7.js").then((e)=>e.Route)),O1t=Sye.update({id:"/teams/$teamId/dashboard",path:"/teams/$teamId/dashboard",getParentRoute:()=>On}).lazy(()=>import("./chunk-a5fsqkt7.js").then((e)=>e.Route)),N1t=Lye.update({id:"/projects/$projectId/recents",path:"/projects/$projectId/recents",getParentRoute:()=>On}).lazy(()=>import("./chunk-1ya6vx4k.js").then((e)=>e.Route)),F1t=kye.update({id:"/projects/$projectId/recently-deleted",path:"/projects/$projectId/recently-deleted",getParentRoute:()=>On}).lazy(()=>import("./chunk-qcf3tb72.js").then((e)=>e.Route)),j1t=Cye.update({id:"/projects/$projectId/agentsmd",path:"/projects/$projectId/agentsmd",getParentRoute:()=>On}).lazy(()=>import("./chunk-nbfcknsq.js").then((e)=>e.Route)),B1t=Iye.update({id:"/projects/$projectId/shares/",path:"/projects/$projectId/shares/",getParentRoute:()=>On}).lazy(()=>import("./chunk-tcp4q15p.js").then((e)=>e.Route)),U1t=Rye.update({id:"/projects/$projectId/collections/",path:"/projects/$projectId/collections/",getParentRoute:()=>On}).lazy(()=>import("./chunk-c0vbj8za.js").then((e)=>e.Route)),Y1t=Pye.update({id:"/folders/$folderId",path:"/folders/$folderId",getParentRoute:()=>Hj}).lazy(()=>import("./chunk-dy79b8kd.js").then((e)=>e.Route)),q1t=Tye.update({id:"/files/$fileId",path:"/files/$fileId",getParentRoute:()=>Hj}).lazy(()=>import("./chunk-g9f9nzcc.js").then((e)=>e.Route)),H1t=Aye.update({id:"/projects/$projectId/shares/$shareId",path:"/projects/$projectId/shares/$shareId",getParentRoute:()=>On}).lazy(()=>import("./chunk-s33pcxn0.js").then((e)=>e.Route)),V1t=Eye.update({id:"/projects/$projectId/folders/$folderId",path:"/projects/$projectId/folders/$folderId",getParentRoute:()=>On}).lazy(()=>import("./chunk-rgfh5apb.js").then((e)=>e.Route)),W1t=Dye.update({id:"/projects/$projectId/files/$fileId",path:"/projects/$projectId/files/$fileId",getParentRoute:()=>On}).lazy(()=>import("./chunk-rpxayeqd.js").then((e)=>e.Route)),K1t=Oye.update({id:"/projects/$projectId/collections/$collectionId",path:"/projects/$projectId/collections/$collectionId",getParentRoute:()=>On}).lazy(()=>import("./chunk-4frhvsy0.js").then((e)=>e.Route)),G1t=Nye.update({id:"/projects/$projectId/folders/$folderId_/agentsmd",path:"/projects/$projectId/folders/$folderId/agentsmd",getParentRoute:()=>On}).lazy(()=>import("./chunk-58hdvwj2.js").then((e)=>e.Route)),X1t={ShareShareIdIndexRoute:T1t,ShareShareIdFilesFileIdRoute:q1t,ShareShareIdFoldersFolderIdRoute:Y1t},Q1t=Hj._addFileChildren(X1t),J1t={IndexRoute:R1t,LoginRoute:I1t,ResetPasswordRoute:C1t,SignupRoute:k1t,ShareShareIdRoute:Q1t,ProjectsProjectIdAgentsmdRoute:j1t,ProjectsProjectIdRecentlyDeletedRoute:F1t,ProjectsProjectIdRecentsRoute:N1t,TeamsTeamIdDashboardRoute:O1t,TeamsTeamIdKanbanRoute:D1t,TeamsTeamIdSettingsRoute:E1t,ProjectsProjectIdIndexRoute:A1t,TeamsTeamIdIndexRoute:P1t,ProjectsProjectIdCollectionsCollectionIdRoute:K1t,ProjectsProjectIdFilesFileIdRoute:W1t,ProjectsProjectIdFoldersFolderIdRoute:V1t,ProjectsProjectIdSharesShareIdRoute:H1t,ProjectsProjectIdCollectionsIndexRoute:U1t,ProjectsProjectIdSharesIndexRoute:B1t,ProjectsProjectIdFoldersFolderIdAgentsmdRoute:G1t},Fye=On._addFileChildren(J1t)._addFileTypes();if(typeof window<"u"){let e=["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."];window.addEventListener("error",(r)=>{if(e.includes(r.message))r.stopImmediatePropagation()})}var jye=new pB,$1t=KB({routeTree:Fye,context:{queryClient:jye}});Ute(document.getElementById("root")).render(t(tB,{children:t(oB,{client:jye,children:t(Hte,{defaultTheme:"system",storageKey:"vite-ui-theme",children:t(GB,{router:$1t})})})}));export{V,Ns,Cn,ui,Wi,it,j,F,Bn,Ca,D,ft,di,h,ju,gn,$e,N,tn,y,u,Yn,Ds,S,L,t,o,Q,qu,Hu,yr,Mc,Yi,Ia,bo,Ht,Ko,$u,Gu,Vu,Em,Qu,kc,Ku,ul,Z,B,pt,Rc,Re,Ji,rn,Un,ze,Jn,Xi,dl,Os,fl,pl,ml,Wu,Fs,hl,Yu,Rr,A,I,xr,zn,Sr,or,O,In,Do,Gr,Vr,Xn,ea,ta,Ct,jn,Pe,ve,nn,vt,Ta,er,wt,qn,tr,Ma,Ls,rr,Zs,eo,Wo,to,Bs,Oo,on,fi,vo,ka,pe,Ut,Ra,wo,we,Yo,Ne,C,fs,mt,_e,Y,Rt,Er,pi,Lt,se,ar,mi,hi,Hn,gi,gl,Al,_l,Ju,Xu,ed,td,rd,nd,od,sd,id,Ai,Pc,E,sn,an,ln,cn,Ce,Ie,Te,he,ra,ge,Ae,K,Nc,_i,Qr,Vt,ps,ms,hs,gs,Cm,n,Pa,BA,UA,zA,jA,qA,HA,$A,wf,GA,VA,QA,Im,xf,KA,WA,YA,ad,JA,XA,ld,Tm,Mm,km,e0,t0,r0,n0,o0,Sf,s0,Rm,i0,Pm,a0,l0,c0,u0,d0,f0,p0,m0,h0,g0,A0,_0,y0,b0,Nm,v0,Dm,w0,Om,x0,Fm,S0,Lm,E0,Zm,C0,Bm,I0,Um,T0,zm,M0,k0,R0,jm,P0,N0,D0,qm,Hm,$m,Gm,O0,F0,L0,Z0,B0,Vm,U0,z0,j0,q0,H0,$0,G0,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