vendor: 5,011 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/links-wmLhmmzd.js","assets/api-Oj1yXquZ.js","assets/boeken-6hzBJSCT.js","assets/admin-D3T0_yGG.js"])))=>i.map(i=>d[i]); 2function T2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yc={exports:{}},ir={};var Xp;function x2(){if(Xp)return ir;Xp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,l,f){var d=null;if(f!==void 0&&(d=""+f),l.key!==void 0&&(d=""+l.key),"key"in l){f={};for(var m in l)m!=="key"&&(f[m]=l[m])}else f=l;return l=f.ref,{$$typeof:n,type:o,key:d,ref:l!==void 0?l:null,props:f}}return ir.Fragment=a,ir.jsx=s,ir.jsxs=s,ir}var Zp;function R2(){return Zp||(Zp=1,Yc.exports=x2()),Yc.exports}var D=R2(),$c={exports:{}},ht={};var Kp;function A2(){if(Kp)return ht;Kp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),C=Symbol.iterator;function S(E){return E===null||typeof E!="object"?null:(E=C&&E[C]||E["@@iterator"],typeof E=="function"?E:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,_={};function O(E,k,Y){this.props=E,this.context=k,this.refs=_,this.updater=Y||x}O.prototype.isReactComponent={},O.prototype.setState=function(E,k){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,k,"setState")},O.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=O.prototype;function X(E,k,Y){this.props=E,this.context=k,this.refs=_,this.updater=Y||x}var H=X.prototype=new Q;H.constructor=X,L(H,O.prototype),H.isPureReactComponent=!0;var W=Array.isArray;function tt(){}var P={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function et(E,k,Y){var J=Y.ref;return{$$typeof:n,type:E,key:k,ref:J!==void 0?J:null,props:Y}}function ct(E,k){return et(E.type,k,E.props)}function rt(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function ot(E){var k={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Y){return k[Y]})}var jt=/\/+/g;function xt(E,k){return typeof E=="object"&&E!==null&&E.key!=null?ot(""+E.key):k.toString(36)}function lt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(tt,tt):(E.status="pending",E.then(function(k){E.status==="pending"&&(E.status="fulfilled",E.value=k)},function(k){E.status==="pending"&&(E.status="rejected",E.reason=k)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,k,Y,J,F){var nt=typeof E;(nt==="undefined"||nt==="boolean")&&(E=null);var gt=!1;if(E===null)gt=!0;else switch(nt){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(E.$$typeof){case n:case a:gt=!0;break;case v:return gt=E._init,U(gt(E._payload),k,Y,J,F)}}if(gt)return F=F(E),gt=J===""?"."+xt(E,0):J,W(F)?(Y="",gt!=null&&(Y=gt.replace(jt,"$&/")+"/"),U(F,k,Y,"",function(wn){return wn})):F!=null&&(rt(F)&&(F=ct(F,Y+(F.key==null||E&&E.key===F.key?"":(""+F.key).replace(jt,"$&/")+"/")+gt)),k.push(F)),1;gt=0;var zt=J===""?".":J+":";if(W(E))for(var Nt=0;Nt<E.length;Nt++)J=E[Nt],nt=zt+xt(J,Nt),gt+=U(J,k,Y,nt,F);else if(Nt=S(E),typeof Nt=="function")for(E=Nt.call(E),Nt=0;!(J=E.next()).done;)J=J.value,nt=zt+xt(J,Nt++),gt+=U(J,k,Y,nt,F);else if(nt==="object"){if(typeof E.then=="function")return U(lt(E),k,Y,J,F);throw k=String(E),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return gt}function I(E,k,Y){if(E==null)return E;var J=[],F=0;return U(E,J,"","",function(nt){return k.call(Y,nt,F++)}),J}function at(E){if(E._status===-1){var k=E._result;k=k(),k.then(function(Y){(E._status===0||E._status===-1)&&(E._status=1,E._result=Y)},function(Y){(E._status===0||E._status===-1)&&(E._status=2,E._result=Y)}),E._status===-1&&(E._status=0,E._result=k)}if(E._status===1)return E._result.default;throw E._result}var dt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)}
vendor: 15,831 bytes, lines 2-4
2,A={map:I,forEach:function(E,k,Y){I(E,function(){k.apply(this,arguments)},Y)},count:function(E){var k=0;return I(E,function(){k++}),k},toArray:function(E){return I(E,function(k){return k})||[]},only:function(E){if(!rt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ht.Activity=y,ht.Children=A,ht.Component=O,ht.Fragment=s,ht.Profiler=l,ht.PureComponent=X,ht.StrictMode=o,ht.Suspense=h,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ht.__COMPILER_RUNTIME={__proto__:null,c:function(E){return P.H.useMemoCache(E)}},ht.cache=function(E){return function(){return E.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(E,k,Y){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var J=L({},E.props),F=E.key;if(k!=null)for(nt in k.key!==void 0&&(F=""+k.key),k)!K.call(k,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&k.ref===void 0||(J[nt]=k[nt]);var nt=arguments.length-2;if(nt===1)J.children=Y;else if(1<nt){for(var gt=Array(nt),zt=0;zt<nt;zt++)gt[zt]=arguments[zt+2];J.children=gt}return et(E.type,F,J)},ht.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ht.createElement=function(E,k,Y){var J,F={},nt=null;if(k!=null)for(J in k.key!==void 0&&(nt=""+k.key),k)K.call(k,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(F[J]=k[J]);var gt=arguments.length-2;if(gt===1)F.children=Y;else if(1<gt){for(var zt=Array(gt),Nt=0;Nt<gt;Nt++)zt[Nt]=arguments[Nt+2];F.children=zt}if(E&&E.defaultProps)for(J in gt=E.defaultProps,gt)F[J]===void 0&&(F[J]=gt[J]);return et(E,nt,F)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(E){return{$$typeof:m,render:E}},ht.isValidElement=rt,ht.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:at}},ht.memo=function(E,k){return{$$typeof:g,type:E,compare:k===void 0?null:k}},ht.startTransition=function(E){var k=P.T,Y={};P.T=Y;try{var J=E(),F=P.S;F!==null&&F(Y,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(tt,dt)}catch(nt){dt(nt)}finally{k!==null&&Y.types!==null&&(k.types=Y.types),P.T=k}},ht.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ht.use=function(E){return P.H.use(E)},ht.useActionState=function(E,k,Y){return P.H.useActionState(E,k,Y)},ht.useCallback=function(E,k){return P.H.useCallback(E,k)},ht.useContext=function(E){return P.H.useContext(E)},ht.useDebugValue=function(){},ht.useDeferredValue=function(E,k){return P.H.useDeferredValue(E,k)},ht.useEffect=function(E,k){return P.H.useEffect(E,k)},ht.useEffectEvent=function(E){return P.H.useEffectEvent(E)},ht.useId=function(){return P.H.useId()},ht.useImperativeHandle=function(E,k,Y){return P.H.useImperativeHandle(E,k,Y)},ht.useInsertionEffect=function(E,k){return P.H.useInsertionEffect(E,k)},ht.useLayoutEffect=function(E,k){return P.H.useLayoutEffect(E,k)},ht.useMemo=function(E,k){return P.H.useMemo(E,k)},ht.useOptimistic=function(E,k){return P.H.useOptimistic(E,k)},ht.useReducer=function(E,k,Y){return P.H.useReducer(E,k,Y)},ht.useRef=function(E){return P.H.useRef(E)},ht.useState=function(E){return P.H.useState(E)},ht.useSyncExternalStore=function(E,k,Y){return P.H.useSyncExternalStore(E,k,Y)},ht.useTransition=function(){return P.H.useTransition()},ht.version="19.2.4",ht}var Fp;function Mr(){return Fp||(Fp=1,$c.exports=A2()),$c.exports}var V=Mr();const He=T2(V);var Xc={exports:{}},sr={},Zc={exports:{}},Kc={};var Jp;function M2(){return Jp||(Jp=1,(function(n){function a(U,I){var at=U.length;U.push(I);t:for(;0<at;){var dt=at-1>>>1,A=U[dt];if(0<l(A,I))U[dt]=I,U[at]=A,at=dt;else break t}}function s(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var I=U[0],at=U.pop();if(at!==I){U[0]=at;t:for(var dt=0,A=U.length,E=A>>>1;dt<E;){var k=2*(dt+1)-1,Y=U[k],J=k+1,F=U[J];if(0>l(Y,at))J<A&&0>l(F,Y)?(U[dt]=F,U[J]=at,dt=J):(U[dt]=Y,U[k]=at,dt=k);else if(J<A&&0>l(F,at))U[dt]=F,U[J]=at,dt=J;else break t}}return I}function l(U,I){var at=U.sortIndex-I.sortIndex;return at!==0?at:U.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var h=[],g=[],v=1,y=null,C=3,S=!1,x=!1,L=!1,_=!1,O=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function H(U){for(var I=s(g);I!==null;){if(I.callback===null)o(g);else if(I.startTime<=U)o(g),I.sortIndex=I.expirationTime,a(h,I);else break;I=s(g)}}function W(U){if(L=!1,H(U),!x)if(s(h)!==null)x=!0,tt||(tt=!0,ot());else{var I=s(g);I!==null&<(W,I.startTime-U)}}var tt=!1,P=-1,K=5,et=-1;function ct(){return _?!0:!(n.unstable_now()-et<K)}function rt(){if(_=!1,tt){var U=n.unstable_now();et=U;var I=!0;try{t:{x=!1,L&&(L=!1,Q(P),P=-1),S=!0;var at=C;try{e:{for(H(U),y=s(h);y!==null&&!(y.expirationTime>U&&ct());){var dt=y.callback;if(typeof dt=="function"){y.callback=null,C=y.priorityLevel;var A=dt(y.expirationTime<=U);if(U=n.unstable_now(),typeof A=="function"){y.callback=A,H(U),I=!0;break e}y===s(h)&&o(h),H(U)}else o(h);y=s(h)}if(y!==null)I=!0;else{var E=s(g);E!==null&<(W,E.startTime-U),I=!1}}break t}finally{y=null,C=at,S=!1}I=void 0}}finally{I?ot():tt=!1}}}var ot;if(typeof X=="function")ot=function(){X(rt)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,xt=jt.port2;jt.port1.onmessage=rt,ot=function(){xt.postMessage(null)}}else ot=function(){O(rt,0)};function lt(U,I){P=O(function(){U(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(U){switch(C){case 1:case 2:case 3:var I=3;break;default:I=C}var at=C;C=I;try{return U()}finally{C=at}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(U,I){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var at=C;C=U;try{return I()}finally{C=at}},n.unstable_scheduleCallback=function(U,I,at){var dt=n.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?dt+at:dt):at=dt,U){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=at+A,U={id:v++,callback:I,priorityLevel:U,startTime:at,expirationTime:A,sortIndex:-1},at>dt?(U.sortIndex=at,a(g,U),s(h)===null&&U===s(g)&&(L?(Q(P),P=-1):L=!0,lt(W,at-dt))):(U.sortIndex=A,a(h,U),x||S||(x=!0,tt||(tt=!0,ot()))),U},n.unstable_shouldYield=ct,n.unstable_wrapCallback=function(U){var I=C;return function(){var at=C;C=I;try{return U.apply(this,arguments)}finally{C=at}}}})(Kc)),Kc}var Wp;function O2(){return Wp||(Wp=1,Zc.exports=M2()),Zc.exports}var Fc={exports:{}},me={};var tg;function L2(){if(tg)return me;tg=1;var n=Mr();function a(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},l=Symbol.for("react.portal");function f(h,g,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:h,containerInfo:g,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,me.createPortal=function(h,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(h,g,null,v)},me.flushSync=function(h){var g=d.T,v=o.p;try{if(d.T=null,o.p=2,h)return h()}finally{d.T=g,o.p=v,o.d.f()}},me.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(h,g))},me.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},me.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var v=g.as,y=m(v,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?o.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:C,fetchPriority:S}):v==="script"&&o.d.X(h,{crossOrigin:y,integrity:C,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},me.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=m(g.as,g.crossOrigin);o.d.M(h,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(h)},me.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,y=m(v,g.crossOrigin);o.d.L(h,v,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},me.preloadModule=function(h,g){if(typeof h=="string")if(g){var v=m(g.as,g.crossOrigin);o.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(h)},me.requestFormReset=function(h){o.d.r(h)},me.unstable_batchedUpdates=function(h,g){return h(g)},me.useFormState=function(h,g,v){return d.H.useFormState(h,g,v)},me.useFormStatus=function(){return d.H.useHostTransitionStatus()},me.version="19.2.4",me}var eg;function y1(){if(eg)return Fc.exports;eg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Fc.exports=L2(),Fc.exports}var ng;function N2(){if(ng)return sr;ng=1;var n=O2(),a=Mr(),s=y1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(f(t)!==t)throw Error(o(188))}function g(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(o(188));return e!==t?null:t}for(var i=t,r=e;;){var u=i.return;if(u===null)break;var c=u.alternate;if(c===null){if(r=u.return,r!==null){i=r;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===i)return h(u),t;if(c===r)return h(u),e;c=c.sibling}throw Error(o(188))}if(i.return!==r.return)i=u,r=c;else{for(var p=!1,b=u.child;b;){if(b===i){p=!0,i=u,r=c;break}if(b===r){p=!0,r=u,i=c;break}b=b.sibling}if(!p){for(b=c.child;b;){if(b===i){p=!0,i=c,r=u;break}if(b===r){p=!0,r=c,i=u;break}b=b.sibling}if(!p)throw Error(o(189))}}if(i.alternate!==r)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,C=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),et=Symbol.for("react.activity"),ct=Symbol.for("react.memo_cache_sentinel"),rt=Symbol.iterator;function ot(t){return t===null||typeof t!="object"?null:(t=rt&&t[rt]||t["@@iterator"],typeof t=="function"?t:null)}var jt=Symbol.for("react.client.reference");function xt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case O:return"Profiler";case _:return"StrictMode";case W:return"Suspense";case tt:return"SuspenseList";case et:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case X:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case H:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:xt(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return xt(t(e))}catch{}}return null}var lt=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},dt=[],A=-1;function E(t){return{current:t}}function k(t){0>A||(t.current=dt[A],dt[A]=null,A--)}function Y(t,e){A++,dt[A]=t.current,t.current=e}var J=E(null),F=E(null),nt=E(null),gt=E(null);function zt(t,e){switch(Y(nt,e),Y(F,t),Y(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?yp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=yp(e),t=vp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}k(J),Y(J,t)}function Nt(){k(J),k(F),k(nt)}function wn(t){t.memoizedState!==null&&Y(gt,t);var e=J.current,i=vp(e,t.type);e!==i&&(Y(F,t),Y(J,i))}function En(t){F.current===t&&(k(J),k(F)),gt.current===t&&(k(gt),tr._currentValue=at)}var Zn,us;function cn(t){if(Zn===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Zn=e&&e[1]||"",us=-1<i.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+Zn+t+us}var cs=!1;function fi(t,e){if(!t||cs)return"";cs=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(e){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(j){var q=j}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(j){q=j}t.call(Z.prototype)}}else{try{throw Error()}catch(j){q=j}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}
vendor: 11,884 bytes, lines 4-9
4catch(j){if(j&&q&&typeof j.stack=="string")return[j.stack,q.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),p=c[0],b=c[1];if(p&&b){var R=p.split(` 5`),B=b.split(` 6`);for(u=r=0;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;for(;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;if(r===R.length||u===B.length)for(r=R.length-1,u=B.length-1;1<=r&&0<=u&&R[r]!==B[u];)u--;for(;1<=r&&0<=u;r--,u--)if(R[r]!==B[u]){if(r!==1||u!==1)do if(r--,u--,0>u||R[r]!==B[u]){var G=` 7`+R[r].replace(" at new "," at ");return t.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",t.displayName)),G}while(1<=r&&0<=u);break}}}finally{cs=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?cn(i):""}function Nr(t,e){switch(t.tag){case 26:case 27:case 5:return cn(t.type);case 16:return cn("Lazy");case 13:return t.child!==e&&e!==null?cn("Suspense Fallback"):cn("Suspense");case 19:return cn("SuspenseList");case 0:case 15:return fi(t.type,!1);case 11:return fi(t.type.render,!1);case 1:return fi(t.type,!0);case 31:return cn("Activity");default:return""}}function Cn(t){try{var e="",i=null;do e+=Nr(t,i),i=t,t=t.return;while(t);return e}catch(r){return` 8Error generating stack: `+r.message+` 9`+r.stack}}var ka=Object.prototype.hasOwnProperty,tn=n.unstable_scheduleCallback,fs=n.unstable_cancelCallback,kr=n.unstable_shouldYield,kl=n.unstable_requestPaint,he=n.unstable_now,Bt=n.unstable_getCurrentPriorityLevel,oe=n.unstable_ImmediatePriority,fn=n.unstable_UserBlockingPriority,di=n.unstable_NormalPriority,rv=n.unstable_LowPriority,Ff=n.unstable_IdlePriority,ov=n.log,lv=n.unstable_setDisableYieldValue,ds=null,Oe=null;function Kn(t){if(typeof ov=="function"&&lv(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(ds,t)}catch{}}var Le=Math.clz32?Math.clz32:fv,uv=Math.log,cv=Math.LN2;function fv(t){return t>>>=0,t===0?32:31-(uv(t)/cv|0)|0}var Dr=256,zr=262144,Br=4194304;function Da(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ur(t,e,i){var r=t.pendingLanes;if(r===0)return 0;var u=0,c=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var b=r&134217727;return b!==0?(r=b&~c,r!==0?u=Da(r):(p&=b,p!==0?u=Da(p):i||(i=b&~t,i!==0&&(u=Da(i))))):(b=r&~c,b!==0?u=Da(b):p!==0?u=Da(p):i||(i=r&~t,i!==0&&(u=Da(i)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:u}function hs(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Jf(){var t=Br;return Br<<=1,(Br&62914560)===0&&(Br=4194304),t}function Dl(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function ms(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function hv(t,e,i,r,u,c){var p=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var b=t.entanglements,R=t.expirationTimes,B=t.hiddenUpdates;for(i=p&~i;0<i;){var G=31-Le(i),Z=1<<G;b[G]=0,R[G]=-1;var q=B[G];if(q!==null)for(B[G]=null,G=0;G<q.length;G++){var j=q[G];j!==null&&(j.lane&=-536870913)}i&=~Z}r!==0&&Wf(t,r,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(p&~e))}function Wf(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var r=31-Le(e);t.entangledLanes|=e,t.entanglements[r]=t.entanglements[r]|1073741824|i&261930}function td(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var r=31-Le(i),u=1<<r;u&e|t[r]&e&&(t[r]|=e),i&=~u}}function ed(t,e){var i=e&-e;return i=(i&42)!==0?1:zl(i),(i&(t.suspendedLanes|e))!==0?0:i}function zl(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Bl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function nd(){var t=I.p;return t!==0?t:(t=window.event,t===void 0?32:Vp(t.type))}function ad(t,e){var i=I.p;try{return I.p=t,e()}finally{I.p=i}}var Fn=Math.random().toString(36).slice(2),le="__reactFiber$"+Fn,ge="__reactProps$"+Fn,hi="__reactContainer$"+Fn,Ul="__reactEvents$"+Fn,mv="__reactListeners$"+Fn,pv="__reactHandles$"+Fn,id="__reactResources$"+Fn,ps="__reactMarker$"+Fn;function ql(t){delete t[le],delete t[ge],delete t[Ul],delete t[mv],delete t[pv]}function mi(t){var e=t[le];if(e)return e;for(var i=t.parentNode;i;){if(e=i[hi]||i[le]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=Tp(t);t!==null;){if(i=t[le])return i;t=Tp(t)}return e}t=i,i=t.parentNode}return null}function pi(t){if(t=t[le]||t[hi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function gs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function gi(t){var e=t[id];return e||(e=t[id]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[ps]=!0}var sd=new Set,rd={};function za(t,e){yi(t,e),yi(t+"Capture",e)}function yi(t,e){for(rd[t]=e,t=0;t<e.length;t++)sd.add(e[t])}var gv=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]*$"),od={},ld={};function yv(t){return ka.call(ld,t)?!0:ka.call(od,t)?!1:gv.test(t)?ld[t]=!0:(od[t]=!0,!1)}function qr(t,e,i){if(yv(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var r=e.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function jr(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function _n(t,e,i,r){if(r===null)t.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+r)}}function Ve(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ud(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function vv(t,e,i){var r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,c=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(p){i=""+p,c.call(this,p)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(p){i=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function jl(t){if(!t._valueTracker){var e=ud(t)?"checked":"value";t._valueTracker=vv(t,e,""+t[e])}}function cd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),r="";return t&&(r=ud(t)?t.checked?"true":"false":t.value),t=r,t!==i?(e.setValue(t),!0):!1}function Hr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var bv=/[\n"\\]/g;function Qe(t){return t.replace(bv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Hl(t,e,i,r,u,c,p,b){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ve(e)):t.value!==""+Ve(e)&&(t.value=""+Ve(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?Vl(t,p,Ve(e)):i!=null?Vl(t,p,Ve(i)):r!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ve(b):t.removeAttribute("name")}function fd(t,e,i,r,u,c,p,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){jl(t);return}i=i!=null?""+Ve(i):"",e=e!=null?""+Ve(e):i,b||e===t.value||(t.value=e),t.defaultValue=e}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,t.checked=b?t.checked:!!r,t.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),jl(t)}function Vl(t,e,i){e==="number"&&Hr(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function vi(t,e,i,r){if(t=t.options,e){e={};for(var u=0;u<i.length;u++)e["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=e.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&r&&(t[i].defaultSelected=!0)}else{for(i=""+Ve(i),e=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,r&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function dd(t,e,i){if(e!=null&&(e=""+Ve(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Ve(i):""}function hd(t,e,i,r){if(e==null){if(r!=null){if(i!=null)throw Error(o(92));if(lt(r)){if(1<r.length)throw Error(o(93));r=r[0]}i=r}i==null&&(i=""),e=i}i=Ve(e),t.defaultValue=i,r=t.textContent,r===i&&r!==""&&r!==null&&(t.value=r),jl(t)}function bi(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var Sv=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(" "));
vendor: 12,330 bytes, line 9
9function md(t,e,i){var r=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":r?t.setProperty(e,i):typeof i!="number"||i===0||Sv.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function pd(t,e,i){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||e!=null&&e.hasOwnProperty(r)||(r.indexOf("--")===0?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="");for(var u in e)r=e[u],e.hasOwnProperty(u)&&i[u]!==r&&md(t,u,r)}else for(var c in e)e.hasOwnProperty(c)&&md(t,c,e[c])}function Ql(t){if(t.indexOf("-")===-1)return!1;switch(t){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 wv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ev=/^[\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 Vr(t){return Ev.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Tn(){}var Pl=null;function Il(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Si=null,wi=null;function gd(t){var e=pi(t);if(e&&(t=e.stateNode)){var i=t[ge]||null;t:switch(t=e.stateNode,e.type){case"input":if(Hl(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Qe(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var r=i[e];if(r!==t&&r.form===t.form){var u=r[ge]||null;if(!u)throw Error(o(90));Hl(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<i.length;e++)r=i[e],r.form===t.form&&cd(r)}break t;case"textarea":dd(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&vi(t,!!i.multiple,e,!1)}}}var Gl=!1;function yd(t,e,i){if(Gl)return t(e,i);Gl=!0;try{var r=t(e);return r}finally{if(Gl=!1,(Si!==null||wi!==null)&&(Mo(),Si&&(e=Si,t=wi,wi=Si=null,gd(e),t)))for(e=0;e<t.length;e++)gd(t[e])}}function ys(t,e){var i=t.stateNode;if(i===null)return null;var r=i[ge]||null;if(r===null)return null;i=r[e];t:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,e,typeof i));return i}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yl=!1;if(xn)try{var vs={};Object.defineProperty(vs,"passive",{get:function(){Yl=!0}}),window.addEventListener("test",vs,vs),window.removeEventListener("test",vs,vs)}catch{Yl=!1}var Jn=null,$l=null,Qr=null;function vd(){if(Qr)return Qr;var t,e=$l,i=e.length,r,u="value"in Jn?Jn.value:Jn.textContent,c=u.length;for(t=0;t<i&&e[t]===u[t];t++);var p=i-t;for(r=1;r<=p&&e[i-r]===u[c-r];r++);return Qr=u.slice(t,1<r?1-r:void 0)}function Pr(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ir(){return!0}function bd(){return!1}function ye(t){function e(i,r,u,c,p){this._reactName=i,this._targetInst=u,this.type=r,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(i=t[b],this[b]=i?i(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ir:bd,this.isPropagationStopped=bd,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ir)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ir)},persist:function(){},isPersistent:Ir}),e}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gr=ye(Ba),bs=y({},Ba,{view:0,detail:0}),Cv=ye(bs),Xl,Zl,Ss,Yr=y({},bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fl,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ss&&(Ss&&t.type==="mousemove"?(Xl=t.screenX-Ss.screenX,Zl=t.screenY-Ss.screenY):Zl=Xl=0,Ss=t),Xl)},movementY:function(t){return"movementY"in t?t.movementY:Zl}}),Sd=ye(Yr),_v=y({},Yr,{dataTransfer:0}),Tv=ye(_v),xv=y({},bs,{relatedTarget:0}),Kl=ye(xv),Rv=y({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Av=ye(Rv),Mv=y({},Ba,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ov=ye(Mv),Lv=y({},Ba,{data:0}),wd=ye(Lv),Nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kv={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"},Dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Dv[t])?!!e[t]:!1}function Fl(){return zv}var Bv=y({},bs,{key:function(t){if(t.key){var e=Nv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Pr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?kv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fl,charCode:function(t){return t.type==="keypress"?Pr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Uv=ye(Bv),qv=y({},Yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ed=ye(qv),jv=y({},bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fl}),Hv=ye(jv),Vv=y({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=ye(Vv),Pv=y({},Yr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Iv=ye(Pv),Gv=y({},Ba,{newState:0,oldState:0}),Yv=ye(Gv),$v=[9,13,27,32],Jl=xn&&"CompositionEvent"in window,ws=null;xn&&"documentMode"in document&&(ws=document.documentMode);var Xv=xn&&"TextEvent"in window&&!ws,Cd=xn&&(!Jl||ws&&8<ws&&11>=ws),_d=" ",Td=!1;function xd(t,e){switch(t){case"keyup":return $v.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function Zv(t,e){switch(t){case"compositionend":return Rd(e);case"keypress":return e.which!==32?null:(Td=!0,_d);case"textInput":return t=e.data,t===_d&&Td?null:t;default:return null}}function Kv(t,e){if(Ei)return t==="compositionend"||!Jl&&xd(t,e)?(t=vd(),Qr=$l=Jn=null,Ei=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Cd&&e.locale!=="ko"?null:e.data;default:return null}}var Fv={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 Ad(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Fv[t.type]:e==="textarea"}function Md(t,e,i,r){Si?wi?wi.push(r):wi=[r]:Si=r,e=Bo(e,"onChange"),0<e.length&&(i=new Gr("onChange","change",null,i,r),t.push({event:i,listeners:e}))}var Es=null,Cs=null;function Jv(t){fp(t,0)}function $r(t){var e=gs(t);if(cd(e))return t}function Od(t,e){if(t==="change")return e}var Ld=!1;if(xn){var Wl;if(xn){var tu="oninput"in document;if(!tu){var Nd=document.createElement("div");Nd.setAttribute("oninput","return;"),tu=typeof Nd.oninput=="function"}Wl=tu}else Wl=!1;Ld=Wl&&(!document.documentMode||9<document.documentMode)}function kd(){Es&&(Es.detachEvent("onpropertychange",Dd),Cs=Es=null)}function Dd(t){if(t.propertyName==="value"&&$r(Cs)){var e=[];Md(e,Cs,t,Il(t)),yd(Jv,e)}}function Wv(t,e,i){t==="focusin"?(kd(),Es=e,Cs=i,Es.attachEvent("onpropertychange",Dd)):t==="focusout"&&kd()}function t0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return $r(Cs)}function e0(t,e){if(t==="click")return $r(e)}function n0(t,e){if(t==="input"||t==="change")return $r(e)}function a0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ne=typeof Object.is=="function"?Object.is:a0;function _s(t,e){if(Ne(t,e))return!0;
vendor: 23,828 bytes, line 9
9if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var u=i[r];if(!ka.call(e,u)||!Ne(t[u],e[u]))return!1}return!0}function zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bd(t,e){var i=zd(t);t=0;for(var r;i;){if(i.nodeType===3){if(r=t+i.textContent.length,t<=e&&r>=e)return{node:i,offset:e-t};t=r}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=zd(i)}}function Ud(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ud(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Hr(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Hr(t.document)}return e}function eu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var i0=xn&&"documentMode"in document&&11>=document.documentMode,Ci=null,nu=null,Ts=null,au=!1;function jd(t,e,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;au||Ci==null||Ci!==Hr(r)||(r=Ci,"selectionStart"in r&&eu(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}),Ts&&_s(Ts,r)||(Ts=r,r=Bo(nu,"onSelect"),0<r.length&&(e=new Gr("onSelect","select",null,e,i),t.push({event:e,listeners:r}),e.target=Ci)))}function Ua(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var _i={animationend:Ua("Animation","AnimationEnd"),animationiteration:Ua("Animation","AnimationIteration"),animationstart:Ua("Animation","AnimationStart"),transitionrun:Ua("Transition","TransitionRun"),transitionstart:Ua("Transition","TransitionStart"),transitioncancel:Ua("Transition","TransitionCancel"),transitionend:Ua("Transition","TransitionEnd")},iu={},Hd={};xn&&(Hd=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function qa(t){if(iu[t])return iu[t];if(!_i[t])return t;var e=_i[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Hd)return iu[t]=e[i];return t}var Vd=qa("animationend"),Qd=qa("animationiteration"),Pd=qa("animationstart"),s0=qa("transitionrun"),r0=qa("transitionstart"),o0=qa("transitioncancel"),Id=qa("transitionend"),Gd=new Map,su="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(" ");su.push("scrollEnd");function en(t,e){Gd.set(t,e),za(e,[t])}var Xr=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Pe=[],Ti=0,ru=0;function Zr(){for(var t=Ti,e=ru=Ti=0;e<t;){var i=Pe[e];Pe[e++]=null;var r=Pe[e];Pe[e++]=null;var u=Pe[e];Pe[e++]=null;var c=Pe[e];if(Pe[e++]=null,r!==null&&u!==null){var p=r.pending;p===null?u.next=u:(u.next=p.next,p.next=u),r.pending=u}c!==0&&Yd(i,u,c)}}function Kr(t,e,i,r){Pe[Ti++]=t,Pe[Ti++]=e,Pe[Ti++]=i,Pe[Ti++]=r,ru|=r,t.lanes|=r,t=t.alternate,t!==null&&(t.lanes|=r)}function ou(t,e,i,r){return Kr(t,e,i,r),Fr(t)}function ja(t,e){return Kr(t,null,null,e),Fr(t)}function Yd(t,e,i){t.lanes|=i;var r=t.alternate;r!==null&&(r.lanes|=i);for(var u=!1,c=t.return;c!==null;)c.childLanes|=i,r=c.alternate,r!==null&&(r.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-Le(i),t=c.hiddenUpdates,r=t[u],r===null?t[u]=[e]:r.push(e),e.lane=i|536870912),c):null}function Fr(t){if(50<$s)throw $s=0,gc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var xi={};function l0(t,e,i,r){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 ke(t,e,i,r){return new l0(t,e,i,r)}function lu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rn(t,e){var i=t.alternate;return i===null?(i=ke(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function $d(t,e){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Jr(t,e,i,r,u,c){var p=0;if(r=t,typeof t=="function")lu(t)&&(p=1);else if(typeof t=="string")p=h2(t,i,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case et:return t=ke(31,i,e,u),t.elementType=et,t.lanes=c,t;case L:return Ha(i.children,u,c,e);case _:p=8,u|=24;break;case O:return t=ke(12,i,e,u|2),t.elementType=O,t.lanes=c,t;case W:return t=ke(13,i,e,u),t.elementType=W,t.lanes=c,t;case tt:return t=ke(19,i,e,u),t.elementType=tt,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:p=10;break t;case Q:p=9;break t;case H:p=11;break t;case P:p=14;break t;case K:p=16,r=null;break t}p=29,i=Error(o(130,t===null?"null":typeof t,"")),r=null}return e=ke(p,i,e,u),e.elementType=t,e.type=r,e.lanes=c,e}function Ha(t,e,i,r){return t=ke(7,t,r,e),t.lanes=i,t}function uu(t,e,i){return t=ke(6,t,null,e),t.lanes=i,t}function Xd(t){var e=ke(18,null,null,0);return e.stateNode=t,e}function cu(t,e,i){return e=ke(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Zd=new WeakMap;function Ie(t,e){if(typeof t=="object"&&t!==null){var i=Zd.get(t);return i!==void 0?i:(e={value:t,source:e,stack:Cn(e)},Zd.set(t,e),e)}return{value:t,source:e,stack:Cn(e)}}var Ri=[],Ai=0,Wr=null,xs=0,Ge=[],Ye=0,Wn=null,dn=1,hn="";function An(t,e){Ri[Ai++]=xs,Ri[Ai++]=Wr,Wr=t,xs=e}function Kd(t,e,i){Ge[Ye++]=dn,Ge[Ye++]=hn,Ge[Ye++]=Wn,Wn=t;var r=dn;t=hn;var u=32-Le(r)-1;r&=~(1<<u),i+=1;var c=32-Le(e)+u;if(30<c){var p=u-u%5;c=(r&(1<<p)-1).toString(32),r>>=p,u-=p,dn=1<<32-Le(e)+u|i<<u|r,hn=c+t}else dn=1<<c|i<<u|r,hn=t}function fu(t){t.return!==null&&(An(t,1),Kd(t,1,0))}function du(t){for(;t===Wr;)Wr=Ri[--Ai],Ri[Ai]=null,xs=Ri[--Ai],Ri[Ai]=null;for(;t===Wn;)Wn=Ge[--Ye],Ge[Ye]=null,hn=Ge[--Ye],Ge[Ye]=null,dn=Ge[--Ye],Ge[Ye]=null}function Fd(t,e){Ge[Ye++]=dn,Ge[Ye++]=hn,Ge[Ye++]=Wn,dn=e.id,hn=e.overflow,Wn=t}var ue=null,Ut=null,wt=!1,ta=null,$e=!1,hu=Error(o(519));function ea(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(Ie(e,t)),hu}function Jd(t){var e=t.stateNode,i=t.type,r=t.memoizedProps;switch(e[le]=t,e[ge]=r,i){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(i=0;i<Zs.length;i++)vt(Zs[i],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),fd(e,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),hd(e,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||r.suppressHydrationWarning===!0||pp(e.textContent,i)?(r.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),r.onScroll!=null&&vt("scroll",e),r.onScrollEnd!=null&&vt("scrollend",e),r.onClick!=null&&(e.onclick=Tn),e=!0):e=!1,e||ea(t,!0)}function Wd(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 31:case 13:$e=!1;return;case 27:case 3:$e=!0;return;default:ue=ue.return}}function Mi(t){if(t!==ue)return!1;if(!wt)return Wd(t),wt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Lc(t.type,t.memoizedProps)),i=!i),i&&Ut&&ea(t),Wd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=_p(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=_p(t)}else e===27?(e=Ut,pa(t.type)?(t=Bc,Bc=null,Ut=t):Ut=e):Ut=ue?Ze(t.stateNode.nextSibling):null;return!0}function Va(){Ut=ue=null,wt=!1}function mu(){var t=ta;return t!==null&&(we===null?we=t:we.push.apply(we,t),ta=null),t}function Rs(t){ta===null?ta=[t]:ta.push(t)}var pu=E(null),Qa=null,Mn=null;function na(t,e,i){Y(pu,e._currentValue),e._currentValue=i}function On(t){t._currentValue=pu.current,k(pu)}function gu(t,e,i){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===i)break;t=t.return}}function yu(t,e,i,r){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var p=u.child;c=c.firstContext;t:for(;c!==null;){var b=c;c=u;for(var R=0;R<e.length;R++)if(b.context===e[R]){c.lanes|=i,b=c.alternate,b!==null&&(b.lanes|=i),gu(c.return,i,t),r||(p=null);break t}c=b.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(o(341));p.lanes|=i,c=p.alternate,c!==null&&(c.lanes|=i),gu(p,i,t),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===t){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function Oi(t,e,i,r){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var p=u.alternate;if(p===null)throw Error(o(387));if(p=p.memoizedProps,p!==null){var b=u.type;Ne(u.pendingProps.value,p.value)||(t!==null?t.push(b):t=[b])}}else if(u===gt.current){if(p=u.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(tr):t=[tr])}u=u.return}t!==null&&yu(e,t,i,r),e.flags|=262144}function to(t){for(t=t.firstContext;t!==null;){if(!Ne(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Pa(t){Qa=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ce(t){return th(Qa,t)}function eo(t,e){return Qa===null&&Pa(t),th(t,e)}function th(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Mn===null){if(t===null)throw Error(o(308));Mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Mn=Mn.next=e;return i}var u0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,r){t.push(r)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},c0=n.unstable_scheduleCallback,f0=n.unstable_NormalPriority,$t={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vu(){return{controller:new u0,data:new Map,refCount:0}}function As(t){t.refCount--,t.refCount===0&&c0(f0,function(){t.controller.abort()})}var Ms=null,bu=0,Li=0,Ni=null;function d0(t,e){if(Ms===null){var i=Ms=[];bu=0,Li=Ec(),Ni={status:"pending",value:void 0,then:function(r){i.push(r)}}}return bu++,e.then(eh,eh),e}function eh(){if(--bu===0&&Ms!==null){Ni!==null&&(Ni.status="fulfilled");var t=Ms;Ms=null,Li=0,Ni=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function h0(t,e){var i=[],r={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){r.status="fulfilled",r.value=e;for(var u=0;u<i.length;u++)(0,i[u])(e)},function(u){for(r.status="rejected",r.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),r}var nh=U.S;U.S=function(t,e){jm=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&d0(t,e),nh!==null&&nh(t,e)};var Ia=E(null);function Su(){var t=Ia.current;return t!==null?t:kt.pooledCache}function no(t,e){e===null?Y(Ia,Ia.current):Y(Ia,e.pool)}function ah(){var t=Su();return t===null?null:{parent:$t._currentValue,pool:t}}var ki=Error(o(460)),wu=Error(o(474)),ao=Error(o(542)),io={then:function(){}};function ih(t){return t=t.status,t==="fulfilled"||t==="rejected"}function sh(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(Tn,Tn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,oh(t),t;default:if(typeof e.status=="string")e.then(Tn,Tn);else{if(t=kt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(r){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=r}},function(r){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=r}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,oh(t),t}throw Ya=e,ki}}function Ga(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ya=i,ki):i}}var Ya=null;function rh(){if(Ya===null)throw Error(o(459));var t=Ya;return Ya=null,t}function oh(t){if(t===ki||t===ao)throw Error(o(483))}var Di=null,Os=0;function so(t){var e=Os;return Os+=1,Di===null&&(Di=[]),sh(Di,t,e)}function Ls(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ro(t,e){throw e.$$typeof===C?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function lh(t){function e(N,M){if(t){var z=N.deletions;z===null?(N.deletions=[M],N.flags|=16):z.push(M)}}function i(N,M){if(!t)return null;for(;M!==null;)e(N,M),M=M.sibling;return null}function r(N){for(var M=new Map;N!==null;)N.key!==null?M.set(N.key,N):M.set(N.index,N),N=N.sibling;return M}function u(N,M){return N=Rn(N,M),N.index=0,N.sibling=null,N}function c(N,M,z){return N.index=z,t?(z=N.alternate,z!==null?(z=z.index,z<M?(N.flags|=67108866,M):z):(N.flags|=67108866,M)):(N.flags|=1048576,M)}function p(N){return t&&N.alternate===null&&(N.flags|=67108866),N}function b(N,M,z,$){return M===null||M.tag!==6?(M=uu(z,N.mode,$),M.return=N,M):(M=u(M,z),M.return=N,M)}function R(N,M,z,$){var ut=z.type;return ut===L?G(N,M,z.props.children,$,z.key):M!==null&&(M.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===K&&Ga(ut)===M.type)?(M=u(M,z.props),Ls(M,z),M.return=N,M):(M=Jr(z.type,z.key,z.props,null,N.mode,$),Ls(M,z),M.return=N,M)}function B(N,M,z,$){return M===null||M.tag!==4||M.stateNode.containerInfo!==z.containerInfo||M.stateNode.implementation!==z.implementation?(M=cu(z,N.mode,$),M.return=N,M):(M=u(M,z.children||[]),M.return=N,M)}function G(N,M,z,$,ut){return M===null||M.tag!==7?(M=Ha(z,N.mode,$,ut),M.return=N,M):(M=u(M,z),M.return=N,M)}function Z(N,M,z){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=uu(""+M,N.mode,z),M.return=N,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return z=Jr(M.type,M.key,M.props,null,N.mode,z),Ls(z,M),z.return=N,z;case x:return M=cu(M,N.mode,z),M.return=N,M;case K:return M=Ga(M),Z(N,M,z)}if(lt(M)||ot(M))return M=Ha(M,N.mode,z,null),M.return=N,M;if(typeof M.then=="function")return Z(N,so(M),z);if(M.$$typeof===X)return Z(N,eo(N,M),z);ro(N,M)}return null}function q(N,M,z,$){var ut=M!==null?M.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ut!==null?null:b(N,M,""+z,$);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return z.key===ut?R(N,M,z,$):null;case x:return z.key===ut?B(N,M,z,$):null;case K:return z=Ga(z),q(N,M,z,$)}if(lt(z)||ot(z))return ut!==null?null:G(N,M,z,$,null);if(typeof z.then=="function")return q(N,M,so(z),$);if(z.$$typeof===X)return q(N,M,eo(N,z),$);ro(N,z)}return null}function j(N,M,z,$,ut){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return N=N.get(z)||null,b(M,N,""+$,ut);if(typeof $=="object"&&$!==null){switch($.$$typeof){case S:return N=N.get($.key===null?z:$.key)||null,R(M,N,$,ut);case x:return N=N.get($.key===null?z:$.key)||null,B(M,N,$,ut);case K:return $=Ga($),j(N,M,z,$,ut)}if(lt($)||ot($))return N=N.get(z)||null,G(M,N,$,ut,null);if(typeof $.then=="function")return j(N,M,z,so($),ut);if($.$$typeof===X)return j(N,M,z,eo(M,$),ut);ro(M,$)}return null}function it(N,M,z,$){for(var ut=null,Et=null,st=M,pt=M=0,St=null;st!==null&&pt<z.length;pt++){st.index>pt?(St=st,st=null):St=st.sibling;var Ct=q(N,st,z[pt],$);if(Ct===null){st===null&&(st=St);break}t&&st&&Ct.alternate===null&&e(N,st),M=c(Ct,M,pt),Et===null?ut=Ct:Et.sibling=Ct,Et=Ct,st=St}if(pt===z.length)return i(N,st),wt&&An(N,pt),ut;if(st===null){for(;pt<z.length;pt++)st=Z(N,z[pt],$),st!==null&&(M=c(st,M,pt),Et===null?ut=st:Et.sibling=st,Et=st);return wt&&An(N,pt),ut}for(st=r(st);pt<z.length;pt++)St=j(st,N,pt,z[pt],$),St!==null&&(t&&St.alternate!==null&&st.delete(St.key===null?pt:St.key),M=c(St,M,pt),Et===null?ut=St:Et.sibling=St,Et=St);return t&&st.forEach(function(Sa){return e(N,Sa)}),wt&&An(N,pt),ut}function ft(N,M,z,$){if(z==null)throw Error(o(151));for(var ut=null,Et=null,st=M,pt=M=0,St=null,Ct=z.next();st!==null&&!Ct.done;pt++,Ct=z.next()){st.index>pt?(St=st,st=null):St=st.sibling;var Sa=q(N,st,Ct.value,$);if(Sa===null){st===null&&(st=St);break}t&&st&&Sa.alternate===null&&e(N,st),M=c(Sa,M,pt),Et===null?ut=Sa:Et.sibling=Sa,Et=Sa,st=St}if(Ct.done)return i(N,st),wt&&An(N,pt),ut;if(st===null){for(;!Ct.done;pt++,Ct=z.next())Ct=Z(N,Ct.value,$),Ct!==null&&(M=c(Ct,M,pt),Et===null?ut=Ct:Et.sibling=Ct,Et=Ct);return wt&&An(N,pt),ut}for(st=r(st);!Ct.done;pt++,Ct=z.next())Ct=j(st,N,pt,Ct.value,$),Ct!==null&&(t&&Ct.alternate!==null&&st.delete(Ct.key===null?pt:Ct.key),M=c(Ct,M,pt),Et===null?ut=Ct:Et.sibling=Ct,Et=Ct);return t&&st.forEach(function(_2){return e(N,_2)}),wt&&An(N,pt),ut}function Lt(N,M,z,$){if(typeof z=="object"&&z!==null&&z.type===L&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case S:t:{for(var ut=z.key;M!==null;){if(M.key===ut){if(ut=z.type,ut===L){if(M.tag===7){i(N,M.sibling),$=u(M,z.props.children),$.return=N,N=$;break t}}else if(M.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===K&&Ga(ut)===M.type){i(N,M.sibling),$=u(M,z.props),Ls($,z),$.return=N,N=$;break t}i(N,M);break}else e(N,M);M=M.sibling}z.type===L?($=Ha(z.props.children,N.mode,$,z.key),$.return=N,N=$):($=Jr(z.type,z.key,z.props,null,N.mode,$),Ls($,z),$.return=N,N=$)}return p(N);case x:t:{for(ut=z.key;M!==null;){if(M.key===ut)if(M.tag===4&&M.stateNode.containerInfo===z.containerInfo&&M.stateNode.implementation===z.implementation){i(N,M.sibling),$=u(M,z.children||[]),$.return=N,N=$;break t}else{i(N,M);break}else e(N,M);M=M.sibling}$=cu(z,N.mode,$),$.return=N,N=$}return p(N);case K:return z=Ga(z),Lt(N,M,z,$)}if(lt(z))return it(N,M,z,$);if(ot(z)){if(ut=ot(z),typeof ut!="function")throw Error(o(150));return z=ut.call(z),ft(N,M,z,$)}if(typeof z.then=="function")return Lt(N,M,so(z),$);if(z.$$typeof===X)return Lt(N,M,eo(N,z),$);ro(N,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,M!==null&&M.tag===6?(i(N,M.sibling),$=u(M,z),$.return=N,N=$):(i(N,M),$=uu(z,N.mode,$),$.return=N,N=$),p(N)):i(N,M)}return function(N,M,z,$){try{Os=0;var ut=Lt(N,M,z,$);return Di=null,ut}catch(st){if(st===ki||st===ao)throw st;var Et=ke(29,st,null,N.mode);return Et.lanes=$,Et.return=N,Et}finally{}}}var $a=lh(!0),uh=lh(!1),aa=!1;function Eu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ia(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function sa(t,e,i){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(Tt&2)!==0){var u=r.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),r.pending=e,e=Fr(t),Yd(t,null,i),e}return Kr(t,r,e,i),Fr(t)}function Ns(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var r=e.lanes;r&=t.pendingLanes,i|=r,e.lanes=i,td(t,i)}}function _u(t,e){var i=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var u=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var p={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?u=c=p:c=c.next=p,i=i.next}while(i!==null);c===null?u=c=e:c=c.next=e}else u=c=e;i={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var Tu=!1;function ks(){if(Tu){var t=Ni;if(t!==null)throw t}}function Ds(t,e,i,r){Tu=!1;var u=t.updateQueue;aa=!1;var c=u.firstBaseUpdate,p=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var R=b,B=R.next;R.next=null,p===null?c=B:p.next=B,p=R;var G=t.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==p&&(b===null?G.firstBaseUpdate=B:b.next=B,G.lastBaseUpdate=R))}if(c!==null){var Z=u.baseState;p=0,G=B=R=null,b=c;do{var q=b.lane&-536870913,j=q!==b.lane;if(j?(bt&q)===q:(r&q)===q){q!==0&&q===Li&&(Tu=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var it=t,ft=b;q=e;var Lt=i;switch(ft.tag){case 1:if(it=ft.payload,typeof it=="function"){Z=it.call(Lt,Z,q);break t}Z=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ft.payload,q=typeof it=="function"?it.call(Lt,Z,q):it,q==null)break t;Z=y({},Z,q);break t;case 2:aa=!0}}q=b.callback,q!==null&&(t.flags|=64,j&&(t.flags|=8192),j=u.callbacks,j===null?u.callbacks=[q]:j.push(q))}else j={lane:q,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(B=G=j,R=Z):G=G.next=j,p|=q;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;j=b,b=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);G===null&&(R=Z),u.baseState=R,u.firstBaseUpdate=B,u.lastBaseUpdate=G,c===null&&(u.shared.lanes=0),ca|=p,t.lanes=p,t.memoizedState=Z}}function ch(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function fh(t,e){var i=t.callbacks;
vendor: 5,138 bytes, line 9
9if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)ch(i[t],e)}var zi=E(null),oo=E(0);function dh(t,e){t=jn,Y(oo,t),Y(zi,e),jn=t|e.baseLanes}function xu(){Y(oo,jn),Y(zi,zi.current)}function Ru(){jn=oo.current,k(zi),k(oo)}var De=E(null),Xe=null;function ra(t){var e=t.alternate;Y(It,It.current&1),Y(De,t),Xe===null&&(e===null||zi.current!==null||e.memoizedState!==null)&&(Xe=t)}function Au(t){Y(It,It.current),Y(De,t),Xe===null&&(Xe=t)}function hh(t){t.tag===22?(Y(It,It.current),Y(De,t),Xe===null&&(Xe=t)):oa()}function oa(){Y(It,It.current),Y(De,De.current)}function ze(t){k(De),Xe===t&&(Xe=null),k(It)}var It=E(0);function lo(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Dc(i)||zc(i)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ln=0,mt=null,Mt=null,Xt=null,uo=!1,Bi=!1,Xa=!1,co=0,zs=0,Ui=null,m0=0;function Qt(){throw Error(o(321))}function Mu(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Ne(t[i],e[i]))return!1;return!0}function Ou(t,e,i,r,u,c){return Ln=c,mt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Kh:Gu,Xa=!1,c=i(r,u),Xa=!1,Bi&&(c=ph(e,i,r,u)),mh(t),c}function mh(t){U.H=qs;var e=Mt!==null&&Mt.next!==null;if(Ln=0,Xt=Mt=mt=null,uo=!1,zs=0,Ui=null,e)throw Error(o(300));t===null||Zt||(t=t.dependencies,t!==null&&to(t)&&(Zt=!0))}function ph(t,e,i,r){mt=t;var u=0;do{if(Bi&&(Ui=null),zs=0,Bi=!1,25<=u)throw Error(o(301));if(u+=1,Xt=Mt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Fh,c=e(i,r)}while(Bi);return c}function p0(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Bs(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(mt.flags|=1024),e}function Lu(){var t=co!==0;return co=0,t}function Nu(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function ku(t){if(uo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}uo=!1}Ln=0,Xt=Mt=mt=null,Bi=!1,zs=co=0,Ui=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?mt.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Gt(){if(Mt===null){var t=mt.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Xt===null?mt.memoizedState:Xt.next;if(e!==null)Xt=e,Mt=t;else{if(t===null)throw mt.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Xt===null?mt.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bs(t){var e=zs;return zs+=1,Ui===null&&(Ui=[]),t=sh(Ui,t,e),e=mt,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Kh:Gu),t}function ho(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Bs(t);if(t.$$typeof===X)return ce(t)}throw Error(o(438,String(t)))}function Du(t){var e=null,i=mt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var r=mt.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(e={data:r.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=fo(),mt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),r=0;r<t;r++)i[r]=ct;return e.index++,i}function Nn(t,e){return typeof e=="function"?e(t):e}function mo(t){var e=Gt();return zu(e,Mt,t)}function zu(t,e,i){var r=t.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=i;var u=t.baseQueue,c=r.pending;if(c!==null){if(u!==null){var p=u.next;u.next=c.next,c.next=p}e.baseQueue=u=c,r.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var b=p=null,R=null,B=e,G=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(bt&Z)===Z:(Ln&Z)===Z){var q=B.revertLane;if(q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Z===Li&&(G=!0);else if((Ln&q)===q){B=B.next,q===Li&&(G=!0);continue}else Z={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},R===null?(b=R=Z,p=c):R=R.next=Z,mt.lanes|=q,ca|=q;Z=B.action,Xa&&i(c,Z),c=B.hasEagerState?B.eagerState:i(c,Z)}else q={lane:Z,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},R===null?(b=R=q,p=c):R=R.next=q,mt.lanes|=Z,ca|=Z;B=B.next}while(B!==null&&B!==e);if(R===null?p=c:R.next=b,!Ne(c,t.memoizedState)&&(Zt=!0,G&&(i=Ni,i!==null)))throw i;t.memoizedState=c,t.baseState=p,t.baseQueue=R,r.lastRenderedState=c}
vendor: 12,210 bytes, line 9
9return u===null&&(r.lanes=0),[t.memoizedState,r.dispatch]}function Bu(t){var e=Gt(),i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var r=i.dispatch,u=i.pending,c=e.memoizedState;if(u!==null){i.pending=null;var p=u=u.next;do c=t(c,p.action),p=p.next;while(p!==u);Ne(c,e.memoizedState)||(Zt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,r]}function gh(t,e,i){var r=mt,u=Gt(),c=wt;if(c){if(i===void 0)throw Error(o(407));i=i()}else i=e();var p=!Ne((Mt||u).memoizedState,i);if(p&&(u.memoizedState=i,Zt=!0),u=u.queue,ju(bh.bind(null,r,u,t),[t]),u.getSnapshot!==e||p||Xt!==null&&Xt.memoizedState.tag&1){if(r.flags|=2048,qi(9,{destroy:void 0},vh.bind(null,r,u,i,e),null),kt===null)throw Error(o(349));c||(Ln&127)!==0||yh(r,e,i)}return i}function yh(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=mt.updateQueue,e===null?(e=fo(),mt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function vh(t,e,i,r){e.value=i,e.getSnapshot=r,Sh(e)&&wh(t)}function bh(t,e,i){return i(function(){Sh(e)&&wh(t)})}function Sh(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Ne(t,i)}catch{return!0}}function wh(t){var e=ja(t,2);e!==null&&Ee(e,t,2)}function Uu(t){var e=pe();if(typeof t=="function"){var i=t;if(t=i(),Xa){Kn(!0);try{i()}finally{Kn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:t},e}function Eh(t,e,i,r){return t.baseState=i,zu(t,Mt,typeof r=="function"?r:Nn)}function g0(t,e,i,r,u){if(yo(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};U.T!==null?i(!0):c.isTransition=!1,r(c),i=e.pending,i===null?(c.next=e.pending=c,Ch(e,c)):(c.next=i.next,e.pending=i.next=c)}}function Ch(t,e){var i=e.action,r=e.payload,u=t.state;if(e.isTransition){var c=U.T,p={};U.T=p;try{var b=i(u,r),R=U.S;R!==null&&R(p,b),_h(t,e,b)}catch(B){qu(t,e,B)}finally{c!==null&&p.types!==null&&(c.types=p.types),U.T=c}}else try{c=i(u,r),_h(t,e,c)}catch(B){qu(t,e,B)}}function _h(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){Th(t,e,r)},function(r){return qu(t,e,r)}):Th(t,e,i)}function Th(t,e,i){e.status="fulfilled",e.value=i,xh(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Ch(t,i)))}function qu(t,e,i){var r=t.pending;if(t.pending=null,r!==null){r=r.next;do e.status="rejected",e.reason=i,xh(e),e=e.next;while(e!==r)}t.action=null}function xh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Rh(t,e){return e}function Ah(t,e){if(wt){var i=kt.formState;if(i!==null){t:{var r=mt;if(wt){if(Ut){e:{for(var u=Ut,c=$e;u.nodeType!==8;){if(!c){u=null;break e}if(u=Ze(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ut=Ze(u.nextSibling),r=u.data==="F!";break t}}ea(r)}r=!1}r&&(e=i[0])}}return i=pe(),i.memoizedState=i.baseState=e,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:e},i.queue=r,i=$h.bind(null,mt,r),r.dispatch=i,r=Uu(!1),c=Iu.bind(null,mt,!1,r.queue),r=pe(),u={state:e,dispatch:null,action:t,pending:null},r.queue=u,i=g0.bind(null,mt,u,c,i),u.dispatch=i,r.memoizedState=t,[e,i,!1]}function Mh(t){var e=Gt();return Oh(e,Mt,t)}function Oh(t,e,i){if(e=zu(t,e,Rh)[0],t=mo(Nn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var r=Bs(e)}catch(p){throw p===ki?ao:p}else r=e;e=Gt();var u=e.queue,c=u.dispatch;return i!==e.memoizedState&&(mt.flags|=2048,qi(9,{destroy:void 0},y0.bind(null,u,i),null)),[r,c,t]}function y0(t,e){t.action=e}function Lh(t){var e=Gt(),i=Mt;if(i!==null)return Oh(e,i,t);Gt(),e=e.memoizedState,i=Gt();var r=i.queue.dispatch;return i.memoizedState=t,[e,r,!1]}function qi(t,e,i,r){return t={tag:t,create:i,deps:r,inst:e,next:null},e=mt.updateQueue,e===null&&(e=fo(),mt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(r=i.next,i.next=t,t.next=r,e.lastEffect=t),t}function Nh(){return Gt().memoizedState}function po(t,e,i,r){var u=pe();mt.flags|=t,u.memoizedState=qi(1|e,{destroy:void 0},i,r===void 0?null:r)}function go(t,e,i,r){var u=Gt();r=r===void 0?null:r;var c=u.memoizedState.inst;Mt!==null&&r!==null&&Mu(r,Mt.memoizedState.deps)?u.memoizedState=qi(e,c,i,r):(mt.flags|=t,u.memoizedState=qi(1|e,c,i,r))}function kh(t,e){po(8390656,8,t,e)}function ju(t,e){go(2048,8,t,e)}function v0(t){mt.flags|=4;var e=mt.updateQueue;if(e===null)e=fo(),mt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function Dh(t){var e=Gt().memoizedState;return v0({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function zh(t,e){return go(4,2,t,e)}function Bh(t,e){return go(4,4,t,e)}function Uh(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function qh(t,e,i){i=i!=null?i.concat([t]):null,go(4,4,Uh.bind(null,e,t),i)}function Hu(){}function jh(t,e){var i=Gt();e=e===void 0?null:e;var r=i.memoizedState;return e!==null&&Mu(e,r[1])?r[0]:(i.memoizedState=[t,e],t)}function Hh(t,e){var i=Gt();e=e===void 0?null:e;var r=i.memoizedState;if(e!==null&&Mu(e,r[1]))return r[0];if(r=t(),Xa){Kn(!0);try{t()}finally{Kn(!1)}}return i.memoizedState=[r,e],r}function Vu(t,e,i){return i===void 0||(Ln&1073741824)!==0&&(bt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Vm(),mt.lanes|=t,ca|=t,i)}function Vh(t,e,i,r){return Ne(i,e)?i:zi.current!==null?(t=Vu(t,i,r),Ne(t,e)||(Zt=!0),t):(Ln&42)===0||(Ln&1073741824)!==0&&(bt&261930)===0?(Zt=!0,t.memoizedState=i):(t=Vm(),mt.lanes|=t,ca|=t,e)}function Qh(t,e,i,r,u){var c=I.p;I.p=c!==0&&8>c?c:8;var p=U.T,b={};U.T=b,Iu(t,!1,e,i);try{var R=u(),B=U.S;if(B!==null&&B(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var G=h0(R,r);Us(t,e,G,qe(t))}else Us(t,e,r,qe(t))}catch(Z){Us(t,e,{then:function(){},status:"rejected",reason:Z},qe())}finally{I.p=c,p!==null&&b.types!==null&&(p.types=b.types),U.T=p}}function b0(){}function Qu(t,e,i,r){if(t.tag!==5)throw Error(o(476));var u=Ph(t).queue;Qh(t,u,e,at,i===null?b0:function(){return Ih(t),i(r)})}function Ph(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:at},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ih(t){var e=Ph(t);e.next===null&&(e=t.alternate.memoizedState),Us(t,e.next.queue,{},qe())}function Pu(){return ce(tr)}function Gh(){return Gt().memoizedState}function Yh(){return Gt().memoizedState}function S0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=qe();t=ia(i);var r=sa(e,t,i);r!==null&&(Ee(r,e,i),Ns(r,e,i)),e={cache:vu()},t.payload=e;return}e=e.return}}function w0(t,e,i){var r=qe();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},yo(t)?Xh(e,i):(i=ou(t,e,i,r),i!==null&&(Ee(i,t,r),Zh(i,e,r)))}function $h(t,e,i){var r=qe();Us(t,e,i,r)}function Us(t,e,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(yo(t))Xh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var p=e.lastRenderedState,b=c(p,i);if(u.hasEagerState=!0,u.eagerState=b,Ne(b,p))return Kr(t,e,u,0),kt===null&&Zr(),!1}catch{}finally{}if(i=ou(t,e,u,r),i!==null)return Ee(i,t,r),Zh(i,e,r),!0}return!1}function Iu(t,e,i,r){if(r={lane:2,revertLane:Ec(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},yo(t)){if(e)throw Error(o(479))}else e=ou(t,i,r,2),e!==null&&Ee(e,t,2)}function yo(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function Xh(t,e){Bi=uo=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Zh(t,e,i){if((i&4194048)!==0){var r=e.lanes;r&=t.pendingLanes,i|=r,e.lanes=i,td(t,i)}}var qs={readContext:ce,use:ho,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt};qs.useEffectEvent=Qt;var Kh={readContext:ce,use:ho,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:ce,useEffect:kh,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,po(4194308,4,Uh.bind(null,e,t),i)},useLayoutEffect:function(t,e){return po(4194308,4,t,e)},useInsertionEffect:function(t,e){po(4,2,t,e)},useMemo:function(t,e){var i=pe();e=e===void 0?null:e;var r=t();if(Xa){Kn(!0);try{t()}finally{Kn(!1)}}return i.memoizedState=[r,e],r},useReducer:function(t,e,i){var r=pe();if(i!==void 0){var u=i(e);if(Xa){Kn(!0);try{i(e)}finally{Kn(!1)}}}else u=e;return r.memoizedState=r.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},r.queue=t,t=t.dispatch=w0.bind(null,mt,t),[r.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Uu(t);var e=t.queue,i=$h.bind(null,mt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Hu,useDeferredValue:function(t,e){var i=pe();return Vu(i,t,e)},useTransition:function(){var t=Uu(!1);return t=Qh.bind(null,mt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var r=mt,u=pe();if(wt){if(i===void 0)throw Error(o(407));i=i()}else{if(i=e(),kt===null)throw Error(o(349));(bt&127)!==0||yh(r,e,i)}u.memoizedState=i;var c={value:i,getSnapshot:e};return u.queue=c,kh(bh.bind(null,r,c,t),[t]),r.flags|=2048,qi(9,{destroy:void 0},vh.bind(null,r,c,i,e),null),i},useId:function(){var t=pe(),e=kt.identifierPrefix;if(wt){var i=hn,r=dn;i=(r&~(1<<32-Le(r)-1)).toString(32)+i,e="_"+e+"R_"+i,i=co++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=m0++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Pu,useFormState:Ah,useActionState:Ah,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Iu.bind(null,mt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Du,useCacheRefresh:function(){return pe().memoizedState=S0.bind(null,mt)},useEffectEvent:function(t){var e=pe(),i={impl:t};return e.memoizedState=i,function(){if((Tt&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Gu={readContext:ce,use:ho,useCallback:jh,useContext:ce,useEffect:ju,useImperativeHandle:qh,useInsertionEffect:zh,useLayoutEffect:Bh,useMemo:Hh,useReducer:mo,useRef:Nh,useState:function(){return mo(Nn)},useDebugValue:Hu,useDeferredValue:function(t,e){var i=Gt();return Vh(i,Mt.memoizedState,t,e)},useTransition:function(){var t=mo(Nn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Bs(t),e]},useSyncExternalStore:gh,useId:Gh,useHostTransitionStatus:Pu,useFormState:Mh,useActionState:Mh,useOptimistic:function(t,e){var i=Gt();return Eh(i,Mt,t,e)},useMemoCache:Du,useCacheRefresh:Yh};Gu.useEffectEvent=Dh;var Fh={readContext:ce,use:ho,useCallback:jh,useContext:ce,useEffect:ju,useImperativeHandle:qh,useInsertionEffect:zh,useLayoutEffect:Bh,useMemo:Hh,useReducer:Bu,useRef:Nh,useState:function(){return Bu(Nn)},useDebugValue:Hu,useDeferredValue:function(t,e){var i=Gt();return Mt===null?Vu(i,t,e):Vh(i,Mt.memoizedState,t,e)},useTransition:function(){var t=Bu(Nn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Bs(t),e]},useSyncExternalStore:gh,useId:Gh,useHostTransitionStatus:Pu,useFormState:Lh,useActionState:Lh,useOptimistic:function(t,e){var i=Gt();return Mt!==null?Eh(i,Mt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Du,useCacheRefresh:Yh};Fh.useEffectEvent=Dh;function Yu(t,e,i,r){e=t.memoizedState,i=i(r,e),i=i==null?e:y({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}
vendor: 5,354 bytes, line 9
9var $u={enqueueSetState:function(t,e,i){t=t._reactInternals;var r=qe(),u=ia(r);u.payload=e,i!=null&&(u.callback=i),e=sa(t,u,r),e!==null&&(Ee(e,t,r),Ns(e,t,r))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var r=qe(),u=ia(r);u.tag=1,u.payload=e,i!=null&&(u.callback=i),e=sa(t,u,r),e!==null&&(Ee(e,t,r),Ns(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=qe(),r=ia(i);r.tag=2,e!=null&&(r.callback=e),e=sa(t,r,i),e!==null&&(Ee(e,t,i),Ns(e,t,i))}};function Jh(t,e,i,r,u,c,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,c,p):e.prototype&&e.prototype.isPureReactComponent?!_s(i,r)||!_s(u,c):!0}function Wh(t,e,i,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,r),e.state!==t&&$u.enqueueReplaceState(e,e.state,null)}function Za(t,e){var i=e;if("ref"in e){i={};for(var r in e)r!=="ref"&&(i[r]=e[r])}if(t=t.defaultProps){i===e&&(i=y({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function tm(t){Xr(t)}function em(t){console.error(t)}function nm(t){Xr(t)}function vo(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(r){setTimeout(function(){throw r})}}function am(t,e,i){try{var r=t.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Xu(t,e,i){return i=ia(i),i.tag=3,i.payload={element:null},i.callback=function(){vo(t,e)},i}function im(t){return t=ia(t),t.tag=3,t}function sm(t,e,i,r){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var c=r.value;t.payload=function(){return u(c)},t.callback=function(){am(e,i,r)}}var p=i.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){am(e,i,r),typeof u!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})})}function E0(t,e,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(e=i.alternate,e!==null&&Oi(e,i,u,!0),i=De.current,i!==null){switch(i.tag){case 31:case 13:return Xe===null?Oo():i.alternate===null&&Pt===0&&(Pt=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===io?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([r]):e.add(r),bc(t,r,u)),!1;case 22:return i.flags|=65536,r===io?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([r]):i.add(r)),bc(t,r,u)),!1}throw Error(o(435,i.tag))}return bc(t,r,u),Oo(),!1}if(wt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,r!==hu&&(t=Error(o(422),{cause:r}),Rs(Ie(t,i)))):(r!==hu&&(e=Error(o(423),{cause:r}),Rs(Ie(e,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,r=Ie(r,i),u=Xu(t.stateNode,r,u),_u(t,u),Pt!==4&&(Pt=2)),!1;var c=Error(o(520),{cause:r});if(c=Ie(c,i),Ys===null?Ys=[c]:Ys.push(c),Pt!==4&&(Pt=2),e===null)return!0;r=Ie(r,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=Xu(i.stateNode,r,t),_u(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(fa===null||!fa.has(c))))return i.flags|=65536,u&=-u,i.lanes|=u,u=im(u),sm(u,t,i,r),_u(i,u),!1}i=i.return}while(i!==null);return!1}var Zu=Error(o(461)),Zt=!1;function fe(t,e,i,r){e.child=t===null?uh(e,null,i,r):$a(e,t.child,i,r)}function rm(t,e,i,r,u){i=i.render;var c=e.ref;if("ref"in r){var p={};for(var b in r)b!=="ref"&&(p[b]=r[b])}else p=r;return Pa(e),r=Ou(t,e,i,p,c,u),b=Lu(),t!==null&&!Zt?(Nu(t,e,u),kn(t,e,u)):(wt&&b&&fu(e),e.flags|=1,fe(t,e,r,u),e.child)}function om(t,e,i,r,u){if(t===null){var c=i.type;return typeof c=="function"&&!lu(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,lm(t,e,c,r,u)):(t=Jr(i.type,null,r,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!ac(t,u)){var p=c.memoizedProps;if(i=i.compare,i=i!==null?i:_s,i(p,r)&&t.ref===e.ref)return kn(t,e,u)}return e.flags|=1,t=Rn(c,r),t.ref=e.ref,t.return=e,e.child=t}function lm(t,e,i,r,u){if(t!==null){var c=t.memoizedProps;if(_s(c,r)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=r=c,ac(t,u))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,kn(t,e,u)}return Ku(t,e,i,r,u)}function um(t,e,i,r){var u=r.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,t!==null){for(r=e.child=t.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~c}else r=0,e.child=null;return cm(t,e,c,i,r)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&no(e,c!==null?c.cachePool:null),c!==null?dh(e,c):xu(),hh(e);else return r=e.lanes=536870912,cm(t,e,c!==null?c.baseLanes|i:i,i,r)}else c!==null?(no(e,c.cachePool),dh(e,c),oa(),e.memoizedState=null):(t!==null&&no(e,null),xu(),oa());return fe(t,e,u,i),e.child}function js(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function cm(t,e,i,r,u){var c=Su();
vendor: 6,019 bytes, line 9
9return c=c===null?null:{parent:$t._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&no(e,null),xu(),hh(e),t!==null&&Oi(t,e,r,!0),e.childLanes=u,null}function bo(t,e){return e=wo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function fm(t,e,i){return $a(e,t.child,null,i),t=bo(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function C0(t,e,i){var r=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(wt){if(r.mode==="hidden")return t=bo(e,r),e.lanes=536870912,js(null,t);if(Au(e),(t=Ut)?(t=Cp(t,$e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Wn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},i=Xd(t),i.return=e,e.child=i,ue=e,Ut=null)):t=null,t===null)throw ea(e);return e.lanes=536870912,null}return bo(e,r)}var c=t.memoizedState;if(c!==null){var p=c.dehydrated;if(Au(e),u)if(e.flags&256)e.flags&=-257,e=fm(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Zt||Oi(t,e,i,!1),u=(i&t.childLanes)!==0,Zt||u){if(r=kt,r!==null&&(p=ed(r,i),p!==0&&p!==c.retryLane))throw c.retryLane=p,ja(t,p),Ee(r,t,p),Zu;Oo(),e=fm(t,e,i)}else t=c.treeContext,Ut=Ze(p.nextSibling),ue=e,wt=!0,ta=null,$e=!1,t!==null&&Fd(e,t),e=bo(e,r),e.flags|=4096;return e}return t=Rn(t.child,{mode:r.mode,children:r.children}),t.ref=e.ref,e.child=t,t.return=e,t}function So(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Ku(t,e,i,r,u){return Pa(e),i=Ou(t,e,i,r,void 0,u),r=Lu(),t!==null&&!Zt?(Nu(t,e,u),kn(t,e,u)):(wt&&r&&fu(e),e.flags|=1,fe(t,e,i,u),e.child)}function dm(t,e,i,r,u,c){return Pa(e),e.updateQueue=null,i=ph(e,r,i,u),mh(t),r=Lu(),t!==null&&!Zt?(Nu(t,e,c),kn(t,e,c)):(wt&&r&&fu(e),e.flags|=1,fe(t,e,i,c),e.child)}function hm(t,e,i,r,u){if(Pa(e),e.stateNode===null){var c=xi,p=i.contextType;typeof p=="object"&&p!==null&&(c=ce(p)),c=new i(r,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=$u,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=r,c.state=e.memoizedState,c.refs={},Eu(e),p=i.contextType,c.context=typeof p=="object"&&p!==null?ce(p):xi,c.state=e.memoizedState,p=i.getDerivedStateFromProps,typeof p=="function"&&(Yu(e,i,p,r),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&$u.enqueueReplaceState(c,c.state,null),Ds(e,r,c,u),ks(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),r=!0}else if(t===null){c=e.stateNode;var b=e.memoizedProps,R=Za(i,b);c.props=R;var B=c.context,G=i.contextType;p=xi,typeof G=="object"&&G!==null&&(p=ce(G));var Z=i.getDerivedStateFromProps;G=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||B!==p)&&Wh(e,c,r,p),aa=!1;var q=e.memoizedState;c.state=q,Ds(e,r,c,u),ks(),B=e.memoizedState,b||q!==B||aa?(typeof Z=="function"&&(Yu(e,i,Z,r),B=e.memoizedState),(R=aa||Jh(e,i,R,r,q,B,p))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=B),c.props=r,c.state=B,c.context=p,r=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{c=e.stateNode,Cu(t,e),p=e.memoizedProps,G=Za(i,p),c.props=G,Z=e.pendingProps,q=c.context,B=i.contextType,R=xi,typeof B=="object"&&B!==null&&(R=ce(B)),b=i.getDerivedStateFromProps,(B=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Z||q!==R)&&Wh(e,c,r,R),aa=!1,q=e.memoizedState,c.state=q,Ds(e,r,c,u),ks();var j=e.memoizedState;p!==Z||q!==j||aa||t!==null&&t.dependencies!==null&&to(t.dependencies)?(typeof b=="function"&&(Yu(e,i,b,r),j=e.memoizedState),(G=aa||Jh(e,i,G,r,q,j,R)||t!==null&&t.dependencies!==null&&to(t.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,j,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,j,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===t.memoizedProps&&q===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&q===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=j),c.props=r,c.state=j,c.context=R,r=G):(typeof c.componentDidUpdate!="function"||p===t.memoizedProps&&q===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&q===t.memoizedState||(e.flags|=1024),r=!1)}return c=r,So(t,e),r=(e.flags&128)!==0,c||r?(c=e.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&r?(e.child=$a(e,t.child,null,u),e.child=$a(e,null,i,u)):fe(t,e,i,u),e.memoizedState=c.state,t=e.child):t=kn(t,e,u),t}function mm(t,e,i,r){return Va(),e.flags|=256,fe(t,e,i,r),e.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ju(t){return{baseLanes:t,cachePool:ah()}}function Wu(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Ue),t}
vendor: 2,006 bytes, line 9
9function pm(t,e,i){var r=e.pendingProps,u=!1,c=(e.flags&128)!==0,p;if((p=c)||(p=t!==null&&t.memoizedState===null?!1:(It.current&2)!==0),p&&(u=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(u?ra(e):oa(),(t=Ut)?(t=Cp(t,$e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Wn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},i=Xd(t),i.return=e,e.child=i,ue=e,Ut=null)):t=null,t===null)throw ea(e);return zc(t)?e.lanes=32:e.lanes=536870912,null}var b=r.children;return r=r.fallback,u?(oa(),u=e.mode,b=wo({mode:"hidden",children:b},u),r=Ha(r,u,i,null),b.return=e,r.return=e,b.sibling=r,e.child=b,r=e.child,r.memoizedState=Ju(i),r.childLanes=Wu(t,p,i),e.memoizedState=Fu,js(null,r)):(ra(e),tc(e,b))}var R=t.memoizedState;if(R!==null&&(b=R.dehydrated,b!==null)){if(c)e.flags&256?(ra(e),e.flags&=-257,e=ec(t,e,i)):e.memoizedState!==null?(oa(),e.child=t.child,e.flags|=128,e=null):(oa(),b=r.fallback,u=e.mode,r=wo({mode:"visible",children:r.children},u),b=Ha(b,u,i,null),b.flags|=2,r.return=e,b.return=e,r.sibling=b,e.child=r,$a(e,t.child,null,i),r=e.child,r.memoizedState=Ju(i),r.childLanes=Wu(t,p,i),e.memoizedState=Fu,e=js(null,r));else if(ra(e),zc(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var B=p.dgst;p=B,r=Error(o(419)),r.stack="",r.digest=p,Rs({value:r,source:null,stack:null}),e=ec(t,e,i)}else if(Zt||Oi(t,e,i,!1),p=(i&t.childLanes)!==0,Zt||p){if(p=kt,p!==null&&(r=ed(p,i),r!==0&&r!==R.retryLane))throw R.retryLane=r,ja(t,r),Ee(p,t,r),Zu;Dc(b)||Oo(),e=ec(t,e,i)}else Dc(b)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=Ze(b.nextSibling),ue=e,wt=!0,ta=null,$e=!1,t!==null&&Fd(e,t),e=tc(e,r.children),e.flags|=4096);return e}return u?(oa(),b=r.fallback,u=e.mode,R=t.child,B=R.sibling,r=Rn(R,{mode:"hidden",children:r.children}),r.subtreeFlags=R.subtreeFlags&65011712,B!==null?b=Rn(B,b):(b=Ha(b,u,i,null),b.flags|=2),b.return=e,r.return=e,r.sibling=b,e.child=r,js(null,r),r=e.child,b=t.child.memoizedState,b
vendor: 5,167 bytes, line 9
9===null?b=Ju(i):(u=b.cachePool,u!==null?(R=$t._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=ah(),b={baseLanes:b.baseLanes|i,cachePool:u}),r.memoizedState=b,r.childLanes=Wu(t,p,i),e.memoizedState=Fu,js(t.child,r)):(ra(e),i=t.child,t=i.sibling,i=Rn(i,{mode:"visible",children:r.children}),i.return=e,i.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=i,e.memoizedState=null,i)}function tc(t,e){return e=wo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function wo(t,e){return t=ke(22,t,null,e),t.lanes=0,t}function ec(t,e,i){return $a(e,t.child,null,i),t=tc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gm(t,e,i){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),gu(t.return,e,i)}function nc(t,e,i,r,u,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:u,treeForkCount:c}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=r,p.tail=i,p.tailMode=u,p.treeForkCount=c)}function ym(t,e,i){var r=e.pendingProps,u=r.revealOrder,c=r.tail;r=r.children;var p=It.current,b=(p&2)!==0;if(b?(p=p&1|2,e.flags|=128):p&=1,Y(It,p),fe(t,e,r,i),r=wt?xs:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&gm(t,i,e);else if(t.tag===19)gm(t,i,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(i=e.child,u=null;i!==null;)t=i.alternate,t!==null&&lo(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=e.child,e.child=null):(u=i.sibling,i.sibling=null),nc(e,!1,u,i,c,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&lo(t)===null){e.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}nc(e,!0,i,null,c,r);break;case"together":nc(e,!1,null,null,void 0,r);break;default:e.memoizedState=null}return e.child}function kn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),ca|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(Oi(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,i=Rn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=Rn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function ac(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&to(t)))}function _0(t,e,i){switch(e.tag){case 3:zt(e,e.stateNode.containerInfo),na(e,$t,t.memoizedState.cache),Va();break;case 27:case 5:wn(e);break;case 4:zt(e,e.stateNode.containerInfo);break;case 10:na(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Au(e),null;break;case 13:var r=e.memoizedState;if(r!==null)return r.dehydrated!==null?(ra(e),e.flags|=128,null):(i&e.child.childLanes)!==0?pm(t,e,i):(ra(e),t=kn(t,e,i),t!==null?t.sibling:null);ra(e);break;case 19:var u=(t.flags&128)!==0;if(r=(i&e.childLanes)!==0,r||(Oi(t,e,i,!1),r=(i&e.childLanes)!==0),u){if(r)return ym(t,e,i);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Y(It,It.current),r)break;return null;case 22:return e.lanes=0,um(t,e,i,e.pendingProps);case 24:na(e,$t,t.memoizedState.cache)}return kn(t,e,i)}function vm(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!ac(t,i)&&(e.flags&128)===0)return Zt=!1,_0(t,e,i);Zt=(t.flags&131072)!==0}else Zt=!1,wt&&(e.flags&1048576)!==0&&Kd(e,xs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var r=e.pendingProps;if(t=Ga(e.elementType),e.type=t,typeof t=="function")lu(t)?(r=Za(t,r),e.tag=1,e=hm(null,e,t,r,i)):(e.tag=0,e=Ku(null,e,t,r,i));else{if(t!=null){var u=t.$$typeof;if(u===H){e.tag=11,e=rm(null,e,t,r,i);break t}else if(u===P){e.tag=14,e=om(null,e,t,r,i);break t}}throw e=xt(t)||t,Error(o(306,e,""))}}return e;case 0:return Ku(t,e,e.type,e.pendingProps,i);case 1:return r=e.type,u=Za(r,e.pendingProps),hm(t,e,r,u,i);case 3:t:{if(zt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));r=e.pendingProps;var c=e.memoizedState;u=c.element,Cu(t,e),Ds(e,r,null,i);var p=e.memoizedState;if(r=p.cache,na(e,$t,r),r!==c.cache&&yu(e,[$t],i,!0),ks(),r=p.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=mm(t,e,r,i);break t}else if(r!==u){u=Ie(Error(o(424)),e),Rs(u),e=mm(t,e,r,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ut=Ze(t.firstChild),ue=e,wt=!0,ta=null,$e=!0,i=uh(e,null,r,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Va(),r===u){e=kn(t,e,i);break t}fe(t,e,r,i)}e=e.child}return e;case 26:return So(t,e),t===null?(i=Mp(e.type,null,e.pendingProps,null))?e.memoizedState=i:wt||(i=e.type,t=e.pendingProps,r=Uo(nt.current).createElement(i),r[le]=e,r[ge]=t,de(r,i,t),ae(r),e.stateNode=r):e.memoizedState=Mp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return wn(e),t===null&&wt&&(r=e.stateNode=xp(e.type,e.pen
vendor: 4,720 bytes, line 9
9dingProps,nt.current),ue=e,$e=!0,u=Ut,pa(e.type)?(Bc=u,Ut=Ze(r.firstChild)):Ut=u),fe(t,e,e.pendingProps.children,i),So(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((u=r=Ut)&&(r=t2(r,e.type,e.pendingProps,$e),r!==null?(e.stateNode=r,ue=e,Ut=Ze(r.firstChild),$e=!1,u=!0):u=!1),u||ea(e)),wn(e),u=e.type,c=e.pendingProps,p=t!==null?t.memoizedProps:null,r=c.children,Lc(u,c)?r=null:p!==null&&Lc(u,p)&&(e.flags|=32),e.memoizedState!==null&&(u=Ou(t,e,p0,null,null,i),tr._currentValue=u),So(t,e),fe(t,e,r,i),e.child;case 6:return t===null&&wt&&((t=i=Ut)&&(i=e2(i,e.pendingProps,$e),i!==null?(e.stateNode=i,ue=e,Ut=null,t=!0):t=!1),t||ea(e)),null;case 13:return pm(t,e,i);case 4:return zt(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=$a(e,null,r,i):fe(t,e,r,i),e.child;case 11:return rm(t,e,e.type,e.pendingProps,i);case 7:return fe(t,e,e.pendingProps,i),e.child;case 8:return fe(t,e,e.pendingProps.children,i),e.child;case 12:return fe(t,e,e.pendingProps.children,i),e.child;case 10:return r=e.pendingProps,na(e,e.type,r.value),fe(t,e,r.children,i),e.child;case 9:return u=e.type._context,r=e.pendingProps.children,Pa(e),u=ce(u),r=r(u),e.flags|=1,fe(t,e,r,i),e.child;case 14:return om(t,e,e.type,e.pendingProps,i);case 15:return lm(t,e,e.type,e.pendingProps,i);case 19:return ym(t,e,i);case 31:return C0(t,e,i);case 22:return um(t,e,i,e.pendingProps);case 24:return Pa(e),r=ce($t),t===null?(u=Su(),u===null&&(u=kt,c=vu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=i),u=c),e.memoizedState={parent:r,cache:u},Eu(e),na(e,$t,u)):((t.lanes&i)!==0&&(Cu(t,e),Ds(e,null,null,i),ks()),u=t.memoizedState,c=e.memoizedState,u.parent!==r?(u={parent:r,cache:r},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),na(e,$t,r)):(r=c.cache,na(e,$t,r),r!==u.cache&&yu(e,[$t],i,!0))),fe(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Dn(t){t.flags|=4}function ic(t,e,i,r,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Gm())t.flags|=8192;else throw Ya=io,wu}else t.flags&=-16777217}function bm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Dp(e))if(Gm())t.flags|=8192;else throw Ya=io,wu}function Eo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Jf():536870912,t.lanes|=e,Qi|=e)}function Hs(t,e){if(!wt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,r=0;if(e)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=r,t.childLanes=i,e}function T0(t,e,i){var r=e.pendingProps;switch(du(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(e),null;case 1:return qt(e),null;case 3:return i=e.stateNode,r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),On($t),Nt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Mi(e)?Dn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,mu())),qt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(Dn(e),c!==null?(qt(e),bm(e,c)):(qt(e),ic(e,u,null,r,i))):c?c!==t.memoizedState?(Dn(e),qt(e),bm(e,c)):(qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==r&&Dn(e),qt(e),ic(e,u,t,r,i)),null;case 27:if(En(e),i=nt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&Dn(e);else{if(!r){if(e.stateNode===null)throw Error(o(166));return qt(e),null}t=J.current,Mi(e)?Jd(e):(t=xp(u,r,i),e.stateNode=t,Dn(e))}return qt(e),null;case 5:if(En(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&Dn(e);else{if(!r){if(e.stateNode===null)throw Error(o(166));return qt(e),null}if(c=J.current,Mi(e))Jd(e);else{var p=Uo(nt.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;
vendor: 24,322 bytes, line 9
9case"select":c=typeof r.is=="string"?p.createElement("select",{is:r.is}):p.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?p.createElement(u,{is:r.is}):p.createElement(u)}}c[le]=e,c[ge]=r;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=c;t:switch(de(c,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}r&&Dn(e)}}return qt(e),ic(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==r&&Dn(e);else{if(typeof r!="string"&&e.stateNode===null)throw Error(o(166));if(t=nt.current,Mi(e)){if(t=e.stateNode,i=e.memoizedProps,r=null,u=ue,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}t[le]=e,t=!!(t.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||pp(t.nodeValue,i)),t||ea(e,!0)}else t=Uo(t).createTextNode(r),t[le]=e,e.stateNode=t}return qt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(r=Mi(e),i!==null){if(t===null){if(!r)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[le]=e}else Va(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),t=!1}else i=mu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(o(558))}return qt(e),null;case 13:if(r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Mi(e),r!==null&&r.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[le]=e}else Va(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),u=!1}else u=mu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=i,e):(i=r!==null,t=t!==null&&t.memoizedState!==null,i&&(r=e.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==u&&(r.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),Eo(e,e.updateQueue),qt(e),null);case 4:return Nt(),t===null&&xc(e.stateNode.containerInfo),qt(e),null;case 10:return On(e.type),qt(e),null;case 19:if(k(It),r=e.memoizedState,r===null)return qt(e),null;if(u=(e.flags&128)!==0,c=r.rendering,c===null)if(u)Hs(r,!1);else{if(Pt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=lo(t),c!==null){for(e.flags|=128,Hs(r,!1),t=c.updateQueue,e.updateQueue=t,Eo(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)$d(i,t),i=i.sibling;return Y(It,It.current&1|2),wt&&An(e,r.treeForkCount),e.child}t=t.sibling}r.tail!==null&&he()>Ro&&(e.flags|=128,u=!0,Hs(r,!1),e.lanes=4194304)}else{if(!u)if(t=lo(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Eo(e,t),Hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!wt)return qt(e),null}else 2*he()-r.renderingStartTime>Ro&&i!==536870912&&(e.flags|=128,u=!0,Hs(r,!1),e.lanes=4194304);r.isBackwards?(c.sibling=e.child,e.child=c):(t=r.last,t!==null?t.sibling=c:e.child=c,r.last=c)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=he(),t.sibling=null,i=It.current,Y(It,u?i&1|2:i&1),wt&&An(e,r.treeForkCount),t):(qt(e),null);case 22:case 23:return ze(e),Ru(),r=e.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(e.flags|=8192):r&&(e.flags|=8192),r?(i&536870912)!==0&&(e.flags&128)===0&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),i=e.updateQueue,i!==null&&Eo(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),r=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),r!==i&&(e.flags|=2048),t!==null&&k(Ia),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),On($t),qt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function x0(t,e){switch(du(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return On($t),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return En(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(o(340));Va()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Va()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return k(It),null;case 4:return Nt(),null;case 10:return On(e.type),null;case 22:case 23:return ze(e),Ru(),t!==null&&k(Ia),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return On($t),null;case 25:return null;default:return null}}function Sm(t,e){switch(du(e),e.tag){case 3:On($t),Nt();break;case 26:case 27:case 5:En(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:k(It);break;case 10:On(e.type);break;case 22:case 23:ze(e),Ru(),t!==null&&k(Ia);break;case 24:On($t)}}function Vs(t,e){try{var i=e.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&t)===t){r=void 0;var c=i.create,p=i.inst;r=c(),p.destroy=r}i=i.next}while(i!==u)}}catch(b){At(e,e.return,b)}}function la(t,e,i){try{var r=e.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var c=u.next;r=c;do{if((r.tag&t)===t){var p=r.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,u=e;var R=i,B=b;try{B()}catch(G){At(u,R,G)}}}r=r.next}while(r!==c)}}catch(G){At(e,e.return,G)}}function wm(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{fh(e,i)}catch(r){At(t,t.return,r)}}}function Em(t,e,i){i.props=Za(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(r){At(t,e,r)}}function Qs(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:r=t.stateNode;break;default:r=t.stateNode}typeof i=="function"?t.refCleanup=i(r):i.current=r}}catch(u){At(t,e,u)}}function mn(t,e){var i=t.ref,r=t.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(u){At(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){At(t,e,u)}else i.current=null}function Cm(t){var e=t.type,i=t.memoizedProps,r=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break t;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(u){At(t,t.return,u)}}function sc(t,e,i){try{var r=t.stateNode;X0(r,t.type,i,e),r[ge]=e}catch(u){At(t,t.return,u)}}function _m(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&pa(t.type)||t.tag===4}function rc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||_m(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&pa(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function oc(t,e,i){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=Tn));else if(r!==4&&(r===27&&pa(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(oc(t,e,i),t=t.sibling;t!==null;)oc(t,e,i),t=t.sibling}function Co(t,e,i){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(r!==4&&(r===27&&pa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Co(t,e,i),t=t.sibling;t!==null;)Co(t,e,i),t=t.sibling}function Tm(t){var e=t.stateNode,i=t.memoizedProps;try{for(var r=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);de(e,r,i),e[le]=t,e[ge]=i}catch(c){At(t,t.return,c)}}var zn=!1,Kt=!1,lc=!1,xm=typeof WeakSet=="function"?WeakSet:Set,ie=null;function R0(t,e){if(t=t.containerInfo,Mc=Io,t=qd(t),eu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var u=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var p=0,b=-1,R=-1,B=0,G=0,Z=t,q=null;e:for(;;){for(var j;Z!==i||u!==0&&Z.nodeType!==3||(b=p+u),Z!==c||r!==0&&Z.nodeType!==3||(R=p+r),Z.nodeType===3&&(p+=Z.nodeValue.length),(j=Z.firstChild)!==null;)q=Z,Z=j;for(;;){if(Z===t)break e;if(q===i&&++B===u&&(b=p),q===c&&++G===r&&(R=p),(j=Z.nextSibling)!==null)break;Z=q,q=Z.parentNode}Z=j}i=b===-1||R===-1?null:{start:b,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(Oc={focusedElem:t,selectionRange:i},Io=!1,ie=e;ie!==null;)if(e=ie,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ie=t;else for(;ie!==null;){switch(e=ie,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)u=t[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,u=c.memoizedProps,c=c.memoizedState,r=i.stateNode;try{var it=Za(i.type,u);t=r.getSnapshotBeforeUpdate(it,c),r.__reactInternalSnapshotBeforeUpdate=t}catch(ft){At(i,i.return,ft)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)kc(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":kc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ie=t;break}ie=e.return}}function Rm(t,e,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:Un(t,i),r&4&&Vs(5,i);break;case 1:if(Un(t,i),r&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(p){At(i,i.return,p)}else{var u=Za(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){At(i,i.return,p)}}r&64&&wm(i),r&512&&Qs(i,i.return);break;case 3:if(Un(t,i),r&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{fh(t,e)}catch(p){At(i,i.return,p)}}break;case 27:e===null&&r&4&&Tm(i);case 26:case 5:Un(t,i),e===null&&r&4&&Cm(i),r&512&&Qs(i,i.return);break;case 12:Un(t,i);break;case 31:Un(t,i),r&4&&Om(t,i);break;case 13:Un(t,i),r&4&&Lm(t,i),r&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=B0.bind(null,i),n2(t,i))));break;case 22:if(r=i.memoizedState!==null||zn,!r){e=e!==null&&e.memoizedState!==null||Kt,u=zn;var c=Kt;zn=r,(Kt=e)&&!c?qn(t,i,(i.subtreeFlags&8772)!==0):Un(t,i),zn=u,Kt=c}break;case 30:break;default:Un(t,i)}}function Am(t){var e=t.alternate;e!==null&&(t.alternate=null,Am(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ql(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,ve=!1;function Bn(t,e,i){for(i=i.child;i!==null;)Mm(t,e,i),i=i.sibling}function Mm(t,e,i){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(ds,i)}catch{}switch(i.tag){case 26:Kt||mn(i,e),Bn(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Kt||mn(i,e);var r=Ht,u=ve;pa(i.type)&&(Ht=i.stateNode,ve=!1),Bn(t,e,i),Fs(i.stateNode),Ht=r,ve=u;break;case 5:Kt||mn(i,e);case 6:if(r=Ht,u=ve,Ht=null,Bn(t,e,i),Ht=r,ve=u,Ht!==null)if(ve)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(i.stateNode)}catch(c){At(i,e,c)}else try{Ht.removeChild(i.stateNode)}catch(c){At(i,e,c)}break;case 18:Ht!==null&&(ve?(t=Ht,wp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Ki(t)):wp(Ht,i.stateNode));break;case 4:r=Ht,u=ve,Ht=i.stateNode.containerInfo,ve=!0,Bn(t,e,i),Ht=r,ve=u;break;case 0:case 11:case 14:case 15:la(2,i,e),Kt||la(4,i,e),Bn(t,e,i);break;case 1:Kt||(mn(i,e),r=i.stateNode,typeof r.componentWillUnmount=="function"&&Em(i,e,r)),Bn(t,e,i);break;case 21:Bn(t,e,i);break;case 22:Kt=(r=Kt)||i.memoizedState!==null,Bn(t,e,i),Kt=r;break;default:Bn(t,e,i)}}function Om(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ki(t)}catch(i){At(e,e.return,i)}}}function Lm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ki(t)}catch(i){At(e,e.return,i)}}function A0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xm),e;default:throw Error(o(435,t.tag))}}function _o(t,e){var i=A0(t);e.forEach(function(r){if(!i.has(r)){i.add(r);var u=U0.bind(null,t,r);r.then(u,u)}})}function be(t,e){var i=e.deletions;if(i!==null)for(var r=0;r<i.length;r++){var u=i[r],c=t,p=e,b=p;t:for(;b!==null;){switch(b.tag){case 27:if(pa(b.type)){Ht=b.stateNode,ve=!1;break t}break;case 5:Ht=b.stateNode,ve=!1;break t;case 3:case 4:Ht=b.stateNode.containerInfo,ve=!0;break t}b=b.return}if(Ht===null)throw Error(o(160));Mm(c,p,u),Ht=null,ve=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Nm(e,t),e=e.sibling}var nn=null;function Nm(t,e){var i=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:be(e,t),Se(t),r&4&&(la(3,t,t.return),Vs(3,t),la(5,t,t.return));break;case 1:be(e,t),Se(t),r&512&&(Kt||i===null||mn(i,i.return)),r&64&&zn&&(t=t.updateQueue,t!==null&&(r=t.callbacks,r!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var u=nn;if(be(e,t),Se(t),r&512&&(Kt||i===null||mn(i,i.return)),r&4){var c=i!==null?i.memoizedState:null;if(r=t.memoizedState,i===null)if(r===null)if(t.stateNode===null){t:{r=t.type,i=t.memoizedProps,u=u.ownerDocument||u;e:switch(r){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ps]||c[le]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(r),u.head.insertBefore(c,u.querySelector("head > title"))),de(c,r,i),c[le]=t,ae(c),r=c;break t;case"link":var p=Np("link","href",u).get(r+(i.href||""));if(p){for(var b=0;b<p.length;b++)if(c=p[b],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){p.splice(b,1);break e}}c=u.createElement(r),de(c,r,i),u.head.appendChild(c);break;case"meta":if(p=Np("meta","content",u).get(r+(i.content||""))){for(b=0;b<p.length;b++)if(c=p[b],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){p.splice(b,1);break e}}c=u.createElement(r),de(c,r,i),u.head.appendChild(c);break;default:throw Error(o(468,r))}c[le]=t,ae(c),r=c}t.stateNode=r}else kp(u,t.type,t.stateNode);else t.stateNode=Lp(u,r,t.memoizedProps);else c!==r?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,r===null?kp(u,t.type,t.stateNode):Lp(u,r,t.memoizedProps)):r===null&&t.stateNode!==null&&sc(t,t.memoizedProps,i.memoizedProps)}break;case 27:be(e,t),Se(t),r&512&&(Kt||i===null||mn(i,i.return)),i!==null&&r&4&&sc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(be(e,t),Se(t),r&512&&(Kt||i===null||mn(i,i.return)),t.flags&32){u=t.stateNode;try{bi(u,"")}catch(it){At(t,t.return,it)}}r&4&&t.stateNode!=null&&(u=t.memoizedProps,sc(t,u,i!==null?i.memoizedProps:u)),r&1024&&(lc=!0);break;case 6:if(be(e,t),Se(t),r&4){if(t.stateNode===null)throw Error(o(162));r=t.memoizedProps,i=t.stateNode;try{i.nodeValue=r}catch(it){At(t,t.return,it)}}break;case 3:if(Ho=null,u=nn,nn=qo(e.containerInfo),be(e,t),nn=u,Se(t),r&4&&i!==null&&i.memoizedState.isDehydrated)try{Ki(e.containerInfo)}catch(it){At(t,t.return,it)}lc&&(lc=!1,km(t));break;case 4:r=nn,nn=qo(t.stateNode.containerInfo),be(e,t),Se(t),nn=r;break;case 12:be(e,t),Se(t);break;case 31:be(e,t),Se(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,_o(t,r)));break;case 13:be(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xo=he()),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,_o(t,r)));break;case 22:u=t.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,B=zn,G=Kt;if(zn=B||u,Kt=G||R,be(e,t),Kt=G,zn=B,Se(t),r&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(i===null||R||zn||Kt||Ka(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){R=i=e;try{if(c=R.stateNode,u)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=R.stateNode;var Z=R.memoizedProps.style,q=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;b.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(it){At(R,R.return,it)}}}else if(e.tag===6){if(i===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(it){At(R,R.return,it)}}}else if(e.tag===18){if(i===null){R=e;try{var j=R.stateNode;u?Ep(j,!0):Ep(R.stateNode,!1)}catch(it){At(R,R.return,it)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}r&4&&(r=t.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,_o(t,i))));break;case 19:be(e,t),Se(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,_o(t,r)));break;case 30:break;case 21:break;default:be(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var i,r=t.return;r!==null;){if(_m(r)){i=r;break}r=r.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,c=rc(t);Co(t,c,u);break;case 5:var p=i.stateNode;i.flags&32&&(bi(p,""),i.flags&=-33);var b=rc(t);Co(t,b,p);break;case 3:case 4:var R=i.stateNode.containerInfo,B=rc(t);oc(t,B,R);break;default:throw Error(o(161))}}catch(G){At(t,t.return,G)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function km(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;km(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Un(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Rm(t,e.alternate,e),e=e.sibling}function Ka(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:la(4,e,e.return),Ka(e);break;case 1:mn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&Em(e,e.return,i),Ka(e);break;case 27:Fs(e.stateNode);case 26:case 5:mn(e,e.return),Ka(e);break;case 22:e.memoizedState===null&&Ka(e);break;case 30:Ka(e);break;default:Ka(e)}t=t.sibling}}function qn(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var r=e.alternate,u=t,c=e,p=c.flags;switch(c.tag){case 0:case 11:case 15:qn(u,c,i),Vs(4,c);break;case 1:if(qn(u,c,i),r=c,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(B){At(r,r.return,B)}if(r=c,u=r.updateQueue,u!==null){var b=r.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)ch(R[u],b)}catch(B){At(r,r.return,B)}}i&&p&64&&wm(c),Qs(c,c.return);break;case 27:Tm(c);case 26:case 5:qn(u,c,i),i&&r===null&&p&4&&Cm(c),Qs(c,c.return);break;case 12:qn(u,c,i);break;case 31:qn(u,c,i),i&&p&4&&Om(u,c);break;case 13:qn(u,c,i),i&&p&4&&Lm(u,c);break;case 22:c.memoizedState===null&&qn(u,c,i),Qs(c,c.return);break;case 30:break;default:qn(u,c,i)}e=e.sibling}}function uc(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&As(i))}function cc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&As(t))}function an(t,e,i,r){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dm(t,e,i,r),e=e.sibling}function Dm(t,e,i,r){var u=e.flags;switch(e.tag){case 0:case 11:case 15:an(t,e,i,r),u&2048&&Vs(9,e);break;case 1:an(t,e,i,r);break;case 3:an(t,e,i,r),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&As(t)));break;case 12:if(u&2048){an(t,e,i,r),t=e.stateNode;try{var c=e.memoizedProps,p=c.id,b=c.onPostCommit;typeof b=="function"&&b(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){At(e,e.return,R)}}else an(t,e,i,r);break;case 31:an(t,e,i,r);break;case 13:an(t,e,i,r);break;case 23:break;case 22:c=e.stateNode,p=e.alternate,e.memoizedState!==null?c._visibility&2?an(t,e,i,r):Ps(t,e):c._visibility&2?an(t,e,i,r):(c._visibility|=2,ji(t,e,i,r,(e.subtreeFlags&10256)!==0||!1)),u&2048&&uc(p,e);break;case 24:an(t,e,i,r),u&2048&&cc(e.alternate,e);break;default:an(t,e,i,r)}}function ji(t,e,i,r,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,p=e,b=i,R=r,B=p.flags;switch(p.tag){case 0:case 11:case 15:ji(c,p,b,R,u),Vs(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?ji(c,p,b,R,u):Ps(c,p):(G._visibility|=2,ji(c,p,b,R,u)),u&&B&2048&&uc(p.alternate,p);break;case 24:ji(c,p,b,R,u),u&&B&2048&&cc(p.alternate,p);break;default:ji(c,p,b,R,u)}e=e.sibling}}function Ps(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,r=e,u=r.flags;switch(r.tag){case 22:Ps(i,r),u&2048&&uc(r.alternate,r);break;case 24:Ps(i,r),u&2048&&cc(r.alternate,r);break;default:Ps(i,r)}e=e.sibling}}var Is=8192;function Hi(t,e,i){if(t.subtreeFlags&Is)for(t=t.child;t!==null;)zm(t,e,i),t=t.sibling}function zm(t,e,i){switch(t.tag){case 26:Hi(t,e,i),t.flags&Is&&t.memoizedState!==null&&m2(i,nn,t.memoizedState,t.memoizedProps);break;case 5:Hi(t,e,i);break;case 3:case 4:var r=nn;nn=qo(t.stateNode.containerInfo),Hi(t,e,i),nn=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=Is,Is=16777216,Hi(t,e,i),Is=r):Hi(t,e,i));break;default:Hi(t,e,i)}}function Bm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Gs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var r=e[i];ie=r,qm(r,t)}Bm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Um(t),t=t.sibling}function Um(t){switch(t.tag){case 0:case 11:case 15:Gs(t),t.flags&2048&&la(9,t,t.return);break;case 3:Gs(t);break;case 12:Gs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,To(t)):Gs(t);break;default:Gs(t)}}function To(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var r=e[i];ie=r,qm(r,t)}Bm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:la(8,e,e.return),To(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,To(e));break;default:To(e)}t=t.sibling}}function qm(t,e){for(;ie!==null;){var i=ie;switch(i.tag){case 0:case 11:case 15:la(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:As(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,ie=r;else t:for(i=t;ie!==null;){r=ie;var u=r.sibling,c=r.return;if(Am(r),r===i){ie=null;break t}if(u!==null){u.return=c,ie=u;break t}ie=c}}}var M0={getCacheForType:function(t){var e=ce($t),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i}
vendor: 20,884 bytes, line 9
9,cacheSignal:function(){return ce($t).controller.signal}},O0=typeof WeakMap=="function"?WeakMap:Map,Tt=0,kt=null,yt=null,bt=0,Rt=0,Be=null,ua=!1,Vi=!1,fc=!1,jn=0,Pt=0,ca=0,Fa=0,dc=0,Ue=0,Qi=0,Ys=null,we=null,hc=!1,xo=0,jm=0,Ro=1/0,Ao=null,fa=null,Wt=0,da=null,Pi=null,Hn=0,mc=0,pc=null,Hm=null,$s=0,gc=null;function qe(){return(Tt&2)!==0&&bt!==0?bt&-bt:U.T!==null?Ec():nd()}function Vm(){if(Ue===0)if((bt&536870912)===0||wt){var t=zr;zr<<=1,(zr&3932160)===0&&(zr=262144),Ue=t}else Ue=536870912;return t=De.current,t!==null&&(t.flags|=32),Ue}function Ee(t,e,i){(t===kt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(Ii(t,0),ha(t,bt,Ue,!1)),ms(t,i),((Tt&2)===0||t!==kt)&&(t===kt&&((Tt&2)===0&&(Fa|=i),Pt===4&&ha(t,bt,Ue,!1)),pn(t))}function Qm(t,e,i){if((Tt&6)!==0)throw Error(o(327));var r=!i&&(e&127)===0&&(e&t.expiredLanes)===0||hs(t,e),u=r?k0(t,e):vc(t,e,!0),c=r;do{if(u===0){Vi&&!r&&ha(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!L0(i)){u=vc(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var b=t;u=Ys;var R=b.current.memoizedState.isDehydrated;if(R&&(Ii(b,p).flags|=256),p=vc(b,p,!1),p!==2){if(fc&&!R){b.errorRecoveryDisabledLanes|=c,Fa|=c,u=4;break t}c=we,we=u,c!==null&&(we===null?we=c:we.push.apply(we,c))}u=p}if(c=!1,u!==2)continue}}if(u===1){Ii(t,0),ha(t,e,0,!0);break}t:{switch(r=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:ha(r,e,Ue,!ua);break t;case 2:we=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=xo+300-he(),10<u)){if(ha(r,e,Ue,!ua),Ur(r,0,!0)!==0)break t;Hn=e,r.timeoutHandle=bp(Pm.bind(null,r,i,we,Ao,hc,e,Ue,Fa,Qi,ua,c,"Throttled",-0,0),u);break t}Pm(r,i,we,Ao,hc,e,Ue,Fa,Qi,ua,c,null,-0,0)}}break}while(!0);pn(t)}function Pm(t,e,i,r,u,c,p,b,R,B,G,Z,q,j){if(t.timeoutHandle=-1,Z=e.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},zm(e,c,Z);var it=(c&62914560)===c?xo-he():(c&4194048)===c?jm-he():0;if(it=p2(Z,it),it!==null){Hn=c,t.cancelPendingCommit=it(Fm.bind(null,t,e,c,i,r,u,p,b,R,G,Z,null,q,j)),ha(t,c,p,!B);return}}Fm(t,e,c,i,r,u,p,b,R)}function L0(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var u=i[r],c=u.getSnapshot;u=u.value;try{if(!Ne(c(),u))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ha(t,e,i,r){e&=~dc,e&=~Fa,t.suspendedLanes|=e,t.pingedLanes&=~e,r&&(t.warmLanes|=e),r=t.expirationTimes;for(var u=e;0<u;){var c=31-Le(u),p=1<<c;r[c]=-1,u&=~p}i!==0&&Wf(t,i,e)}function Mo(){return(Tt&6)===0?(Xs(0),!1):!0}function yc(){if(yt!==null){if(Rt===0)var t=yt.return;else t=yt,Mn=Qa=null,ku(t),Di=null,Os=0,t=yt;for(;t!==null;)Sm(t.alternate,t),t=t.return;yt=null}}function Ii(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,F0(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Hn=0,yc(),kt=t,yt=i=Rn(t.current,null),bt=e,Rt=0,Be=null,ua=!1,Vi=hs(t,e),fc=!1,Qi=Ue=dc=Fa=ca=Pt=0,we=Ys=null,hc=!1,(e&8)!==0&&(e|=e&32);var r=t.entangledLanes;if(r!==0)for(t=t.entanglements,r&=e;0<r;){var u=31-Le(r),c=1<<u;e|=t[u],r&=~c}return jn=e,Zr(),i}function Im(t,e){mt=null,U.H=qs,e===ki||e===ao?(e=rh(),Rt=3):e===wu?(e=rh(),Rt=4):Rt=e===Zu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,yt===null&&(Pt=1,vo(t,Ie(e,t.current)))}function Gm(){var t=De.current;return t===null?!0:(bt&4194048)===bt?Xe===null:(bt&62914560)===bt||(bt&536870912)!==0?t===Xe:!1}function Ym(){var t=U.H;return U.H=qs,t===null?qs:t}function $m(){var t=U.A;return U.A=M0,t}function Oo(){Pt=4,ua||(bt&4194048)!==bt&&De.current!==null||(Vi=!0),(ca&134217727)===0&&(Fa&134217727)===0||kt===null||ha(kt,bt,Ue,!1)}function vc(t,e,i){var r=Tt;Tt|=2;var u=Ym(),c=$m();(kt!==t||bt!==e)&&(Ao=null,Ii(t,e)),e=!1;var p=Pt;t:do try{if(Rt!==0&&yt!==null){var b=yt,R=Be;switch(Rt){case 8:yc(),p=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var B=Rt;if(Rt=0,Be=null,Gi(t,b,R,B),i&&Vi){p=0;break t}break;default:B=Rt,Rt=0,Be=null,Gi(t,b,R,B)}}N0(),p=Pt;break}catch(G){Im(t,G)}while(!0);return e&&t.shellSuspendCounter++,Mn=Qa=null,Tt=r,U.H=u,U.A=c,yt===null&&(kt=null,bt=0,Zr()),p}function N0(){for(;yt!==null;)Xm(yt)}function k0(t,e){var i=Tt;Tt|=2;var r=Ym(),u=$m();kt!==t||bt!==e?(Ao=null,Ro=he()+500,Ii(t,e)):Vi=hs(t,e);t:do try{if(Rt!==0&&yt!==null){e=yt;var c=Be;e:switch(Rt){case 1:Rt=0,Be=null,Gi(t,e,c,1);break;case 2:case 9:if(ih(c)){Rt=0,Be=null,Zm(e);break}e=function(){Rt!==2&&Rt!==9||kt!==t||(Rt=7),pn(t)},c.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:ih(c)?(Rt=0,Be=null,Zm(e)):(Rt=0,Be=null,Gi(t,e,c,7));break;case 5:var p=null;switch(yt.tag){case 26:p=yt.memoizedState;case 5:case 27:var b=yt;if(p?Dp(p):b.stateNode.complete){Rt=0,Be=null;var R=b.sibling;if(R!==null)yt=R;else{var B=b.return;B!==null?(yt=B,Lo(B)):yt=null}break e}}Rt=0,Be=null,Gi(t,e,c,5);break;case 6:Rt=0,Be=null,Gi(t,e,c,6);break;case 8:yc(),Pt=6;break t;default:throw Error(o(462))}}D0();break}catch(G){Im(t,G)}while(!0);return Mn=Qa=null,U.H=r,U.A=u,Tt=i,yt!==null?0:(kt=null,bt=0,Zr(),Pt)}function D0(){for(;yt!==null&&!kr();)Xm(yt)}function Xm(t){var e=vm(t.alternate,t,jn);t.memoizedProps=t.pendingProps,e===null?Lo(t):yt=e}function Zm(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=dm(i,e,e.pendingProps,e.type,void 0,bt);break;case 11:e=dm(i,e,e.pendingProps,e.type.render,e.ref,bt);break;case 5:ku(e);default:Sm(i,e),e=yt=$d(e,jn),e=vm(i,e,jn)}t.memoizedProps=t.pendingProps,e===null?Lo(t):yt=e}function Gi(t,e,i,r){Mn=Qa=null,ku(e),Di=null,Os=0;var u=e.return;try{if(E0(t,u,e,i,bt)){Pt=1,vo(t,Ie(i,t.current)),yt=null;return}}catch(c){if(u!==null)throw yt=u,c;Pt=1,vo(t,Ie(i,t.current)),yt=null;return}e.flags&32768?(wt||r===1?t=!0:Vi||(bt&536870912)!==0?t=!1:(ua=t=!0,(r===2||r===9||r===3||r===6)&&(r=De.current,r!==null&&r.tag===13&&(r.flags|=16384))),Km(e,t)):Lo(e)}function Lo(t){var e=t;do{if((e.flags&32768)!==0){Km(e,ua);return}t=e.return;var i=T0(e.alternate,e,jn);if(i!==null){yt=i;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Pt===0&&(Pt=5)}function Km(t,e){do{var i=x0(t.alternate,t);if(i!==null){i.flags&=32767,yt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=i}while(t!==null);Pt=6,yt=null}function Fm(t,e,i,r,u,c,p,b,R){t.cancelPendingCommit=null;do No();while(Wt!==0);if((Tt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=ru,hv(t,i,c,p,b,R),t===kt&&(yt=kt=null,bt=0),Pi=e,da=t,Hn=i,mc=c,pc=u,Hm=r,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,q0(di,function(){return np(),null})):(t.callbackNode=null,t.callbackPriority=0),r=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||r){r=U.T,U.T=null,u=I.p,I.p=2,p=Tt,Tt|=4;try{R0(t,e,i)}finally{Tt=p,I.p=u,U.T=r}}Wt=1,Jm(),Wm(),tp()}}function Jm(){if(Wt===1){Wt=0;var t=da,e=Pi,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var r=I.p;I.p=2;var u=Tt;Tt|=4;try{Nm(e,t);var c=Oc,p=qd(t.containerInfo),b=c.focusedElem,R=c.selectionRange;if(p!==b&&b&&b.ownerDocument&&Ud(b.ownerDocument.documentElement,b)){if(R!==null&&eu(b)){var B=R.start,G=R.end;if(G===void 0&&(G=B),"selectionStart"in b)b.selectionStart=B,b.selectionEnd=Math.min(G,b.value.length);else{var Z=b.ownerDocument||document,q=Z&&Z.defaultView||window;if(q.getSelection){var j=q.getSelection(),it=b.textContent.length,ft=Math.min(R.start,it),Lt=R.end===void 0?ft:Math.min(R.end,it);!j.extend&&ft>Lt&&(p=Lt,Lt=ft,ft=p);var N=Bd(b,ft),M=Bd(b,Lt);if(N&&M&&(j.rangeCount!==1||j.anchorNode!==N.node||j.anchorOffset!==N.offset||j.focusNode!==M.node||j.focusOffset!==M.offset)){var z=Z.createRange();z.setStart(N.node,N.offset),j.removeAllRanges(),ft>Lt?(j.addRange(z),j.extend(M.node,M.offset)):(z.setEnd(M.node,M.offset),j.addRange(z))}}}}for(Z=[],j=b;j=j.parentNode;)j.nodeType===1&&Z.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Z.length;b++){var $=Z[b];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Io=!!Mc,Oc=Mc=null}finally{Tt=u,I.p=r,U.T=i}}t.current=e,Wt=2}}function Wm(){if(Wt===2){Wt=0;var t=da,e=Pi,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var r=I.p;I.p=2;var u=Tt;Tt|=4;try{Rm(t,e.alternate,e)}finally{Tt=u,I.p=r,U.T=i}}Wt=3}}function tp(){if(Wt===4||Wt===3){Wt=0,kl();var t=da,e=Pi,i=Hn,r=Hm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,Pi=da=null,ep(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(fa=null),Bl(i),e=e.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(ds,e,void 0,(e.current.flags&128)===128)}catch{}if(r!==null){e=U.T,u=I.p,I.p=2,U.T=null;try{for(var c=t.onRecoverableError,p=0;p<r.length;p++){var b=r[p];c(b.value,{componentStack:b.stack})}}finally{U.T=e,I.p=u}}(Hn&3)!==0&&No(),pn(t),u=t.pendingLanes,(i&261930)!==0&&(u&42)!==0?t===gc?$s++:($s=0,gc=t):$s=0,Xs(0)}}function ep(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,As(e)))}function No(){return Jm(),Wm(),tp(),np()}function np(){if(Wt!==5)return!1;var t=da,e=mc;mc=0;var i=Bl(Hn),r=U.T,u=I.p;try{I.p=32>i?32:i,U.T=null,i=pc,pc=null;var c=da,p=Hn;if(Wt=0,Pi=da=null,Hn=0,(Tt&6)!==0)throw Error(o(331));var b=Tt;if(Tt|=4,Um(c.current),Dm(c,c.current,p,i),Tt=b,Xs(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(ds,c)}catch{}return!0}finally{I.p=u,U.T=r,ep(t,e)}}function ap(t,e,i){e=Ie(i,e),e=Xu(t.stateNode,e,2),t=sa(t,e,2),t!==null&&(ms(t,2),pn(t))}function At(t,e,i){if(t.tag===3)ap(t,t,i);else for(;e!==null;){if(e.tag===3){ap(e,t,i);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fa===null||!fa.has(r))){t=Ie(i,t),i=im(2),r=sa(e,i,2),r!==null&&(sm(i,r,e,t),ms(r,2),pn(r));break}}e=e.return}}function bc(t,e,i){var r=t.pingCache;if(r===null){r=t.pingCache=new O0;var u=new Set;r.set(e,u)}else u=r.get(e),u===void 0&&(u=new Set,r.set(e,u));u.has(i)||(fc=!0,u.add(i),t=z0.bind(null,t,e,i),e.then(t,t))}function z0(t,e,i){var r=t.pingCache;r!==null&&r.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,kt===t&&(bt&i)===i&&(Pt===4||Pt===3&&(bt&62914560)===bt&&300>he()-xo?(Tt&2)===0&&Ii(t,0):dc|=i,Qi===bt&&(Qi=0)),pn(t)}function ip(t,e){e===0&&(e=Jf()),t=ja(t,e),t!==null&&(ms(t,e),pn(t))}function B0(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),ip(t,i)}function U0(t,e){var i=0;switch(t.tag){case 31:case 13:var r=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(e),ip(t,i)}function q0(t,e){return tn(t,e)}var ko=null,Yi=null,Sc=!1,Do=!1,wc=!1,ma=0;function pn(t){t!==Yi&&t.next===null&&(Yi===null?ko=Yi=t:Yi=Yi.next=t),Do=!0,Sc||(Sc=!0,H0())}function Xs(t,e){if(!wc&&Do){wc=!0;do for(var i=!1,r=ko;r!==null;){if(t!==0){var u=r.pendingLanes;if(u===0)var c=0;else{var p=r.suspendedLanes,b=r.pingedLanes;c=(1<<31-Le(42|t)+1)-1,c&=u&~(p&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,lp(r,c))}else c=bt,c=Ur(r,r===kt?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||hs(r,c)||(i=!0,lp(r,c));r=r.next}while(i);wc=!1}}function j0(){sp()}function sp(){Do=Sc=!1;var t=0;ma!==0&&K0()&&(t=ma);for(var e=he(),i=null,r=ko;r!==null;){var u=r.next,c=rp(r,e);c===0?(r.next=null,i===null?ko=u:i.next=u,u===null&&(Yi=i)):(i=r,(t!==0||(c&3)!==0)&&(Do=!0)),r=u}Wt!==0&&Wt!==5||Xs(t),ma!==0&&(ma=0)}function rp(t,e){for(var i=t.suspendedLanes,r=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var p=31-Le(c),b=1<<p,R=u[p];R===-1?((b&i)===0||(b&r)!==0)&&(u[p]=dv(b,e)):R<=e&&(t.expiredLanes|=b),c&=~b}if(e=kt,i=bt,i=Ur(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r=t.callbackNode,i===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return r!==null&&r!==null&&fs(r),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||hs(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(r!==null&&fs(r),Bl(i)){case 2:case 8:i=fn;break;case 32:i=di;break;case 268435456:i=Ff;break;default:i=di}return r=op.bind(null,t),i=tn(i,r),t.callbackPriority=e,t.callbackNode=i,e}return r!==null&&r!==null&&fs(r),t.callbackPriority=2,t.callbackNode=null,2}function op(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(No()&&t.callbackNode!==i)return null;var r=bt;return r=Ur(t,t===kt?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r===0?null:(Qm(t,r,e),rp(t,he()),t.callbackNode!=null&&t.callbackNode===i?op.bind(null,t):null)}function lp(t,e){if(No())return null;Qm(t,e,!0)}function H0(){J0(function(){(Tt&6)!==0?tn(oe,j0):sp()})}function Ec(){if(ma===0){var t=Li;t===0&&(t=Dr,Dr<<=1,(Dr&261888)===0&&(Dr=256)),ma=t}return ma}function up(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vr(""+t)}function cp(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function V0(t,e,i,r,u){if(e==="submit"&&i&&i.stateNode===u){var c=up((u[ge]||null).action),p=r.submitter;p&&(e=(e=p[ge]||null)?up(e.formAction):p.getAttribute("formAction"),e!==null&&(c=e,p=null));var b=new Gr("action","action",null,r,u);t.push({event:b,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ma!==0){var R=p?cp(u,p):new FormData(u);Qu(i,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(b.preventDefault(),R=p?cp(u,p):new FormData(u),Qu(i,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var Cc=0;Cc<su.length;Cc++){var _c=su[Cc],Q0=_c.toLowerCase(),P0=_c[0].toUpperCase()+_c.slice(1);en(Q0,"on"+P0)}en(Vd,"onAnimationEnd"),en(Qd,"onAnimationIteration"),en(Pd,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(s0,"onTransitionRun"),en(r0,"onTransitionStart"),en(o0,"onTransitionCancel"),en(Id,"onTransitionEnd"),yi("onMouseEnter",["mouseout","mouseover"]),yi("onMouseLeave",["mouseout","mouseover"]),yi("onPointerEnter",["pointerout","pointerover"]),yi("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zs="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(" "),I0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zs));function fp(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var r=t[i],u=r.event;r=r.listeners;t:{var c=void 0;if(e)for(var p=r.length-1;0<=p;p--){var b=r[p],R=b.instance,B=b.currentTarget;if(b=b.listener,R!==c&&u.isPropagationStopped())break t;c=b,u.currentTarget=B;try{c(u)}catch(G){Xr(G)}u.currentTarget=null,c=R}else for(p=0;p<r.length;p++){if(b=r[p],R=b.instance,B=b.currentTarget,b=b.listener,R!==c&&u.isPropagationStopped())break t;c=b,u.currentTarget=B;try{c(u)}catch(G){Xr(G)}u.currentTarget=null,c=R}}}}function vt(t,e){var i=e[Ul];i===void 0&&(i=e[Ul]=new Set);var r=t+"__bubble";i.has(r)||(dp(e,t,2,!1),i.add(r))}function Tc(t,e,i){var r=0;e&&(r|=4),dp(i,t,r,e)}var zo="_reactListening"+Math.random().toString(36).slice(2);function xc(t){if(!t[zo]){t[zo]=!0,sd.forEach(function(i){i!=="selectionchange"&&(I0.has(i)||Tc(i,!1,t),Tc(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[zo]||(e[zo]=!0,Tc("selectionchange",!1,e))}}function dp(t,e,i,r){switch(Vp(e)){case 2:var u=v2;break;case 8:u=b2;break;default:u=Vc}i=u.bind(null,e,i,t),u=void 0,!Yl||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),r?u!==void 0?t.addEventListener(e,i,{capture:!0,passive:u}):t.addEventListener(e,i,!0):u!==void 0?t.addEventListener(e,i,{passive:u}):t.addEventListener(e,i,!1)}function Rc(t,e,i,r,u){var c=r;if((e&1)===0&&(e&2)===0&&r!==null)t:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var b=r.stateNode.containerInfo;if(b===u)break;if(p===4)for(p=r.return;p!==null;){var R=p.tag;if((R===3||R===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;b!==null;){if(p=mi(b),p===null)return;if(R=p.tag,R===5||R===6||R===26||R===27){r=c=p;continue t}b=b.parentNode}}r=r.return}yd(function(){var B=c,G=Il(i),Z=[];t:{var q=Gd.get(t);if(q!==void 0){var j=Gr,it=t;switch(t){case"keypress":if(Pr(i)===0)break t;case"keydown":case"keyup":j=Uv;break;case"focusin":it="focus",j=Kl;break;case"focusout":it="blur",j=Kl;break;case"beforeblur":case"afterblur":j=Kl;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Tv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Hv;break;case Vd:case Qd:case Pd:j=Av;break;case Id:j=Qv;break;case"scroll":case"scrollend":j=Cv;break;case"wheel":j=Iv;break;case"copy":case"cut":case"paste":j=Ov;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Ed;break;case"toggle":case"beforetoggle":j=Yv}var ft=(e&4)!==0,Lt=!ft&&(t==="scroll"||t==="scrollend"),N=ft?q!==null?q+"Capture":null:q;ft=[];for(var M=B,z;M!==null;){var $=M;if(z=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||z===null||N===null||($=ys(M,N),$!=null&&ft.push(Ks(M,$,z))),Lt)break;M=M.return}0<ft.length&&(q=new j(q,it,null,i,G),Z.push({event:q,listeners:ft}))}}if((e&7)===0){t:{if(q=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",q&&i!==Pl&&(it=i.relatedTarget||i.fromElement)&&(mi(it)||it[hi]))break t;if((j||q)&&(q=G.window===G?G:(q=G.ownerDocument)?q.defaultView||q.parentWindow:window,j?(it=i.relatedTarget||i.toElement,j=B,it=it?mi(it):null,it!==null&&(Lt=f(it),ft=it.tag,it!==Lt||ft!==5&&ft!==27&&ft!==6)&&(it=null)):(j=null,it=B),j!==it)){if(ft=Sd,$="onMouseLeave",N="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(ft=Ed,$="onPointerLeave",N="onPointerEnter",M="pointer"),Lt=j==null?q:gs(j),z=it==null?q:gs(it),q=new ft($,M+"leave",j,i,G),q.target=Lt,q.relatedTarget=z,$=null,mi(G)===B&&(ft=new ft(N,M+"enter",it,i,G),ft.target=z,ft.relatedTarget=Lt,$=ft),Lt=$,j&&it)e:{for(ft=G0,N=j,M=it,z=0,$=N;$;$=ft($))z++;$=0;for(var ut=M;ut;ut=ft(ut))$++;for(;0<z-$;)N=ft(N),z--;for(;0<$-z;)M=ft(M),$--;for(;z--;){if(N===M||M!==null&&N===M.alternate){ft=N;break e}N=ft(N),M=ft(M)}ft=null}else ft=null;j!==null&&hp(Z,q,j,ft,!1),it!==null&&Lt!==null&&hp(Z,Lt,it,ft,!0)}}t:{if(q=B?gs(B):window,j=q.nodeName&&q.nodeName.toLowerCase(),j==="select"||j==="input"&&q.type==="file")var Et=Od;else if(Ad(q))if(Ld)Et=n0;else{Et=t0;var st=Wv}else j=q.nodeName,!j||j.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?B&&Ql(B.elementType)&&(Et=Od):Et=e0;if(Et&&(Et=Et(t,B))){Md(Z,Et,i,G);break t}st&&st(t,q,B),t==="focusout"&&B&&q.type==="number"&&B.memoizedProps.value!=null&&Vl(q,"number",q.value)}switch(st=B?gs(B):window,t){case"focusin":(Ad(st)||st.contentEditable==="true")&&(Ci=st,nu=B,Ts=null);break;case"focusout":Ts=nu=Ci=null;break;case"mousedown":au=!0;break;case"contextmenu":case"mouseup":case"dragend":au=!1,jd(Z,i,G);break;case"selectionchange":if(i0)break;case"keydown":case"keyup":jd(Z,i,G)}var pt;if(Jl)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else Ei?xd(t,i)&&(St="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(St="onCompositionStart");St&&(Cd&&i.locale!=="ko"&&(Ei||St!=="onCompositionStart"?St==="onCompositionEnd"&&Ei&&(pt=vd()):(J
vendor: 6,807 bytes, lines 9-10
9n=G,$l="value"in Jn?Jn.value:Jn.textContent,Ei=!0)),st=Bo(B,St),0<st.length&&(St=new wd(St,t,null,i,G),Z.push({event:St,listeners:st}),pt?St.data=pt:(pt=Rd(i),pt!==null&&(St.data=pt)))),(pt=Xv?Zv(t,i):Kv(t,i))&&(St=Bo(B,"onBeforeInput"),0<St.length&&(st=new wd("onBeforeInput","beforeinput",null,i,G),Z.push({event:st,listeners:St}),st.data=pt)),V0(Z,t,B,i,G)}fp(Z,e)})}function Ks(t,e,i){return{instance:t,listener:e,currentTarget:i}}function Bo(t,e){for(var i=e+"Capture",r=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=ys(t,i),u!=null&&r.unshift(Ks(t,u,c)),u=ys(t,e),u!=null&&r.push(Ks(t,u,c))),t.tag===3)return r;t=t.return}return[]}function G0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function hp(t,e,i,r,u){for(var c=e._reactName,p=[];i!==null&&i!==r;){var b=i,R=b.alternate,B=b.stateNode;if(b=b.tag,R!==null&&R===r)break;b!==5&&b!==26&&b!==27||B===null||(R=B,u?(B=ys(i,c),B!=null&&p.unshift(Ks(i,B,R))):u||(B=ys(i,c),B!=null&&p.push(Ks(i,B,R)))),i=i.return}p.length!==0&&t.push({event:e,listeners:p})}var Y0=/\r\n?/g,$0=/\u0000|\uFFFD/g;function mp(t){return(typeof t=="string"?t:""+t).replace(Y0,` 10`).replace($0,"")}function pp(t,e){return e=mp(e),mp(t)===e}function Ot(t,e,i,r,u,c){switch(i){case"children":typeof r=="string"?e==="body"||e==="textarea"&&r===""||bi(t,r):(typeof r=="number"||typeof r=="bigint")&&e!=="body"&&bi(t,""+r);break;case"className":jr(t,"class",r);break;case"tabIndex":jr(t,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":jr(t,i,r);break;case"style":pd(t,r,c);break;case"data":if(e!=="object"){jr(t,"data",r);break}case"src":case"href":if(r===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(i);break}r=Vr(""+r),t.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){t.setAttribute(i,"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 c=="function"&&(i==="formAction"?(e!=="input"&&Ot(t,e,"name",u.name,u,null),Ot(t,e,"formEncType",u.formEncType,u,null),Ot(t,e,"formMethod",u.formMethod,u,null),Ot(t,e,"formTarget",u.formTarget,u,null)):(Ot(t,e,"encType",u.encType,u,null),Ot(t,e,"method",u.method,u,null),Ot(t,e,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(i);break}r=Vr(""+r),t.setAttribute(i,r);break;case"onClick":r!=null&&(t.onclick=Tn);break;case"onScroll":r!=null&&vt("scroll",t);break;case"onScrollEnd":r!=null&&vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}i=Vr(""+r),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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"?t.setAttribute(i,""+r):t.removeAttribute(i);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"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":r===!0?t.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(i,r):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?t.setAttribute(i,r):t.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?t.removeAttribute(i):t.setAttribute(i,r);break;case"popover":vt("beforetoggle",t),vt("toggle",t),qr(t,"popover",r);break;case"xlinkActuate":_n(t,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":_n(t,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":_n(t,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":_n(t,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":_n(t,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":_n(t,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":_n(t,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":_n(t,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":_n(t,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":qr(t,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=wv.get(i)||i,qr(t,i,r))}}function Ac(t,e,i,r,u,c){switch(i){case"style":pd(t,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof r=="string"?bi(t,r):(typeof r=="number"||typeof r=="bigint")&&bi(t,""+r);break;case"onScroll":r!=null&&vt("scroll",t);break;case"onScrollEnd":r!=null&&vt("scrollend",t);break;case"onClick":r!=null&&(t.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rd.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),e=i.slice(2,u?i.length-7:void 0),c=t[ge]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof r=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,r,u);break t}i in t?t[i]=r:r===!0?t.setAttribute(i,""):qr(t,i,r)}}}function de(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);
vendor: 6,761 bytes, line 10
10var r=!1,u=!1,c;for(c in i)if(i.hasOwnProperty(c)){var p=i[c];if(p!=null)switch(c){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,c,p,i,null)}}u&&Ot(t,e,"srcSet",i.srcSet,i,null),r&&Ot(t,e,"src",i.src,i,null);return;case"input":vt("invalid",t);var b=c=p=u=null,R=null,B=null;for(r in i)if(i.hasOwnProperty(r)){var G=i[r];if(G!=null)switch(r){case"name":u=G;break;case"type":p=G;break;case"checked":R=G;break;case"defaultChecked":B=G;break;case"value":c=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,e));break;default:Ot(t,e,r,G,i,null)}}fd(t,c,b,R,B,p,u,!1);return;case"select":vt("invalid",t),r=p=c=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":c=b;break;case"defaultValue":p=b;break;case"multiple":r=b;default:Ot(t,e,u,b,i,null)}e=c,i=p,t.multiple=!!r,e!=null?vi(t,!!r,e,!1):i!=null&&vi(t,!!r,i,!0);return;case"textarea":vt("invalid",t),c=u=r=null;for(p in i)if(i.hasOwnProperty(p)&&(b=i[p],b!=null))switch(p){case"value":r=b;break;case"defaultValue":u=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Ot(t,e,p,b,i,null)}hd(t,r,u,c);return;case"option":for(R in i)if(i.hasOwnProperty(R)&&(r=i[R],r!=null))switch(R){case"selected":t.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ot(t,e,R,r,i,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(r=0;r<Zs.length;r++)vt(Zs[r],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in i)if(i.hasOwnProperty(B)&&(r=i[B],r!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,B,r,i,null)}return;default:if(Ql(e)){for(G in i)i.hasOwnProperty(G)&&(r=i[G],r!==void 0&&Ac(t,e,G,r,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(r=i[b],r!=null&&Ot(t,e,b,r,i,null))}function X0(t,e,i,r){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,p=null,b=null,R=null,B=null,G=null;for(j in i){var Z=i[j];if(i.hasOwnProperty(j)&&Z!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":R=Z;default:r.hasOwnProperty(j)||Ot(t,e,j,null,r,Z)}}for(var q in r){var j=r[q];if(Z=i[q],r.hasOwnProperty(q)&&(j!=null||Z!=null))switch(q){case"type":c=j;break;case"name":u=j;break;case"checked":B=j;break;case"defaultChecked":G=j;break;case"value":p=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,e));break;default:j!==Z&&Ot(t,e,q,j,r,Z)}}Hl(t,p,b,R,B,G,c,u);return;case"select":j=p=b=q=null;for(c in i)if(R=i[c],i.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":j=R;default:r.hasOwnProperty(c)||Ot(t,e,c,null,r,R)}for(u in r)if(c=r[u],R=i[u],r.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":q=c;break;case"defaultValue":b=c;break;case"multiple":p=c;default:c!==R&&Ot(t,e,u,c,r,R)}e=b,i=p,r=j,q!=null?vi(t,!!i,q,!1):!!r!=!!i&&(e!=null?vi(t,!!i,e,!0):vi(t,!!i,i?[]:"",!1));return;case"textarea":j=q=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!r.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ot(t,e,b,null,r,u)}for(p in r)if(u=r[p],c=i[p],r.hasOwnProperty(p)&&(u!=null||c!=null))switch(p){case"value":q=u;break;case"defaultValue":j=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Ot(t,e,p,u,r,c)}dd(t,q,j);return;case"option":for(var it in i)if(q=i[it],i.hasOwnProperty(it)&&q!=null&&!r.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:Ot(t,e,it,null,r,q)}for(R in r)if(q=r[R],j=i[R],r.hasOwnProperty(R)&&q!==j&&(q!=null||j!=null))switch(R){case"selected":t.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Ot(t,e,R,q,r,j)}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 ft in i)q=i[ft],i.hasOwnProperty(ft)&&q!=null&&!r.hasOwnProperty(ft)&&Ot(t,e,ft,null,r,q);for(B in r)if(q=r[B],j=i[B],r.hasOwnProperty(B)&&q!==j&&(q!=null||j!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,e));break;default:Ot(t,e,B,q,r,j)}return;default:if(Ql(e)){for(var Lt in i)q=i[Lt],i.hasOwnProperty(Lt)&&q!==void 0&&!r.hasOwnProperty(Lt)&&Ac(t,e,Lt,void 0,r,q);for(G in r)q=r[G],j=i[G],!r.hasOwnProperty(G)||q===j||q===void 0&&j===void 0||Ac(t,e,G,q,r,j);return}}for(var N in i)q=i[N],i.hasOwnProperty(N)&&q!=null&&!r.hasOwnProperty(N)&&Ot(t,e,N,null,r,q);for(Z in r)q=r[Z],j=i[Z],!r.hasOwnProperty(Z)||q===j||q==null&&j==null||Ot(t,e,Z,q,r,j)}function gp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var u=i[r],c=u.transferSize,p=u.initiatorType,b=u.duration;if(c&&b&&gp(p)){for(p=0,b=u.responseEnd,r+=1;r<i.length;r++){var R=i[r],B=R.startTime;if(B>b)break;var G=R.transferSize,Z=R.initiatorType;G&&gp(Z)&&(R=R.responseEnd,p+=G*(R<b?1:(b-B)/(R-B)))}if(--r,e+=8*(c+p)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Mc=null,Oc=null;function Uo(t){return t.nodeType===9?t:t.ownerDocument}function yp(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Lc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Nc=null;function K0(){var t=window.event;return t&&t.type==="popstate"?t===Nc?!1:(Nc=t,!0):(Nc=null,!1)}var bp=typeof setTimeout=="function"?setTimeout:void 0,F0=typeof clearTimeout=="function"?clearTimeout:void 0,Sp=typeof Promise=="function"?Promise:void 0,J0=typeof queueMicrotask=="function"?queueMicrotask:typeof Sp<"u"?function(t){return Sp.resolve(null).then(t).cat
vendor: 12,211 bytes, line 10
10ch(W0)}:bp;function W0(t){setTimeout(function(){throw t})}function pa(t){return t==="head"}function wp(t,e){var i=e,r=0;do{var u=i.nextSibling;if(t.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(r===0){t.removeChild(u),Ki(e);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")Fs(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Fs(i);for(var c=i.firstChild;c;){var p=c.nextSibling,b=c.nodeName;c[ps]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=p}}else i==="body"&&Fs(t.ownerDocument.body);i=u}while(i);Ki(e)}function Ep(t,e){var i=t;t=0;do{var r=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=r}while(i)}function kc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":kc(i),ql(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function t2(t,e,i,r){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!r&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(r){if(!t[ps])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function e2(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Ze(t.nextSibling),t===null))return null;return t}function Cp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function Dc(t){return t.data==="$?"||t.data==="$~"}function zc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function n2(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var r=function(){e(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),t._reactRetry=r}}function Ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Bc=null;function _p(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Ze(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function Tp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function xp(t,e,i){switch(e=Uo(i),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Fs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ql(t)}var Ke=new Map,Rp=new Set;function qo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vn=I.d;I.d={f:a2,r:i2,D:s2,C:r2,L:o2,m:l2,X:c2,S:u2,M:f2};function a2(){var t=Vn.f(),e=Mo();return t||e}function i2(t){var e=pi(t);e!==null&&e.tag===5&&e.type==="form"?Ih(e):Vn.r(t)}var $i=typeof document>"u"?null:document;function Ap(t,e,i){var r=$i;if(r&&typeof e=="string"&&e){var u=Qe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Rp.has(u)||(Rp.add(u),t={rel:t,crossOrigin:i,href:e},r.querySelector(u)===null&&(e=r.createElement("link"),de(e,"link",t),ae(e),r.head.appendChild(e)))}}function s2(t){Vn.D(t),Ap("dns-prefetch",t,null)}function r2(t,e){Vn.C(t,e),Ap("preconnect",t,e)}function o2(t,e,i){Vn.L(t,e,i);var r=$i;if(r&&t&&e){var u='link[rel="preload"][as="'+Qe(e)+'"]';e==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+Qe(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+Qe(i.imageSizes)+'"]')):u+='[href="'+Qe(t)+'"]';var c=u;switch(e){case"style":c=Xi(t);break;case"script":c=Zi(t)}Ke.has(c)||(t=y({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Ke.set(c,t),r.querySelector(u)!==null||e==="style"&&r.querySelector(Js(c))||e==="script"&&r.querySelector(Ws(c))||(e=r.createElement("link"),de(e,"link",t),ae(e),r.head.appendChild(e)))}}function l2(t,e){Vn.m(t,e);var i=$i;if(i&&t){var r=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Qe(r)+'"][href="'+Qe(t)+'"]',c=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Zi(t)}if(!Ke.has(c)&&(t=y({rel:"modulepreload",href:t},e),Ke.set(c,t),i.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ws(c)))return}r=i.createElement("link"),de(r,"link",t),ae(r),i.head.appendChild(r)}}}function u2(t,e,i){Vn.S(t,e,i);var r=$i;if(r&&t){var u=gi(r).hoistableStyles,c=Xi(t);e=e||"default";var p=u.get(c);if(!p){var b={loading:0,preload:null};if(p=r.querySelector(Js(c)))b.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Ke.get(c))&&Uc(t,i);var R=p=r.createElement("link");ae(R),de(R,"link",t),R._p=new Promise(function(B,G){R.onload=B,R.onerror=G}),R.addEventListener("load",function(){b.loading|=1}),R.addEventListener("error",function(){b.loading|=2}),b.loading|=4,jo(p,e,r)}p={type:"stylesheet",instance:p,count:1,state:b},u.set(c,p)}}}function c2(t,e){Vn.X(t,e);var i=$i;if(i&&t){var r=gi(i).hoistableScripts,u=Zi(t),c=r.get(u);c||(c=i.querySelector(Ws(u)),c||(t=y({src:t,async:!0},e),(e=Ke.get(u))&&qc(t,e),c=i.createElement("script"),ae(c),de(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(u,c))}}function f2(t,e){Vn.M(t,e);var i=$i;if(i&&t){var r=gi(i).hoistableScripts,u=Zi(t),c=r.get(u);c||(c=i.querySelector(Ws(u)),c||(t=y({src:t,async:!0,type:"module"},e),(e=Ke.get(u))&&qc(t,e),c=i.createElement("script"),ae(c),de(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(u,c))}}function Mp(t,e,i,r){var u=(u=nt.current)?qo(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Xi(i.href),i=gi(u).hoistableStyles,r=i.get(e),r||(r={type:"style",instance:null,count:0,state:null},i.set(e,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Xi(i.href);var c=gi(u).hoistableStyles,p=c.get(t);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,p),(c=u.querySelector(Js(t)))&&!c._p&&(p.instance=c,p.state.loading=5),Ke.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ke.set(t,i),c||d2(u,t,i,p.state))),e&&r===null)throw Error(o(528,""));return p}if(e&&r!==null)throw Error(o(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Zi(i),i=gi(u).hoistableScripts,r=i.get(e),r||(r={type:"script",instance:null,count:0,state:null},i.set(e,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Xi(t){return'href="'+Qe(t)+'"'}function Js(t){return'link[rel="stylesheet"]['+t+"]"}function Op(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function d2(t,e,i,r){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?r.loading=1:(e=t.createElement("link"),r.preload=e,e.addEventListener("load",function(){return r.loading|=1}),e.addEventListener("error",function(){return r.loading|=2}),de(e,"link",i),ae(e),t.head.appendChild(e))}function Zi(t){return'[src="'+Qe(t)+'"]'}function Ws(t){return"script[async]"+t}function Lp(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var r=t.querySelector('style[data-href~="'+Qe(i.href)+'"]');if(r)return e.instance=r,ae(r),r;var u=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement("style"),ae(r),de(r,"style",u),jo(r,i.precedence,t),e.instance=r;case"stylesheet":u=Xi(i.href);var c=t.querySelector(Js(u));if(c)return e.state.loading|=4,e.instance=c,ae(c),c;r=Op(i),(u=Ke.get(u))&&Uc(r,u),c=(t.ownerDocument||t).createElement("link"),ae(c);var p=c;return p._p=new Promise(function(b,R){p.onload=b,p.onerror=R}),de(c,"link",r),e.state.loading|=4,jo(c,i.precedence,t),e.instance=c;case"script":return c=Zi(i.src),(u=t.querySelector(Ws(c)))?(e.instance=u,ae(u),u):(r=i,(u=Ke.get(c))&&(r=y({},i),qc(r,u)),t=t.ownerDocument||t,u=t.createElement("script"),ae(u),de(u,"link",r),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(r=e.instance,e.state.loading|=4,jo(r,i.precedence,t));return e.instance}function jo(t,e,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,c=u,p=0;p<r.length;p++){var b=r[p];if(b.dataset.precedence===e)c=b;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Uc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function qc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ho=null;function Np(t,e,i){if(Ho===null){var r=new Map,u=Ho=new Map;u.set(i,r)}else u=Ho,r=u.get(i),r||(r=new Map,u.set(i,r));if(r.has(t))return r;for(r.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var c=i[u];if(!(c[ps]||c[le]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(e)||"";p=t+p;var b=r.get(p);b?b.push(c):r.set(p,[c])}}return r}function kp(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function h2(t,e,i){if(i===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Dp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function m2(t,e,i,r){if(i.type==="stylesheet"&&(typeof r.media!="str
10ing"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=Xi(r.href),c=e.querySelector(Js(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vo.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,ae(c);return}c=e.ownerDocument||e,r=Op(r),(u=Ke.get(u))&&Uc(r,u),c=c.createElement("link"),ae(c);var p=c;p._p=new Promise(function(b,R){p.onload=b,p.onerror=R}),de(c,"link",r),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Vo.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var jc=0;function p2(t,e){return t.stylesheets&&t.count===0&&Po(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var r=setTimeout(function(){if(t.stylesheets&&Po(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&jc===0&&(jc=62500*Z0());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Po(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>jc?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Vo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Po(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Qo=null;function Po(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Qo=new Map,e.forEach(g2,t),Qo=null,Vo.call(t))}function g2(t,e){if(!(e.state.loading&4)){var i=Qo.get(t);if(i)var r=i.get(null);else{i=new Map,Qo.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var p=u[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(i.set(p.dataset.precedence,p),r=p)}r&&i.set(null,r)}u=e.instance,p=u.getAttribute("data-precedence"),c=i.get(p)||r,c===r&&i.set(null,u),i.set(p,u),this.count++,r=Vo.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var tr={$$typeof:X,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function y2(t,e,i,r,u,c,p,b,R){this.tag=1,this.containerInfo=t,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=Dl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dl(0),this.hiddenUpdates=Dl(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function zp(t,e,i,r,u,c,p,b,R,B,G,Z){return t=new y2(t,e,i,p,R,B,G,Z,b),e=1,c===!0&&(e|=24),c=ke(3,null,null,e),t.current=c,c.stateNode=t,e=vu(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:r,isDehydrated:i,cache:e},Eu(c),t}function Bp(t){return t?(t=xi,t):xi}function Up(t,e,i,r,u,c){u=Bp(u),r.context===null?r.context=u:r.pendingContext=u,r=ia(e),r.payload={element:i},c=c===void 0?null:c,c!==null&&(r.callback=c),i=sa(t,r,e),i!==null&&(Ee(i,t,e),Ns(i,t,e))}function qp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Hc(t,e){qp(t,e),(t=t.alternate)&&qp(t,e)}function jp(t){if(t.tag===13||t.tag===31){var e=ja(t,67108864);e!==null&&Ee(e,t,67108864),Hc(t,67108864)}}function Hp(t){if(t.tag===13||t.tag===31){var e=qe();e=zl(e);var i=ja(t,e);i!==null&&Ee(i,t,e),Hc(t,e)}}var Io=!0;function v2(t,e,i,r){var u=U.T;U.T=null;var c=I.p;try{I.p=2,Vc(t,e,i,r)}finally{I.p=c,U.T=u}}function b2(t,e,i,r){var u=U.T;U.T=null;var c=I.p;try{I.p=8,Vc(t,e,i,r)}finally{I.p=c,U.T=u}}function Vc(t,e,i,r){if(Io){var u=Qc(r);if(u===null)Rc(t,e,r,Go,i),Qp(t,r);else if(w2(u,t,e,i,r))r.stopPropagation();else if(Qp(t,r),e&4&&-1<S2.indexOf(t)){for(;u!==null;){var c=pi(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Da(c.pendingLanes);if(p!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var R=1<<31-Le(p);b.entanglements[1]|=R,p&=~R}pn(c),(Tt&6)===0&&(Ro=he()+500,Xs(0))}}break;case 31:case 13:b=ja(c,2),b!==null&&Ee(b,c,2),Mo(),Hc(c,2)}if(c=Qc(r),c===null&&Rc(t,e,r,Go,i),c===u)break;u=c}u!==null&&r.stopPropagation()}else Rc(t,e,r,null,i)}}function Qc(t){return t=Il(t),Pc(t)}var Go=null;function Pc(t){if(Go=null,t=mi(t),t!==null){var e=f(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=d(e),t!==null)return t;t=null}else if(i===31){if(t=m(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Go=t,null}function Vp(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 6,256 bytes, line 10
10: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(Bt()){case oe:return 2;case fn:return 8;case di:case rv:return 32;case Ff:return 268435456;default:return 32}default:return 32}}var Ic=!1,ga=null,ya=null,va=null,er=new Map,nr=new Map,ba=[],S2="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 Qp(t,e){switch(t){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":ya=null;break;case"mouseover":case"mouseout":va=null;break;case"pointerover":case"pointerout":er.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nr.delete(e.pointerId)}}function ar(t,e,i,r,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:r,nativeEvent:c,targetContainers:[u]},e!==null&&(e=pi(e),e!==null&&jp(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function w2(t,e,i,r,u){switch(e){case"focusin":return ga=ar(ga,t,e,i,r,u),!0;case"dragenter":return ya=ar(ya,t,e,i,r,u),!0;case"mouseover":return va=ar(va,t,e,i,r,u),!0;case"pointerover":var c=u.pointerId;return er.set(c,ar(er.get(c)||null,t,e,i,r,u)),!0;case"gotpointercapture":return c=u.pointerId,nr.set(c,ar(nr.get(c)||null,t,e,i,r,u)),!0}return!1}function Pp(t){var e=mi(t.target);if(e!==null){var i=f(e);if(i!==null){if(e=i.tag,e===13){if(e=d(i),e!==null){t.blockedOn=e,ad(t.priority,function(){Hp(i)});return}}else if(e===31){if(e=m(i),e!==null){t.blockedOn=e,ad(t.priority,function(){Hp(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Qc(t.nativeEvent);if(i===null){i=t.nativeEvent;var r=new i.constructor(i.type,i);Pl=r,i.target.dispatchEvent(r),Pl=null}else return e=pi(i),e!==null&&jp(e),t.blockedOn=i,!1;e.shift()}return!0}function Ip(t,e,i){Yo(t)&&i.delete(e)}function E2(){Ic=!1,ga!==null&&Yo(ga)&&(ga=null),ya!==null&&Yo(ya)&&(ya=null),va!==null&&Yo(va)&&(va=null),er.forEach(Ip),nr.forEach(Ip)}function $o(t,e){t.blockedOn===e&&(t.blockedOn=null,Ic||(Ic=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,E2)))}var Xo=null;function Gp(t){Xo!==t&&(Xo=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Xo===t&&(Xo=null);for(var e=0;e<t.length;e+=3){var i=t[e],r=t[e+1],u=t[e+2];if(typeof r!="function"){if(Pc(r||i)===null)continue;break}var c=pi(i);c!==null&&(t.splice(e,3),e-=3,Qu(c,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function Ki(t){function e(R){return $o(R,t)}ga!==null&&$o(ga,t),ya!==null&&$o(ya,t),va!==null&&$o(va,t),er.forEach(e),nr.forEach(e);for(var i=0;i<ba.length;i++){var r=ba[i];r.blockedOn===t&&(r.blockedOn=null)}for(;0<ba.length&&(i=ba[0],i.blockedOn===null);)Pp(i),i.blockedOn===null&&ba.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var u=i[r],c=i[r+1],p=u[ge]||null;if(typeof c=="function")p||Gp(i);else if(p){var b=null;if(c&&c.hasAttribute("formAction")){if(u=c,p=c[ge]||null)b=p.formAction;else if(Pc(u)!==null)continue}else b=p.action;typeof b=="function"?i[r+1]=b:(i.splice(r,3),r-=3),Gp(i)}}}function Yp(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return u=p})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Gc(t){this._internalRoot=t}Zo.prototype.render=Gc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var i=e.current,r=qe();Up(i,r,t,e,null,null)},Zo.prototype.unmount=Gc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Up(t.current,2,null,t,null,null),Mo(),e[hi]=null}};function Zo(t){this._internalRoot=t}Zo.prototype.unstable_scheduleHydration=function(t){if(t){var e=nd();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ba.length&&e!==0&&e<ba[i].priority;i++);ba.splice(i,0,t),i===0&&Pp(t)}};var $p=a.version;if($p!=="19.2.4")throw Error(o(527,$p,"19.2.4"));I.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=g(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var C2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ko=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ko.isDisabled&&Ko.supportsFiber)try{ds=Ko.inject(C2),Oe=Ko}catch{}}return sr.createRoot=function(t,e){if(!l(t))throw Error(o(299));var i=!1,r="",u=tm,c=em,p=nm;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=zp(t,1,!1,null,null,i,r,null,u,c,p,Yp),t[hi]=e.current,xc(t),new Gc(e)},sr.hydrateRoot=function(t,e,i){if(!l(t))throw Error(o(299));var r=!1,u="",c=tm,p=em,b=nm,R=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),e=zp(t,1,!0,e,i??null,r,u,R,c,p,b,Yp),e.context=Bp(null),i=e.current,r=qe(),r=zl(r),u=ia(r),u.callback=null,sa(i,u,r),i=r,e.current.lanes=i,ms(e,i),pn(e),t[hi]=e.current,xc(t),new Zo(e)},sr.version="19.2.4",sr}var ag;function k2(){if(ag)return Xc.exports;ag=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xc.exports=N2(),Xc.exports}var D2=k2(),z2="__TSS_CONTEXT",_f=Symbol.for("TSS_SERVER_FUNCTION"),B2="application/x-tss-framed",Qn={JSON:0,CHUNK:1,END:2,ERROR:3},U2=/;\s*v=(\d+)/;function q2(n){const a=n.match(U2);return a?parseInt(a[1],10):void 0}function j2(n){const a=q2(n);if(a!==void 0&&a!==1)throw new Error(`Incompatible framed protocol version: server=${a}, client=1. Please ensure client and server are using compatible versions.`)}var v1=()=>window.__TSS_START_OPTIONS__;const b1=!1;function Sr(n){return n[n.length-1]}function H2(n){return typeof n=="function"}function Ca(n,a){return H2(n)?n(a):n}const S1=Object.prototype.hasOwnProperty,ig=Object.prototype.propertyIsEnumerable;function w1(n){for(const a in n)if(S1.call(n,a))return!0;return!1}const V2=()=>Object.create(null),Ja=(n,a)=>_a(n,a,V2);function _a(n,a,s=()=>({}),o=0){if(n===a)return n;if(o>500)return a;const l=a,f=og(n)&&og(l);if(!f&&!(os(n)&&os(l)))return l;const d=f?n:sg(n);if(!d)return l;const m=f?l:sg(l);if(!m)return l;const h=d.length,g=m.length,v=f?new Array(g):s();let y=0;for(let C=0;C<g;C++){const S=f?C:m[C],x=n[S],L=l[S];if(x===L){v[S]=x,(f?C<h:S1.call(n,S))&&y++;continue}if(x===null||L===null||typeof x!="object"||typeof L!="object"){v[S]=L;continue}const _=_a(x,L,s,o+1);v[S]=_,_===x&&y++}return h===g&&y===h?n:v}function sg(n){const a=Object.getOwnPropertyNames(n);for(const l of a)if(!ig.call(n,l))return!1;const s=Object.getOwnPropertySymbols(n);if(s.length===0)return a;const o=a;for(const l of s){if(!ig.call(n,l))return!1;o.push(l)}return o}function os(n){if(!rg(n))return!1;const a=n.constructor;if(typeof a>"u")return!0;const s=a.prototype;return!(!rg(s)||!s.hasOwnProperty("isPrototypeOf"))}function rg(n){return Object.prototype.toString.call(n)==="[object Object]"}function og(n){return Array.isArray(n)&&n.length===Object.keys(n).length}
10function xe(n,a,s){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(let o=0,l=n.length;o<l;o++)if(!xe(n[o],a[o],s))return!1;return!0}if(os(n)&&os(a)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const d in a)if((!o||a[d]!==void 0)&&!xe(n[d],a[d],s))return!1;return!0}let l=0;if(!o)l=Object.keys(n).length;else for(const d in n)n[d]!==void 0&&l++;let f=0;for(const d in a)if((!o||a[d]!==void 0)&&(f++,f>l||!xe(n[d],a[d],s)))return!1;return l===f}return!1}function oi(n){let a,s;const o=new Promise((l,f)=>{a=l,s=f});return o.status="pending",o.resolve=l=>{o.status="resolved",o.value=l,a(l),n?.(l)},o.reject=l=>{o.status="rejected",s(l)},o}function Q2(n){return typeof n?.message!="string"?!1:n.message.startsWith("Failed to fetch dynamically imported module")||n.message.startsWith("error loading dynamically imported module")||n.message.startsWith("Importing a module script failed")}function wr(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function P2(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function lg(n){let a;try{a=decodeURI(n)}catch{a=n.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return P2(a)}const I2=["http:","https:","mailto:","tel:"];function yl(n,a){if(!n)return!1;try{const s=new URL(n);return!a.has(s.protocol)}catch{return!1}}const G2={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Y2=/[&><\u2028\u2029]/g;function $2(n){return n.replace(Y2,a=>G2[a])}function rr(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let s=0,o="",l;for(;(l=a.exec(n))!==null;)o+=lg(n.slice(s,l.index))+l[0],s=a.lastIndex;o=o+lg(s?n.slice(s):n);let f=!1;return o.startsWith("//")&&(f=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:f}}function X2(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function Z2(n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!==a[s])return!1;return!0}function Me(){throw new Error("Invariant failed")}function Er(n){const a=new Map;let s,o;const l=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,o&&(o.next=f,f.prev=o)):(f.next.prev=void 0,s=f.next,f.next=void 0,o&&(f.prev=o,o.next=f)),o=f)};return{get(f){const d=a.get(f);if(d)return l(d),d.value},set(f,d){if(a.size>=n&&s){const h=s;a.delete(h.key),h.next&&(s=h.next,h.next.prev=void 0),h===o&&(o=void 0)}const m=a.get(f);if(m)m.value=d,l(m);else{const h={key:f,value:d,prev:o};o&&(o.next=h),o=h,s||(s=h),a.set(f,h)}},clear(){a.clear(),s=void 0,o=void 0}}}const Ta=4,E1=5;function K2(n){const a=n.indexOf("{");if(a===-1)return null;const s=n.indexOf("}",a);return s===-1||a+1>=n.length?null:[a,s]}function C1(n,a,s=new Uint16Array(6)){const o=n.indexOf("/",a),l=o===-1?n.length:o,f=n.substring(a,l);if(!f||!f.includes("$"))return s[0]=0,s[1]=a,s[2]=a,s[3]=l,s[4]=l,s[5]=l,s;if(f==="$"){const m=n.length;return s[0]=2,s[1]=a,s[2]=a,s[3]=m,s[4]=m,s[5]=m,s}if(f.charCodeAt(0)===36)return s[0]=1,s[1]=a,s[2]=a+1,s[3]=l,s[4]=l,s[5]=l,s;const d=K2(f);if(d){const[m,h]=d,g=f.charCodeAt(m+1);if(g===45){if(m+2<f.length&&f.charCodeAt(m+2)===36){const v=m+3,y=h;if(v<y)return s[0]=3,s[1]=a+m,s[2]=a+v,s[3]=a+y,s[4]=a+h+1,s[5]=l,s}}else if(g===36){const v=m+1,y=m+2;return y===h?(s[0]=2,s[1]=a+m,s[2]=a+v,s[3]=a+y,s[4]=a+h+1,s[5]=n.length,s):(s[0]=1,s[1]=a+m,s[2]=a+y,s[3]=a+h,s[4]=a+h+1,s[5]=l,s)}}return s[0]=0,s[1]=a,s[2]=a,s[3]=l,s[4]=l,s[5]=l,s}function Tl(n,a,s,o,l,f,d){d?.(s);let m=o;{const h=s.fullPath??s.from,g=h.length,v=s.options?.caseSensitive??n,y=s.options?.params?.parse??s.options?.parseParams;for(;m<g;){const S=C1(h,m,a);let x;const L=m,_=S[5];switch(m=_+1,f++,S[0]){case 0:{const O=h.substring(S[2],S[3]);if(v){const Q=l.static?.get(O);if(Q)x=Q;else{l.static??=new Map;const X=ei(s.fullPath??s.from);X.parent=l,X.depth=f,x=X,l.static.set(O,X)}}else{const Q=O.toLowerCase(),X=l.staticInsensitive?.get(Q);if(X)x=X;else{l.staticInsensitive??=new Map;const H=ei(s.fullPath??s.from);H.parent=l,H.depth=f,x=H,l.staticInsensitive.set(Q,H)}}break}case 1:{const O=h.substring(L,S[1]),Q=h.substring(S[4],_),X=v&&!!(O||Q),H=O?X?O:O.toLowerCase():void 0,W=Q?X?Q:Q.toLowerCase():void 0,tt=!y&&l.dynamic?.find(P=>!P.parse&&P.caseSensitive===X&&P.prefix===H&&P.suffix===W);if(tt)x=tt;else{const P=Wc(1,s.fullPath??s.from,X,H,W);x=P,P.depth=f,P.parent=l,l.dynamic??=[],l.dynamic.push(P)}break}case 3:{const O=h.substring(L,S[1]),Q=h.substring(S[4],_),X=v&&!!(O||Q),H=O?X?O:O.toLowerCase():void 0,W=Q?X?Q:Q.toLowerCase():void 0,tt=!y&&l.optional?.find(P=>!P.parse&&P.caseSensitive===X&&P.prefix===H&&P.suffix===W);if(tt)x=tt;else{const P=Wc(3,s.fullPath??s.from,X,H,W);
10x=P,P.parent=l,P.depth=f,l.optional??=[],l.optional.push(P)}break}case 2:{const O=h.substring(L,S[1]),Q=h.substring(S[4],_),X=v&&!!(O||Q),H=O?X?O:O.toLowerCase():void 0,W=Q?X?Q:Q.toLowerCase():void 0,tt=Wc(2,s.fullPath??s.from,X,H,W);x=tt,tt.parent=l,tt.depth=f,l.wildcard??=[],l.wildcard.push(tt)}}l=x}if(y&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const S=ei(s.fullPath??s.from);S.kind=E1,S.parent=l,f++,S.depth=f,l.pathless??=[],l.pathless.push(S),l=S}const C=(s.path||!s.children)&&!s.isRoot;if(C&&h.endsWith("/")){const S=ei(s.fullPath??s.from);S.kind=Ta,S.parent=l,f++,S.depth=f,l.index=S,l=S}l.parse=y??null,C&&!l.route&&(l.route=s,l.fullPath=s.fullPath??s.from)}if(s.children)for(const h of s.children)Tl(n,a,h,m,l,f,d)}function Jc(n,a){if(n.parse&&!a.parse)return-1;if(!n.parse&&a.parse)return 1;if(n.prefix&&a.prefix&&n.prefix!==a.prefix){if(n.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(n.prefix))return 1}if(n.suffix&&a.suffix&&n.suffix!==a.suffix){if(n.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(n.suffix))return 1}return n.prefix&&!a.prefix?-1:!n.prefix&&a.prefix?1:n.suffix&&!a.suffix?-1:!n.suffix&&a.suffix?1:n.caseSensitive&&!a.caseSensitive?-1:!n.caseSensitive&&a.caseSensitive?1:0}function wa(n){if(n.pathless)for(const a of n.pathless)wa(a);if(n.static)for(const a of n.static.values())wa(a);if(n.staticInsensitive)for(const a of n.staticInsensitive.values())wa(a);if(n.dynamic?.length){n.dynamic.sort(Jc);for(const a of n.dynamic)wa(a)}if(n.optional?.length){n.optional.sort(Jc);for(const a of n.optional)wa(a)}if(n.wildcard?.length){n.wildcard.sort(Jc);for(const a of n.wildcard)wa(a)}}function ei(n){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null}}function Wc(n,a,s,o,l){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,caseSensitive:s,prefix:o,suffix:l}}function F2(n,a){const s=ei("/"),o=new Uint16Array(6);for(const l of n)Tl(!1,o,l,1,s,0);wa(s),a.masksTree=s,a.flatCache=Er(1e3)}function J2(n,a){n||="/";const s=a.flatCache.get(n);if(s)return s;const o=Uf(n,a.masksTree);return a.flatCache.set(n,o),o}function W2(n,a,s,o,l){n||="/",o||="/";const f=a?`case\0${n}`:n;let d=l.singleCache.get(f);return d||(d=ei("/"),Tl(a,new Uint16Array(6),{from:n},1,d,0),l.singleCache.set(f,d)),Uf(o,d,s)}function tb(n,a,s=!1){const o=s?n:`nofuzz\0${n}`,l=a.matchCache.get(o);if(l!==void 0)return l;n||="/";let f;try{f=Uf(n,a.segmentTree,s)}catch(d){if(d instanceof URIError)f=null;else throw d}return f&&(f.branch=T1(f.route)),a.matchCache.set(o,f),f}function eb(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function nb(n,a=!1,s){const o=ei(n.fullPath),l=new Uint16Array(6),f={},d={};let m=0;return Tl(a,l,n,1,o,0,h=>{if(s?.(h,m),h.id in f&&Me(),f[h.id]=h,m!==0&&h.path){const g=eb(h.fullPath);(!d[g]||h.fullPath.endsWith("/"))&&(d[g]=h)}m++}),wa(o),{processedTree:{segmentTree:o,singleCache:Er(1e3),matchCache:Er(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:d}}function Uf(n,a,s=!1){const o=n.split("/"),l=ib(n,o,a,s);if(!l)return null;const[f]=_1(n,o,l);return{route:l.node.route,rawParams:f}}function _1(n,a,s){const o=ab(s.node);let l=null;const f=Object.create(null);let d=s.extract?.part??0,m=s.extract?.node??0,h=s.extract?.path??0,g=s.extract?.segment??0;for(;m<o.length;d++,m++,h++,g++){const v=o[m];if(v.kind===Ta)break;if(v.kind===E1){g--,d--,h--;continue}const y=a[d],C=h;if(y&&(h+=y.length),v.kind===1){l??=s.node.fullPath.split("/");const S=l[g],x=v.prefix?.length??0;if(S.charCodeAt(x)===123){const L=v.suffix?.length??0,_=S.substring(x+2,S.length-L-1),O=y.substring(x,y.length-L);f[_]=decodeURIComponent(O)}else{const L=S.substring(1);f[L]=decodeURIComponent(y)}}else if(v.kind===3){if(s.skipped&1<<m){d--,h=C-1;continue}l??=s.node.fullPath.split("/");const S=l[g],x=v.prefix?.length??0,L=v.suffix?.length??0,_=S.substring(x+3,S.length-L-1),O=v.suffix||v.prefix?y.substring(x,y.length-L):y;O&&(f[_]=decodeURIComponent(O))}else if(v.kind===2){const S=v,x=n.substring(C+(S.prefix?.length??0),n.length-(S.suffix?.length??0)),L=decodeURIComponent(x);f["*"]=L,f._splat=L;break}}return s.rawParams&&Object.assign(f,s.rawParams),[f,{part:d,node:m,path:h,segment:g}]}function T1(n){const a=[n];for(;n.parentRoute;)n=n.parentRoute,a.push(n);return a.reverse(),a}function ab(n){const a=Array(n.depth+1);do a[n.depth]=n,n=n.parent;while(n);return a}function ib(n,a,s,o){if(n==="/"&&s.index)return{node:s.index,skipped:0};const l=!Sr(a),f=l&&n!=="/",d=a.length-(l?1:0),m=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let h=null,g=null;for(;m.length;){const v=m.pop(),{node:y,index:C,skipped:S,depth:x,statics:L,dynamics:_,optionals:O}=v;let{extract:Q,rawParams:X}=v;if(y.kind===2&&y.route&&!Jo(g,v))continue;if(y.parse){if(!ug(n,a,v))continue;X=v.rawParams,Q=v.extract}o&&y.route&&y.kind!==Ta&&Jo(h,v)&&(h=v);const H=C===d;if(H&&(y.route&&(!f||y.kind===Ta||y.kind===2)&&Jo(g,v)&&(g=v),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const W=H?void 0:a[C];let tt;
10if(H&&y.index){const P={node:y.index,index:C,skipped:S,depth:x+1,statics:L,dynamics:_,optionals:O,extract:Q,rawParams:X};let K=!0;if(y.index.parse&&(ug(n,a,P)||(K=!1)),K){if(!_&&!O&&!S&&sb(L,d))return P;Jo(g,P)&&(g=P)}}if(y.wildcard)for(let P=y.wildcard.length-1;P>=0;P--){const K=y.wildcard[P],{prefix:et,suffix:ct}=K;if(!(et&&(H||!(K.caseSensitive?W:tt??=W.toLowerCase()).startsWith(et)))){if(ct){if(H)continue;const rt=a.slice(C).join("/").slice(-ct.length);if((K.caseSensitive?rt:rt.toLowerCase())!==ct)continue}m.push({node:K,index:d,skipped:S,depth:x+1,statics:L,dynamics:_,optionals:O,extract:Q,rawParams:X})}}if(y.optional){const P=S|1<<x,K=x+1;for(let et=y.optional.length-1;et>=0;et--){const ct=y.optional[et];m.push({node:ct,index:C,skipped:P,depth:K,statics:L,dynamics:_,optionals:O,extract:Q,rawParams:X})}if(!H)for(let et=y.optional.length-1;et>=0;et--){const ct=y.optional[et],{prefix:rt,suffix:ot}=ct;if(rt||ot){const jt=ct.caseSensitive?W:tt??=W.toLowerCase();if(rt&&!jt.startsWith(rt)||ot&&!jt.endsWith(ot))continue}m.push({node:ct,index:C+1,skipped:S,depth:K,statics:L,dynamics:_,optionals:O+Fo(d,C),extract:Q,rawParams:X})}}if(!H&&y.dynamic&&W)for(let P=y.dynamic.length-1;P>=0;P--){const K=y.dynamic[P],{prefix:et,suffix:ct}=K;if(et||ct){const rt=K.caseSensitive?W:tt??=W.toLowerCase();if(et&&!rt.startsWith(et)||ct&&!rt.endsWith(ct))continue}m.push({node:K,index:C+1,skipped:S,depth:x+1,statics:L,dynamics:_+Fo(d,C),optionals:O,extract:Q,rawParams:X})}if(!H&&y.staticInsensitive){const P=y.staticInsensitive.get(tt??=W.toLowerCase());P&&m.push({node:P,index:C+1,skipped:S,depth:x+1,statics:L+Fo(d,C),dynamics:_,optionals:O,extract:Q,rawParams:X})}if(!H&&y.static){const P=y.static.get(W);P&&m.push({node:P,index:C+1,skipped:S,depth:x+1,statics:L+Fo(d,C),dynamics:_,optionals:O,extract:Q,rawParams:X})}if(y.pathless){const P=x+1;for(let K=y.pathless.length-1;K>=0;K--){const et=y.pathless[K];m.push({node:et,index:C,skipped:S,depth:P,statics:L,dynamics:_,optionals:O,extract:Q,rawParams:X})}}}if(g)return g;if(o&&h){let v=h.index;for(let C=0;C<h.index;C++)v+=a[C].length;const y=v===n.length?"/":n.slice(v);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(y),h}return null}function Fo(n,a){return 2**(n-a-1)}function sb(n,a){return n===2**(a-1)-1}function ug(n,a,s){let o,l;try{[o,l]=_1(n,a,s)}catch{return null}if(s.rawParams=o,s.extract=l,!s.node.parse)return!0;try{if(s.node.parse(o)===!1)return null}catch{}return!0}function Jo(n,a){return n?a.statics>n.statics||a.statics===n.statics&&(a.dynamics>n.dynamics||a.dynamics===n.dynamics&&(a.optionals>n.optionals||a.optionals===n.optionals&&((a.node.kind===Ta)>(n.node.kind===Ta)||a.node.kind===Ta==(n.node.kind===Ta)&&a.depth>n.depth))):!0}function fl(n){return qf(n.filter(a=>a!==void 0).join("/"))}function qf(n){return n.replace(/\/{2,}/g,"/")}function x1(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function In(n){const a=n.length;return a>1&&n[a-1]==="/"?n.replace(/\/{1,}$/,""):n}function R1(n){return In(x1(n))}function vl(n,a){return n?.endsWith("/")&&n!=="/"&&n!==`${a}/`?n.slice(0,-1):n}function rb(n,a,s){return vl(n,s)===vl(a,s)}function ob({base:n,to:a,trailingSlash:s="never",cache:o}){const l=a.startsWith("/"),f=!l&&a===".";let d;if(o){d=l?a:f?n:n+"\0"+a;const g=o.get(d);if(g)return g}let m;if(f)m=n.split("/");else if(l)m=a.split("/");else{for(m=n.split("/");m.length>1&&Sr(m)==="";)m.pop();const g=a.split("/");for(let v=0,y=g.length;v<y;v++){const C=g[v];C===""?v?v===y-1&&m.push(C):m=[C]:C===".."?m.pop():C==="."||m.push(C)}}m.length>1&&(Sr(m)===""?s==="never"&&m.pop():s==="always"&&m.push(""));const h=qf(m.join("/"))||"/";return d&&o&&o.set(d,h),h}function lb(n){const a=new Map(n.map(l=>[encodeURIComponent(l),l])),s=Array.from(a.keys()).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return l=>l.replace(o,f=>a.get(f)??f)}function tf(n,a,s){const o=a[n];return typeof o!="string"?o:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(l=>fg(l,s)).join("/"):fg(o,s)}function cg({path:n,params:a,decoder:s,...o}){let l=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:l};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:l};const d=n.length;let m=0,h,g="";for(;m<d;){const v=m;h=C1(n,v,h);const y=h[5];if(m=y+1,v===y)continue;const C=h[0];if(C===0){g+="/"+n.substring(v,y);continue}if(C===2){const S=a._splat;f._splat=S,f["*"]=S;const x=n.substring(v,h[1]),L=n.substring(h[4],y);if(!S){l=!0,(x||L)&&(g+="/"+x+L);continue}const _=tf("_splat",a,s);g+="/"+x+_+L;continue}if(C===1){const S=n.substring(h[2],h[3]);!l&&!(S in a)&&(l=!0),f[S]=a[S];const x=n.substring(v,h[1]),L=n.substring(h[4],y),_=tf(S,a,s)??"undefined";g+="/"+x+_+L;continue}if(C===3){const S=n.substring(h[2],h[3]),x=a[S];if(x==null)continue;f[S]=x;const L=n.substring(v,h[1]),_=n.substring(h[4],y),O=tf(S,a,s)??"";g+="/"+L+O+_;continue}}return n.endsWith("/")&&(g+="/"),{usedParams:f,interpolatedPath:g||"/",isMissingParams:l}}function fg(n,a){const s=encodeURIComponent(n);return a?.(s)??s}function se(n){return n?.isNotFound===!0}function ub(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const cb="tsr-scroll-restoration-v1_3";function fb(){const n=ub();if(!n)return null;let a={};try{const o=JSON.parse(n.getItem("tsr-scroll-restoration-v1_3")||"{}");os(o)&&(a=o)}catch{}return{get state(){return a}
10,set:o=>{a=Ca(o,a)||a},persist:()=>{try{n.setItem(cb,JSON.stringify(a))}catch{}}}}const dg=fb(),db=n=>n.state.__TSR_key||n.href;function hb(n){const a=[];let s;for(;s=n.parentNode;)a.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,n)+1})`),n=s;return`${a.reverse().join(" > ")}`.toLowerCase()}let Wo=!1;const or="window",hg="data-scroll-restoration-id";function mb(n,a){if(!dg)return;const s=dg;if((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!s)return;n.isScrollRestorationSetup=!0,Wo=!1;const o=n.options.getScrollRestorationKey||db,l=new Map;window.history.scrollRestoration="manual";const f=m=>{if(!(Wo||!n.isScrollRestoring))if(m.target===document||m.target===window)l.set(or,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const h=m.target;l.set(h,{scrollX:h.scrollLeft||0,scrollY:h.scrollTop||0})}},d=m=>{if(!n.isScrollRestoring||!m||l.size===0||!s)return;const h=s.state[m]||={};for(const[g,v]of l){let y;if(g===or)y=or;else if(g.isConnected){const C=g.getAttribute(hg);y=C?`[${hg}="${C}"]`:hb(g)}y&&(h[y]=v)}};document.addEventListener("scroll",f,!0),n.subscribe("onBeforeLoad",m=>{d(m.fromLocation?o(m.fromLocation):void 0),l.clear()}),window.addEventListener("pagehide",()=>{d(o(n.stores.resolvedLocation.get()??n.stores.location.get())),s.persist()}),n.subscribe("onRendered",m=>{const h=o(m.toLocation),g=n.options.scrollRestorationBehavior,v=n.options.scrollToTopSelectors;if(l.clear(),!n.resetNextScroll){n.resetNextScroll=!0;return}if(!(typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))){Wo=!0;try{const y=n.isScrollRestoring?s.state[h]:void 0;let C=!1;if(y)for(const S in y){const x=y[S];if(!os(x))continue;const{scrollX:L,scrollY:_}=x;if(!(!Number.isFinite(L)||!Number.isFinite(_))){if(S===or)window.scrollTo({top:_,left:L,behavior:g}),C=!0;else if(S){let O;try{O=document.querySelector(S)}catch{continue}O&&(O.scrollLeft=L,O.scrollTop=_,C=!0)}}}if(!C){const S=n.history.location.hash.slice(1);if(S){const x=window.history.state?.__hashScrollIntoViewOptions??!0;if(x){const L=document.getElementById(S);L&&L.scrollIntoView(x)}}else{const x={top:0,left:0,behavior:g};if(window.scrollTo(x),v)for(const L of v){if(L===or)continue;const _=typeof L=="function"?L():document.querySelector(L);_&&_.scrollTo(x)}}}}finally{Wo=!1}n.isScrollRestoring&&s.set(y=>(y[h]||={},y))}})}function A1(n,a=String){const s=new URLSearchParams;for(const o in n){const l=n[o];l!==void 0&&s.set(o,a(l))}return s.toString()}function ef(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function pb(n){const a=new URLSearchParams(n),s=Object.create(null);for(const[o,l]of a.entries()){const f=s[o];f==null?s[o]=ef(l):Array.isArray(f)?f.push(ef(l)):s[o]=[f,ef(l)]}return s}const gb=vb(JSON.parse),yb=bb(JSON.stringify,JSON.parse);function vb(n){return a=>{a[0]==="?"&&(a=a.substring(1));const s=pb(a);for(const o in s){const l=s[o];if(typeof l=="string")try{s[o]=n(l)}catch{}}return s}}function bb(n,a){const s=typeof a=="function";function o(l){if(typeof l=="object"&&l!==null)try{return n(l)}catch{}else if(s&&typeof l=="string")try{return a(l),n(l)}catch{}return l}return l=>{const f=A1(l,o);return f?`?${f}`:""}}const ii="__root__";function M1(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const a=new Headers(n.headers);n.href&&a.get("Location")===null&&a.set("Location",n.href);const s=new Response(null,{status:n.statusCode,headers:a});if(s.options=n,n.throw)throw s;return s}function Re(n){return n instanceof Response&&!!n.options}function Sb(n){if(n!==null&&typeof n=="object"&&n.isSerializedRedirect)return M1(n)}function wb(n){return{input:({url:a})=>{for(const s of n)a=Tf(s,a);return a},output:({url:a})=>{for(let s=n.length-1;s>=0;s--)a=O1(n[s],a);return a}}}function Eb(n){const a=R1(n.basepath),s=`/${a}`,o=`${s}/`,l=n.caseSensitive?s:s.toLowerCase(),f=n.caseSensitive?o:o.toLowerCase();return{input:({url:d})=>{const m=n.caseSensitive?d.pathname:d.pathname.toLowerCase();return m===l?d.pathname="/":m.startsWith(f)&&(d.pathname=d.pathname.slice(s.length)),d},output:({url:d})=>(d.pathname=fl(["/",a,d.pathname]),d)}}function Tf(n,a){const s=n?.input?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function O1(n,a){const s=n?.output?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function Cb(n,a){const{createMutableStore:s,createReadonlyStore:o,batch:l,init:f}=a,d=new Map,m=new Map,h=new Map,g=s(n.status),v=s(n.loadedAt),y=s(n.isLoading),C=s(n.isTransitioning),S=s(n.location),x=s(n.resolvedLocation),L=s(n.statusCode),_=s(n.redirect),O=s([]),Q=s([]),X=s([]),H=o(()=>nf(d,O.get())),W=o(()=>nf(m,Q.get())),tt=o(()=>nf(h,X.get())),P=o(()=>O.get()[0]),K=o(()=>O.get().some(I=>d.get(I)?.get().status==="pending")),et=o(()=>({locationHref:S.get().href,resolvedLocationHref:x.get()?.href,status:g.get()})),ct=o(()=>({status:g.get(),loadedAt:v.get(),isLoading:y.get(),isTransitioning:C.get(),matches:H.get(),location:S.get(),resolvedLocation:x.get(),statusCode:L.get(),redirect:_.get()})),rt=Er(64);function ot(I){let at=rt.get(I);return at||(at=o(()=>{const dt=O.get();for(const A of dt){const E=d.get(A);if(E&&E.routeId===I)return E.get()}}),rt.set(I,at)),at}const jt={status:g,loadedAt:v,isLoading:y,isTransitioning:C,location:S,resolvedLocation:x,statusCode:L,redirect:_,matchesId:O,pendingIds:Q,cachedIds:X,matches:H,pendingMatches:W,cachedMatches:tt,firstId:P,hasPending:K,matchRouteDeps:et,matchStores:d,pendingMatchStores:m,cachedMatchStores:h,__store:ct,getRouteMatchStore:ot,setMatches:xt,setPending:lt,setCached:U};xt(n.matches),f?.(jt);function xt(I){af(I,d,O,s,l)}function lt(I){af(I,m,Q,s,l)}function U(I){af(I,h,X,s,l)}return jt}function nf(n,a){const s=[];for(const o of a){const l=n.get(o);l&&s.push(l.get())}return s}function af(n,a,s,o,l){const f=n.map(m=>m.id),d=new Set(f);l(()=>{for(const m of a.keys())d.has(m)||a.delete(m);for(const m of n){const h=a.get(m.id);if(!h){const g=o(m);g.routeId=m.routeId,a.set(m.id,g);continue}h.routeId=m.routeId,h.get()!==m&&h.set(m)}Z2(s.get(),f)||s.set(f)})}const xf=n=>{if(!n.rendered)return n.rendered=!0,n.onReady?.()},_b=n=>n.stores.matchesId.get().some(a=>n.stores.matchStores.get(a)?.get()._forcePending),xl=(n,a)=>!!(n.preload&&!n.router.stores.matchStores.has(a)),si=(n,a,s=!0)=>{const o={...n.router.options.context??{}},l=s?a:a-1;for(let f=0;f<=l;f++){const d=n.matches[f];if(!d)continue;const m=n.router.getMatch(d.id);
10m&&Object.assign(o,m.__routeContext,m.__beforeLoadContext)}return o},mg=(n,a)=>{if(!n.matches.length)return;const s=a.routeId,o=n.matches.findIndex(d=>d.routeId===n.router.routeTree.id),l=o>=0?o:0;let f=s?n.matches.findIndex(d=>d.routeId===s):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=l);for(let d=f;d>=0;d--){const m=n.matches[d];if(n.router.looseRoutesById[m.routeId].options.notFoundComponent)return d}return s?f:l},xa=(n,a,s)=>{if(!(!Re(s)&&!se(s)))throw Re(s)&&s.redirectHandled&&!s.options.reloadDocument||(a&&(a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.loaderPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=s,n.updateMatch(a.id,o=>({...o,status:Re(s)?"redirected":se(s)?"notFound":o.status==="pending"?"success":o.status,context:si(n,a.index),isFetching:!1,error:s})),se(s)&&!s.routeId&&(s.routeId=a.routeId),a._nonReactive.loadPromise?.resolve()),Re(s)&&(n.rendered=!0,s.options._fromLocation=n.location,s.redirectHandled=!0,s=n.router.resolveRedirect(s))),s},L1=(n,a)=>{const s=n.router.getMatch(a);return!!(!s||s._nonReactive.dehydrated)},pg=(n,a,s)=>{const o=si(n,s);n.updateMatch(a,l=>({...l,context:o}))},lr=(n,a,s,o)=>{const{id:l,routeId:f}=n.matches[a],d=n.router.looseRoutesById[f];if(s instanceof Promise)throw s;s.routerCode=o,n.firstBadMatchIndex??=a,xa(n,n.router.getMatch(l),s);try{d.options.onError?.(s)}catch(m){s=m,xa(n,n.router.getMatch(l),s)}n.updateMatch(l,m=>(m._nonReactive.beforeLoadPromise?.resolve(),m._nonReactive.beforeLoadPromise=void 0,m._nonReactive.loadPromise?.resolve(),{...m,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!n.preload&&!Re(s)&&!se(s)&&(n.serialError??=s)},N1=(n,a,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const l=s.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!xl(n,a)&&(s.options.loader||s.options.beforeLoad||D1(s))&&typeof l=="number"&&l!==1/0&&(s.options.pendingComponent??n.router.options?.defaultPendingComponent)){const f=setTimeout(()=>{xf(n)},l);o._nonReactive.pendingTimeout=f}},Tb=(n,a,s)=>{const o=n.router.getMatch(a);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;N1(n,a,s,o);const l=()=>{const f=n.router.getMatch(a);f.preload&&(f.status==="redirected"||f.status==="notFound")&&xa(n,f,f.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(l):l()},xb=(n,a,s,o)=>{const l=n.router.getMatch(a);let f=l._nonReactive.loadPromise;l._nonReactive.loadPromise=oi(()=>{f?.resolve(),f=void 0});const{paramsError:d,searchError:m}=l;d&&lr(n,s,d,"PARSE_PARAMS"),m&&lr(n,s,m,"VALIDATE_SEARCH"),N1(n,a,o,l);const h=new AbortController;let g=!1;const v=()=>{g||(g=!0,n.updateMatch(a,H=>({...H,isFetching:"beforeLoad",fetchCount:H.fetchCount+1,abortController:h})))},y=()=>{l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,n.updateMatch(a,H=>({...H,isFetching:!1}))};if(!o.options.beforeLoad){n.router.batch(()=>{v(),y()});return}l._nonReactive.beforeLoadPromise=oi();const C={...si(n,s,!1),...l.__routeContext},{search:S,params:x,cause:L}=l,_=xl(n,a),O={search:S,abortController:h,params:x,preload:_,context:C,location:n.location,navigate:H=>n.router.navigate({...H,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:_?"preload":L,matches:n.matches,routeId:o.id,...n.router.options.additionalContext},Q=H=>{if(H===void 0){n.router.batch(()=>{v(),y()});return}(Re(H)||se(H))&&(v(),lr(n,s,H,"BEFORE_LOAD")),n.router.batch(()=>{v(),n.updateMatch(a,W=>({...W,__beforeLoadContext:H})),y()})};let X;try{if(X=o.options.beforeLoad(O),wr(X))return v(),X.catch(H=>{lr(n,s,H,"BEFORE_LOAD")}).then(Q)}catch(H){v(),lr(n,s,H,"BEFORE_LOAD")}Q(X)},Rb=(n,a)=>{const{id:s,routeId:o}=n.matches[a],l=n.router.looseRoutesById[o],f=()=>m(),d=()=>xb(n,s,a,l),m=()=>{if(L1(n,s))return;const h=Tb(n,s,l);return wr(h)?h.then(d):d()};return f()},Ab=(n,a,s)=>{const o=n.router.getMatch(a);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const l={ssr:n.router.options.ssr,matches:n.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(l),s.options.scripts?.(l),s.options.headers?.(l)]).then(([f,d,m])=>({meta:f?.meta,links:f?.links,headScripts:f?.scripts,headers:m,scripts:d,styles:f?.styles}))},k1=(n,a,s,o,l)=>{const f=a[o-1],{params:d,loaderDeps:m,abortController:h,cause:g}=n.router.getMatch(s),v=si(n,o),y=xl(n,s);return{params:d,deps:m,preload:!!y,parentMatchPromise:f,abortController:h,context:v,location:n.location,navigate:C=>n.router.navigate({...C,_fromLocation:n.location}),cause:y?"preload":g,route:l,...n.router.options.additionalContext}},gg=async(n,a,s,o,l)=>{try{const f=n.router.getMatch(s);try{(!(b1??n.router.isServer)||f.ssr===!0)&&Cr(l);const d=l.options.loader,m=typeof d=="function"?d:d?.handler,h=m?.(k1(n,a,s,o,l)),g=!!m&&wr(h);if((g||l._lazyPromise||l._componentsPromise||l.options.head||l.options.scripts||l.options.headers||f._nonReactive.minPendingPromise)&&n.updateMatch(s,y=>({...y,isFetching:"loader"})),m){const y=g?await h:h;xa(n,n.router.getMatch(s),y),y!==void 0&&n.updateMatch(s,C=>({...C,loaderData:y}))}l._lazyPromise&&await l._lazyPromise;const v=f._nonReactive.minPendingPromise;v&&await v,l._componentsPromise&&await l._componentsPromise,n.updateMatch(s,y=>({...y,error:void 0,context:si(n,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let m=d;if(m?.name==="AbortError"){if(f.abortController.signal.aborted){f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loaderPromise=void 0;return}n.updateMatch(s,g=>({...g,status:g.status==="pending"?"success":g.status,isFetching:!1,context:si(n,o)}));return}const h=f._nonReactive.minPendingPromise;h&&await h,se(d)&&await l.options.notFoundComponent?.preload?.(),xa(n,n.router.getMatch(s),d);try{l.options.onError?.(d)}catch(g){m=g,xa(n,n.router.getMatch(s),g)}!Re(m)&&!se(m)&&await Cr(l,["errorComponent"]),n.updateMatch(s,g=>({...g,error:m,context:si(n,o),status:"error",isFetching:!1}))}}catch(f){const d=n.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),xa(n,d,f)}},Mb=async(n,a,s)=>{async function o(S,x,L,_,O){const Q=Date.now()-x.updatedAt,X=S?O.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:O.options.staleTime??n.router.options.defaultStaleTime??0,H=O.options.shouldReload,W=typeof H=="function"?H(k1(n,a,l,s,O)):H,{status:tt,invalid:P}=_,K=Q>=X&&(!!n.forceStaleReload||_.cause==="enter"||L!==void 0&&L!==_.id);d=tt==="success"&&(P||(W??K)),S&&O.options.preload===!1||(d&&!n.sync&&v?(m=!0,(async()=>{try{await gg(n,a,l,s,O);const et=n.router.getMatch(l);et._nonReactive.loaderPromise?.resolve(),et._nonReactive.loadPromise?.resolve(),et._nonReactive.loaderPromise=void 0,et._nonReactive.loadPromise=void 0}catch(et){Re(et)&&await n.router.navigate(et.options)}})()):tt!=="success"||d?await gg(n,a,l,s,O):pg(n,l,s))}const{id:l,routeId:f}=n.matches[s];let d=!1,m=!1;const h=n.router.looseRoutesById[f],g=h.options.loader,v=((typeof g=="function"?void 0:g?.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(L1(n,l)){if(!n.router.getMatch(l))return n.matches[s];pg(n,l,s)}else{const S=n.router.getMatch(l),x=n.router.stores.matchesId.get()[s],L=(x&&n.router.stores.matchStores.get(x)||null)?.routeId===f?x:n.router.stores.matches.get().find(O=>O.routeId===f)?.id,_=xl(n,l);if(S._nonReactive.loaderPromise){if(S.status==="success"&&!n.sync&&!S.preload&&v)return S;await S._nonReactive.loaderPromise;const O=n.router.getMatch(l),Q=O._nonReactive.error||O.error;Q&&xa(n,O,Q),O.status==="pending"&&await o(_,S,L,O,h)}else{const O=_&&!n.router.stores.matchStores.has(l),Q=n.router.getMatch(l);Q._nonReactive.loaderPromise=oi(),O!==Q.preload&&n.updateMatch(l,X=>({...X,preload:O})),await o(_,S,L,Q,h)}}const y=n.router.getMatch(l);m||(y._nonReactive.loaderPromise?.resolve(),y._nonReactive.loadPromise?.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pen
10dingTimeout),y._nonReactive.pendingTimeout=void 0,m||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const C=m?y.isFetching:!1;return C!==y.isFetching||y.invalid!==!1?(n.updateMatch(l,S=>({...S,isFetching:C,invalid:!1})),n.router.getMatch(l)):y};async function yg(n){const a=n,s=[];_b(a.router)&&xf(a);let o;for(let C=0;C<a.matches.length;C++){try{const S=Rb(a,C);wr(S)&&await S}catch(S){if(Re(S))throw S;if(se(S))o=S;else if(!a.preload)throw S;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const l=a.firstBadMatchIndex??a.matches.length,f=o&&!a.preload?mg(a,o):void 0,d=o&&a.preload?0:f!==void 0?Math.min(f+1,l):l;let m,h;for(let C=0;C<d;C++)s.push(Mb(a,s,C));try{await Promise.all(s)}catch{const C=await Promise.allSettled(s);for(const S of C){if(S.status!=="rejected")continue;const x=S.reason;if(Re(x))throw x;se(x)?m??=x:h??=x}if(h!==void 0)throw h}const g=m??(o&&!a.preload?o:void 0);let v=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!g&&o&&a.preload)return a.matches;if(g){const C=mg(a,g);C===void 0&&Me();const S=a.matches[C],x=a.router.looseRoutesById[S.routeId],L=a.router.options?.defaultNotFoundComponent;!x.options.notFoundComponent&&L&&(x.options.notFoundComponent=L),g.routeId=S.routeId;const _=S.routeId===a.router.routeTree.id;a.updateMatch(S.id,O=>({...O,..._?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),v=C,await Cr(x,["notFoundComponent"])}else if(!a.preload){const C=a.matches[0];C.globalNotFound||a.router.getMatch(C.id)?.globalNotFound&&a.updateMatch(C.id,S=>({...S,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const C=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Cr(C,["errorComponent"])}for(let C=0;C<=v;C++){const{id:S,routeId:x}=a.matches[C],L=a.router.looseRoutesById[x];try{const _=Ab(a,S,L);if(_){const O=await _;a.updateMatch(S,Q=>({...Q,...O}))}}catch(_){console.error(`Error executing head for route ${x}:`,_)}}const y=xf(a);if(wr(y)&&await y,g)throw g;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function vg(n,a){const s=a.map(o=>n.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Cr(n,a=dl){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(o=>{const{id:l,...f}=o.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const s=()=>n._componentsLoaded?void 0:a===dl?(()=>{if(n._componentsPromise===void 0){const o=vg(n,dl);o?n._componentsPromise=o.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():vg(n,a);return n._lazyPromise?n._lazyPromise.then(s):s()}function D1(n){for(const a of dl)if(n.options[a]?.preload)return!0;return!1}const dl=["component","errorComponent","pendingComponent","notFoundComponent"];var Aa="__TSR_index",bg="popstate",Sg="beforeunload";function Ob(n){let a=n.getLocation();const s=new Set,o=d=>{a=n.getLocation(),s.forEach(m=>m({location:a,action:d}))},l=d=>{n.notifyOnIndexChange??!0?o(d):a=n.getLocation()},f=async({task:d,navigateOpts:m,...h})=>{if(m?.ignoreBlocker??!1){d();return}const g=n.getBlockers?.()??[],v=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&g.length&&v)for(const y of g){const C=bl(h.path,h.state);if(await y.blockerFn({currentLocation:a,nextLocation:C,action:h.type})){n.onBlocked?.();return}}d()};return{get location(){return a},get length(){return n.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,m,h)=>{const g=a.state[Aa];m=wg(g+1,m),f({task:()=>{n.pushState(d,m),o({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:d,state:m})},replace:(d,m,h)=>{const g=a.state[Aa];m=wg(g,m),f({task:()=>{n.replaceState(d,m),o({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:d,state:m})},go:(d,m)=>{f({task:()=>{n.go(d),l({type:"GO",index:d})},navigateOpts:m,type:"GO"})},back:d=>{f({task:()=>{n.back(d?.ignoreBlocker??!1),l({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{n.forward(d?.ignoreBlocker??!1),l({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>a.state[Aa]!==0,createHref:d=>n.createHref(d),block:d=>{if(!n.setBlockers)return()=>{};const m=n.getBlockers?.()??[];return n.setBlockers([...m,d]),()=>{const h=n.getBlockers?.()??[];n.setBlockers?.(h.filter(g=>g!==d))}},flush:()=>n.flush?.(),destroy:()=>n.destroy?.(),notify:o}}function wg(n,a){a||(a={});const s=jf();return{...a,key:s,__TSR_key:s,[Aa]:n}}
10function Lb(n){const a=typeof document<"u"?window:void 0,s=a.history.pushState,o=a.history.replaceState;let l=[];const f=()=>l,d=K=>l=K,m=(K=>K),h=(()=>bl(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!a.history.state?.__TSR_key&&!a.history.state?.key){const K=jf();a.history.replaceState({[Aa]:0,key:K,__TSR_key:K},"")}let g=h(),v,y=!1,C=!1,S=!1,x=!1;const L=()=>g;let _,O;const Q=()=>{_&&(P._ignoreSubscribers=!0,(_.isPush?a.history.pushState:a.history.replaceState)(_.state,"",_.href),P._ignoreSubscribers=!1,_=void 0,O=void 0,v=void 0)},X=(K,et,ct)=>{const rt=m(et);O||(v=g),g=bl(et,ct),_={href:rt,state:ct,isPush:_?.isPush||K==="push"},O||(O=Promise.resolve().then(()=>Q()))},H=K=>{g=h(),P.notify({type:K})},W=async()=>{if(C){C=!1;return}const K=h(),et=K.state[Aa]-g.state[Aa],ct=et===1,rt=et===-1,ot=!ct&&!rt||y;y=!1;const jt=ot?"GO":rt?"BACK":"FORWARD",xt=ot?{type:"GO",index:et}:{type:rt?"BACK":"FORWARD"};if(S)S=!1;else{const lt=f();if(typeof document<"u"&<.length){for(const U of lt)if(await U.blockerFn({currentLocation:g,nextLocation:K,action:jt})){C=!0,a.history.go(1),P.notify(xt);return}}}g=h(),P.notify(xt)},tt=K=>{if(x){x=!1;return}let et=!1;const ct=f();if(typeof document<"u"&&ct.length)for(const rt of ct){const ot=rt.enableBeforeUnload??!0;if(ot===!0){et=!0;break}if(typeof ot=="function"&&ot()===!0){et=!0;break}}if(et)return K.preventDefault(),K.returnValue=""},P=Ob({getLocation:L,getLength:()=>a.history.length,pushState:(K,et)=>X("push",K,et),replaceState:(K,et)=>X("replace",K,et),back:K=>(K&&(S=!0),x=!0,a.history.back()),forward:K=>{K&&(S=!0),x=!0,a.history.forward()},go:K=>{y=!0,a.history.go(K)},createHref:K=>m(K),flush:Q,destroy:()=>{a.history.pushState=s,a.history.replaceState=o,a.removeEventListener(Sg,tt,{capture:!0}),a.removeEventListener(bg,W)},onBlocked:()=>{v&&g!==v&&(g=v)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return a.addEventListener(Sg,tt,{capture:!0}),a.addEventListener(bg,W),a.history.pushState=function(...K){const et=s.apply(a.history,K);return P._ignoreSubscribers||H("PUSH"),et},a.history.replaceState=function(...K){const et=o.apply(a.history,K);return P._ignoreSubscribers||H("REPLACE"),et},P}function Nb(n){let a=n.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function bl(n,a){const s=Nb(n),o=s.indexOf("#"),l=s.indexOf("?"),f=jf();return{href:s,pathname:s.substring(0,o>0?l>0?Math.min(o,l):o:l>0?l:s.length),hash:o>-1?s.substring(o):"",search:l>-1?s.slice(l,o===-1?void 0:o):"",state:a||{[Aa]:0,key:f,__TSR_key:f}}}function jf(){return(Math.random()+1).toString(36).substring(7)}function kb(n){return n instanceof Error?{name:n.name,message:n.message}:{data:n}}function is(n,a){const s=a,o=n;return{fromLocation:s,toLocation:o,pathChanged:s?.pathname!==o.pathname,hrefChanged:s?.href!==o.href,hashChanged:s?.hash!==o.hash}}var Db=class{constructor(n,a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{const o=this.options,l=this.basepath??o?.basepath??"/",f=this.basepath===void 0,d=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=lb(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Lb()),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 v;this.resolvePathCache=Er(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=Cb(Bb(this.latestLocation),v),mb(this)}let m=!1;const h=this.options.basepath??"/",g=this.options.rewrite;if(f||l!==h||d!==g){this.basepath=h;const v=[],y=R1(h);y&&y!=="/"&&v.push(Eb({basepath:h})),g&&v.push(g),this.rewrite=v.length===0?void 0:v.length===1?v[0]:wb(v),this.history&&this.updateLatestLocation(),m=!0}m&&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=()=>{const s=nb(this.routeTree,this.options.caseSensitive,(o,l)=>{o.init({originalIndex:l})});return this.options.routeMasks&&F2(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const l={eventType:s,fn:o};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=s=>
10{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const l=({pathname:h,search:g,hash:v,href:y,state:C})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const O=this.options.parseSearch(g),Q=this.options.stringifySearch(O);return{href:h+Q+v,publicHref:h+Q+v,pathname:rr(h).path,external:!1,searchStr:Q,search:Ja(o?.search,O),hash:rr(v.slice(1)).path,state:_a(o?.state,C)}}const S=new URL(y,this.origin),x=Tf(this.rewrite,S),L=this.options.parseSearch(x.search),_=this.options.stringifySearch(L);return x.search=_,{href:x.href.replace(x.origin,""),publicHref:y,pathname:rr(x.pathname).path,external:!!this.rewrite&&x.origin!==this.origin,searchStr:_,search:Ja(o?.search,L),hash:rr(x.hash.slice(1)).path,state:_a(o?.state,C)}},f=l(s),{__tempLocation:d,__tempKey:m}=f.state;if(d&&(!m||m===this.tempLocationKey)){const h=l(d);return h.state.key=f.state.key,h.state.__TSR_key=f.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:f}}return f},this.resolvePathWithBase=(s,o)=>ob({base:s,to:o.includes("//")?qf(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,l)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},l):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>Ub({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{if(this.stores.pendingMatchStores.has(s))return;const o=this.stores.matchStores.get(s)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const o=(f={})=>{const d=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(d);f.from;const h=f.unsafeRelative==="path"?d.pathname:f.from??m.fullPath,g=f.to?`${f.to}`:void 0,v=m.search,y=Object.assign(Object.create(null),m.params),C=g?.charCodeAt(0)===47?"/":this.resolvePathWithBase(h,"."),S=g?this.resolvePathWithBase(C,g):C,x=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?y:Object.assign(y,Ca(f.params,y)),L=this.routesByPath[In(S)];let _;if(L)_=this.getRouteBranch(L);else if(S.includes("$"))_=[];else{const rt=this.getMatchedRoutes(S);_=rt.matchedRoutes,this.options.notFoundRoute&&(!rt.foundRoute||rt.foundRoute.path!=="/"&&rt.routeParams["**"])&&(_=[..._,this.options.notFoundRoute])}if(_.length&&w1(x))for(const rt of _){const ot=rt.options.params?.stringify??rt.options.stringifyParams;if(ot)try{Object.assign(x,ot(x))}catch{}}const O=s.leaveParams?S:rr(cg({path:S,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let Q=v;if(s._includeValidateSearch&&this.options.search?.strict){const rt={};_.forEach(ot=>{if(ot.options.validateSearch)try{Object.assign(rt,hl(ot.options.validateSearch,{...rt,...Q}))}catch{}}),Q=rt}Q=qb({search:Q,dest:f,destRoutes:_,_includeValidateSearch:s._includeValidateSearch}),Q=Ja(v,Q);const X=this.options.stringifySearch(Q),H=f.hash===!0?d.hash:f.hash?Ca(f.hash,d.hash):void 0,W=H?`#${H}`:"";let tt=f.state===!0?d.state:f.state?Ca(f.state,d.state):{};tt=_a(d.state,tt);const P=`${O}${X}${W}`;let K,et,ct=!1;if(this.rewrite){const rt=new URL(P,this.origin),ot=O1(this.rewrite,rt);K=rt.href.replace(rt.origin,""),ot.origin!==this.origin?(et=ot.href,ct=!0):et=ot.pathname+ot.search+ot.hash}else K=X2(P),et=K;return{publicHref:et,href:K,pathname:O,search:Q,searchStr:X,state:tt,hash:H??"",external:ct,unmaskOnReload:f.unmaskOnReload}},l=(f={},d)=>{const m=o(f);let h=d?o(d):void 0;if(!h){const g=Object.create(null);if(this.options.routeMasks){const v=J2(m.pathname,this.processedTree);if(v){Object.assign(g,v.rawParams);const{from:y,params:C,...S}=v.route,x=C===!1||C===null?Object.create(null):(C??!0)===!0?g:Object.assign(g,Ca(C,g));d={from:s.from,...S,params:x},h=o(d)}}}return h&&(m.maskedLocation=h),m};return s.mask?l(s,{from:s.from,...s.mask}):l(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...l})=>{const f=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(v=>{l.state[v]=this.latestLocation.state[v]});const g=xe(l.state,this.latestLocation.state);return h.forEach(v=>{delete l.state[v]}),g},d=In(this.latestLocation.href)===In(l.href);let m=this.commitLocationPromise;if(this.commitLocationPromise=oi(()=>{m?.resolve(),m=void 0}),d&&f())this.load();else{let{maskedLocation:h,hashScrollIntoView:g,...v}=l;h&&(v={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[l.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:o})}return this.resetNextScroll=l.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:l,viewTransition:f,ignoreBlocker:d,href:m,...h}={})=>
10{if(m){const y=this.history.location.state.__TSR_index,C=bl(m,{__TSR_index:s?y:y+1}),S=new URL(C.pathname,this.origin);h.to=Tf(this.rewrite,S).pathname,h.search=this.options.parseSearch(C.search),h.hash=C.hash.slice(1)}const g=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const v=this.commitLocation({...g,viewTransition:f,replace:s,resetScroll:o,hashScrollIntoView:l,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:s,reloadDocument:o,href:l,publicHref:f,...d})=>{let m=!1;if(l)try{new URL(`${l}`),m=!0}catch{}if(m&&!o&&(o=!0),o){if(s!==void 0||!l){const g=this.buildLocation({to:s,...d});l=l??g.publicHref,f=f??g.publicHref}const h=!m&&f?f:l;if(yl(h,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const v of g)if(v?.blockerFn&&await v.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(h):window.location.href=h,Promise.resolve()}return this.buildAndCommitLocation({...d,href:l,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(l=>!s.some(f=>f.id===l.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(s),this.stores.setCached(o)})},this.load=async s=>{let o,l,f;const d=this.stores.resolvedLocation.get()??this.stores.location.get();for(f=new Promise(h=>{this.startTransition(async()=>{try{this.beforeLoad();const g=this.latestLocation,v=is(g,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...v}),this.emit({type:"onBeforeLoad",...v}),await yg({router:this,sync:s?.sync,forceStaleReload:d.href===g.href,matches:this.stores.pendingMatches.get(),location:g,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let y=null,C=null,S=null,x=null;this.batch(()=>{const L=this.stores.pendingMatches.get(),_=L.length,O=this.stores.matches.get();y=_?O.filter(H=>!this.stores.pendingMatchStores.has(H.id)):null;const Q=new Set;for(const H of this.stores.pendingMatchStores.values())H.routeId&&Q.add(H.routeId);const X=new Set;for(const H of this.stores.matchStores.values())H.routeId&&X.add(H.routeId);C=_?O.filter(H=>!Q.has(H.routeId)):null,S=_?L.filter(H=>!X.has(H.routeId)):null,x=_?L.filter(H=>X.has(H.routeId)):O,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),_&&(this.stores.setMatches(L),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...y.filter(H=>H.status!=="error"&&H.status!=="notFound"&&H.status!=="redirected")]),this.clearExpiredCache())});for(const[L,_]of[[C,"onLeave"],[S,"onEnter"],[x,"onStay"]])if(L)for(const O of L)this.looseRoutesById[O.routeId].options[_]?.(O)})})}})}catch(g){Re(g)?(o=g,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):se(g)&&(l=g);const v=o?o.status:l?404:this.stores.matches.get().some(y=>y.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(v),this.stores.redirect.set(o)})}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.stores.matches.get().some(h=>h.status==="error")&&(m=500),m!==void 0&&this.stores.statusCode.set(m)},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let l;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.stores.resolvedLocation.get(),m=typeof o.types=="function"?o.types(is(f,d)):o.types;if(m===!1){s();return}l={update:s,types:m}}else l=s;document.startViewTransition(l)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>
10{const l=this.stores.pendingMatchStores.get(s);if(l){l.set(o);return}const f=this.stores.matchStores.get(s);if(f){f.set(o);return}const d=this.stores.cachedMatchStores.get(s);if(d){const m=o(d.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(h=>h.filter(g=>g!==s)):d.set(m)}})},this.getMatch=s=>this.stores.cachedMatchStores.get(s)?.get()??this.stores.pendingMatchStores.get(s)?.get()??this.stores.matchStores.get(s)?.get(),this.invalidate=s=>{const o=l=>s?.filter?.(l)??!0?{...l,invalid:!0,...s?.forcePending||l.status==="error"||l.status==="notFound"?{status:"pending",error:void 0}:void 0}:l;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const l=s.options._builtLocation??this.buildLocation(s.options),f=this.getParsedLocationHref(l);s.options.href=f,s.headers.set("Location",f)}else if(o)try{const l=new URL(o);if(this.origin&&l.origin===this.origin){const f=l.pathname+l.search+l.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}if(s.options.href&&!s.options._builtLocation&&yl(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(l=>!o(l))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),o=l=>{const f=this.looseRoutesById[l.routeId];if(!f.options.loader)return!0;const d=(l.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return l.status==="error"?!0:s-l.updatedAt>=d};this.clearCache({filter:o})},this.loadRouteChunk=Cr,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let l=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...f,...this.stores.cachedIds.get()]),m=l.filter(h=>!d.has(h.id));if(m.length){const h=this.stores.cachedMatches.get();this.stores.setCached([...h,...m])}try{return l=await yg({router:this,matches:l,location:o,preload:!0,updateMatch:(h,g)=>{f.has(h)?l=l.map(v=>v.id===h?g(v):v):this.updateMatch(h,g)}}),l}catch(h){if(Re(h))return h.options.reloadDocument?void 0:await this.preloadRoute({...h.options,_fromLocation:o});se(h)||console.error(h);return}},this.matchRoute=(s,o)=>{const l={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(l);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const d=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),m=W2(f.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,d.pathname,this.processedTree);return!m||s.params&&!xe(m.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?xe(d.search,f.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??yb,parseSearch:n.parseSearch??gb,protocolAllowlist:n.protocolAllowlist??I2}),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:n,routesByPath:a,processedTree:s}){this.routesById=n,this.routesByPath=a,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}getRouteBranch(n){let a=this.routeBranchCache.get(n);return a||(a=T1(n),this.routeBranchCache.set(n,a)),a}get looseRoutesById(){return this.routesById}getParentContext(n){return n?.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,a){const s=this.getMatchedRoutes(n.pathname),{foundRoute:o,routeParam
10s:l}=s;let{matchedRoutes:f}=s,d=!1;(o?o.path!=="/"&&l["**"]:In(n.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const m=d?Hb(this.options.notFoundMode,f):void 0,h=new Array(f.length),g=new Map;for(const v of this.stores.matchStores.values())v.routeId&&g.set(v.routeId,v.get());for(let v=0;v<f.length;v++){const y=f[v],C=h[v-1];let S,x,L;{const ot=C?.search??n.search,jt=C?._strictSearch??void 0;try{const xt=hl(y.options.validateSearch,{...ot})??void 0;S={...ot,...xt},x={...jt,...xt},L=void 0}catch(xt){let lt=xt;if(xt instanceof Sl||(lt=new Sl(xt.message,{cause:xt})),a?.throwOnError)throw lt;S=ot,x={},L=lt}}const _=y.options.loaderDeps?.({search:S})??"",O=_?JSON.stringify(_):"",{interpolatedPath:Q,usedParams:X}=cg({path:y.fullPath,params:l,decoder:this.pathParamsDecoder,server:this.isServer}),H=y.id+Q+O,W=this.getMatch(H),tt=g.get(y.id),P=W?._strictParams??X;let K;if(!W)try{Eg(y,P)}catch(ot){if(se(ot)||Re(ot)?K=ot:K=new zb(ot.message,{cause:ot}),a?.throwOnError)throw K}Object.assign(l,P);const et=tt?"stay":"enter";let ct;if(W)ct={...W,cause:et,params:tt?.params??l,_strictParams:P,search:Ja(tt?tt.search:W.search,S),_strictSearch:x};else{const ot=y.options.loader||y.options.beforeLoad||y.lazyFn||D1(y)?"pending":"success";ct={id:H,ssr:y.options.ssr,index:v,routeId:y.id,params:tt?.params??l,_strictParams:P,pathname:Q,updatedAt:Date.now(),search:tt?Ja(tt.search,S):S,_strictSearch:x,searchError:void 0,status:ot,isFetching:!1,error:void 0,paramsError:K,__routeContext:void 0,_nonReactive:{loadPromise:oi()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:et,loaderDeps:tt?_a(tt.loaderDeps,_):_,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}a?.preload||(ct.globalNotFound=m===y.id),ct.searchError=L;const rt=this.getParentContext(C);ct.context={...rt,...ct.__routeContext,...ct.__beforeLoadContext},h[v]=ct}for(let v=0;v<h.length;v++){const y=h[v],C=this.looseRoutesById[y.routeId],S=this.getMatch(y.id),x=g.get(y.routeId);if(y.params=x?Ja(x.params,l):l,!S){const L=h[v-1],_=this.getParentContext(L);if(C.options.context){const O={deps:y.loaderDeps,params:y.params,context:_??{},location:n,navigate:Q=>this.navigate({...Q,_fromLocation:n}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:h,routeId:C.id};
10y.__routeContext=C.options.context(O)??void 0}y.context={..._,...y.__routeContext,...y.__beforeLoadContext}}}return h}matchRoutesLightweight(n){const{matchedRoutes:a,routeParams:s}=this.getMatchedRoutes(n.pathname),o=Sr(a),l={...n.search};for(const g of a)try{Object.assign(l,hl(g.options.validateSearch,l))}catch{}const f=Sr(this.stores.matchesId.get()),d=f&&this.stores.matchStores.get(f)?.get(),m=d&&d.routeId===o.id&&d.pathname===n.pathname;let h;if(m)h=d.params;else{const g=Object.assign(Object.create(null),s);for(const v of a)try{Eg(v,g)}catch{}h=g}return{matchedRoutes:a,fullPath:o.fullPath,search:l,params:h}}},Sl=class extends Error{},zb=class extends Error{};function Bb(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function hl(n,a){if(n==null)return{};if("~standard"in n){const s=n["~standard"].validate(a);if(s instanceof Promise)throw new Sl("Async validation not supported");if(s.issues)throw new Sl(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in n?n.parse(a):typeof n=="function"?n(a):{}}function Ub({pathname:n,routesById:a,processedTree:s}){const o=Object.create(null),l=In(n);let f;const d=tb(l,s,!0);return d&&(f=d.route,Object.assign(o,d.rawParams)),{matchedRoutes:d?.branch||[a.__root__],routeParams:o,foundRoute:f}}function qb({search:n,dest:a,destRoutes:s,_includeValidateSearch:o}){return jb(s)(n,a,o??!1)}function jb(n){const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const l of n){if("search"in l.options)l.options.search?.middlewares&&a.middlewares.push(...l.options.search.middlewares);else if(l.options.preSearchFilters||l.options.postSearchFilters){const f=({search:d,next:m})=>{let h=d;"preSearchFilters"in l.options&&l.options.preSearchFilters&&(h=l.options.preSearchFilters.reduce((v,y)=>y(v),d));const g=m(h);return"postSearchFilters"in l.options&&l.options.postSearchFilters?l.options.postSearchFilters.reduce((v,y)=>y(v),g):g};a.middlewares.push(f)}if(l.options.validateSearch){const f=({search:d,next:m})=>{const h=m(d);if(!a._includeValidateSearch)return h;try{return{...h,...hl(l.options.validateSearch,h)??void 0}}catch{return h}};a.middlewares.push(f)}}const s=({search:l})=>{const f=a.dest;return f.search?f.search===!0?l:Ca(f.search,l):{}};a.middlewares.push(s);const o=(l,f,d)=>{if(l>=d.length)return f;const m=d[l];return m({search:f,next:g=>o(l+1,g,d)})};return function(f,d,m){return a.dest=d,a._includeValidateSearch=m,o(0,f,a.middlewares)}}function Hb(n,a){if(n!=="root")for(let s=a.length-1;s>=0;s--){const o=a[s];if(o.children)return o.id}return ii}function Eg(n,a){const s=n.options.params?.parse??n.options.parseParams;if(s){const o=s(a);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,o)}}const bn=Symbol.for("TSR_DEFERRED_PROMISE");function Vb(n,a){const s=n;return s[bn]||(s[bn]={status:"pending"},s.then(o=>{s[bn].status="success",s[bn].data=o}).catch(o=>{s[bn].status="error",s[bn].error={data:kb(o),__isServerError:!0}})),s}const Qb="Error preloading route! âï¸";function Cg(n,a){if(n)return typeof n=="string"?n:n[a]}function Pb(n){return typeof n=="string"?{href:n,crossOrigin:void 0}:n}function Ib(n){if(n.tag!=="link")return;const a=n.attrs?.rel,s=n.attrs?.href;if(typeof s=="string"&&(typeof a=="string"?a.split(/\s+/):[]).includes("stylesheet"))return s}function Gb(n,a){const s=Ib(a);return!!s&&n?.inlineCss?.styles[s]!==void 0}var z1=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=a=>{this.originalIndex=a.originalIndex;const s=this.options,o=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=ii:this.parentRoute||Me();let l=o?ii:s?.path;l&&l!=="/"&&(l=x1(l));const f=s?.id||l;let d=o?ii:fl([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);l==="__root__"&&(l="/"),d!=="__root__"&&(d=fl(["/",d]));const m=d==="__root__"?"/":fl([this.parentRoute.fullPath,l]);this._path=l,this._id=d,this._fullPath=m,this._to=In(m)},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.redirect=a=>M1({from:this.fullPath,...a}),this.options=n||{},this.isRoot=!n?.getParentRoute,n?.id&&n?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},Yb=class extends z1{constructor(n){super(n)}};function $b(n){if(typeof document<"u"&&document.querySelector){const a=n.stores.location.get(),s=a.state.__hashScrollIntoViewOptions??!0;if(s&&a.hash!==""){const o=document.getElementById(a.hash);o&&o.scrollIntoView(s)}}}var Xb=(n=>(n[n.AggregateError=1]="AggregateError",n[n.ArrowFunction=2]="ArrowFunction",n[n.ErrorPrototypeStack=4]="ErrorPrototypeStack",n[n.ObjectAssign=8]="Ob
10jectAssign",n[n.BigIntTypedArray=16]="BigIntTypedArray",n[n.RegExp=32]="RegExp",n))(Xb||{}),Gn=Symbol.asyncIterator,B1=Symbol.hasInstance,ss=Symbol.isConcatSpreadable,Yn=Symbol.iterator,U1=Symbol.match,q1=Symbol.matchAll,j1=Symbol.replace,H1=Symbol.search,V1=Symbol.species,Q1=Symbol.split,P1=Symbol.toPrimitive,rs=Symbol.toStringTag,I1=Symbol.unscopables,G1={[Gn]:0,[B1]:1,[ss]:2,[Yn]:3,[U1]:4,[q1]:5,[j1]:6,[H1]:7,[V1]:8,[Q1]:9,[P1]:10,[rs]:11,[I1]:12},Zb={0:Gn,1:B1,2:ss,3:Yn,4:U1,5:q1,6:j1,7:H1,8:V1,9:Q1,10:P1,11:rs,12:I1},w=void 0,Kb={2:!0,3:!1,1:w,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},Fb={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},Jb={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function _t(n,a,s,o,l,f,d,m,h,g,v,y){return{t:n,i:a,s,c:o,m:l,p:f,e:d,a:m,f:h,b:g,o:v,l:y}}function Ma(n){return _t(2,w,n,w,w,w,w,w,w,w,w,w)}var Y1=Ma(2),$1=Ma(3),Wb=Ma(1),tS=Ma(0),eS=Ma(4),nS=Ma(5),aS=Ma(6),iS=Ma(7);function sS(n){switch(n){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 w}}function Oa(n){let a="",s=0,o;for(let l=0,f=n.length;l<f;l++)o=sS(n[l]),o&&(a+=n.slice(s,l)+o,s=l+1);return s===0?a=n:a+=n.slice(s),a}function rS(n){switch(n){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 n}}function La(n){return n.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,rS)}var tl="__SEROVAL_REFS__",X1=new Map,ns=new Map;function Z1(n){return X1.has(n)}function oS(n){return ns.has(n)}function lS(n){if(Z1(n))return X1.get(n);throw new jS(n)}function uS(n){if(oS(n))return ns.get(n);throw new HS(n)}typeof globalThis<"u"?Object.defineProperty(globalThis,tl,{value:ns,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,tl,{value:ns,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,tl,{value:ns,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,tl,{value:ns,configurable:!0,writable:!1,enumerable:!1});function Hf(n){return n instanceof EvalError?1:n instanceof RangeError?2:n instanceof ReferenceError?3:n instanceof SyntaxError?4:n instanceof TypeError?5:n instanceof URIError?6:0}function cS(n){let a=Fb[Hf(n)];return n.name!==a?{name:n.name}:n.constructor.name!==a?{name:n.constructor.name}:{}}function K1(n,a){let s=cS(n),o=Object.getOwnPropertyNames(n);for(let l=0,f=o.length,d;l<f;l++)d=o[l],d!=="name"&&d!=="message"&&(d==="stack"?a&4&&(s=s||{},s[d]=n[d]):(s=s||{},s[d]=n[d]));return s}function F1(n){return Object.isFrozen(n)?3:Object.isSealed(n)?2:Object.isExtensible(n)?0:1}function fS(n){switch(n){case Number.POSITIVE_INFINITY:return nS;case Number.NEGATIVE_INFINITY:return aS}return n!==n?iS:Object.is(n,-0)?eS:_t(0,w,n,w,w,w,w,w,w,w,w,w)}function J1(n){return _t(1,w,Oa(n),w,w,w,w,w,w,w,w,w)}function dS(n){return _t(3,w,""+n,w,w,w,w,w,w,w,w,w)}function hS(n){return _t(4,n,w,w,w,w,w,w,w,w,w,w)}function mS(n,a){let s=a.valueOf();return _t(5,n,s!==s?"":a.toISOString(),w,w,w,w,w,w,w,w,w)}function pS(n,a){return _t(6,n,w,Oa(a.source),a.flags,w,w,w,w,w,w,w)}function gS(n,a){return _t(17,n,G1[a],w,w,w,w,w,w,w,w,w)}function yS(n,a){return _t(18,n,Oa(lS(a)),w,w,w,w,w,w,w,w,w)}function vS(n,a,s){return _t(25,n,s,Oa(a),w,w,w,w,w,w,w,w)}function bS(n,a,s){return _t(9,n,w,w,w,w,w,s,w,w,F1(a),w)}function SS(n,a){return _t(21,n,w,w,w,w,w,w,a,w,w,w)}function wS(n,a,s){return _t(15,n,w,a.constructor.name,w,w,w,w,s,a.byteOffset,w,a.length)}function ES(n,a,s){return _t(16,n,w,a.constructor.name,w,w,w,w,s,a.byteOffset,w,a.byteLength)}function CS(n,a,s){return _t(20,n,w,w,w,w,w,w,s,a.byteOffset,w,a.byteLength)}function _S(n,a,s){return _t(13,n,Hf(a),w,Oa(a.message),s,w,w,w,w,w,w)}function TS(n,a,s){return _t(14,n,Hf(a),w,Oa(a.message),s,w,w,w,w,w,w)}function xS(n,a){return _t(7,n,w,w,w,w,w,a,w,w,w,w)}function RS(n,a){return _t(28,w,w,w,w,w,w,[n,a],w,w,w,w)}function AS(n,a){return _t(30,w,w,w,w,w,w,[n,a],w,w,w,w)}function MS(n,a,s){return _t(31,n,w,w,w,w,w,s,a,w,w,w)}function OS(n,a){return _t(32,n,w,w,w,w,w,w,a,w,w,w)}function LS(n,a){return _t(33,n,w,w,w,w,w,w,a,w,w,w)}function NS(n,a){return _t(34,n,w,w,w,w,w,w,a,w,w,w)}function kS(n,a,s,o){return _t(35,n,s,w,w,w,w,a,w,w,w,o)}
12var DS={parsing:1,serialization:2,deserialization:3};function zS(n){return`Seroval Error (step: ${DS[n]})`}var BS=(n,a)=>zS(n),W1=class extends Error{constructor(n,a){super(BS(n)),this.cause=a}},_g=class extends W1{constructor(n){super("parsing",n)}},US=class extends W1{constructor(n){super("deserialization",n)}};function $n(n){return`Seroval Error (specific: ${n})`}var Rl=class extends Error{constructor(a){super($n(1)),this.value=a}},ty=class extends Error{constructor(n){super($n(2))}},qS=class extends Error{constructor(n){super($n(3))}},Or=class extends Error{constructor(n){super($n(4))}},jS=class extends Error{constructor(n){super($n(5)),this.value=n}},HS=class extends Error{constructor(n){super($n(6))}},VS=class extends Error{constructor(n){super($n(7))}},Xn=class extends Error{constructor(n){super($n(8))}},QS=class extends Error{constructor(n){super($n(9))}},PS=class{constructor(n,a){this.value=n,this.replacement=a}},Al=()=>{let n={p:0,s:0,f:0};return n.p=new Promise((a,s)=>{n.s=a,n.f=s}),n},IS=(n,a)=>{n.s(a),n.p.s=1,n.p.v=a},GS=(n,a)=>{n.f(a),n.p.s=2,n.p.v=a};Al.toString();IS.toString();GS.toString();var YS=()=>{let n=[],a=[],s=!0,o=!1,l=0,f=(h,g,v)=>{for(v=0;v<l;v++)a[v]&&a[v][g](h)},d=(h,g,v,y)=>{for(g=0,v=n.length;g<v;g++)y=n[g],!s&&g===v-1?h[o?"return":"throw"](y):h.next(y)},m=(h,g)=>(s&&(g=l++,a[g]=h),d(h),()=>{s&&(a[g]=a[l],a[l--]=void 0)});return{__SEROVAL_STREAM__:!0,on:h=>m(h),next:h=>{s&&(n.push(h),f(h,"next"))},throw:h=>{s&&(n.push(h),f(h,"throw"),s=!1,o=!1,a.length=0)},return:h=>{s&&(n.push(h),f(h,"return"),s=!1,o=!0,a.length=0)}}},$S=n=>a=>()=>{let s=0,o={[n]:()=>o,next:()=>{if(s>a.d)return{done:!0,value:void 0};let l=s++,f=a.v[l];if(l===a.t)throw f;return{done:l===a.d,value:f}}};return o},XS=(n,a)=>s=>()=>{let o=0,l=-1,f=!1,d=[],m=[],h=(v=0,y=m.length)=>{for(;v<y;v++)m[v].s({done:!0,value:void 0})};s.on({next:v=>{let y=m.shift();y&&y.s({done:!1,value:v}),d.push(v)},throw:v=>{let y=m.shift();y&&y.f(v),h(),l=d.length,f=!0,d.push(v)},return:v=>{let y=m.shift();y&&y.s({done:!0,value:v}),h(),l=d.length,d.push(v)}});let g={[n]:()=>g,next:()=>{if(l===-1){let C=o++;if(C>=d.length){let S=a();return m.push(S),S.p}return{done:!1,value:d[C]}}if(o>l)return{done:!0,value:void 0};let v=o++,y=d[v];if(v!==l)return{done:!1,value:y};if(f)throw y;return{done:!0,value:y}}};return g},ey=n=>{let a=atob(n),s=a.length,o=new Uint8Array(s);for(let l=0;l<s;l++)o[l]=a.charCodeAt(l);return o.buffer};ey.toString();function ZS(n){return"__SEROVAL_SEQUENCE__"in n}function ny(n,a,s){return{__SEROVAL_SEQUENCE__:!0,v:n,t:a,d:s}}function KS(n){let a=[],s=-1,o=-1,l=n[Yn]();for(;;)try{let f=l.next();if(a.push(f.value),f.done){o=a.length-1;break}}catch(f){s=a.length,a.push(f)}return ny(a,s,o)}var FS=$S(Yn);function JS(n){return FS(n)}var WS={},t3={},e3={0:{},1:{},2:{},3:{},4:{},5:{}};function n3(n){return"__SEROVAL_STREAM__"in n}function ui(){return YS()}function a3(n){let a=ui(),s=n[Gn]();async function o(){try{let l=await s.next();l.done?a.return(l.value):(a.next(l.value),await o())}catch(l){a.throw(l)}}return o().catch(()=>{}),a}var i3=XS(Gn,Al);function s3(n){return i3(n)}async function r3(n){try{return[1,await n]}catch(a){return[0,a]}}function o3(n,a){return{plugins:a.plugins,mode:n,marked:new Set,features:63^(a.disabledFeatures||0),refs:a.refs||new Map,depthLimit:a.depthLimit||1e3}}function ml(n,a){n.marked.add(a)}function l3(n,a){let s=n.refs.size;return n.refs.set(a,s),s}function Ml(n,a){let s=n.refs.get(a);return s!=null?(ml(n,s),{type:1,value:hS(s)}):{type:0,value:l3(n,a)}}function Vf(n,a){let s=Ml(n,a);return s.type===1?s:Z1(a)?{type:2,value:yS(s.value,a)}:s}function ni(n,a){let s=Vf(n,a);if(s.type!==0)return s.value;if(a in G1)return gS(s.value,a);throw new Rl(a)}function Ol(n,a){let s=Ml(n,e3[a]);return s.type===1?s.value:_t(26,s.value,a,w,w,w,w,w,w,w,w,w)}function u3(n){let a=Ml(n,WS);return a.type===1?a.value:_t(27,a.value,w,w,w,w,w,w,ni(n,Yn),w,w,w)}function c3(n){let a=Ml(n,t3);return a.type===1?a.value:_t(29,a.value,w,w,w,w,w,[Ol(n,1),ni(n,Gn)],w,w,w,w)}function f3(n,a,s,o){return _t(s?11:10,n,w,w,w,o,w,w,w,w,F1(a),w)}function d3(n,a,s,o){return _t(8,a,w,w,w,w,{k:s,v:o},w,Ol(n,0),w,w,w)}function h3(n,a,s){let o=new Uint8Array(s),l="";for(let f=0,d=o.length;f<d;f++)l+=String.fromCharCode(o[f]);return _t(19,a,Oa(btoa(l)),w,w,w,w,w,Ol(n,5),w,w,w)}function m3(n,a){return{base:o3(n,a),child:void 0}}var p3=class{constructor(n,a){this._p=n,this.depth=a}parse(n){return ee(this._p,this.depth,n)}};async function g3(n,a,s){let o=[];for(let l=0,f=s.length;l<f;l++)l in s?o[l]=await ee(n,a,s[l]):o[l]=0;return o}async function y3(n,a,s,o){return bS(s,o,await g3(n,a,o))}async function Qf(n,a,s){let o=Object.entries(s),l=[],f=[];for(let d=0,m=o.length;d<m;
12d++)l.push(Oa(o[d][0])),f.push(await ee(n,a,o[d][1]));return Yn in s&&(l.push(ni(n.base,Yn)),f.push(RS(u3(n.base),await ee(n,a,KS(s))))),Gn in s&&(l.push(ni(n.base,Gn)),f.push(AS(c3(n.base),await ee(n,a,a3(s))))),rs in s&&(l.push(ni(n.base,rs)),f.push(J1(s[rs]))),ss in s&&(l.push(ni(n.base,ss)),f.push(s[ss]?Y1:$1)),{k:l,v:f}}async function sf(n,a,s,o,l){return f3(s,o,l,await Qf(n,a,o))}async function v3(n,a,s,o){return SS(s,await ee(n,a,o.valueOf()))}async function b3(n,a,s,o){return wS(s,o,await ee(n,a,o.buffer))}async function S3(n,a,s,o){return ES(s,o,await ee(n,a,o.buffer))}async function w3(n,a,s,o){return CS(s,o,await ee(n,a,o.buffer))}async function Tg(n,a,s,o){let l=K1(o,n.base.features);return _S(s,o,l?await Qf(n,a,l):w)}async function E3(n,a,s,o){let l=K1(o,n.base.features);return TS(s,o,l?await Qf(n,a,l):w)}async function C3(n,a,s,o){let l=[],f=[];for(let[d,m]of o.entries())l.push(await ee(n,a,d)),f.push(await ee(n,a,m));return d3(n.base,s,l,f)}async function _3(n,a,s,o){let l=[];for(let f of o.keys())l.push(await ee(n,a,f));return xS(s,l)}async function ay(n,a,s,o){let l=n.base.plugins;if(l)for(let f=0,d=l.length;f<d;f++){let m=l[f];if(m.parse.async&&m.test(o))return vS(s,m.tag,await m.parse.async(o,new p3(n,a),{id:s}))}return w}async function T3(n,a,s,o){let[l,f]=await r3(o);return _t(12,s,l,w,w,w,w,w,await ee(n,a,f),w,w,w)}function x3(n,a,s,o,l){let f=[],d=s.on({next:m=>{ml(this.base,a),ee(this,n,m).then(h=>{f.push(OS(a,h))},h=>{l(h),d()})},throw:m=>{ml(this.base,a),ee(this,n,m).then(h=>{f.push(LS(a,h)),o(f),d()},h=>{l(h),d()})},return:m=>{ml(this.base,a),ee(this,n,m).then(h=>{f.push(NS(a,h)),o(f),d()},h=>{l(h),d()})}})}async function R3(n,a,s,o){return MS(s,Ol(n.base,4),await new Promise(x3.bind(n,a,s,o)))}async function A3(n,a,s,o){let l=[];for(let f=0,d=o.v.length;f<d;f++)l[f]=await ee(n,a,o.v[f]);return kS(s,l,o.t,o.d)}async function M3(n,a,s,o){if(Array.isArray(o))return y3(n,a,s,o);if(n3(o))return R3(n,a,s,o);if(ZS(o))return A3(n,a,s,o);let l=o.constructor;if(l===PS)return ee(n,a,o.replacement);let f=await ay(n,a,s,o);if(f)return f;switch(l){case Object:return sf(n,a,s,o,!1);case w:return sf(n,a,s,o,!0);case Date:return mS(s,o);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Tg(n,a,s,o);case Number:case Boolean:case String:case BigInt:return v3(n,a,s,o);case ArrayBuffer:return h3(n.base,s,o);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return b3(n,a,s,o);case DataView:return w3(n,a,s,o);case Map:return C3(n,a,s,o);case Set:return _3(n,a,s,o)}if(l===Promise||o instanceof Promise)return T3(n,a,s,o);let d=n.base.features;if(d&32&&l===RegExp)return pS(s,o);if(d&16)switch(l){case BigInt64Array:case BigUint64Array:return S3(n,a,s,o)}if(d&1&&typeof AggregateError<"u"&&(l===AggregateError||o instanceof AggregateError))return E3(n,a,s,o);if(o instanceof Error)return Tg(n,a,s,o);if(Yn in o||Gn in o)return sf(n,a,s,o,!!l);throw new Rl(o)}async function O3(n,a,s){let o=Vf(n.base,s);if(o.type!==0)return o.value;let l=await ay(n,a,o.value,s);if(l)return l;throw new Rl(s)}async function ee(n,a,s){switch(typeof s){case"boolean":return s?Y1:$1;case"undefined":return Wb;case"string":return J1(s);case"number":return fS(s);case"bigint":return dS(s);case"object":{if(s){let o=Vf(n.base,s);return o.type===0?await M3(n,a+1,o.value,s):o.value}return tS}case"symbol":return ni(n.base,s);case"function":return O3(n,a,s);default:throw new Rl(s)}}async function L3(n,a){try{return await ee(n,0,a)}catch(s){throw s instanceof _g?s:new _g(s)}}var N3=(n=>(n[n.Vanilla=1]="Vanilla",n[n.Cross=2]="Cross",n))(N3||{});function iy(n,a){for(let s=0,o=a.length;s<o;s++){let l=a[s];n.has(l)||(n.add(l),l.extends&&iy(n,l.extends))}}function sy(n){if(n){let a=new Set;return iy(a,n),[...a]}}function k3(n){switch(n){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 VS(n)}}var D3=1e6,z3=1e4,B3=2e4;function ry(n,a){switch(a){case 3:return Object.freeze(n);case 1:return Object.preventExtensions(n);case 2:return Object.seal(n);default:return n}}var U3=1e3;function q3(n,a){var s;let o=a.refs||new Map;return"types"in o||Object.assign(o,{types:new Map}),{mode:n,plugins:a.plugins,refs:o,features:(s=a.features)!=null?s:63^(a.disabledFeatures||0),depthLimit:a.depthLimit||U3}}
12function j3(n){return{mode:2,base:q3(2,n),child:w}}var H3=class{constructor(n,a){this._p=n,this.depth=a}deserialize(n){return Dt(this._p,this.depth,n)}};function oy(n,a){if(a<0||!Number.isFinite(a)||!Number.isInteger(a))throw new Xn({t:4,i:a});if(n.refs.has(a))throw new Error("Conflicted ref id: "+a)}function V3(n,a,s){return oy(n.base,a),n.state.marked.has(a)&&n.base.refs.set(a,s),s}function Q3(n,a,s){return oy(n.base,a),n.base.refs.set(a,s),s}function ne(n,a,s){return n.mode===1?V3(n,a,s):Q3(n,a,s)}function Rf(n,a,s){if(Object.hasOwn(a,s))return a[s];throw new Xn(n)}function P3(n,a){return ne(n,a.i,uS(La(a.s)))}function I3(n,a,s){let o=s.a,l=o.length,f=ne(n,s.i,new Array(l));for(let d=0,m;d<l;d++)m=o[d],m&&(f[d]=Dt(n,a,m));return ry(f,s.o),f}function G3(n){switch(n){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function Y3(n){switch(n){case Gn:case ss:case rs:case Yn:return!0;default:return!1}}function xg(n,a,s){G3(a)?n[a]=s:Object.defineProperty(n,a,{value:s,configurable:!0,enumerable:!0,writable:!0})}function $3(n,a,s,o,l){if(typeof o=="string")xg(s,La(o),Dt(n,a,l));else{let f=Dt(n,a,o);switch(typeof f){case"string":xg(s,f,Dt(n,a,l));break;case"symbol":Y3(f)&&(s[f]=Dt(n,a,l));break;default:throw new Xn(o)}}}function ly(n,a,s){n.base.refs.types.set(a,s)}function Lr(n,a,s,o){if(n.base.refs.types.get(s)!==o)throw new Xn(a)}function uy(n,a,s,o){let l=s.k;if(l.length>0)for(let f=0,d=s.v,m=l.length;f<m;f++)$3(n,a,o,l[f],d[f]);return o}function X3(n,a,s){let o=ne(n,s.i,s.t===10?{}:Object.create(null));return uy(n,a,s.p,o),ry(o,s.o),o}function Z3(n,a){return ne(n,a.i,new Date(a.s))}function K3(n,a){if(n.base.features&32){let s=La(a.c);if(s.length>B3)throw new Xn(a);return ne(n,a.i,new RegExp(s,a.m))}throw new ty(a)}function F3(n,a,s){let o=ne(n,s.i,new Set);for(let l=0,f=s.a,d=f.length;l<d;l++)o.add(Dt(n,a,f[l]));return o}function J3(n,a,s){let o=ne(n,s.i,new Map);for(let l=0,f=s.e.k,d=s.e.v,m=f.length;l<m;l++)o.set(Dt(n,a,f[l]),Dt(n,a,d[l]));return o}function W3(n,a){if(a.s.length>D3)throw new Xn(a);return ne(n,a.i,ey(La(a.s)))}function tw(n,a,s){var o;let l=k3(s.c),f=Dt(n,a,s.f),d=(o=s.b)!=null?o:0;if(d<0||d>f.byteLength)throw new Xn(s);return ne(n,s.i,new l(f,d,s.l))}function ew(n,a,s){var o;let l=Dt(n,a,s.f),f=(o=s.b)!=null?o:0;if(f<0||f>l.byteLength)throw new Xn(s);return ne(n,s.i,new DataView(l,f,s.l))}function cy(n,a,s,o){if(s.p){let l=uy(n,a,s.p,{});Object.defineProperties(o,Object.getOwnPropertyDescriptors(l))}return o}function nw(n,a,s){let o=ne(n,s.i,new AggregateError([],La(s.m)));return cy(n,a,s,o)}function aw(n,a,s){let o=Rf(s,Jb,s.s),l=ne(n,s.i,new o(La(s.m)));return cy(n,a,s,l)}function iw(n,a,s){let o=Al(),l=ne(n,s.i,o.p),f=Dt(n,a,s.f);return s.s?o.s(f):o.f(f),l}function sw(n,a,s){return ne(n,s.i,Object(Dt(n,a,s.f)))}function rw(n,a,s){let o=n.base.plugins;if(o){let l=La(s.c);for(let f=0,d=o.length;f<d;f++){let m=o[f];if(m.tag===l)return ne(n,s.i,m.deserialize(s.s,new H3(n,a),{id:s.i}))}}throw new qS(s.c)}function ow(n,a){let s=ne(n,a.i,ne(n,a.s,Al()).p);return ly(n,a.s,22),s}function lw(n,a,s){let o=n.base.refs.get(s.i);if(o)return Lr(n,s,s.i,22),o.s(Dt(n,a,s.a[1])),w;throw new Or("Promise")}function uw(n,a,s){let o=n.base.refs.get(s.i);if(o)return Lr(n,s,s.i,22),o.f(Dt(n,a,s.a[1])),w;throw new Or("Promise")}function cw(n,a,s){Dt(n,a,s.a[0]);let o=Dt(n,a,s.a[1]);return JS(o)}function fw(n,a,s){Dt(n,a,s.a[0]);let o=Dt(n,a,s.a[1]);return s3(o)}function dw(n,a,s){let o=ne(n,s.i,ui());ly(n,s.i,31);let l=s.a,f=l.length;if(f)for(let d=0;d<f;d++)Dt(n,a,l[d]);return o}function hw(n,a,s){let o=n.base.refs.get(s.i);if(o)return Lr(n,s,s.i,31),o.next(Dt(n,a,s.f)),w;throw new Or("Stream")}function mw(n,a,s){let o=n.base.refs.get(s.i);if(o)return Lr(n,s,s.i,31),o.throw(Dt(n,a,s.f)),w;throw new Or("Stream")}function pw(n,a,s){let o=n.base.refs.get(s.i);if(o)return Lr(n,s,s.i,31),o.return(Dt(n,a,s.f)),w;throw new Or("Stream")}function gw(n,a,s){return Dt(n,a,s.f),w}function yw(n,a,s){return Dt(n,a,s.a[1]),w}function vw(n,a,s){let o=ne(n,s.i,ny([],s.s,s.l));for(let l=0,f=s.a.length;l<f;l++)o.v[l]=Dt(n,a,s.a[l]);return o}
12function Dt(n,a,s){if(a>n.base.depthLimit)throw new QS(n.base.depthLimit);switch(a+=1,s.t){case 2:return Rf(s,Kb,s.s);case 0:return Number(s.s);case 1:return La(String(s.s));case 3:if(String(s.s).length>z3)throw new Xn(s);return BigInt(s.s);case 4:return n.base.refs.get(s.i);case 18:return P3(n,s);case 9:return I3(n,a,s);case 10:case 11:return X3(n,a,s);case 5:return Z3(n,s);case 6:return K3(n,s);case 7:return F3(n,a,s);case 8:return J3(n,a,s);case 19:return W3(n,s);case 16:case 15:return tw(n,a,s);case 20:return ew(n,a,s);case 14:return nw(n,a,s);case 13:return aw(n,a,s);case 12:return iw(n,a,s);case 17:return Rf(s,Zb,s.s);case 21:return sw(n,a,s);case 25:return rw(n,a,s);case 22:return ow(n,s);case 23:return lw(n,a,s);case 24:return uw(n,a,s);case 28:return cw(n,a,s);case 30:return fw(n,a,s);case 31:return dw(n,a,s);case 32:return hw(n,a,s);case 33:return mw(n,a,s);case 34:return pw(n,a,s);case 27:return gw(n,a,s);case 29:return yw(n,a,s);case 35:return vw(n,a,s);default:throw new ty(s)}}function bw(n,a){try{return Dt(n,0,a)}catch(s){throw new US(s)}}var Sw=()=>T;Sw.toString();function Rg(n,a){let s=sy(a.plugins),o=j3({plugins:s,refs:a.refs,features:a.features,disabledFeatures:a.disabledFeatures,depthLimit:a.depthLimit});return bw(o,n)}async function ww(n,a={}){let s=sy(a.plugins),o=m3(1,{plugins:s,disabledFeatures:a.disabledFeatures});return{t:await L3(o,n),f:o.base.features,m:Array.from(o.base.marked)}}function Ew(n){return{tag:"$TSR/t/"+n.key,test:n.test,parse:{sync(a,s,o){return{v:s.parse(n.toSerializable(a))}},async async(a,s,o){return{v:await s.parse(n.toSerializable(a))}},stream(a,s,o){return{v:s.parse(n.toSerializable(a))}}},serialize:void 0,deserialize(a,s,o){return n.fromSerializable(s.deserialize(a.v))}}}var Cw=class{constructor(n,a){this.stream=n,this.hint=a?.hint??"binary"}};const wl=globalThis.Buffer,fy=!!wl&&typeof wl.from=="function";function dy(n){if(n.length===0)return"";if(fy)return wl.from(n).toString("base64");const a=32768,s=[];for(let o=0;o<n.length;o+=a){const l=n.subarray(o,o+a);s.push(String.fromCharCode.apply(null,l))}return btoa(s.join(""))}function hy(n){if(n.length===0)return new Uint8Array(0);if(fy){const o=wl.from(n,"base64");return new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}const a=atob(n),s=new Uint8Array(a.length);for(let o=0;o<a.length;o++)s[o]=a.charCodeAt(o);return s}const ur=Object.create(null),cr=Object.create(null),_w=n=>new ReadableStream({start(a){n.on({next(s){try{a.enqueue(hy(s))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),Tw=new TextEncoder,xw=n=>new ReadableStream({start(a){n.on({next(s){try{typeof s=="string"?a.enqueue(Tw.encode(s)):a.enqueue(hy(s.$b64))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),Rw="(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(_){}}})}}))",Aw="(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 Ag(n){const a=ui(),s=n.getReader();return(async()=>{try{for(;;){const{done:o,value:l}=await s.read();if(o){a.return(void 0);break}a.next(dy(l))}}catch(o){a.throw(o)}finally{s.releaseLock()}})(),a}function Mg(n){const a=ui(),s=n.getReader(),o=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:l,value:f}=await s.read();if(l){try{const d=o.decode();d.length>0&&a.next(d)}catch{}a.return(void 0);break}try{const d=o.decode(f,{stream:!0});d.length>0&&a.next(d)}catch{a.next({$b64:dy(f)})}}}catch(l){a.throw(l)}finally{s.releaseLock()}})(),a}const Mw={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(n){return n===ur},parse:{sync(n,a,s){return{}},async async(n,a,s){return{}},stream(n,a,s){return{}}},serialize(n,a,s){return Rw},deserialize(n,a,s){return ur}},{tag:"tss/RawStreamFactoryText",test(n){return n===cr},parse:{sync(n,a,s){return{}},async async(n,a,s){return{}},stream(n,a,s){return{}}},serialize(n,a,s){return Aw},deserialize(n,a,s){return cr}}],test(n){return n instanceof Cw},parse:{sync(n,a,s){const o=n.hint==="text"?cr:ur;return{hint:a.parse(n.hint),factory:a.parse(o),stream:a.parse(ui())}},async async(n,a,s){const o=n.hint==="text"?cr:ur,l=n.hint==="text"?Mg(n.stream):Ag(n.stream);return{hint:await a.parse(n.hint),factory:await a.parse(o),stream:await a.parse(l)}},stream(n,a,s){const o=n.hint==="text"?cr:ur,l=n.hint==="text"?Mg(n.stream):Ag(n.stream);return{hint:a.parse(n.hint),factory:a.parse(o),stream:a.parse(l)}}},serialize(n,a,s){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a,s){const o=a.deserialize(n.stream);return a.deserialize(n.hint)==="text"?xw(o):_w(o)}};function Ow(n){return{tag:"tss/RawStream",test:()=>!1,parse:{}
12,serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(a,s,o){return n(typeof s?.deserialize=="function"?s.deserialize(a.streamId):a.streamId)}}}const Lw={tag:"$TSR/Error",test(n){return n instanceof Error},parse:{sync(n,a){return{message:a.parse(n.message)}},async async(n,a){return{message:await a.parse(n.message)}},stream(n,a){return{message:a.parse(n.message)}}},serialize(n,a){return"new Error("+a.serialize(n.message)+")"},deserialize(n,a){return new Error(a.deserialize(n.message))}};var Ea={},my=n=>new ReadableStream({start:a=>{n.on({next:s=>{try{a.enqueue(s)}catch{}},throw:s=>{a.error(s)},return:()=>{try{a.close()}catch{}}})}}),Nw={tag:"seroval-plugins/web/ReadableStreamFactory",test(n){return n===Ea},parse:{sync(){return Ea},async async(){return await Promise.resolve(Ea)},stream(){return Ea}},serialize(){return my.toString()},deserialize(){return Ea}};function Og(n){let a=ui(),s=n.getReader();async function o(){try{let l=await s.read();l.done?a.return(l.value):(a.next(l.value),await o())}catch(l){a.throw(l)}}return o().catch(()=>{}),a}var kw={tag:"seroval/plugins/web/ReadableStream",extends:[Nw],test(n){return typeof ReadableStream>"u"?!1:n instanceof ReadableStream},parse:{sync(n,a){return{factory:a.parse(Ea),stream:a.parse(ui())}},async async(n,a){return{factory:await a.parse(Ea),stream:await a.parse(Og(n))}},stream(n,a){return{factory:a.parse(Ea),stream:a.parse(Og(n))}}},serialize(n,a){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a){let s=a.deserialize(n.stream);return my(s)}},Dw=kw;const zw=[Lw,Mw,Dw];function Bw(){return[...v1()?.serializationAdapters?.map(Ew)??[],...zw]}var Lg=new TextDecoder,Uw=new Uint8Array(0),Ng=16*1024*1024,kg=32*1024*1024,Dg=1024,zg=1e5;function qw(n){const a=new Map,s=new Map,o=new Set;let l=!1,f=null,d=0,m;const h=new ReadableStream({start(y){m=y},cancel(){l=!0;try{f?.cancel()}catch{}a.forEach(y=>{try{y.error(new Error("Framed response cancelled"))}catch{}}),a.clear(),s.clear(),o.clear()}});function g(y){const C=s.get(y);if(C)return C;if(o.has(y))return new ReadableStream({start(x){x.close()}});if(s.size>=Dg)throw new Error(`Too many raw streams in framed response (max ${Dg})`);const S=new ReadableStream({start(x){a.set(y,x)},cancel(){o.add(y),a.delete(y),s.delete(y)}});return s.set(y,S),S}function v(y){return g(y),a.get(y)}return(async()=>{const y=n.getReader();f=y;const C=[];let S=0;function x(){if(S<9)return null;const _=C[0];if(_.length>=9)return{type:_[0],streamId:(_[1]<<24|_[2]<<16|_[3]<<8|_[4])>>>0,length:(_[5]<<24|_[6]<<16|_[7]<<8|_[8])>>>0};const O=new Uint8Array(9);let Q=0,X=9;for(let H=0;H<C.length&&X>0;H++){const W=C[H],tt=Math.min(W.length,X);O.set(W.subarray(0,tt),Q),Q+=tt,X-=tt}return{type:O[0],streamId:(O[1]<<24|O[2]<<16|O[3]<<8|O[4])>>>0,length:(O[5]<<24|O[6]<<16|O[7]<<8|O[8])>>>0}}function L(_){if(_===0)return Uw;const O=new Uint8Array(_);let Q=0,X=_;for(;X>0&&C.length>0;){const H=C[0];if(!H)break;const W=Math.min(H.length,X);O.set(H.subarray(0,W),Q),Q+=W,X-=W,W===H.length?C.shift():C[0]=H.subarray(W)}return S-=_,O}try{for(;;){const{done:_,value:O}=await y.read();if(l||_)break;if(O){if(S+O.length>kg)throw new Error(`Framed response buffer exceeded ${kg} bytes`);for(C.push(O),S+=O.length;;){const Q=x();if(!Q)break;const{type:X,streamId:H,length:W}=Q;if(X!==Qn.JSON&&X!==Qn.CHUNK&&X!==Qn.END&&X!==Qn.ERROR)throw new Error(`Unknown frame type: ${X}`);if(X===Qn.JSON){if(H!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(H===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(W>Ng)throw new Error(`Frame payload too large: ${W} bytes (max ${Ng})`);const tt=9+W;if(S<tt)break;if(++d>zg)throw new Error(`Too many frames in framed response (max ${zg})`);L(9);const P=L(W);switch(X){case Qn.JSON:try{m.enqueue(Lg.decode(P))}catch{}break;case Qn.CHUNK:{const K=v(H);K&&K.enqueue(P);break}case Qn.END:{const K=v(H);if(o.add(H),K){try{K.close()}catch{}a.delete(H)}break}case Qn.ERROR:{const K=v(H);if(o.add(H),K){const et=Lg.decode(P);K.error(new Error(et)),a.delete(H)}break}}}}}if(S!==0)throw new Error("Incomplete frame at end of framed response");try{m.close()}catch{}
12a.forEach(_=>{try{_.close()}catch{}}),a.clear()}catch(_){try{m.error(_)}catch{}a.forEach(O=>{try{O.error(_)}catch{}}),a.clear()}finally{try{y.releaseLock()}catch{}f=null}})(),{getOrCreateStream:g,jsonChunks:h}}var _r=null;async function Af(n){n.length>0&&await Promise.allSettled(n)}var jw=Object.prototype.hasOwnProperty;function py(n){for(const a in n)if(jw.call(n,a))return!0;return!1}async function Hw(n,a,s){_r||(_r=Bw());const o=a[0],l=o.fetch??s,f=o.data instanceof FormData?"formData":"payload",d=o.headers?new Headers(o.headers):new Headers;if(d.set("x-tsr-serverFn","true"),f==="payload"&&d.set("accept",`${B2}, application/x-ndjson, application/json`),o.method==="GET"){if(f==="formData")throw new Error("FormData is not supported with GET requests");const h=await gy(o);if(h!==void 0){const g=A1({payload:h});n.includes("?")?n+=`&${g}`:n+=`?${g}`}}let m;if(o.method==="POST"){const h=await Vw(o);h?.contentType&&d.set("content-type",h.contentType),m=h?.body}return await Qw(async()=>l(n,{method:o.method,headers:d,signal:o.signal,body:m}))}async function gy(n){let a=!1;const s={};if(n.data!==void 0&&(a=!0,s.data=n.data),n.context&&py(n.context)&&(a=!0,s.context=n.context),a)return yy(s)}async function yy(n){return JSON.stringify(await Promise.resolve(ww(n,{plugins:_r})))}async function Vw(n){if(n.data instanceof FormData){let s;return n.context&&py(n.context)&&(s=await yy(n.context)),s!==void 0&&n.data.set(z2,s),{body:n.data}}const a=await gy(n);if(a)return{body:a,contentType:"application/json"}}async function Qw(n){let a;try{a=await n()}catch(o){if(o instanceof Response)a=o;else throw console.log(o),o}if(a.headers.get("x-tss-raw")==="true")return a;const s=a.headers.get("content-type");if(s||Me(),a.headers.get("x-tss-serialized")){let o;if(s.includes("application/x-tss-framed")){if(j2(s),!a.body)throw new Error("No response body for framed response");const{getOrCreateStream:l,jsonChunks:f}=qw(a.body),d=[Ow(l),..._r||[]],m=new Map;o=await Pw({jsonStream:f,onMessage:h=>Rg(h,{refs:m,plugins:d}),onError(h,g){console.error(h,g)}})}else if(s.includes("application/json")){const l=await a.json(),f=[];try{o=Rg(l,{plugins:_r})}finally{}await Af(f)}if(o||Me(),o instanceof Error)throw o;return o}if(s.includes("application/json")){const o=await a.json(),l=Sb(o);if(l)throw l;if(se(o))throw o;return o}if(!a.ok)throw new Error(await a.text());return a}async function Pw({jsonStream:n,onMessage:a,onError:s}){const o=n.getReader(),{value:l,done:f}=await o.read();if(f||!l)throw new Error("Stream ended before first object");const d=JSON.parse(l);let m=!1;const h=(async()=>{try{for(;;){const{value:y,done:C}=await o.read();if(C)break;if(y)try{const S=[];try{a(JSON.parse(y))}finally{}await Af(S)}catch(S){s?.(`Invalid JSON: ${y}`,S)}}}catch(y){m||s?.("Stream processing error:",y)}})();let g;const v=[];try{g=a(d)}catch(y){throw m=!0,o.cancel().catch(()=>{}),y}return await Af(v),Promise.resolve(g).catch(()=>{m=!0,o.cancel().catch(()=>{})}),h.finally(()=>{try{o.releaseLock()}catch{}}),g}function Iw(n){const a="/_serverFn/"+n;return Object.assign((...l)=>{const f=v1()?.serverFns?.fetch;return Hw(a,l,f??fetch)},{url:a,serverFnMeta:{id:n},[_f]:!0})}var Gw={key:"$TSS/serverfn",test:n=>typeof n!="function"||!(_f in n)?!1:!!n[_f],toSerializable:({serverFnMeta:n})=>({functionId:n.id}),fromSerializable:({functionId:n})=>Iw(n)};function Bg(n){return n.replaceAll("\0","/").replaceAll("�","/")}function Yw(n,a){n.id=a.i,n.__beforeLoadContext=a.b,n.loaderData=a.l,n.status=a.s,n.ssr=a.ssr,n.updatedAt=a.u,n.error=a.e,a.g!==void 0&&(n.globalNotFound=a.g)}async function $w(n){window.$_TSR||Me();const a=n.options.serializationAdapters;if(a?.length){const _=new Map;a.forEach(O=>{_.set(O.key,O.fromSerializable)}),window.$_TSR.t=_,window.$_TSR.buffer.forEach(O=>O())}window.$_TSR.initialized=!0,window.$_TSR.router||Me();const s=window.$_TSR.router;s.matches.forEach(_=>{_.i=Bg(_.i)}),s.lastMatchId&&(s.lastMatchId=Bg(s.lastMatchId));const{manifest:o,dehydratedData:l,lastMatchId:f}=s;n.ssr={manifest:o};const d=document.querySelector('meta[property="csp-nonce"]')?.content;n.options.ssr={nonce:d};const m=n.matchRoutes(n.stores.location.get()),h=Promise.all(m.map(_=>n.loadRouteChunk(n.looseRoutesById[_.routeId])));function g(_){const O=n.looseRoutesById[_.routeId].options.pendingMinMs??n.options.defaultPendingMinMs;if(O){const Q=oi();_._nonReactive.minPendingPromise=Q,_._forcePending=!0,setTimeout(()=>{Q.resolve(),n.updateMatch(_.id,X=>(X._nonReactive.minPendingPromise=void 0,{...X,_forcePending:void 0}))},O)}}function v(_){const O=n.looseRoutesById[_.routeId];O&&(O.options.ssr=_.ssr)}let y;m.forEach(_=>{const O=s.matches.find(Q=>Q.i===_.id);if(!O){_._nonReactive.dehydrated=!1,_.ssr=!1,v(_);return}Yw(_,O),v(_),_._nonReactive.dehydrated=_.ssr!==!1,(_.ssr==="data-only"||_.ssr===!1)&&y===void 0&&(y=_.index,g(_))}),n.stores.setMatches(m),await n.options.hydrate?.(l);const C=n.stores.matches.get(),S=n.stores.location.get();await Promise.all(C.map(async _=>{try{const O=n.looseRoutesById[_.routeId],Q=C[_.index-1]?.context??n.options.context;if(O.options.context){const tt={deps:_.loaderDeps,params:_.params,context:Q??{},location:S,navigate:P=>n.navigate({...P,_fromLocation:S}),buildLocation:n.buildLocation,cause:_.cause,abortController:_.abortController,preload:!1,matches:m,routeId:O.id};
12_.__routeContext=O.options.context(tt)??void 0}_.context={...Q,..._.__routeContext,..._.__beforeLoadContext};const X={ssr:n.options.ssr,matches:C,match:_,params:_.params,loaderData:_.loaderData},H=await O.options.head?.(X),W=await O.options.scripts?.(X);_.meta=H?.meta,_.links=H?.links,_.headScripts=H?.scripts,_.styles=H?.styles,_.scripts=W}catch(O){if(se(O))_.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${_.routeId}`,O);else throw _.error=O,console.error(`Error during hydration for route ${_.routeId}:`,O),O}}));const x=m[m.length-1].id!==f;if(!m.some(_=>_.ssr===!1)&&!x)return m.forEach(_=>{_._nonReactive.dehydrated=void 0}),n.stores.resolvedLocation.set(n.stores.location.get()),h;const L=Promise.resolve().then(()=>n.load()).catch(_=>{console.error("Error during router hydration:",_)});if(x){const _=m[1];_||Me(),g(_),_._displayPending=!0,_._nonReactive.displayPendingPromise=L,L.then(()=>{n.batch(()=>{n.stores.status.get()==="pending"&&(n.stores.status.set("idle"),n.stores.resolvedLocation.set(n.stores.location.get())),n.updateMatch(_.id,O=>({...O,_displayPending:void 0,displayPendingPromise:void 0}))})})}return h}var El=V.use,hr=typeof window<"u"?V.useLayoutEffect:V.useEffect;function rf(n){const a=V.useRef({value:n,prev:null}),s=a.current.value;return n!==s&&(a.current={value:n,prev:s}),a.current.prev}function Xw(n,a,s={},o={}){V.useEffect(()=>{if(!n.current||o.disabled||typeof IntersectionObserver!="function")return;const l=new IntersectionObserver(([f])=>{a(f)},s);return l.observe(n.current),()=>{l.disconnect()}},[a,s,o.disabled,n])}function Zw(n){const a=V.useRef(null);return V.useImperativeHandle(n,()=>a.current,[]),a}function Kw({promise:n}){if(El)return El(n);const a=Vb(n);if(a[bn].status==="pending")throw a;if(a[bn].status==="error")throw a[bn].error;return a[bn].data}function Fw(n){const a=D.jsx(Jw,{...n});return n.fallback?D.jsx(V.Suspense,{fallback:n.fallback,children:a}):a}function Jw(n){const a=Kw(n);return n.children(a)}function Pf(n){const a=n.errorComponent??If;return D.jsx(Ww,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:s,reset:o})=>s?V.createElement(a,{error:s,reset:o}):n.children})}var Ww=class extends V.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n,a){const s=n.getResetKey();return a.error&&a.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidCatch(n,a){this.props.onCatch&&this.props.onCatch(n,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function If({error:n}){const[a,s]=V.useState(!1);return D.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[D.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),D.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:a?"Hide Error":"Show Error"})]}),D.jsx("div",{style:{height:".25rem"}}),a?D.jsx("div",{children:D.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?D.jsx("code",{children:n.message}):null})}):null]})}function t4({children:n,fallback:a=null}){return Gf()?D.jsx(He.Fragment,{children:n}):D.jsx(He.Fragment,{children:a})}function Gf(){return He.useSyncExternalStore(e4,()=>!0,()=>!1)}function e4(){return()=>{}}var vy=V.createContext(null);function re(n){return V.useContext(vy)}var Ll=V.createContext(void 0),n4=V.createContext(void 0),Vt=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))(Vt||{});function a4({update:n,notify:a,unwatched:s}){return{link:o,unlink:l,propagate:f,checkDirty:d,shallowPropagate:m};function o(g,v,y){const C=v.depsTail;if(C!==void 0&&C.dep===g)return;const S=C!==void 0?C.nextDep:v.deps;if(S!==void 0&&S.dep===g){S.version=y,v.depsTail=S;return}const x=g.subsTail;if(x!==void 0&&x.version===y&&x.sub===v)return;const L=v.depsTail=g.subsTail={version:y,dep:g,sub:v,prevDep:C,nextDep:S,prevSub:x,nextSub:void 0};S!==void 0&&(S.prevDep=L),C!==void 0?C.nextDep=L:v.deps=L,x!==void 0?x.nextSub=L:g.subs=L}function l(g,v=g.sub){const y=g.dep,C=g.prevDep,S=g.nextDep,x=g.nextSub,L=g.prevSub;return S!==void 0?S.prevDep=C:v.depsTail=C,C!==void 0?C.nextDep=S:v.deps=S,x!==void 0?x.prevSub=L:y.subsTail=L,L!==void 0?L.nextSub=x:(y.subs=x)===void 0&&s(y),S}function f(g){let v=g.nextSub,y;t:do{const C=g.sub;let S=C.flags;if(S&60?S&12?S&4?!(S&48)&&h(g,C)?(C.flags=S|40,S&=1):S=0:C.flags=S&-9|32:S=0:C.flags=S|32,S&2&&a(C),S&1){const x=C.subs;if(x!==void 0){const L=(g=x).nextSub;L!==void 0&&(y={value:v,prev:y},v=L);continue}}if((g=v)!==void 0){v=g.nextSub;continue}for(;y!==void 0;)if(g=y.value,y=y.prev,g!==void 0){v=g.nextSub;continue t}break}while(!0)}function d(g,v){let y,C=0,S=!1;t:do{const x=g.dep,L=x.flags;if(v.flags&16)S=!0;else if((L&17)===17){if(n(x)){const _=x.subs;_.nextSub!==void 0&&m(_),S=!0}}else if((L&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(y={value:g,prev:y}),g=x.deps,v=x,++C;continue}if(!S){const _=g.nextDep;if(_!==void 0){g=_;
12continue}}for(;C--;){const _=v.subs,O=_.nextSub!==void 0;if(O?(g=y.value,y=y.prev):g=_,S){if(n(v)){O&&m(_),v=g.sub;continue}S=!1}else v.flags&=-33;v=g.sub;const Q=g.nextDep;if(Q!==void 0){g=Q;continue t}}return S}while(!0)}function m(g){do{const v=g.sub,y=v.flags;(y&48)===32&&(v.flags=y|16,(y&6)===2&&a(v))}while((g=g.nextSub)!==void 0)}function h(g,v){let y=v.depsTail;for(;y!==void 0;){if(y===g)return!0;y=y.prevDep}return!1}}function i4(n,a,s){const o=typeof n=="object",l=o?n:void 0;return{next:(o?n.next:n)?.bind(l),error:(o?n.error:a)?.bind(l),complete:(o?n.complete:s)?.bind(l)}}const Mf=[];let pl=0;const{link:Ug,unlink:s4,propagate:r4,checkDirty:by,shallowPropagate:qg}=a4({update(n){return n._update()},notify(n){Mf[Of++]=n,n.flags&=~Vt.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Vt.Mutable|Vt.Dirty,Cl(n))}});let el=0,Of=0,vn,Lf=0;function Sy(n){try{++Lf,n()}finally{--Lf||wy()}}function Cl(n){const a=n.depsTail;let s=a!==void 0?a.nextDep:n.deps;for(;s!==void 0;)s=s4(s,n)}function wy(){if(!(Lf>0)){for(;el<Of;){const n=Mf[el];Mf[el++]=void 0,n.notify()}el=0,Of=0}}function jg(n,a){const s=typeof n=="function",o=n,l={_snapshot:s?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Vt.None:Vt.Mutable,get(){return vn!==void 0&&Ug(l,vn,pl),l._snapshot},subscribe(f){const d=i4(f),m={current:!1},h=o4(()=>{l.get(),m.current?d.next?.(l._snapshot):m.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(f){const d=vn,m=a?.compare??Object.is;if(s)vn=l,++pl,l.depsTail=void 0;else if(f===void 0)return!1;s&&(l.flags=Vt.Mutable|Vt.RecursedCheck);try{const h=l._snapshot,g=typeof f=="function"?f(h):f===void 0&&s?o(h):f;return h===void 0||!m(h,g)?(l._snapshot=g,!0):!1}finally{vn=d,s&&(l.flags&=~Vt.RecursedCheck),Cl(l)}}};return s?(l.flags=Vt.Mutable|Vt.Dirty,l.get=function(){const f=l.flags;if(f&Vt.Dirty||f&Vt.Pending&&by(l.deps,l)){if(l._update()){const d=l.subs;d!==void 0&&qg(d)}}else f&Vt.Pending&&(l.flags=f&~Vt.Pending);return vn!==void 0&&Ug(l,vn,pl),l._snapshot}):l.set=function(f){if(l._update(f)){const d=l.subs;d!==void 0&&(r4(d),qg(d),wy())}},l}function o4(n){const a=()=>{const o=vn;vn=s,++pl,s.depsTail=void 0,s.flags=Vt.Watching|Vt.RecursedCheck;try{return n()}finally{vn=o,s.flags&=~Vt.RecursedCheck,Cl(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Vt.Watching|Vt.RecursedCheck,notify(){const o=this.flags;o&Vt.Dirty||o&Vt.Pending&&by(this.deps,this)?a():this.flags=Vt.Watching},stop(){this.flags=Vt.None,this.depsTail=void 0,Cl(this)}};return a(),s}var of={exports:{}},lf={},uf={exports:{}},cf={};var Hg;function l4(){if(Hg)return cf;Hg=1;var n=Mr();function a(y,C){return y===C&&(y!==0||1/y===1/C)||y!==y&&C!==C}var s=typeof Object.is=="function"?Object.is:a,o=n.useState,l=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function m(y,C){var S=C(),x=o({inst:{value:S,getSnapshot:C}}),L=x[0].inst,_=x[1];return f(function(){L.value=S,L.getSnapshot=C,h(L)&&_({inst:L})},[y,S,C]),l(function(){return h(L)&&_({inst:L}),y(function(){h(L)&&_({inst:L})})},[y]),d(S),S}function h(y){var C=y.getSnapshot;y=y.value;try{var S=C();return!s(y,S)}catch{return!0}}function g(y,C){return C()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return cf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,cf}var Vg;function u4(){return Vg||(Vg=1,uf.exports=l4()),uf.exports}var Qg;function c4(){if(Qg)return lf;Qg=1;var n=Mr(),a=u4();function s(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var o=typeof Object.is=="function"?Object.is:s,l=a.useSyncExternalStore,f=n.useRef,d=n.useEffect,m=n.useMemo,h=n.useDebugValue;return lf.useSyncExternalStoreWithSelector=function(g,v,y,C,S){var x=f(null);if(x.current===null){var L={hasValue:!1,value:null};x.current=L}else L=x.current;x=m(function(){function O(tt){if(!Q){if(Q=!0,X=tt,tt=C(tt),S!==void 0&&L.hasValue){var P=L.value;if(S(P,tt))return H=P}return H=tt}if(P=H,o(X,tt))return P;var K=C(tt);return S!==void 0&&S(P,K)?(X=tt,P):(X=tt,H=K)}var Q=!1,X,H,W=y===void 0?null:y;return[function(){return O(v())},W===null?void 0:function(){return O(W())}]},[v,y,C,S]);var _=l(g,x[0],x[1]);return d(function(){L.hasValue=!0,L.value=_},[_]),h(_),_},lf}var Pg;function f4(){return Pg||(Pg=1,of.exports=c4()),of.exports}var d4=f4();function h4(n,a){return n===a}function Yt(n,a,s=h4){const o=V.useCallback(d=>
12{if(!n)return()=>{};const{unsubscribe:m}=n.subscribe(d);return m},[n]),l=V.useCallback(()=>n?.get(),[n]);return d4.useSyncExternalStoreWithSelector(o,l,l,a,s)}var m4={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ci(n){const a=re(),s=V.useContext(n.from?n4:Ll),o=n.from??s,l=o?n.from?a.stores.getRouteMatchStore(o):a.stores.matchStores.get(o):void 0,f=V.useRef(void 0);return Yt(l??m4,d=>{if((n.shouldThrow??!0)&&!d&&Me(),d===void 0)return;const m=n.select?n.select(d):d;if(n.structuralSharing??a.options.defaultStructuralSharing){const h=_a(f.current,m);return f.current=h,h}return m})}function Ey(n){return ci({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.loaderData):a.loaderData})}function Cy(n){const{select:a,...s}=n;return ci({...s,select:o=>a?a(o.loaderDeps):o.loaderDeps})}function _y(n){return ci({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:a=>{const s=n.strict===!1?a.params:a._strictParams;return n.select?n.select(s):s}})}function Ty(n){return ci({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.search):a.search})}function xy(n){const a=re();return V.useCallback(s=>a.navigate({...s,from:s.from??n?.from}),[n?.from,a])}function Ry(n){return ci({...n,select:a=>n.select?n.select(a.context):a.context})}var p4=y1();function g4(n,a){const s=re(),o=Zw(a),{activeProps:l,inactiveProps:f,activeOptions:d,to:m,preload:h,preloadDelay:g,preloadIntentProximity:v,hashScrollIntoView:y,replace:C,startTransition:S,resetScroll:x,viewTransition:L,children:_,target:O,disabled:Q,style:X,className:H,onClick:W,onBlur:tt,onFocus:P,onMouseEnter:K,onMouseLeave:et,onTouchStart:ct,ignoreBlocker:rt,params:ot,search:jt,hash:xt,state:lt,mask:U,reloadDocument:I,unsafeRelative:at,from:dt,_fromLocation:A,...E}=n,k=Gf(),Y=V.useMemo(()=>n,[s,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),J=Yt(s.stores.location,Bt=>Bt,(Bt,oe)=>Bt.href===oe.href),F=V.useMemo(()=>{const Bt={_fromLocation:J,...Y};return s.buildLocation(Bt)},[s,J,Y]),nt=F.maskedLocation?F.maskedLocation.publicHref:F.publicHref,gt=F.maskedLocation?F.maskedLocation.external:F.external,zt=V.useMemo(()=>E4(nt,gt,s.history,Q),[Q,gt,nt,s.history]),Nt=V.useMemo(()=>{if(zt?.external)return yl(zt.href,s.protocolAllowlist)?void 0:zt.href;if(!C4(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),yl(m,s.protocolAllowlist)?void 0:m}catch{}},[m,zt,s.protocolAllowlist]),wn=V.useMemo(()=>{if(Nt)return!1;if(d?.exact){if(!rb(J.pathname,F.pathname,s.basepath))return!1}else{const Bt=vl(J.pathname,s.basepath),oe=vl(F.pathname,s.basepath);if(!(Bt.startsWith(oe)&&(Bt.length===oe.length||Bt[oe.length]==="/")))return!1}return(d?.includeSearch??!0)&&!xe(J.search,F.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?k&&J.hash===F.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,J,Nt,k,F.hash,F.pathname,F.search,s.basepath]),En=wn?Ca(l,{})??y4:ff,Zn=wn?ff:Ca(f,{})??ff,us=[H,En.className,Zn.className].filter(Boolean).join(" "),cn=(X||En.style||Zn.style)&&{...X,...En.style,...Zn.style},[cs,fi]=V.useState(!1),Nr=V.useRef(!1),Cn=n.reloadDocument||Nt?!1:h??s.options.defaultPreload,ka=g??s.options.defaultPreloadDelay??0,tn=V.useCallback(()=>{s.preloadRoute({...Y,_builtLocation:F}).catch(Bt=>{console.warn(Bt),console.warn(Qb)})},[s,Y,F]);Xw(o,V.useCallback(Bt=>{Bt?.isIntersecting&&tn()},[tn]),w4,{disabled:!!Q||Cn!=="viewport"}),V.useEffect(()=>{Nr.current||!Q&&Cn==="render"&&(tn(),Nr.current=!0)},[Q,tn,Cn]);const fs=Bt=>{const oe=Bt.currentTarget.getAttribute("target"),fn=O!==void 0?O:oe;if(!Q&&!_4(Bt)&&!Bt.defaultPrevented&&(!fn||fn==="_self")&&Bt.button===0){Bt.preventDefault(),p4.flushSync(()=>{fi(!0)});const di=s.subscribe("onResolved",()=>{di(),fi(!1)});s.navigate({...Y,replace:C,resetScroll:x,hashScrollIntoView:y,startTransition:S,viewTransition:L,ignoreBlocker:rt})}};if(Nt)return{...E,ref:o,href:Nt,..._&&{children:_},...O&&{target:O},...Q&&{disabled:Q},...X&&{style:X},...H&&{className:H},...W&&{onClick:W},...tt&&{onBlur:tt},...P&&{onFocus:P},...K&&{onMouseEnter:K},...et&&{onMouseLeave:et},...ct&&{onTouchStart:ct}};const kr=Bt=>{if(Q||Cn!=="intent")return;if(!ka){tn();return}const oe=Bt.currentTarget;if(fr.has(oe))return;const fn=setTimeout(()=>{fr.delete(oe),tn()},ka);fr.set(oe,fn)},kl=Bt=>{Q||Cn!=="intent"||tn()}
12,he=Bt=>{if(Q||!Cn||!ka)return;const oe=Bt.currentTarget,fn=fr.get(oe);fn&&(clearTimeout(fn),fr.delete(oe))};return{...E,...En,...Zn,href:zt?.href,ref:o,onClick:Fi([W,fs]),onBlur:Fi([tt,he]),onFocus:Fi([P,kr]),onMouseEnter:Fi([K,kr]),onMouseLeave:Fi([et,he]),onTouchStart:Fi([ct,kl]),disabled:!!Q,target:O,...cn&&{style:cn},...us&&{className:us},...Q&&v4,...wn&&b4,...k&&cs&&S4}}var ff={},y4={className:"active"},v4={role:"link","aria-disabled":!0},b4={"data-status":"active","aria-current":"page"},S4={"data-transitioning":"transitioning"},fr=new WeakMap,w4={rootMargin:"100px"},Fi=n=>a=>{for(const s of n)if(s){if(a.defaultPrevented)return;s(a)}};function E4(n,a,s,o){if(!o)return a?{href:n,external:!0}:{href:s.createHref(n)||"/",external:!1}}function C4(n){if(typeof n!="string")return!1;const a=n.charCodeAt(0);return a===47?n.charCodeAt(1)!==47:a===46}var sn=V.forwardRef((n,a)=>{const{_asChild:s,...o}=n,{type:l,...f}=g4(o,a),d=typeof o.children=="function"?o.children({isActive:f["data-status"]==="active"}):o.children;if(!s){const{disabled:m,...h}=f;return V.createElement("a",h,d)}return V.createElement(s,f,d)});function _4(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var T4=class extends z1{constructor(a){super(a),this.useMatch=s=>ci({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Ry({...s,from:this.id}),this.useSearch=s=>Ty({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_y({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Cy({...s,from:this.id}),this.useLoaderData=s=>Ey({...s,from:this.id}),this.useNavigate=()=>xy({from:this.fullPath}),this.Link=He.forwardRef((s,o)=>D.jsx(sn,{ref:o,from:this.fullPath,...s}))}};function x4(n){return new T4(n)}var R4=class extends Yb{constructor(n){super(n),this.useMatch=a=>ci({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>Ry({...a,from:this.id}),this.useSearch=a=>Ty({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>_y({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>Cy({...a,from:this.id}),this.useLoaderData=a=>Ey({...a,from:this.id}),this.useNavigate=()=>xy({from:this.fullPath}),this.Link=He.forwardRef((a,s)=>D.jsx(sn,{ref:s,from:this.fullPath,...a}))}};function A4(n){return new R4(n)}function on(n){return new M4(n,{silent:!0}).createRoute}var M4=class{constructor(n,a){this.path=n,this.createRoute=s=>{const o=x4(s);return o.isRoot=!1,o},this.silent=a?.silent}};function ln(n,a){let s,o,l,f;const d=()=>(s||(s=n().then(h=>{s=void 0,o=h[a]}).catch(h=>{if(l=h,Q2(l)&&l instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const g=`tanstack_router_reload:${l.message}`;sessionStorage.getItem(g)||(sessionStorage.setItem(g,"1"),f=!0)}})),s),m=function(g){if(f)throw window.location.reload(),new Promise(()=>{});if(l)throw l;if(!o)if(El)El(d());else throw d();return V.createElement(o,g)};return m.preload=d,m}function O4(n){const a=re(),s=`not-found-${Yt(a.stores.location,o=>o.pathname)}-${Yt(a.stores.status,o=>o)}`;return D.jsx(Pf,{getResetKey:()=>s,onCatch:(o,l)=>{if(se(o))n.onCatch?.(o,l);else throw o},errorComponent:({error:o})=>{if(se(o))return n.fallback?.(o);throw o},children:n.children})}function L4(){return D.jsx("p",{children:"Not Found"})}function Wi(n){return D.jsx(D.Fragment,{children:n.children})}function Ay(n,a,s){return a.options.notFoundComponent?D.jsx(a.options.notFoundComponent,{...s}):n.options.defaultNotFoundComponent?D.jsx(n.options.defaultNotFoundComponent,{...s}):D.jsx(L4,{})}function N4(n){return null}function k4(){return N4(re()),null}var My=V.memo(function({matchId:a}){const s=re(),o=s.stores.matchStores.get(a);o||Me();const l=Yt(s.stores.loadedAt,d=>d),f=Yt(o,d=>d);return D.jsx(D4,{router:s,matchId:a,resetKey:l,matchState:V.useMemo(()=>{const d=f.routeId,m=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:m}},[f._displayPending,f.routeId,f.ssr,s.routesById])})});function D4({router:n,matchId:a,resetKey:s,matchState:o}){const l=n.routesById[o.routeId],f=l.options.pendingComponent??n.options.defaultPendingComponent,d=f?D.jsx(f,{}):null,m=l.options.errorComponent??n.options.defaultErrorComponent,h=l.options.onCatch??n.options.defaultOnCatch,g=l.isRoot?l.options.notFoundComponent??n.options.notFoundRoute?.options.component:l.options.notFoundComponent,v=o.ssr===!1||o.ssr==="data-only",y=(!l.isRoot||l.options.wrapInSuspense||v)&&(l.options.wrapInSuspense??f??(l.options.errorComponent?.preload||v))?V.Suspense:Wi,C=m?Pf:Wi,S=g?O4:Wi;return D.jsxs(l.isRoot?l.options.shellComponent??Wi:Wi,{children:[D.jsx(Ll.Provider,{value:a,children:D.jsx(y,{fallback:d,children:D.jsx(C,{getResetKey:()=>s,errorComponent:m||If,onCatch:(x,L)=>{if(se(x))throw x.routeId??=o.routeId,x;h?.(x,L)},children:D.jsx(S,{fallback:x=>
12{if(x.routeId??=o.routeId,!g||x.routeId&&x.routeId!==o.routeId||!x.routeId&&!l.isRoot)throw x;return V.createElement(g,x)},children:v||o._displayPending?D.jsx(t4,{fallback:d,children:D.jsx(Ig,{matchId:a})}):D.jsx(Ig,{matchId:a})})})})}),o.parentRouteId===ii?D.jsxs(D.Fragment,{children:[D.jsx(z4,{resetKey:s}),n.options.scrollRestoration&&b1?D.jsx(k4,{}):null]}):null]})}function z4({resetKey:n}){const a=re(),s=V.useRef(void 0);return hr(()=>{const o=a.latestLocation.href;(s.current===void 0||s.current!==o)&&(a.emit({type:"onRendered",...is(a.stores.location.get(),a.stores.resolvedLocation.get())}),s.current=o)},[a.latestLocation.state.__TSR_key,n,a]),null}var Ig=V.memo(function({matchId:a}){const s=re(),o=(v,y)=>s.getMatch(v.id)?._nonReactive[y]??v._nonReactive[y],l=s.stores.matchStores.get(a);l||Me();const f=Yt(l,v=>v),d=f.routeId,m=s.routesById[d],h=V.useMemo(()=>{const v=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return v?JSON.stringify(v):void 0},[d,f.loaderDeps,f._strictParams,f._strictSearch,s.options.defaultRemountDeps,s.routesById]),g=V.useMemo(()=>{const v=m.options.component??s.options.defaultComponent;return v?D.jsx(v,{},h):D.jsx(B4,{})},[h,m.options.component,s.options.defaultComponent]);if(f._displayPending)throw o(f,"displayPendingPromise");if(f._forcePending)throw o(f,"minPendingPromise");if(f.status==="pending"){const v=m.options.pendingMinMs??s.options.defaultPendingMinMs;if(v){const y=s.getMatch(f.id);if(y&&!y._nonReactive.minPendingPromise){const C=oi();y._nonReactive.minPendingPromise=C,setTimeout(()=>{C.resolve(),y._nonReactive.minPendingPromise=void 0},v)}}throw o(f,"loadPromise")}if(f.status==="notFound")return se(f.error)||Me(),Ay(s,m,f.error);if(f.status==="redirected")throw Re(f.error)||Me(),o(f,"loadPromise");if(f.status==="error")throw f.error;return g}),B4=V.memo(function(){const a=re(),s=V.useContext(Ll);let o,l=!1,f;{const g=s?a.stores.matchStores.get(s):void 0;[o,l]=Yt(g,v=>[v?.routeId,v?.globalNotFound??!1]),f=Yt(a.stores.matchesId,v=>v[v.findIndex(y=>y===s)+1])}const d=o?a.routesById[o]:void 0,m=a.options.defaultPendingComponent?D.jsx(a.options.defaultPendingComponent,{}):null;if(l)return d||Me(),Ay(a,d,void 0);if(!f)return null;const h=D.jsx(My,{matchId:f});return o===ii?D.jsx(V.Suspense,{fallback:m,children:h}):h});function U4(){const n=re(),a=V.useRef({router:n,mounted:!1}),[s,o]=V.useState(!1),l=Yt(n.stores.isLoading,y=>y),f=Yt(n.stores.hasPending,y=>y),d=rf(l),m=l||s||f,h=rf(m),g=l||f,v=rf(g);return n.startTransition=y=>{o(!0),V.startTransition(()=>{y(),o(!1)})},V.useEffect(()=>{const y=n.history.subscribe(n.load),C=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return In(n.latestLocation.publicHref)!==In(C.publicHref)&&n.commitLocation({...C,replace:!0}),()=>{y()}},[n,n.history]),hr(()=>{if(typeof window<"u"&&n.ssr||a.current.router===n&&a.current.mounted)return;a.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(C){console.error(C)}})()},[n]),hr(()=>{d&&!l&&n.emit({type:"onLoad",...is(n.stores.location.get(),n.stores.resolvedLocation.get())})},[d,n,l]),hr(()=>{v&&!g&&n.emit({type:"onBeforeRouteMount",...is(n.stores.location.get(),n.stores.resolvedLocation.get())})},[g,v,n]),hr(()=>{if(h&&!m){const y=is(n.stores.location.get(),n.stores.resolvedLocation.get());n.emit({type:"onResolved",...y}),Sy(()=>{n.stores.status.set("idle"),n.stores.resolvedLocation.set(n.stores.location.get())}),y.hrefChanged&&$b(n)}},[m,h,n]),null}function q4(){const n=re(),a=n.routesById[ii].options.pendingComponent??n.options.defaultPendingComponent,s=a?D.jsx(a,{}):null,o=D.jsxs(typeof document<"u"&&n.ssr?Wi:V.Suspense,{fallback:s,children:[D.jsx(U4,{}),D.jsx(j4,{})]});return n.options.InnerWrap?D.jsx(n.options.InnerWrap,{children:o}):o}function j4(){const n=re(),a=Yt(n.stores.firstId,l=>l),s=Yt(n.stores.loadedAt,l=>l),o=a?D.jsx(My,{matchId:a}):null;return D.jsx(Ll.Provider,{value:a,children:n.options.disableGlobalCatchBoundary?o:D.jsx(Pf,{getResetKey:()=>s,errorComponent:If,onCatch:void 0,children:o})})}var H4=n=>({createMutableStore:jg,createReadonlyStore:jg,batch:Sy}),V4=n=>new Q4(n),Q4=class extends Db{constructor(n){super(n,H4)}
12};function P4({router:n,children:a,...s}){w1(s)&&n.update({...n.options,...s,context:{...n.options.context,...s.context}});const o=D.jsx(vy.Provider,{value:n,children:a});return n.options.Wrap?D.jsx(n.options.Wrap,{children:o}):o}function I4({router:n,...a}){return D.jsx(P4,{router:n,...a,children:D.jsx(q4,{})})}function G4(n){const a=re(),s=V.useRef(void 0);return Yt(a.stores.location,o=>{const l=o;if(a.options.defaultStructuralSharing){const f=_a(s.current,l);return s.current=f,f}return l})}function Oy(n){const{attrs:a,children:s,nonce:o}=n;switch(n.tag){case"title":return D.jsx("title",{...a,suppressHydrationWarning:!0,children:s});case"meta":return D.jsx("meta",{...a,suppressHydrationWarning:!0});case"link":return D.jsx("link",{...a,precedence:a?.precedence??(a?.rel==="stylesheet"?"default":void 0),nonce:o,suppressHydrationWarning:!0});case"style":return n.inlineCss,D.jsx("style",{...a,dangerouslySetInnerHTML:{__html:s},nonce:o});case"script":return D.jsx(Y4,{attrs:a,children:s});default:return null}}function Y4({attrs:n,children:a}){re();const s=Gf(),o=typeof n?.type=="string"&&n.type!==""&&n.type!=="text/javascript"&&n.type!=="module";if(V.useEffect(()=>{if(!o){if(n?.src){const l=(()=>{try{const d=document.baseURI||window.location.href;return new URL(n.src,d).href}catch{return n.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(d=>d.src===l))return;const f=document.createElement("script");for(const[d,m]of Object.entries(n))d!=="suppressHydrationWarning"&&m!==void 0&&m!==!1&&f.setAttribute(d,typeof m=="boolean"?"":String(m));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}if(typeof a=="string"){const l=typeof n?.type=="string"?n.type:"text/javascript",f=typeof n?.nonce=="string"?n.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(m=>{if(!(m instanceof HTMLScriptElement))return!1;const h=m.getAttribute("type")??"text/javascript",g=m.getAttribute("nonce")??void 0;return m.textContent===a&&h===l&&g===f}))return;const d=document.createElement("script");if(d.textContent=a,n)for(const[m,h]of Object.entries(n))m!=="suppressHydrationWarning"&&h!==void 0&&h!==!1&&d.setAttribute(m,typeof h=="boolean"?"":String(h));return document.head.appendChild(d),()=>{d.parentNode&&d.parentNode.removeChild(d)}}}},[n,a,o]),o&&typeof a=="string")return D.jsx("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a}});if(!s){if(n?.src)return D.jsx("script",{...n,suppressHydrationWarning:!0});if(typeof a=="string")return D.jsx("script",{...n,dangerouslySetInnerHTML:{__html:a},suppressHydrationWarning:!0})}return null}var $4=n=>{const a=re(),s=a.options.ssr?.nonce,o=Yt(a.stores.matches,g=>g.map(v=>v.meta).filter(Boolean),xe),l=V.useMemo(()=>{const g=[],v={};let y;for(let C=o.length-1;C>=0;C--){const S=o[C];for(let x=S.length-1;x>=0;x--){const L=S[x];if(L)if(L.title)y||(y={tag:"title",children:L.title});else if("script:ld+json"in L)try{const _=JSON.stringify(L["script:ld+json"]);g.push({tag:"script",attrs:{type:"application/ld+json"},children:$2(_)})}catch{}else{const _=L.name??L.property;if(_){if(v[_])continue;v[_]=!0}g.push({tag:"meta",attrs:{...L,nonce:s}})}}}return y&&g.push(y),s&&g.push({tag:"meta",attrs:{property:"csp-nonce",content:s}}),g.reverse(),g},[o,s]),f=Yt(a.stores.matches,g=>{const v=g.map(S=>S.links).filter(Boolean).flat(1).map(S=>({tag:"link",attrs:{...S,nonce:s}})),y=a.ssr?.manifest,C=g.map(S=>y?.routes[S.routeId]?.assets??[]).filter(Boolean).flat(1).flatMap(S=>S.tag==="link"?Gb(y,S)?[]:[{tag:"link",attrs:{...S.attrs,crossOrigin:Cg(n,"stylesheet")??S.attrs?.crossOrigin,suppressHydrationWarning:!0,nonce:s}}]:S.tag==="style"?[{tag:"style",attrs:{...S.attrs,nonce:s},children:S.children,...S.inlineCss?{inlineCss:!0}:{}}]:[]);return[...v,...C]},xe),d=Yt(a.stores.matches,g=>{const v=[];return g.map(y=>a.looseRoutesById[y.routeId]).forEach(y=>a.ssr?.manifest?.routes[y.id]?.preloads?.filter(Boolean).forEach(C=>{const S=Pb(C);v.push({tag:"link",attrs:{rel:"modulepreload",href:S.href,crossOrigin:Cg(n,"modulepreload")??S.crossOrigin,nonce:s}})})),v},xe),m=Yt(a.stores.matches,g=>g.map(v=>
12v.styles).flat(1).filter(Boolean).map(({children:v,...y})=>({tag:"style",attrs:{...y,nonce:s},children:v})),xe),h=Yt(a.stores.matches,g=>g.map(v=>v.headScripts).flat(1).filter(Boolean).map(({children:v,...y})=>({tag:"script",attrs:{...y,nonce:s},children:v})),xe);return X4([...l,...d,...f,...m,...h],g=>JSON.stringify(g))};function X4(n,a){const s=new Set;return n.filter(o=>{const l=a(o);return s.has(l)?!1:(s.add(l),!0)})}function Z4(n){const a=$4(n.assetCrossOrigin),s=re().options.ssr?.nonce;return D.jsx(D.Fragment,{children:a.map(o=>V.createElement(Oy,{...o,key:`tsr-meta-${JSON.stringify(o)}`,nonce:s}))})}var K4=()=>{const n=re(),a=n.options.ssr?.nonce,s=f=>{const d=[],m=n.ssr?.manifest;return m?(f.map(h=>n.looseRoutesById[h.routeId]).forEach(h=>m.routes[h.id]?.assets?.filter(g=>g.tag==="script").forEach(g=>{d.push({tag:"script",attrs:{...g.attrs,nonce:a},children:g.children})})),d):[]},o=f=>f.map(d=>d.scripts).flat(1).filter(Boolean).map(({children:d,...m})=>({tag:"script",attrs:{...m,suppressHydrationWarning:!0,nonce:a},children:d})),l=Yt(n.stores.matches,s,xe);return F4(n,Yt(n.stores.matches,o,xe),l)};function F4(n,a,s){let o;n.serverSsr&&(o=n.serverSsr.takeBufferedScripts());const l=[...a,...s];return o&&l.unshift(o),D.jsx(D.Fragment,{children:l.map((f,d)=>V.createElement(Oy,{...f,key:`tsr-scripts-${f.tag}-${d}`}))})}var Ly=n=>{window.history.pushState({},"",n),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))},J4=()=>{const[n,a]=V.useState(window?.location.pathname??"");return V.useEffect(()=>{if(!window)return;const s=()=>{a(window.location.pathname)};return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[]),n},W4=()=>{const[n,a]=V.useState(window?new URLSearchParams(window.location.search):new URLSearchParams);return V.useEffect(()=>{if(!window)return;const s=()=>{a(new URLSearchParams(window.location.search))};return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[]),n},t5=()=>{const n=J4(),a=W4();V.useEffect(()=>{if(window.parent!==window)return window.parent.postMessage({type:"PATHNAME_CONNECTED"},"*"),()=>{window.parent.postMessage({type:"PATHNAME_DISCONNECTED"},"*")}},[]),V.useEffect(()=>{if(window.parent!==window){const s=n+(a.toString()?`?${a.toString()}`:"");window.parent.postMessage({type:"PATHNAME_UPDATE",pathname:s},"*")}},[n,a])},e5=()=>{V.useEffect(()=>{if(window.parent!==window){const n=d=>{if(d.source===window.parent)switch(d.data.type){case"HISTORY_GO_BACK":window.history.back();break;case"HISTORY_GO_FORWARD":window.history.forward();break;case"PATHNAME_UPDATE":const m=d.data.pathname;m&&m!==window.location.pathname&&Ly(m);break}};let a=[window.location.pathname],s=0;const o=()=>{const d=window.location.pathname;d!==a[s]&&(a=a.slice(0,s+1),a.push(d),s=a.length-1),window.parent.postMessage({type:"HISTORY_STATE_UPDATED",canGoBack:s>0,canGoForward:s<a.length-1,currentPath:d},"*")},l=window.history.pushState,f=window.history.replaceState;return window.history.pushState=function(...d){l.apply(this,d),o()},window.history.replaceState=function(...d){f.apply(this,d),o()},window.addEventListener("message",n),window.addEventListener("popstate",()=>{const d=window.location.pathname;s=a.indexOf(d),s===-1&&(s=a.length,a.push(d)),o()}),o(),()=>{window.removeEventListener("message",n),window.removeEventListener("popstate",o),window.history.pushState=l,window.history.replaceState=f}}},[])},nl=()=>window.location.pathname+window.location.search+window.location.hash,n5=()=>{V.useEffect(()=>{if(window.parent===window)return;let n=[nl()],a=0;const s=()=>{const h=nl();h!==n[a]&&(n=n.slice(0,a+1),n.push(h),a=n.length-1),window.parent.postMessage({type:"URL_UPDATE",url:h,canGoBack:a>0,canGoForward:a<n.length-1},"*")},o=window.history.pushState,l=window.history.replaceState;window.history.pushState=function(...h){o.apply(this,h),s()},window.history.replaceState=function(...h){l.apply(this,h),s()};const f=h=>{if(h.source===window.parent&&h.data.type==="URL_NAVIGATE"){const g=h.data.url;g&&g!==nl()&&Ly(g)}},d=()=>{const h=nl();a=n.indexOf(h),a===-1&&(a=n.length,n.push(h)),s()},m=()=>{s()};return window.parent.postMessage({type:"URL_CONNECTED"},"*"),window.addEventListener("message",f),window.addEventListener("popstate",d),window.addEventListener("hashchange",m),s(),()=>{window.parent.postMessage({type:"URL_DISCONNECTED"},"*"),window.removeEventListener("message",f),window.removeEventListener("popstate",d),window.removeEventListener("hashchange",m),window.history.pushState=o,window.history.replaceState=l}},[])},a5=n=>n?n.split(` 13`).slice(2).map(s=>{const l=s.trim().split(" ")[1];return!l||!l.startsWith||l.startsWith("https://")?null:l}
13).filter(Boolean):[],Je=(n,a=new WeakSet)=>{if(n==null||typeof n!="object"&&typeof n!="function")return n;if(a.has(n))return"[Circular Reference]";if(a.add(n),n instanceof Error)return{__type:"Error",name:n.name,message:n.message,stack:n.stack};if(n instanceof Response)return{__type:"Response",url:n.url,status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())};if(n instanceof Request)return{__type:"Request",url:n.url,method:n.method};if(n instanceof HTMLElement)return{__type:"HTMLElement",tagName:n.tagName,id:n.id,className:n.className};if(typeof n=="function")return`[Function: ${n.name||"anonymous"}]`;if(n instanceof Date)return{__type:"Date",value:n.toISOString()};if(n instanceof RegExp)return{__type:"RegExp",value:n.toString()};if(n instanceof Map)return{__type:"Map",value:Array.from(n.entries()).map(([s,o])=>[Je(s,a),Je(o,a)])};if(n instanceof Set)return{__type:"Set",value:Array.from(n).map(s=>Je(s,a))};if(Array.isArray(n))return n.map(s=>Je(s,a));try{const s={};for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o))try{s[o]=Je(n[o],a)}catch(l){s[o]=`[Failed to serialize: ${l.message}]`}return s}catch{return`[${n.constructor?.name||"Object"}: Unable to serialize]`}},i5=()=>{V.useEffect(()=>{if(window.parent!==window){const n=console.log,a=console.error,s=console.warn;return console.log=function(...o){n.apply(console,o);const l=o.map(f=>Je(f));try{window.parent.postMessage({type:"CONSOLE_LOG",content:l},"*")}catch(f){a("Error forwarding log to parent:",f)}},console.error=function(...o){a.apply(console,o);const l=new Error().stack,f=a5(l),d=o.map(m=>Je(m));try{window.parent.postMessage({type:"CONSOLE_ERROR",content:d,functionStack:f},"*")}catch(m){a("Error forwarding error to parent:",m)}},console.warn=function(...o){s.apply(console,o);const l=o.map(f=>Je(f));try{window.parent.postMessage({type:"CONSOLE_WARN",content:l},"*")}catch(f){a("Error forwarding warning to parent:",f)}},()=>{console.log=n,console.error=a,console.warn=s}}},[])},s5=()=>{V.useEffect(()=>{const n=s=>{if(s.preventDefault(),window.parent!==window){const o=Je(s.error??new Error(s.message));window.parent.postMessage({type:"UNCAUGHT_ERROR",content:o},"*")}};window.addEventListener("error",n);const a=s=>{if(s.preventDefault(),window.parent!==window&&s.reason){const o=Je(s.reason);window.parent.postMessage({type:"UNHANDLED_PROMISE_REJECTION",content:o},"*")}};return window.addEventListener("unhandledrejection",a),()=>{window.removeEventListener("error",n),window.removeEventListener("unhandledrejection",a)}},[])},r5=class extends He.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,a){const s={__type:"Error",name:n.name,message:n.message,componentStack:a.componentStack?.split(` 14`).map(o=>o.trim().split(" ")[1]).filter(Boolean).filter(o=>!["MacalyErrorLogger","MacalyBridge","MacalyComponentEditMode"].includes(o))||[]};throw this.setState({errorInfo:a}),window.parent!==window&&window.parent.postMessage({type:"UNCAUGHT_ERROR",content:s},"*"),n}render(){return this.state.hasError?null:this.props.children}},o5=()=>{V.useEffect(()=>{if(window.parent!==window){if(!window.modernScreenshot&&!document.getElementById("modern-screenshot-script")){const a=document.createElement("script");a.id="modern-screenshot-script",a.type="module",a.textContent=` 15 import { domToPng } from 'https://unpkg.com/modern-screenshot?module'; 16 window.modernScreenshot = { domToPng }; 17 `,document.head.appendChild(a)}const n=a=>{a.data.type==="CAPTURE_SCREENSHOT"&&(window.modernScreenshot?.domToPng?window.modernScreenshot.domToPng(document.documentElement,{fetch:{requestInit:{cache:"no-cache"}}}).then(s=>{window.parent.postMessage({type:"SCREENSHOT_CAPTURED",dataUrl:s},"*")}).catch(s=>{window.parent.postMessage({type:"SCREENSHOT_ERROR",error:Je(s)},"*")}):setTimeout(()=>{window.modernScreenshot?.domToPng?window.modernScreenshot.domToPng(document.documentElement,{fetch:{requestInit:{cache:"no-cache"}}}).then(s=>{window.parent.postMessage({type:"SCREENSHOT_CAPTURED",dataUrl:s},"*")}).catch(s=>{window.parent.postMessage({type:"SCREENSHOT_ERROR",error:Je(s)},"*")}):window.parent.postMessage({type:"SCREENSHOT_ERROR",error:"modernScreenshot library n
17ot available"},"*")},1e3))};return window.addEventListener("message",n),window.parent.postMessage({type:"SCREENSHOT_CAPTURE_AVAILABLE"},"*"),()=>{window.removeEventListener("message",n),window.parent.postMessage({type:"SCREENSHOT_CAPTURE_UNAVAILABLE"},"*")}}},[])};function Yf(n){if(n.id)return`#${n.id}`;const a=[];let s=n;for(;s&&s.nodeType===Node.ELEMENT_NODE;){let o=s.nodeName.toLowerCase();if(s.id){o=`#${s.id}`,a.unshift(o);break}else{const f=Array.from(s.parentNode?.children||[]).filter(d=>d.nodeName===s.nodeName).indexOf(s);o+=`:nth-child(${f+1})`,a.unshift(o),s=s.parentNode}}return a.join(" > ")}function mr(n){return Yf(n)}var l5=n=>{const a=Object.keys(n).find(s=>s.startsWith("__reactFiber$")||s.startsWith("__reactInternalInstance$"));return a?n[a]:null};function u5(n){let a=n;for(;a;){if(typeof a.type=="object"&&(a.type===null||a.type?.$$type==="Symbol(react.provider)"||a.type?.$$type==="Symbol(react.context)"&&a.type.displayName==="LayoutRouterContext"))return{type:null,serverComponent:!0};if(typeof a.type=="function")return a._debugOwner?.name==="HydrateClient"||a.type.name==="InnerLayoutRouter"||a.type.name==="MacalyBridge"?{type:null,serverComponent:!0}:{type:a.type,serverComponent:!1};a=a.return}return{type:null,serverComponent:!1}}function c5(n){let a=n;for(;a;){const s=a._debugOwner?.name;if(s&&s!=="MacalyBridge")return a._debugOwner.name;a=a.return}return null}var f5=n=>{if(!n)return"UNKNOWN";const a=u5(n);return a.serverComponent?c5(n)||"SERVER":a.type?a.type.displayName||a.type.name||"ANONYMOUS":"UNKNOWN"},Ny=n=>{const a=l5(n);return a?f5(a):null},d5=()=>{const a=document.documentElement.classList;return a.contains("light")?"light":a.contains("dark")?"dark":null},h5=n=>{const a=document.documentElement;a.classList.remove("light","dark"),a.classList.add(n),a.style.colorScheme=n},Ce="v1",yr=n=>{const a=[],s=o=>{const l=a[a.length-1];l&&l.type==="text"?l.value=l.value+o:a.push({type:"text",value:o})};return n.childNodes.forEach(o=>{if(o.nodeType===Node.TEXT_NODE)s(o.nodeValue||"");else if(o.nodeType===Node.ELEMENT_NODE){const l=o,f=l.getAttribute("data-macaly-name")||l.tagName.toLowerCase(),d=l.getAttribute("data-macaly-loc");a.push({type:"element",name:f,key:d??null})}}),a},m5=n=>{const a=n.getAttribute("data-macaly-loc")||"",s=n.getAttribute("data-macaly-name")||"";return{element:Yf(n),tagName:n.tagName.toLowerCase(),className:typeof n.className=="string"?n.className:"",id:n.id,componentName:Ny(n),dataMacalyLoc:a,dataMacalyName:s}},p5=n=>{let a=n;for(;a;){const s=a.getAttribute("data-em-original-contenteditable")??a.getAttribute("contenteditable");if(s&&s!=="false")return!0;a=a.parentElement}return!1},Nf=n=>{const a=n.getAttribute("data-macaly-loc"),s=n.getAttribute("data-macaly-name");return!a||!s||p5(n)||!Array.from(n.childNodes).some(l=>l.nodeType===Node.TEXT_NODE&&l.textContent?.trim())?!1:!["INPUT","TEXTAREA","SELECT","IMG","VIDEO","SCRIPT","STYLE"].includes(n.tagName)},ky=(n,a)=>
17{if(n.length!==a.length)return!1;for(let s=0;s<n.length;s++){const o=n[s],l=a[s];if(o.type!==l.type)return!1;if(o.type==="text"&&l.type==="text"){if(o.value!==l.value)return!1}else if(o.type==="element"&&l.type==="element"&&o.name!==l.name)return!1}return!0},g5=n=>(n=n.replace(/\s+contenteditable="(true|false)"/gi,""),n=n.replace(/\s+data-em-[^=]*="[^"]*"/gi,""),n=n.replace(/\s+style="[^"]*(?:box-shadow|border-radius|background-color|outline)[^"]*"/gi,a=>{const o=(a.match(/style="([^"]*)"/)?.[1]||"").split(";").filter(l=>{const f=l.trim();return f&&!f.startsWith("box-shadow:")&&!f.startsWith("border-radius:")&&!f.startsWith("background-color:")&&!f.startsWith("outline:")}).join(";");return o?` style="${o}"`:""}),n),y5=n=>{let a=n.parentElement;for(;a;){if(a.hasAttribute("data-em-was-modified")){const s=a.innerHTML||"",o=g5(s);a.setAttribute("data-em-last-committed-html",o)}a=a.parentElement}},v5=n=>{if(!n.hasAttribute("data-em-was-modified")){const a=n.innerHTML||"";n.setAttribute("data-em-original-html",a);const s=yr(n);n.setAttribute("data-em-original-text-elements",JSON.stringify(s))}},Gg=n=>{if(!n.hasAttribute("data-em-original-contenteditable")){const a=n.getAttribute("contentEditable")||"";n.setAttribute("data-em-original-contenteditable",a)}},b5=n=>{Gg(n),n.contentEditable="true",n.querySelectorAll("*").forEach(s=>{const o=s;Gg(o),o.contentEditable="false"})},S5=n=>{n.focus()},w5=n=>{Nf(n)&&(v5(n),b5(n),S5(n),L5(n),z5(n))},E5=n=>{const a=n.getAttribute("data-em-original-html")||"",o=n.getAttribute("data-em-last-committed-html")||""||a;n.innerHTML=o},Dy=(n,a,s)=>{const o=mr(n),l=m5(n),f=n.getAttribute("data-em-original-text-elements")||"[]",d=JSON.parse(f),m=yr(n);!ky(d,m)?(n.setAttribute("data-em-was-modified","true"),n.setAttribute("data-em-last-committed-html",s),y5(n),window.parent.postMessage({type:"TEXT_EDITED",version:Ce,content:{key:o,originalText:d,newText:m,schemaVersion:1,componentInfo:l}},"*")):n.hasAttribute("data-em-was-modified")&&(window.parent.postMessage({type:"TEXT_RESET",version:Ce,content:{key:o,componentInfo:l,originalText:d}},"*"),n.removeAttribute("data-em-last-committed-html"),n.removeAttribute("data-em-was-modified"))},Yg=n=>{const a=n.getAttribute("data-em-original-contenteditable");a!==null&&(a===""?n.removeAttribute("contentEditable"):n.contentEditable=a,n.removeAttribute("data-em-original-contenteditable"))},C5=n=>{Yg(n),n.querySelectorAll("*").forEach(s=>{Yg(s)})},_5=(n,a)=>a.endContainer===n||a.endContainer.parentNode===n&&a.endOffset===a.endContainer.textContent?.length?n.lastElementChild?.tagName==="BR":!1,T5=n=>{if(!n.collapsed)return!1;const{startContainer:a,startOffset:s}=n;return a.nodeType===Node.TEXT_NODE&&s===0?a.previousSibling?.nodeName==="BR":a.nodeType===Node.ELEMENT_NODE&&s>0?a.childNodes[s-1]?.nodeName==="BR":!1},x5=n=>{const{startContainer:a,startOffset:s}=n;let o=null;a.nodeType===Node.TEXT_NODE&&s===0&&(o=a.previousSibling),a.nodeType===Node.ELEMENT_NODE&&s>0&&(o=a.childNodes[s-1]),o&&o.nodeName==="BR"&&o.parentNode&&(console.log("Removing BR at cursor:",o),o.parentNode.removeChild(o))},R5=n=>{const a=n.lastElementChild,s=a?.previousElementSibling;if(a?.tagName==="BR"){const o=s?.previousElementSibling;s?.tagName==="BR"&&(!o||o.tagName!=="BR")&&n.removeChild(s),n.removeChild(a);const f=new Event("input",{bubbles:!0});n.dispatchEvent(f)}},A5=(n,a=!0)=>{const s=n.getAttribute("data-em-original-html")||"",o=n.innerHTML||"";C5(n),N5(n),B5(n),a?Dy(n,s,o):E5(n)},M5=(n,a,s)=>{if(a)switch(n.stopPropagation(),n.key){case"Enter":{n.preventDefault();try{document.execCommand("insertLineBreak")}catch{}break}case"Backspace":{const o=window.getSelection();if(o&&o.rangeCount>0){const l=o.getRangeAt(0);if(l.collapsed&&_5(a,l)){n.preventDefault(),R5(a);const f=document.createRange();f.selectNodeContents(a),f.collapse(!1),o.removeAllRanges(),o.addRange(f)}else l.collapsed&&T5(l)&&(n.preventDefault(),x5(l))}break}case"Escape":{n.preventDefault();break}case" ":n.preventDefault(),document.execCommand("insertText",!1," ");break}},O5=n=>n.getAttribute("data-em-original-html")||"",zy=n=>{queueMicrotask(()=>{const a=O5(n),s=n.innerHTML||"";Dy(n,a,s)})},L5=n=>{const a=n;if(a._inspectorInputHandlerAttached)return;const s=()=>zy(n);a._inspectorInputHandler=s,a._inspectorInputHandlerAttached=!0,n.addEventListener("input",s)},N5=n=>{const a=n,s=a._inspectorInputHandler;s&&n.removeEventListener("input",s),a._inspectorInputHandler=void 0,a._inspectorInputHandlerAttached=!1},$g=n=>n.every(a=>a.type==="text"||a.type==="element"&&a.name.toLowerCase()==="br"),By=n=>{const a=document.createElement("div");return a.textContent=n,a.innerHTML},k5=n=>n.map(a=>a.type==="text"?By(a.value):a.type==="element"&&a.name.toLowerCase()==="br"?"<br>":"").join(""),D5=n=>a=>{a.preventDefault(),a.stopPropagation();const s=a.clipboardData?.getData("text/plain")||"",l=By(s).replace(/\n/g,"<br>");if(l){const f=window.getSelection();if(f&&f.rangeCount>0){const d=f.getRangeAt(0);d.deleteContents();
17const m=document.createElement("template");m.innerHTML=l;const h=m.content,g=Array.from(h.childNodes);if(d.insertNode(h),g.length>0){const y=g[g.length-1];d.setStartAfter(y),d.setEndAfter(y)}f.removeAllRanges(),f.addRange(d);const v=new Event("input",{bubbles:!0});n.dispatchEvent(v)}else document.execCommand("insertHTML",!1,l)}},z5=n=>{const a=n;if(a._inspectorPasteHandlerAttached)return;const s=D5(n);a._inspectorPasteHandler=s,a._inspectorPasteHandlerAttached=!0,n.addEventListener("paste",s)},B5=n=>{const a=n,s=a._inspectorPasteHandler;s&&n.removeEventListener("paste",s),a._inspectorPasteHandler=void 0,a._inspectorPasteHandlerAttached=!1},Xg="https://cdn.tailwindcss.com",U5="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4",q5=n=>{if(document.getElementById("macaly-tailwind-cdn"))return;const a=parseInt(n?.match(/\d+/)?.[0]??"",10);let s;a===4?s=U5:(a===3||Number.isNaN(a)||console.warn(`[macaly] Unsupported Tailwind version "${n}", falling back to v3 CDN`),s=Xg);const o=document.createElement("script");o.id="macaly-tailwind-cdn",o.src=s,o.type="text/javascript",document.head.appendChild(o)},j5=()=>{const n=document.getElementById("macaly-tailwind-cdn");n&&n.parentNode&&document.head.removeChild(n)},H5=(n,a)=>{const s=new Set(n.split(/\s+/).filter(l=>l.trim()!=="")),o=new Set(a.split(/\s+/).filter(l=>l.trim()!==""));if(s.size!==o.size)return!0;for(const l of s)if(!o.has(l))return!0;return!1},Zg=(n,a,s,o,l,f,d,m,h,g,v)=>{Uy();const C=n.getAttribute("data-macaly-name")||n.tagName.toLowerCase(),S=document.createElement("div");S.id="macaly-internal-info-badge";const x=document.createElement("span");x.textContent=C,x.className="macaly-badge-name";const L=document.createElement("button");L.className="macaly-badge-button",L.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>',L.title="Select previous sibling",d||(L.disabled=!0),L.addEventListener("click",H=>{H.stopPropagation(),d&&l()});const _=document.createElement("button");_.className="macaly-badge-button",_.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>',_.title="Select next sibling",m||(_.disabled=!0),_.addEventListener("click",H=>{H.stopPropagation(),m&&f()});const O=document.createElement("button");O.className="macaly-badge-button",O.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9 9 4 4 9"/><path d="M20 20h-7a4 4 0 0 1-4-4V4"/></svg>',O.title="Select parent element",o||(O.disabled=!0),O.addEventListener("click",H=>{H.stopPropagation(),o&&a()});const Q=document.createElement("button");Q.className="macaly-badge-button",Q.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>',Q.title="Delete element",Q.addEventListener("click",H=>{H.stopPropagation(),s()});const X=document.createElement("button");return X.className="macaly-badge-button",X.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m18 16 4-4-4-4"/><path d="m6 8-4 4 4 4"/><path d="m14.5 4-5 16"/></svg>',g?X.title="Go to source code":(X.disabled=!0,X.title=v||"Go to source code"),X.addEventListener("click",H=>{H.stopPropagation(),g&&h()}),S.appendChild(x),S.appendChild(O),S.appendChild(L),S.appendChild(_),S.appendChild(X),S.appendChild(Q),document.body.appendChild(S),S},Uy=()=>{const n=document.getElementById("macaly-internal-info-badge");n&&n.parentNode&&n.parentNode.removeChild(n)},Kg=(n,a)=>{kf();const s=document.createElement("div");s.id="macaly-internal-ai-badge";const o=document.createElement("button");return o.className="macaly-badge-button",o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/></svg>',o.title="Ask AI",o.addEventListener("click",l=>{l.stopPropagation(),a()}),s.appendChild(o),document.body.appendChild(s),s},kf=()=>{const n=document.getElementById("macaly-internal-ai-badge");n&&n.parentNode&&n.parentNode.removeChild(n)},V5=n=>{if(n.length<=1)return n;const a=1,s=new Map;
17n.forEach(l=>{const f=Math.round(l.y);let d=!1;for(const[m,h]of s.entries())if(Math.abs(m-f)<a){h.push(l),d=!0;break}d||s.set(f,[l])});const o=[];return s.forEach(l=>{l.sort((d,m)=>d.x-m.x);let f=l[0];for(let d=1;d<l.length;d++){const m=l[d];if(f.x+f.width+2>=m.x){const g=Math.max(f.x+f.width,m.x+m.width);f=new DOMRect(f.x,f.y,g-f.x,Math.max(f.height,m.height))}else o.push(f),f=m}o.push(f)}),o},qy=n=>{const a=n.getClientRects(),s=Array.from(a).filter(o=>o.width>0&&o.height>0);return V5(s)},Q5=()=>{if(document.getElementById("macaly-inspector-selection-styles"))return;const n=document.createElement("style");n.id="macaly-inspector-selection-styles",n.textContent=` 18 /* Suppress native focus rings while inspector is active */ 19 *:focus, *:focus-visible { 20 outline: none !important; 21 box-shadow: none !important; 22 } 23 24 /* Info Badge - Component name display with buttons */ 25 #macaly-internal-info-badge { 26 position: fixed; 27 height: 24px; 28 background: #eaedff; 29 color: #2970ff; 30 border: 1px solid #c7d2fe; 31 border-radius: 4px; 32 font-size: 10px; 33 font-weight: 500; 34 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 35 z-index: 999999; 36 display: flex; 37 align-items: center; 38 gap: 6px; 39 box-shadow: 0 4px 12px rgba(41, 112, 255, 0.15), 0 2px 4px rgba(41, 112, 255, 0.08); 40 line-height: 1; 41 padding: 0 6px 0 8px; 42 backdrop-filter: blur(8px); 43 white-space: nowrap; 44 cursor: default; 45 user-select: none; 46 } 47 48 /* AI Badge - Separate badge for Ask AI button */ 49 #macaly-internal-ai-badge { 50 position: fixed; 51 height: 24px; 52 background: #eaedff; 53 color: #2970ff; 54 border: 1px solid #c7d2fe; 55 border-radius: 4px; 56 font-size: 10px; 57 font-weight: 500; 58 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 59 z-index: 999999; 60 display: flex; 61 align-items: center; 62 gap: 6px; 63 box-shadow: 0 4px 12px rgba(41, 112, 255, 0.15), 0 2px 4px rgba(41, 112, 255, 0.08); 64 line-height: 1; 65 padding: 0 6px; 66 backdrop-filter: blur(8px); 67 white-space: nowrap; 68 cursor: default; 69 user-select: none; 70 } 71 72 .macaly-badge-name { 73 overflow: hidden; 74 text-overflow: ellipsis; 75 max-width: 150px; 76 pointer-events: none; 77 } 78 79 .macaly-badge-button { 80 display: flex; 81 align-items: center; 82 justify-content: center; 83 width: 18px; 84 height: 18px; 85 padding: 0; 86 border: none; 87 background: transparent; 88 color: #2970ff; 89 cursor: pointer; 90 border-radius: 2px; 91 transition: background-color 0.15s ease; 92 pointer-events: auto; 93 flex-shrink: 0; 94 } 95 96 .macaly-badge-button:hover:not(:disabled) { 97 background-color: rgba(41, 112, 255, 0.15); 98 } 99 100 .macaly-badge-button:active:not(:disabled) { 101 background-color: rgba(41, 112, 255, 0.25); 102 } 103 104 .macaly-badge-button:disabled { 105 opacity: 0.4; 106 cursor: not-allowed; 107 } 108 109 .macaly-badge-button svg { 110 display: block; 111 } 112 113 /* Selection Highlight - Solid outline */ 114 .macaly-em-highlight { 115 position: absolute; 116 outline: 2px solid rgb(37, 99, 235); 117 outline-offset: 2px; 118 border-radius: 4px; 119 pointer-events: none; 120 z-index: 10000; 121 } 122 123 /* Hover Highlight - Dashed outline, no tint */ 124 .macaly-em-hover-highlight { 125 position: absolute; 126 outline: 2px dashed rgb(37, 99, 235); 127 outline-offset: 2px; 128 border-radius: 4px; 129 pointer-events: none; 130 z-index: 9999; 131 } 132 `,document.head.appendChild(n)},P5=()=>{const n=document.getElementById("macaly-inspector-selection-styles");n&&n.parentNode&&document.head.removeChild(n)},pr=n=>{jy();const a=window.getComputedStyle(n).display,s=a==="inline"||a==="inline-block";let o;if(s)o=qy(n);else{const l=n.getBoundingClientRect();o=l.width>0&&l.height>0?[l]:[]}o.forEach(l=>{const f=document.createElement("div");f.className="macaly-em-highlight",f.style.top=l.top+window.scrollY+"px",f.style.left=l.left+window.scrollX+"px",f.style.width=l.width+"px",f.style.height=l.height+"px",document.body.appendChild(f)})},jy=()=>{document.querySelectorAll(".macaly-em-highlight").forEach(n=>n.remove())},I5=()=>{const n=document.querySelector("[data-em-selected]");n&&pr(n)},G5=n=>
132{if(ts(),n.hasAttribute("data-em-selected"))return;const a=window.getComputedStyle(n).display,s=a==="inline"||a==="inline-block";let o;if(s)o=qy(n);else{const l=n.getBoundingClientRect();o=l.width>0&&l.height>0?[l]:[]}o.forEach(l=>{const f=document.createElement("div");f.className="macaly-em-hover-highlight",f.style.top=l.top+window.scrollY+"px",f.style.left=l.left+window.scrollX+"px",f.style.width=l.width+"px",f.style.height=l.height+"px",document.body.appendChild(f)})},ts=()=>{document.querySelectorAll(".macaly-em-hover-highlight").forEach(n=>n.remove())},Hy=()=>{if(document.getElementById("macaly-edit-mode-styles"))return;const n=document.createElement("style");n.id="macaly-edit-mode-styles",n.textContent="",document.head.appendChild(n)},Y5=(n,a)=>{let s=document.getElementById("macaly-edit-mode-styles");s||(Hy(),s=document.getElementById("macaly-edit-mode-styles")),s&&(s.textContent=n,a===null?s.removeAttribute("type"):a!==void 0&&s.setAttribute("type",a))},$5=()=>{const n=document.getElementById("macaly-edit-mode-styles");n&&n.parentNode&&document.head.removeChild(n)},Vy=()=>{if(document.getElementById("macaly-edit-mode-script"))return;const n=document.createElement("script");n.id="macaly-edit-mode-script",n.textContent="",document.head.appendChild(n)},X5=n=>{let a=document.getElementById("macaly-edit-mode-script");
132if(a||(Vy(),a=document.getElementById("macaly-edit-mode-script")),a){const s=document.createElement("script");s.id="macaly-edit-mode-script",s.textContent=n,a.replaceWith(s)}},Z5=()=>{const n=document.getElementById("macaly-edit-mode-script");n&&n.parentNode&&document.head.removeChild(n)},al=n=>{const a=n.getBoundingClientRect(),s=24,o=8,l=document.getElementById("macaly-internal-info-badge");if(!l)return;const f=s+o,m=a.top>=f?a.top-s-o:a.bottom+o,h=l.offsetWidth||0;if(a.width<80){const y=a.left+a.width/2-h/2;l.style.left=`${y}px`,l.style.top=`${m}px`}else l.style.left=`${a.left}px`,l.style.top=`${m}px`},df=n=>{const a=document.getElementById("macaly-internal-ai-badge");if(!a)return;const s=8,o=4,l=document.getElementById("macaly-internal-info-badge");if(l){const x=l.getBoundingClientRect(),L=a.offsetWidth||0,_=x.top;let O=x.right+s;O+L>window.innerWidth-o&&(O=x.left-L-s);const Q=window.innerWidth-L-o;O<o&&(O=o),O>Q&&(O=Q),a.style.left=`${O}px`,a.style.top=`${_}px`;return}const f=n.getBoundingClientRect(),d=24,m=8,h=d+m,v=f.top>=h?f.top-d-m:f.bottom+m,y=a.offsetWidth||0;let C=f.right-y;const S=window.innerWidth-y-o;C<o&&(C=o),C>S&&(C=S),a.style.left=`${C}px`,a.style.top=`${v}px`},K5=(n,a,s)=>{if(!n)return;const o=()=>{n&&(a(n),s&&s())};return window.addEventListener("scroll",o,!0),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",o)}};function Wa(n){const a=V.useRef(n);return V.useLayoutEffect(()=>{a.current=n},[n]),V.useCallback(((...s)=>a.current(...s)),[])}function F5(n){const a={};for(const s of Array.from(n.attributes)){const o=s.name==="class"?"className":s.name;a[o]=s.value}return a}var J5=()=>{const[n,a]=V.useState(!1),[s,o]=V.useState(null),[l,f]=V.useState(null),d=A=>A?{enabled:A.getAttribute("data-em-go-to-source-enabled")==="true",disabledReason:A.getAttribute("data-em-go-to-source-disabled-reason")}:{enabled:!1,disabledReason:null},m=(A,E,k)=>{A&&(A.setAttribute("data-em-go-to-source-enabled",String(E)),k?A.setAttribute("data-em-go-to-source-disabled-reason",k):A.removeAttribute("data-em-go-to-source-disabled-reason"))},h=A=>A?{enabled:A.getAttribute("data-em-ask-ai-enabled")==="true"}:{enabled:!1},g=(A,E)=>{A&&A.setAttribute("data-em-ask-ai-enabled",String(E))},[v,y]=V.useState({}),C=V.useCallback(A=>{v.mutation&&v.mutation.disconnect(),v.resize&&v.resize.disconnect(),v.clearPendingUpdate&&v.clearPendingUpdate();let E;const k=()=>{E!==void 0&&window.clearTimeout(E),E=window.setTimeout(()=>{pr(A),al(A),E=void 0},16)},Y=new MutationObserver(k);Y.observe(A,{characterData:!0,childList:!0,subtree:!0});const J=new ResizeObserver(k);J.observe(A),y({mutation:Y,resize:J,updateTimeout:E,clearPendingUpdate:()=>{E!==void 0&&(window.clearTimeout(E),E=void 0)}})},[v]),S=V.useCallback(()=>{v.mutation&&v.mutation.disconnect(),v.resize&&v.resize.disconnect(),v.clearPendingUpdate&&v.clearPendingUpdate(),y({})},[v]),x=A=>{w5(A),f(A),pr(A)},L=(A,E=!0)=>{A5(A,E),f(null),pr(A)},_=A=>({display:window.getComputedStyle(A).display,attributes:F5(A),element:Yf(A),tagName:A.tagName.toLowerCase(),className:A.getAttribute("class"),id:A.getAttribute("id"),componentName:Ny(A),dataMacalyLoc:A.getAttribute("data-macaly-loc"),dataMacalyName:A.getAttribute("data-macaly-name"),src:A.getAttribute("src")||void 0}),O=A=>{Array.from(A.attributes).forEach(k=>{const Y=k.name.toLowerCase(),J=`data-em-original-${Y}`;A.hasAttribute(J)||Y==="contenteditable"||Y==="class"||Y.startsWith("data-macaly-")||Y.startsWith("data-em-")||A.setAttribute(J,k.value)})},Q=A=>{const E={text:!1,attributes:{}},k=A.getAttribute("data-em-original-text-elements");if(k)try{const F=JSON.parse(k),nt=yr(A);E.text=!ky(F,nt)}catch{E.text=!0}return Array.from(A.attributes).filter(F=>F.name.startsWith("data-em-original-")).forEach(F=>{const nt=F.name.replace("data-em-original-","");if(nt==="text-elements"||nt==="html"||nt==="contenteditable")return;const gt=F.value;let zt;nt==="class"||nt==="classname"||nt==="className"?zt=A.className||"":zt=A.getAttribute(nt)||"",nt==="class"||nt==="classname"||nt==="className"?E.attributes.className=H5(gt,zt):E.attributes[nt]=gt!==zt}),E},X=A=>{const E={...A.attributes};
132return A.src!==void 0&&E.src===void 0&&(E.src=A.src),E},H=(A,E)=>{Object.entries(E).forEach(([k,Y])=>{A.getAttribute(k)!==Y&&!["className","class","contenteditable"].includes(k)&&(k in A||A.hasAttribute(k))&&A.setAttribute(k,Y)})},W=(A,E)=>{try{if(!A.hasAttribute("data-em-original-className")){const Y=A.className||"";A.setAttribute("data-em-original-className",Y)}A.className=E;const k=A.getAttribute("data-macaly-id");if(k){const Y=document.getElementById(`style-${k}`);Y&&document.head.removeChild(Y),A.removeAttribute("data-macaly-id")}}catch(k){console.warn("Failed to apply className changes:",k)}},tt=V.useCallback(A=>{if(!s){P("No element is currently selected");return}if(mr(s)!==A.elementKey){P("Element key does not match selected element",A.elementKey);return}const k=Array.isArray(A.extractedElements);if(k){if(s.contentEditable!=="true"||s.getAttribute("data-em-original-contenteditable")==="true"){P("Selected element is not in inspector-controlled edit mode for text changes");return}const Y=yr(s);if(!$g(Y)){P("Original element contains elements other than BR",A.elementKey);return}if(!$g(A.extractedElements)){P("New content contains elements other than BR",A.elementKey);return}}try{if(k){const nt=k5(A.extractedElements);s.innerHTML=nt,zy(s)}const Y=A.attributes?.className??A.attributes?.class??A.className;Y!==void 0&&s.className!==Y&&W(s,Y);const J=X(A);H(s,J);const F=Q(s);K(A.elementKey,F)}catch(Y){P(`Failed to apply changes: ${Y instanceof Error?Y.message:String(Y)}`,A.elementKey)}},[s]),P=(A,E)=>{const k={error:A};E&&(k.elementKey=E),window.parent.postMessage({type:"ELEMENT_CHANGE_ERROR",version:Ce,content:k},"*")},K=(A,E)=>{const k={elementKey:A,changes:E};window.parent.postMessage({type:"ELEMENT_CHANGE_SUCCESS",version:Ce,content:k},"*")},et=A=>{A.contentEditable==="true"&&A.getAttribute("data-em-original-contenteditable")!==null&&L(A,!0);const E=A.hasAttribute("data-em-selected");if(A.removeAttribute("data-em-selected"),E){Uy(),kf(),jy(),S();const k=_(A);window.parent.postMessage({type:"ELEMENT_DESELECTED",version:Ce,content:k},"*")}},ct=V.useCallback(()=>{s&&et(s),document.querySelectorAll('[data-em-selected="true"]').forEach(E=>{et(E)}),o(null)},[s,S]),rt=V.useCallback(A=>{const E=_(A);A.setAttribute("data-em-selected","true"),s!==A&&(s&&et(s),m(A,!1,null),g(A,!1)),O(A),o(A);let k={...E,isTextEditable:!1};if(Nf(A)){const gt=yr(A);k.extractedElements=gt,k.isTextEditable=!0,x(A)}const Y=A.parentElement!==null&&A.parentElement!==document.body&&A.parentElement!==document.documentElement,J=ot(A),F=d(A),nt=h(A);Zg(A,lt,U,Y,jt,xt,J.hasPrevious,J.hasNext,I,F.enabled,F.disabledReason),al(A),nt.enabled&&(Kg(A,at),df(A)),pr(A),C(A),window.parent.postMessage({type:"ELEMENT_SELECTED",version:Ce,content:k},"*")},[s,x,C]),ot=A=>{if(!A.parentElement)return{hasPrevious:!1,hasNext:!1};const E=Array.from(A.parentElement.children).filter(Y=>Y instanceof HTMLElement),k=E.indexOf(A);return{hasPrevious:k>0,hasNext:k<E.length-1}},jt=Wa(()=>{if(!s||!s.parentElement)return;const A=Array.from(s.parentElement.children).filter(k=>k instanceof HTMLElement),E=A.indexOf(s);if(E>0){const k=A[E-1];rt(k)}}),xt=Wa(()=>{if(!s||!s.parentElement)return;const A=Array.from(s.parentElement.children).filter(k=>k instanceof HTMLElement),E=A.indexOf(s);if(E<A.length-1){const k=A[E+1];rt(k)}}),lt=Wa(()=>{if(!s||!s.parentElement)return;const A=s.parentElement;A&&rt(A)}),U=Wa(()=>{if(!s)return;const A=mr(s);window.parent.postMessage({type:"ELEMENT_DELETE_REQUEST",version:Ce,content:{elementKe
132y:A}},"*")}),I=Wa(()=>{if(!s)return;const A=mr(s),E=s.getAttribute("data-macaly-loc");window.parent.postMessage({type:"GO_TO_SOURCE_REQUEST",version:Ce,content:{elementKey:A,dataMacalyLoc:E}},"*")}),at=Wa(()=>{if(!s)return;const A=mr(s),E=s.getAttribute("data-macaly-loc");window.parent.postMessage({type:"ASK_AI_REQUEST",version:Ce,content:{elementKey:A,dataMacalyLoc:E}},"*")}),dt=Wa(A=>{const E=["https://macaly.com","https://www.macaly.com","https://macaly.vercel.app","http://localhost:3000"];if(["INJECT_SCRIPT","OVERRIDE_STYLES","ELEMENT_CHANGE"].includes(A.data.type)){const Y=A.origin;if(!(E.some(F=>Y===F)||Y.endsWith(".macaly.com")||Y.startsWith("https://macaly-")&&Y.endsWith("-langtail.vercel.app"))){console.warn(`Blocked ${A.data.type} from unauthorized origin: ${A.origin}`);return}}if(A.data.type==="ENABLE_EDIT_MODE"){Q5(),q5(A.data.tailwindVersion),Hy(),Vy(),a(!0);const Y=d5();window.parent.postMessage({type:"CURRENT_THEME",version:Ce,theme:Y},"*")}else if(A.data.type==="DISABLE_EDIT_MODE")a(!1),ct(),P5(),ts(),j5(),$5(),Z5();else if(A.data.type==="DESELECT_ELEMENT")ct();else if(A.data.type==="RESET_EDIT_MODE")ct();else if(A.data.type==="SELECT_PARENT")lt();else if(A.data.type==="ELEMENT_CHANGE")tt(A.data.content);else if(A.data.type==="OVERRIDE_STYLES")Y5(A.data.css||"",A.data.styleType);else if(A.data.type==="INJECT_SCRIPT")X5(A.data.content||"");else if(A.data.type==="SET_THEME")(A.data.theme==="light"||A.data.theme==="dark")&&h5(A.data.theme);else if(A.data.type==="GO_TO_SOURCE_STATE"){if(s){m(s,A.data.enabled??!1,A.data.disabledReason??null);const Y=s.parentElement!==null&&s.parentElement!==document.body&&s.parentElement!==document.documentElement,J=ot(s),F=d(s);Zg(s,lt,U,Y,jt,xt,J.hasPrevious,J.hasNext,I,F.enabled,F.disabledReason),al(s)}}else A.data.type==="ASK_AI_STATE"&&s&&(g(s,A.data.enabled??!1),h(s).enabled?(Kg(s,at),df(s)):kf())});return V.useEffect(()=>(window.addEventListener("message",dt),window.parent!==window&&(window.parent.postMessage({type:"EDIT_MODE_AVAILABLE",version:Ce},"*"),window.parent.postMessage({type:"EDIT_MODE_AVAILABLE",version:Ce},"*")),()=>{window.removeEventListener("message",dt),window.parent!==window&&(window.parent.postMessage({type:"EDIT_MODE_UNAVAILABLE",version:Ce},"*"),window.parent.postMessage({type:"EDIT_MODE_UNAVAILABLE",version:Ce},"*"))}),[dt]),V.useEffect(()=>{if(!n)return;const A=F=>{if(n){if(F.type==="mousedown"){const nt=F.target;if(nt&&Nf(nt)&&l!==nt){x(nt);return}}l||(F.preventDefault(),F.stopPropagation())}},E=F=>{if(n){if(F.key==="Escape"){F.preventDefault(),F.stopPropagation(),ct();return}M5(F,l)}},k=F=>{if(!n)return;const nt=F.target;nt.closest("#macaly-internal-info-badge")||nt.closest("#macaly-internal-ai-badge")||(F.preventDefault(),F.stopPropagation(),Y(nt))},Y=F=>{rt(F)},J=F=>{if(!n)return;const nt=F.target;if(nt.closest("#macaly-internal-info-badge")||nt.closest("#macaly-internal-ai-badge")){ts();return}if(l&&nt===l){ts();return}nt&&nt!==document.body&&nt!==document.documentElement?G5(nt):ts()};return document.addEventListener("click",k,{capture:!0}),document.addEventListener("mousemove",J,{capture:!0}),document.addEventListener("mousedown",A,{capture:!0}),document.addEventListener("mouseup",A,{capture:!0}),document.addEventListener("submit",A,{capture:!0}),document.addEventListener("keydown",E,{capture:!0}),document.addEventListener("keydown",A,{capture:!0}),document.addEventListener("keyup",A,{capture:!0}),document.addEventListener("keypress",A,{capture:!0}),()=>{document.removeEventListener("click",k,{capture:!0}),document.removeEventListener("mousemove",J,{capture:!0}),document.removeEventListener("mousedown",A,{capture:!0}),document.removeEventListener("mouseup",A,{capture:!0}),document.removeEventListener("submit",A,{capture:!0}),document.removeEventListener("keydown",E,{capture:!0}),document.removeEventListener("keydown",A,{capture:!0}),document.removeEventListener("keyup",A,{capture:!0}),document.removeEventListener("keypress",A,{capture:!0}),ts()}},[n,s,l]),V.useEffect(()=>s?K5(s,E=>{al(E),document.getElementById("macaly-internal-ai-badge")&&df(E)},I5):void 0,[s]),{enabled:n,toggleEditMode:()=>a(!n),editingElement:l}};function W5({children:n}){return J5(),n}function Qy(n){return n==="localhost"||n==="127.0.0.1"||n==="[::1]"}function Fg(n){return!!(Qy(n)||n==="macaly.com"||n.endsWith(".macaly.com")||/^macaly(-[^.]+)?\.vercel\.app$/.test(n))}function t6(n){return!!(Qy(n)||n==="macaly.dev"||n.endsWith(".macaly.dev")||n==="macaly-user-data.dev"||n.endsWith(".macaly-user-data.dev"))}function Jg(n,a){if(n==="file://")return!0;try{const s=new URL(n);return a(s.hostname)}catch{return!1}}function e6(){return window.location.protocol==="file:"?!0:t6(window.location.hostname)}function n6(){const n=window.location.ancestorOrigins;return n&&n.length>0?Jg(n[0],Fg):document.referrer?Jg(document.referrer,Fg):!1}function a6(){return typeof window>"u"||window.parent===window||!e6()?!1:n6()}var i6=({children:n})=>{const[a,s]=V.useState(!1);return V.useEffect(()=>{a6()&&s(!0)},[]),a?D.jsx(s6,{children:n}):D.jsx(D.Fragment,{children:n})},s6=({children:n})=>(t5(),i5(),s5(),o5(),e5(),n5(),D.jsx(r5,{children:D.jsx(W5,{children:n})}));const ti="1.41.0";var Sn=[],Fe=[],r6=Uint8Array,hf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
132+/";for(var Ji=0,o6=hf.length;Ji<o6;++Ji)Sn[Ji]=hf[Ji],Fe[hf.charCodeAt(Ji)]=Ji;Fe[45]=62;Fe[95]=63;function l6(n){var a=n.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=n.indexOf("=");s===-1&&(s=a);var o=s===a?0:4-s%4;return[s,o]}function u6(n,a,s){return(a+s)*3/4-s}function Tr(n){var a,s=l6(n),o=s[0],l=s[1],f=new r6(u6(n,o,l)),d=0,m=l>0?o-4:o,h;for(h=0;h<m;h+=4)a=Fe[n.charCodeAt(h)]<<18|Fe[n.charCodeAt(h+1)]<<12|Fe[n.charCodeAt(h+2)]<<6|Fe[n.charCodeAt(h+3)],f[d++]=a>>16&255,f[d++]=a>>8&255,f[d++]=a&255;return l===2&&(a=Fe[n.charCodeAt(h)]<<2|Fe[n.charCodeAt(h+1)]>>4,f[d++]=a&255),l===1&&(a=Fe[n.charCodeAt(h)]<<10|Fe[n.charCodeAt(h+1)]<<4|Fe[n.charCodeAt(h+2)]>>2,f[d++]=a>>8&255,f[d++]=a&255),f}function c6(n){return Sn[n>>18&63]+Sn[n>>12&63]+Sn[n>>6&63]+Sn[n&63]}function f6(n,a,s){for(var o,l=[],f=a;f<s;f+=3)o=(n[f]<<16&16711680)+(n[f+1]<<8&65280)+(n[f+2]&255),l.push(c6(o));return l.join("")}function xr(n){for(var a,s=n.length,o=s%3,l=[],f=16383,d=0,m=s-o;d<m;d+=f)l.push(f6(n,d,d+f>m?m:d+f));return o===1?(a=n[s-1],l.push(Sn[a>>2]+Sn[a<<4&63]+"==")):o===2&&(a=(n[s-2]<<8)+n[s-1],l.push(Sn[a>>10]+Sn[a>>4&63]+Sn[a<<2&63]+"=")),l.join("")}function Te(n){if(n===void 0)return{};if(!Iy(n))throw new Error(`The arguments to a Convex function must be an object. Received: ${n}`);return n}function Py(n){if(typeof n>"u")throw new Error("Client created with undefined deployment address. If you used an environment variable, check that it's set.");if(typeof n!="string")throw new Error(`Invalid deployment address: found ${n}".`);if(!(n.startsWith("http:")||n.startsWith("https:")))throw new Error(`Invalid deployment address: Must start with "https://" or "http://". Found "${n}".`);try{new URL(n)}catch{throw new Error(`Invalid deployment address: "${n}" is not a valid URL. If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}if(n.endsWith(".convex.site"))throw new Error(`Invalid deployment address: "${n}" ends with .convex.site, which is used for HTTP Actions. Convex deployment URLs typically end with .convex.cloud? If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}function Iy(n){const a=typeof n=="object",s=Object.getPrototypeOf(n),o=s===null||s===Object.prototype||s?.constructor?.name==="Object";return a&&o}const Gy=!0,ls=BigInt("-9223372036854775808"),$f=BigInt("9223372036854775807"),Df=BigInt("0"),d6=BigInt("8"),h6=BigInt("256");function Yy(n){return Number.isNaN(n)||!Number.isFinite(n)||Object.is(n,-0)}function m6(n){n<Df&&(n-=ls+ls);let a=n.toString(16);a.length%2===1&&(a="0"+a);const s=new Uint8Array(new ArrayBuffer(8));let o=0;for(const l of a.match(/.{2}/g).reverse())s.set([parseInt(l,16)],o++),n>>=d6;return xr(s)}function p6(n){const a=Tr(n);if(a.byteLength!==8)throw new Error(`Received ${a.byteLength} bytes, expected 8 for $integer`);let s=Df,o=Df;for(const l of a)s+=BigInt(l)*h6**o,o++;return s>$f&&(s+=ls+ls),s}function g6(n){if(n<ls||$f<n)throw new Error(`BigInt ${n} does not fit into a 64-bit signed integer.`);const a=new ArrayBuffer(8);return new DataView(a).setBigInt64(0,n,!0),xr(new Uint8Array(a))}function y6(n){const a=Tr(n);if(a.byteLength!==8)throw new Error(`Received ${a.byteLength} bytes, expected 8 for $integer`);return new DataView(a.buffer).getBigInt64(0,!0)}const v6=DataView.prototype.setBigInt64?g6:m6,b6=DataView.prototype.getBigInt64?y6:p6,Wg=1024;function $y(n){if(n.length>Wg)throw new Error(`Field name ${n} exceeds maximum field name length ${Wg}.`);if(n.startsWith("$"))throw new Error(`Field name ${n} starts with a '$', which is reserved.`);for(let a=0;a<n.length;a+=1){const s=n.charCodeAt(a);if(s<32||s>=127)throw new Error(`Field name ${n} has invalid character '${n[a]}': Field names can only contain non-control ASCII characters`)}}function rn(n){if(n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string")return n;if(Array.isArray(n))return n.map(o=>rn(o));if(typeof n!="object")throw new Error(`Unexpected type of ${n}`);const a=Object.entries(n);if(a.length===1){const o=a[0][0];
132if(o==="$bytes"){if(typeof n.$bytes!="string")throw new Error(`Malformed $bytes field on ${n}`);return Tr(n.$bytes).buffer}if(o==="$integer"){if(typeof n.$integer!="string")throw new Error(`Malformed $integer field on ${n}`);return b6(n.$integer)}if(o==="$float"){if(typeof n.$float!="string")throw new Error(`Malformed $float field on ${n}`);const l=Tr(n.$float);if(l.byteLength!==8)throw new Error(`Received ${l.byteLength} bytes, expected 8 for $float`);const d=new DataView(l.buffer).getFloat64(0,Gy);if(!Yy(d))throw new Error(`Float ${d} should be encoded as a number`);return d}if(o==="$set")throw new Error("Received a Set which is no longer supported as a Convex type.");if(o==="$map")throw new Error("Received a Map which is no longer supported as a Convex type.")}const s={};for(const[o,l]of Object.entries(n))$y(o),s[o]=rn(l);return s}const t1=16384;function vr(n){const a=JSON.stringify(n,(s,o)=>o===void 0?"undefined":typeof o=="bigint"?`${o.toString()}n`:o);if(a.length>t1){const s="[...truncated]";let o=t1-s.length;const l=a.codePointAt(o-1);return l!==void 0&&l>65535&&(o-=1),a.substring(0,o)+s}return a}function zf(n,a,s,o){if(n===void 0){const d=s&&` (present at path ${s} in original object ${vr(a)})`;throw new Error(`undefined is not a valid Convex value${d}. To learn about Convex's supported types, see https://docs.convex.dev/using/types.`)}if(n===null)return n;if(typeof n=="bigint"){if(n<ls||$f<n)throw new Error(`BigInt ${n} does not fit into a 64-bit signed integer.`);return{$integer:v6(n)}}if(typeof n=="number")if(Yy(n)){const d=new ArrayBuffer(8);return new DataView(d).setFloat64(0,n,Gy),{$float:xr(new Uint8Array(d))}}else return n;if(typeof n=="boolean"||typeof n=="string")return n;if(n instanceof ArrayBuffer)return{$bytes:xr(new Uint8Array(n))};if(Array.isArray(n))return n.map((d,m)=>zf(d,a,s+`[${m}]`));if(n instanceof Set)throw new Error(mf(s,"Set",[...n],a));if(n instanceof Map)throw new Error(mf(s,"Map",[...n],a));if(!Iy(n)){const d=n?.constructor?.name,m=d?`${d} `:"";throw new Error(mf(s,m,n,a))}const l={},f=Object.entries(n);f.sort(([d,m],[h,g])=>d===h?0:d<h?-1:1);for(const[d,m]of f)m!==void 0&&($y(d),l[d]=zf(m,a,s+`.${d}`));return l}function mf(n,a,s,o){return n?`${a}${vr(s)} is not a supported Convex type (present at path ${n} in original object ${vr(o)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.`:`${a}${vr(s)} is not a supported Convex type.`}function Ae(n){return zf(n,n,"")}var S6=Object.defineProperty,w6=(n,a,s)=>a in n?S6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,pf=(n,a,s)=>w6(n,typeof a!="symbol"?a+"":a,s),e1,n1;const E6=Symbol.for("ConvexError");class ai extends(n1=Error,e1=E6,n1){constructor(a){super(typeof a=="string"?a:vr(a)),pf(this,"name","ConvexError"),pf(this,"data"),pf(this,e1,!0),this.data=a}}const Xy=()=>Array.from({length:4},()=>0);Xy();Xy();var C6=Object.defineProperty,_6=(n,a,s)=>a in n?C6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,a1=(n,a,s)=>_6(n,typeof a!="symbol"?a+"":a,s);const T6="color:rgb(0, 145, 255)";function Zy(n){switch(n){case"query":return"Q";case"mutation":return"M";case"action":return"A";case"any":return"?"}}class Ky{constructor(a){a1(this,"_onLogLineFuncs"),a1(this,"_verbose"),this._onLogLineFuncs={},this._verbose=a.verbose}addLogLineListener(a){let s=Math.random().toString(36).substring(2,15);for(let o=0;o<10&&this._onLogLineFuncs[s]!==void 0;o++)s=Math.random().toString(36).substring(2,15);return this._onLogLineFuncs[s]=a,()=>{delete this._onLogLineFuncs[s]}}logVerbose(...a){if(this._verbose)for(const s of Object.values(this._onLogLineFuncs))s("debug",`${new Date().toISOString()}`,...a)}log(...a){for(const s of Object.values(this._onLogLineFuncs))s("info",...a)}warn(...a){for(const s of Object.values(this._onLogLineFuncs))s("warn",...a)}error(...a){for(const s of Object.values(this._onLogLineFuncs))s("error",...a)}}function Xf(n){const a=new Ky(n);return a.addLogLineListener((s,...o)=>{switch(s){case"debug":console.debug(...o);break;case"info":console.log(...o);break;case"warn":console.warn(...o);break;case"error":console.error(...o);break;default:console.log(...o)}}),a}function Zf(n){return new Ky(n)}function Ra(n,a,s,o,l){const f=Zy(s);if(typeof l=="object"&&(l=`ConvexError ${JSON.stringify(l.errorData,null,2)}`),a==="info"){const d=l.match(/^\[.*?\] /);if(d===null){n.error(`[CONVEX ${f}(${o})] Could not parse console.log`);return}const m=l.slice(1,d[0].length-2),h=l.slice(d[0].length);n.log(`%c[CONVEX ${f}(${o})] [${m}]`,T6,h)}else n.error(`[CONVEX ${f}(${o})] ${l}`)}function x6(n,a){const s=`[CONVEX FATAL ERROR] ${a}`;return n.error(s),new Error(s)}function as(n,a,s){return`[CONVEX ${Zy(n)}(${a})] ${s.errorMessage} 133 Called by client`}function Bf(n,a){return a.data=n.errorData,a}function li(n){const a=n.split(":");let s,o;return a.length===1?(s=a[0],o="default"):(s=a.slice(0,a.length-1).join(":"),o=a[a.length-1]),s.endsWith(".js")&&(s=s.slice(0,-3)),`${s}:${o}`}function ri(n,a){return JSON.stringify({udfPath:li(n),args:Ae(a)})}function i1(n,a,s){const{initialNumItems:o,id:l}=s;return JSON.stringify({type:"paginated",udfPath:li(n),args:Ae(a),options:Ae({initialNumItems:o,id:l})})}var R6=Object.defineProperty,A6=(n,a,s)=>
133a in n?R6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,gn=(n,a,s)=>A6(n,typeof a!="symbol"?a+"":a,s);class M6{constructor(){gn(this,"nextQueryId"),gn(this,"querySetVersion"),gn(this,"querySet"),gn(this,"queryIdToToken"),gn(this,"identityVersion"),gn(this,"auth"),gn(this,"outstandingQueriesOlderThanRestart"),gn(this,"outstandingAuthOlderThanRestart"),gn(this,"paused"),gn(this,"pendingQuerySetModifications"),this.nextQueryId=0,this.querySetVersion=0,this.identityVersion=0,this.querySet=new Map,this.queryIdToToken=new Map,this.outstandingQueriesOlderThanRestart=new Set,this.outstandingAuthOlderThanRestart=!1,this.paused=!1,this.pendingQuerySetModifications=new Map}hasSyncedPastLastReconnect(){return this.outstandingQueriesOlderThanRestart.size===0&&!this.outstandingAuthOlderThanRestart}markAuthCompletion(){this.outstandingAuthOlderThanRestart=!1}subscribe(a,s,o,l){const f=li(a),d=ri(f,s),m=this.querySet.get(d);if(m!==void 0)return m.numSubscribers+=1,{queryToken:d,modification:null,unsubscribe:()=>this.removeSubscriber(d)};{const h=this.nextQueryId++,g={id:h,canonicalizedUdfPath:f,args:s,numSubscribers:1,journal:o,componentPath:l};this.querySet.set(d,g),this.queryIdToToken.set(h,d);const v=this.querySetVersion,y=this.querySetVersion+1,C={type:"Add",queryId:h,udfPath:f,args:[Ae(s)],journal:o,componentPath:l};return this.paused?this.pendingQuerySetModifications.set(h,C):this.querySetVersion=y,{queryToken:d,modification:{type:"ModifyQuerySet",baseVersion:v,newVersion:y,modifications:[C]},unsubscribe:()=>this.removeSubscriber(d)}}}transition(a){for(const s of a.modifications)switch(s.type){case"QueryUpdated":case"QueryFailed":{this.outstandingQueriesOlderThanRestart.delete(s.queryId);const o=s.journal;if(o!==void 0){const l=this.queryIdToToken.get(s.queryId);l!==void 0&&(this.querySet.get(l).journal=o)}break}case"QueryRemoved":{this.outstandingQueriesOlderThanRestart.delete(s.queryId);break}default:throw new Error(`Invalid modification ${s.type}`)}}queryId(a,s){const o=li(a),l=ri(o,s),f=this.querySet.get(l);return f!==void 0?f.id:null}isCurrentOrNewerAuthVersion(a){return a>=this.identityVersion}getAuth(){return this.auth}setAuth(a){this.auth={tokenType:"User",value:a};const s=this.identityVersion;return this.paused||(this.identityVersion=s+1),{type:"Authenticate",baseVersion:s,...this.auth}}setAdminAuth(a,s){const o={tokenType:"Admin",value:a,impersonating:s};this.auth=o;const l=this.identityVersion;return this.paused||(this.identityVersion=l+1),{type:"Authenticate",baseVersion:l,...o}}clearAuth(){this.auth=void 0,this.markAuthCompletion();const a=this.identityVersion;return this.paused||(this.identityVersion=a+1),{type:"Authenticate",tokenType:"None",baseVersion:a}}hasAuth(){return!!this.auth}isNewAuth(a){return this.auth?.value!==a}queryPath(a){const s=this.queryIdToToken.get(a);return s?this.querySet.get(s).canonicalizedUdfPath:null}queryArgs(a){const s=this.queryIdToToken.get(a);return s?this.querySet.get(s).args:null}queryToken(a){return this.queryIdToToken.get(a)??null}queryJournal(a){return this.querySet.get(a)?.journal}restart(){this.unpause(),this.outstandingQueriesOlderThanRestart.clear();const a=[];for(const l of this.querySet.values()){const f={type:"Add",queryId:l.id,udfPath:l.canonicalizedUdfPath,args:[Ae(l.args)],journal:l.journal,componentPath:l.componentPath};a.push(f),this.outstandingQueriesOlderThanRestart.add(l.id)}this.querySetVersion=1;const s={type:"ModifyQuerySet",baseVersion:0,newVersion:1,modifications:a};if(!this.auth)return this.identityVersion=0,[s,void 0];this.outstandingAuthOlderThanRestart=!0;const o={type:"Authenticate",baseVersion:0,...this.auth};return this.identityVersion=1,[s,o]}pause(){this.paused=!0}resume(){const a=this.pendingQuerySetModifications.size>0?{type:"ModifyQuerySet",baseVersion:this.querySetVersion,newVersion:++this.querySetVersion,modifications:Array.from(this.pendingQuerySetModifications.values())}:void 0,s=this.auth!==void 0?{type:"Authenticate",baseVersion:this.identityVersion++,...this.auth}:void 0;return this.unpause(),[a,s]}unpause(){this.paused=!1,this.pendingQuerySetModifications.clear()}removeSubscriber(a){const s=this.querySet.get(a);if(s.numSubscribers>1)return s.numSubscribers-=1,null;{this.querySet.delete(a),this.queryIdToToken.delete(s.id),this.outstandingQueriesOlderThanRestart.delete(s.id);const o=this.querySetVersion,l=this.querySetVersion+1,f={type:"Remove",queryId:s.id};return this.paused?this.pendingQuerySetModifications.has(s.id)?this.pendingQuerySetModifications.delete(s.id):this.pendingQuerySetModifications.set(s.id,f):this.querySetVersion=l,{type:"ModifyQuerySet",baseVersion:o,newVersion:l,modifications:[f]}}}}var O6=Object.defineProperty,L6=(n,a,s)=>
133a in n?O6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,il=(n,a,s)=>L6(n,typeof a!="symbol"?a+"":a,s);class N6{constructor(a,s){this.logger=a,this.markConnectionStateDirty=s,il(this,"inflightRequests"),il(this,"requestsOlderThanRestart"),il(this,"inflightMutationsCount",0),il(this,"inflightActionsCount",0),this.inflightRequests=new Map,this.requestsOlderThanRestart=new Set}request(a,s){const o=new Promise(l=>{const f=s?"Requested":"NotSent";this.inflightRequests.set(a.requestId,{message:a,status:{status:f,requestedAt:new Date,onResult:l}}),a.type==="Mutation"?this.inflightMutationsCount++:a.type==="Action"&&this.inflightActionsCount++});return this.markConnectionStateDirty(),o}onResponse(a){const s=this.inflightRequests.get(a.requestId);if(s===void 0||s.status.status==="Completed")return null;const o=s.message.type==="Mutation"?"mutation":"action",l=s.message.udfPath;for(const h of a.logLines)Ra(this.logger,"info",o,l,h);const f=s.status;let d,m;if(a.success)d={success:!0,logLines:a.logLines,value:rn(a.result)},m=()=>f.onResult(d);else{const h=a.result,{errorData:g}=a;Ra(this.logger,"error",o,l,h),d={success:!1,errorMessage:h,errorData:g!==void 0?rn(g):void 0,logLines:a.logLines},m=()=>f.onResult(d)}return a.type==="ActionResponse"||!a.success?(m(),this.inflightRequests.delete(a.requestId),this.requestsOlderThanRestart.delete(a.requestId),s.message.type==="Action"?this.inflightActionsCount--:s.message.type==="Mutation"&&this.inflightMutationsCount--,this.markConnectionStateDirty(),{requestId:a.requestId,result:d}):(s.status={status:"Completed",result:d,ts:a.ts,onResolve:m},null)}removeCompleted(a){const s=new Map;for(const[o,l]of this.inflightRequests.entries()){const f=l.status;f.status==="Completed"&&f.ts.lessThanOrEqual(a)&&(f.onResolve(),s.set(o,f.result),l.message.type==="Mutation"?this.inflightMutationsCount--:l.message.type==="Action"&&this.inflightActionsCount--,this.inflightRequests.delete(o),this.requestsOlderThanRestart.delete(o))}return s.size>0&&this.markConnectionStateDirty(),s}restart(){this.requestsOlderThanRestart=new Set(this.inflightRequests.keys());const a=[];for(const[s,o]of this.inflightRequests){if(o.status.status==="NotSent"){o.status.status="Requested",a.push(o.message);continue}if(o.message.type==="Mutation")a.push(o.message);else if(o.message.type==="Action"){if(this.inflightRequests.delete(s),this.requestsOlderThanRestart.delete(s),this.inflightActionsCount--,o.status.status==="Completed")throw new Error("Action should never be in 'Completed' state");o.status.onResult({success:!1,errorMessage:"Connection lost while action was in flight",logLines:[]})}}return this.markConnectionStateDirty(),a}resume(){const a=[];for(const[,s]of this.inflightRequests)if(s.status.status==="NotSent"){s.status.status="Requested",a.push(s.message);continue}return a}hasIncompleteRequests(){for(const a of this.inflightRequests.values())if(a.status.status==="Requested")return!0;return!1}hasInflightRequests(){return this.inflightRequests.size>0}hasSyncedPastLastReconnect(){return this.requestsOlderThanRestart.size===0}timeOfOldestInflightRequest(){if(this.inflightRequests.size===0)return null;let a=Date.now();for(const s of this.inflightRequests.values())s.status.status!=="Completed"&&s.status.requestedAt.getTime()<a&&(a=s.status.requestedAt.getTime());return new Date(a)}inflightMutations(){return this.inflightMutationsCount}inflightActions(){return this.inflightActionsCount}}const Rr=Symbol.for("functionName"),k6=Symbol.for("toReferencePath");function D6(n){return n[k6]??null}function z6(n){return n.startsWith("function://")}function B6(n){let a;if(typeof n=="string")z6(n)?a={functionHandle:n}:a={name:n};else if(n[Rr])a={name:n[Rr]};else{const s=D6(n);if(!s)throw new Error(`${n} is not a functionReference`);a={reference:s}}return a}function te(n){const a=B6(n);if(a.name===void 0)throw a.functionHandle!==void 0?new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received function handle ${a.functionHandle}`):a.reference!==void 0?new Error(`Expected function reference in the current component like "api.file.func" or "internal.file.func", but received reference ${a.reference}`):new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received ${JSON.stringify(a)}`);if(typeof n=="string")return n;const s=n[Rr];if(!s)throw new Error(`${n} is not a functionReference`);return s}function Kf(n){return{[Rr]:n}}
133function Fy(n=[]){const a={get(s,o){if(typeof o=="string"){const l=[...n,o];return Fy(l)}else if(o===Rr){if(n.length<2){const d=["api",...n].join(".");throw new Error(`API path is expected to be of the form \`api.moduleName.functionName\`. Found: \`${d}\``)}const l=n.slice(0,-1).join("/"),f=n[n.length-1];return f==="default"?l:l+":"+f}else return o===Symbol.toStringTag?"FunctionReference":void 0}};return new Proxy({},a)}const FC=Fy();var U6=Object.defineProperty,q6=(n,a,s)=>a in n?U6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,_l=(n,a,s)=>q6(n,typeof a!="symbol"?a+"":a,s);class Ar{constructor(a){_l(this,"queryResults"),_l(this,"modifiedQueries"),this.queryResults=a,this.modifiedQueries=[]}getQuery(a,...s){const o=Te(s[0]),l=te(a),f=this.queryResults.get(ri(l,o));if(f!==void 0)return Ar.queryValue(f.result)}getAllQueries(a){const s=[],o=te(a);for(const l of this.queryResults.values())l.udfPath===li(o)&&s.push({args:l.args,value:Ar.queryValue(l.result)});return s}setQuery(a,s,o){const l=Te(s),f=te(a),d=ri(f,l);let m;o===void 0?m=void 0:m={success:!0,value:o,logLines:[]};const h={udfPath:f,args:l,result:m};this.queryResults.set(d,h),this.modifiedQueries.push(d)}static queryValue(a){if(a!==void 0)return a.success?a.value:void 0}}class j6{constructor(){_l(this,"queryResults"),_l(this,"optimisticUpdates"),this.queryResults=new Map,this.optimisticUpdates=[]}ingestQueryResultsFromServer(a,s){this.optimisticUpdates=this.optimisticUpdates.filter(d=>!s.has(d.mutationId));const o=this.queryResults;this.queryResults=new Map(a);const l=new Ar(this.queryResults);for(const d of this.optimisticUpdates)d.update(l);const f=[];for(const[d,m]of this.queryResults){const h=o.get(d);(h===void 0||h.result!==m.result)&&f.push(d)}return f}applyOptimisticUpdate(a,s){this.optimisticUpdates.push({update:a,mutationId:s});const o=new Ar(this.queryResults);return a(o),o.modifiedQueries}rawQueryResult(a){const s=this.queryResults.get(a);if(s!==void 0)return s.result}queryResult(a){const s=this.queryResults.get(a);if(s===void 0)return;const o=s.result;if(o!==void 0){if(o.success)return o.value;throw o.errorData!==void 0?Bf(o,new ai(as("query",s.udfPath,o))):new Error(as("query",s.udfPath,o))}}hasQueryResult(a){return this.queryResults.get(a)!==void 0}queryLogs(a){return this.queryResults.get(a)?.result?.logLines}}var H6=Object.defineProperty,V6=(n,a,s)=>a in n?H6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,gf=(n,a,s)=>V6(n,typeof a!="symbol"?a+"":a,s);class _e{constructor(a,s){gf(this,"low"),gf(this,"high"),gf(this,"__isUnsignedLong__"),this.low=a|0,this.high=s|0,this.__isUnsignedLong__=!0}static isLong(a){return(a&&a.__isUnsignedLong__)===!0}static fromBytesLE(a){return new _e(a[0]|a[1]<<8|a[2]<<16|a[3]<<24,a[4]|a[5]<<8|a[6]<<16|a[7]<<24)}toBytesLE(){const a=this.high,s=this.low;return[s&255,s>>>8&255,s>>>16&255,s>>>24,a&255,a>>>8&255,a>>>16&255,a>>>24]}static fromNumber(a){return isNaN(a)||a<0?s1:a>=Q6?P6:new _e(a%br|0,a/br|0)}toString(){return(BigInt(this.high)*BigInt(br)+BigInt(this.low)).toString()}equals(a){return _e.isLong(a)||(a=_e.fromValue(a)),this.high>>>31===1&&a.high>>>31===1?!1:this.high===a.high&&this.low===a.low}notEquals(a){return!this.equals(a)}comp(a){return _e.isLong(a)||(a=_e.fromValue(a)),this.equals(a)?0:a.high>>>0>this.high>>>0||a.high===this.high&&a.low>>>0>this.low>>>0?-1:1}lessThanOrEqual(a){return this.comp(a)<=0}static fromValue(a){return typeof a=="number"?_e.fromNumber(a):new _e(a.low,a.high)}}const s1=new _e(0,0),r1=65536,br=r1*r1,Q6=br*br,P6=new _e(-1,-1);var I6=Object.defineProperty,G6=(n,a,s)=>a in n?I6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,sl=(n,a,s)=>G6(n,typeof a!="symbol"?a+"":a,s);class o1{constructor(a,s){sl(this,"version"),sl(this,"remoteQuerySet"),sl(this,"queryPath"),sl(this,"logger"),this.version={querySet:0,ts:_e.fromNumber(0),identity:0},this.remoteQuerySet=new Map,this.queryPath=a,this.logger=s}transition(a){const s=a.startVersion;if(this.version.querySet!==s.querySet||this.version.ts.notEquals(s.ts)||this.version.identity!==s.identity)throw new Error(`Invalid start version: ${s.ts.toString()}:${s.querySet}:${s.identity}, transitioning from ${this.version.ts.toString()}:${this.version.querySet}:${this.version.identity}`);for(const o of a.modifications)switch(o.type){case"QueryUpdated":{const l=this.queryPath(o.queryId);if(l)for(const d of o.logLines)Ra(this.logger,"info","query",l,d);const f=rn(o.value??null);this.remoteQuerySet.set(o.queryId,{success:!0,value:f,logLines:o.logLines});break}case"QueryFailed":{const l=this.queryPath(o.queryId);if(l)for(const d of o.logLines)Ra(this.logger,"info","query",l,d);const{errorData:f}=o;this.remoteQuerySet.set(o.queryId,{success:!1,errorMessage:o.errorMessage,errorData:f!==void 0?rn(f):void 0,logLines:o.logLines});break}case"QueryRemoved":{this.remoteQuerySet.delete(o.queryId);break}default:throw new Error(`Invalid modification ${o.type}`)}this.version=a.endVersion}remoteQueryResults(){return this.remoteQuerySet}timestamp(){return this.version.ts}}function yf(n){const a=Tr(n);return _e.fromBytesLE(Array.from(a))}function Y6(n){const a=new Uint8Array(n.toBytesLE());return xr(a)}function l1(n){switch(n.type){case"FatalError":case"AuthError":case"ActionResponse":case"TransitionChunk":case"Ping":return{...n};case"MutationResponse":return n.success?{...n,ts:yf(n.ts)}:{...n};case"Transition":return{...n,startVersion:{...n.startVersion,ts:yf(n.startVersion.ts)},endVersion:{...n.endVersion,ts:yf(n.endVersion.ts)}}}}function $6(n){switch(n.type){case"Authenticate":case"ModifyQuerySet":case"Mutation":case"Action":case"Event":return{...n};case"Connect":return n.maxObservedTimestamp!==void 0?{...n,maxObservedTimestamp:Y6(n.maxObservedTimestamp)}:{...n,maxObservedTimestamp:void 0}}}var X6=Object.defineProperty,Z6=(n,a,s)=>
133a in n?X6(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Ft=(n,a,s)=>Z6(n,typeof a!="symbol"?a+"":a,s);const K6=1e3,F6=1001,J6=1005,W6=4040;let gl;function es(){return gl===void 0&&(gl=Date.now()),typeof performance>"u"||!performance.now?Date.now():Math.round(gl+performance.now())}function u1(){return`t=${Math.round((es()-gl)/100)/10}s`}const Jy={InternalServerError:{timeout:1e3},SubscriptionsWorkerFullError:{timeout:3e3},TooManyConcurrentRequests:{timeout:3e3},CommitterFullError:{timeout:3e3},AwsTooManyRequestsException:{timeout:3e3},ExecuteFullError:{timeout:3e3},SystemTimeoutError:{timeout:3e3},ExpiredInQueue:{timeout:3e3},VectorIndexesUnavailable:{timeout:1e3},SearchIndexesUnavailable:{timeout:1e3},TableSummariesUnavailable:{timeout:1e3},VectorIndexTooLarge:{timeout:3e3},SearchIndexTooLarge:{timeout:3e3},TooManyWritesInTimePeriod:{timeout:3e3}};function tE(n){if(n===void 0)return"Unknown";for(const a of Object.keys(Jy))if(n.startsWith(a))return a;return"Unknown"}class eE{constructor(a,s,o,l,f,d){this.markConnectionStateDirty=f,this.debug=d,Ft(this,"socket"),Ft(this,"connectionCount"),Ft(this,"_hasEverConnected",!1),Ft(this,"lastCloseReason"),Ft(this,"transitionChunkBuffer",null),Ft(this,"defaultInitialBackoff"),Ft(this,"maxBackoff"),Ft(this,"retries"),Ft(this,"serverInactivityThreshold"),Ft(this,"reconnectDueToServerInactivityTimeout"),Ft(this,"scheduledReconnect",null),Ft(this,"networkOnlineHandler",null),Ft(this,"pendingNetworkRecoveryInfo",null),Ft(this,"uri"),Ft(this,"onOpen"),Ft(this,"onResume"),Ft(this,"onMessage"),Ft(this,"webSocketConstructor"),Ft(this,"logger"),Ft(this,"onServerDisconnectError"),this.webSocketConstructor=o,this.socket={state:"disconnected"},this.connectionCount=0,this.lastCloseReason="InitialConnect",this.defaultInitialBackoff=1e3,this.maxBackoff=16e3,this.retries=0,this.serverInactivityThreshold=6e4,this.reconnectDueToServerInactivityTimeout=null,this.uri=a,this.onOpen=s.onOpen,this.onResume=s.onResume,this.onMessage=s.onMessage,this.onServerDisconnectError=s.onServerDisconnectError,this.logger=l,this.setupNetworkListener(),this.connect()}setSocketState(a){this.socket=a,this._logVerbose(`socket state changed: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}`),this.markConnectionStateDirty()}setupNetworkListener(){typeof window>"u"||typeof window.addEventListener!="function"||this.networkOnlineHandler===null&&(this.networkOnlineHandler=()=>{this._logVerbose("network online event detected"),this.tryReconnectImmediately()},window.addEventListener("online",this.networkOnlineHandler),this._logVerbose("network online event listener registered"))}cleanupNetworkListener(){this.networkOnlineHandler&&typeof window<"u"&&typeof window.removeEventListener=="function"&&(window.removeEventListener("online",this.networkOnlineHandler),this.networkOnlineHandler=null,this._logVerbose("network online event listener removed"))}assembleTransition(a){if(a.partNumber<0||a.partNumber>=a.totalParts||a.totalParts===0||this.transitionChunkBuffer&&(this.transitionChunkBuffer.totalParts!==a.totalParts||this.transitionChunkBuffer.transitionId!==a.transitionId))throw this.transitionChunkBuffer=null,new Error("Invalid TransitionChunk");if(this.transitionChunkBuffer===null&&(this.transitionChunkBuffer={chunks:[],totalParts:a.totalParts,transitionId:a.transitionId}),a.partNumber!==this.transitionChunkBuffer.chunks.length){const s=this.transitionChunkBuffer.chunks.length;throw this.transitionChunkBuffer=null,new Error(`TransitionChunk received out of order: expected part ${s}, got ${a.partNumber}`)}if(this.transitionChunkBuffer.chunks.push(a.chunk),this.transitionChunkBuffer.chunks.length===a.totalParts){const s=this.transitionChunkBuffer.chunks.join("");this.transitionChunkBuffer=null;const o=l1(JSON.parse(s));if(o.type!=="Transition")throw new Error(`Expected Transition, got ${o.type} after assembling chunks`);return o}return null}connect(){if(this.socket.state==="terminated")return;if(this.socket.state!=="disconnected"&&this.socket.state!=="stopped")throw new Error("Didn't start connection from disconnected state: "+this.socket.state);const a=new this.webSocketConstructor(this.uri);this._logVerbose("constructed WebSocket"),this.setSocketState({state:"connecting",ws:a,paused:"no"}),this.resetServerInactivityTimeout(),a.onopen=()=>
133{if(this.logger.logVerbose("begin ws.onopen"),this.socket.state!=="connecting")throw new Error("onopen called with socket not in connecting state");if(this.setSocketState({state:"ready",ws:a,paused:this.socket.paused==="yes"?"uninitialized":"no"}),this.resetServerInactivityTimeout(),this.socket.paused==="no"&&(this._hasEverConnected=!0,this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason,clientTs:es()})),this.lastCloseReason!=="InitialConnect"&&(this.lastCloseReason?this.logger.log("WebSocket reconnected at",u1(),"after disconnect due to",this.lastCloseReason):this.logger.log("WebSocket reconnected at",u1())),this.connectionCount+=1,this.lastCloseReason=null,this.pendingNetworkRecoveryInfo!==null){const{timeSavedMs:s}=this.pendingNetworkRecoveryInfo;this.pendingNetworkRecoveryInfo=null,this.sendMessage({type:"Event",eventType:"NetworkRecoveryReconnect",event:{timeSavedMs:s}}),this.logger.log(`Network recovery reconnect saved ~${Math.round(s/1e3)}s of waiting`)}},a.onerror=s=>{this.transitionChunkBuffer=null;const o=s.message;o&&this.logger.log(`WebSocket error message: ${o}`)},a.onmessage=s=>{this.resetServerInactivityTimeout();const o=s.data.length;let l=l1(JSON.parse(s.data));if(this._logVerbose(`received ws message with type ${l.type}`),l.type==="Ping")return;if(l.type==="TransitionChunk"){const d=this.assembleTransition(l);if(!d)return;l=d,this._logVerbose(`assembled full ws message of type ${l.type}`)}this.transitionChunkBuffer!==null&&(this.transitionChunkBuffer=null,this.logger.log(`Received unexpected ${l.type} while buffering TransitionChunks`)),l.type==="Transition"&&this.reportLargeTransition({messageLength:o,transition:l}),this.onMessage(l).hasSyncedPastLastReconnect&&(this.retries=0,this.markConnectionStateDirty())},a.onclose=s=>{if(this._logVerbose("begin ws.onclose"),this.transitionChunkBuffer=null,this.lastCloseReason===null&&(this.lastCloseReason=s.reason||`closed with code ${s.code}`),s.code!==K6&&s.code!==F6&&s.code!==J6&&s.code!==W6){let l=`WebSocket closed with code ${s.code}`;s.reason&&(l+=`: ${s.reason}`),this.logger.log(l),this.onServerDisconnectError&&s.reason&&this.onServerDisconnectError(l)}const o=tE(s.reason);this.scheduleReconnect(o)}}socketState(){return this.socket.state}sendMessage(a){const s={type:a.type,...a.type==="Authenticate"&&a.tokenType==="User"?{value:`...${a.value.slice(-7)}`}:{}};if(this.socket.state==="ready"&&this.socket.paused==="no"){const o=$6(a),l=JSON.stringify(o);let f=!1;try{this.socket.ws.send(l),f=!0}catch(d){this.logger.log(`Failed to send message on WebSocket, reconnecting: ${d}`),this.closeAndReconnect("FailedToSendMessage")}return this._logVerbose(`${f?"sent":"failed to send"} message with type ${a.type}: ${JSON.stringify(s)}`),!0}return this._logVerbose(`message not sent (socket state: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}): ${JSON.stringify(s)}`),!1}resetServerInactivityTimeout(){this.socket.state!=="terminated"&&(this.reconnectDueToServerInactivityTimeout!==null&&(clearTimeout(this.reconnectDueToServerInactivityTimeout),this.reconnectDueToServerInactivityTimeout=null),this.reconnectDueToServerInactivityTimeout=setTimeout(()=>{this.closeAndReconnect("InactiveServer")},this.serverInactivityThreshold))}scheduleReconnect(a){this.scheduledReconnect&&(clearTimeout(this.scheduledReconnect.timeout),this.scheduledReconnect=null),this.socket={state:"disconnected"};const s=this.nextBackoff(a);this.markConnectionStateDirty(),this.logger.log(`Attempting reconnect in ${Math.round(s)}ms`);const o=es(),l=setTimeout(()=>{this.scheduledReconnect?.timeout===l&&(this.scheduledReconnect=null,this.connect())},s);this.scheduledReconnect={timeout:l,scheduledAt:o,backoffMs:s}}closeAndReconnect(a){switch(this._logVerbose(`begin closeAndReconnect with reason ${a}`),this.socket.state){case"disconnected":case"terminated":case"stopped":return;case"connecting":case"ready":{this.lastCloseReason=a,this.close(),this.scheduleReconnect("client");return}default:this.socket}}close(){switch(this.transitionChunkBuffer=null,this.socket.state){case"disconnected":case"terminated":case"stopped":return Promise.resolve();case"connecting":{const a=this.socket.ws;return a.onmessage=s=>{this._logVerbose("Ignoring message received after close")},new Promise(s=>
133{a.onclose=()=>{this._logVerbose("Closed after connecting"),s()},a.onopen=()=>{this._logVerbose("Opened after connecting"),a.close()}})}case"ready":{this._logVerbose("ws.close called");const a=this.socket.ws;a.onmessage=o=>{this._logVerbose("Ignoring message received after close")};const s=new Promise(o=>{a.onclose=()=>{o()}});return a.close(),s}default:return this.socket,Promise.resolve()}}terminate(){switch(this.reconnectDueToServerInactivityTimeout&&clearTimeout(this.reconnectDueToServerInactivityTimeout),this.scheduledReconnect&&(clearTimeout(this.scheduledReconnect.timeout),this.scheduledReconnect=null),this.cleanupNetworkListener(),this.socket.state){case"terminated":case"stopped":case"disconnected":case"connecting":case"ready":{const a=this.close();return this.setSocketState({state:"terminated"}),a}default:throw this.socket,new Error(`Invalid websocket state: ${this.socket.state}`)}}stop(){switch(this.socket.state){case"terminated":return Promise.resolve();case"connecting":case"stopped":case"disconnected":case"ready":{this.cleanupNetworkListener();const a=this.close();return this.socket={state:"stopped"},a}default:return this.socket,Promise.resolve()}}tryRestart(){switch(this.socket.state){case"stopped":break;case"terminated":case"connecting":case"ready":case"disconnected":this.logger.logVerbose("Restart called without stopping first");return;default:this.socket}this.setupNetworkListener(),this.connect()}pause(){switch(this.socket.state){case"disconnected":case"stopped":case"terminated":return;case"connecting":case"ready":{this.socket={...this.socket,paused:"yes"};return}default:{this.socket;return}}}tryReconnectImmediately(){if(this._logVerbose("tryReconnectImmediately called"),this.socket.state!=="disconnected"){this._logVerbose(`tryReconnectImmediately called but socket state is ${this.socket.state}, no action taken`);return}let a=null;if(this.scheduledReconnect){const s=es()-this.scheduledReconnect.scheduledAt;a=Math.max(0,this.scheduledReconnect.backoffMs-s),this._logVerbose(`would have waited ${Math.round(a)}ms more (backoff was ${Math.round(this.scheduledReconnect.backoffMs)}ms, elapsed ${Math.round(s)}ms)`),clearTimeout(this.scheduledReconnect.timeout),this.scheduledReconnect=null,this._logVerbose("canceled scheduled reconnect")}this.logger.log("Network recovery detected, reconnecting immediately"),this.pendingNetworkRecoveryInfo=a!==null?{timeSavedMs:a}:null,this.connect()}resume(){switch(this.socket.state){case"connecting":this.socket={...this.socket,paused:"no"};return;case"ready":this.socket.paused==="uninitialized"?(this.socket={...this.socket,paused:"no"},this._hasEverConnected=!0,this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason,clientTs:es()})):this.socket.paused==="yes"&&(this.socket={...this.socket,paused:"no"},this.onResume());return;case"terminated":case"stopped":case"disconnected":return;default:this.socket}this.connect()}connectionState(){return{isConnected:this.socket.state==="ready",hasEverConnected:this._hasEverConnected,connectionCount:this.connectionCount,connectionRetries:this.retries}}_logVerbose(a){this.logger.logVerbose(a)}nextBackoff(a){const o=(a==="client"?100:a==="Unknown"?this.defaultInitialBackoff:Jy[a].timeout)*Math.pow(2,this.retries);this.retries+=1;const l=Math.min(o,this.maxBackoff),f=l*(Math.random()-.5);return l+f}reportLargeTransition({transition:a,messageLength:s}){if(a.clientClockSkew===void 0||a.serverTs===void 0)return;const o=es()-a.clientClockSkew-a.serverTs/1e6,l=`${Math.round(o)}ms`,f=`${Math.round(s/1e4)/100}MB`,d=s/(o/1e3),m=`${Math.round(d/1e4)/100}MB per second`;this._logVerbose(`received ${f} transition in ${l} at ${m}`),s>2e7?this.logger.log(`received query results totaling more that 20MB (${f}) which will take a long time to download on slower connections`):o>2e4&&this.logger.log(`received query results totaling ${f} which took more than 20s to arrive (${l})`),this.debug&&this.sendMessage({type:"Event",eventType:"ClientReceivedTransition",event:{transitionTransitTime:o,messageLength:s}})}}function nE(){return aE()}function aE(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const a=Math.random()*16|0;return(n==="x"?a:a&3|8).toString(16)})}
133class gr extends Error{}gr.prototype.name="InvalidTokenError";function iE(n){return decodeURIComponent(atob(n).replace(/(.)/g,(a,s)=>{let o=s.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function sE(n){let a=n.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return iE(a)}catch{return atob(a)}}function Wy(n,a){if(typeof n!="string")throw new gr("Invalid token specified: must be a string");a||(a={});const s=a.header===!0?0:1,o=n.split(".")[s];if(typeof o!="string")throw new gr(`Invalid token specified: missing part #${s+1}`);let l;try{l=sE(o)}catch(f){throw new gr(`Invalid token specified: invalid base64 for part #${s+1} (${f.message})`)}try{return JSON.parse(l)}catch(f){throw new gr(`Invalid token specified: invalid json for part #${s+1} (${f.message})`)}}var rE=Object.defineProperty,oE=(n,a,s)=>a in n?rE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,je=(n,a,s)=>oE(n,typeof a!="symbol"?a+"":a,s);const lE=480*60*60*1e3,c1=2;class uE{constructor(a,s,o){je(this,"authState",{state:"noAuth"}),je(this,"configVersion",0),je(this,"syncState"),je(this,"authenticate"),je(this,"stopSocket"),je(this,"tryRestartSocket"),je(this,"pauseSocket"),je(this,"resumeSocket"),je(this,"clearAuth"),je(this,"logger"),je(this,"refreshTokenLeewaySeconds"),je(this,"lastRefreshChange"),je(this,"tokenConfirmationAttempts",0),this.syncState=a,this.authenticate=s.authenticate,this.stopSocket=s.stopSocket,this.tryRestartSocket=s.tryRestartSocket,this.pauseSocket=s.pauseSocket,this.resumeSocket=s.resumeSocket,this.clearAuth=s.clearAuth,this.logger=o.logger,this.refreshTokenLeewaySeconds=o.refreshTokenLeewaySeconds,this.lastRefreshChange=!1}notifyRefreshChange(a){this.authState.state!=="noAuth"&&this.authState.state!=="initialRefetch"&&this.authState.config.onRefreshChange&&this.lastRefreshChange!==a&&(this.lastRefreshChange=a,this.authState.config.onRefreshChange(a))}async setConfig(a,s,o){this.resetAuthState(),this._logVerbose("pausing WS for auth token fetch"),this.pauseSocket();const l=await this.fetchTokenAndGuardAgainstRace(a,{forceRefreshToken:!1});if(l.isFromOutdatedConfig)return;const f={fetchToken:a,onAuthChange:s,onRefreshChange:o};l.value?(this.setAuthState({state:"waitingForServerConfirmationOfCachedToken",config:f,hasRetried:!1}),this.authenticate(l.value)):(this.setAuthState({state:"initialRefetch",config:f}),await this.refetchToken()),this._logVerbose("resuming WS after auth token fetch"),this.resumeSocket()}onTransition(a){if(this.syncState.isCurrentOrNewerAuthVersion(a.endVersion.identity)&&!(a.endVersion.identity<=a.startVersion.identity)){if(this._logVerbose(`auth state is ${this.authState.state} when handling transition`),this.syncState.markAuthCompletion(),this.authState.state==="waitingForServerConfirmationOfCachedToken"){this._logVerbose("server confirmed auth token is valid"),this.refetchToken(),this.authState.config.onAuthChange(!0);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this._logVerbose("server confirmed new auth token is valid"),this.notifyRefreshChange(!1),this.scheduleTokenRefetch(this.authState.token),this.tokenConfirmationAttempts=0,this.authState.hadAuth||this.authState.config.onAuthChange(!0))}}onAuthError(a){if(a.authUpdateAttempted===!1&&(this.authState.state==="waitingForServerConfirmationOfFreshToken"||this.authState.state==="waitingForServerConfirmationOfCachedToken")){this._logVerbose("ignoring non-auth token expired error");return}const{baseVersion:s}=a;if(!this.syncState.isCurrentOrNewerAuthVersion(s+1)){this._logVerbose("ignoring auth error for previous auth attempt");return}this.tryToReauthenticate(a)}async tryToReauthenticate(a){if(this._logVerbose(`attempting to reauthenticate: ${a.error}`),this.authState.state==="noAuth"||this.authState.state==="waitingForServerConfirmationOfFreshToken"&&this.tokenConfirmationAttempts>=c1){this.logger.error(`Failed to authenticate: "${a.error}", check your server auth config`),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.authState.state!=="noAuth"&&this.setAndReportAuthFailed(this.authState.config.onAuthChange);return}if(this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this.tokenConfirmationAttempts++,this._logVerbose(`retrying reauthentication, ${c1-this.tokenConfirmationAttempts} attempts remaining`)),this.notifyRefreshChange(!0),await this.stopSocket(),this.authState.state==="noAuth")return;const s=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});s.isFromOutdatedConfig||(s.value&&this.syncState.isNewAuth(s.value)?(this.authenticate(s.value),this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",config:this.authState.config,token:s.value,hadAuth:this.authState.state==="notRefetching"||this.authState.state==="waitingForScheduledRefetch"})):(this._logVerbose("reauthentication failed, could not fetch a new token"),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this.tryRestartSocket())}async refetchToken(){if(this.authState.state==="noAuth")return;this._logVerbose("refetching auth token");const a=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});a.isFromOutdatedConfig||(a.value?this.syncState.isNewAuth(a.value)?(this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",hadAuth:this.syncState.hasAuth(),token:a.value,config:this.authState.config}),this.authenticate(a.value)):this.setAuthState({state:"notRefetching",config:this.authState.config}):(this._logVerbose("refetching token failed"),this.syncState.hasAuth()&&this.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this._logVerbose("restarting WS after auth token fetch (if currently stopped)"),this.tryRestartSocket())}scheduleTokenRefetch(a){if(this.authState.state==="noAuth")return;const s=this.decodeToken(a);if(!s){this.logger.error("Auth token is not a valid JWT, cannot refetch the token");return}const{iat:o,exp:l}=s;if(!o||!l){this.logger.error("Auth token does not have required fields, cannot refetch the token");return}
133const f=l-o;if(f<=2){this.logger.error("Auth token does not live long enough, cannot refetch the token");return}let d=Math.min(lE,(f-this.refreshTokenLeewaySeconds)*1e3);d<=0&&(this.logger.warn(`Refetching auth token immediately, configured leeway ${this.refreshTokenLeewaySeconds}s is larger than the token's lifetime ${f}s`),d=0);const m=setTimeout(()=>{this._logVerbose("running scheduled token refetch"),this.refetchToken()},d);this.setAuthState({state:"waitingForScheduledRefetch",refetchTokenTimeoutId:m,config:this.authState.config}),this._logVerbose(`scheduled preemptive auth token refetching in ${d}ms`)}async fetchTokenAndGuardAgainstRace(a,s){const o=++this.configVersion;this._logVerbose(`fetching token with config version ${o}`);const l=await a(s);return this.configVersion!==o?(this._logVerbose(`stale config version, expected ${o}, got ${this.configVersion}`),{isFromOutdatedConfig:!0}):{isFromOutdatedConfig:!1,value:l}}stop(){this.resetAuthState(),this.configVersion++,this._logVerbose(`config version bumped to ${this.configVersion}`)}setAndReportAuthFailed(a){a(!1),this.resetAuthState()}resetAuthState(){this.notifyRefreshChange(!1),this.setAuthState({state:"noAuth"})}setAuthState(a){const s=a.state==="waitingForServerConfirmationOfFreshToken"?{hadAuth:a.hadAuth,state:a.state,token:`...${a.token.slice(-7)}`}:{state:a.state};switch(this._logVerbose(`setting auth state to ${JSON.stringify(s)}`),a.state){case"waitingForScheduledRefetch":case"notRefetching":case"noAuth":this.tokenConfirmationAttempts=0;break}this.authState.state==="waitingForScheduledRefetch"&&clearTimeout(this.authState.refetchTokenTimeoutId),this.authState=a}decodeToken(a){try{return Wy(a)}catch(s){return this._logVerbose(`Error decoding token: ${s instanceof Error?s.message:"Unknown error"}`),null}}_logVerbose(a){this.logger.logVerbose(`${a} [v${this.configVersion}]`)}}const cE=["convexClientConstructed","convexWebSocketOpen","convexFirstMessageReceived"];function fE(n,a){const s={sessionId:a};typeof performance>"u"||!performance.mark||performance.mark(n,{detail:s})}function dE(n){let a=n.name.slice(6);return a=a.charAt(0).toLowerCase()+a.slice(1),{name:a,startTime:n.startTime}}function hE(n){if(typeof performance>"u"||!performance.getEntriesByName)return[];const a=[];for(const s of cE){const o=performance.getEntriesByName(s).filter(l=>l.entryType==="mark").filter(l=>l.detail.sessionId===n);a.push(...o)}return a.map(dE)}var mE=Object.defineProperty,pE=(n,a,s)=>a in n?mE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Jt=(n,a,s)=>pE(n,typeof a!="symbol"?a+"":a,s);class gE{constructor(a,s,o){if(Jt(this,"address"),Jt(this,"state"),Jt(this,"requestManager"),Jt(this,"webSocketManager"),Jt(this,"authenticationManager"),Jt(this,"remoteQuerySet"),Jt(this,"optimisticQueryResults"),Jt(this,"_transitionHandlerCounter",0),Jt(this,"_nextRequestId"),Jt(this,"_onTransitionFns",new Map),Jt(this,"_sessionId"),Jt(this,"firstMessageReceived",!1),Jt(this,"debug"),Jt(this,"logger"),Jt(this,"maxObservedTimestamp"),Jt(this,"connectionStateSubscribers",new Map),Jt(this,"nextConnectionStateSubscriberId",0),Jt(this,"_lastPublishedConnectionState"),Jt(this,"markConnectionStateDirty",()=>{Promise.resolve().then(()=>{const S=this.connectionState();if(JSON.stringify(S)!==JSON.stringify(this._lastPublishedConnectionState)){this._lastPublishedConnectionState=S;for(const x of this.connectionStateSubscribers.values())x(S)}})}),Jt(this,"mark",S=>{this.debug&&fE(S,this.sessionId)}),typeof a=="object")throw new Error("Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly.");o?.skipConvexDeploymentUrlCheck!==!0&&Py(a),o={...o};const l=o.authRefreshTokenLeewaySeconds??10;let f=o.webSocketConstructor;if(!f&&typeof WebSocket>"u")throw new Error("No WebSocket global variable defined! To use Convex in an environment without WebSocket try the HTTP client: https://docs.convex.dev/api/classes/browser.ConvexHttpClient");f=f||WebSocket,this.debug=o.reportDebugInfoToConvex??!1,this.address=a,this.logger=o.logger===!1?Zf({verbose:o.verbose??!1}):o.logger!==!0&&o.logger?o.logger:Xf({verbose:o.verbose??!1});const d=a.search("://");if(d===-1)throw new Error("Provided address was not an absolute URL.");const m=a.substring(d+3),h=a.substring(0,d);let g;if(h==="http")g="ws";else if(h==="https")g="wss";else throw new Error(`Unknown parent protocol ${h}`);const v=`${g}://${m}/api/${ti}/sync`;this.state=new M6,this.remoteQuerySet=new o1(S=>this.state.queryPath(S),this.logger),this.requestManager=new N6(this.logger,this.markConnectionStateDirty);const y=()=>{this.webSocketManager.pause(),this.state.pause()};this.authenticationManager=new uE(this.state,{authenticate:S=>{const x=this.state.setAuth(S);return this.webSocketManager.sendMessage(x),x.baseVersion},stopSocket:()=>this.webSocketManager.stop(),tryRestartSocket:()=>this.webSocketManager.tryRestart(),pauseSocket:y,resumeSocket:()=>this.webSocketManager.resume(),clearAuth:()=>{this.clearAuth()}},{logger:this.logger,refreshTokenLeewaySeconds:l}),this.optimisticQueryResults=new j6,this.addOnTransitionHandler(S=>
133{s(S.queries.map(x=>x.token))}),this._nextRequestId=0,this._sessionId=nE();const{unsavedChangesWarning:C}=o;if(typeof window>"u"||typeof window.addEventListener>"u"){if(C===!0)throw new Error("unsavedChangesWarning requested, but window.addEventListener not found! Remove {unsavedChangesWarning: true} from Convex client options.")}else C!==!1&&window.addEventListener("beforeunload",S=>{if(this.requestManager.hasIncompleteRequests()){S.preventDefault();const x="Are you sure you want to leave? Your changes may not be saved.";return(S||window.event).returnValue=x,x}});this.webSocketManager=new eE(v,{onOpen:S=>{this.mark("convexWebSocketOpen"),this.webSocketManager.sendMessage({...S,type:"Connect",sessionId:this._sessionId,maxObservedTimestamp:this.maxObservedTimestamp}),this.remoteQuerySet=new o1(_=>this.state.queryPath(_),this.logger);const[x,L]=this.state.restart();L&&this.webSocketManager.sendMessage(L),this.webSocketManager.sendMessage(x);for(const _ of this.requestManager.restart())this.webSocketManager.sendMessage(_)},onResume:()=>{const[S,x]=this.state.resume();x&&this.webSocketManager.sendMessage(x),S&&this.webSocketManager.sendMessage(S);for(const L of this.requestManager.resume())this.webSocketManager.sendMessage(L)},onMessage:S=>{switch(this.firstMessageReceived||(this.firstMessageReceived=!0,this.mark("convexFirstMessageReceived"),this.reportMarks()),S.type){case"Transition":{this.observedTimestamp(S.endVersion.ts),this.authenticationManager.onTransition(S),this.remoteQuerySet.transition(S),this.state.transition(S);const x=this.requestManager.removeCompleted(this.remoteQuerySet.timestamp());this.notifyOnQueryResultChanges(x);break}case"MutationResponse":{S.success&&this.observedTimestamp(S.ts);const x=this.requestManager.onResponse(S);x!==null&&this.notifyOnQueryResultChanges(new Map([[x.requestId,x.result]]));break}case"ActionResponse":{this.requestManager.onResponse(S);break}case"AuthError":{this.authenticationManager.onAuthError(S);break}case"FatalError":{const x=x6(this.logger,S.error);throw this.webSocketManager.terminate(),x}}return{hasSyncedPastLastReconnect:this.hasSyncedPastLastReconnect()}},onServerDisconnectError:o.onServerDisconnectError},f,this.logger,this.markConnectionStateDirty,this.debug),this.mark("convexClientConstructed"),o.expectAuth&&y()}hasSyncedPastLastReconnect(){return this.requestManager.hasSyncedPastLastReconnect()&&this.state.hasSyncedPastLastReconnect()}observedTimestamp(a){(this.maxObservedTimestamp===void 0||this.maxObservedTimestamp.lessThanOrEqual(a))&&(this.maxObservedTimestamp=a)}getMaxObservedTimestamp(){return this.maxObservedTimestamp}notifyOnQueryResultChanges(a){const s=this.remoteQuerySet.remoteQueryResults(),o=new Map;for(const[f,d]of s){const m=this.state.queryToken(f);if(m!==null){const h={result:d,udfPath:this.state.queryPath(f),args:this.state.queryArgs(f)};o.set(m,h)}}const l=this.optimisticQueryResults.ingestQueryResultsFromServer(o,new Set(a.keys()));this.handleTransition({queries:l.map(f=>{const d=this.optimisticQueryResults.rawQueryResult(f);return{token:f,modification:{kind:"Updated",result:d}}}),reflectedMutations:Array.from(a).map(([f,d])=>({requestId:f,result:d})),timestamp:this.remoteQuerySet.timestamp()})}handleTransition(a){for(const s of this._onTransitionFns.values())s(a)}addOnTransitionHandler(a){const s=this._transitionHandlerCounter++;return this._onTransitionFns.set(s,a),()=>this._onTransitionFns.delete(s)}getCurrentAuthClaims(){const a=this.state.getAuth();let s={};if(a&&a.tokenType==="User")try{s=a?Wy(a.value):{}}catch{s={}}else return;return{token:a.value,decoded:s}}setAuth(a,s,o){this.authenticationManager.setConfig(a,s,o)}hasAuth(){return this.state.hasAuth()}setAdminAuth(a,s){const o=this.state.setAdminAuth(a,s);this.webSocketManager.sendMessage(o)}clearAuth(){const a=this.state.clearAuth();this.webSocketManager.sendMessage(a)}subscribe(a,s,o){const l=Te(s),{modification:f,queryToken:d,unsubscribe:m}=this.state.subscribe(a,l,o?.journal,o?.componentPath);return f!==null&&this.webSocketManager.sendMessage(f),{queryToken:d,unsubscribe:()=>{const h=m();h&&this.webSocketManager.sendMessage(h)}}}localQueryResult(a,s){const o=Te(s),l=ri(a,o);return this.optimisticQueryResults.queryResult(l)}localQueryResultByToken(a){return this.optimisticQueryResults.queryResult(a)}hasLocalQueryResultByToken(a){return this.optimisticQueryResults.hasQueryResult(a)}localQueryLogs(a,s){const o=Te(s),l=ri(a,o);return this.optimisticQueryResults.queryLogs(l)}queryJournal(a,s){const o=Te(s),l=ri(a,o);return this.state.queryJournal(l)}connectionState(){const a=this.webSocketManager.connectionState();return{hasInflightRequests:this.requestManager.hasInflightRequests(),isWebSocketConnected:a.isConnected,hasEverConnected:a.hasEverConnected,connectionCount:a.connectionCount,connectionRetries:a.c
133onnectionRetries,timeOfOldestInflightRequest:this.requestManager.timeOfOldestInflightRequest(),inflightMutations:this.requestManager.inflightMutations(),inflightActions:this.requestManager.inflightActions()}}subscribeToConnectionState(a){const s=this.nextConnectionStateSubscriberId++;return this.connectionStateSubscribers.set(s,a),()=>{this.connectionStateSubscribers.delete(s)}}async mutation(a,s,o){const l=await this.mutationInternal(a,s,o);if(!l.success)throw l.errorData!==void 0?Bf(l,new ai(as("mutation",a,l))):new Error(as("mutation",a,l));return l.value}async mutationInternal(a,s,o,l){const{mutationPromise:f}=this.enqueueMutation(a,s,o,l);return f}enqueueMutation(a,s,o,l){const f=Te(s);this.tryReportLongDisconnect();const d=this.nextRequestId;if(this._nextRequestId++,o!==void 0){const v=o.optimisticUpdate;if(v!==void 0){const y=x=>{v(x,f)instanceof Promise&&this.logger.warn("Optimistic update handler returned a Promise. Optimistic updates should be synchronous.")},S=this.optimisticQueryResults.applyOptimisticUpdate(y,d).map(x=>{const L=this.localQueryResultByToken(x);return{token:x,modification:{kind:"Updated",result:L===void 0?void 0:{success:!0,value:L,logLines:[]}}}});this.handleTransition({queries:S,reflectedMutations:[],timestamp:this.remoteQuerySet.timestamp()})}}const m={type:"Mutation",requestId:d,udfPath:a,componentPath:l,args:[Ae(f)]},h=this.webSocketManager.sendMessage(m),g=this.requestManager.request(m,h);return{requestId:d,mutationPromise:g}}async action(a,s){const o=await this.actionInternal(a,s);if(!o.success)throw o.errorData!==void 0?Bf(o,new ai(as("action",a,o))):new Error(as("action",a,o));return o.value}async actionInternal(a,s,o){const l=Te(s),f=this.nextRequestId;this._nextRequestId++,this.tryReportLongDisconnect();const d={type:"Action",requestId:f,udfPath:a,componentPath:o,args:[Ae(l)]},m=this.webSocketManager.sendMessage(d);return this.requestManager.request(d,m)}async close(){return this.authenticationManager.stop(),this.webSocketManager.terminate()}get url(){return this.address}get nextRequestId(){return this._nextRequestId}get sessionId(){return this._sessionId}reportMarks(){if(this.debug){const a=hE(this.sessionId);this.webSocketManager.sendMessage({type:"Event",eventType:"ClientConnect",event:a})}}tryReportLongDisconnect(){if(!this.debug)return;const a=this.connectionState().timeOfOldestInflightRequest;if(a===null||Date.now()-a.getTime()<=60*1e3)return;const s=`${this.address}/api/debug_event`;fetch(s,{method:"POST",headers:{"Content-Type":"application/json","Convex-Client":`npm-${ti}`},body:JSON.stringify({event:"LongWebsocketDisconnect"})}).then(o=>{o.ok||this.logger.warn("Analytics request failed with response:",o.body)}).catch(o=>{this.logger.warn("Analytics response failed with error:",o)})}}function vf(n){if(typeof n!="object"||n===null||!Array.isArray(n.page)||typeof n.isDone!="boolean"||typeof n.continueCursor!="string")throw new Error(`Not a valid paginated query result: ${n?.toString()}`);return n}var yE=Object.defineProperty,vE=(n,a,s)=>a in n?yE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,f1=(n,a,s)=>vE(n,typeof a!="symbol"?a+"":a,s);class bE{constructor(a,s){this.client=a,this.onTransition=s,f1(this,"paginatedQuerySet",new Map),f1(this,"lastTransitionTs"),this.lastTransitionTs=_e.fromNumber(0),this.client.addOnTransitionHandler(o=>this.onBaseTransition(o))}subscribe(a,s,o){const l=li(a),f=i1(l,s,o),d=()=>this.removePaginatedQuerySubscriber(f),m=this.paginatedQuerySet.get(f);return m?(m.numSubscribers+=1,{paginatedQueryToken:f,unsubscribe:d}):(this.paginatedQuerySet.set(f,{token:f,canonicalizedUdfPath:l,args:s,numSubscribers:1,options:{initialNumItems:o.initialNumItems},nextPageKey:0,pageKeys:[],pageKeyToQuery:new Map,ongoingSplits:new Map,skip:!1,id:o.id}),this.addPageToPaginatedQuery(f,null,o.initialNumItems),{paginatedQueryToken:f,unsubscribe:d})}localQueryResult(a,s,o){const l=li(a),f=i1(l,s,o);return this.localQueryResultByToken(f)}localQueryResultByToken(a){const s=this.paginatedQuerySet.get(a);if(!s)return;const o=this.activePageQueryTokens(s);if(o.length===0)return{results:[],status:"LoadingFirstPage",loadMore:h=>this.loadMoreOfPaginatedQuery(a,h)};let l=[],f=!1,d=!1;for(const h of o){const g=this.client.localQueryResultByToken(h);if(g===void 0){f=!0,d=!1;continue}const v=vf(g);l=l.concat(v.page),d=!!v.isDone}let m;return f?m=l.length===0?"LoadingFirstPage":"LoadingMore":d?m="Exhausted":m="CanLoadMore",{results:l,status:m,loadMore:h=>this.loadMoreOfPaginatedQuery(a,h)}}onBaseTransition(a){const s=a.queries.map(d=>d.token),o=this.queriesContainingTokens(s);let l=[];o.length>0&&(this.processPaginatedQuerySplits(o,d=>this.client.localQueryResultByToken(d)),l=o.map(d=>({token:d,modification:{kind:"Updated",result:this.localQueryResultByToken(d)}})));const f={...a,paginatedQueries:l};this.onTransition(f)}loadMoreOfPaginatedQuery(a,s){this.mustGetPaginatedQuery(a);const o=this.queryTokenForLastPageOfPaginatedQuery(a),l=this.client.localQueryResultByToken(o);if(!l)return!1;const f=vf(l);if(f.isDone)return!1;this.addPageToPaginatedQuery(a,f.continueCursor,s);const d={timestamp:this.lastTransitionTs,reflectedMutations:[],queries:[],paginatedQueries:[{token:a,modification:{kind:"Updated",result:this.localQueryResultByToken(a)}}]};return this.onTransition(d),!0}
133queriesContainingTokens(a){if(a.length===0)return[];const s=[],o=new Set(a);for(const[l,f]of this.paginatedQuerySet)for(const d of this.allQueryTokens(f))if(o.has(d)){s.push(l);break}return s}processPaginatedQuerySplits(a,s){for(const o of a){const l=this.mustGetPaginatedQuery(o),{ongoingSplits:f,pageKeyToQuery:d,pageKeys:m}=l;for(const[h,[g,v]]of f)s(d.get(g).queryToken)!==void 0&&s(d.get(v).queryToken)!==void 0&&this.completePaginatedQuerySplit(l,h,g,v);for(const h of m){if(f.has(h))continue;const g=d.get(h).queryToken,v=s(g);if(!v)continue;const y=vf(v);y.splitCursor&&(y.pageStatus==="SplitRecommended"||y.pageStatus==="SplitRequired"||y.page.length>l.options.initialNumItems*2)&&this.splitPaginatedQueryPage(l,h,y.splitCursor,y.continueCursor)}}}splitPaginatedQueryPage(a,s,o,l){const f=a.nextPageKey++,d=a.nextPageKey++,m={cursor:l,numItems:a.options.initialNumItems,id:a.id},h=this.client.subscribe(a.canonicalizedUdfPath,{...a.args,paginationOpts:{...m,cursor:null,endCursor:o}});a.pageKeyToQuery.set(f,h);const g=this.client.subscribe(a.canonicalizedUdfPath,{...a.args,paginationOpts:{...m,cursor:o,endCursor:l}});a.pageKeyToQuery.set(d,g),a.ongoingSplits.set(s,[f,d])}addPageToPaginatedQuery(a,s,o){const l=this.mustGetPaginatedQuery(a),f=l.nextPageKey++,d={cursor:s,numItems:o,id:l.id},m={...l.args,paginationOpts:d},h=this.client.subscribe(l.canonicalizedUdfPath,m);return l.pageKeys.push(f),l.pageKeyToQuery.set(f,h),h}removePaginatedQuerySubscriber(a){const s=this.paginatedQuerySet.get(a);if(s&&(s.numSubscribers-=1,!(s.numSubscribers>0))){for(const o of s.pageKeyToQuery.values())o.unsubscribe();this.paginatedQuerySet.delete(a)}}completePaginatedQuerySplit(a,s,o,l){const f=a.pageKeyToQuery.get(s);a.pageKeyToQuery.delete(s);const d=a.pageKeys.indexOf(s);a.pageKeys.splice(d,1,o,l),a.ongoingSplits.delete(s),f.unsubscribe()}activePageQueryTokens(a){return a.pageKeys.map(s=>a.pageKeyToQuery.get(s).queryToken)}allQueryTokens(a){return Array.from(a.pageKeyToQuery.values()).map(s=>s.queryToken)}queryTokenForLastPageOfPaginatedQuery(a){const s=this.mustGetPaginatedQuery(a),o=s.pageKeys[s.pageKeys.length-1];if(o===void 0)throw new Error(`No pages for paginated query ${a}`);return s.pageKeyToQuery.get(o).queryToken}mustGetPaginatedQuery(a){const s=this.paginatedQuerySet.get(a);if(!s)throw new Error("paginated query no longer exists for token "+a);return s}}var SE=Object.defineProperty,wE=(n,a,s)=>
133a in n?SE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,yn=(n,a,s)=>wE(n,typeof a!="symbol"?a+"":a,s);const rl=560;let dr;class EE{constructor(a,s){if(yn(this,"address"),yn(this,"auth"),yn(this,"adminAuth"),yn(this,"encodedTsPromise"),yn(this,"debug"),yn(this,"fetchOptions"),yn(this,"fetch"),yn(this,"logger"),yn(this,"mutationQueue",[]),yn(this,"isProcessingQueue",!1),typeof s=="boolean")throw new Error("skipConvexDeploymentUrlCheck as the second argument is no longer supported. Please pass an options object, `{ skipConvexDeploymentUrlCheck: true }`.");(s??{}).skipConvexDeploymentUrlCheck!==!0&&Py(a),this.logger=s?.logger===!1?Zf({verbose:!1}):s?.logger!==!0&&s?.logger?s.logger:Xf({verbose:!1}),this.address=a,this.debug=!0,this.auth=void 0,this.adminAuth=void 0,this.fetch=s?.fetch,s?.auth&&this.setAuth(s.auth)}backendUrl(){return`${this.address}/api`}get url(){return this.address}setAuth(a){this.clearAuth(),this.auth=a}setAdminAuth(a,s){if(this.clearAuth(),s!==void 0){const o=new TextEncoder().encode(JSON.stringify(s)),l=btoa(String.fromCodePoint(...o));this.adminAuth=`${a}:${l}`}else this.adminAuth=a}clearAuth(){this.auth=void 0,this.adminAuth=void 0}setDebug(a){this.debug=a}setFetchOptions(a){this.fetchOptions=a}async consistentQuery(a,...s){const o=Te(s[0]),l=this.getTimestamp();return await this.queryInner(a,o,{timestampPromise:l})}async getTimestamp(){return this.encodedTsPromise?this.encodedTsPromise:this.encodedTsPromise=this.getTimestampInner()}async getTimestampInner(){const a=this.fetch||dr||fetch,s={"Content-Type":"application/json","Convex-Client":`npm-${ti}`},o=await a(`${this.address}/api/query_ts`,{...this.fetchOptions,method:"POST",headers:s});if(!o.ok)throw new Error(await o.text());const{ts:l}=await o.json();return l}async query(a,...s){const o=Te(s[0]);return await this.queryInner(a,o,{})}async queryInner(a,s,o){const l=te(a),f=[Ae(s)],d={"Content-Type":"application/json","Convex-Client":`npm-${ti}`};this.adminAuth?d.Authorization=`Convex ${this.adminAuth}`:this.auth&&(d.Authorization=`Bearer ${this.auth}`);const m=this.fetch||dr||fetch,h=o.timestampPromise?await o.timestampPromise:void 0,g=JSON.stringify({path:l,format:"convex_encoded_json",args:f,...h?{ts:h}:{}}),v=h?`${this.address}/api/query_at_ts`:`${this.address}/api/query`,y=await m(v,{...this.fetchOptions,body:g,method:"POST",headers:d});if(!y.ok&&y.status!==rl)throw new Error(await y.text());const C=await y.json();if(this.debug)for(const S of C.logLines??[])Ra(this.logger,"info","query",l,S);switch(C.status){case"success":return rn(C.value);case"error":throw C.errorData!==void 0?ol(C.errorData,new ai(C.errorMessage)):new Error(C.errorMessage);default:throw new Error(`Invalid response: ${JSON.stringify(C)}`)}}async mutationInner(a,s){const o=te(a),l=JSON.stringify({path:o,format:"convex_encoded_json",args:[Ae(s)]}),f={"Content-Type":"application/json","Convex-Client":`npm-${ti}`};this.adminAuth?f.Authorization=`Convex ${this.adminAuth}`:this.auth&&(f.Authorization=`Bearer ${this.auth}`);const m=await(this.fetch||dr||fetch)(`${this.address}/api/mutation`,{...this.fetchOptions,body:l,method:"POST",headers:f});if(!m.ok&&m.status!==rl)throw new Error(await m.text());const h=await m.json();if(this.debug)for(const g of h.logLines??[])Ra(this.logger,"info","mutation",o,g);switch(h.status){case"success":return rn(h.value);case"error":throw h.errorData!==void 0?ol(h.errorData,new ai(h.errorMessage)):new Error(h.errorMessage);default:throw new Error(`Invalid response: ${JSON.stringify(h)}`)}}async processMutationQueue(){if(!this.isProcessingQueue){for(this.isProcessingQueue=!0;this.mutationQueue.length>0;){const{mutation:a,args:s,resolve:o,reject:l}=this.mutationQueue.shift();try{const f=await this.mutationInner(a,s);o(f)}catch(f){l(f)}}this.isProcessingQueue=!1}}enqueueMutation(a,s){return new Promise((o,l)=>{this.mutationQueue.push({mutation:a,args:s,resolve:o,reject:l}),this.processMutationQueue()})}async mutation(a,...s){const[o,l]=s,f=Te(o);return l?.skipQueue?await this.mutationInner(a,f):await this.enqueueMutation(a,f)}async action(a,...s){const o=Te(s[0]),l=te(a),f=JSON.stringify({path:l,format:"convex_encoded_json",args:[Ae(o)]}),d={"Content-Type":"application/json","Convex-Client":`npm-${ti}`};this.adminAuth?d.Authorization=`Convex ${this.adminAuth}`:this.auth&&(d.Authorization=`Bearer ${this.auth}`);const h=await(this.fetch||dr||fetch)(`${this.address}/api/action`,{...this.fetchOptions,body:f,method:"POST",headers:d});if(!h.ok&&h.status!==rl)throw new Error(await h.text());const g=await h.json();if(this.debug)for(const v of g.logLines??[])Ra(this.logger,"info","action",l,v);switch(g.status){case"success":return rn(g.value);case"error":throw g.errorData!==void 0?ol(g.errorData,new ai(g.errorMessage)):new Error(g.errorMessage);default:throw new Error(`Invalid response: ${JSON.stringify(g)}`)}}
133async function(a,s,...o){const l=Te(o[0]),f=typeof a=="string"?a:te(a),d=JSON.stringify({componentPath:s,path:f,format:"convex_encoded_json",args:Ae(l)}),m={"Content-Type":"application/json","Convex-Client":`npm-${ti}`};this.adminAuth?m.Authorization=`Convex ${this.adminAuth}`:this.auth&&(m.Authorization=`Bearer ${this.auth}`);const g=await(this.fetch||dr||fetch)(`${this.address}/api/function`,{...this.fetchOptions,body:d,method:"POST",headers:m});if(!g.ok&&g.status!==rl)throw new Error(await g.text());const v=await g.json();if(this.debug)for(const y of v.logLines??[])Ra(this.logger,"info","any",f,y);switch(v.status){case"success":return rn(v.value);case"error":throw v.errorData!==void 0?ol(v.errorData,new ai(v.errorMessage)):new Error(v.errorMessage);default:throw new Error(`Invalid response: ${JSON.stringify(v)}`)}}}function ol(n,a){return a.data=rn(n),a}function CE({getCurrentValue:n,subscribe:a}){const[s,o]=V.useState(()=>({getCurrentValue:n,subscribe:a,value:n()}));let l=s.value;return(s.getCurrentValue!==n||s.subscribe!==a)&&(l=n(),o({getCurrentValue:n,subscribe:a,value:l})),V.useEffect(()=>{let f=!1;const d=()=>{f||o(h=>{if(h.getCurrentValue!==n||h.subscribe!==a)return h;const g=n();return h.value===g?h:{...h,value:g}})},m=a(d);return d(),()=>{f=!0,m()}},[n,a]),l}var _E=Object.defineProperty,TE=(n,a,s)=>a in n?_E(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Pn=(n,a,s)=>TE(n,typeof a!="symbol"?a+"":a,s);const xE=5e3;if(typeof He>"u")throw new Error("Required dependency 'react' not found");function tv(n,a,s){function o(l){return LE(l),a.mutation(n,l,{optimisticUpdate:s})}return o.withOptimisticUpdate=function(f){if(s!==void 0)throw new Error(`Already specified optimistic update for mutation ${te(n)}`);return tv(n,a,f)},o}function RE(n,a){return function(s){return a.action(n,s)}}class AE{constructor(a,s){if(Pn(this,"address"),Pn(this,"cachedSync"),Pn(this,"cachedPaginatedQueryClient"),Pn(this,"listeners"),Pn(this,"options"),Pn(this,"closed",!1),Pn(this,"_logger"),Pn(this,"adminAuth"),Pn(this,"fakeUserIdentity"),a===void 0)throw new Error("No address provided to ConvexReactClient.\nIf trying to deploy to production, make sure to follow all the instructions found at https://docs.convex.dev/production/hosting/\nIf running locally, make sure to run `convex dev` and ensure the .env.local file is populated.");if(typeof a!="string")throw new Error(`ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud', received something of type ${typeof a} instead.`);if(!a.includes("://"))throw new Error("Provided address was not an absolute URL.");this.address=a,this.listeners=new Map,this._logger=s?.logger===!1?Zf({verbose:s?.verbose??!1}):s?.logger!==!0&&s?.logger?s.logger:Xf({verbose:s?.verbose??!1}),this.options={...s,logger:this._logger}}get url(){return this.address}get sync(){if(this.closed)throw new Error("ConvexReactClient has already been closed.");return this.cachedSync?this.cachedSync:(this.cachedSync=new gE(this.address,()=>{},this.options),this.adminAuth&&this.cachedSync.setAdminAuth(this.adminAuth,this.fakeUserIdentity),this.cachedPaginatedQueryClient=new bE(this.cachedSync,a=>this.handleTransition(a)),this.cachedSync)}get paginatedQueryClient(){if(this.sync,this.cachedPaginatedQueryClient)return this.cachedPaginatedQueryClient;throw new Error("Should already be instantiated")}setAuth(a,s,o){if(typeof a=="string")throw new Error("Passing a string to ConvexReactClient.setAuth is no longer supported, please upgrade to passing in an async function to handle reauthentication.");this.sync.setAuth(a,s??(()=>{}),o)}clearAuth(){this.sync.clearAuth()}setAdminAuth(a,s){if(this.adminAuth=a,this.fakeUserIdentity=s,this.closed)throw new Error("ConvexReactClient has already been closed.");this.cachedSync&&this.sync.setAdminAuth(a,s)}watchQuery(a,...s){const[o,l]=s,f=te(a);return{onUpdate:d=>{const{queryToken:m,unsubscribe:h}=this.sync.subscribe(f,o,l),g=this.listeners.get(m);return g!==void 0?g.add(d):this.listeners.set(m,new Set([d])),()=>{if(this.closed)return;const v=this.listeners.get(m);v.delete(d),v.size===0&&this.listeners.delete(m),h()}},localQueryResult:()=>{if(this.cachedSync)return this.cachedSync.localQueryResult(f,o)},localQueryLogs:()=>
133{if(this.cachedSync)return this.cachedSync.localQueryLogs(f,o)},journal:()=>{if(this.cachedSync)return this.cachedSync.queryJournal(f,o)}}}prewarmQuery(a){const s=a.extendSubscriptionFor??xE,l=this.watchQuery(a.query,a.args||{}).onUpdate(()=>{});setTimeout(l,s)}watchPaginatedQuery(a,s,o){const l=te(a);return{onUpdate:f=>{const{paginatedQueryToken:d,unsubscribe:m}=this.paginatedQueryClient.subscribe(l,s||{},o),h=this.listeners.get(d);return h!==void 0?h.add(f):this.listeners.set(d,new Set([f])),()=>{if(this.closed)return;const g=this.listeners.get(d);g.delete(f),g.size===0&&this.listeners.delete(d),m()}},localQueryResult:()=>this.paginatedQueryClient.localQueryResult(l,s,o)}}mutation(a,...s){const[o,l]=s,f=te(a);return this.sync.mutation(f,o,l)}action(a,...s){const o=te(a);return this.sync.action(o,...s)}query(a,...s){const o=this.watchQuery(a,...s),l=o.localQueryResult();return l!==void 0?Promise.resolve(l):new Promise((f,d)=>{const m=o.onUpdate(()=>{m();try{f(o.localQueryResult())}catch(h){d(h)}})})}connectionState(){return this.sync.connectionState()}subscribeToConnectionState(a){return this.sync.subscribeToConnectionState(a)}get logger(){return this._logger}async close(){if(this.closed=!0,this.listeners=new Map,this.cachedPaginatedQueryClient&&(this.cachedPaginatedQueryClient=void 0),this.cachedSync){const a=this.cachedSync;this.cachedSync=void 0,await a.close()}}handleTransition(a){const s=a.queries.map(l=>l.token),o=a.paginatedQueries.map(l=>l.token);this.transition([...s,...o])}transition(a){for(const s of a){const o=this.listeners.get(s);if(o)for(const l of o)l()}}}const Nl=He.createContext(void 0);function ME(){return V.useContext(Nl)}const OE=({client:n,children:a})=>He.createElement(Nl.Provider,{value:n},a);function JC(n,...a){const s=a[0]==="skip",o=a[0]==="skip"?{}:Te(a[0]),l=typeof n=="string"?Kf(n):n,f=te(l),d=V.useMemo(()=>s?{}:{query:{query:l,args:o}},[JSON.stringify(Ae(o)),f,s]),h=zE(d).query;if(h instanceof Error)throw h;return h}function WC(n){const a=typeof n=="string"?Kf(n):n,s=V.useContext(Nl);if(s===void 0)throw new Error("Could not find Convex client! `useMutation` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app");return V.useMemo(()=>tv(a,s),[s,te(a)])}function t8(n){const a=V.useContext(Nl),s=typeof n=="string"?Kf(n):n;if(a===void 0)throw new Error("Could not find Convex client! `useAction` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app");return V.useMemo(()=>RE(s,a),[a,te(s)])}function LE(n){if(typeof n=="object"&&n!==null&&"bubbles"in n&&"persist"in n&&"isDefaultPrevented"in n)throw new Error("Convex function called with SyntheticEvent object. Did you use a Convex function as an event handler directly? Event handlers like onClick receive an event object as their first argument. These SyntheticEvent objects are not valid Convex values. Try wrapping the function like `const handler = () => myMutation();` and using `handler` in the event handler.")}var NE=Object.defineProperty,kE=(n,a,s)=>
133a in n?NE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,bf=(n,a,s)=>kE(n,typeof a!="symbol"?a+"":a,s);class DE{constructor(a){bf(this,"createWatch"),bf(this,"queries"),bf(this,"listeners"),this.createWatch=a,this.queries={},this.listeners=new Set}setQueries(a){for(const s of Object.keys(a)){const{query:o,args:l,paginationOptions:f}=a[s];if(te(o),this.queries[s]===void 0)this.addQuery(s,o,l,f?{paginationOptions:f}:{});else{const d=this.queries[s];(te(o)!==te(d.query)||JSON.stringify(Ae(l))!==JSON.stringify(Ae(d.args))||JSON.stringify(f)!==JSON.stringify(d.paginationOptions))&&(this.removeQuery(s),this.addQuery(s,o,l,f?{paginationOptions:f}:{}))}}for(const s of Object.keys(this.queries))a[s]===void 0&&this.removeQuery(s)}subscribe(a){return this.listeners.add(a),()=>{this.listeners.delete(a)}}getLocalResults(a){const s={};for(const o of Object.keys(a)){const{query:l,args:f}=a[o],d=a[o].paginationOptions;te(l);const m=this.createWatch(l,f,d?{paginationOptions:d}:{});let h;try{h=m.localQueryResult()}catch(g){if(g instanceof Error)h=g;else throw g}s[o]=h}return s}setCreateWatch(a){this.createWatch=a;for(const s of Object.keys(this.queries)){const{query:o,args:l,watch:f,paginationOptions:d}=this.queries[s],m="journal"in f?f.journal():void 0;this.removeQuery(s),this.addQuery(s,o,l,{...m?{journal:m}:[],...d?{paginationOptions:d}:{}})}}destroy(){for(const a of Object.keys(this.queries))this.removeQuery(a);this.listeners=new Set}addQuery(a,s,o,{paginationOptions:l,journal:f}){if(this.queries[a]!==void 0)throw new Error(`Tried to add a new query with identifier ${a} when it already exists.`);const d=this.createWatch(s,o,{...f?{journal:f}:[],...l?{paginationOptions:l}:{}}),m=d.onUpdate(()=>this.notifyListeners());this.queries[a]={query:s,args:o,watch:d,unsubscribe:m,...l?{paginationOptions:l}:{}}}removeQuery(a){const s=this.queries[a];if(s===void 0)throw new Error(`No query found with identifier ${a}.`);s.unsubscribe(),delete this.queries[a]}notifyListeners(){for(const a of this.listeners)a()}}function zE(n){const a=ME();if(a===void 0)throw new Error("Could not find Convex client! `useQuery` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app");const s=V.useMemo(()=>(o,l,{journal:f,paginationOptions:d})=>d?a.watchPaginatedQuery(o,l,d):a.watchQuery(o,l,f?{journal:f}:{}),[a]);return BE(n,s)}function BE(n,a){const[s]=V.useState(()=>new DE(a));s.createWatch!==a&&s.setCreateWatch(a),V.useEffect(()=>()=>s.destroy(),[s]);const o=V.useMemo(()=>({getCurrentValue:()=>s.getLocalResults(n),subscribe:l=>(s.setQueries(n),s.subscribe(l))}),[s,n]);return CE(o)}const ev=V.createContext(void 0);function e8(){const n=V.useContext(ev);if(n===void 0)throw new Error("Could not find `ConvexProviderWithAuth` (or `ConvexProviderWithClerk` or `ConvexProviderWithAuth0`) as an ancestor component. This component may be missing, or you might have two instances of the `convex/react` module loaded in your project.");return n}function UE({children:n,client:a,useAuth:s}){const{isLoading:o,isAuthenticated:l,fetchAccessToken:f}=s(),[d,m]=V.useState(null),[h,g]=V.useState(!1);o&&d!==null&&(m(null),g(!1)),!o&&!l&&d!==!1&&(m(!1),g(!1));const v=l&&(d??!1);return He.createElement(ev.Provider,{value:{isLoading:d===null,isAuthenticated:v,isRefreshing:h&&v}},He.createElement(qE,{authProviderAuthenticated:l,fetchAccessToken:f,authProviderLoading:o,client:a,setIsConvexAuthenticated:m,setIsRefreshing:g}),He.createElement(OE,{client:a},n),He.createElement(jE,{authProviderAuthenticated:l,fetchAccessToken:f,authProviderLoading:o,client:a,setIsConvexAuthenticated:m,setIsRefreshing:g}))}function qE({authProviderAuthenticated:n,fetchAccessToken:a,authProviderLoading:s,client:o,setIsConvexAuthenticated:l,setIsRefreshing:f}){return V.useEffect(()=>{let d=!0;if(n)return o.setAuth(a,m=>{d&&l(()=>m)},m=>{d&&f(m)}),()=>{d=!1,l(m=>m?!1:null),f(!1)}},[n,a,s,o,l,f]),null}function jE({authProviderAuthenticated:n,fetchAccessToken:a,authProviderLoading:s,client:o,setIsConvexAuthenticated:l,setIsRefreshing:f}){return V.useEffect(()=>{if(n)return()=>{o.clearAuth(),l(()=>null),f(!1)}},[n,a,s,o,l,f]),null}const HE=Object.prototype.toString,VE=n=>HE.call(n)==="[object Error]",QE=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function PE(n){if(!(n&&VE(n)&&n.name==="TypeError"&&typeof n.message=="string"))return!1;const{message:s,stack:o}=n;return s==="Load failed"?o===void 0||"__sentry_captured__"in n:s.startsWith("error sending request for url")||s==="Failed to fetch"||s.startsWith("Failed to fetch (")&&s.endsWith(")")?!0:QE.has(s)}const Sf=[500,2e3],IE=100,nv=V.createContext(void 0),av=V.createContext(void 0);function GE(){return V.useContext(av)}const YE=V.createContext(null),wf="__convexAuthOAuthVerifier",ll="__convexAuthJWT",ul="__convexAuthRefreshToken",d1="__convexAuthServerStateFetchTime";function $E({client:n,serverState:a,onChange:s,shouldHandleCode:o,storage:l,storageNamespace:f,replaceURL:d,children:m}){const h=V.useRef(a?._state.token??null),[g,v]=V.useState(h.current===null),[y,C]=V.useState(h.current),S=n.verbose??!1,x=V.useCallback(lt=>{S&&(console.debug(`${new Date().toISOString()} ${lt}`),n.logger?.logVerbose(lt))},[S]),{storageSet:L,storageGet:_,storageRemove:O,storageKey:Q}=XE(l,f),[X,H]=V.useState(!1),W=V.useCallback(async lt=>{const U=h.current!==null;let I;if(lt.tokens===null)h.current=null,lt.shouldStore&&(await O(ll),await O(ul)),I=null;else{const{token:at}=lt.tokens;if(h.current=at,lt.shouldStore){const{refreshToken:dt}=lt.tokens;await L(ll,at),await L(ul,dt)}I=at}U!==(I!==null)&&await s?.(),C(I),v(!1)},[L,O]);V.useEffect(()=>{const lt=async U=>{if(X){U.preventDefault();const I="Are you sure you want to leave? Your changes may not be saved.";return U.returnValue=!0,I}};return h1("beforeunload",lt),()=>{m1("beforeunload",lt)}}),V.useEffect(()=>{const lt=U=>{(async()=>
133{if(U.storageArea===l&&U.key===Q(ll)){const I=U.newValue;x(`synced access token, is null: ${I===null}`),await W({shouldStore:!1,tokens:I===null?null:{token:I}})}})()};return h1("storage",lt),()=>m1("storage",lt)},[W]);const tt=V.useCallback(async lt=>{let U,I=0;for(;I<Sf.length;)try{return await n.unauthenticatedCall("auth:signIn","code"in lt?{params:{code:lt.code},verifier:lt.verifier}:lt)}catch(at){if(U=at,!PE(at))break;const dt=Sf[I]+IE*Math.random();I++,x(`verifyCode failed with network error, retry ${I} of ${Sf.length} in ${dt}ms`),await new Promise(A=>setTimeout(A,dt))}throw U},[n]),P=V.useCallback(async lt=>{const{tokens:U}=await tt(lt);return x(`retrieved tokens, is null: ${U===null}`),await W({shouldStore:!0,tokens:U??null}),U!==null},[n,W]),K=V.useCallback(async(lt,U)=>{const I=U instanceof FormData?Array.from(U.entries()).reduce((A,[E,k])=>(A[E]=k,A),{}):U??{},at=await _(wf)??void 0;await O(wf);const dt=await n.authenticatedCall("auth:signIn",{provider:lt,params:I,verifier:at});if(dt.redirect!==void 0){const A=new URL(dt.redirect);return await L(wf,dt.verifier),navigator.product!=="ReactNative"&&(window.location.href=A.toString()),{signingIn:!1,redirect:A}}else if(dt.tokens!==void 0){const{tokens:A}=dt;return x(`signed in and got tokens, is null: ${A===null}`),await W({shouldStore:!0,tokens:A}),{signingIn:dt.tokens!==null}}return{signingIn:!1}},[n,W,_]),et=V.useCallback(async()=>{try{await n.authenticatedCall("auth:signOut")}catch{}x("signed out, erasing tokens"),await W({shouldStore:!0,tokens:null})},[W,n]),ct=V.useCallback(async({forceRefreshToken:lt})=>{if(lt){const U=h.current;return await KE(ul,async()=>{const I=h.current;if(I!==U)return x(`returning synced token, is null: ${I===null}`),I;const at=await _(ul)??null;return at!==null?(H(!0),await P({refreshToken:at}).finally(()=>{H(!1)}),x(`returning retrieved token, is null: ${I===null}`),h.current):(H(!1),x("returning null, there is no refresh token"),null)})}return h.current},[P,et,_]),rt=V.useRef(!1);V.useEffect(()=>{if(l===void 0)throw new Error("`localStorage` is not available in this environment, set the `storage` prop on `ConvexAuthProvider`!");const lt=async()=>{const I=await _(ll)??null;x(`retrieved token from storage, is null: ${I===null}`),await W({shouldStore:!1,tokens:I===null?null:{token:I}})};if(a!==void 0){const I=_(d1),at=dt=>{if(!dt||a._timeFetched>+dt){const{token:A,refreshToken:E}=a._state,k=A===null||E===null?null:{token:A,refreshToken:E};L(d1,a._timeFetched.toString()),W({tokens:k,shouldStore:!0})}else lt()};I instanceof Promise?I.then(at):at(I);return}const U=typeof window?.location?.search<"u"?new URLSearchParams(window.location.search).get("code"):null;if(!rt.current)if(U&&(o===void 0||(typeof o=="function"?o():o))){rt.current=!0;const I=new URL(window.location.href);I.searchParams.delete("code"),(async()=>(await d(I.pathname+I.search+I.hash),await K(void 0,{code:U}),rt.current=!1))()}else lt()},[n,_]);const ot=V.useMemo(()=>({signIn:K,signOut:et}),[K,et]),jt=y!==null,xt=V.useMemo(()=>({isLoading:g,isAuthenticated:jt,fetchAccessToken:ct}),[ct,g,jt]);return D.jsx(av.Provider,{value:xt,children:D.jsx(nv.Provider,{value:ot,children:D.jsx(YE.Provider,{value:y,children:m})})})}function XE(n,a){const s=ZE(),o=V.useMemo(()=>n??s(),[n]),l=a.replace(/[^a-zA-Z0-9]/g,""),f=V.useCallback(g=>`${g}_${l}`,[a]),d=V.useCallback((g,v)=>o.setItem(f(g),v),[o,f]),m=V.useCallback(g=>o.getItem(f(g)),[o,f]),h=V.useCallback(g=>o.removeItem(f(g)),[o,f]);return{storageSet:d,storageGet:m,storageRemove:h,storageKey:f}}function ZE(){const[n,a]=V.useState({});return()=>({getItem:s=>n[s],setItem:(s,o)=>{a(l=>({...l,[s]:o}))},removeItem:s=>{a(o=>{const{[s]:l,...f}=o;return f})}})}async function KE(n,a){const s=window?.navigator?.locks;return s!==void 0?await s.request(n,a):await FE(n,a)}function cl(n){globalThis.__convexAuthMutexes===void 0&&(globalThis.__convexAuthMutexes={});let a=globalThis.__convexAuthMutexes[n];return a===void 0&&(globalThis.__convexAuthMutexes[n]={currentlyRunning:null,waiting:[]}),a=globalThis.__convexAuthMutexes[n],a}function Ef(n,a){globalThis.__convexAuthMutexes[n]=a}async function iv(n,a){const s=cl(n);s.currentlyRunning===null?Ef(n,{currentlyRunning:a().finally(()=>{const o=cl(n).waiting.shift();cl(n).currentlyRunning=null,Ef(n,{...cl(n),currentlyRunning:o===void 0?null:iv(n,o)})}),waiting:[]}):Ef(n,{...s,waiting:[...s.waiting,a]})}async function FE(n,a){return new Promise((o,l)=>{iv(n,()=>a().then(d=>o(d)).catch(d=>l(d)))})}function h1(n,a,s){typeof window>"u"||window.addEventListener?.(n,a,s)}function m1(n,a,s){typeof window>"u"||window.removeEventListener?.(n,a,s)}function n8(){return V.useContext(nv)}function JE(n){const{client:a,storage:s,storageNamespace:o,replaceURL:l,shouldHandleCode:f,children:d}=n,m=V.useMemo(()=>({authenticatedCall(h,g){return a.action(h,g)},unauthenticatedCall(h,g){return new EE(a.address,{logger:a.logger}).action(h,g)}
133,verbose:a.options?.verbose,logger:a.logger}),[a]);return D.jsx($E,{client:m,storage:s??(typeof window>"u"?void 0:window?.localStorage),storageNamespace:o??a.address,replaceURL:l??(h=>{window.history.replaceState({},"",h)}),shouldHandleCode:f,children:D.jsx(UE,{client:a,useAuth:GE,children:d})})}const WE="https://uncommon-gnat-838.eu-west-1.convex.cloud",tC=new AE(WE);function eC({children:n}){return D.jsx(JE,{client:tC,children:n})}const Na={"/":{title:"Natuurhuys â Een huis waar je mag vertragen | Sinaai",description:"Natuurhuys in Sinaai is een holistische groepspraktijk waar therapeuten en coaches samenwerken. Een plek om te vertragen, jezelf te hervinden en te helen.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/i04NvYcvQ1lgBaNryYUWn.jpeg"}},"/filosofie":{title:"Filosofie â Natuurhuys | Vertragen als levenshouding",description:"Ontdek de filosofie achter Natuurhuys. Een visie op holistische gezondheid, natuur en het belang van rust en vertraging in een overprikkelde wereld.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/Wc6A84pbkAfPS4VsIPaSE.jpeg"}},"/groepspraktijk":{title:"De Praktijk â Natuurhuys | Therapeuten & coaches in Sinaai",description:"Maak kennis met de therapeuten en coaches van Natuurhuys: Maya Vereecken, An Van Lysebetten, Kaat Malfroy en Isabelle Baert. Holistische zorg in Sinaai.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/g1yeJ174BAZCG95gG3Ujh.jpeg"}},"/de-ruimte":{title:"Praktijkruimte huren â Natuurhuys | Sinaai",description:"Huur het gelijkvloers van Natuurhuys voor workshops, vergaderingen of team meetings. Volledig ingericht, serene sfeer. Ook co-work op maandag.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/i04NvYcvQ1lgBaNryYUWn.jpeg"}},"/boeken":{title:"Boek de ruimte â Natuurhuys | Online reserveren",description:"Boek eenvoudig het gelijkvloers van Natuurhuys online. Eenmalige huur, 5-beurtenkaart of co-work op maandag. Veilig betalen via Stripe.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/i04NvYcvQ1lgBaNryYUWn.jpeg"}},"/privacybeleid":{title:"Privacybeleid â Natuurhuys | GDPR-conforme gegevensverwerking",description:"Lees hoe Natuurhuys omgaat met uw persoonsgegevens conform de AVG/GDPR-wetgeving. Transparant, veilig en respectvol.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/i04NvYcvQ1lgBaNryYUWn.jpeg"}},"/algemene-voorwaarden":{title:"Algemene voorwaarden â Natuurhuys | Ruimteverhuur",description:"Lees de algemene voorwaarden van Natuurhuys voor het gebruik van onze website, diensten en ruimteverhuur in Sinaai.",openGraph:{images:"https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/axgi04333kqw04hma7kzapjv/agda8b6axs6mvuap5c1sr26z/i04NvYcvQ1lgBaNryYUWn.jpeg"}}};function sv({className:n=""}){const a=Array.from({length:12},(s,o)=>{const l=o*30*Math.PI/180;return{i:o,x2:20+12*Math.sin(l),y2:20-12*Math.cos(l),tipX:20+15.5*Math.sin(l),tipY:20-15.5*Math.cos(l)}});return D.jsxs("svg",{viewBox:"0 0 40 40",className:n,"aria-hidden":"true",fill:"currentColor",children:[D.jsx("circle",{cx:"20",cy:"20",r:"1.8"}),a.map(({i:s,x2:o,y2:l,tipX:f,tipY:d})=>D.jsxs("g",{children:[D.jsx("line",{x1:"20",y1:"20",x2:o,y2:l,strokeWidth:"0.75",stroke:"currentColor",fill:"none"}),D.jsx("circle",{cx:f,cy:d,r:"1.5"})]},s))]})}function nC(){const{pathname:n}=G4(),a=n==="/",[s,o]=V.useState(!1),[l,f]=V.useState(!1);V.useEffect(()=>{const h=()=>o(window.scrollY>80);return window.addEventListener("scroll",h,{passive:!0}),h(),()=>window.removeEventListener("scroll",h)},[]);const d=a&&!s,m=[{to:"/",label:"Home"},{to:"/filosofie",label:"Filosofie"},{to:"/groepspraktijk",label:"De Praktijk"},{to:"/de-ruimte",label:"De Ruimte"}];return D.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${d?"bg-transparent":"bg-ivory shadow-sm border-b border-ivory-deep"}`,children:[D.jsx("meta",{name:"ai-generated",content:"true"}),D.jsx("script",{dangerouslySetInnerHTML:{__html:` 134(async function () { 135 setTimeout(() => { 136 var container = document.querySelector("[data-platform-badge-container]"); 137 var badge = document.querySelector("a[data-platform-badge]"); 138 var closeBtn = document.querySelector("[data-platform-badge-close]"); 139 if (!container || !badge) { 140 return; 141 } 142 143 // Lay the badge out as a black pill: wordmark on the left, dismiss (Ã) on 144 // the right, vertically centered with the wordmark. Styling is applied from 145 // the script so the injected markup stays free of pill styling. 146 // Cap the whole pill (wordmark + Ã) at the viewport so a long whitelabel 147 // badge can't push the fixed, right-anchored container off the left edge. 148 container.style.cssText = "position:fixed;bottom:10px;right:10px;display:none;align-items:center;max-width:calc(100vw - 20px);background:#000;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,0.18);z-index:2147483647;"; 149 150 // The close (Ã) button lets visitors dismiss the badge until the next page load. 151 if (closeBtn) { 152 closeBtn.style.cssText = "display:none;align-self:stretch;align-items:center;justify-content:center;padding:0 8px 0 2px;border:none;background:transparent;color:rgba(255,255,255,0.8);font-family:Arial,sans-serif;font-size:16px;line-height:1;cursor:pointer;";
153 closeBtn.addEventListener("click", function (e) { 154 e.preventDefault(); 155 e.stopPropagation(); 156 container.style.display = "none"; 157 }); 158 } 159 160 // Fetch badge-config 161 fetch("https://www.macaly.com" + '/api/badge-config?chatId=' + encodeURIComponent("agda8b6axs6mvuap5c1sr26z")) 162 .then(function (res) { 163 return res.json(); 164 }) 165 .then(function (data) { 166 // Set badge link and show badge 167 if (badge) { 168 badge.href = data.link; 169 var isTextBadge = typeof data.content === "string" && !!data.content.trim(); 170 if (isTextBadge) { 171 // The default SVG draws its own pill; custom text needs one on the anchor. 172 // Shrink within the container (which is capped to the viewport) and 173 // reserve room for the à instead of overflowing past it. 174 badge.style.cssText += "align-items:center;justify-content:center;border-radius:999px;background:#000;color:#fff;padding:8px 12px;font-family:Arial,sans-serif;font-size:13px;font-weight:600;line-height:16px;min-width:0;flex:0 1 auto;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"; 175 badge.textContent = data.content; 176 } 177 if (data.badgeVisibility) { 178 badge.style.display = isTextBadge ? "inline-flex" : "block"; 179 container.style.display = "inline-flex"; 180 if (closeBtn) { 181 closeBtn.style.display = "flex"; 182 } 183 } 184 } 185 }); 186 }, 200); 187})(); 188`}}),D.jsx("script",{dangerouslySetInnerHTML:{__html:` 189(function() { 190 var s = document.createElement('script'); 191 s.src = 'https://www.macaly.com/js/platform-app.js'; 192 s.defer = true; 193 s.setAttribute('data-url', 'https://m.lilstts.com/events'); 194 document.head.appendChild(s); 195})(); 196`}}),D.jsxs("div",{className:"max-w-6xl mx-auto px-6 h-16 flex items-center justify-between",children:[D.jsxs(sn,{to:"/",className:"flex items-center gap-2.5",children:[D.jsx(sv,{className:`w-7 h-7 transition-colors duration-500 ${d?"text-white/75":"text-terracotta"}`}),D.jsx("span",{className:`font-display text-xl tracking-wide transition-colors duration-500 ${d?"text-white":"text-ink"}`,children:"Natuurhuys"})]}),D.jsxs("nav",{className:"hidden md:flex items-center gap-8","aria-label":"Hoofdnavigatie",children:[m.map(({to:h,label:g})=>D.jsx(sn,{to:h,className:`text-xs tracking-[0.2em] uppercase font-light transition-colors duration-500 ${d?"text-white/75 hover:text-white":"text-ink-soft hover:text-terracotta"} ${n===h?d?"text-white":"text-terracotta":""}`,children:g},h)),D.jsx(sn,{to:"/boeken",className:`text-xs tracking-[0.2em] uppercase font-light px-4 py-2 transition-all duration-500 ${d?"border border-white/50 text-white hover:bg-white/15":"border border-terracotta text-terracotta hover:bg-terracotta hover:text-white"} ${n==="/boeken"?d?"bg-white/15":"bg-terracotta text-white":""}`,children:"Boeken"})]}),D.jsx("button",{onClick:()=>f(!l),className:`md:hidden p-2 transition-colors duration-500 ${d?"text-white":"text-ink"}`,"aria-label":l?"Menu sluiten":"Menu openen","aria-expanded":l,children:D.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24","aria-hidden":"true",children:l?D.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}):D.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5M3.75 17.25h16.5"})})})]}),l&&D.jsxs("div",{className:"md:hidden bg-ivory border-t border-ivory-deep px-6 py-2",children:[m.map(({to:h,label:g})=>D.jsx(sn,{to:h,onClick:()=>f(!1),className:`block py-3.5 text-xs tracking-[0.2em] uppercase font-light border-b border-ivory-deep transition-colors ${n===h?"text-terracotta":"text-ink-soft hover:text-terracotta"}`,children:g},h)),D.jsx(sn,{to:"/boeken",onClick:()=>f(!1),className:"block py-3.5 text-xs tracking-[0.2em] uppercase font-light text-terracotta hover:text-terracotta/80 transition-colors",children:"Boeken â"})]})]})}function aC(){const n=[{to:"/",label:"Home"},{to:"/filosofie",label:"Filosofie"},{to:"/groepspraktijk",label:"De Praktijk"},{to:"/de-ruimte",label:"De Ruimte"},{to:"/boeken",label:"Boeken"}];return D.jsx("footer",{className:"bg-ivory-mid border-t border-ivory-deep",children:D.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-16",children:[D.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[D.jsxs("div",{children:[D.jsxs("div",{className:"flex items-center gap-2.5 mb-4",children:[D.jsx(sv,{className:"w-7 h-7 text-terracotta"}),D.jsx("span",{className:"font-display text-xl text-ink tracking-wide",children:"Natuurhuys"})]}),D.jsx("p",{className:"font-display text-base italic text-ink-soft font-light leading-relaxed",children:"Een huis waar je mag vertragen."})]}),D.jsxs("div",{children:[D.jsx("h4",{className:"text-[10px] font-light tracking-[0.25em] uppercase text-ink-muted mb-5",children:"Navigatie"}),D.jsx("ul",{className:"space-y-3",children:n.map(({to:a,label:s})=>D.jsx("li",{children:D.jsx(sn,{to:a,className:"text-sm text-ink-soft hover:text-terracotta transition-colors font-light",children:s})},a))})]}),D.jsxs("div",{children:[D.jsx("h4",{className:"text-[10px] font-light tracking-[0.25em] uppercase text-ink-muted mb-5",children:"Locatie"}),D.jsxs("address",{className:"not-italic text-sm text-ink-soft font-light leading-relaxed",children:[D.jsx("p",{className:"font-medium text-ink",children:"Natuurhuys"}),D.jsx("p",{children:"Dries 16, 9112 Sinaai"}),D.jsx("p",{children:"Oost-Vlaanderen · België"}),D.jsx("a",{href:"mailto:[email protected]",className:"hover:text-terracotta transition-colors",children:"[email protected]"})]}),D.jsx("p",{className:"text-[11px] text-ink-muted font-light leading-relaxed mt-3",children:"Op De Dries, het groene hart van Sinaai"}),D.jsxs("div",{className:"flex items-center gap-4 mt-5",children:[D.jsx("a",{href:"https://www.instagram.com/natuurhuys/",target:"_blank",rel:"noopener noreferrer","aria-label":"Natuurhuys op Instagram",className:"text-ink-muted hover:text-terracotta transition-colors",children:D.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:D.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})}),D.jsx("a",{href:"https://www.facebook.com/natuurhuys",target:"_blank",rel:"noopener noreferrer","aria-label":"Natuurhuys op Facebook",className:"text-ink-muted hover:text-terracotta transition-colors",children:D.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:D.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})})]})]})]}),D.jsxs("div",{className:"mt-12 pt-6 border-t border-ivory-deep flex flex-col sm:flex-row items-center justify-between gap-3",children:[D.jsx("p",{className:"text-[11px] text-ink-muted font-light tracking-wide",children:"© 2026 Natuurhuys â Alle rechten voorbehouden"}),D.jsxs("div",{className:"flex items-center gap-4",children:[D.jsx(sn,{to:"/privacybeleid",className:"text-[11px] text-ink-muted font-light hover:text-terracotta transition-colors",children:"Privacybeleid"}),D.jsx("span",{className:"text-ink-muted/40 text-[11px]",children:"·"}),D.jsx(sn,{to:"/algemene-voorwaarden",className:"text-[11px] text-ink-muted font-light hover:text-terracotta transition-colors",children:"Algemene voorwaarden"})]})]})]})})}const p1=Na["/"],iC={"@context":"https://schema.org","@type":"Person",name:"Maya Vereecken",jobTitle:"Apotheker en systemisch gezondheidsexpert",url:"https://www.mayavereecken.com",sameAs:["https://www.linkedin.com/in/mayavereecken","https://www.instagram.com/natuurhuys","https://www.mayascircle.com","https://www.mayavereecken.com","https://www.natuurhuys.be"],worksFor:[{"@type":"LocalBusiness",name:"Het Natuurhuys",url:"https://www.natuurhuys.be",address:{"@type":"PostalAddress",streetAddress:"Dries 16",addressLocality:"Sinaai",postalCode:"9112",addressRegion:"Oost-Vlaanderen",addressCountry:"BE"},description:"Holistische groepspraktijk in Sinaai â een huis om te vertragen."},{"@type":"EducationalOrganization",name:"Maya's Circle",url:"https://www.mayascircle.com",description:"Online gezondheidseducatie â web
196inars en persoonlijke apotheekbibliotheek."},{"@type":"Organization",name:"Maya Vereecken",url:"https://www.mayavereecken.com",description:"Deep dive trajecten, systemisch werken en high-level consultancy voor complexe gezondheidsvragen.",sameAs:["https://www.mayascircle.com","https://www.natuurhuys.be"]}]},We=A4({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:p1.title},{name:"description",content:p1.description}],links:[{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"manifest",href:"/manifest.json"}],scripts:[{type:"application/ld+json",children:JSON.stringify(iC)},{src:"https://www.googletagmanager.com/gtag/js?id=G-44P704BDMW",async:!0},{children:"
vendor: 118 bytes, line 196
196window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','
196G-44P704BDMW
vendor: 3 bytes, line 196
196');
196"}]}),shellComponent:sC});function sC({children:n}){return D.jsxs("html",{lang:"nl",suppressHydrationWarning:!0,children:[D.jsx("head",{children:D.jsx(Z4,{})}),D.jsx(i6,{children:D.jsxs("body",{children:[D.jsxs(eC,{children:[D.jsx(nC,{}),n,D.jsx(aC,{})]}),D.jsx(K4,{})]})}),D.jsxs("div",{"data-platform-badge-container":!0,style:{position:"fixed",bottom:"10px",right:"10px",display:"none"},children:[D.jsx("a",{"data-platform-badge":!0,style:{cursor:"pointer",display:"block"},href:"",target:"_blank",rel:"noopener noreferrer",children:D.jsxs("svg",{width:"172",height:"28",viewBox:"0 0 172 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",children:[D.jsx("title",{children:"Made with AI in Macaly"}),D.jsx("rect",{width:"172",height:"28",rx:"5",fill:"black",style:{fill:"black",fillOpacity:1}}),D.jsx("path",{d:"M10.9891 10.7273H12.0402L14.5118 16.7642H14.597L17.0686 10.7273H18.1198V18H17.2959V12.4744H17.2249L14.9521 18H14.1567L11.884 12.4744H11.8129V18H10.9891V10.7273ZM21.377 18.1278C21.0314 18.1278 20.7177 18.0627 20.436 17.9325C20.1543 17.8 19.9305 17.6094 19.7648 17.3608C19.5991 17.1098 19.5162 16.8068 19.5162 16.4517C19.5162 16.1392
19619.5778 15.8859 19.7009 15.6918C19.824 15.4953 19.9885 15.3414 20.1945 15.2301C20.4005 15.1188 20.6278 15.036 20.8763 14.9815C21.1273 14.9247 21.3794 14.8797 21.6327 14.8466C21.9642 14.804 22.2329 14.772 22.4388 14.7507C22.6472 14.727 22.7987 14.688 22.8934 14.6335C22.9904 14.5791 23.039 14.4844 23.039 14.3494V14.321C23.039 13.9706 22.9431 13.6984 22.7513 13.5043C22.5619 13.3101 22.2743 13.2131 21.8884 13.2131C21.4883 13.2131 21.1746 13.3007 20.9474 13.4759C20.7201 13.651 20.5603 13.8381 20.468 14.0369L19.6725 13.7528C19.8145 13.4214 20.0039 13.1634 20.2407 12.9787C20.4798 12.7917 20.7402 12.6615 21.0219 12.5881C21.306 12.5123 21.5854 12.4744 21.86 12.4744C22.0352 12.4744 22.2364 12.4957 22.4637 12.5384C22.6933 12.5786 22.9147 12.6626 23.1278 12.7905C23.3432 12.9183 23.5219 13.1113 23.664 13.3693C23.806 13.6274 23.877 13.973 23.877 14.4062V18H23.039V17.2614H22.9964C22.9395 17.3797 22.8448 17.5064 22.7123 17.6413C22.5797 17.7763 22.4033 17.8911 22.1831 17.9858C21.963 18.0805 21.6943 18.1278 21.377 18.1278ZM21.5049 17.375C21.8363 17.375 22.1157 17.3099 22.343 17.1797C22.5726 17.0495 22.7454 16.8814 22.8614 16.6754C22.9798 16.4695 23.039 16.2528 23.039 16.0256V15.2585C23.0035 15.3011 22.9253 15.3402 22.8046 15.3757C22.6862 15.4089 22.5489 15.4384 22.3927 15.4645C22.2388 15.4882 22.0885 15.5095 21.9417 15.5284C21.7973 15.545 21.6801 15.5592 21.5901 15.571C21.3723 15.5994 21.1687 15.6456 20.9793 15.7095C20.7923 15.7711 20.6408 15.8646 20.5248 15.9901C20.4111 16.1132 20.3543 16.2812 20.3543 16.4943C20.3543 16.7855 20.462 17.0057 20.6775 17.1548C20.8953 17.3016 21.1711 17.375 21.5049 17.375ZM27.4664 18.1136C27.0118 18.1136 26.6105 17.9988 26.2625 17.7692C25.9145 17.5372 25.6423 17.2105 25.4458 16.7891C25.2493 16.3653 25.151 15.8646 25.151 15.2869C25.151 14.714 25.2493 14.2169 25.4458 13.7955C25.6423 13.3741 25.9157 13.0485 26.2661 12.8189C26.6164 12.5893 27.0213 12.4744 27.4806 12.4744C27.8357 12.4744 28.1162 12.5336 28.3222 12.652C28.5305 12.768 28.6891 12.9006 28.798 13.0497C28.9093 13.1965 28.9957 13.3172 29.0573 13.4119H29.1283V10.7273H29.9664V18H29.1567V17.1619H29.0573C28.9957 17.2614 28.9081 17.3868 28.7945 17.5384C28.6808 17.6875 28.5187 17.8213 28.308 17.9396C28.0973 18.0556 27.8167 18.1136 27.4664 18.1136ZM27.58 17.3608C27.9162 17.3608 28.2003 17.2732 28.4323 17.098C28.6643 16.9205 28.8406 16.6754 28.9614 16.3629C29.0821 16.0481 29.1425 15.6847 29.1425 15.2727C29.1425 14.8655 29.0833 14.5092 28.9649 14.2038C28.8466 13.8961 28.6714 13.657 28.4394 13.4865C28.2074 13.3137 27.9209 13.2273 27.58 13.2273C27.2249 13.2273 26.9289 13.3184 26.6922 13.5007C26.4578 13.6806 26.2815 13.9257 26.1631 14.2358C26.0471 14.5436 25.9891 14.8892 25.9891 15.2727C25.9891 15.661 26.0483 16.0137 26.1666 16.331C26.2874 16.6458 26.4649 16.8968 26.6993 17.0838C26.9361 17.2685 27.2296 17.3608 27.58 17.3608ZM33.9046 18.1136C33.379 18.1136 32.9256 17.9976 32.5445 17.7656C32.1657 17.5312 31.8733 17.2045 31.6673 16.7855C31.4637 16.3641 31.3619 15.8741 31.3619 15.3153C31.3619 14.7566 31.4637 14.2642 31.6673 13.8381C31.8733 13.4096 32.1598 13.0758 32.5267 12.8366C32.896 12.5952 33.3269 12.4744 33.8193 12.4744C34.1034 12.4744 34.384 12.5218 34.661 12.6165C34.9379 12.7112 35.1901 12.8651 35.4173 13.0781C35.6446 13.2888 35.8257 13.5682 35.9607 13.9162C36.0956 14.2642 36.1631 14.6927 36.1631 15.2017V15.5568H31.9585V14.8324H35.3108C35.3108 14.5246 35.2493 14.25 35.1262 14.0085C35.0054 13.767 34.8326 13.5765 34.6077 13.4368C34.3852 13.2971 34.1224 13.2273 33.8193 13.2273C33.4855 13.2273 33.1967 13.3101 32.9529 13.4759C32.7114 13.6392 32.5255 13.8523 32.3953 14.1151C32.2651 14.3778 32.2 14.6596 32.2 14.9602V15.4432C32.2 15.8551 32.271 16.2043 32.4131 16.4908C32.5575 16.7749 32.7575 16.9915 33.0132 17.1406C33.2689 17.2874 33.566 17.3608 33.9046 17.3608C34.1247 17.3608 34.3236 17.33 34.5012 17.2685C34.6811 17.2045 34.8361 17.1098 34.9664 16.9844C35.0966 16.8565 35.1972 16.6979 35.2682 16.5085L36.0779 16.7358C35.9926 17.0104 35.8494 17.2519 35.6482 17.4602C35.4469 17.6662 35.1984 17.8272 34.9024 17.9432C34.6065 18.0568 34.2739 18.1136 33.9046 18.1136ZM41.4862 18L39.8243 12.5455H40.705L41.884 16.7216H41.9408L43.1056 12.5455H44.0004L45.
196151 16.7074H45.2078L46.3868 12.5455H47.2675L45.6056 18H44.7817L43.5885 13.8097H43.5033L42.3101 18H41.4862ZM48.3754 18V12.5455H49.2135V18H48.3754ZM48.8016 11.6364C48.6382 11.6364 48.4974 11.5807 48.379 11.4695C48.263 11.3582 48.205 11.2244 48.205 11.0682C48.205 10.9119 48.263 10.7782 48.379 10.6669C48.4974 10.5556 48.6382 10.5 48.8016 10.5C48.9649 10.5 49.1046 10.5556 49.2206 10.6669C49.339 10.7782 49.3982 10.9119 49.3982 11.0682C49.3982 11.2244 49.339 11.3582 49.2206 11.4695C49.1046 11.5807 48.9649 11.6364 48.8016 11.6364ZM53.1206 12.5455V13.2557H50.2939V12.5455H53.1206ZM51.1178 11.2386H51.9559V16.4375C51.9559 16.6742 51.9902 16.8518 52.0589 16.9702C52.1299 17.0862 52.2198 17.1643 52.3287 17.2045C52.44 17.2424 52.5572 17.2614 52.6803 17.2614C52.7726 17.2614 52.8484 17.2566 52.9076 17.2472C52.9668 17.2353 53.0141 17.2259 53.0496 17.2188L53.2201 17.9716C53.1633 17.9929 53.084 18.0142 52.9822 18.0355C52.8804 18.0592 52.7513 18.071 52.5951 18.071C52.3583 18.071 52.1263 18.0201 51.8991 17.9183C51.6742 17.8165 51.4871 17.6615 51.338 17.4531C51.1912 17.2448 51.1178 16.982 51.1178 16.6648V11.2386ZM55.3366 14.7188V18H54.4985V10.7273H55.3366V13.3977H55.4076C55.5354 13.116 55.7272 12.8923 55.9829 12.7266C56.2409 12.5585 56.5842 12.4744 57.0127 12.4744C57.3844 12.4744 57.7099 12.549 57.9893 12.6982C58.2686 12.8449 58.4852 13.071 58.6391 13.3764C58.7954 13.6795 58.8735 14.0653 58.8735 14.5341V18H58.0354V14.5909C58.0354 14.1577 57.923 13.8227 57.6981 13.5859C57.4755 13.3468 57.1666 13.2273 56.7712 13.2273C56.4966 13.2273 56.2504 13.2853 56.0326 13.4013C55.8171 13.5173 55.6467 13.6866 55.5212 13.9091C55.3981 14.1316 55.3366 14.4015 55.3366 14.7188ZM63.6311 18H62.7078L65.3783 10.7273H66.2874L68.9578 18H68.0345L65.8612 11.8778H65.8044L63.6311 18ZM63.972 15.1591H67.6936V15.9403H63.972V15.1591ZM70.9713 10.7273V18H70.0906V10.7273H70.9713ZM75.436 18V12.5455H76.2741V18H75.436ZM75.8621 11.6364C75.6988 11.6364 75.5579 11.5807 75.4395 11.4695C75.3235 11.3582 75.2655 11.2244 75.2655 11.0682C75.2655 10.9119 75.3235 10.7782 75.4395 10.6669C75.5579 10.5556 75.6988 10.5 75.8621 10.5C76.0255 10.5 76.1652 10.5556 76.2812 10.6669C76.3995 10.7782 76.4587 10.9119 76.4587 11.0682C76.4587 11.2244 76.3995 11.3582 76.2812 11.4695C76.1652 11.5807 76.0255 11.6364 75.8621 11.6364ZM78.6471 14.7188V18H77.809V12.5455H78.6187V13.3977H78.6897C78.8176 13.1207 79.0117 12.8982 79.2721 12.7301C79.5325 12.5597 79.8687 12.4744 80.2806 12.4744C80.6499 12.4744 80.9731 12.5502 81.2501 12.7017C81.5271 12.8509 81.7425 13.0781 81.8964 13.3835C82.0503 13.6866 82.1272 14.0701 82.1272 14.5341V18H81.2892V14.5909C81.2892 14.1624 81.1779 13.8286 80.9553 13.5895C80.7328 13.348 80.4274 13.2273 80.0392 13.2273C79.7716 13.2273 79.5325 13.2853 79.3218 13.4013C79.1135 13.5173 78.949 13.6866 78.8282 13.9091C78.7075 14.1316 78.6471 14.4015 78.6471 14.7188Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M96.3039 7.14491C96.642 6.9517 97.0575 6.9517 97.3956 7.14491L100.7 9.03316L95.9035 11.7733C94.6199 12.507 94.6199 14.3583 95.9035 15.0919L100.7 17.8321L97.3956 19.7203C97.0575 19.9135 96.642 19.9135 96.3039 19.7203L93.5539 18.149C93.2114 17.9532 93.0001 17.5886 93 17.194V9.67122C93 9.27662 93.2114 8.91208 93.5539 8.71623L96.3039 7.14491ZM104.003 7.14491C104.342 6.95176 104.757 6.95171 105.095 7.14491L107.844 8.71623C108.187 8.91207 108.399 9.27658 108.399 9.67122V17.194C108.399 17.5886 108.187 17.9532 107.844 18.149L105.095 19.7203C104.757 19.9135 104.342 19.9135 104.003 19.7203L100.7 17.8321L105.495 15.0919C106.779 14.3583 106.779 12.507 105.495 11.7733L100.7 9.03316L104.003 7.14491ZM96.8494 12.3328C97.4568 12.3328 97.9494 12.825 97.9495 13.4323C97.9495 14.0397 97.4569 14.5324 96.8494 14.5324C96.2421 14.5323 95.75 14.0396 95.75 13.4323C95.7502 12.8251 96.2422 12.333 96.8494 12.3328ZM104.549 12.3328C105.156 12.3328 105.649 12.825 105.649 13.4323C105.649 14.0397 105.156 14.5324 104.549 14.5324C103.942 14.5324 103.449 14.0397 103.449 13.4323C103.449 12.825 103.942 12.3329 104.549 12.3328Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M155.347 22L156.971 18.3558L153.724 11.1174H155.693L157.948 16.2581L160.082 11.1174H161.991L157.256 22H155.347Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M151.273 18.6929V8.17139H153.077V18.6929H151.273Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M145.919 18.8736C145.297 18.8736 144.781 18.7684 144.37 18.5579C143.96 18.3475 143.654 18.0669 143.453 17.7162C143.253 17.3654 143.153 16.9847 143.153 16.5
196738C143.153 16.0928 143.273 15.677 143.514 15.3262C143.764 14.9755 144.13 14.7049 144.611 14.5145C145.092 14.3141 145.683 14.2139 146.385 14.2139H148.294C148.294 13.8131 148.239 13.4824 148.128 13.2219C148.018 12.9513 147.848 12.7509 147.617 12.6206C147.387 12.4904 147.091 12.4252 146.73 12.4252C146.32 12.4252 145.969 12.5204 145.678 12.7108C145.388 12.8912 145.207 13.1718 145.137 13.5526H143.363C143.423 13.0114 143.604 12.5505 143.904 12.1697C144.205 11.7789 144.601 11.4783 145.092 11.2678C145.593 11.0474 146.139 10.9371 146.73 10.9371C147.442 10.9371 148.048 11.0624 148.549 11.3129C149.05 11.5534 149.431 11.9041 149.692 12.3651C149.962 12.816 150.098 13.3622 150.098 14.0035V18.6932H148.564L148.384 17.4757C148.284 17.6761 148.154 17.8615 147.993 18.0318C147.843 18.2022 147.667 18.3525 147.467 18.4828C147.267 18.603 147.036 18.6982 146.776 18.7684C146.525 18.8385 146.239 18.8736 145.919 18.8736ZM146.325 17.4456C146.615 17.4456 146.871 17.3955 147.091 17.2953C147.322 17.1851 147.517 17.0348 147.677 16.8444C147.848 16.644 147.978 16.4235 148.068 16.183C148.159 15.9425 148.219 15.687 148.249 15.4164V15.3863H146.58C146.229 15.3863 145.939 15.4314 145.708 15.5216C145.478 15.6018 145.312 15.722 145.212 15.8824C145.112 16.0427 145.062 16.2281 145.062 16.4385C145.062 16.649 145.112 16.8293 145.212 16.9796C145.312 17.13 145.458 17.2452 145.648 17.3254C145.839 17.4055 146.064 17.4456 146.325 17.4456Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M138.783 18.8736C138.041 18.8736 137.375 18.7082 136.784 18.3775C136.202 18.0368 135.746 17.5709 135.416 16.9796C135.095 16.3784 134.935 15.697 134.935 14.9354C134.935 14.1438 135.095 13.4523 135.416 12.8611C135.746 12.2599 136.202 11.7889 136.784 11.4482C137.375 11.1075 138.046 10.9371 138.798 10.9371C139.74 10.9371 140.532 11.1877 141.173 11.6887C141.773 12.1479 142.171 12.7694 142.368 13.553H140.459C140.346 13.2493 140.153 13.0036 139.88 12.816C139.569 12.5956 139.199 12.4853 138.768 12.4853C138.397 12.4853 138.056 12.5805 137.746 12.7709C137.445 12.9613 137.204 13.2369 137.024 13.5976C136.854 13.9584 136.768 14.3943 136.768 14.9054C136.768 15.2962 136.819 15.6419 136.919 15.9425C137.019 16.2431 137.159 16.4987 137.34 16.7091C137.53 16.9095 137.746 17.0648 137.986 17.1751C138.227 17.2853 138.487 17.3404 138.768 17.3404C139.058 17.3404 139.319 17.2953 139.549 17.2051C139.79 17.1049 139.99 16.9596 140.151 16.7692C140.321 16.5788 140.441 16.3534 140.511 16.0928H142.406C142.225 16.9346 141.814 17.611 141.173 18.122C140.532 18.6231 139.735 18.8736 138.783 18.8736Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M129.836 18.8736C129.214 18.8736 128.698 18.7684 128.287 18.5579C127.877 18.3475 127.571 18.0669 127.37 17.7162C127.17 17.3654 127.07 16.9847 127.07 16.5738C127.07 16.0928 127.19 15.677 127.431 15.3262C127.681 14.9755 128.047 14.7049 128.528 14.5145C129.009 14.3141 129.6 14.2139 130.302 14.2139H132.211C132.211 13.8131 132.156 13.4824 132.045 13.2219C131.935 12.9513 131.765 12.7509 131.534 12.6206C131.304 12.4904 131.008 12.4252 130.647 12.4252C130.237 12.4252 129.886 12.5204 129.595 12.7108C129.305 12.8912 129.124 13.1718 129.054 13.5526H127.28C127.34 13.0114 127.521 12.5505 127.821 12.1697C128.122 11.7789 128.518 11.4783 129.009 11.2678C129.51 11.0474 130.056 10.9371 130.647 10.9371C131.359 10.9371 131.965 11.0624 132.466 11.3129C132.967 11.5534 133.348 11.9041 133.609 12.3651C133.879 12.816 134.015 13.3622 134.015 14.0035V18.6932H132.481L132.301 17.4757C132.201 17.6761 132.07 17.8615 131.91 18.0318C131.76 18.2022 131.584 18.3525 131.384 18.4828C131.184 18.603 130.953 18.6982 130.693 18.7684C130.442 18.8385 130.156 18.8736 129.836 18.8736ZM130.242 17.4456C130.532 17.4456 130.788 17.3955 131.008 17.2953C131.239 17.1851 131.434 17.0348 131.594 16.8444C131.765 16.644 131.895 16.4235 131.985 16.183C132.076 15.9425 132.136 15.687 132.166 15.4164V15.3863H130.497C130.146 15.3863 129.856 15.4314 129.625 15.5216C129.395 15.6018 129.229 15.722 129.129 15.8824C129.029 16.0427 128.979 16.2281 128.979 16.4385C128.979 16.649 129.029 16.8293 129.129 16.9797C129.229 17.13
196129.375 17.2452 129.565 17.3254C129.756 17.4055 129.981 17.4456 130.242 17.4456Z",fill:"white",style:{fill:"white",fillOpacity:1}}),D.jsx("path",{d:"M114.998 18.6932V8.17139H117.133L120.5 14.9655L123.837 8.17139H125.987V18.6932H124.183V11.2678L121.206 17.2201H119.793L116.802 11.2828V18.6932H114.998Z",fill:"white",style:{fill:"white",fillOpacity:1}})]})}),D.jsx("button",{"data-platform-badge-close":!0,type:"button","aria-label":"Hide badge",style:{display:"none"},children:"Ã"})]})]})}const rC="modulepreload",oC=function(n){return"/"+n},g1={},un=function(a,s,o){let l=Promise.resolve();if(s&&s.length>0){let h=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");l=h(s.map(g=>{if(g=oC(g),g in g1)return;g1[g]=!0;const v=g.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const C=document.createElement("link");if(C.rel=v?"stylesheet":rC,v||(C.as="script"),C.crossOrigin="",C.href=g,m&&C.setAttribute("nonce",m),document.head.appendChild(C),v)return new Promise((S,x)=>{C.addEventListener("load",S),C.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return l.then(d=>{for(const m of d||[])m.status==="rejected"&&f(m.reason);return a().catch(f)})},lC=()=>un(()=>import("./stijl-D8kekWDI.js"),[]),uC=on("/stijl")({head:()=>({meta:[{title:"Stijlgids â Natuurhuys"},{name:"robots",content:"noindex"}]}),component:ln(lC,"component")}),cC=()=>un(()=>import("./privacybeleid-Oj2Mccvb.js"),[]),fC=on("/privacybeleid")({head:()=>{const n=Na["/privacybeleid"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/privacybeleid"}]}},component:ln(cC,"component")}),dC=()=>un(()=>import("./links-wmLhmmzd.js"),__vite__mapDeps([0,1])),hC=on("/links")({head:()=>({meta:[{title:"Activiteiten & Links â Natuurhuys"},{name:"robots",content:"noindex"}]}),component:ln(dC,"component")}),mC=()=>un(()=>import("./groepspraktijk-CKc8LINk.js"),[]),pC=on("/groepspraktijk")({head:()=>{const n=Na["/groepspraktijk"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/groepspraktijk"}]}},component:ln(mC,"component")}),gC=()=>un(()=>import("./filosofie-BuFuiWJt.js"),[]),yC=on("/filosofie")({head:()=>{const n=Na["/filosofie"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/filosofie"}]}},component:ln(gC,"component")}),vC=()=>un(()=>import("./de-ruimte-YY0EA-pD.js"),[]),bC=on("/de-ruimte")({head:()=>{const n=Na["/de-ruimte"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/de-ruimte"}]}},component:ln(vC,"component")}),SC=()=>un(()=>import("./boeken-6hzBJSCT.js"),__vite__mapDeps([2,1])),wC=on("/boeken")({head:()=>{const n=Na["/boeken"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/boeken"}]}},component:ln(SC,"component")}),EC=()=>un(()=>import("./bedankt-CBiQsMSO.js"),[]),CC=on("/bedankt")({head:()=>({meta:[{title:"Boeking bevestigd â Natuurhuys"},{name:"robots",content:"noindex"}
196]}),component:ln(EC,"component")}),_C=()=>un(()=>import("./algemene-voorwaarden-sG2oWOnb.js"),[]),TC=on("/algemene-voorwaarden")({head:()=>{const n=Na["/algemene-voorwaarden"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/algemene-voorwaarden"}]}},component:ln(_C,"component")}),xC=()=>un(()=>import("./admin-D3T0_yGG.js"),__vite__mapDeps([3,1])),RC=on("/admin")({head:()=>({meta:[{title:"Admin â Natuurhuys"},{name:"robots",content:"noindex"}]}),component:ln(xC,"component")}),AC=()=>un(()=>import("./index-R81jQVjS.js"),[]),MC=on("/")({head:()=>{const n=Na["/"];return{meta:[{title:n.title},{name:"description",content:n.description},{property:"og:title",content:n.title},{property:"og:description",content:n.description},{property:"og:image",content:n.openGraph.images},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://macaly-agda8b6axs6mvuap5c1sr26z.macaly.app/"}]}},component:ln(AC,"component")}),OC=uC.update({id:"/stijl",path:"/stijl",getParentRoute:()=>We}),LC=fC.update({id:"/privacybeleid",path:"/privacybeleid",getParentRoute:()=>We}),NC=hC.update({id:"/links",path:"/links",getParentRoute:()=>We}),kC=pC.update({id:"/groepspraktijk",path:"/groepspraktijk",getParentRoute:()=>We}),DC=yC.update({id:"/filosofie",path:"/filosofie",getParentRoute:()=>We}),zC=bC.update({id:"/de-ruimte",path:"/de-ruimte",getParentRoute:()=>We}),BC=wC.update({id:"/boeken",path:"/boeken",getParentRoute:()=>We}),UC=CC.update({id:"/bedankt",path:"/bedankt",getParentRoute:()=>We}),qC=TC.update({id:"/algemene-voorwaarden",path:"/algemene-voorwaarden",getParentRoute:()=>We}),jC=RC.update({id:"/admin",path:"/admin",getParentRoute:()=>We}),HC=MC.update({id:"/",path:"/",getParentRoute:()=>We}),VC={IndexRoute:HC,AdminRoute:jC,AlgemeneVoorwaardenRoute:qC,BedanktRoute:UC,BoekenRoute:BC,DeRuimteRoute:zC,FilosofieRoute:DC,GroepspraktijkRoute:kC,LinksRoute:NC,PrivacybeleidRoute:LC,StijlRoute:OC},QC=We._addFileChildren(VC);function PC(){return D.jsxs("div",{className:"flex flex-col items-center justify-center h-screen gap-4 p-6 text-center",children:[D.jsx("h1",{className:"text-4xl font-semibold",children:"404"}),D.jsx("p",{className:"text-muted-foreground",children:"Page not found."}),D.jsx(sn,{to:"/",className:"text-sm underline underline-offset-4 hover:no-underline",children:"Go home"})]})}function IC({error:n}){const a=re();return D.jsxs("div",{className:"flex flex-col items-center justify-center h-screen gap-4 p-6 text-center",children:[D.jsx("h1",{className:"text-4xl font-semibold",children:"Something went wrong"}),D.jsx("p",{className:"text-muted-foreground max-w-md break-words",children:n.message}),D.jsx("button",{onClick:()=>a.invalidate(),className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground",children:"Retry"})]})}function GC(){return V4({routeTree:QC,scrollRestoration:!0,defaultPreload:"intent",defaultPreloadStaleTime:0,defaultNotFoundComponent:PC,defaultErrorComponent:IC})}async function YC(){const n=await GC();let a;return a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a},a.push(Gw),n.options.serializationAdapters&&a.push(...n.options.serializationAdapters),n.update({basepath:"",serializationAdapters:a}),n.stores.matchesId.get().length||await $w(n),n}async function $C(){const n=await YC();return window.$_TSR?.h(),n}var Cf;function XC(){return Cf||(Cf=$C()),D.jsx(Fw,{promise:Cf,children:n=>D.jsx(I4,{router:n})})}V.startTransition(()=>{D2.hydrateRoot(document,D.jsx(V.StrictMode,{children:D.jsx(XC,{})}))});export{sn as L,He as R,FC as a,n8 as b,e8 as c,WC as d,JC as e,D as j,V as r,k6 as t,t8 as u};
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.