@shumai-one/shumai 0.3.9 → 0.3.11

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 (194) hide show
  1. package/bin/chunk-02b97gsf.js +2 -0
  2. package/bin/chunk-0ash207y.js +2 -0
  3. package/bin/{chunk-7a4347xe.js → chunk-0g0gt4bj.js} +2 -2
  4. package/bin/chunk-0j3yb84c.js +1 -0
  5. package/bin/{chunk-va9hwggw.js → chunk-0vqefpcw.js} +1 -1
  6. package/bin/chunk-0wgqr4jg.js +2 -0
  7. package/bin/{chunk-ytgtf0ak.js → chunk-0xqf53hc.js} +1 -1
  8. package/bin/chunk-12ps84z8.js +2 -0
  9. package/bin/{chunk-pfwt5734.js → chunk-12r8a5ev.js} +2 -2
  10. package/bin/{chunk-agvb6bpw.js → chunk-1dzby9bb.js} +1 -1
  11. package/bin/chunk-1tby7q3f.js +1 -0
  12. package/bin/{chunk-zcxajg6j.js → chunk-2s97ngr8.js} +2 -2
  13. package/bin/chunk-31f07jzm.js +2 -0
  14. package/bin/{chunk-z71h48pj.js → chunk-393g7z2g.js} +1 -1
  15. package/bin/{chunk-9s1fdecm.js → chunk-3j47y8ah.js} +1 -1
  16. package/bin/{chunk-qp1hkx9k.js → chunk-3qva5sqr.js} +2 -2
  17. package/bin/chunk-3ztat2q9.js +68 -0
  18. package/bin/chunk-48yphy68.js +73 -0
  19. package/bin/chunk-4pj17byj.js +2 -0
  20. package/bin/chunk-4t2qcxp5.js +1 -0
  21. package/bin/{chunk-zvq0btde.js → chunk-4yke5y3z.js} +3 -3
  22. package/bin/{chunk-5657zj59.js → chunk-50vzkdc8.js} +1 -1
  23. package/bin/{chunk-naaa5ejw.js → chunk-5dfy6173.js} +2 -2
  24. package/bin/{chunk-3h4t28zz.js → chunk-5nk7y4ec.js} +2 -2
  25. package/bin/chunk-68bfd8x7.js +3 -0
  26. package/bin/{chunk-j4byth37.js → chunk-69at8jm8.js} +1 -1
  27. package/bin/{chunk-f37ywvvp.js → chunk-6edh2e59.js} +1 -1
  28. package/bin/{chunk-tfwtxwth.js → chunk-6qzcnkgx.js} +2 -2
  29. package/bin/chunk-6ts5az6h.js +2 -0
  30. package/bin/chunk-72nj00dp.js +1 -0
  31. package/bin/{chunk-c32x8x6z.js → chunk-77c2xm0z.js} +1 -1
  32. package/bin/{chunk-11j7ejan.js → chunk-7888x3vz.js} +3 -3
  33. package/bin/chunk-7anqxpyv.js +2 -0
  34. package/bin/{chunk-v5c6t1w3.js → chunk-7t31qfw5.js} +3 -3
  35. package/bin/chunk-8b11b9cj.js +2 -0
  36. package/bin/{chunk-wjk0f9fq.js → chunk-8bv8qsb8.js} +2 -2
  37. package/bin/chunk-8ekjxb5q.js +2 -0
  38. package/bin/chunk-8qg6jjz4.js +2 -0
  39. package/bin/{chunk-vf6mpxrd.js → chunk-8r2agmv2.js} +2 -2
  40. package/bin/{chunk-331s5eb9.js → chunk-8zar6cc4.js} +2 -2
  41. package/bin/chunk-9m9bn55a.js +1 -0
  42. package/bin/{chunk-dt9wfyf2.js → chunk-9qytehed.js} +2 -2
  43. package/bin/{chunk-ej18j83b.js → chunk-a5ja6d97.js} +1 -1
  44. package/bin/chunk-aq7q5e36.js +2 -0
  45. package/bin/{chunk-rq6bvf0t.js → chunk-axnvvkdf.js} +2 -2
  46. package/bin/chunk-ayr3tsz3.js +2 -0
  47. package/bin/{chunk-p65avrcv.js → chunk-b78s1cxz.js} +2 -2
  48. package/bin/chunk-bthrbggg.js +2 -0
  49. package/bin/chunk-byjze6hm.js +2 -0
  50. package/bin/{chunk-79wjyt2p.js → chunk-c16vvzdj.js} +1 -1
  51. package/bin/{chunk-9fc118ea.js → chunk-cmd0feyq.js} +2 -2
  52. package/bin/chunk-csh1ggtt.js +1 -0
  53. package/bin/{chunk-p2wyyvfa.js → chunk-ctx1ms5t.js} +2 -2
  54. package/bin/{chunk-x6ta6e2v.js → chunk-cyjh5qsk.js} +1 -1
  55. package/bin/chunk-day0vn14.js +2 -0
  56. package/bin/{chunk-z7m6sa7g.js → chunk-dhhfwbns.js} +1 -1
  57. package/bin/{chunk-qt6j0fm6.js → chunk-dwkv3bx5.js} +2 -2
  58. package/bin/chunk-dyen2t1p.js +2 -0
  59. package/bin/chunk-e5r6rnt9.js +2 -0
  60. package/bin/{chunk-ptmxkptc.js → chunk-esa954t1.js} +2 -2
  61. package/bin/{chunk-fbqr4v70.js → chunk-f5c9g4y9.js} +1 -1
  62. package/bin/{chunk-wth2f791.js → chunk-f9ydhm8q.js} +2 -2
  63. package/bin/{chunk-nw1ch5d8.js → chunk-fsj3kxya.js} +2 -2
  64. package/bin/{chunk-dntwxkyf.js → chunk-fv14er33.js} +1 -1
  65. package/bin/chunk-ghw914d2.js +2 -0
  66. package/bin/{chunk-nn753fbs.js → chunk-gwzk0fvn.js} +2 -2
  67. package/bin/chunk-gx410cm2.js +2 -0
  68. package/bin/chunk-gx8sz5bw.js +2 -0
  69. package/bin/chunk-gydktfnx.js +2 -0
  70. package/bin/chunk-h5j1dqc0.js +1 -0
  71. package/bin/chunk-h7kyj2g2.js +2 -0
  72. package/bin/chunk-har4xctf.js +2 -0
  73. package/bin/chunk-hks5k0tm.js +7 -0
  74. package/bin/chunk-hpm4razn.js +2 -0
  75. package/bin/chunk-hv4t9h3e.js +9 -0
  76. package/bin/chunk-jsqsrcse.js +7 -0
  77. package/bin/{chunk-zq665ybs.js → chunk-k1jcdr0n.js} +1 -1
  78. package/bin/{chunk-vwayy6dy.js → chunk-kbw63gr4.js} +3 -3
  79. package/bin/{chunk-r7crhkhn.js → chunk-kcg7d7pk.js} +2 -2
  80. package/bin/chunk-kchbbtdm.js +2 -0
  81. package/bin/chunk-knh1stxe.js +4 -0
  82. package/bin/chunk-mkwrrdme.js +2 -0
  83. package/bin/{chunk-wzw7rrfy.js → chunk-mm995mvc.js} +2 -2
  84. package/bin/{chunk-0x6zt5yg.js → chunk-mvkqjrcd.js} +1 -1
  85. package/bin/chunk-mz9pthjh.js +2 -0
  86. package/bin/{chunk-7w01v7bw.js → chunk-n2ae527q.js} +44 -44
  87. package/bin/chunk-n3xn2ve1.js +1 -0
  88. package/bin/{chunk-yvknqnkb.js → chunk-ntqn09r0.js} +2 -2
  89. package/bin/{chunk-a6s80m0k.js → chunk-nw03w9pa.js} +1 -1
  90. package/bin/{chunk-c4yr75hy.js → chunk-nzrrvn6c.js} +2 -2
  91. package/bin/{chunk-6ts9djn2.js → chunk-p9w4ar11.js} +1 -1
  92. package/bin/chunk-ps2hw0ps.js +2 -0
  93. package/bin/{chunk-a2m63585.js → chunk-pz7ms4n2.js} +1 -1
  94. package/bin/chunk-q3fdffq5.js +1 -0
  95. package/bin/{chunk-03ec6p4p.js → chunk-qh3w5w8e.js} +2 -2
  96. package/bin/chunk-qrhf20g2.js +2 -0
  97. package/bin/{chunk-q3y6kdkh.js → chunk-qrnw89xg.js} +2 -2
  98. package/bin/{chunk-zafjhkkk.js → chunk-qz3kfrpr.js} +1 -1
  99. package/bin/{chunk-5efr8prc.js → chunk-r18tcdds.js} +1 -1
  100. package/bin/chunk-rd2n0rs6.js +1 -0
  101. package/bin/{chunk-6ja68bbj.js → chunk-res6r4tm.js} +1 -1
  102. package/bin/chunk-rr12edz4.js +2 -0
  103. package/bin/chunk-s04f76tb.js +2 -0
  104. package/bin/chunk-s0jy7grq.js +2 -0
  105. package/bin/{chunk-39j992fb.js → chunk-s9yzt7s3.js} +2 -2
  106. package/bin/{chunk-r0c9vmfm.js → chunk-sdjss6ja.js} +1 -1
  107. package/bin/chunk-sepsqqdf.js +2 -0
  108. package/bin/chunk-sqy50q9g.js +1 -0
  109. package/bin/chunk-sttc4axf.js +1 -0
  110. package/bin/chunk-szf2q87p.js +2 -0
  111. package/bin/{chunk-7wh2mr72.js → chunk-t2z4qys8.js} +1 -1
  112. package/bin/chunk-t6pmgmg2.js +1 -0
  113. package/bin/chunk-tdp1jjv1.js +2 -0
  114. package/bin/chunk-txpqhfqw.js +1 -0
  115. package/bin/{chunk-fhd9yadg.js → chunk-ty32j999.js} +2 -2
  116. package/bin/{chunk-h7jb1xb4.js → chunk-v073nwjn.js} +2 -2
  117. package/bin/chunk-vrdbqapq.js +2 -0
  118. package/bin/{chunk-s78r8f5v.js → chunk-vvx62hp4.js} +1 -1
  119. package/bin/chunk-vwa17b2r.js +1 -0
  120. package/bin/{chunk-nc9hbzad.js → chunk-wch8ygpt.js} +2 -2
  121. package/bin/{chunk-tx42kfdh.js → chunk-wdgwymdp.js} +1 -1
  122. package/bin/{chunk-vtm39m0n.js → chunk-whm06pnc.js} +1 -1
  123. package/bin/chunk-wqwvxskj.js +1 -0
  124. package/bin/chunk-wr3q8a9n.js +1 -0
  125. package/bin/chunk-wt01m93x.js +1 -0
  126. package/bin/{chunk-mv4v52ah.js → chunk-xext4yvc.js} +1 -1
  127. package/bin/chunk-xfzk0mrt.js +2 -0
  128. package/bin/chunk-xr1wr22v.css +1 -0
  129. package/bin/{chunk-jt7fdhke.js → chunk-xsgxk1fj.js} +1 -1
  130. package/bin/{chunk-mwrheqe3.js → chunk-xsqk7ek2.js} +1 -1
  131. package/bin/chunk-y0k1f3gk.js +2 -0
  132. package/bin/chunk-y1pnq12c.js +2 -0
  133. package/bin/{chunk-n3997tqa.js → chunk-z8crenxd.js} +1 -1
  134. package/bin/{chunk-jx9tqjh9.js → chunk-zvjx64p5.js} +1 -1
  135. package/bin/shumai-app.html +1 -1
  136. package/bin/shumai-app.js +513 -299
  137. package/package.json +7 -7
  138. package/prisma/migrations/20260819091331_add_kanban_schema/migration.sql +164 -0
  139. package/prisma/migrations/20260821102514_add_kanban_notifications/migration.sql +26 -0
  140. package/prisma/migrations/20260821133500_add_c_collation_to_kanban_sort_index/migration.sql +10 -0
  141. package/prisma/migrations/20260822020609_add_kanban_task_assets/migration.sql +17 -0
  142. package/prisma/migrations/20260822071734_remove_kanban_task_cancelled_status/migration.sql +28 -0
  143. package/prisma/migrations/20260825080704_add_recent_file_items/migration.sql +28 -0
  144. package/prisma/schema.prisma +207 -0
  145. package/bin/chunk-0h1yw3eq.js +0 -1
  146. package/bin/chunk-0kfcfd0x.js +0 -2
  147. package/bin/chunk-0rydta2q.js +0 -2
  148. package/bin/chunk-1eqdvehm.js +0 -2
  149. package/bin/chunk-2ckj039r.js +0 -2
  150. package/bin/chunk-2wcfw38x.js +0 -1
  151. package/bin/chunk-4st1t79p.js +0 -2
  152. package/bin/chunk-4yp5add5.js +0 -2
  153. package/bin/chunk-5ctpz542.js +0 -78
  154. package/bin/chunk-5ex69zt3.js +0 -2
  155. package/bin/chunk-7t9c532y.js +0 -1
  156. package/bin/chunk-7zvv37z0.js +0 -7
  157. package/bin/chunk-8hex1hjk.js +0 -2
  158. package/bin/chunk-8qryr65z.js +0 -2
  159. package/bin/chunk-9vjkb4vh.js +0 -1
  160. package/bin/chunk-ar79dg9g.js +0 -2
  161. package/bin/chunk-awaf0g5z.js +0 -2
  162. package/bin/chunk-b0kh9jpt.js +0 -1
  163. package/bin/chunk-bdwtaj3w.js +0 -2
  164. package/bin/chunk-d5v9nz51.js +0 -1
  165. package/bin/chunk-ddt5224b.js +0 -2
  166. package/bin/chunk-eekmnfn4.js +0 -2
  167. package/bin/chunk-ff8zrme6.js +0 -1
  168. package/bin/chunk-g2qeb32y.js +0 -2
  169. package/bin/chunk-gtqchcj0.js +0 -2
  170. package/bin/chunk-hdx9q31r.js +0 -1
  171. package/bin/chunk-hk5pwxhf.js +0 -2
  172. package/bin/chunk-hx2y4d75.js +0 -2
  173. package/bin/chunk-jkpxykx9.css +0 -1
  174. package/bin/chunk-jq28ge97.js +0 -1
  175. package/bin/chunk-jvn0xnj8.js +0 -2
  176. package/bin/chunk-mffjg6zb.js +0 -2
  177. package/bin/chunk-n3e4agsa.js +0 -2
  178. package/bin/chunk-ppwy5dja.js +0 -1
  179. package/bin/chunk-px660tvj.js +0 -2
  180. package/bin/chunk-qbs0nvbn.js +0 -3
  181. package/bin/chunk-t6gqzden.js +0 -1
  182. package/bin/chunk-tk362keq.js +0 -2
  183. package/bin/chunk-tn24as5d.js +0 -2
  184. package/bin/chunk-v2dksv7p.js +0 -2
  185. package/bin/chunk-v2n1hwt3.js +0 -1
  186. package/bin/chunk-vhcsdnzv.js +0 -2
  187. package/bin/chunk-w4e52ade.js +0 -2
  188. package/bin/chunk-wk153p7c.js +0 -1
  189. package/bin/chunk-wy82m4nq.js +0 -2
  190. package/bin/chunk-y8wj6g7y.js +0 -11
  191. package/bin/chunk-ympx92ct.js +0 -1
  192. package/bin/chunk-yx6mahz0.js +0 -1
  193. package/bin/chunk-z8s40zfa.js +0 -68
  194. package/bin/chunk-zwny8t7c.js +0 -2
@@ -1,11 +0,0 @@
1
- import{Le as P0}from"./chunk-awaf0g5z.js";import{Ne as E0}from"./chunk-wy82m4nq.js";import{Qe as fg}from"./chunk-tk362keq.js";import{Se as Zg}from"./chunk-hx2y4d75.js";import{Te as Ks}from"./chunk-p65avrcv.js";import{Ve as S0}from"./chunk-bdwtaj3w.js";import{Xe as V0}from"./chunk-0kfcfd0x.js";import{Ze as C0}from"./chunk-jvn0xnj8.js";import{$e as $0}from"./chunk-8hex1hjk.js";import{af as Os}from"./chunk-g2qeb32y.js";import{bf as u0,cf as Y0,df as k0,ef as y0,gf as j0}from"./chunk-wjk0f9fq.js";import{if as I0}from"./chunk-v2dksv7p.js";import"./chunk-nn753fbs.js";import{lf as Fs}from"./chunk-c4yr75hy.js";import{mf as vs,nf as cr}from"./chunk-4yp5add5.js";import{Af as xg,Bf as ps,Cf as ms,Df as xd,Kf as Hs,Mf as vM,Nf as qs,Of as Ds,of as sl,pf as gl,qf as wl,rf as bl,sf as oa,tf as hl,uf as pl,vf as ml,wf as xl,yf as ea,zf as ul}from"./chunk-4st1t79p.js";import{Pf as ne}from"./chunk-mffjg6zb.js";import"./chunk-3h4t28zz.js";import{Tf as h0,Uf as p0,Vf as m0,Wf as z8}from"./chunk-qt6j0fm6.js";import"./chunk-nc9hbzad.js";import"./chunk-z8s40zfa.js";import"./chunk-zcxajg6j.js";import{Pg as ge}from"./chunk-vhcsdnzv.js";import{Rg as ts,Sg as ds,Tg as cs,Ug as ls}from"./chunk-03ec6p4p.js";import{Vg as vr}from"./chunk-331s5eb9.js";import{lh as Js,mh as Gs,nh as Rs,oh as Us,ph as ve}from"./chunk-tn24as5d.js";import{sh as Vv,th as Cv,uh as $v}from"./chunk-naaa5ejw.js";import{Ch as Ms,Dh as ua,Eh as rs,Fh as as,Gh as os,Hh as ka,vh as Pv,wh as Ev,xh as fs,yh as Zs,zh as D8}from"./chunk-8qryr65z.js";import{$h as mg,Bi as Tf,Bj as js,Ci as ks,Ck as x0,Hi as ys,Kh as rg,Lh as Nf,Li as Ja,Lj as Xe,Mh as JZ,Mj as L0,Nh as w,Nj as Je,Oh as j,Ph as ws,Qh as ag,Qj as is,Sh as GZ,Uh as bs,Vh as se,Wh as We,Xi as hs,Yi as ze,_h as xZ,bi as Bs,ci as gf,dl as ns,ei as ya,fi as og,fj as Xs,fl as l8,gi as eg,gl as ja,hi as _s,hl as be,il as y,jl as W0,ll as X0,mi as uZ,ml as J0,oi as Ys,ol as G0,pi as Hf,pl as R0,ql as nr,ui as dr,wi as Ws}from"./chunk-5ctpz542.js";import{nm as Qf,om as Vb,pm as hg,qm as pg,sm as Of}from"./chunk-j4byth37.js";var ld={};hg(ld,{version:()=>nv,hydrateRoot:()=>zv,createRoot:()=>lv});function Y(f){var Z="https://react.dev/errors/"+f;if(1<arguments.length){Z+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)Z+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+f+"; visit "+Z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function kl(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function ia(f){var Z=f,M=f;if(f.alternate)for(;Z.return;)Z=Z.return;else{f=Z;do Z=f,(Z.flags&4098)!==0&&(M=Z.return),f=Z.return;while(f)}return Z.tag===3?M:null}function yl(f){if(f.tag===13){var Z=f.memoizedState;if(Z===null&&(f=f.alternate,f!==null&&(Z=f.memoizedState)),Z!==null)return Z.dehydrated}return null}function jl(f){if(f.tag===31){var Z=f.memoizedState;if(Z===null&&(f=f.alternate,f!==null&&(Z=f.memoizedState)),Z!==null)return Z.dehydrated}return null}function Td(f){if(ia(f)!==f)throw Error(Y(188))}function ug(f){var Z=f.alternate;if(!Z){if(Z=ia(f),Z===null)throw Error(Y(188));return Z!==f?null:f}for(var M=f,r=Z;;){var a=M.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){M=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===M)return Td(a),f;if(o===r)return Td(a),Z;o=o.sibling}throw Error(Y(188))}if(M.return!==r.return)M=a,r=o;else{for(var e=!1,i=a.child;i;){if(i===M){e=!0,M=a,r=o;break}if(i===r){e=!0,r=a,M=o;break}i=i.sibling}if(!e){for(i=o.child;i;){if(i===M){e=!0,M=o,r=a;break}if(i===r){e=!0,r=o,M=a;break}i=i.sibling}if(!e)throw Error(Y(189))}}if(M.alternate!==r)throw Error(Y(190))}if(M.tag!==3)throw Error(Y(188));return M.stateNode.current===M?f:Z}function Ll(f){var Z=f.tag;if(Z===5||Z===26||Z===27||Z===6)return f;for(f=f.child;f!==null;){if(Z=Ll(f),Z!==null)return Z;f=f.sibling}return null}function wr(f){if(f===null||typeof f!=="object")return null;return f=Id&&f[Id]||f["@@iterator"],typeof f==="function"?f:null}function xi(f){if(f==null)return null;if(typeof f==="function")return f.$$typeof===yg?null:f.displayName||f.name||null;if(typeof f==="string")return f;switch(f){case uM:return"Fragment";case bi:return"Profiler";case Al:return"StrictMode";case hi:return"Suspense";case pi:return"SuspenseList";case mi:return"Activity"}if(typeof f==="object")switch(f.$$typeof){case ur:return"Portal";case PZ:return f.displayName||"Context";case Wl:return(f._context.displayName||"Context")+".Consumer";case st:var Z=f.render;return f=f.displayName,f||(f=Z.displayName||Z.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case gt:return Z=f.displayName||null,Z!==null?Z:xi(f.type)||"Memo";case n8:Z=f._payload,f=f._init;try{return xi(f(Z))}catch(M){}}return null}function HZ(f){return{current:f}}function Wf(f){0>YM||(f.current=ui[YM],ui[YM]=null,YM--)}function of(f,Z){YM++,ui[YM]=f.current,f.current=Z}function vo(f,Z){switch(of(Y8,Z),of(Nr,f),of(_Z,null),Z.nodeType){case 9:case 11:f=(f=Z.documentElement)?(f=f.namespaceURI)?Pc(f):0:0;break;default:if(f=Z.tagName,Z=Z.namespaceURI)Z=Pc(Z),f=$n(Z,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}Wf(_Z),of(_Z,f)}function DM(){Wf(_Z),Wf(Nr),Wf(Y8)}function Yi(f){f.memoizedState!==null&&of(no,f);var Z=_Z.current,M=$n(Z,f.type);Z!==M&&(of(Nr,f),of(_Z,M))}function so(f){Nr.current===f&&(Wf(_Z),Wf(Nr)),no.current===f&&(Wf(no),Ma._currentValue=P8)}function I8(f){if(He===void 0)try{throw Error()}catch(M){var Z=M.stack.trim().match(/\n( *(at )?)/);He=Z&&Z[1]||"",Sd=-1<M.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<M.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+He+f+Sd}function De(f,Z){if(!f||qe)return"";qe=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(Z){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(z){var s=z}Reflect.construct(f,[],g)}else{try{g.call()}catch(z){s=z}f.call(g.prototype)}}else{try{throw Error()}catch(z){s=z}(g=f())&&typeof g.catch==="function"&&g.catch(function(){})}}catch(z){if(z&&s&&typeof z.stack==="string")return[z.stack,s.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),e=o[0],i=o[1];if(e&&i){var t=e.split(`
4
- `),c=i.split(`
5
- `);for(a=r=0;r<t.length&&!t[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===t.length||a===c.length)for(r=t.length-1,a=c.length-1;1<=r&&0<=a&&t[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(t[r]!==c[a]){if(r!==1||a!==1)do if(r--,a--,0>a||t[r]!==c[a]){var l=`
6
- `+t[r].replace(" at new "," at ");return f.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",f.displayName)),l}while(1<=r&&0<=a);break}}}finally{qe=!1,Error.prepareStackTrace=M}return(M=f?f.displayName||f.name:"")?I8(M):""}function jg(f,Z){switch(f.tag){case 26:case 27:case 5:return I8(f.type);case 16:return I8("Lazy");case 13:return f.child!==Z&&Z!==null?I8("Suspense Fallback"):I8("Suspense");case 19:return I8("SuspenseList");case 0:case 15:return De(f.type,!1);case 11:return De(f.type.render,!1);case 1:return De(f.type,!0);case 31:return I8("Activity");default:return""}}function Vd(f){try{var Z="",M=null;do Z+=jg(f,M),M=f,f=f.return;while(f);return Z}catch(r){return`
7
- Error generating stack: `+r.message+`
8
- `+r.stack}}function h8(f){if(typeof Jg==="function"&&Gg(f),oZ&&typeof oZ.setStrictMode==="function")try{oZ.setStrictMode(ta,f)}catch(Z){}}function Kg(f){return f>>>=0,f===0?32:31-(Rg(f)/Ug|0)|0}function S8(f){var Z=f&42;if(Z!==0)return Z;switch(f&-f){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 f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Oo(f,Z,M){var r=f.pendingLanes;if(r===0)return 0;var a=0,o=f.suspendedLanes,e=f.pingedLanes;f=f.warmLanes;var i=r&134217727;return i!==0?(r=i&~o,r!==0?a=S8(r):(e&=i,e!==0?a=S8(e):M||(M=i&~f,M!==0&&(a=S8(M))))):(i=r&~o,i!==0?a=S8(i):e!==0?a=S8(e):M||(M=r&~f,M!==0&&(a=S8(M)))),a===0?0:Z!==0&&Z!==a&&(Z&o)===0&&(o=a&-a,M=Z&-Z,o>=M||o===32&&(M&4194048)!==0)?Z:a}function da(f,Z){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&Z)===0}function Qg(f,Z){switch(f){case 1:case 2:case 4:case 8:case 64:return Z+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 Z+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 Rl(){var f=_a;return _a<<=1,(_a&62914560)===0&&(_a=4194304),f}function Fe(f){for(var Z=[],M=0;31>M;M++)Z.push(f);return Z}function ca(f,Z){f.pendingLanes|=Z,Z!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Bg(f,Z,M,r,a,o){var e=f.pendingLanes;f.pendingLanes=M,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=M,f.entangledLanes&=M,f.errorRecoveryDisabledLanes&=M,f.shellSuspendCounter=0;var{entanglements:i,expirationTimes:t,hiddenUpdates:c}=f;for(M=e&~M;0<M;){var l=31-eZ(M),g=1<<l;i[l]=0,t[l]=-1;var s=c[l];if(s!==null)for(c[l]=null,l=0;l<s.length;l++){var z=s[l];z!==null&&(z.lane&=-536870913)}M&=~g}r!==0&&Ul(f,r,0),o!==0&&a===0&&f.tag!==0&&(f.suspendedLanes|=o&~(e&~Z))}function Ul(f,Z,M){f.pendingLanes|=Z,f.suspendedLanes&=~Z;var r=31-eZ(Z);f.entangledLanes|=Z,f.entanglements[r]=f.entanglements[r]|1073741824|M&261930}function Kl(f,Z){var M=f.entangledLanes|=Z;for(f=f.entanglements;M;){var r=31-eZ(M),a=1<<r;a&Z|f[r]&Z&&(f[r]|=Z),M&=~a}}function Ql(f,Z){var M=Z&-Z;return M=(M&42)!==0?1:bt(M),(M&(f.suspendedLanes|Z))!==0?0:M}function bt(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=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:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function ht(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function Bl(){var f=P.p;if(f!==0)return f;return f=window.event,f===void 0?32:tv(f.type)}function Cd(f,Z){var M=P.p;try{return P.p=f,Z()}finally{P.p=M}}function pt(f){delete f[Gf],delete f[Pf],delete f[yi],delete f[_g],delete f[Hg]}function kM(f){var Z=f[Gf];if(Z)return Z;for(var M=f.parentNode;M;){if(Z=M[EM]||M[Gf]){if(M=Z.alternate,Z.child!==null||M!==null&&M.child!==null)for(f=rl(f);f!==null;){if(M=f[Gf])return M;f=rl(f)}return Z}f=M,M=f.parentNode}return null}function fr(f){if(f=f[Gf]||f[EM]){var Z=f.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return f}return null}function kr(f){var Z=f.tag;if(Z===5||Z===26||Z===27||Z===6)return f.stateNode;throw Error(Y(33))}function UM(f){var Z=f[$d];return Z||(Z=f[$d]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function Af(f){f[la]=!0}function tM(f,Z){OM(f,Z),OM(f+"Capture",Z)}function OM(f,Z){Hl[f]=Z;for(f=0;f<Z.length;f++)_l.add(Z[f])}function Dg(f){if(ki.call(Ed,f))return!0;if(ki.call(Pd,f))return!1;if(qg.test(f))return Ed[f]=!0;return Pd[f]=!0,!1}function Ca(f,Z,M){if(Dg(Z))if(M===null)f.removeAttribute(Z);else{switch(typeof M){case"undefined":case"function":case"symbol":f.removeAttribute(Z);return;case"boolean":var r=Z.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){f.removeAttribute(Z);return}}f.setAttribute(Z,""+M)}}function Ha(f,Z,M){if(M===null)f.removeAttribute(Z);else{switch(typeof M){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(Z);return}f.setAttribute(Z,""+M)}}function NZ(f,Z,M,r){if(r===null)f.removeAttribute(M);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(M);return}f.setAttributeNS(Z,M,""+r)}}function nZ(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function ql(f){var Z=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function Og(f,Z,M){var r=Object.getOwnPropertyDescriptor(f.constructor.prototype,Z);if(!f.hasOwnProperty(Z)&&typeof r<"u"&&typeof r.get==="function"&&typeof r.set==="function"){var{get:a,set:o}=r;return Object.defineProperty(f,Z,{configurable:!0,get:function(){return a.call(this)},set:function(e){M=""+e,o.call(this,e)}}),Object.defineProperty(f,Z,{enumerable:r.enumerable}),{getValue:function(){return M},setValue:function(e){M=""+e},stopTracking:function(){f._valueTracker=null,delete f[Z]}}}}function ji(f){if(!f._valueTracker){var Z=ql(f)?"checked":"value";f._valueTracker=Og(f,Z,""+f[Z])}}function Dl(f){if(!f)return!1;var Z=f._valueTracker;if(!Z)return!0;var M=Z.getValue(),r="";return f&&(r=ql(f)?f.checked?"true":"false":f.value),f=r,f!==M?(Z.setValue(f),!0):!1}function wo(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch(Z){return f.body}}function gZ(f){return f.replace(Fg,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function Li(f,Z,M,r,a,o,e,i){if(f.name="",e!=null&&typeof e!=="function"&&typeof e!=="symbol"&&typeof e!=="boolean"?f.type=e:f.removeAttribute("type"),Z!=null)if(e==="number"){if(Z===0&&f.value===""||f.value!=Z)f.value=""+nZ(Z)}else f.value!==""+nZ(Z)&&(f.value=""+nZ(Z));else e!=="submit"&&e!=="reset"||f.removeAttribute("value");Z!=null?Ai(f,e,nZ(Z)):M!=null?Ai(f,e,nZ(M)):r!=null&&f.removeAttribute("value"),a==null&&o!=null&&(f.defaultChecked=!!o),a!=null&&(f.checked=a&&typeof a!=="function"&&typeof a!=="symbol"),i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"?f.name=""+nZ(i):f.removeAttribute("name")}function Ol(f,Z,M,r,a,o,e,i){if(o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&typeof o!=="boolean"&&(f.type=o),Z!=null||M!=null){if(!(o!=="submit"&&o!=="reset"||Z!==void 0&&Z!==null)){ji(f);return}M=M!=null?""+nZ(M):"",Z=Z!=null?""+nZ(Z):M,i||Z===f.value||(f.value=Z),f.defaultValue=Z}r=r!=null?r:a,r=typeof r!=="function"&&typeof r!=="symbol"&&!!r,f.checked=i?f.checked:!!r,f.defaultChecked=!!r,e!=null&&typeof e!=="function"&&typeof e!=="symbol"&&typeof e!=="boolean"&&(f.name=e),ji(f)}function Ai(f,Z,M){Z==="number"&&wo(f.ownerDocument)===f||f.defaultValue===""+M||(f.defaultValue=""+M)}function KM(f,Z,M,r){if(f=f.options,Z){Z={};for(var a=0;a<M.length;a++)Z["$"+M[a]]=!0;for(M=0;M<f.length;M++)a=Z.hasOwnProperty("$"+f[M].value),f[M].selected!==a&&(f[M].selected=a),a&&r&&(f[M].defaultSelected=!0)}else{M=""+nZ(M),Z=null;for(a=0;a<f.length;a++){if(f[a].value===M){f[a].selected=!0,r&&(f[a].defaultSelected=!0);return}Z!==null||f[a].disabled||(Z=f[a])}Z!==null&&(Z.selected=!0)}}function Fl(f,Z,M){if(Z!=null&&(Z=""+nZ(Z),Z!==f.value&&(f.value=Z),M==null)){f.defaultValue!==Z&&(f.defaultValue=Z);return}f.defaultValue=M!=null?""+nZ(M):""}function Nl(f,Z,M,r){if(Z==null){if(r!=null){if(M!=null)throw Error(Y(92));if(Yr(r)){if(1<r.length)throw Error(Y(93));r=r[0]}M=r}M==null&&(M=""),Z=M}M=nZ(Z),f.defaultValue=M,r=f.textContent,r===M&&r!==""&&r!==null&&(f.value=r),ji(f)}function FM(f,Z){if(Z){var M=f.firstChild;if(M&&M===f.lastChild&&M.nodeType===3){M.nodeValue=Z;return}}f.textContent=Z}function fc(f,Z,M){var r=Z.indexOf("--")===0;M==null||typeof M==="boolean"||M===""?r?f.setProperty(Z,""):Z==="float"?f.cssFloat="":f[Z]="":r?f.setProperty(Z,M):typeof M!=="number"||M===0||Ng.has(Z)?Z==="float"?f.cssFloat=M:f[Z]=(""+M).trim():f[Z]=M+"px"}function Tl(f,Z,M){if(Z!=null&&typeof Z!=="object")throw Error(Y(62));if(f=f.style,M!=null){for(var r in M)!M.hasOwnProperty(r)||Z!=null&&Z.hasOwnProperty(r)||(r.indexOf("--")===0?f.setProperty(r,""):r==="float"?f.cssFloat="":f[r]="");for(var a in Z)r=Z[a],Z.hasOwnProperty(a)&&M[a]!==r&&fc(f,a,r)}else for(var o in Z)Z.hasOwnProperty(o)&&fc(f,o,Z[o])}function mt(f){if(f.indexOf("-")===-1)return!1;switch(f){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}}function $a(f){return Ig.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}function EZ(){}function xt(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}function Zc(f){var Z=fr(f);if(Z&&(f=Z.stateNode)){var M=f[Pf]||null;f:switch(f=Z.stateNode,Z.type){case"input":if(Li(f,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name),Z=M.name,M.type==="radio"&&Z!=null){for(M=f;M.parentNode;)M=M.parentNode;M=M.querySelectorAll('input[name="'+gZ(""+Z)+'"][type="radio"]');for(Z=0;Z<M.length;Z++){var r=M[Z];if(r!==f&&r.form===f.form){var a=r[Pf]||null;if(!a)throw Error(Y(90));Li(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(Z=0;Z<M.length;Z++)r=M[Z],r.form===f.form&&Dl(r)}break f;case"textarea":Fl(f,M.value,M.defaultValue);break f;case"select":Z=M.value,Z!=null&&KM(f,!!M.multiple,Z,!1)}}}function Il(f,Z,M){if(Ne)return f(Z,M);Ne=!0;try{var r=f(Z);return r}finally{if(Ne=!1,yM!==null||QM!==null){if(Ze(),yM&&(Z=yM,f=QM,QM=yM=null,Zc(Z),f))for(Z=0;Z<f.length;Z++)Zc(f[Z])}}}function Tr(f,Z){var M=f.stateNode;if(M===null)return null;var r=M[Pf]||null;if(r===null)return null;M=r[Z];f:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(f=f.type,r=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!r;break f;default:f=!1}if(f)return null;if(M&&typeof M!=="function")throw Error(Y(231,Z,typeof M));return M}function Sl(){if(Pa)return Pa;var f,Z=ut,M=Z.length,r,a="value"in p8?p8.value:p8.textContent,o=a.length;for(f=0;f<M&&Z[f]===a[f];f++);var e=M-f;for(r=1;r<=e&&Z[M-r]===a[o-r];r++);return Pa=a.slice(f,1<r?1-r:void 0)}function Ea(f){var Z=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&Z===13&&(f=13)):f=Z,f===10&&(f=13),32<=f||f===13?f:0}function qa(){return!0}function Mc(){return!1}function Ef(f){function Z(M,r,a,o,e){this._reactName=M,this._targetInst=a,this.type=r,this.nativeEvent=o,this.target=e,this.currentTarget=null;for(var i in f)f.hasOwnProperty(i)&&(M=f[i],this[i]=M?M(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?qa:Mc,this.isPropagationStopped=Mc,this}return df(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var M=this.nativeEvent;M&&(M.preventDefault?M.preventDefault():typeof M.returnValue!=="unknown"&&(M.returnValue=!1),this.isDefaultPrevented=qa)},stopPropagation:function(){var M=this.nativeEvent;M&&(M.stopPropagation?M.stopPropagation():typeof M.cancelBubble!=="unknown"&&(M.cancelBubble=!0),this.isPropagationStopped=qa)},persist:function(){},isPersistent:qa}),Z}function ew(f){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState(f):(f=ow[f])?!!Z[f]:!1}function Yt(){return ew}function Cl(f,Z){switch(f){case"keyup":return bw.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $l(f){return f=f.detail,typeof f==="object"&&"data"in f?f.data:null}function pw(f,Z){switch(f){case"compositionend":return $l(Z);case"keypress":if(Z.which!==32)return null;return ic=!0,ec;case"textInput":return f=Z.data,f===ec&&ic?null:f;default:return null}}function mw(f,Z){if(jM)return f==="compositionend"||!kt&&Cl(f,Z)?(f=Sl(),Pa=ut=p8=null,jM=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return Vl&&Z.locale!=="ko"?null:Z.data;default:return null}}function tc(f){var Z=f&&f.nodeName&&f.nodeName.toLowerCase();return Z==="input"?!!xw[f.type]:Z==="textarea"?!0:!1}function Pl(f,Z,M,r){yM?QM?QM.push(r):QM=[r]:yM=r,Z=Uo(Z,"onChange"),0<Z.length&&(M=new Fo("onChange","change",null,M,r),f.push({event:M,listeners:Z}))}function uw(f){Sn(f,0)}function To(f){var Z=kr(f);if(Dl(Z))return f}function dc(f,Z){if(f==="change")return Z}function cc(){Gr&&(Gr.detachEvent("onpropertychange",fz),Ir=Gr=null)}function fz(f){if(f.propertyName==="value"&&To(Ir)){var Z=[];Pl(Z,Ir,f,xt(f)),Il(uw,Z)}}function Yw(f,Z,M){f==="focusin"?(cc(),Gr=Z,Ir=M,Gr.attachEvent("onpropertychange",fz)):f==="focusout"&&cc()}function kw(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return To(Ir)}function yw(f,Z){if(f==="click")return To(Z)}function jw(f,Z){if(f==="input"||f==="change")return To(Z)}function Lw(f,Z){return f===Z&&(f!==0||1/f===1/Z)||f!==f&&Z!==Z}function Sr(f,Z){if(tZ(f,Z))return!0;if(typeof f!=="object"||f===null||typeof Z!=="object"||Z===null)return!1;var M=Object.keys(f),r=Object.keys(Z);if(M.length!==r.length)return!1;for(r=0;r<M.length;r++){var a=M[r];if(!ki.call(Z,a)||!tZ(f[a],Z[a]))return!1}return!0}function lc(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function zc(f,Z){var M=lc(f);f=0;for(var r;M;){if(M.nodeType===3){if(r=f+M.textContent.length,f<=Z&&r>=Z)return{node:M,offset:Z-f};f=r}f:{for(;M;){if(M.nextSibling){M=M.nextSibling;break f}M=M.parentNode}M=void 0}M=lc(M)}}function Zz(f,Z){return f&&Z?f===Z?!0:f&&f.nodeType===3?!1:Z&&Z.nodeType===3?Zz(f,Z.parentNode):("contains"in f)?f.contains(Z):f.compareDocumentPosition?!!(f.compareDocumentPosition(Z)&16):!1:!1}function Mz(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var Z=wo(f.document);Z instanceof f.HTMLIFrameElement;){try{var M=typeof Z.contentWindow.location.href==="string"}catch(r){M=!1}if(M)f=Z.contentWindow;else break;Z=wo(f.document)}return Z}function yt(f){var Z=f&&f.nodeName&&f.nodeName.toLowerCase();return Z&&(Z==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||Z==="textarea"||f.contentEditable==="true")}function nc(f,Z,M){var r=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;Gi||LM==null||LM!==wo(r)||(r=LM,("selectionStart"in r)&&yt(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&Sr(Rr,r)||(Rr=r,r=Uo(Ji,"onSelect"),0<r.length&&(Z=new Fo("onSelect","select",null,Z,M),f.push({event:Z,listeners:r}),Z.target=LM)))}function T8(f,Z){var M={};return M[f.toLowerCase()]=Z.toLowerCase(),M["Webkit"+f]="webkit"+Z,M["Moz"+f]="moz"+Z,M}function cM(f){if(Ve[f])return Ve[f];if(!AM[f])return f;var Z=AM[f],M;for(M in Z)if(Z.hasOwnProperty(M)&&M in rz)return Ve[f]=Z[M];return f}function AZ(f,Z){tz.set(f,Z),tM(Z,[f])}function Io(){for(var f=WM,Z=jt=WM=0;Z<f;){var M=zZ[Z];zZ[Z++]=null;var r=zZ[Z];zZ[Z++]=null;var a=zZ[Z];zZ[Z++]=null;var o=zZ[Z];if(zZ[Z++]=null,r!==null&&a!==null){var e=r.pending;e===null?a.next=a:(a.next=e.next,e.next=a),r.pending=a}o!==0&&dz(M,a,o)}}function So(f,Z,M,r){zZ[WM++]=f,zZ[WM++]=Z,zZ[WM++]=M,zZ[WM++]=r,jt|=r,f.lanes|=r,f=f.alternate,f!==null&&(f.lanes|=r)}function Lt(f,Z,M,r){return So(f,Z,M,r),ho(f)}function lM(f,Z){return So(f,null,null,Z),ho(f)}function dz(f,Z,M){f.lanes|=M;var r=f.alternate;r!==null&&(r.lanes|=M);for(var a=!1,o=f.return;o!==null;)o.childLanes|=M,r=o.alternate,r!==null&&(r.childLanes|=M),o.tag===22&&(f=o.stateNode,f===null||f._visibility&1||(a=!0)),f=o,o=o.return;return f.tag===3?(o=f.stateNode,a&&Z!==null&&(a=31-eZ(M),f=o.hiddenUpdates,r=f[a],r===null?f[a]=[Z]:r.push(Z),Z.lane=M|536870912),o):null}function ho(f){if(50<Or)throw Or=0,Zt=null,Error(Y(185));for(var Z=f.return;Z!==null;)f=Z,Z=f.return;return f.tag===3?f.stateNode:null}function Gw(f,Z,M,r){this.tag=f,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function MZ(f,Z,M,r){return new Gw(f,Z,M,r)}function At(f){return f=f.prototype,!(!f||!f.isReactComponent)}function Z8(f,Z){var M=f.alternate;return M===null?(M=MZ(f.tag,Z,f.key,f.mode),M.elementType=f.elementType,M.type=f.type,M.stateNode=f.stateNode,M.alternate=f,f.alternate=M):(M.pendingProps=Z,M.type=f.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=f.flags&65011712,M.childLanes=f.childLanes,M.lanes=f.lanes,M.child=f.child,M.memoizedProps=f.memoizedProps,M.memoizedState=f.memoizedState,M.updateQueue=f.updateQueue,Z=f.dependencies,M.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext},M.sibling=f.sibling,M.index=f.index,M.ref=f.ref,M.refCleanup=f.refCleanup,M}function cz(f,Z){f.flags&=65011714;var M=f.alternate;return M===null?(f.childLanes=0,f.lanes=Z,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=M.childLanes,f.lanes=M.lanes,f.child=M.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=M.memoizedProps,f.memoizedState=M.memoizedState,f.updateQueue=M.updateQueue,f.type=M.type,Z=M.dependencies,f.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext}),f}function Zo(f,Z,M,r,a,o){var e=0;if(r=f,typeof f==="function")At(f)&&(e=1);else if(typeof f==="string")e=Kb(f,M,_Z.current)?26:f==="html"||f==="head"||f==="body"?27:5;else f:switch(f){case mi:return f=MZ(31,M,Z,a),f.elementType=mi,f.lanes=o,f;case uM:return E8(M.children,a,o,Z);case Al:e=8,a|=24;break;case bi:return f=MZ(12,M,Z,a|2),f.elementType=bi,f.lanes=o,f;case hi:return f=MZ(13,M,Z,a),f.elementType=hi,f.lanes=o,f;case pi:return f=MZ(19,M,Z,a),f.elementType=pi,f.lanes=o,f;default:if(typeof f==="object"&&f!==null)switch(f.$$typeof){case PZ:e=10;break f;case Wl:e=9;break f;case st:e=11;break f;case gt:e=14;break f;case n8:e=16,r=null;break f}e=29,M=Error(Y(130,f===null?"null":typeof f,"")),r=null}return Z=MZ(e,M,Z,a),Z.elementType=f,Z.type=r,Z.lanes=o,Z}function E8(f,Z,M,r){return f=MZ(7,f,r,Z),f.lanes=M,f}function Ce(f,Z,M){return f=MZ(6,f,null,Z),f.lanes=M,f}function lz(f){var Z=MZ(18,null,null,0);return Z.stateNode=f,Z}function $e(f,Z,M){return Z=MZ(4,f.children!==null?f.children:[],f.key,Z),Z.lanes=M,Z.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},Z}function wZ(f,Z){if(typeof f==="object"&&f!==null){var M=vc.get(f);if(M!==void 0)return M;return Z={value:f,source:Z,stack:Vd(Z)},vc.set(f,Z),Z}return{value:f,source:Z,stack:Vd(Z)}}function CZ(f,Z){JM[GM++]=Vr,JM[GM++]=po,po=f,Vr=Z}function zz(f,Z,M){vZ[sZ++]=KZ,vZ[sZ++]=QZ,vZ[sZ++]=G8,G8=f;var r=KZ;f=QZ;var a=32-eZ(r)-1;r&=~(1<<a),M+=1;var o=32-eZ(Z)+a;if(30<o){var e=a-a%5;o=(r&(1<<e)-1).toString(32),r>>=e,a-=e,KZ=1<<32-eZ(Z)+a|M<<a|r,QZ=o+f}else KZ=1<<o|M<<a|r,QZ=f}function Wt(f){f.return!==null&&(CZ(f,1),zz(f,1,0))}function Xt(f){for(;f===po;)po=JM[--GM],JM[GM]=null,Vr=JM[--GM],JM[GM]=null;for(;f===G8;)G8=vZ[--sZ],vZ[sZ]=null,QZ=vZ[--sZ],vZ[sZ]=null,KZ=vZ[--sZ],vZ[sZ]=null}function nz(f,Z){vZ[sZ++]=KZ,vZ[sZ++]=QZ,vZ[sZ++]=G8,KZ=Z.id,QZ=Z.overflow,G8=f}function R8(f){var Z=Error(Y(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cr(wZ(Z,f)),Ui}function sc(f){var{stateNode:Z,type:M,memoizedProps:r}=f;switch(Z[Gf]=f,Z[Pf]=r,M){case"dialog":F("cancel",Z),F("close",Z);break;case"iframe":case"object":case"embed":F("load",Z);break;case"video":case"audio":for(M=0;M<fa.length;M++)F(fa[M],Z);break;case"source":F("error",Z);break;case"img":case"image":case"link":F("error",Z),F("load",Z);break;case"details":F("toggle",Z);break;case"input":F("invalid",Z),Ol(Z,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":F("invalid",Z);break;case"textarea":F("invalid",Z),Nl(Z,r.value,r.defaultValue,r.children)}M=r.children,typeof M!=="string"&&typeof M!=="number"&&typeof M!=="bigint"||Z.textContent===""+M||r.suppressHydrationWarning===!0||Cn(Z.textContent,M)?(r.popover!=null&&(F("beforetoggle",Z),F("toggle",Z)),r.onScroll!=null&&F("scroll",Z),r.onScrollEnd!=null&&F("scrollend",Z),r.onClick!=null&&(Z.onclick=EZ),Z=!0):Z=!1,Z||R8(f,!0)}function gc(f){for(Rf=f.return;Rf;)switch(Rf.tag){case 5:case 31:case 13:bZ=!1;return;case 27:case 3:bZ=!0;return;default:Rf=Rf.return}}function bM(f){if(f!==Rf)return!1;if(!V)return gc(f),V=!0,!1;var Z=f.tag,M;if(M=Z!==3&&Z!==27){if(M=Z===5)M=f.type,M=!(M!=="form"&&M!=="button")||tt(f.type,f.memoizedProps);M=!M}if(M&&tf&&R8(f),gc(f),Z===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(Y(317));tf=Ml(f)}else if(Z===31){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(Y(317));tf=Ml(f)}else Z===27?(Z=tf,B8(f.type)?(f=zt,zt=null,tf=f):tf=Z):tf=Rf?pZ(f.stateNode.nextSibling):null;return!0}function rM(){tf=Rf=null,V=!1}function Pe(){var f=k8;return f!==null&&(Cf===null?Cf=f:Cf.push.apply(Cf,f),k8=null),f}function Cr(f){k8===null?k8=[f]:k8.push(f)}function s8(f,Z,M){of(Ki,Z._currentValue),Z._currentValue=M}function M8(f){f._currentValue=Ki.current,Wf(Ki)}function Qi(f,Z,M){for(;f!==null;){var r=f.alternate;if((f.childLanes&Z)!==Z?(f.childLanes|=Z,r!==null&&(r.childLanes|=Z)):r!==null&&(r.childLanes&Z)!==Z&&(r.childLanes|=Z),f===M)break;f=f.return}}function Bi(f,Z,M,r){var a=f.child;a!==null&&(a.return=f);for(;a!==null;){var o=a.dependencies;if(o!==null){var e=a.child;o=o.firstContext;f:for(;o!==null;){var i=o;o=a;for(var t=0;t<Z.length;t++)if(i.context===Z[t]){o.lanes|=M,i=o.alternate,i!==null&&(i.lanes|=M),Qi(o.return,M,f),r||(e=null);break f}o=i.next}}else if(a.tag===18){if(e=a.return,e===null)throw Error(Y(341));e.lanes|=M,o=e.alternate,o!==null&&(o.lanes|=M),Qi(e,M,f),e=null}else e=a.child;if(e!==null)e.return=a;else for(e=a;e!==null;){if(e===f){e=null;break}if(a=e.sibling,a!==null){a.return=e.return,e=a;break}e=e.return}a=e}}function Zr(f,Z,M,r){f=null;for(var a=Z,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var e=a.alternate;if(e===null)throw Error(Y(387));if(e=e.memoizedProps,e!==null){var i=a.type;tZ(a.pendingProps.value,e.value)||(f!==null?f.push(i):f=[i])}}else if(a===no.current){if(e=a.alternate,e===null)throw Error(Y(387));e.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(f!==null?f.push(Ma):f=[Ma])}a=a.return}f!==null&&Bi(Z,f,M,r),Z.flags|=262144}function mo(f){for(f=f.firstContext;f!==null;){if(!tZ(f.context._currentValue,f.memoizedValue))return!0;f=f.next}return!1}function aM(f){zM=f,f8=null,f=f.dependencies,f!==null&&(f.firstContext=null)}function Uf(f){return vz(zM,f)}function Da(f,Z){return zM===null&&aM(f),vz(f,Z)}function vz(f,Z){var M=Z._currentValue;if(Z={context:Z,memoizedValue:M,next:null},f8===null){if(f===null)throw Error(Y(308));f8=Z,f.dependencies={lanes:0,firstContext:Z},f.flags|=524288}else f8=f8.next=Z;return M}function Jt(){return{controller:new Rw,data:new Map,refCount:0}}function na(f){f.refCount--,f.refCount===0&&Uw(Kw,function(){f.controller.abort()})}function Qw(f,Z){if(Ur===null){var M=Ur=[];_i=0,NM=rd(),BM={status:"pending",value:void 0,then:function(r){M.push(r)}}}return _i++,Z.then(wc,wc),Z}function wc(){if(--_i===0&&Ur!==null){BM!==null&&(BM.status="fulfilled");var f=Ur;Ur=null,NM=0,BM=null;for(var Z=0;Z<f.length;Z++)(0,f[Z])()}}function Bw(f,Z){var M=[],r={status:"pending",value:null,reason:null,then:function(a){M.push(a)}};return f.then(function(){r.status="fulfilled",r.value=Z;for(var a=0;a<M.length;a++)(0,M[a])(Z)},function(a){r.status="rejected",r.reason=a;for(a=0;a<M.length;a++)(0,M[a])(void 0)}),r}function Gt(){var f=fM.current;return f!==null?f:af.pooledCache}function Mo(f,Z){Z===null?of(fM,fM.current):of(fM,Z.pool)}function sz(){var f=Gt();return f===null?null:{parent:uf._currentValue,pool:f}}function hc(f){return f=f.status,f==="fulfilled"||f==="rejected"}function gz(f,Z,M){switch(M=f[M],M===void 0?f.push(Z):M!==Z&&(Z.then(EZ,EZ),Z=M),Z.status){case"fulfilled":return Z.value;case"rejected":throw f=Z.reason,mc(f),f;default:if(typeof Z.status==="string")Z.then(EZ,EZ);else{if(f=af,f!==null&&100<f.shellSuspendCounter)throw Error(Y(482));f=Z,f.status="pending",f.then(function(r){if(Z.status==="pending"){var a=Z;a.status="fulfilled",a.value=r}},function(r){if(Z.status==="pending"){var a=Z;a.status="rejected",a.reason=r}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw f=Z.reason,mc(f),f}throw ZM=Z,Mr}}function C8(f){try{var Z=f._init;return Z(f._payload)}catch(M){if(M!==null&&typeof M==="object"&&typeof M.then==="function")throw ZM=M,Mr;throw M}}function pc(){if(ZM===null)throw Error(Y(459));var f=ZM;return ZM=null,f}function mc(f){if(f===Mr||f===Vo)throw Error(Y(483))}function Oa(f){var Z=$r;return $r+=1,_M===null&&(_M=[]),gz(_M,f,Z)}function hr(f,Z){Z=Z.props.ref,f.ref=Z!==void 0?Z:null}function Fa(f,Z){if(Z.$$typeof===Yg)throw Error(Y(525));throw f=Object.prototype.toString.call(Z),Error(Y(31,f==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":f))}function wz(f){function Z(n,d){if(f){var b=n.deletions;b===null?(n.deletions=[d],n.flags|=16):b.push(d)}}function M(n,d){if(!f)return null;for(;d!==null;)Z(n,d),d=d.sibling;return null}function r(n){for(var d=new Map;n!==null;)n.key!==null?d.set(n.key,n):d.set(n.index,n),n=n.sibling;return d}function a(n,d){return n=Z8(n,d),n.index=0,n.sibling=null,n}function o(n,d,b){if(n.index=b,!f)return n.flags|=1048576,d;if(b=n.alternate,b!==null)return b=b.index,b<d?(n.flags|=67108866,d):b;return n.flags|=67108866,d}function e(n){return f&&n.alternate===null&&(n.flags|=67108866),n}function i(n,d,b,m){if(d===null||d.tag!==6)return d=Ce(b,n.mode,m),d.return=n,d;return d=a(d,b),d.return=n,d}function t(n,d,b,m){var x=b.type;if(x===uM)return l(n,d,b.props.children,m,b.key);if(d!==null&&(d.elementType===x||typeof x==="object"&&x!==null&&x.$$typeof===n8&&C8(x)===d.type))return d=a(d,b.props),hr(d,b),d.return=n,d;return d=Zo(b.type,b.key,b.props,null,n.mode,m),hr(d,b),d.return=n,d}function c(n,d,b,m){if(d===null||d.tag!==4||d.stateNode.containerInfo!==b.containerInfo||d.stateNode.implementation!==b.implementation)return d=$e(b,n.mode,m),d.return=n,d;return d=a(d,b.children||[]),d.return=n,d}function l(n,d,b,m,x){if(d===null||d.tag!==7)return d=E8(b,n.mode,m,x),d.return=n,d;return d=a(d,b),d.return=n,d}function g(n,d,b){if(typeof d==="string"&&d!==""||typeof d==="number"||typeof d==="bigint")return d=Ce(""+d,n.mode,b),d.return=n,d;if(typeof d==="object"&&d!==null){switch(d.$$typeof){case Ka:return b=Zo(d.type,d.key,d.props,null,n.mode,b),hr(b,d),b.return=n,b;case ur:return d=$e(d,n.mode,b),d.return=n,d;case n8:return d=C8(d),g(n,d,b)}if(Yr(d)||wr(d))return d=E8(d,n.mode,b,null),d.return=n,d;if(typeof d.then==="function")return g(n,Oa(d),b);if(d.$$typeof===PZ)return g(n,Da(n,d),b);Fa(n,d)}return null}function s(n,d,b,m){var x=d!==null?d.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return x!==null?null:i(n,d,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case Ka:return b.key===x?t(n,d,b,m):null;case ur:return b.key===x?c(n,d,b,m):null;case n8:return b=C8(b),s(n,d,b,m)}if(Yr(b)||wr(b))return x!==null?null:l(n,d,b,m,null);if(typeof b.then==="function")return s(n,d,Oa(b),m);if(b.$$typeof===PZ)return s(n,d,Da(n,b),m);Fa(n,b)}return null}function z(n,d,b,m,x){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return n=n.get(b)||null,i(d,n,""+m,x);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case Ka:return n=n.get(m.key===null?b:m.key)||null,t(d,n,m,x);case ur:return n=n.get(m.key===null?b:m.key)||null,c(d,n,m,x);case n8:return m=C8(m),z(n,d,b,m,x)}if(Yr(m)||wr(m))return n=n.get(b)||null,l(d,n,m,x,null);if(typeof m.then==="function")return z(n,d,b,Oa(m),x);if(m.$$typeof===PZ)return z(n,d,b,Da(d,m),x);Fa(d,m)}return null}function u(n,d,b,m){for(var x=null,J=null,X=d,Q=d=0,B=null;X!==null&&Q<b.length;Q++){X.index>Q?(B=X,X=null):B=X.sibling;var H=s(n,X,b[Q],m);if(H===null){X===null&&(X=B);break}f&&X&&H.alternate===null&&Z(n,X),d=o(H,d,Q),J===null?x=H:J.sibling=H,J=H,X=B}if(Q===b.length)return M(n,X),V&&CZ(n,Q),x;if(X===null){for(;Q<b.length;Q++)X=g(n,b[Q],m),X!==null&&(d=o(X,d,Q),J===null?x=X:J.sibling=X,J=X);return V&&CZ(n,Q),x}for(X=r(X);Q<b.length;Q++)B=z(X,n,Q,b[Q],m),B!==null&&(f&&B.alternate!==null&&X.delete(B.key===null?Q:B.key),d=o(B,d,Q),J===null?x=B:J.sibling=B,J=B);return f&&X.forEach(function(Xf){return Z(n,Xf)}),V&&CZ(n,Q),x}function k(n,d,b,m){if(b==null)throw Error(Y(151));for(var x=null,J=null,X=d,Q=d=0,B=null,H=b.next();X!==null&&!H.done;Q++,H=b.next()){X.index>Q?(B=X,X=null):B=X.sibling;var Xf=s(n,X,H.value,m);if(Xf===null){X===null&&(X=B);break}f&&X&&Xf.alternate===null&&Z(n,X),d=o(Xf,d,Q),J===null?x=Xf:J.sibling=Xf,J=Xf,X=B}if(H.done)return M(n,X),V&&CZ(n,Q),x;if(X===null){for(;!H.done;Q++,H=b.next())H=g(n,H.value,m),H!==null&&(d=o(H,d,Q),J===null?x=H:J.sibling=H,J=H);return V&&CZ(n,Q),x}for(X=r(X);!H.done;Q++,H=b.next())H=z(X,n,Q,H.value,m),H!==null&&(f&&H.alternate!==null&&X.delete(H.key===null?Q:H.key),d=o(H,d,Q),J===null?x=H:J.sibling=H,J=H);return f&&X.forEach(function(S){return Z(n,S)}),V&&CZ(n,Q),x}function R(n,d,b,m){if(typeof b==="object"&&b!==null&&b.type===uM&&b.key===null&&(b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case Ka:f:{for(var x=b.key;d!==null;){if(d.key===x){if(x=b.type,x===uM){if(d.tag===7){M(n,d.sibling),m=a(d,b.props.children),m.return=n,n=m;break f}}else if(d.elementType===x||typeof x==="object"&&x!==null&&x.$$typeof===n8&&C8(x)===d.type){M(n,d.sibling),m=a(d,b.props),hr(m,b),m.return=n,n=m;break f}M(n,d);break}else Z(n,d);d=d.sibling}b.type===uM?(m=E8(b.props.children,n.mode,m,b.key),m.return=n,n=m):(m=Zo(b.type,b.key,b.props,null,n.mode,m),hr(m,b),m.return=n,n=m)}return e(n);case ur:f:{for(x=b.key;d!==null;){if(d.key===x)if(d.tag===4&&d.stateNode.containerInfo===b.containerInfo&&d.stateNode.implementation===b.implementation){M(n,d.sibling),m=a(d,b.children||[]),m.return=n,n=m;break f}else{M(n,d);break}else Z(n,d);d=d.sibling}m=$e(b,n.mode,m),m.return=n,n=m}return e(n);case n8:return b=C8(b),R(n,d,b,m)}if(Yr(b))return u(n,d,b,m);if(wr(b)){if(x=wr(b),typeof x!=="function")throw Error(Y(150));return b=x.call(b),k(n,d,b,m)}if(typeof b.then==="function")return R(n,d,Oa(b),m);if(b.$$typeof===PZ)return R(n,d,Da(n,b),m);Fa(n,b)}return typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint"?(b=""+b,d!==null&&d.tag===6?(M(n,d.sibling),m=a(d,b),m.return=n,n=m):(M(n,d),m=Ce(b,n.mode,m),m.return=n,n=m),e(n)):M(n,d)}return function(n,d,b,m){try{$r=0;var x=R(n,d,b,m);return _M=null,x}catch(X){if(X===Mr||X===Vo)throw X;var J=MZ(29,X,null,n.mode);return J.lanes=m,J.return=n,J}finally{}}}function Ut(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hi(f,Z){f=f.updateQueue,Z.updateQueue===f&&(Z.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function y8(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function j8(f,Z,M){var r=f.updateQueue;if(r===null)return null;if(r=r.shared,($&2)!==0){var a=r.pending;return a===null?Z.next=Z:(Z.next=a.next,a.next=Z),r.pending=Z,Z=ho(f),dz(f,null,M),Z}return So(f,r,Z,M),ho(f)}function Kr(f,Z,M){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(M&4194048)!==0)){var r=Z.lanes;r&=f.pendingLanes,M|=r,Z.lanes=M,Kl(f,M)}}function Ee(f,Z){var{updateQueue:M,alternate:r}=f;if(r!==null&&(r=r.updateQueue,M===r)){var a=null,o=null;if(M=M.firstBaseUpdate,M!==null){do{var e={lane:M.lane,tag:M.tag,payload:M.payload,callback:null,next:null};o===null?a=o=e:o=o.next=e,M=M.next}while(M!==null);o===null?a=o=Z:o=o.next=Z}else a=o=Z;M={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},f.updateQueue=M;return}f=M.lastBaseUpdate,f===null?M.firstBaseUpdate=Z:f.next=Z,M.lastBaseUpdate=Z}function Qr(){if(qi){var f=BM;if(f!==null)throw f}}function Br(f,Z,M,r){qi=!1;var a=f.updateQueue;v8=!1;var{firstBaseUpdate:o,lastBaseUpdate:e}=a,i=a.shared.pending;if(i!==null){a.shared.pending=null;var t=i,c=t.next;t.next=null,e===null?o=c:e.next=c,e=t;var l=f.alternate;l!==null&&(l=l.updateQueue,i=l.lastBaseUpdate,i!==e&&(i===null?l.firstBaseUpdate=c:i.next=c,l.lastBaseUpdate=t))}if(o!==null){var g=a.baseState;e=0,l=c=t=null,i=o;do{var s=i.lane&-536870913,z=s!==i.lane;if(z?(I&s)===s:(r&s)===s){s!==0&&s===NM&&(qi=!0),l!==null&&(l=l.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});f:{var u=f,k=i;s=Z;var R=M;switch(k.tag){case 1:if(u=k.payload,typeof u==="function"){g=u.call(R,g,s);break f}g=u;break f;case 3:u.flags=u.flags&-65537|128;case 0:if(u=k.payload,s=typeof u==="function"?u.call(R,g,s):u,s===null||s===void 0)break f;g=df({},g,s);break f;case 2:v8=!0}}s=i.callback,s!==null&&(f.flags|=64,z&&(f.flags|=8192),z=a.callbacks,z===null?a.callbacks=[s]:z.push(s))}else z={lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},l===null?(c=l=z,t=g):l=l.next=z,e|=s;if(i=i.next,i===null)if(i=a.shared.pending,i===null)break;else z=i,i=z.next,z.next=null,a.lastBaseUpdate=z,a.shared.pending=null}while(1);l===null&&(t=g),a.baseState=t,a.firstBaseUpdate=c,a.lastBaseUpdate=l,o===null&&(a.shared.lanes=0),K8|=e,f.lanes=e,f.memoizedState=g}}function hz(f,Z){if(typeof f!=="function")throw Error(Y(191,f));f.call(Z)}function pz(f,Z){var M=f.callbacks;if(M!==null)for(f.callbacks=null,f=0;f<M.length;f++)hz(M[f],Z)}function xc(f,Z){f=t8,of(uo,f),of(TM,Z),t8=f|Z.baseLanes}function Di(){of(uo,t8),of(TM,TM.current)}function Kt(){t8=uo.current,Wf(TM),Wf(uo)}function g8(f){var Z=f.alternate;of(wf,wf.current&1),of(dZ,f),hZ===null&&(Z===null||TM.current!==null?hZ=f:Z.memoizedState!==null&&(hZ=f))}function Oi(f){of(wf,wf.current),of(dZ,f),hZ===null&&(hZ=f)}function mz(f){f.tag===22?(of(wf,wf.current),of(dZ,f),hZ===null&&(hZ=f)):w8(f)}function w8(){of(wf,wf.current),of(dZ,dZ.current)}function ZZ(f){Wf(dZ),hZ===f&&(hZ=null),Wf(wf)}function Yo(f){for(var Z=f;Z!==null;){if(Z.tag===13){var M=Z.memoizedState;if(M!==null&&(M=M.dehydrated,M===null||ct(M)||lt(M)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===f)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===f)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function vf(){throw Error(Y(321))}function Qt(f,Z){if(Z===null)return!1;for(var M=0;M<Z.length&&M<f.length;M++)if(!tZ(f[M],Z[M]))return!1;return!0}function Bt(f,Z,M,r,a,o){return o8=o,D=Z,Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,_.H=f===null||f.memoizedState===null?Pz:Vt,eM=!1,o=M(r,a),eM=!1,HM&&(o=uz(Z,M,r,a)),xz(f),o}function xz(f){_.H=Er;var Z=rf!==null&&rf.next!==null;if(o8=0,mf=rf=D=null,ko=!1,Pr=0,qM=null,Z)throw Error(Y(300));f===null||Yf||(f=f.dependencies,f!==null&&mo(f)&&(Yf=!0))}function uz(f,Z,M,r){D=f;var a=0;do{if(HM&&(qM=null),Pr=0,HM=!1,25<=a)throw Error(Y(301));if(a+=1,mf=rf=null,f.updateQueue!=null){var o=f.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=Ez,o=Z(M,r)}while(HM);return o}function Hw(){var f=_.H,Z=f.useState()[0];return Z=typeof Z.then==="function"?va(Z):Z,f=f.useState()[0],(rf!==null?rf.memoizedState:null)!==f&&(D.flags|=1024),Z}function _t(){var f=yo!==0;return yo=0,f}function Ht(f,Z,M){Z.updateQueue=f.updateQueue,Z.flags&=-2053,f.lanes&=~M}function qt(f){if(ko){for(f=f.memoizedState;f!==null;){var Z=f.queue;Z!==null&&(Z.pending=null),f=f.next}ko=!1}o8=0,mf=rf=D=null,HM=!1,Pr=yo=0,qM=null}function Ff(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mf===null?D.memoizedState=mf=f:mf=mf.next=f,mf}function bf(){if(rf===null){var f=D.alternate;f=f!==null?f.memoizedState:null}else f=rf.next;var Z=mf===null?D.memoizedState:mf.next;if(Z!==null)mf=Z,rf=f;else{if(f===null){if(D.alternate===null)throw Error(Y(467));throw Error(Y(310))}rf=f,f={memoizedState:rf.memoizedState,baseState:rf.baseState,baseQueue:rf.baseQueue,queue:rf.queue,next:null},mf===null?D.memoizedState=mf=f:mf=mf.next=f}return mf}function Co(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function va(f){var Z=Pr;return Pr+=1,qM===null&&(qM=[]),f=gz(qM,f,Z),Z=D,(mf===null?Z.memoizedState:mf.next)===null&&(Z=Z.alternate,_.H=Z===null||Z.memoizedState===null?Pz:Vt),f}function $o(f){if(f!==null&&typeof f==="object"){if(typeof f.then==="function")return va(f);if(f.$$typeof===PZ)return Uf(f)}throw Error(Y(438,String(f)))}function Dt(f){var Z=null,M=D.updateQueue;if(M!==null&&(Z=M.memoCache),Z==null){var r=D.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(Z={data:r.data.map(function(a){return a.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),M===null&&(M=Co(),D.updateQueue=M),M.memoCache=Z,M=Z.data[Z.index],M===void 0)for(M=Z.data[Z.index]=Array(f),r=0;r<f;r++)M[r]=kg;return Z.index++,M}function e8(f,Z){return typeof Z==="function"?Z(f):Z}function ro(f){var Z=bf();return Ot(Z,rf,f)}function Ot(f,Z,M){var r=f.queue;if(r===null)throw Error(Y(311));r.lastRenderedReducer=M;var a=f.baseQueue,o=r.pending;if(o!==null){if(a!==null){var e=a.next;a.next=o.next,o.next=e}Z.baseQueue=a=o,r.pending=null}if(o=f.baseState,a===null)f.memoizedState=o;else{Z=a.next;var i=e=null,t=null,c=Z,l=!1;do{var g=c.lane&-536870913;if(g!==c.lane?(I&g)===g:(o8&g)===g){var s=c.revertLane;if(s===0)t!==null&&(t=t.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),g===NM&&(l=!0);else if((o8&s)===s){c=c.next,s===NM&&(l=!0);continue}else g={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},t===null?(i=t=g,e=o):t=t.next=g,D.lanes|=s,K8|=s;g=c.action,eM&&M(o,g),o=c.hasEagerState?c.eagerState:M(o,g)}else s={lane:g,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},t===null?(i=t=s,e=o):t=t.next=s,D.lanes|=g,K8|=g;c=c.next}while(c!==null&&c!==Z);if(t===null?e=o:t.next=i,!tZ(o,f.memoizedState)&&(Yf=!0,l&&(M=BM,M!==null)))throw M;f.memoizedState=o,f.baseState=e,f.baseQueue=t,r.lastRenderedState=o}return a===null&&(r.lanes=0),[f.memoizedState,r.dispatch]}function fi(f){var Z=bf(),M=Z.queue;if(M===null)throw Error(Y(311));M.lastRenderedReducer=f;var{dispatch:r,pending:a}=M,o=Z.memoizedState;if(a!==null){M.pending=null;var e=a=a.next;do o=f(o,e.action),e=e.next;while(e!==a);tZ(o,Z.memoizedState)||(Yf=!0),Z.memoizedState=o,Z.baseQueue===null&&(Z.baseState=o),M.lastRenderedState=o}return[o,r]}function Yz(f,Z,M){var r=D,a=bf(),o=V;if(o){if(M===void 0)throw Error(Y(407));M=M()}else M=Z();var e=!tZ((rf||a).memoizedState,M);if(e&&(a.memoizedState=M,Yf=!0),a=a.queue,Ft(jz.bind(null,r,a,f),[f]),a.getSnapshot!==Z||e||mf!==null&&mf.memoizedState.tag&1){if(r.flags|=2048,IM(9,{destroy:void 0},yz.bind(null,r,a,M,Z),null),af===null)throw Error(Y(349));o||(o8&127)!==0||kz(r,Z,M)}return M}function kz(f,Z,M){f.flags|=16384,f={getSnapshot:Z,value:M},Z=D.updateQueue,Z===null?(Z=Co(),D.updateQueue=Z,Z.stores=[f]):(M=Z.stores,M===null?Z.stores=[f]:M.push(f))}function yz(f,Z,M,r){Z.value=M,Z.getSnapshot=r,Lz(Z)&&Az(f)}function jz(f,Z,M){return M(function(){Lz(Z)&&Az(f)})}function Lz(f){var Z=f.getSnapshot;f=f.value;try{var M=Z();return!tZ(f,M)}catch(r){return!0}}function Az(f){var Z=lM(f,2);Z!==null&&$f(Z,f,2)}function Fi(f){var Z=Ff();if(typeof f==="function"){var M=f;if(f=M(),eM){h8(!0);try{M()}finally{h8(!1)}}}return Z.memoizedState=Z.baseState=f,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e8,lastRenderedState:f},Z}function Wz(f,Z,M,r){return f.baseState=M,Ot(f,rf,typeof r==="function"?r:e8)}function qw(f,Z,M,r,a){if(Eo(f))throw Error(Y(485));if(f=Z.action,f!==null){var o={payload:a,action:f,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};_.T!==null?M(!0):o.isTransition=!1,r(o),M=Z.pending,M===null?(o.next=Z.pending=o,Xz(Z,o)):(o.next=M.next,Z.pending=M.next=o)}}function Xz(f,Z){var{action:M,payload:r}=Z,a=f.state;if(Z.isTransition){var o=_.T,e={};_.T=e;try{var i=M(a,r),t=_.S;t!==null&&t(e,i),uc(f,Z,i)}catch(c){Ni(f,Z,c)}finally{o!==null&&e.types!==null&&(o.types=e.types),_.T=o}}else try{o=M(a,r),uc(f,Z,o)}catch(c){Ni(f,Z,c)}}function uc(f,Z,M){M!==null&&typeof M==="object"&&typeof M.then==="function"?M.then(function(r){Yc(f,Z,r)},function(r){return Ni(f,Z,r)}):Yc(f,Z,M)}function Yc(f,Z,M){Z.status="fulfilled",Z.value=M,Jz(Z),f.state=M,Z=f.pending,Z!==null&&(M=Z.next,M===Z?f.pending=null:(M=M.next,Z.next=M,Xz(f,M)))}function Ni(f,Z,M){var r=f.pending;if(f.pending=null,r!==null){r=r.next;do Z.status="rejected",Z.reason=M,Jz(Z),Z=Z.next;while(Z!==r)}f.action=null}function Jz(f){f=f.listeners;for(var Z=0;Z<f.length;Z++)(0,f[Z])()}function Gz(f,Z){return Z}function kc(f,Z){if(V){var M=af.formState;if(M!==null){f:{var r=D;if(V){if(tf){Z:{var a=tf;for(var o=bZ;a.nodeType!==8;){if(!o){a=null;break Z}if(a=pZ(a.nextSibling),a===null){a=null;break Z}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){tf=pZ(a.nextSibling),r=a.data==="F!";break f}}R8(r)}r=!1}r&&(Z=M[0])}}return M=Ff(),M.memoizedState=M.baseState=Z,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gz,lastRenderedState:Z},M.queue=r,M=Vz.bind(null,D,r),r.dispatch=M,r=Fi(!1),o=St.bind(null,D,!1,r.queue),r=Ff(),a={state:Z,dispatch:null,action:f,pending:null},r.queue=a,M=qw.bind(null,D,a,o,M),a.dispatch=M,r.memoizedState=f,[Z,M,!1]}function yc(f){var Z=bf();return Rz(Z,rf,f)}function Rz(f,Z,M){if(Z=Ot(f,Z,Gz)[0],f=ro(e8)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var r=va(Z)}catch(e){if(e===Mr)throw Vo;throw e}else r=Z;Z=bf();var a=Z.queue,o=a.dispatch;return M!==Z.memoizedState&&(D.flags|=2048,IM(9,{destroy:void 0},Dw.bind(null,a,M),null)),[r,o,f]}function Dw(f,Z){f.action=Z}function jc(f){var Z=bf(),M=rf;if(M!==null)return Rz(Z,M,f);bf(),Z=Z.memoizedState,M=bf();var r=M.queue.dispatch;return M.memoizedState=f,[Z,r,!1]}function IM(f,Z,M,r){return f={tag:f,create:M,deps:r,inst:Z,next:null},Z=D.updateQueue,Z===null&&(Z=Co(),D.updateQueue=Z),M=Z.lastEffect,M===null?Z.lastEffect=f.next=f:(r=M.next,M.next=f,f.next=r,Z.lastEffect=f),f}function Uz(){return bf().memoizedState}function ao(f,Z,M,r){var a=Ff();D.flags|=f,a.memoizedState=IM(1|Z,{destroy:void 0},M,r===void 0?null:r)}function Po(f,Z,M,r){var a=bf();r=r===void 0?null:r;var o=a.memoizedState.inst;rf!==null&&r!==null&&Qt(r,rf.memoizedState.deps)?a.memoizedState=IM(Z,o,M,r):(D.flags|=f,a.memoizedState=IM(1|Z,o,M,r))}function Lc(f,Z){ao(8390656,8,f,Z)}function Ft(f,Z){Po(2048,8,f,Z)}function Ow(f){D.flags|=4;var Z=D.updateQueue;if(Z===null)Z=Co(),D.updateQueue=Z,Z.events=[f];else{var M=Z.events;M===null?Z.events=[f]:M.push(f)}}function Kz(f){var Z=bf().memoizedState;return Ow({ref:Z,nextImpl:f}),function(){if(($&2)!==0)throw Error(Y(440));return Z.impl.apply(void 0,arguments)}}function Qz(f,Z){return Po(4,2,f,Z)}function Bz(f,Z){return Po(4,4,f,Z)}function _z(f,Z){if(typeof Z==="function"){f=f();var M=Z(f);return function(){typeof M==="function"?M():Z(null)}}if(Z!==null&&Z!==void 0)return f=f(),Z.current=f,function(){Z.current=null}}function Hz(f,Z,M){M=M!==null&&M!==void 0?M.concat([f]):null,Po(4,4,_z.bind(null,Z,f),M)}function Nt(){}function qz(f,Z){var M=bf();Z=Z===void 0?null:Z;var r=M.memoizedState;if(Z!==null&&Qt(Z,r[1]))return r[0];return M.memoizedState=[f,Z],f}function Dz(f,Z){var M=bf();Z=Z===void 0?null:Z;var r=M.memoizedState;if(Z!==null&&Qt(Z,r[1]))return r[0];if(r=f(),eM){h8(!0);try{f()}finally{h8(!1)}}return M.memoizedState=[r,Z],r}function Tt(f,Z,M){if(M===void 0||(o8&1073741824)!==0&&(I&261930)===0)return f.memoizedState=Z;return f.memoizedState=M,f=Xn(),D.lanes|=f,K8|=f,M}function Oz(f,Z,M,r){if(tZ(M,Z))return M;if(TM.current!==null)return f=Tt(f,M,r),tZ(f,Z)||(Yf=!0),f;if((o8&42)===0||(o8&1073741824)!==0&&(I&261930)===0)return Yf=!0,f.memoizedState=M;return f=Xn(),D.lanes|=f,K8|=f,Z}function Fz(f,Z,M,r,a){var o=P.p;P.p=o!==0&&8>o?o:8;var e=_.T,i={};_.T=i,St(f,!1,Z,M);try{var t=a(),c=_.S;if(c!==null&&c(i,t),t!==null&&typeof t==="object"&&typeof t.then==="function"){var l=Bw(t,r);_r(f,Z,l,iZ(f))}else _r(f,Z,r,iZ(f))}catch(g){_r(f,Z,{then:function(){},status:"rejected",reason:g},iZ())}finally{P.p=o,e!==null&&i.types!==null&&(e.types=i.types),_.T=e}}function Fw(){}function Ti(f,Z,M,r){if(f.tag!==5)throw Error(Y(476));var a=Nz(f).queue;Fz(f,a,Z,P8,M===null?Fw:function(){return Tz(f),M(r)})}function Nz(f){var Z=f.memoizedState;if(Z!==null)return Z;Z={memoizedState:P8,baseState:P8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e8,lastRenderedState:P8},next:null};var M={};return Z.next={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e8,lastRenderedState:M},next:null},f.memoizedState=Z,f=f.alternate,f!==null&&(f.memoizedState=Z),Z}function Tz(f){var Z=Nz(f);Z.next===null&&(Z=f.alternate.memoizedState),_r(f,Z.next.queue,{},iZ())}function It(){return Uf(Ma)}function Iz(){return bf().memoizedState}function Sz(){return bf().memoizedState}function Nw(f){for(var Z=f.return;Z!==null;){switch(Z.tag){case 24:case 3:var M=iZ();f=y8(M);var r=j8(Z,f,M);r!==null&&($f(r,Z,M),Kr(r,Z,M)),Z={cache:Jt()},f.payload=Z;return}Z=Z.return}}function Tw(f,Z,M){var r=iZ();M={lane:r,revertLane:0,gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null},Eo(f)?Cz(Z,M):(M=Lt(f,Z,M,r),M!==null&&($f(M,f,r),$z(M,Z,r)))}function Vz(f,Z,M){var r=iZ();_r(f,Z,M,r)}function _r(f,Z,M,r){var a={lane:r,revertLane:0,gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null};if(Eo(f))Cz(Z,a);else{var o=f.alternate;if(f.lanes===0&&(o===null||o.lanes===0)&&(o=Z.lastRenderedReducer,o!==null))try{var e=Z.lastRenderedState,i=o(e,M);if(a.hasEagerState=!0,a.eagerState=i,tZ(i,e))return So(f,Z,a,0),af===null&&Io(),!1}catch(t){}finally{}if(M=Lt(f,Z,a,r),M!==null)return $f(M,f,r),$z(M,Z,r),!0}return!1}function St(f,Z,M,r){if(r={lane:2,revertLane:rd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Eo(f)){if(Z)throw Error(Y(479))}else Z=Lt(f,M,r,2),Z!==null&&$f(Z,f,2)}function Eo(f){var Z=f.alternate;return f===D||Z!==null&&Z===D}function Cz(f,Z){HM=ko=!0;var M=f.pending;M===null?Z.next=Z:(Z.next=M.next,M.next=Z),f.pending=Z}function $z(f,Z,M){if((M&4194048)!==0){var r=Z.lanes;r&=f.pendingLanes,M|=r,Z.lanes=M,Kl(f,M)}}function Zi(f,Z,M,r){Z=f.memoizedState,M=M(r,Z),M=M===null||M===void 0?Z:df({},Z,M),f.memoizedState=M,f.lanes===0&&(f.updateQueue.baseState=M)}function Ac(f,Z,M,r,a,o,e){return f=f.stateNode,typeof f.shouldComponentUpdate==="function"?f.shouldComponentUpdate(r,o,e):Z.prototype&&Z.prototype.isPureReactComponent?!Sr(M,r)||!Sr(a,o):!0}function Wc(f,Z,M,r){f=Z.state,typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(M,r),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(M,r),Z.state!==f&&Ii.enqueueReplaceState(Z,Z.state,null)}function iM(f,Z){var M=Z;if("ref"in Z){M={};for(var r in Z)r!=="ref"&&(M[r]=Z[r])}if(f=f.defaultProps){M===Z&&(M=df({},M));for(var a in f)M[a]===void 0&&(M[a]=f[a])}return M}function fn(f){bo(f)}function Zn(f){console.error(f)}function Mn(f){bo(f)}function jo(f,Z){try{var M=f.onUncaughtError;M(Z.value,{componentStack:Z.stack})}catch(r){setTimeout(function(){throw r})}}function Xc(f,Z,M){try{var r=f.onCaughtError;r(M.value,{componentStack:M.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Si(f,Z,M){return M=y8(M),M.tag=3,M.payload={element:null},M.callback=function(){jo(f,Z)},M}function rn(f){return f=y8(f),f.tag=3,f}function an(f,Z,M,r){var a=M.type.getDerivedStateFromError;if(typeof a==="function"){var o=r.value;f.payload=function(){return a(o)},f.callback=function(){Xc(Z,M,r)}}var e=M.stateNode;e!==null&&typeof e.componentDidCatch==="function"&&(f.callback=function(){Xc(Z,M,r),typeof a!=="function"&&(L8===null?L8=new Set([this]):L8.add(this));var i=r.stack;this.componentDidCatch(r.value,{componentStack:i!==null?i:""})})}function Iw(f,Z,M,r,a){if(M.flags|=32768,r!==null&&typeof r==="object"&&typeof r.then==="function"){if(Z=M.alternate,Z!==null&&Zr(Z,M,a,!0),M=dZ.current,M!==null){switch(M.tag){case 31:case 13:return hZ===null?Jo():M.alternate===null&&sf===0&&(sf=3),M.flags&=-257,M.flags|=65536,M.lanes=a,r===xo?M.flags|=16384:(Z=M.updateQueue,Z===null?M.updateQueue=new Set([r]):Z.add(r),zi(f,r,a)),!1;case 22:return M.flags|=65536,r===xo?M.flags|=16384:(Z=M.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([r])},M.updateQueue=Z):(M=Z.retryQueue,M===null?Z.retryQueue=new Set([r]):M.add(r)),zi(f,r,a)),!1}throw Error(Y(435,M.tag))}return zi(f,r,a),Jo(),!1}if(V)return Z=dZ.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=a,r!==Ui&&(f=Error(Y(422),{cause:r}),Cr(wZ(f,M)))):(r!==Ui&&(Z=Error(Y(423),{cause:r}),Cr(wZ(Z,M))),f=f.current.alternate,f.flags|=65536,a&=-a,f.lanes|=a,r=wZ(r,M),a=Si(f.stateNode,r,a),Ee(f,a),sf!==4&&(sf=2)),!1;var o=Error(Y(520),{cause:r});if(o=wZ(o,M),Dr===null?Dr=[o]:Dr.push(o),sf!==4&&(sf=2),Z===null)return!0;r=wZ(r,M),M=Z;do{switch(M.tag){case 3:return M.flags|=65536,f=a&-a,M.lanes|=f,f=Si(M.stateNode,r,f),Ee(M,f),!1;case 1:if(Z=M.type,o=M.stateNode,(M.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||o!==null&&typeof o.componentDidCatch==="function"&&(L8===null||!L8.has(o))))return M.flags|=65536,a&=-a,M.lanes|=a,a=rn(a),an(a,f,M,r),Ee(M,a),!1}M=M.return}while(M!==null);return!1}function Jf(f,Z,M,r){Z.child=f===null?bz(Z,null,M,r):oM(Z,f.child,M,r)}function Jc(f,Z,M,r,a){M=M.render;var o=Z.ref;if("ref"in r){var e={};for(var i in r)i!=="ref"&&(e[i]=r[i])}else e=r;if(aM(Z),r=Bt(f,Z,M,e,o,a),i=_t(),f!==null&&!Yf)return Ht(f,Z,a),i8(f,Z,a);return V&&i&&Wt(Z),Z.flags|=1,Jf(f,Z,r,a),Z.child}function Gc(f,Z,M,r,a){if(f===null){var o=M.type;if(typeof o==="function"&&!At(o)&&o.defaultProps===void 0&&M.compare===null)return Z.tag=15,Z.type=o,on(f,Z,o,r,a);return f=Zo(M.type,null,r,Z,Z.mode,a),f.ref=Z.ref,f.return=Z,Z.child=f}if(o=f.child,!$t(f,a)){var e=o.memoizedProps;if(M=M.compare,M=M!==null?M:Sr,M(e,r)&&f.ref===Z.ref)return i8(f,Z,a)}return Z.flags|=1,f=Z8(o,r),f.ref=Z.ref,f.return=Z,Z.child=f}function on(f,Z,M,r,a){if(f!==null){var o=f.memoizedProps;if(Sr(o,r)&&f.ref===Z.ref)if(Yf=!1,Z.pendingProps=r=o,$t(f,a))(f.flags&131072)!==0&&(Yf=!0);else return Z.lanes=f.lanes,i8(f,Z,a)}return Vi(f,Z,M,r,a)}function en(f,Z,M,r){var a=r.children,o=f!==null?f.memoizedState:null;if(f===null&&Z.stateNode===null&&(Z.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((Z.flags&128)!==0){if(o=o!==null?o.baseLanes|M:M,f!==null){r=Z.child=f.child;for(a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~o}else r=0,Z.child=null;return Rc(f,Z,o,M,r)}if((M&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},f!==null&&Mo(Z,o!==null?o.cachePool:null),o!==null?xc(Z,o):Di(),mz(Z);else return r=Z.lanes=536870912,Rc(f,Z,o!==null?o.baseLanes|M:M,M,r)}else o!==null?(Mo(Z,o.cachePool),xc(Z,o),w8(Z),Z.memoizedState=null):(f!==null&&Mo(Z,null),Di(),w8(Z));return Jf(f,Z,a,M),Z.child}function Lr(f,Z){return f!==null&&f.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function Rc(f,Z,M,r,a){var o=Gt();return o=o===null?null:{parent:uf._currentValue,pool:o},Z.memoizedState={baseLanes:M,cachePool:o},f!==null&&Mo(Z,null),Di(),mz(Z),f!==null&&Zr(f,Z,r,!0),Z.childLanes=a,null}function oo(f,Z){return Z=Lo({mode:Z.mode,children:Z.children},f.mode),Z.ref=f.ref,f.child=Z,Z.return=f,Z}function Uc(f,Z,M){return oM(Z,f.child,null,M),f=oo(Z,Z.pendingProps),f.flags|=2,ZZ(Z),Z.memoizedState=null,f}function Sw(f,Z,M){var r=Z.pendingProps,a=(Z.flags&128)!==0;if(Z.flags&=-129,f===null){if(V){if(r.mode==="hidden")return f=oo(Z,r),Z.lanes=536870912,Lr(null,f);if(Oi(Z),(f=tf)?(f=En(f,bZ),f=f!==null&&f.data==="&"?f:null,f!==null&&(Z.memoizedState={dehydrated:f,treeContext:G8!==null?{id:KZ,overflow:QZ}:null,retryLane:536870912,hydrationErrors:null},M=lz(f),M.return=Z,Z.child=M,Rf=Z,tf=null)):f=null,f===null)throw R8(Z);return Z.lanes=536870912,null}return oo(Z,r)}var o=f.memoizedState;if(o!==null){var e=o.dehydrated;if(Oi(Z),a)if(Z.flags&256)Z.flags&=-257,Z=Uc(f,Z,M);else if(Z.memoizedState!==null)Z.child=f.child,Z.flags|=128,Z=null;else throw Error(Y(558));else if(Yf||Zr(f,Z,M,!1),a=(M&f.childLanes)!==0,Yf||a){if(r=af,r!==null&&(e=Ql(r,M),e!==0&&e!==o.retryLane))throw o.retryLane=e,lM(f,e),$f(r,f,e),Ct;Jo(),Z=Uc(f,Z,M)}else f=o.treeContext,tf=pZ(e.nextSibling),Rf=Z,V=!0,k8=null,bZ=!1,f!==null&&nz(Z,f),Z=oo(Z,r),Z.flags|=4096;return Z}return f=Z8(f.child,{mode:r.mode,children:r.children}),f.ref=Z.ref,Z.child=f,f.return=Z,f}function eo(f,Z){var M=Z.ref;if(M===null)f!==null&&f.ref!==null&&(Z.flags|=4194816);else{if(typeof M!=="function"&&typeof M!=="object")throw Error(Y(284));if(f===null||f.ref!==M)Z.flags|=4194816}}function Vi(f,Z,M,r,a){if(aM(Z),M=Bt(f,Z,M,r,void 0,a),r=_t(),f!==null&&!Yf)return Ht(f,Z,a),i8(f,Z,a);return V&&r&&Wt(Z),Z.flags|=1,Jf(f,Z,M,a),Z.child}function Kc(f,Z,M,r,a,o){if(aM(Z),Z.updateQueue=null,M=uz(Z,r,M,a),xz(f),r=_t(),f!==null&&!Yf)return Ht(f,Z,o),i8(f,Z,o);return V&&r&&Wt(Z),Z.flags|=1,Jf(f,Z,M,o),Z.child}function Qc(f,Z,M,r,a){if(aM(Z),Z.stateNode===null){var o=XM,e=M.contextType;typeof e==="object"&&e!==null&&(o=Uf(e)),o=new M(r,o),Z.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ii,Z.stateNode=o,o._reactInternals=Z,o=Z.stateNode,o.props=r,o.state=Z.memoizedState,o.refs={},Ut(Z),e=M.contextType,o.context=typeof e==="object"&&e!==null?Uf(e):XM,o.state=Z.memoizedState,e=M.getDerivedStateFromProps,typeof e==="function"&&(Zi(Z,M,e,r),o.state=Z.memoizedState),typeof M.getDerivedStateFromProps==="function"||typeof o.getSnapshotBeforeUpdate==="function"||typeof o.UNSAFE_componentWillMount!=="function"&&typeof o.componentWillMount!=="function"||(e=o.state,typeof o.componentWillMount==="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==="function"&&o.UNSAFE_componentWillMount(),e!==o.state&&Ii.enqueueReplaceState(o,o.state,null),Br(Z,r,o,a),Qr(),o.state=Z.memoizedState),typeof o.componentDidMount==="function"&&(Z.flags|=4194308),r=!0}else if(f===null){o=Z.stateNode;var i=Z.memoizedProps,t=iM(M,i);o.props=t;var c=o.context,l=M.contextType;e=XM,typeof l==="object"&&l!==null&&(e=Uf(l));var g=M.getDerivedStateFromProps;l=typeof g==="function"||typeof o.getSnapshotBeforeUpdate==="function",i=Z.pendingProps!==i,l||typeof o.UNSAFE_componentWillReceiveProps!=="function"&&typeof o.componentWillReceiveProps!=="function"||(i||c!==e)&&Wc(Z,o,r,e),v8=!1;var s=Z.memoizedState;o.state=s,Br(Z,r,o,a),Qr(),c=Z.memoizedState,i||s!==c||v8?(typeof g==="function"&&(Zi(Z,M,g,r),c=Z.memoizedState),(t=v8||Ac(Z,M,t,r,s,c,e))?(l||typeof o.UNSAFE_componentWillMount!=="function"&&typeof o.componentWillMount!=="function"||(typeof o.componentWillMount==="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==="function"&&(Z.flags|=4194308)):(typeof o.componentDidMount==="function"&&(Z.flags|=4194308),Z.memoizedProps=r,Z.memoizedState=c),o.props=r,o.state=c,o.context=e,r=t):(typeof o.componentDidMount==="function"&&(Z.flags|=4194308),r=!1)}else{o=Z.stateNode,Hi(f,Z),e=Z.memoizedProps,l=iM(M,e),o.props=l,g=Z.pendingProps,s=o.context,c=M.contextType,t=XM,typeof c==="object"&&c!==null&&(t=Uf(c)),i=M.getDerivedStateFromProps,(c=typeof i==="function"||typeof o.getSnapshotBeforeUpdate==="function")||typeof o.UNSAFE_componentWillReceiveProps!=="function"&&typeof o.componentWillReceiveProps!=="function"||(e!==g||s!==t)&&Wc(Z,o,r,t),v8=!1,s=Z.memoizedState,o.state=s,Br(Z,r,o,a),Qr();var z=Z.memoizedState;e!==g||s!==z||v8||f!==null&&f.dependencies!==null&&mo(f.dependencies)?(typeof i==="function"&&(Zi(Z,M,i,r),z=Z.memoizedState),(l=v8||Ac(Z,M,l,r,s,z,t)||f!==null&&f.dependencies!==null&&mo(f.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!=="function"&&typeof o.componentWillUpdate!=="function"||(typeof o.componentWillUpdate==="function"&&o.componentWillUpdate(r,z,t),typeof o.UNSAFE_componentWillUpdate==="function"&&o.UNSAFE_componentWillUpdate(r,z,t)),typeof o.componentDidUpdate==="function"&&(Z.flags|=4),typeof o.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof o.componentDidUpdate!=="function"||e===f.memoizedProps&&s===f.memoizedState||(Z.flags|=4),typeof o.getSnapshotBeforeUpdate!=="function"||e===f.memoizedProps&&s===f.memoizedState||(Z.flags|=1024),Z.memoizedProps=r,Z.memoizedState=z),o.props=r,o.state=z,o.context=t,r=l):(typeof o.componentDidUpdate!=="function"||e===f.memoizedProps&&s===f.memoizedState||(Z.flags|=4),typeof o.getSnapshotBeforeUpdate!=="function"||e===f.memoizedProps&&s===f.memoizedState||(Z.flags|=1024),r=!1)}return o=r,eo(f,Z),r=(Z.flags&128)!==0,o||r?(o=Z.stateNode,M=r&&typeof M.getDerivedStateFromError!=="function"?null:o.render(),Z.flags|=1,f!==null&&r?(Z.child=oM(Z,f.child,null,a),Z.child=oM(Z,null,M,a)):Jf(f,Z,M,a),Z.memoizedState=o.state,f=Z.child):f=i8(f,Z,a),f}function Bc(f,Z,M,r){return rM(),Z.flags|=256,Jf(f,Z,M,r),Z.child}function ri(f){return{baseLanes:f,cachePool:sz()}}function ai(f,Z,M){return f=f!==null?f.childLanes&~M:0,Z&&(f|=rZ),f}function tn(f,Z,M){var r=Z.pendingProps,a=!1,o=(Z.flags&128)!==0,e;if((e=o)||(e=f!==null&&f.memoizedState===null?!1:(wf.current&2)!==0),e&&(a=!0,Z.flags&=-129),e=(Z.flags&32)!==0,Z.flags&=-33,f===null){if(V){if(a?g8(Z):w8(Z),(f=tf)?(f=En(f,bZ),f=f!==null&&f.data!=="&"?f:null,f!==null&&(Z.memoizedState={dehydrated:f,treeContext:G8!==null?{id:KZ,overflow:QZ}:null,retryLane:536870912,hydrationErrors:null},M=lz(f),M.return=Z,Z.child=M,Rf=Z,tf=null)):f=null,f===null)throw R8(Z);return lt(f)?Z.lanes=32:Z.lanes=536870912,null}var i=r.children;if(r=r.fallback,a)return w8(Z),a=Z.mode,i=Lo({mode:"hidden",children:i},a),r=E8(r,a,M,null),i.return=Z,r.return=Z,i.sibling=r,Z.child=i,r=Z.child,r.memoizedState=ri(M),r.childLanes=ai(f,e,M),Z.memoizedState=Mi,Lr(null,r);return g8(Z),Ci(Z,i)}var t=f.memoizedState;if(t!==null&&(i=t.dehydrated,i!==null)){if(o)Z.flags&256?(g8(Z),Z.flags&=-257,Z=oi(f,Z,M)):Z.memoizedState!==null?(w8(Z),Z.child=f.child,Z.flags|=128,Z=null):(w8(Z),i=r.fallback,a=Z.mode,r=Lo({mode:"visible",children:r.children},a),i=E8(i,a,M,null),i.flags|=2,r.return=Z,i.return=Z,r.sibling=i,Z.child=r,oM(Z,f.child,null,M),r=Z.child,r.memoizedState=ri(M),r.childLanes=ai(f,e,M),Z.memoizedState=Mi,Z=Lr(null,r));else if(g8(Z),lt(i)){if(e=i.nextSibling&&i.nextSibling.dataset,e)var c=e.dgst;e=c,r=Error(Y(419)),r.stack="",r.digest=e,Cr({value:r,source:null,stack:null}),Z=oi(f,Z,M)}else if(Yf||Zr(f,Z,M,!1),e=(M&f.childLanes)!==0,Yf||e){if(e=af,e!==null&&(r=Ql(e,M),r!==0&&r!==t.retryLane))throw t.retryLane=r,lM(f,r),$f(e,f,r),Ct;ct(i)||Jo(),Z=oi(f,Z,M)}else ct(i)?(Z.flags|=192,Z.child=f.child,Z=null):(f=t.treeContext,tf=pZ(i.nextSibling),Rf=Z,V=!0,k8=null,bZ=!1,f!==null&&nz(Z,f),Z=Ci(Z,r.children),Z.flags|=4096);return Z}if(a)return w8(Z),i=r.fallback,a=Z.mode,t=f.child,c=t.sibling,r=Z8(t,{mode:"hidden",children:r.children}),r.subtreeFlags=t.subtreeFlags&65011712,c!==null?i=Z8(c,i):(i=E8(i,a,M,null),i.flags|=2),i.return=Z,r.return=Z,r.sibling=i,Z.child=r,Lr(null,r),r=Z.child,i=f.child.memoizedState,i===null?i=ri(M):(a=i.cachePool,a!==null?(t=uf._currentValue,a=a.parent!==t?{parent:t,pool:t}:a):a=sz(),i={baseLanes:i.baseLanes|M,cachePool:a}),r.memoizedState=i,r.childLanes=ai(f,e,M),Z.memoizedState=Mi,Lr(f.child,r);return g8(Z),M=f.child,f=M.sibling,M=Z8(M,{mode:"visible",children:r.children}),M.return=Z,M.sibling=null,f!==null&&(e=Z.deletions,e===null?(Z.deletions=[f],Z.flags|=16):e.push(f)),Z.child=M,Z.memoizedState=null,M}function Ci(f,Z){return Z=Lo({mode:"visible",children:Z},f.mode),Z.return=f,f.child=Z}function Lo(f,Z){return f=MZ(22,f,null,Z),f.lanes=0,f}function oi(f,Z,M){return oM(Z,f.child,null,M),f=Ci(Z,Z.pendingProps.children),f.flags|=2,Z.memoizedState=null,f}function _c(f,Z,M){f.lanes|=Z;var r=f.alternate;r!==null&&(r.lanes|=Z),Qi(f.return,Z,M)}function ei(f,Z,M,r,a,o){var e=f.memoizedState;e===null?f.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:r,tail:M,tailMode:a,treeForkCount:o}:(e.isBackwards=Z,e.rendering=null,e.renderingStartTime=0,e.last=r,e.tail=M,e.tailMode=a,e.treeForkCount=o)}function dn(f,Z,M){var r=Z.pendingProps,a=r.revealOrder,o=r.tail;r=r.children;var e=wf.current,i=(e&2)!==0;if(i?(e=e&1|2,Z.flags|=128):e&=1,of(wf,e),Jf(f,Z,r,M),r=V?Vr:0,!i&&f!==null&&(f.flags&128)!==0)f:for(f=Z.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&_c(f,M,Z);else if(f.tag===19)_c(f,M,Z);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===Z)break f;for(;f.sibling===null;){if(f.return===null||f.return===Z)break f;f=f.return}f.sibling.return=f.return,f=f.sibling}switch(a){case"forwards":M=Z.child;for(a=null;M!==null;)f=M.alternate,f!==null&&Yo(f)===null&&(a=M),M=M.sibling;M=a,M===null?(a=Z.child,Z.child=null):(a=M.sibling,M.sibling=null),ei(Z,!1,a,M,o,r);break;case"backwards":case"unstable_legacy-backwards":M=null,a=Z.child;for(Z.child=null;a!==null;){if(f=a.alternate,f!==null&&Yo(f)===null){Z.child=a;break}f=a.sibling,a.sibling=M,M=a,a=f}ei(Z,!0,M,null,o,r);break;case"together":ei(Z,!1,null,null,void 0,r);break;default:Z.memoizedState=null}return Z.child}function i8(f,Z,M){if(f!==null&&(Z.dependencies=f.dependencies),K8|=Z.lanes,(M&Z.childLanes)===0)if(f!==null){if(Zr(f,Z,M,!1),(M&Z.childLanes)===0)return null}else return null;if(f!==null&&Z.child!==f.child)throw Error(Y(153));if(Z.child!==null){f=Z.child,M=Z8(f,f.pendingProps),Z.child=M;for(M.return=Z;f.sibling!==null;)f=f.sibling,M=M.sibling=Z8(f,f.pendingProps),M.return=Z;M.sibling=null}return Z.child}function $t(f,Z){if((f.lanes&Z)!==0)return!0;return f=f.dependencies,f!==null&&mo(f)?!0:!1}function Vw(f,Z,M){switch(Z.tag){case 3:vo(Z,Z.stateNode.containerInfo),s8(Z,uf,f.memoizedState.cache),rM();break;case 27:case 5:Yi(Z);break;case 4:vo(Z,Z.stateNode.containerInfo);break;case 10:s8(Z,Z.type,Z.memoizedProps.value);break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,Oi(Z),null;break;case 13:var r=Z.memoizedState;if(r!==null){if(r.dehydrated!==null)return g8(Z),Z.flags|=128,null;if((M&Z.child.childLanes)!==0)return tn(f,Z,M);return g8(Z),f=i8(f,Z,M),f!==null?f.sibling:null}g8(Z);break;case 19:var a=(f.flags&128)!==0;if(r=(M&Z.childLanes)!==0,r||(Zr(f,Z,M,!1),r=(M&Z.childLanes)!==0),a){if(r)return dn(f,Z,M);Z.flags|=128}if(a=Z.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),of(wf,wf.current),r)break;else return null;case 22:return Z.lanes=0,en(f,Z,M,Z.pendingProps);case 24:s8(Z,uf,f.memoizedState.cache)}return i8(f,Z,M)}function cn(f,Z,M){if(f!==null)if(f.memoizedProps!==Z.pendingProps)Yf=!0;else{if(!$t(f,M)&&(Z.flags&128)===0)return Yf=!1,Vw(f,Z,M);Yf=(f.flags&131072)!==0?!0:!1}else Yf=!1,V&&(Z.flags&1048576)!==0&&zz(Z,Vr,Z.index);switch(Z.lanes=0,Z.tag){case 16:f:{var r=Z.pendingProps;if(f=C8(Z.elementType),Z.type=f,typeof f==="function")At(f)?(r=iM(f,r),Z.tag=1,Z=Qc(null,Z,f,r,M)):(Z.tag=0,Z=Vi(null,Z,f,r,M));else{if(f!==void 0&&f!==null){var a=f.$$typeof;if(a===st){Z.tag=11,Z=Jc(null,Z,f,r,M);break f}else if(a===gt){Z.tag=14,Z=Gc(null,Z,f,r,M);break f}}throw Z=xi(f)||f,Error(Y(306,Z,""))}}return Z;case 0:return Vi(f,Z,Z.type,Z.pendingProps,M);case 1:return r=Z.type,a=iM(r,Z.pendingProps),Qc(f,Z,r,a,M);case 3:f:{if(vo(Z,Z.stateNode.containerInfo),f===null)throw Error(Y(387));r=Z.pendingProps;var o=Z.memoizedState;a=o.element,Hi(f,Z),Br(Z,r,null,M);var e=Z.memoizedState;if(r=e.cache,s8(Z,uf,r),r!==o.cache&&Bi(Z,[uf],M,!0),Qr(),r=e.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:e.cache},Z.updateQueue.baseState=o,Z.memoizedState=o,Z.flags&256){Z=Bc(f,Z,r,M);break f}else if(r!==a){a=wZ(Error(Y(424)),Z),Cr(a),Z=Bc(f,Z,r,M);break f}else{switch(f=Z.stateNode.containerInfo,f.nodeType){case 9:f=f.body;break;default:f=f.nodeName==="HTML"?f.ownerDocument.body:f}tf=pZ(f.firstChild),Rf=Z,V=!0,k8=null,bZ=!0,M=bz(Z,null,r,M);for(Z.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling}else{if(rM(),r===a){Z=i8(f,Z,M);break f}Jf(f,Z,r,M)}Z=Z.child}return Z;case 26:return eo(f,Z),f===null?(M=ol(Z.type,null,Z.pendingProps,null))?Z.memoizedState=M:V||(M=Z.type,f=Z.pendingProps,r=Ko(Y8.current).createElement(M),r[Gf]=Z,r[Pf]=f,Kf(r,M,f),Af(r),Z.stateNode=r):Z.memoizedState=ol(Z.type,f.memoizedProps,Z.pendingProps,f.memoizedState),null;case 27:return Yi(Z),f===null&&V&&(r=Z.stateNode=fv(Z.type,Z.pendingProps,Y8.current),Rf=Z,bZ=!0,a=tf,B8(Z.type)?(zt=a,tf=pZ(r.firstChild)):tf=a),Jf(f,Z,Z.pendingProps.children,M),eo(f,Z),f===null&&(Z.flags|=4194304),Z.child;case 5:if(f===null&&V){if(a=r=tf)r=ub(r,Z.type,Z.pendingProps,bZ),r!==null?(Z.stateNode=r,Rf=Z,tf=pZ(r.firstChild),bZ=!1,a=!0):a=!1;a||R8(Z)}return Yi(Z),a=Z.type,o=Z.pendingProps,e=f!==null?f.memoizedProps:null,r=o.children,tt(a,o)?r=null:e!==null&&tt(a,e)&&(Z.flags|=32),Z.memoizedState!==null&&(a=Bt(f,Z,Hw,null,null,M),Ma._currentValue=a),eo(f,Z),Jf(f,Z,r,M),Z.child;case 6:if(f===null&&V){if(f=M=tf)M=Yb(M,Z.pendingProps,bZ),M!==null?(Z.stateNode=M,Rf=Z,tf=null,f=!0):f=!1;f||R8(Z)}return null;case 13:return tn(f,Z,M);case 4:return vo(Z,Z.stateNode.containerInfo),r=Z.pendingProps,f===null?Z.child=oM(Z,null,r,M):Jf(f,Z,r,M),Z.child;case 11:return Jc(f,Z,Z.type,Z.pendingProps,M);case 7:return Jf(f,Z,Z.pendingProps,M),Z.child;case 8:return Jf(f,Z,Z.pendingProps.children,M),Z.child;case 12:return Jf(f,Z,Z.pendingProps.children,M),Z.child;case 10:return r=Z.pendingProps,s8(Z,Z.type,r.value),Jf(f,Z,r.children,M),Z.child;case 9:return a=Z.type._context,r=Z.pendingProps.children,aM(Z),a=Uf(a),r=r(a),Z.flags|=1,Jf(f,Z,r,M),Z.child;case 14:return Gc(f,Z,Z.type,Z.pendingProps,M);case 15:return on(f,Z,Z.type,Z.pendingProps,M);case 19:return dn(f,Z,M);case 31:return Sw(f,Z,M);case 22:return en(f,Z,M,Z.pendingProps);case 24:return aM(Z),r=Uf(uf),f===null?(a=Gt(),a===null&&(a=af,o=Jt(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=M),a=o),Z.memoizedState={parent:r,cache:a},Ut(Z),s8(Z,uf,a)):((f.lanes&M)!==0&&(Hi(f,Z),Br(Z,null,null,M),Qr()),a=f.memoizedState,o=Z.memoizedState,a.parent!==r?(a={parent:r,cache:r},Z.memoizedState=a,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=a),s8(Z,uf,r)):(r=o.cache,s8(Z,uf,r),r!==a.cache&&Bi(Z,[uf],M,!0))),Jf(f,Z,Z.pendingProps.children,M),Z.child;case 29:throw Z.pendingProps}throw Error(Y(156,Z.tag))}function TZ(f){f.flags|=4}function ii(f,Z,M,r,a){if(Z=(f.mode&32)!==0)Z=!1;if(Z){if(f.flags|=16777216,(a&335544128)===a)if(f.stateNode.complete)f.flags|=8192;else if(Rn())f.flags|=8192;else throw ZM=xo,Rt}else f.flags&=-16777217}function Hc(f,Z){if(Z.type!=="stylesheet"||(Z.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!rv(Z))if(Rn())f.flags|=8192;else throw ZM=xo,Rt}function Na(f,Z){Z!==null&&(f.flags|=4),f.flags&16384&&(Z=f.tag!==22?Rl():536870912,f.lanes|=Z,SM|=Z)}function pr(f,Z){if(!V)switch(f.tailMode){case"hidden":Z=f.tail;for(var M=null;Z!==null;)Z.alternate!==null&&(M=Z),Z=Z.sibling;M===null?f.tail=null:M.sibling=null;break;case"collapsed":M=f.tail;for(var r=null;M!==null;)M.alternate!==null&&(r=M),M=M.sibling;r===null?Z||f.tail===null?f.tail=null:f.tail.sibling=null:r.sibling=null}}function ef(f){var Z=f.alternate!==null&&f.alternate.child===f.child,M=0,r=0;if(Z)for(var a=f.child;a!==null;)M|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=f,a=a.sibling;else for(a=f.child;a!==null;)M|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=f,a=a.sibling;return f.subtreeFlags|=r,f.childLanes=M,Z}function Cw(f,Z,M){var r=Z.pendingProps;switch(Xt(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ef(Z),null;case 1:return ef(Z),null;case 3:if(M=Z.stateNode,r=null,f!==null&&(r=f.memoizedState.cache),Z.memoizedState.cache!==r&&(Z.flags|=2048),M8(uf),DM(),M.pendingContext&&(M.context=M.pendingContext,M.pendingContext=null),f===null||f.child===null)bM(Z)?TZ(Z):f===null||f.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,Pe());return ef(Z),null;case 26:var{type:a,memoizedState:o}=Z;return f===null?(TZ(Z),o!==null?(ef(Z),Hc(Z,o)):(ef(Z),ii(Z,a,null,r,M))):o?o!==f.memoizedState?(TZ(Z),ef(Z),Hc(Z,o)):(ef(Z),Z.flags&=-16777217):(f=f.memoizedProps,f!==r&&TZ(Z),ef(Z),ii(Z,a,f,r,M)),null;case 27:if(so(Z),M=Y8.current,a=Z.type,f!==null&&Z.stateNode!=null)f.memoizedProps!==r&&TZ(Z);else{if(!r){if(Z.stateNode===null)throw Error(Y(166));return ef(Z),null}f=_Z.current,bM(Z)?sc(Z,f):(f=fv(a,r,M),Z.stateNode=f,TZ(Z))}return ef(Z),null;case 5:if(so(Z),a=Z.type,f!==null&&Z.stateNode!=null)f.memoizedProps!==r&&TZ(Z);else{if(!r){if(Z.stateNode===null)throw Error(Y(166));return ef(Z),null}if(o=_Z.current,bM(Z))sc(Z,o);else{var e=Ko(Y8.current);switch(o){case 1:o=e.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=e.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=e.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=e.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=e.createElement("div"),o.innerHTML="<script></script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is==="string"?e.createElement("select",{is:r.is}):e.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==="string"?e.createElement(a,{is:r.is}):e.createElement(a)}}o[Gf]=Z,o[Pf]=r;f:for(e=Z.child;e!==null;){if(e.tag===5||e.tag===6)o.appendChild(e.stateNode);else if(e.tag!==4&&e.tag!==27&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===Z)break f;for(;e.sibling===null;){if(e.return===null||e.return===Z)break f;e=e.return}e.sibling.return=e.return,e=e.sibling}Z.stateNode=o;f:switch(Kf(o,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break f;case"img":r=!0;break f;default:r=!1}r&&TZ(Z)}}return ef(Z),ii(Z,Z.type,f===null?null:f.memoizedProps,Z.pendingProps,M),null;case 6:if(f&&Z.stateNode!=null)f.memoizedProps!==r&&TZ(Z);else{if(typeof r!=="string"&&Z.stateNode===null)throw Error(Y(166));if(f=Y8.current,bM(Z)){if(f=Z.stateNode,M=Z.memoizedProps,r=null,a=Rf,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}f[Gf]=Z,f=f.nodeValue===M||r!==null&&r.suppressHydrationWarning===!0||Cn(f.nodeValue,M)?!0:!1,f||R8(Z,!0)}else f=Ko(f).createTextNode(r),f[Gf]=Z,Z.stateNode=f}return ef(Z),null;case 31:if(M=Z.memoizedState,f===null||f.memoizedState!==null){if(r=bM(Z),M!==null){if(f===null){if(!r)throw Error(Y(318));if(f=Z.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(Y(557));f[Gf]=Z}else rM(),(Z.flags&128)===0&&(Z.memoizedState=null),Z.flags|=4;ef(Z),f=!1}else M=Pe(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=M),f=!0;if(!f){if(Z.flags&256)return ZZ(Z),Z;return ZZ(Z),null}if((Z.flags&128)!==0)throw Error(Y(558))}return ef(Z),null;case 13:if(r=Z.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(a=bM(Z),r!==null&&r.dehydrated!==null){if(f===null){if(!a)throw Error(Y(318));if(a=Z.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Y(317));a[Gf]=Z}else rM(),(Z.flags&128)===0&&(Z.memoizedState=null),Z.flags|=4;ef(Z),a=!1}else a=Pe(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=a),a=!0;if(!a){if(Z.flags&256)return ZZ(Z),Z;return ZZ(Z),null}}if(ZZ(Z),(Z.flags&128)!==0)return Z.lanes=M,Z;return M=r!==null,f=f!==null&&f.memoizedState!==null,M&&(r=Z.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),M!==f&&M&&(Z.child.flags|=8192),Na(Z,Z.updateQueue),ef(Z),null;case 4:return DM(),f===null&&ad(Z.stateNode.containerInfo),ef(Z),null;case 10:return M8(Z.type),ef(Z),null;case 19:if(Wf(wf),r=Z.memoizedState,r===null)return ef(Z),null;if(a=(Z.flags&128)!==0,o=r.rendering,o===null)if(a)pr(r,!1);else{if(sf!==0||f!==null&&(f.flags&128)!==0)for(f=Z.child;f!==null;){if(o=Yo(f),o!==null){Z.flags|=128,pr(r,!1),f=o.updateQueue,Z.updateQueue=f,Na(Z,f),Z.subtreeFlags=0,f=M;for(M=Z.child;M!==null;)cz(M,f),M=M.sibling;return of(wf,wf.current&1|2),V&&CZ(Z,r.treeForkCount),Z.child}f=f.sibling}r.tail!==null&&aZ()>Wo&&(Z.flags|=128,a=!0,pr(r,!1),Z.lanes=4194304)}else{if(!a)if(f=Yo(o),f!==null){if(Z.flags|=128,a=!0,f=f.updateQueue,Z.updateQueue=f,Na(Z,f),pr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!V)return ef(Z),null}else 2*aZ()-r.renderingStartTime>Wo&&M!==536870912&&(Z.flags|=128,a=!0,pr(r,!1),Z.lanes=4194304);r.isBackwards?(o.sibling=Z.child,Z.child=o):(f=r.last,f!==null?f.sibling=o:Z.child=o,r.last=o)}if(r.tail!==null)return f=r.tail,r.rendering=f,r.tail=f.sibling,r.renderingStartTime=aZ(),f.sibling=null,M=wf.current,of(wf,a?M&1|2:M&1),V&&CZ(Z,r.treeForkCount),f;return ef(Z),null;case 22:case 23:return ZZ(Z),Kt(),r=Z.memoizedState!==null,f!==null?f.memoizedState!==null!==r&&(Z.flags|=8192):r&&(Z.flags|=8192),r?(M&536870912)!==0&&(Z.flags&128)===0&&(ef(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):ef(Z),M=Z.updateQueue,M!==null&&Na(Z,M.retryQueue),M=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(M=f.memoizedState.cachePool.pool),r=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(r=Z.memoizedState.cachePool.pool),r!==M&&(Z.flags|=2048),f!==null&&Wf(fM),null;case 24:return M=null,f!==null&&(M=f.memoizedState.cache),Z.memoizedState.cache!==M&&(Z.flags|=2048),M8(uf),ef(Z),null;case 25:return null;case 30:return null}throw Error(Y(156,Z.tag))}function $w(f,Z){switch(Xt(Z),Z.tag){case 1:return f=Z.flags,f&65536?(Z.flags=f&-65537|128,Z):null;case 3:return M8(uf),DM(),f=Z.flags,(f&65536)!==0&&(f&128)===0?(Z.flags=f&-65537|128,Z):null;case 26:case 27:case 5:return so(Z),null;case 31:if(Z.memoizedState!==null){if(ZZ(Z),Z.alternate===null)throw Error(Y(340));rM()}return f=Z.flags,f&65536?(Z.flags=f&-65537|128,Z):null;case 13:if(ZZ(Z),f=Z.memoizedState,f!==null&&f.dehydrated!==null){if(Z.alternate===null)throw Error(Y(340));rM()}return f=Z.flags,f&65536?(Z.flags=f&-65537|128,Z):null;case 19:return Wf(wf),null;case 4:return DM(),null;case 10:return M8(Z.type),null;case 22:case 23:return ZZ(Z),Kt(),f!==null&&Wf(fM),f=Z.flags,f&65536?(Z.flags=f&-65537|128,Z):null;case 24:return M8(uf),null;case 25:return null;default:return null}}function ln(f,Z){switch(Xt(Z),Z.tag){case 3:M8(uf),DM();break;case 26:case 27:case 5:so(Z);break;case 4:DM();break;case 31:Z.memoizedState!==null&&ZZ(Z);break;case 13:ZZ(Z);break;case 19:Wf(wf);break;case 10:M8(Z.type);break;case 22:case 23:ZZ(Z),Kt(),f!==null&&Wf(fM);break;case 24:M8(uf)}}function sa(f,Z){try{var M=Z.updateQueue,r=M!==null?M.lastEffect:null;if(r!==null){var a=r.next;M=a;do{if((M.tag&f)===f){r=void 0;var{create:o,inst:e}=M;r=o(),e.destroy=r}M=M.next}while(M!==a)}}catch(i){ff(Z,Z.return,i)}}function U8(f,Z,M){try{var r=Z.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var o=a.next;r=o;do{if((r.tag&f)===f){var e=r.inst,i=e.destroy;if(i!==void 0){e.destroy=void 0,a=Z;var t=M,c=i;try{c()}catch(l){ff(a,t,l)}}}r=r.next}while(r!==o)}}catch(l){ff(Z,Z.return,l)}}function zn(f){var Z=f.updateQueue;if(Z!==null){var M=f.stateNode;try{pz(Z,M)}catch(r){ff(f,f.return,r)}}}function nn(f,Z,M){M.props=iM(f.type,f.memoizedProps),M.state=f.memoizedState;try{M.componentWillUnmount()}catch(r){ff(f,Z,r)}}function Hr(f,Z){try{var M=f.ref;if(M!==null){switch(f.tag){case 26:case 27:case 5:var r=f.stateNode;break;case 30:r=f.stateNode;break;default:r=f.stateNode}typeof M==="function"?f.refCleanup=M(r):M.current=r}}catch(a){ff(f,Z,a)}}function BZ(f,Z){var{ref:M,refCleanup:r}=f;if(M!==null)if(typeof r==="function")try{r()}catch(a){ff(f,Z,a)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof M==="function")try{M(null)}catch(a){ff(f,Z,a)}else M.current=null}function vn(f){var{type:Z,memoizedProps:M,stateNode:r}=f;try{f:switch(Z){case"button":case"input":case"select":case"textarea":M.autoFocus&&r.focus();break f;case"img":M.src?r.src=M.src:M.srcSet&&(r.srcset=M.srcSet)}}catch(a){ff(f,f.return,a)}}function ti(f,Z,M){try{var r=f.stateNode;wb(r,f.type,M,Z),r[Pf]=Z}catch(a){ff(f,f.return,a)}}function sn(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&B8(f.type)||f.tag===4}function di(f){f:for(;;){for(;f.sibling===null;){if(f.return===null||sn(f.return))return null;f=f.return}f.sibling.return=f.return;for(f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&B8(f.type))continue f;if(f.flags&2)continue f;if(f.child===null||f.tag===4)continue f;else f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function $i(f,Z,M){var r=f.tag;if(r===5||r===6)f=f.stateNode,Z?(M.nodeType===9?M.body:M.nodeName==="HTML"?M.ownerDocument.body:M).insertBefore(f,Z):(Z=M.nodeType===9?M.body:M.nodeName==="HTML"?M.ownerDocument.body:M,Z.appendChild(f),M=M._reactRootContainer,M!==null&&M!==void 0||Z.onclick!==null||(Z.onclick=EZ));else if(r!==4&&(r===27&&B8(f.type)&&(M=f.stateNode,Z=null),f=f.child,f!==null))for($i(f,Z,M),f=f.sibling;f!==null;)$i(f,Z,M),f=f.sibling}function Ao(f,Z,M){var r=f.tag;if(r===5||r===6)f=f.stateNode,Z?M.insertBefore(f,Z):M.appendChild(f);else if(r!==4&&(r===27&&B8(f.type)&&(M=f.stateNode),f=f.child,f!==null))for(Ao(f,Z,M),f=f.sibling;f!==null;)Ao(f,Z,M),f=f.sibling}function gn(f){var{stateNode:Z,memoizedProps:M}=f;try{for(var r=f.type,a=Z.attributes;a.length;)Z.removeAttributeNode(a[0]);Kf(Z,r,M),Z[Gf]=f,Z[Pf]=M}catch(o){ff(f,f.return,o)}}function Pw(f,Z){if(f=f.containerInfo,et=Ho,f=Mz(f),yt(f)){if("selectionStart"in f)var M={start:f.selectionStart,end:f.selectionEnd};else f:{M=(M=f.ownerDocument)&&M.defaultView||window;var r=M.getSelection&&M.getSelection();if(r&&r.rangeCount!==0){M=r.anchorNode;var{anchorOffset:a,focusNode:o}=r;r=r.focusOffset;try{M.nodeType,o.nodeType}catch(k){M=null;break f}var e=0,i=-1,t=-1,c=0,l=0,g=f,s=null;Z:for(;;){for(var z;;){if(g!==M||a!==0&&g.nodeType!==3||(i=e+a),g!==o||r!==0&&g.nodeType!==3||(t=e+r),g.nodeType===3&&(e+=g.nodeValue.length),(z=g.firstChild)===null)break;s=g,g=z}for(;;){if(g===f)break Z;if(s===M&&++c===a&&(i=e),s===o&&++l===r&&(t=e),(z=g.nextSibling)!==null)break;g=s,s=g.parentNode}g=z}M=i===-1||t===-1?null:{start:i,end:t}}else M=null}M=M||{start:0,end:0}}else M=null;it={focusedElem:f,selectionRange:M},Ho=!1;for(Lf=Z;Lf!==null;)if(Z=Lf,f=Z.child,(Z.subtreeFlags&1028)!==0&&f!==null)f.return=Z,Lf=f;else for(;Lf!==null;){switch(Z=Lf,o=Z.alternate,f=Z.flags,Z.tag){case 0:if((f&4)!==0&&(f=Z.updateQueue,f=f!==null?f.events:null,f!==null))for(M=0;M<f.length;M++)a=f[M],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((f&1024)!==0&&o!==null){f=void 0,M=Z,a=o.memoizedProps,o=o.memoizedState,r=M.stateNode;try{var u=iM(M.type,a);f=r.getSnapshotBeforeUpdate(u,o),r.__reactInternalSnapshotBeforeUpdate=f}catch(k){ff(M,M.return,k)}}break;case 3:if((f&1024)!==0){if(f=Z.stateNode.containerInfo,M=f.nodeType,M===9)dt(f);else if(M===1)switch(f.nodeName){case"HEAD":case"HTML":case"BODY":dt(f);break;default:f.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error(Y(163))}if(f=Z.sibling,f!==null){f.return=Z.return,Lf=f;break}Lf=Z.return}}function wn(f,Z,M){var r=M.flags;switch(M.tag){case 0:case 11:case 15:SZ(f,M),r&4&&sa(5,M);break;case 1:if(SZ(f,M),r&4)if(f=M.stateNode,Z===null)try{f.componentDidMount()}catch(e){ff(M,M.return,e)}else{var a=iM(M.type,Z.memoizedProps);Z=Z.memoizedState;try{f.componentDidUpdate(a,Z,f.__reactInternalSnapshotBeforeUpdate)}catch(e){ff(M,M.return,e)}}r&64&&zn(M),r&512&&Hr(M,M.return);break;case 3:if(SZ(f,M),r&64&&(f=M.updateQueue,f!==null)){if(Z=null,M.child!==null)switch(M.child.tag){case 27:case 5:Z=M.child.stateNode;break;case 1:Z=M.child.stateNode}try{pz(f,Z)}catch(e){ff(M,M.return,e)}}break;case 27:Z===null&&r&4&&gn(M);case 26:case 5:SZ(f,M),Z===null&&r&4&&vn(M),r&512&&Hr(M,M.return);break;case 12:SZ(f,M);break;case 31:SZ(f,M),r&4&&pn(f,M);break;case 13:SZ(f,M),r&4&&mn(f,M),r&64&&(f=M.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(M=ib.bind(null,M),kb(f,M))));break;case 22:if(r=M.memoizedState!==null||$Z,!r){Z=Z!==null&&Z.memoizedState!==null||xf,a=$Z;var o=xf;$Z=r,(xf=Z)&&!o?VZ(f,M,(M.subtreeFlags&8772)!==0):SZ(f,M),$Z=a,xf=o}break;case 30:break;default:SZ(f,M)}}function bn(f){var Z=f.alternate;Z!==null&&(f.alternate=null,bn(Z)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(Z=f.stateNode,Z!==null&&pt(Z)),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function IZ(f,Z,M){for(M=M.child;M!==null;)hn(f,Z,M),M=M.sibling}function hn(f,Z,M){if(oZ&&typeof oZ.onCommitFiberUnmount==="function")try{oZ.onCommitFiberUnmount(ta,M)}catch(o){}switch(M.tag){case 26:xf||BZ(M,Z),IZ(f,Z,M),M.memoizedState?M.memoizedState.count--:M.stateNode&&(M=M.stateNode,M.parentNode.removeChild(M));break;case 27:xf||BZ(M,Z);var r=cf,a=Vf;B8(M.type)&&(cf=M.stateNode,Vf=!1),IZ(f,Z,M),Fr(M.stateNode),cf=r,Vf=a;break;case 5:xf||BZ(M,Z);case 6:if(r=cf,a=Vf,cf=null,IZ(f,Z,M),cf=r,Vf=a,cf!==null)if(Vf)try{(cf.nodeType===9?cf.body:cf.nodeName==="HTML"?cf.ownerDocument.body:cf).removeChild(M.stateNode)}catch(o){ff(M,Z,o)}else try{cf.removeChild(M.stateNode)}catch(o){ff(M,Z,o)}break;case 18:cf!==null&&(Vf?(f=cf,fl(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,M.stateNode),PM(f)):fl(cf,M.stateNode));break;case 4:r=cf,a=Vf,cf=M.stateNode.containerInfo,Vf=!0,IZ(f,Z,M),cf=r,Vf=a;break;case 0:case 11:case 14:case 15:U8(2,M,Z),xf||U8(4,M,Z),IZ(f,Z,M);break;case 1:xf||(BZ(M,Z),r=M.stateNode,typeof r.componentWillUnmount==="function"&&nn(M,Z,r)),IZ(f,Z,M);break;case 21:IZ(f,Z,M);break;case 22:xf=(r=xf)||M.memoizedState!==null,IZ(f,Z,M),xf=r;break;default:IZ(f,Z,M)}}function pn(f,Z){if(Z.memoizedState===null&&(f=Z.alternate,f!==null&&(f=f.memoizedState,f!==null))){f=f.dehydrated;try{PM(f)}catch(M){ff(Z,Z.return,M)}}}function mn(f,Z){if(Z.memoizedState===null&&(f=Z.alternate,f!==null&&(f=f.memoizedState,f!==null&&(f=f.dehydrated,f!==null))))try{PM(f)}catch(M){ff(Z,Z.return,M)}}function Ew(f){switch(f.tag){case 31:case 13:case 19:var Z=f.stateNode;return Z===null&&(Z=f.stateNode=new qc),Z;case 22:return f=f.stateNode,Z=f._retryCache,Z===null&&(Z=f._retryCache=new qc),Z;default:throw Error(Y(435,f.tag))}}function Ta(f,Z){var M=Ew(f);Z.forEach(function(r){if(!M.has(r)){M.add(r);var a=tb.bind(null,f,r);r.then(a,a)}})}function If(f,Z){var M=Z.deletions;if(M!==null)for(var r=0;r<M.length;r++){var a=M[r],o=f,e=Z,i=e;f:for(;i!==null;){switch(i.tag){case 27:if(B8(i.type)){cf=i.stateNode,Vf=!1;break f}break;case 5:cf=i.stateNode,Vf=!1;break f;case 3:case 4:cf=i.stateNode.containerInfo,Vf=!0;break f}i=i.return}if(cf===null)throw Error(Y(160));hn(o,e,a),cf=null,Vf=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)xn(Z,f),Z=Z.sibling}function xn(f,Z){var{alternate:M,flags:r}=f;switch(f.tag){case 0:case 11:case 14:case 15:If(Z,f),Sf(f),r&4&&(U8(3,f,f.return),sa(3,f),U8(5,f,f.return));break;case 1:If(Z,f),Sf(f),r&512&&(xf||M===null||BZ(M,M.return)),r&64&&$Z&&(f=f.updateQueue,f!==null&&(r=f.callbacks,r!==null&&(M=f.shared.hiddenCallbacks,f.shared.hiddenCallbacks=M===null?r:M.concat(r))));break;case 26:var a=LZ;if(If(Z,f),Sf(f),r&512&&(xf||M===null||BZ(M,M.return)),r&4){var o=M!==null?M.memoizedState:null;if(r=f.memoizedState,M===null)if(r===null)if(f.stateNode===null){f:{r=f.type,M=f.memoizedProps,a=a.ownerDocument||a;Z:switch(r){case"title":if(o=a.getElementsByTagName("title")[0],!o||o[la]||o[Gf]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))o=a.createElement(r),a.head.insertBefore(o,a.querySelector("head > title"));Kf(o,r,M),o[Gf]=f,Af(o),r=o;break f;case"link":var e=il("link","href",a).get(r+(M.href||""));if(e){for(var i=0;i<e.length;i++)if(o=e[i],o.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&o.getAttribute("rel")===(M.rel==null?null:M.rel)&&o.getAttribute("title")===(M.title==null?null:M.title)&&o.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){e.splice(i,1);break Z}}o=a.createElement(r),Kf(o,r,M),a.head.appendChild(o);break;case"meta":if(e=il("meta","content",a).get(r+(M.content||""))){for(i=0;i<e.length;i++)if(o=e[i],o.getAttribute("content")===(M.content==null?null:""+M.content)&&o.getAttribute("name")===(M.name==null?null:M.name)&&o.getAttribute("property")===(M.property==null?null:M.property)&&o.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&o.getAttribute("charset")===(M.charSet==null?null:M.charSet)){e.splice(i,1);break Z}}o=a.createElement(r),Kf(o,r,M),a.head.appendChild(o);break;default:throw Error(Y(468,r))}o[Gf]=f,Af(o),r=o}f.stateNode=r}else tl(a,f.type,f.stateNode);else f.stateNode=el(a,r,f.memoizedProps);else o!==r?(o===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):o.count--,r===null?tl(a,f.type,f.stateNode):el(a,r,f.memoizedProps)):r===null&&f.stateNode!==null&&ti(f,f.memoizedProps,M.memoizedProps)}break;case 27:If(Z,f),Sf(f),r&512&&(xf||M===null||BZ(M,M.return)),M!==null&&r&4&&ti(f,f.memoizedProps,M.memoizedProps);break;case 5:if(If(Z,f),Sf(f),r&512&&(xf||M===null||BZ(M,M.return)),f.flags&32){a=f.stateNode;try{FM(a,"")}catch(u){ff(f,f.return,u)}}r&4&&f.stateNode!=null&&(a=f.memoizedProps,ti(f,a,M!==null?M.memoizedProps:a)),r&1024&&(ci=!0);break;case 6:if(If(Z,f),Sf(f),r&4){if(f.stateNode===null)throw Error(Y(162));r=f.memoizedProps,M=f.stateNode;try{M.nodeValue=r}catch(u){ff(f,f.return,u)}}break;case 3:if(co=null,a=LZ,LZ=Qo(Z.containerInfo),If(Z,f),LZ=a,Sf(f),r&4&&M!==null&&M.memoizedState.isDehydrated)try{PM(Z.containerInfo)}catch(u){ff(f,f.return,u)}ci&&(ci=!1,un(f));break;case 4:r=LZ,LZ=Qo(f.stateNode.containerInfo),If(Z,f),Sf(f),LZ=r;break;case 12:If(Z,f),Sf(f);break;case 31:If(Z,f),Sf(f),r&4&&(r=f.updateQueue,r!==null&&(f.updateQueue=null,Ta(f,r)));break;case 13:If(Z,f),Sf(f),f.child.flags&8192&&f.memoizedState!==null!==(M!==null&&M.memoizedState!==null)&&(fe=aZ()),r&4&&(r=f.updateQueue,r!==null&&(f.updateQueue=null,Ta(f,r)));break;case 22:a=f.memoizedState!==null;var t=M!==null&&M.memoizedState!==null,c=$Z,l=xf;if($Z=c||a,xf=l||t,If(Z,f),xf=l,$Z=c,Sf(f),r&8192)f:for(Z=f.stateNode,Z._visibility=a?Z._visibility&-2:Z._visibility|1,a&&(M===null||t||$Z||xf||$8(f)),M=null,Z=f;;){if(Z.tag===5||Z.tag===26){if(M===null){t=M=Z;try{if(o=t.stateNode,a)e=o.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none";else{i=t.stateNode;var g=t.memoizedProps.style,s=g!==void 0&&g!==null&&g.hasOwnProperty("display")?g.display:null;i.style.display=s==null||typeof s==="boolean"?"":(""+s).trim()}}catch(u){ff(t,t.return,u)}}}else if(Z.tag===6){if(M===null){t=Z;try{t.stateNode.nodeValue=a?"":t.memoizedProps}catch(u){ff(t,t.return,u)}}}else if(Z.tag===18){if(M===null){t=Z;try{var z=t.stateNode;a?Zl(z,!0):Zl(t.stateNode,!1)}catch(u){ff(t,t.return,u)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===f)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===f)break f;for(;Z.sibling===null;){if(Z.return===null||Z.return===f)break f;M===Z&&(M=null),Z=Z.return}M===Z&&(M=null),Z.sibling.return=Z.return,Z=Z.sibling}r&4&&(r=f.updateQueue,r!==null&&(M=r.retryQueue,M!==null&&(r.retryQueue=null,Ta(f,M))));break;case 19:If(Z,f),Sf(f),r&4&&(r=f.updateQueue,r!==null&&(f.updateQueue=null,Ta(f,r)));break;case 30:break;case 21:break;default:If(Z,f),Sf(f)}}function Sf(f){var Z=f.flags;if(Z&2){try{for(var M,r=f.return;r!==null;){if(sn(r)){M=r;break}r=r.return}if(M==null)throw Error(Y(160));switch(M.tag){case 27:var a=M.stateNode,o=di(f);Ao(f,o,a);break;case 5:var e=M.stateNode;M.flags&32&&(FM(e,""),M.flags&=-33);var i=di(f);Ao(f,i,e);break;case 3:case 4:var t=M.stateNode.containerInfo,c=di(f);$i(f,c,t);break;default:throw Error(Y(161))}}catch(l){ff(f,f.return,l)}f.flags&=-3}Z&4096&&(f.flags&=-4097)}function un(f){if(f.subtreeFlags&1024)for(f=f.child;f!==null;){var Z=f;un(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),f=f.sibling}}function SZ(f,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)wn(f,Z.alternate,Z),Z=Z.sibling}function $8(f){for(f=f.child;f!==null;){var Z=f;switch(Z.tag){case 0:case 11:case 14:case 15:U8(4,Z,Z.return),$8(Z);break;case 1:BZ(Z,Z.return);var M=Z.stateNode;typeof M.componentWillUnmount==="function"&&nn(Z,Z.return,M),$8(Z);break;case 27:Fr(Z.stateNode);case 26:case 5:BZ(Z,Z.return),$8(Z);break;case 22:Z.memoizedState===null&&$8(Z);break;case 30:$8(Z);break;default:$8(Z)}f=f.sibling}}function VZ(f,Z,M){M=M&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;){var r=Z.alternate,a=f,o=Z,e=o.flags;switch(o.tag){case 0:case 11:case 15:VZ(a,o,M),sa(4,o);break;case 1:if(VZ(a,o,M),r=o,a=r.stateNode,typeof a.componentDidMount==="function")try{a.componentDidMount()}catch(c){ff(r,r.return,c)}if(r=o,a=r.updateQueue,a!==null){var i=r.stateNode;try{var t=a.shared.hiddenCallbacks;if(t!==null)for(a.shared.hiddenCallbacks=null,a=0;a<t.length;a++)hz(t[a],i)}catch(c){ff(r,r.return,c)}}M&&e&64&&zn(o),Hr(o,o.return);break;case 27:gn(o);case 26:case 5:VZ(a,o,M),M&&r===null&&e&4&&vn(o),Hr(o,o.return);break;case 12:VZ(a,o,M);break;case 31:VZ(a,o,M),M&&e&4&&pn(a,o);break;case 13:VZ(a,o,M),M&&e&4&&mn(a,o);break;case 22:o.memoizedState===null&&VZ(a,o,M),Hr(o,o.return);break;case 30:break;default:VZ(a,o,M)}Z=Z.sibling}}function Pt(f,Z){var M=null;f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(M=f.memoizedState.cachePool.pool),f=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(f=Z.memoizedState.cachePool.pool),f!==M&&(f!=null&&f.refCount++,M!=null&&na(M))}function Et(f,Z){f=null,Z.alternate!==null&&(f=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==f&&(Z.refCount++,f!=null&&na(f))}function jZ(f,Z,M,r){if(Z.subtreeFlags&10256)for(Z=Z.child;Z!==null;)Yn(f,Z,M,r),Z=Z.sibling}function Yn(f,Z,M,r){var a=Z.flags;switch(Z.tag){case 0:case 11:case 15:jZ(f,Z,M,r),a&2048&&sa(9,Z);break;case 1:jZ(f,Z,M,r);break;case 3:jZ(f,Z,M,r),a&2048&&(f=null,Z.alternate!==null&&(f=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==f&&(Z.refCount++,f!=null&&na(f)));break;case 12:if(a&2048){jZ(f,Z,M,r),f=Z.stateNode;try{var o=Z.memoizedProps,e=o.id,i=o.onPostCommit;typeof i==="function"&&i(e,Z.alternate===null?"mount":"update",f.passiveEffectDuration,-0)}catch(t){ff(Z,Z.return,t)}}else jZ(f,Z,M,r);break;case 31:jZ(f,Z,M,r);break;case 13:jZ(f,Z,M,r);break;case 23:break;case 22:o=Z.stateNode,e=Z.alternate,Z.memoizedState!==null?o._visibility&2?jZ(f,Z,M,r):qr(f,Z):o._visibility&2?jZ(f,Z,M,r):(o._visibility|=2,pM(f,Z,M,r,(Z.subtreeFlags&10256)!==0||!1)),a&2048&&Pt(e,Z);break;case 24:jZ(f,Z,M,r),a&2048&&Et(Z.alternate,Z);break;default:jZ(f,Z,M,r)}}function pM(f,Z,M,r,a){a=a&&((Z.subtreeFlags&10256)!==0||!1);for(Z=Z.child;Z!==null;){var o=f,e=Z,i=M,t=r,c=e.flags;switch(e.tag){case 0:case 11:case 15:pM(o,e,i,t,a),sa(8,e);break;case 23:break;case 22:var l=e.stateNode;e.memoizedState!==null?l._visibility&2?pM(o,e,i,t,a):qr(o,e):(l._visibility|=2,pM(o,e,i,t,a)),a&&c&2048&&Pt(e.alternate,e);break;case 24:pM(o,e,i,t,a),a&&c&2048&&Et(e.alternate,e);break;default:pM(o,e,i,t,a)}Z=Z.sibling}}function qr(f,Z){if(Z.subtreeFlags&10256)for(Z=Z.child;Z!==null;){var M=f,r=Z,a=r.flags;switch(r.tag){case 22:qr(M,r),a&2048&&Pt(r.alternate,r);break;case 24:qr(M,r),a&2048&&Et(r.alternate,r);break;default:qr(M,r)}Z=Z.sibling}}function hM(f,Z,M){if(f.subtreeFlags&Ar)for(f=f.child;f!==null;)kn(f,Z,M),f=f.sibling}function kn(f,Z,M){switch(f.tag){case 26:hM(f,Z,M),f.flags&Ar&&f.memoizedState!==null&&Qb(M,LZ,f.memoizedState,f.memoizedProps);break;case 5:hM(f,Z,M);break;case 3:case 4:var r=LZ;LZ=Qo(f.stateNode.containerInfo),hM(f,Z,M),LZ=r;break;case 22:f.memoizedState===null&&(r=f.alternate,r!==null&&r.memoizedState!==null?(r=Ar,Ar=16777216,hM(f,Z,M),Ar=r):hM(f,Z,M));break;default:hM(f,Z,M)}}function yn(f){var Z=f.alternate;if(Z!==null&&(f=Z.child,f!==null)){Z.child=null;do Z=f.sibling,f.sibling=null,f=Z;while(f!==null)}}function mr(f){var Z=f.deletions;if((f.flags&16)!==0){if(Z!==null)for(var M=0;M<Z.length;M++){var r=Z[M];Lf=r,Ln(r,f)}yn(f)}if(f.subtreeFlags&10256)for(f=f.child;f!==null;)jn(f),f=f.sibling}function jn(f){switch(f.tag){case 0:case 11:case 15:mr(f),f.flags&2048&&U8(9,f,f.return);break;case 3:mr(f);break;case 12:mr(f);break;case 22:var Z=f.stateNode;f.memoizedState!==null&&Z._visibility&2&&(f.return===null||f.return.tag!==13)?(Z._visibility&=-3,io(f)):mr(f);break;default:mr(f)}}function io(f){var Z=f.deletions;if((f.flags&16)!==0){if(Z!==null)for(var M=0;M<Z.length;M++){var r=Z[M];Lf=r,Ln(r,f)}yn(f)}for(f=f.child;f!==null;){switch(Z=f,Z.tag){case 0:case 11:case 15:U8(8,Z,Z.return),io(Z);break;case 22:M=Z.stateNode,M._visibility&2&&(M._visibility&=-3,io(Z));break;default:io(Z)}f=f.sibling}}function Ln(f,Z){for(;Lf!==null;){var M=Lf;switch(M.tag){case 0:case 11:case 15:U8(8,M,Z);break;case 23:case 22:if(M.memoizedState!==null&&M.memoizedState.cachePool!==null){var r=M.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:na(M.memoizedState.cache)}if(r=M.child,r!==null)r.return=M,Lf=r;else f:for(M=f;Lf!==null;){r=Lf;var{sibling:a,return:o}=r;if(bn(r),r===M){Lf=null;break f}if(a!==null){a.return=o,Lf=a;break f}Lf=o}}}function iZ(){return($&2)!==0&&I!==0?I&-I:_.T!==null?rd():Bl()}function Xn(){if(rZ===0)if((I&536870912)===0||V){var f=Ba;Ba<<=1,(Ba&3932160)===0&&(Ba=262144),rZ=f}else rZ=536870912;return f=dZ.current,f!==null&&(f.flags|=32),rZ}function $f(f,Z,M){if(f===af&&(E===2||E===9)||f.cancelPendingCommit!==null)CM(f,0),x8(f,I,rZ,!1);if(ca(f,M),($&2)===0||f!==af)f===af&&(($&2)===0&&(MM|=M),sf===4&&x8(f,I,rZ,!1)),qZ(f)}function Jn(f,Z,M){if(($&6)!==0)throw Error(Y(327));var r=!M&&(Z&127)===0&&(Z&f.expiredLanes)===0||da(f,Z),a=r?ab(f,Z):li(f,Z,!0),o=r;do{if(a===0){rr&&!r&&x8(f,Z,0,!1);break}else{if(M=f.current.alternate,o&&!Mb(M)){a=li(f,Z,!1),o=!1;continue}if(a===2){if(o=Z,f.errorRecoveryDisabledLanes&o)var e=0;else e=f.pendingLanes&-536870913,e=e!==0?e:e&536870912?536870912:0;if(e!==0){Z=e;f:{var i=f;a=Dr;var t=i.current.memoizedState.isDehydrated;if(t&&(CM(i,e).flags|=256),e=li(i,e,!1),e!==2){if(fd&&!t){i.errorRecoveryDisabledLanes|=o,MM|=o,a=4;break f}o=Cf,Cf=a,o!==null&&(Cf===null?Cf=o:Cf.push.apply(Cf,o))}a=e}if(o=!1,a!==2)continue}}if(a===1){CM(f,0),x8(f,Z,0,!0);break}f:{switch(r=f,o=a,o){case 0:case 1:throw Error(Y(345));case 4:if((Z&4194048)!==Z)break;case 6:x8(r,Z,rZ,!m8);break f;case 2:Cf=null;break;case 3:case 5:break;default:throw Error(Y(329))}if((Z&62914560)===Z&&(a=fe+300-aZ(),10<a)){if(x8(r,Z,rZ,!m8),Oo(r,0,!0)!==0)break f;r8=Z,r.timeoutHandle=Pn(Dc.bind(null,r,M,Cf,Xo,Pi,Z,rZ,MM,SM,m8,o,"Throttled",-0,0),a);break f}Dc(r,M,Cf,Xo,Pi,Z,rZ,MM,SM,m8,o,null,-0,0)}}break}while(1);qZ(f)}function Dc(f,Z,M,r,a,o,e,i,t,c,l,g,s,z){if(f.timeoutHandle=-1,g=Z.subtreeFlags,g&8192||(g&16785408)===16785408){g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:EZ},kn(Z,o,g);var u=(o&62914560)===o?fe-aZ():(o&4194048)===o?An-aZ():0;if(u=Bb(g,u),u!==null){r8=o,f.cancelPendingCommit=u(Fc.bind(null,f,Z,o,M,r,a,e,i,t,l,g,null,s,z)),x8(f,o,e,!c);return}}Fc(f,Z,o,M,r,a,e,i,t)}function Mb(f){for(var Z=f;;){var M=Z.tag;if((M===0||M===11||M===15)&&Z.flags&16384&&(M=Z.updateQueue,M!==null&&(M=M.stores,M!==null)))for(var r=0;r<M.length;r++){var a=M[r],o=a.getSnapshot;a=a.value;try{if(!tZ(o(),a))return!1}catch(e){return!1}}if(M=Z.child,Z.subtreeFlags&16384&&M!==null)M.return=Z,Z=M;else{if(Z===f)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===f)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function x8(f,Z,M,r){Z&=~Zd,Z&=~MM,f.suspendedLanes|=Z,f.pingedLanes&=~Z,r&&(f.warmLanes|=Z),r=f.expirationTimes;for(var a=Z;0<a;){var o=31-eZ(a),e=1<<o;r[o]=-1,a&=~e}M!==0&&Ul(f,M,Z)}function Ze(){return($&6)===0?(ga(0,!1),!1):!0}function Md(){if(N!==null){if(E===0)var f=N.return;else f=N,f8=zM=null,qt(f),_M=null,$r=0,f=N;for(;f!==null;)ln(f.alternate,f),f=f.return;N=null}}function CM(f,Z){var M=f.timeoutHandle;M!==-1&&(f.timeoutHandle=-1,pb(M)),M=f.cancelPendingCommit,M!==null&&(f.cancelPendingCommit=null,M()),r8=0,Md(),af=f,N=M=Z8(f.current,null),I=Z,E=0,fZ=null,m8=!1,rr=da(f,Z),fd=!1,SM=rZ=Zd=MM=K8=sf=0,Cf=Dr=null,Pi=!1,(Z&8)!==0&&(Z|=Z&32);var r=f.entangledLanes;if(r!==0)for(f=f.entanglements,r&=Z;0<r;){var a=31-eZ(r),o=1<<a;Z|=f[a],r&=~o}return t8=Z,Io(),M}function Gn(f,Z){D=null,_.H=Er,Z===Mr||Z===Vo?(Z=pc(),E=3):Z===Rt?(Z=pc(),E=4):E=Z===Ct?8:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?6:1,fZ=Z,N===null&&(sf=1,jo(f,wZ(Z,f.current)))}function Rn(){var f=dZ.current;return f===null?!0:(I&4194048)===I?hZ===null?!0:!1:(I&62914560)===I||(I&536870912)!==0?f===hZ:!1}function Un(){var f=_.H;return _.H=Er,f===null?Er:f}function Kn(){var f=_.A;return _.A=fb,f}function Jo(){sf=4,m8||(I&4194048)!==I&&dZ.current!==null||(rr=!0),(K8&134217727)===0&&(MM&134217727)===0||af===null||x8(af,I,rZ,!1)}function li(f,Z,M){var r=$;$|=2;var a=Un(),o=Kn();if(af!==f||I!==Z)Xo=null,CM(f,Z);Z=!1;var e=sf;f:do try{if(E!==0&&N!==null){var i=N,t=fZ;switch(E){case 8:Md(),e=6;break f;case 3:case 2:case 9:case 6:dZ.current===null&&(Z=!0);var c=E;if(E=0,fZ=null,RM(f,i,t,c),M&&rr){e=0;break f}break;default:c=E,E=0,fZ=null,RM(f,i,t,c)}}rb(),e=sf;break}catch(l){Gn(f,l)}while(1);return Z&&f.shellSuspendCounter++,f8=zM=null,$=r,_.H=a,_.A=o,N===null&&(af=null,I=0,Io()),e}function rb(){for(;N!==null;)Qn(N)}function ab(f,Z){var M=$;$|=2;var r=Un(),a=Kn();af!==f||I!==Z?(Xo=null,Wo=aZ()+500,CM(f,Z)):rr=da(f,Z);f:do try{if(E!==0&&N!==null){Z=N;var o=fZ;Z:switch(E){case 1:E=0,fZ=null,RM(f,Z,o,1);break;case 2:case 9:if(hc(o)){E=0,fZ=null,Oc(Z);break}Z=function(){E!==2&&E!==9||af!==f||(E=7),qZ(f)},o.then(Z,Z);break f;case 3:E=7;break f;case 4:E=5;break f;case 7:hc(o)?(E=0,fZ=null,Oc(Z)):(E=0,fZ=null,RM(f,Z,o,7));break;case 5:var e=null;switch(N.tag){case 26:e=N.memoizedState;case 5:case 27:var i=N;if(e?rv(e):i.stateNode.complete){E=0,fZ=null;var t=i.sibling;if(t!==null)N=t;else{var c=i.return;c!==null?(N=c,Me(c)):N=null}break Z}}E=0,fZ=null,RM(f,Z,o,5);break;case 6:E=0,fZ=null,RM(f,Z,o,6);break;case 8:Md(),sf=6;break f;default:throw Error(Y(462))}}ob();break}catch(l){Gn(f,l)}while(1);if(f8=zM=null,_.H=r,_.A=a,$=M,N!==null)return 0;return af=null,I=0,Io(),sf}function ob(){for(;N!==null&&!Lg();)Qn(N)}function Qn(f){var Z=cn(f.alternate,f,t8);f.memoizedProps=f.pendingProps,Z===null?Me(f):N=Z}function Oc(f){var Z=f,M=Z.alternate;switch(Z.tag){case 15:case 0:Z=Kc(M,Z,Z.pendingProps,Z.type,void 0,I);break;case 11:Z=Kc(M,Z,Z.pendingProps,Z.type.render,Z.ref,I);break;case 5:qt(Z);default:ln(M,Z),Z=N=cz(Z,t8),Z=cn(M,Z,t8)}f.memoizedProps=f.pendingProps,Z===null?Me(f):N=Z}function RM(f,Z,M,r){f8=zM=null,qt(Z),_M=null,$r=0;var a=Z.return;try{if(Iw(f,a,Z,M,I)){sf=1,jo(f,wZ(M,f.current)),N=null;return}}catch(o){if(a!==null)throw N=a,o;sf=1,jo(f,wZ(M,f.current)),N=null;return}if(Z.flags&32768){if(V||r===1)f=!0;else if(rr||(I&536870912)!==0)f=!1;else if(m8=f=!0,r===2||r===9||r===3||r===6)r=dZ.current,r!==null&&r.tag===13&&(r.flags|=16384);Bn(Z,f)}else Me(Z)}function Me(f){var Z=f;do{if((Z.flags&32768)!==0){Bn(Z,m8);return}f=Z.return;var M=Cw(Z.alternate,Z,t8);if(M!==null){N=M;return}if(Z=Z.sibling,Z!==null){N=Z;return}N=Z=f}while(Z!==null);sf===0&&(sf=5)}function Bn(f,Z){do{var M=$w(f.alternate,f);if(M!==null){M.flags&=32767,N=M;return}if(M=f.return,M!==null&&(M.flags|=32768,M.subtreeFlags=0,M.deletions=null),!Z&&(f=f.sibling,f!==null)){N=f;return}N=f=M}while(f!==null);sf=6,N=null}function Fc(f,Z,M,r,a,o,e,i,t){f.cancelPendingCommit=null;do re();while(yf!==0);if(($&6)!==0)throw Error(Y(327));if(Z!==null){if(Z===f.current)throw Error(Y(177));if(o=Z.lanes|Z.childLanes,o|=jt,Bg(f,M,o,e,i,t),f===af&&(N=af=null,I=0),VM=Z,A8=f,r8=M,Ei=o,ft=a,Wn=r,(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?(f.callbackNode=null,f.callbackPriority=0,db(go,function(){return On(),null})):(f.callbackNode=null,f.callbackPriority=0),r=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||r){r=_.T,_.T=null,a=P.p,P.p=2,e=$,$|=4;try{Pw(f,Z,M)}finally{$=e,P.p=a,_.T=r}}yf=1,_n(),Hn(),qn()}}function _n(){if(yf===1){yf=0;var f=A8,Z=VM,M=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||M){M=_.T,_.T=null;var r=P.p;P.p=2;var a=$;$|=4;try{xn(Z,f);var o=it,e=Mz(f.containerInfo),i=o.focusedElem,t=o.selectionRange;if(e!==i&&i&&i.ownerDocument&&Zz(i.ownerDocument.documentElement,i)){if(t!==null&&yt(i)){var{start:c,end:l}=t;if(l===void 0&&(l=c),"selectionStart"in i)i.selectionStart=c,i.selectionEnd=Math.min(l,i.value.length);else{var g=i.ownerDocument||document,s=g&&g.defaultView||window;if(s.getSelection){var z=s.getSelection(),u=i.textContent.length,k=Math.min(t.start,u),R=t.end===void 0?k:Math.min(t.end,u);!z.extend&&k>R&&(e=R,R=k,k=e);var n=zc(i,k),d=zc(i,R);if(n&&d&&(z.rangeCount!==1||z.anchorNode!==n.node||z.anchorOffset!==n.offset||z.focusNode!==d.node||z.focusOffset!==d.offset)){var b=g.createRange();b.setStart(n.node,n.offset),z.removeAllRanges(),k>R?(z.addRange(b),z.extend(d.node,d.offset)):(b.setEnd(d.node,d.offset),z.addRange(b))}}}}g=[];for(z=i;z=z.parentNode;)z.nodeType===1&&g.push({element:z,left:z.scrollLeft,top:z.scrollTop});typeof i.focus==="function"&&i.focus();for(i=0;i<g.length;i++){var m=g[i];m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}Ho=!!et,it=et=null}finally{$=a,P.p=r,_.T=M}}f.current=Z,yf=2}}function Hn(){if(yf===2){yf=0;var f=A8,Z=VM,M=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||M){M=_.T,_.T=null;var r=P.p;P.p=2;var a=$;$|=4;try{wn(f,Z.alternate,Z)}finally{$=a,P.p=r,_.T=M}}yf=3}}function qn(){if(yf===4||yf===3){yf=0,Ag();var f=A8,Z=VM,M=r8,r=Wn;(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?yf=5:(yf=0,VM=A8=null,Dn(f,f.pendingLanes));var a=f.pendingLanes;if(a===0&&(L8=null),ht(M),Z=Z.stateNode,oZ&&typeof oZ.onCommitFiberRoot==="function")try{oZ.onCommitFiberRoot(ta,Z,void 0,(Z.current.flags&128)===128)}catch(t){}if(r!==null){Z=_.T,a=P.p,P.p=2,_.T=null;try{for(var o=f.onRecoverableError,e=0;e<r.length;e++){var i=r[e];o(i.value,{componentStack:i.stack})}}finally{_.T=Z,P.p=a}}(r8&3)!==0&&re(),qZ(f),a=f.pendingLanes,(M&261930)!==0&&(a&42)!==0?f===Zt?Or++:(Or=0,Zt=f):Or=0,ga(0,!1)}}function Dn(f,Z){(f.pooledCacheLanes&=Z)===0&&(Z=f.pooledCache,Z!=null&&(f.pooledCache=null,na(Z)))}function re(){return _n(),Hn(),qn(),On()}function On(){if(yf!==5)return!1;var f=A8,Z=Ei;Ei=0;var M=ht(r8),r=_.T,a=P.p;try{P.p=32>M?32:M,_.T=null,M=ft,ft=null;var o=A8,e=r8;if(yf=0,VM=A8=null,r8=0,($&6)!==0)throw Error(Y(331));var i=$;if($|=4,jn(o.current),Yn(o,o.current,e,M),$=i,ga(0,!1),oZ&&typeof oZ.onPostCommitFiberRoot==="function")try{oZ.onPostCommitFiberRoot(ta,o)}catch(t){}return!0}finally{P.p=a,_.T=r,Dn(f,Z)}}function Nc(f,Z,M){Z=wZ(M,Z),Z=Si(f.stateNode,Z,2),f=j8(f,Z,2),f!==null&&(ca(f,2),qZ(f))}function ff(f,Z,M){if(f.tag===3)Nc(f,f,M);else for(;Z!==null;){if(Z.tag===3){Nc(Z,f,M);break}else if(Z.tag===1){var r=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof r.componentDidCatch==="function"&&(L8===null||!L8.has(r))){f=wZ(M,f),M=rn(2),r=j8(Z,M,2),r!==null&&(an(M,r,Z,f),ca(r,2),qZ(r));break}}Z=Z.return}}function zi(f,Z,M){var r=f.pingCache;if(r===null){r=f.pingCache=new Zb;var a=new Set;r.set(Z,a)}else a=r.get(Z),a===void 0&&(a=new Set,r.set(Z,a));a.has(M)||(fd=!0,a.add(M),f=eb.bind(null,f,Z,M),Z.then(f,f))}function eb(f,Z,M){var r=f.pingCache;r!==null&&r.delete(Z),f.pingedLanes|=f.suspendedLanes&M,f.warmLanes&=~M,af===f&&(I&M)===M&&(sf===4||sf===3&&(I&62914560)===I&&300>aZ()-fe?($&2)===0&&CM(f,0):Zd|=M,SM===I&&(SM=0)),qZ(f)}function Fn(f,Z){Z===0&&(Z=Rl()),f=lM(f,Z),f!==null&&(ca(f,Z),qZ(f))}function ib(f){var Z=f.memoizedState,M=0;Z!==null&&(M=Z.retryLane),Fn(f,M)}function tb(f,Z){var M=0;switch(f.tag){case 31:case 13:var{stateNode:r,memoizedState:a}=f;a!==null&&(M=a.retryLane);break;case 19:r=f.stateNode;break;case 22:r=f.stateNode._retryCache;break;default:throw Error(Y(314))}r!==null&&r.delete(Z),Fn(f,M)}function db(f,Z){return wt(f,Z)}function qZ(f){f!==mM&&f.next===null&&(mM===null?Go=mM=f:mM=mM.next=f),Ro=!0,Mt||(Mt=!0,lb())}function ga(f,Z){if(!ni&&Ro){ni=!0;do{var M=!1;for(var r=Go;r!==null;){if(!Z)if(f!==0){var a=r.pendingLanes;if(a===0)var o=0;else{var{suspendedLanes:e,pingedLanes:i}=r;o=(1<<31-eZ(42|f)+1)-1,o&=a&~(e&~i),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(M=!0,Tc(r,o))}else o=I,o=Oo(r,r===af?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||da(r,o)||(M=!0,Tc(r,o));r=r.next}}while(M);ni=!1}}function cb(){Nn()}function Nn(){Ro=Mt=!1;var f=0;u8!==0&&hb()&&(f=u8);for(var Z=aZ(),M=null,r=Go;r!==null;){var a=r.next,o=Tn(r,Z);if(o===0)r.next=null,M===null?Go=a:M.next=a,a===null&&(mM=M);else if(M=r,f!==0||(o&3)!==0)Ro=!0;r=a}yf!==0&&yf!==5||ga(f,!1),u8!==0&&(u8=0)}function Tn(f,Z){for(var{suspendedLanes:M,pingedLanes:r,expirationTimes:a}=f,o=f.pendingLanes&-62914561;0<o;){var e=31-eZ(o),i=1<<e,t=a[e];if(t===-1){if((i&M)===0||(i&r)!==0)a[e]=Qg(i,Z)}else t<=Z&&(f.expiredLanes|=i);o&=~i}if(Z=af,M=I,M=Oo(f,f===Z?M:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),r=f.callbackNode,M===0||f===Z&&(E===2||E===9)||f.cancelPendingCommit!==null)return r!==null&&r!==null&&Oe(r),f.callbackNode=null,f.callbackPriority=0;if((M&3)===0||da(f,M)){if(Z=M&-M,Z===f.callbackPriority)return Z;switch(r!==null&&Oe(r),ht(M)){case 2:case 8:M=Jl;break;case 32:M=go;break;case 268435456:M=Gl;break;default:M=go}return r=In.bind(null,f),M=wt(M,r),f.callbackPriority=Z,f.callbackNode=M,Z}return r!==null&&r!==null&&Oe(r),f.callbackPriority=2,f.callbackNode=null,2}function In(f,Z){if(yf!==0&&yf!==5)return f.callbackNode=null,f.callbackPriority=0,null;var M=f.callbackNode;if(re()&&f.callbackNode!==M)return null;var r=I;if(r=Oo(f,f===af?r:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),r===0)return null;return Jn(f,r,Z),Tn(f,aZ()),f.callbackNode!=null&&f.callbackNode===M?In.bind(null,f):null}function Tc(f,Z){if(re())return null;Jn(f,Z,!0)}function lb(){mb(function(){($&6)!==0?wt(Xl,cb):Nn()})}function rd(){if(u8===0){var f=NM;f===0&&(f=Qa,Qa<<=1,(Qa&261888)===0&&(Qa=256)),u8=f}return u8}function Ic(f){return f==null||typeof f==="symbol"||typeof f==="boolean"?null:typeof f==="function"?f:$a(""+f)}function Sc(f,Z){var M=Z.ownerDocument.createElement("input");return M.name=Z.name,M.value=Z.value,f.id&&M.setAttribute("form",f.id),Z.parentNode.insertBefore(M,Z),f=new FormData(f),M.parentNode.removeChild(M),f}function zb(f,Z,M,r,a){if(Z==="submit"&&M&&M.stateNode===a){var o=Ic((a[Pf]||null).action),e=r.submitter;e&&(Z=(Z=e[Pf]||null)?Ic(Z.formAction):e.getAttribute("formAction"),Z!==null&&(o=Z,e=null));var i=new Fo("action","action",null,r,a);f.push({event:i,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(u8!==0){var t=e?Sc(a,e):new FormData(a);Ti(M,{pending:!0,data:t,method:a.method,action:o},null,t)}}else typeof o==="function"&&(i.preventDefault(),t=e?Sc(a,e):new FormData(a),Ti(M,{pending:!0,data:t,method:a.method,action:o},o,t))},currentTarget:a}]})}}function Sn(f,Z){Z=(Z&4)!==0;for(var M=0;M<f.length;M++){var r=f[M],a=r.event;r=r.listeners;f:{var o=void 0;if(Z)for(var e=r.length-1;0<=e;e--){var i=r[e],t=i.instance,c=i.currentTarget;if(i=i.listener,t!==o&&a.isPropagationStopped())break f;o=i,a.currentTarget=c;try{o(a)}catch(l){bo(l)}a.currentTarget=null,o=t}else for(e=0;e<r.length;e++){if(i=r[e],t=i.instance,c=i.currentTarget,i=i.listener,t!==o&&a.isPropagationStopped())break f;o=i,a.currentTarget=c;try{o(a)}catch(l){bo(l)}a.currentTarget=null,o=t}}}}function F(f,Z){var M=Z[yi];M===void 0&&(M=Z[yi]=new Set);var r=f+"__bubble";M.has(r)||(Vn(Z,f,2,!1),M.add(r))}function vi(f,Z,M){var r=0;Z&&(r|=4),Vn(M,f,r,Z)}function ad(f){if(!f[Ia]){f[Ia]=!0,_l.forEach(function(M){M!=="selectionchange"&&(nb.has(M)||vi(M,!1,f),vi(M,!0,f))});var Z=f.nodeType===9?f:f.ownerDocument;Z===null||Z[Ia]||(Z[Ia]=!0,vi("selectionchange",!1,Z))}}function Vn(f,Z,M,r){switch(tv(Z)){case 2:var a=qb;break;case 8:a=Db;break;default:a=td}M=a.bind(null,Z,M,f),a=void 0,!Xi||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(a=!0),r?a!==void 0?f.addEventListener(Z,M,{capture:!0,passive:a}):f.addEventListener(Z,M,!0):a!==void 0?f.addEventListener(Z,M,{passive:a}):f.addEventListener(Z,M,!1)}function si(f,Z,M,r,a){var o=r;if((Z&1)===0&&(Z&2)===0&&r!==null)f:for(;;){if(r===null)return;var e=r.tag;if(e===3||e===4){var i=r.stateNode.containerInfo;if(i===a)break;if(e===4)for(e=r.return;e!==null;){var t=e.tag;if((t===3||t===4)&&e.stateNode.containerInfo===a)return;e=e.return}for(;i!==null;){if(e=kM(i),e===null)return;if(t=e.tag,t===5||t===6||t===26||t===27){r=o=e;continue f}i=i.parentNode}}r=r.return}Il(function(){var c=o,l=xt(M),g=[];f:{var s=tz.get(f);if(s!==void 0){var z=Fo,u=f;switch(f){case"keypress":if(Ea(M)===0)break f;case"keydown":case"keyup":z=tw;break;case"focusin":u="focus",z=Se;break;case"focusout":u="blur",z=Se;break;case"beforeblur":case"afterblur":z=Se;break;case"click":if(M.button===2)break f;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=lw;break;case az:case oz:case ez:z=Eg;break;case iz:z=nw;break;case"scroll":case"scrollend":z=Sg;break;case"wheel":z=sw;break;case"copy":case"cut":case"paste":z=Zw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=oc;break;case"toggle":case"beforetoggle":z=ww}var k=(Z&4)!==0,R=!k&&(f==="scroll"||f==="scrollend"),n=k?s!==null?s+"Capture":null:s;k=[];for(var d=c,b;d!==null;){var m=d;if(b=m.stateNode,m=m.tag,m!==5&&m!==26&&m!==27||b===null||n===null||(m=Tr(d,n),m!=null&&k.push(Za(d,m,b))),R)break;d=d.return}0<k.length&&(s=new z(s,u,null,M,l),g.push({event:s,listeners:k}))}}if((Z&7)===0){f:{if(s=f==="mouseover"||f==="pointerover",z=f==="mouseout"||f==="pointerout",s&&M!==Wi&&(u=M.relatedTarget||M.fromElement)&&(kM(u)||u[EM]))break f;if(z||s){if(s=l.window===l?l:(s=l.ownerDocument)?s.defaultView||s.parentWindow:window,z){if(u=M.relatedTarget||M.toElement,z=c,u=u?kM(u):null,u!==null&&(R=ia(u),k=u.tag,u!==R||k!==5&&k!==27&&k!==6))u=null}else z=null,u=c;if(z!==u){if(k=rc,m="onMouseLeave",n="onMouseEnter",d="mouse",f==="pointerout"||f==="pointerover")k=oc,m="onPointerLeave",n="onPointerEnter",d="pointer";if(R=z==null?s:kr(z),b=u==null?s:kr(u),s=new k(m,d+"leave",z,M,l),s.target=R,s.relatedTarget=b,m=null,kM(l)===c&&(k=new k(n,d+"enter",u,M,l),k.target=b,k.relatedTarget=R,m=k),R=m,z&&u)Z:{k=vb,n=z,d=u,b=0;for(m=n;m;m=k(m))b++;m=0;for(var x=d;x;x=k(x))m++;for(;0<b-m;)n=k(n),b--;for(;0<m-b;)d=k(d),m--;for(;b--;){if(n===d||d!==null&&n===d.alternate){k=n;break Z}n=k(n),d=k(d)}k=null}else k=null;z!==null&&Vc(g,s,z,k,!1),u!==null&&R!==null&&Vc(g,R,u,k,!0)}}}f:{if(s=c?kr(c):window,z=s.nodeName&&s.nodeName.toLowerCase(),z==="select"||z==="input"&&s.type==="file")var J=dc;else if(tc(s))if(El)J=jw;else{J=kw;var X=Yw}else z=s.nodeName,!z||z.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&mt(c.elementType)&&(J=dc):J=yw;if(J&&(J=J(f,c))){Pl(g,J,M,l);break f}X&&X(f,s,c),f==="focusout"&&c&&s.type==="number"&&c.memoizedProps.value!=null&&Ai(s,"number",s.value)}switch(X=c?kr(c):window,f){case"focusin":if(tc(X)||X.contentEditable==="true")LM=X,Ji=c,Rr=null;break;case"focusout":Rr=Ji=LM=null;break;case"mousedown":Gi=!0;break;case"contextmenu":case"mouseup":case"dragend":Gi=!1,nc(g,M,l);break;case"selectionchange":if(Aw)break;case"keydown":case"keyup":nc(g,M,l)}var Q;if(kt)f:{switch(f){case"compositionstart":var B="onCompositionStart";break f;case"compositionend":B="onCompositionEnd";break f;case"compositionupdate":B="onCompositionUpdate";break f}B=void 0}else jM?Cl(f,M)&&(B="onCompositionEnd"):f==="keydown"&&M.keyCode===229&&(B="onCompositionStart");if(B&&(Vl&&M.locale!=="ko"&&(jM||B!=="onCompositionStart"?B==="onCompositionEnd"&&jM&&(Q=Sl()):(p8=l,ut=("value"in p8)?p8.value:p8.textContent,jM=!0)),X=Uo(c,B),0<X.length&&(B=new ac(B,f,null,M,l),g.push({event:B,listeners:X}),Q?B.data=Q:(Q=$l(M),Q!==null&&(B.data=Q)))),Q=hw?pw(f,M):mw(f,M))B=Uo(c,"onBeforeInput"),0<B.length&&(X=new ac("onBeforeInput","beforeinput",null,M,l),g.push({event:X,listeners:B}),X.data=Q);zb(g,f,c,M,l)}Sn(g,Z)})}function Za(f,Z,M){return{instance:f,listener:Z,currentTarget:M}}function Uo(f,Z){for(var M=Z+"Capture",r=[];f!==null;){var a=f,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=Tr(f,M),a!=null&&r.unshift(Za(f,a,o)),a=Tr(f,Z),a!=null&&r.push(Za(f,a,o))),f.tag===3)return r;f=f.return}return[]}function vb(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5&&f.tag!==27);return f?f:null}function Vc(f,Z,M,r,a){for(var o=Z._reactName,e=[];M!==null&&M!==r;){var i=M,t=i.alternate,c=i.stateNode;if(i=i.tag,t!==null&&t===r)break;i!==5&&i!==26&&i!==27||c===null||(t=c,a?(c=Tr(M,o),c!=null&&e.unshift(Za(M,c,t))):a||(c=Tr(M,o),c!=null&&e.push(Za(M,c,t)))),M=M.return}e.length!==0&&f.push({event:Z,listeners:e})}function Cc(f){return(typeof f==="string"?f:""+f).replace(sb,`
9
- `).replace(gb,"")}function Cn(f,Z){return Z=Cc(Z),Cc(f)===Z?!0:!1}function Mf(f,Z,M,r,a,o){switch(M){case"children":typeof r==="string"?Z==="body"||Z==="textarea"&&r===""||FM(f,r):(typeof r==="number"||typeof r==="bigint")&&Z!=="body"&&FM(f,""+r);break;case"className":Ha(f,"class",r);break;case"tabIndex":Ha(f,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(f,M,r);break;case"style":Tl(f,r,o);break;case"data":if(Z!=="object"){Ha(f,"data",r);break}case"src":case"href":if(r===""&&(Z!=="a"||M!=="href")){f.removeAttribute(M);break}if(r==null||typeof r==="function"||typeof r==="symbol"||typeof r==="boolean"){f.removeAttribute(M);break}r=$a(""+r),f.setAttribute(M,r);break;case"action":case"formAction":if(typeof r==="function"){f.setAttribute(M,"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 o==="function"&&(M==="formAction"?(Z!=="input"&&Mf(f,Z,"name",a.name,a,null),Mf(f,Z,"formEncType",a.formEncType,a,null),Mf(f,Z,"formMethod",a.formMethod,a,null),Mf(f,Z,"formTarget",a.formTarget,a,null)):(Mf(f,Z,"encType",a.encType,a,null),Mf(f,Z,"method",a.method,a,null),Mf(f,Z,"target",a.target,a,null)));if(r==null||typeof r==="symbol"||typeof r==="boolean"){f.removeAttribute(M);break}r=$a(""+r),f.setAttribute(M,r);break;case"onClick":r!=null&&(f.onclick=EZ);break;case"onScroll":r!=null&&F("scroll",f);break;case"onScrollEnd":r!=null&&F("scrollend",f);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!=="object"||!("__html"in r))throw Error(Y(61));if(M=r.__html,M!=null){if(a.children!=null)throw Error(Y(60));f.innerHTML=M}}break;case"multiple":f.multiple=r&&typeof r!=="function"&&typeof r!=="symbol";break;case"muted":f.muted=r&&typeof r!=="function"&&typeof r!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r==="function"||typeof r==="boolean"||typeof r==="symbol"){f.removeAttribute("xlink:href");break}M=$a(""+r),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",M);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!=="function"&&typeof r!=="symbol"?f.setAttribute(M,""+r):f.removeAttribute(M);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":r&&typeof r!=="function"&&typeof r!=="symbol"?f.setAttribute(M,""):f.removeAttribute(M);break;case"capture":case"download":r===!0?f.setAttribute(M,""):r!==!1&&r!=null&&typeof r!=="function"&&typeof r!=="symbol"?f.setAttribute(M,r):f.removeAttribute(M);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&!isNaN(r)&&1<=r?f.setAttribute(M,r):f.removeAttribute(M);break;case"rowSpan":case"start":r==null||typeof r==="function"||typeof r==="symbol"||isNaN(r)?f.removeAttribute(M):f.setAttribute(M,r);break;case"popover":F("beforetoggle",f),F("toggle",f),Ca(f,"popover",r);break;case"xlinkActuate":NZ(f,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":NZ(f,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":NZ(f,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":NZ(f,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":NZ(f,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":NZ(f,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":NZ(f,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":NZ(f,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":NZ(f,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Ca(f,"is",r);break;case"innerText":case"textContent":break;default:if(!(2<M.length)||M[0]!=="o"&&M[0]!=="O"||M[1]!=="n"&&M[1]!=="N")M=Tg.get(M)||M,Ca(f,M,r)}}function ot(f,Z,M,r,a,o){switch(M){case"style":Tl(f,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!=="object"||!("__html"in r))throw Error(Y(61));if(M=r.__html,M!=null){if(a.children!=null)throw Error(Y(60));f.innerHTML=M}}break;case"children":typeof r==="string"?FM(f,r):(typeof r==="number"||typeof r==="bigint")&&FM(f,""+r);break;case"onScroll":r!=null&&F("scroll",f);break;case"onScrollEnd":r!=null&&F("scrollend",f);break;case"onClick":r!=null&&(f.onclick=EZ);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hl.hasOwnProperty(M))f:{if(M[0]==="o"&&M[1]==="n"&&(a=M.endsWith("Capture"),Z=M.slice(2,a?M.length-7:void 0),o=f[Pf]||null,o=o!=null?o[M]:null,typeof o==="function"&&f.removeEventListener(Z,o,a),typeof r==="function")){typeof o!=="function"&&o!==null&&(M in f?f[M]=null:f.hasAttribute(M)&&f.removeAttribute(M)),f.addEventListener(Z,r,a);break f}M in f?f[M]=r:r===!0?f.setAttribute(M,""):Ca(f,M,r)}}}function Kf(f,Z,M){switch(Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",f),F("load",f);var r=!1,a=!1,o;for(o in M)if(M.hasOwnProperty(o)){var e=M[o];if(e!=null)switch(o){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,Z));default:Mf(f,Z,o,e,M,null)}}a&&Mf(f,Z,"srcSet",M.srcSet,M,null),r&&Mf(f,Z,"src",M.src,M,null);return;case"input":F("invalid",f);var i=o=e=a=null,t=null,c=null;for(r in M)if(M.hasOwnProperty(r)){var l=M[r];if(l!=null)switch(r){case"name":a=l;break;case"type":e=l;break;case"checked":t=l;break;case"defaultChecked":c=l;break;case"value":o=l;break;case"defaultValue":i=l;break;case"children":case"dangerouslySetInnerHTML":if(l!=null)throw Error(Y(137,Z));break;default:Mf(f,Z,r,l,M,null)}}Ol(f,o,i,t,c,e,a,!1);return;case"select":F("invalid",f),r=e=o=null;for(a in M)if(M.hasOwnProperty(a)&&(i=M[a],i!=null))switch(a){case"value":o=i;break;case"defaultValue":e=i;break;case"multiple":r=i;default:Mf(f,Z,a,i,M,null)}Z=o,M=e,f.multiple=!!r,Z!=null?KM(f,!!r,Z,!1):M!=null&&KM(f,!!r,M,!0);return;case"textarea":F("invalid",f),o=a=r=null;for(e in M)if(M.hasOwnProperty(e)&&(i=M[e],i!=null))switch(e){case"value":r=i;break;case"defaultValue":a=i;break;case"children":o=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Y(91));break;default:Mf(f,Z,e,i,M,null)}Nl(f,r,a,o);return;case"option":for(t in M)if(M.hasOwnProperty(t)&&(r=M[t],r!=null))switch(t){case"selected":f.selected=r&&typeof r!=="function"&&typeof r!=="symbol";break;default:Mf(f,Z,t,r,M,null)}return;case"dialog":F("beforetoggle",f),F("toggle",f),F("cancel",f),F("close",f);break;case"iframe":case"object":F("load",f);break;case"video":case"audio":for(r=0;r<fa.length;r++)F(fa[r],f);break;case"image":F("error",f),F("load",f);break;case"details":F("toggle",f);break;case"embed":case"source":case"link":F("error",f),F("load",f);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in M)if(M.hasOwnProperty(c)&&(r=M[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,Z));default:Mf(f,Z,c,r,M,null)}return;default:if(mt(Z)){for(l in M)M.hasOwnProperty(l)&&(r=M[l],r!==void 0&&ot(f,Z,l,r,M,void 0));return}}for(i in M)M.hasOwnProperty(i)&&(r=M[i],r!=null&&Mf(f,Z,i,r,M,null))}function wb(f,Z,M,r){switch(Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,e=null,i=null,t=null,c=null,l=null;for(z in M){var g=M[z];if(M.hasOwnProperty(z)&&g!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":t=g;default:r.hasOwnProperty(z)||Mf(f,Z,z,null,r,g)}}for(var s in r){var z=r[s];if(g=M[s],r.hasOwnProperty(s)&&(z!=null||g!=null))switch(s){case"type":o=z;break;case"name":a=z;break;case"checked":c=z;break;case"defaultChecked":l=z;break;case"value":e=z;break;case"defaultValue":i=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(Y(137,Z));break;default:z!==g&&Mf(f,Z,s,z,r,g)}}Li(f,e,i,t,c,l,o,a);return;case"select":z=e=i=s=null;for(o in M)if(t=M[o],M.hasOwnProperty(o)&&t!=null)switch(o){case"value":break;case"multiple":z=t;default:r.hasOwnProperty(o)||Mf(f,Z,o,null,r,t)}for(a in r)if(o=r[a],t=M[a],r.hasOwnProperty(a)&&(o!=null||t!=null))switch(a){case"value":s=o;break;case"defaultValue":i=o;break;case"multiple":e=o;default:o!==t&&Mf(f,Z,a,o,r,t)}Z=i,M=e,r=z,s!=null?KM(f,!!M,s,!1):!!r!==!!M&&(Z!=null?KM(f,!!M,Z,!0):KM(f,!!M,M?[]:"",!1));return;case"textarea":z=s=null;for(i in M)if(a=M[i],M.hasOwnProperty(i)&&a!=null&&!r.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:Mf(f,Z,i,null,r,a)}for(e in r)if(a=r[e],o=M[e],r.hasOwnProperty(e)&&(a!=null||o!=null))switch(e){case"value":s=a;break;case"defaultValue":z=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(Y(91));break;default:a!==o&&Mf(f,Z,e,a,r,o)}Fl(f,s,z);return;case"option":for(var u in M)if(s=M[u],M.hasOwnProperty(u)&&s!=null&&!r.hasOwnProperty(u))switch(u){case"selected":f.selected=!1;break;default:Mf(f,Z,u,null,r,s)}for(t in r)if(s=r[t],z=M[t],r.hasOwnProperty(t)&&s!==z&&(s!=null||z!=null))switch(t){case"selected":f.selected=s&&typeof s!=="function"&&typeof s!=="symbol";break;default:Mf(f,Z,t,s,r,z)}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 M)s=M[k],M.hasOwnProperty(k)&&s!=null&&!r.hasOwnProperty(k)&&Mf(f,Z,k,null,r,s);for(c in r)if(s=r[c],z=M[c],r.hasOwnProperty(c)&&s!==z&&(s!=null||z!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(Y(137,Z));break;default:Mf(f,Z,c,s,r,z)}return;default:if(mt(Z)){for(var R in M)s=M[R],M.hasOwnProperty(R)&&s!==void 0&&!r.hasOwnProperty(R)&&ot(f,Z,R,void 0,r,s);for(l in r)s=r[l],z=M[l],!r.hasOwnProperty(l)||s===z||s===void 0&&z===void 0||ot(f,Z,l,s,r,z);return}}for(var n in M)s=M[n],M.hasOwnProperty(n)&&s!=null&&!r.hasOwnProperty(n)&&Mf(f,Z,n,null,r,s);for(g in r)s=r[g],z=M[g],!r.hasOwnProperty(g)||s===z||s==null&&z==null||Mf(f,Z,g,s,r,z)}function $c(f){switch(f){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bb(){if(typeof performance.getEntriesByType==="function"){for(var f=0,Z=0,M=performance.getEntriesByType("resource"),r=0;r<M.length;r++){var a=M[r],o=a.transferSize,e=a.initiatorType,i=a.duration;if(o&&i&&$c(e)){e=0,i=a.responseEnd;for(r+=1;r<M.length;r++){var t=M[r],c=t.startTime;if(c>i)break;var{transferSize:l,initiatorType:g}=t;l&&$c(g)&&(t=t.responseEnd,e+=l*(t<i?1:(i-c)/(t-c)))}if(--r,Z+=8*(o+e)/(a.duration/1000),f++,10<f)break}}if(0<f)return Z/f/1e6}return navigator.connection&&(f=navigator.connection.downlink,typeof f==="number")?f:5}function Ko(f){return f.nodeType===9?f:f.ownerDocument}function Pc(f){switch(f){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $n(f,Z){if(f===0)switch(Z){case"svg":return 1;case"math":return 2;default:return 0}return f===1&&Z==="foreignObject"?0:f}function tt(f,Z){return f==="textarea"||f==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function hb(){var f=window.event;if(f&&f.type==="popstate"){if(f===gi)return!1;return gi=f,!0}return gi=null,!1}function xb(f){setTimeout(function(){throw f})}function B8(f){return f==="head"}function fl(f,Z){var M=Z,r=0;do{var a=M.nextSibling;if(f.removeChild(M),a&&a.nodeType===8)if(M=a.data,M==="/$"||M==="/&"){if(r===0){f.removeChild(a),PM(Z);return}r--}else if(M==="$"||M==="$?"||M==="$~"||M==="$!"||M==="&")r++;else if(M==="html")Fr(f.ownerDocument.documentElement);else if(M==="head"){M=f.ownerDocument.head,Fr(M);for(var o=M.firstChild;o;){var{nextSibling:e,nodeName:i}=o;o[la]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&o.rel.toLowerCase()==="stylesheet"||M.removeChild(o),o=e}}else M==="body"&&Fr(f.ownerDocument.body);M=a}while(M);PM(Z)}function Zl(f,Z){var M=f;f=0;do{var r=M.nextSibling;if(M.nodeType===1?Z?(M._stashedDisplay=M.style.display,M.style.display="none"):(M.style.display=M._stashedDisplay||"",M.getAttribute("style")===""&&M.removeAttribute("style")):M.nodeType===3&&(Z?(M._stashedText=M.nodeValue,M.nodeValue=""):M.nodeValue=M._stashedText||""),r&&r.nodeType===8)if(M=r.data,M==="/$")if(f===0)break;else f--;else M!=="$"&&M!=="$?"&&M!=="$~"&&M!=="$!"||f++;M=r}while(M)}function dt(f){var Z=f.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var M=Z;switch(Z=Z.nextSibling,M.nodeName){case"HTML":case"HEAD":case"BODY":dt(M),pt(M);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(M.rel.toLowerCase()==="stylesheet")continue}f.removeChild(M)}}function ub(f,Z,M,r){for(;f.nodeType===1;){var a=M;if(f.nodeName.toLowerCase()!==Z.toLowerCase()){if(!r&&(f.nodeName!=="INPUT"||f.type!=="hidden"))break}else if(!r)if(Z==="input"&&f.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&f.getAttribute("name")===o)return f}else return f;else if(!f[la])switch(Z){case"meta":if(!f.hasAttribute("itemprop"))break;return f;case"link":if(o=f.getAttribute("rel"),o==="stylesheet"&&f.hasAttribute("data-precedence"))break;else if(o!==a.rel||f.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||f.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||f.getAttribute("title")!==(a.title==null?null:a.title))break;return f;case"style":if(f.hasAttribute("data-precedence"))break;return f;case"script":if(o=f.getAttribute("src"),(o!==(a.src==null?null:a.src)||f.getAttribute("type")!==(a.type==null?null:a.type)||f.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&f.hasAttribute("async")&&!f.hasAttribute("itemprop"))break;return f;default:return f}if(f=pZ(f.nextSibling),f===null)break}return null}function Yb(f,Z,M){if(Z==="")return null;for(;f.nodeType!==3;){if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!M)return null;if(f=pZ(f.nextSibling),f===null)return null}return f}function En(f,Z){for(;f.nodeType!==8;){if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!Z)return null;if(f=pZ(f.nextSibling),f===null)return null}return f}function ct(f){return f.data==="$?"||f.data==="$~"}function lt(f){return f.data==="$!"||f.data==="$?"&&f.ownerDocument.readyState!=="loading"}function kb(f,Z){var M=f.ownerDocument;if(f.data==="$~")f._reactRetry=Z;else if(f.data!=="$?"||M.readyState!=="loading")Z();else{var r=function(){Z(),M.removeEventListener("DOMContentLoaded",r)};M.addEventListener("DOMContentLoaded",r),f._reactRetry=r}}function pZ(f){for(;f!=null;f=f.nextSibling){var Z=f.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=f.data,Z==="$"||Z==="$!"||Z==="$?"||Z==="$~"||Z==="&"||Z==="F!"||Z==="F")break;if(Z==="/$"||Z==="/&")return null}}return f}function Ml(f){f=f.nextSibling;for(var Z=0;f;){if(f.nodeType===8){var M=f.data;if(M==="/$"||M==="/&"){if(Z===0)return pZ(f.nextSibling);Z--}else M!=="$"&&M!=="$!"&&M!=="$?"&&M!=="$~"&&M!=="&"||Z++}f=f.nextSibling}return null}function rl(f){f=f.previousSibling;for(var Z=0;f;){if(f.nodeType===8){var M=f.data;if(M==="$"||M==="$!"||M==="$?"||M==="$~"||M==="&"){if(Z===0)return f;Z--}else M!=="/$"&&M!=="/&"||Z++}f=f.previousSibling}return null}function fv(f,Z,M){switch(Z=Ko(M),f){case"html":if(f=Z.documentElement,!f)throw Error(Y(452));return f;case"head":if(f=Z.head,!f)throw Error(Y(453));return f;case"body":if(f=Z.body,!f)throw Error(Y(454));return f;default:throw Error(Y(451))}}function Fr(f){for(var Z=f.attributes;Z.length;)f.removeAttributeNode(Z[0]);pt(f)}function Qo(f){return typeof f.getRootNode==="function"?f.getRootNode():f.nodeType===9?f:f.ownerDocument}function yb(){var f=d8.f(),Z=Ze();return f||Z}function jb(f){var Z=fr(f);Z!==null&&Z.tag===5&&Z.type==="form"?Tz(Z):d8.r(f)}function Zv(f,Z,M){var r=ar;if(r&&typeof Z==="string"&&Z){var a=gZ(Z);a='link[rel="'+f+'"][href="'+a+'"]',typeof M==="string"&&(a+='[crossorigin="'+M+'"]'),al.has(a)||(al.add(a),f={rel:f,crossOrigin:M,href:Z},r.querySelector(a)===null&&(Z=r.createElement("link"),Kf(Z,"link",f),Af(Z),r.head.appendChild(Z)))}}function Lb(f){d8.D(f),Zv("dns-prefetch",f,null)}function Ab(f,Z){d8.C(f,Z),Zv("preconnect",f,Z)}function Wb(f,Z,M){d8.L(f,Z,M);var r=ar;if(r&&f&&Z){var a='link[rel="preload"][as="'+gZ(Z)+'"]';Z==="image"?M&&M.imageSrcSet?(a+='[imagesrcset="'+gZ(M.imageSrcSet)+'"]',typeof M.imageSizes==="string"&&(a+='[imagesizes="'+gZ(M.imageSizes)+'"]')):a+='[href="'+gZ(f)+'"]':a+='[href="'+gZ(f)+'"]';var o=a;switch(Z){case"style":o=$M(f);break;case"script":o=or(f)}mZ.has(o)||(f=df({rel:"preload",href:Z==="image"&&M&&M.imageSrcSet?void 0:f,as:Z},M),mZ.set(o,f),r.querySelector(a)!==null||Z==="style"&&r.querySelector(wa(o))||Z==="script"&&r.querySelector(ba(o))||(Z=r.createElement("link"),Kf(Z,"link",f),Af(Z),r.head.appendChild(Z)))}}function Xb(f,Z){d8.m(f,Z);var M=ar;if(M&&f){var r=Z&&typeof Z.as==="string"?Z.as:"script",a='link[rel="modulepreload"][as="'+gZ(r)+'"][href="'+gZ(f)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=or(f)}if(!mZ.has(o)&&(f=df({rel:"modulepreload",href:f},Z),mZ.set(o,f),M.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(M.querySelector(ba(o)))return}r=M.createElement("link"),Kf(r,"link",f),Af(r),M.head.appendChild(r)}}}function Jb(f,Z,M){d8.S(f,Z,M);var r=ar;if(r&&f){var a=UM(r).hoistableStyles,o=$M(f);Z=Z||"default";var e=a.get(o);if(!e){var i={loading:0,preload:null};if(e=r.querySelector(wa(o)))i.loading=5;else{f=df({rel:"stylesheet",href:f,"data-precedence":Z},M),(M=mZ.get(o))&&od(f,M);var t=e=r.createElement("link");Af(t),Kf(t,"link",f),t._p=new Promise(function(c,l){t.onload=c,t.onerror=l}),t.addEventListener("load",function(){i.loading|=1}),t.addEventListener("error",function(){i.loading|=2}),i.loading|=4,to(e,Z,r)}e={type:"stylesheet",instance:e,count:1,state:i},a.set(o,e)}}}function Gb(f,Z){d8.X(f,Z);var M=ar;if(M&&f){var r=UM(M).hoistableScripts,a=or(f),o=r.get(a);o||(o=M.querySelector(ba(a)),o||(f=df({src:f,async:!0},Z),(Z=mZ.get(a))&&ed(f,Z),o=M.createElement("script"),Af(o),Kf(o,"link",f),M.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}function Rb(f,Z){d8.M(f,Z);var M=ar;if(M&&f){var r=UM(M).hoistableScripts,a=or(f),o=r.get(a);o||(o=M.querySelector(ba(a)),o||(f=df({src:f,async:!0,type:"module"},Z),(Z=mZ.get(a))&&ed(f,Z),o=M.createElement("script"),Af(o),Kf(o,"link",f),M.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}function ol(f,Z,M,r){var a=(a=Y8.current)?Qo(a):null;if(!a)throw Error(Y(446));switch(f){case"meta":case"title":return null;case"style":return typeof M.precedence==="string"&&typeof M.href==="string"?(Z=$M(M.href),M=UM(a).hoistableStyles,r=M.get(Z),r||(r={type:"style",instance:null,count:0,state:null},M.set(Z,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(M.rel==="stylesheet"&&typeof M.href==="string"&&typeof M.precedence==="string"){f=$M(M.href);var o=UM(a).hoistableStyles,e=o.get(f);if(e||(a=a.ownerDocument||a,e={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(f,e),(o=a.querySelector(wa(f)))&&!o._p&&(e.instance=o,e.state.loading=5),mZ.has(f)||(M={rel:"preload",as:"style",href:M.href,crossOrigin:M.crossOrigin,integrity:M.integrity,media:M.media,hrefLang:M.hrefLang,referrerPolicy:M.referrerPolicy},mZ.set(f,M),o||Ub(a,f,M,e.state))),Z&&r===null)throw Error(Y(528,""));return e}if(Z&&r!==null)throw Error(Y(529,""));return null;case"script":return Z=M.async,M=M.src,typeof M==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(Z=or(M),M=UM(a).hoistableScripts,r=M.get(Z),r||(r={type:"script",instance:null,count:0,state:null},M.set(Z,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Y(444,f))}}function $M(f){return'href="'+gZ(f)+'"'}function wa(f){return'link[rel="stylesheet"]['+f+"]"}function Mv(f){return df({},f,{"data-precedence":f.precedence,precedence:null})}function Ub(f,Z,M,r){f.querySelector('link[rel="preload"][as="style"]['+Z+"]")?r.loading=1:(Z=f.createElement("link"),r.preload=Z,Z.addEventListener("load",function(){return r.loading|=1}),Z.addEventListener("error",function(){return r.loading|=2}),Kf(Z,"link",M),Af(Z),f.head.appendChild(Z))}function or(f){return'[src="'+gZ(f)+'"]'}function ba(f){return"script[async]"+f}function el(f,Z,M){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var r=f.querySelector('style[data-href~="'+gZ(M.href)+'"]');if(r)return Z.instance=r,Af(r),r;var a=df({},M,{"data-href":M.href,"data-precedence":M.precedence,href:null,precedence:null});return r=(f.ownerDocument||f).createElement("style"),Af(r),Kf(r,"style",a),to(r,M.precedence,f),Z.instance=r;case"stylesheet":a=$M(M.href);var o=f.querySelector(wa(a));if(o)return Z.state.loading|=4,Z.instance=o,Af(o),o;r=Mv(M),(a=mZ.get(a))&&od(r,a),o=(f.ownerDocument||f).createElement("link"),Af(o);var e=o;return e._p=new Promise(function(i,t){e.onload=i,e.onerror=t}),Kf(o,"link",r),Z.state.loading|=4,to(o,M.precedence,f),Z.instance=o;case"script":if(o=or(M.src),a=f.querySelector(ba(o)))return Z.instance=a,Af(a),a;if(r=M,a=mZ.get(o))r=df({},M),ed(r,a);return f=f.ownerDocument||f,a=f.createElement("script"),Af(a),Kf(a,"link",r),f.head.appendChild(a),Z.instance=a;case"void":return null;default:throw Error(Y(443,Z.type))}else Z.type==="stylesheet"&&(Z.state.loading&4)===0&&(r=Z.instance,Z.state.loading|=4,to(r,M.precedence,f));return Z.instance}function to(f,Z,M){for(var r=M.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,e=0;e<r.length;e++){var i=r[e];if(i.dataset.precedence===Z)o=i;else if(o!==a)break}o?o.parentNode.insertBefore(f,o.nextSibling):(Z=M.nodeType===9?M.head:M,Z.insertBefore(f,Z.firstChild))}function od(f,Z){f.crossOrigin==null&&(f.crossOrigin=Z.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=Z.referrerPolicy),f.title==null&&(f.title=Z.title)}function ed(f,Z){f.crossOrigin==null&&(f.crossOrigin=Z.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=Z.referrerPolicy),f.integrity==null&&(f.integrity=Z.integrity)}function il(f,Z,M){if(co===null){var r=new Map,a=co=new Map;a.set(M,r)}else a=co,r=a.get(M),r||(r=new Map,a.set(M,r));if(r.has(f))return r;r.set(f,null),M=M.getElementsByTagName(f);for(a=0;a<M.length;a++){var o=M[a];if(!(o[la]||o[Gf]||f==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var e=o.getAttribute(Z)||"";e=f+e;var i=r.get(e);i?i.push(o):r.set(e,[o])}}return r}function tl(f,Z,M){f=f.ownerDocument||f,f.head.insertBefore(M,Z==="title"?f.querySelector("head > title"):null)}function Kb(f,Z,M){if(M===1||Z.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href==="")break;return!0;case"link":if(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError)break;switch(Z.rel){case"stylesheet":return f=Z.disabled,typeof Z.precedence==="string"&&f==null;default:return!0}case"script":if(Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol"&&!Z.onLoad&&!Z.onError&&Z.src&&typeof Z.src==="string")return!0}return!1}function rv(f){return f.type==="stylesheet"&&(f.state.loading&3)===0?!1:!0}function Qb(f,Z,M,r){if(M.type==="stylesheet"&&(typeof r.media!=="string"||matchMedia(r.media).matches!==!1)&&(M.state.loading&4)===0){if(M.instance===null){var a=$M(r.href),o=Z.querySelector(wa(a));if(o){Z=o._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&(f.count++,f=Bo.bind(f),Z.then(f,f)),M.state.loading|=4,M.instance=o,Af(o);return}o=Z.ownerDocument||Z,r=Mv(r),(a=mZ.get(a))&&od(r,a),o=o.createElement("link"),Af(o);var e=o;e._p=new Promise(function(i,t){e.onload=i,e.onerror=t}),Kf(o,"link",r),M.instance=o}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(M,Z),(Z=M.state.preload)&&(M.state.loading&3)===0&&(f.count++,M=Bo.bind(f),Z.addEventListener("load",M),Z.addEventListener("error",M))}}function Bb(f,Z){return f.stylesheets&&f.count===0&&lo(f,f.stylesheets),0<f.count||0<f.imgCount?function(M){var r=setTimeout(function(){if(f.stylesheets&&lo(f,f.stylesheets),f.unsuspend){var o=f.unsuspend;f.unsuspend=null,o()}},60000+Z);0<f.imgBytes&&wi===0&&(wi=62500*bb());var a=setTimeout(function(){if(f.waitingForImages=!1,f.count===0&&(f.stylesheets&&lo(f,f.stylesheets),f.unsuspend)){var o=f.unsuspend;f.unsuspend=null,o()}},(f.imgBytes>wi?50:800)+Z);return f.unsuspend=M,function(){f.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Bo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lo(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}function lo(f,Z){f.stylesheets=null,f.unsuspend!==null&&(f.count++,_o=new Map,Z.forEach(_b,f),_o=null,Bo.call(f))}function _b(f,Z){if(!(Z.state.loading&4)){var M=_o.get(f);if(M)var r=M.get(null);else{M=new Map,_o.set(f,M);for(var a=f.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var e=a[o];if(e.nodeName==="LINK"||e.getAttribute("media")!=="not all")M.set(e.dataset.precedence,e),r=e}r&&M.set(null,r)}a=Z.instance,e=a.getAttribute("data-precedence"),o=M.get(e)||r,o===r&&M.set(null,a),M.set(e,a),this.count++,r=Bo.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(f=f.nodeType===9?f.head:f,f.insertBefore(a,f.firstChild)),Z.state.loading|=4}}function Hb(f,Z,M,r,a,o,e,i,t){this.tag=1,this.containerInfo=f,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=Fe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fe(0),this.hiddenUpdates=Fe(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=e,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=t,this.incompleteTransitions=new Map}function av(f,Z,M,r,a,o,e,i,t,c,l,g){return f=new Hb(f,Z,M,e,t,c,l,g,i),Z=1,o===!0&&(Z|=24),o=MZ(3,null,null,Z),f.current=o,o.stateNode=f,Z=Jt(),Z.refCount++,f.pooledCache=Z,Z.refCount++,o.memoizedState={element:r,isDehydrated:M,cache:Z},Ut(o),f}function ov(f){if(!f)return XM;return f=XM,f}function ev(f,Z,M,r,a,o){a=ov(a),r.context===null?r.context=a:r.pendingContext=a,r=y8(Z),r.payload={element:M},o=o===void 0?null:o,o!==null&&(r.callback=o),M=j8(f,r,Z),M!==null&&($f(M,f,Z),Kr(M,f,Z))}function dl(f,Z){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var M=f.retryLane;f.retryLane=M!==0&&M<Z?M:Z}}function id(f,Z){dl(f,Z),(f=f.alternate)&&dl(f,Z)}function iv(f){if(f.tag===13||f.tag===31){var Z=lM(f,67108864);Z!==null&&$f(Z,f,67108864),id(f,67108864)}}function cl(f){if(f.tag===13||f.tag===31){var Z=iZ();Z=bt(Z);var M=lM(f,Z);M!==null&&$f(M,f,Z),id(f,Z)}}function qb(f,Z,M,r){var a=_.T;_.T=null;var o=P.p;try{P.p=2,td(f,Z,M,r)}finally{P.p=o,_.T=a}}function Db(f,Z,M,r){var a=_.T;_.T=null;var o=P.p;try{P.p=8,td(f,Z,M,r)}finally{P.p=o,_.T=a}}function td(f,Z,M,r){if(Ho){var a=nt(r);if(a===null)si(f,Z,r,qo,M),ll(f,r);else if(Fb(a,f,Z,M,r))r.stopPropagation();else if(ll(f,r),Z&4&&-1<Ob.indexOf(f)){for(;a!==null;){var o=fr(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var e=S8(o.pendingLanes);if(e!==0){var i=o;i.pendingLanes|=2;for(i.entangledLanes|=2;e;){var t=1<<31-eZ(e);i.entanglements[1]|=t,e&=~t}qZ(o),($&6)===0&&(Wo=aZ()+500,ga(0,!1))}}break;case 31:case 13:i=lM(o,2),i!==null&&$f(i,o,2),Ze(),id(o,2)}if(o=nt(r),o===null&&si(f,Z,r,qo,M),o===a)break;a=o}a!==null&&r.stopPropagation()}else si(f,Z,r,null,M)}}function nt(f){return f=xt(f),dd(f)}function dd(f){if(qo=null,f=kM(f),f!==null){var Z=ia(f);if(Z===null)f=null;else{var M=Z.tag;if(M===13){if(f=yl(Z),f!==null)return f;f=null}else if(M===31){if(f=jl(Z),f!==null)return f;f=null}else if(M===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;f=null}else Z!==f&&(f=null)}}return qo=f,null}function tv(f){switch(f){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(Wg()){case Xl:return 2;case Jl:return 8;case go:case Xg:return 32;case Gl:return 268435456;default:return 32}default:return 32}}function ll(f,Z){switch(f){case"focusin":case"focusout":W8=null;break;case"dragenter":case"dragleave":X8=null;break;case"mouseover":case"mouseout":J8=null;break;case"pointerover":case"pointerout":ra.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":aa.delete(Z.pointerId)}}function xr(f,Z,M,r,a,o){if(f===null||f.nativeEvent!==o)return f={blockedOn:Z,domEventName:M,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},Z!==null&&(Z=fr(Z),Z!==null&&iv(Z)),f;return f.eventSystemFlags|=r,Z=f.targetContainers,a!==null&&Z.indexOf(a)===-1&&Z.push(a),f}function Fb(f,Z,M,r,a){switch(Z){case"focusin":return W8=xr(W8,f,Z,M,r,a),!0;case"dragenter":return X8=xr(X8,f,Z,M,r,a),!0;case"mouseover":return J8=xr(J8,f,Z,M,r,a),!0;case"pointerover":var o=a.pointerId;return ra.set(o,xr(ra.get(o)||null,f,Z,M,r,a)),!0;case"gotpointercapture":return o=a.pointerId,aa.set(o,xr(aa.get(o)||null,f,Z,M,r,a)),!0}return!1}function dv(f){var Z=kM(f.target);if(Z!==null){var M=ia(Z);if(M!==null){if(Z=M.tag,Z===13){if(Z=yl(M),Z!==null){f.blockedOn=Z,Cd(f.priority,function(){cl(M)});return}}else if(Z===31){if(Z=jl(M),Z!==null){f.blockedOn=Z,Cd(f.priority,function(){cl(M)});return}}else if(Z===3&&M.stateNode.current.memoizedState.isDehydrated){f.blockedOn=M.tag===3?M.stateNode.containerInfo:null;return}}}f.blockedOn=null}function zo(f){if(f.blockedOn!==null)return!1;for(var Z=f.targetContainers;0<Z.length;){var M=nt(f.nativeEvent);if(M===null){M=f.nativeEvent;var r=new M.constructor(M.type,M);Wi=r,M.target.dispatchEvent(r),Wi=null}else return Z=fr(M),Z!==null&&iv(Z),f.blockedOn=M,!1;Z.shift()}return!0}function zl(f,Z,M){zo(f)&&M.delete(Z)}function Nb(){vt=!1,W8!==null&&zo(W8)&&(W8=null),X8!==null&&zo(X8)&&(X8=null),J8!==null&&zo(J8)&&(J8=null),ra.forEach(zl),aa.forEach(zl)}function Sa(f,Z){f.blockedOn===Z&&(f.blockedOn=null,vt||(vt=!0,ea(oa,Nb)))}function nl(f){Va!==f&&(Va=f,ea(oa,function(){Va===f&&(Va=null);for(var Z=0;Z<f.length;Z+=3){var M=f[Z],r=f[Z+1],a=f[Z+2];if(typeof r!=="function")if(dd(r||M)===null)continue;else break;var o=fr(M);o!==null&&(f.splice(Z,3),Z-=3,Ti(o,{pending:!0,data:a,method:M.method,action:r},r,a))}}))}function PM(f){function Z(t){return Sa(t,f)}W8!==null&&Sa(W8,f),X8!==null&&Sa(X8,f),J8!==null&&Sa(J8,f),ra.forEach(Z),aa.forEach(Z);for(var M=0;M<b8.length;M++){var r=b8[M];r.blockedOn===f&&(r.blockedOn=null)}for(;0<b8.length&&(M=b8[0],M.blockedOn===null);)dv(M),M.blockedOn===null&&b8.shift();if(M=(f.ownerDocument||f).$$reactFormReplay,M!=null)for(r=0;r<M.length;r+=3){var a=M[r],o=M[r+1],e=a[Pf]||null;if(typeof o==="function")e||nl(M);else if(e){var i=null;if(o&&o.hasAttribute("formAction")){if(a=o,e=o[Pf]||null)i=e.formAction;else if(dd(a)!==null)continue}else i=e.action;typeof i==="function"?M[r+1]=i:(M.splice(r,3),r-=3),nl(M)}}}function cv(){function f(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(e){return a=e})},focusReset:"manual",scroll:"manual"})}function Z(){a!==null&&(a(),a=null),r||setTimeout(M,20)}function M(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var r=!1,a=null;return navigation.addEventListener("navigate",f),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(M,100),function(){r=!0,navigation.removeEventListener("navigate",f),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),a!==null&&(a(),a=null)}}}function cd(f){this._internalRoot=f}function ae(f){this._internalRoot=f}var Do,Yl,df,Yg,Ka,ur,uM,Al,bi,Wl,PZ,st,hi,pi,gt,n8,mi,kg,Id,yg,Yr,_,P,P8,ui,YM=-1,_Z,Nr,Y8,no,He,Sd,qe=!1,ki,wt,Oe,Lg,Ag,aZ,Wg,Xl,Jl,go,Xg,Gl,Jg,Gg,ta=null,oZ=null,eZ,Rg,Ug,Qa=256,Ba=262144,_a=4194304,Q8,Gf,Pf,EM,yi,_g,Hg,$d,la,_l,Hl,qg,Pd,Ed,Fg,Ng,Tg,Ig,Wi=null,yM=null,QM=null,Ne=!1,a8,Xi=!1,V8,p8=null,ut=null,Pa=null,dM,Fo,za,Sg,Te,Ie,br,No,rc,Vg,Cg,$g,Se,Pg,Eg,fw,Zw,Mw,ac,rw,aw,ow,iw,tw,dw,oc,cw,lw,zw,nw,vw,sw,gw,ww,bw,kt,Jr=null,hw,Vl,ec,ic=!1,jM=!1,xw,Gr=null,Ir=null,El=!1,yr,jr,fo,tZ,Aw,LM=null,Ji=null,Rr=null,Gi=!1,AM,Ve,rz,az,oz,ez,Ww,Xw,Jw,iz,tz,Ri,bo,zZ,WM=0,jt=0,XM,vc,JM,GM=0,po=null,Vr=0,vZ,sZ=0,G8=null,KZ=1,QZ="",Rf=null,tf=null,V=!1,k8=null,bZ=!1,Ui,Ki,zM=null,f8=null,Rw,Uw,Kw,uf,Ur=null,_i=0,NM=0,BM=null,bc,fM,Mr,Rt,Vo,xo,ZM=null,_M=null,$r=0,oM,bz,v8=!1,qi=!1,TM,uo,dZ,hZ=null,wf,o8=0,D=null,rf=null,mf=null,ko=!1,HM=!1,eM=!1,yo=0,Pr=0,qM=null,_w=0,Er,Pz,Vt,Ez,Ii,Ct,Yf=!1,Mi,$Z=!1,xf=!1,ci=!1,qc,Lf=null,cf=null,Vf=!1,LZ=null,Ar=8192,fb,Zb,$=0,af=null,N=null,I=0,E=0,fZ=null,m8=!1,rr=!1,fd=!1,t8=0,sf=0,K8=0,MM=0,Zd=0,rZ=0,SM=0,Dr=null,Cf=null,Pi=!1,fe=0,An=0,Wo=1/0,Xo=null,L8=null,yf=0,A8=null,VM=null,r8=0,Ei=0,ft=null,Wn=null,Or=0,Zt=null,Go=null,mM=null,Mt=!1,Ro=!1,ni=!1,u8=0,Xr,rt,at,Wr,fa,nb,Ia,sb,gb,et=null,it=null,gi=null,Pn,pb,Ec,mb,zt=null,mZ,al,d8,ar,co=null,wi=0,_o=null,Ma,Ho=!0,qo=null,vt=!1,W8=null,X8=null,J8=null,ra,aa,b8,Ob,Va=null,vl,Tb,xM,lv=function(f,Z){if(!kl(f))throw Error(Y(299));var M=!1,r="",a=fn,o=Zn,e=Mn;return Z!==null&&Z!==void 0&&(Z.unstable_strictMode===!0&&(M=!0),Z.identifierPrefix!==void 0&&(r=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(a=Z.onUncaughtError),Z.onCaughtError!==void 0&&(o=Z.onCaughtError),Z.onRecoverableError!==void 0&&(e=Z.onRecoverableError)),Z=av(f,1,!1,null,null,M,r,null,a,o,e,cv),f[EM]=Z.current,ad(f),new cd(Z)},zv=function(f,Z,M){if(!kl(f))throw Error(Y(299));var r=!1,a="",o=fn,e=Zn,i=Mn,t=null;return M!==null&&M!==void 0&&(M.unstable_strictMode===!0&&(r=!0),M.identifierPrefix!==void 0&&(a=M.identifierPrefix),M.onUncaughtError!==void 0&&(o=M.onUncaughtError),M.onCaughtError!==void 0&&(e=M.onCaughtError),M.onRecoverableError!==void 0&&(i=M.onRecoverableError),M.formState!==void 0&&(t=M.formState)),Z=av(f,1,!0,Z,M!=null?M:null,r,a,t,o,e,i,cv),Z.context=ov(null),M=Z.current,r=iZ(),r=bt(r),a=y8(r),a.callback=null,j8(M,a,r),M=r,Z.current.lanes=M,ca(Z,M),qZ(Z),f[EM]=Z.current,ad(f),new ae(Z)},nv="19.2.0";var vv=pg(()=>{xg();Do=Qf(Nf(),1),Yl=Qf(mg(),1);df=Object.assign,Yg=Symbol.for("react.element"),Ka=Symbol.for("react.transitional.element"),ur=Symbol.for("react.portal"),uM=Symbol.for("react.fragment"),Al=Symbol.for("react.strict_mode"),bi=Symbol.for("react.profiler"),Wl=Symbol.for("react.consumer"),PZ=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),hi=Symbol.for("react.suspense"),pi=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),n8=Symbol.for("react.lazy"),mi=Symbol.for("react.activity"),kg=Symbol.for("react.memo_cache_sentinel"),Id=Symbol.iterator;yg=Symbol.for("react.client.reference");Yr=Array.isArray,_=Do.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Yl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P8={pending:!1,data:null,method:null,action:null},ui=[];_Z=HZ(null),Nr=HZ(null),Y8=HZ(null),no=HZ(null);ki=Object.prototype.hasOwnProperty,wt=ea,Oe=pl,Lg=ul,Ag=xl,aZ=sl,Wg=ml,Xl=wl,Jl=hl,go=oa,Xg=bl,Gl=gl,Jg=void 0,Gg=void 0;eZ=Math.clz32?Math.clz32:Kg,Rg=Math.log,Ug=Math.LN2;Q8=Math.random().toString(36).slice(2),Gf="__reactFiber$"+Q8,Pf="__reactProps$"+Q8,EM="__reactContainer$"+Q8,yi="__reactEvents$"+Q8,_g="__reactListeners$"+Q8,Hg="__reactHandles$"+Q8,$d="__reactResources$"+Q8,la="__reactMarker$"+Q8;_l=new Set,Hl={};qg=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]*$"),Pd={},Ed={};Fg=/[\n"\\]/g;Ng=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(" "));Tg=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"]]),Ig=/^[\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;a8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u");if(a8)try{V8={},Object.defineProperty(V8,"passive",{get:function(){Xi=!0}}),window.addEventListener("test",V8,V8),window.removeEventListener("test",V8,V8)}catch(f){Xi=!1}dM={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fo=Ef(dM),za=df({},dM,{view:0,detail:0}),Sg=Ef(za),No=df({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yt,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){if("movementX"in f)return f.movementX;return f!==br&&(br&&f.type==="mousemove"?(Te=f.screenX-br.screenX,Ie=f.screenY-br.screenY):Ie=Te=0,br=f),Te},movementY:function(f){return"movementY"in f?f.movementY:Ie}}),rc=Ef(No),Vg=df({},No,{dataTransfer:0}),Cg=Ef(Vg),$g=df({},za,{relatedTarget:0}),Se=Ef($g),Pg=df({},dM,{animationName:0,elapsedTime:0,pseudoElement:0}),Eg=Ef(Pg),fw=df({},dM,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),Zw=Ef(fw),Mw=df({},dM,{data:0}),ac=Ef(Mw),rw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aw={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"},ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};iw=df({},za,{key:function(f){if(f.key){var Z=rw[f.key]||f.key;if(Z!=="Unidentified")return Z}return f.type==="keypress"?(f=Ea(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?aw[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yt,charCode:function(f){return f.type==="keypress"?Ea(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?Ea(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),tw=Ef(iw),dw=df({},No,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=Ef(dw),cw=df({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yt}),lw=Ef(cw),zw=df({},dM,{propertyName:0,elapsedTime:0,pseudoElement:0}),nw=Ef(zw),vw=df({},No,{deltaX:function(f){return"deltaX"in f?f.deltaX:("wheelDeltaX"in f)?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:("wheelDeltaY"in f)?-f.wheelDeltaY:("wheelDelta"in f)?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),sw=Ef(vw),gw=df({},dM,{newState:0,oldState:0}),ww=Ef(gw),bw=[9,13,27,32],kt=a8&&"CompositionEvent"in window;a8&&"documentMode"in document&&(Jr=document.documentMode);hw=a8&&"TextEvent"in window&&!Jr,Vl=a8&&(!kt||Jr&&8<Jr&&11>=Jr),ec=String.fromCharCode(32);xw={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};if(a8){if(a8){if(jr="oninput"in document,!jr)fo=document.createElement("div"),fo.setAttribute("oninput","return;"),jr=typeof fo.oninput==="function";yr=jr}else yr=!1;El=yr&&(!document.documentMode||9<document.documentMode)}tZ=typeof Object.is==="function"?Object.is:Lw;Aw=a8&&"documentMode"in document&&11>=document.documentMode;AM={animationend:T8("Animation","AnimationEnd"),animationiteration:T8("Animation","AnimationIteration"),animationstart:T8("Animation","AnimationStart"),transitionrun:T8("Transition","TransitionRun"),transitionstart:T8("Transition","TransitionStart"),transitioncancel:T8("Transition","TransitionCancel"),transitionend:T8("Transition","TransitionEnd")},Ve={},rz={};a8&&(rz=document.createElement("div").style,("AnimationEvent"in window)||(delete AM.animationend.animation,delete AM.animationiteration.animation,delete AM.animationstart.animation),("TransitionEvent"in window)||delete AM.transitionend.transition);az=cM("animationend"),oz=cM("animationiteration"),ez=cM("animationstart"),Ww=cM("transitionrun"),Xw=cM("transitionstart"),Jw=cM("transitioncancel"),iz=cM("transitionend"),tz=new Map,Ri="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(" ");Ri.push("scrollEnd");bo=typeof reportError==="function"?reportError:function(f){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",f);return}console.error(f)},zZ=[];XM={};vc=new WeakMap;JM=[],vZ=[];Ui=Error(Y(519));Ki=HZ(null);Rw=typeof AbortController<"u"?AbortController:function(){var f=[],Z=this.signal={aborted:!1,addEventListener:function(M,r){f.push(r)}};this.abort=function(){Z.aborted=!0,f.forEach(function(M){return M()})}},Uw=ea,Kw=oa,uf={$$typeof:PZ,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};bc=_.S;_.S=function(f,Z){An=aZ(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"&&Qw(f,Z),bc!==null&&bc(f,Z)};fM=HZ(null);Mr=Error(Y(460)),Rt=Error(Y(474)),Vo=Error(Y(542)),xo={then:function(){}};oM=wz(!0),bz=wz(!1);TM=HZ(null),uo=HZ(0);dZ=HZ(null);wf=HZ(0);Er={readContext:Uf,use:$o,useCallback:vf,useContext:vf,useEffect:vf,useImperativeHandle:vf,useLayoutEffect:vf,useInsertionEffect:vf,useMemo:vf,useReducer:vf,useRef:vf,useState:vf,useDebugValue:vf,useDeferredValue:vf,useTransition:vf,useSyncExternalStore:vf,useId:vf,useHostTransitionStatus:vf,useFormState:vf,useActionState:vf,useOptimistic:vf,useMemoCache:vf,useCacheRefresh:vf};Er.useEffectEvent=vf;Pz={readContext:Uf,use:$o,useCallback:function(f,Z){return Ff().memoizedState=[f,Z===void 0?null:Z],f},useContext:Uf,useEffect:Lc,useImperativeHandle:function(f,Z,M){M=M!==null&&M!==void 0?M.concat([f]):null,ao(4194308,4,_z.bind(null,Z,f),M)},useLayoutEffect:function(f,Z){return ao(4194308,4,f,Z)},useInsertionEffect:function(f,Z){ao(4,2,f,Z)},useMemo:function(f,Z){var M=Ff();Z=Z===void 0?null:Z;var r=f();if(eM){h8(!0);try{f()}finally{h8(!1)}}return M.memoizedState=[r,Z],r},useReducer:function(f,Z,M){var r=Ff();if(M!==void 0){var a=M(Z);if(eM){h8(!0);try{M(Z)}finally{h8(!1)}}}else a=Z;return r.memoizedState=r.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:a},r.queue=f,f=f.dispatch=Tw.bind(null,D,f),[r.memoizedState,f]},useRef:function(f){var Z=Ff();return f={current:f},Z.memoizedState=f},useState:function(f){f=Fi(f);var Z=f.queue,M=Vz.bind(null,D,Z);return Z.dispatch=M,[f.memoizedState,M]},useDebugValue:Nt,useDeferredValue:function(f,Z){var M=Ff();return Tt(M,f,Z)},useTransition:function(){var f=Fi(!1);return f=Fz.bind(null,D,f.queue,!0,!1),Ff().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,Z,M){var r=D,a=Ff();if(V){if(M===void 0)throw Error(Y(407));M=M()}else{if(M=Z(),af===null)throw Error(Y(349));(I&127)!==0||kz(r,Z,M)}a.memoizedState=M;var o={value:M,getSnapshot:Z};return a.queue=o,Lc(jz.bind(null,r,o,f),[f]),r.flags|=2048,IM(9,{destroy:void 0},yz.bind(null,r,o,M,Z),null),M},useId:function(){var f=Ff(),Z=af.identifierPrefix;if(V){var M=QZ,r=KZ;M=(r&~(1<<32-eZ(r)-1)).toString(32)+M,Z="_"+Z+"R_"+M,M=yo++,0<M&&(Z+="H"+M.toString(32)),Z+="_"}else M=_w++,Z="_"+Z+"r_"+M.toString(32)+"_";return f.memoizedState=Z},useHostTransitionStatus:It,useFormState:kc,useActionState:kc,useOptimistic:function(f){var Z=Ff();Z.memoizedState=Z.baseState=f;var M={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=M,Z=St.bind(null,D,!0,M),M.dispatch=Z,[f,Z]},useMemoCache:Dt,useCacheRefresh:function(){return Ff().memoizedState=Nw.bind(null,D)},useEffectEvent:function(f){var Z=Ff(),M={impl:f};return Z.memoizedState=M,function(){if(($&2)!==0)throw Error(Y(440));return M.impl.apply(void 0,arguments)}}},Vt={readContext:Uf,use:$o,useCallback:qz,useContext:Uf,useEffect:Ft,useImperativeHandle:Hz,useInsertionEffect:Qz,useLayoutEffect:Bz,useMemo:Dz,useReducer:ro,useRef:Uz,useState:function(){return ro(e8)},useDebugValue:Nt,useDeferredValue:function(f,Z){var M=bf();return Oz(M,rf.memoizedState,f,Z)},useTransition:function(){var f=ro(e8)[0],Z=bf().memoizedState;return[typeof f==="boolean"?f:va(f),Z]},useSyncExternalStore:Yz,useId:Iz,useHostTransitionStatus:It,useFormState:yc,useActionState:yc,useOptimistic:function(f,Z){var M=bf();return Wz(M,rf,f,Z)},useMemoCache:Dt,useCacheRefresh:Sz};Vt.useEffectEvent=Kz;Ez={readContext:Uf,use:$o,useCallback:qz,useContext:Uf,useEffect:Ft,useImperativeHandle:Hz,useInsertionEffect:Qz,useLayoutEffect:Bz,useMemo:Dz,useReducer:fi,useRef:Uz,useState:function(){return fi(e8)},useDebugValue:Nt,useDeferredValue:function(f,Z){var M=bf();return rf===null?Tt(M,f,Z):Oz(M,rf.memoizedState,f,Z)},useTransition:function(){var f=fi(e8)[0],Z=bf().memoizedState;return[typeof f==="boolean"?f:va(f),Z]},useSyncExternalStore:Yz,useId:Iz,useHostTransitionStatus:It,useFormState:jc,useActionState:jc,useOptimistic:function(f,Z){var M=bf();if(rf!==null)return Wz(M,rf,f,Z);return M.baseState=f,[f,M.queue.dispatch]},useMemoCache:Dt,useCacheRefresh:Sz};Ez.useEffectEvent=Kz;Ii={enqueueSetState:function(f,Z,M){f=f._reactInternals;var r=iZ(),a=y8(r);a.payload=Z,M!==void 0&&M!==null&&(a.callback=M),Z=j8(f,a,r),Z!==null&&($f(Z,f,r),Kr(Z,f,r))},enqueueReplaceState:function(f,Z,M){f=f._reactInternals;var r=iZ(),a=y8(r);a.tag=1,a.payload=Z,M!==void 0&&M!==null&&(a.callback=M),Z=j8(f,a,r),Z!==null&&($f(Z,f,r),Kr(Z,f,r))},enqueueForceUpdate:function(f,Z){f=f._reactInternals;var M=iZ(),r=y8(M);r.tag=2,Z!==void 0&&Z!==null&&(r.callback=Z),Z=j8(f,r,M),Z!==null&&($f(Z,f,M),Kr(Z,f,M))}};Ct=Error(Y(461));Mi={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};qc=typeof WeakSet==="function"?WeakSet:Set;fb={getCacheForType:function(f){var Z=Uf(uf),M=Z.data.get(f);return M===void 0&&(M=f(),Z.data.set(f,M)),M},cacheSignal:function(){return Uf(uf).controller.signal}},Zb=typeof WeakMap==="function"?WeakMap:Map;for(Wr=0;Wr<Ri.length;Wr++)Xr=Ri[Wr],rt=Xr.toLowerCase(),at=Xr[0].toUpperCase()+Xr.slice(1),AZ(rt,"on"+at);AZ(az,"onAnimationEnd");AZ(oz,"onAnimationIteration");AZ(ez,"onAnimationStart");AZ("dblclick","onDoubleClick");AZ("focusin","onFocus");AZ("focusout","onBlur");AZ(Ww,"onTransitionRun");AZ(Xw,"onTransitionStart");AZ(Jw,"onTransitionCancel");AZ(iz,"onTransitionEnd");OM("onMouseEnter",["mouseout","mouseover"]);OM("onMouseLeave",["mouseout","mouseover"]);OM("onPointerEnter",["pointerout","pointerover"]);OM("onPointerLeave",["pointerout","pointerover"]);tM("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tM("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tM("onBeforeInput",["compositionend","keypress","textInput","paste"]);tM("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tM("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tM("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));fa="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(" "),nb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fa));Ia="_reactListening"+Math.random().toString(36).slice(2);sb=/\r\n?/g,gb=/\u0000|\uFFFD/g;Pn=typeof setTimeout==="function"?setTimeout:void 0,pb=typeof clearTimeout==="function"?clearTimeout:void 0,Ec=typeof Promise==="function"?Promise:void 0,mb=typeof queueMicrotask==="function"?queueMicrotask:typeof Ec<"u"?function(f){return Ec.resolve(null).then(f).catch(xb)}:Pn;mZ=new Map,al=new Set;d8=P.d;P.d={f:yb,r:jb,D:Lb,C:Ab,L:Wb,m:Xb,X:Gb,S:Jb,M:Rb};ar=typeof document>"u"?null:document;Ma={$$typeof:PZ,Provider:null,Consumer:null,_currentValue:P8,_currentValue2:P8,_threadCount:0};ra=new Map,aa=new Map,b8=[],Ob="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(" ");ae.prototype.render=cd.prototype.render=function(f){var Z=this._internalRoot;if(Z===null)throw Error(Y(409));var M=Z.current,r=iZ();ev(M,r,f,Z,null,null)};ae.prototype.unmount=cd.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var Z=f.containerInfo;ev(f.current,2,null,f,null,null),Ze(),Z[EM]=null}};ae.prototype.unstable_scheduleHydration=function(f){if(f){var Z=Bl();f={blockedOn:null,target:f,priority:Z};for(var M=0;M<b8.length&&Z!==0&&Z<b8[M].priority;M++);b8.splice(M,0,f),M===0&&dv(f)}};vl=Do.version;if(vl!=="19.2.0")throw Error(Y(527,vl,"19.2.0"));P.findDOMNode=function(f){var Z=f._reactInternals;if(Z===void 0){if(typeof f.render==="function")throw Error(Y(188));throw f=Object.keys(f).join(","),Error(Y(268,f))}return f=ug(Z),f=f!==null?Ll(f):null,f=f===null?null:f.stateNode,f};Tb={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(xM=__REACT_DEVTOOLS_GLOBAL_HOOK__,!xM.isDisabled&&xM.supportsFiber)try{ta=xM.inject(Tb),oZ=xM}catch(f){}}});var wv=Vb((Km,gv)=>{vv();function sv(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sv)}catch(f){console.error(f)}}sv(),gv.exports=ld});var ig=Qf(Nf(),1),tg=Qf(wv(),1);var _8=Qf(Nf(),1);var Cb={theme:"system",setTheme:()=>null},bv=_8.createContext(Cb);function hv({children:f,defaultTheme:Z="system",storageKey:M="vite-ui-theme",...r}){let[a,o]=_8.useState(()=>localStorage.getItem(M)||Z);_8.useEffect(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),a==="system"){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(t);return}i.classList.add(a)},[a]);let e={theme:a,setTheme:(i)=>{localStorage.setItem(M,i),o(i)}};return w(bv.Provider,{...r,value:e,children:f})}var pv=()=>{let f=_8.useContext(bv);if(f===void 0)throw Error("useTheme must be used within a ThemeProvider");return f};var O8=Qf(Nf(),1);var oe=Object.create(null),ha=(f)=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(f?oe:globalThis),c8=new Proxy(oe,{get(f,Z){return ha()[Z]??oe[Z]},has(f,Z){return Z in ha()||Z in oe},set(f,Z,M){let r=ha(!0);return r[Z]=M,!0},deleteProperty(f,Z){if(!Z)return!1;let M=ha(!0);return delete M[Z],!0},ownKeys(){let f=ha(!0);return Object.keys(f)}});var $b=typeof process<"u"&&process.env&&"production"||"";function H8(f,Z){if(typeof process<"u"&&process.env)return process.env[f]??Z;if(typeof Deno<"u")return Deno.env.get(f)??Z;if(typeof Bun<"u")return Bun.env[f]??Z;return Z}var Pb=Object.freeze({get BETTER_AUTH_SECRET(){return H8("BETTER_AUTH_SECRET")},get AUTH_SECRET(){return H8("AUTH_SECRET")},get BETTER_AUTH_TELEMETRY(){return H8("BETTER_AUTH_TELEMETRY")},get BETTER_AUTH_TELEMETRY_ID(){return H8("BETTER_AUTH_TELEMETRY_ID")},get NODE_ENV(){return H8("NODE_ENV","development")},get PACKAGE_VERSION(){return H8("PACKAGE_VERSION","0.0.0")},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return H8("BETTER_AUTH_TELEMETRY_ENDPOINT","")}});function Eb(){let f=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(f===void 0)return Object.isExtensible(Error);return Object.prototype.hasOwnProperty.call(f,"writable")?f.writable:f.set!==void 0}function fh(f){let Z=f.split(`
10
- at `);if(Z.length<=1)return f;return Z.splice(1,1),Z.join(`
11
- at `)}function Zh(f,Z){class M extends f{#f;constructor(...r){if(Eb()){let o=Error.stackTraceLimit;Error.stackTraceLimit=0;super(...r);Error.stackTraceLimit=o}else super(...r);let a=Error().stack;if(a)this.#f=fh(a.replace(/^Error/,this.name))}get errorStack(){return this.#f}}return Object.defineProperty(M.prototype,"constructor",{get(){return Z},enumerable:!1,configurable:!0}),M}var Mh={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},rh=class extends Error{constructor(f="INTERNAL_SERVER_ERROR",Z=void 0,M={},r=typeof f==="number"?f:Mh[f]){super(Z?.message,Z?.cause?{cause:Z.cause}:void 0);this.status=f,this.body=Z,this.headers=M,this.statusCode=r,this.name="APIError",this.status=f,this.headers=M,this.statusCode=r,this.body=Z}};var ah=Zh(rh,Error);var er=class extends Error{constructor(f,Z){super(f,Z);this.name="BetterAuthError",this.message=f,this.stack=""}};function oh(f){try{return(new URL(f).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new er(`Invalid base URL: ${f}. Please provide a valid base URL.`)}}function eh(f){try{let Z=new URL(f);if(Z.protocol!=="http:"&&Z.protocol!=="https:")throw new er(`Invalid base URL: ${f}. URL must include 'http://' or 'https://'`)}catch(Z){if(Z instanceof er)throw Z;throw new er(`Invalid base URL: ${f}. Please provide a valid base URL.`,{cause:Z})}}function pa(f,Z="/api/auth"){if(eh(f),oh(f))return f;let M=f.replace(/\/+$/,"");if(!Z||Z==="/")return M;return Z=Z.startsWith("/")?Z:`/${Z}`,`${M}${Z}`}function mv(f,Z){if(!f||f.trim()==="")return!1;if(Z==="proto")return f==="http"||f==="https";if(Z==="host"){if([/\.\./,/\0/,/[\s]/,/^[.]/,/[<>'"]/,/javascript:/i,/file:/i,/data:/i].some((M)=>M.test(f)))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(f)||/^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(f)||/^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(f)||/^localhost(:[0-9]{1,5})?$/i.test(f)}return!1}function xv(f,Z,M,r,a){if(f)return pa(f,Z);if(r!==!1){let i=c8.BETTER_AUTH_URL||c8.NEXT_PUBLIC_BETTER_AUTH_URL||c8.PUBLIC_BETTER_AUTH_URL||c8.NUXT_PUBLIC_BETTER_AUTH_URL||c8.NUXT_PUBLIC_AUTH_URL||(c8.BASE_URL!=="/"?c8.BASE_URL:void 0);if(i)return pa(i,Z)}let o=M?.headers.get("x-forwarded-host"),e=M?.headers.get("x-forwarded-proto");if(o&&e&&a){if(mv(e,"proto")&&mv(o,"host"))try{return pa(`${e}://${o}`,Z)}catch(i){}}if(M){let i=ih(M.url);if(!i)throw new er("Could not get origin from request. Please provide a valid base URL.");return pa(i,Z)}if(typeof window<"u"&&window.location)return pa(window.location.origin,Z)}function ih(f){try{let Z=new URL(f);return Z.origin==="null"?null:Z.origin}catch{return null}}var th={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*:/},dh=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,uv={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},ch=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function lh(f){return f instanceof Date&&!isNaN(f.getTime())}function zh(f){let Z=ch.exec(f);if(!Z)return null;let[,M,r,a,o,e,i,t,c,l,g]=Z,s=new Date(Date.UTC(parseInt(M,10),parseInt(r,10)-1,parseInt(a,10),parseInt(o,10),parseInt(e,10),parseInt(i,10),t?parseInt(t.padEnd(3,"0"),10):0));if(c){let z=(parseInt(l,10)*60+parseInt(g,10))*(c==="+"?-1:1);s.setUTCMinutes(s.getUTCMinutes()+z)}return lh(s)?s:null}function nh(f,Z={}){let{strict:M=!1,warnings:r=!1,reviver:a,parseDates:o=!0}=Z;if(typeof f!=="string")return f;let e=f.trim();if(e.length>0&&e[0]==='"'&&e.endsWith('"')&&!e.slice(1,-1).includes('"'))return e.slice(1,-1);let i=e.toLowerCase();if(i.length<=9&&i in uv)return uv[i];if(!dh.test(e)){if(M)throw SyntaxError("[better-json] Invalid JSON");return f}if(Object.entries(th).some(([t,c])=>{let l=c.test(e);if(l&&r)console.warn(`[better-json] Detected potential prototype pollution attempt using ${t} pattern`);return l})&&M)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(e,(c,l)=>{if(c==="__proto__"||c==="constructor"&&l&&typeof l==="object"&&"prototype"in l){if(r)console.warn(`[better-json] Dropping "${c}" key to prevent prototype pollution`);return}if(o&&typeof l==="string"){let g=zh(l);if(g)return g}return a?a(c,l):l})}catch(t){if(M)throw t;return f}}function Yv(f,Z={strict:!0}){return nh(f,Z)}var kv={id:"redirect",name:"Redirect",hooks:{onSuccess(f){if(f.data?.url&&f.data?.redirect){if(typeof window<"u"&&window.location){if(window.location)try{window.location.href=f.data.url}catch{}}}}}};var WZ=[],q8=0,ee=4,vh=globalThis.nanostoresGlobal||={epoch:0},ma=(f)=>{let Z=[],M={get(){if(!M.lc)M.listen(()=>{})();return M.value},init:f,lc:0,listen(r){return M.lc=Z.push(r),()=>{for(let o=q8+ee;o<WZ.length;)if(WZ[o]===r)WZ.splice(o,ee);else o+=ee;let a=Z.indexOf(r);if(~a){if(Z.splice(a,1),!--M.lc)M.off()}}},notify(r,a){vh.epoch++;let o=!WZ.length;for(let e of Z)WZ.push(e,M.value,r,a);if(o){for(q8=0;q8<WZ.length;q8+=ee)WZ[q8](WZ[q8+1],WZ[q8+2],WZ[q8+3]);WZ.length=0}},off(){},set(r){let a=M.value;if(a!==r)M.value=r,M.notify(a)},subscribe(r){let a=M.listen(r);return r(M.value),a},value:f};return M};var sh=5,ie=6,te=10,gh=(f,Z,M,r)=>{if(f.events=f.events||{},!f.events[M+te])f.events[M+te]=r((a)=>{f.events[M].reduceRight((o,e)=>(e(o),o),{shared:{},...a})});return f.events[M]=f.events[M]||[],f.events[M].push(Z),()=>{let a=f.events[M],o=a.indexOf(Z);if(a.splice(o,1),!a.length)delete f.events[M],f.events[M+te](),delete f.events[M+te]}};var yv=1000,xa=(f,Z)=>{return gh(f,(r)=>{let a=Z(r);if(a)f.events[ie].push(a)},sh,(r)=>{let a=f.listen;f.listen=(...e)=>{if(!f.lc&&!f.active)f.active=!0,r();return a(...e)};let o=f.off;return f.events[ie]=[],f.off=()=>{o(),setTimeout(()=>{if(f.active&&!f.lc){f.active=!1;for(let e of f.events[ie])e();f.events[ie]=[]}},yv)},()=>{f.listen=a,f.off=o}})};function zd(f,Z,M){let r=new Set(Z).add(void 0);return f.listen((a,o,e)=>{if(r.has(e))M(a,o,e)})}var wh=()=>typeof window>"u",jv=(f,Z,M,r)=>{let a=ma({data:null,error:null,isPending:!0,isRefetching:!1,refetch:(i)=>o(i)}),o=async(i)=>{return new Promise((t)=>{let c=typeof r==="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;M(Z,{...c,query:{...c?.query,...i?.query},async onSuccess(l){a.set({data:l.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await c?.onSuccess?.(l)},async onError(l){let{request:g}=l,s=typeof g.retry==="number"?g.retry:g.retry?.attempts,z=g.retryAttempt||0;if(s&&z<s)return;let u=l.error.status===401;a.set({error:l.error,data:u?null:a.get().data,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await c?.onError?.(l)},async onRequest(l){let g=a.get();a.set({isPending:g.data===null,data:g.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await c?.onRequest?.(l)}}).catch((l)=>{a.set({error:l,data:a.get().data,isPending:!1,isRefetching:!1,refetch:a.value.refetch})}).finally(()=>{t(void 0)})})};f=Array.isArray(f)?f:[f];let e=!1;for(let i of f)i.subscribe(async()=>{if(wh())return;if(e)await o();else xa(a,()=>{let t=setTimeout(async()=>{if(!e)e=!0,await o()},0);return()=>{a.off(),i.off(),clearTimeout(t)}})});return a};var nd=Symbol.for("better-auth:broadcast-channel"),bh=()=>Math.floor(Date.now()/1000),hh=class{listeners=new Set;name;constructor(f="better-auth.message"){this.name=f}subscribe(f){return this.listeners.add(f),()=>{this.listeners.delete(f)}}post(f){if(typeof window>"u")return;try{localStorage.setItem(this.name,JSON.stringify({...f,timestamp:bh()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};let f=(Z)=>{if(Z.key!==this.name)return;let M=JSON.parse(Z.newValue??"{}");if(M?.event!=="session"||!M?.data)return;this.listeners.forEach((r)=>r(M))};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}}};function de(f="better-auth.message"){if(!globalThis[nd])globalThis[nd]=new hh(f);return globalThis[nd]}var vd=Symbol.for("better-auth:focus-manager"),ph=class{listeners=new Set;subscribe(f){return this.listeners.add(f),()=>{this.listeners.delete(f)}}setFocused(f){this.listeners.forEach((Z)=>Z(f))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};let f=()=>{if(document.visibilityState==="visible")this.setFocused(!0)};return document.addEventListener("visibilitychange",f,!1),()=>{document.removeEventListener("visibilitychange",f,!1)}}};function sd(){if(!globalThis[vd])globalThis[vd]=new ph;return globalThis[vd]}var gd=Symbol.for("better-auth:online-manager"),mh=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(f){return this.listeners.add(f),()=>{this.listeners.delete(f)}}setOnline(f){this.isOnline=f,this.listeners.forEach((Z)=>Z(f))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};let f=()=>this.setOnline(!0),Z=()=>this.setOnline(!1);return window.addEventListener("online",f,!1),window.addEventListener("offline",Z,!1),()=>{window.removeEventListener("online",f,!1),window.removeEventListener("offline",Z,!1)}}};function ce(){if(!globalThis[gd])globalThis[gd]=new mh;return globalThis[gd]}var ir=()=>Math.floor(Date.now()/1000);function Lv(f){if(typeof f==="object"&&f!==null&&"data"in f&&"error"in f)return f;return{data:f,error:null}}var xh=5;function Av(f){let{sessionAtom:Z,sessionSignal:M,$fetch:r,options:a={}}=f,o=a.sessionOptions?.refetchInterval??0,e=a.sessionOptions?.refetchOnWindowFocus??!0,i=a.sessionOptions?.refetchWhenOffline??!1,t={lastSync:0,lastSessionRequest:0,cachedSession:void 0},c=()=>{return i||ce().isOnline},l=(d)=>{if(!c())return;if(d?.event==="storage"){t.lastSync=ir(),M.set(!M.get());return}let b=Z.get(),m=()=>{t.lastSessionRequest=ir(),r("/get-session").then(async(x)=>{let{data:J,error:X}=Lv(x);if(J?.needsRefresh)try{let B=await r("/get-session",{method:"POST"});({data:J,error:X}=Lv(B))}catch{}let Q=J?.session&&J?.user?J:null;Z.set({...b,data:Q,error:X}),t.lastSync=ir(),M.set(!M.get())}).catch(()=>{})};if(d?.event==="poll"){m();return}if(d?.event==="visibilitychange"){if(ir()-t.lastSessionRequest<xh)return;t.lastSessionRequest=ir()}if(d?.event==="visibilitychange"){m();return}if(b?.data===null||b?.data===void 0)t.lastSync=ir(),M.set(!M.get())},g=(d)=>{de().post({event:"session",data:{trigger:d},clientId:Math.random().toString(36).substring(7)})},s=()=>{if(o&&o>0)t.pollInterval=setInterval(()=>{if(Z.get()?.data)l({event:"poll"})},o*1000)},z=()=>{t.unsubscribeBroadcast=de().subscribe(()=>{l({event:"storage"})})},u=()=>{if(!e)return;t.unsubscribeFocus=sd().subscribe(()=>{l({event:"visibilitychange"})})},k=()=>{t.unsubscribeOnline=ce().subscribe((d)=>{if(d)l({event:"visibilitychange"})})};return{init:()=>{s(),z(),u(),k(),de().setup(),sd().setup(),ce().setup()},cleanup:()=>{if(t.pollInterval)clearInterval(t.pollInterval),t.pollInterval=void 0;if(t.unsubscribeBroadcast)t.unsubscribeBroadcast(),t.unsubscribeBroadcast=void 0;if(t.unsubscribeFocus)t.unsubscribeFocus(),t.unsubscribeFocus=void 0;if(t.unsubscribeOnline)t.unsubscribeOnline(),t.unsubscribeOnline=void 0;t.lastSync=0,t.lastSessionRequest=0,t.cachedSession=void 0},triggerRefetch:l,broadcastSessionUpdate:g}}function Wv(f,Z){let M=ma(!1),r=jv(M,"/get-session",f,{method:"GET"}),a=()=>{};return xa(r,()=>{let o=Av({sessionAtom:r,sessionSignal:M,$fetch:f,options:Z});return o.init(),a=o.broadcastSessionUpdate,()=>{o.cleanup()}}),{session:r,$sessionSignal:M,broadcastSessionUpdate:(o)=>a(o)}}function wd(f){if(f===null||typeof f!=="object")return!1;let Z=Object.getPrototypeOf(f);if(Z!==null&&Z!==Object.prototype&&Object.getPrototypeOf(Z)!==null)return!1;if(Symbol.iterator in f)return!1;if(Symbol.toStringTag in f)return Object.prototype.toString.call(f)==="[object Module]";return!0}function bd(f,Z,M=".",r){if(!wd(Z))return bd(f,{},M,r);let a={...Z};for(let o of Object.keys(f)){if(o==="__proto__"||o==="constructor")continue;let e=f[o];if(e===null||e===void 0)continue;if(r&&r(a,o,e,M))continue;if(Array.isArray(e)&&Array.isArray(a[o]))a[o]=[...e,...a[o]];else if(wd(e)&&wd(a[o]))a[o]=bd(e,a[o],(M?`${M}.`:"")+o.toString(),r);else a[o]=e}return a}function hd(f){return(...Z)=>Z.reduce((M,r)=>bd(M,r,"",f),{})}var Xv=hd(),cu=hd((f,Z,M)=>{if(f[Z]!==void 0&&typeof M==="function")return f[Z]=M(f[Z]),!0}),lu=hd((f,Z,M)=>{if(Array.isArray(f[Z])&&typeof M==="function")return f[Z]=M(f[Z]),!0});var{defineProperty:uh,defineProperties:Yh,getOwnPropertyDescriptors:kh,getOwnPropertySymbols:Jv}=Object,yh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,Gv=(f,Z,M)=>(Z in f)?uh(f,Z,{enumerable:!0,configurable:!0,writable:!0,value:M}):f[Z]=M,XZ=(f,Z)=>{for(var M in Z||(Z={}))if(yh.call(Z,M))Gv(f,M,Z[M]);if(Jv){for(var M of Jv(Z))if(jh.call(Z,M))Gv(f,M,Z[M])}return f},DZ=(f,Z)=>Yh(f,kh(Z)),Lh=class extends Error{constructor(f,Z,M){super(Z||f.toString(),{cause:M});this.status=f,this.statusText=Z,this.error=M,Error.captureStackTrace(this,this.constructor)}},Ah=async(f,Z)=>{var M,r,a,o,e,i;let t=Z||{},c={onRequest:[Z==null?void 0:Z.onRequest],onResponse:[Z==null?void 0:Z.onResponse],onSuccess:[Z==null?void 0:Z.onSuccess],onError:[Z==null?void 0:Z.onError],onRetry:[Z==null?void 0:Z.onRetry]};if(!Z||!(Z==null?void 0:Z.plugins))return{url:f,options:t,hooks:c};for(let l of(Z==null?void 0:Z.plugins)||[]){if(l.init){let g=await((M=l.init)==null?void 0:M.call(l,f.toString(),Z));t=g.options||t,f=g.url}c.onRequest.push((r=l.hooks)==null?void 0:r.onRequest),c.onResponse.push((a=l.hooks)==null?void 0:a.onResponse),c.onSuccess.push((o=l.hooks)==null?void 0:o.onSuccess),c.onError.push((e=l.hooks)==null?void 0:e.onError),c.onRetry.push((i=l.hooks)==null?void 0:i.onRetry)}return{url:f,options:t,hooks:c}},Rv=class{constructor(f){this.options=f}shouldAttemptRetry(f,Z){if(this.options.shouldRetry)return Promise.resolve(f<this.options.attempts&&this.options.shouldRetry(Z));return Promise.resolve(f<this.options.attempts)}getDelay(){return this.options.delay}},Wh=class{constructor(f){this.options=f}shouldAttemptRetry(f,Z){if(this.options.shouldRetry)return Promise.resolve(f<this.options.attempts&&this.options.shouldRetry(Z));return Promise.resolve(f<this.options.attempts)}getDelay(f){return Math.min(this.options.maxDelay,this.options.baseDelay*2**f)}};function Xh(f){if(typeof f==="number")return new Rv({type:"linear",attempts:f,delay:1000});switch(f.type){case"linear":return new Rv(f);case"exponential":return new Wh(f);default:throw Error("Invalid retry strategy")}}var Jh=async(f)=>{let Z={},M=async(r)=>typeof r==="function"?await r():r;if(f==null?void 0:f.auth){if(f.auth.type==="Bearer"){let r=await M(f.auth.token);if(!r)return Z;Z.authorization=`Bearer ${r}`}else if(f.auth.type==="Basic"){let[r,a]=await Promise.all([M(f.auth.username),M(f.auth.password)]);if(!r||!a)return Z;Z.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(f.auth.type==="Custom"){let[r,a]=await Promise.all([M(f.auth.prefix),M(f.auth.value)]);if(!a)return Z;Z.authorization=`${r!=null?r:""} ${a}`}}return Z},Gh=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Rh(f){let Z=f.headers.get("content-type"),M=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!Z)return"json";let r=Z.split(";").shift()||"";if(Gh.test(r))return"json";if(M.has(r)||r.startsWith("text/"))return"text";return"blob"}function Uh(f){try{return JSON.parse(f),!0}catch(Z){return!1}}function pd(f){if(f===void 0)return!1;let Z=typeof f;if(Z==="string"||Z==="number"||Z==="boolean"||Z===null)return!0;if(Z!=="object")return!1;if(Array.isArray(f))return!0;if(f.buffer)return!1;return f.constructor&&f.constructor.name==="Object"||typeof f.toJSON==="function"}function Uv(f){try{return JSON.parse(f)}catch(Z){return f}}function Kv(f){return typeof f==="function"}function Kh(f){if(f==null?void 0:f.customFetchImpl)return f.customFetchImpl;if(typeof globalThis<"u"&&Kv(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Kv(window.fetch))return window.fetch;throw Error("No fetch implementation found")}async function Qh(f){let Z=new Headers(f==null?void 0:f.headers),M=await Jh(f);for(let[r,a]of Object.entries(M||{}))Z.set(r,a);if(!Z.has("content-type")){let r=Bh(f==null?void 0:f.body);if(r)Z.set("content-type",r)}return Z}function Bh(f){if(pd(f))return"application/json";return null}function _h(f){if(!(f==null?void 0:f.body))return null;let Z=new Headers(f==null?void 0:f.headers);if(pd(f.body)&&!Z.has("content-type")){for(let[M,r]of Object.entries(f==null?void 0:f.body))if(r instanceof Date)f.body[M]=r.toISOString();return JSON.stringify(f.body)}if(Z.has("content-type")&&Z.get("content-type")==="application/x-www-form-urlencoded"){if(pd(f.body))return new URLSearchParams(f.body).toString();return f.body}return f.body}function Hh(f,Z){var M;if(Z==null?void 0:Z.method)return Z.method.toUpperCase();if(f.startsWith("@")){let r=(M=f.split("@")[1])==null?void 0:M.split("/")[0];if(!Qv.includes(r))return(Z==null?void 0:Z.body)?"POST":"GET";return r.toUpperCase()}return(Z==null?void 0:Z.body)?"POST":"GET"}function qh(f,Z){let M;if(!(f==null?void 0:f.signal)&&(f==null?void 0:f.timeout))M=setTimeout(()=>Z==null?void 0:Z.abort(),f==null?void 0:f.timeout);return{abortTimeout:M,clearTimeout:()=>{if(M)clearTimeout(M)}}}var Dh=class f extends Error{constructor(Z,M){super(M||JSON.stringify(Z,null,2));this.issues=Z,Object.setPrototypeOf(this,f.prototype)}};async function le(f,Z){let M=await f["~standard"].validate(Z);if(M.issues)throw new Dh(M.issues);return M.value}var Qv=["get","post","put","patch","delete"];var Oh=(f)=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(Z,M){var r,a,o,e;let i=((a=(r=f.plugins)==null?void 0:r.find((t)=>{var c;return((c=t.schema)==null?void 0:c.config)?Z.startsWith(t.schema.config.baseURL||"")||Z.startsWith(t.schema.config.prefix||""):!1}))==null?void 0:a.schema)||f.schema;if(i){let t=Z;if((o=i.config)==null?void 0:o.prefix){if(t.startsWith(i.config.prefix)){if(t=t.replace(i.config.prefix,""),i.config.baseURL)Z=Z.replace(i.config.prefix,i.config.baseURL)}}if((e=i.config)==null?void 0:e.baseURL){if(t.startsWith(i.config.baseURL))t=t.replace(i.config.baseURL,"")}let c=i.schema[t];if(c){let l=DZ(XZ({},M),{method:c.method,output:c.output});if(!(M==null?void 0:M.disableValidation))l=DZ(XZ({},l),{body:c.input?await le(c.input,M==null?void 0:M.body):M==null?void 0:M.body,params:c.params?await le(c.params,M==null?void 0:M.params):M==null?void 0:M.params,query:c.query?await le(c.query,M==null?void 0:M.query):M==null?void 0:M.query});return{url:Z,options:l}}}return{url:Z,options:M}}}),Bv=(f)=>{async function Z(M,r){let a=DZ(XZ(XZ({},f),r),{plugins:[...(f==null?void 0:f.plugins)||[],Oh(f||{}),...(r==null?void 0:r.plugins)||[]]});if(f==null?void 0:f.catchAllError)try{return await md(M,a)}catch(o){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:o}}}return await md(M,a)}return Z};function Fh(f,Z){let{baseURL:M,params:r,query:a}=Z||{query:{},params:{},baseURL:""},o=f.startsWith("http")?f.split("/").slice(0,3).join("/"):M||"";if(f.startsWith("@")){let g=f.toString().split("@")[1].split("/")[0];if(Qv.includes(g))f=f.replace(`@${g}/`,"/")}if(!o.endsWith("/"))o+="/";let[e,i]=f.replace(o,"").split("?"),t=new URLSearchParams(i);for(let[g,s]of Object.entries(a||{})){if(s==null)continue;let z;if(typeof s==="string")z=s;else if(Array.isArray(s)){for(let u of s)t.append(g,u);continue}else z=JSON.stringify(s);t.set(g,z)}if(r)if(Array.isArray(r)){let g=e.split("/").filter((s)=>s.startsWith(":"));for(let[s,z]of g.entries()){let u=r[s];e=e.replace(z,u)}}else for(let[g,s]of Object.entries(r))e=e.replace(`:${g}`,String(s));if(e=e.split("/").map(encodeURIComponent).join("/"),e.startsWith("/"))e=e.slice(1);let c=t.toString();if(c=c.length>0?`?${c}`.replace(/\+/g,"%20"):"",!o.startsWith("http"))return`${o}${e}${c}`;return new URL(`${e}${c}`,o)}var md=async(f,Z)=>{var M,r,a,o,e,i,t,c;let{hooks:l,url:g,options:s}=await Ah(f,Z),z=Kh(s),u=new AbortController,k=(M=s.signal)!=null?M:u.signal,R=Fh(g,s),n=_h(s),d=await Qh(s),b=Hh(g,s),m=DZ(XZ({},s),{url:R,headers:d,body:n,method:b,signal:k});for(let q of l.onRequest)if(q){let O=await q(m);if(typeof O==="object"&&O!==null)m=O}if("pipeTo"in m&&typeof m.pipeTo==="function"||typeof((r=Z==null?void 0:Z.body)==null?void 0:r.pipe)==="function"){if(!("duplex"in m))m.duplex="half"}let{clearTimeout:x}=qh(s,u),J=await z(m.url,m);x();let X={response:J,request:m};for(let q of l.onResponse)if(q){let O=await q(DZ(XZ({},X),{response:((a=Z==null?void 0:Z.hookOptions)==null?void 0:a.cloneResponse)?J.clone():J}));if(O instanceof Response)J=O;else if(typeof O==="object"&&O!==null)J=O.response}if(J.ok){if(m.method==="HEAD")return{data:"",error:null};let O=Rh(J),C={data:null,response:J,request:m};if(O==="json"||O==="text"){let nf=await J.text(),kZ=(o=m.jsonParser)!=null?o:Uv;C.data=await kZ(nf)}else C.data=await J[O]();if(m==null?void 0:m.output){if(m.output&&!m.disableValidation)C.data=await le(m.output,C.data)}for(let nf of l.onSuccess)if(nf)await nf(DZ(XZ({},C),{response:((e=Z==null?void 0:Z.hookOptions)==null?void 0:e.cloneResponse)?J.clone():J}));if(Z==null?void 0:Z.throw)return C.data;return{data:C.data,error:null}}let Q=(i=Z==null?void 0:Z.jsonParser)!=null?i:Uv,B=await J.text(),H=Uh(B),Xf=H?await Q(B):null,S={response:J,responseText:B,request:m,error:DZ(XZ({},Xf),{status:J.status,statusText:J.statusText})};for(let q of l.onError)if(q)await q(DZ(XZ({},S),{response:((t=Z==null?void 0:Z.hookOptions)==null?void 0:t.cloneResponse)?J.clone():J}));if(Z==null?void 0:Z.retry){let q=Xh(Z.retry),O=(c=Z.retryAttempt)!=null?c:0;if(await q.shouldAttemptRetry(O,J)){for(let nf of l.onRetry)if(nf)await nf(X);let C=q.getDelay(O);return await new Promise((nf)=>setTimeout(nf,C)),await md(f,DZ(XZ({},Z),{retryAttempt:O+1}))}}if(Z==null?void 0:Z.throw)throw new Lh(J.status,J.statusText,H?Xf:B);return{data:null,error:DZ(XZ({},Xf),{status:J.status,statusText:J.statusText})}};var Nh=(f)=>{if(typeof process>"u")return;let Z=f??"/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 M=process.env.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${M}${process.env.VERCEL_URL}`).origin}${Z}`}catch{}}},_v=(f,Z)=>{let M="credentials"in Request.prototype,r=xv(f?.baseURL,f?.basePath,void 0,Z)??Nh(f?.basePath)??"/api/auth",a=f?.plugins?.flatMap((x)=>x.fetchPlugins).filter((x)=>x!==void 0)||[],o={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:f?.fetchOptions?.onSuccess,onError:f?.fetchOptions?.onError,onRequest:f?.fetchOptions?.onRequest,onResponse:f?.fetchOptions?.onResponse}},{onSuccess:e,onError:i,onRequest:t,onResponse:c,...l}=f?.fetchOptions||{},g=Bv({baseURL:r,...M?{credentials:"include"}:{},method:"GET",jsonParser(x){if(!x)return null;return Yv(x,{strict:!1})},customFetchImpl:fetch,...l,plugins:[o,...l.plugins||[],...f?.disableDefaultFetchPlugins?[]:[kv],...a]}),{$sessionSignal:s,session:z,broadcastSessionUpdate:u}=Wv(g,f),k=f?.plugins||[],R={},n={$sessionSignal:s,session:z},d={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},b=[{signal:"$sessionSignal",matcher(x){return x==="/sign-out"||x==="/update-user"||x==="/update-session"||x==="/sign-up/email"||x==="/sign-in/email"||x==="/delete-user"||x==="/verify-email"||x==="/revoke-sessions"||x==="/revoke-session"||x==="/revoke-other-sessions"||x==="/change-email"||x==="/change-password"},callback(x){if(x==="/sign-out")u("signout");else if(x==="/update-user"||x==="/update-session")u("updateUser")}}];for(let x of k){if(x.getAtoms)Object.assign(n,x.getAtoms?.(g));if(x.pathMethods)Object.assign(d,x.pathMethods);if(x.atomListeners)b.push(...x.atomListeners)}let m={notify:(x)=>{n[x].set(!n[x].get())},listen:(x,J)=>{n[x].subscribe(J)},atoms:n};for(let x of k)if(x.getActions)R=Xv(x.getActions?.(g,m,f)??{},R);return{get baseURL(){return r},pluginsActions:R,pluginsAtoms:n,pluginPathMethods:d,atomListeners:b,$fetch:g,$store:m}};function Hv(f){return typeof f==="object"&&f!==null&&"get"in f&&typeof f.get==="function"&&"lc"in f&&typeof f.lc==="number"}function Th(f,Z,M){let r=Z[f],{fetchOptions:a,query:o,...e}=M||{};if(r)return r;if(a?.method)return a.method;if(e&&Object.keys(e).length>0)return"POST";return"GET"}function qv(f,Z,M,r,a){function o(e=[]){return new Proxy(function(){},{get(i,t){if(typeof t!=="string")return;if(t==="then"||t==="catch"||t==="finally")return;let c=[...e,t],l=f;for(let g of c)if(l&&typeof l==="object"&&g in l)l=l[g];else{l=void 0;break}if(typeof l==="function")return l;if(Hv(l))return l;return o(c)},apply:async(i,t,c)=>{let l="/"+e.map((d)=>d.replace(/[A-Z]/g,(b)=>`-${b.toLowerCase()}`)).join("/"),g=c[0]||{},s=c[1]||{},{query:z,fetchOptions:u,...k}=g,R={...s,...u},n=Th(l,M,g);return await Z(l,{...R,body:n==="GET"?void 0:{...k,...R?.body||{}},query:z||R?.query,method:n,async onSuccess(d){if(await R?.onSuccess?.(d),!a||R.disableSignal)return;let b=a.filter((x)=>x.matcher(l));if(!b.length)return;let m=new Set;for(let x of b){let J=r[x.signal];if(!J)return;if(m.has(x.signal))continue;m.add(x.signal);let X=J.get();setTimeout(()=>{J.set(!X)},10),x.callback?.(l)}}})}})}return o()}var tr=Qf(Nf(),1);function Dv(f,Z={}){let M=tr.useRef(f.get()),{keys:r,deps:a=[f,r]}=Z,o=tr.useCallback((i)=>{let t=(c)=>{if(M.current===c)return;M.current=c,i()};if(t(f.value),r?.length)return zd(f,r,t);return f.listen(t)},a),e=()=>M.current;return tr.useSyncExternalStore(o,e,e)}function Ov(f){return f.charAt(0).toUpperCase()+f.slice(1)}function Ih(f){return`use${Ov(f)}`}function Fv(f){let{pluginPathMethods:Z,pluginsActions:M,pluginsAtoms:r,$fetch:a,$store:o,atomListeners:e}=_v(f),i={};for(let[t,c]of Object.entries(r))i[Ih(t)]=()=>Dv(c);return qv({...M,...i,$fetch:a,$store:o},a,Z,r,e)}var Sh=Fv({baseURL:window.location.origin}),{signIn:Nv,signUp:Tv,useSession:Ku,signOut:Iv}=Sh;var Sv="0.3.9";var Vh=(f)=>j("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",...f,children:[w("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"}),w("path",{d:"M9 18c-4.51 2-5-2-7-2"})]});function es(){let{clearAuth:f}=uZ(),Z=ne(),M=(c)=>{if(!c)return"";switch(c.toLowerCase()){case"owner":return y.owner();case"editor":return y.editor();case"reviewer":return y.reviewer();default:return c}},{data:r}=GZ({queryKey:["teams",Z,"me"],queryFn:async()=>{let c=await Hf.api.teams[":teamId"].me.$get({param:{teamId:Z}});if(!c.ok)throw Error("Failed to fetch me");return await c.json()},enabled:!!Z}),{setTheme:a,theme:o}=pv(),e=xZ(),i=async()=>{await Iv(),f(),e({to:"/login"})},t=(c)=>{if(!c)return"U";let l=c.split(" ");if(l.length>1)return`${l[0][0]}${l[l.length-1][0]}`.toUpperCase();return c.substring(0,2).toUpperCase()};return j(Pv,{children:[w(fs,{asChild:!0,children:j(Vv,{className:"rounded-lg w-10 h-10",children:[r?.image&&w(Cv,{src:r.image,alt:r.name,className:"object-cover rounded-lg w-10 h-10"}),w($v,{className:"rounded-lg bg-primary/40 text-foreground",children:t(r?.name)})]})}),j(Zs,{className:"w-56",align:"end",forceMount:!0,children:[r&&j(JZ,{children:[w(Ms,{className:"font-normal",children:j("div",{className:"flex flex-col space-y-1",children:[w("p",{className:"text-sm font-medium leading-none",children:r.name}),w("p",{className:"text-xs leading-none text-muted-foreground",children:M(r.role)})]})}),w(ua,{})]}),j(rs,{children:[w(as,{children:y.theme()}),w(Ev,{children:j(os,{children:[j(D8,{className:"justify-between flex items-center",onClick:()=>a("light"),children:[w("span",{children:y.light()}),o==="light"&&w(ze,{className:"size-4"})]}),j(D8,{className:"justify-between flex items-center",onClick:()=>a("dark"),children:[w("span",{children:y.dark()}),o==="dark"&&w(ze,{className:"size-4"})]}),j(D8,{className:"justify-between flex items-center",onClick:()=>a("system"),children:[w("span",{children:y.system()}),o==="system"&&w(ze,{className:"size-4"})]})]})})]}),w(ua,{}),r?.role?.toLowerCase()==="owner"&&w(D8,{onClick:()=>e({to:"/teams/$teamId/dashboard",params:{teamId:Z}}),disabled:!Z,children:y.dashboard()}),w(D8,{onClick:()=>e({to:"/teams/$teamId/settings",params:{teamId:Z}}),disabled:!Z,children:y.settings()}),w(ua,{}),w(D8,{className:"text-red-500 focus:text-red-500",onClick:i,children:y.log_out()}),w(ua,{}),j(D8,{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:[w(Vh,{className:"size-3.5"}),w("span",{children:y.version({version:Sv})})]})]})]})}var Ya=()=>{return null},zs=({children:f})=>{let[Z,M]=O8.useState(null),[r,a]=O8.useState(!1),o=O8.useMemo(()=>O8.default.Children.toArray(f).filter((l)=>O8.default.isValidElement(l)&&l.type===Ya),[f]),e=Z!==null?o[Z]?.props:null,i=(l)=>{let g=o[l];if(!g.props.children){M(null),g.props.onItemClick?.();return}M((s)=>{if(s===l)return null;if(g&&g.props.onItemClick)g.props.onItemClick();return l})};return j(JZ,{children:[w(l8,{variant:"ghost",size:"icon",onClick:()=>{a((l)=>!l)},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":r,children:w(is,{})}),r&&w("div",{onClick:()=>{a(!1),M(null)},className:"fixed inset-0 bg-black/60 z-30 md:hidden","aria-hidden":"true"}),Z!==null&&w("div",{onClick:()=>M(null),className:"hidden md:block fixed inset-0 bg-black/20 z-30","aria-hidden":"true"}),j("aside",{className:`fixed inset-y-0 left-0 z-40 flex transition-transform duration-300 ease-in-out ${r?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[w("div",{className:"absolute bottom-0 w-full h-[70dvh] bg-linear-to-t from-sidebar-primary/10 to-transparent"}),j("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:[w("div",{className:"flex-1 w-full flex flex-col items-center space-y-5 pt-1",children:w(ts,{children:o.map((l,g)=>j(ds,{children:[w(cs,{asChild:!0,children:j(l8,{variant:"ghost",size:"icon-lg",onClick:()=>i(g),"aria-label":l.props.label,"aria-expanded":Z===g,className:`relative w-12 h-12 [&_svg:not([class*='size-'])]:size-6 transition-all duration-200 ${Z===g?"bg-sidebar-primary text-sidebar-primary-foreground shadow-lg hover:bg-sidebar-primary hover:text-sidebar-primary-foreground":"text-sidebar-foreground/60 hover:text-sidebar-foreground hover:bg-sidebar-accent"}`,children:[l.props.icon,l.props.badge]})}),w(ls,{side:"right",children:w("p",{children:l.props.label})})]},l.props.label))})}),w("div",{className:"mt-auto w-full flex flex-col items-center pb-2",children:w(es,{})})]}),w("div",{className:`transition-all duration-300 ease-in-out bg-sidebar/95 backdrop-blur-sm shadow-lg overflow-hidden ${Z!==null?"w-[calc(100vw-4rem)] md:w-100 border-r border-sidebar-border":"w-0"}`,children:w("div",{className:"w-[calc(100vw-4rem)] md:w-100 h-full flex flex-col",children:e&&j(JZ,{children:[w("header",{className:"h-16 flex items-center px-4 font-bold text-lg border-b border-sidebar-border flex-shrink-0",children:w("h2",{children:e.label})}),w("div",{className:"flex-1 overflow-y-auto p-2",children:e.children})]})})})]})]})};var ss=Qf(Nf(),1);var F8=(f,Z)=>{let M=new RegExp(`(${Object.keys(Z).map((r)=>`\\{${r}\\}`).join("|")})`,"g");return w("span",{children:f.split(M).map((r,a)=>{let o=r.match(/^\{(.+)\}$/);if(o&&Z[o[1]])return w(ss.default.Fragment,{children:Z[o[1]]},a);return r})})},gs=({notification:f})=>{let{creator:Z,createdAt:M,isRead:r,type:a,asset:o,project:e,team:i,user:t}=f,c=(()=>{let s=Z?.name||y.unknown_user(),z=o?.name||y.unknown_asset(),u=e?.name||y.unknown_project(),k=i?.name||y.unknown_team(),R=t?.name||y.unknown_user(),n={creator:w("span",{className:"font-semibold",children:s}),asset:w("span",{className:"font-semibold",children:z}),project:w("span",{className:"font-semibold",children:u}),team:w("span",{className:"font-semibold",children:k}),user:w("span",{className:"font-semibold",children:R})};switch(a){case"comment_created":return F8(y.notification_commented_on({creator:"{creator}",asset:"{asset}"}),n);case"reply_created":return F8(y.notification_replied_to({creator:"{creator}",asset:"{asset}"}),n);case"mention":return F8(y.notification_mentioned_you({creator:"{creator}",asset:"{asset}"}),n);case"successful_file_uploaded":return F8(y.notification_uploaded({creator:"{creator}",asset:"{asset}",project:"{project}"}),n);case"metadata_field_updated_status":return F8(y.notification_status_updated({creator:"{creator}",asset:"{asset}"}),n);case"new_user_join_team":return F8(y.notification_joined_team({user:"{user}",team:"{team}"}),n);case"new_user_join_project":return F8(y.notification_joined_project({user:"{user}",project:"{project}"}),n);default:return F8(y.notification_generic({creator:"{creator}"}),n)}})(),l=o?.proxyType==="video"&&o.preview&&o.thumbnailUrl&&o.originalWidth&&o.originalHeight,g=o?.preview&&(o.proxyType==="image"||o.proxyType==="video");return j("div",{className:"flex py-2 cursor-pointer group border border-transparent items-center justify-center",children:[w("div",{className:ns("w-1.5 h-1.5 rounded-full shadow-xs",r?"bg-transparent":"bg-destructive")}),j("div",{className:"flex-1 min-w-0 flex flex-col justify-center pl-2",children:[w("div",{className:"text-sm text-foreground break-all leading-snug",children:c}),w("div",{className:"text-[11px] text-muted-foreground mt-1",children:ve(M||"")})]}),g&&w("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:l?w(vs,{spriteUrl:o.preview,thumbnailUrl:o.thumbnailUrl,videoWidth:o.originalWidth,videoHeight:o.originalHeight}):w("img",{src:o.preview,alt:o.name,className:"w-full h-full object-cover"})})]})};var nM=Qf(Nf(),1);var xs=()=>{let{teamId:f}=ka(),[Z,M]=nM.useState("all"),r=ws(),{ref:a,inView:o}=ge(),e=(n,d)=>["notifications",n,{unreadOnly:d}],{data:i,fetchNextPage:t,hasNextPage:c,isFetchingNextPage:l,isLoading:g,refetch:s}=se({queryKey:e(f??null,Z==="unread"),queryFn:async({pageParam:n})=>{let d=await Hf.api.teams[":teamId"].notifications.$get({param:{teamId:f},query:{unreadOnly:Z==="unread"?"true":"false",...n?{after:n}:{},pageSize:"20"}});if(!d.ok)throw Error("failed to fetch notifications");return d.json()},initialPageParam:void 0,getNextPageParam:(n)=>n.pageInfo?.cursor||void 0,enabled:!!f});nM.useEffect(()=>{if(o&&c)t()},[o,c,t]);let z=nM.useMemo(()=>i?.pages.flatMap((n)=>n.data||[])||[],[i]);nM.useEffect(()=>{if(f)r.invalidateQueries({queryKey:["teams",f,"me"]})},[f,z.length,r]);let u=Hf.api.teams[":teamId"].notifications.read.$post,k=bs({mutationFn:async({teamId:n,notificationId:d})=>{if(!(await u({param:{teamId:n},json:{notificationId:d}})).ok)throw Error("failed to mark read");return null}}),R=async()=>{if(z.length>0&&f){let n=z[0].id;if(n){r.setQueryData(["teams",f,"me"],(d)=>{if(!d)return d;return{...d,unreadNotificationCount:0}});try{await k.mutateAsync({teamId:f,notificationId:n})}catch(d){console.error("Failed to mark all as read:",d)}r.invalidateQueries({queryKey:["notifications",f]}),r.invalidateQueries({queryKey:["teams",f,"me"]}),s()}}};return j("div",{className:"flex flex-col h-full w-full bg-transparent",children:[w("div",{className:"flex-none pb-1",children:w(ps,{value:Z,onValueChange:(n)=>M(n),className:"w-full",children:j("div",{className:"flex items-center justify-between mb-2",children:[j(ms,{className:"h-8",children:[w(xd,{value:"all",className:"text-xs px-3 h-6",children:y.all()}),w(xd,{value:"unread",className:"text-xs px-3 h-6",children:y.unread()})]}),w(l8,{variant:"ghost",size:"sm",className:"h-8 px-2 text-muted-foreground hover:text-foreground",onClick:R,disabled:z.length===0||k.isPending,title:y.mark_all_as_read(),children:w(hs,{className:"w-4 h-4"})})]})})}),j("div",{className:"flex-1 overflow-y-auto p-2 min-h-0",children:[g&&w("div",{className:"flex justify-center p-4",children:w(Tf,{className:"w-6 h-6 animate-spin text-muted-foreground"})}),!g&&z.length===0&&w("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground",children:w("p",{className:"text-sm",children:y.no_notifications()})}),w("div",{className:"space-y-1",children:z.map((n)=>w(gs,{notification:n},n.id))}),w("div",{ref:a,className:"h-4 w-full flex justify-center p-1",children:l&&w(Tf,{className:"w-4 h-4 animate-spin text-muted-foreground"})})]})]})};var cZ=Qf(Nf(),1),Ch=(f,Z,M,r,a,o,e,i)=>{let t=document.documentElement,c=["light","dark"];function l(z){(Array.isArray(f)?f:[f]).forEach((u)=>{let k=u==="class",R=k&&o?a.map((n)=>o[n]||n):a;k?(t.classList.remove(...R),t.classList.add(o&&o[z]?o[z]:z)):t.setAttribute(u,z)}),g(z)}function g(z){i&&c.includes(z)&&(t.style.colorScheme=z)}function s(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)l(r);else try{let z=localStorage.getItem(Z)||M,u=e&&z==="system"?s():z;l(u)}catch(z){}};var $h=cZ.createContext(void 0),Ph={setTheme:(f)=>{},themes:[]},us=()=>{var f;return(f=cZ.useContext($h))!=null?f:Ph};var x1=cZ.memo(({forcedTheme:f,storageKey:Z,attribute:M,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:e,themes:i,nonce:t,scriptProps:c})=>{let l=JSON.stringify([M,Z,o,f,i,e,r,a]).slice(1,-1);return cZ.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?t:"",dangerouslySetInnerHTML:{__html:`(${Ch.toString()})(${l})`}})});var Ls=({...f})=>{let{theme:Z="system"}=us();return w(Ys,{theme:Z,className:"toaster group",icons:{success:w(dr,{className:"size-4"}),info:w(js,{className:"size-4"}),warning:w(ys,{className:"size-4"}),error:w(ks,{className:"size-4"}),loading:w(Tf,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...f})};var we=Qf(Nf(),1);function Eh(f){let Z=Us(f);if(isNaN(Z.getTime()))return y.unknown_date();if(Gs(Z))return y.today();if(Rs(Z))return y.yesterday();return Js(Z,y.date_format_long())}function As(f){if(f===0)return"0 B";let Z=1024,M=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(f)/Math.log(Z));return parseFloat((f/Math.pow(Z,r)).toFixed(1))+" "+M[r]}function fp({task:f}){let Z=cr((o)=>o.tasks[f.id]),M=Z?Z.loaded===Z.total&&f.uploaded===f.total:f.uploaded===f.total,r=Z?Z.total>0?Z.loaded/Z.total*100:0:f.total>0?f.uploaded/f.total*100:0,a;try{a=ve(f.createdAt)}catch{a=y.unknown()}return j("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:[j("div",{className:"flex items-start justify-between gap-2 mb-2",children:[w("div",{className:"min-w-0 flex-1",children:w("span",{className:"text-sm font-semibold tracking-tight text-sidebar-foreground truncate block",title:f.name,children:f.name||y.untitled_upload()})}),w("div",{className:"flex-shrink-0",children:M?j("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:[w(dr,{className:"w-3.5 h-3.5"}),y.done()]}):j("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:[w(Tf,{className:"w-3.5 h-3.5 animate-spin"}),y.uploading_status()]})})]}),j("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground mb-3 font-medium",children:[w(Xs,{className:"w-3.5 h-3.5 text-muted-foreground/75"}),w("span",{children:a})]}),j("div",{className:"space-y-1.5 mt-auto",children:[j("div",{className:"flex items-center justify-between text-xs font-semibold",children:[w("span",{className:"text-muted-foreground/80",children:Z?`${As(Z.loaded)} / ${As(Z.total)} (${y.files_progress({uploaded:f.uploaded,total:f.total})})`:y.files_progress({uploaded:f.uploaded,total:f.total})}),!M&&j("span",{className:"text-sidebar-primary font-mono font-bold",children:[Math.round(r),"%"]})]}),w(Ks,{value:r,className:"h-1.5 w-full bg-muted"})]})]})}function Qs(){let f=ne(),Z=cr((z)=>z.uploading),M=cr((z)=>z.tasks),{data:r,fetchNextPage:a,hasNextPage:o,isFetchingNextPage:e,isLoading:i}=se({queryKey:["teams",f,"upload","tasks"],queryFn:async({pageParam:z})=>{let u=await Hf.api.teams[":teamId"].upload.tasks.$get({param:{teamId:f},query:{after:z}});if(!u.ok)throw Error("Failed to fetch upload tasks");return await u.json()},initialPageParam:"",getNextPageParam:(z)=>{return z.pageInfo?.cursor||void 0},enabled:!!f,refetchInterval:Z>0?2000:!1}),{ref:t,inView:c}=ge();we.useEffect(()=>{if(c&&o&&!e)a()},[c,o,e,a]);let l=r?.pages.flatMap((z)=>z.data??[])??[],g=we.useMemo(()=>{let z=new Set(l.map((k)=>k.id));return[...Object.values(M).filter((k)=>!z.has(k.taskId)).map((k)=>{let R=Object.values(k.files).filter((n)=>n.status==="completed"||n.status==="failed").length;return{id:k.taskId,name:k.name,total:Object.keys(k.files).length,uploaded:R,createdAt:new Date().toISOString()}}),...l].sort((k,R)=>R.id.localeCompare(k.id))},[l,M]);if(i)return w("div",{className:"flex items-center justify-center p-8",children:w(Tf,{className:"h-6 w-6 animate-spin text-muted-foreground"})});if(g.length===0)return j("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:[w(Ws,{className:"h-8 w-8 text-muted-foreground/50 mb-3"}),w("p",{className:"text-sm font-semibold text-muted-foreground",children:y.no_uploads_yet()}),w("p",{className:"text-xs text-muted-foreground/60 mt-1 max-w-[180px]",children:y.no_uploads_hint()})]});let s=[];return g.forEach((z)=>{let u=Eh(z.createdAt),k=s.find((R)=>R.day===u);if(!k)k={day:u,tasks:[]},s.push(k);k.tasks.push(z)}),j("div",{className:"flex flex-col space-y-4",children:[s.map((z)=>j("div",{className:"relative flex flex-col",children:[j("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:[w("span",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground/80",children:z.day}),w("span",{className:"text-[10px] font-semibold text-muted-foreground/60 bg-muted px-2 py-0.5 rounded-full",children:z.tasks.length===1?y.n_tasks_singular({count:z.tasks.length}):y.n_tasks_plural({count:z.tasks.length})})]}),w("div",{className:"mt-3 space-y-3",children:z.tasks.map((u)=>w(fp,{task:u},u.id))})]},z.day)),o&&w("div",{ref:t,className:"flex items-center justify-center p-4",children:e&&w(Tf,{className:"h-5 w-5 animate-spin text-muted-foreground"})})]})}var Ns=Qf(Nf(),1);async function Ts(f){let Z=f.match(/^\/teams\/([^/]+)/),M=Z?Z[1]:null;if(M)return M;let r=f.match(/^\/projects\/([^/]+)/),a=r?r[1]:null;if(a){let{ensureTeamIdForProject:o}=ka.getState();return await o(a)}return null}function Zp(){let f=uZ((g)=>g.user),{uploading:Z}=cr(),M=_s({select:(g)=>g.location.pathname}),r=xZ(),{teamId:a,setTeamId:o}=ka(),e=f&&(M.startsWith("/teams/")||M.startsWith("/projects/"));Ns.useEffect(()=>{Ts(M).then((g)=>{if(g&&g!==a)o(g)})},[M,a,o]);let{data:i}=GZ({queryKey:["teams",a,"me"],queryFn:async()=>{if(!a)return null;let g=await Hf.api.teams[":teamId"].me.$get({param:{teamId:a}});if(!g.ok)throw Error("Failed to fetch me");return await g.json()},enabled:!!a});if(!e)return w(ya,{});let t=i?.unreadNotificationCount??0,c=t>99?"99+":t,l=t>0?w("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:c}):null;return j("div",{className:"flex h-screen w-full bg-background overflow-hidden",children:[w(Ls,{}),j(zs,{children:[w(Ya,{icon:w(qs,{}),label:y.dashboard(),onItemClick:()=>{if(a)r({to:"/teams/$teamId",params:{teamId:a}})}}),w(Ya,{icon:w(Hs,{}),label:y.notifications(),badge:l,children:w(xs,{})}),w(Ya,{icon:w(Ds,{uploading:Z>0,className:Z>0?"text-blue-500":""}),label:y.uploads(),children:w(Qs,{})})]}),j("div",{className:"flex flex-col flex-1 md:pl-16 overflow-hidden relative",children:[w(Os,{}),w("main",{className:"flex-1 overflow-hidden relative flex flex-col",children:w(ya,{})})]})]})}var jf=Bs()({beforeLoad:async({location:f})=>{if(typeof window<"u"){let Z=f.pathname,M=await Ts(Z);if(M){let{fetchMetadata:r,getMetadata:a}=Fs.getState();try{await r(M);let o=a("locale");if((o==="en"||o==="zh")&&o!==ja())be(o,{reload:!1})}catch(o){console.error("Failed to load user locale metadata:",o)}}document.documentElement.setAttribute("lang",ja())}},component:Zp});function he({children:f}){return j("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:[w("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"}),w("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"}),j("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:[j("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:[w("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"}),j("div",{className:"relative flex items-center gap-3",children:[w(vM,{className:"h-12 w-12 shadow-lg shadow-rose-500/10 rounded-2xl transition-transform duration-500 hover:scale-105"}),w("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"})]}),j("div",{className:"relative my-8 md:my-0 space-y-6",children:[w("h2",{className:"text-3xl font-extrabold tracking-tight leading-tight text-zinc-900 dark:text-zinc-50",children:y.auth_tagline()}),w("p",{className:"text-zinc-600 dark:text-zinc-400 text-sm leading-relaxed max-w-sm",children:y.auth_description()}),w("ul",{className:"space-y-3.5 pt-4",children:[y.auth_feature_uploads(),y.auth_feature_metadata(),y.auth_feature_teams()].map((Z,M)=>j("li",{className:"flex items-center gap-3 text-sm text-zinc-700 dark:text-zinc-300 font-medium",children:[w(dr,{className:"w-5 h-5 text-rose-500 flex-shrink-0"}),w("span",{children:Z})]},M))})]}),w("div",{className:"relative pt-4 border-t border-zinc-200/30 dark:border-zinc-800/30",children:w("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 font-medium",children:y.auth_community_cta()})})]}),w("div",{className:"w-full md:w-1/2 p-8 md:p-12 flex flex-col justify-center",children:f})]})]})}var qf=Qf(Nf(),1),Wa=(f)=>f.type==="checkbox",gM=(f)=>f instanceof Date,_f=(f)=>f==null,o0=(f)=>typeof f==="object",zf=(f)=>!_f(f)&&!Array.isArray(f)&&o0(f)&&!gM(f),Mp=(f)=>zf(f)&&f.target?Wa(f.target)?f.target.checked:f.target.value:f,rp=(f,Z)=>Z.split(".").some((M,r,a)=>!isNaN(Number(M))&&f.has(a.slice(0,r).join("."))),ap=(f)=>{let Z=f.constructor&&f.constructor.prototype;return zf(Z)&&Z.hasOwnProperty("isPrototypeOf")},ue=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hf(f){if(f instanceof Date)return new Date(f);let Z=typeof FileList<"u"&&f instanceof FileList;if(ue&&(f instanceof Blob||Z))return f;let M=Array.isArray(f);if(!M&&!(zf(f)&&ap(f)))return f;let r=M?[]:Object.create(Object.getPrototypeOf(f));for(let a in f)if(Object.prototype.hasOwnProperty.call(f,a))r[a]=hf(f[a]);return r}var lr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},UZ={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},RZ={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ud="form",e0="root",i0=["__proto__","constructor","prototype"],Xa=(f)=>/^\w*$/.test(f),lf=(f)=>f===void 0,Ye=(f)=>f.split(/[.[\]'"]/g).filter(Boolean),U=(f,Z,M)=>{if(!Z||!zf(f))return M;let r=Xa(Z)?[Z]:Ye(Z);if(r.some((o)=>i0.includes(o)))return M;let a=r.reduce((o,e)=>{return _f(o)?void 0:o[e]},f);return lf(a)||a===f?lf(f[Z])?M:f[Z]:a},OZ=(f)=>typeof f==="boolean",YZ=(f)=>typeof f==="function",Zf=(f,Z,M)=>{let r=-1,a=Xa(Z)?[Z]:Ye(Z),o=a.length,e=o-1;while(++r<o){let i=a[r],t=M;if(r!==e){let c=f[i];t=zf(c)||Array.isArray(c)?c:!isNaN(+a[r+1])?[]:{}}if(i0.includes(i))return;f[i]=t,f=f[i]}},op=qf.default.createContext(null);op.displayName="HookFormControlContext";var ep=(f,Z,M,r=!0)=>{let a={};for(let o in f)Object.defineProperty(a,o,{get:()=>{let e=o;if(Z._proxyFormState[e]!==UZ.all)Z._proxyFormState[e]=!r||UZ.all;return M&&(M[e]=!0),f[e]}});return a},ip=ue?qf.default.useLayoutEffect:qf.default.useEffect;var Df=(f)=>typeof f==="string",tp=(f,Z,M,r,a)=>{if(Df(f))return r&&Z.watch.add(f),U(M,f,a);if(Array.isArray(f))return f.map((o)=>(r&&Z.watch.add(o),U(M,o)));return r&&(Z.watchAll=!0),M},kd=(f)=>_f(f)||!o0(f);function FZ(f,Z,M=new WeakSet){if(f===Z)return!0;if(kd(f)||kd(Z))return Object.is(f,Z);if(gM(f)&&gM(Z))return Object.is(f.getTime(),Z.getTime());let r=Object.keys(f),a=Object.keys(Z);if(r.length!==a.length)return!1;if(M.has(f)||M.has(Z))return!0;M.add(f),M.add(Z);for(let o of r){let e=f[o];if(!(o in Z))return!1;if(o!=="ref"){let i=Z[o];if(gM(e)&&gM(i)||(zf(e)||Array.isArray(e))&&(zf(i)||Array.isArray(i))?!FZ(e,i,M):!Object.is(e,i))return!1}}return!0}var dp=qf.default.createContext(null);dp.displayName="HookFormContext";var ke=(f,Z,M,r,a)=>Z?{...M[f],types:{...M[f]&&M[f].types?M[f].types:{},[r]:a||!0}}:{},t0=(f)=>Array.isArray(f)?f.filter(Boolean):[],pe=(f)=>Array.isArray(f)?f:[f],Is=()=>{let f=[];return{get observers(){return f},next:(a)=>{for(let o of f)o.next&&o.next(a)},subscribe:(a)=>{return f.push(a),{unsubscribe:()=>{f=f.filter((o)=>o!==a)}}},unsubscribe:()=>{f=[]}}};function d0(f,Z){let M={};for(let r in f)if(f.hasOwnProperty(r)){let a=f[r],o=Z[r];if(a&&zf(a)&&o){let e=d0(a,o);if(zf(e))M[r]=e}else if(f[r])M[r]=o}return M}var Bf=(f)=>zf(f)&&!Object.keys(f).length,Ld=(f)=>f.type==="file",me=(f)=>{if(!ue)return!1;let Z=f?f.ownerDocument:0;return f instanceof(Z&&Z.defaultView?Z.defaultView.HTMLElement:HTMLElement)},c0=(f)=>f.type==="select-multiple",Ad=(f)=>f.type==="radio",cp=(f)=>Ad(f)||Wa(f),Yd=(f)=>me(f)&&f.isConnected;function lp(f,Z){let M=Z.slice(0,-1).length,r=0;while(r<M){if(_f(f)){f=void 0;break}f=f[Z[r]],r++}return f}function zp(f){for(let Z in f)if(f.hasOwnProperty(Z)&&!lf(f[Z]))return!1;return!0}function kf(f,Z){if(Df(Z)&&Object.prototype.hasOwnProperty.call(f,Z))return delete f[Z],f;let M=Array.isArray(Z)?Z:Xa(Z)?[Z]:Ye(Z),r=M.length===1?f:lp(f,M),a=M.length-1,o=M[a];if(r)delete r[o];if(a!==0&&(zf(r)&&Bf(r)||Array.isArray(r)&&zp(r)))kf(f,M.slice(0,-1));return f}var np=(f)=>{for(let Z in f)if(YZ(f[Z]))return!0;return!1};function l0(f){return Array.isArray(f)||zf(f)&&!np(f)}function yd(f,Z={}){for(let M in f){let r=f[M];if(l0(r))Z[M]=Array.isArray(r)?[]:{},yd(r,Z[M]);else if(!lf(r))Z[M]=!0}return Z}function jd(f){if(f===!1)return;if(f===!0)return!0;if(Array.isArray(f)){let Z=f.map((M)=>jd(M));return Z.some((M)=>M!==void 0)?Z:void 0}if(zf(f)){let Z={};for(let M in f){let r=jd(f[M]);if(!lf(r))Z[M]=r}return Object.keys(Z).length?Z:void 0}return}function sM(f,Z,M){if(!M)M=yd(Z);for(let r in f){let a=f[r];if(l0(a))if(lf(Z)||kd(M[r]))M[r]=yd(a,Array.isArray(a)?[]:{});else sM(a,_f(Z)?{}:Z[r],M[r]);else{let o=Z[r];M[r]=!FZ(a,o)}}return jd(M)||{}}var Ss={value:!1,isValid:!1},Vs={value:!0,isValid:!0},z0=(f)=>{if(Array.isArray(f)){if(f.length>1){let Z=f.filter((M)=>M&&M.checked&&!M.disabled).map((M)=>M.value);return{value:Z,isValid:!!Z.length}}return f[0].checked&&!f[0].disabled?f[0].attributes&&!lf(f[0].attributes.value)?lf(f[0].value)||f[0].value===""?Vs:{value:f[0].value,isValid:!0}:Vs:Ss}return Ss},n0=(f,{valueAsNumber:Z,valueAsDate:M,setValueAs:r})=>lf(f)?f:Z?f===""?NaN:f?+f:f:M&&Df(f)?new Date(f):r?r(f):f,Cs={isValid:!1,value:null},v0=(f)=>Array.isArray(f)?f.reduce((Z,M)=>M&&M.checked&&!M.disabled?{isValid:!0,value:M.value}:Z,Cs):Cs;function $s(f){let Z=f.ref;if(Ld(Z))return Z.files;if(Ad(Z))return v0(f.refs).value;if(c0(Z))return[...Z.selectedOptions].map(({value:M})=>M);if(Wa(Z))return z0(f.refs).value;return n0(lf(Z.value)?f.ref.value:Z.value,f)}var vp=(f,Z,M,r)=>{let a={};for(let o of f){let e=U(Z,o);e&&Zf(a,o,e._f)}return{criteriaMode:M,names:[...f],fields:a,shouldUseNativeValidation:r}},xe=(f)=>f instanceof RegExp,La=(f)=>lf(f)?f:xe(f)?f.source:zf(f)?xe(f.value)?f.value.source:f.value:f,Ps=(f)=>({isOnSubmit:!f||f===UZ.onSubmit,isOnBlur:f===UZ.onBlur,isOnChange:f===UZ.onChange,isOnAll:f===UZ.all,isOnTouch:f===UZ.onTouched}),Es="AsyncFunction",sp=(f)=>!!f&&!!f.validate&&!!(YZ(f.validate)&&f.validate.constructor.name===Es||zf(f.validate)&&Object.values(f.validate).find((Z)=>Z.constructor.name===Es)),gp=(f)=>f.mount&&(f.required||f.min||f.max||f.maxLength||f.minLength||f.pattern||f.validate),f0=(f,Z,M)=>!M&&(Z.watchAll||Z.watch.has(f)||[...Z.watch].some((r)=>f.startsWith(`${r}.`))),Aa=(f,Z,M,r)=>{for(let a of M||Object.keys(f)){let o=U(f,a);if(o){let{_f:e,...i}=o;if(e){if(e.refs&&e.refs[0]&&Z(e.refs[0],a)&&!r)return!0;else if(e.ref&&Z(e.ref,e.name)&&!r)return!0;else if(Aa(i,Z))break}else if(zf(i)){if(Aa(i,Z))break}}}return};function Z0(f,Z,M){let r=U(f,M);if(r||Xa(M))return{error:r,name:M};let a=M.split(".");while(a.length){let o=a.join("."),e=U(Z,o),i=U(f,o);if(e&&!Array.isArray(e)&&M!==o)return{name:M};if(i&&i.type)return{name:o,error:i};if(i&&i.root&&i.root.type)return{name:`${o}.root`,error:i.root};a.pop()}return{name:M}}var wp=(f,Z,M,r)=>{M(f);let{name:a,...o}=f;return Bf(o)||r&&Object.keys(o).length>=Object.keys(Z).length||Object.keys(o).find((e)=>Z[e]===(!r||UZ.all))},bp=(f,Z,M)=>!f||!Z||f===Z||pe(f).some((r)=>r&&(M?r===Z:r.startsWith(Z)||Z.startsWith(r))),hp=(f,Z,M,r,a)=>{if(a.isOnAll)return!1;else if(!M&&a.isOnTouch)return!(Z||f);else if(M?r.isOnBlur:a.isOnBlur)return!f;else if(M?r.isOnChange:a.isOnChange)return f;return!0},pp=(f,Z)=>!t0(U(f,Z)).length&&kf(f,Z),M0=(f,Z,M)=>{let r=U(f,M),a=Array.isArray(r)?r:[];return Zf(a,e0,Z[M]),Zf(f,M,a),f};function r0(f,Z,M="validate"){if(Df(f)||Array.isArray(f)&&f.every(Df)||OZ(f)&&!f)return{type:M,message:Df(f)?f:"",ref:Z}}var zr=(f)=>zf(f)&&!xe(f)?f:{value:f,message:""},a0=async(f,Z,M,r,a,o)=>{let{ref:e,refs:i,required:t,maxLength:c,minLength:l,min:g,max:s,pattern:z,validate:u,name:k,valueAsNumber:R,mount:n}=f._f,d=U(M,k);if(!n||Z.has(k))return{};let b=i?i[0]:e,m=(S)=>{if(a&&b.reportValidity)b.setCustomValidity(OZ(S)?"":S||""),b.reportValidity()},x={},J=Ad(e),X=Wa(e),Q=J||X,B=(R||Ld(e))&&lf(e.value)&&lf(d)||me(e)&&e.value===""||d===""||Array.isArray(d)&&!d.length,H=ke.bind(null,k,r,x),Xf=(S,q,O,C=RZ.maxLength,nf=RZ.minLength)=>{let kZ=S?q:O;x[k]={type:S?C:nf,message:kZ,ref:e,...H(S?C:nf,kZ)}};if(o?!Array.isArray(d)||!d.length:t&&(!Q&&(B||_f(d))||OZ(d)&&!d||X&&!z0(i).isValid||J&&!v0(i).isValid)){let{value:S,message:q}=Df(t)?{value:!!t,message:t}:zr(t);if(S){if(x[k]={type:RZ.required,message:q,ref:b,...H(RZ.required,q)},!r)return m(q),x}}if(!B&&(!_f(g)||!_f(s))){let S,q,O=zr(s),C=zr(g);if(!_f(d)&&!isNaN(d)){let nf=e.valueAsNumber||(d?+d:d);if(!_f(O.value))S=nf>O.value;if(!_f(C.value))q=nf<C.value}else{let nf=e.valueAsDate||new Date(d),kZ=(Ra)=>new Date(new Date().toDateString()+" "+Ra),wM=e.type=="time",sr=e.type=="week";if(Df(O.value)&&d)S=wM?kZ(d)>kZ(O.value):sr?d>O.value:nf>new Date(O.value);if(Df(C.value)&&d)q=wM?kZ(d)<kZ(C.value):sr?d<C.value:nf<new Date(C.value)}if(S||q){if(Xf(!!S,O.message,C.message,RZ.max,RZ.min),!r)return m(x[k].message),x}}if((c||l)&&!B&&(Df(d)||o&&Array.isArray(d))){let S=zr(c),q=zr(l),O=!_f(S.value)&&d.length>+S.value,C=!_f(q.value)&&d.length<+q.value;if(O||C){if(Xf(O,S.message,q.message),!r)return m(x[k].message),x}}if(z&&!B&&Df(d)){let{value:S,message:q}=zr(z);if(xe(S)&&!d.match(S)){if(x[k]={type:RZ.pattern,message:q,ref:e,...H(RZ.pattern,q)},!r)return m(q),x}}if(u){if(YZ(u)){let S=await u(d,M),q=r0(S,b);if(q){if(x[k]={...q,...H(RZ.validate,q.message)},!r)return m(q.message),x}}else if(zf(u)){let S={};for(let q in u){if(!Bf(S)&&!r)break;let O=r0(await u[q](d,M),b,q);if(O){if(S={...O,...H(q,O.message)},m(O.message),r)x[k]=S}}if(!Bf(S)){if(x[k]={ref:b,...S},!r)return x}}}return m(!0),x},mp={mode:UZ.onSubmit,reValidateMode:UZ.onChange,shouldFocusError:!0},s0={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function xp(f={}){let Z={...mp,...f},M={...hf(s0),isLoading:YZ(Z.defaultValues),errors:Z.errors||{},disabled:Z.disabled||!1},r={},a=zf(Z.defaultValues)||zf(Z.values)?hf(Z.defaultValues||Z.values)||{}:{},o=Z.shouldUnregister?{}:hf(a),e={action:!1,mount:!1,watch:!1,keepIsValid:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},t,c=0,l={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={...l},s={...g},z={array:Is(),state:Is()},u=Z.criteriaMode===UZ.all,k=(v)=>(h)=>{clearTimeout(c),c=setTimeout(v,h)},R=async(v)=>{if(e.keepIsValid)return;if(!Z.disabled&&(g.isValid||s.isValid||v)){let h;if(Z.resolver)h=Bf((await H()).errors),n();else h=await q({fields:r,onlyCheckValid:!0,eventType:lr.VALID});if(h!==M.isValid)z.state.next({isValid:h})}},n=(v,h)=>{if(!Z.disabled&&(g.isValidating||g.validatingFields||s.isValidating||s.validatingFields))(v||Array.from(i.mount)).forEach((p)=>{if(p)h?Zf(M.validatingFields,p,h):kf(M.validatingFields,p)}),z.state.next({validatingFields:M.validatingFields,isValidating:!Bf(M.validatingFields)})},d=()=>{M.dirtyFields=sM(a,o)},b=(v,h=[],p,L,W=!0,G=!0)=>{if(L&&p&&!Z.disabled){if(e.action=!0,G&&Array.isArray(U(r,v))){let A=p(U(r,v),L.argA,L.argB);W&&Zf(r,v,A)}if(G&&Array.isArray(U(M.errors,v))){let A=p(U(M.errors,v),L.argA,L.argB);W&&Zf(M.errors,v,A),pp(M.errors,v)}if((g.touchedFields||s.touchedFields)&&G&&Array.isArray(U(M.touchedFields,v))){let A=p(U(M.touchedFields,v),L.argA,L.argB);W&&Zf(M.touchedFields,v,A)}if(g.dirtyFields||s.dirtyFields)d();z.state.next({name:v,isDirty:C(v,h),dirtyFields:M.dirtyFields,errors:M.errors,isValid:M.isValid})}else Zf(o,v,h)},m=(v,h)=>{Zf(M.errors,v,h),z.state.next({errors:M.errors})},x=(v)=>{M.errors=v,z.state.next({errors:M.errors,isValid:!1})},J=(v)=>{let h=Xa(v)?[v]:Ye(v),p=o,L=a;for(let W=0;W<h.length-1;W++){let G=h[W];if(p=_f(p)?p:p[G],L=_f(L)?L:L[G],p===null&&L!==null)return!0}return!1},X=(v,h,p,L)=>{let W=U(r,v);if(W){if(J(v))return;let G=lf(U(o,v)),A=U(o,v,lf(p)?U(a,v):p);if(lf(A)||L&&L.defaultChecked||h?Zf(o,v,h?A:$s(W._f)):wM(v,A),e.mount&&!e.action){if(R(),G&&M.isDirty&&(g.isDirty||s.isDirty)){if(!C())M.isDirty=!1,z.state.next({...M})}}}},Q=(v,h,p,L,W)=>{let G=!1,A=!1,K={name:v};if(!Z.disabled){if(!p||L){if(g.isDirty||s.isDirty)A=M.isDirty,M.isDirty=K.isDirty=C(),G=A!==K.isDirty;let T=FZ(U(a,v),h);if(A=!!U(M.dirtyFields,v),T!==M.isDirty)M.dirtyFields=sM(a,o);else T?kf(M.dirtyFields,v):Zf(M.dirtyFields,v,!0);K.dirtyFields=M.dirtyFields,G=G||(g.dirtyFields||s.dirtyFields)&&A!==!T}if(p){let T=U(M.touchedFields,v);if(!T)Zf(M.touchedFields,v,p),K.touchedFields=M.touchedFields,G=G||(g.touchedFields||s.touchedFields)&&T!==p}G&&W&&z.state.next(K)}return G?K:{}},B=(v,h,p,L)=>{let W=U(M.errors,v),G=(g.isValid||s.isValid)&&OZ(h)&&M.isValid!==h;if(Z.delayError&&p)t=k(()=>m(v,p)),t(Z.delayError);else clearTimeout(c),t=null,p?Zf(M.errors,v,p):kf(M.errors,v);if((p?!FZ(W,p):W)||!Bf(L)||G){let A={...L,...G&&OZ(h)?{isValid:h}:{},errors:M.errors,name:v};M={...M,...A},z.state.next(A)}},H=async(v)=>{return n(v,!0),await Z.resolver(o,Z.context,vp(v||i.mount,r,Z.criteriaMode,Z.shouldUseNativeValidation))},Xf=async(v)=>{let{errors:h}=await H(v);if(n(v),v)for(let p of v){let L=U(h,p);L?i.array.has(p)&&zf(L)&&!Object.keys(L).some((W)=>!Number.isNaN(Number(W)))?M0(M.errors,{[p]:L},p):Zf(M.errors,p,L):kf(M.errors,p)}else M.errors=h;return h},S=async({name:v,eventType:h})=>{if(f.validate){let p=await f.validate({formValues:o,formState:M,name:v,eventType:h});if(zf(p))for(let L in p){let W=p[L];if(W)Ua(`${ud}.${L}`,{message:Df(W.message)?W.message:"",type:W.type||RZ.validate})}else if(Df(p)||!p)Ua(ud,{message:p||"",type:RZ.validate});else Qd(ud);return p}return!0},q=async({fields:v,onlyCheckValid:h,name:p,eventType:L,context:W={valid:!0,runRootValidation:!1}})=>{if(f.validate){if(W.runRootValidation=!0,!await S({name:p,eventType:L})){if(W.valid=!1,h)return W.valid}}for(let G in v){let A=v[G];if(A){let{_f:K,...T}=A;if(K){let pf=i.array.has(K.name),lZ=A._f&&sp(A._f),yZ=g.validatingFields||g.isValidating||s.validatingFields||s.isValidating;if(lZ&&yZ)n([K.name],!0);let N8=await a0(A,i.disabled,o,u,Z.shouldUseNativeValidation&&!h,pf);if(lZ&&yZ)n([K.name]);if(N8[K.name]){if(W.valid=!1,h)break}if(!h&&(U(N8,K.name)?pf?M0(M.errors,N8,K.name):Zf(M.errors,K.name,N8[K.name]):kf(M.errors,K.name)),f.shouldUseNativeValidation&&N8[K.name])break}!Bf(T)&&await q({context:W,onlyCheckValid:h,fields:T,name:G,eventType:L})}}return W.valid},O=()=>{for(let v of i.unMount){let h=U(r,v);h&&(h._f.refs?h._f.refs.every((p)=>!Yd(p)):!Yd(h._f.ref))&&Ue(v)}i.unMount=new Set},C=(v,h)=>!Z.disabled&&(v&&h&&Zf(o,v,h),!FZ(Ud(),a)),nf=(v,h,p)=>tp(v,i,{...e.mount?o:lf(h)?a:Df(v)?{[v]:h}:h},p,h),kZ=(v)=>t0(U(e.mount?o:a,v,Z.shouldUnregister?U(a,v,[]):[])),wM=(v,h,p={},L=!1)=>{let W=U(r,v),G=h;if(W){let A=W._f;if(A){if(!A.disabled&&Zf(o,v,n0(h,A)),G=me(A.ref)&&_f(h)?"":h,c0(A.ref))[...A.ref.options].forEach((K)=>K.selected=G.includes(K.value));else if(A.refs)if(Wa(A.ref))A.refs.forEach((K)=>{if(!K.defaultChecked||!K.disabled)if(Array.isArray(G))K.checked=!!G.find((T)=>T===K.value);else K.checked=G===K.value||!!G});else A.refs.forEach((K)=>K.checked=K.value===G);else if(Ld(A.ref))A.ref.value="";else if(A.ref.value=G,!A.ref.type)z.state.next({name:v,values:L?o:hf(o)})}}(p.shouldDirty||p.shouldTouch)&&Q(v,G,p.shouldTouch,p.shouldDirty,!0),p.shouldValidate&&Re(v)},sr=(v,h,p,L=!1)=>{for(let W in h){if(!h.hasOwnProperty(W))return;let G=h[W],A=v+"."+W,K=U(r,A);(i.array.has(v)||zf(G)||K&&!K._f)&&!gM(G)?sr(A,G,p,L):wM(A,G,p,L)}},Ra=(v,h,p,L)=>{let W=U(r,v),G=i.array.has(v),A=L?h:hf(h),K=U(o,v),T=FZ(K,A);if(!T)Zf(o,v,A);if(G){if(z.array.next({name:v,values:L?o:hf(o)}),(g.isDirty||g.dirtyFields||s.isDirty||s.dirtyFields)&&p.shouldDirty)d(),z.state.next({name:v,dirtyFields:M.dirtyFields,isDirty:C(v,A)})}else{let pf=Array.isArray(A)&&!A.length||Bf(A);if(!W||W._f||_f(A)||pf)wM(v,A,p,L);else sr(v,A,p,L)}if(!T){let pf=f0(v,i),lZ=L?o:hf(o);z.state.next({...pf&&M,name:e.mount||pf?v:void 0,values:lZ})}},gr=(v,h,p={})=>Ra(v,h,p,!1),cg=(v,h={})=>{let p=YZ(v)?v(o):v;if(!FZ(o,p)){o={...o,...p};for(let L of i.mount)Ra(L,U(p,L),h,!0);if(z.state.next({...M,name:void 0,type:void 0,values:o}),h.shouldValidate)R()}},Gd=async(v)=>{e.mount=!0;let h=v.target,p=h.name,L=!0,W=U(r,p),G=(T)=>{L=Number.isNaN(T)||gM(T)&&isNaN(T.getTime())||FZ(T,U(o,p,T))},A=Ps(Z.mode),K=Ps(Z.reValidateMode);if(W){let T,pf,lZ=h.type?$s(W._f):Mp(v),yZ=v.type===lr.BLUR||v.type===lr.FOCUS_OUT,N8=!gp(W._f)&&!f.validate&&!Z.resolver&&!U(M.errors,p)&&!W._f.deps||hp(yZ,U(M.touchedFields,p),M.isSubmitted,K,A),Be=f0(p,i,yZ);if(Zf(o,p,lZ),yZ){if(!h||!h.readOnly)W._f.onBlur&&W._f.onBlur(v),t&&t(0)}else if(W._f.onChange)W._f.onChange(v);let _e=Q(p,lZ,yZ),wg=!Bf(_e)||Be;if(!yZ&&z.state.next({name:p,type:v.type,values:hf(o)}),N8){if(g.isValid||s.isValid){if(Z.mode==="onBlur"){if(yZ)R()}else if(!yZ)R()}return wg&&z.state.next({name:p,...Be?{}:_e})}if(!Z.resolver&&f.validate)await S({name:p,eventType:v.type});if(!yZ&&Be&&z.state.next({...M}),Z.resolver){let{errors:Fd}=await H([p]);if(n([p]),G(lZ),L){let bg=Z0(M.errors,r,p),Nd=Z0(Fd,r,bg.name||p);T=Nd.error,p=Nd.name,pf=Bf(Fd)}}else if(n([p],!0),T=(await a0(W,i.disabled,o,u,Z.shouldUseNativeValidation))[p],n([p]),G(lZ),L){if(T)pf=!1;else if(g.isValid||s.isValid)pf=await q({fields:r,onlyCheckValid:!0,name:p,eventType:v.type})}if(L)W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&Re(W._f.deps),B(p,pf,T,_e)}},Rd=(v,h)=>{if(U(M.errors,h)&&v.focus)return v.focus(),1;return},Re=async(v,h={})=>{let p,L,W=pe(v);if(Z.resolver){let G=await Xf(lf(v)?v:W);p=Bf(G),L=v?!W.some((A)=>U(G,A)):p}else if(v)L=(await Promise.all(W.map(async(G)=>{let A=U(r,G);return await q({fields:A&&A._f?{[G]:A}:A,eventType:lr.TRIGGER})}))).every(Boolean),!(!L&&!M.isValid)&&R();else L=p=await q({fields:r,name:v,eventType:lr.TRIGGER});return z.state.next({...!Df(v)||(g.isValid||s.isValid)&&p!==M.isValid?{}:{name:v},...Z.resolver||!v?{isValid:p}:{},errors:M.errors}),h.shouldFocus&&!L&&Aa(r,Rd,v?W:i.mount),L},Ud=(v,h)=>{let p={...e.mount?o:a};if(h)p=d0(h.dirtyFields?M.dirtyFields:M.touchedFields,p);return lf(v)?p:Df(v)?U(p,v):v.map((L)=>U(p,L))},Kd=(v,h)=>({invalid:!!U((h||M).errors,v),isDirty:!!U((h||M).dirtyFields,v),error:U((h||M).errors,v),isValidating:!!U(M.validatingFields,v),isTouched:!!U((h||M).touchedFields,v)}),Qd=(v)=>{let h=v?pe(v):void 0;if(h===null||h===void 0||h.forEach((p)=>kf(M.errors,p)),h)h.forEach((p)=>{z.state.next({name:p,errors:M.errors})});else z.state.next({errors:{}})},Ua=(v,h,p)=>{let L=(U(r,v,{_f:{}})._f||{}).ref,W=U(M.errors,v)||{},{ref:G,message:A,type:K,...T}=W;Zf(M.errors,v,{...T,...h,ref:L}),z.state.next({name:v,errors:M.errors,isValid:!1}),p&&p.shouldFocus&&L&&L.focus&&L.focus()},lg=(v,h)=>YZ(v)?z.state.subscribe({next:(p)=>("values"in p)&&v(p.values||nf(void 0,h),p)}):nf(v,h,!0),Bd=(v)=>z.state.subscribe({next:(h)=>{if(bp(v.name,h.name,v.exact)&&wp(h,v.formState||g,gg,v.reRenderRoot)){let p={...o};v.callback({values:p,...M,...h,defaultValues:a})}}}).unsubscribe,zg=(v)=>{return e.mount=!0,s={...s,...v.formState},Bd({...v,formState:{...l,...v.formState}})},Ue=(v,h={})=>{for(let p of v?pe(v):i.mount){if(i.mount.delete(p),i.array.delete(p),!h.keepValue)kf(r,p),kf(o,p);!h.keepError&&kf(M.errors,p),!h.keepDirty&&kf(M.dirtyFields,p),!h.keepTouched&&kf(M.touchedFields,p),!h.keepIsValidating&&kf(M.validatingFields,p),!Z.shouldUnregister&&!h.keepDefaultValue&&kf(a,p)}z.state.next({values:hf(o)}),z.state.next({...M,...!h.keepDirty?{}:{isDirty:C()}}),!h.keepIsValid&&R()},_d=({disabled:v,name:h})=>{if(OZ(v)&&e.mount||!!v||i.disabled.has(h)){let W=i.disabled.has(h)!==!!v;v?i.disabled.add(h):i.disabled.delete(h),W&&e.mount&&!e.action&&R()}},Ke=(v,h={})=>{let p=U(r,v),L=OZ(h.disabled)||OZ(Z.disabled),W=!i.registerName.has(v)&&p&&p._f&&!p._f.mount;if(Zf(r,v,{...p||{},_f:{...p&&p._f?p._f:{ref:{name:v}},name:v,mount:!0,...h}}),i.mount.add(v),p&&!W)_d({disabled:OZ(h.disabled)?h.disabled:Z.disabled,name:v});else X(v,!0,h.value);return{...L?{disabled:h.disabled||Z.disabled}:{},...Z.progressive?{required:!!h.required,min:La(h.min),max:La(h.max),minLength:La(h.minLength),maxLength:La(h.maxLength),pattern:La(h.pattern)}:{},name:v,onChange:Gd,onBlur:Gd,ref:(G)=>{if(G){i.registerName.add(v),Ke(v,h),i.registerName.delete(v),p=U(r,v);let A=lf(G.value)?G.querySelectorAll?G.querySelectorAll("input,select,textarea")[0]||G:G:G,K=cp(A),T=p._f.refs||[];if(K?T.find((pf)=>pf===A):A===p._f.ref)return;Zf(r,v,{_f:{...p._f,...K?{refs:[...T.filter(Yd),A,...Array.isArray(U(a,v))?[{}]:[]],ref:{type:A.type,name:v}}:{ref:A}}}),X(v,!1,void 0,A)}else{if(p=U(r,v,{}),p._f)p._f.mount=!1;(Z.shouldUnregister||h.shouldUnregister)&&!(rp(i.array,v)&&e.action)&&i.unMount.add(v)}}}},Qe=()=>Z.shouldFocusError&&!Z.shouldUseNativeValidation&&Aa(r,Rd,i.mount),ng=(v)=>{if(OZ(v))z.state.next({disabled:v}),Aa(r,(h,p)=>{let L=U(r,p);if(L){if(h.disabled=L._f.disabled||v,Array.isArray(L._f.refs))L._f.refs.forEach((W)=>{W.disabled=L._f.disabled||v})}},0,!1)},Hd=(v,h)=>async(p)=>{let L=void 0;if(p)p.preventDefault&&p.preventDefault(),p.persist&&p.persist();let W=hf(o);if(z.state.next({isSubmitting:!0}),Z.resolver){let{errors:G,values:A}=await H();n(),M.errors=G,W=hf(A)}else await q({fields:r,eventType:lr.SUBMIT});if(i.disabled.size)for(let G of i.disabled)kf(W,G);if(kf(M.errors,e0),Bf(M.errors)){z.state.next({errors:{}});try{await v(W,p)}catch(G){L=G}}else{if(h)await h({...M.errors},p);Qe(),setTimeout(Qe)}if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bf(M.errors)&&!L,submitCount:M.submitCount+1,errors:M.errors}),L)throw L},vg=(v,h={})=>{if(U(r,v)){if(lf(h.defaultValue))gr(v,hf(U(a,v)));else gr(v,h.defaultValue),Zf(a,v,hf(h.defaultValue));if(!h.keepTouched)kf(M.touchedFields,v);if(!h.keepDirty)kf(M.dirtyFields,v),M.isDirty=h.defaultValue?C(v,hf(U(a,v))):C();if(!h.keepError)kf(M.errors,v),g.isValid&&R();z.state.next({...M})}},qd=(v,h={})=>{let p=v?hf(v):a,L=hf(p),W=Bf(v),G=L;if(!h.keepDefaultValues)a=p;if(!h.keepValues){if(h.keepDirtyValues){let A=new Set([...i.mount,...Object.keys(sM(a,o))]);for(let K of Array.from(A)){let T=U(M.dirtyFields,K),pf=U(o,K),lZ=U(G,K);if(T&&!lf(pf))Zf(G,K,pf);else if(!T&&!lf(lZ))gr(K,lZ)}}else{if(ue&&lf(v))for(let A of i.mount){let K=U(r,A);if(K&&K._f){let T=Array.isArray(K._f.refs)?K._f.refs[0]:K._f.ref;if(me(T)){let pf=T.closest("form");if(pf){pf.reset();break}}}}if(h.keepFieldsRef)for(let A of i.mount)gr(A,U(G,A));else r={}}if(Z.shouldUnregister){if(o=h.keepDefaultValues?hf(a):{},h.keepFieldsRef)for(let A of i.mount)Zf(o,A,U(G,A))}else o=hf(G);z.array.next({values:{...G}}),z.state.next({values:{...G}})}if(i={mount:h.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},e.mount=!g.isValid||!!h.keepIsValid||!!h.keepDirtyValues||!Z.shouldUnregister&&!Bf(G),e.watch=!!Z.shouldUnregister,e.keepIsValid=!!h.keepIsValid,e.action=!1,!h.keepErrors)M.errors={};z.state.next({submitCount:h.keepSubmitCount?M.submitCount:0,isDirty:W?!1:h.keepDirty?M.isDirty:h.keepValues?C():!!(h.keepDefaultValues&&!FZ(v,a)),isSubmitted:h.keepIsSubmitted?M.isSubmitted:!1,dirtyFields:W?{}:h.keepDirtyValues?h.keepDefaultValues&&o?sM(a,o):M.dirtyFields:h.keepDefaultValues&&v?sM(a,v):h.keepDirty?M.dirtyFields:{},touchedFields:h.keepTouched?M.touchedFields:{},errors:h.keepErrors?M.errors:{},isSubmitSuccessful:h.keepIsSubmitSuccessful?M.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},Dd=(v,h)=>qd(YZ(v)?v(o):v,{...Z.resetOptions,...h}),sg=(v,h={})=>{let p=U(r,v),L=p&&p._f;if(L){let W=L.refs?L.refs[0]:L.ref;if(W.focus)setTimeout(()=>{W.focus(),h.shouldSelect&&YZ(W.select)&&W.select()})}},gg=(v)=>{M={...M,...v}},Od={control:{register:Ke,unregister:Ue,getFieldState:Kd,handleSubmit:Hd,setError:Ua,_subscribe:Bd,_runSchema:H,_updateIsValidating:n,_focusError:Qe,_getWatch:nf,_getDirty:C,_setValid:R,_setFieldArray:b,_setDisabledField:_d,_setErrors:x,_getFieldArray:kZ,_reset:qd,_resetDefaultValues:()=>YZ(Z.defaultValues)&&Z.defaultValues().then((v)=>{Dd(v,Z.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:O,_disableForm:ng,_subjects:z,_proxyFormState:g,get _fields(){return r},get _formValues(){return o},get _state(){return e},set _state(v){e=v},get _defaultValues(){return a},get _names(){return i},set _names(v){i=v},get _formState(){return M},get _options(){return Z},set _options(v){Z={...Z,...v}}},subscribe:zg,trigger:Re,register:Ke,handleSubmit:Hd,watch:lg,setValue:gr,setValues:cg,getValues:Ud,reset:Dd,resetField:vg,resetDefaultValues:(v,h={})=>{if(a=hf(v),!h.keepDirty){let p=sM(a,o);M.dirtyFields=p,M.isDirty=!Bf(p)}if(!h.keepIsValid)R();z.state.next({...M,defaultValues:a})},clearErrors:Qd,unregister:Ue,setError:Ua,setFocus:sg,getFieldState:Kd};return{...Od,formControl:Od}}function ye(f={}){let Z=qf.default.useRef(void 0),M=qf.default.useRef(void 0),[r,a]=qf.default.useState(()=>({...hf(s0),isLoading:YZ(f.defaultValues),errors:f.errors||{},disabled:f.disabled||!1,defaultValues:YZ(f.defaultValues)?void 0:f.defaultValues}));if(!Z.current)if(f.formControl){if(Z.current={...f.formControl,formState:r},f.defaultValues&&!YZ(f.defaultValues))f.formControl.reset(f.defaultValues,f.resetOptions)}else{let{formControl:e,...i}=xp(f);Z.current={...i,formState:r}}let o=Z.current.control;return o._options=f,ip(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a((i)=>({...i,isReady:!0})),o._formState.isReady=!0,e},[o]),qf.default.useEffect(()=>o._disableForm(f.disabled),[o,f.disabled]),qf.default.useEffect(()=>{if(f.mode)o._options.mode=f.mode;if(f.reValidateMode)o._options.reValidateMode=f.reValidateMode},[o,f.mode,f.reValidateMode]),qf.default.useEffect(()=>{if(f.errors)o._setErrors(f.errors),o._focusError()},[o,f.errors]),qf.default.useEffect(()=>{f.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,f.shouldUnregister]),qf.default.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();if(e!==r.isDirty)o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),qf.default.useEffect(()=>{var e;if(f.values&&!FZ(f.values,M.current)){if(o._reset(f.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((e=o._options.resetOptions)===null||e===void 0?void 0:e.keepIsValid))o._setValid();M.current=f.values,a((i)=>({...i}))}else o._resetDefaultValues()},[o,f.values]),qf.default.useEffect(()=>{if(!o._state.mount)o._setValid(),o._state.mount=!0;if(o._state.watch)o._state.watch=!1,o._subjects.state.next({...o._formState});o._removeUnmounted()}),Z.current.formState=qf.default.useMemo(()=>ep(r,o),[o,r]),Z.current}var g0=(f,Z,M)=>{if(f&&"reportValidity"in f){let r=U(M,Z);f.setCustomValidity(r&&r.message||""),f.reportValidity()}},je=(f,Z)=>{for(let M in Z.fields){let r=Z.fields[M];r&&r.ref&&"reportValidity"in r.ref?g0(r.ref,M,f):r&&r.refs&&r.refs.forEach((a)=>g0(a,M,f))}},Wd=(f,Z)=>{Z.shouldUseNativeValidation&&je(f,Z);let M={};for(let r in f){let a=U(Z.fields,r),o=Object.assign(f[r]||{},{ref:a&&a.ref});if(up(Z.names||Object.keys(f),r)){let e=Object.assign({},U(M,r));Zf(e,"root",o),Zf(M,r,e)}else Zf(M,r,o)}return M},up=(f,Z)=>{let M=w0(Z).replace(/[.*+?^${}()|\\]/g,"\\$&");return f.some((r)=>w0(r).match(`^${M}\\.\\d+`))};function w0(f){return f.replace(/[\[\]]/g,"")}function Xd(){return Xd=Object.assign?Object.assign.bind():function(f){for(var Z=1;Z<arguments.length;Z++){var M=arguments[Z];for(var r in M)({}).hasOwnProperty.call(M,r)&&(f[r]=M[r])}return f},Xd.apply(null,arguments)}function b0(f,Z){try{var M=f()}catch(r){return Z(r)}return M&&M.then?M.then(void 0,Z):M}function Yp(f,Z){for(var M={};f.length;){var r=f[0],a=r.code,o=r.message,e=r.path.join(".");if(!M[e])if("unionErrors"in r){var i=r.unionErrors[0].errors[0];M[e]={message:i.message,type:i.code}}else M[e]={message:o,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(g){return f.push(g)})}),Z){var t=M[e].types,c=t&&t[r.code];M[e]=ke(e,Z,M,a,c?[].concat(c,r.message):r.message)}f.shift()}return M}function kp(f,Z){for(var M={},r=function(){var a=f[0],o=a.code,e=a.message,i=a.path.join(".");if(!M[i])if(a.code==="invalid_union"&&a.errors.length>0){var t=a.errors[0][0];M[i]={message:t.message,type:t.code}}else M[i]={message:e,type:o};if(a.code==="invalid_union"&&a.errors.forEach(function(g){return g.forEach(function(s){return f.push(Xd({},s,{path:[].concat(a.path,s.path)}))})}),Z){var c=M[i].types,l=c&&c[a.code];M[i]=ke(i,Z,M,o,l?[].concat(l,a.message):a.message)}f.shift()};f.length;)r();return M}function Le(f,Z,M){if(M===void 0&&(M={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(f))return function(r,a,o){try{return Promise.resolve(b0(function(){return Promise.resolve(f[M.mode==="sync"?"parse":"parseAsync"](r,Z)).then(function(e){return o.shouldUseNativeValidation&&je({},o),{errors:{},values:M.raw?Object.assign({},r):e}})},function(e){if(function(i){return Array.isArray(i==null?void 0:i.issues)}(e))return{values:{},errors:Wd(Yp(e.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw e}))}catch(e){return Promise.reject(e)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(f))return function(r,a,o){try{return Promise.resolve(b0(function(){return Promise.resolve((M.mode==="sync"?p0:m0)(f,r,Z)).then(function(e){return o.shouldUseNativeValidation&&je({},o),{errors:{},values:M.raw?Object.assign({},r):e}})},function(e){if(function(i){return i instanceof h0}(e))return{values:{},errors:Wd(kp(e.issues,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}var Ae=Qf(Nf(),1);var yp=z8.object({email:z8.string().email(y.invalid_email_address()),password:z8.string().min(3,y.password_min_length()),inviteCode:z8.string().optional()});function jp(){let f=xZ(),M=Jd.useSearch().inviteCode,[r,a]=Ae.useState(null),[o,e]=Ae.useState(!1),[i,t]=Ae.useState(()=>{return ja()==="zh"?"zh":"en"}),c=(d)=>{t(d),be(d)},{data:l}=GZ({queryKey:["invite",M],queryFn:async()=>{let d=await Hf.api.invite[":code"].$get({param:{code:M}});if(!d.ok)throw Error("Failed to fetch invite info");return await d.json()},enabled:!!M}),{data:g,isLoading:s}=GZ({queryKey:["/signup-info"],queryFn:async()=>{let d=await Hf.api["signup-info"].$get();if(!d.ok)throw Error("Failed to fetch signup info");return await d.json()}}),z=uZ((d)=>d.setUser),u=ye({resolver:Le(yp),defaultValues:{inviteCode:M}}),k=async(d)=>{e(!0),a(null);let{data:b,error:m}=await Tv.email({email:d.email,password:d.password,name:d.email,inviteCode:d.inviteCode,locale:i});if(e(!1),m){a(m.message||y.signup_failed());return}if(b)z(b.user),f({to:"/"})};if(s)return w("div",{className:"flex items-center justify-center min-h-screen bg-zinc-100/80 dark:bg-black",children:j("div",{className:"relative flex flex-col items-center",children:[w(vM,{className:"h-16 w-16 animate-pulse mb-4 text-rose-500 shadow-xl rounded-2xl"}),w(Tf,{className:"h-6 w-6 animate-spin text-rose-500/70"})]})});let R=g?.initialized===!1;if(!R&&!M)return j("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:[w("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"}),w("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"}),j(u0,{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:[j(Y0,{className:"text-center pt-8 pb-4",children:[w("div",{className:"flex justify-center mb-4",children:w(vM,{className:"h-16 w-16 shadow-lg shadow-rose-500/10 rounded-2xl"})}),w(k0,{className:"text-2xl font-bold tracking-tight bg-gradient-to-r from-rose-500 to-orange-500 bg-clip-text text-transparent",children:y.registration_disabled()}),w(y0,{className:"mt-2 text-zinc-600 dark:text-zinc-400",children:y.registration_disabled_description()})]}),w(j0,{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:j("p",{className:"text-zinc-500 dark:text-zinc-400",children:[y.already_have_account()," ",j("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:[y.login_here()," ",w(Ja,{className:"w-3.5 h-3.5"})]})]})})]})]});return j(he,{children:[j("div",{className:"mb-8",children:[w("h1",{className:"text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50",children:y.create_account()}),w("p",{className:"text-zinc-500 dark:text-zinc-400 text-sm mt-1 mb-4",children:y.signup_subtitle()}),R&&j("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:[w("span",{children:"\uD83C\uDF89"}),w("span",{children:y.first_user_notice()})]}),l&&!("error"in l)&&j("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:[w("span",{children:"\uD83D\uDC4B"}),w("span",{children:y.invite_join_message({inviterName:l.inviterName,targetName:l.projectName||l.teamName,role:l.role})})]})]}),r&&w("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:r}),j("form",{onSubmit:u.handleSubmit(k),className:"space-y-5",children:[j("div",{className:"space-y-2",children:[w(vr,{htmlFor:"email",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:y.email_address()}),j("div",{className:"relative group",children:[w(Je,{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"}),w(nr,{id:"email",...u.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"})]}),u.formState.errors.email&&w("p",{className:"text-red-500 text-xs font-medium",children:u.formState.errors.email.message})]}),j("div",{className:"space-y-2",children:[w(vr,{htmlFor:"password",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:y.password()}),j("div",{className:"relative group",children:[w(Xe,{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"}),w(nr,{id:"password",type:"password",...u.register("password"),placeholder:y.password_min_placeholder(),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"})]}),u.formState.errors.password&&w("p",{className:"text-red-500 text-xs font-medium",children:u.formState.errors.password.message})]}),w(l8,{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:o,children:o?j(JZ,{children:[w(Tf,{className:"h-4 w-4 animate-spin"}),y.creating_account()]}):j(JZ,{children:[w(x0,{className:"w-4 h-4"}),y.sign_up()]})})]}),j("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:[j("div",{children:[j("span",{className:"text-zinc-500 dark:text-zinc-400",children:[y.already_have_account()," "]}),j("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:[y.login()," ",w(Ja,{className:"w-3.5 h-3.5"})]})]}),j("div",{className:"flex items-center gap-2 text-xs text-zinc-400 dark:text-zinc-500",children:[w("button",{type:"button",onClick:()=>c("en"),className:`cursor-pointer hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors ${i==="en"?"font-bold text-rose-500 dark:text-rose-400":""}`,children:"English"}),w("span",{className:"text-zinc-300 dark:text-zinc-850",children:"/"}),w("button",{type:"button",onClick:()=>c("zh"),className:`cursor-pointer hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors ${i==="zh"?"font-bold text-rose-500 dark:text-rose-400":""}`,children:"中文"})]})]})]})}var Jd=gf("/signup")({component:jp,validateSearch:(f)=>{return{inviteCode:f.inviteCode||void 0}},beforeLoad:()=>{if(uZ.getState().user)throw We({to:"/"})}});var Ga=Qf(Nf(),1);var Lp=z8.object({email:z8.string().email(y.invalid_email_address()),password:z8.string().min(1,y.password_is_required())});function Ap(){let f=xZ(),Z=uZ((g)=>g.setUser),[M,r]=Ga.useState(null),[a,o]=Ga.useState(!1),{data:e,isLoading:i}=GZ({queryKey:["/signup-info"],queryFn:async()=>{let g=await Hf.api["signup-info"].$get();if(!g.ok)throw Error("Failed to fetch signup info");return await g.json()}});Ga.useEffect(()=>{if(e&&!e.initialized)f({to:"/signup",search:{inviteCode:""}})},[e,f]);let t=e?.demoMode===!0,c=ye({resolver:Le(Lp)}),l=async(g)=>{o(!0),r(null);let{data:s,error:z}=await Nv.email({email:g.email,password:g.password});if(o(!1),z){r(z.message||y.invalid_credentials());return}if(s)Z(s.user),f({to:"/"})};if(i)return w("div",{className:"flex items-center justify-center min-h-screen bg-zinc-100/80 dark:bg-black",children:j("div",{className:"relative flex flex-col items-center",children:[w(vM,{className:"h-16 w-16 animate-pulse mb-4 text-rose-500 shadow-xl rounded-2xl"}),w(Tf,{className:"h-6 w-6 animate-spin text-rose-500/70"})]})});return j(he,{children:[j("div",{className:"mb-8",children:[w("h1",{className:"text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50",children:y.welcome_back()}),w("p",{className:"text-zinc-500 dark:text-zinc-400 text-sm mt-1",children:y.login_subtitle()})]}),t&&w("div",{className:"mb-6 p-4 bg-blue-500/10 border border-blue-500/20 text-blue-700 dark:text-blue-400 rounded-xl text-sm leading-relaxed",children:j("p",{children:[w("strong",{children:y.demo_access()})," ",y.demo_access_instructions()]})}),M&&w("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:M}),j("form",{onSubmit:c.handleSubmit(l),className:"space-y-5",children:[j("div",{className:"space-y-2",children:[w(vr,{htmlFor:"email",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:y.email_address()}),j("div",{className:"relative group",children:[w(Je,{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"}),w(nr,{id:"email",...c.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"})]}),c.formState.errors.email&&w("p",{className:"text-red-500 text-xs font-medium",children:c.formState.errors.email.message})]}),j("div",{className:"space-y-2",children:[w(vr,{htmlFor:"password",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:y.password()}),j("div",{className:"relative group",children:[w(Xe,{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"}),w(nr,{id:"password",type:"password",...c.register("password"),placeholder:y.password_placeholder(),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"})]}),c.formState.errors.password&&w("p",{className:"text-red-500 text-xs font-medium",children:c.formState.errors.password.message})]}),w(l8,{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:a,children:a?j(JZ,{children:[w(Tf,{className:"h-4 w-4 animate-spin"}),y.logging_in()]}):j(JZ,{children:[w(L0,{className:"w-4 h-4"}),y.login()]})})]}),j("div",{className:"mt-8 pt-6 border-t border-zinc-200/30 dark:border-zinc-800/30 text-center text-sm",children:[w("span",{className:"text-zinc-500 dark:text-zinc-400",children:y.no_account_prompt()}),j("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:[y.sign_up()," ",w(Ja,{className:"w-3.5 h-3.5"})]})]})]})}var A0=gf("/login")({component:Ap,beforeLoad:()=>{if(uZ.getState().user)throw We({to:"/"})}});var U0=Qf(Nf(),1);function K0(){let f=xZ(),{data:Z,isLoading:M}=GZ({queryKey:["teams"],queryFn:async()=>{let o=await Hf.api.teams.$get({query:{}});if(!o.ok)throw Error("Failed to get teams");return await o.json()}}),r=Z?.data,a=r?.length===1?r[0].id:null;if(U0.useEffect(()=>{if(a)f({to:`/teams/${a}`})},[a,f]),M)return w("div",{children:y.loading()});if(a)return null;return w(W0,{open:!0,children:j(X0,{children:[j(J0,{children:[w(G0,{children:y.select_a_team()}),w(R0,{children:y.select_team_description()})]}),w("div",{className:"space-y-2",children:r?.map((o)=>w("div",{className:"p-2 border rounded-md cursor-pointer hover:bg-gray-100",onClick:()=>f({to:`/teams/${o.id}`}),children:o.name},o.id))})]})})}var Q0=Qf(Nf(),1);function Wp(){let f=uZ((M)=>M.user),Z=xZ();if(Q0.useEffect(()=>{if(!f)Z({to:"/login"})},[f,Z]),!f)return null;return w(K0,{})}var B0=gf("/")({component:Wp});function Xp(){return w(ya,{})}var _0=gf("/share/$shareId")({component:Xp});var H0=gf("/teams/$teamId/")({});var q0=gf("/share/$shareId/")({});var D0=gf("/teams/$teamId/settings")({});var O0=gf("/teams/$teamId/dashboard")({});var F0=gf("/share/$shareId/folders/$folderId")({});var N0=gf("/share/$shareId/files/$fileId")({validateSearch:(f)=>{return{start:f.start?Number(f.start):void 0,version:f.version||void 0,compare:f.compare===!0||f.compare==="true"||void 0,cmpLeft:f.cmpLeft||void 0,cmpRight:f.cmpRight||void 0,cmpActive:f.cmpActive==="right"?"right":void 0}}});var T0=gf("/projects/$projectId/files/$fileId")({validateSearch:(f)=>{return{version:f.version||void 0,start:f.start?Number(f.start):void 0,compare:f.compare===!0||f.compare==="true"||void 0,cmpLeft:f.cmpLeft||void 0,cmpRight:f.cmpRight||void 0,cmpActive:f.cmpActive==="right"?"right":void 0}}});var Jp=Jd.update({id:"/signup",path:"/signup",getParentRoute:()=>jf}),Gp=A0.update({id:"/login",path:"/login",getParentRoute:()=>jf}),Rp=B0.update({id:"/",path:"/",getParentRoute:()=>jf}),Ge=_0.update({id:"/share/$shareId",path:"/share/$shareId",getParentRoute:()=>jf}),Up=H0.update({id:"/teams/$teamId/",path:"/teams/$teamId/",getParentRoute:()=>jf}).lazy(()=>import("./chunk-ff8zrme6.js").then((f)=>f.Route)),Kp=q0.update({id:"/",path:"/",getParentRoute:()=>Ge}).lazy(()=>import("./chunk-0h1yw3eq.js").then((f)=>f.Route)),Qp=I0.update({id:"/projects/$projectId/",path:"/projects/$projectId/",getParentRoute:()=>jf}).lazy(()=>import("./chunk-ppwy5dja.js").then((f)=>f.Route)),Bp=D0.update({id:"/teams/$teamId/settings",path:"/teams/$teamId/settings",getParentRoute:()=>jf}).lazy(()=>import("./chunk-qbs0nvbn.js").then((f)=>f.Route)),_p=O0.update({id:"/teams/$teamId/dashboard",path:"/teams/$teamId/dashboard",getParentRoute:()=>jf}).lazy(()=>import("./chunk-t6gqzden.js").then((f)=>f.Route)),Hp=S0.update({id:"/projects/$projectId/recently-deleted",path:"/projects/$projectId/recently-deleted",getParentRoute:()=>jf}).lazy(()=>import("./chunk-hdx9q31r.js").then((f)=>f.Route)),qp=V0.update({id:"/projects/$projectId/agentsmd",path:"/projects/$projectId/agentsmd",getParentRoute:()=>jf}).lazy(()=>import("./chunk-jq28ge97.js").then((f)=>f.Route)),Dp=C0.update({id:"/projects/$projectId/shares/",path:"/projects/$projectId/shares/",getParentRoute:()=>jf}).lazy(()=>import("./chunk-2wcfw38x.js").then((f)=>f.Route)),Op=$0.update({id:"/projects/$projectId/collections/",path:"/projects/$projectId/collections/",getParentRoute:()=>jf}).lazy(()=>import("./chunk-b0kh9jpt.js").then((f)=>f.Route)),Fp=F0.update({id:"/folders/$folderId",path:"/folders/$folderId",getParentRoute:()=>Ge}).lazy(()=>import("./chunk-7t9c532y.js").then((f)=>f.Route)),Np=N0.update({id:"/files/$fileId",path:"/files/$fileId",getParentRoute:()=>Ge}).lazy(()=>import("./chunk-d5v9nz51.js").then((f)=>f.Route)),Tp=P0.update({id:"/projects/$projectId/shares/$shareId",path:"/projects/$projectId/shares/$shareId",getParentRoute:()=>jf}).lazy(()=>import("./chunk-v2n1hwt3.js").then((f)=>f.Route)),Ip=E0.update({id:"/projects/$projectId/folders/$folderId",path:"/projects/$projectId/folders/$folderId",getParentRoute:()=>jf}).lazy(()=>import("./chunk-ympx92ct.js").then((f)=>f.Route)),Sp=T0.update({id:"/projects/$projectId/files/$fileId",path:"/projects/$projectId/files/$fileId",getParentRoute:()=>jf}).lazy(()=>import("./chunk-yx6mahz0.js").then((f)=>f.Route)),Vp=fg.update({id:"/projects/$projectId/collections/$collectionId",path:"/projects/$projectId/collections/$collectionId",getParentRoute:()=>jf}).lazy(()=>import("./chunk-wk153p7c.js").then((f)=>f.Route)),Cp=Zg.update({id:"/projects/$projectId/folders/$folderId_/agentsmd",path:"/projects/$projectId/folders/$folderId/agentsmd",getParentRoute:()=>jf}).lazy(()=>import("./chunk-9vjkb4vh.js").then((f)=>f.Route)),$p={ShareShareIdIndexRoute:Kp,ShareShareIdFilesFileIdRoute:Np,ShareShareIdFoldersFolderIdRoute:Fp},Pp=Ge._addFileChildren($p),Ep={IndexRoute:Rp,LoginRoute:Gp,SignupRoute:Jp,ShareShareIdRoute:Pp,ProjectsProjectIdAgentsmdRoute:qp,ProjectsProjectIdRecentlyDeletedRoute:Hp,TeamsTeamIdDashboardRoute:_p,TeamsTeamIdSettingsRoute:Bp,ProjectsProjectIdIndexRoute:Qp,TeamsTeamIdIndexRoute:Up,ProjectsProjectIdCollectionsCollectionIdRoute:Vp,ProjectsProjectIdFilesFileIdRoute:Sp,ProjectsProjectIdFoldersFolderIdRoute:Ip,ProjectsProjectIdSharesShareIdRoute:Tp,ProjectsProjectIdCollectionsIndexRoute:Op,ProjectsProjectIdSharesIndexRoute:Dp,ProjectsProjectIdFoldersFolderIdAgentsmdRoute:Cp},Mg=jf._addFileChildren(Ep)._addFileTypes();if(typeof window<"u"){let f=["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."];window.addEventListener("error",(Z)=>{if(f.includes(Z.message))Z.stopImmediatePropagation()})}var dg=new rg,fm=og({routeTree:Mg,context:{queryClient:dg}});tg.default.createRoot(document.getElementById("root")).render(w(ig.default.StrictMode,{children:w(ag,{client:dg,children:w(hv,{defaultTheme:"system",storageKey:"vite-ui-theme",children:w(eg,{router:fm})})})}));