PageSourceSearch

https://noahlabhart.com/assets/index-CIhN9yUf.js

js noahlabhart.com collected 2026-10-04 05:24:07 UTC 410,460 bytes, 12 lines download raw bytes

vendor: 22,617 bytes, lines 1-9
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/work-C1f-N_Qz.js","assets/jsx-runtime-DGeXAQPT.js","assets/LazyImage-BTCDXO_6.js","assets/react-vt4WmSOl.js","assets/Section-uqbsMFz3.js","assets/what-does-a-cto-do-03Yvu1au.js","assets/link-DfXvwZHU.js","assets/testimonials-COEAgKyl.js","assets/media-CpFfbIWi.js","assets/contact-DH-zoaNs.js","assets/about-DmCVQwp6.js","assets/routes-gsXDvKL_.js","assets/podcast.index-Bi28CU0I.js","assets/EpisodeList-Cl_gTnru.js","assets/guides.index-BqBkXNQJ.js","assets/podcast._slug-BoalYrgH.js","assets/guides._slug-z_ooH-sO.js","assets/podcast.topics.index-Pr0fwCwA.js","assets/podcast.topics._topic-Bw__WswN.js","assets/podcast.page._page-CnqJzQd1.js"])))=>i.map(i=>d[i]);
2import{n as e,r as t,t as n}from"./jsx-runtime-DGeXAQPT.js";import{t as r}from"./react-vt4WmSOl.js";import{A as i,B as a,C as o,D as s,E as c,F as l,I as u,L as d,M as f,N as p,O as m,P as h,R as g,S as _,T as v,V as y,_ as b,a as x,b as S,c as C,d as ee,f as te,g as ne,h as re,i as ie,j as ae,k as oe,l as se,m as ce,n as w,o as le,p as E,r as D,s as ue,t as de,u as fe,v as pe,w as me,x as O,y as he,z as ge}from"./link-DfXvwZHU.js";var _e=e((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,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<ee)}function re(){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&&ne());){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&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(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,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ve=e(((e,t)=>{t.exports=_e()})),ye=e((e=>{var t=ve(),n=r(),i=y();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 s(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 c(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 l(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 u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(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 u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)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 f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=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`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function w(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case b:return`Profiler`;case v:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g: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 ne:return t=e.displayName||null,t===null?w(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}var le=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(e){return{current:e}}function me(e){0>fe||(e.current=de[fe],de[fe]=null,fe--)}function O(e,t){fe++,de[fe]=e.current,e.current=t}var he=pe(null),ge=pe(null),_e=pe(null),ye=pe(null);function be(e,t){switch(O(_e,t),O(ge,e),O(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}me(he),O(he,e)}function xe(){me(he),me(ge),me(_e)}function Se(e){e.memoizedState!==null&&O(ye,e);var t=he.current,n=Ud(t,e.type);t!==n&&(O(ge,e),O(he,n))}function Ce(e){ge.current===e&&(me(he),me(ge)),ye.current===e&&(me(ye),$f._currentValue=ue)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
3    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4`+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!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`),l=s.split(`
6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
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{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8Error generating stack: `+e.message+`
9`+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Ie=t.unstable_now,Le=t.unstable_getCurrentPriorityLevel,Re=t.unstable_ImmediatePriority,ze=t.unstable_UserBlockingPriority,Be=t.unstable_NormalPriority,Ve=t.unstable_LowPriority,He=t.unstable_IdlePriority,Ue=t.log,We=t.unstable_setDisableYieldValue,Ge=null,Ke=null;function qe(e){if(typeof Ue==`function`&&We(e),Ke&&typeof Ke.setStrictMode==`function`)try{Ke.setStrictMode(Ge,e)}catch{}}var Je=Math.clz32?Math.clz32:Ze,Ye=Math.log,Xe=Math.LN2;function Ze(e){return e>>>=0,e===0?32:31-(Ye(e)/Xe|0)|0}var Qe=256,$e=262144,et=4194304;function tt(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 nt(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=tt(n))):i=tt(o):i=tt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=tt(n))):i=tt(o)):i=tt(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 rt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function it(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 at(){var e=et;return et<<=1,!(et&62914560)&&(et=4194304),e}function ot(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ct(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-Je(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&&lt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function lt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Je(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Je(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(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 pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=D.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function ht(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,St=`__reactHandles$`+gt,Ct=`__reactResources$`+gt,wt=`__reactMarker$`+gt;function Tt(e){delete e[_t],delete e[vt],delete e[bt],delete e[xt],delete e[St]}function Et(e){var t=e[_t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[_t])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function Dt(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function kt(e){var t=e[Ct];return t||=e[Ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function At(e){e[wt]=!0}var jt=new Set,Mt={};function Nt(e,t){Pt(e,t),Pt(e+`Capture`,t)}function Pt(e,t){for(Mt[e]=t,e=0;e<t.length;e++)jt.add(t[e])}var Ft=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]*$`),It={},Lt={};function Rt(e){return je.call(Lt,e)?!0:je.call(It,e)?!1:Ft.test(e)?Lt[e]=!0:(It[e]=!0,!1)}function zt(e,t,n){if(Rt(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 Bt(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 Vt(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 Ht(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Wt(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 Gt(e){if(!e._valueTracker){var t=Ut(e)?`checked`:`value`;e._valueTracker=Wt(e,t,``+e[t])}}function Kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ut(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function qt(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 Jt=/[\n"\\]/g;function Yt(e){return e.replace(Jt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Xt(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=``+Ht(t)):e.value!==``+Ht(t)&&(e.value=``+Ht(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Qt(e,o,Ht(n)):Qt(e,o,Ht(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=``+Ht(s):e.removeAttribute(`name`)}function Zt(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)){Gt(e);return}n=n==null?``:``+Ht(n),t=t==null?n:``+Ht(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),Gt(e)}function Qt(e,t,n){t===`number`&&qt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function $t(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=``+Ht(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 en(e,t,n){if(t!=null&&(t=``+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ht(n)}function tn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(le(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=Ht(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Gt(e)}function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rn=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 an(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||rn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function on(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&&an(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&an(e,o,t[o])}function sn(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 cn=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`],[`
9clipPath`,`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`]]),ln=/^[\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 un(e){return ln.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function dn(){}var fn=null;function pn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mn=null,hn=null;function gn(e){var t=Dt(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Xt(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="`+Yt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[vt]||null;if(!i)throw Error(a(90));Xt(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&&Kt(r)}break a;case`textarea`:en(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&$t(e,!!n.multiple,t,!1)}}}var _n=!1;
vendor: 81,323 bytes, line 9
9function vn(e,t,n){if(_n)return e(t,n);_n=!0;try{return e(t)}finally{if(_n=!1,(mn!==null||hn!==null)&&(xu(),mn&&(t=mn,e=hn,hn=mn=null,gn(t),e)))for(t=0;t<e.length;t++)gn(e[t])}}function yn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||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 bn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),xn=!1;if(bn)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){xn=!0}}),window.addEventListener(`test`,Sn,Sn),window.removeEventListener(`test`,Sn,Sn)}catch{xn=!1}var Cn=null,wn=null,Tn=null;function En(){if(Tn)return Tn;var e,t=wn,n=t.length,r,i=`value`in Cn?Cn.value:Cn.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 Tn=i.slice(e,1<r?1-r:void 0)}function k(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 Dn(){return!0}function On(){return!1}function kn(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)?Dn:On,this.isPropagationStopped=On,this}return p(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=Dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Dn)},persist:function(){},isPersistent:Dn}),t}var A={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=kn(A),jn=p({},A,{view:0,detail:0}),Mn=kn(jn),Nn,Pn,Fn,In=p({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,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!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=kn(In),Rn=kn(p({},In,{dataTransfer:0})),zn=kn(p({},jn,{relatedTarget:0})),Bn=kn(p({},A,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=kn(p({},A,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=kn(p({},A,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={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`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=kn(p({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=k(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?k(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?k(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=kn(p({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=kn(p({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=kn(p({},A,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=kn(p({},In,{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})),$n=kn(p({},A,{newState:0,oldState:0})),er=[9,13,27,32],tr=bn&&`CompositionEvent`in window,nr=null;bn&&`documentMode`in document&&(nr=document.documentMode);var rr=bn&&`TextEvent`in window&&!nr,ir=bn&&(!tr||nr&&8<nr&&11>=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=En(),Tn=wn=Cn=null,lr=!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 ir&&t.locale!==`ko`?null:t.data;default:return null}}var fr={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 pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!fr[e.type]:t===`textarea`}function mr(e,t,n,r){mn?hn?hn.push(r):hn=[r]:mn=r,t=Dd(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var hr=null,gr=null;function _r(e){bd(e,0)}function vr(e){if(Kt(Ot(e)))return e}function yr(e,t){if(e===`change`)return t}var br=!1;if(bn){var xr;if(bn){var Sr=`oninput`in document;if(!Sr){var Cr=document.createElement(`div`);Cr.setAttribute(`oninput`,`return;`),Sr=typeof Cr.oninput==`function`}xr=Sr}else xr=!1;br=xr&&(!document.documentMode||9<document.documentMode)}function wr(){hr&&(hr.detachEvent(`onpropertychange`,Tr),gr=hr=null)}function Tr(e){if(e.propertyName===`value`&&vr(gr)){var t=[];mr(t,gr,e,pn(e)),vn(_r,t)}}function Er(e,t,n){e===`focusin`?(wr(),hr=t,gr=n,hr.attachEvent(`onpropertychange`,Tr)):e===`focusout`&&wr()}function Dr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return vr(gr)}function Or(e,t){if(e===`click`)return vr(t)}function kr(e,t){if(e===`input`||e===`change`)return vr(t)}function Ar(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var jr=typeof Object.is==`function`?Object.is:Ar;function Mr(e,t){if(jr(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(!je.call(t,i)||!jr(e[i],t[i]))return!1}return!0}function Nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pr(e,t){var n=Nr(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=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qt(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=qt(e.document)}return t}function Lr(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 Rr=bn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==qt(r)||(r=zr,`selectionStart`in r&&Lr(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}),Vr&&Mr(Vr,r)||(Vr=r,r=Dd(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionrun:Wr(`Transition`,`TransitionRun`),transitionstart:Wr(`Transition`,`TransitionStart`),transitioncancel:Wr(`Transition`,`TransitionCancel`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};bn&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var Yr=Jr(`animationend`),Xr=Jr(`animationiteration`),Zr=Jr(`animationstart`),Qr=Jr(`transitionrun`),$r=Jr(`transitionstart`),ei=Jr(`transitioncancel`),ti=Jr(`transitionend`),ni=new Map,ri=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ri.push(`scrollEnd`);function ii(e,t){ni.set(e,t),Nt(t,[e])}var ai=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)},oi=[],si=0,ci=0;function li(){for(var e=si,t=ci=si=0;t<e;){var n=oi[t];oi[t++]=null;var r=oi[t];oi[t++]=null;var i=oi[t];oi[t++]=null;var a=oi[t];if(oi[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&&pi(n,i,a)}}function ui(e,t,n,r){oi[si++]=e,oi[si++]=t,oi[si++]=n,oi[si++]=r,ci|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function di(e,t,n,r){return ui(e,t,n,r),mi(e)}function fi(e,t){return ui(e,null,null,t),mi(e)}function pi(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-Je(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function mi(e){if(50<fu)throw fu=0,pu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hi={};function gi(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 _i(e,t,n,r){return new gi(e,t,n,r)}function vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yi(e,t){var n=e.alternate;return n===null?(n=_i(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 bi(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 xi(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)vi(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,he.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ie:return e=_i(31,n,t,i),e.elementType=ie,e.lanes=o,e;case _:return Si(n.children,i,o,t);case v:s=8,i|=24;break;case b:return e=_i(12,n,t,i|2),e.elementType=b,e.lanes=o,e;case ee:return e=_i(13,n,t,i),e.elementType=ee,e.lanes=o,e;case te:return e=_i(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 ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=_i(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Si(e,t,n,r){return e=_i(7,e,r,t),e.lanes=n,e}function Ci(e,t,n){return e=_i(6,e,null,t),e.lanes=n,e}function wi(e){var t=_i(18,null,null,0);return t.stateNode=e,t}function Ti(e,t,n){return t=_i(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ei=new WeakMap;function Di(e,t){if(typeof e==`object`&&e){var n=Ei.get(e);return n===void 0?(t={value:e,source:t,stack:Ae(t)},Ei.set(e,t),t):n}return{value:e,source:t,stack:Ae(t)}}var Oi=[],ki=0,Ai=null,ji=0,Mi=[],Ni=0,Pi=null,Fi=1,Ii=``;function Li(e,t){Oi[ki++]=ji,Oi[ki++]=Ai,Ai=e,ji=t}function Ri(e,t,n){Mi[Ni++]=Fi,Mi[Ni++]=Ii,Mi[Ni++]=Pi,Pi=e;var r=Fi;e=Ii;var i=32-Je(r)-1;r&=~(1<<i),n+=1;var a=32-Je(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Fi=1<<32-Je(t)+i|n<<i|r,Ii=a+e}else Fi=1<<a|n<<i|r,Ii=e}function zi(e){e.return!==null&&(Li(e,1),Ri(e,1,0))}function Bi(e){for(;e===Ai;)Ai=Oi[--ki],Oi[ki]=null,ji=Oi[--ki],Oi[ki]=null;for(;e===Pi;)Pi=Mi[--Ni],Mi[Ni]=null,Ii=Mi[--Ni],Mi[Ni]=null,Fi=Mi[--Ni],Mi[Ni]=null}function Vi(e,t){Mi[Ni++]=Fi,Mi[Ni++]=Ii,Mi[Ni++]=Pi,Fi=t.id,Ii=t.overflow,Pi=e}var Hi=null,j=null,M=!1,Ui=null,Wi=!1,Gi=Error(a(519));function Ki(e){throw Qi(Di(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Gi}function qi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=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<vd.length;n++)Q(vd[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),Zt(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),tn(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||Nd(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=dn),t=!0):t=!1,t||Ki(e,!0)}function Ji(e){for(Hi=e.return;Hi;)switch(Hi.tag){case 5:case 31:case 13:Wi=!1;return;case 27:case 3:Wi=!0;return;default:Hi=Hi.return}}function Yi(e){if(e!==Hi)return!1;if(!M)return Ji(e),M=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&j&&Ki(e),Ji(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));j=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));j=df(e)}else t===27?(t=j,Qd(e.type)?(e=uf,uf=null,j=e):j=t):j=Hi?lf(e.stateNode.nextSibling):null;return!0}function Xi(){j=Hi=null,M=!1}function Zi(){var e=Ui;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Ui=null),e}function Qi(e){Ui===null?Ui=[e]:Ui.push(e)}var $i=pe(null),ea=null,ta=null;function N(e,t,n){O($i,t._currentValue),t._currentValue=n}function na(e){e._currentValue=$i.current,me($i)}function ra(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 ia(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),ra(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),ra(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 aa(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;jr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ye.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}i=i.return}e!==null&&ia(t,e,n,r),t.flags|=262144}function oa(e){for(e=e.firstContext;e!==null;){if(!jr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sa(e){ea=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ca(e){return ua(ea,e)}function la(e,t){return ea===null&&sa(e),ua(e,t)}function ua(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ta===null){if(e===null)throw Error(a(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return n}var da=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()})}},fa=t.unstable_scheduleCallback,pa=t.unstable_NormalPriority,ma={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ha(){return{controller:new da,data:new Map,refCount:0}}function ga(e){e.refCount--,e.refCount===0&&fa(pa,function(){e.controller.abort()})}var _a=null,va=0,ya=0,ba=null;function xa(e,t){if(_a===null){var n=_a=[];va=0,ya=fd(),ba={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return va++,t.then(Sa,Sa),t}function Sa(){if(--va===0&&_a!==null){ba!==null&&(ba.status=`fulfilled`);var e=_a;_a=null,ya=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ca(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 wa=E.S;E.S=function(e,t){tu=Ie(),typeof t==`object`&&t&&typeof t.then==`function`&&xa(e,t),wa!==null&&wa(e,t)};var Ta=pe(null);function Ea(){var e=Ta.current;return e===null?K.pooledCache:e}function Da(e,t){t===null?O(Ta,Ta.current):O(Ta,t.pool)}function Oa(){var e=Ea();return e===null?null:{parent:ma._currentValue,pool:e}}var ka=Error(a(460)),Aa=Error(a(474)),ja=Error(a(542)),Ma={then:function(){}};function Na(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Pa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,P(e),e;default:if(typeof t.status==`string`)t.then(dn,dn);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,P(e),e}throw Ia=t,ka}}function Fa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ia=e,ka):e}}var Ia=null;function La(){if(Ia===null)throw Error(a(459));var e=Ia;return Ia=null,e}function P(e){if(e===ka||e===ja)throw Error(a(483))}var Ra=null,za=0;function Ba(e){var t=za;return za+=1,Ra===null&&(Ra=[]),Pa(Ra,e,t)}function Va(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ha(e,t){throw t.$$typeof===m?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ua(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=yi(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=Ci(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===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===re&&Fa(a)===t.type)?(t=i(t,n.props),Va(t,n),t.return=e,t):(t=xi(n.type,n.key,n.props,null,e.mode,r),Va(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=Ti(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=Si(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=Ci(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=xi(t.type,t.key,t.props,null,e.mode,n),Va(n,t),n.return=e,n;case g:return t=Ti(t,e.mode,n),t.return=e,t;case re:return t=Fa(t),f(e,t,n)}if(le(t)||se(t))return t=Si(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ba(t),n);if(t.$$typeof===S)return f(e,la(e,t),n);Ha(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 h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case re:return n=Fa(n),p(e,t,n,r)}if(le(n)||se(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ba(n),r);if(n.$$typeof===S)return p(e,t,la(e,n),r);Ha(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 h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=Fa(r),m(e,t,n,r,i)}if(le(r)||se(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ba(r),i);if(r.$$typeof===S)return m(e,t,n,la(t,r),i);Ha(t,r)}return null}function v(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),M&&Li(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 M&&Li(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)}),M&&Li(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),M&&Li(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 M&&Li(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)}),M&&Li(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){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===re&&Fa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Va(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=Si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=xi(o.type,o.key,o.props,null,e.mode,c),Va(c,o),c.return=e,e=c)}return s(e);case g: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=Ti(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=Fa(o),b(e,r,o,c)}if(le(o))return v(e,r,o,c);if(se(o)){if(l=se(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,Ba(o),c);if(o.$$typeof===S)return b(e,r,la(e,o),c);Ha(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=Ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{za=0;var i=b(e,t,n,r);return Ra=null,i}catch(t){if(t===ka||t===ja)throw t;var a=_i(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Wa=Ua(!0),Ga=Ua(!1),Ka=!1;function qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ja(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 Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(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=mi(e),pi(e,null,n),t}return ui(e,r,t,n),mi(e)}function Za(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,ut(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 $a=!1;function eo(){if($a){var e=ba;if(e!==null)throw e}}function to(e,t,n,r){$a=!1;var i=e.updateQueue;Ka=!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,m=f!==s.lane;if(m?(J&f)===f:(r&f)===f){f!==0&&f===ya&&($a=!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=p({},d,f);break a;case 2:Ka=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,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),Kl|=o,e.lanes=o,e.memoizedState=d}}function no(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function ro(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)no(n[e],t)}var io=pe(null),ao=pe(0);function oo(e,t){e=Gl,O(ao,e),O(io,t),Gl=e|t.baseLanes}function so(){O(ao,Gl),O(io,io.current)}function co(){Gl=ao.current,me(io),me(ao)}var lo=pe(null),uo=null;function fo(e){var t=e.alternate;O(F,F.current&1),O(lo,e),uo===null&&(t===null||io.current!==null||t.memoizedState!==null)&&(uo=e)}function po(e){O(F,F.current),O(lo,e),uo===null&&(uo=e)}function mo(e){e.tag===22?(O(F,F.current),O(lo,e),uo===null&&(uo=e)):ho(e)}function ho(){O(F,F.current),O(lo,lo.current)}function go(e){me(lo),uo===e&&(uo=null),me(F)}var F=pe(0);function _o(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(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 vo=0,I=null,L=null,R=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(a(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return vo=a,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Hs:Us,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){E.H=Vs;var t=L!==null&&L.next!==null;if(vo=0,R=L=I=null,yo=!1,Co=0,wo=null,t)throw Error(a(300));e===null||H||(e=e.dependencies,e!==null&&oa(e)&&(H=!0))}function Ao(e,t,n,r){I=e;var i=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=i)throw Error(a(301));if(i+=1,R=L=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}E.H=Ws,o=t(n,r)}while(bo);return o}function jo(){var e=E.H,t=e.useState()[0];return t=typeof t.then==`function`?Io(t):t,e=e.useState()[0],(L===null?null:L.memoizedState)!==e&&(I.flags|=1024),t}function Mo(){var e=So!==0;return So=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Po(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}vo=0,R=L=I=null,bo=!1,Co=So=0,wo=null}function z(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return R===null?I.memoizedState=R=e:R=R.next=e,R}function B(){if(L===null){var e=I.alternate;e=e===null?null:e.memoizedState}else e=L.next;var t=R===null?I.memoizedState:R.next;if(t!==null)R=t,L=e;else{if(e===null)throw I.alternate===null?Error(a(467)):Error(a(310));L=e,e={memoizedState:L.memoizedState,baseState:L.baseState,baseQueue:L.baseQueue,queue:L.queue,next:null},R===null?I.memoizedState=R=e:R=R.next=e}return R}function Fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Io(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=Pa(wo,e,t),t=I,(R===null?t.memoizedState:R.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Hs:Us),e}function Lo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Io(e);if(e.$$typeof===S)return ca(e)}throw Error(a(438,String(e)))}function Ro(e){var t=null,n=I.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=I.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=Fo(),I.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]=ae;return t.index++,n}function zo(e,t){return typeof t==`function`?t(e):t}function Bo(e){return Vo(B(),L,e)}function Vo(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?(vo&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===ya&&(d=!0);else if((vo&p)===p){u=u.next,p===ya&&(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,I.lanes|=p,Kl|=p;f=u.action,xo&&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,I.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!jr(o,e.memoizedState)&&(H=!0,d&&(n=ba,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 Ho(e){var t=B(),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);jr(o,t.memoizedState)||(H=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function V(e,t,n){var r=I,i=B(),o=M;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!jr((L||i).memoizedState,n);if(s&&(i.memoizedState=n,H=!0),i=i.queue,ps(Go.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||R!==null&&R.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,i,n,t),null),K===null)throw Error(a(349));o||vo&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=I.updateQueue,t===null?(t=Fo(),I.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jr(e,n)}catch{return!0}}function qo(e){var t=fi(e,2);t!==null&&gu(t,e,2)}function Jo(e){var t=z();if(typeof e==`function`){var n=e;if(e=n(),xo){qe(!0);try{n()}finally{qe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Vo(e,L,typeof r==`function`?r:zo)}function Xo(e,t,n,r,i){if(Rs(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)}};E.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=E.T,o={};E.T=o;try{var s=n(i,r),c=E.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),E.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(M){var n=K.formState;if(n!==null){a:{var r=I;if(M){if(j){b:{for(var i=j,a=Wi;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){j=lf(i.nextSibling),r=i.data===`F!`;break a}}Ki(r)}r=!1}r&&(t=n[0])}}return n=z(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Fs.bind(null,I,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,I,!1,r.queue),r=z(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,I,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(B(),L,e)}function as(e,t,n){if(t=Vo(e,t,ns)[0],e=Bo(zo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Io(t)}catch(e){throw e===ka?ja:e}else r=t;t=B();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(I.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=B(),n=L;if(n!==null)return as(t,n,e);B(),t=t.memoizedState,n=B();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=I.updateQueue,t===null&&(t=Fo(),I.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 ls(){return B().memoizedState}function us(e,t,n,r){var i=z();I.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=B();r=r===void 0?null:r;var a=i.memoizedState.inst;L!==null&&r!==null&&Do(r,L.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(I.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){I.flags|=4;var t=I.updateQueue;if(t===null)t=Fo(),I.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=B().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(G&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(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 ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=B();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=B();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||vo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),I.lanes|=e,Kl|=e,n)}function ws(e,t,n,r){return jr(n,t)?n:io.current===null?!(vo&42)||vo&1073741824&&!(J&261930)?(H=!0,e.memoizedState=n):(e=hu(),I.lanes|=e,Kl|=e,t):(e=Cs(e,n,r),jr(e,t)||(H=!0),e)}function Ts(e,t,n,r,i){var a=D.p;D.p=a!==0&&8>a?a:8;var o=E.T,s={};E.T=s,Ls(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,Ca(c,r),mu(e)):Is(e,t,r,mu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Os(e).queue;Ts(e,i,t,ue,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},mu())}function As(){return ca($f)}function js(){return B().memoizedState}function Ms(){return B().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ya(n);var r=Xa(t,e,n);r!==null&&(gu(r,t,n),Za(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=di(e,t,n,r),n!==null&&(gu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,mu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(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,jr(s,o))return ui(e,t,i,0),K===null&&li(),!1}catch{}if(n=di(e,t,i,r),n!==null)return gu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(a(479))}else t=di(e,n,r,2),t!==null&&gu(t,e,2)}function Rs(e){var t=e.alternate;return e===I||t!==null&&t===I}function zs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var Vs={readContext:ca,use:Lo,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Vs.useEffectEvent=Eo;var Hs={readContext:ca,use:Lo,useCallback:function(e,t){return z().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=z();t=t===void 0?null:t;var r=e();if(xo){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=z();if(n!==void 0){var i=n(t);if(xo){qe(!0);try{n(t)}finally{qe(!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=Ps.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=z();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(z(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,I,e.queue,!0,!1),z().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,i=z();if(M){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),K===null)throw Error(a(349));J&127||Uo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=z(),t=K.identifierPrefix;if(M){var n=Ii,r=Fi;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=z();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,I,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ro,useCacheRefresh:function(){return z().memoizedState=Ns.bind(null,I)},useEffectEvent:function(e){var t=z(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:ca,use:Lo,useCallback:xs,useContext:ca,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Bo,useRef:ls,useState:function(){return Bo(zo)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(B(),L.memoizedState,e,t)},useTransition:function(){var e=Bo(zo)[0],t=B().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:V,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(B(),L,e,t)},useMemoCache:Ro,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:ca,use:Lo,useCallback:xs,useContext:ca,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Ho,useRef:ls,useState:function(){return Ho(zo)},useDebugValue:bs,useDeferredValue:function(e,t){var n=B();return L===null?Cs(n,e,t):ws(n,L.memoizedState,e,t)},useTransition:function(){var e=Ho(zo)[0],t=B().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:V,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=B();return L===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,L,e,t)},useMemoCache:Ro,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ya(r);i.payload=t,n!=null&&(i.callback=n),t=Xa(e,i,r),t!==null&&(gu(t,e,r),Za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ya(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Xa(e,i,r),t!==null&&(gu(t,e,r),Za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ya(n);r.tag=2,t!=null&&(r.callback=t),t=Xa(e,r,n),t!==null&&(gu(t,e,n),Za(t,e,n))}};function qs(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?!Mr(n,r)||!Mr(i,a):!0}function Js(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&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(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=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){ai(e)}function Zs(e){console.error(e)}function Qs(e){ai(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(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 tc(e,t,n){return n=Ya(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ya(e),e.tag=3,e}function rc(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(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&aa(t,n,i,!0),n=lo.current,n!==null){switch(n.tag){case 31:case 13:return uo===null?Ou():n.alternate===null&&X===0&&(X=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ma?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,i)),!1;case 22:return n.flags|=65536,r===Ma?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)),Ku(e,r,i)),!1}throw Error(a(435,n.tag))}return Ku(e,r,i),Ou(),!1}if(M)return t=lo.current,t===null?(r!==Gi&&(t=Error(a(423),{cause:r}),Qi(Di(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Di(r,n),i=tc(e.stateNode,r,i),Qa(e,i),X!==4&&(X=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Gi&&(e=Error(a(422),{cause:r}),Qi(Di(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Di(o,n),Zl===null?Zl=[o]:Zl.push(o),X!==4&&(X=2),t===null)return!0;r=Di(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=tc(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`&&(iu===null||!iu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=nc(i),rc(i,e,n,r),Qa(n,i),!1}n=n.return}while(n!==null);return!1}var ac=Error(a(461)),H=!1;function oc(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function sc(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 sa(t),r=Oo(e,t,n,o,a,i),s=Mo(),e!==null&&!H?(No(e,t,i),jc(e,t,i)):(M&&s&&zi(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!vi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=xi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Mr:n,n(o,r)&&e.ref===t.ref)return jc(e,t,i)}return t.flags|=1,e=yi(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Mr(a,r)&&e.ref===t.ref)if(H=!1,t.pendingProps=r=a,Mc(e,i))e.flags&131072&&(H=!0);else return t.lanes=e.lanes,jc(e,t,i)}return _c(e,t,n,r,i)}function uc(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 fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Da(t,a===null?null:a.cachePool),a===null?so():oo(t,a),mo(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Da(t,null),so(),ho(t)):(Da(t,a.cachePool),oo(t,a),ho(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=Ea();return a=a===null?null:{parent:ma._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Da(t,null),so(),mo(t),e!==null&&aa(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return Wa(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,go(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(M){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(po(t),(e=j)?(e=af(e,Wi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pi===null?null:{id:Fi,overflow:Ii},retryLane:536870912,hydrationErrors:null},n=wi(e),n.return=t,t.child=n,Hi=t,j=null)):e=null,e===null)throw Ki(t);return t.lanes=536870912,null}return pc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(po(t),i)if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(H||aa(e,t,n,!1),i=(n&e.childLanes)!==0,H||i){if(r=K,r!==null&&(s=dt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,fi(e,s),gu(r,e,s),ac;Ou(),t=mc(e,t,n)}else e=o.treeContext,j=lf(s.nextSibling),Hi=t,M=!0,Ui=null,Wi=!1,e!==null&&Vi(t,e),t=pc(t,r),t.flags|=4096;return t}return e=yi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(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 _c(e,t,n,r,i){return sa(t),n=Oo(e,t,n,r,void 0,i),r=Mo(),e!==null&&!H?(No(e,t,i),jc(e,t,i)):(M&&r&&zi(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return sa(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=Mo(),e!==null&&!H?(No(e,t,a),jc(e,t,a)):(M&&r&&zi(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(sa(t),t.stateNode===null){var a=hi,o=n.contextType;typeof o==`object`&&o&&(a=ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},qa(t),o=n.contextType,a.context=typeof o==`object`&&o?ca(o):hi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(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&&Ks.enqueueReplaceState(a,a.state,null),to(t,r,a,i),eo(),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=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=hi,typeof u==`object`&&u&&(o=ca(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)&&Js(t,a,r,o),Ka=!1;var f=t.memoizedState;a.state=f,to(t,r,a,i),eo(),l=t.memoizedState,s||f!==l||Ka?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Ka||qs(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,Ja(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=hi,typeof l==`object`&&l&&(c=ca(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)&&Js(t,a,r,c),Ka=!1,f=t.memoizedState,a.state=f,to(t,r,a,i),eo();var p=t.memoizedState;o!==d||f!==p||Ka||e!==null&&e.dependencies!==null&&oa(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Ka||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&oa(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,gc(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=Wa(t,e.child,null,i),t.child=Wa(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=jc(e,t,i),e}function bc(e,t,n,r){return Xi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:Oa()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function wc(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:(F.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(M){if(i?fo(t):ho(t),(e=j)?(e=af(e,Wi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pi===null?null:{id:Fi,overflow:Ii},retryLane:536870912,hydrationErrors:null},n=wi(e),n.return=t,t.child=n,Hi=t,j=null)):e=null,e===null)throw Ki(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(ho(t),i=t.mode,c=Ec({mode:`hidden`,children:c},i),r=Si(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(fo(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(fo(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(ho(t),c=r.fallback,i=t.mode,r=Ec({mode:`visible`,children:r.children},i),c=Si(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Wa(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(ho(t),t.child=e.child,t.flags|=128,t=null);else if(fo(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Qi({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(H||aa(e,t,n,!1),s=(n&e.childLanes)!==0,H||s){if(s=K,s!==null&&(r=dt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,fi(e,r),gu(s,e,r),ac;of(c)||Ou(),t=Dc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,j=lf(c.nextSibling),Hi=t,M=!0,Ui=null,Wi=!1,e!==null&&Vi(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return i?(ho(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=yi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=Si(c,i,n,null),c.flags|=2):c=yi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(i=c.cachePool,i===null?i=Oa():(l=ma._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(fo(t),n=e.child,e=n.sibling,n=yi(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 Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=_i(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Wa(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ra(e.return,t,n)}function kc(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 Ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=F.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,O(F,o),oc(e,t,r,n),r=M?ji:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(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&&_o(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),kc(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&&_o(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}kc(t,!0,n,null,a,r);break;case`together`:kc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function jc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(aa(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=yi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&oa(e))):!0}function Nc(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),N(t,ma,e.memoizedState.cache),Xi();break;case 27:case 5:Se(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:N(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,po(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(fo(t),e=jc(e,t,n),e===null?null:e.sibling):wc(e,t,n):(fo(t),t.flags|=128,null);fo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(aa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),O(F,F.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:N(t,ma,e.memoizedState.cache)}return jc(e,t,n)}function Pc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)H=!0;else{if(!Mc(e,n)&&!(t.flags&128))return H=!1,Nc(e,t,n);H=!!(e.flags&131072)}else H=!1,M&&t.flags&1048576&&Ri(t,ji,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Fa(t.elementType),t.type=e,typeof e==`function`)vi(e)?(r=Ys(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=sc(null,t,e,r,n);break a}else if(i===ne){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=w(e)||e,Error(a(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ys(r,t.pendingProps),yc(e,t,r,i,n);case 3:a:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Ja(e,t),to(t,r,null,n);var s=t.memoizedState;if(r=s.cache,N(t,ma,r),r!==o.cache&&ia(t,[ma],n,!0),eo(),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=bc(e,t,r,n);break a}else if(r!==i){i=Di(Error(a(424)),t),Qi(i),t=bc(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(j=lf(e.firstChild),Hi=t,M=!0,Ui=null,Wi=!0,n=Ga(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xi(),r===i){t=jc(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:M||(n=t.type,e=t.pendingProps,r=Vd(_e.current).createElement(n),r[_t]=t,r[vt]=e,Fd(r,n,e),At(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&M&&(r=t.stateNode=pf(t.type,t.pendingProps,_e.current),Hi=t,Wi=!0,i=j,Qd(t.type)?(uf=i,j=lf(r.firstChild)):j=i),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&M&&((i=r=j)&&(r=nf(r,t.type,t.pendingProps,Wi),r===null?i=!1:(t.stateNode=r,Hi=t,j=lf(r.firstChild),Wi=!1,i=!0)),i||Ki(t)),Se(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(i,o)?r=null:s!==null&&Wd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Oo(e,t,jo,null,null,n),$f._currentValue=i),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&M&&((e=n=j)&&(n=rf(n,t.pendingProps,Wi),n===null?e=!1:(t.stateNode=n,Hi=t,j=null,e=!0)),e||Ki(t)),null;case 13:return wc(e,t,n);case 4:return be(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wa(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,N(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,sa(t),i=ca(i),r=r(i),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return Ac(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return sa(t),r=ca(ma),e===null?(i=Ea(),i===null&&(i=K,o=ha(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},qa(t),N(t,ma,i)):((e.lanes&n)!==0&&(Ja(e,t),to(t,null,null,n),eo()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,N(t,ma,r),r!==i.cache&&ia(t,[ma],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),N(t,ma,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Fc(e){e.flags|=4}function Ic(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(Tu())e.flags|=8192;else throw Ia=Ma,Aa}else e.flags&=-16777217}function Lc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Tu())e.flags|=8192;else throw Ia=Ma,Aa}function Rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:at(),e.lanes|=t,Xl|=t)}function zc(e,t){if(!M)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 Bc(e,t,n){var r=t.pendingProps;switch(Bi(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),na(ma),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?Fc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zi())),U(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Fc(t),o===null?(U(t),Ic(t,i,null,r,n)):(U(t),Lc(t,o))):o?o===e.memoizedState?(U(t),t.flags&=-16777217):(Fc(t),U(t),Lc(t,o)):(e=e.memoizedProps,e!==r&&Fc(t),U(t),Ic(t,i,e,r,n)),null;case 27:if(Ce(t),n=_e.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return U(t),null}e=he.current,Yi(t)?qi(t,e):(e=pf(i,r,n),t.stateNode=e,Fc(t))}return U(t),null;case 5:if(Ce(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return U(t),null}if(o=he.current,Yi(t))qi(t,o);else{var s=Vd(_e.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[_t]=t,o[vt]=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(Fd(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&&Fc(t)}}return U(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=_e.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Hi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Ki(t,!0)}else e=Vd(e).createTextNode(r),e[_t]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(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[_t]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(go(t),t):(go(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=Yi(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[_t]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),i=!1}else i=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(go(t),t):(go(t),null)}return go(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),Rc(t,t.updateQueue),U(t),null);case 4:return xe(),e===null&&Cd(t.stateNode.containerInfo),U(t),null;case 10:return na(t.type),U(t),null;case 19:if(me(F),r=t.memoizedState,r===null)return U(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)zc(r,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=_o(e),o!==null){for(t.flags|=128,zc(r,!1),e=o.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bi(n,e),n=n.sibling;return O(F,F.current&1|2),M&&Li(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>nu&&(t.flags|=128,i=!0,zc(r,!1),t.lanes=4194304)}else{if(!i)if(e=_o(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!M)return U(t),null}else 2*Ie()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,zc(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=Ie(),e.sibling=null,n=F.current,O(F,i?n&1|2:n&1),M&&Li(t,r.treeForkCount),e);case 22:case 23:return go(t),co(),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&&Rc(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&&me(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(ma),U(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Vc(e,t){switch(Bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ma),xe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(go(t),t.alternate===null)throw Error(a(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(go(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(F),null;case 4:return xe(),null;case 10:return na(t.type),null;case 22:case 23:return go(t),co(),e!==null&&me(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ma),null;case 25:return null;default:return null}}function Hc(e,t){switch(Bi(t),t.tag){case 3:na(ma),xe();break;case 26:case 27:case 5:Ce(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&go(t);break;case 13:go(t);break;case 19:me(F);break;case 10:na(t.type);break;case 22:case 23:go(t),co(),e!==null&&me(Ta);break;case 24:na(ma)}}function Uc(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 Wc(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 Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ro(t,n)}catch(t){Z(e,e.return,t)}}}function Kc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function qc(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 Jc(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 Yc(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 Xc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[vt]=t}catch(t){Z(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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&&Qd(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 $c(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=dn));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),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,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&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[_t]=e,t[vt]=n}catch(t){Z(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,zd=cp,e=Ir(e),Lr(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(Bd={focusedElem:e,selectionRange:n},cp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,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=Ys(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)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(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,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Uc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,381 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Sl(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{ro(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),nl=i,rl=a}break;case 30:break;default:Sl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tt(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,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount==`function`)try{Ke.onCommitFiberUnmount(Ge,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=W,i=ul;Qd(n.type)&&(W=n.stateNode,ul=!1),dl(e,t,n),mf(n.stateNode),W=r,ul=i;break;case 5:rl||Jc(n,t);case 6:if(r=W,i=ul,W=null,dl(e,t,n),W=r,ul=i,W!==null)if(ul)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&&(ul?(e=W,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(W,n.stateNode));break;case 4:r=W,i=ul,W=n.stateNode.containerInfo,ul=!0,dl(e,t,n),W=r,ul=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),dl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,dl(e,t,n),rl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Z(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Z(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(a(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function _l(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(Qd(c.type)){W=c.stateNode,ul=!1;break a}break;case 5:W=c.stateNode,ul=!1;break a;case 3:case 4:W=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(W===null)throw Error(a(160));fl(o,s,i),W=null,ul=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(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=vl;if(_l(t,e),bl(e),r&512&&(rl||n===null||Jc(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[wt]||o[_t]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Fd(o,r,n),o[_t]=e,At(o),r=o;break a;case`link`:var s=Hf(`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),Fd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Hf(`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),Fd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[_t]=e,At(o),r=o}e.stateNode=r}else Uf(i,e.type,e.stateNode);else e.stateNode=Lf(i,r,e.memoizedProps);
vendor: 40,458 bytes, lines 9-10
9else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(i,e.type,e.stateNode):Lf(i,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){i=e.stateNode;try{nn(i,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Xc(e,i,n===null?i:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(_l(t,e),bl(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(Vf=null,i=vl,vl=_f(t.containerInfo),_l(t,e),vl=i,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Z(e,e.return,t)}il&&(il=!1,xl(e));break;case 4:r=vl,vl=_f(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=Ie()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||i,rl=d||l,_l(t,e),rl=d,nl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||nl||rl||Cl(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?ef(m,!0):ef(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,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;el(e,Qc(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(nn(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(a(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),Cl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),Cl(t);break;case 27:mf(t.stateNode);case 26:case 5:Jc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(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:wl(i,a,n),Uc(4,a);break;case 1:if(wl(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++)no(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),qc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(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&&ga(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ga(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(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&&ga(e)));break;case 12:if(i&2048){Dl(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 Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(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:kl(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(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:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&Kf(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=vl;vl=_f(e.stateNode.containerInfo),Ml(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(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 Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(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:ga(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var zl={getCacheForType:function(e){var t=ca(ma),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ca(ma).controller.signal}},Bl=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,Vl=null,Hl=!1,Ul=!1,Wl=!1,Gl=0,X=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return G&2&&J!==0?J&-J:E.T===null?mt():fd()}function hu(){if(Yl===0)if(!(J&536870912)||M){var e=$e;$e<<=1,!($e&3932160)&&($e=262144),Yl=e}else Yl=536870912;return e=lo.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,J,Yl,!1)),st(e,n),(!(G&2)||e!==K)&&(e===K&&(!(G&2)&&(ql|=n),X===4&&bu(e,J,Yl,!1)),id(e))}function _u(e,t,n){if(G&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||rt(e,t),i=r?ju(e,t):ku(e,t,!0),o=r;do{if(i===0){Ul&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){i=ku(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=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Wl&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,i=4;break a}o=Ql,Ql=i,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(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:bu(r,t,Yl,!Hl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=eu+300-Ie(),10<i)){if(bu(r,t,Yl,!Hl),nt(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=qd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Hl,o,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Hl,o,null,-0,0)}}break}while(1);id(e)}function vu(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:dn},Nl(t,a,d);var m=(a&62914560)===a?eu-Ie():(a&4194048)===a?tu-Ie():0;if(m=Jf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(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(!jr(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 bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Je(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&lt(e,n,t)}function xu(){return G&6?!0:(ad(0,!1),!1)}function Su(){if(q!==null){if(Y===0)var e=q.return;else e=q,ta=ea=null,Po(e),Ra=null,za=0,e=q;for(;e!==null;)Hc(e.alternate,e),e=e.return;q=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),K=e,q=n=yi(e.current,null),J=t,Y=0,Vl=null,Hl=!1,Ul=rt(e,t),Wl=!1,Xl=Yl=Jl=ql=Kl=X=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Je(r),a=1<<i;t|=e[i],r&=~a}return Gl=t,li(),n}function wu(e,t){I=null,E.H=Vs,t===ka||t===ja?(t=La(),Y=3):t===Aa?(t=La(),Y=4):Y=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Vl=t,q===null&&(X=1,$s(e,Di(t,e.current)))}function Tu(){var e=lo.current;return e===null?!0:(J&4194048)===J?uo===null:(J&62914560)===J||J&536870912?e===uo:!1}function Eu(){var e=E.H;return E.H=Vs,e===null?Vs:e}function Du(){var e=E.A;return E.A=zl,e}function Ou(){X=4,Hl||(J&4194048)!==J&&lo.current!==null||(Ul=!0),!(Kl&134217727)&&!(ql&134217727)||K===null||bu(K,J,Yl,!1)}function ku(e,t,n){var r=G;G|=2;var i=Eu(),a=Du();(K!==e||J!==t)&&(ru=null,Cu(e,t)),t=!1;var o=X;a:do try{if(Y!==0&&q!==null){var s=q,c=Vl;switch(Y){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:lo.current===null&&(t=!0);var l=Y;if(Y=0,Vl=null,Fu(e,s,c,l),n&&Ul){o=0;break a}break;default:l=Y,Y=0,Vl=null,Fu(e,s,c,l)}}Au(),o=X;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,ta=ea=null,G=r,E.H=i,E.A=a,q===null&&(K=null,J=0,li()),o}function Au(){for(;q!==null;)Nu(q)}function ju(e,t){var n=G;G|=2;var r=Eu(),i=Du();K!==e||J!==t?(ru=null,nu=Ie()+500,Cu(e,t)):Ul=rt(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=Vl;b:switch(Y){case 1:Y=0,Vl=null,Fu(e,t,o,1);break;case 2:case 9:if(Na(o)){Y=0,Vl=null,Pu(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),id(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Na(o)?(Y=0,Vl=null,Pu(t)):(Y=0,Vl=null,Fu(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?Gf(s):c.stateNode.complete){Y=0,Vl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Iu(u))}break b}}Y=0,Vl=null,Fu(e,t,o,5);break;case 6:Y=0,Vl=null,Fu(e,t,o,6);break;case 8:Su(),X=6;break a;default:throw Error(a(462))}}Mu();break}catch(t){wu(e,t)}while(1);return ta=ea=null,E.H=r,E.A=i,G=n,q===null?(K=null,J=0,li(),X):0}function Mu(){for(;q!==null&&!Pe();)Nu(q)}function Nu(e){var t=Pc(e.alternate,e,Gl);e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:Po(t);default:Hc(n,t),t=q=bi(t,Gl),t=Pc(n,t,Gl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Fu(e,t,n,r){ta=ea=null,Po(t),Ra=null,za=0;var i=t.return;try{if(ic(e,i,t,n,J)){X=1,$s(e,Di(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;X=1,$s(e,Di(n,e.current)),q=null;return}t.flags&32768?(M||r===1?e=!0:Ul||J&536870912?e=!1:(Hl=e=!0,(r===2||r===9||r===3||r===6)&&(r=lo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Hl);return}e=t.return;var n=Bc(t.alternate,t,Gl);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 Lu(e,t){do{var n=Vc(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 Ru(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==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|=ci,ct(e,n,o,s,c,l),e===K&&(q=K=null,J=0),su=t,ou=e,cu=n,lu=o,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(Be,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=E.T,E.T=null,i=D.p,D.p=2,s=G,G|=4;try{sl(e,t,n)}finally{G=s,D.p=i,E.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=G;G|=4;try{yl(t,e);var a=Bd,o=Ir(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Fr(s.ownerDocument.documentElement,s)){if(c!==null&&Lr(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 _=Pr(s,h),v=Pr(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}}cp=!!zd,Bd=zd=null}finally{G=i,D.p=r,E.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=G;G|=4;try{cl(e,t.alternate,t)}finally{G=i,D.p=r,E.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,Fe();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),pt(n),t=t.stateNode,Ke&&typeof Ke.onCommitFiberRoot==`function`)try{Ke.onCommitFiberRoot(Ge,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=E.T,i=D.p,D.p=2,E.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{E.T=t,D.p=i}}cu&3&&Uu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ga(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=pt(cu),r=E.T,i=D.p;try{D.p=32>n?32:n,E.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,G&6)throw Error(a(331));var c=G;if(G|=4,Il(o.current),Ol(o,o.current,s,n),G=c,ad(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot==`function`)try{Ke.onPostCommitFiberRoot(Ge,o)}catch{}return!0}finally{D.p=i,E.T=r,Hu(e,t)}}function Gu(e,t,n){t=Di(n,t),t=tc(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(st(e,2),id(e))}function Z(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Di(n,e),n=nc(2),r=Xa(t,n,2),r!==null&&(rc(n,r,t,e),st(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;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)||(Wl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(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>Ie()-eu?!(G&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=at()),e=fi(e,t),e!==null&&(st(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(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),Ju(e,n)}function Zu(e,t){return Me(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;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-Je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=nt(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||rt(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=Ie(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Je(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=it(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=nt(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&&Ne(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||rt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ne(r),pt(n)){case 2:case 8:n=ze;break;case 32:n=Be;break;case 268435456:n=He;break;default:n=Be}return r=ld.bind(null,e),n=Me(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ne(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=J;return r=nt(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,Ie()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Xd(function(){G&6?Me(Re,od):sd()})}function fd(){if(rd===0){var e=ya;e===0&&(e=Qe,Qe<<=1,!(Qe&261888)&&(Qe=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:un(``+e)}function md(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 hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<ri.length;gd++){var _d=ri[gd];ii(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}ii(Yr,`onAnimationEnd`),ii(Xr,`onAnimationIteration`),ii(Zr,`onAnimationStart`),ii(`dblclick`,`onDoubleClick`),ii(`focusin`,`onFocus`),ii(`focusout`,`onBlur`),ii(Qr,`onTransitionRun`),ii($r,`onTransitionStart`),ii(ei,`onTransitionCancel`),ii(ti,`onTransitionEnd`),Pt(`onMouseEnter`,[`mouseout`,`mouseover`]),Pt(`onMouseLeave`,[`mouseout`,`mouseover`]),Pt(`onPointerEnter`,[`pointerout`,`pointerover`]),Pt(`onPointerLeave`,[`pointerout`,`pointerover`]),Nt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Nt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Nt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Nt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(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){ai(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){ai(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,jt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!xn||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 Td(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 c=r.stateNode.containerInfo;if(c===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(;c!==null;){if(o=Et(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}vn(function(){var r=a,i=pn(n),o=[];a:{var c=ni.get(e);if(c!==void 0){var l=An,u=e;switch(e){case`keypress`:if(k(n)===0)break a;case`keydown`:case`keyup`:l=Jn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;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=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Xn;break;case Yr:case Xr:case Zr:l=Bn;break;case ti:l=Zn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=Qn;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Yn;break;case`toggle`:case`beforetoggle`:l=$n}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;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=yn(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==fn&&(u=n.relatedTarget||n.fromElement)&&(Et(u)||u[yt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Et(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Yn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Ot(l),h=u==null?c:Ot(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,Et(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=Od,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&&kd(o,c,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(c=r?Ot(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=yr;else if(pr(c))if(br)v=kr;else{v=Dr;var y=Er}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&sn(r.elementType)&&(v=yr):v=Or;if(v&&=v(e,r)){mr(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Qt(c,`number`,c.value)}switch(y=r?Ot(r):window,e){case`focusin`:(pr(y)||y.contentEditable===`true`)&&(zr=y,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var b;if(tr)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 lr?sr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(ir&&n.locale!==`ko`&&(lr||x!==`onCompositionStart`?x===`onCompositionEnd`&&lr&&(b=En()):(Cn=i,wn=`value`in Cn?Cn.value:Cn.textContent,lr=!0)),y=Dd(r,x),0<y.length&&(x=new Hn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=cr(n),b!==null&&(x.data=b)))),(b=rr?ur(e,n):dr(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),hd(o,e,r,n,i)}bd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(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=yn(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=yn(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(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=yn(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=yn(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
10`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function $(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||nn(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&nn(e,``+r);break;case`className`:Bt(e,`class`,r);break;case`tabIndex`:Bt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Bt(e,n,r);break;case`style`:on(e,r,o);break;case`data`:if(t!==`object`){Bt(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=un(``+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=un(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=dn);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=un(``+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),zt(e,`popover`,r);break;case`xlinkActuate`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:zt(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=cn.get(n)||n,zt(e,n,r))}}function Pd(e,t,n,r,i,o){switch(n){case`style`:on(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`?nn(e,r):(typeof r==`number`||typeof r==`bigint`)&&nn(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=dn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Mt.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[vt]||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,``):zt(e,n,r)}}}function Fd(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)}}Zt(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&&$t(e,!!r,n,!0):$t(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)}tn(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<vd.length;r++)Q(vd[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(sn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(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 Id(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)}}Xt(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?$t(e,!!n,n?[]:``,!1):$t(e,!!n,t,!0)):$t(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)}en(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(sn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);
vendor: 4,461 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(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 Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){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&&Ld(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&&Ld(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 zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(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 Ud(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 Wd(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 Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(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),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[wt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Pp(t)}function ef(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 tf(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`:tf(n),Tt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(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[wt])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=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;
vendor: 20,905 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(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 lf(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 uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(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 pf(e,t,n){switch(t=Vd(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 mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=D.d;D.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=xu();return e||t}function bf(e){var t=Dt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Yt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),At(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Yt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Yt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Yt(n.imageSizes)+`"]`)):i+=`[href="`+Yt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),At(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Yt(r)+`"][href="`+Yt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),At(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=kt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);At(c),Fd(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,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=kt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),At(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=kt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),At(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var i=(i=_e.current)?_f(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=jf(n.href),n=kt(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=jf(n.href);var o=kt(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(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.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},hf.set(e,n),o||Pf(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=Ff(n),n=kt(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 jf(e){return`href="`+Yt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(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}),Fd(t,`link`,n),At(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Yt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Yt(n.href)+`"]`);if(r)return t.instance=r,At(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),At(r),Fd(r,`style`,i),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=jf(n.href);var o=e.querySelector(Mf(i));if(o)return t.state.loading|=4,t.instance=o,At(o),o;r=Nf(n),(i=hf.get(i))&&zf(r,i),o=(e.ownerDocument||e).createElement(`link`),At(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(i=e.querySelector(If(o)))?(t.instance=i,At(i),i):(r=n,(i=hf.get(o))&&(r=p({},n),Bf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),At(i),Fd(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,Rf(r,n.precedence,e));return t.instance}function Rf(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 zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,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[wt]||a[_t]||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 Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(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 Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(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=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,At(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),At(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(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=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.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=Yf.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 $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function ep(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=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(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 tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=_i(3,null,null,t),e.current=a,a.stateNode=e,t=ha(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},qa(a),e}function np(e){return e?(e=hi,e):hi}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ya(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Xa(e,r,t),n!==null&&(gu(n,e,t),Za(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=fi(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=ft(t);var n=fi(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=2,dp(e,t,n,r)}finally{D.p=a,E.T=i}}function up(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=8,dp(e,t,n,r)}finally{D.p=a,E.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=Dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=tt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Je(o);s.entanglements[1]|=c,o&=~c}id(a),!(G&6)&&(nu=Ie()+500,ad(0,!1))}}break;case 31:case 13:s=fi(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=pn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=Et(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(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 pp=e,null}function hp(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(Le()){case Re:return 2;case ze:return 8;case Be:case Ve:return 32;case He:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(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=Dt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=Et(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,ht(e.priority,function(){sp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,ht(e.priority,function(){sp(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 Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fn=r,n.target.dispatchEvent(r),fn=null}else return t=Dt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=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(mp(r||n)===null)continue;break}var a=Dt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.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[vt]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){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 Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;rp(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[yt]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.5`)throw Error(a(527,Rp,`19.2.5`));D.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=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:E,reconcilerVersion:`19.2.5`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Ge=Bp.inject(zp),Ke=Bp}catch{}}e.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i=``,s=Xs,c=Zs,l=Qs,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=tp(e,1,!0,t,n??null,r,i,u,s,c,l,Fp),t.context=np(null),n=t.current,r=mu(),r=ft(r),i=Ya(r),i.callback=null,Xa(n,i,r),n=r,t.current.lanes=n,st(t,n),id(t),e[yt]=t.current,Cd(e),new Lp(t)}})),be=e(((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=ye()})),xe=`__TSS_CONTEXT`,Se=Symbol.for(`TSS_SERVER_FUNCTION`),Ce=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),we=`application/x-tss-framed`,Te={JSON:0,CHUNK:1,END:2,ERROR:3};`${we}`;var Ee=/;\s*v=(\d+)/;function De(e){let t=e.match(Ee);return t?parseInt(t[1],10):void 0}function Oe(e){let t=De(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var ke=()=>window.__TSS_START_OPTIONS__;function Ae(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function je(e){return e?.isNotFound===!0}function Me(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Ne(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Pe(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Ne(r):Array.isArray(t)?t.push(Ne(r)):n[e]=[t,Ne(r)]}return n}var Fe=Le(JSON.parse),Ie=Re(JSON.stringify,JSON.parse);function Le(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Pe(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Re(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=Me(e,r);return t?`?${t}`:``}}var ze=`__root__`;function Be(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ve(e){return e instanceof Response&&!!e.options}function He(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return Be(e)}var Ue=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},We=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ge=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ke=(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);
10i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},qe=(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},Je=(e,t,n)=>{if(!(!Ve(n)&&!je(n)))throw Ve(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:Ve(n)?`redirected`:je(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Ke(e,t.index),isFetching:!1,error:n})),je(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ve(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ye=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Xe=(e,t,n)=>{let r=Ke(e,n);e.updateMatch(t,e=>({...e,context:r}))},Ze=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Je(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Je(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&&!Ve(n)&&!je(n)&&(e.serialError??=n)},Qe=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ge(e,t)&&(n.options.loader||n.options.beforeLoad||lt(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Ue(e)},i);r._nonReactive.pendingTimeout=t}},$e=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Qe(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Je(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},et=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=m(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Ze(e,n,o),s&&Ze(e,n,s),Qe(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),f()});return}i._nonReactive.beforeLoadPromise=m();let p={...Ke(e,n,!1),...i.__routeContext},{search:h,params:g,cause:_}=i,v=Ge(e,t),y={search:h,abortController:c,params:g,preload:v,context:p,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(()=>{u(),f()});return}(Ve(r)||je(r))&&(u(),Ze(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(y),d(x))return u(),x.catch(t=>{Ze(e,n,t)}).then(b)}catch(t){u(),Ze(e,n,t)}b(x)},tt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>et(e,n,t,i),s=()=>{if(Ye(e,n))return;let t=$e(e,n,i);return d(t)?t.then(o):o()};return a()},nt=(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}))},rt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ke(e,r),d=Ge(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}},it=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{ct(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(rt(e,t,n,r,i)),l=!!s&&d(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Je(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Ke(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Ke(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,je(t)&&await i.options.notFoundComponent?.preload?.(),Je(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Je(e,e.router.getMatch(n),t)}!Ve(o)&&!je(o)&&await ct(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Ke(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Je(e,r,t)}},at=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(rt(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await it(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Ve(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await it(e,t,i,n,d):Xe(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ye(e,i)){if(!e.router.getMatch(i))return e.matches[n];Xe(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Ge(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Je(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=m(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function ot(e){let t=e,n=[];We(t.router)&&Ue(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=tt(t,e);d(n)&&await n}catch(e){if(Ve(e))throw e;if(je(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?qe(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(at(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(Ve(e))throw e;je(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=qe(t,l);e===void 0&&v();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await ct(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 ct(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=nt(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 f=Ue(t);if(d(f)&&await f,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function st(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function ct(e,t=ut){!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===ut?(()=>{if(e._componentsPromise===void 0){let t=st(e,ut);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():st(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function lt(e){for(let t of ut)if(e.options[t]?.preload)return!0;return!1}var ut=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function dt(e){return{input:({url:t})=>{for(let n of e)t=pt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=mt(e[n],t);return t}}}function ft(e){let t=re(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=E([`/`,t,e.pathname]),e)}}function pt(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 mt(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 ht(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(()=>gt(o,_.get())),x=r(()=>gt(s,v.get())),S=r(()=>gt(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()})),ne=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()})),re=me(64);function ie(e){let t=re.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()}}),re.set(e,t)),t}let ae={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:ne,getRouteMatchStore:ie,setMatches:oe,setPending:se,setCached:ce};oe(e.matches),a?.(ae);function oe(e){_t(e,o,_,n,i)}function se(e){_t(e,s,v,n,i)}function ce(e){_t(e,c,y,n,i)}return ae}function gt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function _t(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)}s(n.get(),a)||n.set(a)})}var vt=`__TSR_index`,yt=`popstate`,bt=`beforeunload`;function xt(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=Tt(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[vt];i=St(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[vt];i=St(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[vt]!==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 St(e,t){t||={};let n=Et();return{...t,key:n,__TSR_key:n,[vt]:e}}function Ct(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??(()=>Tt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Et();t.history.replaceState({[vt]: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=Tt(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()=>
10{if(f){f=!1;return}let e=c(),n=e.state[vt]-l.state[vt],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=xt({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(bt,S,{capture:!0}),t.removeEventListener(yt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(bt,S,{capture:!0}),t.addEventListener(yt,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 wt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Tt(e,t){let n=wt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Et();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||{[vt]:0,key:a,__TSR_key:a}}}function Et(){return(Math.random()+1).toString(36).substring(7)}function Dt(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ot(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 kt=new WeakMap,At=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=ee(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ct()),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=me(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ht(Nt(this.latestLocation),e),$t(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=re(o);t&&t!==`/`&&e.push(ft({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:dt(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=o(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&_(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{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:o})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),s=this.options.stringifySearch(i);return{href:e+s+r,publicHref:e+s+r,pathname:oe(e).path,external:!1,searchStr:s,search:ge(t?.search,i),hash:oe(r.slice(1)).path,state:a(t?.state,o)}}let s=new URL(i,this.origin),c=pt(this.rewrite,s),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:oe(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:ge(t?.search,l),hash:oe(c.hash.slice(1)).path,state:a(t?.state,o)}},r=n(e),{__tempLocation:i,__tempKey:o}=r.state;if(i&&(!o||o===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)=>ce({base:e,to:t.includes(`//`)?fe(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=>Ft({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,o=t.to?`${t.to}`:void 0,s=r.search,c=Object.assign(Object.create(null),r.params),l=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=o?this.resolvePathWithBase(l,o):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,p(t.params,c)),f=this.routesByPath[b(u)],m;if(f)m=this.getRouteBranch(f);else if(u.includes(`$`))m=[];else{let e=this.getMatchedRoutes(u);m=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(m=[...m,this.options.notFoundRoute])}if(m.length&&h(d))for(let e of m){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let g=e.leaveParams?u:oe(te({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,_=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};m.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Pt(t.options.validateSearch,{...e,..._}))}catch{}}),_=e}_=It({search:_,dest:t,destRoutes:m,_includeValidateSearch:e._includeValidateSearch}),_=ge(s,_);let v=this.options.stringifySearch(_),y=t.hash===!0?n.hash:t.hash?p(t.hash,n.hash):void 0,x=y?`#${y}`:``,S=t.state===!0?n.state:t.state?p(t.state,n.state):{};S=a(n.state,S);let C=`${g}${v}${x}`,ee,ne,re=!1;if(this.rewrite){let e=new URL(C,this.origin),t=mt(this.rewrite,e);ee=e.href.replace(e.origin,``),t.origin===this.origin?ne=t.pathname+t.search+t.hash:(ne=t.href,re=!0)}else ee=ae(C),ne=ee;return{publicHref:ne,href:ee,pathname:g,search:_,searchStr:v,state:S,hash:y??``,external:re,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=he(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,p(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,a=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=i(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},o=b(this.latestLocation.href)===b(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=m(()=>{s?.resolve(),s=void 0}),o&&a())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=Tt(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=pt(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(l(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,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?kt.set(this.latestLocation,t):kt.delete(this.latestLocation);let n=this.latestLocation,r=Ot(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await ot({router:this,sync:e?.sync,forceStaleReload:a.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){Ve(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):je(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===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},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(Ot(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(()=>
10{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&&l(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=ct,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()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await ot({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(Ve(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});je(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 a=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=O(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!i(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?i(a.search,r.search,{partial:!0})?o.rawParams:!1:o.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??Ie,parseSearch:e.parseSearch??Fe,protocolAllowlist:e.protocolAllowlist??c}),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=pe(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,routeParam
10s:i}=n,{matchedRoutes:o}=n,s=!1;(r?r.path!==`/`&&i[`**`]:b(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?Rt(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],d,f,p;{let n=s?.search??e.search,i=s?._strictSearch??void 0;try{let e=Pt(r.options.validateSearch,{...n})??void 0;d={...n,...e},f={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof jt||(r=new jt(e.message,{cause:e})),t?.throwOnError)throw r;d=n,f={},p=r}}let h=r.options.loaderDeps?.({search:d})??``,g=h?JSON.stringify(h):``,{interpolatedPath:_,usedParams:v}=te({path:r.fullPath,params:i,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{zt(r,S)}catch(e){if(C=je(e)||Ve(e)?e:new Mt(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(i,S);let ee=x?`stay`:`enter`,ne;if(b)ne={...b,cause:ee,params:x?.params??i,_strictParams:S,search:ge(x?x.search:b.search,d),_strictSearch:f};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||lt(r)?`pending`:`success`;ne={id:y,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??i,_strictParams:S,pathname:_,updatedAt:Date.now(),search:x?ge(x.search,d):d,_strictSearch:f,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:m()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ee,loaderDeps:x?a(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||(ne.globalNotFound=c===r.id),ne.searchError=p;let re=this.getParentContext(s);ne.context={...re,...ne.__routeContext,...ne.__beforeLoadContext},l[n]=ne}for(let t=0;t<l.length;t++){let n=l[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=u.get(n.routeId);if(n.params=o?ge(o.params,i):i,!a){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=g(t),i={...e.search};for(let e of t)try{Object.assign(i,Pt(e.options.validateSearch,i))}catch{}let a=g(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{zt(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},jt=class extends Error{},Mt=class extends Error{};function Nt(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Pt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new jt(`Async validation not supported`);if(n.issues)throw new jt(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 Ft({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=b(e),a,o=S(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function It({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Lt(n)(e,t,r??!1)}function Lt(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)=>
10t(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=Pt(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=p(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 Rt(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 ze}function zt(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 Bt(){try{return sessionStorage}catch{return}}var Vt=`tsr-scroll-restoration-v1_3`,Ht=Bt();function Ut(){try{return JSON.parse(Ht?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Wt(){try{Ht?.setItem(Vt,JSON.stringify(Gt))}catch{}}var Gt=Ut(),Kt=`data-scroll-restoration-id`,qt=e=>e.state.__TSR_key||e.href;function Jt(e){let t=e.getAttribute(Kt);if(t)return`[${Kt}="${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 Yt=!1,Xt=`window`;function Zt(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Qt(e){let t=[];for(let n of e){if(n===Xt)continue;let e=Zt(n);e&&t.push(e)}return t}function $t(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||qt,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(!(Yt||!r.restoring))if(e.target===document)o(Xt,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Gt[e]||={};for(let[e,n]of a)e===Xt?t[Xt]=n:e.isConnected&&(t[Jt(e)]=n)};n&&!r.restoration&&(r.restoration=!0,Yt=!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())),Wt()})),!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=Gt[u];if(e){let t=Gt[l];for(let n in e){if(n===Xt){if(s)continue}else{let e=Zt(n);if(!e||s&&o&&(c??=Qt(o),c.includes(e)))continue}t||=Gt[l]={},t[n]??=e[n]}}}Yt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=kt.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Gt[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Xt){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Zt(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=Qt(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Yt=!1}}))}var en=Symbol.for(`TSR_DEFERRED_PROMISE`);function tn(e,t){let n=e;return n[en]?n:(n[en]={status:`pending`},n.then(e=>{n[en].status=`success`,n[en].data=e}).catch(e=>{n[en].status=`error`,n[en].error={data:(t?.serializeError??Dt)(e),__isServerError:!0}}),n)}function nn(e,t){if(e)return typeof e==`string`?e:e[t]}function rn(e){return e?.scriptFormat??`module`}function an(e,t,n){let r=on(t),i=nn(n,`script`)??r.crossOrigin;return{...rn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function on(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function sn(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 cn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var ln=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=ze:this.parentRoute||v();let r=n?ze:t?.path;r&&r!==`/`&&(r=ne(r));let i=t?.id||r,a=n?ze:E([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=E([`/`,a]));let o=a===`__root__`?`/`:E([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=b(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Be({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},un=class extends ln{constructor(e){super(e)}},dn=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(dn||{}),fn=Symbol.asyncIterator,pn=Symbol.hasInstance,mn=Symbol.isConcatSpreadable,hn=Symbol.iterator,gn=Symbol.match,_n=Symbol.matchAll,vn=Symbol.replace,yn=Symbol.search,bn=Symbol.species,xn=Symbol.split,Sn=Symbol.toPrimitive,Cn=Symbol.toStringTag,wn=Symbol.unscopables,Tn={[fn]:0,[pn]:1,[mn]:2,[hn]:3,[gn]:4,[_n]:5,[vn]:6,[yn]:7,[bn]:8,[xn]:9,[Sn]:10,[Cn]:11,[wn]:12},En={0:fn,1:pn,2:mn,3:hn,4:gn,5:_n,6:vn,7:yn,8:bn,9:xn,10:Sn,11:Cn,12:wn},k=void 0,Dn={2:!0,3:!1,1:k,0:null,4:-0,5:1/0,6:-1/0,7:NaN},On={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},kn={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function A(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function An(e){return A(2,k,e,k,k,k,k,k,k,k,k,k)}var jn=An(2),Mn=An(3),Nn=An(1),Pn=An(0),Fn=An(4),In=An(5),Ln=An(6),Rn=An(7);function zn(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
11`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case`	`:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return k}}function Bn(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=zn(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Vn(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
12`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return`	`;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Hn(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Vn)}
12var Un=`__SEROVAL_REFS__`,Wn=new Map,Gn=new Map;function Kn(e){return Wn.has(e)}function qn(e){return Gn.has(e)}function Jn(e){if(Kn(e))return Wn.get(e);throw new Ir(e)}function Yn(e){if(qn(e))return Gn.get(e);throw new Lr(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Un,{value:Gn,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Un,{value:Gn,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Un,{value:Gn,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Un,{value:Gn,configurable:!0,writable:!1,enumerable:!1});function Xn(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Zn(e){let t=On[Xn(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Qn(e,t){let n=Zn(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function $n(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function er(e){switch(e){case 1/0:return In;case-1/0:return Ln}return e===e?Object.is(e,-0)?Fn:A(0,k,e,k,k,k,k,k,k,k,k,k):Rn}function tr(e){return A(1,k,Bn(e),k,k,k,k,k,k,k,k,k)}function nr(e){return A(3,k,``+e,k,k,k,k,k,k,k,k,k)}function rr(e){return A(4,e,k,k,k,k,k,k,k,k,k,k)}function ir(e,t){let n=t.valueOf();return A(5,e,n===n?t.toISOString():``,k,k,k,k,k,k,k,k,k)}function ar(e,t){return A(6,e,k,Bn(t.source),t.flags,k,k,k,k,k,k,k)}function or(e,t){return A(17,e,Tn[t],k,k,k,k,k,k,k,k,k)}function sr(e,t){return A(18,e,Bn(Jn(t)),k,k,k,k,k,k,k,k,k)}function cr(e,t,n){return A(25,e,n,Bn(t),k,k,k,k,k,k,k,k)}function lr(e,t,n){return A(9,e,k,k,k,k,k,n,k,k,$n(t),k)}function ur(e,t){return A(21,e,k,k,k,k,k,k,t,k,k,k)}function dr(e,t,n){return A(15,e,k,t.constructor.name,k,k,k,k,n,t.byteOffset,k,t.length)}function fr(e,t,n){return A(16,e,k,t.constructor.name,k,k,k,k,n,t.byteOffset,k,t.byteLength)}function pr(e,t,n){return A(20,e,k,k,k,k,k,k,n,t.byteOffset,k,t.byteLength)}function mr(e,t,n){return A(13,e,Xn(t),k,Bn(t.message),n,k,k,k,k,k,k)}function hr(e,t,n){return A(14,e,Xn(t),k,Bn(t.message),n,k,k,k,k,k,k)}function gr(e,t){return A(7,e,k,k,k,k,k,t,k,k,k,k)}function _r(e,t){return A(28,k,k,k,k,k,k,[e,t],k,k,k,k)}function vr(e,t){return A(30,k,k,k,k,k,k,[e,t],k,k,k,k)}function yr(e,t,n){return A(31,e,k,k,k,k,k,n,t,k,k,k)}function br(e,t){return A(32,e,k,k,k,k,k,k,t,k,k,k)}function xr(e,t){return A(33,e,k,k,k,k,k,k,t,k,k,k)}function Sr(e,t){return A(34,e,k,k,k,k,k,k,t,k,k,k)}function Cr(e,t,n,r){return A(35,e,n,k,k,k,k,t,k,k,k,r)}var{toString:wr}=Object.prototype,Tr={parsing:1,serialization:2,deserialization:3};function Er(e){return`Seroval Error (step: ${Tr[e]})`}var Dr=(e,t)=>Er(e),Or=class extends Error{constructor(e,t){super(Dr(e,t)),this.cause=t}},kr=class extends Or{constructor(e){super(`parsing`,e)}},Ar=class extends Or{constructor(e){super(`deserialization`,e)}};function jr(e){return`Seroval Error (specific: ${e})`}var Mr=class extends Error{constructor(e){super(jr(1)),this.value=e}},Nr=class extends Error{constructor(e){super(jr(2))}},Pr=class extends Error{constructor(e){super(jr(3))}},Fr=class extends Error{constructor(e){super(jr(4))}},Ir=class extends Error{constructor(e){super(jr(5)),this.value=e}},Lr=class extends Error{constructor(e){super(jr(6))}},Rr=class extends Error{constructor(e){super(jr(7))}},zr=class extends Error{constructor(e){super(jr(8))}},Br=class extends Error{constructor(e){super(jr(9))}},Vr=class{constructor(e,t){this.value=e,this.replacement=t}},Hr=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Hr.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var Ur=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>
12{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};Ur.toString();var Wr=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};Wr.toString();var Gr=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};Gr.toString();var Kr=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};Kr.toString();function qr(e){return`__SEROVAL_SEQUENCE__`in e}function Jr(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Yr(e){let t=[],n=-1,r=-1,i=e[hn]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Jr(t,n,r)}var Xr=Wr(hn);function Zr(e){return Xr(e)}var Qr={},$r={},ei={0:{},1:{},2:{},3:{},4:{},5:{}};function ti(e){return`__SEROVAL_STREAM__`in e}function ni(){return Ur()}function ri(e){let t=ni(),n=e[fn]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var ii=Gr(fn,Hr);function ai(e){return ii(e)}async function oi(e){try{return[1,await e]}catch(e){return[0,e]}}function si(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function ci(e,t){e.marked.add(t)}function li(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function ui(e,t){let n=e.refs.get(t);return n==null?{type:0,value:li(e,t)}:(ci(e,n),{type:1,value:rr(n)})}function di(e,t){let n=ui(e,t);return n.type===1?n:Kn(t)?{type:2,value:sr(n.value,t)}:n}function fi(e,t){let n=di(e,t);if(n.type!==0)return n.value;if(t in Tn)return or(n.value,t);throw new Mr(t)}function pi(e,t){let n=ui(e,ei[t]);return n.type===1?n.value:A(26,n.value,t,k,k,k,k,k,k,k,k,k)}function mi(e){let t=ui(e,Qr);return t.type===1?t.value:A(27,t.value,k,k,k,k,k,k,fi(e,hn),k,k,k)}function hi(e){let t=ui(e,$r);return t.type===1?t.value:A(29,t.value,k,k,k,k,k,[pi(e,1),fi(e,fn)],k,k,k,k)}function gi(e,t,n,r){return A(n?11:10,e,k,k,k,r,k,k,k,k,$n(t),k)}function _i(e,t,n,r){return A(8,t,k,k,k,k,{k:n,v:r},k,pi(e,0),k,k,k)}function vi(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return A(19,t,Bn(btoa(i)),k,k,k,k,k,pi(e,5),k,k,k)}function yi(e,t){return{base:si(e,t),child:void 0}}var bi=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Bi(this._p,this.depth,e)}};async function xi(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Bi(e,t,n[i]):r[i]=0;return r}async function Si(e,t,n,r){return lr(n,r,await xi(e,t,r))}async function Ci(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Bn(r[n][0])),a.push(await Bi(e,t,r[n][1]));return hn in n&&(i.push(fi(e.base,hn)),a.push(_r(mi(e.base),await Bi(e,t,Yr(n))))),fn in n&&(i.push(fi(e.base,fn)),a.push(vr(hi(e.base),await Bi(e,t,ri(n))))),Cn in n&&(i.push(fi(e.base,Cn)),a.push(tr(n[Cn]))),mn in n&&(i.push(fi(e.base,mn)),a.push(n[mn]?jn:Mn)),{k:i,v:a}}async function wi(e,t,n,r,i){return gi(n,r,i,await Ci(e,t,r))}async function Ti(e,t,n,r){return ur(n,await Bi(e,t,r.valueOf()))}async function Ei(e,t,n,r){return dr(n,r,await Bi(e,t,r.buffer))}async function Di(e,t,n,r){return fr(n,r,await Bi(e,t,r.buffer))}async function Oi(e,t,n,r){return pr(n,r,await Bi(e,t,r.buffer))}async function ki(e,t,n,r){let i=Qn(r,e.base.features);return mr(n,r,i?await Ci(e,t,i):k)}async function Ai(e,t,n,r){let i=Qn(r,e.base.features);return hr(n,r,i?await Ci(e,t,i):k)}async function ji(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Bi(e,t,n)),a.push(await Bi(e,t,o));return _i(e.base,n,i,a)}async function Mi(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Bi(e,t,n));return gr(n,i)}async function Ni(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return cr(n,o.tag,await o.parse.async(r,new bi(e,t),{id:n}))}return k}async function Pi(e,t,n,r){let[i,a]=await oi(r);return A(12,n,i,k,k,k,k,k,await Bi(e,t,a),k,k,k)}function Fi(e,t,n,r,i){let a=[],o=n.on({next:n=>{ci(this.base,t),Bi(this,e,n).then(e=>{a.push(br(t,e))},e=>{i(e),o()})},throw:n=>{ci(this.base,t),Bi(this,e,n).then(e=>{a.push(xr(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{ci(this.base,t),Bi(this,e,n).then(e=>{a.push(Sr(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Ii(e,t,n,r){return yr(n,pi(e.base,4),await new Promise(Fi.bind(e,t,n,r)))}async function Li(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Bi(e,t,r.v[n]);return Cr(n,i,r.t,r.d)}async function Ri(e,t,n,r){if(Array.isArray(r))return Si(e,t,n,r);if(ti(r))return Ii(e,t,n,r);if(qr(r))return Li(e,t,n,r);let i=r.constructor;if(i===Vr)return Bi(e,t,r.replacement);let a=await Ni(e,t,n,r);if(a)return a;switch(i){case Object:return wi(e,t,n,r,!1);case k:return wi(e,t,n,r,!0);case Date:return ir(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return ki(e,t,n,r);case Number:case Boolean:case String:case BigInt:return Ti(e,t,n,r);case ArrayBuffer:return vi(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ei(e,t,n,r);case DataView:return Oi(e,t,n,r);case Map:return ji(e,t,n,r);case Set:return Mi(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return Pi(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return ar(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Di(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ai(e,t,n,r);if(r instanceof Error)return ki(e,t,n,r);if(hn in r||fn in r)return wi(e,t,n,r,!!i);throw new Mr(r)}async function zi(e,t,n){let r=di(e.base,n);if(r.type!==0)return r.value;let i=await Ni(e,t,r.value,n);if(i)return i;throw new Mr(n)}async function Bi(e,t,n){switch(typeof n){case`boolean`:return n?jn:Mn;case`undefined`:return Nn;case`string`:return tr(n);case`number`:return er(n);case`bigint`:return nr(n);case`object`:if(n){let r=di(e.base,n);return r.type===0?await Ri(e,t+1,r.value,n):r.value}return Pn;case`symbol`:return fi(e.base,n);case`function`:return zi(e,t,n);default:throw new Mr(n)}}async function Vi(e,t){try{return await Bi(e,0,t)}catch(e){throw e instanceof kr?e:new kr(e)}}var Hi=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Hi||{});function j(e){return e}function M(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&M(e,r.extends))}}function Ui(e){if(e){let t=new Set;return M(t,e),[...t]}}function Wi(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Rr(e)}}var Gi=1e6,Ki=1e4,qi=2e4;function Ji(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Yi=1e3;function Xi(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||Yi}}
12function Zi(e){return{mode:2,base:Xi(2,e),child:k}}var Qi=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return P(this._p,this.depth,e)}};function $i(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new zr({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function ea(e,t,n){return $i(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function ta(e,t,n){return $i(e.base,t),e.base.refs.set(t,n),n}function N(e,t,n){return e.mode===1?ea(e,t,n):ta(e,t,n)}function na(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new zr(e)}function ra(e,t){return N(e,t.i,Yn(Hn(t.s)))}function ia(e,t,n){let r=n.a,i=r.length,a=N(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=P(e,t,o));return Ji(a,n.o),a}function aa(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function oa(e){switch(e){case fn:case mn:case Cn:case hn:return!0;default:return!1}}function sa(e,t,n){aa(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function ca(e,t,n,r,i){if(typeof r==`string`)sa(n,Hn(r),P(e,t,i));else{let a=P(e,t,r);switch(typeof a){case`string`:sa(n,a,P(e,t,i));break;case`symbol`:oa(a)&&(n[a]=P(e,t,i));break;default:throw new zr(r)}}}function la(e,t,n){e.base.refs.types.set(t,n)}function ua(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new zr(t)}function da(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)ca(e,t,r,i[a],o[a]);return r}function fa(e,t,n){let r=N(e,n.i,n.t===10?{}:Object.create(null));return da(e,t,n.p,r),Ji(r,n.o),r}function pa(e,t){return N(e,t.i,new Date(t.s))}function ma(e,t){if(e.base.features&32){let n=Hn(t.c);if(n.length>qi)throw new zr(t);return N(e,t.i,new RegExp(n,t.m))}throw new Nr(t)}function ha(e,t,n){let r=N(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(P(e,t,a[i]));return r}function ga(e,t,n){let r=N(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(P(e,t,a[i]),P(e,t,o[i]));return r}function _a(e,t){if(t.s.length>Gi)throw new zr(t);return N(e,t.i,Kr(Hn(t.s)))}function va(e,t,n){let r=Wi(n.c),i=P(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new zr(n);return N(e,n.i,new r(i,a,n.l))}function ya(e,t,n){let r=P(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new zr(n);return N(e,n.i,new DataView(r,i,n.l))}function ba(e,t,n,r){if(n.p){let i=da(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function xa(e,t,n){return ba(e,t,n,N(e,n.i,AggregateError([],Hn(n.m))))}function Sa(e,t,n){let r=na(n,kn,n.s);return ba(e,t,n,N(e,n.i,new r(Hn(n.m))))}function Ca(e,t,n){let r=Hr(),i=N(e,n.i,r.p),a=P(e,t,n.f);return n.s?r.s(a):r.f(a),i}function wa(e,t,n){return N(e,n.i,Object(P(e,t,n.f)))}function Ta(e,t,n){let r=e.base.plugins;if(r){let i=Hn(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return N(e,n.i,o.deserialize(n.s,new Qi(e,t),{id:n.i}))}}throw new Pr(n.c)}function Ea(e,t){let n=N(e,t.i,N(e,t.s,Hr()).p);return la(e,t.s,22),n}function Da(e,t,n){let r=e.base.refs.get(n.i);if(r)return ua(e,n,n.i,22),r.s(P(e,t,n.a[1])),k;throw new Fr(`Promise`)}function Oa(e,t,n){let r=e.base.refs.get(n.i);if(r)return ua(e,n,n.i,22),r.f(P(e,t,n.a[1])),k;throw new Fr(`Promise`)}function ka(e,t,n){return P(e,t,n.a[0]),Zr(P(e,t,n.a[1]))}function Aa(e,t,n){return P(e,t,n.a[0]),ai(P(e,t,n.a[1]))}function ja(e,t,n){let r=N(e,n.i,ni());la(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)P(e,t,i[n]);return r}function Ma(e,t,n){let r=e.base.refs.get(n.i);if(r)return ua(e,n,n.i,31),r.next(P(e,t,n.f)),k;throw new Fr(`Stream`)}function Na(e,t,n){let r=e.base.refs.get(n.i);if(r)return ua(e,n,n.i,31),r.throw(P(e,t,n.f)),k;throw new Fr(`Stream`)}function Pa(e,t,n){let r=e.base.refs.get(n.i);if(r)return ua(e,n,n.i,31),r.return(P(e,t,n.f)),k;throw new Fr(`Stream`)}function Fa(e,t,n){return P(e,t,n.f),k}function Ia(e,t,n){return P(e,t,n.a[1]),k}function La(e,t,n){let r=N(e,n.i,Jr([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=P(e,t,n.a[i]);return r}function P(e,t,n){if(t>e.base.depthLimit)throw new Br(e.base.depthLimit);switch(t+=1,n.t){case 2:return na(n,Dn,n.s);case 0:return Number(n.s);case 1:return Hn(String(n.s));case 3:if(String(n.s).length>Ki)throw new zr(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return ra(e,n);case 9:return ia(e,t,n);case 10:case 11:return fa(e,t,n);case 5:return pa(e,n);case 6:return ma(e,n);
12case 7:return ha(e,t,n);case 8:return ga(e,t,n);case 19:return _a(e,n);case 16:case 15:return va(e,t,n);case 20:return ya(e,t,n);case 14:return xa(e,t,n);case 13:return Sa(e,t,n);case 12:return Ca(e,t,n);case 17:return na(n,En,n.s);case 21:return wa(e,t,n);case 25:return Ta(e,t,n);case 22:return Ea(e,n);case 23:return Da(e,t,n);case 24:return Oa(e,t,n);case 28:return ka(e,t,n);case 30:return Aa(e,t,n);case 31:return ja(e,t,n);case 32:return Ma(e,t,n);case 33:return Na(e,t,n);case 34:return Pa(e,t,n);case 27:return Fa(e,t,n);case 29:return Ia(e,t,n);case 35:return La(e,t,n);default:throw new Nr(n)}}function Ra(e,t){try{return P(e,0,t)}catch(e){throw new Ar(e)}}var za=(()=>T).toString();/=>/.test(za);function Ba(e,t){return Ra(Zi({plugins:Ui(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Va(e,t={}){let n=yi(1,{plugins:Ui(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Vi(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function Ha(e){return e}function Ua(e){return j({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var Wa=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Ga=globalThis.Buffer,Ka=!!Ga&&typeof Ga.from==`function`;function qa(e){if(e.length===0)return``;if(Ka)return Ga.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function Ja(e){if(e.length===0)return new Uint8Array;
12if(Ka){let t=Ga.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var Ya=Object.create(null),Xa=Object.create(null),Za=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Ja(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Qa=new TextEncoder,$a=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Qa.encode(e)):t.enqueue(Ja(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),eo=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,to=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function no(e){let t=ni(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(qa(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function ro(e){let t=ni(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:qa(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var io=j({tag:`tss/RawStream`,extends:[j({tag:`tss/RawStreamFactory`,test(e){return e===Ya},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return eo},deserialize(e,t,n){return Ya}}),j({tag:`tss/RawStreamFactoryText`,test(e){return e===Xa},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return to},deserialize(e,t,n){return Xa}})],test(e){return e instanceof Wa},parse:{sync(e,t,n){let r=e.hint===`text`?Xa:Ya;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(ni())}},async async(e,t,n){let r=e.hint===`text`?Xa:Ya,i=e.hint===`text`?ro(e.stream):no(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Xa:Ya,i=e.hint===`text`?ro(e.stream):no(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?$a(r):Za(r)}});function ao(e){return j({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var oo=j({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),so={},co=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),lo=j({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===so},parse:{sync(){return so},async async(){return await Promise.resolve(so)},stream(){return so}},serialize(){return co.toString()},deserialize(){return so}});function uo(e){let t=ni(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var fo=[oo,io,j({tag:`seroval/plugins/web/ReadableStream`,extends:[lo],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(so),stream:t.parse(ni())}},async async(e,t){return{factory:await t.parse(so),stream:await t.parse(uo(e))}},stream(e,t){return{factory:t.parse(so),stream:t.parse(uo(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return co(t.deserialize(e.stream))}})];function po(){return[...(ke()?.serializationAdapters)?.map(Ua)??[],...fo]}var mo=new TextDecoder,ho=new Uint8Array,go=16*1024*1024,F=32*1024*1024,_o=1024,vo=1e5;function I(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}
12t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=_o)throw Error(`Too many raw streams in framed response (max ${_o})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return ho;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>F)throw Error(`Framed response buffer exceeded ${F} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==Te.JSON&&n!==Te.CHUNK&&n!==Te.END&&n!==Te.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===Te.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>go)throw Error(`Frame payload too large: ${a} bytes (max ${go})`);let c=9+a;if(l<c)break;if(++o>vo)throw Error(`Too many frames in framed response (max ${vo})`);f(9);let p=f(a);switch(n){case Te.JSON:try{s.enqueue(mo.decode(p))}catch{}break;case Te.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case Te.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case Te.ERROR:{let e=u(i);if(r.add(i),e){let n=mo.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var L=null;async function R(e){e.length>0&&await Promise.allSettled(e)}var yo=Object.prototype.hasOwnProperty;function bo(e){for(let t in e)if(yo.call(e,t))return!0;return!1}async function xo(e,t,n){L||=po();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${we}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await So(r);if(t!==void 0){let n=Me({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await wo(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await To(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function So(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&bo(e.context)&&(t=!0,n.context=e.context),t)return Co(n)}async function Co(e){return JSON.stringify(await Promise.resolve(Va(e,{plugins:L})))}async function wo(e){if(e.data instanceof FormData){let t;return e.context&&bo(e.context)&&(t=await Co(e.context)),t!==void 0&&e.data.set(xe,t),{body:e.data}}let t=await So(e);if(t)return{body:t,contentType:`application/json`}}async function To(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||v(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(Oe(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=I(t.body),a=[ao(r),...L||[]],o=new Map;e=await Eo({jsonStream:i,onMessage:e=>Ba(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=Ba(n,{plugins:L})}finally{}await R(r)}if(e||v(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=He(e);if(n)throw n;if(je(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Eo({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await R(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await R(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function Do(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=ke()?.serverFns?.fetch;return xo(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[Se]:!0})}var Oo=Ha({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(Se in e)?!1:!!e[Se],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Do(e)});function ko(e){if(Array.isArray(e))return e.flatMap(e=>ko(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function Ao(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function jo(...e){return e.reduce((e,t)=>{let n=Ao(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?ko(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function Mo(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function No(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 Po(e){window.$_TSR||v();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||v();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=Mo(e.i)}),n.lastMatchId&&=Mo(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=m();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 u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}No(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};
12t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,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(je(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 h=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!h)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let g=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(h){let t=s[1];t||v(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=g,g.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 c}var z=t(r(),1),B=n();function Fo({promise:e}){if(ue)return ue(e);let t=tn(e);if(t[en].status===`pending`)throw t;if(t[en].status===`error`)throw t[en].error;return t[en].data}function Io(e){let t=(0,B.jsx)(Lo,{...e});return e.fallback?(0,B.jsx)(z.Suspense,{fallback:e.fallback,children:t}):t}function Lo(e){let t=Fo(e);return e.children(t)}function Ro(e){let t=e.errorComponent??Bo;return(0,B.jsx)(zo,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?z.createElement(t,{error:n,reset:r}):e.children})}var zo=class extends z.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 Bo({error:e}){let[t,n]=z.useState(!1);return(0,B.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,B.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,B.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,B.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,B.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,B.jsx)(`div`,{children:(0,B.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,B.jsx)(`code`,{children:e.message}):null})}):null]})}var Vo=z.createContext(void 0),Ho=z.createContext(void 0),V=(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))(V||{});function Uo({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 Wo(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 Go=[],Ko=0,{link:qo,unlink:Jo,propagate:Yo,checkDirty:Xo,shallowPropagate:Zo}=Uo({update(e){return e._update()},notify(e){Go[$o++]=e,e.flags&=~V.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=V.Mutable|V.Dirty,rs(e))}}),Qo=0,$o=0,es,ts=0;function ns(e){try{++ts,e()}finally{--ts||is()}}function rs(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Jo(n,e)}function is(){if(!(ts>0)){for(;Qo<$o;){let e=Go[Qo];Go[Qo++]=void 0,e.notify()}Qo=0,$o=0}}function as(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?V.None:V.Mutable,get(){return es!==void 0&&qo(i,es,Ko),i._snapshot},subscribe(e){let t=Wo(e),n={current:!1},r=os(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=es,o=t?.compare??Object.is;if(n)es=i,++Ko,i.depsTail=void 0;else if(e===void 0)return!1;
12n&&(i.flags=V.Mutable|V.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{es=a,n&&(i.flags&=~V.RecursedCheck),rs(i)}}};return n?(i.flags=V.Mutable|V.Dirty,i.get=function(){let e=i.flags;if(e&V.Dirty||e&V.Pending&&Xo(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Zo(e)}}else e&V.Pending&&(i.flags=e&~V.Pending);return es!==void 0&&qo(i,es,Ko),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Yo(e),Zo(e),is())}},i}function os(e){let t=()=>{let t=es;es=n,++Ko,n.depsTail=void 0,n.flags=V.Watching|V.RecursedCheck;try{return e()}finally{es=t,n.flags&=~V.RecursedCheck,rs(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:V.Watching|V.RecursedCheck,notify(){let e=this.flags;e&V.Dirty||e&V.Pending&&Xo(this.deps,this)?t():this.flags=V.Watching},stop(){this.flags=V.None,this.depsTail=void 0,rs(this)}};return t(),n}var ss={get(){},subscribe(){return{unsubscribe(){}}}};function cs(e,t){let n=z.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=a(n.current,i):i}}function ls(e){let t=D(),n=z.useContext(e.from?Ho:Vo),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=cs(e,t),a=w(r??ss,e=>e?i(e):ss);if(a!==ss)return a;(e.shouldThrow??!0)&&v()}function us(e){return ls({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ds(e){let{select:t,...n}=e;return ls({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function fs(e){return ls({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ps(e){return ls({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ms(e){let t=D();return z.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function hs(e){return ls({...e,select:t=>e.select?e.select(t.context):t.context})}var gs=class extends ln{constructor(e){super(e),this.useMatch=e=>ls({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>hs({...e,from:this.id}),this.useSearch=e=>ps({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>fs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ds({...e,from:this.id}),this.useLoaderData=e=>us({...e,from:this.id}),this.useNavigate=()=>ms({from:this.fullPath}),this.Link=z.forwardRef((e,t)=>(0,B.jsx)(de,{ref:t,from:this.fullPath,...e}))}};function _s(e){return new gs(e)}function vs(){return e=>bs(e)}var ys=class extends un{constructor(e){super(e),this.useMatch=e=>ls({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>hs({...e,from:this.id}),this.useSearch=e=>ps({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>fs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ds({...e,from:this.id}),this.useLoaderData=e=>us({...e,from:this.id}),this.useNavigate=()=>ms({from:this.fullPath}),this.Link=z.forwardRef((e,t)=>(0,B.jsx)(de,{ref:t,from:this.fullPath,...e}))}};function bs(e){return new ys(e)}function xs(e){return new Ss(e,{silent:!0}).createRoute}var Ss=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=_s(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Cs(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,u(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(ue)ue(o());else throw o();return z.createElement(r,e)};return s.preload=o,s}function ws(e){let t=D(),n=`not-found-${w(t.stores.location,e=>e.pathname)}-${w(t.stores.status,e=>e)}`;return(0,B.jsx)(Ro,{getResetKey:()=>n,onCatch:(t,n)=>{if(je(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(je(t))return e.fallback?.(t);throw t},children:e.children})}function Ts(){return(0,B.jsx)(`p`,{children:`Not Found`})}function Es(e){return(0,B.jsx)(B.Fragment,{children:e.children})}function Ds(e,t,n){return t.options.notFoundComponent?(0,B.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,B.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,B.jsx)(Ts,{})}var Os=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,ks=(e,t)=>
12e[0]===t[0]&&e[1]===t[1],As=z.memo(function({matchId:e}){let t=D(),n=t.stores.matchStores.get(e);n||v();let r=w(t.stores.loadedAt,e=>e),i=w(n,e=>e,Os);return(0,B.jsx)(js,{router:t,matchId:e,resetKey:r,matchState:z.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 js({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,B.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`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?z.Suspense:Es,f=s?Ro:Es,p=l?ws:Es;return(0,B.jsxs)(i.isRoot?i.options.shellComponent??Es:Es,{children:[(0,B.jsx)(Vo.Provider,{value:t,children:(0,B.jsx)(d,{fallback:o,children:(0,B.jsx)(f,{getResetKey:()=>n,errorComponent:s||Bo,onCatch:(e,t)=>{if(je(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,B.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return z.createElement(l,e)},children:u||r._displayPending?(0,B.jsx)(x,{fallback:o,children:(0,B.jsx)(Ns,{matchId:t})}):(0,B.jsx)(Ns,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Ms,{}),(e.options.scrollRestoration,null)]}):null]})}function Ms(){let e=D(),t=z.useRef();return C(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Ot(e.stores.location.get(),r??n)}),t.current=n},[w(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Ns=z.memo(function({matchId:e}){let t=D(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||v();let i=w(r,e=>e),a=i.routeId,o=t.routesById[a],s=z.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=z.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,B.jsx)(e,{},s):(0,B.jsx)(Ps,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=m();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return je(i.error)||v(),Ds(t,o,i.error);if(i.status===`redirected`)throw Ve(i.error)||v(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Ps=z.memo(function(){let e=D(),t=z.useContext(Vo),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=w(a,e=>[e?.routeId,e?.globalNotFound??!1],ks),i=w(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,B.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||v(),Ds(e,a,void 0);if(!i)return null;let s=(0,B.jsx)(As,{matchId:i});return n===`__root__`?(0,B.jsx)(z.Suspense,{fallback:o,children:s}):s});function Fs(){let e=D(),t=z.useRef({router:e,mounted:!1}),[n,r]=z.useState(!1),i=w(e.stores.isLoading,e=>e),a=w(e.stores.hasPending,e=>e),o=se(i),s=i||n||a,c=se(s),l=i||a,u=se(l);return e.startTransition=e=>{r(!0),z.startTransition(()=>{e(),r(!1)})},z.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 b(e.latestLocation.publicHref)!==b(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{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]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...Ot(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ot(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>
12{if(c&&!s){let t=Ot(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),ns(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Is(){let e=D(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,B.jsx)(t,{}):null,r=(0,B.jsxs)(typeof document<`u`&&e.ssr?Es:z.Suspense,{fallback:n,children:[(0,B.jsx)(Fs,{}),(0,B.jsx)(Ls,{})]});return e.options.InnerWrap?(0,B.jsx)(e.options.InnerWrap,{children:r}):r}function Ls(){let e=D(),t=w(e.stores.firstId,e=>e),n=w(e.stores.loadedAt,e=>e),r=t?(0,B.jsx)(As,{matchId:t}):null;return(0,B.jsx)(Vo.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,B.jsx)(Ro,{getResetKey:()=>n,errorComponent:Bo,onCatch:void 0,children:r})})}var Rs=e=>({createMutableStore:as,createReadonlyStore:as,batch:ns}),zs=e=>new Bs(e),Bs=class extends At{constructor(e){super(e,Rs)}};function Vs({router:e,children:t,...n}){h(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,B.jsx)(ie.Provider,{value:e,children:t});return e.options.Wrap?(0,B.jsx)(e.options.Wrap,{children:r}):r}function Hs({router:e,...t}){return(0,B.jsx)(Vs,{router:e,...t,children:(0,B.jsx)(Is,{})})}function Us(e){let t=D({warn:e?.router===void 0}),n=e?.router||t;return w(n.stores.__store,cs(e,n))}function Ws(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 Gs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,B.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,B.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,B.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,B.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,B.jsx)(Ks,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ks({attrs:e,children:t,preventScriptHoist:n}){D();let r=le(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(z.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 Ws(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,Ws(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,B.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var qs=e=>{let t=D(),n=t.options.ssr?.nonce,r=w(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),i),a=z.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:f(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]),o=w(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}}
12)),i),s=w(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=cn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:nn(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},i),c=w(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:{...an(a,t,e),nonce:n}})})}),i},i),l=w(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})),i),u=w(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})),i),d=[];return sn(d,a),d.push(...c),sn(d,o),d.push(...s),sn(d,l),sn(d,u),d};function Js(e){let t=qs(e.assetCrossOrigin),n=D().options.ssr?.nonce;return(0,B.jsx)(B.Fragment,{children:t.map(e=>(0,z.createElement)(Gs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ys=()=>{let e=D(),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})),a=w(e.stores.matches,n,i);return Xs(e,w(e.stores.matches,r,i),a)};function Xs(e,t,n){let r=[...t,...n];return(0,B.jsx)(B.Fragment,{children:r.map((e,t)=>(0,z.createElement)(Gs,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function Zs(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function Qs(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))Zs(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))Zs(e)&&(n[e]=t[e]);return n}function $s(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))Zs(n)&&(t[n]=e[n]);return t}var ec=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},tc=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>tc(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>tc(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{Ce in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=tc(void 0,{...n,middleware:t});return r[Ce]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],ac(i)];return t.method=n.method,Object.assign(async e=>{let n=await nc(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:$s()}),r=He(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=ec(),r=n.contextAfterGlobalMiddlewares;return await nc(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:Qs(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function nc(e,t,n){let r=rc([...ke()?.functionMiddleware||[],...e]);if(t===`server`){let e=ec({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await ic(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:Qs(e.context,t.context),sendContext:Qs(e.sendContext,t.sendContext),headers:jo(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(Ve(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||$s(),_callSiteFetch:n.fetch})}function rc(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);
12e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function ic(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function ac(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var H=(e,t)=>{let n={type:`request`,...t||e},r=e=>H({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>H({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>H({},Object.assign(n,{client:e})),server:e=>H({},Object.assign(n,{server:e}))}};function oc(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&oc(e,r.extends))}}var sc=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;oc(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:H}),cc=H(),lc=void 0,uc=sc(()=>({requestMiddleware:[cc,lc]})),dc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fc=new class extends dc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},pc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mc=new class{#e=pc;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function hc(e){setTimeout(e,0)}var gc=typeof window>`u`||`Deno`in globalThis;function _c(){}function vc(e,t){return typeof e==`function`?e(t):e}function yc(e){return typeof e==`number`&&e>=0&&e!==1/0}function bc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xc(e,t){return typeof e==`function`?e(t):e}function Sc(e,t){return typeof e==`function`?e(t):e}function Cc(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Tc(o,t.options))return!1}else if(!Dc(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function wc(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ec(t.options.mutationKey)!==Ec(a))return!1}else if(!Dc(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Tc(e,t){return(t?.queryKeyHashFn||Ec)(e)}function Ec(e){return JSON.stringify(e,(e,t)=>jc(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dc(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Dc(e[n],t[n])):!1}var Oc=Object.prototype.hasOwnProperty;function kc(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Ac(e)&&Ac(t);if(!r&&!(jc(e)&&jc(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Oc.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=kc(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Ac(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jc(e){if(!Mc(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;
12return!(!Mc(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Mc(e){return Object.prototype.toString.call(e)===`[object Object]`}function Nc(e){return new Promise(t=>{mc.setTimeout(t,e)})}function Pc(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:kc(e,t)}function Fc(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ic(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Lc=Symbol();function Rc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Lc?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function zc(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var U=(()=>{let e=()=>gc;return{isServer(){return e()},setIsServer(t){e=t}}})();function Bc(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Vc=hc;function Hc(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Vc,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Uc=Hc(),Wc=new class extends dc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Gc(e){return Math.min(1e3*2**e,3e4)}function Kc(e){return(e??`online`)===`online`?Wc.isOnline():!0}var qc=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Jc(e){let t=!1,n=0,r,i=Bc(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new qc(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>fc.isFocused()&&(e.networkMode===`always`||Wc.isOnline())&&e.canRun(),u=()=>Kc(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(U.isServer()?0:3),o=e.retryDelay??Gc,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Nc(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Yc=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yc(this.gcTime)&&(this.#e=mc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(U.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(mc.clearTimeout(this.#e),this.#e=void 0)}};function Xc(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{zc(e,()=>t.signal,()=>n=!0)},u=Rc(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ic:Fc;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Qc:Zc,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Zc(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Zc(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Qc(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var $c=class extends Yc{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=nl(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=nl(this.options);e.data!==void 0&&(this.setState(tl(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Pc(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(_c).catch(_c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Sc(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
12Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>xc(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!bc(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Rc(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Xc(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Jc({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof qc&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof qc){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...el(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...tl(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Uc.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function el(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kc(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function tl(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function nl(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
12Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var rl=class extends Yc{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||il(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Jc({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Uc.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function il(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var al=class extends dc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new rl({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=ol(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=ol(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=ol(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
12e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=ol(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Uc.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>wc(t,e))}findAll(e={}){return this.getAll().filter(t=>wc(e,t))}notify(e){Uc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Uc.batch(()=>Promise.all(e.map(e=>e.continue().catch(_c))))}};function ol(e){return e.options.scope?.id}var sl=class extends dc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Tc(r,t),a=this.get(i);return a||(a=new $c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Uc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Cc(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Cc(e,t)):t}notify(e){Uc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Uc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Uc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},cl=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new sl,this.#t=e.mutationCache||new al,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=fc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Wc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(xc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=vc(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Uc.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Uc.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Uc.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Uc.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(_c).catch(_c)}invalidateQueries(e,t={}){return Uc.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Uc.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(_c)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(_c)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(xc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_c).catch(_c)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_c).catch(_c)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Wc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ec(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Dc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Ec(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Dc(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Tc(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Lc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ll=z.createContext(void 0),W=({client:e,children:t})=>(z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,B.jsx)(ll.Provider,{value:e,children:t})),ul=`/assets/styles-ClTsdCs9.css`;function dl(e,t={}){if(typeof window>`u`)return;window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`});let n=e instanceof Response?`Response ${e.status}${e.url?` at ${e.url}`:``}`:e instanceof Error?e.message:String(e);window.__lovableReportRuntimeError?.({message:n,stack:e instanceof Error?e.stack:void 0,filename:window.location.pathname})}var fl={name:`Noah Labhart`,tagline:`Software Architect, Podcast Host, Husband, Father, Outdoorsmen. Jesus Follower.`,roles:[`Startup Founder`,`CTO`,`Podcast Host`,`Software Architect`],verse:`"For the Spirit God gave us does not make us timid, but gives us power, love and self-discipline." — 2 Timothy 1:7`,bio:`I'm passionate about solution architecture. I've held several leadership roles, and gained valuable insights in how to deliver world class software. The sweet spot for me is creating solutions that impact peoples lives, and doing so by applying elegant dev practices, methodologies and building world class teams.`,bio2:`When I'm not being a geek or reading old calculus books, I can be found chasing after my beautiful bride, being chased by my kids, enjoying a good cup o' joe, playing my guitar(s) or being outdoors.`,links:{codeStory:`https://codestory.co/`,indieHackers:`https://indiehackers.com/nlabhart/`,linkedin:`https://www.linkedin.com/in/noahlabhart`,veryable:`https://veryableops.com/`,site:`https://noahlabhart.com/`,interviews:`https://www.listennotes.com/playlists/podcast-interviews-DeONJBILmSK/episodes/?sort_type=recent_added_first`}},pl=[{company:`Veryable`,period:`2016 — Present`,role:`Co-Founder, CTO`,link:`https://veryableops.com/`,linkLabel:`veryableops.com`,description:`Veryable is a marketplace of on-demand labor for manufacturing and warehouse work, which provides businesses with higher productivity and fewer administrative burdens and workers with flexible work arrangements — the ability to choose where to work, how much, and when.`},{company:`Code Story`,period:`2019 — Present`,role:`Podcast Host & Producer`,link:`https://codestory.co/`,linkLabel:`codestory.co`,description:`Code Story is a periodic window into the startup world. In their own words, veterans share what it feels like to disrupt an industry, how to recover from critical mistakes, and what it takes to build — and lead — a team that has y
12our back.`},{company:`Touchtap`,period:`2015 — 2020`,role:`Founder, CEO`,link:`http://touchtap.com/`,linkLabel:`touchtap.com`,description:`Founder and CEO of Touchtap, a digital solutions studio, specializing in creating mobile platforms for startups and entrepreneurs. We build unputdownable apps — that is, we build solutions that your users want to return to day in and day out. We build experiences.`},{company:`Post Boss`,period:`2015 — 2016`,role:`Co-Founder, CEO`,description:`Driving customer engagement through digital media. A digital media arm strengthening online presence through social media, digital marketing, app store optimization and search engine optimization.`},{company:`GLab`,period:`2013 — 2015`,role:`Co-Founder, CTO`,description:`Architecting software for the mobile space. We consolidate worlds, connect the seemingly disconnected and bring ideas to life. We eliminate pain points, challenge the status quo and deliver excellence to the doorstep of your devices.`},{company:`Alcon`,period:`2006 — 2015`,role:`Manager, IT — FTW Manufacturing`,description:`Recruited as manager over Alcon's Fort Worth Mfg. IT Operations, Planning and Production systems group. Responsibilities included ensuring 100% compliance of FDA regulated systems and supporting plant production through deployment and maintenance of SCADA infrastructure.`}],ml=[{name:`Solution Design`,level:100},{name:`iOS Development`,level:99},{name:`Backend Development`,level:95},{name:`Front End Web Development`,level:85},{name:`Android Development`,level:75}],hl=[`Leadership`,`Software Architect`,`Entrepreneur`],gl=[{title:`Interview on Podcast Junkies`,date:`May 2020`,kind:`Podcast`,href:`https://noahlabhart.com/podcast/interview-on-podcast-junkies/`},{title:`Manufacturing Happy Hour w/ Chris Luecke`,date:`Feb 2020`,kind:`Podcast`,href:`https://noahlabhart.com/podcast/manufacturing-happy-hour/`},{title:`Software Sessions w/ Jeremy Jung`,date:`Feb 2020`,kind:`Podcast`,href:`https://noahlabhart.com/uncategorized/software-sessions-w-jeremy-jung/`},{title:`Between 2 Mics — with Zach & Rock`,date:`Feb 2020`,kind:`Podcast`,href:`https://noahlabhart.com/podcast/between-2-mics-with-zach-rock/`},{title:`Product Journey — Podcast Interview`,date:`Jan 2020`,kind:`Podcast`,href:`https://noahlabhart.com/podcast/product-journey-podcast-interview/`},{title:`Plaid + Dwolla + Veryable`,date:`Jan 2020`,kind:`Case Study`,href:`https://noahlabhart.com/uncategorized/plaid-dwolla-veryable/`},{title:`Speaking @ TAMU Tech Summit 2020`,date:`Jan 2020`,kind:`Conference`,href:`https://noahlabhart.com/conference/speaking-tamu-tech-summit-2020/`},{title:`Milestone Hackers Podcast — Guest Appearance`,date:`Jan 2020`,kind:`Podcast`,href:`https://noahlabhart.com/podcast/milestone-hackers-podcast-guest-appearance/`},{title:`TAMU Labhart Tribute`,date:`Nov 2019`,kind:`Feature`,href:`https://noahlabhart.com/uncategorized/tamu-labhart-tribute/`},{title:`Does Not Compute — Episode 198`,date:`Oct 2019`,kind:`Podcast`,href:`https://noahlabhart.com/uncategorized/guest-appearance-does-not-compute-episode-198/`},{title:`5 Questions with Checkr`,date:`Oct 2019`,kind:`Feature`,href:`https://noahlabhart.com/uncategorized/5-questions-with-checkr/`},{title:`Veryable & Dwolla Case Study`,date:`Oct 2019`,kind:`Case Study`,href:`https://noahlabhart.com/uncategorized/veryable-dwolla-case-study/`},{title:`Speaking @ Checkr Forward!`,date:`Oct 2019`,kind:`Conference`,href:`https://noahlabhart.com/conference/speaking-checkr-forward/`},{title:`Code Story has launched!`,date:`Jun 2019`,kind:`Announcement`,href:`https://noahlabhart.com/development/code-story-has-launched-2/`},{title:`Veryable — Southern Expansion`,date:`2017`,kind:`Feature`,href:`https://noahlabhart.com/veryable/veryable-southern-expansion/`}],_l=[{name:`Tanner Hearne`,quote:`Noah brings a great deal of experience that was extremely valuable when we evaluated our mobile app for Musicbed. As we rebuilt from the ground up, his input was invaluable. He is detailed, specific, and always has insight for how we can use the best technologies, lightest weight solutions, and most well-supported frameworks.`},{name:`Travis Gates`,quote:`Noah and his team have been a great partner to me on a number of mobile projects for clients. So easy to work with, and attention to excellence. I highly recommend Noah for any mobile project you may have.`},{name:`Chris Winn`,quote:`Noah is a great developer and a delightful person. I was consistently impressed with his ability to develop and refine new features within our app on time and within budget. We were unable to present him with a challenge that he wasn't able to overcome.`},{name:`Jeremy Blossom`,quote:`Noah is brilliant! He helped our agency build a robust app on time and on budget. From his extreme attention to detail and great communication skills, Noah was a dream to work with. From strategy, design, and execution, he was simply invaluable.`},{name:`Faye Hays`,quote:`Noah was invaluable in helping us make the evolution of our app at Village for Parents a reality. He was communicative, affable, skilled and always willing to help — all qualities that take collaboration with developers to a higher and enjoyable level.`},{name:`Joel Beasley`,quote:`Noah is awesome! Had him on the show to discu
12ss the CTO's role in product growth and representing your brand by plugging yourself in as a thought leader. Noah brings the knowledge!`},{name:`Matt Hopkins`,quote:`Noah is one of the hardest working and thoughtful professionals that I have worked with. He is a skilled communicator who really cares about others and will not shy away from challenges or challenging conversations.`},{name:`Jaymes Downer`,quote:`Working with Noah is a blast! He somehow manages to be the smartest person in the room, while also being the humblest. His knowledge seems to be boundless as he is able to speak confidently to so many aspects of business and technology.`},{name:`Addison Legere`,quote:`Noah is attentive to the projects he manages. He has a great eye for design. Noah is affable which makes him great to work with on projects that require a high level of skill. I highly recommend teaming up with Noah.`},{name:`Raffi Holzer`,quote:`Noah is an excellent iOS developer on both a technical and professional level. He is easy to work with, committed to producing great product, and has an intuition for design. I would work with him again in a heartbeat.`}],vl=`/assets/noah-portrait-CaKJunoU.jpg`,yl=`/assets/nl-logo-C8hQLzZX.png`,bl=`data:image/gif;base64,R0lGODdhyADIAMYAAByGxJTC5Fym1Mzi7DyWzKzW7Hy23Ozy/CySxJzO5Nzu9Gyy1EyizLza7IS+3CyKxNzq9PT6/KTK5Gyu1NTq9EyezKzS5CSOxJTK5GSu1NTm9ESezDSSxOTu9HSy1FSizMTi7Iy+3CSKxGSq1Mzm9ESazLTW7IS63PT2/KTO5MTe7Pz6/DSWzOTy9HS23FSm1IzC3ByKxJTG5Fyq1Mzi9DyazHy63Oz2/Lze7CyOxKzS7JzK5DSSzHSy3FSi1LTa7KTS5Pz+/OTy/IzC5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAyADIAAAH/oBBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAMKHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEOKHEmypMmTKFOqXMmypcuXMGPKLHdARg0ROCf8mMlIBgIRHHgEzSGighCeh26MyJGDAA8CBDg4JXoUKaEJF3g8hcqVBQemK6wK2uGUaw0CZ7l+dTHpAAka/nDj0lChIGOHGTmkcoWa9iwHERok7cgRQ8QFwzgBuDiAcQgBFmbR7oXKIscISTqictjMwasIBzcu0hCAYHLktFER0IiUooRU1ARygG4XAQIJChAijFphY/Ne2Hy55qig+xGQElslxw4Rel3NEgJelJBRFZQKBsl/K9/LAYEOSK317pXdPF0EGwxg0ABhQgCM8p3O58hu+izqzRXgLzre2X7UHMyto0IGOrzgQAALmFACCaCYUAF9ygEn2WYyPNIahLKhsI4MIWjgngonKFCCCcVxckMPeUXlX33bbbZBB46EF2Fss6mzgwwUzFACAilEMEMDYXWiw47BcScVB8D5/sWBA44cxwNkagGonzkmLNDACw3YsAMFJajgSQcTzGeaZh/UIJ5pCJQAQSMyrpghIisIQYEKDZhQgAl24nmnnQ2ooIECJS4SQQck1LnnoXom6qcQQRaiQaJ5mqCDl4LcoAEOkO6pAgmMFSKECzaMAIIGI2TgQXWb7ODVmJpZ4EJUM0K1mQuBItIalHx1V+MgEZBgwg4ujPAgTsQWixMHJczQgwwmKNCoIRSYgEEPL/xl7LU45ZDsCQmo0OkgDhB1LQAfBHGDCSG8QAC2TQnggA4gwKeCCx7IkMICEwTWCamljdldBi2I6Jt2m5XQACP8QYaalISoIIMATOWAgFBH/sJacVDdEcXBAjpMqYAOI3yVl1CwWmyyZggwtYEDKpQXAsUWfzUCCQ58hYBvF1MssQ/qNdoBsAvsAGN8QwTVlXLdNaBbzXoB59UCtRoiY5FvBrFCAhU8MPGZrPrLA1A9EqKBC0w92fXZUAn1wAYSNDfEqpOxUAFeWqENmcgC/BA1KDS80FRwaXU3QguCdFDBwCoGToAJ+yHXInmCpMCDmHF3LWF3BOygYaULGI3252nnsIEOYYVQVmSanS3hfwxQOsoNIdzM6mZKD5LCwDXAtpkA3x4SHpRpMSxECZRPtuKYK252Aqo6YIz8dtpBL9wMFAQRAq6rawfb5TnYgCoo/jg8iLpfCBhA+CAoMJBXkiqmoMitv+mqoQQTa68WZzcjrhYCE1RPCF4skpVmusOZkvmLA4xzzJmAczEDAo4vXjHYKITQG67JCkmuG8QPUoS61AhgTYjgT5FoFBrSdBBlTOFABTZQgsrkRS/dEQAICtEB12zlPpuJWA02UAHXMEV2MzJTDmRwAxiUDDWBE9kFiBIxII7wL+4TRQOiAqHUnKB3g4DYawhGABgk4neRkdIKUhcZ39RrB0D4AZ5SsAMYfCB/HNiABWqVAgcmkQEO2MEOLFAnE1gAAzJYgJksGJsFQMCIhEwNHvUogxvtwAEVkB0DRRBFUChgAQ/AlVqi/tIlRNBAfzh8gb4M4aTHgeYGR7xfCYBQl6SAwAUEDAAWg+AAFjwFiZsZAQ6mJIgVUEAGG2jahDggAA0YUWGS8UsOFrBLQ9zgBx742wMpGYoV6IBk4yMAAoiYiN4gs4xLspVrUCelFthRMzZghAo+IAIXDK0QDkilrBDAoEXcIFwO1OYHSIBI03RnBiBEhAoOhyTu5KCSnqBABqTprzzq8aEQrZnx7veB1UgNOZrU1Q1UsCrd1WAAjLiBCwTgP0OcgD5+KVcjFFRQ/0gFBP30j5kAs4hL9gtpD0AoJyJAFvEwkAAlKEF9guo46SnJBlEToZuYYwEDBq4G51sEng4R/pZabvGCE3BEA4Lpzxzg4Jj+rAAjOgBLf15Ap5ugwQekWdCC3m8zXvEKxjR5vMfEkXGFmFpwyGMBQkrlnYq4weYIEYEUdCCe2JPVBrR6uNN8pQH9pNoMxkq26FHTE0XMgSalx9nnneaCBqBjC7/5FaamUklRjUQHbLAABUiUYDlgbGcm8xUVxPR+AmCEAir7OLRmggbjPKFRPTtC2tZApyIMI2ggoD9Z1WCGkqDBQt15ArjdJ7aN0AHckLaBAYC1SAjI7SLICkoO5BSzMChe/Ppiv+xJhgWKWyaqLkRbKXUAVsnjQIUgI
12QQZfOBrBhCCXqPEy0KsQAYMRctm9hnZ/lyFl7J/g81lOUEDbFJGwX4xWcVK1sCWok4qOyBEwpJJwjFacDMMKOkiIBACH3glZd5jKYnNVD5GgMAHuOMK/xRwWx2LVxG7PfFBO/EpDkIPfwS8mZKTzGQn+hMBIyjpgP8ToA30K78VCAAIDiCEFgihy0LoAAhSMNINyFUrOQjADQYQXNqyYAQWUMCXvdxlMYfgQZuFSg7c+d29Tna8vE0mFDthgoG59YIbEMAHFs3oRjf6BYwWAAM2I9MJsSDEkWshOR2goQmAkjKdIaqog3oWipkNKiIAwqCIROILEoCFoy5Bqe33FRgcoMHz/HEiyJpgVPu2EndpymYHKccW/hj72MhOtrEPYGwNONlIH6BUwvqi0SDIYLZI7AqSuyMUknHtK3NcQQUSjBq5cmYzE7PwRC+wgwhE1j85+DOQYYlMZf6aEg0onksJcIEA7K0RKDjB+lr9nwBkGkMBIgHi3As6v4jgYEGAZSIr97zk5YBxMNiucHSNCF6PacKYgADxZseBGYC0EhQwMuoQwICDwQ9pVRv3xD93vBx8wH8KiA3wOktcg06gLqbbIvnkveuyFukr945EYbPymCdjuhIoCJfQ1eIVTg9ptsqBXBA6kMJDs7fSnN2MCDQ3iB0UULgBPPpXagDxoGsnBxw/xG4Z6vCkQ0IBk4NhzJYZUJRL/qzDQhzRcfp1pK9wehAU+En+Tsaii6FbBBlQcRBSoDGcqWjGtB0gBy6wuEHAAK4C/ArRO46iDoMc6jYAgMQitsTWc+DplrjBCQAgAqa0PmIiAIABjFj7JTJFBDE4AXxWMJhsIeD4504+uo+PgMMMkZdCcEC2LoB85Ss/ZTk4TA0C0EpB2ICJvl8iAMRa0wXQ3va/B4DdHSEERY/g/S6QABvZuIMGFFgSB9CjBBIg//1LYAf/BwQNYAEAOH87kAIyoAJ7cwAWAAPvRxrEcgGtB3zD8X4GkAIa8G9ikwKhEjKF0Xutdxi1twET4AANkFqDQAMAKAH+R394pQgogAMHhniA/ncjkocOAdMBGkgJK6AACgABP+iDsyQWRFiERniESJiESriETNiETviEUBiFUjiFVFiFVniFWJiFWriFXNiFXviFYBiGYjiGZFiGZniGaJiGariGbNiGbviGcBiHcjiHdFiHdniHeJiHeriHfNiHfviHgBiIgjiIhFiIhniIiJiIVhEIADs=`,xl=`/assets/veryable-J1GUDeR5.png`,Sl=`/assets/codestory-UJu6DrtP.jpg`,Cl=`/assets/codestory-mark-BqzTVDVI.png`,wl=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAImUlEQVR42u2d/28a5x3H869ta9N80aR2XVVpqibtl7Sp2qnbGmnt1qztft2kSlMXqfsl2vJDWxtHtU0Tx8Eei4GY4BhjDNQJxgODv2AcwObgOPD2pFTMc+3AHQf33PF66a38ENnRA3rl7nPPPc/nOfMfgD5whq8AEAsQCxALALEAsQCxABALEAsQCwCxALEAsQAQCxALEAsAsQCxALEAEAsQCxALALEAsQCxABALEAsQCwCxALEAsQAQCxALEAsAsQCxALEAEAsQCxALALEAsQCxABALEAuOEN4p+bKFuWzhQ3+iY/4RS4sfFsnsK4gF/0NrHu7V6rdT29fCqYs3AyI/GvH94Ms5vTk76he/e+Vf0esr6V1FrWgNxBpSpta3PwokXp8OG9CoY16ZCF7xRkdXs+mygljOp3l4KO5ZnzxM9kOm0/LO7PJ4crOkaojlTKX+Flm/dGdxkEodu4aJC2SsUEYsh1CoqmOPchfGAlYpdSyi5E+VKohlbz4Nr7341bwkSrXzgst/1Rd/9OQAseyHazX3knxKHcvHgcRasYJY9kCUyZfvLkmu1NGr141YRpSAiCU118Kp50d9drGqnbc8kX+XFMSSkXRZedcbtZ1S7Tw34hO3b8SSi3sbBfE8b1+r2vmDP35QbyCWFIysZh2gVDtvz0SWdkqIZSWK1njv3oqTrGrl4s3Aw+0iYln29PemZ8l5VrUiHkEWtp8g1qCpN5tv9Of9sTw5PxboxS3E0k3RVjNVveScy7+w9QSxBoHaaA6JVe2VXsbqLcTSV1c5/g54Qi0/ZqSWRywd/Dn0eNisauWHI3NhnXMQiNUtN+KZ4bSqlde+Dula8YxYXRErlIfZqvbcKWKZyVqxIv8amMHk88QGYpmD1jz8YyCBUu0ku1vChVgd8GULyHQ0r04+6Gb5FmI9i0K1fs7lR6Zj+Syyjlg9cdUXR6MTFm+N+hY7zWwh1ql8s7ePQ4afEBHrZGqN5svjQQR6RuY39xBLN+PJTdTp5aJlsVi7u7uqqkoo1i9uP0Sdjrm+kpZUrEAg4PF4stmsVFZNJLeQpptcml6UVKyFhQXx59LSktfr3d/fl8EqRWv8zB1Cmi4TOmXBlhRiCarVqtvtTiaTlouV4GFQT355SqUli1gtotHo/fv36/W6hUP63VwMXXRl86Amu1iCg4ODqampra0tS8ZT1RqIojd/WUzaQKz23weDQWYZbJGf31qoak17iCVIpVJ37tzZ2dkZ5HjenokgioF8v2uNvGI9nf6u1cLhcCwWG8xg8ooqT4c0u09oSS3Wd49picT09HSpVOr3YDzpPIoYbodkP7Gezi0pyuzsrLh69XUwv/7nMooY3m3x4P8ntOwhVov19XWhl5CsT4Mx1mOdtOJazdpVLIGmaaKiF4aZPpI5Vor2lt/PxWwsVotQKBQMBpvNJgWWPHl9Otw4smbZlmI9fYLL5ycmJjY3N80aiSMbEg04ypGNh3YVSyCuWJFIRDww1mo1xJIhy/nScbH8fr/XCtbW1np9CVOtCrf29vZ6+Uf2VY3K3dzZrDO9Xzksp1KpiKpL/N8w/C+UVQ0tEOtkcrmcx+MpFouIZVV+NbvsQLFakxHz8/OLi4t6f/GLbzbQovf8ZDzoTLFaxONxn8+nq6IX13C0QKyuXgG53e5MJnPY3WEeiIVYOlhZWRFVV7lcRizEMp9bt251fAWEWIhlhGg0+uwJM8Qyqzt8+xBX54ulqmo4HEYsxDL/VthxfTNicSukeEcsS6cbJicnmW5ALCZIEYtXOmSoxMrlcjMzM7yEtjDvOOwltKioWDYj6bIZFvqx0K8vYllFj0uTl5eXhVXCrd5HwtLkvixNtp1YbKZgM4X5YrH9i+1fJoulaZrb7d7Y2DB9JGxYHd4Nq60t9pVKpU+DoX4fui32NAWhKYj5YrXaGBmb+aTMoo3RCQy+8dp5Gq85vvGaqKimpqZoFWmLJO3SKpLmtjS3NVksa9txK7Tj1h8btONuHSBg7bFN73OAgM5IfYCAREeeFDjyREekPvKEQ5rsG0kPaeJYOVtH3mPl8vm8Kf34TIeDMLuJN7MrqVjSwrxDx0h9dK+0cNh4x3DYuNHHQ07ENHq5QqwOfOCL49D389yoL5IvIZZxClX1nMuPScfyWaTzySCI1QFWlh7Lq5MPml30LUCsDmjNw48DCXx6xkIGxDLIWrHy0lfzKCXyeaLb3QaI1RWxQhmrOj4JIpYRbsQyw2zVa1+HKke2DSKWmfwp9HhI90p8ORfe0bfnALF0UFK1N6bDw2bVhbHAwrbunSyIpQ+10bx8d2l4rDo76n+4bWR/FGLpplirD4lb51z+05ZbIVZ/rlvNpuPviefFHdCoVYjVU731pnOvW8+P+kI9WIVYPaFojd86sfnRxbGAsboKscxkZDXrsFnQzYoJa3oRywTubRR+OuGEVYFX/fGDesOU7wSxzCFdVn7jjdp4idWIz7WaM/ELQSwz+Ws4Jcpe21n1lmdpvaSY+1UgltmzXKpmo1muH9+8fyOWaXZ3MAxiSVF1yb/S5qNAYq9W79M3gFh95NPw2ovy6XXW5f/AF3/05KCvnx2x+stuVRVF8QVp+rl96E+kSpUBfHDEGgSiiHE9yl2+a9lboFcmguLG1z7+FLGcplemrHyykBzwwUnjjzdLqjbgD4tY1jC1vn1tKXWpP2+yxfXpXW90ZDWbLitWfUDEspJ683CvWr+d2r4WTl0cC4gY6zV//tvfveKNXl9J5xXVrNlzxHIOizvFuWxhbqMgquyO+Xss/fSHswVFa8j2QRALEAsQCxALALEAsQCxABALEAsQCwCxALEAsQAQCxALEAsAsQCxALEAEAsQCxALALEAsQCxABALEAsQCwCxALEAsQAQCxALEAsAsQCxALEAEAsQCxALALEAsQCxABALEAscyX8BSuQ7lULm7T8AAAAASUVORK5CYII=`,Tl=`/assets/postboss-B67vsCJ8.png`,El=`/assets/glab-nZyDNQ3Z.png`,Dl=`/assets/m-veryable-app-DpNf8LEr.jpg`,Ol=`/assets/t-Tanner_Hearne-CiT-xYmL.jpg`,kl=`/assets/t-Travis_Gates-JlxyzsSW.jpg`,Al=`/assets/t-Chris_Winn-BLhEKmIr.jpg`,jl=`/assets/t-Jeremy_Blossom-DfVaTmxV.jpg`,Ml=`/assets/t-Faye_Hays-CZaJ3B3H.jpg`,Nl=`/assets/t-Joel-Beasley-BWHVt57K.jpg`,Pl=`/assets/t-Matt-Hopkins-B0ibvaY7.jpg`,Fl=`/assets/t-Jaymes-Downer-D42rP0-V.jpg`,Il=`/assets/t-addison_legere-mrAcJ0tw.jpg`,Ll=`/assets/t-Raffi_Holzer-BW--plNl.jpg`,Rl=`/assets/m-podcast-junkies-CdLifRGo.jpg`,zl=`/assets/m-manufacturing-DX4JogpJ.jpg`,Bl=`/assets/m-software-sessions-Bycj
12HV1q.jpg`,G=`/assets/m-between2mics-B0KgpXwH.jpg`,K=`/assets/m-product-journey-BQo8Zx-6.jpg`,q=`/assets/m-plaid-4KDXhrFU.png`,J=`/assets/m-tamu-D9lIQnGz.jpg`,Y=`/assets/m-milestone-B_uMjok7.jpg`,Vl=`/assets/m-tamu-tribute-BFr1FlfU.jpg`,Hl=`/assets/m-dnc-B-KwgRaf.jpg`,Ul=`/assets/m-checkr-LhJfYrSe.png`,Wl=`/assets/m-dwolla-Y85uNdxd.png`,Gl={portrait:vl,nlLogo:yl,brand:bl,codestoryMark:Cl,veryableApp:Dl},X={Veryable:xl,"Code Story":Sl,Touchtap:wl,"Post Boss":Tl,GLab:El},Kl={"Tanner Hearne":Ol,"Travis Gates":kl,"Chris Winn":Al,"Jeremy Blossom":jl,"Faye Hays":Ml,"Joel Beasley":Nl,"Matt Hopkins":Pl,"Jaymes Downer":Fl,"Addison Legere":Il,"Raffi Holzer":Ll},ql={"Interview on Podcast Junkies":Rl,"Manufacturing Happy Hour w/ Chris Luecke":zl,"Software Sessions w/ Jeremy Jung":Bl,"Between 2 Mics — with Zach & Rock":G,"Product Journey — Podcast Interview":q,"Plaid + Dwolla + Veryable":K,"Speaking @ TAMU Tech Summit 2020":J,"Milestone Hackers Podcast — Guest Appearance":Y,"TAMU Labhart Tribute":Vl,"Does Not Compute — Episode 198":Hl,"5 Questions with Checkr":Ul,"Veryable & Dwolla Case Study":Wl,"Speaking @ Checkr Forward!":Ul,"Code Story has launched!":Sl,"Veryable — Southern Expansion":xl},Jl=[{name:`Leadership`,blurb:`The CTO role, hiring leaders, and how the job changes as the company grows.`,guides:[{slug:`fractional-cto-vs-full-time-cto`,eyebrow:`Guide`,title:`Fractional CTO vs full-time CTO: which does your startup need?`,metaTitle:`Fractional CTO vs Full-Time CTO: How to Choose — Noah Labhart`,description:`A practical comparison of a fractional CTO and a full-time CTO: cost, scope, when each makes sense, and the questions to ask before you hire either one.`,summary:`Hire a fractional CTO when you need senior technical judgment on a handful of decisions and you cannot yet justify an executive salary or equity grant. Hire a full-time CTO when technology is the product, the roadmap runs continuously, and the person needs to build and own a team.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:7,sections:[{heading:`What is a fractional CTO?`,answer:`A fractional CTO is an experienced technical executive who w
12orks with your company part-time — typically 5 to 20 hours a week — on strategy, architecture, hiring and vendor decisions. They are accountable for technical direction, not for shipping every ticket.`,blocks:[{kind:`bullets`,items:[`Engaged on a monthly retainer rather than salary and executive equity.`,`Usually works across two to four companies at once.`,`Best deployed on decisions that are expensive to reverse: data model, auth, integrations, compliance posture.`,`Often paired with an agency or a small in-house team that does the building.`]}]},{heading:`When should you hire a fractional CTO instead of a full-time one?`,answer:`Choose fractional when the volume of technical decisions is lumpy rather than constant: pre-product, during a rebuild, while raising, or when a non-technical founder needs a trustworthy second opinion. The moment your engineering team needs daily direction, the fractional model starts to leak.`,blocks:[{kind:`table`,head:[`Signal`,`Fractional CTO`,`Full-time CTO`],rows:[[`Engineers on staff`,`0–4, or an outside agency`,`3+ and growing`],[`Technology is the product`,`Partly`,`Yes`],[`Cadence of decisions`,`Weekly or monthly`,`Daily`],[`Typical cost`,`$4k–$15k / month retainer`,`$180k–$280k + 1–5% equity`],[`Owns hiring`,`Advises and interviews`,`Owns the plan and the headcount`],[`Time to value`,`Days`,`2–4 months of search, then ramp`]]}]},{heading:`How much does a fractional CTO cost?`,answer:`Most fractional CTO engagements in the US run between $4,000 and $15,000 a month depending on hours and how operational the scope is. That is roughly a quarter to a third of the fully loaded cost of an executive hire, without the equity grant.`,blocks:[{kind:`p`,text:`Compare it against the real alternative, not against zero: a wrong architecture decision at seed stage routinely costs six figures to unwind, and a bad first engineering hire costs a year.`}]},{heading:`What should a fractional CTO be accountable for?`,answer:`Write the engagement down as outcomes, not hours. A good fractional scope names the decisions they own, the artifacts they produce, and the date the arrangement gets re-evaluated.`,blocks:[{kind:`steps`,items:[`A written architecture and platform recommendation with the trade-offs made explicit.`,`A 2–4 quarter technical roadmap tied to the business milestones you are funding against.`,`A hiring plan: roles, sequence, comp bands, interview loop and scorecards.`,`Vendor and build-vs-buy calls with the cost model attached.`,`A security, backup and incident baseline appropriate to your customers.`,`A named exit condition — usually 'first senior engineer hired' or 'Series A closed'.`]}]},{heading:`How do you transition from a fractional CTO to a full-time one?`,answer:`Plan the handoff from the first month. The fractional CTO should be writing decision records the whole time so the incoming full-time leader inherits reasoning, not just a repository.`,blocks:[{kind:`bullets`,items:[`Have the fractional CTO help scope, source and interview their replacement.`,`Keep them on a reduced retainer for 60–90 days after the hire starts.`,`Transfer ownership of accounts, contracts and secrets deliberately, on a checklist.`,`Do not let the fractional CTO become the only person who can deploy.`]}]}],faqs:[{q:`Is a fractional CTO worth it for a pre-seed startup?`,a:`Usually yes, if you are non-technical and building software. A few hours a month of senior judgment on the reversible-versus-irreversible decisions costs far less than rebuilding a product that was architected by whoever was cheapest.`},{q:`Can a fractional CTO write code?`,a:`Some do, but you should not buy them for throughput. Their value is in decisions, architecture and hiring; if you need hands on keyboard, pair them with contract engineers or your first in-house hires.`},{q:`How many hours a week does a fractional CTO work?`,a:`Commonly 5 to 20 hours a week. Below five hours they cannot stay close enough to the context; above twenty you are paying full-time money without full-time commitment.`},{q:`Does a fractional CTO get equity?`,a:`Sometimes a small advisory grant of 0.1–0.5% vesting over one to two years, on top of or partly in place of the retainer. Full executive-level equity should be reserved for a full-time hire.`}],related:[`cto-vs-vp-of-engineering`,`when-to-hire-a-cto`,`technical-due-diligence-checklist`]},{slug:`cto-vs-vp-of-engineering`,eyebrow:`Guide`,title:`CTO vs VP of Engineering: how the two roles actually differ`,metaTitle:`CTO vs VP of Engineering: Roles, Split & Timing — Noah Labhart`,description:`CTO vs VP of Engineering explained: who owns architecture, who owns delivery, when to split the roles, and how to avoid the overlap that breaks engineering teams.`,summary:`A 
12CTO owns technical direction — architecture, platform bets, and the technology story told outside the company. A VP of Engineering owns execution — delivery, process, hiring throughput and team health. One person holds both jobs until roughly 15–40 engineers, then the split becomes urgent.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:6,sections:[{heading:`What is the difference between a CTO and a VP of Engineering?`,answer:`The CTO answers 'what should we build and on what foundation'. The VP of Engineering answers 'how do we reliably ship it with this team'. Both are senior, both are hard, and they optimise for different time horizons.`,blocks:[{kind:`table`,head:[`Dimension`,`CTO`,`VP of Engineering`],rows:[[`Primary output`,`Technical direction and bets`,`Predictable delivery`],[`Time horizon`,`1–3 years`,`1–2 quarters`],[`Owns`,`Architecture, platform, R&D, security posture`,`Roadmap execution, process, managers, on-call`],[`External role`,`Investors, customers, recruiting, press`,`Mostly internal`],[`Fails when`,`Direction drifts or debt compounds`,`Releases slip and attrition rises`],[`Measured by`,`Durability of decisions`,`Throughput, quality, retention`]]}]},{heading:`When should a startup split the CTO and VP of Engineering roles?`,answer:`Split when the same person is being asked to run the week and design the next two years in the same day, and one of the two is losing. In practice that lands somewhere between 15 and 40 engineers, or when you have more than two teams and no engineering managers.`,blocks:[{kind:`bullets`,items:[`You have three or more delivery teams with no manager layer.`,`Architecture reviews are consistently postponed for sprint firefighting.`,`1:1s are getting cancelled; regrettable attrition has started.`,`The founder-CTO is spending more than half their week on hiring logistics.`]}]},{heading:`Which should you hire first?`,answer:`If you already have a technical founder, hire the VP of Engineering first — you need execution capacity, not a second visionary. If your founding team is non-technical, hire a CTO (or a fractional one) first, because someone must own the foundation before there is a team to manage.`},{heading:`How do a CTO and VP of Engineering avoid stepping on each other?`,answer:`Write down who decides what before the second person starts. Ambiguity between these two roles is the single most common cause of an executive departure inside the first year.`,blocks:[{kind:`steps`,items:[`Name the decisions: architecture standards, hiring bar, tooling, roadmap sequencing, on-call policy. Assign each an owner and a consulted party.`,`Agree the escalation path when they disagree — usually the CEO, and rarely.`,`Give them one shared metric (delivered outcomes) and one distinct metric each.`,`Present as one voice to the team, always.`]}]}],faqs:[{q:`Is a VP of Engineering more senior than a CTO?`,a:`No. They are peers with different mandates; the CTO usually sits on the executive team and carries the external technical voice, while the VP of Engineering typically owns the largest headcount.`},{q:`Can one person be both CTO and VP of Engineering?`,a:`Yes, and most startups run that way until 15–40 engineers. The warning sign is when long-horizon work stops happening entirely because the week always wins.`},{q:`Does a CTO manage engineers?`,a:`Early on, all of them. After the split, a CTO often manages a small group — architects, platform, security or R&D — while the VP of Engineering carries the product teams.`}],related:[`fractional-cto-vs-full-time-cto`,`startup-engineering-team-structure`,`scaling-an-engineering-team`]},{slug:`when-to-hire-a-cto`,eyebrow:`Guide`,title:`When to hire a CTO for your startup`,metaTitle:`When to Hire a CTO: Timing, Signals & Comp — Noah Labhart`,description:`When to hire a startup CTO: the signals that you are ready, what the role should own, realistic salary and equity ranges, and how to interview for technical leadership.`,summary:`Hire a CTO when technology is a durable part of your competitive advantage and no one on the founding team can make architecture, hiring and security decisions with confidence. Before that point, a fractional CTO or a strong senior engineer is usually the better spend.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:7,sections:[{heading:`What are the signals that it is time to hire a CTO?`,answer:`The trigger is not revenue or headcount — it is the accumulation of technical decisions nobody is qualified to own. When delays, rewrites and vendor confusion start tracing back to a missing decision-maker, you are late.`,blocks:[{kind:`bullets`,items:[`Contractors are making architecture choices you cannot evaluate.`,`You cannot answer a customer or investor security questionnaire without help.`,`Engineering estimates are consistently wrong by more than 2x and nobody can explain why.`,`You are about to raise, and the technical story is the weakest part of the deck.`,`Your product roadmap depen
12ds on integrations, data or compliance you have never handled.`]}]},{heading:`What should a first CTO own in the first 90 days?`,answer:`A first CTO should leave the first quarter with a written technical strategy, a hiring plan they are executing against, and a fixed short list of things that were broken and are now not.`,blocks:[{kind:`steps`,items:[`Days 1–15: audit the codebase, infrastructure, costs, vendors and security exposure. Write it down.`,`Days 15–45: publish an architecture direction with explicit trade-offs and what you are choosing not to do.`,`Days 30–60: fix the top three risks — usually backups, access control and deployment.`,`Days 45–90: hire or restructure to fit the plan, and establish a delivery cadence the whole company can see.`]}]},{heading:`How much equity and salary does a startup CTO get?`,answer:`A co-founding CTO joining pre-product typically holds 10–35% depending on how much of the company existed before them. A CTO hired after a seed round commonly takes 1–5% with four-year vesting, plus a US salary in the $180k–$280k range.`,blocks:[{kind:`table`,head:[`Stage at hire`,`Typical equity`,`Typical US base`],rows:[[`Pre-product co-founder`,`10–35%`,`Minimal or deferred`],[`Post-pre-seed`,`3–8%`,`$140k–$190k`],[`Post-seed`,`1–5%`,`$180k–$240k`],[`Post-Series A`,`0.5–2%`,`$220k–$300k`]]},{kind:`p`,text:`Ranges vary widely by market and by how much of the risk is already retired. Treat them as a starting point for a conversation, not a benchmark.`}]},{heading:`How do you interview a startup CTO if you are not technical?`,answer:`Do not test knowledge you cannot grade. Test judgment, communication and evidence — ask them to walk you through decisions they made, what they got wrong, and what it cost.`,blocks:[{kind:`bullets`,items:[`"Tell me about an architecture decision you reversed. What was the signal, and what did the reversal cost?"`,`"Explain our product's technical risk to me as if I were an investor."`,`"What would you refuse to build in the first year, and why?"`,`"Walk me through the last three engineers you hired and how they worked out."`,`Then have a trusted outside engineer run a two-hour architecture deep-dive and report back in plain language.`]}]}],faqs:[{q:`Do you need a CTO to raise a seed round?`,a:`Not always, but you need a credible answer for who owns technology. Many investors will accept a strong technical co-founder or a named fractional CTO with a hiring plan attached.`},{q:`Should a first-time founder hire a CTO or a senior engineer?`,a:`If the work is mostly known and needs building, a strong senior engineer delivers more per dollar. If the work involves ambiguous architecture, compliance or team building, you need the CTO-level judgment.`},{q:`What does a startup CTO do day to day?`,a:`Early on: writing code, designing systems, interviewing, and answering customer security questions. Later: architecture review, hiring, budget and vendor decisions, and unblocking the team.`}],related:[`fractional-cto-vs-full-time-cto`,`cto-vs-vp-of-engineering`,`hiring-your-first-engineers`]},{slug:`scaling-an-engineering-team`,eyebrow:`Guide`,title:`Scaling an engineering team from 5 to 50`,metaTitle:`Scaling an Engineering Team from 5 to 50 — Noah Labhart`,description:`How to scale a startup engineering team from 5 to 50 people: when to add managers, how communication breaks, what process to add at each size, and what to leave alone.`,summary:`Engineering teams break at predictable sizes — around 8, around 20 and around 50 — and each break is a communication problem before it is a process problem. Add structure one step ahead of the pain, and add only the process that removes a specific failure you can name.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:8,sections:[{heading:`Where do engineering teams break as they grow?`,answer:`The breakpoints are social, not technical. At about eight people one person can no longer hold every context; at about twenty informal coordination collapses; at about fifty you are running an organisation of teams rather than a team.`,blocks:[{kind:`table`,head:[`Size`,`What breaks`,`What to add`],rows:[[`1–7`,`Nothing yet — speed is the advantage`,`Source control hygiene, deploys, on-call basics`],[`8–15`,`One person can't review everything`,`Two teams, code ownership, written decisions`],[`16–30`,`Hallway coordination fails`,`Engineering managers, roadmap rituals, on-call rotation`],[`31–50`,`Cross-team dependencies stall delivery`,`Platform team, architecture review, career ladder`]]}]},{heading:`When should you hire your first engineering manager?`,answer:`Hire or promote the first engineering manager at roughly 8–12 engineers, or as soon as the person doing 1:1s is regularly cancelling them. Managing more than seven direct reports well while also building is not a thing anyone does sustainably.`,blocks:[{kind:`p`,text:`Promoting from within works when the candidate already does the job informally — mentoring, unblocking, mediating. It fails when you promote your strongest individual contributor purely as a reward, and lose both a great engineer and a happy person.`}]},{heading:`How much process should a growing engineering team have?`,answer:`Add process only in response to a failure you can name out loud. Every ritual should have an owner, a purpose and an expiry review; the ones nobody can justify get deleted.`,blocks:[{kind:`steps`,items:[`Name the failure: 'we shipped a regression to production three Fridays in a row'.`,`Add the smallest countermeasure that would have caught it.`,`Give it an owner and a date to re-evaluate.`,`Delete it if the failure has stopped happening for another reason.`]}]},{heading:`How do you keep quality from falling as headcount rises?`,answer:`Quality falls when the number of people exceeds the reach of the standards. Encode the standards in tooling — tests, CI gates, templates, defaults — so that new hires inherit them without needing to absorb them from a senior engineer.`,blocks:[{kind:`bullets`,items:[`Make the paved path the easy path: project templates, shared libraries, one-command local setup.`,`Gate on automation, not opinion — linting, tests and security checks in CI.`,`Keep a decision log so architectural context survives turnover.`,`Track a small set of health metrics and read them monthly, not daily.`]}]},{heading:`What should stay the same as you scale?`,answer:`Protect the two things that made the team fast at five people: short distance between problem and decision, and engineers who talk to customers. Most scaling damage comes from inserting layers between those two.`}],faqs:[{q:`What is a good engineer-to-manager ratio?`,a:`Five to eight engineers per manager is the sustainable range. Below four the manager tends to micromanage or slip back into full-time coding; above eight, 1:1 quality and hiring both suffer.`},{q:`Should engineers be organised by product or by technology layer?`,a:`Organise by product or customer outcome wherever possible. Layer-based teams (frontend team, backend team) create handoffs and make every meaningful feature a cross-team negotiation.`},{q:`How fast can you hire engineers without breaking the team?`,a:`A common rule of thumb is not to grow a team by more than roughly a third per quarter. Onboarding capacity, not candidate supply, is usually the real limit.`}],related:[`startup-engineering-team-structure`,`engineering-metrics-that-matter`,`cto-vs-vp-of-engineering`]}]},{name:`Teams`,blurb:`Structuring, hiring and measuring an engineering organisation.`,guides:[{slug:`startup-engineering-team-structure`,eyebrow:`Guide`,title:`Startup engineering team structure that actually ships`,metaTitle:`Startup Engineering Team Structure: Models & Timing — Noah Labhart`,description:`How to structure a startup engineering team: the models that work at 5, 15 and 40 engineers, how to split teams, and the org mistakes that quietly slow delivery.`,summary:`Structure a startup engineering team around customer outcomes, not technology layers. One cross-functional team until roughly ten engineers, then split by product area with clear ownership, and add a platform team only when duplicated infrastru
12cture work becomes the bottleneck.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:7,sections:[{heading:`What is the best engineering team structure for a startup?`,answer:`For most startups it is a small number of durable, cross-functional teams that each own a slice of the product end to end — interface, service, data and on-call. Durable ownership beats project-based reshuffling because context is the scarcest resource on an engineering team.`,blocks:[{kind:`table`,head:[`Engineers`,`Structure`,`Ownership model`],rows:[[`1–9`,`One team`,`Everyone owns everything; the CTO arbitrates`],[`10–20`,`2–3 product teams`,`Each team owns a product area and its services`],[`21–40`,`Product teams + platform`,`Platform owns paved paths; product owns outcomes`],[`40+`,`Groups of teams`,`Managers of managers; explicit interfaces between groups`]]}]},{heading:`Should you organise by feature or by technology layer?`,answer:`By feature, nearly always. A frontend team and a backend team turn every user-visible change into a cross-team dependency, two backlogs and a scheduling problem.`,blocks:[{kind:`bullets`,items:[`Feature teams can ship a customer outcome without asking permission.`,`Layer teams optimise their own throughput while total delivery slows.`,`Specialists (mobile, data, security) can be embedded in feature teams or pooled as a guild.`,`If you must run a layer team, give it a service-level commitment to the teams that depend on it.`]}]},{heading:`How big should a startup engineering team be?`,answer:`Four to eight engineers per team, with a product partner and a designer attached. Below four the team cannot absorb vacations and on-call; above eight the standup stops being useful and coordination overhead grows faster than output.`}
12,{heading:`When do you need a platform or infrastructure team?`,answer:`When two or more product teams are independently solving the same infrastructure problem, and that duplication is costing more than a dedicated team would. Usually somewhere between 20 and 30 engineers.`,blocks:[{kind:`p`,text:`Charter it as a product team whose customers are internal engineers. If it becomes a ticket queue that gatekeeps deploys, it has failed — the measure is how often product teams can self-serve.`}]},{heading:`What are the most common startup engineering org mistakes?`,answer:`The recurring ones are structural, not personal: reorganising too often, splitting teams before there are enough people to fill them, and leaving ownership of critical systems undefined.`,blocks:[{kind:`steps`,items:[`Reorganising more than about once a year — each reorg costs a quarter of momentum.`,`Creating a team of one and calling it ownership.`,`Leaving a legacy service with no named owner until it fails at 2am.`,`Hiring managers before there is anyone to manage.`,`Letting the roadmap be assigned to individuals instead of to teams.`]}]}],faqs:[{q:`How many engineers does a startup need to launch an MVP?`,a:`Two to four is typical for a focused MVP. Beyond that, coordination cost usually cancels out the added capacity before the product has found its shape.`},{q:`Do startups need QA engineers?`,a:`Not usually as a separate gate early on. Invest in automated tests owned by the engineers writing the code, and add dedicated quality engineering when the surface area or regulatory risk demands it.`},{q:`Should product managers be embedded in engineering teams?`,a:`Yes. A durable team with an embedded product partner makes decisions in minutes that a shared PM makes in a weekly meeting.`}],related:[`scaling-an-engineering-team`,`hiring-your-first-engineers`,`engineering-metrics-that-matter`]},{slug:`hiring-your-first-engineers`,eyebrow:`Guide`,title:`How to hire your first engineers`,metaTitle:`How to Hire Your First Startup Engineers — Noah Labhart`,description:`A hiring guide for your first engineering hires: who to hire first, how to run a fair interview loop, what to pay, and the mistakes that cost a startup a year.`,summary:`Hire your first engineers for slope and range rather than for stack familiarity: people who learn fast, work close to customers, and can own a problem end to end. Run a short, consistent loop built around real work, and make the decision on evidence rather than on rapport.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:8,sections:[{heading:`Who should be your first engineering hire?`,answer:`A generalist senior engineer who has shipped a product to real users and is comfortable with ambiguity. Specialists are a later-stage optimisation; your first hires will touch infrastructure, backend, frontend and customer conversations in the same week.`,blocks:[{kind:`bullets`,items:[`Range over depth: can they operate two levels outside their comfort zone?`,`Evidence of shipping, not just of building — did users get it?`,`Comfort with unfinished context; startups do not come with specifications.`,`Willingness to talk to customers directly.`]}]},{heading:`What does a good startup interview loop look like?`,answer:`Four hours total, four stages, the same questions for every candidate, and a written scorecard per stage before anyone discusses the candidate. Consistency is what makes a small loop fair and predictive.`,blocks:[{kind:`steps`,items:[`Screen (30 min): motivation, range, comp alignment. Founder or hiring manager.`,`Technical conversation (60 min): walk through a system they built and interrogate the trade-offs.`,`Practical exercise (90 min, paid if take-home): a scoped, realistic problem from your actual domain — no algorithm trivia.`,`Team and values (45 min): how they handle disagreement, feedback and failure.`,`Debrief within 24 hours; written scorecards submitted before the discussion starts.`]}]},{heading:`How do you assess engineers without a big-company interview process?`,answer:`Grade for judgment, not recall. The strongest signal at startup scale is watching someone reason through a messy, real problem from your product while you observe how they ask questions.`,blocks:[{kind:`table`,head:[`Signal`,`How to test it`,`What good looks like`],rows:[[`Judgment`,`Ask what they would not build and why`,`Names the trade-off and the cost of being wrong`],[`Ownership`,`Walk through a production incident they handled`,`Talks about detection and prevention, not blame`],[`Communication`,`Have them explain a system to a non-engineer`,`No jargon; checks for understanding`],[`Learning speed`,`Introduce an unfamiliar constraint mid-exercise`,`Adapts the approach instead of defending it`]]}]},{heading:`What should you pay your first engineers?`,answer:`Pay at or slightly below market cash with meaningful early equity, and be transparent about the trade. Under-paying without equity is how you end up with the candidates n
12obody else wanted.`,blocks:[{kind:`p`,text:`Publish bands internally from the first hire. Retrofitting fairness after four ad-hoc offers is far more expensive than starting with a simple, defensible structure.`}]},{heading:`How do you onboard an engineer so they are productive quickly?`,answer:`The goal is a merged, deployed change on day one and a meaningful feature by the end of week two. If that is impossible, the onboarding problem is really a tooling problem.`,blocks:[{kind:`bullets`,items:[`One-command local environment, documented and tested by the last person hired.`,`A named buddy for the first 30 days.`,`A starter task that is real, small and shippable.`,`Customer exposure in week one — a support queue day or three recorded calls.`]}]}],faqs:[{q:`Should a startup hire junior engineers?`,a:`Only once there is someone with the time to mentor them and standards encoded in tooling. Juniors are a great investment at 10+ engineers and a serious risk as the first hire.`},{q:`Are take-home assignments still acceptable?`,a:`Yes if they are short, scoped to under two hours, based on real work, and paid. Anything longer disproportionately screens out experienced candidates with families and jobs.`},{q:`How long should hiring a startup engineer take?`,a:`From first contact to offer, two weeks is a competitive target. Great candidates are usually in three processes at once, and speed is a real advantage a small company has.`},{q:`Should you hire contractors or employees first?`,a:`Contractors are good for bounded, well-understood work. Anything that requires accumulating product context — which is most early engineering — should be an employee.`}],related:[`startup-engineering-team-structure`,`scaling-an-engineering-team`,`when-to-hire-a-cto`]},{slug:`engineering-metrics-that-matter`,eyebrow:`Guide`,title:`Engineering metrics that matter (and the ones that don't)`,metaTitle:`Engineering Metrics That Matter for Startups — Noah Labhart`,description:`Which engineering metrics to track at a startup: DORA metrics, quality and reliability signals, what they tell you, and why measuring individual output backfires.`,summary:`Track a small set of team-level metrics: deployment frequency, lead time for changes, change failure rate and time to restore, plus one customer-facing reliability measure. Never measure individual engineers by commits, lines or story points — those numbers are trivially gamed and destroy trust.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:6,sections:[{heading:`What engineering metrics should a startup track?`,answer:`Start with the four DORA delivery metrics plus one reliability measure your customers would recognise. Five numbers, reviewed monthly, will tell you more than a dashboard of thirty.`,blocks:[{kind:`table`,head:[`Metric`,`What it tells you`,`A healthy early-stage target`],rows:[[`Deployment frequency`,`Batch size and confidence in the pipeline`,`Daily or better`],[`Lead time for changes`,`Friction between idea and production`,`Under a day for a small change`],[`Change failure rate`,`Whether speed is costing you quality`,`Under 15%`],[`Time to restore service`,`Operational maturity`,`Under an hour`],[`Customer-visible availability`,`What users actually experience`,`Agreed with the business, then met`]]}]},{heading:`Why shouldn't you measure individual developer productivity?`,answer:`Individual output metrics measure the visible part of a collaborative job and punish the invisible parts — review, mentoring, deleting code, preventing work. Once a number affects someone's rating, it stops describing reality.`,blocks:[{kind:`bullets`,items:[`Lines of code rewards verbosity and punishes deletion.`,`Commit counts reward noise.`,`Story points are an estimation aid, not a unit of value.`,`Ticket throughput rewards splitting work rather than finishing it.`]}]},{heading:`How do you measure engineering quality?`,answer:`Measure escaped defects and their cost, not test coverage percentage. Coverage tells you what was executed; escaped defects tell you what your customers had to live with.`,blocks:[{kind:`bullets`,items:[`Defects reported by customers per release.`,`Percentage of incidents caused by a change made in the last 24 hours.`,`Time spent on unplanned work as a 
12share of the sprint.`,`Flaky test rate — a leading indicator that the suite is about to be ignored.`]}]},{heading:`How should you review engineering metrics with the team?`,answer:`Review them monthly, with the team present, as inputs to a conversation rather than as a verdict. The useful question is always 'what changed and what should we try', never 'who is responsible for this line going down'.`}],faqs:[{q:`What are the DORA metrics?`,a:`Four measures of software delivery performance from the DevOps Research and Assessment program: deployment frequency, lead time for changes, change failure rate, and time to restore service.`},{q:`Is velocity a useful engineering metric?`,a:`Only inside one team, for their own planning, and only as a trend. Comparing velocity between teams is meaningless because points are not a shared unit.`},{q:`How many engineering metrics should you track?`,a:`Roughly five. Enough to see delivery, quality and reliability; few enough that everyone on the team can recite them.`}],related:[`scaling-an-engineering-team`,`managing-technical-debt`,`startup-engineering-team-structure`]}]},{name:`Building`,blurb:`Architecture, MVPs, vendors, diligence and technical debt.`,guides:[{slug:`choosing-a-tech-stack-for-a-startup`,eyebrow:`Guide`,title:`How to choose a tech stack for a startup`,metaTitle:`How to Choose a Startup Tech Stack — Noah Labhart`,description:`A decision framework for choosing a startup tech stack: what actually matters, which choices are reversible, and how to avoid the rewrite that eats your Series A.`,summary:`Choose the boring, well-supported stack your team can hire for and debug at 2am. The only choices worth agonising over are the ones that are expensive to reverse — your data model, your authentication boundary and your core integrations; everything else can be swapped later.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:7,sections:[{heading:`What tech stack should a startup use?`,answer:`Use the stack your founding engineers are fastest in, provided it has a large hiring pool, a mature ecosystem and a managed hosting story. Novelty is a cost you pay every day and a benefit you collect almost never.`,blocks:[{kind:`bullets`,items:[`Hiring pool: can you find ten qualified people within 50 miles or in your time zone?`,`Ecosystem: are auth, payments, queues and observability solved problems here?`,`Operability: can one engineer run it in production without a platform team?`,`Escape hatches: how hard is it to move off if you are wrong?`]}]},{heading:`Which technical decisions are hard to reverse?`,answer:`Roughly four: your data model, your identity and permissions boundary, your primary datastore's consistency guarantees, and any integration your customers can see. Everything else — CSS framework, hosting provider, even language for a new service — is comparatively cheap to change.`,blocks:[{kind:`table`,head:[`Decision`,`Reversibility`,`How much to deliberate`],rows:[[`Data model`,`Very hard`,`Days of thought; get a second opinion`],[`Auth / permissions boundary`,`Hard`,`Days; write it down`],[`Primary database`,`Hard`,`A day; default to PostgreSQL`],[`Public API shape`,`Hard once customers use it`,`Version it from day one`],[`Frontend framework`,`Moderate`,`Hours`],[`Hosting / CI provider`,`Easy`,`Minutes`],[`CSS framework, linting, formatting`,`Trivial`,`Pick one and stop talking`]]}]},{heading:`Should a startup use microservices?`,answer:`Almost never at the start. A well-structured single deployable — a modular monolith — gives a small team faster iteration, simpler debugging and one place to look when something breaks.`,blocks:[{kind:`p`,text:`Split a service out when there is a concrete forcing function: a different scaling profile, a different compliance boundary, or a team that genuinely needs an independent release cadence. 'It's cleaner' is not a forcing function.`}]},{heading:`How do you evaluate a new framework or vendor?`,answer:`Score it against operability and exit cost before features. The question is not 'is this good' but 'what happens to us if this is abandoned, priced up 4x, or the wrong fit in eighteen months'.`,blocks:[{kind:`steps`,items:[`Prototype the riskiest use case in a day, not the easy one from the docs.`,`Read the last three months of issues and release notes.`,`Price it at 10x your current volume.`,`Write down the exit plan before you adopt it.`,`Record the decision, the alternatives and the reasoning in a one-page decision record.`]}]}],faqs:[{q:`Is it bad to build a startup on a monolith?`,a:`No — it is usually the right call. Most companies that regret their architecture regret premature distribution far more than they regret a monolith they later split deliberately.`},{q:`Should startups use serverless?`,a:`It is an excellent default for spiky, event-driven workloads and for teams without operations depth. Watch for cost at sustained high volume and for local development ergonomics.`},{q:`How often should a startup rewrite its stack?`,a:`Rewrites should be rare and incremental. Strangle the old system component by component behind a stable interface rather than freezing features for a big-bang replacement.`}],related:[`mvp-development-guide`,`build-vs-buy-software`,`managing-technical-debt`]},{slug:`mvp-development-guide`,eyebrow:`Guide`,title:`MVP development: how to build the right first version`,metaTitle:`MVP Development Guide for Startup Founders — Noah Labhart`,description:`How to scope, build and validate a startup MVP: what to cut, realistic timelines and costs, which shortcuts are safe, and how to know when the MVP is done.`,summary:`An MVP is the smallest thing that lets a real user complete a real job and lets you learn something you cannot learn by asking. Scope it to one workflow, one user type and one measurable outcome, and aim to have it in front of customers in eight to twelve weeks.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:7,sections:[{heading:`What should an MVP include?`,answer:`One complete workflow for one type of user, end to end, with nothing decorative around it. If a feature does not sit on the path between the user's problem and their outcome, it is ver
12sion two.`,blocks:[{kind:`bullets`,items:[`The single job the customer is hiring your product to do.`,`Enough authentication and data protection to be honest with a real customer.`,`A way to observe what users actually did — analytics and error reporting.`,`A manual back door: humans can do the hard part behind the scenes at first.`]}]},{heading:`What can you safely leave out of an MVP?`,answer:`Most of the admin surface, most configuration, and nearly all generality. Manual work performed by your team is a legitimate substitute for software until the volume proves the feature is worth building.`,blocks:[{kind:`table`,head:[`Commonly built too early`,`Do this instead`],rows:[[`Admin dashboard`,`Query the database directly for the first weeks`],[`Self-serve billing`,`Invoice manually until you have ten paying customers`],[`Roles and permissions`,`One role, until a customer needs a second`],[`Native mobile apps`,`Responsive web, unless mobile is the product`],[`Integrations marketplace`,`Two integrations that specific customers named`],[`Multi-tenancy at scale`,`Correct data isolation, simple implementation`]]}]},{heading:`How long should an MVP take to build?`,answer:`Eight to twelve weeks with two to four engineers is a realistic target for most software products. If the plan is longer than a quarter, the scope is a version one, not a minimum viable product.`,blocks:[{kind:`p`,text:`Timebox first, scope second. Fix the date and negotiate what fits inside it; the reverse — fixing the scope and negotiating the date — is how MVPs turn into eighteen-month projects.`}]},{heading:`Which MVP shortcuts create real technical debt?`,answer:`Shortcuts in the interface, in generality and in automation are cheap. Shortcuts in the data model, in access control and in anything touching money or personal data are expensive and sometimes unrecoverable.`,blocks:[{kind:`steps`,items:[`Safe: hardcode configuration, skip admin tooling, defer performance work, use managed services generously.`,`Risky: an incoherent data model, no migration path, no tests around money.`,`Never: storing credentials or personal data carelessly, or skipping backups.`]}]},{heading:`How do you know the MVP is done?`,answer:`It is done when a user outside your company completes the core workflow without you in the room, and you can see whether it worked. Not when the backlog is empty — the backlog is never empty.`}],faqs:[{q:`How much does it cost to build an MVP?`,a:`With a small in-house team, a twelve-week MVP typically costs the equivalent of two to four engineer-quarters. Agency pricing for comparable scope commonly lands between $60k and $200k depending on domain complexity.`},{q:`Should a founder outsource MVP development?`,a:`It can work when the scope is well understood and someone technical on your side owns the architecture decisions. Without that, you inherit a codebase nobody can extend.`},{q:`What is the difference between an MVP and a prototype?`,a:`A prototype answers a design or feasibility question and can be thrown away. An MVP is used by real customers to do real work, so it needs real data handling and real reliability.`}],related:[`choosing-a-tech-stack-for-a-startup`,`build-vs-buy-software`,`managing-technical-debt`]},{slug:`build-vs-buy-software`,eyebrow:`Guide`,title:`Build vs buy: a decision framework for technical leaders`,metaTitle:`Build vs Buy Software: A Decision Framework — Noah Labhart`,description:`When to build software in-house and when to buy it: a build vs buy framework covering total cost of ownership, differentiation, switching costs and vendor risk.`,summary:`Build what customers pay you for; buy everything else. If a capability is not part of your differentiation, the total cost of owning it — maintenance, on-call, security and opportunity cost — will almost always exceed the licence fee.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:6,sections:[{heading:`When should you build software instead of buying it?`,answer:`Build when the capability is a source of competitive advantage, when no vendor fits your workflow without contorting it, or when the vendor economics break at your scale. Otherwise buy, and spend the saved time on the part customers actually pay for.`,blocks:[{kind:`table`,head:[`Factor`,`Lean build`,`Lean buy`],rows:[[`Differentiation`,`Customers choose you for this`,`Table stakes`],[`Fit`,`No vend
12or matches the workflow`,`Several mature options`],[`Scale economics`,`Vendor cost grows faster than revenue`,`Cost is flat or sub-linear`],[`Compliance / data residency`,`Hard requirements vendors can't meet`,`Vendor is already certified`],[`Team capacity`,`You have the people and the on-call`,`Team is already the bottleneck`]]}]},{heading:`What is the true cost of building software in-house?`,answer:`Take your engineering estimate and add ongoing maintenance at roughly 15–25% of the build cost per year, plus on-call, security patching, documentation and the features you did not ship instead. That last item is usually the largest and the least counted.`,blocks:[{kind:`steps`,items:[`Estimate the build in engineer-weeks and multiply by fully loaded cost.`,`Add annual maintenance at 15–25% of build cost, forever.`,`Add operations: monitoring, on-call, incident response, upgrades.`,`Add the opportunity cost of the roadmap items displaced.`,`Compare that five-year total against the vendor's five-year price with growth assumptions.`]}]},{heading:`How do you reduce vendor lock-in when you buy?`,answer:`Isolate the vendor behind your own interface and keep a copy of your data. Lock-in is rarely about the contract; it is about how many places in your codebase know the vendor's name.`,blocks:[{kind:`bullets`,items:[`Wrap the vendor in an internal adapter with your own domain language.`,`Export your data on a schedule and verify the export is restorable.`,`Avoid proprietary data formats for anything you must keep.`,`Negotiate price protection and an exit assistance clause up front.`]}]},{heading:`What should you almost never build yourself?`,answer:`Authentication, payments, email delivery, observability, and anything cryptographic. These are solved, heavily attacked problems where a mature vendor is safer and cheaper than your own second-best implementation.`}],faqs:[{q:`Is buying software always faster than building it?`,a:`Not always — integration and data migration can take longer than a naive build. But the vendor's timeline is bounded, whereas a build has an unbounded maintenance tail.`},{q:`When does it make sense to replace a vendor with in-house software?`,a:`When the vendor's cost is growing faster than the revenue it supports, when their roadmap has diverged from your needs, or when the capability has become part of your differentiation.`},{q:`How do you justify a build vs buy decision to a board?`,a:`Present a five-year total cost of ownership for both paths, the differentiation argument, and the risk of each. Boards accept 'we build what we sell and buy the rest' quickly when the numbers are attached.`}],related:[`choosing-a-tech-stack-for-a-startup`,`technical-due-diligence-checklist`,`managing-technical-debt`]},{slug:`technical-due-diligence-checklist`,eyebrow:`Guide`,title:`Technical due diligence checklist for startups`,metaTitle:`Technical Due Diligence Checklist for Startups — Noah Labhart`,description:`A technical due diligence checklist for founders and investors: what reviewers examine across architecture, security, team and process, and how to prepare before a raise.`,summary:`Technical due diligence assesses whether the technology can support the plan the company is raising against. Reviewers look at architecture and scalability, code and delivery practice, security and compliance, key-person risk, and the credibility of the roadmap and its costs.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:8,sections:[{heading:`What is technical due diligence?`,answer:`It is a structured review — usually one to three weeks, run by an investor's technical advisor or an acquirer — of whether your technology, team and practices can deliver the business plan. It is a risk assessment, not a code beauty contest.`},{heading:`What do investors look at in technical due diligence?`,answer:`Five areas, in roughly this order of weight: architecture fit for the plan, security and data handling, engineering practice, key-person and dependency risk, and cost trajectory.`,blocks:[{kind:`table`,head:[`Area`,`What they ask`,`Common red flag`],rows:[[`Architecture`,`Will this support 
1210x usage?`,`No answer beyond 'add servers'`],[`Security`,`Who can access customer data?`,`Shared credentials, no audit trail`],[`Delivery`,`How often do you deploy and how do you roll back?`,`Manual quarterly releases`],[`Team`,`What happens if one person leaves?`,`One engineer owns everything`],[`Cost`,`What is your infrastructure cost per customer?`,`Nobody has calculated it`],[`IP & licensing`,`Do you own the code?`,`Contractor agreements without IP assignment`]]}]},{heading:`How should a founder prepare for technical due diligence?`,answer:`Assemble the evidence before you are asked. A prepared data room turns a three-week interrogation into a one-week confirmation, and reviewers read preparation as a signal of operational maturity.`,blocks:[{kind:`steps`,items:[`An architecture diagram, current and one-year target, with the reasoning attached.`,`A dependency and vendor list with costs, contracts and renewal dates.`,`Access control policy: who can reach production and customer data, and how it is reviewed.`,`Incident history with post-mortems and what changed afterwards.`,`Backup and restore evidence — including the date you last tested a restore.`,`Signed IP assignment for every employee and contractor who touched the code.`,`A prioritised technical debt register with cost estimates. Honesty here builds more trust than a clean-looking codebase.`]}]},{heading:`What are the most common technical due diligence red flags?`,answer:`Concentration risk and undocumented dependence. A single engineer who is the only person able to deploy, or a critical vendor with no contract, worries reviewers far more than legacy code.`,blocks:[{kind:`bullets`,items:[`No backups, or backups never tested.`,`Customer data accessible to every employee.`,`Open-source licences incompatible with commercial distribution.`,`No source control history or a repository owned by a personal account.`,`Security questionnaires answered by someone who cannot explain the answers.`]}]},{heading:`How long does technical due diligence take?`,answer:`One to two weeks for a seed or Series A review; three to six weeks for a growth round or an acquisition, where code and licence scanning are usually added. Preparation is the main variable you control.`}],faqs:[{q:`Do seed-stage startups go through technical due diligence?`,a:`Lightly — often a single call with a technical partner or advisor. The depth increases sharply from Series A onward, and again at acquisition.`},{q:`Will investors read our source code?`,a:`Sometimes a sample, and increasingly an automated scan for licences, secrets and vulnerabilities. Most of the assessment comes from conversation and artifacts rather than from reading code line by line.`},{q:`Should you disclose technical debt during diligence?`,a:`Yes. A quantified, prioritised debt register with a plan reads as competence; debt discovered by the reviewer reads as either ignorance or concealment.`}],related:[`build-vs-buy-software`,`managing-technical-debt`,`when-to-hire-a-cto`]},{slug:`managing-technical-debt`,eyebrow:`Guide`,title:`Managing technical debt without stopping the roadmap`,metaTitle:`How to Manage Technical Debt at a Startup — Noah Labhart`,description:`How to identify, quantify and pay down technical debt at a startup without freezing the roadmap — including how to explain the trade-off to non-technical stakeholders.`,summary:`Treat technical debt as a cost line, not a moral failing: quantify what each item costs you per month in slowed delivery, incidents or risk, then pay down the expensive ones continuously. A steady 10–20% of capacity beats an annual cleanup sprint that never gets scheduled.`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:6,sections:[{heading:`What is technical debt, really?`,answer:`Technical debt is the ongoing interest you pay for a past decision that no longer fits — deliberate shortcuts, decisions overtaken by scale, or code that outlived its assumptions. Not all of it is worth repaying; debt in a part of the system nobody touches costs nothing.`},{heading:`How do you quantify technical debt?`,answer:`Convert each item into a monthly cost: engineer-hours lost, incidents caused, or risk exposure. Once debt has a number attached, prioritising it stops being an argument between engineering and product.`,blocks:[{kind:`table`,head:[`Debt item`,`Interest paid monthly`,`Repay?`],rows:[[`Flaky test suite`,`~20 engineer-hours of reruns and mistrust`,`Yes, immediately`],[`Manual deploy process`,`~10 hours + release-day risk`,`Yes`],[`Legacy admin tool nobody touches`,`0`,`No — leave it`],[`Unversioned public API`,`Blocks every change customers can see`,`Yes, before more customers`],[`Duplicated onboarding logic`,`Two places to fix each bug`,`When it next causes a bug`]]}]},{heading:`How much capacity should go to paying down debt?`,answer:`Ten to twenty percent of engineering capacity, continuously, attached to the features that touch the same code. Debt paid down alongside feature work is cheap; debt paid down in a dedicated project competes with revenue and loses.`},{heading:`How do you explain technical debt to a CEO or board?`,answer:`Speak in delivery speed and risk, never in code quality. 'This change costs us three extra weeks per quarter and caused two of our last four incidents' gets funded; 'the code is messy' does not.`,blocks:[{kind:`bullets`,items:[`Tie each item to a business consequence: slower launches, incidents, security exposure, or hiring difficulty.`,`Offer options with costs, not a single demand.`,`Show the trend after you fix something — earned credibility funds the next one.`]}]},{heading:`When is a rewrite the right answer?`,answer:`Rarely, and almost never all at once. Prefer strangling the old system: put a stable interface in front of it and replace it component by component while it keeps serving customers.`,blocks:[{kind:`steps`,items:[`Define the interface the rest of the system will depend on.`,`Route traffic through it while the old implementation still serves.`,`Replace one component at a time, behind feature flags.`,`Delete the old path as soon as it is unused — an unremoved old path is new debt.`]}]}],faqs:[{q:`Is technical debt always bad?`,a:`No. Deliberate, documented shortcuts that buy you speed to a validated product are good business. The problem is undocumented debt that nobody chose and nobody is tracking.`},{q:`Should you schedule dedicated tech debt sprints?`,a:`Occasionally, for large, indivisible items. As a default policy they get cancelled the first time a customer commitment slips, which is why continuous allocation works better.`},{q:`Who decides what technical debt gets paid down?`,a:`Engineering proposes with costs attached; the CTO or VP of Engineering prioritises alongside the roadmap. It should be a portfolio decision, not an individual engineer's side project.`}],related:[`engineering-metrics-that-matter`,`choosing-a-tech-stack-for-a-startup`,`technical-due-diligence-checklist`]}]}],Yl=Jl.flatMap(e=>e.guides);function Xl(e){return Yl.find(t=>t.slug===e)}Yl.map(e=>e.slug);var Zl=[{to:`/`,label:`Home`},{to:`/about`,label:`About`},{to:`/work`,label:`Work`},{to:`/podcast`,label:`Podcast`},{to:`/media`,label:`Media`},{to:`/testimonials`,label:`Praise`},{to:`/contact`,label:`Contact`}];function Ql(){let[e,t]=(0,z.useState)(!1),[n,r]=(0,z.useState)(!1);return(0,B.jsxs)(`header`,{className:`sticky top-0 z-50 border-b border-border/60 bg-background/80 backdrop-blur-xl`,children:[(0,B.jsxs)(`div`,{className:`mx-auto flex max-w-6xl items-center justify-between px-6 py-4`,children:[(0,B.jsxs)(de,{to:`/`,className:`flex items-center gap-3 font-display text-lg font-bold tracking-tight`,children:[(0,B.jsx)(`img`,{src:Gl.nlLogo,alt:`Noah Labhart logo`,width:32,height:32,className:`h-8 w-8 rounded-md`}),`Noah`,(0,B.jsx)(`span`,{className:`text-primary`,children:` `}),`Labhart`]}),(0,B.jsxs)(`nav`,{className:`hidden items-center gap-7 md:flex`,children:[Zl.map(e=>(0,B.jsx)(de,{to:e.to,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,activeProps:{className:`text-foreground`},activeOptions:{exact:e.to===`/`},children:e.label},e.to)),(0,B.jsxs)(`div`,{className:`relative`,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[(0,B.jsxs)(de,{to:`/guides`,"aria-haspopup":`true`,"aria-expanded":n,onFocus:()=>r(!0),className:`flex items-center gap-1 text-sm text-muted-foreground transition-colors hover:text-foreground`,activeProps:{className:`text-foreground`},children:[`Guides`,(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`text-[0.6rem]`,children:`▼`})]}),n&&(0,B.jsx)(`div`,{className:`absolute right-0 top-full w-[26rem] pt-3`,children:(0,B.jsxs)(`ul`,{className:`max-h-[70vh] overflow-auto rounded-xl border border-border bg-background p-2 shadow-xl`,children:[(0,B.jsx)(`li`,{children:(0,B.jsx)(de,{to:`/what-does-a-cto-do`,onClick:()=>r(!1),className:`block rounded-lg px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-surface hover:text-primary`,children:`What does a CTO do?`})}),Yl.map(e=>(0,B.jsx)(`li`,{children:(0,B.jsx)(de,{to:`/guides/$slug`,params:{slug:e.slug},onClick:()=>r(!1),className:`block rounded-lg px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-surface hover:text-primary`,children:e.title})},e.slug)),(0,B.jsx)(`li`,{className:`border-t border-border/60 pt-1`,children:(0,B.jsx)(de,{to:`/guides`,onClick:()=>r(!1),className:`block rounded-lg px-3 py-2 text-sm text-primary hover:bg-surface`,children:`All guides →`})})]})})]})]}),(0,B.jsx)(`button`,{type:`button`,"aria-label":`Toggle navigation`,onClick:()=>t(e=>!e),className:`rounded-md border border-border px-3 py-1.5 text-sm md:hidden`,children:`Menu`})]}),e&&(0,B.jsxs)(`nav`,{className:`grid gap-1 border-t border-border/60 px-6 py-3 md:hidden`,children:[Zl.map(e=>(0,B.jsx)(de,{to:e.to,onClick:()=>t(!1),className:`py-2 text-sm text-muted-foreground`,activeProps:{className:`text-foreground`},activeOptions:{exact:e.to===`/`},children:e.label},e.to)),(0,B.jsx)(`p`,{className:`pt-3 text-xs uppercase tracking-widest text-primary`,children:`Guides`}),(0,B.jsx)(de,{to:`/what-does-a-cto-do`,onClick:()=>t(!1),className:`py-2 text-sm text-muted-foreground`,children:`What does a CTO do?`}),Yl.map(e=>(0,B.jsx)(de,{to:`/guides/$slug`,params:{slug:e.slug},onClick:()=>t(!1),className:`py-2 text-sm text-muted-foreground`,children:e.title},e.slug))]})]})}function $l(){return(0,B.jsx)(`footer`,{className:`border-t border-border/60 bg-surface`,children:(0,B.jsxs)(`div`,{className:`mx-auto flex max-w-6xl flex-col gap-4 px-6 py-10 text-sm text-muted-foreground md:flex-row md:items-center md:justify-between`,children:[(0,B.jsx)(`p`,{className:`max-w-md italic`,children:fl.verse}),(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-5`,children:[(0,B.jsx)(`a`,{className:`transition-colors hover:text-primary`,href:fl.links.codeStory,target:`_blank`,rel:`noreferrer`,children:`Code Story`}),(0,B.jsx)(`a`,{className:`transition-colors hover:text-primary`,href:fl.links.indieHackers,target:`_blank`,rel:`noreferrer`,children:`Indie Hackers`}),(0,B.jsx)(`a`,{className:`transition-colors hover:text-primary`,href:fl.links.linkedin,target:`_blank`,rel:`noreferrer`,children:`LinkedIn`})]})]})})}var eu=`G-ZMXXB4SVDE`,tu=!1;function nu(...e){typeof window>`u`||(window.dataLayer=window.dataLayer||[],window.gtag?.(...e))}function ru(){if(typeof window>`u`||tu)return;tu=!0,window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)});let e=document.createElement(`script`);
12e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${eu}`,document.head.appendChild(e),nu(`js`,new Date),nu(`config`,eu,{send_page_view:!1})}function iu(e){nu(`event`,`page_view`,{page_path:e,page_location:window.location.href,page_title:document.title})}function au(){return(0,B.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,B.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,B.jsx)(`h1`,{className:`text-7xl font-bold text-foreground`,children:`404`}),(0,B.jsx)(`h2`,{className:`mt-4 text-xl font-semibold text-foreground`,children:`Page not found`}),(0,B.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,B.jsx)(`div`,{className:`mt-6`,children:(0,B.jsx)(de,{to:`/`,className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Go home`})})]})})}function ou({error:e,reset:t}){console.error(e);let n=D();return(0,z.useEffect)(()=>{dl(e,{boundary:`tanstack_root_error_component`})},[e]),(0,B.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,B.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,B.jsx)(`h1`,{className:`text-xl font-semibold tracking-tight text-foreground`,children:`This page didn't load`}),(0,B.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Something went wrong on our end. You can try refreshing or head back home.`}),(0,B.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2`,children:[(0,B.jsx)(`button`,{onClick:()=>{n.invalidate(),t()},className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Try again`}),(0,B.jsx)(`a`,{href:`/`,className:`inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent`,children:`Go home`})]})]})})}var su=vs()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Noah Labhart`},{name:`description`,content:`Noah's Digital Haven is a personalized website showcasing tech entrepreneur Noah Labhart's professional journey.`},{name:`author`,content:`Noah Labhart`},{name:`google-site-verification`,content:`9N1k6doRpBvoI4yHSPpMwHJ1NytaEJrc2PY3XBIVXRs`},{property:`og:title`,content:`Noah Labhart`},{property:`og:description`,content:`Noah's Digital Haven is a personalized website showcasing tech entrepreneur Noah Labhart's professional journey.`},{property:`og:type`,content:`website`},{property:`og:site_name`,content:`Noah Labhart`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:`Noah Labhart`},{name:`twitter:description`,content:`Noah's Digital Haven is a personalized website showcasing tech entrepreneur Noah Labhart's professional journey.`},{property:`og:image`,content:`https://storage.googleapis.com/gpt-engineer-file-uploads/2BeHbSdknKbe1ifsbTP2Dc7CPd23/social-images/social-1785441754448-13-D71D0B8E-2ABC-4ACA-94DC-FF0ACFB93901_1_201_a.webp`},{name:`twitter:image`,content:`https://storage.googleapis.com/gpt-engineer-file-uploads/2BeHbSdknKbe1ifsbTP2Dc7CPd23/social-images/social-1785441754448-13-D71D0B8E-2ABC-4ACA-94DC-FF0ACFB93901_1_201_a.webp`}],links:[{rel:`stylesheet`,href:ul}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Person`,"@id":`https://noahlabhart.com/#person`,name:`Noah Labhart`,givenName:`Noah`,familyName:`Labhart`,jobTitle:`Co-Founder & Chief Technology Officer`,description:`Software architect, startup CTO and host of the Code Story podcast. Co-founder and CTO of Veryable.`,url:`https://noahlabhart.com/`,image:`https://storage.googleapis.com/gpt-engineer-file-uploads/2BeHbSdknKbe1ifsbTP2Dc7CPd23/social-images/social-1785441754448-13-D71D0B8E-2ABC-4ACA-94DC-FF0ACFB93901_1_201_a.webp`,knowsAbout:[`Software Architecture`,`Startup Leadership`,`iOS Development`,`Engineering Management`,`Product Development`],worksFor:{"@id":`https://veryableops.com/#organization`},affiliation:{"@id":`https://codestory.co/#organization`},mainEntityOfPage:`https://noahlabhart.com/`,sameAs:[`https://www.linkedin.com/in/noahlabhart`,`https://codestory.co/`,`https://indiehackers.com/nlabhart/`,`https://veryableops.com/`,`https://github.com/nlabhart`,`https://podcasts.apple.com/us/podcast/id1466861744`,`https://open.spotify.com/show/0f5HGQ2EPd63H83gqAifXp`,`https://www.youtube.com/@codestorypodcast`]},{"@type":`Organization`,"@id":`https://veryableops.com/#organization`,name:`Veryable`,url:`https://veryableops.com/`,description:`A marketplace of on-demand labor for manufacturing and warehouse work.`,foun
12der:{"@id":`https://noahlabhart.com/#person`}},{"@type":`Organization`,"@id":`https://codestory.co/#organization`,name:`Code Story`,url:`https://codestory.co/`,description:`A podcast featuring startup founders and technology leaders sharing how they built their companies.`,founder:{"@id":`https://noahlabhart.com/#person`},sameAs:[`https://podcasts.apple.com/us/podcast/id1466861744`,`https://open.spotify.com/show/0f5HGQ2EPd63H83gqAifXp`,`https://www.youtube.com/@codestorypodcast`,`https://www.linkedin.com/company/code-story`]},{"@type":`PodcastSeries`,"@id":`https://codestory.co/#podcast`,name:`Code Story`,url:`https://codestory.co/`,description:`A periodic window into the startup world, where founders and technical leaders share how they built their companies.`,author:{"@id":`https://noahlabhart.com/#person`},publisher:{"@id":`https://codestory.co/#organization`},webFeed:`https://feeds.redcircle.com/ac5e79a4-0405-49a3-af2c-02c37f0b3879`,sameAs:[`https://podcasts.apple.com/us/podcast/id1466861744`,`https://open.spotify.com/show/0f5HGQ2EPd63H83gqAifXp`,`https://www.youtube.com/@codestorypodcast`]},{"@type":`WebSite`,"@id":`https://noahlabhart.com/#website`,url:`https://noahlabhart.com/`,name:`Noah Labhart`,inLanguage:`en-US`,publisher:{"@id":`https://noahlabhart.com/#person`},about:{"@id":`https://noahlabhart.com/#person`}}]})}]}),shellComponent:cu,component:lu,notFoundComponent:au,errorComponent:ou});function cu({children:e}){return(0,B.jsxs)(`html`,{lang:`en`,children:[(0,B.jsx)(`head`,{children:(0,B.jsx)(Js,{})}),(0,B.jsxs)(`body`,{children:[e,(0,B.jsx)(Ys,{})]})]})}function lu(){let{queryClient:e}=su.useRouteContext(),t=Us({select:e=>e.location.pathname});return(0,z.useEffect)(()=>{ru()},[]),(0,z.useEffect)(()=>{iu(t)},[t]),(0,B.jsx)(W,{client:e,children:(0,B.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,B.jsx)(Ql,{}),(0,B.jsx)(`main`,{className:`flex-1`,children:(0,B.jsx)(Ps,{})}),(0,B.jsx)($l,{})]})})}var uu=`modulepreload`,du=function(e){return`/`+e},fu={},pu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=du(t,n),t in fu)return;fu[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:uu,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},mu=()=>pu(()=>import(`./work-C1f-N_Qz.js`),__vite__mapDeps([0,1,2,3,4])),hu=`Work & Resume — Noah Labhart`,gu=`Noah Labhart's career: Co-Founder & CTO at Veryable, host of Code Story, founder of Touchtap, GLab and Post Boss, IT manager at Alcon.`,_u=xs(`/work`)({head:()=>({meta:[{title:hu},{name:`description`,content:gu},{property:`og:title`,content:hu},{property:`og:description`,content:gu},{property:`og:url`,content:`/work`}],links:[{rel:`canonical`,href:`/work`}]}),component:Cs(mu,`component`)}),vu=[{q:`What does a CTO do?`,a:`A CTO owns the technology strategy of a company: what gets built, how it gets built, who builds it, and how it stays secure, reliable and affordable as the business grows. At a startup that also means writing code, hiring the first engineers, and translating business goals into an architecture that will not need to be thrown away in a year.`},{q:`Is a startup CTO the same as a VP of Engineering?`,a:`No. A VP of Engineering owns execution — delivery, process, team health. A CTO owns technical direction, architecture and the long-horizon bets. In the first years of a startup one person usually does both; the split happens somewhere between 15 and 40 engineers.`},{q:`Does a startup CTO still write code?`,a:`Almost always at the beginning, and less over time. In the first 12–24 months the CTO is often the most productive engineer on the team. As headcount grows, the highest-leverage work shifts to architecture, hiring, and unblocking others.`},{q:`What skills does a startup CTO need?`,a:`Solution design and systems architecture, hiring and coaching, clear written communication, pragmatic vendor and build-vs-buy judgment, and enough product sense to push back on the roadmap when the technical cost is not worth the outcome.`},{q:`When should a startup hire a CTO?`,a:`When technology is a core part of the product and the founding team cannot make durable architectural decisions on its own. A fractional or advising CTO is often the right first step before a full-time hire.`}],yu=()=>pu(()=>import(`./what-does-a-cto-do-03Yvu1au.js`),__vite__mapDeps([5,1,6,3,4])),bu=`What Does a CTO Do? A Startup CTO Guide — Noah Labhart`,xu=`What does a CTO do at a startup? A practical guide to the startup CTO role, responsibilities by stage, and lessons from Noah Labhart, co-founder & CTO of Veryable.`,Su=`https://noahlabhart.com/what-does-a-cto-do`,Cu=`https://storage.googleapis.com/gpt-engineer-file-uploads/2BeHbSdknKbe1ifsbTP2Dc7CPd23/social-images/social-1785441754448-13-D71D0B8E-2ABC-4ACA-94DC-FF0ACFB93901_1_201_a.webp`,wu=xs(`/what-does-a-cto-do`)({head:()=>({meta:[{title:bu},{name:`description`,content:xu},{property:`og:title`,content:bu},{property:`og:description`,content:xu},{property:`og:type`,content:`article`},{property:`og:url`,content:Su},{name:`twitter:card`,content:`summary_large_image`},{property:`og:image`,content:Cu},{name:`twitter:image`,content:Cu}],links:[{rel:`canonical`,href:Su}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:vu.map(e=>
12({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))})},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Article`,headline:`What Does a CTO Do? A Guide to the Startup CTO Role`,description:xu,image:[Cu],datePublished:`2026-08-03`,dateModified:`2026-08-04`,inLanguage:`en-US`,author:{"@id":`https://noahlabhart.com/#person`},publisher:{"@id":`https://noahlabhart.com/#person`},isPartOf:{"@id":`https://noahlabhart.com/#website`},mainEntityOfPage:{"@type":`WebPage`,"@id":Su}})}]}),component:Cs(yu,`component`)}),Tu=()=>pu(()=>import(`./testimonials-COEAgKyl.js`),__vite__mapDeps([7,1,2,3,4])),Eu=`What People Say About Noah Labhart`,Du=`Recommendations from founders, designers and engineers who have worked with Noah Labhart on mobile, product and startup teams.`,Ou=xs(`/testimonials`)({head:()=>({meta:[{title:Eu},{name:`description`,content:Du},{property:`og:title`,content:Eu},{property:`og:description`,content:Du},{property:`og:url`,content:`/testimonials`}],links:[{rel:`canonical`,href:`/testimonials`}]}),component:Cs(Tu,`component`)}),ku=()=>pu(()=>import(`./media-CpFfbIWi.js`),__vite__mapDeps([8,1,2,3,4])),Au=`Media, Podcasts & Talks — Noah Labhart`,ju=`Podcast interviews, conference talks and case studies featuring Noah Labhart, host of Code Story and CTO of Veryable.`,Mu=xs(`/media`)({head:()=>({meta:[{title:Au},{name:`description`,content:ju},{property:`og:title`,content:Au},{property:`og:description`,content:ju},{property:`og:url`,content:`/media`}],links:[{rel:`canonical`,href:`/media`}]}),component:Cs(ku,`component`)}),Nu=()=>pu(()=>import(`./contact-DH-zoaNs.js`),__vite__mapDeps([9,1,4])),Pu=`Contact Noah Labhart`,Fu=`Get in touch with Noah Labhart about startups, software architecture, podcast guesting or speaking engagements.`,Iu=xs(`/contact`)({head:()=>({meta:[{title:Pu},{name:`description`,content:Fu},{property:`og:title`,content:Pu},{property:`og:description`,content:Fu},{property:`og:url`,content:`/contact`}],links:[{rel:`canonical`,href:`/contact`}]}),component:Cs(Nu,`component`)}),Lu=()=>pu(()=>import(`./about-DmCVQwp6.js`),__vite__mapDeps([10,1,4])),Ru=`About Noah Labhart — Software Architect & Entrepreneur`,zu=`Startup founder, CTO, podcast host and software architect. Noah Labhart on solution architecture, leadership, and life beyond the keyboard.`,Bu=xs(`/about`)({head:()=>({meta:[{title:Ru},{name:`description`,content:zu},{property:`og:title`,content:Ru},{property:`og:description`,content:zu},{property:`og:url`,content:`/about`}],links:[{rel:`canonical`,href:`/about`}]}),component:Cs(Lu,`component`)}),Vu=`/assets/hero-texture-Dbh4xqUR.jpg`,Hu=()=>pu(()=>import(`./routes-gsXDvKL_.js`),__vite__mapDeps([11,1,6,3,2,4])),Uu=`Noah Labhart — Startup Founder, CTO & Podcast Host`,Wu=`Noah Labhart is Co-Founder & CTO of Veryable and host of Code Story. Software architect, entrepreneur, husband, father, Jesus follower.`,Gu=xs(`/`)({head:()=>({meta:[{title:Uu},{name:`description`,content:Wu},{property:`og:title`,content:Uu},{property:`og:description`,content:Wu},{property:`og:url`,content:`/`}],links:[{rel:`canonical`,href:`/`},{rel:`preload`,as:`image`,href:Vu,fetchPriority:`high`}]}),component:Cs(Hu,`component`)}),Z=tc({method:`GET`}).handler(Do(`cee3779261301af857bc15a656cfa6a4739e7d29151cc30537f126c2bc041921`)),Ku=tc({method:`GET`}).handler(Do(`489a2666ae2ca136857bc0338fc5bd894ee8d8bf81237dd8036361c00c38dfbb`)),qu=tc({method:`GET`}).handler(Do(`1c49ee1b28dcbc45e9a314c073dd59ccbdea5506eda48caa71a3e04cfb6ac411`)),Ju=tc({method:`GET`}).handler(Do(`834bf2edb0ff32e2a1607afc0d79ecfc3e46d98fd578d42e2c719ff3f484d2fc`)),Yu=tc({method:`GET`}).handler(Do(`89f2d89f6d02abba40dceaa66f532dc6627b4ac919dcf4066cc38700933acb05`)),Xu=tc({method:`GET`}).handler(Do(`9ffb8a25f778c20d00dca47cc0e72305d8a6caba3c244227e831bb02a7e653ef`)),Zu=()=>pu(()=>import(`./podcast.index-Bi28CU0I.js`),__vite__mapDeps([12,1,6,3,13,4])),Qu=`Code Story Podcast Episode Archive — Noah Labhart`,$u=`Every Code Story episode: startup founders and technical leaders on building products, teams and companies, hosted by Noah Labhart.`,ed=`https://noahlabhart.com/podcast`,td=xs(`/podcast/`)({loader:()=>Z({data:{page:1}}),head:()=>({meta:[{title:Qu},{name:`description`,content:$u},{property:`og:title`,content:Qu},{property:`og:description`,content:$u},{property:`og:type`,content:`website`},{property:`og:url`,content:ed},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:ed}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`PodcastSeries`,"@id":`https://codestory.co/#podcast`,name:`Code Story`,url:`https://codestory.co/`,description:`A periodic window into the startup world, where founders and technical leaders share how they built the
12ir companies.`,author:{"@id":`https://noahlabhart.com/#person`},webFeed:`https://feeds.redcircle.com/ac5e79a4-0405-49a3-af2c-02c37f0b3879`,sameAs:[`https://podcasts.apple.com/us/podcast/id1466861744`,`https://open.spotify.com/show/0f5HGQ2EPd63H83gqAifXp`,`https://www.youtube.com/@codestorypodcast`]})}]}),component:Cs(Zu,`component`)}),nd=()=>pu(()=>import(`./guides.index-BqBkXNQJ.js`),__vite__mapDeps([14,1,6,3,4])),rd=`Startup CTO & Engineering Leadership Guides — Noah Labhart`,id=`Practical guides on the startup CTO role, engineering team structure, hiring, architecture, technical due diligence and technical debt — written by Noah Labhart.`,ad=`https://noahlabhart.com/guides`,od=xs(`/guides/`)({head:()=>({meta:[{title:rd},{name:`description`,content:id},{property:`og:title`,content:rd},{property:`og:description`,content:id},{property:`og:type`,content:`website`},{property:`og:url`,content:ad},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:ad}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`CollectionPage`,name:`Startup CTO & Engineering Leadership Guides`,description:id,url:ad,isPartOf:{"@id":`https://noahlabhart.com/#website`},about:{"@id":`https://noahlabhart.com/#person`},hasPart:Yl.map(e=>({"@type":`Article`,headline:e.title,url:`https://noahlabhart.com/guides/${e.slug}`}))})}]}),component:Cs(nd,`component`)}),sd=xs(`/podcast/$slug`)({loader:async({params:e})=>{let t=await Ku({data:{slug:e.slug}});if(!t)throw Ae();let n=await Xu({data:{slug:e.slug}});return{...t,topics:n}},head:({loaderData:e,params:t})=>{if(!e)return{meta:[{title:`Episode not found — Noah Labhart`},{name:`robots`,content:`noindex`}]};let n=e.episode,r=`https://noahlabhart.com/podcast/${t.slug}`,i=`${n.title} — Code Story`,a=n.subtitle||(n.paragraphs[0]?n.paragraphs[0].slice(0,155):`A Code Story podcast episode hosted by Noah Labhart.`);return{meta:[{title:i.length>65?`${n.title.slice(0,55)}… — Code Story`:i},{name:`description`,content:a},{property:`og:title`,content:i},{property:`og:description`,content:a},{property:`og:type`,content:`article`},{property:`og:url`,content:r},{name:`twitter:card`,content:`summary`}],links:[{rel:`canonical`,href:r}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`PodcastEpisode`,name:n.title,description:a,url:r,datePublished:n.date||void 0,timeRequired:n.duration?`PT${Math.round(n.duration/60)}M`:void 0,episodeNumber:n.episode||void 0,partOfSeason:n.season?{"@type":`PodcastSeason`,seasonNumber:n.season}:void 0,partOfSeries:{"@type":`PodcastSeries`,"@id":`https://codestory.co/#podcast`,name:`Code Story`,url:`https://codestory.co/`},author:{"@id":`https://noahlabhart.com/#person`},associatedMedia:n.audio?{"@type":`MediaObject`,contentUrl:n.audio,encodingFormat:`audio/mpeg`}:void 0})}]}},component:Cs(()=>pu(()=>import(`./podcast._slug-BoalYrgH.js`),__vite__mapDeps([15,1,6,3,13,4])),`component`)}),cd={"fractional-cto-vs-full-time-cto":[`founder-lessons`,`saas-and-b2b`],"cto-vs-vp-of-engineering":[`future-of-work`,`founder-lessons`],"when-to-hire-a-cto":[`fundraising-and-investors`,`founder-lessons`],"scaling-an-engineering-team":[`future-of-work`,`saas-and-b2b`],"startup-engineering-team-structure":[`future-of-work`,`developer-tools`],"hiring-your-first-engineers":[`future-of-work`,`founder-lessons`],"engineering-metrics-that-matter":[`data-and-analytics`,`saas-and-b2b`],"choosing-a-tech-stack-for-a-startup":[`developer-tools`,`artificial-intelligence`],"mvp-development-guide":[`founder-lessons`,`marketplaces`],"build-vs-buy-software":[`developer-tools`,`saas-and-b2b`],"technical-due-diligence-checklist":[`fundraising-and-investors`,`cybersecurity`],"managing-technical-debt":[`developer-tools`,`founder-lessons`]};function ld(e){return Object.entries(cd).filter(([,t])=>t.includes(e)).map(([e])=>e)}var ud=()=>pu(()=>import(`./guides._slug-z_ooH-sO.js`),__vite__mapDeps([16,1,6,3,13,4])),dd=`https://storage.googleapis.com/gpt-engineer-file-uploads/2BeHbSdknKbe1ifsbTP2Dc7CPd23/social-images/social-1785441754448-13-D71D0B8E-2ABC-4ACA-94DC-FF0ACFB93901_1_201_a.webp`,fd=xs(`/guides/$slug`)({loader:async({params:e})=>{let t=Xl(e.slug);
12if(!t)throw Ae();let n=cd[e.slug]??[];return{guide:t,topics:n,episodes:n.length?await Yu({data:{topics:n,limit:4}}):[]}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Guide unavailable — Noah Labhart`},{name:`robots`,content:`noindex`}]};let t=e.guide,n=`https://noahlabhart.com/guides/${t.slug}`;return{meta:[{title:t.metaTitle},{name:`description`,content:t.description},{property:`og:title`,content:t.metaTitle},{property:`og:description`,content:t.description},{property:`og:type`,content:`article`},{property:`og:url`,content:n},{name:`twitter:card`,content:`summary_large_image`},{property:`og:image`,content:dd},{name:`twitter:image`,content:dd}],links:[{rel:`canonical`,href:n}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Article`,headline:t.title,description:t.description,image:[dd],datePublished:t.published,dateModified:t.updated,inLanguage:`en-US`,author:{"@id":`https://noahlabhart.com/#person`},publisher:{"@id":`https://noahlabhart.com/#person`},isPartOf:{"@id":`https://noahlabhart.com/#website`},mainEntityOfPage:{"@type":`WebPage`,"@id":n}})},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:t.faqs.map(e=>({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))})}]}},component:Cs(ud,`component`)}),pd=()=>pu(()=>import(`./podcast.topics.index-Pr0fwCwA.js`),__vite__mapDeps([17,1,6,3,4])),md=`Code Story Episodes by Topic — Noah Labhart`,hd=`Browse the Code Story podcast archive by topic: fundraising, AI, fintech, marketplaces, developer tools, security, hiring and more.`,gd=`https://noahlabhart.com/podcast/topics`,_d=xs(`/podcast/topics/`)({loader:()=>qu(),head:()=>({meta:[{title:md},{name:`description`,content:hd},{property:`og:title`,content:md},{property:`og:description`,content:hd},{property:`og:type`,content:`website`},{property:`og:url`,content:gd},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:gd}]}),component:Cs(pd,`component`)}),vd=xs(`/podcast/topics/$topic`)({loader:async({params:e})=>{let t=await Ju({data:{slug:e.topic}});if(!t)throw Ae();return t},head:({loaderData:e,params:t})=>{if(!e)return{meta:[{title:`Topic not found — Noah Labhart`},{name:`robots`,content:`noindex`}]};let n=`https://noahlabhart.com/podcast/topics/${t.topic}`,r=`${e.topic.name} — Code Story Episodes`,i=`${e.total} Code Story episodes on ${e.topic.name.toLowerCase()}. ${e.topic.blurb}`;return{meta:[{title:r},{name:`description`,content:i.slice(0,158)},{property:`og:title`,content:r},{property:`og:description`,content:i.slice(0,158)},{property:`og:type`,content:`website`},{property:`og:url`,content:n},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:n}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`CollectionPage`,name:r,description:i.slice(0,158),url:n,isPartOf:{"@id":`https://noahlabhart.com/#website`},about:{"@id":`https://codestory.co/#podcast`}})}]}},component:Cs(()=>pu(()=>import(`./podcast.topics._topic-Bw__WswN.js`),__vite__mapDeps([18,1,6,3,13,4])),`component`)}),yd=xs(`/podcast/page/$page`)({loader:async({params:e})=>{let t=Number(e.page);if(!Number.isInteger(t)||t<1)throw Ae();let n=await Z({data:{page:t}});if(t>n.totalPages)throw Ae();return n},head:({loaderData:e,params:t})=>{let n=t.page,r=`https://noahlabhart.com/podcast/page/${n}`;if(!e)return{meta:[{title:`Episodes unavailable — Noah Labhart`},{name:`robots`,content:`noindex`}]};let i=`Code Story Episodes — Page ${n} of ${e.totalPages} | Noah Labhart`,a=`Code Story podcast episodes, page ${n} of ${e.totalPages}. Founders and technical leaders on building startups, hosted by Noah Labhart.`;return{meta:[{title:i},{name:`description`,content:a},{property:`og:title`,content:i},{property:`og:description`,content:a},{property:`og:type`,content:`website`},{property:`og:url`,content:r},{name:`twitter:card`,content:`summary`}],links:[{rel:`canonical`,href:r}]}},component:Cs(()=>pu(()=>import(`./podcast.page._page-CnqJzQd1.js`),__vite__mapDeps([19,1,6,3,13,4])),`component`)}),bd=_u.update({id:`/work`,path:`/work`,getParentRoute:()=>su}),Q=wu.update({id:`/what-does-a-cto-do`,path:`/what-does-a-cto-do`,getParentRoute:()=>su}),xd=Ou.update({id:`/testimonials`,path:`/testimonials`,getParentRoute:()=>su}),Sd=Mu.update({id:`/media`,path:`/media`,getParentRoute:()=>su}),Cd=Iu.update({id:`/contact`,path:`/contact`,getParentRoute:()=>su}),wd=Bu.update({id:`/about`,path:`/about`,getParentRoute:()=>su}),Td=Gu.update({id:`/`,path:`/`,getParentRoute:()=>su}),Ed=td.update({id:`/podcast/`,path:`/podcast/`,getParentRoute:()=>su}),Dd=od.update({id:`/guides/`,path:`/guides/`,getParentRoute:()=>su}),Od=sd.update({id:`/podcast/$slug`,path:`/podcast/$slug`,getParentRoute:()=>su}),kd=fd.update({id:`/guides/$slug`,path:`/guides/$slug`,getParentRoute:()=>su}),Ad=_d.update({id:`/podcast/topics/`,path:`/podcast/topics/`,getParentRoute:()=>su}),jd=vd.update({id:`/podcast/topics/$topic`,path:`/podcast/topics/$topic`,getParentRoute:()=>su}),Md={IndexRoute:Td,AboutRoute:wd,ContactRoute:Cd,MediaRoute:Sd,TestimonialsRoute:xd,WhatDoesACtoDoRoute:Q,WorkRoute:bd,GuidesSlugRoute:kd,PodcastSlugRoute:Od,GuidesIndexRoute:Dd,PodcastIndexRoute:Ed,PodcastPagePageRoute:yd.update({id:`/podcast/page/$page`,path:`/podcast/page/$page`,getParentRoute:()=>su}),PodcastTopicsTopicRoute:jd,PodcastTopicsIndexRoute:Ad},Nd=su._addFileChildren(Md),$=()=>zs({routeTree:Nd,context:{queryClient:new cl},scrollRestoration:!0,defaultPreloadStaleTime:0});async function Pd(){let e=await $(),t;if(uc){let n=await uc.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.seri
12alizationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(Oo),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Po(e),e}var Fd=Pd;async function Id(){let e=await Fd();return window.$_TSR?.h(),e}var Ld;function Rd(){return Ld||=Id(),(0,B.jsx)(Io,{promise:Ld,children:e=>(0,B.jsx)(Hs,{router:e})})}var zd=be();(0,z.startTransition)(()=>{(0,zd.hydrateRoot)(document,(0,B.jsx)(z.StrictMode,{children:(0,B.jsx)(Rd,{})}))});export{pl as _,ld as a,ml as b,Vu as c,Jl as d,ql as f,gl as g,Kl as h,fd as i,vu as l,X as m,vd as n,sd as o,Gl as p,_d as r,td as s,yd as t,Xl as u,hl as v,_l as x,fl as y};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.