@kky42/pievo-server 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{LoopView-BTXoqfzM.js → LoopView-DjVHUyrR.js} +1 -1
- package/.output/public/assets/{Modal-Ba36NAkv.js → Modal-CCRvx959.js} +1 -1
- package/.output/public/assets/{SignIn-Cc1zxGnA.js → SignIn-Qxw5zDFq.js} +1 -1
- package/.output/public/assets/{actionUi-DDDfD0WX.js → actionUi-CXxhzYe2.js} +1 -1
- package/.output/public/assets/{index-BGM1XGY0.js → index-BRN_CQ8U.js} +4 -4
- package/.output/public/assets/{invite._token-CUCNcN89.js → invite._token-BIxr8DlP.js} +1 -1
- package/.output/public/assets/{invite._token-C3t4JfAY.js → invite._token-j2BTCeG1.js} +1 -1
- package/.output/public/assets/lifecycleUi-Qy_8beQK.js +1 -0
- package/.output/public/assets/{loops._loopId-CrSSvSVl.js → loops._loopId-BRBQzioy.js} +3 -3
- package/.output/public/assets/{loops._loopId_.runs._runId-B5Qacloe.js → loops._loopId_.runs._runId-CMnOJkem.js} +2 -2
- package/.output/public/assets/{notifyFns-CYiZT7CK.js → notifyFns-DYD4EKaG.js} +1 -1
- package/.output/public/assets/{routes-DsdcURfk.js → routes-3nuEJGdo.js} +1 -1
- package/.output/public/assets/{routes-B6Kg4mFC.js → routes-DORLim-C.js} +1 -1
- package/.output/public/assets/{t._teamId-Cmm4xdKj.js → t._teamId-F5f4K8kd.js} +1 -1
- package/.output/public/assets/{t._teamId-C9uEyAh_.js → t._teamId-XfE_S1Fo.js} +1 -1
- package/.output/public/assets/ui-Dhsx6SW0.js +1 -0
- package/.output/server/_ssr/{DashboardView-0yoKh8Em.mjs → DashboardView-BF7PciP7.mjs} +9 -6
- package/.output/server/_ssr/{LoopPlaybook-uq_sFfgU.mjs → LoopPlaybook-DC7QVvPY.mjs} +2 -2
- package/.output/server/_ssr/{LoopView-BlOY-jfJ.mjs → LoopView-DwSrm9Ja.mjs} +4 -4
- package/.output/server/_ssr/{Modal-Bc_5TYGr.mjs → Modal-MaCG52Pv.mjs} +2 -2
- package/.output/server/_ssr/{SignIn-C4fSJl_j.mjs → SignIn-RmpWm9uy.mjs} +3 -3
- package/.output/server/_ssr/{actionUi-BKF6xI3d.mjs → actionUi-BN55TNYE.mjs} +2 -2
- package/.output/server/_ssr/{adapters-RReIIwAx.mjs → adapters-BoLkOf1T.mjs} +12 -6
- package/.output/server/_ssr/{artifactFiles-C8PQKN6V.mjs → artifactFiles-BCaIIrrT.mjs} +3 -3
- package/.output/server/_ssr/artifacts-jQ-bfdhI.mjs +2 -0
- package/.output/server/_ssr/{auth-Sie6sQHF.mjs → auth-30Z4lV1w.mjs} +9 -9
- package/.output/server/_ssr/{boot-akwC2sQg.mjs → boot-3BNKujyp.mjs} +75 -26
- package/.output/server/_ssr/{boot-pVS0wjd0.mjs → boot-CsEFT53K.mjs} +1 -1
- package/.output/server/_ssr/{bun-sqlite-dialect-BW9W1_Ps-CLY8cORt.mjs → bun-sqlite-dialect-BW9W1_Ps-_7tfuNRi.mjs} +2 -2
- package/.output/server/_ssr/{d1-sqlite-dialect-BLC8LXE6-CRsXQNRe.mjs → d1-sqlite-dialect-BLC8LXE6-ucDUbeBk.mjs} +2 -2
- package/.output/server/_ssr/db-CXownd1H.mjs +2 -0
- package/.output/server/_ssr/{dist-Cc_x6bBb.mjs → dist-Cd6nlLlO.mjs} +2 -2
- package/.output/server/_ssr/{factory-CDwHL_zY.mjs → factory-CWWwV7XZ.mjs} +2 -2
- package/.output/server/_ssr/{invite._token-BE_QUAVb.mjs → invite._token-BKlz0R2f.mjs} +4 -4
- package/.output/server/_ssr/{invite._token-BlbVjz-o.mjs → invite._token-CWl6kipD.mjs} +2 -2
- package/.output/server/_ssr/{invite._token-C7GjrJxr.mjs → invite._token-SdWXemIc.mjs} +5 -5
- package/.output/server/_ssr/{kysely-adapter-zflsyYBA.mjs → kysely-adapter-C8iS51DB.mjs} +1 -1
- package/.output/server/_ssr/{lifecycleUi-Djb44Aj3.mjs → lifecycleUi-DgBQAYzp.mjs} +2 -1
- package/.output/server/_ssr/logger-Gy-47z3k.mjs +2 -0
- package/.output/server/_ssr/{loopApi-JzmqWENY.mjs → loopApi-ABi9SgWS.mjs} +12 -12
- package/.output/server/_ssr/{loops._loopId-DZ-FjscA.mjs → loops._loopId-SON_t43g.mjs} +3 -3
- package/.output/server/_ssr/{loops._loopId-D-aCCtrX.mjs → loops._loopId-p1KWsvMM.mjs} +10 -10
- package/.output/server/_ssr/{loops._loopId_.runs._runId-rBHW41dx.mjs → loops._loopId_.runs._runId-PUGBrD5q.mjs} +14 -8
- package/.output/server/_ssr/{loops._loopId_.runs._runId-Dk1QY49p.mjs → loops._loopId_.runs._runId-Ymy4lwee.mjs} +3 -3
- package/.output/server/_ssr/{machineFns-CoqLRLRh.mjs → machineFns-BZ9puxDt.mjs} +3 -3
- package/.output/server/_ssr/{node-sqlite-dialect-dmrazfbM.mjs → node-sqlite-dialect-D_3JmkMo.mjs} +2 -2
- package/.output/server/_ssr/{notifyFns-CH7-bcmd.mjs → notifyFns-BUCePuF3.mjs} +3 -3
- package/.output/server/_ssr/{notifyFns-DXMbgYu2.mjs → notifyFns-DuPR1zd7.mjs} +5 -5
- package/.output/server/_ssr/{router-BFPzSTFx.mjs → router-Czxvra6l.mjs} +38 -32
- package/.output/server/_ssr/{routes-DebVUmCS.mjs → routes-ClZEdsnB.mjs} +5 -5
- package/.output/server/_ssr/{routes-Bx0bRxt9.mjs → routes-ComqHvCL.mjs} +2 -2
- package/.output/server/_ssr/{routes-dQCBLTxY.mjs → routes-D5jJJ-30.mjs} +5 -5
- package/.output/server/_ssr/runDiff--qLtU4FI.mjs +2 -0
- package/.output/server/_ssr/ssr.mjs +49 -49
- package/.output/server/_ssr/store-40eVzW1S.mjs +2 -0
- package/.output/server/_ssr/{t._teamId-BzWy4Ft2.mjs → t._teamId-BgHV_KFP.mjs} +5 -5
- package/.output/server/_ssr/{t._teamId-D9nCEa2h.mjs → t._teamId-DDERNgfn.mjs} +2 -2
- package/.output/server/_ssr/{t._teamId-BqOUF-0J.mjs → t._teamId-DRJvKHZn.mjs} +5 -5
- package/.output/server/_ssr/{teamFns-BcnGMC-g.mjs → teamFns-Bp81UO-x.mjs} +3 -3
- package/.output/server/_ssr/tokens-CbfoRC_s.mjs +2 -0
- package/.output/server/_ssr/{ui-B6mE5-5v.mjs → ui-Ww2tTM2u.mjs} +9 -2
- package/.output/server/{_tanstack-start-manifest_v-COr27bxK.mjs → _tanstack-start-manifest_v-DwKENYCN.mjs} +25 -25
- package/.output/server/index.mjs +100 -100
- package/package.json +1 -1
- package/.output/public/assets/lifecycleUi-CMFw5Nlj.js +0 -1
- package/.output/public/assets/ui-Gb1413-F.js +0 -1
- package/.output/server/_ssr/artifacts-B_F6vSih.mjs +0 -2
- package/.output/server/_ssr/db-Bdm9PFZF.mjs +0 -2
- package/.output/server/_ssr/logger-tfiliKTi.mjs +0 -2
- package/.output/server/_ssr/runDiff-qA1C8R_L.mjs +0 -2
- package/.output/server/_ssr/store-DWUdkIq2.mjs +0 -2
- package/.output/server/_ssr/tokens-DG8z1GIg.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-
|
|
2
|
-
import{n as e,r as t,s as n,t as r}from"./jsx-runtime-BseJUIpC.js";import{A as i,F as a,I as o,L as s,M as c,N as l,O as u,P as d,T as f,_ as p,g as m,h,j as g,k as _,l as v,m as y,n as b,p as x,s as S,t as C,u as ee}from"./loopApi-CT1mMhlb.js";import{A as te,B as w,C as T,D as E,E as ne,F as re,G as ie,H as ae,I as oe,J as se,K as D,L as O,M as ce,N as le,O as ue,P as de,R as k,S as A,T as fe,U as pe,V as me,W as he,Y as ge,_ as _e,a as ve,b as ye,d as be,g as xe,h as Se,i as Ce,j as we,k as Te,l as Ee,m as j,n as De,o as Oe,p as ke,q as Ae,r as je,t as Me,u as Ne,v as Pe,w as Fe,x as Ie,y as Le,z as Re}from"./preload-helper-DFkkpP6W.js";import{n as ze,t as Be}from"./useRouter-DsjH8G0p.js";import{n as Ve,r as He,t as Ue}from"./Modal-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-DORLim-C.js","assets/jsx-runtime-BseJUIpC.js","assets/preload-helper-DFkkpP6W.js","assets/useRouter-DsjH8G0p.js","assets/loopApi-CT1mMhlb.js","assets/SignIn-Qxw5zDFq.js","assets/ui-Dhsx6SW0.js","assets/routes-3nuEJGdo.js","assets/actionUi-CXxhzYe2.js","assets/t._teamId-F5f4K8kd.js","assets/t._teamId-XfE_S1Fo.js","assets/loops._loopId-BRBQzioy.js","assets/notifyFns-DYD4EKaG.js","assets/Modal-CCRvx959.js","assets/lifecycleUi-Qy_8beQK.js","assets/artifactView-Cd5wWPil.js","assets/invite._token-BIxr8DlP.js","assets/invite._token-j2BTCeG1.js","assets/loops._loopId_.runs._runId-CMnOJkem.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t,s as n,t as r}from"./jsx-runtime-BseJUIpC.js";import{A as i,F as a,I as o,L as s,M as c,N as l,O as u,P as d,T as f,_ as p,g as m,h,j as g,k as _,l as v,m as y,n as b,p as x,s as S,t as C,u as ee}from"./loopApi-CT1mMhlb.js";import{A as te,B as w,C as T,D as E,E as ne,F as re,G as ie,H as ae,I as oe,J as se,K as D,L as O,M as ce,N as le,O as ue,P as de,R as k,S as A,T as fe,U as pe,V as me,W as he,Y as ge,_ as _e,a as ve,b as ye,d as be,g as xe,h as Se,i as Ce,j as we,k as Te,l as Ee,m as j,n as De,o as Oe,p as ke,q as Ae,r as je,t as Me,u as Ne,v as Pe,w as Fe,x as Ie,y as Le,z as Re}from"./preload-helper-DFkkpP6W.js";import{n as ze,t as Be}from"./useRouter-DsjH8G0p.js";import{n as Ve,r as He,t as Ue}from"./Modal-CCRvx959.js";import{a as We,c as Ge,i as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./notifyFns-DYD4EKaG.js";import{A as et,O as tt,S as nt,b as rt,c as it,f as at,l as ot,m as st,o as ct,p as lt,r as ut,t as dt,u as ft,v as pt,y as mt}from"./ui-Dhsx6SW0.js";import{r as ht}from"./lifecycleUi-Qy_8beQK.js";var gt=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function w(){return g?!0:!(e.unstable_now()-te<ee)}function T(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&w());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(T)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=T,E=function(){re.postMessage(null)}}else E=function(){_(T,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),_t=t(((e,t)=>{t.exports=gt()})),vt=t((t=>{var n=_t(),r=e(),i=s();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(a(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return d(i),e;if(o===r)return d(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),ne=Symbol.for(`react.memo_cache_sentinel`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?oe(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function k(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function A(e,t){ue++,le[ue]=e.current,e.current=t}var fe=de(null),pe=de(null),me=de(null),he=de(null);function ge(e,t){switch(A(me,t),A(pe,e),A(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}k(fe),A(fe,e)}function _e(){k(fe),k(pe),k(me)}function ve(e){e.memoizedState!==null&&A(he,e);var t=fe.current,n=Hd(t,e.type);t!==n&&(A(pe,e),A(fe,n))}function ye(e){pe.current===e&&(k(fe),k(pe)),he.current===e&&(k(he),Qf._currentValue=ce)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+be+e+xe}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.split(`
|
|
@@ -7,6 +7,6 @@ import{n as e,r as t,s as n,t as r}from"./jsx-runtime-BseJUIpC.js";import{A as i
|
|
|
7
7
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
8
|
Error generating stack: `+e.message+`
|
|
9
9
|
`+e.stack}}var j=Object.prototype.hasOwnProperty,De=n.unstable_scheduleCallback,Oe=n.unstable_cancelCallback,ke=n.unstable_shouldYield,Ae=n.unstable_requestPaint,je=n.unstable_now,Me=n.unstable_getCurrentPriorityLevel,Ne=n.unstable_ImmediatePriority,Pe=n.unstable_UserBlockingPriority,Fe=n.unstable_NormalPriority,Ie=n.unstable_LowPriority,Le=n.unstable_IdlePriority,Re=n.log,ze=n.unstable_setDisableYieldValue,Be=null,Ve=null;function He(e){if(typeof Re==`function`&&ze(e),Ve&&typeof Ve.setStrictMode==`function`)try{Ve.setStrictMode(Be,e)}catch{}}var Ue=Math.clz32?Math.clz32:Ke,We=Math.log,Ge=Math.LN2;function Ke(e){return e>>>=0,e===0?32:31-(We(e)/Ge|0)|0}var qe=256,Je=262144,Ye=4194304;function Xe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Xe(n))):i=Xe(o):i=Xe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Xe(n))):i=Xe(o)):i=Xe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;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 et(){var e=Ye;return Ye<<=1,!(Ye&62914560)&&(Ye=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ue(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&it(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function it(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ue(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:st(n),(n&(e.suspendedLanes|t))===0?n:0}function st(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lt(){var e=O.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function ut(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var dt=Math.random().toString(36).slice(2),ft=`__reactFiber$`+dt,pt=`__reactProps$`+dt,mt=`__reactContainer$`+dt,ht=`__reactEvents$`+dt,gt=`__reactListeners$`+dt,vt=`__reactHandles$`+dt,yt=`__reactResources$`+dt,bt=`__reactMarker$`+dt;function xt(e){delete e[ft],delete e[pt],delete e[ht],delete e[gt],delete e[vt]}function St(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[ft])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function Ct(e){if(e=e[ft]||e[mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function Tt(e){var t=e[yt];return t||=e[yt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function M(e){e[bt]=!0}var Et=new Set,Dt={};function Ot(e,t){kt(e,t),kt(e+`Capture`,t)}function kt(e,t){for(Dt[e]=t,e=0;e<t.length;e++)Et.add(t[e])}var At=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]*$`),jt={},Mt={};function Nt(e){return j.call(Mt,e)?!0:j.call(jt,e)?!1:At.test(e)?Mt[e]=!0:(jt[e]=!0,!1)}function Pt(e,t,n){if(Nt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ft(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function It(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Rt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function zt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bt(e){if(!e._valueTracker){var t=Rt(e)?`checked`:`value`;e._valueTracker=zt(e,t,``+e[t])}}function Vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Rt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ht(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ut=/[\n"\\]/g;function Wt(e){return e.replace(Ut,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Gt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Lt(t)):e.value!==``+Lt(t)&&(e.value=``+Lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):qt(e,o,Lt(n)):qt(e,o,Lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Lt(s):e.removeAttribute(`name`)}function Kt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Bt(e);return}n=n==null?``:``+Lt(n),t=t==null?n:``+Lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Bt(e)}function qt(e,t,n){t===`number`&&Ht(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yt(e,t,n){if(t!=null&&(t=``+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Lt(n)}function Xt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(se(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=Lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Bt(e)}function Zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function $t(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function en(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&$t(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&$t(e,o,t[o])}function tn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var nn=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`]]),rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function an(e){return rn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function on(){}var sn=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=Ct(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Wt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[pt]||null;if(!i)throw Error(a(90));Gt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Vt(r)}break a;case`textarea`:Yt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(bu(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[pt]||null;if(r===null)return null;n=r[t];a:switch(t){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)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var hn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return bn=i.slice(e,1<r?1-r:void 0)}function Sn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cn(){return!0}function wn(){return!1}function Tn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Cn:wn,this.isPropagationStopped=wn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=Tn(En),On=m({},En,{view:0,detail:0}),kn=Tn(On),An,jn,Mn,Nn=m({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),Pn=Tn(Nn),Fn=Tn(m({},Nn,{dataTransfer:0})),In=Tn(m({},On,{relatedTarget:0})),Ln=Tn(m({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Rn=Tn(m({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),zn=Tn(m({},En,{data:0})),Bn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Vn={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`},Hn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hn[e])?!!t[e]:!1}function Wn(){return Un}var Gn=Tn(m({},On,{key:function(e){if(e.key){var t=Bn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Vn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wn,charCode:function(e){return e.type===`keypress`?Sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Kn=Tn(m({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),N=Tn(m({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wn})),P=Tn(m({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),qn=Tn(m({},Nn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Jn=Tn(m({},En,{newState:0,oldState:0})),Yn=[9,13,27,32],Xn=hn&&`CompositionEvent`in window,Zn=null;hn&&`documentMode`in document&&(Zn=document.documentMode);var Qn=hn&&`TextEvent`in window&&!Zn,F=hn&&(!Xn||Zn&&8<Zn&&11>=Zn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Xn&&tr(e,t)?(e=xn(),bn=yn=vn=null,rr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return F&&t.locale!==`ko`?null:t.data;default:return null}}var or={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=Ed(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){yd(e,0)}function fr(e){if(Vt(wt(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(hn){var hr;if(hn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,cn(e)),pn(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!j.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ht(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=hn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Ht(r)||(r=Nr,`selectionStart`in r&&jr(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}),Fr&&Er(Fr,r)||(Fr=r,r=Ed(Pr,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};hn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function Hr(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Ur=Hr(`animationend`),Wr=Hr(`animationiteration`),Gr=Hr(`animationstart`),Kr=Hr(`transitionrun`),qr=Hr(`transitionstart`),Jr=Hr(`transitioncancel`),Yr=Hr(`transitionend`),Xr=new Map,Zr=`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(` `);Zr.push(`scrollEnd`);function Qr(e,t){Xr.set(e,t),Ot(t,[e])}var $r=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ei=[],ti=0,ni=0;function ri(){for(var e=ti,t=ni=ti=0;t<e;){var n=ei[t];ei[t++]=null;var r=ei[t];ei[t++]=null;var i=ei[t];ei[t++]=null;var a=ei[t];if(ei[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&si(n,i,a)}}function ii(e,t,n,r){ei[ti++]=e,ei[ti++]=t,ei[ti++]=n,ei[ti++]=r,ni|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ai(e,t,n,r){return ii(e,t,n,r),ci(e)}function oi(e,t){return ii(e,null,null,t),ci(e)}function si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ue(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ci(e){if(50<du)throw du=0,fu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function ui(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,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 di(e,t,n,r){return new ui(e,t,n,r)}function fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pi(e,t){var n=e.alternate;return n===null?(n=di(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function mi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hi(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)fi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,fe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=di(31,n,t,i),e.elementType=E,e.lanes=o,e;case v:return gi(n.children,i,o,t);case y:s=8,i|=24;break;case b:return e=di(12,n,t,i|2),e.elementType=b,e.lanes=o,e;case ee:return e=di(13,n,t,i),e.elementType=ee,e.lanes=o,e;case te:return e=di(19,n,t,i),e.elementType=te,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=di(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function gi(e,t,n,r){return e=di(7,e,r,t),e.lanes=n,e}function _i(e,t,n){return e=di(6,e,null,t),e.lanes=n,e}function vi(e){var t=di(18,null,null,0);return t.stateNode=e,t}function yi(e,t,n){return t=di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bi=new WeakMap;function xi(e,t){if(typeof e==`object`&&e){var n=bi.get(e);return n===void 0?(t={value:e,source:t,stack:Ee(t)},bi.set(e,t),t):n}return{value:e,source:t,stack:Ee(t)}}var Si=[],Ci=0,wi=null,Ti=0,Ei=[],Di=0,Oi=null,ki=1,Ai=``;function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=wi,wi=e,Ti=t}function Mi(e,t,n){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,Oi=e;var r=ki;e=Ai;var i=32-Ue(r)-1;r&=~(1<<i),n+=1;var a=32-Ue(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ki=1<<32-Ue(t)+i|n<<i|r,Ai=a+e}else ki=1<<a|n<<i|r,Ai=e}function Ni(e){e.return!==null&&(ji(e,1),Mi(e,1,0))}function Pi(e){for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null;for(;e===Oi;)Oi=Ei[--Di],Ei[Di]=null,Ai=Ei[--Di],Ei[Di]=null,ki=Ei[--Di],Ei[Di]=null}function Fi(e,t){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,ki=t.id,Ai=t.overflow,Oi=e}var Ii=null,I=null,L=!1,Li=null,Ri=!1,zi=Error(a(519));function Bi(e){throw Ki(xi(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),zi}function Vi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ft]=e,t[pt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Kt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Xt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Bi(e,!0)}function Hi(e){for(Ii=e.return;Ii;)switch(Ii.tag){case 5:case 31:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:Ii=Ii.return}}function Ui(e){if(e!==Ii)return!1;if(!L)return Hi(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&I&&Bi(e),Hi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));I=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));I=uf(e)}else t===27?(t=I,Zd(e.type)?(e=lf,lf=null,I=e):I=t):I=Ii?cf(e.stateNode.nextSibling):null;return!0}function Wi(){I=Ii=null,L=!1}function Gi(){var e=Li;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),Li=null),e}function Ki(e){Li===null?Li=[e]:Li.push(e)}var qi=de(null),Ji=null,Yi=null;function Xi(e,t,n){A(qi,t._currentValue),t._currentValue=n}function Zi(e){e._currentValue=qi.current,k(qi)}function Qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function $i(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Qi(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ea(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Tr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===he.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}i=i.return}e!==null&&$i(t,e,n,r),t.flags|=262144}function ta(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){Ji=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ra(e){return aa(Ji,e)}function ia(e,t){return Ji===null&&na(e),aa(e,t)}function aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(a(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var oa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},sa=n.unstable_scheduleCallback,ca=n.unstable_NormalPriority,R={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new oa,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&sa(ca,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=dd(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var va=D.S;D.S=function(e,t){eu=je(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=de(null);function ba(){var e=ya.current;return e===null?K.pooledCache:e}function xa(e,t){t===null?A(ya,ya.current):A(ya,t.pool)}function Sa(){var e=ba();return e===null?null:{parent:R._currentValue,pool:e}}var Ca=Error(a(460)),wa=Error(a(474)),Ta=Error(a(542)),Ea={then:function(){}};function Da(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e;default:if(typeof t.status==`string`)t.then(on,on);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e}throw Aa=t,Ca}}function ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Aa=e,Ca):e}}var Aa=null;function ja(){if(Aa===null)throw Error(a(459));var e=Aa;return Aa=null,e}function Ma(e){if(e===Ca||e===Ta)throw Error(a(483))}var Na=null,Pa=0;function Fa(e){var t=Pa;return Pa+=1,Na===null&&(Na=[]),Oa(Na,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function La(e,t){throw t.$$typeof===h?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ra(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=pi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=_i(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===T&&ka(a)===t.type)?(t=i(t,n.props),Ia(t,n),t.return=e,t):(t=hi(n.type,n.key,n.props,null,e.mode,r),Ia(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=yi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=gi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=_i(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=hi(t.type,t.key,t.props,null,e.mode,n),Ia(n,t),n.return=e,n;case _:return t=yi(t,e.mode,n),t.return=e,t;case T:return t=ka(t),f(e,t,n)}if(se(t)||ie(t))return t=gi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Fa(t),n);if(t.$$typeof===S)return f(e,ia(e,t),n);La(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case T:return n=ka(n),p(e,t,n,r)}if(se(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Fa(n),r);if(n.$$typeof===S)return p(e,t,ia(e,n),r);La(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=ka(r),m(e,t,n,r,i)}if(se(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Fa(r),i);if(r.$$typeof===S)return m(e,t,n,ia(t,r),i);La(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&ji(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return L&&ji(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),L&&ji(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),L&&ji(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&ji(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),L&&ji(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&ka(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ia(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),Ia(c,o),c.return=e,e=c)}return s(e);case _:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=ka(o),b(e,r,o,c)}if(se(o))return h(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Fa(o),c);if(o.$$typeof===S)return b(e,r,ia(e,o),c);La(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Pa=0;var i=b(e,t,n,r);return Na=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var za=Ra(!0),Ba=Ra(!1),Va=!1;function Ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ua(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ka(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}function qa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ja=!1;function Ya(){if(Ja){var e=ma;if(e!==null)throw e}}function Xa(e,t,n,r){Ja=!1;var i=e.updateQueue;Va=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===pa&&(Ja=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Va=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Za(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Za(n[e],t)}var $a=de(null),eo=de(0);function to(e,t){e=Wl,A(eo,e),A($a,t),Wl=e|t.baseLanes}function no(){A(eo,Wl),A($a,$a.current)}function ro(){Wl=eo.current,k($a),k(eo)}var io=de(null),ao=null;function oo(e){var t=e.alternate;A(z,z.current&1),A(io,e),ao===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(ao=e)}function so(e){A(z,z.current),A(io,e),ao===null&&(ao=e)}function co(e){e.tag===22?(A(z,z.current),A(io,e),ao===null&&(ao=e)):lo(e)}function lo(){A(z,z.current),A(io,io.current)}function uo(e){k(io),ao===e&&(ao=null),k(z)}var z=de(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,B=null,V=null,mo=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function H(){throw Error(a(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return po=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Bs:Vs,_o=!1,a=n(r,i),_o=!1,go&&(a=To(t,n,r,i)),wo(e),a}function wo(e){D.H=zs;var t=V!==null&&V.next!==null;if(po=0,mo=V=B=null,ho=!1,yo=0,bo=null,t)throw Error(a(300));e===null||ic||(e=e.dependencies,e!==null&&ta(e)&&(ic=!0))}function To(e,t,n,r){B=e;var i=0;do{if(go&&(bo=null),yo=0,go=!1,25<=i)throw Error(a(301));if(i+=1,mo=V=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Hs,o=t(n,r)}while(go);return o}function Eo(){var e=D.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(V===null?null:V.memoizedState)!==e&&(B.flags|=1024),t}function Do(){var e=vo!==0;return vo=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}po=0,mo=V=B=null,go=!1,yo=vo=0,bo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?B.memoizedState=mo=e:mo=mo.next=e,mo}function jo(){if(V===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=V.next;var t=mo===null?B.memoizedState:mo.next;if(t!==null)mo=t,V=e;else{if(e===null)throw B.alternate===null?Error(a(467)):Error(a(310));V=e,e={memoizedState:V.memoizedState,baseState:V.baseState,baseQueue:V.baseQueue,queue:V.queue,next:null},mo===null?B.memoizedState=mo=e:mo=mo.next=e}return mo}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Oa(bo,e,t),t=B,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Bs:Vs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===S)return ra(e)}throw Error(a(438,String(e)))}function Fo(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Mo(),B.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ne;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),V,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===pa&&(d=!0);else if((po&p)===p){u=u.next,p===pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,B.lanes|=p,Gl|=p;f=u.action,_o&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,B.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(ic=!0,d&&(n=ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=jo(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Tr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=B,i=jo(),o=L;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Tr((V||i).memoizedState,n);if(s&&(i.memoizedState=n,ic=!0),i=i.queue,ds(Uo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,i,n,t),null),K===null)throw Error(a(349));o||po&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=Mo(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function Go(e){var t=oi(e,2);t!==null&&hu(t,e,2)}function Ko(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),_o){He(!0);try{n()}finally{He(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,V,typeof r==`function`?r:Io)}function Jo(e,t,n,r,i){if(Is(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};D.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=D.T,o={};D.T=o;try{var s=n(i,r),c=D.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),D.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(L){var n=K.formState;if(n!==null){a:{var r=B;if(L){if(I){b:{for(var i=I,a=Ri;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){I=cf(i.nextSibling),r=i.data===`F!`;break a}}Bi(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,B,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,B,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(jo(),V,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===Ca?Ta:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=jo(),n=V;if(n!==null)return rs(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=Mo(),B.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return jo().memoizedState}function cs(e,t,n,r){var i=Ao();B.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;V!==null&&r!==null&&So(r,V.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(B.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=Mo(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=jo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(G&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),_o){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||po&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),B.lanes|=e,Gl|=e,n)}function Ss(e,t,n,r){return Tr(n,t)?n:$a.current===null?!(po&42)||po&1073741824&&!(J&261930)?(ic=!0,e.memoizedState=n):(e=mu(),B.lanes|=e,Gl|=e,t):(e=xs(e,n,r),Tr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=O.p;O.p=a!==0&&8>a?a:8;var o=D.T,s={};D.T=s,Fs(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,_a(c,r),pu(e)):Ps(e,t,r,pu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Es(e).queue;Cs(e,i,t,ce,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},pu())}function Os(){return ra(Qf)}function ks(){return jo().memoizedState}function As(){return jo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Wa(n);var r=Ga(t,e,n);r!==null&&(hu(r,t,n),Ka(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ai(e,t,n,r),n!==null&&(hu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,pu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ii(e,t,i,0),K===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return hu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(a(479))}else t=ai(e,n,r,2),t!==null&&hu(t,e,2)}function Is(e){var t=e.alternate;return e===B||t!==null&&t===B}function Ls(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}var zs={readContext:ra,use:Po,useCallback:H,useContext:H,useEffect:H,useImperativeHandle:H,useLayoutEffect:H,useInsertionEffect:H,useMemo:H,useReducer:H,useRef:H,useState:H,useDebugValue:H,useDeferredValue:H,useTransition:H,useSyncExternalStore:H,useId:H,useHostTransitionStatus:H,useFormState:H,useActionState:H,useOptimistic:H,useMemoCache:H,useCacheRefresh:H};zs.useEffectEvent=H;var Bs={readContext:ra,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:ra,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(_o){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(_o){He(!0);try{n(t)}finally{He(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,B,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,i=Ao();if(L){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),K===null)throw Error(a(349));J&127||Vo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Ao(),t=K.identifierPrefix;if(L){var n=Ai,r=ki;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=js.bind(null,B)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ra,use:Po,useCallback:ys,useContext:ra,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(jo(),V.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(jo(),V,e,t)},useMemoCache:Fo,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ra,use:Po,useCallback:ys,useContext:ra,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=jo();return V===null?xs(n,e,t):Ss(n,V.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=jo();return V===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,V,e,t)},useMemoCache:Fo,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Wa(r);i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(hu(t,e,r),Ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Wa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(hu(t,e,r),Ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Wa(n);r.tag=2,t!=null&&(r.callback=t),t=Ga(e,r,n),t!==null&&(hu(t,e,n),Ka(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){$r(e)}function Ys(e){console.error(e)}function Xs(e){$r(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Wa(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Wa(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ea(t,n,i,!0),n=io.current,n!==null){switch(n.tag){case 31:case 13:return ao===null?Du():n.alternate===null&&X===0&&(X=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,i)),!1;case 22:return n.flags|=65536,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,i)),!1}throw Error(a(435,n.tag))}return Gu(e,r,i),Du(),!1}if(L)return t=io.current,t===null?(r!==zi&&(t=Error(a(423),{cause:r}),Ki(xi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=xi(r,n),i=$s(e.stateNode,r,i),qa(e,i),X!==4&&(X=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==zi&&(e=Error(a(422),{cause:r}),Ki(xi(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=xi(o,n),Xl===null?Xl=[o]:Xl.push(o),X!==4&&(X=2),t===null)return!0;r=xi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=$s(n.stateNode,r,e),qa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ru===null||!ru.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ec(i),tc(i,e,n,r),qa(n,i),!1}n=n.return}while(n!==null);return!1}var rc=Error(a(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ba(t,null,n,r):za(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return na(t),r=Co(e,t,n,o,a,i),s=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(L&&s&&Ni(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!fi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=hi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xa(t,a===null?null:a.cachePool),a===null?no():to(t,a),co(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xa(t,null),no(),lo(t)):(xa(t,a.cachePool),to(t,a),lo(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=ba();return a=a===null?null:{parent:R._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xa(t,null),no(),co(t),e!==null&&ea(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return za(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,uo(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(so(t),(e=I)?(e=rf(e,Ri),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,Ii=t,I=null)):e=null,e===null)throw Bi(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(so(t),i)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(ic||ea(e,t,n,!1),i=(n&e.childLanes)!==0,ic||i){if(r=K,r!==null&&(s=ot(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,oi(e,s),hu(r,e,s),rc;Du(),t=pc(e,t,n)}else e=o.treeContext,I=cf(s.nextSibling),Ii=t,L=!0,Li=null,Ri=!1,e!==null&&Fi(t,e),t=fc(t,r),t.flags|=4096;return t}return e=pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return na(t),n=Co(e,t,n,r,void 0,i),r=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(L&&r&&Ni(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return na(t),t.updateQueue=null,n=To(t,r,n,i),wo(e),r=Do(),e!==null&&!ic?(Oo(e,t,a),Ac(e,t,a)):(L&&r&&Ni(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(na(t),t.stateNode===null){var a=li,o=n.contextType;typeof o==`object`&&o&&(a=ra(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ha(t),o=n.contextType,a.context=typeof o==`object`&&o?ra(o):li,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Xa(t,r,a,i),Ya(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=li,typeof u==`object`&&u&&(o=ra(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),Va=!1;var f=t.memoizedState;a.state=f,Xa(t,r,a,i),Ya(),l=t.memoizedState,s||f!==l||Va?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=Va||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ua(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=li,typeof l==`object`&&l&&(c=ra(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),Va=!1,f=t.memoizedState,a.state=f,Xa(t,r,a,i),Ya();var p=t.memoizedState;o!==d||f!==p||Va||e!==null&&e.dependencies!==null&&ta(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=Va||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ta(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=za(t,e.child,null,i),t.child=za(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Wi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:Sa()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function Cc(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(z.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(L){if(i?oo(t):lo(t),(e=I)?(e=rf(e,Ri),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,Ii=t,I=null)):e=null,e===null)throw Bi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(lo(t),i=t.mode,c=Tc({mode:`hidden`,children:c},i),r=gi(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(oo(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(oo(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(lo(t),c=r.fallback,i=t.mode,r=Tc({mode:`visible`,children:r.children},i),c=gi(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,za(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(lo(t),t.child=e.child,t.flags|=128,t=null);else if(oo(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Ki({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||ea(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=K,s!==null&&(r=ot(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,oi(e,r),hu(s,e,r),rc;af(c)||Du(),t=Ec(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,I=cf(c.nextSibling),Ii=t,L=!0,Li=null,Ri=!1,e!==null&&Fi(t,e),t=wc(t,r.children),t.flags|=4096);return t}return i?(lo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=pi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=gi(c,i,n,null),c.flags|=2):c=pi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(i=c.cachePool,i===null?i=Sa():(l=R._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(oo(t),n=e.child,e=n.sibling,n=pi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=di(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return za(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=z.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,A(z,o),ac(e,t,r,n),r=L?Ti:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ta(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Xi(t,R,e.memoizedState.cache),Wi();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,so(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(oo(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(oo(t),t.flags|=128,null);oo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(z,z.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Xi(t,R,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,L&&t.flags&1048576&&Mi(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e==`function`)fi(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=oc(null,t,e,r,n);break a}else if(i===w){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(a(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=qs(r,t.pendingProps),vc(e,t,r,i,n);case 3:a:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Ua(e,t),Xa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,R,r),r!==o.cache&&$i(t,[R],n,!0),Ya(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==i){i=xi(Error(a(424)),t),Ki(i),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(I=cf(e.firstChild),Ii=t,L=!0,Li=null,Ri=!0,n=Ba(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wi(),r===i){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Bd(me.current).createElement(n),r[ft]=t,r[pt]=e,Pd(r,n,e),M(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&L&&(r=t.stateNode=ff(t.type,t.pendingProps,me.current),Ii=t,Ri=!0,i=I,Zd(t.type)?(lf=i,I=cf(r.firstChild)):I=i),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((i=r=I)&&(r=tf(r,t.type,t.pendingProps,Ri),r===null?i=!1:(t.stateNode=r,Ii=t,I=cf(r.firstChild),Ri=!1,i=!0)),i||Bi(t)),ve(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(i,o)?r=null:s!==null&&Ud(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Co(e,t,Eo,null,null,n),Qf._currentValue=i),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=I)&&(n=nf(n,t.pendingProps,Ri),n===null?e=!1:(t.stateNode=n,Ii=t,I=null,e=!0)),e||Bi(t)),null;case 13:return Cc(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=za(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xi(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,na(t),i=ra(i),r=r(i),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return na(t),r=ra(R),e===null?(i=ba(),i===null&&(i=K,o=la(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Ha(t),Xi(t,R,i)):((e.lanes&n)!==0&&(Ua(e,t),Xa(t,null,null,n),Ya()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Xi(t,R,r),r!==i.cache&&$i(t,[R],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Xi(t,R,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw Aa=Ea,wa}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(wu())e.flags|=8192;else throw Aa=Ea,wa}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:et(),e.lanes|=t,Yl|=t)}function Rc(e,t){if(!L)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function U(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Pi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return U(t),null;case 1:return U(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zi(R),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi())),U(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(U(t),Fc(t,i,null,r,n)):(U(t),Ic(t,o))):o?o===e.memoizedState?(U(t),t.flags&=-16777217):(Pc(t),U(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),U(t),Fc(t,i,e,r,n)),null;case 27:if(ye(t),n=me.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return U(t),null}e=fe.current,Ui(t)?Vi(t,e):(e=ff(i,r,n),t.stateNode=e,Pc(t))}return U(t),null;case 5:if(ye(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return U(t),null}if(o=fe.current,Ui(t))Vi(t,o);else{var s=Bd(me.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ft]=t,o[pt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return U(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=me.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ii,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Bi(t,!0)}else e=Bd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[ft]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(uo(t),t):(uo(t),null);if(t.flags&128)throw Error(a(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[ft]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),i=!1}else i=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(uo(t),t):(uo(t),null)}return uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),U(t),null);case 4:return _e(),e===null&&Sd(t.stateNode.containerInfo),U(t),null;case 10:return Zi(t.type),U(t),null;case 19:if(k(z),r=t.memoizedState,r===null)return U(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Rc(r,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return A(z,z.current&1|2),L&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&je()>tu&&(t.flags|=128,i=!0,Rc(r,!1),t.lanes=4194304)}else{if(!i)if(e=fo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return U(t),null}else 2*je()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(U(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=je(),e.sibling=null,n=z.current,A(z,i?n&1|2:n&1),L&&ji(t,r.treeForkCount),e);case 22:case 23:return uo(t),ro(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(R),U(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Bc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(R),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(uo(t),t.alternate===null)throw Error(a(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(z),null;case 4:return _e(),null;case 10:return Zi(t.type),null;case 22:case 23:return uo(t),ro(),e!==null&&k(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(R),null;case 25:return null;default:return null}}function Vc(e,t){switch(Pi(t),t.tag){case 3:Zi(R),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&uo(t);break;case 13:uo(t);break;case 19:k(z);break;case 10:Zi(t.type);break;case 22:case 23:uo(t),ro(),e!==null&&k(ya);break;case 24:Zi(R)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qa(t,n)}catch(t){Z(e,e.return,t)}}}function Gc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[pt]=t}catch(t){Z(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ft]=e,t[pt]=n}catch(t){Z(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Rd=sp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:xl(e,n),r&4&&Hc(5,n);break;case 1:if(xl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(xl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qa(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:xl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:xl(e,n);break;case 31:xl(e,n),r&4&&fl(e,n);break;case 13:xl(e,n),r&4&&pl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?Cl(e,n,(n.subtreeFlags&8772)!=0):xl(e,n),tl=i,nl=a}break;case 30:break;default:xl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var W=null,ll=!1;function ul(e,t,n){for(n=n.child;n!==null;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(Ve&&typeof Ve.onCommitFiberUnmount==`function`)try{Ve.onCommitFiberUnmount(Be,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=W,i=ll;Zd(n.type)&&(W=n.stateNode,ll=!1),ul(e,t,n),pf(n.stateNode),W=r,ll=i;break;case 5:nl||qc(n,t);case 6:if(r=W,i=ll,W=null,ul(e,t,n),W=r,ll=i,W!==null)if(ll)try{(W.nodeType===9?W.body:W.nodeName===`HTML`?W.ownerDocument.body:W).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{W.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:W!==null&&(ll?(e=W,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(W,n.stateNode));break;case 4:r=W,i=ll,W=n.stateNode.containerInfo,ll=!0,ul(e,t,n),W=r,ll=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),ul(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,ul(e,t,n),nl=r;break;default:ul(e,t,n)}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function ml(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(a(435,e.tag))}}function hl(e,t){var n=ml(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){W=c.stateNode,ll=!1;break a}break;case 5:W=c.stateNode,ll=!1;break a;case 3:case 4:W=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(W===null)throw Error(a(160));dl(o,s,i),W=null,ll=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vl(t,e),t=t.sibling}var _l=null;function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gl(t,e),yl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=_l;if(gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[bt]||o[ft]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Pd(o,r,n),o[ft]=e,M(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Pd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Pd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[ft]=e,M(o),r=o}e.stateNode=r}else Hf(i,e.type,e.stateNode);else e.stateNode=If(i,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(i,e.type,e.stateNode):If(i,r,e.memoizedProps))}break;case 27:gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){i=e.stateNode;try{Zt(i,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Yc(e,i,n===null?i:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(gl(t,e),yl(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Bf=null,i=_l,_l=gf(t.containerInfo),gl(t,e),_l=i,yl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}rl&&(rl=!1,bl(e));break;case 4:r=_l,_l=gf(e.stateNode.containerInfo),gl(t,e),yl(e),_l=r;break;case 12:gl(t,e),yl(e);break;case 31:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 13:gl(t,e),yl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=je()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||i,nl=d||l,gl(t,e),nl=d,tl=u,yl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||tl||nl||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?$d(m,!0):$d(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,hl(e,n))));break;case 19:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 30:break;case 21:break;default:gl(t,e),yl(e)}}function yl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;$c(e,Zc(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(Zt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(a(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Sl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Sl(t);break;case 27:pf(t.stateNode);case 26:case 5:qc(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Cl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Cl(i,a,n),Hc(4,a);break;case 1:if(Cl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Za(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:Cl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:Cl(i,a,n);break;case 31:Cl(i,a,n),n&&o&4&&fl(i,a);break;case 13:Cl(i,a,n),n&&o&4&&pl(i,a);break;case 22:a.memoizedState===null&&Cl(i,a,n),Kc(a,a.return);break;case 30:break;default:Cl(i,a,n)}t=t.sibling}}function wl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ua(n))}function Tl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function El(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dl(e,t,n,r),t=t.sibling}function Dl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:El(e,t,n,r),i&2048&&Hc(9,t);break;case 1:El(e,t,n,r);break;case 3:El(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e)));break;case 12:if(i&2048){El(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else El(e,t,n,r);break;case 31:El(e,t,n,r);break;case 13:El(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?El(e,t,n,r):(a._visibility|=2,Ol(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?El(e,t,n,r):kl(e,t),i&2048&&wl(o,t);break;case 24:El(e,t,n,r),i&2048&&Tl(t.alternate,t);break;default:El(e,t,n,r)}}function Ol(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ol(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ol(a,o,s,c,i)):u._visibility&2?Ol(a,o,s,c,i):kl(a,o),i&&l&2048&&wl(o.alternate,o);break;case 24:Ol(a,o,s,c,i),i&&l&2048&&Tl(o.alternate,o);break;default:Ol(a,o,s,c,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:kl(n,r),i&2048&&wl(r.alternate,r);break;case 24:kl(n,r),i&2048&&Tl(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Ml(e,t,n),e=e.sibling}function Ml(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Gf(n,_l,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=_l;_l=gf(e.stateNode.containerInfo),jl(e,t,n),_l=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Nl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fl(e),e=e.sibling}function Fl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Pl(e);break;default:Pl(e)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Ll(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var Rl={getCacheForType:function(e){var t=ra(R),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ra(R).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,X=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return G&2&&J!==0?J&-J:D.T===null?lt():dd()}function mu(){if(Jl===0)if(!(J&536870912)||L){var e=Je;Je<<=1,!(Je&3932160)&&(Je=262144),Jl=e}else Jl=536870912;return e=io.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,J,Jl,!1)),nt(e,n),(!(G&2)||e!==K)&&(e===K&&(!(G&2)&&(Kl|=n),X===4&&yu(e,J,Jl,!1)),rd(e))}function gu(e,t,n){if(G&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Qe(e,t),i=r?Au(e,t):Ou(e,t,!0),o=r;do{if(i===0){Hl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!vu(n)){i=Ou(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,Kl|=o,i=4;break a}o=Zl,Zl=i,o!==null&&(Zl===null?Zl=o:Zl.push.apply(Zl,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Vl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=$l+300-je(),10<i)){if(yu(r,t,Jl,!Vl),Ze(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Kd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Vl,o,`Throttled`,-0,0),i);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Vl,o,null,-0,0)}}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Ml(t,a,d);var m=(a&62914560)===a?$l-je():(a&4194048)===a?eu-je():0;if(m=qf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Tr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ue(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&it(e,n,t)}function bu(){return G&6?!0:(id(0,!1),!1)}function xu(){if(q!==null){if(Y===0)var e=q.return;else e=q,Yi=Ji=null,ko(e),Na=null,Pa=0,e=q;for(;e!==null;)Vc(e.alternate,e),e=e.return;q=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),K=e,q=n=pi(e.current,null),J=t,Y=0,Bl=null,Vl=!1,Hl=Qe(e,t),Ul=!1,Yl=Jl=ql=Kl=Gl=X=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ue(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,ri(),n}function Cu(e,t){B=null,D.H=zs,t===Ca||t===Ta?(t=ja(),Y=3):t===wa?(t=ja(),Y=4):Y=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,q===null&&(X=1,Zs(e,xi(t,e.current)))}function wu(){var e=io.current;return e===null?!0:(J&4194048)===J?ao===null:(J&62914560)===J||J&536870912?e===ao:!1}function Tu(){var e=D.H;return D.H=zs,e===null?zs:e}function Eu(){var e=D.A;return D.A=Rl,e}function Du(){X=4,Vl||(J&4194048)!==J&&io.current!==null||(Hl=!0),!(Gl&134217727)&&!(Kl&134217727)||K===null||yu(K,J,Jl,!1)}function Ou(e,t,n){var r=G;G|=2;var i=Tu(),a=Eu();(K!==e||J!==t)&&(nu=null,Su(e,t)),t=!1;var o=X;a:do try{if(Y!==0&&q!==null){var s=q,c=Bl;switch(Y){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:io.current===null&&(t=!0);var l=Y;if(Y=0,Bl=null,Pu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=Y,Y=0,Bl=null,Pu(e,s,c,l)}}ku(),o=X;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Yi=Ji=null,G=r,D.H=i,D.A=a,q===null&&(K=null,J=0,ri()),o}function ku(){for(;q!==null;)Mu(q)}function Au(e,t){var n=G;G|=2;var r=Tu(),i=Eu();K!==e||J!==t?(nu=null,tu=je()+500,Su(e,t)):Hl=Qe(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=Bl;b:switch(Y){case 1:Y=0,Bl=null,Pu(e,t,o,1);break;case 2:case 9:if(Da(o)){Y=0,Bl=null,Nu(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),rd(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Da(o)?(Y=0,Bl=null,Nu(t)):(Y=0,Bl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Wf(s):c.stateNode.complete){Y=0,Bl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Fu(u))}break b}}Y=0,Bl=null,Pu(e,t,o,5);break;case 6:Y=0,Bl=null,Pu(e,t,o,6);break;case 8:xu(),X=6;break a;default:throw Error(a(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Yi=Ji=null,D.H=r,D.A=i,G=n,q===null?(K=null,J=0,ri(),X):0}function ju(){for(;q!==null&&!ke();)Mu(q)}function Mu(e){var t=Nc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Fu(e):q=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:ko(t);default:Vc(n,t),t=q=mi(t,Wl),t=Nc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Fu(e):q=t}function Pu(e,t,n,r){Yi=Ji=null,ko(t),Na=null,Pa=0;var i=t.return;try{if(nc(e,i,t,n,J)){X=1,Zs(e,xi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;X=1,Zs(e,xi(n,e.current)),q=null;return}t.flags&32768?(L||r===1?e=!0:Hl||J&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=io.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Vl);return}e=t.return;var n=zc(t.alternate,t,Wl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);X===0&&(X=5)}function Iu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);X=6,q=null}function Lu(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(G&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=ni,rt(e,n,o,s,c,l),e===K&&(q=K=null,J=0),ou=t,au=e,su=n,cu=o,lu=i,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Fe,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=D.T,D.T=null,i=O.p,O.p=2,s=G,G|=4;try{ol(e,t,n)}finally{G=s,O.p=i,D.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=G;G|=4;try{vl(t,e);var a=zd,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{G=i,O.p=r,D.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=G;G|=4;try{sl(e,t.alternate,t)}finally{G=i,O.p=r,D.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Ae();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),ct(n),t=t.stateNode,Ve&&typeof Ve.onCommitFiberRoot==`function`)try{Ve.onCommitFiberRoot(Be,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=D.T,i=O.p,O.p=2,D.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{D.T=t,O.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=ct(su),r=D.T,i=O.p;try{O.p=32>n?32:n,D.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,G&6)throw Error(a(331));var c=G;if(G|=4,Fl(o.current),Dl(o,o.current,s,n),G=c,id(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot==`function`)try{Ve.onPostCommitFiberRoot(Be,o)}catch{}return!0}finally{O.p=i,D.T=r,Vu(e,t)}}function Wu(e,t,n){t=xi(n,t),t=$s(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(nt(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=xi(n,e),n=ec(2),r=Ga(t,n,2),r!==null&&(tc(n,r,t,e),nt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(X===4||X===3&&(J&62914560)===J&&300>je()-$l?!(G&2)&&Su(e,0):ql|=n,Yl===J&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=et()),e=oi(e,t),e!==null&&(nt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return De(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ue(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=J,a=Ze(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Qe(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=je(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ue(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=$e(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=Ze(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Oe(r),ct(n)){case 2:case 8:n=Pe;break;case 32:n=Fe;break;case 268435456:n=Le;break;default:n=Fe}return r=cd.bind(null,e),n=De(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Oe(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=J;return r=Ze(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,je()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Yd(function(){G&6?De(Ne,ad):od()})}function dd(){if(nd===0){var e=pa;e===0&&(e=qe,qe<<=1,!(qe&261888)&&(qe=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:an(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[pt]||null).action),o=r.submitter;o&&(t=(t=o[pt]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Dn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Zr.length;hd++){var gd=Zr[hd];Qr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Qr(Ur,`onAnimationEnd`),Qr(Wr,`onAnimationIteration`),Qr(Gr,`onAnimationStart`),Qr(`dblclick`,`onDoubleClick`),Qr(`focusin`,`onFocus`),Qr(`focusout`,`onBlur`),Qr(Kr,`onTransitionRun`),Qr(qr,`onTransitionStart`),Qr(Jr,`onTransitionCancel`),Qr(Yr,`onTransitionEnd`),kt(`onMouseEnter`,[`mouseout`,`mouseover`]),kt(`onMouseLeave`,[`mouseout`,`mouseover`]),kt(`onPointerEnter`,[`pointerout`,`pointerover`]),kt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ot(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ot(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ot(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ot(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ot(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ot(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[ht];n===void 0&&(n=t[ht]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,Et.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!gn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=St(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),o=[];a:{var s=Xr.get(e);if(s!==void 0){var l=Dn,u=e;switch(e){case`keypress`:if(Sn(n)===0)break a;case`keydown`:case`keyup`:l=Gn;break;case`focusin`:u=`focus`,l=In;break;case`focusout`:u=`blur`,l=In;break;case`beforeblur`:case`afterblur`:l=In;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Pn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Fn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=N;break;case Ur:case Wr:case Gr:l=Ln;break;case Yr:l=P;break;case`scroll`:case`scrollend`:l=kn;break;case`wheel`:l=qn;break;case`copy`:case`cut`:case`paste`:l=Rn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Kn;break;case`toggle`:case`beforetoggle`:l=Jn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=mn(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==sn&&(u=n.relatedTarget||n.fromElement)&&(St(u)||u[mt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?St(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Pn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Kn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:wt(l),h=u==null?s:wt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,St(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(o,s,l,d,!1),u!==null&&f!==null&&Od(o,f,u,d,!0)}}a:{if(s=r?wt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=pr;else if(sr(s))if(mr)v=Cr;else{v=xr;var y=br}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&tn(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&qt(s,`number`,s.value)}switch(y=r?wt(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(o,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(o,n,i)}var b;if(Xn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(F&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=xn()):(vn=i,yn=`value`in vn?vn.value:vn.textContent,rr=!0)),y=Ed(r,x),0<y.length&&(x=new zn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Qn?ir(e,n):ar(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new zn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),md(o,e,r,n,i)}yd(o,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=mn(e,n),i!=null&&r.unshift(Td(e,i,a)),i=mn(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=mn(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=mn(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
|
|
10
|
-
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Ft(e,`class`,r);break;case`tabIndex`:Ft(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ft(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Ft(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.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`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);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`?e.setAttribute(n,``+r):e.removeAttribute(n);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`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Pt(e,`popover`,r);break;case`xlinkActuate`:It(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:It(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:It(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:It(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Pt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,Pt(e,n,r))}}function Nd(e,t,n,r,i,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Dt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[pt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Pt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:$(e,t,o,s,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:$(e,t,r,d,n,null)}}Kt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Jt(e,!!r,n,!0):Jt(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:$(e,t,s,c,n,null)}Xt(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:$(e,t,u,r,n,null)}return;default:if(tn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Gt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Jt(e,!!n,n?[]:``,!1):Jt(e,!!n,t,!0)):Jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&$(e,t,s,i,r,o)}Yt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(tn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[bt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),xt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[bt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=O.d;O.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=Ct(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),M(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),M(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),M(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Tt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);M(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Tt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),M(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Tt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),M(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=me.current)?gf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Tt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Tt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Tt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Af(e){return`href="`+Wt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),M(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Wt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,M(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),M(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,M(o),o;r=Mf(n),(i=mf.get(i))&&Rf(r,i),o=(e.ownerDocument||e).createElement(`link`),M(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,M(i),i):(r=n,(i=mf.get(o))&&(r=m({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),M(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[bt]||a[ft]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,M(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),M(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:S,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=di(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ha(a),e}function tp(e){return e?(e=li,e):li}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Wa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ga(e,r,t),n!==null&&(hu(n,e,t),Ka(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=st(t);var n=oi(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,up(e,t,n,r)}finally{O.p=a,D.T=i}}function lp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,up(e,t,n,r)}finally{O.p=a,D.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=Ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Xe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ue(o);s.entanglements[1]|=c,o&=~c}rd(a),!(G&6)&&(tu=je()+500,id(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=cn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=St(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Me()){case Ne:return 2;case Pe:return 8;case Fe:case Ie:return 32;case Le:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ct(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=St(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=Ct(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,t){e.blockedOn===t&&(e.blockedOn=null,hp||(hp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=Ct(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[pt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[pt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[mt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=r.version;if(Lp!==`19.2.7`)throw Error(a(527,Lp,`19.2.7`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Be=zp.inject(Rp),Ve=zp}catch{}}t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i=``,s=Js,c=Ys,l=Xs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ep(e,1,!0,t,n??null,r,i,u,s,c,l,Pp),t.context=tp(null),n=t.current,r=pu(),r=st(r),i=Wa(r),i.callback=null,Ga(n,i,r),n=r,t.current.lanes=n,nt(t,n),rd(t),e[mt]=t.current,Sd(e),new Ip(t)}})),yt=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=vt()})),bt=St(JSON.parse),xt=Ct(JSON.stringify,JSON.parse);function St(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=c(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Ct(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=l(e,r);return t?`?${t}`:``}}var wt=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Tt=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),M=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Et=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Dt=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Ot=(e,t,n)=>{if(!(!i(n)&&!d(n)))throw i(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:i(n)?`redirected`:d(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Et(e,t.index),isFetching:!1,error:n})),d(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),i(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},kt=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},At=(e,t,n)=>{let r=Et(e,n);e.updateMatch(t,e=>({...e,context:r}))},jt=(e,t,n)=>{let{id:r,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Ot(e,e.router.getMatch(r),n);try{o.options.onError?.(n)}catch(t){n=t,Ot(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!i(n)&&!d(n)&&(e.serialError??=n)},Mt=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!M(e,t)&&(n.options.loader||n.options.beforeLoad||Ut(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{wt(e)},i);r._nonReactive.pendingTimeout=t}},Nt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Mt(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Ot(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Pt=(e,t,n,r)=>{let a=e.router.getMatch(t),o=a._nonReactive.loadPromise;a._nonReactive.loadPromise=k(()=>{o?.resolve(),o=void 0});let{paramsError:s,searchError:c}=a;s&&jt(e,n,s),c&&jt(e,n,c),Mt(e,t,r,a);let l=new AbortController,u=!1,f=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},p=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{f(),p()});return}a._nonReactive.beforeLoadPromise=k();let m={...Et(e,n,!1),...a.__routeContext},{search:h,params:g,cause:_}=a,v=M(e,t),y={search:h,abortController:l,params:g,preload:v,context:m,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{f(),p()});return}(i(r)||d(r))&&(f(),jt(e,n,r)),e.router.batch(()=>{f(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),p()})},x;try{if(x=r.options.beforeLoad(y),D(x))return f(),x.catch(t=>{jt(e,n,t)}).then(b)}catch(t){f(),jt(e,n,t)}b(x)},Ft=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Pt(e,n,t,i),s=()=>{if(kt(e,n))return;let t=Nt(e,n,i);return D(t)?t.then(o):o()};return a()},It=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Lt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Et(e,r),d=M(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Rt=async(e,t,n,r,a)=>{try{let o=e.router.getMatch(n);try{Ht(a);let i=a.options.loader,s=typeof i==`function`?i:i?.handler,c=s?.(Lt(e,t,n,r,a)),l=!!s&&D(c);if((l||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||o._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Ot(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}a._lazyPromise&&await a._lazyPromise;let u=o._nonReactive.minPendingPromise;u&&await u,a._componentsPromise&&await a._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Et(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let s=t;if(s?.name===`AbortError`){if(o.abortController.signal.aborted){o._nonReactive.loaderPromise?.resolve(),o._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Et(e,r)}));return}let c=o._nonReactive.minPendingPromise;c&&await c,d(t)&&await a.options.notFoundComponent?.preload?.(),Ot(e,e.router.getMatch(n),t);try{a.options.onError?.(t)}catch(t){s=t,Ot(e,e.router.getMatch(n),t)}!i(s)&&!d(s)&&await Ht(a,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:s,context:Et(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Ot(e,r,t)}},zt=async(e,t,n)=>{async function r(r,o,l,u,f){let p=Date.now()-o.updatedAt,m=r?f.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.router.options.defaultStaleTime??0,h=f.options.shouldReload,g=typeof h==`function`?h(Lt(e,t,a,n,f)):h,{status:_,invalid:v}=u,y=p>=m&&(!!e.forceStaleReload||u.cause===`enter`||l!==void 0&&l!==u.id);s=_===`success`&&(v||(g??y)),r&&f.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await Rt(e,t,a,n,f);let r=e.router.getMatch(a);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){i(t)&&await e.router.navigate(t.options)}})()):_!==`success`||s?await Rt(e,t,a,n,f):At(e,a,n))}let{id:a,routeId:o}=e.matches[n],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(kt(e,a)){if(!e.router.getMatch(a))return e.matches[n];At(e,a,n)}else{let t=e.router.getMatch(a),i=e.router.stores.matchesId.get()[n],s=(i&&e.router.stores.matchStores.get(i)||null)?.routeId===o?i:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,c=M(e,a);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(a),i=n._nonReactive.error||n.error;i&&Ot(e,n,i),n.status===`pending`&&await r(c,t,s,n,l)}else{let n=c&&!e.router.stores.matchStores.has(a),i=e.router.getMatch(a);i._nonReactive.loaderPromise=k(),n!==i.preload&&e.updateMatch(a,e=>({...e,preload:n})),await r(c,t,s,i,l)}}let f=e.router.getMatch(a);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(a,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(a)):f};async function Bt(e){let t=e,n=[];Tt(t.router)&&wt(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Ft(t,e);D(n)&&await n}catch(e){if(i(e))throw e;if(d(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?Dt(t,r):void 0,c=r&&t.preload?0:s===void 0?o:Math.min(s+1,o),l,u;for(let e=0;e<c;e++)n.push(zt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(i(e))throw e;d(e)?l??=e:u??=e}if(u!==void 0)throw u}let f=l??(r&&!t.preload?r:void 0),p=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!f&&r&&t.preload)return t.matches;if(f){let e=Dt(t,f);e===void 0&&a();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),f.routeId=n.routeId;let o=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...o?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:f},isFetching:!1})),p=e,await Ht(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ht(e,[`errorComponent`])}for(let e=0;e<=p;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=It(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let m=wt(t);if(D(m)&&await m,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Vt(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Ht(e,t=Wt){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Wt?(()=>{if(e._componentsPromise===void 0){let t=Vt(e,Wt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Vt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Ut(e){for(let t of Wt)if(e.options[t]?.preload)return!0;return!1}var Wt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Gt(e){return{input:({url:t})=>{for(let n of e)t=qt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Jt(e[n],t);return t}}}function Kt(e){let t=E(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=fe([`/`,t,e.pathname]),e)}}function qt(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Jt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Yt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Xt(o,_.get())),x=r(()=>Xt(s,v.get())),S=r(()=>Xt(c,y.get())),C=r(()=>_.get()[0]),ee=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),te=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),w=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),T=re(64);function E(e){let t=T.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),T.set(e,t)),t}let ne={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:ee,matchRouteDeps:te,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:w,getRouteMatchStore:E,setMatches:ie,setPending:ae,setCached:oe};ie(e.matches),a?.(ne);function ie(e){Zt(e,o,_,n,i)}function ae(e){Zt(e,s,v,n,i)}function oe(e){Zt(e,c,y,n,i)}return ne}function Xt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Zt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}O(n.get(),a)||n.set(a)})}var Qt=`__TSR_index`,$t=`popstate`,en=`beforeunload`;function tn(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=on(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Qt];i=nn(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Qt];i=nn(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Qt]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function nn(e,t){t||={};let n=sn();return{...t,key:n,__TSR_key:n,[Qt]:e}}function rn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>on(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=sn();t.history.replaceState({[Qt]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=on(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Qt]-l.state[Qt],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=tn({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(en,S,{capture:!0}),t.removeEventListener($t,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(en,S,{capture:!0}),t.addEventListener($t,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function an(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function on(e,t){let n=an(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=sn();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Qt]:0,key:a,__TSR_key:a}}}function sn(){return(Math.random()+1).toString(36).substring(7)}function cn(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function ln(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var un=new WeakMap,dn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=T(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=rn()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=re(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Yt(mn(this.latestLocation),e),Pn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=E(o);t&&t!==`/`&&e.push(Kt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Gt(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=de(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&le(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Re(e).path,external:!1,searchStr:o,search:se(t?.search,i),hash:Re(r.slice(1)).path,state:ge(t?.state,a)}}let o=new URL(i,this.origin),s=qt(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Re(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:se(t?.search,c),hash:Re(s.hash.slice(1)).path,state:ge(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ne({base:e,to:t.includes(`//`)?A(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>gn({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,pe(t.params,s)),d=this.routesByPath[ue(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&he(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:Re(Fe({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,hn(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=_n({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=se(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?pe(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?pe(t.state,n.state):{};v=ge(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=Jt(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=me(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=te(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,pe(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=w(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=ue(this.latestLocation.href)===ue(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=k(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=on(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=qt(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ie(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,a,o=this.stores.resolvedLocation.get()??this.stores.location.get();for(a=new Promise(s=>{this.startTransition(async()=>{try{this.beforeLoad(),t?un.set(this.latestLocation,t):un.delete(this.latestLocation);let n=this.latestLocation,r=ln(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Bt({router:this,sync:e?.sync,forceStaleReload:o.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){i(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):d(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===a&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),s()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise;let s;this.hasNotFoundMatch()?s=404:this.stores.matches.get().some(e=>e.status===`error`)&&(s=500),s!==void 0&&this.stores.statusCode.set(s)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(ln(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ie(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Ht,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),a=new Set([...r,...this.stores.cachedIds.get()]),o=n.filter(e=>!a.has(e.id));if(o.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...o])}try{return n=await Bt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(i(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});d(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=ce(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!w(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?w(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??xt,parseSearch:e.parseSearch??bt,protocolAllowlist:e.protocolAllowlist??oe}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Te(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:a}=n,{matchedRoutes:o}=n,s=!1;(r?r.path!==`/`&&a[`**`]:ue(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?yn(this.options.notFoundMode,o):void 0,l=Array(o.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;n<o.length;n++){let r=o[n],s=l[n-1],f,p,m;{let n=s?.search??e.search,i=s?._strictSearch??void 0;try{let e=hn(r.options.validateSearch,{...n})??void 0;f={...n,...e},p={...i,...e},m=void 0}catch(e){let r=e;if(e instanceof fn||(r=new fn(e.message,{cause:e})),t?.throwOnError)throw r;f=n,p={},m=r}}let h=r.options.loaderDeps?.({search:f})??``,g=h?JSON.stringify(h):``,{interpolatedPath:_,usedParams:v}=Fe({path:r.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),y=r.id+_+g,b=this.getMatch(y),x=u.get(r.id),S=b?._strictParams??v,C;if(!b)try{bn(r,S)}catch(e){if(C=d(e)||i(e)?e:new pn(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(a,S);let ee=x?`stay`:`enter`,te;if(b)te={...b,cause:ee,params:x?.params??a,_strictParams:S,search:se(x?x.search:b.search,f),_strictSearch:p};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Ut(r)?`pending`:`success`;te={id:y,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??a,_strictParams:S,pathname:_,updatedAt:Date.now(),search:x?se(x.search,f):f,_strictSearch:p,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:k()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ee,loaderDeps:x?ge(x.loaderDeps,h):h,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(te.globalNotFound=c===r.id),te.searchError=m;let w=this.getParentContext(s);te.context={...w,...te.__routeContext,...te.__beforeLoadContext},l[n]=te}for(let t=0;t<l.length;t++){let n=l[t],r=this.looseRoutesById[n.routeId],i=this.getMatch(n.id),o=u.get(n.routeId);if(n.params=o?se(o.params,a):a,!i){let i=l[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=Ae(t),i={...e.search};for(let e of t)try{Object.assign(i,hn(e.options.validateSearch,i))}catch{}let a=Ae(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{bn(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},fn=class extends Error{},pn=class extends Error{};function mn(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function hn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new fn(`Async validation not supported`);if(n.issues)throw new fn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function gn({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=ue(e),a,o=we(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function _n({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return vn(n)(e,t,r??!1)}function vn(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=hn(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=pe(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function yn(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Ie}function bn(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function xn(){try{return sessionStorage}catch{return}}var Sn=`tsr-scroll-restoration-v1_3`,Cn=xn();function wn(){try{return JSON.parse(Cn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Tn(){try{Cn?.setItem(Sn,JSON.stringify(En))}catch{}}var En=wn(),Dn=`data-scroll-restoration-id`,On=e=>e.state.__TSR_key||e.href;function kn(e){let t=e.getAttribute(Dn);if(t)return`[${Dn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var An=!1,jn=`window`;function Mn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Nn(e){let t=[];for(let n of e){if(n===jn)continue;let e=Mn(n);e&&t.push(e)}return t}function Pn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||On,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(An||!r.restoring))if(e.target===document)o(jn,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=En[e]||={};for(let[e,n]of a)e===jn?t[jn]=n:e.isConnected&&(t[kn(e)]=n)};n&&!r.restoration&&(r.restoration=!0,An=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Tn()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=En[u];if(e){let t=En[l];for(let n in e){if(n===jn){if(s)continue}else{let e=Mn(n);if(!e||s&&o&&(c??=Nn(o),c.includes(e)))continue}t||=En[l]={},t[n]??=e[n]}}}An=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=un.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?En[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===jn){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Mn(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=Nn(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{An=!1}}))}var Fn=Symbol.for(`TSR_DEFERRED_PROMISE`);function In(e,t){let n=e;return n[Fn]?n:(n[Fn]={status:`pending`},n.then(e=>{n[Fn].status=`success`,n[Fn].data=e}).catch(e=>{n[Fn].status=`error`,n[Fn].error={data:(t?.serializeError??cn)(e),__isServerError:!0}}),n)}function Ln(e,t){if(e)return typeof e==`string`?e:e[t]}function Rn(e){return e?.scriptFormat??`module`}function zn(e,t,n){let r=Bn(t),i=Ln(n,`script`)??r.crossOrigin;return{...Rn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Bn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Vn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Hn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Un=_({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(o in e)?!1:!!e[o],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>u(e)});function Wn(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Gn(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Kn(e){window.$_TSR||a();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||a();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=Wn(e.i)}),n.lastMatchId&&=Wn(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:o}=n;e.ssr={manifest:r};let s=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:s},await e.options.hydrate?.(i);let c=e.matchRoutes(e.stores.location.get()),l=Promise.all(c.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function u(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=k();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function f(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let p;c.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,f(e);return}Gn(e,t),f(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&p===void 0&&(p=e.index,u(e))}),e.stores.setMatches(c);let m=e.stores.matches.get(),h=e.stores.location.get();await Promise.all(m.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=m[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:h,navigate:t=>e.navigate({...t,_fromLocation:h}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:c,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:m,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(d(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let g=c[c.length-1].id!==o;if(!c.some(e=>e.ssr===!1)&&!g)return c.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),l;let _=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(g){let t=c[1];t||a(),u(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=_,_.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return l}var N=n(e(),1),P=r();function qn({promise:e}){if(Pe)return Pe(e);let t=In(e);if(t[Fn].status===`pending`)throw t;if(t[Fn].status===`error`)throw t[Fn].error;return t[Fn].data}function Jn(e){let t=(0,P.jsx)(Yn,{...e});return e.fallback?(0,P.jsx)(N.Suspense,{fallback:e.fallback,children:t}):t}function Yn(e){let t=qn(e);return e.children(t)}function Xn(e){let t=e.errorComponent??Qn;return(0,P.jsx)(Zn,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?N.createElement(t,{error:n,reset:r}):e.children})}var Zn=class extends N.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Qn({error:e}){let[t,n]=N.useState(!1);return(0,P.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,P.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,P.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,P.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,P.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,P.jsx)(`div`,{children:(0,P.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,P.jsx)(`code`,{children:e.message}):null})}):null]})}var F=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(F||{});function $n({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function er(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var tr=[],nr=0,{link:rr,unlink:ir,propagate:ar,checkDirty:or,shallowPropagate:sr}=$n({update(e){return e._update()},notify(e){tr[lr++]=e,e.flags&=~F.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=F.Mutable|F.Dirty,pr(e))}}),cr=0,lr=0,ur,dr=0;function fr(e){try{++dr,e()}finally{--dr||mr()}}function pr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ir(n,e)}function mr(){if(!(dr>0)){for(;cr<lr;){let e=tr[cr];tr[cr++]=void 0,e.notify()}cr=0,lr=0}}function hr(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?F.None:F.Mutable,get(){return ur!==void 0&&rr(i,ur,nr),i._snapshot},subscribe(e){let t=er(e),n={current:!1},r=gr(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ur,o=t?.compare??Object.is;if(n)ur=i,++nr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=F.Mutable|F.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{ur=a,n&&(i.flags&=~F.RecursedCheck),pr(i)}}};return n?(i.flags=F.Mutable|F.Dirty,i.get=function(){let e=i.flags;if(e&F.Dirty||e&F.Pending&&or(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&sr(e)}}else e&F.Pending&&(i.flags=e&~F.Pending);return ur!==void 0&&rr(i,ur,nr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ar(e),sr(e),mr())}},i}function gr(e){let t=()=>{let t=ur;ur=n,++nr,n.depsTail=void 0,n.flags=F.Watching|F.RecursedCheck;try{return e()}finally{ur=t,n.flags&=~F.RecursedCheck,pr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:F.Watching|F.RecursedCheck,notify(){let e=this.flags;e&F.Dirty||e&F.Pending&&or(this.deps,this)?t():this.flags=F.Watching},stop(){this.flags=F.None,this.depsTail=void 0,pr(this)}};return t(),n}function _r(e){let t=Be(),n=`not-found-${j(t.stores.location,e=>e.pathname)}-${j(t.stores.status,e=>e)}`;return(0,P.jsx)(Xn,{getResetKey:()=>n,onCatch:(t,n)=>{if(d(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(d(t))return e.fallback?.(t);throw t},children:e.children})}function vr(){return(0,P.jsx)(`p`,{children:`Not Found`})}function yr(e){return(0,P.jsx)(P.Fragment,{children:e.children})}function br(e,t,n){return t.options.notFoundComponent?(0,P.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,P.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,P.jsx)(vr,{})}var xr=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Sr=(e,t)=>e[0]===t[0]&&e[1]===t[1],Cr=N.memo(function({matchId:e}){let t=Be(),n=t.stores.matchStores.get(e);n||a();let r=j(t.stores.loadedAt,e=>e),i=j(n,e=>e,xr);return(0,P.jsx)(wr,{router:t,matchId:e,resetKey:r,matchState:N.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function wr({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,P.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,f=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?N.Suspense:yr,p=s?Xn:yr,m=l?_r:yr;return(0,P.jsxs)(i.isRoot?i.options.shellComponent??yr:yr,{children:[(0,P.jsx)(Se.Provider,{value:t,children:(0,P.jsx)(f,{fallback:o,children:(0,P.jsx)(p,{getResetKey:()=>n,errorComponent:s||Qn,onCatch:(e,t)=>{if(d(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,P.jsx)(m,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return N.createElement(l,e)},children:u||r._displayPending?(0,P.jsx)(xe,{fallback:o,children:(0,P.jsx)(Er,{matchId:t})}):(0,P.jsx)(Er,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Tr,{}),(e.options.scrollRestoration,null)]}):null]})}function Tr(){let e=Be(),t=N.useRef();return Le(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...ln(e.stores.location.get(),r??n)}),t.current=n},[j(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Er=N.memo(function({matchId:e}){let t=Be(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||a();let o=j(r,e=>e),s=o.routeId,c=t.routesById[s],l=N.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=N.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,P.jsx)(e,{},l):(0,P.jsx)(Dr,{})},[l,c.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,`displayPendingPromise`);if(o._forcePending)throw n(o,`minPendingPromise`);if(o.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=k();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,`loadPromise`)}if(o.status===`notFound`)return d(o.error)||a(),br(t,c,o.error);if(o.status===`redirected`)throw i(o.error)||a(),n(o,`loadPromise`);if(o.status===`error`)throw o.error;return u}),Dr=N.memo(function(){let e=Be(),t=N.useContext(Se),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=j(a,e=>[e?.routeId,e?.globalNotFound??!1],Sr),i=j(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let o=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,P.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return o||a(),br(e,o,void 0);if(!i)return null;let c=(0,P.jsx)(Cr,{matchId:i});return n===`__root__`?(0,P.jsx)(N.Suspense,{fallback:s,children:c}):c});function Or(){let e=Be(),t=N.useRef({router:e,mounted:!1}),[n,r]=N.useState(!1),i=j(e.stores.isLoading,e=>e),a=j(e.stores.hasPending,e=>e),o=ye(i),s=i||n||a,c=ye(s),l=i||a,u=ye(l);return e.startTransition=e=>{r(!0),N.startTransition(()=>{e(),r(!1)})},N.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ue(e.latestLocation.publicHref)!==ue(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Le(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),Le(()=>{o&&!i&&e.emit({type:`onLoad`,...ln(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),Le(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...ln(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),Le(()=>{if(c&&!s){let t=ln(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),fr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function kr(){let e=Be(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,P.jsx)(t,{}):null,r=(0,P.jsxs)(typeof document<`u`&&e.ssr?yr:N.Suspense,{fallback:n,children:[(0,P.jsx)(Or,{}),(0,P.jsx)(Ar,{})]});return e.options.InnerWrap?(0,P.jsx)(e.options.InnerWrap,{children:r}):r}function Ar(){let e=Be(),t=j(e.stores.firstId,e=>e),n=j(e.stores.loadedAt,e=>e),r=t?(0,P.jsx)(Cr,{matchId:t}):null;return(0,P.jsx)(Se.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,P.jsx)(Xn,{getResetKey:()=>n,errorComponent:Qn,onCatch:void 0,children:r})})}var jr=e=>({createMutableStore:hr,createReadonlyStore:hr,batch:fr}),Mr=e=>new Nr(e),Nr=class extends dn{constructor(e){super(e,jr)}};function Pr({router:e,children:t,...n}){he(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,P.jsx)(ze.Provider,{value:e,children:t});return e.options.Wrap?(0,P.jsx)(e.options.Wrap,{children:r}):r}function Fr({router:e,...t}){return(0,P.jsx)(Pr,{router:e,...t,children:(0,P.jsx)(kr,{})})}function Ir(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Lr(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,P.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,P.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,P.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,P.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,P.jsx)(Rr,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Rr({attrs:e,children:t,preventScriptHoist:n}){Be();let r=_e(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(N.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Ir(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Ir(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,P.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var zr=e=>{let t=Be(),n=t.options.ssr?.nonce,r=j(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),w),i=N.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:ae(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=j(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),w),o=j(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Hn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Ln(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},w),s=j(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...zn(a,t,e),nonce:n}})})}),i},w),c=j(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),w),l=j(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),w),u=[];return Vn(u,i),u.push(...s),Vn(u,a),u.push(...o),Vn(u,c),Vn(u,l),u};function Br(e){let t=zr(e.assetCrossOrigin),n=Be().options.ssr?.nonce;return(0,P.jsx)(P.Fragment,{children:t.map(e=>(0,N.createElement)(Lr,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Vr=()=>{let e=Be(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=j(e.stores.matches,n,w);return Hr(e,j(e.stores.matches,r,w),i)};function Hr(e,t,n){let r=[...t,...n];return(0,P.jsx)(P.Fragment,{children:r.map((e,t)=>(0,N.createElement)(Lr,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ur=`/assets/app-D1cij_NJ.css`,Wr=be({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Pievo`}],links:[{rel:`stylesheet`,href:Ur},{rel:`icon`,type:`image/svg+xml`,href:`/favicon.svg`}]}),shellComponent:Gr});function Gr({children:e}){return(0,P.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[(0,P.jsx)(`head`,{children:(0,P.jsx)(Br,{})}),(0,P.jsxs)(`body`,{className:`dot-grid-subtle bg-paper font-sans text-primary antialiased`,suppressHydrationWarning:!0,children:[e,(0,P.jsx)(Vr,{})]})]})}var Kr=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=N.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=N.useMemo(()=>({open:t,close:n}),[t,n]);return(0,P.jsx)(qe.Provider,{value:i,children:(0,P.jsx)($e,{delay:a,timeoutMs:r,children:e.children})})};function qr({job:e,onOpen:t,onPickRun:n}){let r=e.enabled,i=tt(e),a=ht(e),o=mt(),[s,c]=(0,N.useState)([]),l=(0,N.useMemo)(()=>s.length?Ze(e.runs??[],s):e.runs??[],[e.runs,s]),u=l.at(-1),d=u?.reportIncident?u:void 0;return(0,P.jsxs)(`div`,{onClick:()=>t(e.id),className:`mb-[18px] cursor-pointer rounded-card border border-hairline bg-surface px-[26px] pb-5 pt-[22px] shadow-card transition-colors hover:border-wire ${r||d?.reportIncident||e.pauseCause?.kind===`failure-streak`||e.pauseCause?.kind===`blocked`?``:`opacity-60`}`,style:{animation:`fadeIn .25s cubic-bezier(0.25,0.1,0.25,1) both`},children:[(0,P.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-center gap-3`,children:[(0,P.jsx)(`button`,{type:`button`,onClick:n=>{n.stopPropagation(),t(e.id)},className:`cursor-pointer rounded-sm text-left text-[17px] font-semibold tracking-[-0.01em] text-display outline-none focus-visible:ring-2 focus-visible:ring-interactive focus-visible:ring-offset-4 focus-visible:ring-offset-surface`,children:e.name}),a===`stopping`?(0,P.jsx)(ut,{tone:`running`,dot:`pulse`,children:`Stopping`}):a===`paused-finishing`?(0,P.jsx)(ut,{children:e.pauseCause?.kind===`blocked`?`Paused — blocked · current run finishing`:e.pauseCause?.kind===`owner`?`Paused by owner · current run finishing`:`Paused · current run finishing`}):a===`deleting`?(0,P.jsx)(ut,{children:`Deleting`}):e.running?(0,P.jsx)(ut,{tone:`running`,dot:`pulse`,children:`Running`}):e.queued?(0,P.jsx)(ut,{tone:`outline`,children:`Queued`}):null,e.graduation&&(0,P.jsx)(ut,{children:e.graduation}),e.goal&&(0,P.jsx)(ut,{tone:`success`,title:e.goal??void 0,children:`Objective`}),a===`paused`&&(0,P.jsx)(ut,{tone:e.pauseCause?.kind===`blocked`?`accent`:void 0,children:e.pauseCause?.kind===`blocked`?`Paused — blocked`:e.pauseCause?.kind===`failure-streak`?`Paused automatically`:e.pauseCause?.kind===`owner`?`Paused by owner`:`Paused`}),(0,P.jsxs)(`div`,{className:`ml-auto min-w-0 text-right text-meta text-secondary`,children:[(0,P.jsxs)(`div`,{className:`whitespace-nowrap`,children:[(0,P.jsx)(`span`,{className:`text-primary`,title:e.cron,children:e.scheduleMode===`continuous`?`continuous · ${e.continuousDelayMinutes}m`:rt(e.cron)}),(0,P.jsx)(`span`,{className:`mx-2.5 text-wire`,children:`·`}),e.kind]}),(0,P.jsxs)(`div`,{className:`mt-1 truncate text-caption text-disabled`,title:`Model: ${e.model||`default`} · Reasoning: ${e.reasoningEffort||`default`}`,children:[`Model: `,e.model||`default`,` · Reasoning: `,e.reasoningEffort||`default`]})]})]}),(0,P.jsx)(Ye,{job:e,runs:l,total:e.runCount,onLoadMore:async()=>{let t=l[0];if(!t)return 0;let n=await m({data:{loopId:e.id,beforeTs:t.ts,limit:16}});return n.length&&c(e=>Ze(e,n)),n.length},onPickRun:t=>n(e.id,t)}),(0,P.jsxs)(`div`,{className:`mt-[18px] flex items-center gap-2 text-label text-secondary`,children:[(0,P.jsxs)(`span`,{children:[e.runCount,` runs`]}),i&&(0,P.jsxs)(`span`,{children:[`· last `,nt(i),o&&` · ${et(i.ts)}`]})]}),d?.reportIncident&&(0,P.jsx)(`div`,{className:`mt-1.5 text-label text-secondary`,children:d.phase===`error`?`Last run failed · Terminal report rejected`:`Last run telemetry warning · Terminal report rejected`})]})}function Jr(e){document.cookie=`pievo.team=${encodeURIComponent(e)}; path=/; max-age=31536000; samesite=lax`}function Yr({data:e}){let t=ke();if(!e||e.teams.length===0)return null;let n=e=>{Jr(e),t({to:`/t/$teamId`,params:{teamId:e}})};return e.teams.length===1?(0,P.jsx)(`span`,{title:`Active team`,className:`inline-flex items-center rounded-full bg-raised px-3 py-1 text-label font-medium text-secondary`,children:e.teams[0].name}):(0,P.jsx)(`select`,{"aria-label":`Active team`,value:e.activeTeamId,onChange:e=>n(e.target.value),className:`lp-select cursor-pointer rounded-full bg-raised py-1 pl-3 text-label font-medium text-secondary outline-none transition-colors hover:text-display`,children:e.teams.map(e=>(0,P.jsx)(`option`,{value:e.id,children:e.name},e.id))})}var Xr={telegram:{label:`Telegram`,help:`Create a bot with @BotFather, then DM it once so it can message you.`,fields:[{key:`botToken`,label:`Bot token`,ph:`123456:ABC-DEF…`},{key:`chatId`,label:`Chat id`,ph:`e.g. 87654321 (message @userinfobot to get yours)`}]},feishu:{label:`Feishu`,help:`In a Feishu group: 设置 → 机器人 → 添加自定义机器人. Pick a security setting (signing recommended; paste the secret below if you enabled 签名校验).`,fields:[{key:`webhookUrl`,label:`Webhook URL`,ph:`https://open.feishu.cn/open-apis/bot/v2/hook/…`},{key:`secret`,label:`Signing secret (optional)`,ph:`only if you enabled 签名校验`,optional:!0}]}},Zr=[`telegram`,`feishu`];function Qr(e){return Xr[e]?.label??(e===`slack`?`Slack`:e)}function $r({open:e,onClose:t}){let[n,r]=(0,N.useState)([]),[i,a]=(0,N.useState)(null),[o,s]=(0,N.useState)(``),[c,l]=(0,N.useState)({}),[u,d]=(0,N.useState)(!1),[f,p]=(0,N.useState)(null),[m,h]=(0,N.useState)({}),g=(0,N.useCallback)(async()=>{try{r(await Xe())}catch{}},[]);(0,N.useEffect)(()=>{if(!e){p(null),a(null);return}g()},[e,g]);function _(e){s(``),l({}),p(null),a(e)}let v=i?Xr[i]:null,y=!!o.trim()&&!!v&&v.fields.every(e=>e.optional||c[e.key]?.trim());async function b(){if(!(!i||!v)){p(null),d(!0);try{let e=Object.fromEntries(v.fields.filter(e=>c[e.key]?.trim()).map(e=>[e.key,c[e.key].trim()])),t=await Qe({data:{type:i,name:o.trim(),config:e}});if(!t.ok){p(t.error??`Could not save this channel.`);return}a(null),await g()}finally{d(!1)}}}async function x(e){p(null);let t=await Je({data:e});if(!t.ok){p(t.error??`Could not delete this channel.`);return}await g()}async function S(e){h(t=>({...t,[e]:`sending`}));let t=await Ke({data:e});h(n=>({...n,[e]:t.ok?`ok`:t.error||`failed`})),setTimeout(()=>h(t=>({...t,[e]:``})),4e3)}return(0,P.jsxs)(Ue,{open:e,onClose:t,children:[(0,P.jsx)(Ve,{title:`Notifications`,sub:`Push channels for this team. A loop routes its run messages to the channel you pick on it.`}),f&&(0,P.jsx)(dt,{message:f,onDismiss:()=>p(null),className:`mb-2 mt-3`}),(0,P.jsx)(He,{children:`Channels`}),n.length===0&&!i&&(0,P.jsx)(`div`,{className:`py-3 text-body text-secondary`,children:`No channels yet.`}),(0,P.jsx)(`ul`,{className:`flex flex-col gap-2`,children:n.map(e=>{let t=m[e.id];return(0,P.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-control border border-hairline bg-surface px-4 py-3`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2.5`,children:[(0,P.jsx)(`span`,{className:`text-[15px] font-medium text-display`,children:e.name}),(0,P.jsxs)(`span`,{className:`text-label text-secondary`,children:[Qr(e.type),` · `,e.hint]})]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[t&&t!==`sending`&&(0,P.jsx)(`span`,{className:`inline-flex h-[22px] items-center gap-1.5 rounded-full px-2.5 text-caption font-medium ${t===`ok`?`bg-success-soft text-success`:`bg-accent-soft text-accent`}`,title:t===`ok`?void 0:t,children:t===`ok`?`Sent ✓`:`Failed`}),(0,P.jsx)(`button`,{className:ct,disabled:t===`sending`,onClick:()=>void S(e.id),children:t===`sending`?`Sending…`:`Test`}),(0,P.jsx)(`button`,{className:it,onClick:()=>void x(e.id),children:`Delete`})]})]},e.id)})}),i&&v?(0,P.jsxs)(`div`,{className:`mt-4 rounded-control border border-hairline bg-raised px-4 py-3`,children:[(0,P.jsxs)(He,{children:[`New `,v.label,` channel`]}),(0,P.jsx)(`label`,{className:st,children:`Name`}),(0,P.jsx)(`input`,{className:lt,value:o,onChange:e=>s(e.target.value),placeholder:`e.g. My alerts`}),v.fields.map(e=>(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`label`,{className:st,children:e.label}),(0,P.jsx)(`input`,{className:`${lt} font-mono`,value:c[e.key]??``,onChange:t=>l(n=>({...n,[e.key]:t.target.value})),placeholder:e.ph})]},e.key)),(0,P.jsx)(`div`,{className:`mt-1 text-label text-secondary`,children:v.help}),(0,P.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,P.jsx)(`button`,{className:ct,onClick:()=>a(null),children:`Cancel`}),(0,P.jsx)(`button`,{className:ot,disabled:u||!y,onClick:()=>void b(),children:u?`Saving…`:`Save channel`})]})]}):(0,P.jsx)(`div`,{className:`mt-6 flex gap-2`,children:Zr.map(e=>(0,P.jsxs)(`button`,{className:ot,onClick:()=>_(e),children:[`+ Add `,Xr[e]?.label??e]},e))})]})}var ei=f({method:`GET`}).handler(u(`94d1108f156fa2273cb78140852e9c3e368de0b8321db0de932a16567671716f`)),ti=f({method:`GET`}).handler(u(`fc7a4775f418dde12f422ff9ca65d9e07428fb0dc35c9399592c0081467330bf`)),ni=f({method:`POST`}).handler(u(`0f279cfe81021a642289ce6e95622e7198aaeab4147880f85824a02ee9ebafcf`)),ri=f({method:`POST`}).handler(u(`5721e01d84c20ffde19d2191648d76a7e5ede3bbb4f44efa59107a786947cf27`)),ii=f({method:`POST`}).handler(u(`d2372a81af17eb3a7e4c1407d6ef26a8a9522b66fd6a94858cb35c864b270d77`)),ai=f({method:`POST`}).handler(u(`284cb82b5e5cb37242d053b1b14449760d8334e9dadffc6dcbba11db2200a709`)),oi=f({method:`POST`}).handler(u(`c3762cecd4a15f7eca064bca295255e942d7c3dce65f66f8593ae145fd7859a0`)),si=f({method:`POST`}).handler(u(`a3326ed8ecd726fbcc28a439bf0012983cbe387d5062e0155096ee5a558e313b`)),ci=f({method:`POST`}).handler(u(`fe7cc1df829414194e9b0615b86584c8510369da18f4d8805ccd76468cadf2ff`)),li=f({method:`POST`}).handler(u(`bbc1020c771335020ef51b326d74b1649966740f273913d32040fa2c3c9f5f0b`)),ui=f({method:`POST`}).handler(u(`b92e9a08eda2d217bf4028f90dbc6bf7d7e8d7c148ebb8a8330286b5935a3fa1`)),di=f({method:`POST`}).handler(u(`6f5fe23f6da1d4aecc198b6f71a041c0fe29cabb6ccad807bb3f16c23c5bd9cd`));function fi(e){return`${typeof window<`u`?window.location.origin:``}/invite/${e}`}function pi({text:e}){let[t,n]=(0,N.useState)(!1);return(0,P.jsx)(`button`,{className:at,onClick:()=>{navigator.clipboard?.writeText(e),n(!0),setTimeout(()=>n(!1),1400)},children:t?`Copied ✓`:`Copy link`})}function mi({open:e,onClose:t,activeTeamId:n}){let r=ke(),[i,a]=(0,N.useState)([]),[o,s]=(0,N.useState)(null),[c,l]=(0,N.useState)(null),[u,d]=(0,N.useState)(null),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(``),[g,_]=(0,N.useState)(``),[v,y]=(0,N.useState)(``),[b,x]=(0,N.useState)(`member`),[S,C]=(0,N.useState)(`member`),[ee,te]=(0,N.useState)(null),w=(0,N.useCallback)(async()=>{try{a(await ei())}catch{}},[]),T=(0,N.useCallback)(async e=>{let t=await ti({data:e});if(`error`in t){d(t.error),l(null);return}l(t),_(t.name)},[]);(0,N.useEffect)(()=>{if(!e){d(null),s(null),l(null),te(null);return}w()},[e,w]),(0,N.useEffect)(()=>{!e||!o||(te(null),T(o))},[e,o,T]);async function E(e){p(!0),d(null);try{return await e()}finally{p(!1)}}async function ne(){let e=m.trim();e&&await E(async()=>{let t=await ni({data:e});if(!t.ok)return d(t.error);h(``),await w(),s(t.id)})}async function re(){if(!c)return;let e=g.trim();!e||e===c.name||await E(async()=>{let t=await ri({data:{teamId:c.id,name:e}});if(!t.ok)return d(t.error);await w(),await T(c.id)})}async function ie(){c&&await E(async()=>{let e=await ii({data:c.id});if(!e.ok)return d(e.error);let i=c.id;s(null),l(null),await w(),i===n&&(t(),r({to:`/`}))})}async function ae(){c&&await E(async()=>{let e=await ci({data:c.id});if(!e.ok)return d(e.error);let i=c.id;s(null),l(null),await w(),i===n&&(t(),r({to:`/`}))})}async function oe(){if(!c)return;let e=v.trim();e&&await E(async()=>{let t=await ai({data:{teamId:c.id,email:e,role:b}});if(!t.ok)return d(t.error);y(``),await T(c.id),await w()})}async function se(e,t){c&&await E(async()=>{let n=await oi({data:{teamId:c.id,userId:e,role:t}});if(!n.ok)return d(n.error);await T(c.id)})}async function D(e){c&&await E(async()=>{let t=await si({data:{teamId:c.id,userId:e}});if(!t.ok)return d(t.error);await T(c.id),await w()})}async function O(){c&&await E(async()=>{let e=await li({data:{teamId:c.id,role:S}});if(!e.ok)return d(e.error);te(e.token),await T(c.id)})}async function ce(e){c&&await E(async()=>{let t=await ui({data:{teamId:c.id,token:e}});if(!t.ok)return d(t.error);ee===e&&te(null),await T(c.id)})}let le=c?.role===`owner`;return(0,P.jsxs)(Ue,{open:e,onClose:t,wide:!0,children:[(0,P.jsx)(Ve,{title:`Teams`,sub:`Create teams, manage members and roles, and invite people. Team management is owner-only; any member can create loops.`}),u&&(0,P.jsx)(dt,{message:u,onDismiss:()=>d(null),className:`mb-2 mt-3`}),(0,P.jsxs)(`div`,{className:`mt-3 grid gap-6 md:grid-cols-[minmax(0,18rem)_minmax(0,1fr)]`,children:[(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(He,{children:`My teams`}),i.length===0&&(0,P.jsx)(`div`,{className:`py-2 text-body text-secondary`,children:`No teams yet.`}),(0,P.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:i.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsxs)(`button`,{onClick:()=>s(e.id),className:`flex w-full items-center justify-between gap-2 rounded-control border px-3 py-2 text-left transition-colors ${o===e.id?`border-display bg-raised`:`border-hairline bg-surface hover:bg-raised`}`,children:[(0,P.jsx)(`span`,{className:`min-w-0 truncate text-[15px] font-medium text-display`,children:e.name}),(0,P.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:[(0,P.jsx)(ut,{tone:e.role===`owner`?`ink`:`neutral`,children:e.role}),(0,P.jsxs)(`span`,{className:`text-label text-secondary`,children:[e.memberCount,` member`,e.memberCount===1?``:`s`]})]})]})},e.id))}),(0,P.jsxs)(`div`,{className:`mt-4 rounded-control border border-hairline bg-raised px-3 py-3`,children:[(0,P.jsx)(`label`,{className:`${st} mt-0`,children:`New team`}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(`input`,{className:lt,value:m,onChange:e=>h(e.target.value),placeholder:`e.g. Growth Squad`,onKeyDown:e=>e.key===`Enter`&&void ne()}),(0,P.jsx)(`button`,{className:ot,disabled:f||!m.trim(),onClick:()=>void ne(),children:`Create`})]})]})]}),(0,P.jsx)(`div`,{className:`min-w-0`,children:c?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(He,{action:(0,P.jsx)(`button`,{className:at,onClick:()=>{Jr(c.id),t(),r({to:`/t/$teamId`,params:{teamId:c.id}})},children:`Open dashboard →`}),children:[c.name,c.personal?` · personal`:``]}),le&&(0,P.jsxs)(`div`,{className:`mb-4`,children:[(0,P.jsx)(`label`,{className:`mb-1.5 mt-3 block text-label font-medium text-secondary`,children:`Team name`}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(`input`,{"aria-label":`Team name`,className:lt,value:g,onChange:e=>_(e.target.value)}),(0,P.jsx)(`button`,{className:ct,disabled:f||!g.trim()||g.trim()===c.name,onClick:()=>void re(),children:`Rename`})]})]}),(0,P.jsx)(He,{children:`Members`}),(0,P.jsx)(`ul`,{className:`flex flex-col gap-2`,children:c.members.map(e=>(0,P.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-control border border-hairline bg-surface px-3 py-2.5`,children:[(0,P.jsx)(`div`,{className:`flex min-w-0 flex-col`,children:(0,P.jsxs)(`span`,{className:`truncate text-[15px] font-medium text-display`,children:[e.email??e.displayName??e.userId,e.isSelf&&(0,P.jsx)(`span`,{className:`ml-1.5 text-label text-secondary`,children:`(you)`})]})}),(0,P.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:le&&!e.isSelf?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`select`,{"aria-label":`Role`,className:`${pt} w-auto py-1.5`,value:e.role,onChange:t=>void se(e.userId,t.target.value),children:[(0,P.jsx)(`option`,{value:`owner`,children:`owner`}),(0,P.jsx)(`option`,{value:`member`,children:`member`})]}),(0,P.jsx)(`button`,{className:it,disabled:f,onClick:()=>void D(e.userId),children:`Remove`})]}):(0,P.jsx)(ut,{tone:e.role===`owner`?`ink`:`neutral`,children:e.role})})]},e.userId))}),le&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`mt-4 rounded-control border border-hairline bg-raised px-3 py-3`,children:[(0,P.jsx)(`label`,{className:`mb-1.5 mt-3 block text-label font-medium text-secondary mt-0`,children:`Add a member by email`}),(0,P.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,P.jsx)(`input`,{className:`${lt} min-w-[12rem] flex-1`,value:v,onChange:e=>y(e.target.value),placeholder:`teammate@example.com`,onKeyDown:e=>e.key===`Enter`&&void oe()}),(0,P.jsxs)(`select`,{"aria-label":`Role for new member`,className:`${pt} w-auto`,value:b,onChange:e=>x(e.target.value),children:[(0,P.jsx)(`option`,{value:`member`,children:`member`}),(0,P.jsx)(`option`,{value:`owner`,children:`owner`})]}),(0,P.jsx)(`button`,{className:ot,disabled:f||!v.trim(),onClick:()=>void oe(),children:`Add`})]}),(0,P.jsx)(`div`,{className:`mt-1.5 text-label text-secondary`,children:`Adds an existing Pievo account immediately. No account yet? Generate an invite link below.`})]}),(0,P.jsx)(He,{children:`Invite links`}),(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,P.jsxs)(`select`,{"aria-label":`Invite role`,className:`${pt} w-auto`,value:S,onChange:e=>C(e.target.value),children:[(0,P.jsx)(`option`,{value:`member`,children:`as member`}),(0,P.jsx)(`option`,{value:`owner`,children:`as owner`})]}),(0,P.jsx)(`button`,{className:ct,disabled:f,onClick:()=>void O(),children:`Generate invite link`}),(0,P.jsx)(`span`,{className:`text-label text-secondary`,children:`Single-use · expires in 7 days`})]}),c.invites.length>0&&(0,P.jsx)(`ul`,{className:`mt-3 flex flex-col gap-2`,children:c.invites.map(e=>(0,P.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-control border border-hairline bg-surface px-3 py-2.5`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,P.jsx)(ut,{tone:`neutral`,children:e.role}),(0,P.jsx)(`span`,{className:`min-w-0 truncate font-mono text-label ${ee===e.token?`text-display`:`text-secondary`}`,children:fi(e.token)})]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,P.jsx)(pi,{text:fi(e.token)}),(0,P.jsx)(`button`,{className:it,disabled:f,onClick:()=>void ce(e.token),children:`Revoke`})]})]},e.token))})]}),(0,P.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-3 border-t border-hairline pt-4`,children:[c.personal?(0,P.jsx)(`span`,{className:`text-label text-secondary`,children:`Your personal team can't be left or deleted.`}):(0,P.jsx)(`button`,{className:ct,disabled:f,onClick:()=>void ae(),children:`Leave team`}),le&&!c.personal&&(0,P.jsxs)(`button`,{className:it,disabled:f||c.loopCount>0,title:c.loopCount>0?`Move or delete this team's ${c.loopCount} loop${c.loopCount===1?``:`s`} first`:void 0,onClick:()=>void ie(),children:[`Delete team`,c.loopCount>0?` (${c.loopCount} loop${c.loopCount===1?``:`s`})`:``]})]})]}):(0,P.jsx)(`div`,{className:`flex h-full items-center justify-center py-10 text-body text-secondary`,children:`Select a team to manage it, or create one.`})})]})]})}var hi={"react-doctor":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 6am`,detail:`the loop wakes on cadence`},{id:`scan`,kicker:`Step 1 · Scan`,glyph:`⌕`,title:`Scan the app`,detail:(0,P.jsx)(`code`,{children:`npx react-doctor@latest`})},{id:`prio`,kicker:`Step 2 · Prioritise`,glyph:`⚖`,title:`Pick one issue`,detail:`the worst, by severity & perf impact`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Fix in isolation`,detail:`smallest change, fresh branch`},{id:`verify`,wt:!0,kicker:`Step 4 · Verify`,glyph:`▷`,title:`Verify the fix`,detail:`prove it holds before proposing`},{id:`ship`,wt:!0,kicker:`Step 5 · Ship`,glyph:`⑂`,title:`Open a PR`,detail:`skip if a prior PR's still open`}],dashboard:[{type:`kanban`,heading:`PR board`,sub:`open → merged`,columns:[[`Open`,[[`#231`,`Key-less list items in <Feed/>`,`opened 6h ago`],[`#219`,`Missing memo on heavy list row`,`opened 1d ago`]]],[`Merged`,[[`#212`,`Effect re-runs on every render`,`merged 2d ago`],[`#205`,`Unmemoised context value`,`merged 4d ago`],[`#198`,`Inline object prop churn`,`merged 6d ago`]]]]},{type:`metric`,label:`Health score`,series:[66,68,67,71,72,71,75,77,76,79,81,80,83,84]}]},"docs-sweep":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every Mon · 6am`,detail:`weekly · picks up where it left off`},{id:`diff`,kicker:`Step 1 · Compare`,glyph:`⌕`,title:`Diff since last sweep`,detail:`docs vs. what the code ships now`},{id:`verify`,kicker:`Step 2 · Verify`,glyph:`▷`,title:`Verify for real`,detail:`run the commands, links & examples`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Fix real drift only`,detail:`never rewrite accurate docs`},{id:`ship`,wt:!0,kicker:`Step 4 · Ship`,glyph:`⑂`,title:`Open a PR`,detail:`explains the drift · no stacking`}],dashboard:[{type:`embed`,heading:`Latest sweep summary`,title:`Docs drift — weekly sweep`,date:`2026-07-06`,lines:[`3 items fixed, each verified by running it`,`README — dev server is :3001, not :3000`,`Setup guide — dropped a dead /api/v1 link`,"Quickstart — refreshed `pievo new` flags"]},{type:`metric`,label:`Drift count`,series:[6,4,5,3,2,3,1,2,1,0],note:`0 = docs are honest — a clean stop, no PR.`,betterDown:!0}]},"error-sweep":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Verify an error source`,detail:`smoke-test logs / tracker / gh · confirm window`},{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 6am`,detail:`sweeps the agreed window`},{id:`sweep`,kicker:`Step 1 · Sweep`,glyph:`⌕`,title:`Group into incidents`,detail:`cluster repeated symptoms`},{id:`triage`,kicker:`Step 2 · Triage`,glyph:`⚖`,title:`Actionable vs. noise`,detail:`drop upstream & noise`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Root-cause & fix`,detail:`smallest verified fix`},{id:`ship`,wt:!0,kicker:`Step 4 · Ship`,glyph:`⑂`,title:`One PR per fix`,detail:`no stacking · never leak secrets`}],dashboard:[{type:`embed`,heading:`Newest report`,title:`Error sweep — daily`,date:`2026-07-08`,lines:[`2 actionable, 14 noise filtered out`,`Checkout 500 — null cart on retry (fixed)`,`/api/render timeout — upstream, watching`,`No credentials or PII in this report`]},{type:`metric`,label:`Actionable errors`,series:[5,3,4,2,3,1,2,1,0,1],note:`0 actionable = a clean stop, no PR.`,betterDown:!0}]},housekeeper:{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 7am`,detail:`one cleanup a day, no more`},{id:`survey`,kicker:`Step 1 · Survey`,glyph:`⌕`,title:`Find housekeeping debt`,detail:`dead code, stale files, dupes, unused deps`},{id:`prove`,kicker:`Step 2 · Prove`,glyph:`⚖`,title:`Pick one, prove it safe`,detail:`concrete evidence · uncertain → deferred`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Smallest change`,detail:`keep only if build & tests stay green`},{id:`ship`,wt:!0,kicker:`Step 4 · Ship`,glyph:`⑂`,title:`Open a PR`,detail:`no stacking on an open PR`}],dashboard:[{type:`kanban`,heading:`Cleanup board`,sub:`open → merged`,columns:[[`Open`,[[`#142`,`Remove dead export in utils/date`,`opened 5h ago`],[`#138`,`Drop unused dep left-pad`,`opened 2d ago`]]],[`Merged`,[[`#131`,`Delete stale scripts/legacy dir`,`merged 1d ago`],[`#124`,`Dedupe two clamp() helpers`,`merged 3d ago`],[`#119`,`Rename inconsistent isLoading flags`,`merged 5d ago`]]]]},{type:`metric`,label:`Cleanups landed`,series:[0,1,1,2,3,3,4,5,6,6,7,9,10,12]}]},"dependency-triage":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Confirm merge authority`,detail:`smoke-test gh sees Dependabot/Renovate · agree merge policy`},{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every Mon`,detail:`weekly · snapshots the open PRs`},{id:`snapshot`,kicker:`Step 1 · Snapshot`,glyph:`⌕`,title:`List open dep PRs`,detail:`process each exactly once`},{id:`judge`,kicker:`Step 2 · Judge`,glyph:`⚖`,title:`Weigh real evidence`,detail:`diff · release notes · advisories · CI at head`},{id:`test`,wt:!0,kicker:`Step 3 · Test`,glyph:`▷`,title:`Run tests in isolation`,detail:`at the exact head · checkout untouched`},{id:`merge`,wt:!0,kicker:`Step 4 · Merge`,glyph:`⑂`,title:`Merge only what’s authorized`,detail:`major/breaking/security → recommend, don’t merge`}],dashboard:[{type:`kanban`,heading:`Dependency PRs`,sub:`merged · deferred · blocked`,columns:[[`Merged`,[[`#412`,`bump vite 7.0→7.1 (patch)`,`merged 1h ago`],[`#408`,`bump @types/node 20→20.14 (minor)`,`merged 3h ago`]]],[`Deferred`,[[`#399`,`react 18→19 (major) — review`,`deferred 2d ago`],[`#391`,`drizzle-orm 0.30→0.31 — CI red`,`deferred 2d ago`]]],[`Blocked`,[[`#405`,`lodash advisory GHSA-…-qxrp (high)`,`flagged 1h ago`]]]]},{type:`metric`,label:`Open dependency PRs`,series:[9,8,8,6,7,5,4,3,4,2],note:`trends down as PRs are merged or resolved.`,betterDown:!0}]},"market-research":{worktreeLabel:``,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Confirm the research focus`,detail:`infer the product & space · propose a focus, confirm`},{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 5am`,detail:`the loop wakes on cadence`},{id:`research`,kicker:`Step 1 · Research`,glyph:`⌕`,title:`Scan today's market`,detail:`competitors, launches, pricing, ecosystem news`},{id:`report`,kicker:`Step 2 · Report`,glyph:`✎`,title:`One dated report`,detail:(0,P.jsx)(`code`,{children:`type: report · title · date`})},{id:`sharpen`,kicker:`Step 3 · Sharpen`,glyph:`✧`,title:`Sharpen the focus`,detail:`lean into what keeps turning out to matter`}],dashboard:[{type:`calendar`,heading:`Reports calendar`,monthLabel:`July 2026`,days:31,firstWeekday:2,reportDays:[1,2,3,6,7,8]},{type:`embed`,heading:`Newest report`,title:`Market watch — daily digest`,date:`2026-07-08`,lines:[`Today's signal: two rivals converged on usage-based pricing`,`Northwind shipped an AI triage add-on, free in beta`,`Acme cut its Team tier 20% and dropped the seat minimum`,`Ecosystem: a new OSS connector spec is gaining traction`]}]},"follow-up-tracker":{worktreeLabel:``,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Verify + define the target`,detail:`smoke-test an observation path · set a standing objective`},{id:`tick`,kicker:`On cadence`,glyph:`◷`,title:`A few times a day`,detail:`wakes on cadence — no fixed clock time`},{id:`observe`,kicker:`Step 1 · Observe`,glyph:`⌕`,title:`Check the outcome`,detail:`through the verified path — logs / URL / gh`},{id:`report`,kicker:`Step 2 · Report`,glyph:`◈`,title:`Report what you find`,detail:`one report · a metric when natural`},{id:`check`,kicker:`Step 3 · Check`,glyph:`⚖`,title:`Track the objective`,detail:`keep watching and surface regressions`}],dashboard:[{type:`embed`,heading:`Latest observation`,title:`Checkout fix — follow-up`,date:`2026-07-08`,lines:[`conversion 29% → 44% over 3 days`,`no error spikes since the deploy`,`goal: hold ≥ 40% for 48h — 31h in, on track`]},{type:`metric`,label:`Checkout conversion %`,series:[29,31,30,34,37,39,41,43,44],note:`objective: sustain ≥ 40%; keep watching for regressions.`}]}},gi=e=>e in hi,_i=344,vi=68,yi=248,bi=64,xi=192,Si=6,Ci=30,wi=48,Ti=280,Ei=18,Di=16,Oi=e=>e.setup?78:bi;function ki(e){let t=e.findIndex(e=>!e.setup),n=[],r=Si;e.forEach((i,a)=>{if(a>0){let t=!!e[a-1].wt,n=!!i.wt,o=!t&&n?48:t&&n?30:36;r+=Oi(e[a-1])+o}let o=i.setup?`setup`:a===t?`tick`:`step`;n.push({...i,kind:o,x:vi,y:r,w:yi,h:Oi(i)})});let i=n.filter(e=>e.wt),a=i.length?{x:wi,y:i[0].y-Ei,w:Ti,h:i[i.length-1].y+i[i.length-1].h+Di-(i[0].y-Ei)}:null,o=[];for(let e=0;e<n.length-1;e++)o.push(`M${xi} ${n[e].y+n[e].h} L${xi} ${n[e+1].y-4}`);let s=n[t],c=s.y+s.h/2,l=n[n.length-1],u=o.length,d=l.y+l.h+28;return o.push(`M${xi} ${l.y+l.h} L${xi} ${d-6} Q${xi} ${d} ${xi-6} ${d} L36 ${d} Q${Ci} ${d} ${Ci} ${d-6} L${Ci} ${c+6} Q${Ci} ${c} 36 ${c} L${vi-4} ${c}`),{nodes:n,wires:o,route:`M${n.slice(t).map(e=>`${xi} ${e.y+e.h/2}`).join(` L `)} L${xi} ${d} L${Ci} ${d} L${Ci} ${c} L${vi-4} ${c}`,worktree:a,returnWireIndex:u,viewW:_i,viewH:d+14}}function Ai({template:e}){let t=hi[e.name],[n,r]=(0,N.useState)(`flow`);return t?(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`mb-4 inline-flex rounded-full border border-hairline bg-raised p-0.5 text-label`,children:[(0,P.jsx)(ji,{active:n===`flow`,onClick:()=>r(`flow`),children:`Loop flow`}),(0,P.jsx)(ji,{active:n===`dashboard`,onClick:()=>r(`dashboard`),children:`Dashboard`})]}),n===`flow`?(0,P.jsx)(Mi,{spec:t}):(0,P.jsx)(Ni,{spec:t})]}):null}function ji({active:e,onClick:t,children:n}){return(0,P.jsx)(`button`,{type:`button`,onClick:t,className:`cursor-pointer rounded-full px-3.5 py-1.5 font-medium transition-colors ${e?`bg-surface text-display shadow-card`:`text-secondary hover:text-display`}`,children:n})}function Mi({spec:e}){let t=(0,N.useMemo)(()=>ki(e.nodes),[e]),n=(0,N.useRef)(null);return(0,N.useEffect)(()=>{let e=n.current;if(!e||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let r=e.querySelector(`.lpf-route`),i=e.querySelector(`.lpf-pulse`),a=e.querySelector(`.lpf-comet`);if(!r||!i||!a)return;let o=r.getTotalLength(),s=[];for(let e=0;e<=600;e++){let t=o*e/600,n=r.getPointAtLength(t);s.push([t,n.x,n.y])}let c=(e,t)=>{let n=0,r=1/0;for(let i of s){let a=(i[1]-e)**2+(i[2]-t)**2;a<r&&(r=a,n=i[0])}return n},l=new Map;e.querySelectorAll(`[data-lpf]`).forEach(e=>l.set(e.dataset.lpf,e));let u=t.nodes.filter(e=>e.kind!==`setup`).map(e=>({len:c(e.x+e.w/2,e.y+e.h/2),el:l.get(e.id)})).filter(e=>e.el).sort((e,t)=>e.len-t.len),d=210/1e3,f=[],p=u[0],m=u[u.length-1];f.push({type:`dwell`,at:p,dur:520});for(let e=0;e<u.length-1;e++){let t=u[e],n=u[e+1];f.push({type:`move`,from:t.len,to:n.len,dur:Math.max(360,(n.len-t.len)/d)}),f.push({type:`dwell`,at:n,dur:520})}f.push({type:`return`,from:m.len,to:o,dur:Math.max(720,(o-m.len)/d)}),f.push({type:`dwell`,at:p,dur:160,restart:!0}),a.setAttribute(`stroke-dasharray`,`52 ${o}`);let h=e=>{let t=Math.max(0,Math.min(o,e)),n=r.getPointAtLength(t);i.setAttribute(`cx`,n.x.toFixed(2)),i.setAttribute(`cy`,n.y.toFixed(2)),a.setAttribute(`stroke-dashoffset`,(-(e-52*.5)).toFixed(2))},g=()=>u.forEach(e=>e.el.classList.remove(`active`)),_=()=>u.forEach(e=>e.el.classList.remove(`visited`)),v=e=>{g(),e.el.classList.add(`active`,`visited`)},y=0,b=performance.now(),x=0,S=e=>{let t=f[y],n=e-b;if(n>=t.dur)(t.type===`move`||t.type===`return`)&&t.to!=null&&h(t.to),y=(y+1)%f.length,b=e,t=f[y],t.restart&&_(),t.type===`dwell`&&t.at&&(v(t.at),h(t.at.len)),t.type===`return`&&g();else if((t.type===`move`||t.type===`return`)&&t.from!=null&&t.to!=null){let e=n/t.dur,r=e<.5?2*e*e:1-(-2*e+2)**2/2;h(t.from+(t.to-t.from)*r)}else t.at&&h(t.at.len);x=requestAnimationFrame(S)};return v(p),h(p.len),x=requestAnimationFrame(S),()=>cancelAnimationFrame(x)},[t]),(0,P.jsx)(`div`,{ref:n,children:(0,P.jsx)(`div`,{className:`overflow-x-auto`,children:(0,P.jsxs)(`div`,{className:`relative mx-auto`,style:{width:t.viewW,height:t.viewH},children:[(0,P.jsxs)(`svg`,{className:`absolute inset-0`,width:t.viewW,height:t.viewH,viewBox:`0 0 ${t.viewW} ${t.viewH}`,"aria-hidden":`true`,children:[(0,P.jsxs)(`defs`,{children:[(0,P.jsx)(`marker`,{id:`lpf-arw`,markerUnits:`userSpaceOnUse`,viewBox:`0 0 8 8`,refX:`6`,refY:`4`,markerWidth:`9`,markerHeight:`9`,orient:`auto-start-reverse`,children:(0,P.jsx)(`path`,{d:`M1.2 1.2 L7 4 L1.2 6.8 Z`,fill:`var(--color-interactive)`})}),(0,P.jsxs)(`filter`,{id:`lpf-glow`,x:`-60%`,y:`-60%`,width:`220%`,height:`220%`,children:[(0,P.jsx)(`feGaussianBlur`,{stdDeviation:`2.4`,result:`b`}),(0,P.jsxs)(`feMerge`,{children:[(0,P.jsx)(`feMergeNode`,{in:`b`}),(0,P.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]}),(0,P.jsx)(`path`,{className:`lpf-route`,fill:`none`,d:t.route})]}),t.wires.map((e,n)=>(0,P.jsx)(`path`,{className:`lpf-wire`,d:e,fill:`none`,strokeWidth:2,strokeLinecap:`round`,strokeDasharray:n===t.returnWireIndex?`6 6`:void 0,markerEnd:`url(#lpf-arw)`},n)),(0,P.jsx)(`path`,{className:`lpf-comet`,d:t.route,fill:`none`,strokeWidth:2.5,strokeLinecap:`round`,filter:`url(#lpf-glow)`,opacity:.9}),(0,P.jsx)(`circle`,{className:`lpf-pulse`,r:3.8,filter:`url(#lpf-glow)`})]}),t.worktree&&(0,P.jsx)(`div`,{className:`absolute rounded-[14px] border border-dashed`,style:{left:t.worktree.x,top:t.worktree.y,width:t.worktree.w,height:t.worktree.h,borderColor:`var(--color-interactive)`,background:`var(--color-interactive-soft)`},children:(0,P.jsx)(`span`,{className:`absolute px-2 font-mono text-[9.5px] font-semibold uppercase tracking-[0.1em]`,style:{top:-9,left:16,background:`var(--color-surface)`,color:`var(--color-interactive)`},children:e.worktreeLabel})}),t.nodes.map(e=>(0,P.jsxs)(`div`,{"data-lpf":e.id,className:`lpf-node${e.kind===`tick`?` tick`:``}`,style:{left:e.x,top:e.y,width:e.w,height:e.h},children:[(0,P.jsxs)(`div`,{className:`lpf-k`,children:[(0,P.jsx)(`span`,{className:`g`,children:e.glyph}),e.kicker]}),(0,P.jsx)(`div`,{className:`lpf-t`,children:e.title}),(0,P.jsx)(`div`,{className:`lpf-d`,children:e.detail})]},e.id))]})})})}function Ni({spec:e}){return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`p`,{className:`mb-4 text-body leading-snug text-secondary`,children:`Pievo sets up a dashboard to track results.`}),e.dashboard.map((e,t)=>(0,P.jsx)(`div`,{className:`min-w-0 ${t>0?`mt-6`:``}`,children:e.type===`kanban`?(0,P.jsx)(Ii,{w:e}):e.type===`metric`?(0,P.jsx)(L,{w:e}):e.type===`calendar`?(0,P.jsx)(Fi,{w:e}):(0,P.jsx)(I,{w:e})},t))]})}var Pi=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`];function Fi({w:e}){let t=new Set(e.reportDays),n=(7-(e.firstWeekday+e.days)%7)%7;return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`mb-2 flex items-baseline gap-2`,children:[(0,P.jsx)(`span`,{className:`text-meta font-medium text-secondary`,children:e.heading}),(0,P.jsx)(`span`,{className:`font-mono text-caption text-disabled`,children:e.monthLabel}),(0,P.jsxs)(`span`,{className:`ml-auto font-mono text-caption text-disabled`,children:[e.reportDays.length,` report`,e.reportDays.length===1?``:`s`]})]}),(0,P.jsxs)(`div`,{className:`grid min-w-0 grid-cols-7 border-l border-t border-hairline`,children:[Pi.map(e=>(0,P.jsx)(`div`,{className:`border-b border-r border-hairline px-1.5 py-1 text-right text-micro font-medium text-disabled`,children:e},e)),Array.from({length:e.firstWeekday},(e,t)=>(0,P.jsx)(`div`,{className:`border-b border-r border-hairline bg-raised`},`lead${t}`)),Array.from({length:e.days},(e,n)=>{let r=n+1;return(0,P.jsxs)(`div`,{className:`relative min-h-[34px] min-w-0 border-b border-r border-hairline bg-surface px-1 pb-1 pt-4`,children:[(0,P.jsx)(`span`,{className:`absolute right-1 top-0.5 font-mono text-micro text-disabled`,children:r}),t.has(r)&&(0,P.jsx)(`span`,{title:`report · day ${r}`,className:`absolute bottom-1 left-1 inline-block size-1.5 rounded-full`,style:{background:`var(--color-interactive)`}})]},r)}),Array.from({length:n},(e,t)=>(0,P.jsx)(`div`,{className:`border-b border-r border-hairline bg-raised`},`trail${t}`))]}),(0,P.jsxs)(`div`,{className:`mt-2 flex items-center gap-1.5 text-caption font-medium text-secondary`,children:[(0,P.jsx)(`span`,{className:`inline-block size-1.5 rounded-full`,style:{background:`var(--color-interactive)`}}),` Day with a report`]})]})}function Ii({w:e}){return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`mb-2 text-meta font-medium text-secondary`,children:[e.heading,` `,e.sub&&(0,P.jsx)(`span`,{className:`font-mono text-caption text-disabled`,children:e.sub})]}),(0,P.jsx)(`div`,{className:`flex min-w-0 gap-3 overflow-x-auto pb-1`,children:e.columns.map(([e,t])=>(0,P.jsxs)(`div`,{className:`flex w-[190px] shrink-0 flex-col`,children:[(0,P.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 border-b border-hairline pb-1.5`,children:[(0,P.jsx)(`span`,{className:`text-label font-semibold text-primary`,children:e}),(0,P.jsx)(`span`,{className:`text-caption text-disabled`,children:t.length})]}),(0,P.jsx)(`div`,{className:`flex flex-col gap-2`,children:t.map(([e,t,n])=>(0,P.jsx)(`div`,{className:`min-w-0 overflow-hidden rounded-control border border-hairline bg-surface shadow-card transition-colors hover:border-wire`,children:(0,P.jsxs)(`div`,{className:`flex flex-col gap-1 px-2.5 py-2`,children:[(0,P.jsx)(`span`,{className:`truncate text-meta text-primary`,children:t}),(0,P.jsxs)(`span`,{className:`truncate font-mono text-micro text-disabled`,children:[e,` · `,n]})]})},e))})]},e))})]})}function I({w:e}){return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`div`,{className:`mb-2 text-meta font-medium text-secondary`,children:e.heading}),(0,P.jsxs)(`div`,{className:`rounded-card border border-hairline bg-surface p-3.5 shadow-card`,children:[(0,P.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,P.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,P.jsx)(`div`,{className:`truncate text-meta font-semibold text-display`,children:e.title}),(0,P.jsx)(`div`,{className:`font-mono text-micro text-disabled`,children:e.date})]}),(0,P.jsx)(`span`,{className:`shrink-0 rounded-full border border-hairline bg-raised px-2 py-0.5 font-mono text-micro text-secondary`,children:`report`})]}),(0,P.jsx)(`div`,{className:`mt-3 flex flex-col gap-1.5 border-t border-hairline pt-3`,children:e.lines.map((e,t)=>t===0?(0,P.jsx)(`div`,{className:`text-meta font-medium text-primary`,children:e},t):(0,P.jsxs)(`div`,{className:`flex gap-2 text-caption text-secondary`,children:[(0,P.jsx)(`span`,{className:`text-disabled`,children:`—`}),(0,P.jsx)(`span`,{className:`min-w-0`,children:e})]},t))})]})]})}function L({w:e}){let t=e.series,n=t[t.length-1]??0,r=n-(t[0]??0),i=e.betterDown?r<0:r>0;return(0,P.jsxs)(`div`,{className:`min-w-0 rounded-card border border-hairline bg-surface p-3.5 shadow-card`,children:[(0,P.jsxs)(`div`,{className:`mb-3 flex items-baseline gap-2`,children:[(0,P.jsx)(`span`,{className:`text-label font-semibold text-primary`,children:e.label}),(0,P.jsx)(`span`,{className:`ml-auto font-mono text-body font-semibold text-display`,children:n}),r!==0&&(0,P.jsxs)(`span`,{className:`font-mono text-caption`,style:{color:i?`var(--color-success)`:`var(--color-accent)`},children:[r>0?`▲`:`▼`,` `,Math.abs(r)]})]}),(0,P.jsx)(Li,{series:t}),e.note&&(0,P.jsx)(`p`,{className:`mt-2 font-mono text-caption text-secondary`,children:e.note})]})}function Li({series:e}){let t=(0,N.useMemo)(()=>`lpf-grad-${Math.round(e.reduce((e,t)=>e+t,0))}-${e.length}`,[e]),n=Math.min(...e),r=Math.max(...e),i=Math.max(1,r-n),a=Math.floor(n-i*.15),o=Math.ceil(r+i*.15);n>=0&&a<0&&(a=0);let s=t=>26+t*286/(e.length-1),c=e=>10+(1-(e-a)/(o-a||1))*122,l=e=>Math.round(e*100)/100,u=`M`+e.map((e,t)=>`${l(s(t))} ${l(c(e))}`).join(` L `),d=`${u} L ${l(s(e.length-1))} 132 L ${l(s(0))} 132 Z`,f=[a,Math.round((a+o)/2),o],p=e.length-1;return(0,P.jsxs)(`svg`,{viewBox:`0 0 320 150`,width:`100%`,className:`block`,role:`img`,"aria-label":`metric trend`,children:[(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{id:t,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,P.jsx)(`stop`,{offset:`0`,stopColor:`var(--color-chart-1)`,stopOpacity:`0.16`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`var(--color-chart-1)`,stopOpacity:`0`})]})}),f.map((e,t)=>(0,P.jsxs)(`g`,{children:[(0,P.jsx)(`line`,{x1:26,y1:l(c(e)),x2:312,y2:l(c(e)),stroke:`var(--color-hairline)`,strokeWidth:1}),(0,P.jsx)(`text`,{x:20,y:l(c(e))+3,textAnchor:`end`,fontFamily:`var(--font-mono)`,fontSize:9,fill:`var(--color-disabled)`,children:e})]},t)),(0,P.jsx)(`path`,{d,fill:`url(#${t})`}),(0,P.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--color-chart-1)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,P.jsx)(`circle`,{cx:l(s(p)),cy:l(c(e[p]??0)),r:3,fill:`var(--color-chart-1)`,stroke:`var(--color-surface)`,strokeWidth:1.5}),(0,P.jsx)(`text`,{x:26,y:145,fontFamily:`var(--font-mono)`,fontSize:9,fill:`var(--color-disabled)`,children:`older`}),(0,P.jsx)(`text`,{x:312,y:145,textAnchor:`end`,fontFamily:`var(--font-mono)`,fontSize:9,fill:`var(--color-disabled)`,children:`now`})]})}var Ri=1e5,zi={"claude-code":`Claude Code`,codex:`Codex`};function Bi({size:e=14}){return(0,P.jsx)(`svg`,{"aria-hidden":!0,width:e,height:e,viewBox:`0 0 24 24`,fill:`#D97757`,fillRule:`evenodd`,className:`shrink-0`,xmlns:`http://www.w3.org/2000/svg`,children:(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`})})}function Vi({size:e=14}){return(0,P.jsxs)(`svg`,{"aria-hidden":!0,width:e,height:e,viewBox:`0 0 24 24`,className:`shrink-0`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,P.jsx)(`path`,{d:`M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z`,fill:`#fff`}),(0,P.jsx)(`path`,{d:`M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z`,fill:`url(#lobe-icons-codex-grad)`}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:`lobe-icons-codex-grad`,x1:`12`,x2:`12`,y1:`3`,y2:`21`,children:[(0,P.jsx)(`stop`,{stopColor:`#B1A7FF`}),(0,P.jsx)(`stop`,{offset:`.5`,stopColor:`#7A9DFF`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`#3941FF`})]})})]})}var Hi=e=>`Fetch ${e}/api/bootstrap and help me build a loop.`;function Ui({open:e,onClose:t,onCreated:n,template:r=null,teamId:i}){let[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(null),[l,u]=(0,N.useState)(null),[d,f]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(null),[y,x]=(0,N.useState)(!1),S=(0,N.useRef)(null),C=(0,N.useRef)(n);C.current=n;let ee=typeof window<`u`?window.location.origin:``,te=Hi(ee),w=a&&s?[`server-url: ${ee}`,`connect-key: ${a}`,...s?.customCli?[`pievo-cli: ${s.pievoCli}`]:[]].join(`
|
|
10
|
+
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Ft(e,`class`,r);break;case`tabIndex`:Ft(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ft(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Ft(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.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`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);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`?e.setAttribute(n,``+r):e.removeAttribute(n);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`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Pt(e,`popover`,r);break;case`xlinkActuate`:It(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:It(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:It(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:It(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Pt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,Pt(e,n,r))}}function Nd(e,t,n,r,i,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Dt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[pt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Pt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:$(e,t,o,s,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:$(e,t,r,d,n,null)}}Kt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Jt(e,!!r,n,!0):Jt(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:$(e,t,s,c,n,null)}Xt(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:$(e,t,u,r,n,null)}return;default:if(tn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Gt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Jt(e,!!n,n?[]:``,!1):Jt(e,!!n,t,!0)):Jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&$(e,t,s,i,r,o)}Yt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(tn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[bt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),xt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[bt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=O.d;O.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=Ct(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),M(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),M(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),M(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Tt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);M(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Tt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),M(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Tt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),M(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=me.current)?gf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Tt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Tt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Tt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Af(e){return`href="`+Wt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),M(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Wt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,M(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),M(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,M(o),o;r=Mf(n),(i=mf.get(i))&&Rf(r,i),o=(e.ownerDocument||e).createElement(`link`),M(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,M(i),i):(r=n,(i=mf.get(o))&&(r=m({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),M(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[bt]||a[ft]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,M(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),M(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:S,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=di(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ha(a),e}function tp(e){return e?(e=li,e):li}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Wa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ga(e,r,t),n!==null&&(hu(n,e,t),Ka(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=st(t);var n=oi(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,up(e,t,n,r)}finally{O.p=a,D.T=i}}function lp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,up(e,t,n,r)}finally{O.p=a,D.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=Ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Xe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ue(o);s.entanglements[1]|=c,o&=~c}rd(a),!(G&6)&&(tu=je()+500,id(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=cn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=St(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Me()){case Ne:return 2;case Pe:return 8;case Fe:case Ie:return 32;case Le:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ct(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=St(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=Ct(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,t){e.blockedOn===t&&(e.blockedOn=null,hp||(hp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=Ct(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[pt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[pt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[mt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=r.version;if(Lp!==`19.2.7`)throw Error(a(527,Lp,`19.2.7`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Be=zp.inject(Rp),Ve=zp}catch{}}t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i=``,s=Js,c=Ys,l=Xs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ep(e,1,!0,t,n??null,r,i,u,s,c,l,Pp),t.context=tp(null),n=t.current,r=pu(),r=st(r),i=Wa(r),i.callback=null,Ga(n,i,r),n=r,t.current.lanes=n,nt(t,n),rd(t),e[mt]=t.current,Sd(e),new Ip(t)}})),yt=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=vt()})),bt=St(JSON.parse),xt=Ct(JSON.stringify,JSON.parse);function St(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=c(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Ct(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=l(e,r);return t?`?${t}`:``}}var wt=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Tt=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),M=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Et=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Dt=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Ot=(e,t,n)=>{if(!(!i(n)&&!d(n)))throw i(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:i(n)?`redirected`:d(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Et(e,t.index),isFetching:!1,error:n})),d(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),i(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},kt=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},At=(e,t,n)=>{let r=Et(e,n);e.updateMatch(t,e=>({...e,context:r}))},jt=(e,t,n)=>{let{id:r,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Ot(e,e.router.getMatch(r),n);try{o.options.onError?.(n)}catch(t){n=t,Ot(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!i(n)&&!d(n)&&(e.serialError??=n)},Mt=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!M(e,t)&&(n.options.loader||n.options.beforeLoad||Ut(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{wt(e)},i);r._nonReactive.pendingTimeout=t}},Nt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Mt(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Ot(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Pt=(e,t,n,r)=>{let a=e.router.getMatch(t),o=a._nonReactive.loadPromise;a._nonReactive.loadPromise=k(()=>{o?.resolve(),o=void 0});let{paramsError:s,searchError:c}=a;s&&jt(e,n,s),c&&jt(e,n,c),Mt(e,t,r,a);let l=new AbortController,u=!1,f=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},p=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{f(),p()});return}a._nonReactive.beforeLoadPromise=k();let m={...Et(e,n,!1),...a.__routeContext},{search:h,params:g,cause:_}=a,v=M(e,t),y={search:h,abortController:l,params:g,preload:v,context:m,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{f(),p()});return}(i(r)||d(r))&&(f(),jt(e,n,r)),e.router.batch(()=>{f(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),p()})},x;try{if(x=r.options.beforeLoad(y),D(x))return f(),x.catch(t=>{jt(e,n,t)}).then(b)}catch(t){f(),jt(e,n,t)}b(x)},Ft=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Pt(e,n,t,i),s=()=>{if(kt(e,n))return;let t=Nt(e,n,i);return D(t)?t.then(o):o()};return a()},It=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Lt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Et(e,r),d=M(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Rt=async(e,t,n,r,a)=>{try{let o=e.router.getMatch(n);try{Ht(a);let i=a.options.loader,s=typeof i==`function`?i:i?.handler,c=s?.(Lt(e,t,n,r,a)),l=!!s&&D(c);if((l||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||o._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Ot(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}a._lazyPromise&&await a._lazyPromise;let u=o._nonReactive.minPendingPromise;u&&await u,a._componentsPromise&&await a._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Et(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let s=t;if(s?.name===`AbortError`){if(o.abortController.signal.aborted){o._nonReactive.loaderPromise?.resolve(),o._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Et(e,r)}));return}let c=o._nonReactive.minPendingPromise;c&&await c,d(t)&&await a.options.notFoundComponent?.preload?.(),Ot(e,e.router.getMatch(n),t);try{a.options.onError?.(t)}catch(t){s=t,Ot(e,e.router.getMatch(n),t)}!i(s)&&!d(s)&&await Ht(a,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:s,context:Et(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Ot(e,r,t)}},zt=async(e,t,n)=>{async function r(r,o,l,u,f){let p=Date.now()-o.updatedAt,m=r?f.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.router.options.defaultStaleTime??0,h=f.options.shouldReload,g=typeof h==`function`?h(Lt(e,t,a,n,f)):h,{status:_,invalid:v}=u,y=p>=m&&(!!e.forceStaleReload||u.cause===`enter`||l!==void 0&&l!==u.id);s=_===`success`&&(v||(g??y)),r&&f.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await Rt(e,t,a,n,f);let r=e.router.getMatch(a);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){i(t)&&await e.router.navigate(t.options)}})()):_!==`success`||s?await Rt(e,t,a,n,f):At(e,a,n))}let{id:a,routeId:o}=e.matches[n],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(kt(e,a)){if(!e.router.getMatch(a))return e.matches[n];At(e,a,n)}else{let t=e.router.getMatch(a),i=e.router.stores.matchesId.get()[n],s=(i&&e.router.stores.matchStores.get(i)||null)?.routeId===o?i:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,c=M(e,a);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(a),i=n._nonReactive.error||n.error;i&&Ot(e,n,i),n.status===`pending`&&await r(c,t,s,n,l)}else{let n=c&&!e.router.stores.matchStores.has(a),i=e.router.getMatch(a);i._nonReactive.loaderPromise=k(),n!==i.preload&&e.updateMatch(a,e=>({...e,preload:n})),await r(c,t,s,i,l)}}let f=e.router.getMatch(a);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(a,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(a)):f};async function Bt(e){let t=e,n=[];Tt(t.router)&&wt(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Ft(t,e);D(n)&&await n}catch(e){if(i(e))throw e;if(d(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?Dt(t,r):void 0,c=r&&t.preload?0:s===void 0?o:Math.min(s+1,o),l,u;for(let e=0;e<c;e++)n.push(zt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(i(e))throw e;d(e)?l??=e:u??=e}if(u!==void 0)throw u}let f=l??(r&&!t.preload?r:void 0),p=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!f&&r&&t.preload)return t.matches;if(f){let e=Dt(t,f);e===void 0&&a();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),f.routeId=n.routeId;let o=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...o?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:f},isFetching:!1})),p=e,await Ht(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ht(e,[`errorComponent`])}for(let e=0;e<=p;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=It(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let m=wt(t);if(D(m)&&await m,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Vt(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Ht(e,t=Wt){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Wt?(()=>{if(e._componentsPromise===void 0){let t=Vt(e,Wt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Vt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Ut(e){for(let t of Wt)if(e.options[t]?.preload)return!0;return!1}var Wt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Gt(e){return{input:({url:t})=>{for(let n of e)t=qt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Jt(e[n],t);return t}}}function Kt(e){let t=E(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=fe([`/`,t,e.pathname]),e)}}function qt(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Jt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Yt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Xt(o,_.get())),x=r(()=>Xt(s,v.get())),S=r(()=>Xt(c,y.get())),C=r(()=>_.get()[0]),ee=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),te=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),w=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),T=re(64);function E(e){let t=T.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),T.set(e,t)),t}let ne={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:ee,matchRouteDeps:te,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:w,getRouteMatchStore:E,setMatches:ie,setPending:ae,setCached:oe};ie(e.matches),a?.(ne);function ie(e){Zt(e,o,_,n,i)}function ae(e){Zt(e,s,v,n,i)}function oe(e){Zt(e,c,y,n,i)}return ne}function Xt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Zt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}O(n.get(),a)||n.set(a)})}var Qt=`__TSR_index`,$t=`popstate`,en=`beforeunload`;function tn(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=on(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Qt];i=nn(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Qt];i=nn(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Qt]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function nn(e,t){t||={};let n=sn();return{...t,key:n,__TSR_key:n,[Qt]:e}}function rn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>on(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=sn();t.history.replaceState({[Qt]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=on(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Qt]-l.state[Qt],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=tn({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(en,S,{capture:!0}),t.removeEventListener($t,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(en,S,{capture:!0}),t.addEventListener($t,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function an(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function on(e,t){let n=an(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=sn();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Qt]:0,key:a,__TSR_key:a}}}function sn(){return(Math.random()+1).toString(36).substring(7)}function cn(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function ln(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var un=new WeakMap,dn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=T(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=rn()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=re(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Yt(mn(this.latestLocation),e),Pn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=E(o);t&&t!==`/`&&e.push(Kt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Gt(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=de(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&le(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Re(e).path,external:!1,searchStr:o,search:se(t?.search,i),hash:Re(r.slice(1)).path,state:ge(t?.state,a)}}let o=new URL(i,this.origin),s=qt(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Re(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:se(t?.search,c),hash:Re(s.hash.slice(1)).path,state:ge(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ne({base:e,to:t.includes(`//`)?A(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>gn({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,pe(t.params,s)),d=this.routesByPath[ue(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&he(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:Re(Fe({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,hn(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=_n({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=se(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?pe(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?pe(t.state,n.state):{};v=ge(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=Jt(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=me(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=te(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,pe(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=w(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=ue(this.latestLocation.href)===ue(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=k(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=on(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=qt(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ie(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,a,o=this.stores.resolvedLocation.get()??this.stores.location.get();for(a=new Promise(s=>{this.startTransition(async()=>{try{this.beforeLoad(),t?un.set(this.latestLocation,t):un.delete(this.latestLocation);let n=this.latestLocation,r=ln(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Bt({router:this,sync:e?.sync,forceStaleReload:o.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){i(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):d(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===a&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),s()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise;let s;this.hasNotFoundMatch()?s=404:this.stores.matches.get().some(e=>e.status===`error`)&&(s=500),s!==void 0&&this.stores.statusCode.set(s)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(ln(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ie(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Ht,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),a=new Set([...r,...this.stores.cachedIds.get()]),o=n.filter(e=>!a.has(e.id));if(o.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...o])}try{return n=await Bt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(i(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});d(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=ce(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!w(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?w(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??xt,parseSearch:e.parseSearch??bt,protocolAllowlist:e.protocolAllowlist??oe}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Te(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:a}=n,{matchedRoutes:o}=n,s=!1;(r?r.path!==`/`&&a[`**`]:ue(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?yn(this.options.notFoundMode,o):void 0,l=Array(o.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;n<o.length;n++){let r=o[n],s=l[n-1],f,p,m;{let n=s?.search??e.search,i=s?._strictSearch??void 0;try{let e=hn(r.options.validateSearch,{...n})??void 0;f={...n,...e},p={...i,...e},m=void 0}catch(e){let r=e;if(e instanceof fn||(r=new fn(e.message,{cause:e})),t?.throwOnError)throw r;f=n,p={},m=r}}let h=r.options.loaderDeps?.({search:f})??``,g=h?JSON.stringify(h):``,{interpolatedPath:_,usedParams:v}=Fe({path:r.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),y=r.id+_+g,b=this.getMatch(y),x=u.get(r.id),S=b?._strictParams??v,C;if(!b)try{bn(r,S)}catch(e){if(C=d(e)||i(e)?e:new pn(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(a,S);let ee=x?`stay`:`enter`,te;if(b)te={...b,cause:ee,params:x?.params??a,_strictParams:S,search:se(x?x.search:b.search,f),_strictSearch:p};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Ut(r)?`pending`:`success`;te={id:y,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??a,_strictParams:S,pathname:_,updatedAt:Date.now(),search:x?se(x.search,f):f,_strictSearch:p,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:k()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ee,loaderDeps:x?ge(x.loaderDeps,h):h,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(te.globalNotFound=c===r.id),te.searchError=m;let w=this.getParentContext(s);te.context={...w,...te.__routeContext,...te.__beforeLoadContext},l[n]=te}for(let t=0;t<l.length;t++){let n=l[t],r=this.looseRoutesById[n.routeId],i=this.getMatch(n.id),o=u.get(n.routeId);if(n.params=o?se(o.params,a):a,!i){let i=l[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=Ae(t),i={...e.search};for(let e of t)try{Object.assign(i,hn(e.options.validateSearch,i))}catch{}let a=Ae(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{bn(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},fn=class extends Error{},pn=class extends Error{};function mn(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function hn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new fn(`Async validation not supported`);if(n.issues)throw new fn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function gn({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=ue(e),a,o=we(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function _n({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return vn(n)(e,t,r??!1)}function vn(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=hn(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=pe(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function yn(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Ie}function bn(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function xn(){try{return sessionStorage}catch{return}}var Sn=`tsr-scroll-restoration-v1_3`,Cn=xn();function wn(){try{return JSON.parse(Cn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Tn(){try{Cn?.setItem(Sn,JSON.stringify(En))}catch{}}var En=wn(),Dn=`data-scroll-restoration-id`,On=e=>e.state.__TSR_key||e.href;function kn(e){let t=e.getAttribute(Dn);if(t)return`[${Dn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var An=!1,jn=`window`;function Mn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Nn(e){let t=[];for(let n of e){if(n===jn)continue;let e=Mn(n);e&&t.push(e)}return t}function Pn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||On,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(An||!r.restoring))if(e.target===document)o(jn,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=En[e]||={};for(let[e,n]of a)e===jn?t[jn]=n:e.isConnected&&(t[kn(e)]=n)};n&&!r.restoration&&(r.restoration=!0,An=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Tn()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=En[u];if(e){let t=En[l];for(let n in e){if(n===jn){if(s)continue}else{let e=Mn(n);if(!e||s&&o&&(c??=Nn(o),c.includes(e)))continue}t||=En[l]={},t[n]??=e[n]}}}An=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=un.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?En[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===jn){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Mn(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=Nn(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{An=!1}}))}var Fn=Symbol.for(`TSR_DEFERRED_PROMISE`);function In(e,t){let n=e;return n[Fn]?n:(n[Fn]={status:`pending`},n.then(e=>{n[Fn].status=`success`,n[Fn].data=e}).catch(e=>{n[Fn].status=`error`,n[Fn].error={data:(t?.serializeError??cn)(e),__isServerError:!0}}),n)}function Ln(e,t){if(e)return typeof e==`string`?e:e[t]}function Rn(e){return e?.scriptFormat??`module`}function zn(e,t,n){let r=Bn(t),i=Ln(n,`script`)??r.crossOrigin;return{...Rn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Bn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Vn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Hn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Un=_({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(o in e)?!1:!!e[o],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>u(e)});function Wn(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Gn(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Kn(e){window.$_TSR||a();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||a();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=Wn(e.i)}),n.lastMatchId&&=Wn(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:o}=n;e.ssr={manifest:r};let s=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:s},await e.options.hydrate?.(i);let c=e.matchRoutes(e.stores.location.get()),l=Promise.all(c.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function u(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=k();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function f(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let p;c.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,f(e);return}Gn(e,t),f(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&p===void 0&&(p=e.index,u(e))}),e.stores.setMatches(c);let m=e.stores.matches.get(),h=e.stores.location.get();await Promise.all(m.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=m[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:h,navigate:t=>e.navigate({...t,_fromLocation:h}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:c,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:m,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(d(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let g=c[c.length-1].id!==o;if(!c.some(e=>e.ssr===!1)&&!g)return c.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),l;let _=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(g){let t=c[1];t||a(),u(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=_,_.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return l}var N=n(e(),1),P=r();function qn({promise:e}){if(Pe)return Pe(e);let t=In(e);if(t[Fn].status===`pending`)throw t;if(t[Fn].status===`error`)throw t[Fn].error;return t[Fn].data}function Jn(e){let t=(0,P.jsx)(Yn,{...e});return e.fallback?(0,P.jsx)(N.Suspense,{fallback:e.fallback,children:t}):t}function Yn(e){let t=qn(e);return e.children(t)}function Xn(e){let t=e.errorComponent??Qn;return(0,P.jsx)(Zn,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?N.createElement(t,{error:n,reset:r}):e.children})}var Zn=class extends N.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Qn({error:e}){let[t,n]=N.useState(!1);return(0,P.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,P.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,P.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,P.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,P.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,P.jsx)(`div`,{children:(0,P.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,P.jsx)(`code`,{children:e.message}):null})}):null]})}var F=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(F||{});function $n({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function er(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var tr=[],nr=0,{link:rr,unlink:ir,propagate:ar,checkDirty:or,shallowPropagate:sr}=$n({update(e){return e._update()},notify(e){tr[lr++]=e,e.flags&=~F.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=F.Mutable|F.Dirty,pr(e))}}),cr=0,lr=0,ur,dr=0;function fr(e){try{++dr,e()}finally{--dr||mr()}}function pr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ir(n,e)}function mr(){if(!(dr>0)){for(;cr<lr;){let e=tr[cr];tr[cr++]=void 0,e.notify()}cr=0,lr=0}}function hr(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?F.None:F.Mutable,get(){return ur!==void 0&&rr(i,ur,nr),i._snapshot},subscribe(e){let t=er(e),n={current:!1},r=gr(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ur,o=t?.compare??Object.is;if(n)ur=i,++nr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=F.Mutable|F.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{ur=a,n&&(i.flags&=~F.RecursedCheck),pr(i)}}};return n?(i.flags=F.Mutable|F.Dirty,i.get=function(){let e=i.flags;if(e&F.Dirty||e&F.Pending&&or(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&sr(e)}}else e&F.Pending&&(i.flags=e&~F.Pending);return ur!==void 0&&rr(i,ur,nr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ar(e),sr(e),mr())}},i}function gr(e){let t=()=>{let t=ur;ur=n,++nr,n.depsTail=void 0,n.flags=F.Watching|F.RecursedCheck;try{return e()}finally{ur=t,n.flags&=~F.RecursedCheck,pr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:F.Watching|F.RecursedCheck,notify(){let e=this.flags;e&F.Dirty||e&F.Pending&&or(this.deps,this)?t():this.flags=F.Watching},stop(){this.flags=F.None,this.depsTail=void 0,pr(this)}};return t(),n}function _r(e){let t=Be(),n=`not-found-${j(t.stores.location,e=>e.pathname)}-${j(t.stores.status,e=>e)}`;return(0,P.jsx)(Xn,{getResetKey:()=>n,onCatch:(t,n)=>{if(d(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(d(t))return e.fallback?.(t);throw t},children:e.children})}function vr(){return(0,P.jsx)(`p`,{children:`Not Found`})}function yr(e){return(0,P.jsx)(P.Fragment,{children:e.children})}function br(e,t,n){return t.options.notFoundComponent?(0,P.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,P.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,P.jsx)(vr,{})}var xr=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Sr=(e,t)=>e[0]===t[0]&&e[1]===t[1],Cr=N.memo(function({matchId:e}){let t=Be(),n=t.stores.matchStores.get(e);n||a();let r=j(t.stores.loadedAt,e=>e),i=j(n,e=>e,xr);return(0,P.jsx)(wr,{router:t,matchId:e,resetKey:r,matchState:N.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function wr({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,P.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,f=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?N.Suspense:yr,p=s?Xn:yr,m=l?_r:yr;return(0,P.jsxs)(i.isRoot?i.options.shellComponent??yr:yr,{children:[(0,P.jsx)(Se.Provider,{value:t,children:(0,P.jsx)(f,{fallback:o,children:(0,P.jsx)(p,{getResetKey:()=>n,errorComponent:s||Qn,onCatch:(e,t)=>{if(d(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,P.jsx)(m,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return N.createElement(l,e)},children:u||r._displayPending?(0,P.jsx)(xe,{fallback:o,children:(0,P.jsx)(Er,{matchId:t})}):(0,P.jsx)(Er,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Tr,{}),(e.options.scrollRestoration,null)]}):null]})}function Tr(){let e=Be(),t=N.useRef();return Le(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...ln(e.stores.location.get(),r??n)}),t.current=n},[j(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Er=N.memo(function({matchId:e}){let t=Be(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||a();let o=j(r,e=>e),s=o.routeId,c=t.routesById[s],l=N.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=N.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,P.jsx)(e,{},l):(0,P.jsx)(Dr,{})},[l,c.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,`displayPendingPromise`);if(o._forcePending)throw n(o,`minPendingPromise`);if(o.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=k();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,`loadPromise`)}if(o.status===`notFound`)return d(o.error)||a(),br(t,c,o.error);if(o.status===`redirected`)throw i(o.error)||a(),n(o,`loadPromise`);if(o.status===`error`)throw o.error;return u}),Dr=N.memo(function(){let e=Be(),t=N.useContext(Se),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=j(a,e=>[e?.routeId,e?.globalNotFound??!1],Sr),i=j(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let o=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,P.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return o||a(),br(e,o,void 0);if(!i)return null;let c=(0,P.jsx)(Cr,{matchId:i});return n===`__root__`?(0,P.jsx)(N.Suspense,{fallback:s,children:c}):c});function Or(){let e=Be(),t=N.useRef({router:e,mounted:!1}),[n,r]=N.useState(!1),i=j(e.stores.isLoading,e=>e),a=j(e.stores.hasPending,e=>e),o=ye(i),s=i||n||a,c=ye(s),l=i||a,u=ye(l);return e.startTransition=e=>{r(!0),N.startTransition(()=>{e(),r(!1)})},N.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ue(e.latestLocation.publicHref)!==ue(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Le(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),Le(()=>{o&&!i&&e.emit({type:`onLoad`,...ln(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),Le(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...ln(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),Le(()=>{if(c&&!s){let t=ln(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),fr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function kr(){let e=Be(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,P.jsx)(t,{}):null,r=(0,P.jsxs)(typeof document<`u`&&e.ssr?yr:N.Suspense,{fallback:n,children:[(0,P.jsx)(Or,{}),(0,P.jsx)(Ar,{})]});return e.options.InnerWrap?(0,P.jsx)(e.options.InnerWrap,{children:r}):r}function Ar(){let e=Be(),t=j(e.stores.firstId,e=>e),n=j(e.stores.loadedAt,e=>e),r=t?(0,P.jsx)(Cr,{matchId:t}):null;return(0,P.jsx)(Se.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,P.jsx)(Xn,{getResetKey:()=>n,errorComponent:Qn,onCatch:void 0,children:r})})}var jr=e=>({createMutableStore:hr,createReadonlyStore:hr,batch:fr}),Mr=e=>new Nr(e),Nr=class extends dn{constructor(e){super(e,jr)}};function Pr({router:e,children:t,...n}){he(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,P.jsx)(ze.Provider,{value:e,children:t});return e.options.Wrap?(0,P.jsx)(e.options.Wrap,{children:r}):r}function Fr({router:e,...t}){return(0,P.jsx)(Pr,{router:e,...t,children:(0,P.jsx)(kr,{})})}function Ir(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Lr(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,P.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,P.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,P.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,P.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,P.jsx)(Rr,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Rr({attrs:e,children:t,preventScriptHoist:n}){Be();let r=_e(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(N.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Ir(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Ir(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,P.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var zr=e=>{let t=Be(),n=t.options.ssr?.nonce,r=j(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),w),i=N.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:ae(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=j(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),w),o=j(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Hn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Ln(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},w),s=j(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...zn(a,t,e),nonce:n}})})}),i},w),c=j(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),w),l=j(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),w),u=[];return Vn(u,i),u.push(...s),Vn(u,a),u.push(...o),Vn(u,c),Vn(u,l),u};function Br(e){let t=zr(e.assetCrossOrigin),n=Be().options.ssr?.nonce;return(0,P.jsx)(P.Fragment,{children:t.map(e=>(0,N.createElement)(Lr,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Vr=()=>{let e=Be(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=j(e.stores.matches,n,w);return Hr(e,j(e.stores.matches,r,w),i)};function Hr(e,t,n){let r=[...t,...n];return(0,P.jsx)(P.Fragment,{children:r.map((e,t)=>(0,N.createElement)(Lr,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ur=`/assets/app-D1cij_NJ.css`,Wr=be({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Pievo`}],links:[{rel:`stylesheet`,href:Ur},{rel:`icon`,type:`image/svg+xml`,href:`/favicon.svg`}]}),shellComponent:Gr});function Gr({children:e}){return(0,P.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[(0,P.jsx)(`head`,{children:(0,P.jsx)(Br,{})}),(0,P.jsxs)(`body`,{className:`dot-grid-subtle bg-paper font-sans text-primary antialiased`,suppressHydrationWarning:!0,children:[e,(0,P.jsx)(Vr,{})]})]})}var Kr=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=N.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=N.useMemo(()=>({open:t,close:n}),[t,n]);return(0,P.jsx)(qe.Provider,{value:i,children:(0,P.jsx)($e,{delay:a,timeoutMs:r,children:e.children})})};function qr({job:e,onOpen:t,onPickRun:n}){let r=e.enabled,i=tt(e),a=ht(e),o=mt(),[s,c]=(0,N.useState)([]),l=(0,N.useMemo)(()=>s.length?Ze(e.runs??[],s):e.runs??[],[e.runs,s]),u=l.at(-1),d=u?.reportIncident?u:void 0;return(0,P.jsxs)(`div`,{onClick:()=>t(e.id),className:`mb-[18px] cursor-pointer rounded-card border border-hairline bg-surface px-[26px] pb-5 pt-[22px] shadow-card transition-colors hover:border-wire ${r||d?.reportIncident||e.pauseCause?.kind===`failure-streak`||e.pauseCause?.kind===`blocked`?``:`opacity-60`}`,style:{animation:`fadeIn .25s cubic-bezier(0.25,0.1,0.25,1) both`},children:[(0,P.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-center gap-3`,children:[(0,P.jsx)(`button`,{type:`button`,onClick:n=>{n.stopPropagation(),t(e.id)},className:`cursor-pointer rounded-sm text-left text-[17px] font-semibold tracking-[-0.01em] text-display outline-none focus-visible:ring-2 focus-visible:ring-interactive focus-visible:ring-offset-4 focus-visible:ring-offset-surface`,children:e.name}),a===`stopping`?(0,P.jsx)(ut,{tone:`running`,dot:`pulse`,children:`Stopping`}):a===`paused-finishing`?(0,P.jsx)(ut,{children:e.pauseCause?.kind===`blocked`?`Paused — blocked · current run finishing`:e.pauseCause?.kind===`owner`?`Paused by owner · current run finishing`:`Paused · current run finishing`}):a===`deleting`?(0,P.jsx)(ut,{children:`Deleting`}):e.running?(0,P.jsx)(ut,{tone:`running`,dot:`pulse`,children:`Running`}):e.queued&&e.reconciliationBlocking?(0,P.jsx)(ut,{tone:`outline`,children:`Queued · waiting for machine recovery`}):e.queued?(0,P.jsx)(ut,{tone:`outline`,children:`Queued`}):null,e.graduation&&(0,P.jsx)(ut,{children:e.graduation}),e.goal&&(0,P.jsx)(ut,{tone:`success`,title:e.goal??void 0,children:`Objective`}),a===`paused`&&(0,P.jsx)(ut,{tone:e.pauseCause?.kind===`blocked`?`accent`:void 0,children:e.pauseCause?.kind===`blocked`?`Paused — blocked`:e.pauseCause?.kind===`failure-streak`?`Paused automatically`:e.pauseCause?.kind===`owner`?`Paused by owner`:`Paused`}),(0,P.jsxs)(`div`,{className:`ml-auto min-w-0 text-right text-meta text-secondary`,children:[(0,P.jsxs)(`div`,{className:`whitespace-nowrap`,children:[(0,P.jsx)(`span`,{className:`text-primary`,title:e.cron,children:e.scheduleMode===`continuous`?`continuous · ${e.continuousDelayMinutes}m`:rt(e.cron)}),(0,P.jsx)(`span`,{className:`mx-2.5 text-wire`,children:`·`}),e.kind]}),(0,P.jsxs)(`div`,{className:`mt-1 truncate text-caption text-disabled`,title:`Model: ${e.model||`default`} · Reasoning: ${e.reasoningEffort||`default`}`,children:[`Model: `,e.model||`default`,` · Reasoning: `,e.reasoningEffort||`default`]})]})]}),(0,P.jsx)(Ye,{job:e,runs:l,total:e.runCount,onLoadMore:async()=>{let t=l[0];if(!t)return 0;let n=await m({data:{loopId:e.id,beforeTs:t.ts,limit:16}});return n.length&&c(e=>Ze(e,n)),n.length},onPickRun:t=>n(e.id,t)}),(0,P.jsxs)(`div`,{className:`mt-[18px] flex items-center gap-2 text-label text-secondary`,children:[(0,P.jsxs)(`span`,{children:[e.runCount,` runs`]}),i&&(0,P.jsxs)(`span`,{children:[`· last `,nt(i),o&&` · ${et(i.ts)}`]})]}),d?.reportIncident&&(0,P.jsx)(`div`,{className:`mt-1.5 text-label text-secondary`,children:d.phase===`error`?`Last run failed · Terminal report rejected`:`Last run telemetry warning · Terminal report rejected`})]})}function Jr(e){document.cookie=`pievo.team=${encodeURIComponent(e)}; path=/; max-age=31536000; samesite=lax`}function Yr({data:e}){let t=ke();if(!e||e.teams.length===0)return null;let n=e=>{Jr(e),t({to:`/t/$teamId`,params:{teamId:e}})};return e.teams.length===1?(0,P.jsx)(`span`,{title:`Active team`,className:`inline-flex items-center rounded-full bg-raised px-3 py-1 text-label font-medium text-secondary`,children:e.teams[0].name}):(0,P.jsx)(`select`,{"aria-label":`Active team`,value:e.activeTeamId,onChange:e=>n(e.target.value),className:`lp-select cursor-pointer rounded-full bg-raised py-1 pl-3 text-label font-medium text-secondary outline-none transition-colors hover:text-display`,children:e.teams.map(e=>(0,P.jsx)(`option`,{value:e.id,children:e.name},e.id))})}var Xr={telegram:{label:`Telegram`,help:`Create a bot with @BotFather, then DM it once so it can message you.`,fields:[{key:`botToken`,label:`Bot token`,ph:`123456:ABC-DEF…`},{key:`chatId`,label:`Chat id`,ph:`e.g. 87654321 (message @userinfobot to get yours)`}]},feishu:{label:`Feishu`,help:`In a Feishu group: 设置 → 机器人 → 添加自定义机器人. Pick a security setting (signing recommended; paste the secret below if you enabled 签名校验).`,fields:[{key:`webhookUrl`,label:`Webhook URL`,ph:`https://open.feishu.cn/open-apis/bot/v2/hook/…`},{key:`secret`,label:`Signing secret (optional)`,ph:`only if you enabled 签名校验`,optional:!0}]}},Zr=[`telegram`,`feishu`];function Qr(e){return Xr[e]?.label??(e===`slack`?`Slack`:e)}function $r({open:e,onClose:t}){let[n,r]=(0,N.useState)([]),[i,a]=(0,N.useState)(null),[o,s]=(0,N.useState)(``),[c,l]=(0,N.useState)({}),[u,d]=(0,N.useState)(!1),[f,p]=(0,N.useState)(null),[m,h]=(0,N.useState)({}),g=(0,N.useCallback)(async()=>{try{r(await Xe())}catch{}},[]);(0,N.useEffect)(()=>{if(!e){p(null),a(null);return}g()},[e,g]);function _(e){s(``),l({}),p(null),a(e)}let v=i?Xr[i]:null,y=!!o.trim()&&!!v&&v.fields.every(e=>e.optional||c[e.key]?.trim());async function b(){if(!(!i||!v)){p(null),d(!0);try{let e=Object.fromEntries(v.fields.filter(e=>c[e.key]?.trim()).map(e=>[e.key,c[e.key].trim()])),t=await Qe({data:{type:i,name:o.trim(),config:e}});if(!t.ok){p(t.error??`Could not save this channel.`);return}a(null),await g()}finally{d(!1)}}}async function x(e){p(null);let t=await Je({data:e});if(!t.ok){p(t.error??`Could not delete this channel.`);return}await g()}async function S(e){h(t=>({...t,[e]:`sending`}));let t=await Ke({data:e});h(n=>({...n,[e]:t.ok?`ok`:t.error||`failed`})),setTimeout(()=>h(t=>({...t,[e]:``})),4e3)}return(0,P.jsxs)(Ue,{open:e,onClose:t,children:[(0,P.jsx)(Ve,{title:`Notifications`,sub:`Push channels for this team. A loop routes its run messages to the channel you pick on it.`}),f&&(0,P.jsx)(dt,{message:f,onDismiss:()=>p(null),className:`mb-2 mt-3`}),(0,P.jsx)(He,{children:`Channels`}),n.length===0&&!i&&(0,P.jsx)(`div`,{className:`py-3 text-body text-secondary`,children:`No channels yet.`}),(0,P.jsx)(`ul`,{className:`flex flex-col gap-2`,children:n.map(e=>{let t=m[e.id];return(0,P.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-control border border-hairline bg-surface px-4 py-3`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2.5`,children:[(0,P.jsx)(`span`,{className:`text-[15px] font-medium text-display`,children:e.name}),(0,P.jsxs)(`span`,{className:`text-label text-secondary`,children:[Qr(e.type),` · `,e.hint]})]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[t&&t!==`sending`&&(0,P.jsx)(`span`,{className:`inline-flex h-[22px] items-center gap-1.5 rounded-full px-2.5 text-caption font-medium ${t===`ok`?`bg-success-soft text-success`:`bg-accent-soft text-accent`}`,title:t===`ok`?void 0:t,children:t===`ok`?`Sent ✓`:`Failed`}),(0,P.jsx)(`button`,{className:ct,disabled:t===`sending`,onClick:()=>void S(e.id),children:t===`sending`?`Sending…`:`Test`}),(0,P.jsx)(`button`,{className:it,onClick:()=>void x(e.id),children:`Delete`})]})]},e.id)})}),i&&v?(0,P.jsxs)(`div`,{className:`mt-4 rounded-control border border-hairline bg-raised px-4 py-3`,children:[(0,P.jsxs)(He,{children:[`New `,v.label,` channel`]}),(0,P.jsx)(`label`,{className:st,children:`Name`}),(0,P.jsx)(`input`,{className:lt,value:o,onChange:e=>s(e.target.value),placeholder:`e.g. My alerts`}),v.fields.map(e=>(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`label`,{className:st,children:e.label}),(0,P.jsx)(`input`,{className:`${lt} font-mono`,value:c[e.key]??``,onChange:t=>l(n=>({...n,[e.key]:t.target.value})),placeholder:e.ph})]},e.key)),(0,P.jsx)(`div`,{className:`mt-1 text-label text-secondary`,children:v.help}),(0,P.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,P.jsx)(`button`,{className:ct,onClick:()=>a(null),children:`Cancel`}),(0,P.jsx)(`button`,{className:ot,disabled:u||!y,onClick:()=>void b(),children:u?`Saving…`:`Save channel`})]})]}):(0,P.jsx)(`div`,{className:`mt-6 flex gap-2`,children:Zr.map(e=>(0,P.jsxs)(`button`,{className:ot,onClick:()=>_(e),children:[`+ Add `,Xr[e]?.label??e]},e))})]})}var ei=f({method:`GET`}).handler(u(`94d1108f156fa2273cb78140852e9c3e368de0b8321db0de932a16567671716f`)),ti=f({method:`GET`}).handler(u(`fc7a4775f418dde12f422ff9ca65d9e07428fb0dc35c9399592c0081467330bf`)),ni=f({method:`POST`}).handler(u(`0f279cfe81021a642289ce6e95622e7198aaeab4147880f85824a02ee9ebafcf`)),ri=f({method:`POST`}).handler(u(`5721e01d84c20ffde19d2191648d76a7e5ede3bbb4f44efa59107a786947cf27`)),ii=f({method:`POST`}).handler(u(`d2372a81af17eb3a7e4c1407d6ef26a8a9522b66fd6a94858cb35c864b270d77`)),ai=f({method:`POST`}).handler(u(`284cb82b5e5cb37242d053b1b14449760d8334e9dadffc6dcbba11db2200a709`)),oi=f({method:`POST`}).handler(u(`c3762cecd4a15f7eca064bca295255e942d7c3dce65f66f8593ae145fd7859a0`)),si=f({method:`POST`}).handler(u(`a3326ed8ecd726fbcc28a439bf0012983cbe387d5062e0155096ee5a558e313b`)),ci=f({method:`POST`}).handler(u(`fe7cc1df829414194e9b0615b86584c8510369da18f4d8805ccd76468cadf2ff`)),li=f({method:`POST`}).handler(u(`bbc1020c771335020ef51b326d74b1649966740f273913d32040fa2c3c9f5f0b`)),ui=f({method:`POST`}).handler(u(`b92e9a08eda2d217bf4028f90dbc6bf7d7e8d7c148ebb8a8330286b5935a3fa1`)),di=f({method:`POST`}).handler(u(`6f5fe23f6da1d4aecc198b6f71a041c0fe29cabb6ccad807bb3f16c23c5bd9cd`));function fi(e){return`${typeof window<`u`?window.location.origin:``}/invite/${e}`}function pi({text:e}){let[t,n]=(0,N.useState)(!1);return(0,P.jsx)(`button`,{className:at,onClick:()=>{navigator.clipboard?.writeText(e),n(!0),setTimeout(()=>n(!1),1400)},children:t?`Copied ✓`:`Copy link`})}function mi({open:e,onClose:t,activeTeamId:n}){let r=ke(),[i,a]=(0,N.useState)([]),[o,s]=(0,N.useState)(null),[c,l]=(0,N.useState)(null),[u,d]=(0,N.useState)(null),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(``),[g,_]=(0,N.useState)(``),[v,y]=(0,N.useState)(``),[b,x]=(0,N.useState)(`member`),[S,C]=(0,N.useState)(`member`),[ee,te]=(0,N.useState)(null),w=(0,N.useCallback)(async()=>{try{a(await ei())}catch{}},[]),T=(0,N.useCallback)(async e=>{let t=await ti({data:e});if(`error`in t){d(t.error),l(null);return}l(t),_(t.name)},[]);(0,N.useEffect)(()=>{if(!e){d(null),s(null),l(null),te(null);return}w()},[e,w]),(0,N.useEffect)(()=>{!e||!o||(te(null),T(o))},[e,o,T]);async function E(e){p(!0),d(null);try{return await e()}finally{p(!1)}}async function ne(){let e=m.trim();e&&await E(async()=>{let t=await ni({data:e});if(!t.ok)return d(t.error);h(``),await w(),s(t.id)})}async function re(){if(!c)return;let e=g.trim();!e||e===c.name||await E(async()=>{let t=await ri({data:{teamId:c.id,name:e}});if(!t.ok)return d(t.error);await w(),await T(c.id)})}async function ie(){c&&await E(async()=>{let e=await ii({data:c.id});if(!e.ok)return d(e.error);let i=c.id;s(null),l(null),await w(),i===n&&(t(),r({to:`/`}))})}async function ae(){c&&await E(async()=>{let e=await ci({data:c.id});if(!e.ok)return d(e.error);let i=c.id;s(null),l(null),await w(),i===n&&(t(),r({to:`/`}))})}async function oe(){if(!c)return;let e=v.trim();e&&await E(async()=>{let t=await ai({data:{teamId:c.id,email:e,role:b}});if(!t.ok)return d(t.error);y(``),await T(c.id),await w()})}async function se(e,t){c&&await E(async()=>{let n=await oi({data:{teamId:c.id,userId:e,role:t}});if(!n.ok)return d(n.error);await T(c.id)})}async function D(e){c&&await E(async()=>{let t=await si({data:{teamId:c.id,userId:e}});if(!t.ok)return d(t.error);await T(c.id),await w()})}async function O(){c&&await E(async()=>{let e=await li({data:{teamId:c.id,role:S}});if(!e.ok)return d(e.error);te(e.token),await T(c.id)})}async function ce(e){c&&await E(async()=>{let t=await ui({data:{teamId:c.id,token:e}});if(!t.ok)return d(t.error);ee===e&&te(null),await T(c.id)})}let le=c?.role===`owner`;return(0,P.jsxs)(Ue,{open:e,onClose:t,wide:!0,children:[(0,P.jsx)(Ve,{title:`Teams`,sub:`Create teams, manage members and roles, and invite people. Team management is owner-only; any member can create loops.`}),u&&(0,P.jsx)(dt,{message:u,onDismiss:()=>d(null),className:`mb-2 mt-3`}),(0,P.jsxs)(`div`,{className:`mt-3 grid gap-6 md:grid-cols-[minmax(0,18rem)_minmax(0,1fr)]`,children:[(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(He,{children:`My teams`}),i.length===0&&(0,P.jsx)(`div`,{className:`py-2 text-body text-secondary`,children:`No teams yet.`}),(0,P.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:i.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsxs)(`button`,{onClick:()=>s(e.id),className:`flex w-full items-center justify-between gap-2 rounded-control border px-3 py-2 text-left transition-colors ${o===e.id?`border-display bg-raised`:`border-hairline bg-surface hover:bg-raised`}`,children:[(0,P.jsx)(`span`,{className:`min-w-0 truncate text-[15px] font-medium text-display`,children:e.name}),(0,P.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:[(0,P.jsx)(ut,{tone:e.role===`owner`?`ink`:`neutral`,children:e.role}),(0,P.jsxs)(`span`,{className:`text-label text-secondary`,children:[e.memberCount,` member`,e.memberCount===1?``:`s`]})]})]})},e.id))}),(0,P.jsxs)(`div`,{className:`mt-4 rounded-control border border-hairline bg-raised px-3 py-3`,children:[(0,P.jsx)(`label`,{className:`${st} mt-0`,children:`New team`}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(`input`,{className:lt,value:m,onChange:e=>h(e.target.value),placeholder:`e.g. Growth Squad`,onKeyDown:e=>e.key===`Enter`&&void ne()}),(0,P.jsx)(`button`,{className:ot,disabled:f||!m.trim(),onClick:()=>void ne(),children:`Create`})]})]})]}),(0,P.jsx)(`div`,{className:`min-w-0`,children:c?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(He,{action:(0,P.jsx)(`button`,{className:at,onClick:()=>{Jr(c.id),t(),r({to:`/t/$teamId`,params:{teamId:c.id}})},children:`Open dashboard →`}),children:[c.name,c.personal?` · personal`:``]}),le&&(0,P.jsxs)(`div`,{className:`mb-4`,children:[(0,P.jsx)(`label`,{className:`mb-1.5 mt-3 block text-label font-medium text-secondary`,children:`Team name`}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(`input`,{"aria-label":`Team name`,className:lt,value:g,onChange:e=>_(e.target.value)}),(0,P.jsx)(`button`,{className:ct,disabled:f||!g.trim()||g.trim()===c.name,onClick:()=>void re(),children:`Rename`})]})]}),(0,P.jsx)(He,{children:`Members`}),(0,P.jsx)(`ul`,{className:`flex flex-col gap-2`,children:c.members.map(e=>(0,P.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-control border border-hairline bg-surface px-3 py-2.5`,children:[(0,P.jsx)(`div`,{className:`flex min-w-0 flex-col`,children:(0,P.jsxs)(`span`,{className:`truncate text-[15px] font-medium text-display`,children:[e.email??e.displayName??e.userId,e.isSelf&&(0,P.jsx)(`span`,{className:`ml-1.5 text-label text-secondary`,children:`(you)`})]})}),(0,P.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:le&&!e.isSelf?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`select`,{"aria-label":`Role`,className:`${pt} w-auto py-1.5`,value:e.role,onChange:t=>void se(e.userId,t.target.value),children:[(0,P.jsx)(`option`,{value:`owner`,children:`owner`}),(0,P.jsx)(`option`,{value:`member`,children:`member`})]}),(0,P.jsx)(`button`,{className:it,disabled:f,onClick:()=>void D(e.userId),children:`Remove`})]}):(0,P.jsx)(ut,{tone:e.role===`owner`?`ink`:`neutral`,children:e.role})})]},e.userId))}),le&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`mt-4 rounded-control border border-hairline bg-raised px-3 py-3`,children:[(0,P.jsx)(`label`,{className:`mb-1.5 mt-3 block text-label font-medium text-secondary mt-0`,children:`Add a member by email`}),(0,P.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,P.jsx)(`input`,{className:`${lt} min-w-[12rem] flex-1`,value:v,onChange:e=>y(e.target.value),placeholder:`teammate@example.com`,onKeyDown:e=>e.key===`Enter`&&void oe()}),(0,P.jsxs)(`select`,{"aria-label":`Role for new member`,className:`${pt} w-auto`,value:b,onChange:e=>x(e.target.value),children:[(0,P.jsx)(`option`,{value:`member`,children:`member`}),(0,P.jsx)(`option`,{value:`owner`,children:`owner`})]}),(0,P.jsx)(`button`,{className:ot,disabled:f||!v.trim(),onClick:()=>void oe(),children:`Add`})]}),(0,P.jsx)(`div`,{className:`mt-1.5 text-label text-secondary`,children:`Adds an existing Pievo account immediately. No account yet? Generate an invite link below.`})]}),(0,P.jsx)(He,{children:`Invite links`}),(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,P.jsxs)(`select`,{"aria-label":`Invite role`,className:`${pt} w-auto`,value:S,onChange:e=>C(e.target.value),children:[(0,P.jsx)(`option`,{value:`member`,children:`as member`}),(0,P.jsx)(`option`,{value:`owner`,children:`as owner`})]}),(0,P.jsx)(`button`,{className:ct,disabled:f,onClick:()=>void O(),children:`Generate invite link`}),(0,P.jsx)(`span`,{className:`text-label text-secondary`,children:`Single-use · expires in 7 days`})]}),c.invites.length>0&&(0,P.jsx)(`ul`,{className:`mt-3 flex flex-col gap-2`,children:c.invites.map(e=>(0,P.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-control border border-hairline bg-surface px-3 py-2.5`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,P.jsx)(ut,{tone:`neutral`,children:e.role}),(0,P.jsx)(`span`,{className:`min-w-0 truncate font-mono text-label ${ee===e.token?`text-display`:`text-secondary`}`,children:fi(e.token)})]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,P.jsx)(pi,{text:fi(e.token)}),(0,P.jsx)(`button`,{className:it,disabled:f,onClick:()=>void ce(e.token),children:`Revoke`})]})]},e.token))})]}),(0,P.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-3 border-t border-hairline pt-4`,children:[c.personal?(0,P.jsx)(`span`,{className:`text-label text-secondary`,children:`Your personal team can't be left or deleted.`}):(0,P.jsx)(`button`,{className:ct,disabled:f,onClick:()=>void ae(),children:`Leave team`}),le&&!c.personal&&(0,P.jsxs)(`button`,{className:it,disabled:f||c.loopCount>0,title:c.loopCount>0?`Move or delete this team's ${c.loopCount} loop${c.loopCount===1?``:`s`} first`:void 0,onClick:()=>void ie(),children:[`Delete team`,c.loopCount>0?` (${c.loopCount} loop${c.loopCount===1?``:`s`})`:``]})]})]}):(0,P.jsx)(`div`,{className:`flex h-full items-center justify-center py-10 text-body text-secondary`,children:`Select a team to manage it, or create one.`})})]})]})}var hi={"react-doctor":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 6am`,detail:`the loop wakes on cadence`},{id:`scan`,kicker:`Step 1 · Scan`,glyph:`⌕`,title:`Scan the app`,detail:(0,P.jsx)(`code`,{children:`npx react-doctor@latest`})},{id:`prio`,kicker:`Step 2 · Prioritise`,glyph:`⚖`,title:`Pick one issue`,detail:`the worst, by severity & perf impact`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Fix in isolation`,detail:`smallest change, fresh branch`},{id:`verify`,wt:!0,kicker:`Step 4 · Verify`,glyph:`▷`,title:`Verify the fix`,detail:`prove it holds before proposing`},{id:`ship`,wt:!0,kicker:`Step 5 · Ship`,glyph:`⑂`,title:`Open a PR`,detail:`skip if a prior PR's still open`}],dashboard:[{type:`kanban`,heading:`PR board`,sub:`open → merged`,columns:[[`Open`,[[`#231`,`Key-less list items in <Feed/>`,`opened 6h ago`],[`#219`,`Missing memo on heavy list row`,`opened 1d ago`]]],[`Merged`,[[`#212`,`Effect re-runs on every render`,`merged 2d ago`],[`#205`,`Unmemoised context value`,`merged 4d ago`],[`#198`,`Inline object prop churn`,`merged 6d ago`]]]]},{type:`metric`,label:`Health score`,series:[66,68,67,71,72,71,75,77,76,79,81,80,83,84]}]},"docs-sweep":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every Mon · 6am`,detail:`weekly · picks up where it left off`},{id:`diff`,kicker:`Step 1 · Compare`,glyph:`⌕`,title:`Diff since last sweep`,detail:`docs vs. what the code ships now`},{id:`verify`,kicker:`Step 2 · Verify`,glyph:`▷`,title:`Verify for real`,detail:`run the commands, links & examples`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Fix real drift only`,detail:`never rewrite accurate docs`},{id:`ship`,wt:!0,kicker:`Step 4 · Ship`,glyph:`⑂`,title:`Open a PR`,detail:`explains the drift · no stacking`}],dashboard:[{type:`embed`,heading:`Latest sweep summary`,title:`Docs drift — weekly sweep`,date:`2026-07-06`,lines:[`3 items fixed, each verified by running it`,`README — dev server is :3001, not :3000`,`Setup guide — dropped a dead /api/v1 link`,"Quickstart — refreshed `pievo new` flags"]},{type:`metric`,label:`Drift count`,series:[6,4,5,3,2,3,1,2,1,0],note:`0 = docs are honest — a clean stop, no PR.`,betterDown:!0}]},"error-sweep":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Verify an error source`,detail:`smoke-test logs / tracker / gh · confirm window`},{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 6am`,detail:`sweeps the agreed window`},{id:`sweep`,kicker:`Step 1 · Sweep`,glyph:`⌕`,title:`Group into incidents`,detail:`cluster repeated symptoms`},{id:`triage`,kicker:`Step 2 · Triage`,glyph:`⚖`,title:`Actionable vs. noise`,detail:`drop upstream & noise`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Root-cause & fix`,detail:`smallest verified fix`},{id:`ship`,wt:!0,kicker:`Step 4 · Ship`,glyph:`⑂`,title:`One PR per fix`,detail:`no stacking · never leak secrets`}],dashboard:[{type:`embed`,heading:`Newest report`,title:`Error sweep — daily`,date:`2026-07-08`,lines:[`2 actionable, 14 noise filtered out`,`Checkout 500 — null cart on retry (fixed)`,`/api/render timeout — upstream, watching`,`No credentials or PII in this report`]},{type:`metric`,label:`Actionable errors`,series:[5,3,4,2,3,1,2,1,0,1],note:`0 actionable = a clean stop, no PR.`,betterDown:!0}]},housekeeper:{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 7am`,detail:`one cleanup a day, no more`},{id:`survey`,kicker:`Step 1 · Survey`,glyph:`⌕`,title:`Find housekeeping debt`,detail:`dead code, stale files, dupes, unused deps`},{id:`prove`,kicker:`Step 2 · Prove`,glyph:`⚖`,title:`Pick one, prove it safe`,detail:`concrete evidence · uncertain → deferred`},{id:`fix`,wt:!0,kicker:`Step 3 · Fix`,glyph:`✎`,title:`Smallest change`,detail:`keep only if build & tests stay green`},{id:`ship`,wt:!0,kicker:`Step 4 · Ship`,glyph:`⑂`,title:`Open a PR`,detail:`no stacking on an open PR`}],dashboard:[{type:`kanban`,heading:`Cleanup board`,sub:`open → merged`,columns:[[`Open`,[[`#142`,`Remove dead export in utils/date`,`opened 5h ago`],[`#138`,`Drop unused dep left-pad`,`opened 2d ago`]]],[`Merged`,[[`#131`,`Delete stale scripts/legacy dir`,`merged 1d ago`],[`#124`,`Dedupe two clamp() helpers`,`merged 3d ago`],[`#119`,`Rename inconsistent isLoading flags`,`merged 5d ago`]]]]},{type:`metric`,label:`Cleanups landed`,series:[0,1,1,2,3,3,4,5,6,6,7,9,10,12]}]},"dependency-triage":{worktreeLabel:`Isolated git worktree · off main`,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Confirm merge authority`,detail:`smoke-test gh sees Dependabot/Renovate · agree merge policy`},{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every Mon`,detail:`weekly · snapshots the open PRs`},{id:`snapshot`,kicker:`Step 1 · Snapshot`,glyph:`⌕`,title:`List open dep PRs`,detail:`process each exactly once`},{id:`judge`,kicker:`Step 2 · Judge`,glyph:`⚖`,title:`Weigh real evidence`,detail:`diff · release notes · advisories · CI at head`},{id:`test`,wt:!0,kicker:`Step 3 · Test`,glyph:`▷`,title:`Run tests in isolation`,detail:`at the exact head · checkout untouched`},{id:`merge`,wt:!0,kicker:`Step 4 · Merge`,glyph:`⑂`,title:`Merge only what’s authorized`,detail:`major/breaking/security → recommend, don’t merge`}],dashboard:[{type:`kanban`,heading:`Dependency PRs`,sub:`merged · deferred · blocked`,columns:[[`Merged`,[[`#412`,`bump vite 7.0→7.1 (patch)`,`merged 1h ago`],[`#408`,`bump @types/node 20→20.14 (minor)`,`merged 3h ago`]]],[`Deferred`,[[`#399`,`react 18→19 (major) — review`,`deferred 2d ago`],[`#391`,`drizzle-orm 0.30→0.31 — CI red`,`deferred 2d ago`]]],[`Blocked`,[[`#405`,`lodash advisory GHSA-…-qxrp (high)`,`flagged 1h ago`]]]]},{type:`metric`,label:`Open dependency PRs`,series:[9,8,8,6,7,5,4,3,4,2],note:`trends down as PRs are merged or resolved.`,betterDown:!0}]},"market-research":{worktreeLabel:``,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Confirm the research focus`,detail:`infer the product & space · propose a focus, confirm`},{id:`tick`,kicker:`On schedule`,glyph:`◷`,title:`Every day · 5am`,detail:`the loop wakes on cadence`},{id:`research`,kicker:`Step 1 · Research`,glyph:`⌕`,title:`Scan today's market`,detail:`competitors, launches, pricing, ecosystem news`},{id:`report`,kicker:`Step 2 · Report`,glyph:`✎`,title:`One dated report`,detail:(0,P.jsx)(`code`,{children:`type: report · title · date`})},{id:`sharpen`,kicker:`Step 3 · Sharpen`,glyph:`✧`,title:`Sharpen the focus`,detail:`lean into what keeps turning out to matter`}],dashboard:[{type:`calendar`,heading:`Reports calendar`,monthLabel:`July 2026`,days:31,firstWeekday:2,reportDays:[1,2,3,6,7,8]},{type:`embed`,heading:`Newest report`,title:`Market watch — daily digest`,date:`2026-07-08`,lines:[`Today's signal: two rivals converged on usage-based pricing`,`Northwind shipped an AI triage add-on, free in beta`,`Acme cut its Team tier 20% and dropped the seat minimum`,`Ecosystem: a new OSS connector spec is gaining traction`]}]},"follow-up-tracker":{worktreeLabel:``,nodes:[{id:`setup`,setup:!0,kicker:`Before first run`,glyph:`⚙`,title:`Verify + define the target`,detail:`smoke-test an observation path · set a standing objective`},{id:`tick`,kicker:`On cadence`,glyph:`◷`,title:`A few times a day`,detail:`wakes on cadence — no fixed clock time`},{id:`observe`,kicker:`Step 1 · Observe`,glyph:`⌕`,title:`Check the outcome`,detail:`through the verified path — logs / URL / gh`},{id:`report`,kicker:`Step 2 · Report`,glyph:`◈`,title:`Report what you find`,detail:`one report · a metric when natural`},{id:`check`,kicker:`Step 3 · Check`,glyph:`⚖`,title:`Track the objective`,detail:`keep watching and surface regressions`}],dashboard:[{type:`embed`,heading:`Latest observation`,title:`Checkout fix — follow-up`,date:`2026-07-08`,lines:[`conversion 29% → 44% over 3 days`,`no error spikes since the deploy`,`goal: hold ≥ 40% for 48h — 31h in, on track`]},{type:`metric`,label:`Checkout conversion %`,series:[29,31,30,34,37,39,41,43,44],note:`objective: sustain ≥ 40%; keep watching for regressions.`}]}},gi=e=>e in hi,_i=344,vi=68,yi=248,bi=64,xi=192,Si=6,Ci=30,wi=48,Ti=280,Ei=18,Di=16,Oi=e=>e.setup?78:bi;function ki(e){let t=e.findIndex(e=>!e.setup),n=[],r=Si;e.forEach((i,a)=>{if(a>0){let t=!!e[a-1].wt,n=!!i.wt,o=!t&&n?48:t&&n?30:36;r+=Oi(e[a-1])+o}let o=i.setup?`setup`:a===t?`tick`:`step`;n.push({...i,kind:o,x:vi,y:r,w:yi,h:Oi(i)})});let i=n.filter(e=>e.wt),a=i.length?{x:wi,y:i[0].y-Ei,w:Ti,h:i[i.length-1].y+i[i.length-1].h+Di-(i[0].y-Ei)}:null,o=[];for(let e=0;e<n.length-1;e++)o.push(`M${xi} ${n[e].y+n[e].h} L${xi} ${n[e+1].y-4}`);let s=n[t],c=s.y+s.h/2,l=n[n.length-1],u=o.length,d=l.y+l.h+28;return o.push(`M${xi} ${l.y+l.h} L${xi} ${d-6} Q${xi} ${d} ${xi-6} ${d} L36 ${d} Q${Ci} ${d} ${Ci} ${d-6} L${Ci} ${c+6} Q${Ci} ${c} 36 ${c} L${vi-4} ${c}`),{nodes:n,wires:o,route:`M${n.slice(t).map(e=>`${xi} ${e.y+e.h/2}`).join(` L `)} L${xi} ${d} L${Ci} ${d} L${Ci} ${c} L${vi-4} ${c}`,worktree:a,returnWireIndex:u,viewW:_i,viewH:d+14}}function Ai({template:e}){let t=hi[e.name],[n,r]=(0,N.useState)(`flow`);return t?(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`mb-4 inline-flex rounded-full border border-hairline bg-raised p-0.5 text-label`,children:[(0,P.jsx)(ji,{active:n===`flow`,onClick:()=>r(`flow`),children:`Loop flow`}),(0,P.jsx)(ji,{active:n===`dashboard`,onClick:()=>r(`dashboard`),children:`Dashboard`})]}),n===`flow`?(0,P.jsx)(Mi,{spec:t}):(0,P.jsx)(Ni,{spec:t})]}):null}function ji({active:e,onClick:t,children:n}){return(0,P.jsx)(`button`,{type:`button`,onClick:t,className:`cursor-pointer rounded-full px-3.5 py-1.5 font-medium transition-colors ${e?`bg-surface text-display shadow-card`:`text-secondary hover:text-display`}`,children:n})}function Mi({spec:e}){let t=(0,N.useMemo)(()=>ki(e.nodes),[e]),n=(0,N.useRef)(null);return(0,N.useEffect)(()=>{let e=n.current;if(!e||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let r=e.querySelector(`.lpf-route`),i=e.querySelector(`.lpf-pulse`),a=e.querySelector(`.lpf-comet`);if(!r||!i||!a)return;let o=r.getTotalLength(),s=[];for(let e=0;e<=600;e++){let t=o*e/600,n=r.getPointAtLength(t);s.push([t,n.x,n.y])}let c=(e,t)=>{let n=0,r=1/0;for(let i of s){let a=(i[1]-e)**2+(i[2]-t)**2;a<r&&(r=a,n=i[0])}return n},l=new Map;e.querySelectorAll(`[data-lpf]`).forEach(e=>l.set(e.dataset.lpf,e));let u=t.nodes.filter(e=>e.kind!==`setup`).map(e=>({len:c(e.x+e.w/2,e.y+e.h/2),el:l.get(e.id)})).filter(e=>e.el).sort((e,t)=>e.len-t.len),d=210/1e3,f=[],p=u[0],m=u[u.length-1];f.push({type:`dwell`,at:p,dur:520});for(let e=0;e<u.length-1;e++){let t=u[e],n=u[e+1];f.push({type:`move`,from:t.len,to:n.len,dur:Math.max(360,(n.len-t.len)/d)}),f.push({type:`dwell`,at:n,dur:520})}f.push({type:`return`,from:m.len,to:o,dur:Math.max(720,(o-m.len)/d)}),f.push({type:`dwell`,at:p,dur:160,restart:!0}),a.setAttribute(`stroke-dasharray`,`52 ${o}`);let h=e=>{let t=Math.max(0,Math.min(o,e)),n=r.getPointAtLength(t);i.setAttribute(`cx`,n.x.toFixed(2)),i.setAttribute(`cy`,n.y.toFixed(2)),a.setAttribute(`stroke-dashoffset`,(-(e-52*.5)).toFixed(2))},g=()=>u.forEach(e=>e.el.classList.remove(`active`)),_=()=>u.forEach(e=>e.el.classList.remove(`visited`)),v=e=>{g(),e.el.classList.add(`active`,`visited`)},y=0,b=performance.now(),x=0,S=e=>{let t=f[y],n=e-b;if(n>=t.dur)(t.type===`move`||t.type===`return`)&&t.to!=null&&h(t.to),y=(y+1)%f.length,b=e,t=f[y],t.restart&&_(),t.type===`dwell`&&t.at&&(v(t.at),h(t.at.len)),t.type===`return`&&g();else if((t.type===`move`||t.type===`return`)&&t.from!=null&&t.to!=null){let e=n/t.dur,r=e<.5?2*e*e:1-(-2*e+2)**2/2;h(t.from+(t.to-t.from)*r)}else t.at&&h(t.at.len);x=requestAnimationFrame(S)};return v(p),h(p.len),x=requestAnimationFrame(S),()=>cancelAnimationFrame(x)},[t]),(0,P.jsx)(`div`,{ref:n,children:(0,P.jsx)(`div`,{className:`overflow-x-auto`,children:(0,P.jsxs)(`div`,{className:`relative mx-auto`,style:{width:t.viewW,height:t.viewH},children:[(0,P.jsxs)(`svg`,{className:`absolute inset-0`,width:t.viewW,height:t.viewH,viewBox:`0 0 ${t.viewW} ${t.viewH}`,"aria-hidden":`true`,children:[(0,P.jsxs)(`defs`,{children:[(0,P.jsx)(`marker`,{id:`lpf-arw`,markerUnits:`userSpaceOnUse`,viewBox:`0 0 8 8`,refX:`6`,refY:`4`,markerWidth:`9`,markerHeight:`9`,orient:`auto-start-reverse`,children:(0,P.jsx)(`path`,{d:`M1.2 1.2 L7 4 L1.2 6.8 Z`,fill:`var(--color-interactive)`})}),(0,P.jsxs)(`filter`,{id:`lpf-glow`,x:`-60%`,y:`-60%`,width:`220%`,height:`220%`,children:[(0,P.jsx)(`feGaussianBlur`,{stdDeviation:`2.4`,result:`b`}),(0,P.jsxs)(`feMerge`,{children:[(0,P.jsx)(`feMergeNode`,{in:`b`}),(0,P.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]}),(0,P.jsx)(`path`,{className:`lpf-route`,fill:`none`,d:t.route})]}),t.wires.map((e,n)=>(0,P.jsx)(`path`,{className:`lpf-wire`,d:e,fill:`none`,strokeWidth:2,strokeLinecap:`round`,strokeDasharray:n===t.returnWireIndex?`6 6`:void 0,markerEnd:`url(#lpf-arw)`},n)),(0,P.jsx)(`path`,{className:`lpf-comet`,d:t.route,fill:`none`,strokeWidth:2.5,strokeLinecap:`round`,filter:`url(#lpf-glow)`,opacity:.9}),(0,P.jsx)(`circle`,{className:`lpf-pulse`,r:3.8,filter:`url(#lpf-glow)`})]}),t.worktree&&(0,P.jsx)(`div`,{className:`absolute rounded-[14px] border border-dashed`,style:{left:t.worktree.x,top:t.worktree.y,width:t.worktree.w,height:t.worktree.h,borderColor:`var(--color-interactive)`,background:`var(--color-interactive-soft)`},children:(0,P.jsx)(`span`,{className:`absolute px-2 font-mono text-[9.5px] font-semibold uppercase tracking-[0.1em]`,style:{top:-9,left:16,background:`var(--color-surface)`,color:`var(--color-interactive)`},children:e.worktreeLabel})}),t.nodes.map(e=>(0,P.jsxs)(`div`,{"data-lpf":e.id,className:`lpf-node${e.kind===`tick`?` tick`:``}`,style:{left:e.x,top:e.y,width:e.w,height:e.h},children:[(0,P.jsxs)(`div`,{className:`lpf-k`,children:[(0,P.jsx)(`span`,{className:`g`,children:e.glyph}),e.kicker]}),(0,P.jsx)(`div`,{className:`lpf-t`,children:e.title}),(0,P.jsx)(`div`,{className:`lpf-d`,children:e.detail})]},e.id))]})})})}function Ni({spec:e}){return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`p`,{className:`mb-4 text-body leading-snug text-secondary`,children:`Pievo sets up a dashboard to track results.`}),e.dashboard.map((e,t)=>(0,P.jsx)(`div`,{className:`min-w-0 ${t>0?`mt-6`:``}`,children:e.type===`kanban`?(0,P.jsx)(Ii,{w:e}):e.type===`metric`?(0,P.jsx)(L,{w:e}):e.type===`calendar`?(0,P.jsx)(Fi,{w:e}):(0,P.jsx)(I,{w:e})},t))]})}var Pi=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`];function Fi({w:e}){let t=new Set(e.reportDays),n=(7-(e.firstWeekday+e.days)%7)%7;return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`mb-2 flex items-baseline gap-2`,children:[(0,P.jsx)(`span`,{className:`text-meta font-medium text-secondary`,children:e.heading}),(0,P.jsx)(`span`,{className:`font-mono text-caption text-disabled`,children:e.monthLabel}),(0,P.jsxs)(`span`,{className:`ml-auto font-mono text-caption text-disabled`,children:[e.reportDays.length,` report`,e.reportDays.length===1?``:`s`]})]}),(0,P.jsxs)(`div`,{className:`grid min-w-0 grid-cols-7 border-l border-t border-hairline`,children:[Pi.map(e=>(0,P.jsx)(`div`,{className:`border-b border-r border-hairline px-1.5 py-1 text-right text-micro font-medium text-disabled`,children:e},e)),Array.from({length:e.firstWeekday},(e,t)=>(0,P.jsx)(`div`,{className:`border-b border-r border-hairline bg-raised`},`lead${t}`)),Array.from({length:e.days},(e,n)=>{let r=n+1;return(0,P.jsxs)(`div`,{className:`relative min-h-[34px] min-w-0 border-b border-r border-hairline bg-surface px-1 pb-1 pt-4`,children:[(0,P.jsx)(`span`,{className:`absolute right-1 top-0.5 font-mono text-micro text-disabled`,children:r}),t.has(r)&&(0,P.jsx)(`span`,{title:`report · day ${r}`,className:`absolute bottom-1 left-1 inline-block size-1.5 rounded-full`,style:{background:`var(--color-interactive)`}})]},r)}),Array.from({length:n},(e,t)=>(0,P.jsx)(`div`,{className:`border-b border-r border-hairline bg-raised`},`trail${t}`))]}),(0,P.jsxs)(`div`,{className:`mt-2 flex items-center gap-1.5 text-caption font-medium text-secondary`,children:[(0,P.jsx)(`span`,{className:`inline-block size-1.5 rounded-full`,style:{background:`var(--color-interactive)`}}),` Day with a report`]})]})}function Ii({w:e}){return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`mb-2 text-meta font-medium text-secondary`,children:[e.heading,` `,e.sub&&(0,P.jsx)(`span`,{className:`font-mono text-caption text-disabled`,children:e.sub})]}),(0,P.jsx)(`div`,{className:`flex min-w-0 gap-3 overflow-x-auto pb-1`,children:e.columns.map(([e,t])=>(0,P.jsxs)(`div`,{className:`flex w-[190px] shrink-0 flex-col`,children:[(0,P.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 border-b border-hairline pb-1.5`,children:[(0,P.jsx)(`span`,{className:`text-label font-semibold text-primary`,children:e}),(0,P.jsx)(`span`,{className:`text-caption text-disabled`,children:t.length})]}),(0,P.jsx)(`div`,{className:`flex flex-col gap-2`,children:t.map(([e,t,n])=>(0,P.jsx)(`div`,{className:`min-w-0 overflow-hidden rounded-control border border-hairline bg-surface shadow-card transition-colors hover:border-wire`,children:(0,P.jsxs)(`div`,{className:`flex flex-col gap-1 px-2.5 py-2`,children:[(0,P.jsx)(`span`,{className:`truncate text-meta text-primary`,children:t}),(0,P.jsxs)(`span`,{className:`truncate font-mono text-micro text-disabled`,children:[e,` · `,n]})]})},e))})]},e))})]})}function I({w:e}){return(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`div`,{className:`mb-2 text-meta font-medium text-secondary`,children:e.heading}),(0,P.jsxs)(`div`,{className:`rounded-card border border-hairline bg-surface p-3.5 shadow-card`,children:[(0,P.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,P.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,P.jsx)(`div`,{className:`truncate text-meta font-semibold text-display`,children:e.title}),(0,P.jsx)(`div`,{className:`font-mono text-micro text-disabled`,children:e.date})]}),(0,P.jsx)(`span`,{className:`shrink-0 rounded-full border border-hairline bg-raised px-2 py-0.5 font-mono text-micro text-secondary`,children:`report`})]}),(0,P.jsx)(`div`,{className:`mt-3 flex flex-col gap-1.5 border-t border-hairline pt-3`,children:e.lines.map((e,t)=>t===0?(0,P.jsx)(`div`,{className:`text-meta font-medium text-primary`,children:e},t):(0,P.jsxs)(`div`,{className:`flex gap-2 text-caption text-secondary`,children:[(0,P.jsx)(`span`,{className:`text-disabled`,children:`—`}),(0,P.jsx)(`span`,{className:`min-w-0`,children:e})]},t))})]})]})}function L({w:e}){let t=e.series,n=t[t.length-1]??0,r=n-(t[0]??0),i=e.betterDown?r<0:r>0;return(0,P.jsxs)(`div`,{className:`min-w-0 rounded-card border border-hairline bg-surface p-3.5 shadow-card`,children:[(0,P.jsxs)(`div`,{className:`mb-3 flex items-baseline gap-2`,children:[(0,P.jsx)(`span`,{className:`text-label font-semibold text-primary`,children:e.label}),(0,P.jsx)(`span`,{className:`ml-auto font-mono text-body font-semibold text-display`,children:n}),r!==0&&(0,P.jsxs)(`span`,{className:`font-mono text-caption`,style:{color:i?`var(--color-success)`:`var(--color-accent)`},children:[r>0?`▲`:`▼`,` `,Math.abs(r)]})]}),(0,P.jsx)(Li,{series:t}),e.note&&(0,P.jsx)(`p`,{className:`mt-2 font-mono text-caption text-secondary`,children:e.note})]})}function Li({series:e}){let t=(0,N.useMemo)(()=>`lpf-grad-${Math.round(e.reduce((e,t)=>e+t,0))}-${e.length}`,[e]),n=Math.min(...e),r=Math.max(...e),i=Math.max(1,r-n),a=Math.floor(n-i*.15),o=Math.ceil(r+i*.15);n>=0&&a<0&&(a=0);let s=t=>26+t*286/(e.length-1),c=e=>10+(1-(e-a)/(o-a||1))*122,l=e=>Math.round(e*100)/100,u=`M`+e.map((e,t)=>`${l(s(t))} ${l(c(e))}`).join(` L `),d=`${u} L ${l(s(e.length-1))} 132 L ${l(s(0))} 132 Z`,f=[a,Math.round((a+o)/2),o],p=e.length-1;return(0,P.jsxs)(`svg`,{viewBox:`0 0 320 150`,width:`100%`,className:`block`,role:`img`,"aria-label":`metric trend`,children:[(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{id:t,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,P.jsx)(`stop`,{offset:`0`,stopColor:`var(--color-chart-1)`,stopOpacity:`0.16`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`var(--color-chart-1)`,stopOpacity:`0`})]})}),f.map((e,t)=>(0,P.jsxs)(`g`,{children:[(0,P.jsx)(`line`,{x1:26,y1:l(c(e)),x2:312,y2:l(c(e)),stroke:`var(--color-hairline)`,strokeWidth:1}),(0,P.jsx)(`text`,{x:20,y:l(c(e))+3,textAnchor:`end`,fontFamily:`var(--font-mono)`,fontSize:9,fill:`var(--color-disabled)`,children:e})]},t)),(0,P.jsx)(`path`,{d,fill:`url(#${t})`}),(0,P.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--color-chart-1)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,P.jsx)(`circle`,{cx:l(s(p)),cy:l(c(e[p]??0)),r:3,fill:`var(--color-chart-1)`,stroke:`var(--color-surface)`,strokeWidth:1.5}),(0,P.jsx)(`text`,{x:26,y:145,fontFamily:`var(--font-mono)`,fontSize:9,fill:`var(--color-disabled)`,children:`older`}),(0,P.jsx)(`text`,{x:312,y:145,textAnchor:`end`,fontFamily:`var(--font-mono)`,fontSize:9,fill:`var(--color-disabled)`,children:`now`})]})}var Ri=1e5,zi={"claude-code":`Claude Code`,codex:`Codex`};function Bi({size:e=14}){return(0,P.jsx)(`svg`,{"aria-hidden":!0,width:e,height:e,viewBox:`0 0 24 24`,fill:`#D97757`,fillRule:`evenodd`,className:`shrink-0`,xmlns:`http://www.w3.org/2000/svg`,children:(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`})})}function Vi({size:e=14}){return(0,P.jsxs)(`svg`,{"aria-hidden":!0,width:e,height:e,viewBox:`0 0 24 24`,className:`shrink-0`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,P.jsx)(`path`,{d:`M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z`,fill:`#fff`}),(0,P.jsx)(`path`,{d:`M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z`,fill:`url(#lobe-icons-codex-grad)`}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:`lobe-icons-codex-grad`,x1:`12`,x2:`12`,y1:`3`,y2:`21`,children:[(0,P.jsx)(`stop`,{stopColor:`#B1A7FF`}),(0,P.jsx)(`stop`,{offset:`.5`,stopColor:`#7A9DFF`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`#3941FF`})]})})]})}var Hi=e=>`Fetch ${e}/api/bootstrap and help me build a loop.`;function Ui({open:e,onClose:t,onCreated:n,template:r=null,teamId:i}){let[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(null),[l,u]=(0,N.useState)(null),[d,f]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(null),[y,x]=(0,N.useState)(!1),S=(0,N.useRef)(null),C=(0,N.useRef)(n);C.current=n;let ee=typeof window<`u`?window.location.origin:``,te=Hi(ee),w=a&&s?[`server-url: ${ee}`,`connect-key: ${a}`,...s?.customCli?[`pievo-cli: ${s.pievoCli}`]:[]].join(`
|
|
11
11
|
`):``,T=r?.description?.trim()??``,E=a&&s?[te,``,w,...T?[``,T]:[]].join(`
|
|
12
|
-
`):``;(0,N.useEffect)(()=>{e&&(o(null),c(null),u(null),_(null),x(!1),f(!1),h(!1))},[e,r]),(0,N.useEffect)(()=>{if(!e)return;let t=!0;return v().then(e=>{t&&c(e)}).catch(()=>{t&&x(!0)}),p({data:i}).then(e=>{t&&(`token`in e?o(e.token):_(e.error))}).catch(()=>{t&&_(`could not mint a connect key`)}),()=>{t=!1}},[e,i]),(0,N.useEffect)(()=>{if(!e||l||!a)return;S.current&&clearInterval(S.current),S.current=setInterval(()=>{b({data:a}).then(e=>{e.done&&e.id&&(S.current&&clearInterval(S.current),u({id:e.id,name:e.name??`loop`,agent:e.agent??`claude-code`}),C.current())}).catch(()=>{})},2500);let t=setTimeout(()=>h(!0),Ri);return()=>{S.current&&clearInterval(S.current),clearTimeout(t)}},[e,l,a]);async function ne(){try{await navigator.clipboard.writeText(E),f(!0),setTimeout(()=>f(!1),1500)}catch{_(`could not copy - select the text and copy manually`)}}let re=(e=!0)=>(0,P.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,P.jsx)(`h3`,{className:`text-label font-semibold text-display`,children:`Paste to capture it`}),e&&E&&(0,P.jsx)(`button`,{className:at,onClick:()=>void ne(),children:d?`✓ Copied`:`Copy`})]}),(0,P.jsxs)(`div`,{className:`mt-2 overflow-hidden rounded-control border border-hairline bg-raised p-3 font-mono text-label text-primary`,children:[(0,P.jsx)(`p`,{className:`leading-relaxed`,children:te}),w?(0,P.jsx)(`pre`,{className:`mt-3 overflow-x-auto whitespace-pre-wrap border-t border-hairline pt-3 leading-relaxed text-secondary`,children:w}):(0,P.jsx)(`div`,{className:`mt-3 border-t border-hairline pt-3 leading-relaxed text-secondary`,children:y?`Could not load the CLI configuration. Close and try again.`:a?`Loading CLI configuration…`:`Minting a connect key…`}),T&&w&&(0,P.jsx)(`p`,{className:`mt-3 whitespace-pre-wrap border-t border-hairline pt-3 leading-relaxed text-primary`,children:T})]}),(0,P.jsxs)(`p`,{className:`mt-2 text-body leading-snug text-secondary`,children:[`Paste it in that same session - reuses this machine automatically. Your agent will`,` `,r?`set the loop up from here.`:`ask what the loop should do.`]})]}),ie=m?{dot:`bg-secondary`,text:`Still waiting - check your coding agent is running in the right project, then paste again.`}:{dot:`animate-pulse bg-rubik-orange`,text:`Waiting for your coding agent…`},ae=(0,P.jsxs)(`button`,{className:`${ft} ml-auto`,onClick:()=>void ne(),disabled:!E,children:[(0,P.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[(0,P.jsx)(Bi,{}),(0,P.jsx)(Vi,{})]}),d?`✓ Copied`:`Copy prompt`]});if(l)return(0,P.jsxs)(Ue,{open:e,onClose:t,children:[(0,P.jsx)(Ve,{title:`Loop created`,sub:`${zi[l.agent]} built and registered it.`}),(0,P.jsxs)(`div`,{className:`mt-5 rounded-card border border-hairline bg-surface p-5 shadow-card`,children:[(0,P.jsxs)(`div`,{className:`text-[17px] font-medium text-display`,children:[`✓ `,l.name]}),(0,P.jsx)(`div`,{className:`mt-1 text-body text-secondary`,children:`It’s scheduled now and will run on the machine.`})]}),(0,P.jsx)(`div`,{className:`mt-4`,children:(0,P.jsx)(`button`,{className:ot,onClick:t,children:`Done`})})]});if(r){let n=gi(r.name),i=(0,P.jsxs)(`div`,{className:`min-w-0`,children:[re(!1),g&&(0,P.jsxs)(`div`,{className:`mt-3 text-body text-accent`,children:[`Error: `,g]}),(0,P.jsxs)(`div`,{className:`mt-6 flex items-start gap-3`,children:[(0,P.jsx)(`span`,{className:`mt-1 inline-block h-2 w-2 shrink-0 rounded-full ${ie.dot}`}),(0,P.jsx)(`span`,{className:`text-label leading-relaxed text-secondary`,children:ie.text}),ae]})]});return(0,P.jsxs)(Ue,{open:e,onClose:t,wide:n,children:[(0,P.jsx)(Ve,{title:r.label,sub:`Paste this into your coding agent, in the project you want the loop for.`}),n?(0,P.jsxs)(`div`,{className:`mt-5 grid gap-8 md:grid-cols-[minmax(0,1fr)_400px]`,children:[i,(0,P.jsx)(`div`,{className:`min-w-0 md:border-l md:border-hairline md:pl-8`,children:(0,P.jsx)(Ai,{template:r})})]}):(0,P.jsx)(`div`,{className:`mt-6`,children:i})]})}return(0,P.jsxs)(Ue,{open:e,onClose:t,children:[(0,P.jsx)(Ve,{title:`New loop`}),(0,P.jsxs)(`div`,{className:`mt-6`,children:[(0,P.jsxs)(`div`,{className:`flex gap-3.5`,children:[(0,P.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,P.jsx)(`span`,{className:`flex size-5 shrink-0 items-center justify-center rounded-full border border-display text-micro font-medium leading-none text-display`,children:`1`}),(0,P.jsx)(`span`,{className:`mt-1 w-px flex-1 bg-hairline`})]}),(0,P.jsxs)(`div`,{className:`pb-6`,children:[(0,P.jsx)(`h3`,{className:`text-label font-semibold text-display`,children:`Do it once in your coding agent`}),(0,P.jsx)(`p`,{className:`mt-1.5 text-body leading-snug text-secondary`,children:`Run the task yourself first, to a real result you’re happy with.`})]})]}),(0,P.jsxs)(`div`,{className:`flex gap-3.5`,children:[(0,P.jsx)(`span`,{className:`flex size-5 shrink-0 items-center justify-center rounded-full border border-display text-micro font-medium leading-none text-display`,children:`2`}),re(!1)]})]}),g&&(0,P.jsxs)(`div`,{className:`mt-3 text-body text-accent`,children:[`Error: `,g]}),(0,P.jsxs)(`div`,{className:`mt-6 flex items-start gap-3`,children:[(0,P.jsx)(`span`,{className:`mt-1 inline-block h-2 w-2 shrink-0 rounded-full ${ie.dot}`}),(0,P.jsx)(`span`,{className:`text-label leading-relaxed text-secondary`,children:ie.text}),ae]})]})}async function Wi(e){let[t,n,r]=await Promise.all([x({data:e}),Ge({data:e}),y({data:e})]);return{jobs:t,machines:n,teams:r}}function Gi({teamId:e,initial:t}){let[n,r]=(0,N.useState)(null),{jobs:i,machines:a,teams:o}=n??t,s=t.templates,c=a.filter(e=>e.online).length,l=ke(),[u,d]=(0,N.useState)({open:!1,template:null}),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(!1),v=(0,N.useCallback)(async()=>{try{r(await Wi(e))}catch{}},[e]),y=(0,N.useRef)(!1);y.current=u.open||f||m||g;let b=i.some(e=>e.running);(0,N.useEffect)(()=>{let e=setInterval(()=>{y.current||v()},b?3e3:1e4);return()=>clearInterval(e)},[v,b]);let x=()=>void v(),S=i.filter(e=>e.enabled).length,C=()=>({onOpen:e=>void l({to:`/loops/$loopId`,params:{loopId:e}}),onPickRun:(e,t)=>void l({to:`/loops/$loopId/runs/$runId`,params:{loopId:e,runId:t.id}})});return(0,P.jsxs)(Kr,{delay:120,children:[(0,P.jsx)(`header`,{className:`glass glass-bar sticky top-0 z-50`,children:(0,P.jsxs)(`div`,{className:`mx-auto flex max-w-[1180px] items-center gap-3 px-8 py-2.5`,children:[(0,P.jsx)(ve,{size:30}),(0,P.jsx)(`span`,{className:`text-[18px] font-semibold tracking-[-0.015em] text-display`,children:`Pievo`}),(0,P.jsx)(Yr,{data:o}),(0,P.jsx)(`div`,{className:`flex-1`}),(0,P.jsx)(`a`,{href:je,target:`_blank`,rel:`noreferrer`,"aria-label":`GitHub repository`,title:`GitHub`,className:qi,children:(0,P.jsx)(Ce,{className:`size-[17px]`})}),o&&o.teams.length>0&&(0,P.jsx)(`button`,{onClick:()=>_(!0),className:Ki,children:`Teams`}),(0,P.jsx)(`button`,{onClick:()=>h(!0),className:Ki,children:`Notifications`}),(0,P.jsxs)(`button`,{onClick:()=>p(!0),className:`${Ki} gap-1.5`,children:[(0,P.jsx)(`span`,{className:`inline-block size-1.5 rounded-full ${c?`bg-rubik-green`:`bg-disabled`}`}),c,` `,c===1?`machine`:`machines`,` online`]}),(0,P.jsx)(`button`,{onClick:()=>d({open:!0,template:null}),className:`inline-flex shrink-0 cursor-pointer items-center rounded-full bg-display px-3.5 py-1.5 text-meta font-medium text-paper transition-opacity hover:opacity-85`,children:`New Loop`})]})}),(0,P.jsxs)(`main`,{className:`mx-auto max-w-[1180px] px-8 pb-24`,children:[(0,P.jsxs)(`section`,{className:`pb-2 pt-14 text-center`,children:[(0,P.jsx)(`h1`,{className:`font-pixel text-[clamp(28px,4.5vw,38px)] leading-[1.15] text-display`,children:`What should happen while you sleep?`}),s.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`div`,{className:`mb-5 mt-2 text-body text-secondary`,children:`Start with a template…`}),(0,P.jsx)(Ji,{templates:s,onPick:e=>d({open:!0,template:e})})]}),(0,P.jsx)(`div`,{className:`mt-7`,children:(0,P.jsxs)(`button`,{onClick:()=>d({open:!0,template:null}),className:`inline-flex cursor-pointer items-center gap-1.5 rounded-full bg-display px-6 py-2.5 text-body font-medium text-paper transition-opacity hover:opacity-85`,children:[s.length?`Start a blank loop`:`Start your first loop`,(0,P.jsx)(`span`,{"aria-hidden":!0,children:`→`})]})})]}),(0,P.jsxs)(`div`,{className:`mb-5 mt-12 flex items-baseline gap-2.5`,children:[(0,P.jsx)(`h2`,{className:`text-body font-semibold text-display`,children:`Active loops`}),(0,P.jsx)(`span`,{className:`text-label text-secondary`,children:i.length?`${S} scheduled · ${i.length} total`:``})]}),i.length?i.map(e=>(0,N.createElement)(qr,{job:e,...C(),key:e.id})):(0,P.jsxs)(`div`,{className:`py-16 text-center`,children:[(0,P.jsx)(`div`,{className:`text-[15px] text-secondary`,children:`No loops yet`}),!i.length&&(0,P.jsx)(`div`,{className:`mt-1.5 text-body text-disabled`,children:`Pick a template above, or start a blank loop.`})]}),(0,P.jsx)(De,{onStart:()=>d({open:!0,template:null})})]}),(0,P.jsx)(Ui,{open:u.open,template:u.template,teamId:e,onClose:()=>d({open:!1,template:null}),onCreated:x}),(0,P.jsx)(We,{open:f,onClose:()=>p(!1),teamId:e}),(0,P.jsx)($r,{open:m,onClose:()=>h(!1)}),(0,P.jsx)(mi,{open:g,onClose:()=>_(!1),activeTeamId:e})]})}var Ki=`inline-flex shrink-0 cursor-pointer items-center rounded-full px-3 py-1.5 text-meta font-medium text-secondary transition-colors hover:bg-raised hover:text-display`,qi=`inline-flex shrink-0 cursor-pointer items-center rounded-full p-1.5 text-secondary transition-colors hover:bg-raised hover:text-display`;function Ji({templates:e,onPick:t}){let n=e.length<=5?1:Math.ceil(e.length/4),r=[];for(let t=0,i=0;t<n;t++){let a=Math.ceil((e.length-i)/(n-t));r.push(e.slice(i,i+a)),i+=a}return(0,P.jsx)(`div`,{className:`pb-3 pt-1`,children:r.map((e,n)=>{let r=(e.length-1)/2;return(0,P.jsx)(`div`,{className:`flex flex-wrap items-start justify-center`,children:e.map((n,i)=>{let a=i-r;return(0,P.jsxs)(`button`,{type:`button`,onClick:()=>t(n),title:n.desc,className:`fan-card relative w-[196px] shrink-0 cursor-pointer rounded-card border border-hairline bg-surface p-3 text-left shadow-[0_12px_28px_-16px_rgba(0,0,0,0.25)] outline-none focus-visible:ring-2 focus-visible:ring-interactive`,style:{"--tilt":`${a*3.5}deg`,"--lift":`${Math.abs(a)*7}px`,marginInline:e.length>1?`-5px`:void 0},children:[n.thumb?(0,P.jsx)(`span`,{className:`block overflow-hidden rounded-control bg-raised [&_svg]:block [&_svg]:h-auto [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:n.thumb}}):(0,P.jsx)(`span`,{className:`flex h-[76px] items-center justify-center rounded-control bg-raised text-secondary`,children:(0,P.jsx)(Yi,{})}),(0,P.jsx)(`span`,{className:`mt-2.5 block truncate text-center text-meta font-semibold text-primary`,children:n.label}),(0,P.jsx)(`span`,{className:`mt-0.5 line-clamp-3 min-h-[45px] text-center text-caption leading-snug text-secondary`,children:n.desc})]},n.name)})},n)})})}function Yi(){return(0,P.jsxs)(`svg`,{"aria-hidden":!0,width:`30`,height:`30`,viewBox:`0 0 30 30`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,P.jsx)(`path`,{d:`M25.5 15a10.5 10.5 0 1 1-3.1-7.4`}),(0,P.jsx)(`path`,{d:`M25.5 3.5v5.2h-5.2`})]})}var Xi=Ne(`/`)({loader:async()=>{let e=await S();if(e.enabled){let{data:t}=await Oe.getSession();if(!t)return{mode:`signin`,auth:e};throw g({to:`/t/$teamId`,params:{teamId:await ee()}})}return{mode:`dashboard`,auth:e,initial:{...await Wi(),templates:await h()}}},component:Ee(()=>Me(()=>import(`./routes-B6Kg4mFC.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`),errorComponent:Ee(()=>Me(()=>import(`./routes-DsdcURfk.js`),__vite__mapDeps([7,1,3,8,6])),`errorComponent`)}),Zi=Ne(`/t/$teamId`)({loader:async({params:e})=>{let t=e.teamId,n=await S();if(n.enabled){let{data:e}=await Oe.getSession();if(!e)return{mode:`signin`,auth:n,teamId:t};if(!await C({data:t}))throw Error(`This team does not exist, or you do not have access to it.`)}return{mode:`dashboard`,auth:n,teamId:t,initial:{...await Wi(t),templates:await h()}}},component:Ee(()=>Me(()=>import(`./t._teamId-Cmm4xdKj.js`),__vite__mapDeps([9,1,2,3,4,5,6])),`component`),errorComponent:Ee(()=>Me(()=>import(`./t._teamId-C9uEyAh_.js`),__vite__mapDeps([10,1,3,8,6])),`errorComponent`)}),Qi=Ne(`/loops/$loopId`)({loader:async()=>{let e=await S();if(e.enabled){let{data:t}=await Oe.getSession();if(!t)return{auth:e}}return{auth:e}},component:Ee(()=>Me(()=>import(`./loops._loopId-CrSSvSVl.js`),__vite__mapDeps([11,1,2,3,4,12,13,6,14,15,5,8])),`component`)}),$i=Ne(`/invite/$token`)({loader:async({params:e})=>{let t=await S(),n=!1;if(t.enabled){let{data:e}=await Oe.getSession();n=!!e}return{auth:t,token:e.token,signedIn:n}},component:Ee(()=>Me(()=>import(`./invite._token-CUCNcN89.js`),__vite__mapDeps([16,1,2,3,4,5,6])),`component`),errorComponent:Ee(()=>Me(()=>import(`./invite._token-C3t4JfAY.js`),__vite__mapDeps([17,1,3,8,6])),`errorComponent`)}),ea=Ne(`/loops/$loopId_/runs/$runId`)({loader:async()=>{let e=await S();if(e.enabled){let{data:t}=await Oe.getSession();if(!t)return{auth:e}}return{auth:e}},component:Ee(()=>Me(()=>import(`./loops._loopId_.runs._runId-B5Qacloe.js`),__vite__mapDeps([18,1,2,3,4,5,6,8,14])),`component`)}),ta=Xi.update({id:`/`,path:`/`,getParentRoute:()=>Wr}),na=Zi.update({id:`/t/$teamId`,path:`/t/$teamId`,getParentRoute:()=>Wr}),ra=Qi.update({id:`/loops/$loopId`,path:`/loops/$loopId`,getParentRoute:()=>Wr}),ia={IndexRoute:ta,InviteTokenRoute:$i.update({id:`/invite/$token`,path:`/invite/$token`,getParentRoute:()=>Wr}),LoopsLoopIdRoute:ra,TTeamIdRoute:na,LoopsLoopIdRunsRunIdRoute:ea.update({id:`/loops/$loopId_/runs/$runId`,path:`/loops/$loopId/runs/$runId`,getParentRoute:()=>Wr})},aa=Wr._addFileChildren(ia);function oa(){return Mr({routeTree:aa,scrollRestoration:!0,defaultPreload:`intent`})}async function sa(){let e=await oa(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(Un),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Kn(e),e}var ca=sa;async function R(){let e=await ca();return window.$_TSR?.h(),e}var la;function ua(){return la||=R(),(0,P.jsx)(Jn,{promise:la,children:e=>(0,P.jsx)(Fr,{router:e})})}var da=yt();(0,N.startTransition)(()=>{(0,da.hydrateRoot)(document,(0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(ua,{})}))});export{Xi as a,Jr as c,Zi as i,$i as n,Gi as o,Qi as r,di as s,ea as t};
|
|
12
|
+
`):``;(0,N.useEffect)(()=>{e&&(o(null),c(null),u(null),_(null),x(!1),f(!1),h(!1))},[e,r]),(0,N.useEffect)(()=>{if(!e)return;let t=!0;return v().then(e=>{t&&c(e)}).catch(()=>{t&&x(!0)}),p({data:i}).then(e=>{t&&(`token`in e?o(e.token):_(e.error))}).catch(()=>{t&&_(`could not mint a connect key`)}),()=>{t=!1}},[e,i]),(0,N.useEffect)(()=>{if(!e||l||!a)return;S.current&&clearInterval(S.current),S.current=setInterval(()=>{b({data:a}).then(e=>{e.done&&e.id&&(S.current&&clearInterval(S.current),u({id:e.id,name:e.name??`loop`,agent:e.agent??`claude-code`}),C.current())}).catch(()=>{})},2500);let t=setTimeout(()=>h(!0),Ri);return()=>{S.current&&clearInterval(S.current),clearTimeout(t)}},[e,l,a]);async function ne(){try{await navigator.clipboard.writeText(E),f(!0),setTimeout(()=>f(!1),1500)}catch{_(`could not copy - select the text and copy manually`)}}let re=(e=!0)=>(0,P.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,P.jsx)(`h3`,{className:`text-label font-semibold text-display`,children:`Paste to capture it`}),e&&E&&(0,P.jsx)(`button`,{className:at,onClick:()=>void ne(),children:d?`✓ Copied`:`Copy`})]}),(0,P.jsxs)(`div`,{className:`mt-2 overflow-hidden rounded-control border border-hairline bg-raised p-3 font-mono text-label text-primary`,children:[(0,P.jsx)(`p`,{className:`leading-relaxed`,children:te}),w?(0,P.jsx)(`pre`,{className:`mt-3 overflow-x-auto whitespace-pre-wrap border-t border-hairline pt-3 leading-relaxed text-secondary`,children:w}):(0,P.jsx)(`div`,{className:`mt-3 border-t border-hairline pt-3 leading-relaxed text-secondary`,children:y?`Could not load the CLI configuration. Close and try again.`:a?`Loading CLI configuration…`:`Minting a connect key…`}),T&&w&&(0,P.jsx)(`p`,{className:`mt-3 whitespace-pre-wrap border-t border-hairline pt-3 leading-relaxed text-primary`,children:T})]}),(0,P.jsxs)(`p`,{className:`mt-2 text-body leading-snug text-secondary`,children:[`Paste it in that same session - reuses this machine automatically. Your agent will`,` `,r?`set the loop up from here.`:`ask what the loop should do.`]})]}),ie=m?{dot:`bg-secondary`,text:`Still waiting - check your coding agent is running in the right project, then paste again.`}:{dot:`animate-pulse bg-rubik-orange`,text:`Waiting for your coding agent…`},ae=(0,P.jsxs)(`button`,{className:`${ft} ml-auto`,onClick:()=>void ne(),disabled:!E,children:[(0,P.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[(0,P.jsx)(Bi,{}),(0,P.jsx)(Vi,{})]}),d?`✓ Copied`:`Copy prompt`]});if(l)return(0,P.jsxs)(Ue,{open:e,onClose:t,children:[(0,P.jsx)(Ve,{title:`Loop created`,sub:`${zi[l.agent]} built and registered it.`}),(0,P.jsxs)(`div`,{className:`mt-5 rounded-card border border-hairline bg-surface p-5 shadow-card`,children:[(0,P.jsxs)(`div`,{className:`text-[17px] font-medium text-display`,children:[`✓ `,l.name]}),(0,P.jsx)(`div`,{className:`mt-1 text-body text-secondary`,children:`It’s scheduled now and will run on the machine.`})]}),(0,P.jsx)(`div`,{className:`mt-4`,children:(0,P.jsx)(`button`,{className:ot,onClick:t,children:`Done`})})]});if(r){let n=gi(r.name),i=(0,P.jsxs)(`div`,{className:`min-w-0`,children:[re(!1),g&&(0,P.jsxs)(`div`,{className:`mt-3 text-body text-accent`,children:[`Error: `,g]}),(0,P.jsxs)(`div`,{className:`mt-6 flex items-start gap-3`,children:[(0,P.jsx)(`span`,{className:`mt-1 inline-block h-2 w-2 shrink-0 rounded-full ${ie.dot}`}),(0,P.jsx)(`span`,{className:`text-label leading-relaxed text-secondary`,children:ie.text}),ae]})]});return(0,P.jsxs)(Ue,{open:e,onClose:t,wide:n,children:[(0,P.jsx)(Ve,{title:r.label,sub:`Paste this into your coding agent, in the project you want the loop for.`}),n?(0,P.jsxs)(`div`,{className:`mt-5 grid gap-8 md:grid-cols-[minmax(0,1fr)_400px]`,children:[i,(0,P.jsx)(`div`,{className:`min-w-0 md:border-l md:border-hairline md:pl-8`,children:(0,P.jsx)(Ai,{template:r})})]}):(0,P.jsx)(`div`,{className:`mt-6`,children:i})]})}return(0,P.jsxs)(Ue,{open:e,onClose:t,children:[(0,P.jsx)(Ve,{title:`New loop`}),(0,P.jsxs)(`div`,{className:`mt-6`,children:[(0,P.jsxs)(`div`,{className:`flex gap-3.5`,children:[(0,P.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,P.jsx)(`span`,{className:`flex size-5 shrink-0 items-center justify-center rounded-full border border-display text-micro font-medium leading-none text-display`,children:`1`}),(0,P.jsx)(`span`,{className:`mt-1 w-px flex-1 bg-hairline`})]}),(0,P.jsxs)(`div`,{className:`pb-6`,children:[(0,P.jsx)(`h3`,{className:`text-label font-semibold text-display`,children:`Do it once in your coding agent`}),(0,P.jsx)(`p`,{className:`mt-1.5 text-body leading-snug text-secondary`,children:`Run the task yourself first, to a real result you’re happy with.`})]})]}),(0,P.jsxs)(`div`,{className:`flex gap-3.5`,children:[(0,P.jsx)(`span`,{className:`flex size-5 shrink-0 items-center justify-center rounded-full border border-display text-micro font-medium leading-none text-display`,children:`2`}),re(!1)]})]}),g&&(0,P.jsxs)(`div`,{className:`mt-3 text-body text-accent`,children:[`Error: `,g]}),(0,P.jsxs)(`div`,{className:`mt-6 flex items-start gap-3`,children:[(0,P.jsx)(`span`,{className:`mt-1 inline-block h-2 w-2 shrink-0 rounded-full ${ie.dot}`}),(0,P.jsx)(`span`,{className:`text-label leading-relaxed text-secondary`,children:ie.text}),ae]})]})}async function Wi(e){let[t,n,r]=await Promise.all([x({data:e}),Ge({data:e}),y({data:e})]);return{jobs:t,machines:n,teams:r}}function Gi({teamId:e,initial:t}){let[n,r]=(0,N.useState)(null),{jobs:i,machines:a,teams:o}=n??t,s=t.templates,c=a.filter(e=>e.online).length,l=ke(),[u,d]=(0,N.useState)({open:!1,template:null}),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(!1),v=(0,N.useCallback)(async()=>{try{r(await Wi(e))}catch{}},[e]),y=(0,N.useRef)(!1);y.current=u.open||f||m||g;let b=i.some(e=>e.running);(0,N.useEffect)(()=>{let e=setInterval(()=>{y.current||v()},b?3e3:1e4);return()=>clearInterval(e)},[v,b]);let x=()=>void v(),S=i.filter(e=>e.enabled).length,C=()=>({onOpen:e=>void l({to:`/loops/$loopId`,params:{loopId:e}}),onPickRun:(e,t)=>void l({to:`/loops/$loopId/runs/$runId`,params:{loopId:e,runId:t.id}})});return(0,P.jsxs)(Kr,{delay:120,children:[(0,P.jsx)(`header`,{className:`glass glass-bar sticky top-0 z-50`,children:(0,P.jsxs)(`div`,{className:`mx-auto flex max-w-[1180px] items-center gap-3 px-8 py-2.5`,children:[(0,P.jsx)(ve,{size:30}),(0,P.jsx)(`span`,{className:`text-[18px] font-semibold tracking-[-0.015em] text-display`,children:`Pievo`}),(0,P.jsx)(Yr,{data:o}),(0,P.jsx)(`div`,{className:`flex-1`}),(0,P.jsx)(`a`,{href:je,target:`_blank`,rel:`noreferrer`,"aria-label":`GitHub repository`,title:`GitHub`,className:qi,children:(0,P.jsx)(Ce,{className:`size-[17px]`})}),o&&o.teams.length>0&&(0,P.jsx)(`button`,{onClick:()=>_(!0),className:Ki,children:`Teams`}),(0,P.jsx)(`button`,{onClick:()=>h(!0),className:Ki,children:`Notifications`}),(0,P.jsxs)(`button`,{onClick:()=>p(!0),className:`${Ki} gap-1.5`,children:[(0,P.jsx)(`span`,{className:`inline-block size-1.5 rounded-full ${c?`bg-rubik-green`:`bg-disabled`}`}),c,` `,c===1?`machine`:`machines`,` online`]}),(0,P.jsx)(`button`,{onClick:()=>d({open:!0,template:null}),className:`inline-flex shrink-0 cursor-pointer items-center rounded-full bg-display px-3.5 py-1.5 text-meta font-medium text-paper transition-opacity hover:opacity-85`,children:`New Loop`})]})}),(0,P.jsxs)(`main`,{className:`mx-auto max-w-[1180px] px-8 pb-24`,children:[(0,P.jsxs)(`section`,{className:`pb-2 pt-14 text-center`,children:[(0,P.jsx)(`h1`,{className:`font-pixel text-[clamp(28px,4.5vw,38px)] leading-[1.15] text-display`,children:`What should happen while you sleep?`}),s.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`div`,{className:`mb-5 mt-2 text-body text-secondary`,children:`Start with a template…`}),(0,P.jsx)(Ji,{templates:s,onPick:e=>d({open:!0,template:e})})]}),(0,P.jsx)(`div`,{className:`mt-7`,children:(0,P.jsxs)(`button`,{onClick:()=>d({open:!0,template:null}),className:`inline-flex cursor-pointer items-center gap-1.5 rounded-full bg-display px-6 py-2.5 text-body font-medium text-paper transition-opacity hover:opacity-85`,children:[s.length?`Start a blank loop`:`Start your first loop`,(0,P.jsx)(`span`,{"aria-hidden":!0,children:`→`})]})})]}),(0,P.jsxs)(`div`,{className:`mb-5 mt-12 flex items-baseline gap-2.5`,children:[(0,P.jsx)(`h2`,{className:`text-body font-semibold text-display`,children:`Active loops`}),(0,P.jsx)(`span`,{className:`text-label text-secondary`,children:i.length?`${S} scheduled · ${i.length} total`:``})]}),i.length?i.map(e=>(0,N.createElement)(qr,{job:e,...C(),key:e.id})):(0,P.jsxs)(`div`,{className:`py-16 text-center`,children:[(0,P.jsx)(`div`,{className:`text-[15px] text-secondary`,children:`No loops yet`}),!i.length&&(0,P.jsx)(`div`,{className:`mt-1.5 text-body text-disabled`,children:`Pick a template above, or start a blank loop.`})]}),(0,P.jsx)(De,{onStart:()=>d({open:!0,template:null})})]}),(0,P.jsx)(Ui,{open:u.open,template:u.template,teamId:e,onClose:()=>d({open:!1,template:null}),onCreated:x}),(0,P.jsx)(We,{open:f,onClose:()=>p(!1),teamId:e}),(0,P.jsx)($r,{open:m,onClose:()=>h(!1)}),(0,P.jsx)(mi,{open:g,onClose:()=>_(!1),activeTeamId:e})]})}var Ki=`inline-flex shrink-0 cursor-pointer items-center rounded-full px-3 py-1.5 text-meta font-medium text-secondary transition-colors hover:bg-raised hover:text-display`,qi=`inline-flex shrink-0 cursor-pointer items-center rounded-full p-1.5 text-secondary transition-colors hover:bg-raised hover:text-display`;function Ji({templates:e,onPick:t}){let n=e.length<=5?1:Math.ceil(e.length/4),r=[];for(let t=0,i=0;t<n;t++){let a=Math.ceil((e.length-i)/(n-t));r.push(e.slice(i,i+a)),i+=a}return(0,P.jsx)(`div`,{className:`pb-3 pt-1`,children:r.map((e,n)=>{let r=(e.length-1)/2;return(0,P.jsx)(`div`,{className:`flex flex-wrap items-start justify-center`,children:e.map((n,i)=>{let a=i-r;return(0,P.jsxs)(`button`,{type:`button`,onClick:()=>t(n),title:n.desc,className:`fan-card relative w-[196px] shrink-0 cursor-pointer rounded-card border border-hairline bg-surface p-3 text-left shadow-[0_12px_28px_-16px_rgba(0,0,0,0.25)] outline-none focus-visible:ring-2 focus-visible:ring-interactive`,style:{"--tilt":`${a*3.5}deg`,"--lift":`${Math.abs(a)*7}px`,marginInline:e.length>1?`-5px`:void 0},children:[n.thumb?(0,P.jsx)(`span`,{className:`block overflow-hidden rounded-control bg-raised [&_svg]:block [&_svg]:h-auto [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:n.thumb}}):(0,P.jsx)(`span`,{className:`flex h-[76px] items-center justify-center rounded-control bg-raised text-secondary`,children:(0,P.jsx)(Yi,{})}),(0,P.jsx)(`span`,{className:`mt-2.5 block truncate text-center text-meta font-semibold text-primary`,children:n.label}),(0,P.jsx)(`span`,{className:`mt-0.5 line-clamp-3 min-h-[45px] text-center text-caption leading-snug text-secondary`,children:n.desc})]},n.name)})},n)})})}function Yi(){return(0,P.jsxs)(`svg`,{"aria-hidden":!0,width:`30`,height:`30`,viewBox:`0 0 30 30`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,P.jsx)(`path`,{d:`M25.5 15a10.5 10.5 0 1 1-3.1-7.4`}),(0,P.jsx)(`path`,{d:`M25.5 3.5v5.2h-5.2`})]})}var Xi=Ne(`/`)({loader:async()=>{let e=await S();if(e.enabled){let{data:t}=await Oe.getSession();if(!t)return{mode:`signin`,auth:e};throw g({to:`/t/$teamId`,params:{teamId:await ee()}})}return{mode:`dashboard`,auth:e,initial:{...await Wi(),templates:await h()}}},component:Ee(()=>Me(()=>import(`./routes-DORLim-C.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`),errorComponent:Ee(()=>Me(()=>import(`./routes-3nuEJGdo.js`),__vite__mapDeps([7,1,3,8,6])),`errorComponent`)}),Zi=Ne(`/t/$teamId`)({loader:async({params:e})=>{let t=e.teamId,n=await S();if(n.enabled){let{data:e}=await Oe.getSession();if(!e)return{mode:`signin`,auth:n,teamId:t};if(!await C({data:t}))throw Error(`This team does not exist, or you do not have access to it.`)}return{mode:`dashboard`,auth:n,teamId:t,initial:{...await Wi(t),templates:await h()}}},component:Ee(()=>Me(()=>import(`./t._teamId-F5f4K8kd.js`),__vite__mapDeps([9,1,2,3,4,5,6])),`component`),errorComponent:Ee(()=>Me(()=>import(`./t._teamId-XfE_S1Fo.js`),__vite__mapDeps([10,1,3,8,6])),`errorComponent`)}),Qi=Ne(`/loops/$loopId`)({loader:async()=>{let e=await S();if(e.enabled){let{data:t}=await Oe.getSession();if(!t)return{auth:e}}return{auth:e}},component:Ee(()=>Me(()=>import(`./loops._loopId-BRBQzioy.js`),__vite__mapDeps([11,1,2,3,4,12,13,6,14,15,5,8])),`component`)}),$i=Ne(`/invite/$token`)({loader:async({params:e})=>{let t=await S(),n=!1;if(t.enabled){let{data:e}=await Oe.getSession();n=!!e}return{auth:t,token:e.token,signedIn:n}},component:Ee(()=>Me(()=>import(`./invite._token-BIxr8DlP.js`),__vite__mapDeps([16,1,2,3,4,5,6])),`component`),errorComponent:Ee(()=>Me(()=>import(`./invite._token-j2BTCeG1.js`),__vite__mapDeps([17,1,3,8,6])),`errorComponent`)}),ea=Ne(`/loops/$loopId_/runs/$runId`)({loader:async()=>{let e=await S();if(e.enabled){let{data:t}=await Oe.getSession();if(!t)return{auth:e}}return{auth:e}},component:Ee(()=>Me(()=>import(`./loops._loopId_.runs._runId-CMnOJkem.js`),__vite__mapDeps([18,1,2,3,4,5,6,8,14])),`component`)}),ta=Xi.update({id:`/`,path:`/`,getParentRoute:()=>Wr}),na=Zi.update({id:`/t/$teamId`,path:`/t/$teamId`,getParentRoute:()=>Wr}),ra=Qi.update({id:`/loops/$loopId`,path:`/loops/$loopId`,getParentRoute:()=>Wr}),ia={IndexRoute:ta,InviteTokenRoute:$i.update({id:`/invite/$token`,path:`/invite/$token`,getParentRoute:()=>Wr}),LoopsLoopIdRoute:ra,TTeamIdRoute:na,LoopsLoopIdRunsRunIdRoute:ea.update({id:`/loops/$loopId_/runs/$runId`,path:`/loops/$loopId/runs/$runId`,getParentRoute:()=>Wr})},aa=Wr._addFileChildren(ia);function oa(){return Mr({routeTree:aa,scrollRestoration:!0,defaultPreload:`intent`})}async function sa(){let e=await oa(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(Un),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Kn(e),e}var ca=sa;async function R(){let e=await ca();return window.$_TSR?.h(),e}var la;function ua(){return la||=R(),(0,P.jsx)(Jn,{promise:la,children:e=>(0,P.jsx)(Fr,{router:e})})}var da=yt();(0,N.startTransition)(()=>{(0,da.hydrateRoot)(document,(0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(ua,{})}))});export{Xi as a,Jr as c,Zi as i,$i as n,Gi as o,Qi as r,di as s,ea as t};
|