PageSourceSearch

https://investirsimple.com/assets/index-DND8j0iF.js

js investirsimple.com collected 2026-10-02 06:57:57 UTC 674,766 bytes, 56 lines download raw bytes

vendor: 5,551 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dd_2vzWJ.js","assets/ScrollReveal-DBaxc0e4.js","assets/download-DHBWSapQ.js","assets/use-count-up-BfylTv6X.js","assets/users-CnEib39l.js","assets/mic-BTjtbAro.js","assets/patrimoine-tool.png.asset-UUF9vA_K.js","assets/check-Dp8RNtfg.js","assets/star-CsNvQg2H.js","assets/external-link-CiC0Elv5.js","assets/graduation-cap-VOCeqO_H.js","assets/globe-D5moz6zZ.js","assets/shield-check-vO0FY8mC.js","assets/calendar-check-zm5mhAV5.js","assets/youtube-DJc7KRW_.js","assets/mail-SlOXMSKR.js","assets/about-uzA_-j57.js","assets/ban-D76zojNd.js","assets/target-CFlMjEz_.js","assets/academie-BU6rn9kx.js","assets/FAQSection-Dxv30kiG.js","assets/thomas-creton-chemise-B7aqBlPK.js","assets/clock-D85maYPI.js","assets/sparkles-DaastI3K.js","assets/file-check-DSoMFqxF.js","assets/academie-candidature-DDyVhVWx.js","assets/academie-candidature-confirmation-rendez-vous-DNs2Q_Yz.js","assets/circle-check-DWbyRPk3.js","assets/calendar-D_pcWuFW.js","assets/academie-merci-BTZ8Dv6V.js","assets/meta-pixel-Bf8jo32X.js","assets/academie-paiement-QNMf4_v2.js","assets/PaymentTestModeBanner-BHG8hJRe.js","assets/StripeEmbeddedCheckout-CUfNSmBa.js","assets/index-BfjrIY4E.js","assets/shield-DOQoPkUp.js","assets/lock-B-D0Td5a.js","assets/academie-pilier1-paiement-B9wa-iB3.js","assets/academie-pilier23-paiement-DVaVDbPx.js","assets/academie-test-live-BKqtDK4S.js","assets/admin-liens-DoESfpx7.js","assets/copy-CRCnTU5M.js","assets/budget-annuel-vs-budget-mensuel-avec-sophie-de-riche-au-feminin-DU_GoX3l.js","assets/calcul-rentabilite-locative-excel-tBXq3-2L.js","assets/challenge-merci-DNPiy3wV.js","assets/zap-DUI7uMYT.js","assets/challenge-septembre-Cs3L_S_f.js","assets/NotARobotCheckbox-DJa85jOX.js","assets/gift-DDwflSx1.js","assets/coaching-CWF2ZMVi.js","assets/contact-D1TM1a8a.js","assets/excelsuivipatrimoine-CneJohSj.js","assets/loader-circle-BlWSVS4q.js","assets/kitinvestisseur-BMe1wrZJ.js","assets/landingpagenewletter-1eff1abe-BJk26wHS.js","assets/lepodcast-BL-jd_uf.js","assets/listedattenteacademie-DBw05IUn.js","assets/meilleur-cto--trade-republic-vs-trading-212-B_L0EyAB.js","assets/merci-C9paMr2u.js","assets/mercipplusessai-485134d8-DHOhGcUK.js","assets/parrainage-Cp2BgRaB.js","assets/patrimoineplus-DTAvIeT8.js","assets/patrimoineplus-merci-DXZvN-EP.js","assets/patrimoineplus-paiement-QeIMLrus.js","assets/patrimoineplusversionessai-B6TWbZbQ.js","assets/patrimoineplusversionessai-c8977ba3-Hl4OjAVP.js","assets/perdre-de-largent-btement--6-astuces-pour-lviter-BgH7UV-f.js","assets/tableau-gestion-de-budget-kowkZhAQ.js","assets/tableaubudget-a5247605-BBy0gkZy.js","assets/tarifs-du-coaching-financier--comment-en-avoir-pour-son-argent--DGIo1Z7X.js","assets/top5etfpea-CmWnEcYs.js"])))=>i.map(i=>d[i]);
2function lT(t,e){for(var i=0;i<e.length;i++){const s=e[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var HM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ff={exports:{}},za={};var ey;function cT(){if(ey)return za;ey=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(s,o,l){var c=null;if(l!==void 0&&(c=""+l),o.key!==void 0&&(c=""+o.key),"key"in o){l={};for(var d in o)d!=="key"&&(l[d]=o[d])}else l=o;return o=l.ref,{$$typeof:t,type:s,key:c,ref:o!==void 0?o:null,props:l}}return za.Fragment=e,za.jsx=i,za.jsxs=i,za}var ty;function dT(){return ty||(ty=1,ff.exports=cT()),ff.exports}var D=dT(),hf={exports:{}},Se={};var ny;function fT(){if(ny)return Se;ny=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function b(x){return x===null||typeof x!="object"?null:(x=_&&x[_]||x["@@iterator"],typeof x=="function"?x:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function R(x,H,Q){this.props=x,this.context=H,this.refs=T,this.updater=Q||S}R.prototype.isReactComponent={},R.prototype.setState=function(x,H){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,H,"setState")},R.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function k(){}k.prototype=R.prototype;function C(x,H,Q){this.props=x,this.context=H,this.refs=T,this.updater=Q||S}var B=C.prototype=new k;B.constructor=C,E(B,R.prototype),B.isPureReactComponent=!0;var J=Array.isArray;function P(){}var N={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function te(x,H,Q){var re=Q.ref;return{$$typeof:t,type:x,key:H,ref:re!==void 0?re:null,props:Q}}function le(x,H){return te(x.type,H,x.props)}function F(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function G(x){var H={"=":"=0",":":"=2"};
vendor: 9,828 bytes, line 2
2return"$"+x.replace(/[=:]/g,function(Q){return H[Q]})}var ee=/\/+/g;function ye(x,H){return typeof x=="object"&&x!==null&&x.key!=null?G(""+x.key):H.toString(36)}function ce(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(P,P):(x.status="pending",x.then(function(H){x.status==="pending"&&(x.status="fulfilled",x.value=H)},function(H){x.status==="pending"&&(x.status="rejected",x.reason=H)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function z(x,H,Q,re,we){var Oe=typeof x;(Oe==="undefined"||Oe==="boolean")&&(x=null);var he=!1;if(x===null)he=!0;else switch(Oe){case"bigint":case"string":case"number":he=!0;break;case"object":switch(x.$$typeof){case t:case e:he=!0;break;case g:return he=x._init,z(he(x._payload),H,Q,re,we)}}if(he)return we=we(x),he=re===""?"."+ye(x,0):re,J(we)?(Q="",he!=null&&(Q=he.replace(ee,"$&/")+"/"),z(we,H,Q,"",function(Tn){return Tn})):we!=null&&(F(we)&&(we=le(we,Q+(we.key==null||x&&x.key===we.key?"":(""+we.key).replace(ee,"$&/")+"/")+he)),H.push(we)),1;he=0;var $e=re===""?".":re+":";if(J(x))for(var Qe=0;Qe<x.length;Qe++)re=x[Qe],Oe=$e+ye(re,Qe),he+=z(re,H,Q,Oe,we);else if(Qe=b(x),typeof Qe=="function")for(x=Qe.call(x),Qe=0;!(re=x.next()).done;)re=re.value,Oe=$e+ye(re,Qe++),he+=z(re,H,Q,Oe,we);else if(Oe==="object"){if(typeof x.then=="function")return z(ce(x),H,Q,re,we);throw H=String(x),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return he}function X(x,H,Q){if(x==null)return x;var re=[],we=0;return z(x,re,"","",function(Oe){return H.call(Q,Oe,we++)}),re}function fe(x){if(x._status===-1){var H=x._result;H=H(),H.then(function(Q){(x._status===0||x._status===-1)&&(x._status=1,x._result=Q)},function(Q){(x._status===0||x._status===-1)&&(x._status=2,x._result=Q)}),x._status===-1&&(x._status=0,x._result=H)}if(x._status===1)return x._result.default;throw x._result}var Be=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},je={map:X,forEach:function(x,H,Q){X(x,function(){H.apply(this,arguments)},Q)},count:function(x){var H=0;return X(x,function(){H++}),H},toArray:function(x){return X(x,function(H){return H})||[]},only:function(x){if(!F(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Se.Activity=v,Se.Children=je,Se.Component=R,Se.Fragment=i,Se.Profiler=o,Se.PureComponent=C,Se.StrictMode=s,Se.Suspense=h,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Se.__COMPILER_RUNTIME={__proto__:null,c:function(x){return N.H.useMemoCache(x)}},Se.cache=function(x){return function(){return x.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(x,H,Q){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var re=E({},x.props),we=x.key;if(H!=null)for(Oe in H.key!==void 0&&(we=""+H.key),H)!K.call(H,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&H.ref===void 0||(re[Oe]=H[Oe]);var Oe=arguments.length-2;if(Oe===1)re.children=Q;else if(1<Oe){for(var he=Array(Oe),$e=0;$e<Oe;$e++)he[$e]=arguments[$e+2];re.children=he}return te(x.type,we,re)},Se.createContext=function(x){return x={$$typeof:c,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:l,_context:x},x},Se.createElement=function(x,H,Q){var re,we={},Oe=null;if(H!=null)for(re in H.key!==void 0&&(Oe=""+H.key),H)K.call(H,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(we[re]=H[re]);var he=arguments.length-2;if(he===1)we.children=Q;else if(1<he){for(var $e=Array(he),Qe=0;Qe<he;Qe++)$e[Qe]=arguments[Qe+2];we.children=$e}if(x&&x.defaultProps)for(re in he=x.defaultProps,he)we[re]===void 0&&(we[re]=he[re]);return te(x,Oe,we)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(x){return{$$typeof:d,render:x}},Se.isValidElement=F,Se.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:fe}},Se.memo=function(x,H){return{$$typeof:m,type:x,compare:H===void 0?null:H}},Se.startTransition=function(x){var H=N.T,Q={};N.T=Q;try{var re=x(),we=N.S;we!==null&&we(Q,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(P,Be)}catch(Oe){Be(Oe)}finally{H!==null&&Q.types!==null&&(H.types=Q.types),N.T=H}},Se.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Se.use=function(x){return N.H.use(x)},Se.useActionState=function(x,H,Q){return N.H.useActionState(x,H,Q)},Se.useCallback=function(x,H){return N.H.useCallback(x,H)},Se.useContext=function(x){return N.H.useContext(x)},Se.useDebugValue=function(){},Se.useDeferredValue=function(x,H){return N.H.useDeferredValue(x,H)},Se.useEffect=function(x,H){return N.H.useEffect(x,H)},Se.useEffectEvent=function(x){return N.H.useEffectEvent(x)},Se.useId=function(){return N.H.useId()},Se.useImperativeHandle=function(x,H,Q){return N.H.useImperativeHandle(x,H,Q)},Se.useInsertionEffect=function(x,H){return N.H.useInsertionEffect(x,H)},Se.useLayoutEffect=function(x,H){return N.H.useLayoutEffect(x,H)},Se.useMemo=function(x,H){return N.H.useMemo(x,H)},Se.useOptimistic=function(x,H){return N.H.useOptimistic(x,H)},Se.useReducer=function(x,H,Q){return N.H.useReducer(x,H,Q)},Se.useRef=function(x){return N.H.useRef(x)},Se.useState=function(x){return N.H.useState(x)},Se.useSyncExternalStore=function(x,H,Q){return N.H.useSyncExternalStore(x,H,Q)},Se.useTransition=function(){return N.H.useTransition()},Se.version="19.2.5",Se}var iy;function _o(){return iy||(iy=1,hf.exports=fT()),hf.exports}var Z=_o();const bo=uT(Z),VM=lT({__proto__:null,default:bo},[Z]);var pf={exports:{}},Ia={},mf={exports:{}},gf={};var ry;function hT(){return ry||(ry=1,(function(t){function e(z,X){var fe=z.length;z.push(X);e:for(;0<fe;){var Be=fe-1>>>1,je=z[Be];if(0<o(je,X))z[Be]=X,z[fe]=je,fe=Be;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var X=z[0],fe=z.pop();if(fe!==X){z[0]=fe;e:for(var Be=0,je=z.length,x=je>>>1;Be<x;){var H=2*(Be+1)-1,Q=z[H],re=H+1,we=z[re];if(0>o(Q,fe))re<je&&0>o(we,Q)?(z[Be]=we,z[re]=fe,Be=re):(z[Be]=Q,z[H]=fe,Be=H);else if(re<je&&0>o(we,fe))z[Be]=we,z[re]=fe,Be=re;else break e}}return X}function o(z,X){var fe=z.sortIndex-X.sortIndex;return fe!==0?fe:z.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var h=[],m=[],g=1,v=null,_=3,b=!1,S=!1,E=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function B(z){for(var X=i(m);X!==null;){if(X.callback===null)s(m);else if(X.startTime<=z)s(m),X.sortIndex=X.expirationTime,e(h,X);else break;X=i(m)}}function J(z){if(E=!1,B(z),!S)if(i(h)!==null)S=!0,P||(P=!0,G());else{var X=i(m);X!==null&&ce(J,X.startTime-z)}}var P=!1,N=-1,K=5,te=-1;function le(){return T?!0:!(t.unstable_now()-te<K)}function F(){if(T=!1,P){var z=t.unstable_now();te=z;var X=!0;try{e:{S=!1,E&&(E=!1,k(N),N=-1),b=!0;var fe=_;try{t:{for(B(z),v=i(h);v!==null&&!(v.expirationTime>z&&le());){var Be=v.callback;if(typeof Be=="function"){v.callback=null,_=v.priorityLevel;var je=Be(v.expirationTime<=z);if(z=t.unstable_now(),typeof je=="function"){v.callback=je,B(z),X=!0;break t}v===i(h)&&s(h),B(z)}else s(h);v=i(h)}if(v!==null)X=!0;else{var x=i(m);x!==null&&ce(J,x.startTime-z),X=!1}}break e}finally{v=null,_=fe,b=!1}X=void 0}}finally{X?G():P=!1}}}var G;if(typeof C=="function")G=function(){C(F)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ye=ee.port2;ee.port1.onmessage=F,G=function(){ye.postMessage(null)}}else G=function(){R(F,0)};function ce(z,X){N=R(function(){z(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_next=function(z){switch(_){case 1:case 2:case 3:var X=3;break;default:X=_}var fe=_;_=X;try{return z()}finally{_=fe}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(z,X){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var fe=_;_=z;try{return X()}finally{_=fe}},t.unstable_scheduleCallback=function(z,X,fe){var Be=t.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?Be+fe:Be):fe=Be,z){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=fe+je,z={id:g++,callback:X,priorityLevel:z,startTime:fe,expirationTime:je,sortIndex:-1},fe>Be?(z.sortIndex=fe,e(m,z),i(h)===null&&z===i(m)&&(E?(k(N),N=-1):E=!0,ce(J,fe-Be))):(z.sortIndex=je,e(h,z),S||b||(S=!0,P||(P=!0,G()))),z},t.unstable_shouldYield=le,t.unstable_wrapCallback=function(z){var X=_;return function(){var fe=_;_=X;try{return z.apply(this,arguments)}finally{_=fe}}}})(gf)),gf}var sy;
vendor: 8,647 bytes, lines 2-4
2function pT(){return sy||(sy=1,mf.exports=hT()),mf.exports}var vf={exports:{}},At={};var ay;function mT(){if(ay)return At;ay=1;var t=_o();function e(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(e(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(h,m,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:m,implementation:g}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,At.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(e(299));return l(h,m,null,g)},At.flushSync=function(h){var m=c.T,g=s.p;try{if(c.T=null,s.p=2,h)return h()}finally{c.T=m,s.p=g,s.d.f()}},At.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},At.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},At.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,v=d(g,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,b=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:b}):g==="script"&&s.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:b,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},At.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=d(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},At.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,v=d(g,m.crossOrigin);s.d.L(h,g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},At.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=d(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},At.requestFormReset=function(h){s.d.r(h)},At.unstable_batchedUpdates=function(h,m){return h(m)},At.useFormState=function(h,m,g){return c.H.useFormState(h,m,g)},At.useFormStatus=function(){return c.H.useHostTransitionStatus()},At.version="19.2.5",At}var oy;function gT(){if(oy)return vf.exports;oy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),vf.exports=mT(),vf.exports}var ly;function vT(){if(ly)return Ia;ly=1;var t=pT(),e=_o(),i=gT();function s(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var r=n,a=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(a=r.return),n=r.return;while(n)}return r.tag===3?a:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(l(n)!==n)throw Error(s(188))}function m(n){var r=n.alternate;if(!r){if(r=l(n),r===null)throw Error(s(188));return r!==n?null:n}for(var a=n,u=r;;){var f=a.return;if(f===null)break;var p=f.alternate;if(p===null){if(u=f.return,u!==null){a=u;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===a)return h(f),n;if(p===u)return h(f),r;p=p.sibling}throw Error(s(188))}if(a.return!==u.return)a=f,u=p;else{for(var y=!1,w=f.child;w;){if(w===a){y=!0,a=f,u=p;break}if(w===u){y=!0,u=f,a=p;break}w=w.sibling}if(!y){for(w=p.child;w;){if(w===a){y=!0,a=p,u=f;break}if(w===u){y=!0,u=p,a=f;break}w=w.sibling}if(!y)throw Error(s(189))}}if(a.alternate!==u)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),C=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function G(n){return n===null||typeof n!="object"?null:(n=F&&n[F]||n["@@iterator"],typeof n=="function"?n:null)}var ee=Symbol.for("react.client.reference");function ye(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ee?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case R:return"Profiler";case T:return"StrictMode";case J:return"Suspense";case P:return"SuspenseList";case te:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case C:return n.displayName||"Context";case k:return(n._context.displayName||"Context")+".Consumer";case B:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case N:return r=n.displayName||null,r!==null?r:ye(n.type)||"Memo";case K:r=n._payload,n=n._init;try{return ye(n(r))}catch{}}return null}var ce=Array.isArray,z=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},Be=[],je=-1;function x(n){return{current:n}}function H(n){0>je||(n.current=Be[je],Be[je]=null,je--)}function Q(n,r){je++,Be[je]=n.current,n.current=r}var re=x(null),we=x(null),Oe=x(null),he=x(null);function $e(n,r){switch(Q(Oe,r),Q(we,n),Q(re,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Ev(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Ev(r),n=Tv(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}H(re),Q(re,n)}function Qe(){H(re),H(we),H(Oe)}function Tn(n){n.memoizedState!==null&&Q(he,n);var r=re.current,a=Tv(r,n.type);r!==a&&(Q(we,n),Q(re,a))}function ar(n){we.current===n&&(H(re),H(we)),he.current===n&&(H(he),Da._currentValue=fe)}var Pn,Wh;function or(n){if(Pn===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Pn=r&&r[1]||"",Wh=-1<a.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Pn+n+Wh}var Yu=!1;function Zu(n,r){if(!n||Yu)return"";Yu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(I){var U=I}Reflect.construct(n,[],V)}else{try{V.call()}catch(I){U=I}n.call(V.prototype)}}else{try{throw Error()}catch(I){U=I}(V=n())&&typeof V.catch=="function"&&V.catch(function(){})}}
vendor: 6,458 bytes, lines 4-9
4catch(I){if(I&&U&&typeof I.stack=="string")return[I.stack,U.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),y=p[0],w=p[1];if(y&&w){var A=y.split(`
5`),M=w.split(`
6`);for(f=u=0;u<A.length&&!A[u].includes("DetermineComponentFrameRoot");)u++;for(;f<M.length&&!M[f].includes("DetermineComponentFrameRoot");)f++;if(u===A.length||f===M.length)for(u=A.length-1,f=M.length-1;1<=u&&0<=f&&A[u]!==M[f];)f--;for(;1<=u&&0<=f;u--,f--)if(A[u]!==M[f]){if(u!==1||f!==1)do if(u--,f--,0>f||A[u]!==M[f]){var $=`
7`+A[u].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=u&&0<=f);break}}}finally{Yu=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?or(a):""}function Pw(n,r){switch(n.tag){case 26:case 27:case 5:return or(n.type);case 16:return or("Lazy");case 13:return n.child!==r&&r!==null?or("Suspense Fallback"):or("Suspense");case 19:return or("SuspenseList");case 0:case 15:return Zu(n.type,!1);case 11:return Zu(n.type.render,!1);case 1:return Zu(n.type,!0);case 31:return or("Activity");default:return""}}function ep(n){try{var r="",a=null;do r+=Pw(n,a),a=n,n=n.return;while(n);return r}catch(u){return`
8Error generating stack: `+u.message+`
9`+u.stack}}var Qu=Object.prototype.hasOwnProperty,Ju=t.unstable_scheduleCallback,Xu=t.unstable_cancelCallback,Bw=t.unstable_shouldYield,$w=t.unstable_requestPaint,$t=t.unstable_now,qw=t.unstable_getCurrentPriorityLevel,tp=t.unstable_ImmediatePriority,np=t.unstable_UserBlockingPriority,Oo=t.unstable_NormalPriority,Hw=t.unstable_LowPriority,ip=t.unstable_IdlePriority,Vw=t.log,Fw=t.unstable_setDisableYieldValue,Fs=null,qt=null;function gi(n){if(typeof Vw=="function"&&Fw(n),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Fs,n)}catch{}}var Ht=Math.clz32?Math.clz32:Yw,Gw=Math.log,Kw=Math.LN2;function Yw(n){return n>>>=0,n===0?32:31-(Gw(n)/Kw|0)|0}var xo=256,Co=262144,ko=4194304;function lr(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function jo(n,r,a){var u=n.pendingLanes;if(u===0)return 0;var f=0,p=n.suspendedLanes,y=n.pingedLanes;n=n.warmLanes;var w=u&134217727;return w!==0?(u=w&~p,u!==0?f=lr(u):(y&=w,y!==0?f=lr(y):a||(a=w&~n,a!==0&&(f=lr(a))))):(w=u&~p,w!==0?f=lr(w):y!==0?f=lr(y):a||(a=u&~n,a!==0&&(f=lr(a)))),f===0?0:r!==0&&r!==f&&(r&p)===0&&(p=f&-f,a=r&-r,p>=a||p===32&&(a&4194048)!==0)?r:f}function Gs(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function Zw(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+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 rp(){var n=ko;return ko<<=1,(ko&62914560)===0&&(ko=4194304),n}function Wu(n){for(var r=[],a=0;31>a;a++)r.push(n);return r}function Ks(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Qw(n,r,a,u,f,p){var y=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var w=n.entanglements,A=n.expirationTimes,M=n.hiddenUpdates;for(a=y&~a;0<a;){var $=31-Ht(a),V=1<<$;w[$]=0,A[$]=-1;var U=M[$];if(U!==null)for(M[$]=null,$=0;$<U.length;$++){var I=U[$];I!==null&&(I.lane&=-536870913)}a&=~V}u!==0&&sp(n,u,0),p!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=p&~(y&~r))}function sp(n,r,a){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-Ht(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|a&261930}function ap(n,r){var a=n.entangledLanes|=r;for(n=n.entanglements;a;){var u=31-Ht(a),f=1<<u;f&r|n[u]&r&&(n[u]|=r),a&=~f}}function op(n,r){var a=r&-r;return a=(a&42)!==0?1:ec(a),(a&(n.suspendedLanes|r))!==0?0:a}function ec(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function tc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function lp(){var n=X.p;return n!==0?n:(n=window.event,n===void 0?32:Kv(n.type))}function up(n,r){var a=X.p;try{return X.p=n,r()}finally{X.p=a}}var vi=Math.random().toString(36).slice(2),bt="__reactFiber$"+vi,Nt="__reactProps$"+vi,Ir="__reactContainer$"+vi,nc="__reactEvents$"+vi,Jw="__reactListeners$"+vi,Xw="__reactHandles$"+vi,cp="__reactResources$"+vi,Ys="__reactMarker$"+vi;function ic(n){delete n[bt],delete n[Nt],delete n[nc],delete n[Jw],delete n[Xw]}function Pr(n){var r=n[bt];if(r)return r;for(var a=n.parentNode;a;){if(r=a[Ir]||a[bt]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(n=jv(n);n!==null;){if(a=n[bt])return a;n=jv(n)}return r}n=a,a=n.parentNode}return null}function Br(n){if(n=n[bt]||n[Ir]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Zs(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(s(33))}function $r(n){var r=n[cp];return r||(r=n[cp]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function gt(n){n[Ys]=!0}var dp=new Set,fp={};function ur(n,r){qr(n,r),qr(n+"Capture",r)}function qr(n,r){for(fp[n]=r,n=0;n<r.length;n++)dp.add(r[n])}var Ww=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 9
9037D\\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]*$"),hp={},pp={};function eS(n){return Qu.call(pp,n)?!0:Qu.call(hp,n)?!1:Ww.test(n)?pp[n]=!0:(hp[n]=!0,!1)}function No(n,r,a){if(eS(r))if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+a)}}function Do(n,r,a){if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+a)}}function Bn(n,r,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(r,a,""+u)}}function en(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function mp(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function tS(n,r,a){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,p=u.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return f.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(n,r,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function rc(n){if(!n._valueTracker){var r=mp(n)?"checked":"value";n._valueTracker=tS(n,r,""+n[r])}}function gp(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return n&&(u=mp(n)?n.checked?"true":"false":n.value),n=u,n!==a?(r.setValue(n),!0):!1}function Lo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var nS=/[\n"\\]/g;function tn(n){return n.replace(nS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function sc(n,r,a,u,f,p,y,w){n.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.type=y:n.removeAttribute("type"),r!=null?y==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+en(r)):n.value!==""+en(r)&&(n.value=""+en(r)):y!=="submit"&&y!=="reset"||n.removeAttribute("value"),r!=null?ac(n,y,en(r)):a!=null?ac(n,y,en(a)):u!=null&&n.removeAttribute("value"),f==null&&p!=null&&(n.defaultChecked=!!p),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.name=""+en(w):n.removeAttribute("name")}function vp(n,r,a,u,f,p,y,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),r!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||r!=null)){rc(n);return}a=a!=null?""+en(a):"",r=r!=null?""+en(r):a,w||r===n.value||(n.value=r),n.defaultValue=r}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=w?n.checked:!!u,n.defaultChecked=!!u,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.name=y),rc(n)}function ac(n,r,a){r==="number"&&Lo(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function Hr(n,r,a,u){if(n=n.options,r){r={};for(var f=0;f<a.length;f++)r["$"+a[f]]=!0;for(a=0;a<n.length;a++)f=r.hasOwnProperty("$"+n[a].value),n[a].selected!==f&&(n[a].selected=f),f&&u&&(n[a].defaultSelected=!0)}else{for(a=""+en(a),r=null,f=0;f<n.length;f++){if(n[f].value===a){n[f].selected=!0,u&&(n[f].defaultSelected=!0);return}r!==null||n[f].disabled||(r=n[f])}r!==null&&(r.selected=!0)}}function yp(n,r,a){if(r!=null&&(r=""+en(r),r!==n.value&&(n.value=r),a==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=a!=null?""+en(a):""}function _p(n,r,a,u){if(r==null){if(u!=null){if(a!=null)throw Error(s(92));if(ce(u)){if(1<u.length)throw Error(s(93));u=u[0]}a=u}a==null&&(a=""),r=a}a=en(r),n.defaultValue=a,u=n.textContent,u===a&&u!==""&&u!==null&&(n.value=u),rc(n)}function Vr(n,r){if(r){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=r;return}}n.textContent=r}var iS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bp(n,r,a){var u=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":u?n.setProperty(r,a):typeof a!="number"||a===0||iS.has(r)?r==="float"?n.cssFloat=a:n[r]=(""+a).trim():n[r]=a+"px"}function wp(n,r,a){if(r!=null&&typeof r!="object")throw Error(s(62));if(n=n.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var f in r)u=r[f],r.hasOwnProperty(f)&&a[f]!==u&&bp(n,f,u)}else for(var p in r)r.hasOwnProperty(p)&&bp(n,p,r[p])}function oc(n){if(n.indexOf("-")===-1)return!1;switch(n){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 rS=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"],["colorRen
9dering","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"]]),sS=/^[\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 Mo(n){return sS.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function $n(){}var lc=null;function uc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Fr=null,Gr=null;function Sp(n){var r=Br(n);if(r&&(n=r.stateNode)){var a=n[Nt]||null;e:switch(n=r.stateNode,r.type){case"input":if(sc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+tn(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var u=a[r];if(u!==n&&u.form===n.form){var f=u[Nt]||null;if(!f)throw Error(s(90));sc(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(r=0;r<a.length;r++)u=a[r],u.form===n.form&&gp(u)}break e;case"textarea":yp(n,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&Hr(n,!!a.multiple,r,!1)}}}var cc=!1;function Ep(n,r,a){if(cc)return n(r,a);cc=!0;try{var u=n(r);return u}finally{if(cc=!1,(Fr!==null||Gr!==null)&&(Sl(),Fr&&(r=Fr,n=Gr,Gr=Fr=null,Sp(r),n)))for(r=0;r<n.length;r++)Sp(n[r])}}function Qs(n,r){var a=n.stateNode;if(a===null)return null;var u=a[Nt]||null;if(u===null)return null;a=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(s(231,r,typeof a));return a}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=!1;if(qn)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){dc=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{dc=!1}
vendor: 3,180 bytes, line 9
9var yi=null,fc=null,Uo=null;function Tp(){if(Uo)return Uo;var n,r=fc,a=r.length,u,f="value"in yi?yi.value:yi.textContent,p=f.length;for(n=0;n<a&&r[n]===f[n];n++);var y=a-n;for(u=1;u<=y&&r[a-u]===f[p-u];u++);return Uo=f.slice(n,1<u?1-u:void 0)}function zo(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Io(){return!0}function Rp(){return!1}function Dt(n){function r(a,u,f,p,y){this._reactName=a,this._targetInst=f,this.type=u,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var w in n)n.hasOwnProperty(w)&&(a=n[w],this[w]=a?a(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Io:Rp,this.isPropagationStopped=Rp,this}return v(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Io)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Io)},persist:function(){},isPersistent:Io}),r}var cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Po=Dt(cr),Xs=v({},cr,{view:0,detail:0}),aS=Dt(Xs),hc,pc,Ws,Bo=v({},Xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ws&&(Ws&&n.type==="mousemove"?(hc=n.screenX-Ws.screenX,pc=n.screenY-Ws.screenY):pc=hc=0,Ws=n),hc)},movementY:function(n){return"movementY"in n?n.movementY:pc}}),Ap=Dt(Bo),oS=v({},Bo,{dataTransfer:0}),lS=Dt(oS),uS=v({},Xs,{relatedTarget:0}),mc=Dt(uS),cS=v({},cr,{animationName:0,elapsedTime:0,pseudoElement:0}),dS=Dt(cS),fS=v({},cr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),hS=Dt(fS),pS=v({},cr,{data:0}),Op=Dt(pS),mS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gS={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"},vS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yS(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=vS[n])?!!r[n]:!1}function gc(){return yS}var _S=v({},Xs,{key:function(n){if(n.key){var r=mS[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=zo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="
9keydown"||n.type==="keyup"?gS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(n){return n.type==="keypress"?zo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?zo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),bS=Dt(_S),wS=v({},Bo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xp=Dt(wS),SS=v({},Xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),ES=Dt(SS),TS=v({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),RS=Dt(TS),AS=v({},Bo,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),OS=Dt(AS),xS=v({},cr,{newState:0,oldState:0}),CS=Dt(xS),kS=[9,13,27,32],vc=qn&&"CompositionEvent"in window,ea=null;qn&&"documentMode"in document&&(ea=document.documentMode);var jS=qn&&"TextEvent"in window&&!ea,Cp=qn&&(!vc||ea&&8<ea&&11>=ea),kp=" ",jp=!1;function Np(n,r){switch(n){case"keyup":return kS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Kr=!1;function NS(n,r){switch(n){case"compositionend":return Dp(r);case"keypress":return r.which!==32?null:(jp=!0,kp);case"textInput":return n=r.data,n===kp&&jp?null:n;default:return null}}function DS(n,r){if(Kr)return n==="compositionend"||!vc&&Np(n,r)?(n=Tp(),Uo=fc=yi=null,Kr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Cp&&r.locale!=="ko"?null:r.data;default:return null}}var LS={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 Lp(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!LS[n.type]:r==="textarea"}function Mp(n,r,a,u){Fr?Gr?Gr.push(u):Gr=[u]:Fr=u,r=Cl(r,"onChange"),0<r.length&&(a=new Po("onChange","change",null,a,u),n.push({event:a,listeners:r}))}var ta=null,na=null;function MS(n){vv(n,0)}function $o(n){var r=Zs(n);if(gp(r))return n}function Up(n,r){if(n==="change")return r}var zp=!1;if(qn){var yc;if(qn){var _c="oninput"in document;if(!_c){var Ip=document.createElement("div");Ip.setAttribute("oninput","return;"),_c=typeof Ip.oninput=="function"}yc=_c}else yc=!1;zp=yc&&(!document.documentMode||9<document.documentMode)}function Pp(){ta&&(ta.detachEvent("onpropertychange",Bp),na=ta=null)}function Bp(n){if(n.propertyName==="value"&&$o(na)){var r=[];Mp(r,na,n,uc(n)),Ep(MS,r)}}function US(n,r,a){n==="focusin"?(Pp(),ta=r,na=a,ta.attachEvent("onpropertychange",Bp)):n==="focusout"&&Pp()}function zS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $o(na)}function IS(n,r){if(n==="click")return $o(r)}function PS(n,r){if(n==="input"||n==="change")return $o(r)}function BS(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Vt=typeof Object.is=="function"?Object.is:BS;function ia(n,r){if(Vt(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var a=Object.keys(n),u=Object.keys(r);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var f=a[u];if(!Qu.call(r,f)||!Vt(n[f],r[f]))return!1}return!0}function $p(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function qp(n,r){var a=$p(n);n=0;for(var u;a;){if(a.nodeType===3){if(u=n+a.textContent.length,n<=r&&u>=r)return{node:a,offset:r-n};n=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=$p(a)}}function Hp(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Hp(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Vp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Lo(n.document);r instanceof n.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)n=r.contentWindow;else break;r=Lo(n.document)}return r}function bc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var $S=qn&&"documentMode"in document&&11>=document.documentMode,Yr=null,wc=null,ra=null,Sc=!1;function Fp(n,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sc||Yr==null||Yr!==Lo(u)||(u=Yr,"selectionStart"in u&&bc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focu
vendor: 18,800 bytes, line 9
9sNode:u.focusNode,focusOffset:u.focusOffset}),ra&&ia(ra,u)||(ra=u,u=Cl(wc,"onSelect"),0<u.length&&(r=new Po("onSelect","select",null,r,a),n.push({event:r,listeners:u}),r.target=Yr)))}function dr(n,r){var a={};return a[n.toLowerCase()]=r.toLowerCase(),a["Webkit"+n]="webkit"+r,a["Moz"+n]="moz"+r,a}var Zr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},Ec={},Gp={};qn&&(Gp=document.createElement("div").style,"AnimationEvent"in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),"TransitionEvent"in window||delete Zr.transitionend.transition);function fr(n){if(Ec[n])return Ec[n];if(!Zr[n])return n;var r=Zr[n],a;for(a in r)if(r.hasOwnProperty(a)&&a in Gp)return Ec[n]=r[a];return n}var Kp=fr("animationend"),Yp=fr("animationiteration"),Zp=fr("animationstart"),qS=fr("transitionrun"),HS=fr("transitionstart"),VS=fr("transitioncancel"),Qp=fr("transitionend"),Jp=new Map,Tc="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(" ");Tc.push("scrollEnd");function mn(n,r){Jp.set(n,r),ur(r,[n])}var qo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},nn=[],Qr=0,Rc=0;function Ho(){for(var n=Qr,r=Rc=Qr=0;r<n;){var a=nn[r];nn[r++]=null;var u=nn[r];nn[r++]=null;var f=nn[r];nn[r++]=null;var p=nn[r];if(nn[r++]=null,u!==null&&f!==null){var y=u.pending;y===null?f.next=f:(f.next=y.next,y.next=f),u.pending=f}p!==0&&Xp(a,f,p)}}function Vo(n,r,a,u){nn[Qr++]=n,nn[Qr++]=r,nn[Qr++]=a,nn[Qr++]=u,Rc|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Ac(n,r,a,u){return Vo(n,r,a,u),Fo(n)}function hr(n,r){return Vo(n,null,null,r),Fo(n)}function Xp(n,r,a){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a);for(var f=!1,p=n.return;p!==null;)p.childLanes|=a,u=p.alternate,u!==null&&(u.childLanes|=a),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(f=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,f&&r!==null&&(f=31-Ht(a),n=p.hiddenUpdates,u=n[f],u===null?n[f]=[r]:u.push(r),r.lane=a|536870912),p):null}function Fo(n){if(50<Aa)throw Aa=0,Md=null,Error(s(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Jr={};function FS(n,r,a,u){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(n,r,a,u){return new FS(n,r,a,u)}function Oc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Hn(n,r){var a=n.alternate;return a===null?(a=Ft(n.tag,r,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=r,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,r=n.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function Wp(n,r){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,r=a.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Go(n,r,a,u,f,p){var y=0;if(u=n,typeof n=="function")Oc(n)&&(y=1);else if(typeof n=="string")y=QE(n,a,re.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case te:return n=Ft(31,a,r,f),n.elementType=te,n.lanes=p,n;case E:return pr(a.children,f,p,r);case T:y=8,f|=24;break;case R:return n=Ft(12,a,r,f|2),n.elementType=R,n.lanes=p,n;case J:return n=Ft(13,a,r,f),n.elementType=J,n.lanes=p,n;case P:return n=Ft(19,a,r,f),n.elementType=P,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:y=10;break e;case k:y=9;break e;case B:y=11;break e;case N:y=14;break e;case K:y=16,u=null;break e}y=29,a=Error(s(130,n===null?"null":typeof n,"")),u=null}return r=Ft(y,a,r,f),r.elementType=n,r.type=u,r.lanes=p,r}function pr(n,r,a,u){return n=Ft(7,n,u,r),n.lanes=a,n}function xc(n,r,a){return n=Ft(6,n,null,r),n.lanes=a,n}function em(n){var r=Ft(18,null,null,0);return r.stateNode=n,r}function Cc(n,r,a){return r=Ft(4,n.children!==null?n.children:[],n.key,r),r.lanes=a,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var tm=new WeakMap;function rn(n,r){if(typeof n=="object"&&n!==null){var a=tm.get(n);return a!==void 0?a:(r={value:n,source:r,stack:ep(r)},tm.set(n,r),r)}return{value:n,source:r,stack:ep(r)}}var Xr=[],Wr=0,Ko=null,sa=0,sn=[],an=0,_i=null,Rn=1,An="";function Vn(n,r){Xr[Wr++]=sa,Xr[Wr++]=Ko,Ko=n,sa=r}function nm(n,r,a){sn[an++]=Rn,sn[an++]=An,sn[an++]=_i,_i=n;var u=Rn;n=An;var f=32-Ht(u)-1;u&=~(1<<f),a+=1;var p=32-Ht(r)+f;if(30<p){var y=f-f%5;p=(u&(1<<y)-1).toString(32),u>>=y,f-=y,Rn=1<<32-Ht(r)+f|a<<f|u,An=p+n}else Rn=1<<p|a<<f|u,An=n}function kc(n){n.return!==null&&(Vn(n,1),nm(n,1,0))}function jc(n){for(;n===Ko;)Ko=Xr[--Wr],Xr[Wr]=null,sa=Xr[--Wr],Xr[Wr]=null;for(;n===_i;)_i=sn[--an],sn[an]=null,An=sn[--an],sn[an]=null,Rn=sn[--an],sn[an]=null}function im(n,r){sn[an++]=Rn,sn[an++]=An,sn[an++]=_i,Rn=r.id,An=r.overflow,_i=n}var wt=null,Xe=null,Le=!1,bi=null,on=!1,Nc=Error(s(519));function wi(n){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw aa(rn(r,n)),Nc}function rm(n){var r=n.stateNode,a=n.type,u=n.memoizedProps;switch(r[bt]=n,r[Nt]=u,a){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(a=0;a<xa.length;a++)ke(xa[a],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":ke("invalid",r),vp(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":ke("invalid",r);break;case"textarea":ke("invalid",r),_p(r,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||wv(r.textContent,a)?(u.popover!=null&&(ke("beforetoggle",r),ke("toggle",r)),u.onScroll!=null&&ke("scroll",r),u.onScrollEnd!=null&&ke("scrollend",r),u.onClick!=null&&(r.onclick=$n),r=!0):r=!1,r||wi(n,!0)}function sm(n){for(wt=n.return;wt;)switch(wt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:wt=wt.return}}function es(n){if(n!==wt)return!1;if(!Le)return sm(n),Le=!0,!1;var r=n.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||Qd(n.type,n.memoizedProps)),a=!a),a&&Xe&&wi(n),sm(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Xe=kv(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Xe=kv(n)}else r===27?(r=Xe,Mi(n.type)?(n=tf,tf=null,Xe=n):Xe=r):Xe=wt?un(n.stateNode.nextSibling):null;return!0}function mr(){Xe=wt=null,Le=!1}function Dc(){var n=bi;return n!==null&&(zt===null?zt=n:zt.push.apply(zt,n),bi=null),n}function aa(n){bi===null?bi=[n]:bi.push(n)}var Lc=x(null),gr=null,Fn=null;function Si(n,r,a){Q(Lc,r._currentValue),r._currentValue=a}function Gn(n){n._currentValue=Lc.current,H(Lc)}function Mc(n,r,a){for(;n!==null;){var u=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),n===a)break;n=n.return}}function Uc(n,r,a,u){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=f.dependencies;if(p!==null){var y=f.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=f;for(var A=0;A<r.length;A++)if(w.context===r[A]){p.lanes|=a,w=p.alternate,w!==null&&(w.lanes|=a),Mc(p.return,a,n),u||(y=null);break e}p=w.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(s(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),Mc(y,a,n),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===n){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function ts(n,r,a,u){n=null;for(var f=r,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var w=f.type;Vt(f.pendingProps.value,y.value)||(n!==null?n.push(w):n=[w])}}else if(f===he.current){if(y=f.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Da):n=[Da])}f=f.return}n!==null&&Uc(r,n,a,u),r.flags|=262144}function Yo(n){for(n=n.firstContext;n!==null;){if(!Vt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function vr(n){gr=n,Fn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function St(n){return am(gr,n)}function Zo(n,r){return gr===null&&vr(n),am(n,r)}function am(n,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},Fn===null){if(n===null)throw Error(s(308));Fn=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Fn=Fn.next=r;return a}var GS=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(a,u){n.push(u)}};this.abort=function(){r.aborted=!0,n.forEach(function(a){return a()})}},KS=t.unstable_scheduleCallback,YS=t.unstable_NormalPriority,ot={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zc(){return{controller:new GS,data:new Map,refCount:0}}function oa(n){n.refCount--,n.refCount===0&&KS(YS,function(){n.controller.abort()})}var la=null,Ic=0,ns=0,is=null;function ZS(n,r){if(la===null){var a=la=[];Ic=0,ns=$d(),is={status:"pending",value:void 0,then:function(u){a.push(u)}}}return Ic++,r.then(om,om),r}function om(){if(--Ic===0&&la!==null){is!==null&&(is.status="fulfilled");var n=la;la=null,ns=0,is=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function QS(n,r){var a=[],u={status:"pending",value:null,reason:null,then:function(f){a.push(f)}};return n.then(function(){u.status="fulfilled",u.value=r;for(var f=0;f<a.length;f++)(0,a[f])(r)},function(f){for(u.status="rejected",u.reason=f,f=0;f<a.length;f++)(0,a[f])(void 0)}),u}var lm=z.S;z.S=function(n,r){Fg=$t(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&ZS(n,r),lm!==null&&lm(n,r)};var yr=x(null);function Pc(){var n=yr.current;return n!==null?n:Ye.pooledCache}function Qo(n,r){r===null?Q(yr,yr.current):Q(yr,r.pool)}function um(){var n=Pc();return n===null?null:{parent:ot._currentValue,pool:n}}var rs=Error(s(460)),Bc=Error(s(474)),Jo=Error(s(542)),Xo={then:function(){}};function cm(n){return n=n.status,n==="fulfilled"||n==="rejected"}function dm(n,r,a){switch(a=n[a],a===void 0?n.push(r):a!==r&&(r.then($n,$n),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,hm(n),n;default:if(typeof r.status=="string")r.then($n,$n);else{if(n=Ye,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=r,n.status="pending",n.then(function(u){if(r.status==="pending"){var f=r;f.status="fulfilled",f.value=u}},function(u){if(r.status==="pending"){var f=r;f.status="rejected",f.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,hm(n),n}throw br=r,rs}}function _r(n){try{var r=n._init;return r(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(br=a,rs):a}}var br=null;function fm(){if(br===null)throw Error(s(459));var n=br;return br=null,n}function hm(n){if(n===rs||n===Jo)throw Error(s(483))}var ss=null,ua=0;function Wo(n){var r=ua;return ua+=1,ss===null&&(ss=[]),dm(ss,n,r)}function ca(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function el(n,r){throw r.$$typeof===_?Error(s(525)):(n=Object.prototype.toString.call(r),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function pm(n){function r(j,O){if(n){var L=j.deletions;L===null?(j.deletions=[O],j.flags|=16):L.push(O)}}function a(j,O){if(!n)return null;for(;O!==null;)r(j,O),O=O.sibling;return null}function u(j){for(var O=new Map;j!==null;)j.key!==null?O.set(j.key,j):O.set(j.index,j),j=j.sibling;return O}function f(j,O){return j=Hn(j,O),j.index=0,j.sibling=null,j}function p(j,O,L){return j.index=L,n?(L=j.alternate,L!==null?(L=L.index,L<O?(j.flags|=67108866,O):L):(j.flags|=67108866,O)):(j.flags|=1048576,O)}function y(j){return n&&j.alternate===null&&(j.flags|=67108866),j}function w(j,O,L,q){return O===null||O.tag!==6?(O=xc(L,j.mode,q),O.return=j,O):(O=f(O,L),O.return=j,O)}function A(j,O,L,q){var de=L.type;return de===E?$(j,O,L.props.children,q,L.key):O!==null&&(O.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===K&&_r(de)===O.type)?(O=f(O,L.props),ca(O,L),O.return=j,O):(O=Go(L.type,L.key,L.props,null,j.mode,q),ca(O,L),O.return=j,O)}function M(j,O,L,q){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Cc(L,j.mode,q),O.return=j,O):(O=f(O,L.children||[]),O.return=j,O)}function $(j,O,L,q,de){return O===null||O.tag!==7?(O=pr(L,j.mode,q,de),O.return=j,O):(O=f(O,L),O.return=j,O)}function V(j,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=xc(""+O,j.mode,L),O.return=j,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case b:return L=Go(O.type,O.key,O.props,null,j.mode,L),ca(L,O),L.return=j,L;case S:return O=Cc(O,j.mode,L),O.return=j,O;case K:return O=_r(O),V(j,O,L)}if(ce(O)||G(O))return O=pr(O,j.mode,L,null),O.return=j,O;if(typeof O.then=="function")return V(j,Wo(O),L);if(O.$$typeof===C)return V(j,Zo(j,O),L);el(j,O)}return null}function U(j,O,L,q){var de=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return de!==null?null:w(j,O,""+L,q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return L.key===de?A(j,O,L,q):null;case S:return L.key===de?M(j,O,L,q):null;case K:return L=_r(L),U(j,O,L,q)}if(ce(L)||G(L))return de!==null?null:$(j,O,L,q,null);if(typeof L.then=="function")return U(j,O,Wo(L),q);if(L.$$typeof===C)return U(j,O,Zo(j,L),q);el(j,L)}return null}function I(j,O,L,q,de){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return j=j.get(L)||null,w(O,j,""+q,de);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return j=j.get(q.key===null?L:q.key)||null,A(O,j,q,de);case S:return j=j.get(q.key===null?L:q.key)||null,M(O,j,q,de);case K:return q=_r(q),I(j,O,L,q,de)}if(ce(q)||G(q))return j=j.get(L)||null,$(O,j,q,de,null);if(typeof q.then=="function")return I(j,O,L,Wo(q),de);if(q.$$typeof===C)return I(j,O,L,Zo(O,q),de);el(O,q)}return null}function ie(j,O,L,q){for(var de=null,ze=null,oe=O,Ae=O=0,De=null;oe!==null&&Ae<L.length;Ae++){oe.index>Ae?(De=oe,oe=null):De=oe.sibling;var Ie=U(j,oe,L[Ae],q);if(Ie===null){oe===null&&(oe=De);break}n&&oe&&Ie.alternate===null&&r(j,oe),O=p(Ie,O,Ae),ze===null?de=Ie:ze.sibling=Ie,ze=Ie,oe=De}if(Ae===L.length)return a(j,oe),Le&&Vn(j,Ae),de;if(oe===null){for(;Ae<L.length;Ae++)oe=V(j,L[Ae],q),oe!==null&&(O=p(oe,O,Ae),ze===null?de=oe:ze.sibling=oe,ze=oe);return Le&&Vn(j,Ae),de}for(oe=u(oe);Ae<L.length;Ae++)De=I(oe,j,Ae,L[Ae],q),De!==null&&(n&&De.alternate!==null&&oe.delete(De.key===null?Ae:De.key),O=p(De,O,Ae),ze===null?de=De:ze.sibling=De,ze=De);return n&&oe.forEach(function(Bi){return r(j,Bi)}),Le&&Vn(j,Ae),de}function pe(j,O,L,q){if(L==null)throw Error(s(151));for(var de=null,ze=null,oe=O,Ae=O=0,De=null,Ie=L.next();oe!==null&&!Ie.done;Ae++,Ie=L.next()){oe.index>Ae?(De=oe,oe=null):De=oe.sibling;var Bi=U(j,oe,Ie.value,q);if(Bi===null){oe===null&&(oe=De);break}n&&oe&&Bi.alternate===null&&r(j,oe),O=p(Bi,O,Ae),ze===null?de=Bi:ze.sibling=Bi,ze=Bi,oe=De}if(Ie.done)return a(j,oe),Le&&Vn(j,Ae),de;if(oe===null){for(;!Ie.done;Ae++,Ie=L.next())Ie=V(j,Ie.value,q),Ie!==null&&(O=p(Ie,O,Ae),ze===null?de=Ie:ze.sibling=Ie,ze=Ie);return Le&&Vn(j,Ae),de}for(oe=u(oe);!Ie.done;Ae++,Ie=L.next())Ie=I(oe,j,Ae,Ie.value,q),Ie!==null&&(n&&Ie.alternate!==null&&oe.delete(Ie.key===null?Ae:Ie.key),O=p(Ie,O,Ae),ze===null?de=Ie:ze.sibling=Ie,ze=Ie);return n&&oe.forEach(function(oT){return r(j,oT)}),Le&&Vn(j,Ae),de}function Ke(j,O,L,q){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case b:e:{for(var de=L.key;O!==null;){if(O.key===de){if(de=L.type,de===E){if(O.tag===7){a(j,O.sibling),q=f(O,L.props.children),q.return=j,j=q;break e}}else if(O.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===K&&_r(de)===O.type){a(j,O.sibling),q=f(O,L.props),ca(q,L),q.return=j,j=q;break e}a(j,O);break}else r(j,O);O=O.sibling}L.type===E?(q=pr(L.props.children,j.mode,q,L.key),q.return=j,j=q):(q=Go(L.type,L.key,L.props,null,j.mode,q),ca(q,L),q.return=j,j=q)}return y(j);case S:e:{for(de=L.key;O!==null;){if(O.key===de)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){a(j,O.sibling),q=f(O,L.children||[]),q.return=j,j=q;break e}else{a(j,O);break}else r(j,O);O=O.sibling}q=Cc(L,j.mode,q),q.return=j,j=q}return y(j);case K:return L=_r(L),Ke(j,O,L,q)}if(ce(L))return ie(j,O,L,q);
vendor: 5,621 bytes, line 9
9if(G(L)){if(de=G(L),typeof de!="function")throw Error(s(150));return L=de.call(L),pe(j,O,L,q)}if(typeof L.then=="function")return Ke(j,O,Wo(L),q);if(L.$$typeof===C)return Ke(j,O,Zo(j,L),q);el(j,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(a(j,O.sibling),q=f(O,L),q.return=j,j=q):(a(j,O),q=xc(L,j.mode,q),q.return=j,j=q),y(j)):a(j,O)}return function(j,O,L,q){try{ua=0;var de=Ke(j,O,L,q);return ss=null,de}catch(oe){if(oe===rs||oe===Jo)throw oe;var ze=Ft(29,oe,null,j.mode);return ze.lanes=q,ze.return=j,ze}}}var wr=pm(!0),mm=pm(!1),Ei=!1;function $c(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qc(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ti(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ri(n,r,a){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(qe&2)!==0){var f=u.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),u.pending=r,r=Fo(n),Xp(n,null,a),r}return Vo(n,u,r,a),Fo(n)}function da(n,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,a|=u,r.lanes=a,ap(n,a)}}function Hc(n,r){var a=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var f=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?f=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?f=p=r:p=p.next=r}else f=p=r;a={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=r:n.next=r,a.lastBaseUpdate=r}var Vc=!1;function fa(){if(Vc){var n=is;if(n!==null)throw n}}function ha(n,r,a,u){Vc=!1;var f=n.updateQueue;Ei=!1;var p=f.firstBaseUpdate,y=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var A=w,M=A.next;A.next=null,y===null?p=M:y.next=M,y=A;var $=n.alternate;$!==null&&($=$.updateQueue,w=$.lastBaseUpdate,w!==y&&(w===null?$.firstBaseUpdate=M:w.next=M,$.lastBaseUpdate=A))}if(p!==null){var V=f.baseState;y=0,$=M=A=null,w=p;do{var U=w.lane&-536870913,I=U!==w.lane;if(I?(Ne&U)===U:(u&U)===U){U!==0&&U===ns&&(Vc=!0),$!==null&&($=$.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ie=n,pe=w;U=r;var Ke=a;switch(pe.tag){case 1:if(ie=pe.payload,typeof ie=="function"){V=ie.call(Ke,V,U);break e}V=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=pe.payload,U=typeof ie=="function"?ie.call(Ke,V,U):ie,U==null)break e;V=v({},V,U);break e;case 2:Ei=!0}}U=w.callback,U!==null&&(n.flags|=64,I&&(n.flags|=8192),I=f.callbacks,I===null?f.callbacks=[U]:I.push(U))}else I={lane:U,tag:w.tag,payload:w.payload,callback:w.callback,next:null},$===null?(M=$=I,A=V):$=$.next=I,y|=U;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;I=w,w=I.next,I.next=null,f.lastBaseUpdate=I,f.shared.pending=null}}while(!0);$===null&&(A=V),f.baseState=A,f.firstBaseUpdate=M,f.lastBaseUpdate=$,p===null&&(f.shared.lanes=0),ki|=y,n.lanes=y,n.memoizedState=V}}function gm(n,r){if(typeof n!="function")throw Error(s(191,n));n.call(r)}function vm(n,r){var a=n.callbacks;if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)gm(a[n],r)}var as=x(null),tl=x(0);function ym(n,r){n=ti,Q(tl,n),Q(as,r),ti=n|r.baseLanes}function Fc(){Q(tl,ti),Q(as,as.current)}function Gc(){ti=tl.current,H(as),H(tl)}var Gt=x(null),ln=null;function Ai(n){var r=n.alternate;Q(rt,rt.current&1),Q(Gt,n),ln===null&&(r===null||as.current!==null||r.memoizedState!==null)&&(ln=n)}function Kc(n){Q(rt,rt.current),Q(Gt,n),ln===null&&(ln=n)}function _m(n){n.tag===22?(Q(rt,rt.current),Q(Gt,n),ln===null&&(ln=n)):Oi()}function Oi(){Q(rt,rt.current),Q(Gt,Gt.current)}function Kt(n){H(Gt),ln===n&&(ln=null),H(rt)}var rt=x(0);function nl(n){for(var r=n;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Wd(a)||ef(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Kn=0,Re=null,Fe=null,lt=null,il=!1,os=!1,Sr=!1,rl=0,pa=0,ls=null,JS=0;function tt(){throw Error(s(321))}function Yc(n,r){if(r===null)return!1;for(var a=0;a<r.length&&a<n.length;a++)if(!Vt(n[a],r[a]))return!1;return!0}function Zc(n,r,a,u,f,p){return Kn=p,Re=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,z.H=n===null||n.memoizedState===null?ng:cd,Sr=!1,p=a(u,f),Sr=!1,os&&(p=wm(r,a,u,f)),bm(n),p}function bm(n){z.H=va;var r=Fe!==null&&Fe.next!==null;if(Kn=0,lt=Fe=Re=null,il=!1,pa=0,ls=null,r)throw Error(s(300));n===null||ut||(n=n.dependencies,n!==null&&Yo(n)&&(ut=!0))}function wm(n,r,a,u){Re=n;var f=0;do{if(os&&(ls=null),pa=0,os=!1,25<=f)throw Error(s(301));if(f+=1,lt=Fe=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}z.H=ig,p=r(a,u)}while(os);return p}function XS(){var n=z.H,r=n.useState()[0];return r=typeof r.then=="function"?ma(r):r,n=n.useState()[0],(Fe!==null?Fe.memoizedState:null)!==n&&(Re.flags|=1024),r}function Qc(){var n=rl!==0;return rl=0,n}
vendor: 4,102 bytes, line 9
9function Jc(n,r,a){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~a}function Xc(n){if(il){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}il=!1}Kn=0,lt=Fe=Re=null,os=!1,pa=rl=0,ls=null}function kt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Re.memoizedState=lt=n:lt=lt.next=n,lt}function st(){if(Fe===null){var n=Re.alternate;n=n!==null?n.memoizedState:null}else n=Fe.next;var r=lt===null?Re.memoizedState:lt.next;if(r!==null)lt=r,Fe=n;else{if(n===null)throw Re.alternate===null?Error(s(467)):Error(s(310));Fe=n,n={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},lt===null?Re.memoizedState=lt=n:lt=lt.next=n}return lt}function sl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ma(n){var r=pa;return pa+=1,ls===null&&(ls=[]),n=dm(ls,n,r),r=Re,(lt===null?r.memoizedState:lt.next)===null&&(r=r.alternate,z.H=r===null||r.memoizedState===null?ng:cd),n}function al(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ma(n);if(n.$$typeof===C)return St(n)}throw Error(s(438,String(n)))}function Wc(n){var r=null,a=Re.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Re.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(f){return f.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=sl(),Re.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(n),u=0;u<n;u++)a[u]=le;return r.index++,a}function Yn(n,r){return typeof r=="function"?r(n):r}function ol(n){var r=st();return ed(r,Fe,n)}function ed(n,r,a){var u=n.queue;if(u===null)throw Error(s(311));u.lastRenderedReducer=a;var f=n.baseQueue,p=u.pending;if(p!==null){if(f!==null){var y=f.next;f.next=p.next,p.next=y}r.baseQueue=f=p,u.pending=null}if(p=n.baseState,f===null)n.memoizedState=p;else{r=f.next;var w=y=null,A=null,M=r,$=!1;do{var V=M.lane&-536870913;if(V!==M.lane?(Ne&V)===V:(Kn&V)===V){var U=M.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),V===ns&&($=!0);else if((Kn&U)===U){M=M.next,U===ns&&($=!0);continue}else V={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},A===null?(w=A=V,y=p):A=A.next=V,Re.lanes|=U,ki|=U;V=M.action,Sr&&a(p,V),p=M.hasEagerState?M.eagerState:a(p,V)}else U={lane:V,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},A===null?(w=A=U,y=p):A=A.next=U,Re.lanes|=V,ki|=V;M=M.next}while(M!==null&&M!==r);if(A===null?y=p:A.next=w,!Vt(p,n.memoizedState)&&(ut=!0,$&&(a=is,a!==null)))throw a;n.memoizedState=p,n.baseState=y,n.baseQueue=A,u.lastRenderedState=p}return f===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function td(n){var r=st(),a=r.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=a.dispatch,f=a.pending,p=r.memoizedState;if(f!==null){a.pending=null;var y=f=f.next;do p=n(p,y.action),y=y.next;while(y!==f);Vt(p,r.memoizedState)||(ut=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),a.lastRenderedState=p}return[p,u]}function Sm(n,r,a){var u=Re,f=st(),p=Le;if(p){if(a===void 0)throw Error(s(407));a=a()}else a=r();var y=!Vt((Fe||f).memoizedState,a);if(y&&(f.memoizedState=a,ut=!0),f=f.queue,rd(Rm.bind(null,u,f,n),[n]),f.getSnapshot!==r||y||lt!==null&&lt.memoizedState.tag&1){if(u.flags|=2048,us(9,{destroy:void 0},Tm.bind(null,u,f,a,r),null),Ye===null)throw Error(s(349));p||(Kn&127)!==0||Em(u,r,a)}return a}function Em(n,r,a){n.flags|=16384,n={getSnapshot:r,value:a},r=Re.updateQueue,r===null?(r=sl(),Re.updateQueue=r,r.stores=[n]):(a=r.stores,a===null?r.stores=[n]:a.push(n))}function Tm(n,r,a,u){r.value=a,r.getSnapshot=u,Am(r)&&Om(n)}function Rm(n,r,a){return a(function(){Am(r)&&Om(n)})}function Am(n){var r=n.getSnapshot;n=n.value;try{var a=r();return!Vt(n,a)}catch{return!0}}function Om(n){var r=hr(n,2);r!==null&&It(r,n,2)}
vendor: 6,801 bytes, line 9
9function nd(n){var r=kt();if(typeof n=="function"){var a=n;if(n=a(),Sr){gi(!0);try{a()}finally{gi(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:n},r}function xm(n,r,a,u){return n.baseState=a,ed(n,Fe,typeof u=="function"?u:Yn)}function WS(n,r,a,u,f){if(cl(n))throw Error(s(485));if(n=r.action,n!==null){var p={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};z.T!==null?a(!0):p.isTransition=!1,u(p),a=r.pending,a===null?(p.next=r.pending=p,Cm(r,p)):(p.next=a.next,r.pending=a.next=p)}}function Cm(n,r){var a=r.action,u=r.payload,f=n.state;if(r.isTransition){var p=z.T,y={};z.T=y;try{var w=a(f,u),A=z.S;A!==null&&A(y,w),km(n,r,w)}catch(M){id(n,r,M)}finally{p!==null&&y.types!==null&&(p.types=y.types),z.T=p}}else try{p=a(f,u),km(n,r,p)}catch(M){id(n,r,M)}}function km(n,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){jm(n,r,u)},function(u){return id(n,r,u)}):jm(n,r,a)}function jm(n,r,a){r.status="fulfilled",r.value=a,Nm(r),n.state=a,r=n.pending,r!==null&&(a=r.next,a===r?n.pending=null:(a=a.next,r.next=a,Cm(n,a)))}function id(n,r,a){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,Nm(r),r=r.next;while(r!==u)}n.action=null}function Nm(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Dm(n,r){return r}function Lm(n,r){if(Le){var a=Ye.formState;if(a!==null){e:{var u=Re;if(Le){if(Xe){t:{for(var f=Xe,p=on;f.nodeType!==8;){if(!p){f=null;break t}if(f=un(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Xe=un(f.nextSibling),u=f.data==="F!";break e}}wi(u)}u=!1}u&&(r=a[0])}}return a=kt(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dm,lastRenderedState:r},a.queue=u,a=Wm.bind(null,Re,u),u.dispatch=a,u=nd(!1),p=ud.bind(null,Re,!1,u.queue),u=kt(),f={state:r,dispatch:null,action:n,pending:null},u.queue=f,a=WS.bind(null,Re,f,p,a),f.dispatch=a,u.memoizedState=n,[r,a,!1]}function Mm(n){var r=st();return Um(r,Fe,n)}function Um(n,r,a){if(r=ed(n,r,Dm)[0],n=ol(Yn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=ma(r)}catch(y){throw y===rs?Jo:y}else u=r;r=st();var f=r.queue,p=f.dispatch;return a!==r.memoizedState&&(Re.flags|=2048,us(9,{destroy:void 0},eE.bind(null,f,a),null)),[u,p,n]}function eE(n,r){n.action=r}function zm(n){var r=st(),a=Fe;if(a!==null)return Um(r,a,n);st(),r=r.memoizedState,a=st();var u=a.queue.dispatch;return a.memoizedState=n,[r,u,!1]}function us(n,r,a,u){return n={tag:n,create:a,deps:u,inst:r,next:null},r=Re.updateQueue,r===null&&(r=sl(),Re.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=n.next=n:(u=a.next,a.next=n,n.next=u,r.lastEffect=n),n}function Im(){return st().memoizedState}function ll(n,r,a,u){var f=kt();Re.flags|=n,f.memoizedState=us(1|r,{destroy:void 0},a,u===void 0?null:u)}function ul(n,r,a,u){var f=st();u=u===void 0?null:u;var p=f.memoizedState.inst;Fe!==null&&u!==null&&Yc(u,Fe.memoizedState.deps)?f.memoizedState=us(r,p,a,u):(Re.flags|=n,f.memoizedState=us(1|r,p,a,u))}function Pm(n,r){ll(8390656,8,n,r)}function rd(n,r){ul(2048,8,n,r)}function tE(n){Re.flags|=4;var r=Re.updateQueue;if(r===null)r=sl(),Re.updateQueue=r,r.events=[n];else{var a=r.events;a===null?r.events=[n]:a.push(n)}}function Bm(n){var r=st().memoizedState;return tE({ref:r,nextImpl:n}),function(){if((qe&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function $m(n,r){return ul(4,2,n,r)}function qm(n,r){return ul(4,4,n,r)}function Hm(n,r){if(typeof r=="function"){n=n();var a=r(n);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Vm(n,r,a){a=a!=null?a.concat([n]):null,ul(4,4,Hm.bind(null,r,n),a)}function sd(){}function Fm(n,r){var a=st();r=r===void 0?null:r;var u=a.memoizedState;return r!==null&&Yc(r,u[1])?u[0]:(a.memoizedState=[n,r],n)}function Gm(n,r){var a=st();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&Yc(r,u[1]))return u[0];if(u=n(),Sr){gi(!0);try{n()}finally{gi(!1)}}return a.memoizedState=[u,r],u}function ad(n,r,a){return a===void 0||(Kn&1073741824)!==0&&(Ne&261930)===0?n.memoizedState=r:(n.memoizedState=a,n=Kg(),Re.lanes|=n,ki|=n,a)}function Km(n,r,a,u){return Vt(a,r)?a:as.current!==null?(n=ad(n,a,u),Vt(n,r)||(ut=!0),n):(Kn&42)===0||(Kn&1073741824)!==0&&(Ne&261930)===0?(ut=!0,n.memoizedState=a):(n=Kg(),Re.lanes|=n,ki|=n,r)}function Ym(n,r,a,u,f){var p=X.p;X.p=p!==0&&8>p?p:8;var y=z.T,w={};z.T=w,ud(n,!1,r,a);try{var A=f(),M=z.S;if(M!==null&&M(w,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=QS(A,u);ga(n,r,$,Qt(n))}else ga(n,r,u,Qt(n))}catch(V){ga(n,r,{then:function(){},status:"rejected",reason:V},Qt())}finally{X.p=p,y!==null&&w.types!==null&&(y.types=w.types),z.T=y}}function nE(){}function od(n,r,a,u){if(n.tag!==5)throw Error(s(476));var f=Zm(n).queue;Ym(n,f,r,fe,a===null?nE:function(){return Qm(n),a(u)})}function Zm(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:fe},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:a},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Qm(n){var r=Zm(n);r.next===null&&(r=n.alternate.memoizedState),ga(n,r.next.queue,{},Qt())}function ld(){return St(Da)}function Jm(){return st().memoizedState}function Xm(){return st().memoizedState}function iE(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var a=Qt();n=Ti(a);var u=Ri(r,n,a);u!==null&&(It(u,r,a),da(u,r,a)),r={cache:zc()},n.payload=r;return}r=r.return}}function rE(n,r,a){var u=Qt();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},cl(n)?eg(r,a):(a=Ac(n,r,a,u),a!==null&&(It(a,n,u),tg(a,r,u)))}function Wm(n,r,a){var u=Qt();ga(n,r,a,u)}function ga(n,r,a,u){var f={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(cl(n))eg(r,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var y=r.lastRenderedState,w=p(y,a);if(f.hasEagerState=!0,f.eagerState=w,Vt(w,y))return Vo(n,r,f,0),Ye===null&&Ho(),!1}catch{}if(a=Ac(n,r,f,u),a!==null)return It(a,n,u),tg(a,r,u),!0}return!1}function ud(n,r,a,u){if(u={lane:2,revertLane:$d(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},cl(n)){if(r)throw Error(s(479))}else r=Ac(n,a,u,2),r!==null&&It(r,n,2)}function cl(n){var r=n.alternate;return n===Re||r!==null&&r===Re}function eg(n,r){os=il=!0;var a=n.pending;
vendor: 7,884 bytes, line 9
9a===null?r.next=r:(r.next=a.next,a.next=r),n.pending=r}function tg(n,r,a){if((a&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,a|=u,r.lanes=a,ap(n,a)}}var va={readContext:St,use:al,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};va.useEffectEvent=tt;var ng={readContext:St,use:al,useCallback:function(n,r){return kt().memoizedState=[n,r===void 0?null:r],n},useContext:St,useEffect:Pm,useImperativeHandle:function(n,r,a){a=a!=null?a.concat([n]):null,ll(4194308,4,Hm.bind(null,r,n),a)},useLayoutEffect:function(n,r){return ll(4194308,4,n,r)},useInsertionEffect:function(n,r){ll(4,2,n,r)},useMemo:function(n,r){var a=kt();r=r===void 0?null:r;var u=n();if(Sr){gi(!0);try{n()}finally{gi(!1)}}return a.memoizedState=[u,r],u},useReducer:function(n,r,a){var u=kt();if(a!==void 0){var f=a(r);if(Sr){gi(!0);try{a(r)}finally{gi(!1)}}}else f=r;return u.memoizedState=u.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},u.queue=n,n=n.dispatch=rE.bind(null,Re,n),[u.memoizedState,n]},useRef:function(n){var r=kt();return n={current:n},r.memoizedState=n},useState:function(n){n=nd(n);var r=n.queue,a=Wm.bind(null,Re,r);return r.dispatch=a,[n.memoizedState,a]},useDebugValue:sd,useDeferredValue:function(n,r){var a=kt();return ad(a,n,r)},useTransition:function(){var n=nd(!1);return n=Ym.bind(null,Re,n.queue,!0,!1),kt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,a){var u=Re,f=kt();if(Le){if(a===void 0)throw Error(s(407));a=a()}else{if(a=r(),Ye===null)throw Error(s(349));(Ne&127)!==0||Em(u,r,a)}f.memoizedState=a;var p={value:a,getSnapshot:r};return f.queue=p,Pm(Rm.bind(null,u,p,n),[n]),u.flags|=2048,us(9,{destroy:void 0},Tm.bind(null,u,p,a,r),null),a},useId:function(){var n=kt(),r=Ye.identifierPrefix;if(Le){var a=An,u=Rn;a=(u&~(1<<32-Ht(u)-1)).toString(32)+a,r="_"+r+"R_"+a,a=rl++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=JS++,r="_"+r+"r_"+a.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:ld,useFormState:Lm,useActionState:Lm,useOptimistic:function(n){var r=kt();r.memoizedState=r.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=ud.bind(null,Re,!0,a),a.dispatch=r,[n,r]},useMemoCache:Wc,useCacheRefresh:function(){return kt().memoizedState=iE.bind(null,Re)},useEffectEvent:function(n){var r=kt(),a={impl:n};return r.memoizedState=a,function(){if((qe&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},cd={readContext:St,use:al,useCallback:Fm,useContext:St,useEffect:rd,useImperativeHandle:Vm,useInsertionEffect:$m,useLayoutEffect:qm,useMemo:Gm,useReducer:ol,useRef:Im,useState:function(){return ol(Yn)},useDebugValue:sd,useDeferredValue:function(n,r){var a=st();return Km(a,Fe.memoizedState,n,r)},useTransition:function(){var n=ol(Yn)[0],r=st().memoizedState;return[typeof n=="boolean"?n:ma(n),r]},useSyncExternalStore:Sm,useId:Jm,useHostTransitionStatus:ld,useFormState:Mm,useActionState:Mm,useOptimistic:function(n,r){var a=st();return xm(a,Fe,n,r)},useMemoCache:Wc,useCacheRefresh:Xm};cd.useEffectEvent=Bm;var ig={readContext:St,use:al,useCallback:Fm,useContext:St,useEffect:rd,useImperativeHandle:Vm,useInsertionEffect:$m,useLayoutEffect:qm,useMemo:Gm,useReducer:td,useRef:Im,useState:function(){return td(Yn)},useDebugValue:sd,useDeferredValue:function(n,r){var a=st();return Fe===null?ad(a,n,r):Km(a,Fe.memoizedState,n,r)},useTransition:function(){var n=td(Yn)[0],r=st().memoizedState;return[typeof n=="boolean"?n:ma(n),r]},useSyncExternalStore:Sm,useId:Jm,useHostTransitionStatus:ld,useFormState:zm,useActionState:zm,useOptimistic:function(n,r){var a=st();return Fe!==null?xm(a,Fe,n,r):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:Wc,useCacheRefresh:Xm};ig.useEffectEvent=Bm;function dd(n,r,a,u){r=n.memoizedState,a=a(u,r),a=a==null?r:v({},r,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var fd={enqueueSetState:function(n,r,a){n=n._reactInternals;var u=Qt(),f=Ti(u);f.payload=r,a!=null&&(f.callback=a),r=Ri(n,f,u),r!==null&&(It(r,n,u),da(r,n,u))},enqueueReplaceState:function(n,r,a){n=n._reactInternals;var u=Qt(),f=Ti(u);f.tag=1,f.payload=r,a!=null&&(f.callback=a),r=Ri(n,f,u),r!==null&&(It(r,n,u),da(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var a=Qt(),u=Ti(a);u.tag=2,r!=null&&(u.callback=r),r=Ri(n,u,a),r!==null&&(It(r,n,a),da(r,n,a))}};function rg(n,r,a,u,f,p,y){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,y):r.prototype&&r.prototype.isPureReactComponent?!ia(a,u)||!ia(f,p):!0}function sg(n,r,a,u){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,u),r.state!==n&&fd.enqueueReplaceState(r,r.state,null)}function Er(n,r){var a=r;if("ref"in r){a={};for(var u in r)u!=="ref"&&(a[u]=r[u])}if(n=n.defaultProps){a===r&&(a=v({},a));for(var f in n)a[f]===void 0&&(a[f]=n[f])}return a}function ag(n){qo(n)}function og(n){console.error(n)}function lg(n){qo(n)}function dl(n,r){try{var a=n.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function ug(n,r,a){try{var u=n.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function hd(n,r,a){return a=Ti(a),a.tag=3,a.payload={element:null},a.callback=function(){dl(n,r)},a}function cg(n){return n=Ti(n),n.tag=3,n}function dg(n,r,a,u){var f=a.type.getDerivedStateFromError;if(typeof f=="function"){var p=u.value;n.payload=function(){return f(p)},n.callback=function(){ug(r,a,u)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(n.callback=function(){ug(r,a,u),typeof f!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var w=u.stack;this.componentDidCatch(u.value,{componentStack:w!==null?w:""})})}function sE(n,r,a,u,f){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=a.alternate,r!==null&&ts(r,a,f,!0),a=Gt.current,a!==null){switch(a.tag){case 31:case 13:return ln===null?El():a.alternate===null&&nt===0&&(nt=3),a.flags&=-257,a.flags|=65536,a.lanes=f,u===Xo?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),Id(n,u,f)),!1;case 22:return a.flags|=65536,u===Xo?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([u]):a.add(u)),Id(n,u,f)),!1}throw Error(s(435,a.tag))}return Id(n,u,f),El(),!1}if(Le)return r=Gt.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=f,u!==Nc&&(n=Error(s(422),{cause:u}),aa(rn(n,a)))):(u!==Nc&&(r=Error(s(423),{cause:u}),aa(rn(r,a))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,u=rn(u,a),f=hd(n.stateNode,u,f),Hc(n,f),nt!==4&&(nt=2)),!1;var p=Error(s(520),{cause:u});if(p=rn(p,a),Ra===null?Ra=[p]:Ra.push(p),nt!==4&&(nt=2),r===null)return!0;u=rn(u,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,n=f&-f,a.lanes|=n,n=hd(a.stateNode,u,n),Hc(a,n),!1;case 1:if(r=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ji===null||!ji.has(p))))return a.flags|=65536,f&=-f,a.lanes|=f,f=cg(f),dg(f,n,a,u),Hc(a,f),!1}a=a.return}while(a!==null);return!1}var pd=Error(s(461)),ut=!1;function Et(n,r,a,u){r.child=n===null?mm(r,null,a,u):wr(r,n.child,a,u)}function fg(n,r,a,u,f){a=a.render;var p=r.ref;if("ref"in u){var y={};for(var w in u)w!=="ref"&&(y[w]=u[w])}else y=u;
vendor: 9,202 bytes, line 9
9return vr(r),u=Zc(n,r,a,y,p,f),w=Qc(),n!==null&&!ut?(Jc(n,r,f),Zn(n,r,f)):(Le&&w&&kc(r),r.flags|=1,Et(n,r,u,f),r.child)}function hg(n,r,a,u,f){if(n===null){var p=a.type;return typeof p=="function"&&!Oc(p)&&p.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=p,pg(n,r,p,u,f)):(n=Go(a.type,null,u,r,r.mode,f),n.ref=r.ref,n.return=r,r.child=n)}if(p=n.child,!Sd(n,f)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:ia,a(y,u)&&n.ref===r.ref)return Zn(n,r,f)}return r.flags|=1,n=Hn(p,u),n.ref=r.ref,n.return=r,r.child=n}function pg(n,r,a,u,f){if(n!==null){var p=n.memoizedProps;if(ia(p,u)&&n.ref===r.ref)if(ut=!1,r.pendingProps=u=p,Sd(n,f))(n.flags&131072)!==0&&(ut=!0);else return r.lanes=n.lanes,Zn(n,r,f)}return md(n,r,a,u,f)}function mg(n,r,a,u){var f=u.children,p=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((r.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,n!==null){for(u=r.child=n.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~p}else u=0,r.child=null;return gg(n,r,p,a,u)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&Qo(r,p!==null?p.cachePool:null),p!==null?ym(r,p):Fc(),_m(r);else return u=r.lanes=536870912,gg(n,r,p!==null?p.baseLanes|a:a,a,u)}else p!==null?(Qo(r,p.cachePool),ym(r,p),Oi(),r.memoizedState=null):(n!==null&&Qo(r,null),Fc(),Oi());return Et(n,r,f,a),r.child}function ya(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function gg(n,r,a,u,f){var p=Pc();return p=p===null?null:{parent:ot._currentValue,pool:p},r.memoizedState={baseLanes:a,cachePool:p},n!==null&&Qo(r,null),Fc(),_m(r),n!==null&&ts(n,r,u,!0),r.childLanes=f,null}function fl(n,r){return r=pl({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function vg(n,r,a){return wr(r,n.child,null,a),n=fl(r,r.pendingProps),n.flags|=2,Kt(r),r.memoizedState=null,n}function aE(n,r,a){var u=r.pendingProps,f=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(Le){if(u.mode==="hidden")return n=fl(r,u),r.lanes=536870912,ya(null,n);if(Kc(r),(n=Xe)?(n=Cv(n,on),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:_i!==null?{id:Rn,overflow:An}:null,retryLane:536870912,hydrationErrors:null},a=em(n),a.return=r,r.child=a,wt=r,Xe=null)):n=null,n===null)throw wi(r);return r.lanes=536870912,null}return fl(r,u)}var p=n.memoizedState;if(p!==null){var y=p.dehydrated;if(Kc(r),f)if(r.flags&256)r.flags&=-257,r=vg(n,r,a);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(s(558));else if(ut||ts(n,r,a,!1),f=(a&n.childLanes)!==0,ut||f){if(u=Ye,u!==null&&(y=op(u,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,hr(n,y),It(u,n,y),pd;El(),r=vg(n,r,a)}else n=p.treeContext,Xe=un(y.nextSibling),wt=r,Le=!0,bi=null,on=!1,n!==null&&im(r,n),r=fl(r,u),r.flags|=4096;return r}return n=Hn(n.child,{mode:u.mode,children:u.children}),n.ref=r.ref,r.child=n,n.return=r,n}function hl(n,r){var a=r.ref;if(a===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(n===null||n.ref!==a)&&(r.flags|=4194816)}}function md(n,r,a,u,f){return vr(r),a=Zc(n,r,a,u,void 0,f),u=Qc(),n!==null&&!ut?(Jc(n,r,f),Zn(n,r,f)):(Le&&u&&kc(r),r.flags|=1,Et(n,r,a,f),r.child)}function yg(n,r,a,u,f,p){return vr(r),r.updateQueue=null,a=wm(r,u,a,f),bm(n),u=Qc(),n!==null&&!ut?(Jc(n,r,p),Zn(n,r,p)):(Le&&u&&kc(r),r.flags|=1,Et(n,r,a,p),r.child)}function _g(n,r,a,u,f){if(vr(r),r.stateNode===null){var p=Jr,y=a.contextType;typeof y=="object"&&y!==null&&(p=St(y)),p=new a(u,p),r.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=fd,r.stateNode=p,p._reactInternals=r,p=r.stateNode,p.props=u,p.state=r.memoizedState,p.refs={},$c(r),y=a.contextType,p.context=typeof y=="object"&&y!==null?St(y):Jr,p.state=r.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(dd(r,a,y,u),p.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&fd.enqueueReplaceState(p,p.state,null),ha(r,u,p,f),fa(),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){p=r.stateNode;var w=r.memoizedProps,A=Er(a,w);p.props=A;var M=p.context,$=a.contextType;y=Jr,typeof $=="object"&&$!==null&&(y=St($));var V=a.getDerivedStateFromProps;$=typeof V=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,$||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||M!==y)&&sg(r,p,u,y),Ei=!1;var U=r.memoizedState;p.state=U,ha(r,u,p,f),fa(),M=r.memoizedState,w||U!==M||Ei?(typeof V=="function"&&(dd(r,a,V,u),M=r.memoizedState),(A=Ei||rg(r,a,A,u,U,M,y))?($||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(r.flags|=4194308)):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=M),p.props=u,p.state=M,p.context=y,u=A):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{p=r.stateNode,qc(n,r),y=r.memoizedProps,$=Er(a,y),p.props=$,V=r.pendingProps,U=p.context,M=a.contextType,A=Jr,typeof M=="object"&&M!==null&&(A=St(M)),w=a.getDerivedStateFromProps,(M=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==V||U!==A)&&sg(r,p,u,A),Ei=!1,U=r.memoizedState,p.state=U,ha(r,u,p,f),fa();var I=r.memoizedState;y!==V||U!==I||Ei||n!==null&&n.dependencies!==null&&Yo(n.dependencies)?(typeof w=="function"&&(dd(r,a,w,u),I=r.memoizedState),($=Ei||rg(r,a,$,u,U,I,A)||n!==null&&n.dependencies!==null&&Yo(n.dependencies))?(M||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,I,A),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,I,A)),typeof p.componentDidUpdate=="function"&&(r.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=I),p.props=u,p.state=I,p.context=A,u=$):(typeof p.componentDidUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&U===n.memoizedState||(r.flags|=1024),u=!1)}return p=u,hl(n,r),u=(r.flags&128)!==0,p||u?(p=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:p.render(),r.flags|=1,n!==null&&u?(r.child=wr(r,n.child,null,f),r.child=wr(r,null,a,f)):Et(n,r,a,f),r.memoizedState=p.state,n=r.child):n=Zn(n,r,f),n}function bg(n,r,a,u){return mr(),r.flags|=256,Et(n,r,a,u),r.child}var gd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vd(n){return{baseLanes:n,cachePool:um()}}function yd(n,r,a){return n=n!==null?n.childLanes&~a:0,r&&(n|=Zt),n}function wg(n,r,a){var u=r.pendingProps,f=!1,p=(r.flags&128)!==0,y;if((y=p)||(y=n!==null&&n.memoizedState===null?!1:(rt.current&2)!==0),y&&(f=!0,r.flags&=-129),y=(r.flags&32)!==0,r.flags&=-33,n===null){if(Le){if(f?Ai(r):Oi(),(n=Xe)?(n=Cv(n,on),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:_i!==null?{id:Rn,overflow:An}:null,retryLane:536870912,hydrationErrors:null},a=em(n),a.return=r,r.child=a,wt=r,Xe=null)):n=null,n===null)throw wi(r);return ef(n)?r.lanes=32:r.lanes=536870912,null}var w=u.children;return u=u.fallback,f?(Oi(),f=r.mode,w=pl({mode:"hidden",children:w},f),u=pr(u,f,a,null),w.return=r,u.return=r,w.sibling=u,r.child=w,u=r.child,u.memoizedState=vd(a),u.childLanes=yd(n,y,a),r.memoizedState=gd,ya(null,u)):(Ai(r),_d(r,w))}var A=n.memoizedState;if(A!==null&&(w=A.dehydrated,w!==null)){if(p)r.flags&256?(Ai(r),r.flags&=-257,r=bd(n,r,a)):r.memoizedState!==null?(Oi(),r.child=n.child,r.flags|=128,r=null):(Oi(),w=u.fallback,f=r.mode,u=pl({mode:"visible",children:u.children},f),w=pr(w,f,a,null),w.flags|=2,u.return=r,w.return=r,u.sibling=w,r.child=u,wr(r,n.child,null,a),u=r.child,u.memoizedState=vd(a),u.childLanes=yd(n,y,a),r.memoizedState=gd,r=ya(null,u));else if(Ai(r),ef(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var M=y.dgst;y=M,u=Error(s(419)),u.stack="",u.digest=y,aa({value:u,source:null,stack:null}),r=bd(n,r,a)}else if(ut||ts(n,r,a,!1),y=(a&n.childLanes)!==0,ut||y){if(y=Ye,y!==null&&(u=op(y,a),u!==0&&u!==A.retryLane))throw A.retryLane=u,hr(n,u),It(y,n,u),pd;
vendor: 5,385 bytes, line 9
9Wd(w)||El(),r=bd(n,r,a)}else Wd(w)?(r.flags|=192,r.child=n.child,r=null):(n=A.treeContext,Xe=un(w.nextSibling),wt=r,Le=!0,bi=null,on=!1,n!==null&&im(r,n),r=_d(r,u.children),r.flags|=4096);return r}return f?(Oi(),w=u.fallback,f=r.mode,A=n.child,M=A.sibling,u=Hn(A,{mode:"hidden",children:u.children}),u.subtreeFlags=A.subtreeFlags&65011712,M!==null?w=Hn(M,w):(w=pr(w,f,a,null),w.flags|=2),w.return=r,u.return=r,u.sibling=w,r.child=u,ya(null,u),u=r.child,w=n.child.memoizedState,w===null?w=vd(a):(f=w.cachePool,f!==null?(A=ot._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=um(),w={baseLanes:w.baseLanes|a,cachePool:f}),u.memoizedState=w,u.childLanes=yd(n,y,a),r.memoizedState=gd,ya(n.child,u)):(Ai(r),a=n.child,n=a.sibling,a=Hn(a,{mode:"visible",children:u.children}),a.return=r,a.sibling=null,n!==null&&(y=r.deletions,y===null?(r.deletions=[n],r.flags|=16):y.push(n)),r.child=a,r.memoizedState=null,a)}function _d(n,r){return r=pl({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function pl(n,r){return n=Ft(22,n,null,r),n.lanes=0,n}function bd(n,r,a){return wr(r,n.child,null,a),n=_d(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Sg(n,r,a){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),Mc(n.return,r,a)}function wd(n,r,a,u,f,p){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:f,treeForkCount:p}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=a,y.tailMode=f,y.treeForkCount=p)}function Eg(n,r,a){var u=r.pendingProps,f=u.revealOrder,p=u.tail;u=u.children;var y=rt.current,w=(y&2)!==0;if(w?(y=y&1|2,r.flags|=128):y&=1,Q(rt,y),Et(n,r,u,a),u=Le?sa:0,!w&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Sg(n,a,r);else if(n.tag===19)Sg(n,a,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(a=r.child,f=null;a!==null;)n=a.alternate,n!==null&&nl(n)===null&&(f=a),a=a.sibling;a=f,a===null?(f=r.child,r.child=null):(f=a.sibling,a.sibling=null),wd(r,!1,f,a,p,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,f=r.child,r.child=null;f!==null;){if(n=f.alternate,n!==null&&nl(n)===null){r.child=f;break}n=f.sibling,f.sibling=a,a=f,f=n}wd(r,!0,a,null,p,u);break;case"together":wd(r,!1,null,null,void 0,u);break;default:r.memoizedState=null}return r.child}function Zn(n,r,a){if(n!==null&&(r.dependencies=n.dependencies),ki|=r.lanes,(a&r.childLanes)===0)if(n!==null){if(ts(n,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(s(153));if(r.child!==null){for(n=r.child,a=Hn(n,n.pendingProps),r.child=a,a.return=r;n.sibling!==null;)n=n.sibling,a=a.sibling=Hn(n,n.pendingProps),a.return=r;a.sibling=null}return r.child}function Sd(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&Yo(n)))}function oE(n,r,a){switch(r.tag){case 3:$e(r,r.stateNode.containerInfo),Si(r,ot,n.memoizedState.cache),mr();break;case 27:case 5:Tn(r);break;case 4:$e(r,r.stateNode.containerInfo);break;case 10:Si(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Kc(r),null;break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(Ai(r),r.flags|=128,null):(a&r.child.childLanes)!==0?wg(n,r,a):(Ai(r),n=Zn(n,r,a),n!==null?n.sibling:null);Ai(r);break;case 19:var f=(n.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||(ts(n,r,a,!1),u=(a&r.childLanes)!==0),f){if(u)return Eg(n,r,a);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Q(rt,rt.current),u)break;return null;case 22:return r.lanes=0,mg(n,r,a,r.pendingProps);case 24:Si(r,ot,n.memoizedState.cache)}return Zn(n,r,a)}function Tg(n,r,a){if(n!==null)if(n.memoizedProps!==r.pendingProps)ut=!0;else{if(!Sd(n,a)&&(r.flags&128)===0)return ut=!1,oE(n,r,a);ut=(n.flags&131072)!==0}else ut=!1,Le&&(r.flags&1048576)!==0&&nm(r,sa,r.index);switch(r.lanes=0,r.tag){case 16:e:{var u=r.pendingProps;if(n=_r(r.elementType),r.type=n,typeof n=="function")Oc(n)?(u=Er(n,u),r.tag=1,r=_g(null,r,n,u,a)):(r.tag=0,r=md(null,r,n,u,a));else{if(n!=null){var f=n.$$typeof;if(f===B){r.tag=11,r=fg(null,r,n,u,a);break e}else if(f===N){r.tag=14,r=hg(null,r,n,u,a);break e}}throw r=ye(n)||n,Error(s(306,r,""))}}return r;case 0:return md(n,r,r.type,r.pendingProps,a);case 1:return u=r.type,f=Er(u,r.pendingProps),_g(n,r,u,f,a);case 3:e:{if($e(r,r.stateNode.containerInfo),n===null)throw Error(s(387));u=r.pendingProps;var p=r.memoizedState;f=p.element,qc(n,r),ha(r,u,null,a);var y=r.memoizedState;if(u=y.cache,Si(r,ot,u),u!==p.cache&&Uc(r,[ot],a,!0),fa(),u=y.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:y.cache},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){r=bg(n,r,u,a);break e}else if(u!==f){f=rn(Error(s(424)),r),aa(f),r=bg(n,r,u,a);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Xe=un(n.firstChild),wt=r,Le=!0,bi=null,on=!0,a=mm(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(mr(),u===f){r=Zn(n,r,a);break e}Et(n,r,u,a)}r=r.child}return r;case 26:return hl(n,r),n===null?(a=Mv(r.type,null,r.pendingProps,null))?r.memoizedState=a:Le||(a=r.type,n=r.pen
vendor: 4,957 bytes, line 9
9dingProps,u=kl(Oe.current).createElement(a),u[bt]=r,u[Nt]=n,Tt(u,a,n),gt(u),r.stateNode=u):r.memoizedState=Mv(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Tn(r),n===null&&Le&&(u=r.stateNode=Nv(r.type,r.pendingProps,Oe.current),wt=r,on=!0,f=Xe,Mi(r.type)?(tf=f,Xe=un(u.firstChild)):Xe=f),Et(n,r,r.pendingProps.children,a),hl(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Le&&((f=u=Xe)&&(u=zE(u,r.type,r.pendingProps,on),u!==null?(r.stateNode=u,wt=r,Xe=un(u.firstChild),on=!1,f=!0):f=!1),f||wi(r)),Tn(r),f=r.type,p=r.pendingProps,y=n!==null?n.memoizedProps:null,u=p.children,Qd(f,p)?u=null:y!==null&&Qd(f,y)&&(r.flags|=32),r.memoizedState!==null&&(f=Zc(n,r,XS,null,null,a),Da._currentValue=f),hl(n,r),Et(n,r,u,a),r.child;case 6:return n===null&&Le&&((n=a=Xe)&&(a=IE(a,r.pendingProps,on),a!==null?(r.stateNode=a,wt=r,Xe=null,n=!0):n=!1),n||wi(r)),null;case 13:return wg(n,r,a);case 4:return $e(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=wr(r,null,u,a):Et(n,r,u,a),r.child;case 11:return fg(n,r,r.type,r.pendingProps,a);case 7:return Et(n,r,r.pendingProps,a),r.child;case 8:return Et(n,r,r.pendingProps.children,a),r.child;case 12:return Et(n,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,Si(r,r.type,u.value),Et(n,r,u.children,a),r.child;case 9:return f=r.type._context,u=r.pendingProps.children,vr(r),f=St(f),u=u(f),r.flags|=1,Et(n,r,u,a),r.child;case 14:return hg(n,r,r.type,r.pendingProps,a);case 15:return pg(n,r,r.type,r.pendingProps,a);case 19:return Eg(n,r,a);case 31:return aE(n,r,a);case 22:return mg(n,r,a,r.pendingProps);case 24:return vr(r),u=St(ot),n===null?(f=Pc(),f===null&&(f=Ye,p=zc(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=a),f=p),r.memoizedState={parent:u,cache:f},$c(r),Si(r,ot,f)):((n.lanes&a)!==0&&(qc(n,r),ha(r,null,null,a),fa()),f=n.memoizedState,p=r.memoizedState,f.parent!==u?(f={parent:u,cache:u},r.memoizedState=f,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=f),Si(r,ot,u)):(u=p.cache,Si(r,ot,u),u!==f.cache&&Uc(r,[ot],a,!0))),Et(n,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Qn(n){n.flags|=4}function Ed(n,r,a,u,f){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(Jg())n.flags|=8192;else throw br=Xo,Bc}else n.flags&=-16777217}function Rg(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Bv(r))if(Jg())n.flags|=8192;else throw br=Xo,Bc}function ml(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?rp():536870912,n.lanes|=r,hs|=r)}function _a(n,r){if(!Le)switch(n.tailMode){case"hidden":r=n.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function We(n){var r=n.alternate!==null&&n.alternate.child===n.child,a=0,u=0;if(r)for(var f=n.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=u,n.childLanes=a,r}function lE(n,r,a){var u=r.pendingProps;switch(jc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(r),null;case 1:return We(r),null;case 3:return a=r.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Gn(ot),Qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(es(r)?Qn(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Dc())),We(r),null;case 26:var f=r.type,p=r.memoizedState;return n===null?(Qn(r),p!==null?(We(r),Rg(r,p)):(We(r),Ed(r,f,null,u,a))):p?p!==n.memoizedState?(Qn(r),We(r),Rg(r,p)):(We(r),r.flags&=-16777217):(n=n.memoizedProps,n!==u&&Qn(r),We(r),Ed(r,f,n,u,a)),null;case 27:if(ar(r),a=Oe.current,f=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&Qn(r);else{if(!u){if(r.stateNode===null)throw Error(s(166));return We(r),null}n=re.current,es(r)?rm(r):(n=Nv(f,u,a),r.stateNode=n,Qn(r))}return We(r),null;case 5:if(ar(r),f=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&Qn(r);else{if(!u){if(r.stateNode===null)throw Error(s(166));return We(r),null}if(p=re.current,es(r))rm(r);else{var y=kl(Oe.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;
vendor: 22,036 bytes, line 9
9case"select":p=typeof u.is=="string"?y.createElement("select",{is:u.is}):y.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?y.createElement(f,{is:u.is}):y.createElement(f)}}p[bt]=r,p[Nt]=u;e:for(y=r.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===r)break e;for(;y.sibling===null;){if(y.return===null||y.return===r)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}r.stateNode=p;e:switch(Tt(p,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Qn(r)}}return We(r),Ed(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,a),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&Qn(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(s(166));if(n=Oe.current,es(r)){if(n=r.stateNode,a=r.memoizedProps,u=null,f=wt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}n[bt]=r,n=!!(n.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||wv(n.nodeValue,a)),n||wi(r,!0)}else n=kl(n).createTextNode(u),n[bt]=r,r.stateNode=n}return We(r),null;case 31:if(a=r.memoizedState,n===null||n.memoizedState!==null){if(u=es(r),a!==null){if(n===null){if(!u)throw Error(s(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[bt]=r}else mr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;We(r),n=!1}else a=Dc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return r.flags&256?(Kt(r),r):(Kt(r),null);if((r.flags&128)!==0)throw Error(s(558))}return We(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=es(r),u!==null&&u.dehydrated!==null){if(n===null){if(!f)throw Error(s(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[bt]=r}else mr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;We(r),f=!1}else f=Dc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return r.flags&256?(Kt(r),r):(Kt(r),null)}return Kt(r),(r.flags&128)!==0?(r.lanes=a,r):(a=u!==null,n=n!==null&&n.memoizedState!==null,a&&(u=r.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==f&&(u.flags|=2048)),a!==n&&a&&(r.child.flags|=8192),ml(r,r.updateQueue),We(r),null);case 4:return Qe(),n===null&&Fd(r.stateNode.containerInfo),We(r),null;case 10:return Gn(r.type),We(r),null;case 19:if(H(rt),u=r.memoizedState,u===null)return We(r),null;if(f=(r.flags&128)!==0,p=u.rendering,p===null)if(f)_a(u,!1);else{if(nt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(p=nl(n),p!==null){for(r.flags|=128,_a(u,!1),n=p.updateQueue,r.updateQueue=n,ml(r,n),r.subtreeFlags=0,n=a,a=r.child;a!==null;)Wp(a,n),a=a.sibling;return Q(rt,rt.current&1|2),Le&&Vn(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&$t()>bl&&(r.flags|=128,f=!0,_a(u,!1),r.lanes=4194304)}else{if(!f)if(n=nl(p),n!==null){if(r.flags|=128,f=!0,n=n.updateQueue,r.updateQueue=n,ml(r,n),_a(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!Le)return We(r),null}else 2*$t()-u.renderingStartTime>bl&&a!==536870912&&(r.flags|=128,f=!0,_a(u,!1),r.lanes=4194304);u.isBackwards?(p.sibling=r.child,r.child=p):(n=u.last,n!==null?n.sibling=p:r.child=p,u.last=p)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=$t(),n.sibling=null,a=rt.current,Q(rt,f?a&1|2:a&1),Le&&Vn(r,u.treeForkCount),n):(We(r),null);case 22:case 23:return Kt(r),Gc(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(a&536870912)!==0&&(r.flags&128)===0&&(We(r),r.subtreeFlags&6&&(r.flags|=8192)):We(r),a=r.updateQueue,a!==null&&ml(r,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==a&&(r.flags|=2048),n!==null&&H(yr),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Gn(ot),We(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function uE(n,r){switch(jc(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Gn(ot),Qe(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return ar(r),null;case 31:if(r.memoizedState!==null){if(Kt(r),r.alternate===null)throw Error(s(340));mr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Kt(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(s(340));mr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return H(rt),null;case 4:return Qe(),null;case 10:return Gn(r.type),null;case 22:case 23:return Kt(r),Gc(),n!==null&&H(yr),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Gn(ot),null;case 25:return null;default:return null}}function Ag(n,r){switch(jc(r),r.tag){case 3:Gn(ot),Qe();break;case 26:case 27:case 5:ar(r);break;case 4:Qe();break;case 31:r.memoizedState!==null&&Kt(r);break;case 13:Kt(r);break;case 19:H(rt);break;case 10:Gn(r.type);break;case 22:case 23:Kt(r),Gc(),n!==null&&H(yr);break;case 24:Gn(ot)}}function ba(n,r){try{var a=r.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var f=u.next;a=f;do{if((a.tag&n)===n){u=void 0;var p=a.create,y=a.inst;u=p(),y.destroy=u}a=a.next}while(a!==f)}}catch(w){Ve(r,r.return,w)}}function xi(n,r,a){try{var u=r.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var p=f.next;u=p;do{if((u.tag&n)===n){var y=u.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,f=r;var A=a,M=w;try{M()}catch($){Ve(f,A,$)}}}u=u.next}while(u!==p)}}catch($){Ve(r,r.return,$)}}function Og(n){var r=n.updateQueue;if(r!==null){var a=n.stateNode;try{vm(r,a)}catch(u){Ve(n,n.return,u)}}}function xg(n,r,a){a.props=Er(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(u){Ve(n,r,u)}}function wa(n,r){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof a=="function"?n.refCleanup=a(u):a.current=u}}catch(f){Ve(n,r,f)}}function On(n,r){var a=n.ref,u=n.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(f){Ve(n,r,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(f){Ve(n,r,f)}else a.current=null}function Cg(n){var r=n.type,a=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(f){Ve(n,n.return,f)}}function Td(n,r,a){try{var u=n.stateNode;jE(u,n.type,a,r),u[Nt]=r}catch(f){Ve(n,n.return,f)}}function kg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Mi(n.type)||n.tag===4}function Rd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||kg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Mi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ad(n,r,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(n),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=$n));else if(u!==4&&(u===27&&Mi(n.type)&&(a=n.stateNode,r=null),n=n.child,n!==null))for(Ad(n,r,a),n=n.sibling;n!==null;)Ad(n,r,a),n=n.sibling}function gl(n,r,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?a.insertBefore(n,r):a.appendChild(n);else if(u!==4&&(u===27&&Mi(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(gl(n,r,a),n=n.sibling;n!==null;)gl(n,r,a),n=n.sibling}function jg(n){var r=n.stateNode,a=n.memoizedProps;try{for(var u=n.type,f=r.attributes;f.length;)r.removeAttributeNode(f[0]);Tt(r,u,a),r[bt]=n,r[Nt]=a}catch(p){Ve(n,n.return,p)}}var Jn=!1,ct=!1,Od=!1,Ng=typeof WeakSet=="function"?WeakSet:Set,vt=null;function cE(n,r){if(n=n.containerInfo,Yd=zl,n=Vp(n),bc(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var f=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var y=0,w=-1,A=-1,M=0,$=0,V=n,U=null;t:for(;;){for(var I;V!==a||f!==0&&V.nodeType!==3||(w=y+f),V!==p||u!==0&&V.nodeType!==3||(A=y+u),V.nodeType===3&&(y+=V.nodeValue.length),(I=V.firstChild)!==null;)U=V,V=I;for(;;){if(V===n)break t;if(U===a&&++M===f&&(w=y),U===p&&++$===u&&(A=y),(I=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=I}a=w===-1||A===-1?null:{start:w,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zd={focusedElem:n,selectionRange:a},zl=!1,vt=r;vt!==null;)if(r=vt,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,vt=n;else for(;vt!==null;){switch(r=vt,p=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)f=n[a],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,a=r,f=p.memoizedProps,p=p.memoizedState,u=a.stateNode;try{var ie=Er(a.type,f);n=u.getSnapshotBeforeUpdate(ie,p),u.__reactInternalSnapshotBeforeUpdate=n}catch(pe){Ve(a,a.return,pe)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,a=n.nodeType,a===9)Xd(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Xd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=r.sibling,n!==null){n.return=r.return,vt=n;break}vt=r.return}}function Dg(n,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Wn(n,a),u&4&&ba(5,a);break;case 1:if(Wn(n,a),u&4)if(n=a.stateNode,r===null)try{n.componentDidMount()}catch(y){Ve(a,a.return,y)}else{var f=Er(a.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(f,r,n.__reactInternalSnapshotBeforeUpdate)}catch(y){Ve(a,a.return,y)}}u&64&&Og(a),u&512&&wa(a,a.return);break;case 3:if(Wn(n,a),u&64&&(n=a.updateQueue,n!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{vm(n,r)}catch(y){Ve(a,a.return,y)}}break;case 27:r===null&&u&4&&jg(a);case 26:case 5:Wn(n,a),r===null&&u&4&&Cg(a),u&512&&wa(a,a.return);break;case 12:Wn(n,a);break;case 31:Wn(n,a),u&4&&Ug(n,a);break;case 13:Wn(n,a),u&4&&zg(n,a),u&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=_E.bind(null,a),PE(n,a))));break;case 22:if(u=a.memoizedState!==null||Jn,!u){r=r!==null&&r.memoizedState!==null||ct,f=Jn;var p=ct;Jn=u,(ct=r)&&!p?ei(n,a,(a.subtreeFlags&8772)!==0):Wn(n,a),Jn=f,ct=p}break;case 30:break;default:Wn(n,a)}}function Lg(n){var r=n.alternate;r!==null&&(n.alternate=null,Lg(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&ic(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var et=null,Lt=!1;function Xn(n,r,a){for(a=a.child;a!==null;)Mg(n,r,a),a=a.sibling}function Mg(n,r,a){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Fs,a)}catch{}switch(a.tag){case 26:ct||On(a,r),Xn(n,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||On(a,r);var u=et,f=Lt;Mi(a.type)&&(et=a.stateNode,Lt=!1),Xn(n,r,a),ka(a.stateNode),et=u,Lt=f;break;case 5:ct||On(a,r);case 6:if(u=et,f=Lt,et=null,Xn(n,r,a),et=u,Lt=f,et!==null)if(Lt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(p){Ve(a,r,p)}else try{et.removeChild(a.stateNode)}catch(p){Ve(a,r,p)}break;case 18:et!==null&&(Lt?(n=et,Ov(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),ws(n)):Ov(et,a.stateNode));break;case 4:u=et,f=Lt,et=a.stateNode.containerInfo,Lt=!0,Xn(n,r,a),et=u,Lt=f;break;case 0:case 11:case 14:case 15:xi(2,a,r),ct||xi(4,a,r),Xn(n,r,a);break;case 1:ct||(On(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&xg(a,r,u)),Xn(n,r,a);break;case 21:Xn(n,r,a);break;case 22:ct=(u=ct)||a.memoizedState!==null,Xn(n,r,a),ct=u;break;default:Xn(n,r,a)}}function Ug(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ws(n)}catch(a){Ve(r,r.return,a)}}}function zg(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ws(n)}catch(a){Ve(r,r.return,a)}}function dE(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Ng),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Ng),r;default:throw Error(s(435,n.tag))}}function vl(n,r){var a=dE(n);r.forEach(function(u){if(!a.has(u)){a.add(u);var f=bE.bind(null,n,u);u.then(f,f)}})}function Mt(n,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var f=a[u],p=n,y=r,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(Mi(w.type)){et=w.stateNode,Lt=!1;break e}break;case 5:et=w.stateNode,Lt=!1;break e;case 3:case 4:et=w.stateNode.containerInfo,Lt=!0;break e}w=w.return}if(et===null)throw Error(s(160));Mg(p,y,f),et=null,Lt=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Ig(r,n),r=r.sibling}var gn=null;function Ig(n,r){var a=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Mt(r,n),Ut(n),u&4&&(xi(3,n,n.return),ba(3,n),xi(5,n,n.return));break;case 1:Mt(r,n),Ut(n),u&512&&(ct||a===null||On(a,a.return)),u&64&&Jn&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var f=gn;if(Mt(r,n),Ut(n),u&512&&(ct||a===null||On(a,a.return)),u&4){var p=a!==null?a.memoizedState:null;if(u=n.memoizedState,a===null)if(u===null)if(n.stateNode===null){e:{u=n.type,a=n.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":p=f.getElementsByTagName("title")[0],(!p||p[Ys]||p[bt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(u),f.head.insertBefore(p,f.querySelector("head > title"))),Tt(p,u,a),p[bt]=n,gt(p),u=p;break e;case"link":var y=Iv("link","href",f).get(u+(a.href||""));if(y){for(var w=0;w<y.length;w++)if(p=y[w],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(w,1);break t}}p=f.createElement(u),Tt(p,u,a),f.head.appendChild(p);break;case"meta":if(y=Iv("meta","content",f).get(u+(a.content||""))){for(w=0;w<y.length;w++)if(p=y[w],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(w,1);break t}}p=f.createElement(u),Tt(p,u,a),f.head.appendChild(p);break;default:throw Error(s(468,u))}p[bt]=n,gt(p),u=p}n.stateNode=u}else Pv(f,n.type,n.stateNode);else n.stateNode=zv(f,u,n.memoizedProps);else p!==u?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,u===null?Pv(f,n.type,n.stateNode):zv(f,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Td(n,n.memoizedProps,a.memoizedProps)}break;case 27:Mt(r,n),Ut(n),u&512&&(ct||a===null||On(a,a.return)),a!==null&&u&4&&Td(n,n.memoizedProps,a.memoizedProps);break;case 5:if(Mt(r,n),Ut(n),u&512&&(ct||a===null||On(a,a.return)),n.flags&32){f=n.stateNode;try{Vr(f,"")}catch(ie){Ve(n,n.return,ie)}}u&4&&n.stateNode!=null&&(f=n.memoizedProps,Td(n,f,a!==null?a.memoizedProps:f)),u&1024&&(Od=!0);break;case 6:if(Mt(r,n),Ut(n),u&4){if(n.stateNode===null)throw Error(s(162));u=n.memoizedProps,a=n.stateNode;try{a.nodeValue=u}catch(ie){Ve(n,n.return,ie)}}break;case 3:if(Dl=null,f=gn,gn=jl(r.containerInfo),Mt(r,n),gn=f,Ut(n),u&4&&a!==null&&a.memoizedState.isDehydrated)try{ws(r.containerInfo)}catch(ie){Ve(n,n.return,ie)}Od&&(Od=!1,Pg(n));break;case 4:u=gn,gn=jl(n.stateNode.containerInfo),Mt(r,n),Ut(n),gn=u;break;case 12:Mt(r,n),Ut(n);break;case 31:Mt(r,n),Ut(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,vl(n,u)));break;case 13:Mt(r,n),Ut(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_l=$t()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,vl(n,u)));break;case 22:f=n.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,M=Jn,$=ct;if(Jn=M||f,ct=$||A,Mt(r,n),ct=$,Jn=M,Ut(n),u&8192)e:for(r=n.stateNode,r._visibility=f?r._visibility&-2:r._visibility|1,f&&(a===null||A||Jn||ct||Tr(n)),a=null,r=n;;){if(r.tag===5||r.tag===26){if(a===null){A=a=r;try{if(p=A.stateNode,f)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=A.stateNode;var V=A.memoizedProps.style,U=V!=null&&V.hasOwnProperty("display")?V.display:null;w.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ie){Ve(A,A.return,ie)}}}else if(r.tag===6){if(a===null){A=r;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(ie){Ve(A,A.return,ie)}}}else if(r.tag===18){if(a===null){A=r;try{var I=A.stateNode;f?xv(I,!0):xv(A.stateNode,!1)}catch(ie){Ve(A,A.return,ie)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=n.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,vl(n,a))));break;case 19:Mt(r,n),Ut(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,vl(n,u)));break;case 30:break;case 21:break;default:Mt(r,n),Ut(n)}}function Ut(n){var r=n.flags;if(r&2){try{for(var a,u=n.return;u!==null;){if(kg(u)){a=u;break}u=u.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var f=a.stateNode,p=Rd(n);gl(n,p,f);break;case 5:var y=a.stateNode;a.flags&32&&(Vr(y,""),a.flags&=-33);var w=Rd(n);gl(n,w,y);break;case 3:case 4:var A=a.stateNode.containerInfo,M=Rd(n);Ad(n,M,A);break;default:throw Error(s(161))}}catch($){Ve(n,n.return,$)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Pg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Pg(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Wn(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Dg(n,r.alternate,r),r=r.sibling}function Tr(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:xi(4,r,r.return),Tr(r);break;case 1:On(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&xg(r,r.return,a),Tr(r);break;case 27:ka(r.stateNode);case 26:case 5:On(r,r.return),Tr(r);break;case 22:r.memoizedState===null&&Tr(r);break;case 30:Tr(r);break;default:Tr(r)}n=n.sibling}}function ei(n,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,f=n,p=r,y=p.flags;switch(p.tag){case 0:case 11:case 15:ei(f,p,a),ba(4,p);break;case 1:if(ei(f,p,a),u=p,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(M){Ve(u,u.return,M)}if(u=p,f=u.updateQueue,f!==null){var w=u.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)gm(A[f],w)}catch(M){Ve(u,u.return,M)}}a&&y&64&&Og(p),wa(p,p.return);break;case 27:jg(p);case 26:case 5:ei(f,p,a),a&&u===null&&y&4&&Cg(p),wa(p,p.return);break;case 12:ei(f,p,a);break;case 31:ei(f,p,a),a&&y&4&&Ug(f,p);break;case 13:ei(f,p,a),a&&y&4&&zg(f,p);break;case 22:p.memoizedState===null&&ei(f,p,a),wa(p,p.return);break;case 30:break;default:ei(f,p,a)}r=r.sibling}}function xd(n,r){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&oa(a))}function Cd(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&oa(n))}function vn(n,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Bg(n,r,a,u),r=r.sibling}function Bg(n,r,a,u){var f=r.flags;switch(r.tag){case 0:case 11:case 15:vn(n,r,a,u),f&2048&&ba(9,r);break;case 1:vn(n,r,a,u);break;case 3:vn(n,r,a,u),f&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&oa(n)));break;case 12:if(f&2048){vn(n,r,a,u),n=r.stateNode;try{var p=r.memoizedProps,y=p.id,w=p.onPostCommit;typeof w=="function"&&w(y,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(A){Ve(r,r.return,A)}}else vn(n,r,a,u);break;case 31:vn(n,r,a,u);break;case 13:vn(n,r,a,u);break;case 23:break;case 22:p=r.stateNode,y=r.alternate,r.memoizedState!==null?p._visibility&2?vn(n,r,a,u):Sa(n,r):p._visibility&2?vn(n,r,a,u):(p._visibility|=2,cs(n,r,a,u,(r.subtreeFlags&10256)!==0||!1)),f&2048&&xd(y,r);break;case 24:vn(n,r,a,u),f&2048&&Cd(r.alternate,r);break;default:vn(n,r,a,u)}}function cs(n,r,a,u,f){for(f=f&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var p=n,y=r,w=a,A=u,M=y.flags;switch(y.tag){case 0:case 11:case 15:cs(p,y,w,A,f),ba(8,y);break;case 23:break;case 22:var $=y.stateNode;y.memoizedState!==null?$._visibility&2?cs(p,y,w,A,f):Sa(p,y):($._visibility|=2,cs(p,y,w,A,f)),f&&M&2048&&xd(y.alternate,y);break;
vendor: 5,571 bytes, line 9
9case 24:cs(p,y,w,A,f),f&&M&2048&&Cd(y.alternate,y);break;default:cs(p,y,w,A,f)}r=r.sibling}}function Sa(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=n,u=r,f=u.flags;switch(u.tag){case 22:Sa(a,u),f&2048&&xd(u.alternate,u);break;case 24:Sa(a,u),f&2048&&Cd(u.alternate,u);break;default:Sa(a,u)}r=r.sibling}}var Ea=8192;function ds(n,r,a){if(n.subtreeFlags&Ea)for(n=n.child;n!==null;)$g(n,r,a),n=n.sibling}function $g(n,r,a){switch(n.tag){case 26:ds(n,r,a),n.flags&Ea&&n.memoizedState!==null&&JE(a,gn,n.memoizedState,n.memoizedProps);break;case 5:ds(n,r,a);break;case 3:case 4:var u=gn;gn=jl(n.stateNode.containerInfo),ds(n,r,a),gn=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Ea,Ea=16777216,ds(n,r,a),Ea=u):ds(n,r,a));break;default:ds(n,r,a)}}function qg(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Ta(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];vt=u,Vg(u,n)}qg(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Hg(n),n=n.sibling}function Hg(n){switch(n.tag){case 0:case 11:case 15:Ta(n),n.flags&2048&&xi(9,n,n.return);break;case 3:Ta(n);break;case 12:Ta(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,yl(n)):Ta(n);break;default:Ta(n)}}function yl(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];vt=u,Vg(u,n)}qg(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:xi(8,r,r.return),yl(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,yl(r));break;default:yl(r)}n=n.sibling}}function Vg(n,r){for(;vt!==null;){var a=vt;switch(a.tag){case 0:case 11:case 15:xi(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:oa(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,vt=u;else e:for(a=n;vt!==null;){u=vt;var f=u.sibling,p=u.return;if(Lg(u),u===a){vt=null;break e}if(f!==null){f.return=p,vt=f;break e}vt=p}}}var fE={getCacheForType:function(n){var r=St(ot),a=r.data.get(n);return a===void 0&&(a=n(),r.data.set(n,a)),a},cacheSignal:function(){return St(ot).controller.signal}},hE=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ye=null,Ce=null,Ne=0,He=0,Yt=null,Ci=!1,fs=!1,kd=!1,ti=0,nt=0,ki=0,Rr=0,jd=0,Zt=0,hs=0,Ra=null,zt=null,Nd=!1,_l=0,Fg=0,bl=1/0,wl=null,ji=null,pt=0,Ni=null,ps=null,ni=0,Dd=0,Ld=null,Gg=null,Aa=0,Md=null;function Qt(){return(qe&2)!==0&&Ne!==0?Ne&-Ne:z.T!==null?$d():lp()}function Kg(){if(Zt===0)if((Ne&536870912)===0||Le){var n=Co;Co<<=1,(Co&3932160)===0&&(Co=262144),Zt=n}else Zt=536870912;return n=Gt.current,n!==null&&(n.flags|=32),Zt}function It(n,r,a){(n===Ye&&(He===2||He===9)||n.cancelPendingCommit!==null)&&(ms(n,0),Di(n,Ne,Zt,!1)),Ks(n,a),((qe&2)===0||n!==Ye)&&(n===Ye&&((qe&2)===0&&(Rr|=a),nt===4&&Di(n,Ne,Zt,!1)),xn(n))}function Yg(n,r,a){if((qe&6)!==0)throw Error(s(327));var u=!a&&(r&127)===0&&(r&n.expiredLanes)===0||Gs(n,r),f=u?gE(n,r):zd(n,r,!0),p=u;do{if(f===0){fs&&!u&&Di(n,r,0,!1);break}else{if(a=n.current.alternate,p&&!pE(a)){f=zd(n,r,!1),p=!1;continue}if(f===2){if(p=r,n.errorRecoveryDisabledLanes&p)var y=0;else y=n.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){r=y;e:{var w=n;f=Ra;var A=w.current.memoizedState.isDehydrated;if(A&&(ms(w,y).flags|=256),y=zd(w,y,!1),y!==2){if(kd&&!A){w.errorRecoveryDisabledLanes|=p,Rr|=p,f=4;break e}p=zt,zt=f,p!==null&&(zt===null?zt=p:zt.push.apply(zt,p))}f=y}if(p=!1,f!==2)continue}}if(f===1){ms(n,0),Di(n,r,0,!0);break}e:{switch(u=n,p=f,p){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Di(u,r,Zt,!Ci);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(f=_l+300-$t(),10<f)){if(Di(u,r,Zt,!Ci),jo(u,0,!0)!==0)break e;ni=r,u.timeoutHandle=Rv(Zg.bind(null,u,a,zt,wl,Nd,r,Zt,Rr,hs,Ci,p,"Throttled",-0,0),f);break e}Zg(u,a,zt,wl,Nd,r,Zt,Rr,hs,Ci,p,null,-0,0)}}break}while(!0);xn(n)}function Zg(n,r,a,u,f,p,y,w,A,M,$,V,U,I){if(n.timeoutHandle=-1,V=r.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$n},$g(r,p,V);var ie=(p&62914560)===p?_l-$t():(p&4194048)===p?Fg-$t():0;if(ie=XE(V,ie),ie!==null){ni=p,n.cancelPendingCommit=ie(iv.bind(null,n,r,p,a,u,f,y,w,A,$,V,null,U,I)),Di(n,p,y,!M);return}}iv(n,r,p,a,u,f,y,w,A)}function pE(n){for(var r=n;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var f=a[u],p=f.getSnapshot;f=f.value;try{if(!Vt(p(),f))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Di(n,r,a,u){r&=~jd,r&=~Rr,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var f=r;0<f;){var p=31-Ht(f),y=1<<p;u[p]=-1,f&=~y}a!==0&&sp(n,a,r)}function Sl(){return(qe&6)===0?(Oa(0),!1):!0}function Ud(){if(Ce!==null){if(He===0)var n=Ce.return;else n=Ce,Fn=gr=null,Xc(n),ss=null,ua=0,n=Ce;for(;n!==null;)Ag(n.alternate,n),n=n.return;Ce=null}}function ms(n,r){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,LE(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),ni=0,Ud(),Ye=n,Ce=a=Hn(n.
vendor: 4,577 bytes, line 9
9current,null),Ne=r,He=0,Yt=null,Ci=!1,fs=Gs(n,r),kd=!1,hs=Zt=jd=Rr=ki=nt=0,zt=Ra=null,Nd=!1,(r&8)!==0&&(r|=r&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=r;0<u;){var f=31-Ht(u),p=1<<f;r|=n[f],u&=~p}return ti=r,Ho(),a}function Qg(n,r){Re=null,z.H=va,r===rs||r===Jo?(r=fm(),He=3):r===Bc?(r=fm(),He=4):He=r===pd?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Yt=r,Ce===null&&(nt=1,dl(n,rn(r,n.current)))}function Jg(){var n=Gt.current;return n===null?!0:(Ne&4194048)===Ne?ln===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?n===ln:!1}function Xg(){var n=z.H;return z.H=va,n===null?va:n}function Wg(){var n=z.A;return z.A=fE,n}function El(){nt=4,Ci||(Ne&4194048)!==Ne&&Gt.current!==null||(fs=!0),(ki&134217727)===0&&(Rr&134217727)===0||Ye===null||Di(Ye,Ne,Zt,!1)}function zd(n,r,a){var u=qe;qe|=2;var f=Xg(),p=Wg();(Ye!==n||Ne!==r)&&(wl=null,ms(n,r)),r=!1;var y=nt;e:do try{if(He!==0&&Ce!==null){var w=Ce,A=Yt;switch(He){case 8:Ud(),y=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(r=!0);var M=He;if(He=0,Yt=null,gs(n,w,A,M),a&&fs){y=0;break e}break;default:M=He,He=0,Yt=null,gs(n,w,A,M)}}mE(),y=nt;break}catch($){Qg(n,$)}while(!0);return r&&n.shellSuspendCounter++,Fn=gr=null,qe=u,z.H=f,z.A=p,Ce===null&&(Ye=null,Ne=0,Ho()),y}function mE(){for(;Ce!==null;)ev(Ce)}function gE(n,r){var a=qe;qe|=2;var u=Xg(),f=Wg();Ye!==n||Ne!==r?(wl=null,bl=$t()+500,ms(n,r)):fs=Gs(n,r);e:do try{if(He!==0&&Ce!==null){r=Ce;var p=Yt;t:switch(He){case 1:He=0,Yt=null,gs(n,r,p,1);break;case 2:case 9:if(cm(p)){He=0,Yt=null,tv(r);break}r=function(){He!==2&&He!==9||Ye!==n||(He=7),xn(n)},p.then(r,r);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:cm(p)?(He=0,Yt=null,tv(r)):(He=0,Yt=null,gs(n,r,p,7));break;case 5:var y=null;switch(Ce.tag){case 26:y=Ce.memoizedState;case 5:case 27:var w=Ce;if(y?Bv(y):w.stateNode.complete){He=0,Yt=null;var A=w.sibling;if(A!==null)Ce=A;else{var M=w.return;M!==null?(Ce=M,Tl(M)):Ce=null}break t}}He=0,Yt=null,gs(n,r,p,5);break;case 6:He=0,Yt=null,gs(n,r,p,6);break;case 8:Ud(),nt=6;break e;default:throw Error(s(462))}}vE();break}catch($){Qg(n,$)}while(!0);return Fn=gr=null,z.H=u,z.A=f,qe=a,Ce!==null?0:(Ye=null,Ne=0,Ho(),nt)}function vE(){for(;Ce!==null&&!Bw();)ev(Ce)}function ev(n){var r=Tg(n.alternate,n,ti);n.memoizedProps=n.pendingProps,r===null?Tl(n):Ce=r}function tv(n){var r=n,a=r.alternate;switch(r.tag){case 15:case 0:r=yg(a,r,r.pendingProps,r.type,void 0,Ne);break;case 11:r=yg(a,r,r.pendingProps,r.type.render,r.ref,Ne);break;case 5:Xc(r);default:Ag(a,r),r=Ce=Wp(r,ti),r=Tg(a,r,ti)}n.memoizedProps=n.pendingProps,r===null?Tl(n):Ce=r}function gs(n,r,a,u){Fn=gr=null,Xc(r),ss=null,ua=0;var f=r.return;try{if(sE(n,f,r,a,Ne)){nt=1,dl(n,rn(a,n.current)),Ce=null;return}}catch(p){if(f!==null)throw Ce=f,p;nt=1,dl(n,rn(a,n.current)),Ce=null;return}r.flags&32768?(Le||u===1?n=!0:fs||(Ne&536870912)!==0?n=!1:(Ci=n=!0,(u===2||u===9||u===3||u===6)&&(u=Gt.current,u!==null&&u.tag===13&&(u.flags|=16384))),nv(r,n)):Tl(r)}function Tl(n){var r=n;do{if((r.flags&32768)!==0){nv(r,Ci);return}n=r.return;var a=lE(r.alternate,r,ti);if(a!==null){Ce=a;return}if(r=r.sibling,r!==null){Ce=r;return}Ce=r=n}while(r!==null);nt===0&&(nt=5)}function nv(n,r){do{var a=uE(n.alternate,n);if(a!==null){a.flags&=32767,Ce=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(n=n.sibling,n!==null)){Ce=n;return}Ce=n=a}while(n!==null);nt=6,Ce=null}function iv(n,r,a,u,f,p,y,w,A){n.cancelPendingCommit=null;do Rl();while(pt!==0);if((qe&6)!==0)throw Error(s(327));if(r!==null){if(r===n.current)throw Error(s(177));if(p=r.lanes|r.childLanes,p|=Rc,Qw(n,a,p,y,w,A),n===Ye&&(Ce=Ye=null,Ne=0),ps=r,Ni=n,ni=a,Dd=p,Ld=f,Gg=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,wE(Oo,function(){return lv(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,f=X.p,X.p=2,y=qe,qe|=4;try{cE(n,r,a)}finally{qe=y,X.p=f,z.T=u}}pt=1,rv(),sv(),av()}}function rv(){if(pt===1){pt=0;var n=Ni,r=ps,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var u=X.p;X.p=2;var f=qe;qe|=4;try{Ig(r,n);var p=Zd,y=Vp(n.containerInfo),w=p.focusedElem,A=p.selectionRange;if(y!==w&&w&&w.ownerDocument&&Hp(w.ownerDocument.documentElement,w)){if(A!==null&&bc(w)){var M=A.start,$=A.end;if($===void 0&&($=M),"selectionStart"in w)w.selectionStart=M,w.selectionEnd=Math.min($,w.value.length);else{var V=w.ownerDocument||document,U=V&&V.defaultView||window;if(U.getSelection){var I=U.getSelection(),ie=w.textContent.length,pe=M
vendor: 9,233 bytes, line 9
9ath.min(A.start,ie),Ke=A.end===void 0?pe:Math.min(A.end,ie);!I.extend&&pe>Ke&&(y=Ke,Ke=pe,pe=y);var j=qp(w,pe),O=qp(w,Ke);if(j&&O&&(I.rangeCount!==1||I.anchorNode!==j.node||I.anchorOffset!==j.offset||I.focusNode!==O.node||I.focusOffset!==O.offset)){var L=V.createRange();L.setStart(j.node,j.offset),I.removeAllRanges(),pe>Ke?(I.addRange(L),I.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),I.addRange(L))}}}}for(V=[],I=w;I=I.parentNode;)I.nodeType===1&&V.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<V.length;w++){var q=V[w];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}zl=!!Yd,Zd=Yd=null}finally{qe=f,X.p=u,z.T=a}}n.current=r,pt=2}}function sv(){if(pt===2){pt=0;var n=Ni,r=ps,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var u=X.p;X.p=2;var f=qe;qe|=4;try{Dg(n,r.alternate,r)}finally{qe=f,X.p=u,z.T=a}}pt=3}}function av(){if(pt===4||pt===3){pt=0,$w();var n=Ni,r=ps,a=ni,u=Gg;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?pt=5:(pt=0,ps=Ni=null,ov(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(ji=null),tc(a),r=r.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Fs,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=z.T,f=X.p,X.p=2,z.T=null;try{for(var p=n.onRecoverableError,y=0;y<u.length;y++){var w=u[y];p(w.value,{componentStack:w.stack})}}finally{z.T=r,X.p=f}}(ni&3)!==0&&Rl(),xn(n),f=n.pendingLanes,(a&261930)!==0&&(f&42)!==0?n===Md?Aa++:(Aa=0,Md=n):Aa=0,Oa(0)}}function ov(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,oa(r)))}function Rl(){return rv(),sv(),av(),lv()}function lv(){if(pt!==5)return!1;var n=Ni,r=Dd;Dd=0;var a=tc(ni),u=z.T,f=X.p;try{X.p=32>a?32:a,z.T=null,a=Ld,Ld=null;var p=Ni,y=ni;if(pt=0,ps=Ni=null,ni=0,(qe&6)!==0)throw Error(s(331));var w=qe;if(qe|=4,Hg(p.current),Bg(p,p.current,y,a),qe=w,Oa(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Fs,p)}catch{}return!0}finally{X.p=f,z.T=u,ov(n,r)}}function uv(n,r,a){r=rn(a,r),r=hd(n.stateNode,r,2),n=Ri(n,r,2),n!==null&&(Ks(n,2),xn(n))}function Ve(n,r,a){if(n.tag===3)uv(n,n,a);else for(;r!==null;){if(r.tag===3){uv(r,n,a);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ji===null||!ji.has(u))){n=rn(a,n),a=cg(2),u=Ri(r,a,2),u!==null&&(dg(a,u,r,n),Ks(u,2),xn(u));break}}r=r.return}}function Id(n,r,a){var u=n.pingCache;if(u===null){u=n.pingCache=new hE;var f=new Set;u.set(r,f)}else f=u.get(r),f===void 0&&(f=new Set,u.set(r,f));f.has(a)||(kd=!0,f.add(a),n=yE.bind(null,n,r,a),r.then(n,n))}function yE(n,r,a){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,Ye===n&&(Ne&a)===a&&(nt===4||nt===3&&(Ne&62914560)===Ne&&300>$t()-_l?(qe&2)===0&&ms(n,0):jd|=a,hs===Ne&&(hs=0)),xn(n)}function cv(n,r){r===0&&(r=rp()),n=hr(n,r),n!==null&&(Ks(n,r),xn(n))}function _E(n){var r=n.memoizedState,a=0;r!==null&&(a=r.retryLane),cv(n,a)}function bE(n,r){var a=0;switch(n.tag){case 31:case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(a=f.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(s(314))}u!==null&&u.delete(r),cv(n,a)}function wE(n,r){return Ju(n,r)}var Al=null,vs=null,Pd=!1,Ol=!1,Bd=!1,Li=0;function xn(n){n!==vs&&n.next===null&&(vs===null?Al=vs=n:vs=vs.next=n),Ol=!0,Pd||(Pd=!0,EE())}function Oa(n,r){if(!Bd&&Ol){Bd=!0;do for(var a=!1,u=Al;u!==null;){if(n!==0){var f=u.pendingLanes;if(f===0)var p=0;else{var y=u.suspendedLanes,w=u.pingedLanes;p=(1<<31-Ht(42|n)+1)-1,p&=f&~(y&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,pv(u,p))}else p=Ne,p=jo(u,u===Ye?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||Gs(u,p)||(a=!0,pv(u,p));u=u.next}while(a);Bd=!1}}function SE(){dv()}function dv(){Ol=Pd=!1;var n=0;Li!==0&&DE()&&(n=Li);for(var r=$t(),a=null,u=Al;u!==null;){var f=u.next,p=fv(u,r);p===0?(u.next=null,a===null?Al=f:a.next=f,f===null&&(vs=a)):(a=u,(n!==0||(p&3)!==0)&&(Ol=!0)),u=f}pt!==0&&pt!==5||Oa(n),Li!==0&&(Li=0)}function fv(n,r){for(var a=n.suspendedLanes,u=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var y=31-Ht(p),w=1<<y,A=f[y];A===-1?((w&a)===0||(w&u)!==0)&&(f[y]=Zw(w,r)):A<=r&&(n.expiredLanes|=w),p&=~w}if(r=Ye,a=Ne,a=jo(n,n===r?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,a===0||n===r&&(He===2||He===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Xu(u),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Gs(n,a)){if(r=a&-a,r===n.callbackPriority)return r;switch(u!==null&&Xu(u),tc(a)){case 2:case 8:a=np;break;case 32:a=Oo;break;case 268435456:a=ip;break;default:a=Oo}return u=hv.bind(null,n),a=Ju(a,u),n.callbackPriority=r,n.callbackNode=a,r}return u!==null&&u!==null&&Xu(u),n.callbackPriority=2,n.callbackNode=null,2}function hv(n,r){if(pt!==0&&pt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Rl()&&n.callbackNode!==a)return null;var u=Ne;return u=jo(n,n===Ye?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Yg(n,u,r),fv(n,$t()),n.callbackNode!=null&&n.callbackNode===a?hv.bind(null,n):null)}function pv(n,r){if(Rl())return null;Yg(n,r,!0)}function EE(){ME(function(){(qe&6)!==0?Ju(tp,SE):dv()})}function $d(){if(Li===0){var n=ns;n===0&&(n=xo,xo<<=1,(xo&261888)===0&&(xo=256)),Li=n}return Li}function mv(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Mo(""+n)}function gv(n,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,n.id&&a.setAttribute("form",n.id),r.parentNode.insertBefore(a,r),n=new FormData(n),a.parentNode.removeChild(a),n}function TE(n,r,a,u,f){if(r==="submit"&&a&&a.stateNode===f){var p=mv((f[Nt]||null).action),y=u.submitter;y&&(r=(r=y[Nt]||null)?mv(r.formAction):y.getAttribute("formAction"),r!==null&&(p=r,y=null));var w=new Po("action","action",null,u,f);n.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Li!==0){var A=y?gv(f,y):new FormData(f);od(a,{pending:!0,data:A,method:f.method,action:p},null,A)}}else typeof p=="function"&&(w.preventDefault(),A=y?gv(f,y):new FormData(f),od(a,{pending:!0,data:A,method:f.method,action:p},p,A))},currentTarget:f}]})}}for(var qd=0;qd<Tc.length;qd++){var Hd=Tc[qd],RE=Hd.toLowerCase(),AE=Hd[0].toUpperCase()+Hd.slice(1);mn(RE,"on"+AE)}mn(Kp,"onAnimationEnd"),mn(Yp,"onAnimationIteration"),mn(Zp,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(qS,"onTransitionRun"),mn(HS,"onTransitionStart"),mn(VS,"onTransitionCancel"),mn(Qp,"onTransitionEnd"),qr("onMouseEnter",["mouseout","mouseover"]),qr("onMouseLeave",["mouseout","mouseover"]),qr("onPointerEnter",["pointerout","pointerover"]),qr("onPointerLeave",["pointerout","pointerover"]),ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xa="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(" "),OE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xa));function vv(n,r){r=(r&4)!==0;for(var a=0;a<n.length;a++){var u=n[a],f=u.event;u=u.listeners;e:{var p=void 0;if(r)for(var y=u.length-1;0<=y;y--){var w=u[y],A=w.instance,M=w.currentTarget;if(w=w.listener,A!==p&&f.isPropagationStopped())break e;p=w,f.currentTarget=M;try{p(f)}catch($){qo($)}f.currentTarget=null,p=A}else for(y=0;y<u.length;y++){if(w=u[y],A=w.instance,M=w.currentTarget,w=w.listener,A!==p&&f.isPropagationStopped())break e;p=w,f.currentTarget=M;try{p(f)}catch($){qo($)}f.currentTarget=null,p=A}}}}function ke(n,r){var a=r[nc];a===void 0&&(a=r[nc]=new Set);var u=n+"__bubble";a.has(u)||(yv(r,n,2,!1),a.add(u))}function Vd(n,r,a){var u=0;r&&(u|=4),yv(a,n,u,r)}var xl="_reactListening"+Math.random().toString(36).slice(2);function Fd(n){if(!n[xl]){n[xl]=!0,dp.forEach(function(a){a!=="selectionchange"&&(OE.has(a)||Vd(a,!1,n),Vd(a,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[xl]||(r[xl]=!0,Vd("selectionchange",!1,r))}}function yv(n,r,a,u){switch(Kv(r)){case 2:var f=tT;break;case 8:f=nT;break;default:f=of}a=f.bind(null,r,a,n),f=void 0,!dc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),u?f!==void 0?n.addEventListener(r,a,{capture:!0,passive:f}):n.addEventListener(r,a,!0):f!==void 0?n.addEventListener(r,a,{passive:f}):n.addEventListener(r,a,!1)}function Gd(n,r,a,u,f){var p=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var y=u.tag;if(y===3||y===4){var w=u.stateNode.containerInfo;
vendor: 2,649 bytes, line 9
9if(w===f)break;if(y===4)for(y=u.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;w!==null;){if(y=Pr(w),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){u=p=y;continue e}w=w.parentNode}}u=u.return}Ep(function(){var M=p,$=uc(a),V=[];e:{var U=Jp.get(n);if(U!==void 0){var I=Po,ie=n;switch(n){case"keypress":if(zo(a)===0)break e;case"keydown":case"keyup":I=bS;break;case"focusin":ie="focus",I=mc;break;case"focusout":ie="blur",I=mc;break;case"beforeblur":case"afterblur":I=mc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=lS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=ES;break;case Kp:case Yp:case Zp:I=dS;break;case Qp:I=RS;break;case"scroll":case"scrollend":I=aS;break;case"wheel":I=OS;break;case"copy":case"cut":case"paste":I=hS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=xp;break;case"toggle":case"beforetoggle":I=CS}var pe=(r&4)!==0,Ke=!pe&&(n==="scroll"||n==="scrollend"),j=pe?U!==null?U+"Capture":null:U;pe=[];for(var O=M,L;O!==null;){var q=O;if(L=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||L===null||j===null||(q=Qs(O,j),q!=null&&pe.push(Ca(O,q,L))),Ke)break;O=O.return}0<pe.length&&(U=new I(U,ie,null,a,$),V.push({event:U,listeners:pe}))}}if((r&7)===0){e:{if(U=n==="mouseover"||n==="pointerover",I=n==="mouseout"||n==="pointerout",U&&a!==lc&&(ie=a.relatedTarget||a.fromElement)&&(Pr(ie)||ie[Ir]))break e;if((I||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,I?(ie=a.relatedTarget||a.toElement,I=M,ie=ie?Pr(ie):null,ie!==null&&(Ke=l(ie),pe=ie.tag,ie!==Ke||pe!==5&&pe!==27&&pe!==6)&&(ie=null)):(I=null,ie=M),I!==ie)){if(pe=Ap,q="onMouseLeave",j="onMouseEnter",O="mouse",(n==="pointerout"||n==="pointerover")&&(pe=xp,q="onPointerLeave",j="onPointerEnter",O="pointer"),Ke=I==null?U:Zs(I),L=ie==null?U:Zs(ie),U=new pe(q,O+"leave",I,a,$),U.target=Ke,U.relatedTarget=L,q=null,Pr($)===M&&(pe=new pe(j,O+"enter",ie,a,$),pe.target=L,pe.relatedTarget=Ke,q=pe),Ke=q,I&&ie)t:{for(pe=xE,j=I,O=ie,L=0,q=j;q;q=pe(q))L++;q=0;for(var de=O;de;de=pe(de))q++;for(;0<L-q;)j=pe(j),L--;for(;0<q-L;)O=pe(O),q--;for(;L--;){if(j===O||O!==null&&j===O.alternate){pe=j;break t}j=pe(j),O=pe(O)}pe=null}else pe=null;I!==null&&_v(V,U,I,pe,!1),ie!==null&&Ke!==null&&_v(V,Ke,ie,pe,!0)}}
vendor: 5,189 bytes, lines 9-10
9e:{if(U=M?Zs(M):window,I=U.nodeName&&U.nodeName.toLowerCase(),I==="select"||I==="input"&&U.type==="file")var ze=Up;else if(Lp(U))if(zp)ze=PS;else{ze=zS;var oe=US}else I=U.nodeName,!I||I.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?M&&oc(M.elementType)&&(ze=Up):ze=IS;if(ze&&(ze=ze(n,M))){Mp(V,ze,a,$);break e}oe&&oe(n,U,M),n==="focusout"&&M&&U.type==="number"&&M.memoizedProps.value!=null&&ac(U,"number",U.value)}switch(oe=M?Zs(M):window,n){case"focusin":(Lp(oe)||oe.contentEditable==="true")&&(Yr=oe,wc=M,ra=null);break;case"focusout":ra=wc=Yr=null;break;case"mousedown":Sc=!0;break;case"contextmenu":case"mouseup":case"dragend":Sc=!1,Fp(V,a,$);break;case"selectionchange":if($S)break;case"keydown":case"keyup":Fp(V,a,$)}var Ae;if(vc)e:{switch(n){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Kr?Np(n,a)&&(De="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(Cp&&a.locale!=="ko"&&(Kr||De!=="onCompositionStart"?De==="onCompositionEnd"&&Kr&&(Ae=Tp()):(yi=$,fc="value"in yi?yi.value:yi.textContent,Kr=!0)),oe=Cl(M,De),0<oe.length&&(De=new Op(De,n,null,a,$),V.push({event:De,listeners:oe}),Ae?De.data=Ae:(Ae=Dp(a),Ae!==null&&(De.data=Ae)))),(Ae=jS?NS(n,a):DS(n,a))&&(De=Cl(M,"onBeforeInput"),0<De.length&&(oe=new Op("onBeforeInput","beforeinput",null,a,$),V.push({event:oe,listeners:De}),oe.data=Ae)),TE(V,n,M,a,$)}vv(V,r)})}function Ca(n,r,a){return{instance:n,listener:r,currentTarget:a}}function Cl(n,r){for(var a=r+"Capture",u=[];n!==null;){var f=n,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Qs(n,a),f!=null&&u.unshift(Ca(n,f,p)),f=Qs(n,r),f!=null&&u.push(Ca(n,f,p))),n.tag===3)return u;n=n.return}return[]}function xE(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function _v(n,r,a,u,f){for(var p=r._reactName,y=[];a!==null&&a!==u;){var w=a,A=w.alternate,M=w.stateNode;if(w=w.tag,A!==null&&A===u)break;w!==5&&w!==26&&w!==27||M===null||(A=M,f?(M=Qs(a,p),M!=null&&y.unshift(Ca(a,M,A))):f||(M=Qs(a,p),M!=null&&y.push(Ca(a,M,A)))),a=a.return}y.length!==0&&n.push({event:r,listeners:y})}var CE=/\r\n?/g,kE=/\u0000|\uFFFD/g;function bv(n){return(typeof n=="string"?n:""+n).replace(CE,`
10`).replace(kE,"")}function wv(n,r){return r=bv(r),bv(n)===r}function Ge(n,r,a,u,f,p){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||Vr(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&Vr(n,""+u);break;case"className":Do(n,"class",u);break;case"tabIndex":Do(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Do(n,a,u);break;case"style":wp(n,u,p);break;case"data":if(r!=="object"){Do(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||a!=="href")){n.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(a);break}u=Mo(""+u),n.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(r!=="input"&&Ge(n,r,"name",f.name,f,null),Ge(n,r,"formEncType",f.formEncType,f,null),Ge(n,r,"formMethod",f.formMethod,f,null),Ge(n,r,"formTarget",f.formTarget,f,null)):(Ge(n,r,"encType",f.encType,f,null),Ge(n,r,"method",f.method,f,null),Ge(n,r,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(a);break}u=Mo(""+u),n.setAttribute(a,u);break;case"onClick":u!=null&&(n.onclick=$n);break;case"onScroll":u!=null&&ke("scroll",n);break;case"onScrollEnd":u!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(a=u.__html,a!=null){if(f.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}a=Mo(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,""+u):n.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":u===!0?n.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,u):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(a,u):n.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(a):n.setAttribute(a,u);break;case"popover":ke("beforetoggle",n),ke("toggle",n),No(n,"popover",u);break;case"xlinkActuate":Bn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Bn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Bn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Bn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Bn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Bn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Bn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Bn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Bn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":No(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=rS.get(a)||a,No(n,a,u))}}function Kd(n,r,a,u,f,p){switch(a){case"style":wp(n,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(a=u.__html,a!=null){if(f.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"children":typeof u=="string"?Vr(n,u):(typeof u=="number"||typeof u=="bigint")&&Vr(n,""+u);break;case"onScroll":u!=null&&ke("scroll",n);break;case"onScrollEnd":u!=null&&ke("scrollend",n);break;case"onClick":u!=null&&(n.onclick=$n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(f=a.endsWith("Capture"),r=a.slice(2,f?a.length-7:void 0),p=n[Nt]||null,p=p!=null?p[a]:null,typeof p=="function"&&n.removeEventListener(r,p,f),typeof u=="function")){typeof p!="function"&&p!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(r,u,f);break e}a in n?n[a]=u:u===!0?n.setAttribute(a,""):No(n,a,u)}}}function Tt(n,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var u=!1,f=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Ge(n,r,p,y,a,null)}}f&&Ge(n,r,"srcSet",a.srcSet,a,null),u&&Ge(n,r,"src",a.src,a,null);return;case"input":ke("invalid",n);var w=p=y=f=null,A=null,M=null;for(u in a)if(a.hasOwnProperty(u)){var $=a[u];if($!=null)switch(u){case"name":f=$;break;case"type":y=$;break;case"checked":A=$;break;case"defaultChecked":M=$;break;case"value":p=$;break;case"defaultValue":w=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(s(137,r));break;default:Ge(n,r,u,$,a,null)}}vp(n,p,w,A,M,y,f,!1);return;case"select":ke("invalid",n),u=y=p=null;for(f in a)if(a.hasOwnProperty(f)&&(w=a[f],w!=null))switch(f){case"value":p=w;break;case"defaultValue":y=w;break;case"multiple":u=w;default:Ge(n,r,f,w,a,null)}r=p,a=y,n.multiple=!!u,r!=null?Hr(n,!!u,r,!1):a!=null&&Hr(n,!!u,a,!0);return;case"textarea":ke("invalid",n),p=f=u=null;for(y in a)if(a.hasOwnProperty(y)&&(w=a[y],w!=null))switch(y){case"value":u=w;break;case"defaultValue":f=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Ge(n,r,y,w,a,null)}_p(n,u,f,p);return;case"option":for(A in a)a.hasOwnProperty(A)&&(u=a[A],u!=null)&&(A==="selected"?n.selected=u&&typeof u!="function"&&typeof u!="symbol":Ge(n,r,A,u,a,null));return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(u=0;
vendor: 4,109 bytes, line 10
10u<xa.length;u++)ke(xa[u],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(u=a[M],u!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Ge(n,r,M,u,a,null)}return;default:if(oc(r)){for($ in a)a.hasOwnProperty($)&&(u=a[$],u!==void 0&&Kd(n,r,$,u,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(u=a[w],u!=null&&Ge(n,r,w,u,a,null))}function jE(n,r,a,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,y=null,w=null,A=null,M=null,$=null;for(I in a){var V=a[I];if(a.hasOwnProperty(I)&&V!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":A=V;default:u.hasOwnProperty(I)||Ge(n,r,I,null,u,V)}}for(var U in u){var I=u[U];if(V=a[U],u.hasOwnProperty(U)&&(I!=null||V!=null))switch(U){case"type":p=I;break;case"name":f=I;break;case"checked":M=I;break;case"defaultChecked":$=I;break;case"value":y=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,r));break;default:I!==V&&Ge(n,r,U,I,u,V)}}sc(n,y,w,A,M,$,p,f);return;case"select":I=y=w=U=null;for(p in a)if(A=a[p],a.hasOwnProperty(p)&&A!=null)switch(p){case"value":break;case"multiple":I=A;default:u.hasOwnProperty(p)||Ge(n,r,p,null,u,A)}for(f in u)if(p=u[f],A=a[f],u.hasOwnProperty(f)&&(p!=null||A!=null))switch(f){case"value":U=p;break;case"defaultValue":w=p;break;case"multiple":y=p;default:p!==A&&Ge(n,r,f,p,u,A)}r=w,a=y,u=I,U!=null?Hr(n,!!a,U,!1):!!u!=!!a&&(r!=null?Hr(n,!!a,r,!0):Hr(n,!!a,a?[]:"",!1));return;case"textarea":I=U=null;for(w in a)if(f=a[w],a.hasOwnProperty(w)&&f!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ge(n,r,w,null,u,f)}for(y in u)if(f=u[y],p=a[y],u.hasOwnProperty(y)&&(f!=null||p!=null))switch(y){case"value":U=f;break;case"defaultValue":I=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==p&&Ge(n,r,y,f,u,p)}yp(n,U,I);return;case"option":for(var ie in a)U=a[ie],a.hasOwnProperty(ie)&&U!=null&&!u.hasOwnProperty(ie)&&(ie==="selected"?n.selected=!1:Ge(n,r,ie,null,u,U));for(A in u)U=u[A],I=a[A],u.hasOwnProperty(A)&&U!==I&&(U!=null||I!=null)&&(A==="selected"?n.selected=U&&typeof U!="function"&&typeof U!="symbol":Ge(n,r,A,U,u,I));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in a)U=a[pe],a.hasOwnProperty(pe)&&U!=null&&!u.hasOwnProperty(pe)&&Ge(n,r,pe,null,u,U);for(M in u)if(U=u[M],I=a[M],u.hasOwnProperty(M)&&U!==I&&(U!=null||I!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,r));break;default:Ge(n,r,M,U,u,I)}return;default:if(oc(r)){for(var Ke in a)U=a[Ke],a.hasOwnProperty(Ke)&&U!==void 0&&!u.hasOwnProperty(Ke)&&Kd(n,r,Ke,void 0,u,U);for($ in u)U=u[$],I=a[$],!u.hasOwnProperty($)||U===I||U===void 0&&I===void 0||Kd(n,r,$,U,u,I);return}}for(var j in a)U=a[j],a.hasOwnProperty(j)&&U!=null&&!u.hasOwnProperty(j)&&Ge(n,r,j,null,u,U);for(V in u)U=u[V],I=a[V],!u.hasOwnProperty(V)||U===I||U==null&&I==null||Ge(n,r,V,U,u,I)}function Sv(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NE(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var f=a[u],p=f.transferSize,y=f.initiatorType,w=f.duration;if(p&&w&&Sv(y)){for(y=0,w=f.responseEnd,u+=1;u<a.length;u++){var A=a[u],M=A.startTime;if(M>w)break;var $=A.transferSize,V=A.initiatorType;$&&Sv(V)&&(A=A.responseEnd,y+=$*(A<w?1:(w-M)/(A-M)))}if(--u,r+=8*(p+y)/(f.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 9,333 bytes, line 10
10n:5}var Yd=null,Zd=null;function kl(n){return n.nodeType===9?n:n.ownerDocument}function Ev(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tv(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function Qd(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Jd=null;function DE(){var n=window.event;return n&&n.type==="popstate"?n===Jd?!1:(Jd=n,!0):(Jd=null,!1)}var Rv=typeof setTimeout=="function"?setTimeout:void 0,LE=typeof clearTimeout=="function"?clearTimeout:void 0,Av=typeof Promise=="function"?Promise:void 0,ME=typeof queueMicrotask=="function"?queueMicrotask:typeof Av<"u"?function(n){return Av.resolve(null).then(n).catch(UE)}:Rv;function UE(n){setTimeout(function(){throw n})}function Mi(n){return n==="head"}function Ov(n,r){var a=r,u=0;do{var f=a.nextSibling;if(n.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"||a==="/&"){if(u===0){n.removeChild(f),ws(r);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")ka(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,ka(a);for(var p=a.firstChild;p;){var y=p.nextSibling,w=p.nodeName;p[Ys]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&ka(n.ownerDocument.body);a=f}while(a);ws(r)}function xv(n,r){var a=n;n=0;do{var u=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=u}while(a)}function Xd(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Xd(a),ic(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function zE(n,r,a,u){for(;n.nodeType===1;){var f=a;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Ys])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=un(n.nextSibling),n===null)break}return null}function IE(n,r,a){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=un(n.nextSibling),n===null))return null;return n}function Cv(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=un(n.nextSibling),n===null))return null;return n}function Wd(n){return n.data==="$?"||n.data==="$~"}function ef(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function PE(n,r){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||a.readyState!=="loading")r();else{var u=function(){r(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function un(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var tf=null;function kv(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(r===0)return un(n.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}n=n.nextSibling}return null}function jv(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return n;r--}else a!=="/$"&&a!=="/&"||r++}n=n.previousSibling}return null}function Nv(n,r,a){switch(r=kl(a),n){case"html":if(n=r.documentElement,!n)throw Error(s(452));return n;case"head":if(n=r.head,!n)throw Error(s(453));return n;case"body":if(n=r.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function ka(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);ic(n)}var cn=new Map,Dv=new Set;function jl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ii=X.d;X.d={f:BE,r:$E,D:qE,C:HE,L:VE,m:FE,X:KE,S:GE,M:YE};function BE(){var n=ii.f(),r=Sl();return n||r}function $E(n){var r=Br(n);r!==null&&r.tag===5&&r.type==="form"?Qm(r):ii.r(n)}var ys=typeof document>"u"?null:document;function Lv(n,r,a){var u=ys;if(u&&typeof r=="string"&&r){var f=tn(r);f='link[rel="'+n+'"][href="'+f+'"]',typeof a=="string"&&(f+='[crossorigin="'+a+'"]'),Dv.has(f)||(Dv.add(f),n={rel:n,crossOrigin:a,href:r},u.querySelector(f)===null&&(r=u.createElement("link"),Tt(r,"link",n),gt(r),u.head.appendChild(r)))}}function qE(n){ii.D(n),Lv("dns-prefetch",n,null)}function HE(n,r){ii.C(n,r),Lv("preconnect",n,r)}function VE(n,r,a){ii.L(n,r,a);var u=ys;if(u&&n&&r){var f='link[rel="preload"][as="'+tn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(f+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(f+='[imagesizes="'+tn(a.imageSizes)+'"]')):f+='[href="'+tn(n)+'"]';var p=f;switch(r){case"style":p=_s(n);break;case"script":p=bs(n)}cn.has(p)||(n=v({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:n,as:r},a),cn.set(p,n),u.querySelector(f)!==null||r==="style"&&u.querySelector(ja(p))||r==="script"&&u.querySelector(Na(p))||(r=u.createElement("link"),Tt(r,"link",n),gt(r),u.head.appendChild(r)))}}function FE(n,r){ii.m(n,r);var a=ys;if(a&&n){var u=r&&typeof r.as=="string"?r.as:"script",f='link[rel="modulepreload"][as="'+tn(u)+'"][href="'+tn(n)+'"]',p=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=bs(n)}if(!cn.has(p)&&(n=v({rel:"modulepreload",href:n},r),cn.set(p,n),a.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Na(p)))return}u=a.createElement("link"),Tt(u,"link",n),gt(u),a.head.appendChild(u)}}}function GE(n,r,a){ii.S(n,r,a);var u=ys;if(u&&n){var f=$r(u).hoistableStyles,p=_s(n);r=r||"default";var y=f.get(p);if(!y){var w={loading:0,preload:null};if(y=u.querySelector(ja(p)))w.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":r},a),(a=cn.get(p))&&nf(n,a);var A=y=u.createElement("link");gt(A),Tt(A,"link",n),A._p=new Promise(function(M,$){A.onload=M,A.onerror=$}),A.addEventListener("load",function(){w.loading|=1}),A.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Nl(y,r,u)}y={type:"stylesheet",instance:y,count:1,state:w},f.set(p,y)}}}function KE(n,r){ii.X(n,r);var a=ys;if(a&&n){var u=$r(a).hoistableScripts,f=bs(n),p=u.get(f);p||(p=a.querySelector(Na(f)),p||(n=v({src:n,async:!0},r),(r=cn.get(f))&&rf(n,r),p=a.createElement("script"),gt(p),Tt(p,"link",n),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(f,p))}}function YE(n,r){ii.M(n,r);var a=ys;if(a&&n){var u=$r(a).hoistableScripts,f=bs(n),p=u.get(f);p||(p=a.querySelector(Na(f)),p||(n=v({src:n,async:!0,type:"module"},r),(r=cn.get(f))&&rf(n,r),p=a.createElement("script"),gt(p),Tt(p,"link",n),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(f,p))}}function Mv(n,r,a,u){var f=(f=Oe.current)?jl(f):null;if(!f)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=_s(a.href),a=$r(f).hoistableStyles,u=a.get(r),u||(u={type:"style",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=_s(a.href);var p=$r(f).hoistableStyles,y=p.get(n);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,y),(p=f.querySelector(ja(n)))&&!p._p&&(y.instance=p,y.state.loading=5),cn.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},cn.set(n,a),p||ZE(f,n,a,y.state))),r&&u===null)throw Error(s(528,""));return y}if(r&&u!==null)throw Error(s(529,""));return null;
vendor: 5,824 bytes, line 10
10case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=bs(a),a=$r(f).hoistableScripts,u=a.get(r),u||(u={type:"script",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function _s(n){return'href="'+tn(n)+'"'}function ja(n){return'link[rel="stylesheet"]['+n+"]"}function Uv(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function ZE(n,r,a,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),Tt(r,"link",a),gt(r),n.head.appendChild(r))}function bs(n){return'[src="'+tn(n)+'"]'}function Na(n){return"script[async]"+n}function zv(n,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+tn(a.href)+'"]');if(u)return r.instance=u,gt(u),u;var f=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),gt(u),Tt(u,"style",f),Nl(u,a.precedence,n),r.instance=u;case"stylesheet":f=_s(a.href);var p=n.querySelector(ja(f));if(p)return r.state.loading|=4,r.instance=p,gt(p),p;u=Uv(a),(f=cn.get(f))&&nf(u,f),p=(n.ownerDocument||n).createElement("link"),gt(p);var y=p;return y._p=new Promise(function(w,A){y.onload=w,y.onerror=A}),Tt(p,"link",u),r.state.loading|=4,Nl(p,a.precedence,n),r.instance=p;case"script":return p=bs(a.src),(f=n.querySelector(Na(p)))?(r.instance=f,gt(f),f):(u=a,(f=cn.get(p))&&(u=v({},a),rf(u,f)),n=n.ownerDocument||n,f=n.createElement("script"),gt(f),Tt(f,"link",u),n.head.appendChild(f),r.instance=f);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Nl(u,a.precedence,n));return r.instance}function Nl(n,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,p=f,y=0;y<u.length;y++){var w=u[y];if(w.dataset.precedence===r)p=w;else if(p!==f)break}p?p.parentNode.insertBefore(n,p.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(n,r.firstChild))}function nf(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function rf(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Dl=null;function Iv(n,r,a){if(Dl===null){var u=new Map,f=Dl=new Map;f.set(a,u)}else f=Dl,u=f.get(a),u||(u=new Map,f.set(a,u));if(u.has(n))return u;for(u.set(n,null),a=a.getElementsByTagName(n),f=0;f<a.length;f++){var p=a[f];if(!(p[Ys]||p[bt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(r)||"";y=n+y;var w=u.get(y);w?w.push(p):u.set(y,[p])}}return u}function Pv(n,r,a){n=n.ownerDocument||n,n.head.insertBefore(a,r==="title"?n.querySelector("head > title"):null)}function QE(n,r,a){if(a===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Bv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function JE(n,r,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=_s(u.href),p=r.querySelector(ja(f));if(p){r=p._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Ll.bind(n),r.then(n,n)),a.state.loading|=4,a.instance=p,gt(p);return}p=r.ownerDocument||r,u=Uv(u),(f=cn.get(f))&&nf(u,f),p=p.createElement("link"),gt(p);var y=p;y._p=new Promise(function(w,A){y.onload=w,y.onerror=A}),Tt(p,"link",u),a.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=Ll.bind(n),r.addEventListener("load",a),r.addEventListener("error",a))}}var sf=0;function XE(n,r){return n.stylesheets&&n.count===0&&Ul(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var u=setTimeout(function(){if(n.stylesheets&&Ul(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+r);0<n.imgBytes&&sf===0&&(sf=62500*NE());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Ul(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>sf?50:800)+r);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Ll(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ul(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Ml=null;function Ul(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Ml=new Map,r.forEach(WE,n),Ml=null,Ll.call(n))}function WE(n,r){if(!(r.state.loading&4)){var a=Ml.get(n);if(a)var u=a.get(null);else{a=new Map,Ml.set(n,a);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var y=f[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),u=y)}u&&a.set(null,u)}f=r.instance,y=f.getAttribute("data-precedence"),p=a.get(y)||u,p===u&&a.set(null,f),a.set(y,f),this.count++,u=Ll.b
vendor: 10,572 bytes, line 10
10ind(this),f.addEventListener("load",u),f.addEventListener("error",u),p?p.parentNode.insertBefore(f,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),r.state.loading|=4}}var Da={$$typeof:C,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function eT(n,r,a,u,f,p,y,w,A){this.tag=1,this.containerInfo=n,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=Wu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wu(0),this.hiddenUpdates=Wu(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function $v(n,r,a,u,f,p,y,w,A,M,$,V){return n=new eT(n,r,a,y,A,M,$,V,w),r=1,p===!0&&(r|=24),p=Ft(3,null,null,r),n.current=p,p.stateNode=n,r=zc(),r.refCount++,n.pooledCache=r,r.refCount++,p.memoizedState={element:u,isDehydrated:a,cache:r},$c(p),n}function qv(n){return n?(n=Jr,n):Jr}function Hv(n,r,a,u,f,p){f=qv(f),u.context===null?u.context=f:u.pendingContext=f,u=Ti(r),u.payload={element:a},p=p===void 0?null:p,p!==null&&(u.callback=p),a=Ri(n,u,r),a!==null&&(It(a,n,r),da(a,n,r))}function Vv(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<r?a:r}}function af(n,r){Vv(n,r),(n=n.alternate)&&Vv(n,r)}function Fv(n){if(n.tag===13||n.tag===31){var r=hr(n,67108864);r!==null&&It(r,n,67108864),af(n,67108864)}}function Gv(n){if(n.tag===13||n.tag===31){var r=Qt();r=ec(r);var a=hr(n,r);a!==null&&It(a,n,r),af(n,r)}}var zl=!0;function tT(n,r,a,u){var f=z.T;z.T=null;var p=X.p;try{X.p=2,of(n,r,a,u)}finally{X.p=p,z.T=f}}function nT(n,r,a,u){var f=z.T;z.T=null;var p=X.p;try{X.p=8,of(n,r,a,u)}finally{X.p=p,z.T=f}}function of(n,r,a,u){if(zl){var f=lf(u);if(f===null)Gd(n,r,u,Il,a),Yv(n,u);else if(rT(f,n,r,a,u))u.stopPropagation();else if(Yv(n,u),r&4&&-1<iT.indexOf(n)){for(;f!==null;){var p=Br(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=lr(p.pendingLanes);if(y!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var A=1<<31-Ht(y);w.entanglements[1]|=A,y&=~A}xn(p),(qe&6)===0&&(bl=$t()+500,Oa(0))}}break;case 31:case 13:w=hr(p,2),w!==null&&It(w,p,2),Sl(),af(p,2)}if(p=lf(u),p===null&&Gd(n,r,u,Il,a),p===f)break;f=p}f!==null&&u.stopPropagation()}else Gd(n,r,u,null,a)}}function lf(n){return n=uc(n),uf(n)}var Il=null;function uf(n){if(Il=null,n=Pr(n),n!==null){var r=l(n);if(r===null)n=null;else{var a=r.tag;if(a===13){if(n=c(r),n!==null)return n;n=null}else if(a===31){if(n=d(r),n!==null)return n;n=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Il=n,null}function Kv(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qw()){case tp:return 2;case np:return 8;case Oo:case Hw:return 32;case ip:return 268435456;default:return 32}default:return 32}}var cf=!1,Ui=null,zi=null,Ii=null,La=new Map,Ma=new Map,Pi=[],iT="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 Yv(n,r){switch(n){case"focusin":case"focusout":Ui=null;break;case"dragenter":case"dragleave":zi=null;break;case"mouseover":case"mouseout":Ii=null;break;case"pointerover":case"pointerout":La.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ma.delete(r.pointerId)}}function Ua(n,r,a,u,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:p,targetContainers:[f]},r!==null&&(r=Br(r),r!==null&&Fv(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),n)}function rT(n,r,a,u,f){switch(r){case"focusin":return Ui=Ua(Ui,n,r,a,u,f),!0;case"dragenter":return zi=Ua(zi,n,r,a,u,f),!0;case"mouseover":return Ii=Ua(Ii,n,r,a,u,f),!0;case"pointerover":var p=f.pointerId;return La.set(p,Ua(La.get(p)||null,n,r,a,u,f)),!0;case"gotpointercapture":return p=f.pointerId,Ma.set(p,Ua(Ma.get(p)||null,n,r,a,u,f)),!0}return!1}function Zv(n){var r=Pr(n.target);if(r!==null){var a=l(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){n.blockedOn=r,up(n.priority,function(){Gv(a)});return}}else if(r===31){if(r=d(a),r!==null){n.blockedOn=r,up(n.priority,function(){Gv(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Pl(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var a=lf(n.nativeEvent);if(a===null){a=n.nativeEvent;var u=new a.constructor(a.type,a);lc=u,a.target.dispatchEvent(u),lc=null}else return r=Br(a),r!==null&&Fv(r),n.blockedOn=a,!1;r.shift()}return!0}function Qv(n,r,a){Pl(n)&&a.delete(r)}function sT(){cf=!1,Ui!==null&&Pl(Ui)&&(Ui=null),zi!==null&&Pl(zi)&&(zi=null),Ii!==null&&Pl(Ii)&&(Ii=null),La.forEach(Qv),Ma.forEach(Qv)}function Bl(n,r){n.blockedOn===r&&(n.blockedOn=null,cf||(cf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,sT)))}var $l=null;function Jv(n){$l!==n&&($l=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){$l===n&&($l=null);for(var r=0;r<n.length;r+=3){var a=n[r],u=n[r+1],f=n[r+2];if(typeof u!="function"){if(uf(u||a)===null)continue;break}var p=Br(a);p!==null&&(n.splice(r,3),r-=3,od(p,{pending:!0,data:f,method:a.method,action:u},u,f))}}))}function ws(n){function r(A){return Bl(A,n)}Ui!==null&&Bl(Ui,n),zi!==null&&Bl(zi,n),Ii!==null&&Bl(Ii,n),La.forEach(r),Ma.forEach(r);for(var a=0;a<Pi.length;a++){var u=Pi[a];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Pi.length&&(a=Pi[0],a.blockedOn===null);)Zv(a),a.blockedOn===null&&Pi.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var f=a[u],p=a[u+1],y=f[Nt]||null;if(typeof p=="function")y||Jv(a);else if(y){var w=null;if(p&&p.hasAttribute("formAction")){if(f=p,y=p[Nt]||null)w=y.formAction;else if(uf(f)!==null)continue}else w=y.action;typeof w=="function"?a[u+1]=w:(a.splice(u,3),u-=3),Jv(a)}}}function Xv(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function r(){f!==null&&(f(),f=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),f!==null&&(f(),f=null)}}}function df(n){this._internalRoot=n}ql.prototype.render=df.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(s(409));var a=r.current,u=Qt();Hv(a,u,n,r,null,null)},ql.prototype.unmount=df.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Hv(n.current,2,null,n,null,null),Sl(),r[Ir]=null}};function ql(n){this._internalRoot=n}ql.prototype.unstable_scheduleHydration=function(n){if(n){var r=lp();n={blockedOn:null,target:n,priority:r};for(var a=0;a<Pi.length&&r!==0&&r<Pi[a].priority;a++);Pi.splice(a,0,n),a===0&&Zv(n)}};var Wv=e.version;if(Wv!=="19.2.5")throw Error(s(527,Wv,"19.2.5"));X.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=m(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var aT={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hl.isDisabled&&Hl.supportsFiber)try{Fs=Hl.inject(aT),qt=Hl}catch{}}return Ia.createRoot=function(n,r){if(!o(n))throw Error(s(299));var a=!1,u="",f=ag,p=og,y=lg;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(y=r.onRecoverableError)),r=$v(n,1,!1,null,null,a,u,null,f,p,y,Xv),n[Ir]=r.current,Fd(n),new df(r)},Ia.hydrateRoot=function(n,r,a){if(!o(n))throw Error(s(299));var u=!1,f="",p=ag,y=og,w=lg,A=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),r=$v(n,1,!0,r,a??null,u,f,A,p,y,w,Xv),r.context=qv(null),a=r.current,u=Qt(),u=ec(u),f=Ti(u),f.callback=null,Ri(a,f,u),a=u,r.current.lanes=a,Ks(r,a),xn(r),n[Ir]=r.current,Fd(n),new ql(r)},Ia.version="19.2.5",Ia}var uy;
10function yT(){if(uy)return pf.exports;uy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),pf.exports=vT(),pf.exports}var _T=yT(),bT="__TSS_CONTEXT",Pf=Symbol.for("TSS_SERVER_FUNCTION"),cy=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),wT="application/x-tss-framed",Sh=()=>window.__TSS_START_OPTIONS__;function Mr(t){return t?.isNotFound===!0}function Un(t){t.statusCode=t.statusCode||t.code||307;const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const i=new Response(null,{status:t.statusCode,headers:e});if(i.options=t,t.throw)throw i;return i}function Eh(t){return t instanceof Response&&!!t.options}function p_(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return Un(t)}function ST(t){return t.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(e,i)=>i==="0"?"\0":i==="r"?"�":i)}const dy=!1;function Wi(t){return t[t.length-1]}function m_(t,e){return typeof t=="function"?t(e):t}const Th=Object.prototype.hasOwnProperty;function g_(t){for(const e in t)if(Th.call(t,e))return!0;return!1}const ou=()=>Object.create(null),Ss=(t,e)=>Zi(t,e,!0);function Zi(t,e,i,s=0){if(t===e)return t;if(s++>500)return e;const o=Array.isArray(t)&&Array.isArray(e);if(!o&&!(mu(t)&&mu(e)))return e;const l=Object.keys(t),c=l.length,d=Object.keys(e),h=d.length;if(o?c!==t.length||h!==e.length||c&&Wi(l)!==`${c-1}`||h&&Wi(d)!==`${h-1}`:c!==Object.getOwnPropertyNames(t).length||h!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let m=0,g,v,_;if(o){for(;m<h&&(_=m,v=t[_],g=e[_],g=v===g?v:typeof v=="object"?Zi(v,g,i,s):g,g===v);m++);if(m===h&&c===h)return t}else{let S=c===h,E=!0;for(;m<h;m++){_=d[m],v=t[_];const T=e[_];g=v===T?v:typeof v=="object"?Zi(v,T,i,s):T,S&&=g===v&&(l[m]===_||Th.call(t,_)),E&&=Object.is(g,T),l[m]=g}if(S)return Object.getOwnPropertySymbols(t).length?e:t;if(E)return e}const b=o?d.fill(0):i?ou():{};for(let S=0;S<h;S++)_=o?S:d[S],o?(v=t[_],S>m&&(g=e[_],g=v===g?v:typeof v=="object"?Zi(v,g,i,s):g),b[_]=S<m?v:g):b[_]=l[S];return b}function mu(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}function En(t,e,i,s){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let o=0,l=t.length;o<l;o++){const c=t[o],d=e[o];if(c!==d&&!En(c,d,i,s))return!1}return!0}if(mu(t)&&mu(e)){if(i){for(const l in e)if((s||e[l]!==void 0)&&!En(t[l],e[l],i,s))return!1;return!0}let o=0;if(s)o=Object.keys(t).length;else for(const l in t)t[l]!==void 0&&o++;for(const l in e)if((s||e[l]!==void 0)&&(o--===0||!En(t[l],e[l],i,s)))return!1;return o===0}return!1}function ET(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}const TT=/[\x00-\x1f\x7f"<>`{}]/g;function RT(t){return t.replace(TT,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function fy(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return RT(e)}const AT=["http:","https:","mailto:","tel:"];function Ja(t){if(t[0]!=="/"&&t.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(t)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const v_=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function y_(t,e){if(!t)return!1;if(v_.test(t))return!0;const i=Ja(t);return i?!e.has(i):!1}const OT={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},xT=/[&><\u2028\u2029]/g;function CT(t){return t.replace(xT,e=>OT[e])}function Pa(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){const i=/%25|%5C/gi;let s=0,o;for(e="";(o=i.exec(t))!==null;)e+=fy(t.slice(s,o.index))+o[0],s=i.lastIndex;e+=fy(s?t.slice(s):t)}return e}function kT(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function jT(t,e){if(t===e)return!0;
10if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function Ms(t){return t.replace(/\/{2,}/g,"/")}function __(t){return t==="/"?t:t.replace(/^\/+/,"")}function Dn(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}function b_(t){return Dn(__(t))}function hy(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function py(t,e,i="never",s){if(e.includes("//")&&(e=Ms(e)),e.startsWith("/"))return e.length===1||i==="preserve"?e:i==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;const o=e===".";let l;if(s){l=o?t:t+"\0"+e;const m=s.get(l);if(m)return m}let c;if(o)c=t.split("/");else{for(t.includes("//")&&(t=Ms(t)),c=t.split("/");c.length>1&&Wi(c)==="";)c.pop();const m=e.split("/");for(let g=0,v=m.length;g<v;g++){const _=m[g];_===""?g?g===v-1&&c.push(_):c=[_]:_===".."?c.length>1?c.pop():c=[""]:_==="."||c.push(_)}}c.length>1&&(Wi(c)===""?i==="never"&&c.pop():i==="always"&&c.push(""));const d=c.join("/"),h=(o?Ms(d):d)||"/";return l&&s&&s.set(l,h),h}function NT(t){const e=new Map(t.map(s=>[encodeURIComponent(s),s])),i=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return s=>s.replace(i,o=>e.get(o)??o)}function DT(t){return t==null||t===""}function LT(t,e,i){if(typeof e!="string")return""+(e??void 0);const s=t==="_splat";if(s&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let o=encodeURIComponent(e);return s&&(o=o.replaceAll("%2F","/")),i?i(o):o}function my(t,e,i,s,o){const l=t.endsWith("/")?"/":"";let c="";for(const d of e){if(typeof d=="string"){c+=d;continue}const[h,m,g,v]=d,_=h===2,b=_&&v!==void 0?v+l:v;let S=i[m];if(!(h===3&&S==null)){if(o&&(o[m]=S,_&&(o["*"]=S)),_&&DT(S)){if(g==="/"&&!b)continue;S=""}c+=g+LT(m,S,s)+(b||"")}}return c+l||"/"}function gu(t){const e=new Map;let i,s;return{get(o){const l=e.get(o);if(l)return l.visited=!0,l.value},set(o,l){const c=e.get(o);if(c){c.value=l;return}if(e.size>=t){let h=i?.next().value;for(;!h||h.visited;)h?h.visited=!1:i=e.values(),h=i.next().value;h===s&&(i=void 0),e.delete(h.key)}const d={key:o,value:l,visited:!1};s=d,e.set(o,d)},clear(){e.clear(),i=void 0,s=void 0}}}function Xa(){throw new Error("Invariant failed")}const Ki=4,w_=5;function MT(t){const e=t.names;if(e)return e;const i=[];for(const s of t)typeof s!="string"&&i.push(s[1]);return t.names=i}function UT(t,e,i){const s=t.substring(e,i);if(s.charCodeAt(0)===36)return s.length===1?[2,"_splat","",void 0]:[1,s.substring(1),"",""];const o=s.indexOf("{");if(o>=0){const l=s.indexOf("}",o),c=s.charCodeAt(o+1)===45,d=o+(c?3:2);if(l>=0&&s.charCodeAt(d-1)===36&&(!c||d<l)){const h=s.substring(d,l);return[c?3:h?1:2,h||"_splat",s.substring(0,o),t.substring(e+l+1,h?i:t.length)]}}return s}function Wa(t,e,i,s,o,l){let c=i;const d=e.fullPath??e.from,h=e.options,m=d.length,g=d.endsWith("/")?m-1:m,v=h?.caseSensitive??t,_=h?.params?.parse??h?.parseParams;let b,S=l?i-1:0;if(!s||d.includes("$")){b=l?.slice()??[];const R=Wi(b);R&&typeof R!="string"&&R[0]===2&&(b[b.length-1]=[R[0],R[1],R[2],R[3]===void 0?void 0:R[3]+d.substring(i-(d[i-2]==="/"?2:1),g)],S=m)}for(;c<m;){const R=c,k=d.indexOf("/",R);let C=k===-1?m:k;const B=UT(d,R,C);c=C+1;let J;if(typeof B=="string"){if(!s)continue;let P=B,N;v?N=s.static??=new Map:(P=B.toLowerCase(),N=s.staticInsensitive??=new Map);const K=N.get(P);if(K)J=K;else{const te=Cr(s);J=te,N.set(P,te)}}else{const P=B[0];let N=B[2],K=B[3]??"";if(P===2&&(C=m,c=C+1),b&&S<C&&(S<R-1&&b.push(d.substring(S,R-1)),B[2]="/"+N,P===2&&B[3]!==void 0&&g<m&&(B[3]=K.slice(0,-1)),b.push(B),S=C),!s)continue;const te=v&&!!(N||K);v||(N=N.toLowerCase(),K=K.toLowerCase());const le=P===1?s.dynamic??=[]:P===3?s.optional??=[]:s.wildcard??=[],F=P!==2&&!_&&le.find(G=>!G.parse&&G.caseSensitive===te&&G.prefix===N&&G.suffix===K);if(F)J=F;else{const G=Cr(s,P,te,N,K);J=G,le.push(G),le.length===2&&o?.push(le)}}s=J}b&&S<g&&b.push(d.substring(S,g));const E=b?.slice();if(!s)return E;if(_&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const R=Cr(s,w_);(s.pathless??=[]).push(R),s=R}const T=(e.path||!e.children)&&!e.isRoot;if(T&&g<m){const R=Cr(s,Ki);s.index=R,s=R}return s.parse=_??null,s.priority=h?.params?.priority??0,s.route||(s.data=E,T&&(s.route=e)),[s,c,E]}function S_(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function Cr(t,e=0,i,s,o){return{kind:e,depth:t?t.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:t,parse:null,priority:0,caseSensitive:i,prefix:s,suffix:o}}function zT(t,e){const i=Cr(),s=[];function o(l,c,d,h){const[m,g,v]=Wa(!1,l,c,d,s,h);if(l.children)for(const _ of l.children)o(_,g,m,v)}for(const l of t)o(l,1,i);for(const l of s)l.sort(S_);e.masksTree=i,e.flatCache=gu(1e3)}function IT(t,e){t||="/";const i=e.flatCache.get(t);if(i!==void 0)return i;const s=Rh(t,e.masksTree);return e.flatCache.set(t,s),s}function PT(t,e,i,s,o){t||="/",s||="/";const l=e?`case\0${t}`:t;let c=o.singleCache.get(l);return c||(c=Cr(),Wa(e,{from:t},1,c),o.singleCache.set(l,c)),Rh(s,c,i)}function BT(t,e,i=!1){const s=i?t:`nofuzz\0${t}`,o=e.matchCache.get(s);if(o!==void 0)return o;t||="/";let l;try{l=Rh(t,e.segmentTree,i)}catch(c){if(c instanceof URIError)l=null;else throw c}return l&&(l.branch=T_(l.route)),e.matchCache.set(s,l),l}function $T(t,e=!1){const i=Cr(),s=[],o={},l={};let c=0;function d(h,m,g,v){if(h.init(c),h.id in o&&Xa(),o[h.id]=h,c!==0&&h.path){const E=Dn(h.fullPath);(!l[E]||h.fullPath.endsWith("/"))&&(l[E]=h)}c++;const[_,b,S]=Wa(e,h,m,g,s,v);if(h._interpolation=S,h.children)for(const E of h.children)d(E,b,_,S)}d(t,1,i);for(const h of s)h.sort(S_);return{processedTree:{segmentTree:i,singleCache:gu(1e3),matchCache:gu(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:l}}function Rh(t,e,i=!1){const s=t.split("/"),o=HT(t,s,e,i);if(!o)return null;const[l]=E_(t,s,o);return{route:o.node.route,rawParams:l}}function E_(t,e,i){const s=qT(i.node),o=i.node.data&&MT(i.node.data),l=Object.create(null);let c=i.extract?.part??0,d=i.extract?.node??0,h=i.extract?.path??0,m=i.extract?.param??0;for(;d<s.length;c++,d++,h++){const g=s[d];if(g.kind===Ki)break;if(g.kind===w_){c--,h--;continue}const v=e[c],_=h;if(v&&(h+=v.length),g.kind===1||g.kind===3){const b=o[m++];if(g.kind===3&&i.skipped&1<<d){c--,h=_-1;continue}const S=g.suffix||g.prefix?v.substring(g.prefix.length,v.length-g.suffix.length):v;(S||g.kind===1)&&(l[b]=decodeURIComponent(S))}else if(g.kind===2){const b=g,S=t.substring(_+b.prefix.length,t.length-b.suffix.length),E=decodeURIComponent(S);l["*"]=E,l._splat=E;break}}return i.rawParams&&Object.assign(l,i.rawParams),[l,{part:c,node:d,path:h,param:m}]}function T_(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function qT(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function HT(t,e,i,s){if(t==="/"&&i.index)return{node:i.index,skipped:0};const o=!Wi(e),l=o&&t!=="/",c=e.length-(o?1:0),d=[{node:i,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let h=null,m=null;for(;d.length;){const g=d.pop(),{node:v,index:_,skipped:b,statics:S,dynamics:E,optionals:T}=g;let{extract:R,rawParams:k}=g;if(v.kind===2&&v.route&&!Fl(m,g))continue;if(v.parse){if(!gy(t,e,g))continue;k=g.rawParams,R=g.extract}s&&v.route&&v.kind!==Ki&&Fl(h,g)&&(h=g);const C=_===c;if(C&&(v.route&&(!l||v.kind===Ki||v.kind===2)&&Fl(m,g)&&(m=g),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const B=C?void 0:e[_];let J;
10if(C&&v.index){const P={node:v.index,index:_,skipped:b,statics:S,dynamics:E,optionals:T,extract:R,rawParams:k};let N=!0;if(v.index.parse&&(gy(t,e,P)||(N=!1)),N){if(!E&&!T&&!b&&VT(S,c))return P;Fl(m,P)&&(m=P)}}if(v.wildcard)for(let P=v.wildcard.length-1;P>=0;P--){const N=v.wildcard[P],{prefix:K,suffix:te}=N;if(!(K&&(C||!(N.caseSensitive?B:J??=B.toLowerCase()).startsWith(K)))){if(te){if(C)continue;const le=e.slice(_).join("/"),F=le.slice(-te.length);if((N.caseSensitive?F:F.toLowerCase())!==te||le.length-te.length<K.length)continue}d.push({node:N,index:c,skipped:b,statics:S,dynamics:E,optionals:T,extract:R,rawParams:k})}}if(v.optional){const P=b|1<<v.depth+1;for(let N=v.optional.length-1;N>=0;N--){const K=v.optional[N];d.push({node:K,index:_,skipped:P,statics:S,dynamics:E,optionals:T,extract:R,rawParams:k})}if(!C)for(let N=v.optional.length-1;N>=0;N--){const K=v.optional[N],{prefix:te,suffix:le}=K;if(te||le){const F=K.caseSensitive?B:J??=B.toLowerCase();if(te&&!F.startsWith(te)||le&&F.indexOf(le,F.length-le.length)<te.length)continue}d.push({node:K,index:_+1,skipped:b,statics:S,dynamics:E,optionals:T+Vl(c,_),extract:R,rawParams:k})}}if(!C&&v.dynamic&&B)for(let P=v.dynamic.length-1;P>=0;P--){const N=v.dynamic[P],{prefix:K,suffix:te}=N;if(K||te){const le=N.caseSensitive?B:J??=B.toLowerCase();if(K&&!le.startsWith(K)||te&&le.indexOf(te,le.length-te.length)<K.length)continue}d.push({node:N,index:_+1,skipped:b,statics:S,dynamics:E+Vl(c,_),optionals:T,extract:R,rawParams:k})}if(!C&&v.staticInsensitive){const P=v.staticInsensitive.get(J??=B.toLowerCase());P&&d.push({node:P,index:_+1,skipped:b,statics:S+Vl(c,_),dynamics:E,optionals:T,extract:R,rawParams:k})}if(!C&&v.static){const P=v.static.get(B);P&&d.push({node:P,index:_+1,skipped:b,statics:S+Vl(c,_),dynamics:E,optionals:T,extract:R,rawParams:k})}if(v.pathless)for(let P=v.pathless.length-1;P>=0;P--){const N=v.pathless[P];d.push({node:N,index:_,skipped:b,statics:S,dynamics:E,optionals:T,extract:R,rawParams:k})}}if(m)return m;if(s&&h){let g=h.index;for(let _=0;_<h.index;_++)g+=e[_].length;const v=g===t.length?"/":t.slice(g);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(v),h}return null}function Vl(t,e){return 2**(t-e-1)}function VT(t,e){return t===2**(e-1)-1}function gy(t,e,i){let s,o;try{[s,o]=E_(t,e,i)}catch{return null}if(i.rawParams=s,i.extract=o,!i.node.parse)return!0;try{if(i.node.parse(s)===!1)return null}catch{}return!0}function Fl(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===Ki)>(t.node.kind===Ki)||e.node.kind===Ki==(t.node.kind===Ki)&&e.node.depth>t.node.depth))):!0}function FT(){try{return sessionStorage}catch{return}}const GT="tsr-scroll-restoration-v1_3",R_=FT();function KT(){try{return JSON.parse(R_?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const Es=KT(),vy="data-scroll-restoration-id",YT=t=>t.state.__TSR_key||t.href;function ZT(t){const e=t.getAttribute(vy);if(e)return`[${vy}="${e}"]`;let i="",s=t,o;for(;o=s.parentNode;){let l=1,c=s;for(;c=c.previousElementSibling;)l++;const d=`${s.localName}:nth-child(${l})`;i=i?`${d} > ${i}`:d,s=o}return i}let Gl=!1;const lu="window";function Bf(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function yy(t){const e=new Set;for(const i of t){if(i===lu)continue;const s=Bf(i);s&&e.add(s)}return e}function QT(t,e){const i=t.options.scrollRestoration,s=t._scroll;i&&(s.e=!0);const o=t.options.getScrollRestorationKey||YT,l=new Set,c=d=>{const h=Es[d]||={};for(const m of l)m===document?h[lu]={scrollX,scrollY}:m.isConnected&&(h[ZT(m)]={scrollX:m.scrollLeft,scrollY:m.scrollTop})};i&&!s.s&&(s.s=!0,Gl=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{Gl||l.add(d.target)},!0),t.subscribe("onBeforeLoad",d=>{d.fromLocation&&c(o(d.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",c(o(t.stores.resolvedLocation.get()??t.stores.location.get()));try{R_?.setItem(GT,JSON.stringify(Es))}catch{}}),addEventListener("pageshow",d=>{d.persisted&&(history.scrollRestoration="manual")})),!s.r&&(s.r=!0,t.subscribe("onRendered",d=>{const h=t.options.scrollRestorationBehavior,m=t.options.scrollToTopSelectors,g=s.n,v=s.h;let _;if(l.clear(),s.n=!0,s.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const b=o(d.toLocation),S=d.fromLocation&&o(d.fromLocation);if(s.e&&S&&S!==b){const E=Es[S];if(E){let T=Es[b];for(const R in E){if(R===lu){if(g)continue}
10else{const k=Bf(R);if(!k||g&&m&&(_??=yy(m),_.has(k)))continue}T||(T=Es[b]={}),T[R]??=E[R]}}}Gl=!0;try{const E=d.toLocation.hash,T=d.toLocation.state.__hashScrollIntoViewOptions??!0;let R=!1;if(g){!E&&m&&(_??=yy(m));const k=E&&T&&v,C=s.e?Es[b]:void 0;if(C)for(const B in C){const{scrollX:J,scrollY:P}=C[B];if(B===lu){if(k)continue;scrollTo({top:P,left:J,behavior:h}),R=!0}else{const N=Bf(B);N&&(N.scrollLeft=J,N.scrollTop=P,_?.delete(N))}}if(!E){const B={top:0,left:0,behavior:h};if(R||scrollTo(B),_)for(const J of _)J.scrollTo(B)}}!R&&E&&T&&document.getElementById(E)?.scrollIntoView(T)}finally{Gl=!1}}))}function A_(t,e=String){let i;for(const s in t){const o=t[s];o!==void 0&&(i||=new URLSearchParams).set(s,e(o))}return i?i.toString():""}function yf(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function JT(t){const e=new URLSearchParams(t),i=Object.create(null);for(const[s,o]of e.entries()){const l=i[s];l==null?i[s]=yf(o):Array.isArray(l)?l.push(yf(o)):i[s]=[l,yf(o)]}return i}const O_=/^(?:\s|["[{\d-]|fa|nu|tr)/,XT=eR(JSON.parse),WT=tR(JSON.stringify,JSON.parse);function eR(t){const e=t===JSON.parse;return i=>{i[0]==="?"&&(i=i.substring(1));const s=JT(i);for(const o in s){const l=s[o];if(typeof l=="string"){if(e&&!O_.test(l))continue;try{s[o]=t(l)}catch{}}}return s}}function tR(t,e){const i=e===JSON.parse;function s(o){if(o&&typeof o=="object")try{return t(o)}catch{}else if(e&&typeof o=="string"){if(i&&!O_.test(o))return o;try{return e(o),t(o)}catch{}}return o}return o=>{const l=A_(o,s);return l?`?${l}`:""}}const Us="__root__";function nR(t,e,i){const s=b_(t),o=`/${s}`,l=e?o:o.toLowerCase(),c=`${l}/`,d={input:({url:h})=>{const m=e?h.pathname:h.pathname.toLowerCase();return m===l?h.pathname="/":m.startsWith(c)&&(h.pathname=h.pathname.slice(o.length)),h},output:({url:h})=>(h.pathname=Ms(`/${s}${h.pathname}`),h)};return i?{input:({url:h})=>$f(i,d.input({url:h})),output:({url:h})=>d.output({url:x_(i,h)})}:d}function $f(t,e){const i=t?.input?.({url:e});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return e}function x_(t,e){const i=t?.output?.({url:e});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return e}function iR(t,e){const{createMutableStore:i,createReadonlyStore:s,batch:o}=e,l=new Map,c=i("idle"),d=i(t),h=i(void 0),m=i([]),g=s(()=>m.get().map(E=>l.get(E).get())),v=s(()=>({status:c.get(),isLoading:c.get()==="pending",matches:g.get(),location:d.get(),resolvedLocation:h.get()}));function _(E){let T=l.get(E);return T||(T=i(void 0),l.set(E,T)),T}const b={status:c,location:d,resolvedLocation:h,ids:m,matches:g,byRoute:l,__store:v,getMatchStore:_,setMatches:S};function S(E){const T=m.get(),R=E.map(k=>k.routeId);o(()=>{jT(T,R)||m.set(R);for(const k of T)R.includes(k)||l.get(k).set(()=>{});for(const k of E){const C=_(k.routeId);C.get()!==k&&C.set(k)}})}return b}var Qi="__TSR_index",_y="popstate",by="beforeunload",rR=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function uu(t){const e=rR.exec(t);return e?"/"+t.slice(e[0].length):t}function C_(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>`	
11\r`.includes(e)?"":encodeURIComponent(e))),uu(t)}function sR(t){let e=t.getLocation();const i=new Set,s=c=>{e=t.getLocation(),i.forEach(d=>d({location:e,action:c}))},o=c=>{t.notifyOnIndexChange??!0?s(c):e=t.getLocation()},l=async({task:c,navigateOpts:d,...h})=>{if(d?.ignoreBlocker??!1){c();return}const m=t.getBlockers?.()??[],g=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&m.length&&g)for(const v of m){const _=vu(h.path,h.state);if(await v.blockerFn({currentLocation:e,nextLocation:_,action:h.type})){t.onBlocked?.();return}}c()};return{get location(){return e},get length(){return t.getLength()},subscribers:i,subscribe:c=>(i.add(c),()=>{i.delete(c)}),push:(c,d,h)=>{const m=e.state[Qi];d=wy(m+1,d),l({task:()=>{t.pushState(c,d),s({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:c,state:d})},replace:(c,d,h)=>{const m=e.state[Qi];d=wy(m,d),l({task:()=>{t.replaceState(c,d),s({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:c,state:d})},go:(c,d)=>
11{l({task:()=>{t.go(c,d?.ignoreBlocker??!1),o({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:c=>{l({task:()=>{t.back(c?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{l({task:()=>{t.forward(c?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>e.state[Qi]!==0,createHref:c=>t.createHref(c),block:c=>{if(!t.setBlockers)return()=>{};const d=t.getBlockers?.()??[];return t.setBlockers([...d,c]),()=>{const h=t.getBlockers?.()??[];t.setBlockers?.(h.filter(m=>m!==c))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:s,_getBlockers:()=>t.getBlockers?.()??[]}}function wy(t,e){const i=Ah();return{...e,key:i,__TSR_key:i,[Qi]:t}}function aR(t){const e=typeof document<"u"?window:void 0,i=e.history.pushState,s=e.history.replaceState;let o=[];const l=()=>o,c=N=>o=N,d=N=>C_(N),h=(()=>vu(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const N=Ah();e.history.replaceState({[Qi]:0,key:N,__TSR_key:N},"")}let m=h(),g,v=!1,_=!1,b=!1,S=!1;const E=()=>m;let T;const R=()=>{T&&(P._ignoreSubscribers=!0,(T[2]?e.history.pushState:e.history.replaceState)(T[1],"",T[0]),P._ignoreSubscribers=!1,T=void 0,g=void 0)},k=(N,K,te)=>{const le=!!T;le||(g=m),m=vu(K,te),T=[m.href,te,T?.[2]||N],le||queueMicrotask(()=>R())},C=N=>{m=h(),P.notify({type:N})},B=async()=>{if(S=!1,_){_=!1;return}const N=h(),K=N.state[Qi]-m.state[Qi],te=K===1,le=K===-1,F=!te&&!le||v;v=!1;const G=F?"GO":le?"BACK":"FORWARD",ee=F?{type:"GO",index:K}:{type:le?"BACK":"FORWARD"};if(b)b=!1;else{const ye=l();if(typeof document<"u"&&ye.length){for(const ce of ye)if(await ce.blockerFn({currentLocation:m,nextLocation:N,action:G})){_=!0,e.history.go(-K),P.notify(ee);return}}}m=h(),P.notify(ee)},J=N=>{if(S){S=!1;return}let K=!1;const te=l();if(typeof document<"u"&&te.length)for(const le of te){const F=le.enableBeforeUnload??!0;if(F===!0){K=!0;break}if(typeof F=="function"&&F()===!0){K=!0;break}}if(K)return N.preventDefault(),N.returnValue=""},P=sR({getLocation:E,getLength:()=>e.history.length,pushState:(N,K)=>k(!0,N,K),replaceState:(N,K)=>k(!1,N,K),back:N=>(N&&(b=!0,S=!0),e.history.back()),forward:N=>{N&&(b=!0,S=!0),e.history.forward()},go:(N,K)=>{v=!0,K&&(b=!0,S=!0),e.history.go(N)},createHref:N=>d(N),flush:R,destroy:()=>{e.history.pushState=i,e.history.replaceState=s,e.removeEventListener(by,J,{capture:!0}),e.removeEventListener(_y,B)},onBlocked:()=>{g&&m!==g&&(m=g)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return P._ignoreNextBeforeUnload=N=>{S=!1;try{N=new URL(N,e.document.baseURI).href,S=/^https?:/.test(N)&&(!N.includes("#")||N.split("#")[0]!==e.location.href.split("#")[0])}catch{}},e.addEventListener(by,J,{capture:!0}),e.addEventListener(_y,B),e.history.pushState=function(...N){const K=i.apply(e.history,N);return P._ignoreSubscribers||C("PUSH"),K},e.history.replaceState=function(...N){const K=s.apply(e.history,N);return P._ignoreSubscribers||C("REPLACE"),K},P}function vu(t,e){const i=C_(t),s=i.indexOf("#"),o=i.indexOf("?");if(!e){const l=Ah();e={[Qi]:0,key:l,__TSR_key:l}}return{href:i,pathname:i.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:i.length),hash:s>-1?i.substring(s):"",search:o>-1?i.slice(o,s===-1?void 0:s):"",state:e}}function Ah(){return(Math.random()+1).toString(36).substring(7)}function _f(t,e){return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==e||!!t.username||!!t.password}function bf(t){return t.pathname+t.search+t.hash}function Sy(t){return t.options.loader||t.options.beforeLoad||t.lazyFn||t.options.component?.preload||t.options.pendingComponent?.preload}function oR(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function Iu(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}function Ey({key:t,__TSR_key:e,__TSR_index:i,__hashScrollIntoViewOptions:s,...o}){return o}function k_(t){return t.findIndex(e=>e.status==="error"||e.status==="notFound"||e._notFound)+1}function lR(t,e,i,s,o,l){s&&(e=e.slice(0,s)),o&&(i=i.slice(0,o));for(const c of e){if(l&&t._tx!==l)return;i.some(d=>d.routeId===c.routeId)||t.routesById[c.routeId].options.onLeave?.(c)}for(const c of i){if(l&&t._tx!==l)return;t.routesById[c.routeId].options[e.some(d=>d.routeId===c.routeId)?"onStay":"onEnter"]?.(c)}}var uR=class{constructor(t,e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async i=>(i(),!1),this.update=i=>{const s=this.options;this.options={...s,...i},this.isServer=this.options.isServer??dy??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=aR()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const o=this.options.basepath??"/",l=this.options.rewrite,c=this.basepath!==o||s?.rewrite!==l||s?.caseSensitive!==this.options.caseSensitive;if(c&&(this.basepath=o,this.rewrite=o!=="/"&&b_(o)?nR(o,this.options.caseSensitive,l):l),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||dy){this.routeTree=this.options.routeTree;let d;d=this.buildRouteTree(),this.setRoutes(d)}if(this.stores)c&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=iR(this.latestLocation,d),QT(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=$T(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&zT(this.options.routeMasks,i.processedTree),{...i,resolvePathCache:gu(1e3)}},this.subscribe=(i,s)=>{const o={eventType:i,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{for(const s of this.subscribers)if(s.eventType===i.type)try{s.fn(i)}catch(o){console.error(o)}},this.parseLocation=(i,s)=>{const o=({pathname:h,search:m,hash:g,href:v},_)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const T=this.options.parseSearch(m),R=this.options.stringifySearch(T);return{href:h+R+g,publicHref:h+R+g,pathname:Pa(h),external:!1,searchStr:R,search:Ss(s?.search,T),hash:Pa(g.slice(1)),state:Zi(s?.state,_)}}const b=$f(this.rewrite,new URL(v,this.origin)),S=this.options.parseSearch(b.search),E=this.options.stringifySearch(S);return b.search=E,{href:b.href.replace(b.origin,""),publicHref:v,pathname:Pa(uu(b.pathname)),external:!!this.rewrite&&_f(b,this.origin),searchStr:E,search:Ss(s?.search,S),hash:Pa(b.hash.slice(1)),state:Zi(s?.state,_)}},l=o(i,i.state),{__tempLocation:c,__tempKey:d}=l.state;if(c&&(!d||d===this.tempLocationKey)){const h=o(c,{...c.state,__tempLocation:void 0,key:l.state.key,__TSR_key:l.state.__TSR_key});return h.maskedLocation=l,h}return l},this.matchRoutes=(i,s,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:s},o):this.matchRoutesInternal(i,s),this.getMatchedRoutes=i=>{const s=Object.create(null),o=BT(Dn(i),this.processedTree,!0);return o&&Object.assign(s,o.rawParams),[o?.branch||[this.routesById.__root__],s,o?.route]},this.buildLocation=i=>{{const c=this.staticLocations.get(i);if(c)return c}let s=!1;const o=(c={})=>
11{if(c.href){const ye=vu(c.href,{});c={...c,to:$f(this.rewrite,new URL(ye.pathname,this.origin)).pathname,search:this.options.parseSearch(ye.search),hash:ye.hash.slice(1)}}const d=c._fromLocation||this._pendingLocation||this.latestLocation;let h;const m=()=>(s=!0,d),g=()=>(s=!0,h??=this.matchRoutesLightweight(d)),v=c.to?`${c.to}`:".",_=py(v[0]==="/"?"":c.unsafeRelative==="path"?m().pathname:c.from??g()[1],v,this.options.trailingSlash,this.resolvePathCache),b=this.routesByPath[Dn(_)],S=_.includes("$");let E;if(b)E=b._branch??=T_(b);else if(S)E=[];else{const[ye,ce,z]=this.getMatchedRoutes(_);E=ye,this.options.notFoundRoute&&(!z||z.path!=="/"&&ce["**"])&&(E=[...E,this.options.notFoundRoute])}const T=S?b?._interpolation??Wa(!1,{fullPath:_},0):void 0;let R;for(const ye of E){const ce=ye.options.params?.stringify??ye.options.stringifyParams;if(ce){const z=g()[3];if(R??=wf(c.params,z),!g_(R))break;R===z&&(R=Object.assign(ou(),R));try{Object.assign(R,ce(R))}catch{}}}R??=wf(c.params,dR(c.params,T)?g()[3]:Sf);const k=i.leaveParams?_:uu(Pa(T?my(_,T,R,this.pathParamsDecoder):_)),C=fR(E,i._includeValidateSearch),B=()=>{let ye=g()[2];if(i._includeValidateSearch&&this.options.search?.strict){const ce={};E.forEach(z=>{if(z.options.validateSearch)try{Object.assign(ce,cu(z.options.validateSearch,{...ce,...ye}))}catch{}}),ye=ce}return ye},J=C.length?hR(C,B(),c):c.search===!0?B():typeof c.search=="function"?c.search(B()):c.search||Sf,P=this.options.stringifySearch(J),N=c.hash===!0?m().hash:typeof c.hash=="function"?c.hash(m().hash):c.hash||void 0,K=N?`#${N}`:"",te=c.state?c.state===!0?m().state:typeof c.state=="function"?c.state(m().state):c.state:Sf,le=`${k}${P}${K}`;let F,G,ee=!1;if(this.rewrite){const ye=new URL(le,this.origin),ce=ye.origin,z=x_(this.rewrite,ye);F=bf(ye),_f(z,ce)?(G=z.href,ee=!0):G=uu(bf(z))}else F=kT(le),G=F;return{publicHref:G,href:F,pathname:k,search:J,searchStr:P,state:te,hash:N??"",external:ee,unmaskOnReload:c.unmaskOnReload}},l=o(i);if(i.mask)l.maskedLocation=o({from:i.from,...i.mask});else if(this.options.routeMasks){const c=IT(l.pathname,this.processedTree);if(c){const d=Object.assign(ou(),c.rawParams),{from:h,params:m,...g}=c.route,v=wf(m,d);l.maskedLocation=o({from:i.from,...g,params:v})}}return!s&&i._fromLocation&&!l.maskedLocation&&this.staticLocations.set(i,l),l},this.commitLocation=async({viewTransition:i,ignoreBlocker:s,...o})=>{const l=o.maskedLocation??o;if(l.external)return Ty(this,l.publicHref,{replace:o.replace,ignoreBlocker:s});let c;const d=Dn(this.latestLocation.href)===Dn(o.href)&&En(Ey(o.state),Ey(this.latestLocation.state)),h=this._commitPromise;let m;const g=new Promise(v=>{m=v});if(g.resolve=()=>{m(),h?.resolve()},this._commitPromise=g,d)this.load();else{let{maskedLocation:v,hashScrollIntoView:_,...b}=o;v&&(b={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state={...b.state,__hashScrollIntoViewOptions:_??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=i,c=o.replace?"REPLACE":"PUSH",this.history[c==="REPLACE"?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:s}),this.history.subscribers.size||this.load({action:{type:c}})}return this._scroll.n=o.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:i,resetScroll:s,hashScrollIntoView:o,viewTransition:l,ignoreBlocker:c,...d}={})=>{const h=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=h;const m=this.commitLocation({...h,viewTransition:l,replace:i,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:c});return queueMicrotask(()=>{this._pendingLocation===h&&(this._pendingLocation=void 0)}),m},this.navigate=async({to:i,reloadDocument:s,href:o,publicHref:l,...c})=>{const d=o?Ja(o):void 0;if(d||s){if(i!==void 0||!o){const m=this.buildLocation({to:i,...c}),g=m.maskedLocation??m;o??=g.publicHref,l??=g.publicHref}return Ty(this,!d&&l?l:o,c)}return this.buildAndCommitLocation({...c,href:o,to:i,_isNavigate:!0})},this.load=async i=>{this.updateLatestLocation(),i?.action&&(this._scroll.h=i.action.type==="PUSH"||i.action.type==="REPLACE"),await wR(this,i)},this.startViewTransition=i=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,c=this.stores.resolvedLocation.get(),d=typeof s.types=="function"?s.types(Iu(l,c)):s.types;if(d===!1)return i();o={update:i,types:d}}else o=i;return document.startViewTransition(o).updateCallbackDone}return i()},this.invalidate=i=>{const s=this._committed,o=i?.filter,l=this._preloads,c=new Set,d=g=>{(!o||o(g))&&c.add(g.id)};
11s.forEach(d),this._cache.forEach(d),l?.forEach(g=>g.forEach(d)),this._tx?.[3].forEach(d);const h=[];for(const[g,v]of l??[])v.some(_=>c.has(_.id))&&(l.delete(g),h.push(g));const m=g=>{if(c.has(g.id)){const v=this.routesById[g.routeId],_={...g,invalid:!0,...(i?.forcePending||g.status==="error"||g.status==="notFound")&&Sy(v)?{status:"pending",error:void 0}:void 0};return g._flight=void 0,_}return g};this._committed=s.map(m);for(const[g,v]of this._cache)c.has(g)&&(v.invalid=!0,i?.forcePending&&(v.status="pending"));for(const g of c){const v=this._flights?.get(g);this._flights?.delete(g),v&&!v[2]&&h.push(v[1])}for(const g of h)g.abort();return this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.resolveRedirect=i=>{const s=i.options;let o=i.headers.get("Location")||s.href;if(!o){const c=this.buildLocation(s);o=(c.maskedLocation??c).publicHref||"/"}let l;if(v_.test(o)||(l=Ja(o))&&!this.protocolAllowlist.has(l))throw new Error("Redirect blocked: unsafe protocol");if(l==="http:"||l==="https:"){const c=new URL(o);c.pathname.startsWith("//")?o=c.href:_f(c,this.origin)||(o=bf(c),l=void 0)}return l&&(s.reloadDocument=!0),s.href=o,i.headers.set("Location",o),i},this.clearCache=i=>{const s=this._cache,o=this._preloads,l=i?.filter,c=[],d=[];for(const[m,g]of s)(!l||l(g))&&(d.push(m),c.push(g));const h=[];for(const[m,g]of o??[])(!l||g.some(l))&&(h.push(m),c.push(...g));for(const m of d)s.delete(m);for(const m of h)o.delete(m);for(const m of c){const g=m._flight;m._flight=void 0,g&&!--g[2]&&(this._flights?.get(m.id)===g&&this._flights.delete(m.id),h.push(g[1]))}for(const m of h)m.abort()},this.loadRouteChunk=ui,this.preloadRoute=i=>SR(this,i),this.matchRoute=(i,s)=>{const o={...i,to:i.to?py(i.from||"",i.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:i.params||{},leaveParams:!0},l=this.buildLocation(o),c=this.stores.status.get()==="pending";if(s?.pending&&!c)return!1;const d=s?.pending??!c?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=PT(l.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,d.pathname,this.processedTree);return!h||i.params&&!En(h.rawParams,i.params,!0)?!1:s?.includeSearch??!0?En(d.search,l.search,!0)?h.rawParams:!1:h.rawParams},this.getStoreConfig=e,t.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=NT(t.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??WT,parseSearch:t.parseSearch??XT,protocolAllowlist:t.protocolAllowlist??AT}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(t){Object.assign(this,t),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const e=this.options.notFoundRoute;e&&(e.init(99999999999),this.routesById[e.id]!==e&&(e._interpolation=Wa(!1,e,0)),this.routesById[e.id]=e)}matchRoutesInternal(t,e){const[i,s,o]=this.getMatchedRoutes(t.pathname);let l=i,c=!1;(o?o.path!=="/"&&s["**"]:Dn(t.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:c=!0);const d=c?pR(this.options.notFoundMode,l):void 0,h=new Array(l.length),m=this._committed,g=(_,b)=>{const S=m[b];return S?.routeId===_.id?S:_===this.options.notFoundRoute?m.find(E=>E.routeId===_.id):void 0};let v;for(let _=0;_<l.length;_++){const b=l[_],S=h[_-1];let E,T,R;{const ee=S?.search??t.search,ye=S?._strictSearch??void 0;try{const ce=cu(b.options.validateSearch,{...ee})??void 0;E={...ee,...ce},T={...ye,...ce}}catch(ce){let z=ce;if(ce instanceof yu||(z=new yu(ce.message,{cause:ce})),e?.throwOnError)throw z;E=ee,T={},R=z}}let k="",C="";try{k=b.options.loaderDeps?.({search:E})??"",C=k&&JSON.stringify(k)||""}catch(ee){if(e?.throwOnError)throw ee;R??=ee}const B=ou(),J=b._interpolation?my(b.fullPath,b._interpolation,s,this.pathParamsDecoder,B):b.fullPath,P=b.id+J+C,N=g(b,_),K=this._cache.get(P)??(N?.id===P?N:void 0);v=K?._strictParams??Object.assign(B,v);let te;if(!K)try{Ry(b,v)}catch(ee){if(Mr(ee)||Eh(ee)?te=ee:te=new cR(ee.message,{cause:ee}),e?.throwOnError)throw te}const le=N?"stay":"enter";let F;if(K)F={...K,cause:le,search:Ss(N?N.search:K.search,E),_strictSearch:T,searchError:R};else{const ee=Sy(b)?"pending":"success";F={id:P,ssr:b.options.ssr,index:_,routeId:b.id,params:N?.params??v,_strictParams:v,pathname:J,updatedAt:Date.now(),search:N?Ss(N.search,E):E,_strictSearch:T,searchError:R,status:ee,isFetching:!1,error:void 0,paramsError:te,context:{},abortController:e?._controller??new AbortController,cause:le,loaderDeps:N?Zi(N.loaderDeps,k):k,invalid:!1,preload:!1,staticData:b.options.staticData||{},fullPath:b.fullPath}}const G=d===b.id;F._notFound&&!G&&(F.error=void 0),F._notFound=G,h[_]=F}for(let _=0;_<h.length;_++){const b=h[_];b.params=b.cause==="stay"?Ss(b.params,v):v,e?._controller&&(b.context={})}return h}matchRoutesLightweight(t){const e=Wi(this.stores.ids.get()),i=e?this.stores.byRoute.get(e).get():void 0,s=i?.id,o=this.lightweightCache.get(t);if(o&&o[0]===s)return o[1];const[l,c]=this.getMatchedRoutes(t.pathname),d=Wi(l),h={...t.search};for(const _ of l)try{Object.assign(h,cu(_.options.validateSearch,h))}catch{}const m=i&&i.routeId===d.id&&i.pathname===t.pathname;let g;if(m)g=i.params;else{const _=c;for(const b of l)try{Ry(b,_)}catch{}g=_}const v=[l,d.fullPath,h,g];return this.lightweightCache.set(t,[s,v]),v}};async function Ty(t,e,{replace:i,ignoreBlocker:s}){if(!y_(e,t.protocolAllowlist)){if(!s){const o=t.history._getBlockers();for(const l of o)if(l?.blockerFn&&await l.blockerFn({currentLocation:t.history.location,nextLocation:t.history.location,action:i?"REPLACE":"PUSH"}))return}t.history._ignoreNextBeforeUnload?.(e),i?window.location.replace(e):window.location.href=e}}
11var yu=class extends Error{},cR=class extends Error{};function cu(t,e){if(t==null)return{};if("~standard"in t){const i=t["~standard"].validate(e);if(i instanceof Promise)throw new yu("Async validation not supported");if(i.issues)throw new yu(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function wf(t,e){if(t===void 0||t===!0)return e;const i=Object.create(null);return t===!1||t===null?i:typeof t=="function"?(Object.assign(i,e),Object.assign(i,t(i))):Object.assign(i,e,t)}function dR(t,e){return typeof t=="function"?!0:!e||t===!1||t===null?!1:t===void 0||t===!0||e.some(i=>typeof i!="string"&&!Th.call(t,i[1]))}const Sf=Object.freeze({});function fR(t,e){const i=[];for(let s=0;s<t.length;s++){const o=t[s].options;if("search"in o)o.search?.middlewares&&i.push(...o.search.middlewares);else if(o.preSearchFilters||o.postSearchFilters){const c=({search:d,next:h})=>{const m=h(o.preSearchFilters?o.preSearchFilters.reduce((g,v)=>v(g),d):d);return o.postSearchFilters?o.postSearchFilters.reduce((g,v)=>v(g),m):m};i.push(c)}const l=o.validateSearch;if(e&&l){const c=({search:d,next:h,meta:m})=>{const g=h(d);try{const v=cu(l,g);if(m&&v)for(const _ in v)_ in g||(m.defaulted||=new Map).set(_,v[_]);return{...g,...v}}catch{}return g};i.push(c)}}return i}function hR(t,e,i){const s=(o,l,c)=>{if(o>=t.length){if(!i.search)return{};if(i.search===!0)return l;const h=m_(i.search,l);return c&&(c.explicit=h),h}const d=(h,m)=>{if(m){const g=c||{};return{search:s(o+1,h,g),meta:g}}return s(o+1,h,c)};return t[o]({search:l,next:d,meta:c})};return s(0,e)}function pR(t,e){if(t!=="root"){let i;for(let s=e.length-1;s>=0;s--){const o=e[s];if(o.options.notFoundComponent)return o.id;i||=o.children&&o.id}if(i)return i}return Us}function Ry(t,e){const i=t.options.params?.parse??t.options.parseParams;i&&Object.assign(e,i(e))}function qf(t,e){return t.options[e]?.preload?.()}function mR(t,e){const i=qf(t,"component");let s=qf(t,"pendingComponent");return e&&(s?s=s.then(e):e()),i&&s?Promise.all([i,s]).then(()=>{}):i??s}function ui(t,e,i){const s=()=>e===!1?void 0:e?qf(t,e):mR(t,i),o=t._lazy;if(o)return o===!0?s():o.then(s);if(!t.lazyFn)return s();const l=t.lazyFn().then(c=>{{const{id:d,...h}=c.options;Object.assign(t.options,h),t._lazy=!0}},c=>{throw t._lazy=void 0,c});return t._lazy=l,l.then(s)}function Oh(t){const e=t.findIndex(i=>i.status!=="success"||i._notFound)+1;return e&&e<t.length?t.slice(0,e):t}function j_(t){let e=t.length;for(let i=0;i<e;i++){const s=t[i];if(s._assetEnd!==void 0){e=Math.min(e,Math.max(i+1,s._assetEnd));continue}if(s.status!=="success"||s._notFound){e=i+1;break}}return e<t.length?t.slice(0,e):t}const Ln=0,ci=1,Pu=2,jt=3,er=[4];function eo(t){return typeof t[0]=="number"}function di(t,e){return e.aborted?Promise.race([Promise.reject(e),t]):new Promise((i,s)=>{const o=()=>s(e);e.addEventListener("abort",o,{once:!0}),Promise.resolve(t).then(i,s).then(()=>e.removeEventListener("abort",o))})}function Sn(t,e){return t.routesById[e.routeId]}function to(t,e,i){return Eh(t)?[jt,t]:Mr(t)?(t.routeId||=i,[Pu,t]):e?(typeof t?.then=="function"&&(t=new Error("A Promise was thrown",{cause:t})),[ci,t]):[Ln,t]}function xh(t,e){let i=to(e,!0,t.id);if(i[0]!==ci)return i;try{t.options.onError?.(i[1])}catch(s){i=to(s,!0,t.id)}return i}function Ga(t,e,i,s,o){return o[0].signal.aborted?er:jh(t,e,i,xh(i,s),o)}async function gR(t,e,i,s,o,l){const[c,d]=e,h=i[0].signal,m=!!i[3];for(let g=i[6]??0;g<s;g++){const v=d[g],_=Sn(t,v);v.abortController=i[0];const b=d[g-1]?.context??t.options.context??{},S={params:v.params,location:c,navigate:k=>t.navigate({...k,_fromLocation:c}),buildLocation:t.buildLocation,cause:m?"preload":v.cause,abortController:i[0],preload:m,matches:d,routeId:_.id};try{const k=v._ctx||=_.options.context?_.options.context({...S,deps:v.loaderDeps,context:b})||{}:void 0;v.context={...b,...k}}catch(k){return li(t,v),[g,Ga(t,e,_,k,i)]}if(h.aborted)return[g,er];const E=v.paramsError??v.searchError;if(E!==void 0)return li(t,v),[g,Ga(t,e,_,E,i)];const T=_.options.beforeLoad;if(!T)continue;const R=v.status;g>=l&&(v.status="pending",i[7]?.());try{no(t,v,"beforeLoad",i[0]);const k=T({...S,search:v.search,context:v.context,...t.options.additionalContext}),C=await(typeof k?.then=="function"?di(k,h):k);if(h.aborted)return[g,er];const B=jh(t,e,_,to(C,!1,_.id),i);if(B[0]!==Ln)return li(t,v),[g,B];v.context={...v.context,...C}}catch(k){return li(t,v),[g,Ga(t,e,_,k,i)]}finally{v.status=R,no(t,v,!1,i[0])}}o()}function Ch(t,e,i){if(!(!i||--i[2])){if(t._flights?.get(e.id)===i){const s=t._tx;if(s&&!s[0].signal.aborted&&!s[3].includes(e)&&s[3].some(o=>o.id===e.id)&&s[3].some(o=>o.isFetching==="beforeLoad"))return;t._flights.delete(e.id)}return i[1]}}function li(t,e){const i=e._flight;e._flight=void 0,Ch(t,e,i)?.abort()}function Ct(t,e,i,s){const o=[];for(const l of e)if(!i?.includes(l)){const c=l._flight;if(l._flight=void 0,s&&c?.[2]===1&&t._flights?.get(l.id)===c&&i?.some(d=>d.id===l.id))c[2]=0;else{const d=Ch(t,l,c);d&&o.push(d)}}for(const l of o)l.abort()}function kh(t){for(const e of t){const i=e._flight;i&&i[2]++}}function no(t,e,i,s){if(e.isFetching=i,s&&t._tx?.[0]!==s)return;const o=t.stores.byRoute.get(e.routeId),l=o?.get();l?.id===e.id&&o.set({...l,isFetching:i})}function N_(t,e,i,s,o,l,c){const d=e[0];return{params:i.params,location:d,navigate:h=>t.navigate({...h,_fromLocation:d}),cause:c?"preload":i.cause,abortController:o,preload:c,deps:i.loaderDeps,parentMatchPromise:l,context:i.context,route:s,...t.options.additionalContext}}async function Ay(t,e,i,s,o,l,c){const d=c[0],h=d.signal;if(h.aborted)return er;if(!o)return[Ln,void 0];let m=i._flight;no(t,i,"loader",d);try{if(!m){const g=new AbortController;m=[Promise.resolve().then(()=>o(N_(t,e,i,s,g,l,!!c[3]))).then(v=>to(v,!1,s.id),v=>to(v,!0,s.id)).then(v=>(v[0]!==Ln&&t._flights?.get(i.id)===m&&(t._flights.delete(i.id),m[2]||g.abort()),v[0]===ci&&m[2]?xh(s,v[1]):v)),g,1],(t._flights??=new Map).set(i.id,m)}return i._flight=m,i.abortController=m[1],jh(t,e,s,await di(m[0],h),c)}catch(g){if(g!==h||!h.aborted)throw g;return li(t,i),er}finally{no(t,i,!1,d)}}function Oy(t,e,i){e[0]!==jt&&(t.status="success",t.error=void 0,e[0]===Ln?(t.loaderData=e[1],t.invalid=!1,t.updatedAt=Date.now(),t.preload=i):t.invali
11d=!0)}function D_(t,e,i){const s=t._cache.get(e.id);if(s!==i||t._committed.some(l=>l.id===e.id&&l._flight===e._flight))return;const o={...e,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,t._cache.set(e.id,o),s&&li(t,s)}function xy(t,e){return e[0]===ci||e[0]===Pu?{...t,status:e[0]===ci?"error":"notFound",error:e[1],_flight:void 0}:t}function vR(t,e,i,s,o,l,c){const d=e[1][i],h=Sn(t,d),m=!!l[3],g=t._cache.get(d.id);let v,_=!1,b;try{if(d.status==="success"&&(v=h.options.shouldReload,typeof v=="function"&&(v=v(N_(t,e,d,h,l[0],o,m))),l[0].signal.aborted&&(b=er)),!b)if(d.status!=="success")_=!0;else{const G=m||d.preload?h.options.preloadStaleTime??t.options.defaultPreloadStaleTime??3e4:h.options.staleTime??t.options.defaultStaleTime??0;_=!!(d.invalid||v||v===void 0&&Date.now()-d.updatedAt>=G&&(l[5]||d.cause==="enter"||l[2].some(ee=>ee.routeId===d.routeId&&ee.id!==d.id)))}}catch(G){d.invalid=!0,li(t,d),b=Ga(t,e,h,G,l)}const S=h.options.loader,E=typeof S=="function",T=E?S:S?.handler,R=!m||h.options.preload!==!1;let k=R&&S?t._flights?.get(d.id):void 0;k===d._flight||b?k=void 0:k&&!_&&!m&&v===void 0?_=!0:_||(k=void 0);const C=!!(S&&_&&d.status==="success"&&!m&&!l[4]&&((E?void 0:S.staleReloadMode)??t.options.defaultStaleReloadMode)!=="blocking"),B=_&&R,J=B&&!C&&(d.status!=="success"||!!S),P=i>=c?l[7]:void 0,N=h.lazyFn&&h._lazy!==!0?P:void 0;if(B&&!S&&(d.invalid=!1,d.updatedAt=Date.now()),k&&k[2]++,J){const G=d._flight;d._flight=k,Ch(t,d,G)?.abort(),i>=c&&(d.status="pending"),P?.()}B||(d.isFetching=!1);const K=!b&&J?Ay(t,e,d,h,T,o,l).then(G=>(Oy(d,G,m),G[0]===Ln&&(S&&!l[0].signal.aborted&&D_(t,d,g),i>=c&&(d.status="pending")),G)):Promise.resolve(b??[Ln,d.loaderData]),te=(async()=>{try{const ee=ui(h,void 0,N);ee&&await di(ee,l[0].signal)}catch(ee){if(!e[1].some((ye,ce)=>ce<=i&&(ye.status==="error"||ye.status==="notFound"||ye._notFound)))return[i,Ga(t,e,h,ee,l)]}const G=await K;J&&G[0]===Ln&&d.status==="pending"&&!l[0].signal.aborted&&(d.status="success",P?.())})();if(s.push([i,K,te]),!C)return K.then(G=>xy(d,G));const le={...d,status:"pending",preload:!1,_flight:k};d.invalid=!1,d.isFetching="loader";const F=Ay(t,e,le,h,T,o,l).then(G=>(d.isFetching=!1,Oy(le,G,!1),G));return(e[2]??=[]).push([i,F,te,le]),F.then(G=>xy(le,G))}async function Hf(t,e,i,s,o=0){const l=i?.[1][1];let c=l?.routeId?e.findIndex(d=>d.routeId===l.routeId):i?.[0]??e.length-1;c<0&&(c=0);for(let d=c;d>=0;d--){const h=Sn(t,e[d]);try{const m=ui(h,!1);m&&await di(m,s)}catch(m){if(m===s&&s.aborted)throw m}if(h.options.notFoundComponent)return d}return l?.routeId?c:o}function Lr(t,e){e[2]&&(Ct(t,e[2].map(i=>i[3])),e[2]=void 0)}async function Cy(t,e,i,s){let o;try{await Promise.all(t.map(l=>l[1].then(async c=>{const d=l[0];if(!(s&&d>=await s)){if(c[0]>=jt)throw[d,c];!o&&c[0]!==Ln&&(o=[d,c],await Promise.all((i??[]).map(h=>{if(!(h[0]<=d))return h[1].then(m=>{if(m[0]===jt)throw[h[0],m]})})))}})))}catch(l){return l}return e??o}function jh(t,e,i,s,o,l){for(;s[0]===jt;){const c=s[1],d=c.options;try{if((d.href||c.headers.has("Location"))&&(t.resolveRedirect(c),d.reloadDocument)||(d.reloadDocument?o[3]:o[1]>=20))return s;const h=t.buildLocation({...d,_fromLocation:e[0],_includeValidateSearch:!0}),m=h.maskedLocation??h;if(m.external){const g=c.clone();return g.options={...d},g.headers.set("Location",m.publicHref),t.resolveRedirect(g),o[3]?[jt,g]:[jt,g,m]}return[jt,c,h]}catch(h){s=l?[ci,h]:xh(i,h),l=!0}}return s}async function L_(t,e,i,s,o,l){const c=e[1];let d=await o,h=!1;const m=c.findIndex(b=>b._notFound),g=b=>b[1][0]===Pu?Hf(t,c,b,s.signal):b[0];let v=m<0?c.length:m;if((d?.[1][0]??0)>=jt)v=0;else if(d){v=d[2]??=await g(d);for(const b of i){if(b[0]>=v)break;const S=await b[1];if(S[0]!==Ln&&S[0]<jt&&!("loaderData"in c[b[0]])){d=[b[0],S],v=d[2]=await g(d);break}}}for(const b of i){if(b[0]>=v)break;const S=await b[2];if(S){d=S;break}}if((d?.[1][0]??0)>=jt){const b=d[1];if(b[0]!==jt||b[1].options.reloadDocument||b[2])return Lr(t,e),b;h=!0,d=[0,[ci,new Error("Too many redirects")]]}const _=d?d[2]??await g(d):m;if(_>=0){const b=d?.[1],S=b?.[0],E=c[_],T=b?.[1],R=()=>{b&&(E._notFound=void 0,S===ci?E.status="error":(T.routeId=E.routeId,E.routeId===t.routeTree.id?(E.status="success",E._notFound=!0):E.status="notFound"),E.error=T,E.isFetching=!1)};R(),b||l?.();const k=Sn(t,E);try{await di(b?Promise.resolve().then(()=>ui(k,S===ci?"errorComponent":"notFoundComponent")):Promise.all([ui(k),ui(k,"notFoundComponent")]),s.signal)}catch(C){if(C===s.signal&&s.signal.aborted)return Lr(t,e),er}b?h&&(s.abort(),await Promise.all([...i.map(C=>C[1]),...i.map(C=>C[2]),...(e[2]??[]).map(C=>C[1])]),Lr(t,e),Ct(t,c),R()):E.status="success"}return e}async function Nh(t,e,i,s=0,o=e[1].length){const l=e[1];for(let c=s;c<o;c++){const d=l[c],h=Sn(t,d).options;if(h.head||h.scripts)try{const m={ssr:t.options.ssr,matches:l,match:d,params:d.params,loaderData:d.loaderData},[g,v]=await di(Promise.all([h.head?.(m),h.scripts?.(m)]),i);d.meta=g?.meta,d.links=g?.links,d.headScripts=g?.scripts,d.styles=g?.styles,d.scripts=v}catch(m){if(m===i&&i.aborted)break;console.error(m)}if(d.status!=="success"||d._notFound)break}return e}async function M_(t,e,i,s){const o=[e,i],l=s[0].signal;let c;try{const d=t.stores.matches.get();let h=i.findIndex(R=>R._notFound);if(t.options.notFoundMode!=="root"&&h>=0){const R=await Hf(t,i,void 0,l,h);i[h]._notFound=void 0,i[R]._notFound=!0,h=R}let m=h<0?i.length:h+1,g=0;for(;g<m&&g!==h;){const R=i[g],k=s[2][g],C=d[g];if(k?.id!==R.id||k.status!=="success"||R.preload||C?.id!==R.id||C.status!=="success"||(g++,k._notFound||C._notFound))break}
11const v=[],_=s[6]??0;let b=_?Promise.resolve(i[_-1]):void 0;const S=()=>{for(let R=_;R<m&&!l.aborted;R++)b=vR(t,o,R,v,b,s,g)},E=await gR(t,o,s,m,S,g);if(E){if(s[4]=!0,m=E[0],E[1][0]===Pu){const R=await Hf(t,i,E,l);E[2]=R,m=Math.min(m,R+1)}else E[1][0]>=jt&&(m=0);S()}if(!l.aborted&&!s[3]){const R=[];for(const[k,C]of t._flights??[])C[2]||(t._flights.delete(k),R.push(C[1]));for(const k of R)k.abort()}const T=L_(t,o,v,s[0],Cy(v,E,o[2]),s[7]);o[2]?.length&&(o[3]=Cy(o[2],void 0,void 0,T.then(R=>eo(R)?0:Oh(i).length,()=>0))),c=await T}catch(d){if(Lr(t,o),d===l&&l.aborted)return er;throw d}return eo(c)?c:Nh(t,c,l,s[6]===i.length?s[6]:0)}function Vf(t,e){if(t._tx!==e)return;const i=e[3],s=t.stores.matches.get();let o=t._pending;for(let l=0;l<i.length;l++){const c=i[l],d=c.status==="success"&&!c._notFound,h=s[l]?.id===c.id&&s[l]?.status==="pending";if(d&&!h)continue;const m=Sn(t,c),g=d||c.invalid?0:m.options.pendingMs??t.options.defaultPendingMs,v=m.options.pendingComponent??t.options.defaultPendingComponent;if(!v||typeof g!="number"||g===1/0){o&&(o[0]=e,o[2]=0,o[4]=!0);return}const _=m.options.pendingMinMs??t.options.defaultPendingMinMs??0;let b=!1;if(o?.[1]===c.id?(b=o[0]!==e,o[0]=e):(clearTimeout(o?.[3]),t._pending=o=void 0),o||(t._pending=o=[e,c.id,h?Date.now()+_:e[4]+g,void 0,h||void 0,v]),o[4]&&!b&&o[5]===v)return;if(o[5]=v,!o[4]){clearTimeout(o[3]);const T=o[2]-Date.now();if(T>0){o[3]=setTimeout(()=>Vf(t,e),T);return}o[2]=0}const S=i.map(T=>({...T,_flight:void 0}));S[l].status="pending";const E=o[4]=t.startTransition(()=>t.stores.setMatches(S),S).then(T=>(T&&t._pending===o&&o[4]===E&&!o[2]&&(o[2]=Date.now()+_),T));return}}function Ba(t,e){const i=t._pending;(t._tx===e||!t._tx?.[3].some(s=>s.id===i?.[1]))&&(clearTimeout(i?.[3]),t._pending=void 0)}async function ky(t,e){const i=t._pending;if(!i)return;clearTimeout(i[3]);const s=i[2]-Date.now();if(!i[4]||s<=0||!Oh(e[3]).some(l=>l.id===i[1]))return;let o;try{await di(new Promise(l=>{o=setTimeout(l,s)}),e[0].signal)}catch{}clearTimeout(o)}function U_(t,e){t._committed=e,t.stores.setMatches(e)}function yR(t,e,i,s){const o=t._committed,l=t._lifecycleEnd,c=t._cache;for(const g of i)g.preload=!1,s&&(g._assetEnd=void 0);const d=Oh(i).length,h=new Map;{const g=Date.now(),v=new Set;for(let _=0;_<i.length;_++){const b=i[_];(_<d||b.status==="success")&&v.add(b.id)}for(const _ of[...o,...c.values()]){if(_.status!=="success"||v.has(_.id))continue;const b=Sn(t,_);!b.options.loader||g-_.updatedAt>=(_.preload?b.options.preloadGcTime??t.options.defaultPreloadGcTime??3e5:b.options.gcTime??t.options.defaultGcTime??3e5)||h.set(_.id,c.get(_.id)===_?_:{..._,_flight:void 0,isFetching:!1,context:{}})}}e[3]=[],t._cache=h;const m=t._lifecycleEnd=k_(i);U_(t,i),Ct(t,[...c.values(),...o].filter(g=>g._flight&&h.get(g.id)!==g),i),lR(t,o,i,l,m,e)}async function Kl(t,e){let i=t._tx;for(;i&&i!==e;)e=i,await i[5],i=t._tx}function z_(t,e,i){const s=i[1].options,o=i[2];if(!o)return t.navigate({...s,replace:!0,ignoreBlocker:!0});if(s.reloadDocument)return t.navigate({href:(o.maskedLocation??o).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=e[1]+1,t._pendingLocation=o;const l=t.commitLocation({...o,viewTransition:s.viewTransition,replace:!0,resetScroll:s.resetScroll,hashScrollIntoView:s.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{t._pendingLocation===o&&(t._pendingLocation=void 0)}),l}async function _R(t,e,i,s,o){const l=i.map(h=>({...h}));kh(l);for(const h of s)li(t,l[h[0]]),l[h[0]]=h[3];const c=[e[2],l];let d;try{d=await L_(t,c,s,e[0],o)}catch(h){throw Ct(t,l),h}if(eo(d)){Ct(t,l),d[0]===jt&&t._tx===e&&t._committed===i&&await z_(t,e,d);return}if(await Nh(t,d,e[0].signal),t._tx!==e||t._committed!==i){Ct(t,l);return}for(const h of l){const m=t._cache.get(h.id);m?._flight&&m._flight===h._flight&&(t._cache.delete(h.id),li(t,m))}U_(t,l),Ct(t,i,l)}async function bR(t,e,i,s,o,l){const c=await M_(t,e[2],e[3],[e[0],e[1],t._committed,void 0,o,i,l,s]);if(eo(c)){const v=c[0]===jt&&t._tx===e;if((!v||c[1].options.reloadDocument)&&Ba(t,e),Ct(t,e[3]),e[3]=[],!v)return;if(t._tx!==e){Ba(t,e);return}await z_(t,e,c);return}const d=c[1];if(t._tx===e&&await ky(t,e),t._tx!==e){Ba(t,e),Ct(t,d),Lr(t,c);return}const h=e[2],m=Iu(h,t.stores.resolvedLocation.get()),g=c[2];await t.startViewTransition(async()=>
11{if(t._tx===e&&await ky(t,e),t._tx!==e){Ba(t,e),Ct(t,d),Lr(t,c);return}const v=()=>{Ba(t,e),yR(t,e,d,l),t._tx===e&&(t.emit({type:"onLoad",...m}),t._tx===e&&t.emit({type:"onBeforeRouteMount",...m}))},_=await t.startTransition(v,d);if(t._tx!==e){Lr(t,c);return}g?.length&&_R(t,e,d,g,c[3]).catch(console.error),t.batch(()=>{t.stores.resolvedLocation.set(h),t.stores.status.set("idle"),t._tx===e&&t.emit({type:"onResolved",...m}),_&&t._tx===e&&t.emit({type:"onRendered",...m})}),t._tx===e&&(t._commitPromise?.resolve(),t._commitPromise=void 0)})}async function wR(t,e){const i=t._tx,s=t.stores.resolvedLocation.get(),o=s??t.stores.location.get(),l=t.latestLocation,c=t._pendingLocation,d=c?.href===l.href?c._redirects??0:0,h=t._handoff,m=h?.[0](),g=new AbortController,v=t._preflight;if(t._preflight=g,m||h?.[1](),v?.abort(),!g.signal.aborted){const B=Iu(l,s);t.emit({type:"onBeforeNavigate",...B}),g.signal.aborted||t.emit({type:"onBeforeLoad",...B})}if(g.signal.aborted){await Kl(t,i);return}const _=o.href===l.href;let b=g;const S=t.matchRoutes(l,{_controller:g});kh(S);const E=m?h[1](S):void 0;if(E?b=m:m?.abort(),g.signal.aborted){Ct(t,S),await Kl(t,i);return}t._preflight=void 0;let T;const R=()=>bR(t,C,_,()=>Vf(t,C),e?.sync,E),k=e?.sync?new Promise(B=>T=B):Promise.resolve().then(R),C=[b,d,l,S,Date.now(),k.then(()=>Kl(t,C))];if(t._tx=C,i){for(const B of t.stores.matches.get()){if(t._tx!==C)break;B.isFetching&&no(t,B,!1)}i[0].abort(),Ct(t,i[3],C[3],!0)}if(t._tx!==C){Ct(t,C[3]),C[3]=[],T?.(),await Kl(t,C);return}t.batch(()=>{t.stores.status.set("pending"),t.stores.location.set(l)}),(E||!t._committed.length&&S[0]?.status!=="success"&&!S.some(B=>B._notFound))&&Vf(t,C),T?.(R()),await C[5]}async function SR(t,e){let i=t.buildLocation(e);for(let s=0;;s++){const o=t._committed,l=new AbortController;let c,d,h;try{try{c=t.matchRoutes(i,{_controller:l}),kh(c),d=(t._preloads??=new Map).set(l,c),h=await M_(t,i,c,[l,s,o,!0])}finally{d&&(d=d.delete(l),Ct(t,c)),l.abort()}if(!eo(h))return h[1];if(!d||h.length<3)return;i=h[2]}catch(m){Mr(m)||console.error(m);return}}}async function ER(t){const e=window.$_TSR,i=t.options.serializationAdapters;i?.length&&(e.t=new Map(i.map(F=>[F.key,F.fromSerializable])),e.buffer.forEach(F=>F())),e.initialized=!0;const s=e.router;t.ssr={manifest:s.manifest},t.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const o=s.matches,l=new AbortController,c=t._preflight;t._preflight=l,c?.abort();const d=()=>t._preflight===l;let h,m,g,v;try{if(await di(t.options.hydrate?.(s.dehydratedData),l.signal),!d())return;const F=t.history.location;g=F.href,v=F.state,t.updateLatestLocation(),h=t.latestLocation,t.stores.location.set(h),m=t.matchRoutes(h,{_controller:l})}catch(F){if(d()&&(t._preflight=void 0),l.abort(F),F!==l.signal)throw F}if(!d())return;const _=[];let b,S=0;const E=F=>{S=Math.min(S,F+1);const G=_.splice(F);for(const ee of G)Sn(t,ee).options.loader&&(ee.status==="success"||!ee.invalid&&"loaderData"in ee)&&D_(t,{...ee,status:"success",error:void 0,preload:!0},t._cache.get(ee.id));Ct(t,G)},T=o.length>m.length?m.findIndex(F=>F._notFound)+1:o.length;let R=!1;for(let F=0;F<T;F++){const G=m[F],ee=o[F];if(typeof ee.i!="string"||ST(ee.i)!==G.id){b??=F;break}S=F+1;const ye=Sn(t,G);if(("l"in ee||ee.s==="success"&&ee.e===void 0&&ye.options.loader)&&(G.loaderData=ee.l),G.status=ee.s,G.ssr=ee.ssr,ye.options.ssr=G.ssr,G.updatedAt=ee.u,G.error=ee.e,G._notFound||=ee.g,G.status==="error"||G.status==="notFound"||G._notFound){R=!0,_.push(G),(G.ssr===!1||G.ssr==="data-only")&&(b??=F);break}if(G.status==="pending"){b??=F;break}_.push(G),G.ssr==="data-only"&&(b??=F)}!R&&_.length===T&&T<m.length&&(b=T);const k=_.map(async F=>{try{const G=Sn(t,F);return await(F._notFound?Promise.all([ui(G),ui(G,"notFoundComponent")]):ui(G,F.status==="error"?"errorComponent":F.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let C=0;try{for(;C<k.length&&await di(k[C],l.signal);)C++}catch{return}if(!d())return;C<_.length&&E(C);const B=Math.max(b===_.length?_.length+1:_.length,C<k.length?C:S);for(let F=0;F<B;F++){const G=m[F],ee=Sn(t,G),ye=m[F-1]?.context??t.options.context??{};let ce;if(ee.options.context){try{ce=G._ctx=ee.options.context({deps:G.loaderDeps,params:G.params,context:ye,location:h,navigate:z=>t.navigate({...z,_fromLocation:h}),buildLocation:t.buildLocation,cause:G.cause,abortController:l,preload:!1,matches:m,routeId:ee.id})||{}}catch{if(!d())return;if(G.status!=="error"&&G.status!=="notFound"&&!G._notFound){b=Math.min(b??F,F),E(F
11);break}}if(!d())return}G.context={...ye,...ce,..._[F]&&o[F].b}}if(await Nh(t,[h,m],l.signal,0,S),!d())return;const J=b!==void 0||_.length<T,P=R&&_.length===T?m:_;let N=J?m:P,K;if(J&&b!==void 0){const F=N[b];K=F.ssr==="data-only"&&S>b+1?S:void 0,N=N.slice(),N[b]={...F,status:"pending",ssr:F.ssr==="data-only"?"data-only":!1,_assetEnd:K}}const te=()=>{const F=t.history.location;return J&&!t._tx&&F.href===g&&F.state===v&&t._committed===P&&P.length&&!l.signal.aborted?l:void 0},le=[te,F=>{if(t._handoff!==le)return;t._handoff=void 0;const G=P.length;if(!F||!te()||P.some((ce,z)=>ce.id!==F[z]?.id)){l.abort();return}let ee=K;if(ee!==void 0){for(let ce=G;ce<ee;ce++)if(m[ce]?.id!==F[ce]?.id){ee=ce>b+1?ce:void 0;break}}const ye=P.map(ce=>({...ce}));ee!==void 0&&(ye[b]._assetEnd=ee),Ct(t,F.splice(0,G,...ye));for(let ce=G;ce<F.length;ce++){const z=F[ce],X=m[ce];X?.id===z.id&&X._ctx&&(z._ctx=X._ctx),z.abortController=l}return G}];t._committed=P,t._lifecycleEnd=k_(P),t._handoff=le,t._preflight=void 0,t.batch(()=>{t.stores.setMatches(N),t.stores.status.set("idle"),J||t.stores.resolvedLocation.set(t.stores.location.get())})}const fi=Symbol.asyncIterator,I_=Symbol.hasInstance,zs=Symbol.isConcatSpreadable,hi=Symbol.iterator,P_=Symbol.match,B_=Symbol.matchAll,$_=Symbol.replace,q_=Symbol.search,H_=Symbol.species,V_=Symbol.split,F_=Symbol.toPrimitive,Is=Symbol.toStringTag,G_=Symbol.unscopables,K_={[fi]:0,[I_]:1,[zs]:2,[hi]:3,[P_]:4,[B_]:5,[$_]:6,[q_]:7,[H_]:8,[V_]:9,[F_]:10,[Is]:11,[G_]:12},TR={0:fi,1:I_,2:zs,3:hi,4:P_,5:B_,6:$_,7:q_,8:H_,9:V_,10:F_,11:Is,12:G_},RR={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},AR={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},OR={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Me(t,e,i,s,o,l,c,d,h,m,g,v){return{t,i:e,s:i,c:s,m:o,p:l,e:c,a:d,f:h,b:m,o:g,l:v}}function ir(t){return Me(2,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const Y_=ir(2),Z_=ir(3),xR=ir(1),CR=ir(0),kR=ir(4),jR=ir(5),NR=ir(6),DR=ir(7);function LR(t){switch(t){case'"':return'\\"';case"\\":return"\\\\";case`
12`: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}}function rr(t){let e="",i=0,s;for(let o=0,l=t.length;o<l;o++)s=LR(t[o]),s&&(e+=t.slice(i,o)+s,i=o+1);return i===0?e=t:e+=t.slice(i),e}function MR(t){switch(t){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
13`;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 t}}function sr(t){return t.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,MR)}const Yl="__SEROVAL_REFS__",Q_=new Map,Ds=new Map;function J_(t){return Q_.has(t)}function UR(t){return Ds.has(t)}function zR(t){if(J_(t))return Q_.get(t);throw new pA(t)}function IR(t){if(UR(t))return Ds.get(t);throw new mA(t)}typeof globalThis<"u"?Object.defineProperty(globalThis,Yl,{value:Ds,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Yl,{value:Ds,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Yl,{value:Ds,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Yl,{value:Ds,configurable:!0,writable:!1,enumerable:!1});function Dh(t){return t instanceof EvalError?1:t instanceof RangeError?2:t instanceof ReferenceError?3:t instanceof SyntaxError?4:t instanceof TypeError?5:t instanceof URIError?6:0}function PR(t){const e=AR[Dh(t)];return t.name!==e?{name:t.name}:t.constructor.name!==e?{name:t.constructor.name}:{}}function X_(t,e){let i=PR(t);const s=Object.getOwnPropertyNames(t);for(let o=0,l=s.length,c;o<l;o++)c=s[o],c!=="name"&&c!=="message"&&(c==="stack"?e&4&&(i=i||{},i[c]=t[c]):(i=i||{},i[c]=t[c]));return i}function W_(t){return Object.isFrozen(t)?3:Object.isSealed(t)?2:Object.isExtensible(t)?0:1}function BR(t){switch(t){case Number.POSITIVE_INFINITY:return jR;case Number.NEGATIVE_INFINITY:return NR}return t!==t?DR:Object.is(t,-0)?kR:Me(0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function eb(t){return Me(1,void 0,rr(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $R(t){return Me(3,void 0,""+t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function qR(t){return Me(4,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function HR(t,e){const i=e.valueOf();return Me(5,t,i!==i?"":e.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $i(t,e,i){return Me(36,t,i.toString(),e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function VR(t,e){return Me(6,t,void 0,rr(e.source),e.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function FR(t,e){return Me(17,t,K_[e],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function GR(t,e){return Me(18,t,rr(zR(e)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function KR(t,e,i){return Me(25,t,i,rr(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function YR(t,e,i){return Me(9,t,void 0,void 0,void 0,void 0,void 0,i,void 0,void 0,W_(e),void 0)}function ZR(t,e){return Me(21,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function QR(t,e,i){return Me(15,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,i,e.byteOffset,void 0,e.length)}
13function JR(t,e,i){return Me(16,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,i,e.byteOffset,void 0,e.length)}function XR(t,e,i){return Me(20,t,void 0,void 0,void 0,void 0,void 0,void 0,i,e.byteOffset,void 0,e.byteLength)}function WR(t,e,i){return Me(13,t,Dh(e),void 0,rr(e.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function eA(t,e,i){return Me(14,t,Dh(e),void 0,rr(e.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function tA(t,e){return Me(7,t,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,void 0)}function nA(t,e){return Me(28,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function iA(t,e){return Me(30,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function rA(t,e,i){return Me(31,t,void 0,void 0,void 0,void 0,void 0,i,e,void 0,void 0,void 0)}function sA(t,e){return Me(32,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function aA(t,e){return Me(33,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function oA(t,e){return Me(34,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function lA(t,e,i,s){return Me(35,t,i,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,s)}const uA={parsing:1,serialization:2,deserialization:3};function cA(t){return`Seroval Error (step: ${uA[t]})`}const dA=(t,e)=>cA(t);var tb=class extends Error{constructor(t,e){super(dA(t)),this.cause=e}},jy=class extends tb{constructor(t){super("parsing",t)}},fA=class extends tb{constructor(t){super("deserialization",t)}};function mi(t){return`Seroval Error (specific: ${t})`}var Bu=class extends Error{constructor(t){super(mi(1)),this.value=t}},Lh=class extends Error{constructor(t){super(mi(2))}},hA=class extends Error{constructor(t){super(mi(3))}},wo=class extends Error{constructor(t){super(mi(4))}},pA=class extends Error{constructor(t){super(mi(5)),this.value=t}},mA=class extends Error{constructor(t){super(mi(6))}},gA=class extends Error{constructor(t){super(mi(7))}},zn=class extends Error{constructor(t){super(mi(8))}},nb=class extends Error{constructor(t){super(mi(9))}},vA=class{constructor(t,e){this.value=t,this.replacement=e}};const Mh=()=>{const t={p:0,s:0,f:0};return t.p=new Promise((e,i)=>{t.s=e,t.f=i}),t},yA=()=>{const t=[],e=[];let i=!0,s=!1,o=0;const l={flush(c,d,h){for(h=0;h<o;h++)e[h]&&e[h][d](c)},up(c,d,h,m){for(d=0,h=t.length;d<h;d++)m=t[d],!i&&d===h-1?c[s?"return":"throw"](m):c.next(m)},on(c,d){return i&&(d=o++,e[d]=c),l.up(c),()=>{i&&(e[d]=e[o],e[o--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(c){return l.on(c)},next(c){i&&(t.push(c),l.flush(c,"next"))},throw(c){i&&(t.push(c),l.flush(c,"throw"),i=!1,s=!1,e.length=0)},return(c){i&&(t.push(c),l.flush(c,"return"),i=!1,s=!0,e.length=0)}}},_A=t=>e=>()=>{let i=0;const s={[t](){return s},next(){if(i>e.d)return{done:!0,value:void 0};const o=i++,l=e.v[o];if(o===e.t)throw l;return{done:o===e.d,value:l}}};return s},bA=(t,e)=>i=>()=>{let s=0,o=-1,l=!1;const c=[],d=[],h={finalize(g=0,v=d.length){for(;g<v;g++)d[g].s({done:!0,value:void 0})}};i.on({next(g){const v=d.shift();v&&v.s({done:!1,value:g}),c.push(g)},throw(g){const v=d.shift();v&&v.f(g),h.finalize(),o=c.length,l=!0,c.push(g)},return(g){const v=d.shift();v&&v.s({done:!0,value:g}),h.finalize(),o=c.length,c.push(g)}});const m={[t](){return m},next(){if(o===-1){const _=s++;if(_>=c.length){const b=e();return d.push(b),b.p}return{done:!1,value:c[_]}}if(s>o)return{done:!0,value:void 0};const g=s++,v=c[g];if(g!==o)return{done:!1,value:v};if(l)throw v;return{done:!0,value:v}}};return m},wA=t=>{const e=atob(t),i=e.length,s=new Uint8Array(i);for(let o=0;o<i;o++)s[o]=e.charCodeAt(o);return s.buffer};function SA(t){return"__SEROVAL_SEQUENCE__"in t}function ib(t,e,i){return{__SEROVAL_SEQUENCE__:!0,v:t,t:e,d:i}}function EA(t){const e=[];let i=-1,s=-1;const o=t[hi]();for(;;)try{const l=o.next();if(e.push(l.value),l.done){s=e.length-1;break}}catch(l){i=e.length,e.push(l)}return ib(e,i,s)}const TA=_A(hi);function RA(t){return TA(t)}const AA={},OA={},xA={0:{},1:{},2:{},3:{},4:{},5:{}};function CA(t){return"__SEROVAL_STREAM__"in t}function So(){return yA()}function kA(t){const e=So(),i=t[fi]();async function s(){try{const o=await i.next();o.done?e.return(o.value):(e.next(o.value),await s())}catch(o){e.throw(o)}}return s().catch(()=>{}),e}const jA=bA(fi,Mh);function NA(t){return jA(t)}async function DA(t){try{return[1,await t]}catch(e){return[0,e]}}function LA(t,e){return{plugins:e.plugins,mode:t,marked:new Set,features:127^(e.disabledFeatures||0),refs:e.refs||new Map,depthLimit:e.depthLimit||1e3}}function du(t,e){t.marked.add(e)}function MA(t,e){const i=t.refs.size;return t.refs.set(e,i),i}function $u(t,e){const i=t.refs.get(e);return i!=null?(du(t,i),{type:1,value:qR(i)}):{type:0,value:MA(t,e)}}function Uh(t,e){const i=$u(t,e);
13return i.type===1?i:J_(e)?{type:2,value:GR(i.value,e)}:i}function kr(t,e){const i=Uh(t,e);if(i.type!==0)return i.value;if(e in K_)return FR(i.value,e);throw new Bu(e)}function qu(t,e){const i=$u(t,xA[e]);return i.type===1?i.value:Me(26,i.value,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function UA(t){const e=$u(t,AA);return e.type===1?e.value:Me(27,e.value,void 0,void 0,void 0,void 0,void 0,void 0,kr(t,hi),void 0,void 0,void 0)}function zA(t){const e=$u(t,OA);return e.type===1?e.value:Me(29,e.value,void 0,void 0,void 0,void 0,void 0,[qu(t,1),kr(t,fi)],void 0,void 0,void 0,void 0)}function IA(t,e,i,s){return Me(i?11:10,t,void 0,void 0,void 0,s,void 0,void 0,void 0,void 0,W_(e),void 0)}function PA(t,e,i,s){return Me(8,e,void 0,void 0,void 0,void 0,{k:i,v:s},void 0,qu(t,0),void 0,void 0,void 0)}function BA(t,e,i){const s=new Uint8Array(i);let o="";for(let l=0,c=s.length;l<c;l++)o+=String.fromCharCode(s[l]);return Me(19,e,rr(btoa(o)),void 0,void 0,void 0,void 0,void 0,qu(t,5),void 0,void 0,void 0)}function $A(t,e){return{base:LA(t,e),child:void 0}}var qA=class{constructor(t,e){this._p=t,this.depth=e}parse(t){return mt(this._p,this.depth,t)}};async function HA(t,e,i){const s=[];for(let o=0,l=i.length;o<l;o++)o in i?s[o]=await mt(t,e,i[o]):s[o]=0;return s}async function VA(t,e,i,s){return YR(i,s,await HA(t,e,s))}
13async function zh(t,e,i){const s=Object.entries(i),o=[],l=[];for(let c=0,d=s.length;c<d;c++)o.push(rr(s[c][0])),l.push(await mt(t,e,s[c][1]));return hi in i&&(o.push(kr(t.base,hi)),l.push(nA(UA(t.base),await mt(t,e,EA(i))))),fi in i&&(o.push(kr(t.base,fi)),l.push(iA(zA(t.base),await mt(t,e,kA(i))))),Is in i&&(o.push(kr(t.base,Is)),l.push(eb(i[Is]))),zs in i&&(o.push(kr(t.base,zs)),l.push(i[zs]?Y_:Z_)),{k:o,v:l}}async function Ef(t,e,i,s,o){return IA(i,s,o,await zh(t,e,s))}async function FA(t,e,i,s){return ZR(i,await mt(t,e,s.valueOf()))}async function GA(t,e,i,s){return QR(i,s,await mt(t,e,s.buffer))}async function KA(t,e,i,s){return JR(i,s,await mt(t,e,s.buffer))}async function YA(t,e,i,s){return XR(i,s,await mt(t,e,s.buffer))}async function Ny(t,e,i,s){const o=X_(s,t.base.features);return WR(i,s,o?await zh(t,e,o):void 0)}async function ZA(t,e,i,s){const o=X_(s,t.base.features);return eA(i,s,o?await zh(t,e,o):void 0)}async function QA(t,e,i,s){const o=[],l=[];for(const[c,d]of s.entries())o.push(await mt(t,e,c)),l.push(await mt(t,e,d));return PA(t.base,i,o,l)}async function JA(t,e,i,s){const o=[];for(const l of s.keys())o.push(await mt(t,e,l));return tA(i,o)}async function rb(t,e,i,s){const o=t.base.plugins;if(o)for(let l=0,c=o.length;l<c;l++){const d=o[l];if(d.parse.async&&d.test(s))return KR(i,d.tag,await d.parse.async(s,new qA(t,e),{id:i}))}}async function XA(t,e,i,s){const[o,l]=await DA(s);return Me(12,i,o,void 0,void 0,void 0,void 0,void 0,await mt(t,e,l),void 0,void 0,void 0)}function WA(t,e,i,s,o){const l=[],c=i.on({next:d=>{du(this.base,e),mt(this,t,d).then(h=>{l.push(sA(e,h))},h=>{o(h),c()})},throw:d=>{du(this.base,e),mt(this,t,d).then(h=>{l.push(aA(e,h)),s(l),c()},h=>{o(h),c()})},return:d=>{du(this.base,e),mt(this,t,d).then(h=>{l.push(oA(e,h)),s(l),c()},h=>{o(h),c()})}})}async function e1(t,e,i,s){return rA(i,qu(t.base,4),await new Promise(WA.bind(t,e,i,s)))}async function t1(t,e,i,s){const o=[];for(let l=0,c=s.v.length;l<c;l++)o[l]=await mt(t,e,s.v[l]);return lA(i,o,s.t,s.d)}async function n1(t,e,i,s){if(Array.isArray(s))return VA(t,e,i,s);if(CA(s))return e1(t,e,i,s);if(SA(s))return t1(t,e,i,s);let o=s.constructor;if(o!==void 0&&typeof o!="function"){const d=Object.getPrototypeOf(s);o=d===null?void 0:d.constructor}if(o===vA)return mt(t,e,s.replacement);const l=await rb(t,e,i,s);if(l)return l;switch(o){case Object:return Ef(t,e,i,s,!1);case void 0:return Ef(t,e,i,s,!0);case Date:return HR(i,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Ny(t,e,i,s);case Number:case Boolean:case String:case BigInt:return FA(t,e,i,s);case ArrayBuffer:return BA(t.base,i,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return GA(t,e,i,s);case DataView:return YA(t,e,i,s);case Map:return QA(t,e,i,s);case Set:return JA(t,e,i,s)}if(o===Promise||s instanceof Promise)return XA(t,e,i,s);const c=t.base.features;if(c&32&&o===RegExp)return VR(i,s);if(c&16)switch(o){case BigInt64Array:case BigUint64Array:return KA(t,e,i,s)}if(c&1&&typeof AggregateError<"u"&&(o===AggregateError||s instanceof AggregateError))return ZA(t,e,i,s);if(c&64&&typeof Temporal<"u")switch(o){case Temporal.Instant:return $i(i,0,s);case Temporal.Duration:return $i(i,1,s);case Temporal.PlainDate:return $i(i,2,s);case Temporal.PlainDateTime:return $i(i,3,s);case Temporal.PlainMonthDay:return $i(i,4,s);case Temporal.PlainTime:return $i(i,5,s);case Temporal.PlainYearMonth:return $i(i,6,s);case Temporal.ZonedDateTime:return $i(i,7,s)}if(s instanceof Error)return Ny(t,e,i,s);if(hi in s||fi in s)return Ef(t,e,i,s,!!o);throw new Bu(s)}async function i1(t,e,i){const s=Uh(t.base,i);if(s.type!==0)return s.value;const o=await rb(t,e,s.value,i);if(o)return o;throw new Bu(i)}async function mt(t,e,i){if(e>=t.base.depthLimit)throw new nb(t.base.depthLimit);switch(typeof i){case"boolean":return i?Y_:Z_;case"undefined":return xR;case"string":return eb(i);case"number":return BR(i);case"bigint":return $R(i);case"object":if(i){const s=Uh(t.base,i);return s.type===0?await n1(t,e+1,s.value,i):s.value}return CR;case"symbol":return kr(t.base,i);case"function":return i1(t,e,i);default:throw new Bu(i)}}async function r1(t,e){try{return await mt(t,0,e)}catch(i){throw i instanceof jy?i:new jy(i)}}
13function sb(t,e){for(let i=0,s=e.length;i<s;i++){const o=e[i];t.has(o)||(t.add(o),o.extends&&sb(t,o.extends))}}function ab(t){if(t){const e=new Set;return sb(e,t),[...e]}}function s1(t){switch(t){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 gA(t)}}function a1(t){switch(t){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function o1(t){switch(t){case fi:case zs:case Is:case hi:return!0;default:return!1}}const l1=1e6,u1=1e4,c1=2e4;function ob(t,e){switch(e){case 3:return Object.freeze(t);case 1:return Object.preventExtensions(t);case 2:return Object.seal(t);default:return t}}const d1=1e3;function f1(t,e){var i;const s=e.refs||new Map;return"types"in s||Object.assign(s,{types:new Map}),{mode:t,plugins:e.plugins,refs:s,features:(i=e.features)!==null&&i!==void 0?i:127^(e.disabledFeatures||0),depthLimit:e.depthLimit||d1}}function h1(t){return{mode:2,base:f1(2,t),child:void 0}}var p1=class{constructor(t,e){this._p=t,this.depth=e}deserialize(t){return Ze(this._p,this.depth,t)}};function lb(t,e){if(e<0||!Number.isFinite(e)||!Number.isInteger(e))throw new zn({t:4,i:e});if(t.refs.has(e))throw new Error("Conflicted ref id: "+e)}function m1(t,e,i){return lb(t.base,e),t.state.marked.has(e)&&t.base.refs.set(e,i),i}function g1(t,e,i){return lb(t.base,e),t.base.refs.set(e,i),i}function ht(t,e,i){return t.mode===1?m1(t,e,i):g1(t,e,i)}function Ff(t,e,i){if(Object.hasOwn(e,i))return e[i];throw new zn(t)}function v1(t,e){return ht(t,e.i,IR(sr(e.s)))}function y1(t,e,i){const s=i.a,o=s.length,l=ht(t,i.i,new Array(o));for(let c=0,d;c<o;c++)d=s[c],d&&(l[c]=Ze(t,e,d));return ob(l,i.o),l}function Dy(t,e,i){a1(e)?t[e]=i:Object.defineProperty(t,e,{value:i,configurable:!0,enumerable:!0,writable:!0})}function _1(t,e,i,s,o){if(typeof s=="string")Dy(i,sr(s),Ze(t,e,o));else{const l=Ze(t,e,s);switch(typeof l){case"string":Dy(i,l,Ze(t,e,o));break;case"symbol":o1(l)&&(i[l]=Ze(t,e,o));break;default:throw new zn(s)}}}function ub(t,e,i){t.base.refs.types.set(e,i)}function Eo(t,e,i,s){if(t.base.refs.types.get(i)!==s)throw new zn(e)}function cb(t,e,i,s){const o=i.k;if(o.length>0)for(let l=0,c=i.v,d=o.length;l<d;l++)_1(t,e,s,o[l],c[l]);return s}function b1(t,e,i){const s=ht(t,i.i,i.t===10?{}:Object.create(null));return cb(t,e,i.p,s),ob(s,i.o),s}function w1(t,e){return ht(t,e.i,new Date(e.s))}function S1(t,e){if(!(t.base.features&64))throw new Lh(e);let i;switch(e.c){case 0:i=Temporal.Instant.from(e.s);break;case 1:i=Temporal.Duration.from(e.s);break;case 2:i=Temporal.PlainDate.from(e.s);break;case 3:i=Temporal.PlainDateTime.from(e.s);break;case 4:i=Temporal.PlainMonthDay.from(e.s);break;case 5:i=Temporal.PlainTime.from(e.s);break;case 6:i=Temporal.PlainYearMonth.from(e.s);break;case 7:i=Temporal.ZonedDateTime.from(e.s);break;default:throw new zn(e)}return ht(t,e.i,i)}function E1(t,e){if(t.base.features&32){const i=sr(e.c);if(i.length>c1)throw new zn(e);return ht(t,e.i,new RegExp(i,e.m))}throw new Lh(e)}function T1(t,e,i){const s=ht(t,i.i,new Set);for(let o=0,l=i.a,c=l.length;o<c;o++)s.add(Ze(t,e,l[o]));return s}function R1(t,e,i){const s=ht(t,i.i,new Map);for(let o=0,l=i.e.k,c=i.e.v,d=l.length;o<d;o++)s.set(Ze(t,e,l[o]),Ze(t,e,c[o]));return s}function A1(t,e){if(e.s.length>l1)throw new zn(e);return ht(t,e.i,wA(sr(e.s)))}function O1(t,e,i){var s;const o=s1(i.c),l=Ze(t,e,i.f),c=(s=i.b)!==null&&s!==void 0?s:0;if(c<0||c>l.byteLength)throw new zn(i);return ht(t,i.i,new o(l,c,i.l))}function x1(t,e,i){var s;const o=Ze(t,e,i.f),l=(s=i.b)!==null&&s!==void 0?s:0;if(l<0||l>o.byteLength)throw new zn(i);return ht(t,i.i,new DataView(o,l,i.l))}function db(t,e,i,s){if(i.p){const o=cb(t,e,i.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(o))}return s}function C1(t,e,i){return db(t,e,i,ht(t,i.i,new AggregateError([],sr(i.m))))}function k1(t,e,i){const s=Ff(i,OR,i.s);return db(t,e,i,ht(t,i.i,new s(sr(i.m))))}function j1(t,e,i){const s=Mh(),o=ht(t,i.i,s.p),l=Ze(t,e,i.f);return i.s?s.s(l):s.f(l),o}function N1(t,e,i){return ht(t,i.i,Object(Ze(t,e,i.f)))}function D1(t,e,i){const s=t.base.plugins;if(s){const o=sr(i.c);for(let l=0,c=s.length;l<c;l++){const d=s[l];if(d.tag===o)return ht(t,i.i,d.deserialize(i.s,new p1(t,e),{id:i.i}))}}throw new hA(i.c)}function L1(t,e){const i=ht(t,e.i,ht(t,e.s,Mh()).p);return ub(t,e.s,22),i}function M1(t,e,i){const s=t.base.refs.get(i.i);if(s){Eo(t,i,i.i,22),s.s(Ze(t,e,i.a[1]));return}throw new wo("Promise")}function U1(t,e,i){const s=t.base.refs.get(i.i);if(s){Eo(t,i,i.i,22),s.f(Ze(t,e,i.a[1]));return}throw new wo("Promise")}function z1(t,e,i){return Ze(t,e,i.a[0]),RA(Ze(t,e,i.a[1]))}function I1(t,e,i){return Ze(t,e,i.a[0]),NA(Ze(t,e,i.a[1]))}function P1(t,e,i){const s=ht(t,i.i,So());ub(t,i.i,31);const o=i.a,l=o.length;if(l)for(let c=0;c<l;c++)Ze(t,e,o[c]);return s}function B1(t,e,i){const s=t.base.refs.get(i.i);if(s){Eo(t,i,i.i,31),s.next(Ze(t,e,i.f));return}throw new wo("Stream")}function $1(t,e,i){const s=t.base.refs.get(i.i);if(s){Eo(t,i,i.i,31),s.throw(Ze(t,e,i.f));return}throw new wo("Stream")}function q1(t,e,i){const s=t.base.refs.get(i.i);if(s){Eo(t,i,i.i,31),s.return(Ze(t,e,i.f));return}throw new wo("Stream")}
13function H1(t,e,i){Ze(t,e,i.f)}function V1(t,e,i){Ze(t,e,i.a[1])}function F1(t,e,i){const s=ht(t,i.i,ib([],i.s,i.l));for(let o=0,l=i.a.length;o<l;o++)s.v[o]=Ze(t,e,i.a[o]);return s}function Ze(t,e,i){if(e>t.base.depthLimit)throw new nb(t.base.depthLimit);switch(e+=1,i.t){case 2:return Ff(i,RR,i.s);case 0:return Number(i.s);case 1:return sr(String(i.s));case 3:if(String(i.s).length>u1)throw new zn(i);return BigInt(i.s);case 4:return t.base.refs.get(i.i);case 18:return v1(t,i);case 9:return y1(t,e,i);case 10:case 11:return b1(t,e,i);case 5:return w1(t,i);case 6:return E1(t,i);case 7:return T1(t,e,i);case 8:return R1(t,e,i);case 19:return A1(t,i);case 16:case 15:return O1(t,e,i);case 20:return x1(t,e,i);case 14:return C1(t,e,i);case 13:return k1(t,e,i);case 12:return j1(t,e,i);case 17:return Ff(i,TR,i.s);case 21:return N1(t,e,i);case 25:return D1(t,e,i);case 22:return L1(t,i);case 23:return M1(t,e,i);case 24:return U1(t,e,i);case 28:return z1(t,e,i);case 30:return I1(t,e,i);case 31:return P1(t,e,i);case 32:return B1(t,e,i);case 33:return $1(t,e,i);case 34:return q1(t,e,i);case 27:return H1(t,e,i);case 29:return V1(t,e,i);case 35:return F1(t,e,i);case 36:return S1(t,i);default:throw new Lh(i)}}function G1(t,e){try{return Ze(t,0,e)}catch(i){throw new fA(i)}}function K1(t,e){return G1(h1({plugins:ab(e.plugins),refs:e.refs,features:e.features,disabledFeatures:e.disabledFeatures,depthLimit:e.depthLimit}),t)}async function Y1(t,e={}){const i=$A(1,{plugins:ab(e.plugins),disabledFeatures:e.disabledFeatures});return{t:await r1(i,t),f:i.base.features,m:Array.from(i.base.marked)}}function Z1(t){return{tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(e,i){return{v:i.parse(t.toSerializable(e))}},async async(e,i){return{v:await i.parse(t.toSerializable(e))}},stream(e,i){return{v:i.parse(t.toSerializable(e))}}},serialize:void 0,deserialize(e,i){return t.fromSerializable(i.deserialize(e.v))}}}function fb(t){if(Array.isArray(t))return t.flatMap(g=>fb(g));if(typeof t!="string")return[];const e=[];let i=0,s,o,l,c,d;const h=()=>{for(;i<t.length&&/\s/.test(t.charAt(i));)i+=1;return i<t.length},m=()=>(o=t.charAt(i),o!=="="&&o!==";"&&o!==",");for(;i<t.length;){for(s=i,d=!1;h();)if(o=t.charAt(i),o===","){for(l=i,i+=1,h(),c=i;i<t.length&&m();)i+=1;i<t.length&&t.charAt(i)==="="?(d=!0,i=c,e.push(t.slice(s,l)),s=i):i=l+1}else i+=1;(!d||i>=t.length)&&e.push(t.slice(s))}return e}function Q1(t){return t instanceof Headers?t:Array.isArray(t)?new Headers(t):typeof t=="object"?new Headers(t):null}function J1(...t){return t.reduce((e,i)=>{const s=Q1(i);if(!s)return e;for(const[o,l]of s.entries())o==="set-cookie"?fb(l).forEach(c=>e.append("set-cookie",c)):e.set(o,l);return e},new Headers)}const X1={tag:"$TSR/Error",test(t){return t instanceof Error},parse:{sync(t,e){return{message:e.parse(t.message)}},async async(t,e){return{message:await e.parse(t.message)}},stream(t,e){return{message:e.parse(t.message)}}},serialize(t,e){return"new Error("+e.serialize(t.message)+")"},deserialize(t,e){return new Error(e.deserialize(t.message))}};var W1=class{constructor(t,e){this.stream=t,this.hint=e?.hint??"binary"}};function hb(t){const e=[];for(let i=0;i<t.length;i+=32768)e.push(String.fromCharCode.apply(null,t.subarray(i,i+32768)));return btoa(e.join(""))}function pb(t){const e=atob(t),i=new Uint8Array(e.length);for(let s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i}const eO=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function tO(t){try{return"t"+eO.decode(t)}catch{return"b"+hb(t)}}const nO=new TextEncoder;function iO(t){const e=t.slice(1);return t[0]==="t"?nO.encode(e):pb(e)}function rO(t,e,i){i?.throwIfAborted();const s=So(),o=t.getReader();let l=!0;const c=()=>{l=!1,i?.removeEventListener("abort",h),o.releaseLock()},d=m=>l?(o.cancel(m).catch(()=>{}),c(),!0):!1,h=()=>{d(i.reason)&&s.throw(i.reason)};return i?.addEventListener("abort",h),(async()=>{try{for(;l;){const{done:m,value:g}=await o.read();if(!l)return;if(m){c(),s.return(void 0);return}s.next(e(g))}}catch(m){d(m)&&s.throw(m)}})(),[s,d]}function sO(t,e){let i,s=!1;return new ReadableStream({start(o){const l=t.on({next(c){if(!s)try{o.enqueue(e(c))}catch(d){s=!0;const h=i;i=void 0,h?.(),o.error(d)}},throw(c){s||(s=!0,i=void 0,o.error(c))},return(){s||(s=!0,i=void 0,o.close())}});s?l():i=l},cancel(){const o=i;i=void 0,o?.()}})}function mb(t){return{tag:"tss/RawStream",test:e=>e instanceof W1,parse:{async:async(e,i)=>{const s=await i.parse(e.hint==="text"),[o]=rO(e.stream,e.hint==="text"?tO:hb,t);return{text:s,stream:await i.parse(o)}}},serialize:void 0,deserialize:void 0}}const aO=mb(),oO={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,e){return sO(e.deserialize(t.stream),e.deserialize(t.text)?iO:pb)}},Vi={},gb=t=>new ReadableStream({start(e){t.on({next(i){try{e.enqueue(i)}catch{}},throw(i){e.error(i)},return(){try{e.close()}catch{}}})}}),lO={tag:"seroval-plugins/web/ReadableStreamFactory",test(t){return t===Vi},parse:{sync(){return Vi},async async(){return await Promise.resolve(Vi)},stream(){return Vi}},serialize(){return gb.toString()},deserialize(){return Vi}};async function vb(t,e){try{const i=await e.read();i.done?(t.return(i.value),e.releaseLock()):(t.next(i.value),await vb(t,e))}catch(i){t.throw(i)}}function uO(t){t.cancel().catch(()=>{}),t.releaseLock()}function Ly(t){const e=So(),i=t.getReader(),s=uO.bind(null,i);return vb(e,i).catch(s),[e,s]}const cO={tag:"seroval/plugins/web/ReadableStream",extends:[lO],test(t){return typeof ReadableStream>"u"?!1:t instanceof ReadableStream},parse:{sync(t,e){return{factory:e.parse(Vi),stream:e.parse(So())}},async async(t,e){return{factory:await e.parse(Vi),stream:await e.parse(Ly(t)[0])}},stream(t,e){const[i,s]=Ly(t);return e.addCleanup(s),{factory:e.parse(Vi),stream:e.parse(i)}}},serialize(t,e){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e){const i=e.deserialize(t.stream);return gb(i)}};
13function yb(t){return[X1,t?mb(t):aO,cO]}const dO=yb();[...dO];function fO(t){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,i){return t(i.deserialize(e.streamId))}}}function hO(t){return[...Sh()?.serializationAdapters?.map(Z1)??[],...t]}function _b(t){return hO(yb(t))}var My=new TextDecoder,Cn=new Uint8Array,pO=new ByteLengthQueuingStrategy({highWaterMark:0});function mO(t){const e=t.getReader(),i=new Map;let s=0,o,l;const c=()=>{o?.(),o=void 0},d=(v,_)=>{const b=v[1];v[1]=!1,b&&(_===1?b.close():b.error(_[0]))},h=new ReadableStream({start(v){l=v},pull:c,cancel(v){const _=[v===void 0?new Error("Framed response cancelled"):v];s=_,c(),e.cancel(v).catch(()=>{});for(const b of i.values())d(b,_)}});function m(v){const _=i.get(v);if(_)return _;if(i.size>=1024)throw new Error("Too many raw streams");let b;const S=[new ReadableStream({start(E){b=E},cancel(){S[1]!==!1&&(S[1]=null)}},pO),b];return i.set(v,S),s!==0&&d(S,s),S}function g(v){if(v===0||v>>>0!==v)throw new RangeError("Invalid raw stream ID");return m(v)[0]}return(async()=>{let v=Cn,_=0;async function b(){for(;_===v.byteLength;){v=Cn,_=0;const E=await e.read();if(s!==0||E.done)return!1;v=E.value}return!0}async function S(E,T){if(E===0)return Cn;if(!await b()){if(T)return;throw new Error("Incomplete frame")}if(v.byteLength-_>=E){const C=v.subarray(_,_+E);return _+=E,_===v.byteLength&&(v=Cn,_=0),C}const R=new Uint8Array(E);let k=0;for(;k<E;){if(!await b())throw new Error("Incomplete frame");const C=Math.min(E-k,v.byteLength-_);R.set(v.subarray(_,_+C),k),_+=C,k+=C}return _===v.byteLength&&(v=Cn,_=0),R}try{for(;s===0;){let E=await S(9,!0);if(s!==0)return;if(!E){for(const J of i.values())if(J[1])throw new Error("Incomplete raw stream");s=1,l.close();return}const T=E[0],R=(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,k=(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0;if(E=Cn,T>3||T===0!=(R===0)||k>16777216||T===2&&k!==0)throw new Error("Invalid frame");const C=T===0?void 0:m(R);if(C?.[1]===!1)throw new Error("Raw stream already ended");let B=await S(k);if(s!==0)return;if(!C){const J=My.decode(B);for(B=Cn,l.enqueue(J);s===0&&l.desiredSize<=0;)await new Promise(P=>{o=P});continue}if(T===1){const J=C[1];if(J){if(-J.desiredSize>134217728){J.error(new Error(`Raw stream ${R} has too many unread bytes`)),C[1]=null,B=Cn;continue}const P=B.byteLength*4<B.buffer.byteLength?B.slice():B;B=Cn,J.enqueue(P)}}else d(C,T===2?1:[new Error(My.decode(B))])}}catch(E){if(s===0){const T=[E];s=T,e.cancel(E).catch(()=>{}),l.error(E);for(const R of i.values())d(R,T)}}finally{v=Cn,e.releaseLock()}})(),[h,g]}const jn=Symbol.for("TSR_DEFERRED_PROMISE");function gO(t,e){const i=t;return i[jn]||(i[jn]={status:"pending"},i.then(s=>{i[jn].status="success",i[jn].data=s}).catch(s=>{i[jn].status="error",i[jn].error={data:oR(s),__isServerError:!0}})),i}const vO="Error preloading route! ☝️";function bb(t,e){if(t)return typeof t=="string"?t:t[e]}function yO(t){return t?.scriptFormat??"module"}function _O(t,e,i){const s=bO(e),o=bb(i,"script")??s.crossOrigin;return{...yO(t)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...o?{crossOrigin:o}:{}}}function bO(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function Zl(t,e){if(e.length===0)return;if(e.length===1){t.push(e[0]);return}const i=new Set;for(const s of e){const o=JSON.stringify(s);i.has(o)||(i.add(o),t.push(s))}}function wO(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function SO(t,e,i,s){const o=j_(t),l=[],c=[];for(const d of o)for(const h of Array.isArray(d.scripts)?d.scripts:[]){if(!h)continue;const{children:m,...g}=h;l.push({tag:"script",attrs:{...g,...s,nonce:i},children:m})}if(e)for(const d of o)for(const h of e.routes[d.routeId]?.scripts??[])c.push({tag:"script",attrs:{...h.attrs,nonce:i},children:h.children});return[l,c]}function EO([t,e],i){return[...t,...e]}var wb=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;const i=this.options,s=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=Us:this.parentRoute||Xa();let o=s?Us:i?.path;o&&o!=="/"&&(o=__(o));const l=i?.id||o,c=s?Us:Ms((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(l??""));o==="__root__"&&(o="/");const d=c==="__root__"?"/":o===void 0?this.parentRoute.fullPath:Ms(this.parentRoute.fullPath+"/"+o);this._path=o,this._id=c,this._fullPath=d,this._to=Dn(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Un({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},TO=class extends wb{constructor(t){super(t)}};var io;function Gf(t,e,i){try{return K1(t,e)}
13catch(s){throw Eb(i),s}}async function Sb(t){t.length>0&&(await Promise.allSettled(t),t.length=0)}function Eb(t){for(const e of t)e.catch(()=>{});t.length=0}var RO=Object.prototype.hasOwnProperty;function Tb(t){for(const e in t)if(RO.call(t,e))return!0;return!1}async function AO(t,e,i){io||(io=_b());const s=e[0],o=s.fetch??i,l=s.data instanceof FormData,c=new Headers(s.headers);if(c.set("x-tsr-serverFn","true"),l||c.set("accept",`${wT}, application/x-ndjson, application/json`),s.method==="GET"){if(l)throw new Error("FormData is not supported with GET requests");const h=await Rb(s);if(h!==void 0){const m=A_({payload:h});t.includes("?")?t+=`&${m}`:t+=`?${m}`}}let d;return s.method==="POST"&&(d=await OO(s),typeof d=="string"&&c.set("content-type","application/json")),xO(()=>o(t,{method:s.method,headers:c,signal:s.signal,body:d}))}async function Rb(t){let e;return t.data!==void 0&&(e={data:t.data}),t.context&&Tb(t.context)&&((e??={}).context=t.context),e?Ab(e,t.signal):void 0}async function Ab(t,e){e?.throwIfAborted();let i;try{i=await Y1(t,{plugins:e?_b(e):io})}finally{e?.throwIfAborted()}return JSON.stringify(i)}async function OO(t){if(t.data instanceof FormData){let e;return t.context&&Tb(t.context)&&(e=await Ab(t.context,t.signal)),e!==void 0&&t.data.set(bT,e),t.data}return Rb(t)}async function xO(t){let e;try{e=await t()}catch(s){if(s instanceof Response)e=s;else throw s}if(e.headers.get("x-tss-raw")==="true")return e;const i=e.headers.get("content-type");if(i||Xa(),e.headers.get("x-tss-serialized")){let s;if(i.includes("application/x-tss-framed")){const o=/;\s*v=(\d+)/.exec(i)?.[1];if(o&&+o!=1)throw new Error(`Unsupported framed protocol version ${o}`);if(!e.body)throw new Error("No response body for framed response");const[l,c]=mO(e.body);s=await CO(l,[fO(c),...io])}else if(i.includes("application/json")){const o=await e.json(),l=[];s=Gf(o,{plugins:io},l),await Sb(l)}if(s||Xa(),s instanceof Error)throw s;return s}if(i.includes("application/json")){const s=await e.json(),o=p_(s);if(o)throw o;if(Mr(s))throw s;return s}if(!e.ok)throw new Error(await e.text());return e}async function CO(t,e){const i=t.getReader(),s={refs:new Map,plugins:e},o=d=>{i.cancel(d).catch(()=>{})};let l;const c=[];try{const d=await i.read();if(d.done)throw new Error("Stream ended before first object");l=Gf(JSON.parse(d.value),s,c)}catch(d){throw o(d),i.releaseLock(),d}return(async()=>{const d=[];try{for(;;){const h=await i.read();if(h.done)return;Gf(JSON.parse(h.value),s,d),Eb(d)}}catch(h){o(h),console.error("Stream processing error:",h)}finally{i.releaseLock()}})(),await Sb(c),l}function Ob(t){const e="/_serverFn/"+t;return Object.assign((...o)=>{const l=Sh()?.serverFns?.fetch;return AO(e,o,l??fetch)},{url:e,serverFnMeta:{id:t},[Pf]:!0})}var kO={key:"$TSS/serverfn",test:t=>typeof t!="function"||!(Pf in t)?!1:!!t[Pf],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>Ob(t)},_u=Z.use,xb=Z.useLayoutEffect;function jO({promise:t}){if(_u)return _u(t);const e=gO(t);if(e[jn].status==="pending")throw e;if(e[jn].status==="error")throw e[jn].error;return e[jn].data}function NO(t){const e=D.jsx(DO,{...t});return t.fallback?D.jsx(Z.Suspense,{fallback:t.fallback,children:e}):e}function DO(t){const e=jO(t);return t.children(e)}var Ih=class extends Z.Component{constructor(...t){super(...t),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(t,e){const i=t.getResetKey();return e.error&&e.resetKey!==i?{resetKey:i,error:0}:{resetKey:i}}static getDerivedStateFromError(t){return{error:[t]}}componentDidCatch(t,e){this.props.onCatch?.(t,e)}render(){const t=this.state.error;return t?Z.createElement(this.props.errorComponent??LO,{error:t[0],reset:this.reset}):this.props.children}};function LO({error:t}){const[e,i]=Z.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:()=>i(s=>!s),children:e?"Hide Error":"Show Error"})]}),D.jsx("div",{style:{height:".25rem"}}),e?D.jsx("div",{children:D.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t?.message?D.jsx("code",{children:t.message}):null})}):null]})}var Uy=()=>!0,MO=()=>!1;function UO({children:t,fallback:e=null}){return D.jsx(bo.Fragment,{children:Ph()?t:e})}function Ph(t=!0){return bo.useSyncExternalStore(zO,Uy,t?MO:Uy)}function zO(){return()=>{}}var Cb=Z.createContext(null);function _t(t){return Z.useContext(Cb)}var Bh=Z.createContext(void 0),IO=Z.createContext(void 0);function PO({update:t,notify:e,unwatched:i}){return{link:s,unlink:o,propagate:l,checkDirty:c,shallowPropagate:d};function s(m,g,v){const _=g.depsTail;if(_!==void 0&&_.dep===m)return;const b=_!==void 0?_.nextDep:g.deps;if(b!==void 0&&b.dep===m){b.version=v,g.depsTail=b;return}const S=m.subsTail;if(S!==void 0&&S.version===v&&S.sub===g)return;const E=g.depsTail=m.subsTail={version:v,dep:m,sub:g,prevDep:_,nextDep:b,prevSub:S,nextSub:void 0};b!==void 0&&(b.prevDep=E),_!==void 0?_.nextDep=E:g.deps=E,S!==void 0?S.nextSub=E:m.subs=E}function o(m,g=m.sub){const v=m.dep,_=m.prevDep,b=m.nextDep,S=m.nextSub,E=m.prevSub;return b!==void 0?b.prevDep=_:g.depsTail=_,_!==void 0?_.nextDep=b:g.deps=b,S!==void 0?S.prevSub=E:v.subsTail=E,E!==void 0?E.nextSub=S:(v.subs=S)===void 0&&i(v),b}function l(m){let g=m.nextSub,v;e:do{const _=m.sub;let b=_.flags;if(b&60?b&12?b&4?!(b&48)&&h(m,_)?(_.flags=b|40,b&=1):b=0:_.flags=b&-9|32:b=0:_.flags=b|32,b&2&&e(_),b&1){const S=_.subs;if(S!==void 0){const E=(m=S).nextSub;E!==void 0&&(v={value:g,prev:v},g=E);continue}}if((m=g)!==void 0){g=m.nextSub;continue}for(;v!==void 0;)if(m=v.value,v=v.prev,m!==void 0){g=m.nextSub;continue e}break}while(!0)}function c(m,g){let v,_=0,b=!1;e:do{const S=m.dep,E=S.flags;if(g.flags&16)b=!0;else if((E&17)===17){if(t(S)){const T=S.subs;T.nextSub!==void 0&&d(T),b=!0}}else if((E&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(v={value:m,prev:v}),m=S.deps,g=S,++_;continue}if(!b){const T=m.nextDep;if(T!==void 0){m=T;continue}}for(;_--;){const T=g.subs,R=T.nextSub!==void 0;if(R?(m=v.value,v=v.prev):m=T,b){if(t(g)){R&&d(T),g=m.sub;continue}b=!1}else g.flags&=-33;g=m.sub;const k=m.nextDep;if(k!==void 0){m=k;continue e}}return b}while(!0)}function d(m){do{const g=m.sub,v=g.flags;(v&48)===32&&(g.flags=v|16,(v&6)===2&&e(g))}while((m=m.nextSub)!==void 0)}function h(m,g){let v=g.depsTail;for(;v!==void 0;){if(v===m)return!0;v=v.prevDep}return!1}}function BO(t,e,i){const s=typeof t=="object",o=s?t:void 0;return{next:(s?t.next:t)?.bind(o),error:(s?t.error:e)?.bind(o),c
13omplete:(s?t.complete:i)?.bind(o)}}const Kf=[];let fu=0;const{link:zy,unlink:$O,propagate:qO,checkDirty:kb,shallowPropagate:Iy}=PO({update(t){return t._update()},notify(t){Kf[Yf++]=t,t.flags&=-3},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,bu(t))}});let Ql=0,Yf=0,_n,Zf=0;function HO(t){try{++Zf,t()}finally{--Zf||jb()}}function bu(t){const e=t.depsTail;let i=e!==void 0?e.nextDep:t.deps;for(;i!==void 0;)i=$O(i,t)}function jb(){if(!(Zf>0)){for(;Ql<Yf;){const t=Kf[Ql];Kf[Ql++]=void 0,t.notify()}Ql=0,Yf=0}}function Py(t,e){const i=typeof t=="function",s=t,o={_snapshot:i?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?0:1,get(){return _n!==void 0&&zy(o,_n,fu),o._snapshot},subscribe(l){const c=BO(l),d={current:!1},h=VO(()=>{o.get(),d.current?(_n=void 0,c.next?.(o._snapshot)):d.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(l){const c=_n,d=e?.compare??Object.is;if(i)_n=o,++fu,o.depsTail=void 0;else if(l===void 0)return!1;i&&(o.flags=5);try{const h=o._snapshot,m=typeof l=="function"?l(h):l===void 0&&i?s(h):l;return h===void 0||!d(h,m)?(o._snapshot=m,!0):!1}finally{_n=c,i&&(o.flags&=-5),bu(o)}}};return i?(o.flags=17,o.get=function(){const l=o.flags;if(l&16||l&32&&kb(o.deps,o)){if(o._update()){const c=o.subs;c!==void 0&&Iy(c)}}else l&32&&(o.flags=l&-33);return _n!==void 0&&zy(o,_n,fu),o._snapshot}):o.set=function(l){if(o._update(l)){const c=o.subs;c!==void 0&&(qO(c),Iy(c),jb())}},o}function VO(t){const e=()=>{const s=_n;_n=i,++fu,i.depsTail=void 0,i.flags=6;try{return t()}finally{_n=s,i.flags&=-5,bu(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const s=this.flags;s&16||s&32&&kb(this.deps,this)?e():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,bu(this)}};return e(),i}var Tf={exports:{}},Rf={},Af={exports:{}},Of={};var By;function FO(){if(By)return Of;By=1;var t=_o();function e(v,_){return v===_&&(v!==0||1/v===1/_)||v!==v&&_!==_}var i=typeof Object.is=="function"?Object.is:e,s=t.useState,o=t.useEffect,l=t.useLayoutEffect,c=t.useDebugValue;function d(v,_){var b=_(),S=s({inst:{value:b,getSnapshot:_}}),E=S[0].inst,T=S[1];return l(function(){E.value=b,E.getSnapshot=_,h(E)&&T({inst:E})},[v,b,_]),o(function(){return h(E)&&T({inst:E}),v(function(){h(E)&&T({inst:E})})},[v]),c(b),b}function h(v){var _=v.getSnapshot;v=v.value;try{var b=_();return!i(v,b)}catch{return!0}}function m(v,_){return _()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return Of.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Of}var $y;function GO(){return $y||($y=1,Af.exports=FO()),Af.exports}var qy;function KO(){if(qy)return Rf;qy=1;var t=_o(),e=GO();function i(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var s=typeof Object.is=="function"?Object.is:i,o=e.useSyncExternalStore,l=t.useRef,c=t.useEffect,d=t.useMemo,h=t.useDebugValue;return Rf.useSyncExternalStoreWithSelector=function(m,g,v,_,b){var S=l(null);if(S.current===null){var E={hasValue:!1,value:null};S.current=E}else E=S.current;S=d(function(){function R(P){if(!k){if(k=!0,C=P,P=_(P),b!==void 0&&E.hasValue){var N=E.value;if(b(N,P))return B=N}return B=P}if(N=B,s(C,P))return N;var K=_(P);return b!==void 0&&b(N,K)?(C=P,N):(C=P,B=K)}var k=!1,C,B,J=v===void 0?null:v;return[function(){return R(g())},J===null?void 0:function(){return R(J())}]},[g,v,_,b]);var T=o(m,S[0],S[1]);return c(function(){E.hasValue=!0,E.value=T},[T]),h(T),T},Rf}var Hy;function YO(){return Hy||(Hy=1,Tf.exports=KO()),Tf.exports}var ZO=YO();function QO(t,e){return t===e}function hn(t,e=s=>s,i){const s=i?.compare??QO,o=Z.useCallback(c=>{const{unsubscribe:d}=t.subscribe(c);return d},[t]),l=Z.useCallback(()=>t.get(),[t]);return ZO.useSyncExternalStoreWithSelector(o,l,l,e,s)}var Vy={};function $h(t,e){const i=Z.useRef();return s=>{const o=t?.select?t.select(s):s;return t?.structuralSharing??e.options.defaultStructuralSharing?i.current=Zi(i.current,o):o}}function zr(t){const e=_t(),i=Z.useContext(t.from?IO:Bh),s=t.from??i,o=e.stores.getMatchStore(s),l=$h(t,e),c=hn(o,d=>
13d?l(d):Vy);if(c!==Vy)return c;(t.shouldThrow??!0)&&Xa()}function Nb(t){return zr({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function Db(t){const{select:e,...i}=t;return zr({...i,select:s=>e?e(s.loaderDeps):s.loaderDeps})}function Lb(t){return zr({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const i=t.strict===!1?e.params:e._strictParams;return t.select?t.select(i):i}})}function Mb(t){return zr({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function Ub(t){const e=_t();return Z.useCallback(i=>e.navigate({...i,from:i.from??t?.from}),[t?.from,e])}function zb(t){return zr({...t,select:e=>t.select?t.select(e.context):e.context})}function JO(...t){const e=Z.useRef(t),i=e.current;return t.forEach((s,o)=>{En(i[o],s,!1,!0)||(i[o]=s)}),e.current}function Jl(t,e){t.preloadRoute(e).catch(i=>{console.warn(i),console.warn(vO)})}var XO={compare:(t,e)=>t[0]===e[0]&&t[1]===e[1]};function WO(t,e){const i=typeof t=="string"&&Ja(t);if(i)return e.has(i)?t:null}function ex(t,e,i,s,o){const l=hy(t.pathname,s),c=hy(e.pathname,s);return(i?.exact?l!==c:!(l.startsWith(c)&&(l.length===c.length||l[c.length]==="/")))||(i?.includeSearch??!0)&&!En(t.search,e.search,!i?.exact,i?.explicitUndefined)?!1:i?.includeHash?o&&t.hash===e.hash:!0}function tx(t,e,i){const s=_t(),o=Z.useRef(null),l=Z.useCallback(he=>{if(o.current=he,typeof e=="function")return e(he);e&&(e.current=he)},[e]),{activeOptions:c,to:d,preload:h,preloadDelay:m,hashScrollIntoView:g,replace:v,startTransition:_,resetScroll:b,viewTransition:S,ignoreBlocker:E,disabled:T,target:R,onClick:k,onBlur:C,onFocus:B,onMouseEnter:J,onMouseLeave:P,onTouchStart:N}=t,K=Ph(!!c?.includeHash),[te,le,F]=JO(t.search,t.params,c),[G,ee]=Z.useMemo(()=>[t,{...t}],[s,t.from,t._fromLocation,t.hash,t.to,te,le,t.state,t.mask,t.unsafeRelative]),ye=Z.useMemo(()=>{const he=WO(d,s.protocolAllowlist);if(he!==void 0){const Tn=[he??void 0];return()=>Tn}let $e,Qe;return Tn=>{G._fromLocation||(ee._fromLocation=Tn);const ar=s.buildLocation(ee),Pn=ax(ar,s,T);return(!$e||$e[0]!==Pn)&&($e=[Pn,!(T||Pn&&!Ja(Pn))&&void 0],Qe=[Pn,!0]),$e[1]!==void 0&&ex(Tn,ar,F,s.basepath,K)?Qe:$e}},[F,T,K,G,ee,s,d]),[ce,z]=hn(s.stores.location,ye,XO),X=z===void 0&&ce,fe=T||ce===void 0,Be=Z.useRef(!1),je=t.reloadDocument||X||fe?!1:h??s.options.defaultPreload,x=m??s.options.defaultPreloadDelay??0,H=Z.useCallback(he=>{const $e=he?.isIntersecting;if(!($e??je==="intent")){$e===!1&&xf(o);return}if(!x){Jl(s,G);return}Ka.has(o)||Ka.set(o,setTimeout(()=>{Ka.delete(o),Jl(s,G)},x))},[s,G,o,je,x]);Z.useEffect(()=>{if(!je)return;je==="render"&&!Be.current&&(Be.current=!0,Jl(s,G));let he=!0,$e;return je==="viewport"&&o.current&&typeof IntersectionObserver=="function"&&($e=new IntersectionObserver(Qe=>{he&&H(Qe.pop())},{rootMargin:"100px"}),$e.observe(o.current)),()=>{he=!1,$e?.disconnect(),xf(o)}},[s,G,je,H,o]);const Q=rx(t,i);if(Q.ref=e?l:o,X)return Q.href=X,Q;const re=he=>{const $e=R??he.currentTarget.getAttribute("target");!fe&&!(he.metaKey||he.altKey||he.ctrlKey||he.shiftKey)&&!he.defaultPrevented&&(!$e||$e==="_self")&&he.button===0&&(he.preventDefault(),s.navigate({...G,replace:v,resetScroll:b,hashScrollIntoView:g,startTransition:_,viewTransition:S,ignoreBlocker:E}))},we=()=>{je==="intent"&&Jl(s,G)},Oe=()=>{je==="intent"&&xf(o)};return Q.onClick=Ts(k,re),Q.onBlur=Ts(C,Oe),Q.onFocus=Ts(B,H),Q.onMouseEnter=Ts(J,H),Q.onMouseLeave=Ts(P,Oe),Q.onTouchStart=Ts(N,we),sx(Q,t,z,ce,fe,i)}var nx={},ix={className:"active"},Ib=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function rx(t,e){const i={};for(const s in t)Ib.has(s)||s==="type"&&e!==void 0||s==="disabled"&&e==="a"||(i[s]=t[s]);return i}function sx(t,e,i,s,o,l){const{activeProps:c,inactiveProps:d,className:h,style:m,target:g}=e,v=m_(i?c:d,{})??(i?ix:nx);Object.assign(t,v),t.href=s,l!=="a"&&(t.disabled=o),t.target=g;const _=v.style;(m||_)&&(t.style=m&&_?{...m,..._}:m||_);const b=v.className;return(h||b)&&(t.className=h?b?`${h} ${b}`:h:b),o&&(t.role="link",t["aria-disabled"]=!0),i&&(t["data-status"]="active",t["aria-current"]="page"),t}var Ka=new WeakMap,xf=t=>{clearTimeout(Ka.get(t)),Ka.delete(t)},Ts=(t,e)=>t?i=>i.defaultPrevented||(t(i),i.defaultPrevented||e(i)):e;function ax(t,e,i){if(i)return;const s=t.maskedLocation??t,o=s.external?s.publicHref:e.history.createHref(s.publicHref)||"/";if(!((s.external||o!==s.publicHref)&&y_(o,e.protocolAllowlist)))return o}var xt=Z.memo(Z.forwardRef((t,e)=>
13{const i=t._asChild||"a",s=tx(t,e,i),o=typeof t.children=="function"?t.children({isActive:s["data-status"]==="active"}):t.children;return Z.createElement(i,s,o)}),ox);function ox(t,e){let i=0;for(const s in e)if(i++,t[s]!==e[s]&&(!Ib.has(s)||!En(t[s],e[s],!1,!0)))return!1;for(const s in t)i--;return i===0}var lx=class extends wb{constructor(e){super(e),this.useMatch=i=>zr({...i,from:this.id}),this.useRouteContext=i=>zb({...i,from:this.id}),this.useSearch=i=>Mb({...i,from:this.id}),this.useParams=i=>Lb({...i,from:this.id}),this.useLoaderDeps=i=>Db({...i,from:this.id}),this.useLoaderData=i=>Nb({...i,from:this.id}),this.useNavigate=()=>Ub({from:this.fullPath}),this.Link=bo.forwardRef((i,s)=>D.jsx(xt,{ref:s,from:this.fullPath,...i}))}};function ux(t){return new lx(t)}function cx(){return t=>fx(t)}var dx=class extends TO{constructor(t){super(t),this.useMatch=e=>zr({...e,from:this.id}),this.useRouteContext=e=>zb({...e,from:this.id}),this.useSearch=e=>Mb({...e,from:this.id}),this.useParams=e=>Lb({...e,from:this.id}),this.useLoaderDeps=e=>Db({...e,from:this.id}),this.useLoaderData=e=>Nb({...e,from:this.id}),this.useNavigate=()=>Ub({from:this.fullPath}),this.Link=bo.forwardRef((e,i)=>D.jsx(xt,{ref:i,from:this.fullPath,...e}))}};function fx(t){return new dx(t)}function ve(t){return e=>{const i=ux(e);return i.isRoot=!1,i}}function _e(t,e){let i,s,o;const l=()=>(i||(o=void 0,i=t().then(d=>{i=void 0,c.preload=void 0,s=d[e]}).catch(d=>{i=void 0,o=d})),i),c=function(h){if(o){if(ET(o)&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${o.message}`;if(!sessionStorage.getItem(m))throw sessionStorage.setItem(m,"1"),window.location.reload(),new Promise(()=>{})}throw o}if(!s)if(_u)_u(l());else throw l();return Z.createElement(s,h)};return c.preload=l,c}function hx(t){const e=_t(),i=`not-found-${hn(e.stores.location,s=>s.pathname)}-${hn(e.stores.status)}`;return D.jsx(Ih,{getResetKey:()=>i,onCatch:(s,o)=>{if(Mr(s))t.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(Mr(s))return t.fallback?.(s);throw s},children:t.children})}function px(){return D.jsx("p",{children:"Not Found"})}function Pb(t,e,i){return e.options.notFoundComponent?D.jsx(e.options.notFoundComponent,{...i}):t.options.defaultNotFoundComponent?D.jsx(t.options.defaultNotFoundComponent,{...i}):D.jsx(px,{})}function Hu(t,e){const i=e?.options.pendingComponent??t.options.defaultPendingComponent;return i?D.jsx(i,{}):null}var mx=(t,e)=>t[0]===e[0]&&t[1]===e[1],Bb=(t,e,i)=>!e.isRoot||e.options.shellComponent||e.options.wrapInSuspense||i===!1||i==="data-only"||!t.ssr,$b=Z.memo(function({routeId:e}){const i=_t();return D.jsx(gx,{router:i,match:hn(i.stores.getMatchStore(e))})});function gx({router:t,match:e}){const i=t.routesById[e.routeId],s=Hu(t,i),o=i.options.errorComponent??t.options.defaultErrorComponent,l=i.options.onCatch??t.options.defaultOnCatch,c=i.isRoot?i.options.notFoundComponent??t.options.notFoundRoute?.options.component:i.options.notFoundComponent,d=e.ssr===!1||e.ssr==="data-only",h=Bb(t,i,e.ssr)&&(i.options.wrapInSuspense??s??(i.options.errorComponent?.preload||d));let m=D.jsx(vx,{match:e});d&&(m=D.jsx(UO,{fallback:s,children:m})),c&&(m=D.jsx(hx,{fallback:_=>{if(_.routeId??=e.routeId,_.routeId!==e.routeId)throw _;return Z.createElement(c,_)},children:m})),o&&(m=D.jsx(Ih,{getResetKey:()=>e,errorComponent:o,onCatch:(_,b)=>{if(Mr(_))throw _.routeId??=e.routeId,_;l?.(_,b)},children:m})),h&&(m=D.jsx(Z.Suspense,{fallback:s,children:m}));const g=null,v=i.isRoot?i.options.shellComponent:void 0;return D.jsx(Bh.Provider,{value:e.routeId,children:v?D.jsxs(v,{children:[m,g]}):D.jsxs(D.Fragment,{children:[m,g]})})}var vx=Z.memo(function({match:e}){const i=_t(),s=e.routeId,o=i.routesById[s],l=Z.useMemo(()=>{const d=(o.options.remountDeps??i.options.defaultRemountDeps)?.({routeId:s,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return d?JSON.stringify(d):void 0},[s,e.loaderDeps,e._strictParams,e._strictSearch,o.options.remountDeps,i.options.defaultRemountDeps]),c=Z.useMemo(()=>{const d=o.options.component??i.options.defaultComponent;return d?D.jsx(d,{},l):D.jsx(qb,{})},[l,o.options.component,i.options.defaultComponent]);if(e.status==="pending"){if(i.ssr&&!Bb(i,o,e.ssr))return c;
13if(i._tx)throw i._tx[5];return Hu(i,o)}if(e.status==="notFound")return Pb(i,o,e.error);if(e.status==="error")throw e.error;return c}),qb=Z.memo(function(){const e=_t(),i=Z.useContext(Bh);let s,o,l;{const d=e.stores.getMatchStore(i);[s,o]=hn(d,h=>[!!h._notFound,h.error],{compare:mx}),l=hn(e.stores.ids,h=>h[h.indexOf(i)+1])}if(s)return Pb(e,e.routesById[i],o);if(!l)return null;const c=D.jsx($b,{routeId:l});return i===Us?D.jsx(Z.Suspense,{fallback:Hu(e),children:c}):c});function Hb(t,e){const i=t[1];t.length=0,i?.(e)}function yx({t}){const e=_t(),i=e._rendered??=[];return e.startTransition=(s,o)=>new Promise(l=>{Hb(i,!1),i.push(o,l),t(e),Z.startTransition(s)}),xb(()=>{const s=e.history.subscribe(e.load);e.updateLatestLocation();const o=e.latestLocation,l=e.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Dn(o.publicHref)!==Dn(l.publicHref))return e.commitLocation({...l,replace:!0,ignoreBlocker:!0}),s;const c=e.stores.resolvedLocation.get();return c?.href===o.href&&c.state.__TSR_key===o.state.__TSR_key?i.push(e.stores.matches.get(),d=>{d&&e.emit({type:"onRendered",...Iu(c,c)})}):e._tx||e.load({sync:!0}).catch(console.error),s},[e,e.history]),null}function _x(){const t=_t(),e=t.routesById[Us],i=Hu(t,e),s=D.jsxs(D.Fragment,{children:[D.jsx(yx,{t:Z.useState()[1]}),t.ssr?D.jsx(Fy,{}):D.jsx(Z.Suspense,{fallback:i,children:D.jsx(Fy,{})})]});return t.options.InnerWrap?D.jsx(t.options.InnerWrap,{children:s}):s}function Fy(){const t=_t(),e=t._rendered,i=hn(t.stores.matches,c=>e[0]??c),s=i[0],o=s?.routeId;xb(()=>{e[0]===i&&Hb(e,!0)},[e,i]);const l=o?D.jsx($b,{routeId:o}):null;return t.options.disableGlobalCatchBoundary?l:D.jsx(Ih,{getResetKey:()=>s,onCatch:void 0,children:l})}var bx=t=>({createMutableStore:Py,createReadonlyStore:Py,batch:HO}),wx=t=>new Sx(t),Sx=class extends uR{constructor(t){super(t,bx)}};function Ex({router:t,children:e,...i}){g_(i)&&t.update({...t.options,...i,context:{...t.options.context,...i.context}});const s=D.jsx(Cb.Provider,{value:t,children:e});return t.options.Wrap?D.jsx(t.options.Wrap,{children:s}):s}function Tx({router:t,...e}){return D.jsx(Ex,{router:t,...e,children:D.jsx(_x,{})})}function Vb(t){const e=_t({warn:t?.router===void 0}),i=t?.router||e;return hn(i.stores.__store,$h(t,i))}function Rx(t){const e=_t();return hn(e.stores.location,$h(t,e))}function Gy(t,e){if(e)for(const[i,s]of Object.entries(e))i!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&t.setAttribute(i,typeof s=="boolean"?"":String(s))}function Fb(t){const{attrs:e,children:i,nonce:s,preventScriptHoist:o}=t,l=Z.useMemo(()=>i===void 0?void 0:{__html:i},[i]);switch(t.tag){case"title":return D.jsx("title",{...e,suppressHydrationWarning:!0,children:i});case"meta":return D.jsx("meta",{...e,suppressHydrationWarning:!0});case"link":return D.jsx("link",{...e,precedence:e?.precedence??(e?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return t.inlineCss,D.jsx("style",{...e,dangerouslySetInnerHTML:l,nonce:s});case"script":return D.jsx(Ax,{attrs:e,preventScriptHoist:o,children:i});default:return null}}function Ax({attrs:t,children:e,preventScriptHoist:i}){_t();const s=Ph(),o=Z.useMemo(()=>e===void 0?void 0:{__html:e},[e]),l=typeof t?.type=="string"&&t.type!==""&&t.type!=="text/javascript"&&t.type!=="module";if(Z.useEffect(()=>{if(!l){if(t?.src){const c=document.createElement("a");c.href=t.src;const d=c.href;for(const m of document.scripts)if(m.src===d)return;const h=document.createElement("script");return Gy(h,t),document.head.appendChild(h),()=>h.remove()}if(typeof e=="string"){const c=typeof t?.type=="string"?t.type:"text/javascript",d=typeof t?.nonce=="string"?t.nonce:void 0;for(const m of document.scripts){if(m.hasAttribute("src"))continue;const g=m.getAttribute("type")??"text/javascript",v=m.getAttribute("nonce")??void 0;if(m.textContent===e&&g===c&&v===d)return}const h=document.createElement("script");return h.textContent=e,Gy(h,t),document.head.appendChild(h),()=>h.remove()}}},[t,e,l]),l&&typeof e=="string")return D.jsx("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:o});if(!s){if(t?.src)return D.jsx("script",{...t,suppressHydrationWarning:!0});if(typeof e=="string")return D.jsx("script",{...t,dangerouslySetInnerHTML:o,suppressHydrationWarning:!0})}return null}function Ox(t,e,i,s){i=j_(i);const o=i.map(E=>E.meta).filter(E=>E!==void 0),l=[],c={};let d;for(let E=o.length-1;E>=0;E--){const T=o[E];for(let R=T.length-1;R>=0;R--){const k=T[R];if(k)if(k.title)d||(d={tag:"title",children:k.title});else if("script:ld+json"in k)try{const C=JSON.stringify(k["script:ld+json"]);l.push({tag:"script",attrs:{type:"application/ld+json"},children:CT(C)})}catch{}else{const C=k.name??k.property;if(C){if(c[C])continue;c[C]=!0}l.push({tag:"meta",attrs:{...k,nonce:e}})}}}d&&l.push(d),e&&l.push({tag:"meta",attrs:{property:"csp-nonce",content:e}}),l.reverse();const h=i.flatMap(E=>E.links??[]).filter(E=>E!==void 0).map(E=>({tag:"link",attrs:{...E,nonce:e}})),m=t.ssr?.manifest,g=[];m&&(i.forEach(E=>{m.routes[E.routeId]?.css?.forEach(T=>
13{const R=wO(T);g.push({tag:"link",attrs:{rel:"stylesheet",...R,crossOrigin:bb(s,"stylesheet")??R.crossOrigin,suppressHydrationWarning:!0,nonce:e}})})}),m.inlineStyle&&g.push({tag:"style",attrs:{...m.inlineStyle.attrs,nonce:e},children:m.inlineStyle.children,inlineCss:!0}));const v=[];m&&i.forEach(E=>{m.routes[E.routeId]?.preloads?.forEach(T=>{v.push({tag:"link",attrs:{..._O(m,T,s),nonce:e}})})});const _=i.flatMap(E=>E.styles??[]).filter(E=>E!==void 0).map(({children:E,...T})=>({tag:"style",attrs:{...T,nonce:e},children:E})),b=i.flatMap(E=>E.headScripts??[]).filter(E=>E!==void 0).map(({children:E,...T})=>({tag:"script",attrs:{...T,nonce:e},children:E})),S=[];return Zl(S,l),S.push(...v),Zl(S,h),S.push(...g),Zl(S,_),Zl(S,b),S}var xx=t=>{const e=_t(),i=e.options.ssr?.nonce,s=Z.useCallback(o=>Ox(e,i,o,t),[t,i,e]);return hn(e.stores.matches,s,{compare:En})};function Cx(t){const e=xx(t.assetCrossOrigin),i=_t().options.ssr?.nonce;return D.jsx(D.Fragment,{children:e.map(s=>Z.createElement(Fb,{...s,key:`tsr-meta-${JSON.str
13ingify(s)}`,nonce:i}))})}var kx={suppressHydrationWarning:!0},jx=()=>{const t=_t(),e=t.options.ssr?.nonce,i=o=>{const l=SO(o,t.ssr?.manifest,e,kx);for(const c of l[1])if(typeof c.attrs?.src=="string"){const d=c;d.preventScriptHoist=!0}return l},s=o=>EO(i(o));return Nx(hn(t.stores.matches,s,{compare:En}))};function Nx(t){return D.jsx(D.Fragment,{children:t.map((e,i)=>Z.createElement(Fb,{...e,key:`tsr-scripts-${e.tag}-${i}`}))})}function Ky(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}function Qf(t,e){const i=Object.create(null);if(t)for(const s of Object.keys(t))Ky(s)&&(i[s]=t[s]);if(e&&typeof e=="object")for(const s of Object.keys(e))Ky(s)&&(i[s]=e[s]);return i}function Gb(t){return Object.create(null)}var Kb=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},hu=(t,e)=>{const i=e||t||{};typeof i.method>"u"&&(i.method="GET");const s=c=>hu(void 0,{...i,validator:c,inputValidator:c});return Object.assign(c=>hu(void 0,{...i,...c}),{options:i,middleware:c=>{const d=[...i.middleware||[]];c.forEach(m=>{cy in m?m.options.middleware&&d.push(...m.options.middleware):d.push(m)});const h=hu(void 0,{...i,middleware:d});return h[cy]=!0,h},validator:s,inputValidator:s,handler:(...c)=>{const[d,h]=c,m={...i,extractedFn:d,serverFn:h},g=[...m.middleware||[],Mx(m)];return d.method=i.method,Object.assign(async v=>{const _=await Yy(g,"client",{...d,...m,data:v?.data,headers:v?.headers,signal:v?.signal,fetch:v?.fetch,context:Gb()}),b=p_(_.error);if(b)throw b;if(_.error)throw _.error;return _.result},{...d,method:i.method,__executeServer:async v=>{const _=Kb(),b=_.contextAfterGlobalMiddlewares;return await Yy(g,"server",{...d,data:v.data,method:v.method??i.method,serverFnMeta:d.serverFnMeta,context:Qf(v.context,b),request:_.request}).then(S=>({result:S.result,error:S.error,context:S.sendContext}))}})}})};async function Yy(t,e,i){let s=Dx([...Sh()?.functionMiddleware||[],...t]);if(e==="server"){const l=Kb();l?.executedRequestMiddlewares&&(s=s.filter(c=>!l.executedRequestMiddlewares.has(c)))}const o=async l=>{const c=s.shift();if(!c)return l;try{let d="validator"in c.options?c.options.validator:void 0;!d&&"inputValidator"in c.options&&(d=c.options.inputValidator),d&&e==="server"&&(l.data=await Lx(d,l.data));let h;if(e==="client"?"client"in c.options&&(h=c.options.client):"server"in c.options&&(h=c.options.server),h){const g=await h({...l,next:async(v={})=>{const _=await o({...l,...v,context:Qf(l.context,v.context),sendContext:Qf(l.sendContext,v.sendContext),headers:J1(l.headers,v.headers),_callSiteFetch:l._callSiteFetch,fetch:l._callSiteFetch??v.fetch??l.fetch,result:v.result!==void 0?v.result:v instanceof Response?v:l.result,error:v.error??l.error});if(_.error)throw _.error;return _}});if(Eh(g))return{...l,error:g};if(g instanceof Response)return{...l,result:g};if(!g)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return g}return o(l)}catch(d){return{...l,error:d}}};return o({...i,headers:i.headers||{},sendContext:i.sendContext||{},context:i.context||Gb(),_callSiteFetch:i.fetch})}function Dx(t,e=100){const i=new Set,s=[],o=(l,c)=>{if(c>e)throw new Error(`Middleware nesting depth exceeded maximum of ${e}. Check for circular references.`);l.forEach(d=>{d.options.middleware&&o(d.options.middleware,c+1),i.has(d)||(i.add(d),s.push(d))})};return o(t,0),s}async function Lx(t,e){if(t==null)return{};if("~standard"in t){const i=await t["~standard"].validate(e);if(i.issues)throw new Error(JSON.stringify(i.issues,void 0,2));return i.value}if("parse"in t)return t.parse(e);if(typeof t=="function")return t(e);throw new Error("Invalid validator type!")}function Mx(t){return{"~types":void 0,options:{inputValidator:t.validator??t.inputValidator,client:async({next:e,sendContext:i,fetch:s,...o})=>{const l={...o,context:i,fetch:s};return e(await t.extractedFn?.(l))},server:async({next:e,...i})=>{const s=await t.serverFn?.(i);return e({...i,result:s})}}}}var jr=(t,e)=>{const i={type:"request",...e||t},s=o=>jr({},Object.assign(i,{validator:o,inputValidator:o}));return{options:i,middleware:o=>jr({},Object.assign(i,{middleware:o}
13)),validator:s,inputValidator:s,client:o=>jr({},Object.assign(i,{client:o})),server:o=>jr({},Object.assign(i,{server:o}))}};function Yb(t,e){for(let i=0,s=e.length;i<s;i++){const o=e[i];t.has(o)||(t.add(o),o.extends&&Yb(t,o.extends))}}var Ux=t=>({getOptions:async()=>{const e=await t();if(e.serializationAdapters){const i=new Set;Yb(i,e.serializationAdapters),e.serializationAdapters=Array.from(i)}return e},createMiddleware:jr});function Vu(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(t);o<s.length;o++)e.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(i[s[o]]=t[s[o]]);return i}function zx(t,e,i,s){function o(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function d(g){try{m(s.next(g))}catch(v){c(v)}}function h(g){try{m(s.throw(g))}catch(v){c(v)}}function m(g){g.done?l(g.value):o(g.value).then(d,h)}m((s=s.apply(t,e||[])).next())})}const Ix=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class qh extends Error{constructor(e,i="FunctionsError",s){super(e),this.name=i,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class Px extends qh{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Zy extends qh{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Qy extends qh{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Jf;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Jf||(Jf={}));class Bx{constructor(e,{headers:i={},customFetch:s,region:o=Jf.Any}={}){this.url=e,this.headers=i,this.region=o,this.fetch=Ix(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return zx(this,arguments,void 0,function*(i,s={}){var o;let l,c;try{const{headers:d,method:h,body:m,signal:g,timeout:v}=s;let _={},{region:b}=s;b||(b=this.region);const S=new URL(`${this.url}/${i}`);b&&b!=="any"&&(_["x-region"]=b,S.searchParams.set("forceFunctionRegion",b));let E;m&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&m instanceof Blob||m instanceof ArrayBuffer?(_["Content-Type"]="application/octet-stream",E=m):typeof m=="string"?(_["Content-Type"]="text/plain",E=m):typeof FormData<"u"&&m instanceof FormData?E=m:(_["Content-Type"]="application/json",E=JSON.stringify(m)):m&&typeof m!="string"&&!(typeof Blob<"u"&&m instanceof Blob)&&!(m instanceof ArrayBuffer)&&!(typeof FormData<"u"&&m instanceof FormData)?E=JSON.stringify(m):E=m;let T=g;v&&(c=new AbortController,l=setTimeout(()=>c.abort(),v),g?(T=c.signal,g.addEventListener("abort",()=>c.abort())):T=c.signal);const R=yield this.fetch(S.toString(),{method:h||"POST",headers:Object.assign(Object.assign(Object.assign({},_),this.headers),d),body:E,signal:T}).catch(J=>{throw new Px(J)}),k=R.headers.get("x-relay-error");if(k&&k==="true")throw new Zy(R);if(!R.ok)throw new Qy(R);let C=((o=R.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),B;return C==="application/json"?B=yield R.json():C==="application/octet-stream"||C==="application/pdf"?B=yield R.blob():C==="text/event-stream"?B=R:C==="multipart/form-data"?B=yield R.formData():B=yield R.text(),{data:B,error:null,response:R}}catch(d){return{data:null,error:d,response:d instanceof Qy||d instanceof Zy?d.context:void 0}}finally{l&&clearTimeout(l)}})}}const Zb=3,Jy=t=>Math.min(1e3*2**t,3e4),$x=[520,503],Qb=["GET","HEAD","OPTIONS"];var Xy=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
13de=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Wy(t,e){return new Promise(i=>{if(e?.aborted){i();return}const s=setTimeout(()=>{e?.removeEventListener("abort",o),i()},t);function o(){clearTimeout(s),i()}e?.addEventListener("abort",o)})}function qx(t,e,i,s){return!(!s||i>=Zb||!Qb.includes(t)||!$x.includes(e))}var Hx=class{constructor(t){var e,i,s,o,l;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(i=t.isMaybeSingle)!==null&&i!==void 0?i:!1,this.shouldStripNulls=(s=t.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(o=t.urlLengthLimit)!==null&&o!==void 0?o:8e3,this.retryEnabled=(l=t.retry)!==null&&l!==void 0?l:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var i=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const c=this.headers.get("Accept");c==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!c||c==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let l=(async()=>{let c=0;for(;;){const m={};i.headers.forEach((v,_)=>{m[_]=v}),c>0&&(m["X-Retry-Count"]=String(c));let g;try{g=await s(i.url.toString(),{method:i.method,headers:m,body:JSON.stringify(i.body,(v,_)=>typeof _=="bigint"?_.toString():_),signal:i.signal})}catch(v){if(v?.name==="AbortError"||v?.code==="ABORT_ERR"||!Qb.includes(i.method))throw v;if(i.retryEnabled&&c<Zb){const _=Jy(c);c++,await Wy(_,i.signal);continue}throw v}if(qx(i.method,g.status,c,i.retryEnabled)){var d,h;const v=(d=(h=g.headers)===null||h===void 0?void 0:h.get("Retry-After"))!==null&&d!==void 0?d:null,_=v!==null?Math.max(0,parseInt(v,10)||0)*1e3:Jy(c);await g.text(),c++,await Wy(_,i.signal);continue}return await i.processResponse(g)}})();return this.shouldThrowOnError||(l=l.catch(c=>{var d;let h="",m="",g="";const v=c?.cause;if(v){var _,b,S,E;const k=(_=v?.message)!==null&&_!==void 0?_:"",C=(b=v?.code)!==null&&b!==void 0?b:"";h=`${(S=c?.name)!==null&&S!==void 0?S:"FetchError"}: ${c?.message}`,h+=`
14
15Caused by: ${(E=v?.name)!==null&&E!==void 0?E:"Error"}: ${k}`,C&&(h+=` (${C})`),v?.stack&&(h+=`
16${v.stack}`)}else{var T;h=(T=c?.stack)!==null&&T!==void 0?T:""}const R=this.url.toString().length;return c?.name==="AbortError"||c?.code==="ABORT_ERR"?(g="",m="Request was aborted (timeout or manual cancellation)",R>this.urlLengthLimit&&(m+=`. Note: Your request URL is ${R} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(v?.name==="HeadersOverflowError"||v?.code==="UND_ERR_HEADERS_OVERFLOW")&&(g="",m="HTTP headers exceeded server limits (typically 16KB)",R>this.urlLengthLimit&&(m+=`. Your request URL is ${R} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=c?.name)!==null&&d!==void 0?d:"FetchError"}: ${c?.message}`,details:h,hint:m,code:g},data:null,count:null,status:0,statusText:""}})),l.then(t,e)}async processResponse(t){var e=this;let i=null,s=null,o=null,l=t.status,c=t.statusText;if(t.ok){var d,h;if(e.method!=="HEAD"){var m;const _=await t.text();if(_!=="")if(e.headers.get("Accept")==="text/csv")s=_;else if(e.headers.get("Accept")&&(!((m=e.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text")))s=_;else try{s=JSON.parse(_)}catch{if(i={message:_},s=null,e.shouldThrowOnError)throw new Xy({message:_,details:"",hint:"",code:""})}}const g=(d=e.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),v=(h=t.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");g&&v&&v.length>1&&(o=parseInt(v[1])),e.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(i={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,o=null,l=406,c="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const g=await t.text();try{i=JSON.parse(g),Array.isArray(i)&&t.status===404&&(s=[],i=null,l=200,c="OK")}catch{t.status===404&&g===""?(l=204,c="No Content"):i={message:g}}if(i&&e.shouldThrowOnError)throw new Xy(i)}return{success:i===null,error:i,data:s,count:o,status:l,statusText:c}}returns(){return this}overrideTypes(){return this}},Vx=class extends Hx{throwOnError(){return super.throwOnError()}select(t){let e=!1;const i=(t??"*").split("").map(s=>/\s/.test(s)&&!e?"":(s==='"'&&(e=!e),s)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:i,foreignTable:s,referencedTable:o=s}={}){const l=o?`${o}.order`:"order",c=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${c?`${c},`:""}${t}.${e?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:i=e}={}){const s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,e,{foreignTable:i,referencedTable:s=i}={}){const o=typeof s>"u"?"offset":`${s}.offset`,l=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(l,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
16explain({analyze:t=!1,verbose:e=!1,settings:i=!1,buffers:s=!1,wal:o=!1,format:l="text"}={}){var c;const d=[t?"analyze":null,e?"verbose":null,i?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),h=(c=this.headers.get("Accept"))!==null&&c!==void 0?c:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${l}; for="${h}"; options=${d};`),l==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const e0=new RegExp("[,()]");var Cs=class extends Vx{throwOnError(){return super.throwOnError()}eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const i=Array.from(new Set(e)).map(s=>typeof s=="string"&&e0.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${i})`),this}notIn(t,e){const i=Array.from(new Set(e)).map(s=>typeof s=="string"&&e0.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`not.in.(${i})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:i,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const l=i===void 0?"":`(${i})`;return this.url.searchParams.append(t,`${o}fts${l}.${e}`),this}match(t){return Object.entries(t).filter(([e,i])=>i!==void 0).forEach(([e,i])=>{this.url.searchParams.append(e,`eq.${i}`)}),this}not(t,e,i){return this.url.searchParams.append(t,`not.${e}.${i}`),this}or(t,{foreignTable:e,referencedTable:i=e}={}){const s=i?`${i}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,e,i){return this.url.searchParams.append(t,`${e}.${i}`),this}},Fx=class{constructor(t,{headers:e={},schema:i,fetch:s,urlLengthLimit:o=8e3,retry:l}){this.url=t,this.headers=new Headers(e),this.schema=i,this.fetch=s,this.urlLengthLimit=o,this.retry=l}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:i=!1,count:s}=e??{},o=i?"HEAD":"GET";let l=!1;const c=(t??"*").split("").map(m=>/\s/.test(m)&&!l?"":(m==='"'&&(l=!l),m)).join(""),{url:d,headers:h}=this.cloneRequestState();return d.searchParams.set("select",c),s&&h.append("Prefer",`count=${s}`),new Cs({method:o,url:d,headers:h,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:i=!0}={}){var s;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(e&&c.append("Prefer",`count=${e}`),i||c.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((h,m)=>h.concat(Object.keys(m)),[]);if(d.length>0){const h=[...new Set(d)].map(m=>`"${m}"`);l.searchParams.set("columns",h.join(","))}}return new Cs({method:o,url:l,headers:c,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:i=!1,count:s,defaultToNull:o=!0}={}){var l;const c="POST",{url:d,headers:h}=this.cloneRequestState();if(h.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),e!==void 0&&d.searchParams.set("on_conflict",e),s&&h.append("Prefer",`count=${s}`),o||h.append("Prefer","missing=default"),Array.isArray(t)){const m=t.reduce((g,v)=>g.concat(Object.keys(v)),[]);if(m.length>0){const g=[...new Set(m)].map(v=>`"${v}"`);d.searchParams.set("columns",g.join(","))}}return new Cs({method:c,url:d,headers:h,schema:this.schema,body:t,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var i;const s="PATCH",{url:o,headers:l}=this.cloneRequestState();return e&&l.append("Prefer",`count=${e}`),new Cs({method:s,url:o,headers:l,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const i="DELETE",{url:s,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new Cs({method:i,url:s,headers:o,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function ro(t){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(t)}function Gx(t,e){if(ro(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,e);if(ro(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kx(t){var e=Gx(t,"string");return ro(e)=="symbol"?e:e+""}
16function Yx(t,e,i){return(e=Kx(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function t0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),i.push.apply(i,s)}return i}function Xl(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?t0(Object(i),!0).forEach(function(s){Yx(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):t0(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}var Zx=class Jb{constructor(e,{headers:i={},schema:s,fetch:o,timeout:l,urlLengthLimit:c=8e3,retry:d}={}){this.url=e,this.headers=new Headers(i),this.schemaName=s,this.urlLengthLimit=c;const h=o??globalThis.fetch;l!==void 0&&l>0?this.fetch=(m,g)=>{const v=new AbortController,_=setTimeout(()=>v.abort(),l),b=g?.signal;if(b){if(b.aborted)return clearTimeout(_),h(m,g);const S=()=>{clearTimeout(_),v.abort()};return b.addEventListener("abort",S,{once:!0}),h(m,Xl(Xl({},g),{},{signal:v.signal})).finally(()=>{clearTimeout(_),b.removeEventListener("abort",S)})}return h(m,Xl(Xl({},g),{},{signal:v.signal})).finally(()=>clearTimeout(_))}:this.fetch=h,this.retry=d}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Fx(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new Jb(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,i={},{head:s=!1,get:o=!1,count:l}={}){var c;let d;const h=new URL(`${this.url}/rpc/${e}`);let m;const g=b=>b!==null&&typeof b=="object"&&(!Array.isArray(b)||b.some(g)),v=s&&Object.values(i).some(g);v?(d="POST",m=i):s||o?(d=s?"HEAD":"GET",Object.entries(i).filter(([b,S])=>S!==void 0).map(([b,S])=>[b,Array.isArray(S)?`{${S.join(",")}}`:`${S}`]).forEach(([b,S])=>{h.searchParams.append(b,S)})):(d="POST",m=i);const _=new Headers(this.headers);return v?_.set("Prefer",l?`count=${l},return=minimal`:"return=minimal"):l&&_.set("Prefer",`count=${l}`),new Cs({method:d,url:h,headers:_,schema:this.schemaName,body:m,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class Qx{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const i=globalThis;if(typeof globalThis<"u"&&typeof i.WebSocket<"u")return{type:"native",wsConstructor:i.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof i.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&i.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const o=globalThis.process;if(o){const l=o.versions;if(l&&l.node){const c=l.node,d=parseInt(c.replace(/^v/,"").split(".")[0]);return d>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${d} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${d} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
17import ws from "ws"
18new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let i=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(i+=`
19
20Suggested solution: ${e.workaround}`),new Error(i)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const Jx="2.108.1",Xx=`realtime-js/${Jx}`,Wx="1.0.0",Xb="2.0.0",eC=Xb,tC=1e4,nC=100,Fi={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Wb={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Xf={connecting:"connecting",closing:"closing",closed:"closed"};class iC{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,i){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return i(this._binaryEncodeUserBroadcastPush(e));let s=[e.join_ref,e.ref,e.topic,e.event,e.payload];return i(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(e){var i;return this._isArrayBuffer((i=e.payload)===null||i===void 0?void 0:i.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var i,s;const o=(s=(i=e.payload)===null||i===void 0?void 0:i.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(e){var i,s;const o=(s=(i=e.payload)===null||i===void 0?void 0:i.payload)!==null&&s!==void 0?s:{},c=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,c)}_encodeUserBroadcastPush(e,i,s){var o,l;const c=e.topic,d=(o=e.ref)!==null&&o!==void 0?o:"",h=(l=e.join_ref)!==null&&l!==void 0?l:"",m=e.payload.event,g=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},v=Object.keys(g).length===0?"":JSON.stringify(g);if(h.length>255)throw new Error(`joinRef length ${h.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`topic length ${c.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`userEvent length ${m.length} exceeds maximum of 255`);if(v.length>255)throw new Error(`metadata length ${v.length} exceeds maximum of 255`);const _=this.USER_BROADCAST_PUSH_META_LENGTH+h.length+d.length+c.length+m.length+v.length,b=new ArrayBuffer(this.HEADER_LENGTH+_);let S=new DataView(b),E=0;S.setUint8(E++,this.KINDS.userBroadcastPush),S.setUint8(E++,h.length),S.setUint8(E++,d.length),S.setUint8(E++,c.length),S.setUint8(E++,m.length),S.setUint8(E++,v.length),S.setUint8(E++,i),Array.from(h,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(d,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(c,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(m,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(v,R=>S.setUint8(E++,R.charCodeAt(0)));var T=new Uint8Array(b.byteLength+s.byteLength);
20return T.set(new Uint8Array(b),0),T.set(new Uint8Array(s),b.byteLength),T.buffer}decode(e,i){if(this._isArrayBuffer(e)){let s=this._binaryDecode(e);return i(s)}if(typeof e=="string"){const s=JSON.parse(e),[o,l,c,d,h]=s;return i({join_ref:o,ref:l,topic:c,event:d,payload:h})}return i({})}_binaryDecode(e){const i=new DataView(e),s=i.getUint8(0),o=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,i,o)}_decodeUserBroadcast(e,i,s){const o=i.getUint8(1),l=i.getUint8(2),c=i.getUint8(3),d=i.getUint8(4);let h=this.HEADER_LENGTH+4;const m=s.decode(e.slice(h,h+o));h=h+o;const g=s.decode(e.slice(h,h+l));h=h+l;const v=s.decode(e.slice(h,h+c));h=h+c;const _=e.slice(h,e.byteLength),b=d===this.JSON_ENCODING?JSON.parse(s.decode(_)):_,S={type:this.BROADCAST_EVENT,event:g,payload:b};return c>0&&(S.meta=JSON.parse(v)),{join_ref:null,ref:null,topic:m,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(e){var i;return e instanceof ArrayBuffer||((i=e?.constructor)===null||i===void 0?void 0:i.name)==="ArrayBuffer"}_pick(e,i){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([s])=>i.includes(s)))}}var Je;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Je||(Je={}));const n0=(t,e,i={})=>{var s;const o=(s=i.skipTypes)!==null&&s!==void 0?s:[];return e?Object.keys(e).reduce((l,c)=>(l[c]=rC(c,t,e,o),l),{}):{}},rC=(t,e,i,s)=>{const o=e.find(d=>d.name===t),l=o?.type,c=i[t];return l&&!s.includes(l)?ew(l,c):Wf(c)},ew=(t,e)=>{if(t.charAt(0)==="_"){const i=t.slice(1,t.length);return lC(e,i)}switch(t){case Je.bool:return sC(e);case Je.float4:case Je.float8:case Je.int2:case Je.int4:case Je.int8:case Je.numeric:case Je.oid:return aC(e);case Je.json:case Je.jsonb:return oC(e);case Je.timestamp:return uC(e);case Je.abstime:case Je.date:case Je.daterange:case Je.int4range:case Je.int8range:case Je.money:case Je.reltime:case Je.text:case Je.time:case Je.timestamptz:case Je.timetz:case Je.tsrange:case Je.tstzrange:return Wf(e);default:return Wf(e)}},Wf=t=>t,sC=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},aC=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},oC=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},lC=(t,e)=>{if(typeof t!="string")return t;const i=t.length-1,s=t[i];if(t[0]==="{"&&s==="}"){let l;const c=t.slice(1,i);try{l=JSON.parse("["+c+"]")}catch{l=c?c.split(","):[]}return l.map(d=>ew(e,d))}return t},uC=t=>typeof t=="string"?t.replace(" ","T"):t,tw=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var Ya=t=>typeof t=="function"?t:function(){return t},cC=typeof self<"u"?self:null,ks=typeof window<"u"?window:null,kn=cC||ks||globalThis,dC="2.0.0",fC=1e4,hC=1e3,Nn={connecting:0,open:1,closing:2,closed:3},Pt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ai={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},eh={longpoll:"longpoll",websocket:"websocket"},pC={complete:4},th="base64url.bearer.phx.",Wl=class{constructor(t,e,i,s){this.channel=t,this.event=e,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,j
vendor: 5,316 bytes, line 20
20oin_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:e,_ref:i}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},nw=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},mC=class{constructor(t,e,i){this.state=Pt.closed,this.topic=t,this.params=Ya(e||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Wl(this,ai.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new nw(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Pt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=Pt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Pt.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=Pt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Wl(this,ai.leave,Ya({}),this.timeout).send(),this.state=Pt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ai.reply,(s,o)=>{this.trigger(this.replyEventName(o),s)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Pt.closed,this.bindings=[]}onClose(t){this.on(ai.close,t)}onError(t){return this.on(ai.error,e=>t(e))}on(t,e){let i=this.bindingRef++;return this.bindings.push({event:t,ref:i,callback:e}),i}off(t,e){this.bindings=this.bindings.filter(i=>!(i.event===t&&(typeof e>"u"||e===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,i=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Wl(this,t,function(){return e},i);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Pt.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ai.close,"leave")},i=new Wl(this,ai.leave,Ya({}),t);return i.receive("ok",()=>e()).receive("timeout",()=>e()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(t,e,i){return e}filterBindings(t,e,i){return!0}isMember(t,e,i,s){return this.topic!==t?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:i,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Pt.joining,this.joinPush.resend(t))}trigger(t,e,i,s){let o=this.onMessage(t,e,i,s);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let l=this.bindings.filter(c=>c.event===t&&this.filterBindings(c,e,i));for(let c=0;c<l.length;c++)l[c].callback(o,i,s||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Pt.closed}isErrored(){return this.state===Pt.errored}isJoined(){return this.state===Pt.joined}isJoining(){return this.state===Pt.joining}isLeaving(){return this.state===Pt.leaving}},wu=class{static request(t,e,i,s,o,l,c){if(kn.XDomainRequest){let d=new kn.XD
20omainRequest;return this.xdomainRequest(d,t,e,s,o,l,c)}else if(kn.XMLHttpRequest){let d=new kn.XMLHttpRequest;return this.xhrRequest(d,t,e,i,s,o,l,c)}else{if(kn.fetch&&kn.AbortController)return this.fetchRequest(t,e,i,s,o,l,c);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,i,s,o,l,c){let d={method:t,headers:i,body:s},h=null;return o&&(h=new AbortController,setTimeout(()=>h.abort(),o),d.signal=h.signal),kn.fetch(e,d).then(m=>m.text()).then(m=>this.parseJSON(m)).then(m=>c&&c(m)).catch(m=>{m.name==="AbortError"&&l?l():c&&c(null)}),h}static xdomainRequest(t,e,i,s,o,l,c){return t.timeout=o,t.open(e,i),t.onload=()=>{let d=this.parseJSON(t.responseText);c&&c(d)},l&&(t.ontimeout=l),t.onprogress=()=>{},t.send(s),t}static xhrRequest(t,e,i,s,o,l,c,d){t.open(e,i,!0),t.timeout=l;for(let[h,m]of Object.entries(s))t.setRequestHeader(h,m);return t.onerror=()=>d&&d(null),t.onreadystatechange=()=>{if(t.readyState===pC.complete&&d){let h=this.parseJSON(t.responseText);d(h)}},c&&(t.ontimeout=c),t.send(o),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let i=[];for(var s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=e?`${e}[${s}]`:s,l=t[s];typeof l=="object"?i.push(this.serialize(l,o)):i.push(encodeURIComponent(o)+"="+encodeURIComponent(l))}return i.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let i=t.match(/\?/)?"&":"?";return`${t}${i}${this.serialize(e)}`}},gC=t=>{let e="",i=new Uint8Array(t),s=i.byteLength;for(let o=0;o<s;o++)e+=String.fromCharCode(i[o]);return btoa(e)},Rs=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(th)&&(this.authToken=atob(e[1].slice(th.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=Nn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+eh.websocket),"$1/"+eh.longpoll)}endpointURL(){return wu.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,i){this.close(t,e,i),this.readyState=Nn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Nn.open||this.readyState===Nn.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:i,token:s,messages:o}=e;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else i=0;switch(i){case 200:o.forEach(l=>{setTimeout(()=>this.onmessage({data:l}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Nn.open,this.onopen({}),this.poll();break;
20case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(t){typeof t!="string"&&(t=gC(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(`
21`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,i){for(let o of this.reqs)o.abort();this.readyState=Nn.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(t,e,i,s,o){let l,c=()=>{this.reqs.delete(l),s()};l=wu.request(t,this.endpointURL(),e,i,this.timeout,c,d=>{this.reqs.delete(l),this.isActive()&&o(d)}),this.reqs.add(l)}},vC=class qa{constructor(e,i={}){let s=i.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,o=>{let{onJoin:l,onLeave:c,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=qa.syncState(this.state,o,l,c),this.pendingDiffs.forEach(h=>{this.state=qa.syncDiff(this.state,h,l,c)}),this.pendingDiffs=[],d()}),this.channel.on(s.diff,o=>{let{onJoin:l,onLeave:c,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=qa.syncDiff(this.state,o,l,c),d())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return qa.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,i,s,o){let l=this.clone(e),c={},d={};return this.map(l,(h,m)=>{i[h]||(d[h]=m)}),this.map(i,(h,m)=>{let g=l[h];if(g){let v=m.metas.map(E=>E.phx_ref),_=g.metas.map(E=>E.phx_ref),b=m.metas.filter(E=>_.indexOf(E.phx_ref)<0),S=g.metas.filter(E=>v.indexOf(E.phx_ref)<0);b.length>0&&(c[h]=m,c[h].metas=b),S.length>0&&(d[h]=this.clone(g),d[h].metas=S)}else c[h]=m}),this.syncDiff(l,{joins:c,leaves:d},s,o)}static syncDiff(e,i,s,o){let{joins:l,leaves:c}=this.clone(i);return s||(s=function(){}),o||(o=function(){}),this.map(l,(d,h)=>{let m=e[d];if(e[d]=this.clone(h),m){let g=e[d].metas.map(_=>_.phx_ref),v=m.metas.filter(_=>g.indexOf(_.phx_ref)<0);e[d].metas.unshift(...v)}s(d,m,h)}),this.map(c,(d,h)=>{let m=e[d];if(!m)return;let g=h.metas.map(v=>v.phx_ref);m.metas=m.metas.filter(v=>g.indexOf(v.phx_ref)<0),o(d,m,h),m.metas.length===0&&delete e[d]}),e}static list(e,i){return i||(i=function(s,o){return o}),this.map(e,(s,o)=>i(s,o))}static map(e,i){return Object.getOwnPropertyNames(e).map(s=>i(s,e[s]))}static clone(e){return JSON.parse(JSON.stringify(e))}},eu={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let i=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(i))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[i,s,o,l,c]=JSON.parse(t);return e({join_ref:i,ref:s,topic:o,event:l,payload:c})}},binaryEncode(t){let{join_ref:e,ref:i,event:s,topic:o,payload:l}=t,c=this.META_LENGTH+e.length+i.length+o.length+s.length,d=new ArrayBuffer(this.HEADER_LENGTH+c),h=new DataView(d),m=0;h.setUint8(m++,this.KINDS.push),h.setUint8(m++,e.length),h.setUint8(m++,i.length),h.setUint8(m++,o.length),h.setUint8(m++,s.length),Array.from(e,v=>h.setUint8(m++,v.charCodeAt(0))),Array.from(i,v=>h.setUint8(m++,v.charCodeAt(0))),Array.from(o,v=>h.setUint8(m++,v.charCodeAt(0))),Array.from(s,v=>h.setUint8(m++,v.charCodeAt(0)));var g=new Uint8Array(d.byteLength+l.byteLength);return g.set(new Uint8Array(d),0),g.set(new Uint8Array(l),d.byteLength),g.buffer},binaryDecode(t){let e=new DataView(t),i=e.getUint8(0),s=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(t,e,s);case this.KINDS.reply:return this.decodeReply(t,e,s);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,s)}},decodePush(t,e,i){let s=e.getUint8(1),o=e.getUint8(2),l=e.getUint8(3),c=this.HEADER_LENGTH+this.META_LENGTH-1,d=i.decode(t.slice(c,c+s));c=c+s;
21let h=i.decode(t.slice(c,c+o));c=c+o;let m=i.decode(t.slice(c,c+l));c=c+l;let g=t.slice(c,t.byteLength);return{join_ref:d,ref:null,topic:h,event:m,payload:g}},decodeReply(t,e,i){let s=e.getUint8(1),o=e.getUint8(2),l=e.getUint8(3),c=e.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,h=i.decode(t.slice(d,d+s));d=d+s;let m=i.decode(t.slice(d,d+o));d=d+o;let g=i.decode(t.slice(d,d+l));d=d+l;let v=i.decode(t.slice(d,d+c));d=d+c;let _=t.slice(d,t.byteLength),b={status:v,response:_};return{join_ref:h,ref:m,topic:g,event:ai.reply,payload:b}},decodeBroadcast(t,e,i){let s=e.getUint8(1),o=e.getUint8(2),l=this.HEADER_LENGTH+2,c=i.decode(t.slice(l,l+s));l=l+s;let d=i.decode(t.slice(l,l+o));l=l+o;let h=t.slice(l,t.byteLength);return{join_ref:null,ref:null,topic:c,event:d,payload:h}}},yC=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||fC,this.transport=e.transport||kn.WebSocket||Rs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let i=null;try{i=kn&&kn.sessionStorage}catch{}this.sessionStore=e.sessionStorage||i,this.establishedConnections=0,this.defaultEncoder=eu.encode.bind(eu),this.defaultDecoder=eu.decode.bind(eu),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Rs?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;ks&&ks.addEventListener&&(ks.addEventListener("pagehide",o=>{this.conn&&(this.disconnect(),s=this.connectClock)}),ks.addEventListener("pageshow",o=>{s===this.connectClock&&(s=null,this.connect())}),ks.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=o=>e.rejoinAfterMs?e.rejoinAfterMs(o):[1e3,2e3,5e3][o-1]||1e4,this.reconnectAfterMs=o=>e.reconnectAfterMs?e.reconnectAfterMs(o):[10,50,100,150,200,250,500,1e3,2e3][o-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(o,l,c)=>{console.log(`${o}: ${l}`,c)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Ya(e.params||{}),this.endPoint=`${t}/${eh.websocket}`,this.vsn=e.vsn||dC,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new nw(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return Rs}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=wu.appendParams(wu.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,i)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ya(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Rs?this.connectWithF
vendor: 4,353 bytes, line 21
21allback(Rs,this.longPollFallbackMs):this.transportConnect())}log(t,e,i){this.logger&&this.logger(t,e,i)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let s=this.onMessage(o=>{o.ref===e&&(this.off([s]),t(Date.now()-i))});return!0}transportName(t){return t===Rs?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${th}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let i=!1,s=!0,o,l,c=this.transportName(t),d=h=>{this.log("transport",`falling back to ${c}...`,h),this.off([o,l]),s=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${c}`))return d("memorized");this.fallbackTimer=setTimeout(d,e),l=this.onError(h=>{this.log("transport","error",h),s&&!i&&(clearTimeout(this.fallbackTimer),d(h))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!s){let h=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${h}`,"true"),this.log("transport",`established ${h} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,e),this.ping(h=>{this.log("transport","connected to primary after",h),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),hC,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,i){if(!this.conn)return t&&t();const s=this.conn;this.waitForBufferDone(s,()=>{e?s.close(e,i||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,i=1){if(i===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,i+1)},150*i)}waitForSocketClosed(t,e,i=1){if(i===5||t.readyState===Nn.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,i+1)},150*i)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,i=this.establishedConnections;this.triggerStateCallbacks("error",t,e,i),(e===this.transport||i>0)&&this.triggerChanError(t)}
21triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(ai.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case Nn.connecting:return"connecting";case Nn.open:return"open";case Nn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([i])=>t.indexOf(i)===-1)}channel(t,e={}){let i=new mC(t,e,this);return this.channels.push(i),i}push(t){if(this.hasLogger()){let{topic:e,event:i,payload:s,ref:o,join_ref:l}=t;this.log("push",`${e} ${i} (${l}, ${o})`,s)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:i,event:s,payload:o,ref:l,join_ref:c}=e;if(l&&l===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(o.status==="ok"?"ok":"error",d)}catch(h){this.log("error","error in heartbeat callback",h)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${o.status||""} ${i} ${s} ${l&&"("+l+")"||""}`.trim(),o);for(let d=0;d<this.channels.length;d++){const h=this.channels[d];h.isMember(i,s,o,c)&&h.trigger(s,o,l,c)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([i,s])=>{try{s(...e)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(i){this.log("error",`error triggering ${t} callbacks`,i)}}leaveOpenTopic(t){let e=this.channels.find(i=>i.topic===t&&(i.isJoined()||i.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class Za{constructor(e,i){const s=bC(i);this.presence=new vC(e.getChannel(),s),this.presence.onJoin((o,l,c)=>{const d=Za.onJoinPayload(o,l,c);e.getChannel().trigger("presence",d)}),this.presence.onLeave((o,l,c)=>{const d=Za.onLeavePayload(o,l,c);e.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return Za.transformState(this.presence.state)}static transformState(e){return e=_C(e),Object.getOwnPropertyNames(e).reduce((i,s)=>{const o=e[s];return i[s]=pu(o),i},{})}static onJoinPayload(e,i,s){const o=i0(i),l=pu(s);return{event:"join",key:e,currentPresences:o,newPresences:l}}static onLeavePayload(e,i,s){const o=i0(i),l=pu(s);return{event:"leave",key:e,currentPresences:o,leftPresences:l}}}function pu(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function _C(t){return JSON.parse(JSON.stringify(t))}function bC(t){return t?.events&&{events:t.events}}function i0(t){return t?.metas?pu(t):[]}var r0;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(r0||(r0={}));class wC{get state(){return this.presenceAdapter.state}constructor(e,i){this.channel=e,this.presenceAdapter=new Za(this.channel.channelAdapter,i)}}function SC(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
21if(typeof e.code=="number"){const i=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${i}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class EC{constructor(e,i,s){const o=TC(s);this.channel=e.getSocket().channel(i,o),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,i){return this.channel.on(e,i)}off(e,i){this.channel.off(e,i)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,i,s){let o;try{o=this.channel.push(e,i,s)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>nC){const l=this.channel.pushBuffer.shift();l.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${l.event}`,l.payload())}return o}updateJoinPayload(e){const i=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},i),e)}canPush(){return this.socket.isConnected()&&this.state===Fi.joined}isJoined(){return this.state===Fi.joined}isJoining(){return this.state===Fi.joining}isClosed(){return this.state===Fi.closed}isLeaving(){return this.state===Fi.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function TC(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var s0;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(s0||(s0={}));var Ls;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Ls||(Ls={}));var oi;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(oi||(oi={}));class Qa{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,i={config:{}},s){var o,l;if(this.topic=e,this.params=i,this.socket=s,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.channelAdapter=new EC(this.socket.socketAdapter,e,this.params),this.presence=new wC(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=tw(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((l=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,i=this.timeout){var s,o,l;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:c,presence:d,private:h}}=this.params,m=(o=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(b=>b.filter))!==null&&o!==void 0?o:[],g=!!this.bindings[Ls.PRESENCE]&&this.bindings[Ls.PRESENCE].length>0||((l=this.params.config.presence)===null||l===void 0?void 0:l.enabled)===!0,v={},_={broadcast:c,presence:Object.assign(Object.assign({},d),{enabled:g}),postgres_changes:m,private:h};this.socket.accessTokenValue&&(v.access_token=this.socket.accessTokenValue),this._onError(b=>{e?.(oi.CHANNEL_ERROR,SC(b))}),this._onClose(()=>e?.(oi.CLOSED)),this.updateJoinPayload(Object.assign({config:_},v)),this._updateFilterMessage(),this.channelAdapter.subscribe(i).receive("ok",async({postgres_changes:b})=>{if(this.socket._isManualToken()||this.socket.setAuth(),b===void 0){e?.(oi.SUBSCRIBED);return}this._updatePostgresBindings(b,e)}).receive("error",b=>{this.state=Fi.errored;const S=Object.values(b).join(", ")||"error";e?.(oi.CHANNEL_ERROR,new Error(S,{cause:b}))}).receive("timeout",()=>{e?.(oi.TIMED_OUT)})}return this}_updatePostgresBindings(e,i){var s;const o=this.bindings.postgres_changes,l=(s=o?.length)!==null&&s!==void 0?s:0,c=[];for(let d=0;d<l;d++){const h=o[d],{filter:{event:m,schema:g,table:v,filter:_}}=h,b=e&&e[d];if(b&&b.event===m&&Qa.isFilterValueEqual(b.schema,g)&&Qa.isFilterValueEqual(b.table,v)&&Qa.isFilterValueEqual(b.filter,_))c.push(Object.assign(Object.assign({},h),{id:b.id}));else{this.unsubscribe(),this.state=Fi.errored,i?.(oi.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=c,this.state!=Fi.errored&&i&&i(oi.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,i={}){return await this.send({type:"presence",event:"track",payload:e},i.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,i,s){const o=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),l=e===Ls.PRESENCE||e===Ls.POSTGRES_CHANGES;if(o&&l)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,i,s)}async httpSend(e,i,s={}){var o;if(i==null)return Promise.reject(new Error("Payload is required for httpSend()"));
21const l=i instanceof ArrayBuffer||ArrayBuffer.isView(i),c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":l?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const d=new URL(this.broadcastEndpointURL);d.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(e)}`,this.private&&d.searchParams.set("private","true");const h={method:"POST",headers:c,body:l?i:JSON.stringify(i)},m=await this._fetchWithTimeout(d.toString(),h,(o=s.timeout)!==null&&o!==void 0?o:this.timeout);if(m.status===202)return{success:!0};let g=m.statusText;try{const v=await m.json();g=v.error||v.message||g}catch{}return Promise.reject(new Error(g))}async send(e,i={}){var s,o;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:l,payload:c}=e,d={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(d.Authorization=`Bearer ${this.socket.accessTokenValue}`);const h={method:"POST",headers:d,body:JSON.stringify({messages:[{topic:this.subTopic,event:l,payload:c,private:this.private}]})};try{const m=await this._fetchWithTimeout(this.broadcastEndpointURL,h,(s=i.timeout)!==null&&s!==void 0?s:this.timeout);return await((o=m.body)===null||o===void 0?void 0:o.cancel()),m.ok?"ok":"error"}catch(m){return m instanceof Error&&m.name==="AbortError"?"timed out":"error"}}else return new Promise(l=>{var c,d,h;const m=this.channelAdapter.push(e.type,e,i.timeout||this.timeout);e.type==="broadcast"&&!(!((h=(d=(c=this.params)===null||c===void 0?void 0:c.config)===null||d===void 0?void 0:d.broadcast)===null||h===void 0)&&h.ack)&&l("ok"),m.receive("ok",()=>l("ok")),m.receive("error",()=>l("error")),m.receive("timeout",()=>l("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(i=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>i("ok")).receive("timeout",()=>i("timed out")).receive("error",()=>i("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,i,s){const o=new AbortController,l=setTimeout(()=>o.abort(),s),c=await this.socket.fetch(e,Object.assign(Object.assign({},i),{signal:o.signal}));return clearTimeout(l),c}_on(e,i,s){const o=e.toLocaleLowerCase(),l=this.channelAdapter.on(e,s),c={type:o,filter:i,callback:s,ref:l};return this.bindings[o]?this.bindings[o].push(c):this.bindings[o]=[c],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,i,s)=>{var o,l,c,d,h,m,g;const v=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(v,s))return!1;const _=(o=this.bindings[v])===null||o===void 0?void 0:o.find(b=>b.ref===e.ref);if(!_)return!0;if(["broadcast","presence","postgres_changes"].includes(v))if("id"in _){const b=_.id,S=(l=_.filter)===null||l===void 0?void 0:l.event;return b&&((c=i.ids)===null||c===void 0?void 0:c.includes(b))&&(S==="*"||S?.toLocaleLowerCase()===((d=i.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const b=(m=(h=_?.filter)===null||h===void 0?void 0:h.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return b==="*"||b===((g=i?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return _.type.toLocaleLowerCase()===v})}_notThisChannelEvent(e,i){const{close:s,error:o,leave:l,join:c}=Wb;return i&&[s,o,l,c].includes(e)&&i!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,i,s)=>{if(typeof i=="object"&&"ids"in i){const o=i.data,{schema:l,table:c,commit_timestamp:d,type:h,errors:m}=o;return Object.assign(Object.assign({},{schema:l,table:c,commit_timestamp:d,eventType:h,new:{},old:{},errors:m}),this._getPayloadRecords(o))}return i})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const i in e.bindings)for(const s of e.bindings[i])this._on(s.type,s.filter,s.callback)}
21static isFilterValueEqual(e,i){return(e??void 0)===(i??void 0)}_getPayloadRecords(e){const i={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(i.new=n0(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(i.old=n0(e.columns,e.old_record)),i}}class RC{constructor(e,i){this.socket=new yC(e,i)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,i,s,o=1e4){return new Promise(l=>{setTimeout(()=>l("timeout"),o),this.socket.disconnect(()=>{e(),l("ok")},i,s)})}push(e){this.socket.push(e)}log(e,i,s){this.socket.log(e,i,s)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Xf.connecting}isDisconnecting(){return this.socket.connectionState()==Xf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const a0={HEARTBEAT_INTERVAL:25e3},AC=[1e3,2e3,5e3,1e4],OC=1e4;function xC(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var i;return(i=Array.from(t.keys())[e])!==null&&i!==void 0?i:null},removeItem(e){t.delete(e)},setItem(e,i){t.set(e,String(i))}}}function CC(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return xC()}const kC=`
22  addEventListener("message", (e) => {
23    if (e.data.event === "start") {
24      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
25    }
26  });`;class jC{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,i){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={},this.ref=0,this.serializer=new iC,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=l=>l?(...c)=>l(...c):(...c)=>fetch(...c),!(!((s=i?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey;const o=this._initializeOptions(i);this.socketAdapter=new RC(e,o),this.httpEndpoint=tw(e),this.fetch=this._resolveFetch(i?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const i=e.message;throw i.includes("Node.js")?new Error(`${i}
27
28To use Realtime in Node.js, you need to provide a WebSocket implementation:
29
30Option 1: Use Node.js 22+ which has native WebSocket support
31Option 2: Install and provide the "ws" package:
32
33  npm install ws
34
35  import ws from "ws"
36  const client = new RealtimeClient(url, {
37    ...options,
38    transport: ws
39  })`):new Error(`WebSocket not available: ${i}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,i){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,i)}getChannels(){return this.channels}async removeChannel(e){const i=await e.unsubscribe();return i==="ok"&&e.teardown(),i}async removeAllChannels(){const e=this.channels.map(async s=>{const o=await s.unsubscribe();return s.teardown(),o}),i=await Promise.all(e);return await this.disconnect(),i}log(e,i,s){this.socketAdapter.log(e,i,s)}connectionState(){return this.socketAdapter.connectionState()||Xf.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,i={config:{}}){const s=`realtime:${e}`,o=this.getChannels().find(l=>l.topic===s);if(o)return o;{const l=new Qa(`realtime:${e}`,i,this);return this._cancelPendingDisconnect(),this.channels.push(l),l}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(i=>i.topic!==e.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
39this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e=null){let i,s=!1;if(e)i=e,s=!0;else if(this.accessToken)try{i=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),i=this.accessTokenValue}else i=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(o=>{const l={access_token:i,version:Xx};i&&o.updateJoinPayload(l),o.joinedOnce&&o.channelAdapter.isJoined()&&o.channelAdapter.push(Wb.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(i=>{this.log("error",`Error setting auth in ${e}`,i)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(i=>{this.log("error","error waiting for auth on connect",i)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(i,s)=>{i=="sent"&&this._setAuthSafely(),e&&e(i,s)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let i;if(e)i=e;else{const s=new Blob([kC],{type:"application/javascript"});i=URL.createObjectURL(s)}return i}_initializeOptions(e){var i,s,o,l,c,d,h,m,g,v,_,b;this.worker=(i=e?.worker)!==null&&i!==void 0?i:!1,this.accessToken=(s=e?.accessToken)!==null&&s!==void 0?s:null;const S={};S.timeout=(o=e?.timeout)!==null&&o!==void 0?o:tC,S.heartbeatIntervalMs=(l=e?.heartbeatIntervalMs)!==null&&l!==void 0?l:a0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(c=e?.disconnectOnEmptyChannelsAfterMs)!==null&&c!==void 0?c:2*((d=e?.heartbeatIntervalMs)!==null&&d!==void 0?d:a0.HEARTBEAT_INTERVAL),S.transport=(h=e?.transport)!==null&&h!==void 0?h:Qx.getWebSocketConstructor(),S.params=e?.params,S.logger=e?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),S.sessionStorage=(m=e?.sessionStorage)!==null&&m!==void 0?m:CC(),S.reconnectAfterMs=(g=e?.reconnectAfterMs)!==null&&g!==void 0?g:(k=>AC[k-1]||OC);let E,T;const R=(v=e?.vsn)!==null&&v!==void 0?v:eC;switch(R){case Wx:E=(k,C)=>C(JSON.stringify(k)),T=(k,C)=>C(JSON.parse(k));break;case Xb:E=this.serializer.encode.bind(this.serializer),T=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=R,S.encode=(_=e?.encode)!==null&&_!==void 0?_:E,S.decode=(b=e?.decode)!==null&&b!==void 0?b:T,S.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,S.params=Object.assign(Object.assign({},S.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e?.workerUrl,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var so=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function NC(t,e,i){const s=new URL(e,t);if(i)for(const[o,l]of Object.entries(i))l!==void 0&&s.searchParams.set(o,l);return s.toString()}async function DC(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function LC(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:i,path:s,query:o,body:l,headers:c}){const d=NC(t.baseUrl,s,o),h=await DC(t.auth),m=await e(d,{method:i,headers:{...l?{"Content-Type":"application/json"}:{},...h,...c},body:l?JSON.stringify(l):void 0}),g=await m.text(),v=(m.headers.get("content-type")||"").includes("application/json"),_=v&&g?JSON.parse(g):g;if(!m.ok){const b=v?_:void 0,S=b?.error;throw new so(S?.message??`Request failed with status ${m.status}`,{status:m.status,icebergType:S?.type,icebergCode:S?.code,details:b})}return{status:m.status,headers:m.headers,data:_}}}}function tu(t){return t.join("�")}var MC=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:tu(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(t,e){const i={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:i})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${tu(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${tu(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${tu(t.namespace)}`}),!0}catch(e){if(e instanceof so&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(i){if(i instanceof so&&i.status===409)return;throw i}}};function As(t){return t.join("�")}var UC=class{constructor(t,e="",i){this.client=t,this.prefix=e,this.accessDelegation=i}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${As(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const i={};return this.accessDelegation&&(i["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${As(t.namespace)}/tables`,body:e,headers:i})).data.metadata}async updateTable(t,e){const i=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${As(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":i.data["metadata-location"],metadata:i.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${As(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${As(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${As(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(i){if(i instanceof so&&i.status===404)return!1;throw i}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(i){if(i instanceof so&&i.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw i}}},zC=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const i=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=LC({baseUrl:i,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new MC(this.client,e),this.tableOps=new UC(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
39async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function ao(t){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(t)}function IC(t,e){if(ao(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,e);if(ao(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function PC(t){var e=IC(t,"string");return ao(e)=="symbol"?e:e+""}function BC(t,e,i){return(e=PC(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),i.push.apply(i,s)}return i}function me(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?o0(Object(i),!0).forEach(function(s){BC(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o0(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}var Fu=class extends Error{constructor(t,e="storage",i,s){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=i,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Gu(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var nh=class extends Fu{constructor(t,e,i,s="storage"){super(t,s,e,i),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=i}toJSON(){return me({},super.toJSON())}},iw=class extends Fu{constructor(t,e,i="storage"){super(t,i),this.name=i==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function Su(t,e,i){const s=me({},t),o=e.toLowerCase();for(const l of Object.keys(s))l.toLowerCase()===o&&delete s[l];return s[o]=i,s}function $C(t){const e={};for(const[i,s]of Object.entries(t))e[i.toLowerCase()]=s;return e}const qC=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),HC=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ih=t=>{if(Array.isArray(t))return t.map(i=>ih(i));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([i,s])=>{const o=i.replace(/([-_][a-z])/gi,l=>l.toUpperCase().replace(/[-_]/g,""));e[o]=ih(s)}),e},VC=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),l0=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const i=e.error;if(typeof i.message=="string")return i.message}}return JSON.stringify(t)},FC=async(t,e,i,s)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const o=t;let l=parseInt(String(o.status),10);Number.isFinite(l)||(l=500),o.json().then(c=>{const d=c?.statusCode||c?.code||l+"";e(new nh(l0(c),l,d,s))}).catch(()=>{const c=l+"";e(new nh(o.statusText||`HTTP ${l} error`,l,c,s))})}else e(new iw(l0(t),t,s))},GC=(t,e,i,s)=>{const o={method:t,headers:e?.headers||{}};if(t==="GET"||t==="HEAD"||!s)return me(me({},o),i);if(HC(s)){var l;const c=e?.headers||{};let d;for(const[h,m]of Object.entries(c))h.toLowerCase()==="content-type"&&(d=m);o.headers=Su(c,"Content-Type",(l=d)!==null&&l!==void 0?l:"application/json"),o.body=JSON.stringify(s)}else o.body=s;return e?.duplex&&(o.duplex=e.duplex),me(me({},o),i)};async function $a(t,e,i,s,o,l,c){return new Promise((d,h)=>{t(i,GC(e,s,o,l)).then(m=>{if(!m.ok)throw m;if(s?.noResolveJson)return m;if(c==="vectors"){const g=m.headers.get("content-type");if(m.headers.get("content-length")==="0"||m.status===204)return{};if(!g||!g.includes("application/json"))return{}}return m.json()}).then(m=>d(m)).catch(m=>
39FC(m,h,s,c))})}function rw(t="storage"){return{get:async(e,i,s,o)=>$a(e,"GET",i,s,o,void 0,t),post:async(e,i,s,o,l)=>$a(e,"POST",i,o,l,s,t),put:async(e,i,s,o,l)=>$a(e,"PUT",i,o,l,s,t),head:async(e,i,s,o)=>$a(e,"HEAD",i,me(me({},s),{},{noResolveJson:!0}),o,void 0,t),remove:async(e,i,s,o,l)=>$a(e,"DELETE",i,o,l,s,t)}}const KC=rw("storage"),{get:oo,post:bn,put:rh,head:YC,remove:Hh}=KC,Xt=rw("vectors");var Vs=class{constructor(t,e={},i,s="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=$C(e),this.fetch=qC(i),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=Su(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(i){if(e.shouldThrowOnError)throw i;if(Gu(i))return{data:null,error:i};throw i}}};let sw;sw=Symbol.toStringTag;var ZC=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[sw]="StreamDownloadBuilder",this.promise=null}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Gu(e))return{data:null,error:e};throw e}}};let aw;aw=Symbol.toStringTag;var QC=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[aw]="BlobDownloadBuilder",this.promise=null}asStream(){return new ZC(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Gu(e))return{data:null,error:e};throw e}}};const JC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},u0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var XC=class extends Vs{constructor(t,e={},i,s){super(t,e,s,"storage"),this.bucketId=i}async uploadOrUpdate(t,e,i,s){var o=this;return o.handleOperation(async()=>{let l;const c=me(me({},u0),s);let d=me(me({},o.headers),t==="POST"&&{"x-upsert":String(c.upsert)});const h=c.metadata;if(typeof Blob<"u"&&i instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),h&&l.append("metadata",o.encodeMetadata(h)),l.append("",i)):typeof FormData<"u"&&i instanceof FormData?(l=i,l.has("cacheControl")||l.append("cacheControl",c.cacheControl),h&&!l.has("metadata")&&l.append("metadata",o.encodeMetadata(h))):(l=i,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType,h&&(d["x-metadata"]=o.toBase64(o.encodeMetadata(h))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!c.duplex&&(c.duplex="half")),s?.headers)for(const[_,b]of Object.entries(s.headers))d=Su(d,_,b);const m=o._removeEmptyFolders(e),g=o._getFinalPath(m),v=await(t=="PUT"?rh:bn)(o.fetch,`${o.url}/object/${g}`,l,me({headers:d},c?.duplex?{duplex:c.duplex}:{}));return{path:m,id:v.Id,fullPath:v.Key}})}async upload(t,e,i){return this.uploadOrUpdate("POST",t,e,i)}async uploadToSignedUrl(t,e,i,s){var o=this;const l=o._removeEmptyFolders(t),c=o._getFinalPath(l),d=new URL(o.url+`/object/upload/sign/${c}`);return d.searchParams.set("token",e),o.handleOperation(async()=>{let h;const m=me(me({},u0),s);let g=me(me({},o.headers),{"x-upsert":String(m.upsert)});const v=m.metadata;if(typeof Blob<"u"&&i instanceof Blob?(h=new FormData,h.append("cacheControl",m.cacheControl),v&&h.append("metadata",o.encodeMetadata(v)),h.append("",i)):typeof FormData<"u"&&i instanceof FormData?(h=i,h.has("cacheControl")||h.append("cacheControl",m.cacheControl),v&&!h.has("metadata")&&h.append("metadata",o.encodeMetadata(v))):(h=i,g["cache-control"]=`max-age=${m.cacheControl}`,g["content-type"]=m.contentType,v&&(g["x-metadata"]=o.toBase64(o.encodeMetadata(v))),(typeof ReadableStream<"u"&&h instanceof ReadableStream||h&&typeof h=="object"&&"pipe"in h&&typeof h.pipe=="function")&&!m.duplex&&(m.duplex="half")),s?.headers)for(const[_,b]of Object.entries(s.headers))g=Su(g,_,b);return{path:l,fullPath:(await rh(o.fetch,d.toString(),h,me({headers:g},m?.duplex?{duplex:m.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var i=this;return i.handleOperation(async()=>{let s=i._getFinalPath(t);const o=me({},i.headers);e?.upsert&&(o["x-upsert"]="true");const l=await bn(i.fetch,`${i.url}/object/upload/sign/${s}`,{},{headers:o}),c=new URL(i.url+l.url),d=c.searchParams.get("token");if(!d)throw new Fu("No token returned by API");return{signedUrl:c.toString(),path:t,token:d}})}async update(t,e,i){return this.uploadOrUpdate("PUT",t,e,i)}async move(t,e,i){var s=this;return s.handleOperation(async()=>await bn(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:t,destinationKey:e,destinationBucket:i?.destinationBucket},{headers:s.headers}))}
39async copy(t,e,i){var s=this;return s.handleOperation(async()=>({path:(await bn(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:t,destinationKey:e,destinationBucket:i?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(t,e,i){var s=this;return s.handleOperation(async()=>{let o=s._getFinalPath(t);const l=typeof i?.transform=="object"&&i.transform!==null&&Object.keys(i.transform).length>0;let c=await bn(s.fetch,`${s.url}/object/sign/${o}`,me({expiresIn:e},l?{transform:i.transform}:{}),{headers:s.headers});const d=new URLSearchParams;i?.download&&d.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&d.set("cacheNonce",String(i.cacheNonce));const h=d.toString();return{signedUrl:encodeURI(`${s.url}${c.signedURL}${h?`&${h}`:""}`)}})}async createSignedUrls(t,e,i){var s=this;return s.handleOperation(async()=>{const o=await bn(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:e,paths:t},{headers:s.headers}),l=new URLSearchParams;i?.download&&l.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&l.set("cacheNonce",String(i.cacheNonce));const c=l.toString();return o.map(d=>me(me({},d),{},{signedUrl:d.signedURL?encodeURI(`${s.url}${d.signedURL}${c?`&${c}`:""}`):null}))})}download(t,e,i){const s=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",o=new URLSearchParams;e?.transform&&this.applyTransformOptsToQuery(o,e.transform),e?.cacheNonce!=null&&o.set("cacheNonce",String(e.cacheNonce));const l=o.toString(),c=this._getFinalPath(t),d=()=>oo(this.fetch,`${this.url}/${s}/${c}${l?`?${l}`:""}`,{headers:this.headers,noResolveJson:!0},i);return new QC(d,this.shouldThrowOnError)}async info(t){var e=this;const i=e._getFinalPath(t);return e.handleOperation(async()=>ih(await oo(e.fetch,`${e.url}/object/info/${i}`,{headers:e.headers})))}async exists(t){var e=this;const i=e._getFinalPath(t);try{return await YC(e.fetch,`${e.url}/object/${i}`,{headers:e.headers}),{data:!0,error:null}}catch(o){if(e.shouldThrowOnError)throw o;if(Gu(o)){var s;const l=o instanceof nh?o.status:o instanceof iw?(s=o.originalError)===null||s===void 0?void 0:s.status:void 0;if(l!==void 0&&[400,404].includes(l))return{data:!1,error:o}}throw o}}getPublicUrl(t,e){const i=this._getFinalPath(t),s=new URLSearchParams;e?.download&&s.set("download",e.download===!0?"":e.download),e?.transform&&this.applyTransformOptsToQuery(s,e.transform),e?.cacheNonce!=null&&s.set("cacheNonce",String(e.cacheNonce));const o=s.toString(),l=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${i}`)+(o?`?${o}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await Hh(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,i){var s=this;return s.handleOperation(async()=>{const o=me(me(me({},JC),e),{},{prefix:t||""});return await bn(s.fetch,`${s.url}/object/list/${s.bucketId}`,o,{headers:s.headers},i)})}async listV2(t,e){var i=this;return i.handleOperation(async()=>{const s=me({},t);return await bn(i.fetch,`${i.url}/object/list-v2/${i.bucketId}`,s,{headers:i.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const WC="2.108.1",To={"X-Client-Info":`storage-js/${WC}`};var ek=class extends Vs{constructor(t,e={},i,s){const o=new URL(t);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const l=o.href.replace(/\/$/,""),c=me(me({},To),e);super(l,c,i,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const i=e.listBucketOptionsToQueryString(t);return await oo(e.fetch,`${e.url}/bucket${i}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await oo(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var i=this;return i.handleOperation(async()=>await bn(i.fetch,`${i.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:i.headers}))}async updateBucket(t,e){var i=this;return i.handleOperation(async()=>await rh(i.fetch,`${i.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:i.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await bn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Hh(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},tk=class extends Vs{constructor(t,e={},i){const s=t.replace(/\/$/,""),o=me(me({},To),e);super(s,o,i,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await bn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const i=new URLSearchParams;t?.limit!==void 0&&i.set("limit",t.limit.toString()),t?.offset!==void 0&&i.set("offset",t.offset.toString()),t?.sortColumn&&i.set("sortColumn",t.sortColumn),t?.sortOrder&&i.set("sortOrder",t.sortOrder),t?.search&&i.set("search",t.search);const s=i.toString(),o=s?`${e.url}/bucket?${s}`:`${e.url}/bucket`;return await oo(e.fetch,o,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Hh(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!VC(t))throw new Fu("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const i=new zC({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(i,{get(o,l){const c=o[l];return typeof c!="function"?c:async(...d)=>{try{return{data:await c.apply(o,d),error:null}}catch(h){if(s)throw h;return{data:null,error:h}}}}})}},nk=class extends Vs{constructor(t,e={},i){const s=t.replace(/\/$/,""),o=me(me({},To),{},{"Content-Type":"application/json"},e);super(s,o,i,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var i=this;return i.handleOperation(async()=>await Xt.post(i.fetch,`${i.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:i.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var i=this;return i.handleOperation(async()=>await Xt.post(i.fetch,`${i.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:i.headers})||{})}},ik=class extends Vs{constructor(t,e={},i){const s=t.replace(/\/$/,""),o=me(me({},To),{},{"Content-Type":"application/json"},e);super(s,o,i,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
39if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},rk=class extends Vs{constructor(t,e={},i){const s=t.replace(/\/$/,""),o=me(me({},To),{},{"Content-Type":"application/json"},e);super(s,o,i,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Xt.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},sk=class extends rk{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new ak(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,i=this;return e().call(i,t)}async getBucket(t){var e=()=>super.getBucket,i=this;return e().call(i,t)}async listBuckets(t={}){var e=()=>super.listBuckets,i=this;return e().call(i,t)}async deleteBucket(t){var e=()=>super.deleteBucket,i=this;return e().call(i,t)}},ak=class extends nk{constructor(t,e,i,s){super(t,e,s),this.vectorBucketName=i}async createIndex(t){var e=()=>super.createIndex,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,i=this;return e().call(i,i.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,i=this;return e().call(i,i.vectorBucketName,t)}index(t){return new ok(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},ok=class extends ik{constructor(t,e,i,s,o){super(t,e,o),this.vectorBucketName=i,this.indexName=s}async putVectors(t){var e=()=>super.putVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async getVectors(t){var e=()=>super.getVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}},lk=class extends ek{constructor(t,e={},i,s){super(t,e,i,s)}from(t){return new XC(this.url,this.headers,t,this.fetch)}get vectors(){return new sk(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new tk(this.url+"/iceberg",this.headers,this.fetch)}};const ow="2.108.1",qi=30*1e3,Ha=3,Cf=Ha*qi,uk="http://localhost:9999",ck="supabase.auth.token",dk={"X-Client-Info":`gotrue-js/${ow}`},sh="X-Supabase-Api-Version",lw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},fk=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,hk=600*1e3;
39class lo extends Error{constructor(e,i,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function W(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class pk extends lo{constructor(e,i,s){super(e,i,s),this.name="AuthApiError",this.status=i,this.code=s}}function mk(t){return W(t)&&t.name==="AuthApiError"}class wn extends lo{constructor(e,i){super(e),this.name="AuthUnknownError",this.originalError=i}}class In extends lo{constructor(e,i,s,o){super(e,s,o),this.name=i,this.status=s}}class yt extends In{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function nu(t){return W(t)&&t.name==="AuthSessionMissingError"}class Os extends In{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class iu extends In{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class ru extends In{constructor(e,i=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function gk(t){return W(t)&&t.name==="AuthImplicitGrantRedirectError"}class c0 extends In{constructor(e,i=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class vk extends In{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class ah extends In{constructor(e,i){super(e,"AuthRetryableFetchError",i,void 0)}}function kf(t){return W(t)&&t.name==="AuthRetryableFetchError"}class d0 extends In{constructor(e="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(e,"AuthRefreshDiscardedError",409,void 0)}}function yk(t){return W(t)&&t.name==="AuthRefreshDiscardedError"}class f0 extends In{constructor(e,i,s){super(e,"AuthWeakPasswordError",i,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Eu extends In{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),h0=` 	
40\r=`.split(""),_k=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<h0.length;e+=1)t[h0[e].charCodeAt(0)]=-2;for(let e=0;e<Tu.length;e+=1)t[Tu[e].charCodeAt(0)]=e;return t})();function p0(t,e,i){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;i(Tu[s]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;i(Tu[s]),e.queuedBits-=6}}function uw(t,e,i){const s=_k[t];if(s>-1)for(e.queue=e.queue<<6|s,e.queuedBits+=6;e.queuedBits>=8;)i(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function m0(t){const e=[],i=c=>{e.push(String.fromCodePoint(c))},s={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},l=c=>{Sk(c,s,i)};for(let c=0;c<t.length;c+=1)uw(t.charCodeAt(c),o,l);return e.join("")}function bk(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function wk(t,e){for(let i=0;i<t.length;i+=1){let s=t.charCodeAt(i);if(s>55295&&s<=56319){const o=(s-55296)*1024&65535;s=(t.charCodeAt(i+1)-56320&65535|o)+65536,i+=1}bk(s,e)}}
40function Sk(t,e,i){if(e.utf8seq===0){if(t<=127){i(t);return}for(let s=1;s<6;s+=1)if((t>>7-s&1)===0){e.utf8seq=s;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&i(e.codepoint)}}function Ps(t){const e=[],i={queue:0,queuedBits:0},s=o=>{e.push(o)};for(let o=0;o<t.length;o+=1)uw(t.charCodeAt(o),i,s);return new Uint8Array(e)}function Ek(t){const e=[];return wk(t,i=>e.push(i)),new Uint8Array(e)}function Nr(t){const e=[],i={queue:0,queuedBits:0},s=o=>{e.push(o)};return t.forEach(o=>p0(o,i,s)),p0(null,i,s),e.join("")}function Tk(t){return Math.round(Date.now()/1e3)+t}function Rk(){return Symbol("auth-callback")}const Ot=()=>typeof window<"u"&&typeof document<"u",Ar={tested:!1,writable:!1},cw=()=>{if(!Ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ar.tested)return Ar.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Ar.tested=!0,Ar.writable=!0}catch{Ar.tested=!0,Ar.writable=!1}return Ar.writable};function Ak(t){const e={},i=new URL(t);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEach((o,l)=>{e[l]=o})}catch{}return i.searchParams.forEach((s,o)=>{e[o]=s}),e}const dw=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Ok=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",js=async(t,e,i)=>{await t.setItem(e,JSON.stringify(i))},ri=async(t,e)=>{const i=await t.getItem(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}},at=async(t,e)=>{await t.removeItem(e)};class Ku{constructor(){this.promise=new Ku.promiseConstructor((e,i)=>{this.resolve=e,this.reject=i})}}Ku.promiseConstructor=Promise;function su(t){const e=t.split(".");if(e.length!==3)throw new Eu("Invalid JWT structure");for(let s=0;s<e.length;s++)if(!fk.test(e[s]))throw new Eu("JWT not in base64url format");return{header:JSON.parse(m0(e[0])),payload:JSON.parse(m0(e[1])),signature:Ps(e[2]),raw:{header:e[0],payload:e[1]}}}async function xk(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function Ck(t,e){return new Promise((s,o)=>{(async()=>{for(let l=0;l<1/0;l++)try{const c=await t(l);if(!e(l,null,c)){s(c);return}}catch(c){if(!e(l,c)){o(c);return}}})()})}function kk(t){return("0"+t.toString(16)).substr(-2)}function jk(){const e=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=i.length;let o="";for(let l=0;l<56;l++)o+=i.charAt(Math.floor(Math.random()*s));return o}return crypto.getRandomValues(e),Array.from(e,kk).join("")}async function Nk(t){const i=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",i),o=new Uint8Array(s);return Array.from(o).map(l=>String.fromCharCode(l)).join("")}async function Dk(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const i=await Nk(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Or(t,e,i=!1){const s=jk();let o=s;i&&(o+="/recovery"),await js(t,`${e}-code-verifier`,o);const l=await Dk(s);return[l,s===l?"plain":"s256"]}const Lk=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Mk(t){const e=t.headers.get(sh);if(!e||!e.match(Lk))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function Uk(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function zk(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Ik=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function si(t){if(!Ik.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function yn(t){if(!t.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function jf(){const t={};return new Proxy(t,{get:(e,i)=>{if(i==="__isUserNotAvailableProxy")return!0;
40if(typeof i=="symbol"){const s=i.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Pk(t,e){return new Proxy(t,{get:(i,s,o)=>{if(s==="__isInsecureUserWarningProxy")return!0;if(typeof s=="symbol"){const l=s.toString();if(l==="Symbol(Symbol.toPrimitive)"||l==="Symbol(Symbol.toStringTag)"||l==="Symbol(util.inspect.custom)"||l==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(i,s,o)}return!e.value&&typeof s=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(i,s,o)}})}function g0(t){return JSON.parse(JSON.stringify(t))}const xr=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},Bk=[502,503,504,520,521,522,523,524,530];async function v0(t){var e;if(!Ok(t))throw new ah(xr(t),0);if(Bk.includes(t.status))throw new ah(xr(t),t.status);let i;try{i=await t.json()}catch(l){throw new wn(xr(l),l)}let s;const o=Mk(t);if(o&&o.getTime()>=lw["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?s=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(s=i.error_code),s){if(s==="weak_password")throw new f0(xr(i),t.status,((e=i.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(s==="session_not_found")throw new yt}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((l,c)=>l&&typeof c=="string",!0))throw new f0(xr(i),t.status,i.weak_password.reasons);throw new pk(xr(i),t.status||500,s)}const $k=(t,e,i,s)=>{const o={method:t,headers:e?.headers||{}};return t==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),o.body=JSON.stringify(s),Object.assign(Object.assign({},o),i))};async function se(t,e,i,s){var o;const l=Object.assign({},s?.headers);l[sh]||(l[sh]=lw["2024-01-01"].name),s?.jwt&&(l.Authorization=`Bearer ${s.jwt}`);const c=(o=s?.query)!==null&&o!==void 0?o:{};s?.redirectTo&&(c.redirect_to=s.redirectTo);const d=Object.keys(c).length?"?"+new URLSearchParams(c).toString():"",h=await qk(t,e,i+d,{headers:l,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(h):{data:Object.assign({},h),error:null}}async function qk(t,e,i,s,o,l){const c=$k(e,s,o,l);let d;try{d=await t(i,Object.assign({},c))}catch(h){throw console.error(h),new ah(xr(h),0)}if(d.ok||await v0(d),s?.noResolveJson)return d;try{return await d.json()}catch(h){await v0(h)}}function dn(t){var e;let i=null;Fk(t)&&(i=Object.assign({},t),t.expires_at||(i.expires_at=Tk(t.expires_in)));const s=(e=t.user)!==null&&e!==void 0?e:typeof t?.id=="string"?t:null;return{data:{session:i,user:s},error:null}}function y0(t){const e=dn(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((i,s)=>i&&typeof s=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Gi(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function Hk(t){return{data:t,error:null}}function Vk(t){const{action_link:e,email_otp:i,hashed_token:s,redirect_to:o,verification_type:l}=t,c=Vu(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:e,email_otp:i,hashed_token:s,redirect_to:o,verification_type:l},h=Object.assign({},c);return{data:{properties:d,user:h},error:null}}function _0(t){return t}function Fk(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Nf=["global","local","others"];class Gk{constructor({url:e="",headers:i={},fetch:s,experimental:o}){this.url=e,this.headers=i,this.fetch=dw(s),this.experimental=o??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(e,i=Nf[0]){if(Nf.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Nf.join(", ")}`);try{return await se(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(s){if(W(s))return{data:null,error:s};throw s}}async inviteUserByEmail(e,i={}){try{return await se(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:Gi})}catch(s){if(W(s))return{data:{user:null},error:s};throw s}}async generateLink(e){try{const{options:i}=e,s=Vu(e,["options"]),o=Object.assign(Object.assign({},s),i);return"newEmail"in s&&(o.new_email=s?.newEmail,delete o.newEmail),await se(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:Vk,redirectTo:i?.redirectTo})}catch(i){if(W(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(e){try{return await se(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Gi})}catch(i){if(W(i))return{data:{user:null},error:i};throw i}}async listUsers(e){var i,s,o,l,c,d,h;try{const m={nextPage:null,lastPage:0,total:0},g=await se(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(i=e?.page)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",per_page:(l=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&l!==void 0?l:""},xform:_0});if(g.error)throw g.error;const v=await g.json(),_=(c=g.headers.get("x-total-count"))!==null&&c!==void 0?c:0,b=(h=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return b.length>0&&(b.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(S.split(";")[1].split("=")[1]);m[`${T}Page`]=E}),m.total=parseInt(_)),{data:Object.assign(Object.assign({},v),m),error:null}}catch(m){if(W(m))return{data:{users:[]},error:m};throw m}}async getUserById(e){si(e);try{return await se(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Gi})}catch(i){if(W(i))return{data:{user:null},error:i};throw i}}async updateUserById(e,i){si(e);try{return await se(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:i,headers:this.headers,xform:Gi})}catch(s){if(W(s))return{data:{user:null},error:s};throw s}}async deleteUser(e,i=!1){si(e);
40try{return await se(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:i},xform:Gi})}catch(s){if(W(s))return{data:{user:null},error:s};throw s}}async _listFactors(e){si(e.userId);try{const{data:i,error:s}=await se(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:i,error:s}}catch(i){if(W(i))return{data:null,error:i};throw i}}async _deleteFactor(e){si(e.userId),si(e.id);try{return{data:await se(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(i){if(W(i))return{data:null,error:i};throw i}}async _listOAuthClients(e){var i,s,o,l,c,d,h;try{const m={nextPage:null,lastPage:0,total:0},g=await se(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(i=e?.page)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",per_page:(l=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&l!==void 0?l:""},xform:_0});if(g.error)throw g.error;const v=await g.json(),_=(c=g.headers.get("x-total-count"))!==null&&c!==void 0?c:0,b=(h=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return b.length>0&&(b.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(S.split(";")[1].split("=")[1]);m[`${T}Page`]=E}),m.total=parseInt(_)),{data:Object.assign(Object.assign({},v),m),error:null}}catch(m){if(W(m))return{data:{clients:[]},error:m};throw m}}async _createOAuthClient(e){try{return await se(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(W(i))return{data:null,error:i};throw i}}async _getOAuthClient(e){try{return await se(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(W(i))return{data:null,error:i};throw i}}async _updateOAuthClient(e,i){try{return await se(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:i,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(W(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(e){try{return await se(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(W(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(e){try{return await se(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(W(i))return{data:null,error:i};throw i}}async _listCustomProviders(e){try{const i={};return e?.type&&(i.type=e.type),await se(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:i,xform:s=>{var o;return{data:{providers:(o=s?.providers)!==null&&o!==void 0?o:[]},error:null}}})}catch(i){if(W(i))return{data:{providers:[]},error:i};throw i}}async _createCustomProvider(e){try{return await se(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(W(i))return{data:null,error:i};throw i}}async _getCustomProvider(e){try{return await se(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(W(i))return{data:null,error:i};throw i}}async _updateCustomProvider(e,i){try{return await se(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:i,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(W(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(e){try{return await se(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(W(i))return{data:null,error:i};throw i}}async _adminListPasskeys(e){yn(this.experimental),si(e.userId);try{return await se(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(W(i))return{data:null,error:i};throw i}}
40async _adminDeletePasskey(e){yn(this.experimental),si(e.userId),si(e.passkeyId);try{return await se(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(W(i))return{data:null,error:i};throw i}}}function b0(t={}){return{getItem:e=>t[e]||null,setItem:(e,i)=>{t[e]=i},removeItem:e=>{delete t[e]}}}globalThis&&cw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class Kk extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}function Yk(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function fw(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function Zk(t){return parseInt(t,16)}function Qk(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,s=>s.toString(16).padStart(2,"0")).join("")}function Jk(t){var e;const{chainId:i,domain:s,expirationTime:o,issuedAt:l=new Date,nonce:c,notBefore:d,requestId:h,resources:m,scheme:g,uri:v,version:_}=t;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(c&&c.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${c}`);if(!v)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(_!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${_}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const b=fw(t.address),S=g?`${g}://${s}`:s,E=t.statement?`${t.statement}
42`:"",T=`${S} wants you to sign in with your Ethereum account:
43${b}
44
45${E}`;let R=`URI: ${v}
46Version: ${_}
47Chain ID: ${i}${c?`
48Nonce: ${c}`:""}
49Issued At: ${l.toISOString()}`;if(o&&(R+=`
50Expiration Time: ${o.toISOString()}`),d&&(R+=`
51Not Before: ${d.toISOString()}`),h&&(R+=`
52Request ID: ${h}`),m){let k=`
53Resources:`;for(const C of m){if(!C||typeof C!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${C}`);k+=`
54- ${C}`}R+=k}return`${T}
55${R}`}class dt extends Error{constructor({message:e,code:i,cause:s,name:o}){var l;super(e,{cause:s}),this.__isWebAuthnError=!0,this.name=(l=o??(s instanceof Error?s.name:void 0))!==null&&l!==void 0?l:"Unknown Error",this.code=i}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Ru extends dt{constructor(e,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:e}),this.name="WebAuthnUnknownError",this.originalError=i}}function Xk({error:t,options:e}){var i,s,o;const{publicKey:l}=e;if(!l)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new dt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((i=l.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new dt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((s=l.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new dt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((o=l.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new dt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new dt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new dt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return l.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new dt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new dt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const c=window.location.hostname;
55if(hw(c)){if(l.rp.id!==c)return new dt({message:`The RP ID "${l.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new dt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(l.user.id.byteLength<1||l.user.id.byteLength>64)return new dt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new dt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new dt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function Wk({error:t,options:e}){const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new dt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new dt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const s=window.location.hostname;if(hw(s)){if(i.rpId!==s)return new dt({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new dt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new dt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new dt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class e2{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const oh=new e2;function w0(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:i,excludeCredentials:s}=t,o=Vu(t,["challenge","user","excludeCredentials"]),l=Ps(e).buffer,c=Object.assign(Object.assign({},i),{id:Ps(i.id).buffer}),d=Object.assign(Object.assign({},o),{challenge:l,user:c});if(s&&s.length>0){d.excludeCredentials=new Array(s.length);for(let h=0;h<s.length;h++){const m=s[h];d.excludeCredentials[h]=Object.assign(Object.assign({},m),{id:Ps(m.id).buffer,type:m.type||"public-key",transports:m.transports})}}return d}function S0(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:i}=t,s=Vu(t,["challenge","allowCredentials"]),o=Ps(e).buffer,l=Object.assign(Object.assign({},s),{challenge:o});if(i&&i.length>0){l.allowCredentials=new Array(i.length);for(let c=0;c<i.length;c++){const d=i[c];l.allowCredentials[c]=Object.assign(Object.assign({},d),{id:Ps(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function E0(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const i=t;return{id:t.id,rawId:t.id,response:{attestationObject:Nr(new Uint8Array(t.response.attestationObject)),clientDataJSON:Nr(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=i.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function T0(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const i=t,s=t.getClientExtensionResults(),o=t.response;
55return{id:t.id,rawId:t.id,response:{authenticatorData:Nr(new Uint8Array(o.authenticatorData)),clientDataJSON:Nr(new Uint8Array(o.clientDataJSON)),signature:Nr(new Uint8Array(o.signature)),userHandle:o.userHandle?Nr(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(e=i.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function hw(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Au(){var t,e;return!!(Ot()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function pw(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ru("Browser returned unexpected credential type",e)}:{data:null,error:new Ru("Empty credential response",e)}}catch(e){return{data:null,error:Xk({error:e,options:t})}}}async function mw(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ru("Browser returned unexpected credential type",e)}:{data:null,error:new Ru("Empty credential response",e)}}catch(e){return{data:null,error:Wk({error:e,options:t})}}}const t2={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},n2={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Ou(...t){const e=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),i=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),s={};for(const o of t)if(o)for(const l in o){const c=o[l];if(c!==void 0)if(Array.isArray(c))s[l]=c;else if(i(c))s[l]=c;else if(e(c)){const d=s[l];e(d)?s[l]=Ou(d,c):s[l]=Ou(c)}else s[l]=c}return s}function i2(t,e){return Ou(t2,t,e||{})}function r2(t,e){return Ou(n2,t,e||{})}class s2{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:i,friendlyName:s,signal:o},l){var c;try{const{data:d,error:h}=await this.client.mfa.challenge({factorId:e,webauthn:i});if(!d)return{data:null,error:h};const m=o??oh.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:g}=d.webauthn.credential_options.publicKey;if(!g.name){const v=s;if(v)g.name=`${g.id}:${v}`;else{const b=(await this.client.getUser()).data.user,S=((c=b?.user_metadata)===null||c===void 0?void 0:c.name)||b?.email||b?.id||"User";g.name=`${g.id}:${S}`}}g.displayName||(g.displayName=g.name)}switch(d.webauthn.type){case"create":{const g=i2(d.webauthn.credential_options.publicKey,l?.create),{data:v,error:_}=await pw({publicKey:g,signal:m});return v?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:v}},error:null}:{data:null,error:_}}case"request":{const g=r2(d.webauthn.credential_options.publicKey,l?.request),{data:v,error:_}=await mw(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:g,signal:m}));return v?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:v}},error:null}:{data:null,error:_}}}}catch(d){return W(d)?{data:null,error:d}:{data:null,error:new wn("Unexpected error in challenge",d)}}}async _verify({challengeId:e,factorId:i,webauthn:s}){return this.client.mfa.verify({factorId:i,challengeId:e,webauthn:s})}async _authenticate({factorId:e,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},l){if(!i)return{data:null,error:new lo("rpId is required for WebAuthn authentication")};try{if(!Au())return{data:null,error:new wn("Browser does not support WebAuthn",null)};const{data:c,error:d}=await this.challenge({factorId:e,webauthn:{rpId:i,rpOrigins:s},signal:o},{request:l});if(!c)return{data:null,error:d};const{webauthn:h}=c;return this._verify({factorId:e,challengeId:c.challengeId,webauthn:{type:h.type,rpId:i,rpOrigins:s,credential_response:h.credential_response}})}catch(c){return W(c)?{data:null,error:c}:{data:null,error:new wn("Unexpected error in authenticate",c)}}}async _register({friendlyName:e,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},l){if(!i)return{data:null,error:new lo("rpId is required for WebAuthn registration")};try{if(!Au())return{data:null,error:new wn("Browser does not support WebAuthn",null)};const{data:c,error:d}=await this._enroll({friendlyName:e});if(!c)return await this.client.mfa.listFactors().then(g=>{var v;return(v=g.data)===null||v===void 0?void 0:v.all.find(_=>_.factor_type==="webauthn"&&_.friendly_name===e&&_.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:d};const{data:h,error:m}=await this._challenge({factorId:c.id,friendlyName:c.friendly_name,webauthn:{rpId:i,rpOrigins:s},signal:o},{create:l});return h?this._verify({factorId:c.id,challengeId:h.challengeId,webauthn:{rpId:i,rpOrigins:s,type:h.webauthn.type,credential_response:h.webauthn.credential_response}}):{data:null,error:m}}catch(c){return W(c)?{data:null,error:c}:{data:null,error:new wn("Unexpected error in register",c)}}}}Yk();const a2={url:uk,storageKey:ck,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:dk,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},xs={};class uo{get jwks(){var e,i;return(i=(e=xs[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(e){xs[this.storageKey]=Object.assign(Object.assign({},xs[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,i;return(i=(e=xs[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){xs[this.storageKey]=Object.assign(Object.assign({},xs[this.storageKey]),{cachedAt:e})}constructor(e){var i,s,o;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const l=Object.assign(Object.assign({},a2),e);if(this.storageKey=l.storageKey,this.instanceID=(i=uo.nextInstanceID[this.storageKey])!==null&&i!==void 0?i:0,uo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!l.debug,typeof l.debug=="function"&&(this.logger=l.debug),this.instanceID>0&&Ot()){const c=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(c),this.logDebugMessages&&console.trace(c)}if(this.persistSession=l.persistSession,this.autoRefreshToken=l.autoRefreshToken,this.experimental=(s=l.experimental)!==null&&s!==void 0?s:{},this.admin=new Gk({url:l.url,headers:l.headers,fetch:l.fetch,experimental:this.experimental}),this.url=l.url,this.headers=l.headers,this.fetch=dw(l.fetch),this.detectSessionInUrl=l.detectSessionInUrl,this.flowType=l.flowType,this.hasCustomAuthorizationHeader=l.hasCu
55stomAuthorizationHeader,this.throwOnError=l.throwOnError,this.lockAcquireTimeout=l.lockAcquireTimeout,l.lock!=null&&(this.lock=l.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new s2(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(l.storage?this.storage=l.storage:cw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=b0(this.memoryStorage)),l.userStorage&&(this.userStorage=l.userStorage)):(this.memoryStorage={},this.storage=b0(this.memoryStorage)),Ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(c){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",c)}(o=this.broadcastChannel)===null||o===void 0||o.addEventListener("message",async c=>{this._debug("received broadcast notification from other tab or client",c);try{await this._notifyAllSubscribers(c.data.event,c.data.session,!1)}catch(d){this._debug("#broadcastChannel","error",d)}})}l.skipAutoInitialize||this.initialize().catch(c=>{this._debug("#initialize()","error",c)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${ow}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var e;try{let i={},s="none";if(Ot()&&(i=Ak(window.location.href),this._isImplicitGrantCallback(i)?s="implicit":await this._isPKCECallback(i)&&(s="pkce")),Ot()&&this.detectSessionInUrl&&s!=="none"){const{data:o,error:l}=await this._getSessionFromURL(i,s);if(l){if(this._debug("#_initialize()","error detecting session from URL",l),gk(l)){const h=(e=l.details)===null||e===void 0?void 0:e.code;if(h==="identity_already_exists"||h==="identity_not_found"||h==="single_identity_not_deletable")return{error:l}}return{error:l}}const{session:c,redirectType:d}=o;return this._debug("#_initialize()","detected session in URL",c,"redirect type",d),await this._saveSession(c),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",c):await this._notifyAllSubscribers("SIGNED_IN",c)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return W(i)?this._returnResult({error:i}):this._returnResult({error:new wn("Unexpected error during initialization",i)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var i,s,o;try{const l=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(i=e?.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(o=e?.options)===null||o===void 0?void 0:o.captchaToken}},xform:dn}),{data:c,error:d}=l;if(d||!c)return this._returnResult({data:{user:null,session:null},error:d});const h=c.session,m=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:m,session:h},error:null})}catch(l){if(W(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signUp(e){var i,s,o;try{let l;if("email"in e){const{email:g,password:v,options:_}=e;let b=null,S=null;this.flowType==="pkce"&&([b,S]=await Or(this.storage,this.storageKey)),l=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:_?.emailRedirectTo,body:{email:g,password:v,data:(i=_?.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:_?.captchaToken},code_challenge:b,code_challenge_method:S},xform:dn})}else if("phone"in e){const{phone:g,password:v,options:_}=e;l=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:g,password:v,data:(s=_?.data)!==null&&s!==void 0?s:{},channel:(o=_?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:_?.captchaToken}},xform:dn})}else throw new iu("You must provide either an email or phone number and a password");const{data:c,error:d}=l;if(d||!c)return await at(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const h=c.session,m=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:m,session:h},error:null})}catch(l){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithPassword(e){try{let i;if("email"in e){const{email:l,password:c,options:d}=e;i=await se(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:l,password:c,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:y0})}else if("phone"in e){const{phone:l,password:c,options:d}=e;i=await se(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:l,password:c,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:y0})}else throw new iu("You must provide either an email or phone number and a password");const{data:s,error:o}=i;if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!s||!s.session||!s.user){const l=new Os;return this._returnResult({data:{user:null,session:null},error:l})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:o})}catch(i){if(W(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOAuth(e){var i,s,o,l;return await this._handleProviderSignIn(e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(o=e.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(l=e.options)===null||l===void 0?void 0:l.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e)):this._exchangeCodeForSession(e)}async signInWithWeb3(e){const{chain:i}=e;switch(i){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(e){var i,s,o,l,c,d,h,m,g,v,_;let b,S;if("message"in e)b=e.message,S=e.signature;else{const{chain:E,wallet:T,statement:R,options:k}=e;let C;if(Ot())if(typeof T=="object")C=T;else{const te=window;if("ethereum"in te&&typeof te.ethereum=="object"&&"request"in te.ethereum&&typeof te.ethereum.request=="function")C=te.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof T!="object"||!k?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");C=T}const B=new URL((i=k?.url)!==null&&i!==void 0?i:window.location.href),J=await C.request({method:"eth_requestAccounts"}).then(te=>
55te).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!J||J.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const P=fw(J[0]);let N=(s=k?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!N){const te=await C.request({method:"eth_chainId"});N=Zk(te)}const K={domain:B.host,address:P,statement:R,uri:B.href,version:"1",chainId:N,nonce:(o=k?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(c=(l=k?.signInWithEthereum)===null||l===void 0?void 0:l.issuedAt)!==null&&c!==void 0?c:new Date,expirationTime:(d=k?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(h=k?.signInWithEthereum)===null||h===void 0?void 0:h.notBefore,requestId:(m=k?.signInWithEthereum)===null||m===void 0?void 0:m.requestId,resources:(g=k?.signInWithEthereum)===null||g===void 0?void 0:g.resources};b=Jk(K),S=await C.request({method:"personal_sign",params:[Qk(b),P]})}try{const{data:E,error:T}=await se(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:b,signature:S},!((v=e.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(_=e.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:dn});if(T)throw T;if(!E||!E.session||!E.user){const R=new Os;return this._returnResult({data:{user:null,session:null},error:R})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:T})}catch(E){if(W(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(e){var i,s,o,l,c,d,h,m,g,v,_,b;let S,E;if("message"in e)S=e.message,E=e.signature;else{const{chain:T,wallet:R,statement:k,options:C}=e;let B;if(Ot())if(typeof R=="object")B=R;else{const P=window;if("solana"in P&&typeof P.solana=="object"&&("signIn"in P.solana&&typeof P.solana.signIn=="function"||"signMessage"in P.solana&&typeof P.solana.signMessage=="function"))B=P.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof R!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");B=R}const J=new URL((i=C?.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in B&&B.signIn){const P=await B.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},C?.signInWithSolana),{version:"1",domain:J.host,uri:J.href}),k?{statement:k}:null));let N;if(Array.isArray(P)&&P[0]&&typeof P[0]=="object")N=P[0];else if(P&&typeof P=="object"&&"signedMessage"in P&&"signature"in P)N=P;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in N&&"signature"in N&&(typeof N.signedMessage=="string"||N.signedMessage instanceof Uint8Array)&&N.signature instanceof Uint8Array)S=typeof N.signedMessage=="string"?N.signedMessage:new TextDecoder().decode(N.signedMessage),E=N.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in B)||typeof B.signMessage!="function"||!("publicKey"in B)||typeof B!="object"||!B.publicKey||!("toBase58"in B.publicKey)||typeof B.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${J.host} wants you to sign in with your Solana account:`,B.publicKey.toBase58(),...k?["",k,""]:[""],"Version: 1",`URI: ${J.href}`,`Issued At: ${(o=(s=C?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((l=C?.signInWithSolana)===null||l===void 0)&&l.notBefore?[`Not Before: ${C.signInWithSolana.notBefore}`]:[],...!((c=C?.signInWithSolana)===null||c===void 0)&&c.expirationTime?[`Expiration Time: ${C.signInWithSolana.expirationTime}`]:[],...!((d=C?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${C.signInWithSolana.chainId}`]:[],...!((h=C?.signInWithSolana)===null||h===void 0)&&h.nonce?[`Nonce: ${C.signInWithSolana.nonce}`]:[],...!((m=C?.signInWithSolana)===null||m===void 0)&&m.requestId?[`Request ID: ${C.signInWithSolana.requestId}`]:[],...!((v=(g=C?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||v===void 0)&&v.length?["Resources",...C.signInWithSolana.resources.map(N=>`- ${N}`)]:[]].join(`
56`);const P=await B.signMessage(new TextEncoder().encode(S),"utf8");if(!P||!(P instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=P}}try{const{data:T,error:R}=await se(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:Nr(E)},!((_=e.options)===null||_===void 0)&&_.captchaToken?{gotrue_meta_security:{captcha_token:(b=e.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:dn});if(R)throw R;if(!T||!T.session||!T.user){const k=new Os;return this._returnResult({data:{user:null,session:null},error:k})}
56return T.session&&(await this._saveSession(T.session),await this._notifyAllSubscribers("SIGNED_IN",T.session)),this._returnResult({data:Object.assign({},T),error:R})}catch(T){if(W(T))return this._returnResult({data:{user:null,session:null},error:T});throw T}}async _exchangeCodeForSession(e){const i=await ri(this.storage,`${this.storageKey}-code-verifier`),[s,o]=(i??"").split("/");try{if(!s&&this.flowType==="pkce")throw new vk;const{data:l,error:c}=await se(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:dn});if(await at(this.storage,`${this.storageKey}-code-verifier`),c)throw c;if(!l||!l.session||!l.user){const d=new Os;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(o==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l.session)),this._returnResult({data:Object.assign(Object.assign({},l),{redirectType:o??null}),error:c})}catch(l){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:{user:null,session:null,redirectType:null},error:l});throw l}}async signInWithIdToken(e){try{const{options:i,provider:s,token:o,access_token:l,nonce:c}=e,d=await se(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:o,access_token:l,nonce:c,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:dn}),{data:h,error:m}=d;if(m)return this._returnResult({data:{user:null,session:null},error:m});if(!h||!h.session||!h.user){const g=new Os;return this._returnResult({data:{user:null,session:null},error:g})}return h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("SIGNED_IN",h.session)),this._returnResult({data:h,error:m})}catch(i){if(W(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOtp(e){var i,s,o,l,c;try{if("email"in e){const{email:d,options:h}=e;let m=null,g=null;this.flowType==="pkce"&&([m,g]=await Or(this.storage,this.storageKey));const{error:v}=await se(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(i=h?.data)!==null&&i!==void 0?i:{},create_user:(s=h?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},code_challenge:m,code_challenge_method:g},redirectTo:h?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:v})}if("phone"in e){const{phone:d,options:h}=e,{data:m,error:g}=await se(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(o=h?.data)!==null&&o!==void 0?o:{},create_user:(l=h?.shouldCreateUser)!==null&&l!==void 0?l:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},channel:(c=h?.channel)!==null&&c!==void 0?c:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:m?.message_id},error:g})}throw new iu("You must provide either an email or phone number.")}catch(d){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(e){var i,s;try{let o,l;"options"in e&&(o=(i=e.options)===null||i===void 0?void 0:i.redirectTo,l=(s=e.options)===null||s===void 0?void 0:s.captchaToken);const{data:c,error:d}=await se(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:l}}),redirectTo:o,xform:dn});if(d)throw d;if(!c)throw new Error("An error occurred on token verification.");const h=c.session,m=c.user;return h?.access_token&&(await this._saveSession(h),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:m,session:h},error:null})}catch(o){if(W(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(e){var i,s,o,l,c;try{let d=null,h=null;this.flowType==="pkce"&&([d,h]=await Or(this.storage,this.storageKey));const m=await se(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(s=(i=e.options)===null||i===void 0?void 0:i.redirectTo)!==null&&s!==void 0?s:void 0}),!((o=e?.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:h}),headers:this.headers,xform:Hk});return!((l=m.data)===null||l===void 0)&&l.url&&Ot()&&!(!((c=e.options)===null||c===void 0)&&c.skipBrowserRedirect)&&window.location.assign(m.data.url),this._returnResult(m)}catch(d){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;if(s)throw s;if(!i)throw new yt;const{error:o}=await se(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(e){if(W(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const i=`${this.url}/resend`;if("email"in e){const{email:s,type:o,options:l}=e;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await Or(this.storage,this.storageKey));const{error:h}=await se(this.fetch,"POST",i,{headers:this.headers,body:{email:s,type:o,gotrue_meta_security:{captcha_token:l?.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l?.emailRedirectTo});return h&&await at(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:h})}else if("phone"in e){const{phone:s,type:o,options:l}=e,{data:c,error:d}=await se(this.fetch,"POST",i,{headers:this.headers,body:{phone:s,type:o,gotrue_meta_security:{captcha_token:l?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:c?.message_id},error:d})}throw new iu("You must provide either an email or phone number and a type")}catch(i){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e)):await this._useSession(async e=>e)}async _acquireLock(e,i){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await s,await i()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=i();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await e(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const i=await ri(this.storage,this.storageKey);
56if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?e=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const s=e.expires_at?e.expires_at*1e3-Date.now()<Cf:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",e.expires_at),!s){if(this.userStorage){const c=await ri(this.userStorage,this.storageKey+"-user");c?.user?e.user=c.user:e.user=jf()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const c={value:this.suppressGetSessionWarning};e.user=Pk(e.user,c),c.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:o,error:l}=await this._callRefreshToken(e.refresh_token);return l?this._returnResult({data:{session:null},error:l}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let i;return this.lock!=null?i=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):i=await this._getUser(),i.data.user&&(this.suppressGetSessionWarning=!0),i}async _getUser(e){try{return e?await se(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Gi}):await this._useSession(async i=>{var s,o,l;const{data:c,error:d}=i;if(d)throw d;return!(!((s=c.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new yt}:await se(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(l=(o=c.session)===null||o===void 0?void 0:o.access_token)!==null&&l!==void 0?l:void 0,xform:Gi})})}catch(i){if(W(i))return nu(i)&&(await this._removeSession(),await at(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:i});throw i}}async updateUser(e,i={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,i)):await this._updateUser(e,i)}async _updateUser(e,i={}){try{return await this._useSession(async s=>{const{data:o,error:l}=s;if(l)throw l;if(!o.session)throw new yt;const c=o.session;let d=null,h=null;this.flowType==="pkce"&&e.email!=null&&([d,h]=await Or(this.storage,this.storageKey));const{data:m,error:g}=await se(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:d,code_challenge_method:h}),jwt:c.access_token,xform:Gi});if(g)throw g;return c.user=m.user,await this._saveSession(c),await this._notifyAllSubscribers("USER_UPDATED",c),this._returnResult({data:{user:c.user},error:null})})}catch(s){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(e){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e)):await this._setSession(e)}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new yt;const i=Date.now()/1e3;let s=i,o=!0,l=null;const{payload:c}=su(e.access_token);if(c.exp&&(s=c.exp,o=s<=i),o){const{data:d,error:h}=await this._callRefreshToken(e.refresh_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!d)return{data:{user:null,session:null},error:null};l=d}else{const{data:d,error:h}=await this._getUser(e.access_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});l={access_token:e.access_token,refresh_token:e.refresh_token,user:d.user,token_type:"bearer",expires_in:s-i,expires_at:s},await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)}return this._returnResult({data:{user:l.user,session:l},error:null})}catch(i){if(W(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}}async refreshSession(e){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e)):await this._refreshSession(e)}async _refreshSession(e){try{return await this._useSession(async i=>{var s;if(!e){const{data:c,error:d}=i;if(d)throw d;e=(s=c.session)!==null&&s!==void 0?s:void 0}if(!e?.refresh_token)throw new yt;const{data:o,error:l}=await this._callRefreshToken(e.refresh_token);return l?this._returnResult({data:{user:null,session:null},error:l}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(i){if(W(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async _getSessionFromURL(e,i){var s;try{if(!Ot())throw new ru("No browser detected.");
56if(e.error||e.error_description||e.error_code)throw new ru(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new c0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ru("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new c0("No code detected.");const{data:C,error:B}=await this._exchangeCodeForSession(e.code);if(B)throw B;const J=new URL(window.location.href);return J.searchParams.delete("code"),window.history.replaceState(window.history.state,"",J.toString()),{data:{session:C.session,redirectType:(s=C.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:o,provider_refresh_token:l,access_token:c,refresh_token:d,expires_in:h,expires_at:m,token_type:g}=e;if(!c||!h||!d||!g)throw new ru("No session defined in URL");const v=Math.round(Date.now()/1e3),_=parseInt(h);let b=v+_;m&&(b=parseInt(m));const S=b-v;S*1e3<=qi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${_}s`);const E=b-_;v-E>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",E,b,v):v-E<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",E,b,v);const{data:T,error:R}=await this._getUser(c);if(R)throw R;const k={provider_token:o,provider_refresh_token:l,access_token:c,expires_in:_,expires_at:b,refresh_token:d,token_type:g,user:T.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:k,redirectType:e.type},error:null})}catch(o){if(W(o))return this._returnResult({data:{session:null,redirectType:null},error:o});throw o}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){const i=await ri(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&i)}async signOut(e={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e)):await this._signOut(e)}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async i=>{var s;const{data:o,error:l}=i;if(l&&!nu(l))return this._returnResult({error:l});const c=(s=o.session)===null||s===void 0?void 0:s.access_token;if(c){const{error:d}=await this.admin.signOut(c,e);if(d&&!(mk(d)&&(d.status===404||d.status===401||d.status===403)||nu(d)))return this._returnResult({error:d})}return e!=="others"&&(await this._removeSession(),await at(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const i=Rk(),s={id:i,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,s),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(i)}):await this._emitInitialSession(i)))(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async i=>{var s,o;try{const{data:{session:l},error:c}=i;if(c)throw c;await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",l)),this._debug("INITIAL_SESSION","callback id",e,"session",l)}catch(l){await((o=this.stateChangeEmitters.get(e))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",l),nu(l)?console.warn(l):console.error(l)}})}async resetPasswordForEmail(e,i={}){let s=null,o=null;this.flowType==="pkce"&&([s,o]=await Or(this.storage,this.storageKey,!0));try{return await se(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:o,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(l){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:null,error:l});throw l}}async getUserIdentities(){var e;try{const{data:i,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(e=i.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var i;try{const{data:s,error:o}=await this._useSession(async l=>{var c,d,h,m,g;const{data:v,error:_}=l;if(_)throw _;const b=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(c=e.options)===null||c===void 0?void 0:c.redirectTo,scopes:(d=e.options)===null||d===void 0?void 0:d.scopes,queryParams:(h=e.options)===null||h===void 0?void 0:h.queryParams,skipBrowserRedirect:!0});return await se(this.fetch,"GET",b,{headers:this.headers,jwt:(g=(m=v.session)===null||m===void 0?void 0:m.access_token)!==null&&g!==void 0?g:void 0})});if(o)throw o;return Ot()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:e.provider,url:s?.url},error:null})}catch(s){if(W(s))return this._returnResult({data:{provider:e.provider,url:null},error:s});throw s}}async linkIdentityIdToken(e){return await this._useSession(async i=>{var s;try{const{error:o,data:{session:l}}=i;if(o)throw o;const{options:c,provider:d,token:h,access_token:m,nonce:g}=e,v=await se(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=l?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:d,id_token:h,access_token:m,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:dn}),{data:_,error:b}=v;return b?this._returnResult({data:{user:null,session:null},error:b}):!_||!_.session||!_.user?this._returnResult({data:{user:null,session:null},error:new Os}):(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("USER_UPDATED",_.
56session)),this._returnResult({data:_,error:b}))}catch(o){if(await at(this.storage,`${this.storageKey}-code-verifier`),W(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(e){try{return await this._useSession(async i=>{var s,o;const{data:l,error:c}=i;if(c)throw c;return await se(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(o=(s=l.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _refreshAccessToken(e){const i="#_refreshAccessToken()";this._debug(i,"begin");try{const s=Date.now();return await Ck(async o=>(o>0&&await xk(200*Math.pow(2,o-1)),this._debug(i,"refreshing attempt",o),await se(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:dn})),(o,l)=>{const c=200*Math.pow(2,o);return l&&kf(l)&&Date.now()+c-s<qi})}catch(s){if(this._debug(i,"error",s),W(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(i,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,i){const s=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",i,"url",s),Ot()&&!i.skipBrowserRedirect&&window.location.assign(s),{data:{provider:e,url:s},error:null}}async _recoverAndRefresh(){var e,i;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const o=await ri(this.storage,this.storageKey);if(o&&this.userStorage){let c=await ri(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!c&&(c={user:o.user},await js(this.userStorage,this.storageKey+"-user",c)),o.user=(e=c?.user)!==null&&e!==void 0?e:jf()}else if(o&&!o.user&&!o.user){const c=await ri(this.storage,this.storageKey+"-user");c&&c?.user?(o.user=c.user,await at(this.storage,this.storageKey+"-user"),await js(this.storage,this.storageKey,o)):o.user=jf()}if(this._debug(s,"session from storage",o),!this._isValidSession(o)){this._debug(s,"session is not valid"),o!==null&&await this._removeSession();return}const l=((i=o.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<Cf;if(this._debug(s,`session has${l?"":" not"} expired with margin of ${Cf}s`),l){if(this.autoRefreshToken&&o.refresh_token){const{error:c}=await this._callRefreshToken(o.refresh_token);c&&(yk(c)?this._debug(s,"refresh discarded by commit guard",c):(this._debug(s,"refresh failed",c),kf(c)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",c),await this._removeSession())))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:c,error:d}=await this._getUser(o.access_token);!d&&c?.user?(o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(c){console.error("Error getting user data:",c),this._debug(s,"error getting user data, skipping SIGNED_IN notification",c)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(s,"error",o),console.error(o);return}finally{this._debug(s,"end")}}async _callRefreshToken(e){var i,s;if(!e)throw new yt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o="#_callRefreshToken()";this._debug(o,"begin");try{this.refreshingDeferred=new Ku;const l=await ri(this.storage,this.storageKey),{data:c,error:d}=await this._refreshAccessToken(e);if(d)throw d;if(!c.session)throw new yt;const h=await ri(this.storage,this.storageKey);if(l!==null&&(h===null||h.refresh_token!==l.refresh_token)){this._debug(o,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:h?"replaced":"cleared"});const _={data:null,error:new d0};return this.refreshingDeferred.resolve(_),_}const g=this._sessionRemovalEpoch;if(await this._saveSession(c.session),this._sessionRemovalEpoch!==g){this._debug(o,"commit guard (post-save): _removeSession ran during _saveSession, und
56oing write"),await at(this.storage,this.storageKey),this.userStorage&&await at(this.userStorage,this.storageKey+"-user");const _={data:null,error:new d0};return this.refreshingDeferred.resolve(_),_}await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const v={data:c.session,error:null};return this.refreshingDeferred.resolve(v),v}catch(l){if(this._debug(o,"error",l),W(l)){const c={data:null,error:l};return kf(l)||await this._removeSession(),(i=this.refreshingDeferred)===null||i===void 0||i.resolve(c),c}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(l),l}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(e,i,s=!0){const o=`#_notifyAllSubscribers(${e})`;this._debug(o,"begin",i,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:e,session:i});const l=[],c=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(e,i)}catch(h){l.push(h)}});if(await Promise.all(c),l.length>0){for(let d=0;d<l.length;d+=1)console.error(l[d]);throw l[0]}}finally{this._debug(o,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await at(this.storage,`${this.storageKey}-code-verifier`);const i=Object.assign({},e),s=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&i.user&&await js(this.userStorage,this.storageKey+"-user",{user:i.user});const o=Object.assign({},i);delete o.user;const l=g0(o);await js(this.storage,this.storageKey,l)}else{const o=g0(i);await js(this.storage,this.storageKey,o)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await at(this.storage,this.storageKey),await at(this.storage,this.storageKey+"-code-verifier"),await at(this.storage,this.storageKey+"-user"),this.userStorage&&await at(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Ot()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),qi);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const i=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const i=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,i&&clearTimeout(i)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(e=this.broadcastChannel)===null||e===void 0||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async i=>{const{data:{session:s}}=i;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((s.expires_at*1e3-e)/qi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${qi}ms, refresh threshold is ${Ha} ticks`),o<=Ha&&await this._callRefreshToken(s.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e instanceof Kk)this._debug("auto refresh token tick lock not available");else throw e}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const e=Date.now();try{await this._useSession(async i=>{const{data:{session:s}}=i;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((s.expires_at*1e3-e)/qi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${qi}ms, refresh threshold is ${Ha} ticks`),o<=Ha&&await this._callRefreshToken(s.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ot()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const i=`#_onVisibilityChanged(${e})`;if(this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
56{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(i,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,i,s){const o=[`provider=${encodeURIComponent(i)}`];if(s?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&o.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[l,c]=await Or(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(l)}`,code_challenge_method:`${encodeURIComponent(c)}`});o.push(d.toString())}if(s?.queryParams){const l=new URLSearchParams(s.queryParams);o.push(l.toString())}return s?.skipBrowserRedirect&&o.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${o.join("&")}`}async _unenroll(e){try{return await this._useSession(async i=>{var s;const{data:o,error:l}=i;return l?this._returnResult({data:null,error:l}):await se(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _enroll(e){try{return await this._useSession(async i=>{var s,o;const{data:l,error:c}=i;if(c)return this._returnResult({data:null,error:c});const d=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:h,error:m}=await se(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token});return m?this._returnResult({data:null,error:m}):(e.factorType==="totp"&&h.type==="totp"&&(!((o=h?.totp)===null||o===void 0)&&o.qr_code)&&(h.totp.qr_code=`data:image/svg+xml;utf-8,${h.totp.qr_code}`),this._returnResult({data:h,error:null}))})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _verify(e){const i=async()=>{try{return await this._useSession(async s=>{var o;const{data:l,error:c}=s;if(c)return this._returnResult({data:null,error:c});const d=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?E0(e.webauthn.credential_response):T0(e.webauthn.credential_response)})}:{code:e.code}),{data:h,error:m}=await se(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:d,headers:this.headers,jwt:(o=l?.session)===null||o===void 0?void 0:o.access_token});return m?this._returnResult({data:null,error:m}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+h.expires_in},h)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",h),this._returnResult({data:h,error:m}))})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,i):i()}async _challenge(e){const i=async()=>{try{return await this._useSession(async s=>{var o;const{data:l,error:c}=s;if(c)return this._returnResult({data:null,error:c});const d=await se(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(o=l?.session)===null||o===void 0?void 0:o.access_token});if(d.error)return d;const{data:h}=d;if(h.type!=="webauthn")return{data:h,error:null};switch(h.webauthn.type){case"create":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:w0(h.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:S0(h.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,i):i()}async _challengeAndVerify(e){const{data:i,error:s}=await this._challenge({factorId:e.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:e.factorId,challengeId:i.id,code:e.code})}async _listFactors(){var e;const{data:{user:i},error:s}=await this.getUser();if(s)return{data:null,error:s};const o={all:[],phone:[],totp:[],webauthn:[]};for(const l of(e=i?.factors)!==null&&e!==void 0?e:[])o.all.push(l),l.status==="verified"&&o[l.factor_type].push(l);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(e){var i,s,o,l;if(e)try{const{payload:b}=su(e);let S=null;b.aal&&(S=b.aal);let E=S;const{data:{user:T},error:R}=await this.getUser(e);if(R)return this._returnResult({data:null,error:R});
56((s=(i=T?.factors)===null||i===void 0?void 0:i.filter(B=>B.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(E="aal2");const C=b.amr||[];return{data:{currentLevel:S,nextLevel:E,currentAuthenticationMethods:C},error:null}}catch(b){if(W(b))return this._returnResult({data:null,error:b});throw b}const{data:{session:c},error:d}=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!c)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:h}=su(c.access_token);let m=null;h.aal&&(m=h.aal);let g=m;((l=(o=c.user.factors)===null||o===void 0?void 0:o.filter(b=>b.status==="verified"))!==null&&l!==void 0?l:[]).length>0&&(g="aal2");const _=h.amr||[];return{data:{currentLevel:m,nextLevel:g,currentAuthenticationMethods:_},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;return o?this._returnResult({data:null,error:o}):s?await se(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:s.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new yt})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _approveAuthorization(e,i){try{return await this._useSession(async s=>{const{data:{session:o},error:l}=s;if(l)return this._returnResult({data:null,error:l});if(!o)return this._returnResult({data:null,error:new yt});const c=await se(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return c.data&&c.data.redirect_url&&Ot()&&!i?.skipBrowserRedirect&&window.location.assign(c.data.redirect_url),c})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(e,i){try{return await this._useSession(async s=>{const{data:{session:o},error:l}=s;if(l)return this._returnResult({data:null,error:l});if(!o)return this._returnResult({data:null,error:new yt});const c=await se(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return c.data&&c.data.redirect_url&&Ot()&&!i?.skipBrowserRedirect&&window.location.assign(c.data.redirect_url),c})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;return s?this._returnResult({data:null,error:s}):i?await se(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new yt})})}catch(e){if(W(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;return o?this._returnResult({data:null,error:o}):s?(await se(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new yt})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async fetchJwk(e,i={keys:[]}){let s=i.keys.find(d=>d.kid===e);if(s)return s;const o=Date.now();if(s=this.jwks.keys.find(d=>d.kid===e),s&&this.jwks_cached_at+hk>o)return s;const{data:l,error:c}=await se(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(c)throw c;return!l.keys||l.keys.length===0||(this.jwks=l,this.jwks_cached_at=o,s=l.keys.find(d=>d.kid===e),!s)?null:s}async getClaims(e,i={}){try{let s=e;if(!s){const{data:b,error:S}
56=await this.getSession();if(S||!b.session)return this._returnResult({data:null,error:S});s=b.session.access_token}const{header:o,payload:l,signature:c,raw:{header:d,payload:h}}=su(s);if(!i?.allowExpired)try{Uk(l.exp)}catch(b){throw new Eu(b instanceof Error?b.message:"JWT validation failed")}const m=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,i?.keys?{keys:i.keys}:i?.jwks);if(!m){const{error:b}=await this.getUser(s);if(b)throw b;return{data:{claims:l,header:o,signature:c},error:null}}const g=zk(o.alg),v=await crypto.subtle.importKey("jwk",m,g,!0,["verify"]);if(!await crypto.subtle.verify(g,v,c,Ek(`${d}.${h}`)))throw new Eu("Invalid JWT signature");return{data:{claims:l,header:o,signature:c},error:null}}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(e){var i,s,o;yn(this.experimental);try{if(!Au())return this._returnResult({data:null,error:new wn("Browser does not support WebAuthn",null)});const{data:l,error:c}=await this._startPasskeyAuthentication({options:{captchaToken:(i=e?.options)===null||i===void 0?void 0:i.captchaToken}});if(c||!l)return this._returnResult({data:null,error:c});const d=S0(l.options),h=(o=(s=e?.options)===null||s===void 0?void 0:s.signal)!==null&&o!==void 0?o:oh.createNewAbortSignal(),{data:m,error:g}=await mw({publicKey:d,signal:h});if(g||!m)return this._returnResult({data:null,error:g??new wn("WebAuthn ceremony failed",null)});const v=T0(m);return this._verifyPasskeyAuthentication({challengeId:l.challenge_id,credential:v})}catch(l){if(W(l))return this._returnResult({data:null,error:l});throw l}}async registerPasskey(e){var i,s;yn(this.experimental);try{if(!Au())return this._returnResult({data:null,error:new wn("Browser does not support WebAuthn",null)});const{data:o,error:l}=await this._startPasskeyRegistration();if(l||!o)return this._returnResult({data:null,error:l});const c=w0(o.options),d=(s=(i=e?.options)===null||i===void 0?void 0:i.signal)!==null&&s!==void 0?s:oh.createNewAbortSignal(),{data:h,error:m}=await pw({publicKey:c,signal:d});if(m||!h)return this._returnResult({data:null,error:m??new wn("WebAuthn ceremony failed",null)});const g=E0(h);return this._verifyPasskeyRegistration({challengeId:o.challenge_id,credential:g})}catch(o){if(W(o))return this._returnResult({data:null,error:o});throw o}}async _startPasskeyRegistration(){yn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new yt});const{data:o,error:l}=await se(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:i.access_token,body:{}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:o,error:null})})}catch(e){if(W(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){yn(this.experimental);try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new yt});const{data:l,error:c}=await se(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyAuthentication(e){var i;yn(this.experimental);try{const{data:s,error:o}=await se(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(i=e?.options)===null||i===void 0?void 0:i.captchaToken}}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:s,error:null})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(e){yn(this.experimental);try{const{data:i,error:s}=await se(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:dn});return s?this._returnResult({data:null,error:s}):(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:i,error:null}))}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _listPasskeys(){yn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new yt});const{data:o,error:l}=await se(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:i.access_token,xform:c=>({data:c,error:null})});return l?this._returnResult({data:null,error:l}):this._returnResult({data:o,error:null})})}catch(e){if(W(e))return this._returnResult({data:null,error:e});throw e}}
56async _updatePasskey(e){yn(this.experimental);try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new yt});const{data:l,error:c}=await se(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:e.friendlyName}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async _deletePasskey(e){yn(this.experimental);try{return await this._useSession(async i=>{const{data:{session:s},error:o}=i;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new yt});const{error:l}=await se(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return l?this._returnResult({data:null,error:l}):this._returnResult({data:null,error:null})})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}}uo.nextInstanceID={};const o2=uo,l2="2.108.1";let Va="",xu;if(typeof Deno<"u"){var Df;Va="deno",xu=(Df=Deno.version)===null||Df===void 0?void 0:Df.deno}else if(typeof document<"u")Va="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Va="react-native";else{var Lf;Va="node",xu=typeof process<"u"?(Lf=process.version)===null||Lf===void 0?void 0:Lf.replace(/^v/,""):void 0}const gw=[`runtime=${Va}`];xu&&gw.push(`runtime-version=${xu}`);const u2={"X-Client-Info":`supabase-js/${l2}; ${gw.join("; ")}`},c2={headers:u2},d2={schema:"public"},f2={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},h2={},p2={enabled:!1,respectSamplingDecision:!0};function m2(t,e,i,s){function o(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function d(g){try{m(s.next(g))}catch(v){c(v)}}function h(g){try{m(s.throw(g))}catch(v){c(v)}}function m(g){g.done?l(g.value):o(g.value).then(d,h)}m((s=s.apply(t,[])).next())})}let Mf=null;const g2="@opentelemetry/api";function v2(){return Mf===null&&(Mf=import(g2).catch(()=>null)),Mf}function y2(){return m2(this,void 0,void 0,function*(){try{const t=yield v2();if(!t||!t.propagation||!t.context)return null;const e={};t.propagation.inject(t.context.active(),e);const i=e.traceparent;return i?{traceparent:i,tracestate:e.tracestate,baggage:e.baggage}:null}catch{return null}})}function _2(t){if(!t||typeof t!="string")return null;const e=t.split("-");if(e.length!==4)return null;const[i,s,o,l]=e;if(i.length!==2||s.length!==32||o.length!==16||l.length!==2)return null;const c=/^[0-9a-f]+$/i;return!c.test(i)||!c.test(s)||!c.test(o)||!c.test(l)||s==="00000000000000000000000000000000"||o==="0000000000000000"?null:{version:i,traceId:s,parentId:o,traceFlags:l,isSampled:(parseInt(l,16)&1)===1}}function b2(t,e){if(!t||!e||e.length===0)return!1;let i;if(t instanceof URL)i=t;else try{i=new URL(t)}catch{return!1}for(const s of e)try{if(typeof s=="string"){if(w2(i.hostname,s))return!0}else if(s instanceof RegExp){if(s.test(i.hostname))return!0}else if(typeof s=="function"&&s(i))return!0}catch{continue}return!1}function w2(t,e){if(e===t)return!0;if(e.startsWith("*.")){const i=e.slice(2);if(t.endsWith(i)&&(t===i||t.endsWith("."+i)))return!0}return!1}function S2(t){const e=[];try{const i=new URL(t);e.push(i.hostname)}catch{}return e.push("*.supabase.co","*.supabase.in"),e.push("localhost","127.0.0.1","[::1]"),e}function co(t){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},co(t)}function E2(t,e){if(co(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,e);if(co(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function T2(t){var e=E2(t,"string");return co(e)=="symbol"?e:e+""}function R2(t,e,i){return(e=T2(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function R0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),i.push.apply(i,s)}return i}function it(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};
56e%2?R0(Object(i),!0).forEach(function(s){R2(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):R0(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}const A2=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),O2=()=>Headers,x2=(t,e,i,s,o)=>{const l=A2(s),c=O2(),d=o?.enabled===!0,h=o?.respectSamplingDecision!==!1,m=d?S2(e):null;return async(g,v)=>{var _;const b=(_=await i())!==null&&_!==void 0?_:t;let S=new c(v?.headers);if(S.has("apikey")||S.set("apikey",t),S.has("Authorization")||S.set("Authorization",`Bearer ${b}`),m){const E=await C2(g,m,h);E&&(E.traceparent&&!S.has("traceparent")&&S.set("traceparent",E.traceparent),E.tracestate&&!S.has("tracestate")&&S.set("tracestate",E.tracestate),E.baggage&&!S.has("baggage")&&S.set("baggage",E.baggage))}return l(g,it(it({},v),{},{headers:S}))}};async function C2(t,e,i){if(!b2(typeof t=="string"||t instanceof URL?t:t.url,e))return null;const s=await y2();if(!s||!s.traceparent)return null;if(i){const o=_2(s.traceparent);if(o&&!o.isSampled)return null}return s}function A0(t){return typeof t=="boolean"?{enabled:t}:t}function k2(t){return t.endsWith("/")?t:t+"/"}function j2(t,e){var i,s,o,l,c,d;const{db:h,auth:m,realtime:g,global:v}=t,{db:_,auth:b,realtime:S,global:E}=e,T=A0(t.tracePropagation),R=A0(e.tracePropagation),k={db:it(it({},_),h),auth:it(it({},b),m),realtime:it(it({},S),g),storage:{},global:it(it(it({},E),v),{},{headers:it(it({},(i=E?.headers)!==null&&i!==void 0?i:{}),(s=v?.headers)!==null&&s!==void 0?s:{})}),tracePropagation:{enabled:(o=(l=T?.enabled)!==null&&l!==void 0?l:R?.enabled)!==null&&o!==void 0?o:!1,respectSamplingDecision:(c=(d=T?.respectSamplingDecision)!==null&&d!==void 0?d:R?.respectSamplingDecision)!==null&&c!==void 0?c:!0},accessToken:async()=>""};return t.accessToken?k.accessToken=t.accessToken:delete k.accessToken,k}function N2(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(k2(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var D2=class extends o2{constructor(t){super(t)}},L2=class{constructor(t,e,i){var s,o;this.supabaseUrl=t,this.supabaseKey=e;const l=N2(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:d2,realtime:h2,auth:it(it({},f2),{},{storageKey:c}),global:c2,tracePropagation:p2},h=j2(i??{},d);if(this.settings=h,this.storageKey=(s=h.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=h.global.headers)!==null&&o!==void 0?o:{},h.accessToken)this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(g,v)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(v)} is not possible`)}});else{var m;this.auth=this._initSupabaseAuthClient((m=h.auth)!==null&&m!==void 0?m:{},this.headers,h.global.fetch)}this.fetch=x2(e,t,this._getAccessToken.bind(this),h.global.fetch,h.tracePropagation),this.realtime=this._initRealtimeClient(it({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},h.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(g=>this.realtime.setAuth(g)).catch(g=>console.warn("Failed to set initial Realtime auth token:",g)),this.rest=new Zx(new URL("rest/v1",l).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch,timeout:h.db.timeout,urlLengthLimit:h.db.urlLengthLimit}),this.storage=new lk(this.storageUrl.href,this.headers,this.fetch,i?.storage),h.accessToken||this._listenForAuthEvents()}get functions(){return new Bx(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},i={head:!1,get:!1,count:void 0}
56){return this.rest.rpc(t,e,i)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,i;if(t.accessToken)return await t.accessToken();const{data:s}=await t.auth.getSession();return(e=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:i,storage:s,userStorage:o,storageKey:l,flowType:c,lock:d,debug:h,throwOnError:m,experimental:g,lockAcquireTimeout:v,skipAutoInitialize:_},b,S){const E={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new D2({url:this.authUrl.href,headers:it(it({},E),b),storageKey:l,autoRefreshToken:t,persistSession:e,detectSessionInUrl:i,storage:s,userStorage:o,flowType:c,lock:d,debug:h,throwOnError:m,experimental:g,fetch:S,lockAcquireTimeout:v,skipAutoInitialize:_,hasCustomAuthorizationHeader:Object.keys(this.headers).some(T=>T.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new jC(this.realtimeUrl.href,it(it({},t),{},{params:it(it({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,i){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const M2=(t,e,i)=>new L2(t,e,i);function U2(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const i=e.match(/^v(\d+)\./);return i?parseInt(i[1],10)<=18:!1}U2()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function z2(){if(typeof window>"u")return;const t=location.hostname,i=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(T=>t===T||t.endsWith("."+T)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=i?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,l=window.parent&&window.parent!==window;if(!o||!l)return localStorage;const c=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),d=c?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,h=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),m=h&&d.test(h)?[h]:c?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],g="lovable-preview-auth:result",v=2e3,_=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),b=(T,R,k)=>new Promise(C=>{const B=_();let J=!1,P;const N=le=>{J||(J=!0,clearTimeout(P),window.removeEventListener("message",K),C(le))},K=le=>{if(m.indexOf(le.origin)<0)return;const F=le.data;F&&F.type===g&&F.requestId===B&&N(F)};window.addEventListener("message",K);const te={type:T,requestId:B,projectId:o,key:R};k!==void 0&&(te.value=k);for(const le of m)window.parent.postMessage(te,le);P=setTimeout(()=>N(null),v)});let S=!0;const E=250;return{getItem:async T=>{let R=await b("lovable-preview-auth:get",T);return!R&&S&&(await new Promise(k=>setTimeout(k,E)),R=await b("lovable-preview-auth:get",T)),S=!1,R&&R.ok&&typeof R.value=="string"?R.value===""?(localStorage.removeItem(T),null):R.value:localStorage.getItem(T)},setItem:(T,R)=>(localStorage.setItem(T,R),b("lovable-preview-auth:set",T,R).then(k=>{k&&k.ok&&typeof k.value=="string"&&localStorage.getItem(T)===R&&(k.value===""?localStorage.removeItem(T):localStorage.setItem(T,k.value))})),removeItem:T=>(localStorage.removeItem(T),b("lovable-preview-auth:remove",T).then(()=>{}))}}function I2(){return M2("https://shdpmkwtdkdexuhsscfh.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNoZHBta3d0ZGtkZXh1aHNzY2ZoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODEyMjY2NjgsImV4cCI6MjA5NjgwMjY2OH0.4uLuqorBlpI9OWxnN6cr64LpdiIj6BEP6JxJnO91Ang",{auth:{storage:z2(),persistSession:!0,autoRefreshToken:!0}})}let Uf;const P2=new Proxy({}
vendor: 32,132 bytes, line 56
56,{get(t,e,i){return Uf||(Uf=I2()),Reflect.get(Uf,e,i)}}),B2=jr({type:"function"}).client(async({next:t})=>{const{data:e}=await P2.auth.getSession(),i=e.session?.access_token;return t({headers:i?{Authorization:`Bearer ${i}`}:{}})}),$2=jr(),O0=Ux(()=>({functionMiddleware:[B2],requestMiddleware:[$2]}));var Ro=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},q2=class extends Ro{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Vh=new q2,H2={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},V2=class{#e=H2;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Dr=new V2;function F2(t){setTimeout(t,0)}var G2=typeof window>"u"||"Deno"in globalThis;function Bt(){}function K2(t,e){return typeof t=="function"?t(e):t}function lh(t){return typeof t=="number"&&t>=0&&t!==1/0}function vw(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ji(t,e){return typeof t=="function"?t(e):t}function Jt(t,e){return typeof t=="function"?t(e):t}function x0(t,e){const{type:i="all",exact:s,fetchStatus:o,predicate:l,queryKey:c,stale:d}=t;if(c){if(s){if(e.queryHash!==Fh(c,e.options))return!1}else if(!ho(e.queryKey,c))return!1}if(i!=="all"){const h=e.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||o&&o!==e.state.fetchStatus||l&&!l(e))}function C0(t,e){const{exact:i,status:s,predicate:o,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(i){if(fo(e.options.mutationKey)!==fo(l))return!1}else if(!ho(e.options.mutationKey,l))return!1}return!(s&&e.state.status!==s||o&&!o(e))}function Fh(t,e){return(e?.queryKeyHashFn||fo)(t)}function fo(t){return JSON.stringify(t,(e,i)=>ch(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function ho(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(i=>ho(t[i],e[i])):!1}var Y2=Object.prototype.hasOwnProperty;function yw(t,e,i=0){if(t===e)return t;if(i>500)return e;const s=k0(t)&&k0(e);if(!s&&!(ch(t)&&ch(e)))return e;const l=(s?t:Object.keys(t)).length,c=s?e:Object.keys(e),d=c.length,h=s?new Array(d):{};let m=0;for(let g=0;g<d;g++){const v=s?g:c[g],_=t[v],b=e[v];if(_===b){h[v]=_,(s?g<l:Y2.call(t,v))&&m++;continue}if(_===null||b===null||typeof _!="object"||typeof b!="object"){h[v]=b;continue}const S=yw(_,b,i+1);h[v]=S,S===_&&m++}return l===d&&m===l?t:h}function uh(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(t[i]!==e[i])return!1;return!0}function k0(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function ch(t){if(!j0(t))return!1;const e=t.constructor;if(e===void 0)return!0;const i=e.prototype;return!(!j0(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function j0(t){return Object.prototype.toString.call(t)==="[object Object]"}function Z2(t){return new Promise(e=>{Dr.setTimeout(e,t)})}function dh(t,e,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,e):i.structuralSharing!==!1?yw(t,e):e}function Q2(t,e,i=0){const s=[...t,e];return i&&s.length>i?s.slice(1):s}function J2(t,e,i=0){const s=[e,...t];return i&&s.length>i?s.slice(0,-1):s}var Gh=Symbol();function _w(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Gh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function bw(t,e){return typeof t=="function"?t(...e):!!t}function X2(t,e,i){let s=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=e(),s||(s=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),t}var po=(()=>{let t=()=>G2;return{isServer(){return t()},setIsServer(e){t=e}}})();function fh(){let t,e;const i=new Promise((o,l)=>{t=o,e=l});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),t(o)},i.reject=o=>{s({status:"rejected",reason:o}),e(o)},i}var W2=F2;function ej(){let t=[],e=0,i=d=>{d()},s=d=>{d()},o=W2;const l=d=>{e?t.push(d):o(()=>{i(d)})},c=()=>{const d=t;t=[],d.length&&o(()=>{s(()=>{d.forEach(h=>{i(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{o=d}}}var Rt=ej(),tj=class extends Ro{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(i=>{i(t)}))}isOnline(){return this.#e}},Cu=new tj;function nj(t){return Math.min(1e3*2**t,3e4)}function ww(t){return(t??"online")==="online"?Cu.isOnline():!0}var hh=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Sw(t){let e=!1,i=0,s;const o=fh(),l=()=>o.status!=="pending",c=E=>{if(!l()){const T=new hh(E);_(T),t.onCancel?.(T)}},d=()=>{e=!0},h=()=>{e=!1},m=()=>Vh.isFocused()&&(t.networkMode==="always"||Cu.isOnline())&&t.canRun(),g=()=>ww(t.networkMode)&&t.canRun(),v=E=>{l()||(s?.(),o.resolve(E))},_=E=>{l()||(s?.(),o.reject(E))},b=()=>new Promise(E=>{s=T=>{(l()||m())&&E(T)},t.onPause?.()}).then(()=>{s=void 0,l()||t.onContinue?.()}),S=()=>{if(l())return;let E;const T=i===0?t.initialPromise:void 0;try{E=T??t.fn()}catch(R){E=Promise.reject(R)}Promise.resolve(E).then(v).catch(R=>{if(l())return;const k=t.retry??(po.isServer()?0:3),C=t.retryDelay??nj,B=typeof C=="function"?C(i,R):C,J=k===!0||typeof k=="number"&&i<k||typeof k=="function"&&k(i,R);if(e||!J){_(R);return}i++,t.onFail?.(i,R),Z2(B).then(()=>m()?void 0:b()).then(()=>{e?_(R):S()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(s?.(),o),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?S():b().then(S),o)}}var Ew=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lh(this.gcTime)&&(this.#e=Dr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(po.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Dr.clearTimeout(this.#e),this.#e=void 0)}},ij=class extends Ew{#e;#t;#n;#r;#i;#a;#s;constructor(t){super(),this.#s=!1,this.#a=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=D0(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#a,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=D0(this.options);e.data!==void 0&&(this.setState(N0(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const i=dh(this.state.data,t,this.options);return this.#l({data:i,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),i}setState(t,e){this.#l({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(Bt).catch(Bt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Jt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ji(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!vw(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#i&&(this.#s||this.#o()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const i=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const d=_w(this.options,e),m=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!1,this.options.persister?this.options.persister(d,m,this):d(m)},c=(()=>{const d={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return s(d),d})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#l({type:"fetch",meta:c.fetchOptions?.meta}),this.#i=Sw({initialPromise:e?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof hh&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(d,h)=>{this.#l({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#i.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof hh){if(d.silent)return this.#i.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Tw(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,...N0(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?s:void 0,s;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),Rt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Tw(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ww(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function N0(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function D0(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,i=e!==void 0,s=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var rj=class extends Ro{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#s=fh(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#s;#o;#l;#h;#p;#c;#d;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),L0(this.#t,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ph(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ph(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Jt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!uh(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&M0(this.#t,i,this.options,e)&&this.#f(),this.updateResult(),s&&(this.#t!==i||Jt(this.options.enabled,this.#t)!==Jt(e.enabled,this.#t)||Ji(this.options.staleTime,this.#t)!==Ji(e.staleTime,this.#t))&&this.#g();const o=this.#v();s&&(this.#t!==i||Jt(this.options.enabled,this.#t)!==Jt(e.enabled,this.#t)||o!==this.#u)&&this.#y(o)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),i=this.createResult(e,t);return aj(this,i)&&(this.#r=i,this.#a=this.options,this.#i=this.#t.state),i}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),e?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),i=this.#e.getQueryCache().build(this.#e,e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Bt)),e}#g(){this.#b();const t=Ji(this.options.staleTime,this.#t);if(po.isServer()||this.#r.isStale||!lh(t))return;const i=vw(this.#r.dataUpdatedAt,t)+1;this.#c=Dr.setTimeout(()=>{this.#r.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#w(),this.#u=t,!(po.isServer()||Jt(this.options.enabled,this.#t)===!1||!lh(this.#u)||this.#u===0)&&(this.#d=Dr.setInterval(()=>{(this.options.refetchIntervalInBackground||Vh.isFocused())&&this.#f()},this.#u))}#_(){this.#g(),this.#y(this.#v())}#b(){this.#c!==void 0&&(Dr.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#d!==void 0&&(Dr.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){const i=this.#t,s=this.options,o=this.#r,l=this.#i,c=this.#a,h=t!==i?t.state:this.#n,{state:m}=t;let g={...m},v=!1,_;if(e._optimisticResults){const K=this.hasListeners(),te=!K&&L0(t,e),le=K&&M0(t,i,e,s);(te||le)&&(g={...g,...Tw(m.data,t.options)}),e._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:E}=g;_=g.data;let T=!1;if(e.placeholderData!==void 0&&_===void 0&&E==="pending"){let K;o?.isPlaceholderData&&e.placeholderData===c?.placeholderData?(K=o.data,T=!0):K=typeof e.placeholderData=="function"?e.placeholderData(this.#p?.state.data,this.#p):e.placeholderData,K!==void 0&&(E="success",_=dh(o?.data,K,e),v=!0)}if(e.select&&_!==void 0&&!T)if(o&&_===l?.data&&e.select===this.#l)_=this.#h;else try{this.#l=e.select,_=e.select(_),_=dh(o?.data,_,e),this.#h=_,this.#o=null}catch(K){this.#o=K}this.#o&&(b=this.#o,_=this.#h,S=Date.now(),E="error");const R=g.fetchStatus==="fetching",k=E==="pending",C=E==="error",B=k&&R,J=_!==void 0,N={status:E,fetchStatus:g.fetchStatus,isPending:k,isSuccess:E==="success",isError:C,isInitialLoading:B,isLoading:B,data:_,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:R,isRefetching:R&&!k,isLoadingError:C&&!J,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:C&&J,isStale:Kh(t,e),refetch:this.refetch,promise:this.#s,isEnabled:Jt(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const K=N.data!==void 0,te=N.status==="error"&&!K,le=ee=>{te?ee.reject(N.error):K&&ee.resolve(N.data)},F=()=>{const ee=this.#s=N.promise=fh();le(ee)},G=this.#s;switch(G.status){case"pending":t.queryHash===i.queryHash&&le(G);break;case"fulfilled":(te||N.data!==G.value)&&F();break;case"rejected":(!te||N.error!==G.reason)&&F();break}}return N}updateResult(){const t=this.#r,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#p=this.#t),uh(e,t))return;this.#r=e;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const l=new Set(o??this.#m);return this.options.throwOnError&&l.add("error"),Object.keys(this.#r).some(c=>{const d=c;return this.#r[d]!==t[d]&&l.has(d)})};this.#E({listeners:i()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#E(t){Rt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function sj(t,e){return Jt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Jt(e.retryOnMount,t)===!1)}function L0(t,e){return sj(t,e)||t.state.data!==void 0&&ph(t,e,e.refetchOnMount)}function ph(t,e,i){if(Jt(e.enabled,t)!==!1&&Ji(e.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&Kh(t,e)}return!1}function M0(t,e,i,s){return(t!==e||Jt(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&Kh(t,i)}function Kh(t,e){return Jt(e.enabled,t)!==!1&&t.isStaleByTime(Ji(e.staleTime,t))}function aj(t,e){return!uh(t.getCurrentResult(),e)}function U0(t){return{onFetch:(e,i)=>{const s=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,l=e.state.data?.pages||[],c=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const m=async()=>{let g=!1;const v=S=>{X2(S,()=>e.signal,()=>g=!0)},_=_w(e.options,e.fetchOptions),b=async(S,E,T)=>{if(g)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const k=(()=>{const P={client:e.client,queryKey:e.queryKey,pageParam:E,direction:T?"backward":"forward",meta:e.options.meta};return v(P),P})(),C=await _(k),{maxPages:B}=e.options,J=T?J2:Q2;return{pages:J(S.pages,C,B),pageParams:J(S.pageParams,E,B)}};if(o&&l.length){const S=o==="backward",E=S?oj:z0,T={pages:l,pageParams:c},R=E(s,T);d=await b(T,R,S)}else{const S=t??l.length;do{const E=h===0?c[0]??s.initialPageParam:z0(s,d);if(h>0&&E==null)break;d=await b(d,E),h++}while(h<S)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},i):e.fetchFn=m}}}function z0(t,{pages:e,pageParams:i}){const s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,i[s],i):void 0}function oj(t,{pages:e,pageParams:i}){return e.length>0?t.getPreviousPageParam?.(e[0],e,i[0],i):void 0}var lj=class extends Ew{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||uj(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#i({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Sw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#i({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#r.canStart();try{if(s)e();else{this.#i({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,i);const c=await this.options.onMutate?.(t,i);c!==this.state.context&&this.#i({type:"pending",context:c,variables:t,isPaused:o})}const l=await this.#r.start();return await this.#n.config.onSuccess?.(l,t,this.state.context,this,i),await this.options.onSuccess?.(l,t,this.state.context,i),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(l,null,t,this.state.context,i),this.#i({type:"success",data:l}),l}catch(l){try{await this.#n.config.onError?.(l,t,this.state.context,this,i)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,t,this.state.context,i)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,i)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,t,this.state.context,i)}catch(c){Promise.reject(c)}throw this.#i({type:"error",error:l}),l}finally{this.#n.runNext(this)}}#i(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Rt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function uj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cj=class extends Ro{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,i){const s=new lj({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){this.#e.add(t);const e=au(t);if(typeof e=="string"){const i=this.#t.get(e);i?i.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=au(t);if(typeof e=="string"){const i=this.#t.get(e);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=au(t);if(typeof e=="string"){const s=this.#t.get(e)?.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){const e=au(t);return typeof e=="string"?this.#t.get(e)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Rt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(i=>C0(e,i))}findAll(t={}){return this.getAll().filter(e=>C0(t,e))}notify(t){Rt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Rt.batch(()=>Promise.all(t.map(e=>e.continue().catch(Bt))))}};function au(t){return t.options.scope?.id}var dj=class extends Ro{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,i){const s=e.queryKey,o=e.queryHash??Fh(s,e);let l=this.get(o);return l||(l=new ij({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>x0(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>x0(t,i)):e}notify(t){Rt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fj=class{#e;#t;#n;#r;#i;#a;#s;#o;constructor(t={}){this.#e=t.queryCache||new dj,this.#t=t.mutationCache||new cj,this.#n=t.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=Vh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Cu.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=this.#e.build(this,e),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ji(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:i})=>{const s=i.data;return[e,s]})}setQueryData(t,e,i){const s=this.defaultQueryOptions({queryKey:t}),l=this.#e.get(s.queryHash)?.state.data,c=K2(e,l);if(c!==void 0)return this.#e.build(this,s).setData(c,{...i,manual:!0})}setQueriesData(t,e,i){return Rt.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,i)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Rt.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=this.#e;return Rt.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},s=Rt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(i)));return Promise.all(s).then(Bt).catch(Bt)}invalidateQueries(t,e={}){return Rt.batch(()=>(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},s=Rt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,i);return i.throwOnError||(l=l.catch(Bt)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(Bt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=this.#e.build(this,e);return i.isStaleByTime(Ji(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Bt).catch(Bt)}fetchInfiniteQuery(t){return t.behavior=U0(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Bt).catch(Bt)}ensureInfiniteQueryData(t){return t.behavior=U0(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Cu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(fo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()],i={};return e.forEach(s=>{ho(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){this.#i.set(fo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#i.values()],i={};return e.forEach(s=>{ho(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Fh(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Gh&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Rw=Z.createContext(void 0),hj=t=>{const e=Z.useContext(Rw);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},pj=({client:t,children:e})=>(Z.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),D.jsx(Rw.Provider,{value:t,children:e})),Aw=Z.createContext(!1),mj=()=>Z.useContext(Aw);Aw.Provider;function gj(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var vj=Z.createContext(gj()),yj=()=>
56Z.useContext(vj),_j=(t,e,i)=>{const s=i?.state.error&&typeof t.throwOnError=="function"?bw(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&(e.isReset()||(t.retryOnMount=!1))},bj=t=>{Z.useEffect(()=>{t.clearReset()},[t])},wj=({result:t,errorResetBoundary:e,throwOnError:i,query:s,suspense:o})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&(o&&t.data===void 0||bw(i,[t.error,s])),Sj=t=>{if(t.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ej=(t,e)=>t.isLoading&&t.isFetching&&!e,Tj=(t,e)=>t?.suspense&&e.isPending,I0=(t,e,i)=>e.fetchOptimistic(t).catch(()=>{i.clearReset()});function Rj(t,e,i){const s=mj(),o=yj(),l=hj(),c=l.defaultQueryOptions(t);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=s?"isRestoring":"optimistic",Sj(c),_j(c,o,d),bj(o);const h=!l.getQueryCache().get(c.queryHash),[m]=Z.useState(()=>new e(l,c)),g=m.getOptimisticResult(c),v=!s&&t.subscribed!==!1;if(Z.useSyncExternalStore(Z.useCallback(_=>{const b=v?m.subscribe(Rt.batchCalls(_)):Bt;return m.updateResult(),b},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),Z.useEffect(()=>{m.setOptions(c)},[c,m]),Tj(c,g))throw I0(c,m,o);if(wj({result:g,errorResetBoundary:o,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw g.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!po.isServer()&&Ej(g,s)&&(h?I0(c,m,o):d?.promise)?.catch(Bt).finally(()=>{m.updateResult()}),c.notifyOnChangeProps?g:m.trackResult(g)}function Aj(t,e){return Rj(t,rj)}const Oj="/assets/styles-kRjLQemH.css";function xj(t,e={}){typeof window>"u"||window.__lovableEvents?.captureException?.(t,{source:"react_error_boundary",route:window.location.pathname,...e},{mechanism:"react_error_boundary",handled:!1,severity:"error"})}const Ow=(...t)=>t.filter((e,i,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===i).join(" ").trim();const Cj=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const kj=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,i,s)=>s?s.toUpperCase():i.toLowerCase());const P0=t=>{const e=kj(t);return e.charAt(0).toUpperCase()+e.slice(1)};var jj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Nj=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const Dj=Z.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:l,iconNode:c,...d},h)=>Z.createElement("svg",{ref:h,...jj,width:e,height:e,stroke:t,strokeWidth:s?Number(i)*24/Number(e):i,className:Ow("lucide",o),...!l&&!Nj(d)&&{"aria-hidden":"true"},...d},[...c.map(([m,g])=>Z.createElement(m,g)),...Array.isArray(l)?l:[l]]));const Yh=(t,e)=>{const i=Z.forwardRef(({className:s,...o},l)=>Z.createElement(Dj,{ref:l,iconNode:e,className:Ow(`lucide-${Cj(P0(t))}`,`lucide-${t}`,s),...o}));return i.displayName=P0(t),i};const Lj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Mj=Yh("arrow-right",Lj);const Uj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],zj=Yh("menu",Uj);const Ij=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xw=Yh("x",Ij),Pj="/__l5e/assets-v1/4b9f3e2e-5d85-4f64-a0fa-f73ae18956d5/investizen-logo.png",Cw={url:Pj},B0="'Playfair Display', serif",$0="'Inter', sans-serif",q0=[{to:"/patrimoineplus",label:"Patrimoine +"},{to:"/academie",label:"Académie"},{to:"/coaching",label:"Conseil personnalisé"},{to:"/lepodcast",label:"Podcast"},{to:"/parrainage",label:"Parrainage"}],Bj=()=>{const[t,e]=Z.useState(!1);return D.jsxs("header",{className:"sticky top-0 z-50 bg-[#0B0F14] border-b border-[#2A2F36]",children:[D.jsxs("div",{className:"container mx-auto px-6 py-4 flex items-center justify-between",children:[D.jsxs(xt,{to:"/",className:"flex items-center gap-3 text-xl tracking-tight text-[#F5F5F3]",style:{fontFamily:B0,fontWeight:500},children:[D.jsx("img",{src:Cw.url,alt:"Investizen",className:"h-8 w-auto"}),"Investir",D.jsx("span",{className:"text-[#C6A96B] italic",children:"Simple"})]}),D.jsx("nav",{className:"hidden md:flex items-center gap-7 text-sm text-[#D1D5DB]",style:{fontFamily:$0},children:q0.map(i=>D.jsx(xt,{to:i.to,className:"hover:text-[#C6A96B] transition-colors",children:i.label},i.to))}),D.jsx("button",{type:"button","aria-label":"Ouvrir le menu","aria-expanded":t,onClick:()=>e(!0),className:"md:hidden text-[#F5F5F3] p-2 -mr-2",children:D.jsx(zj,{size:24})})]}),t&&D.jsxs("div",{className:"md:hidden fixed inset-0 z-50",children:[D.jsx("div",{className:"absolute inset-0 bg-black/60",onClick:()=>e(!1)}),D.jsxs("div",{className:"absolute top-0 right-0 h-full w-72 max-w-[85vw] bg-[#0B0F14] border-l border-[#2A2F36] p-6 flex flex-col",children:[D.jsxs("div",{className:"flex items-center justify-between mb-8",children:[D.jsx("span",{className:"text-lg tracking-tight text-[#F5F5F3]",style:{fontFamily:B0,fontWeight:500},children:"Menu"}),D.jsx("button",{type:"button","aria-label":"Fermer le menu",onClick:()=>e(!1),className:"text-[#F5F5F3] p-2 -mr-2",children:D.jsx(xw,{size:24})})]}),D.jsx("nav",{className:"flex flex-col gap-5 text-base text-[#D1D5DB]",style:{fontFamily:$0},children:q0.map(i=>D.jsx(xt,{to:i.to,onClick:()=>e(!1),className:"hover:text-[#C6A96B] transition-colors",children:i.label},i.to))})]})]})]})},kw="cookie-consent",mh="cookie-consent-change";function ku(){if(typeof window>"u")return null;const t=window.localStorage.getItem(kw);return t==="accepted"||t==="refused"?t:null}function H0(t){typeof window>"u"||(window.localStorage.setItem(kw,t),window.dispatchEvent(new CustomEvent(mh,{detail:t})))}function jw(){const[t,e]=Z.useState(null);return Z.useEffect(()=>{e(ku());const i=()=>e(ku());return window.addEventListener(mh,i),window.addEventListener("storage",i
56),()=>{window.removeEventListener(mh,i),window.removeEventListener("storage",i)}},[]),t}const $j="'Inter', sans-serif",qj=["/patrimoineplusversionessai-c8977ba3","/mercipplusessai-485134d8"];function Hj(){const[t,e]=Z.useState(!1),i=Vb({select:l=>l.location.pathname});if(Z.useEffect(()=>{ku()===null&&e(!0);const l=()=>{ku()===null&&e(!0)};return window.addEventListener("cookie-consent-open",l),()=>window.removeEventListener("cookie-consent-open",l)},[]),qj.includes(i)||!t)return null;const s=()=>{H0("accepted"),e(!1)},o=()=>{H0("refused"),e(!1)};return D.jsx("div",{role:"dialog","aria-label":"Consentement aux cookies",className:"fixed bottom-0 left-0 right-0 z-50 border-t border-[#2A2F36] bg-[#0B0F14]/95 backdrop-blur-md",style:{fontFamily:$j},children:D.jsxs("div",{className:"container mx-auto px-6 py-5 flex flex-col md:flex-row md:items-center gap-4 md:gap-6",children:[D.jsxs("p",{className:"text-sm text-[#D1D5DB] flex-1 leading-relaxed",children:["Nous utilisons des cookies pour mesurer l'audience et améliorer ton expérience. Tu peux accepter ou refuser à tout moment."," ",D.jsx(xt,{to:"/politiqueconfidentialite",className:"underline text-[#C6A96B] hover:text-[#d7be86] transition-colors",children:"En savoir plus"})]}),D.jsxs("div",{className:"flex gap-3 shrink-0",children:[D.jsx("button",{onClick:o,className:"px-5 py-2.5 text-sm rounded-md border border-[#2A2F36] text-[#D1D5DB] hover:bg-[#1a1f26] transition-colors",children:"Refuser"}),D.jsx("button",{onClick:s,className:"px-5 py-2.5 text-sm rounded-md bg-[#C6A96B] text-[#0B0F14] font-medium hover:bg-[#d7be86] transition-colors",children:"Accepter"})]})]})})}function Vj(){typeof window>"u"||(window.localStorage.removeItem("cookie-consent"),window.dispatchEvent(new CustomEvent("cookie-consent-change",{detail:null})),window.dispatchEvent(new CustomEvent("cookie-consent-open")))}const Fj="'Playfair Display', serif",Gj="'Inter', sans-serif",Kj=()=>D.jsx("footer",{className:"bg-[#0B0F14] text-[#D1D5DB] border-t border-[#2A2F36]",style:{fontFamily:Gj},children:D.jsxs("div",{className:"container mx-auto px-6 py-14 flex flex-col items-center text-center gap-6",children:[D.jsxs(xt,{to:"/",className:"flex items-center gap-3 text-2xl tracking-tight text-[#F5F5F3]",style:{fontFamily:Fj,fontWeight:500},children:[D.jsx("img",{src:Cw.url,alt:"Investizen",className:"h-10 w-auto"}),"Investir",D.jsx("span",{className:"text-[#C6A96B] italic",children:"Simple"})]}),D.jsx("p",{className:"text-xs text-[#D1D5DB]/60 max-w-3xl leading-relaxed",children:"L'investissement comporte un risque de perte en capital et de liquidité. Les informations diffusées ne constituent pas un conseil en investissement personnalisé. Les performances passées ne préjugent pas des performances futures."}),D.jsxs("div",{className:"flex flex-wrap justify-center gap-x-5 gap-y-2 text-sm text-[#D1D5DB]",children:[D.jsx(xt,{to:"/contact",className:"hover:text-[#C6A96B] transition-colors",children:"Contact"}),D.jsx(xt,{to:"/about",className:"hover:text-[#C6A96B] transition-colors",children:"À propos"}),D.jsx(xt,{to:"/posts",className:"hover:text-[#C6A96B] transition-colors",children:"Blog"})]}),D.jsx("div",{className:"border-t border-[#2A2F36] w-full"}),D.jsxs("p",{className:"text-xs text-[#D1D5DB]/60",children:["© ",new Date().getFullYear()," Investir Simple. Tous droits réservés."]}),D.jsxs("div",{className:"flex flex-wrap justify-center gap-x-3 gap-y-1 text-xs text-[#D1D5DB]/60",children:[D.jsx(xt,{to:"/politiqueconfidentialite",className:"hover:text-[#C6A96B] transition-colors",children:"Politique de confidentialité"}),D.jsx("span",{className:"text-[#2A2F36]",children:"|"}),D.jsx(xt,{to:"/mentions-legales",className:"hover:text-[#C6A96B] transition-colors",children:"Mentions légales"}),D.jsx("span",{className:"text-[#2A2F36]",children:"|"}),D.jsx(xt,{to:"/cgv",className:"hover:text-[#C6A96B] transition-colors",children:"CGV"}),D.jsx("span",{className:"text-[#2A2F36]",children:"|"}),D.jsx(xt,{to:"/politiquedecookies",className:"hover:text-[#C6A96B] transition-colors",children:"Politique de cookies"}),D.jsx("span",{className:"text-[#2A2F36]",children:"|"}),D.jsx("button",{type:"button",onClick:Vj,className:"hover:text-[#C6A96B] transition-colors",children:"Gérer mes cookies"})]})]})}),Nw="847052120376113";function Yj(){if(typeof window>"u"||window.fbq)return;const t=document.createElement("script");t.async=!0,t.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(t);const e=(...i)=>{e.callMethod?e.callMethod.apply(e,i):e.queue.push(i)};e.push=e,e.loaded=!0,e.version="2.0",e.queue=[],window.fbq=e,window._fbq=e,e("init",Nw),e("track","PageView")}function Zj(){const t=_t(),e=jw(),i=Z.useRef(!1);return Z.useEffect(()=>{e!=="refused"&&(i.current||(i.current=!0,Yj()))},[e]),Z.useEffect(()=>{if(e==="refused")return;const s=t.subscribe("onResolved",()=>{window.fbq&&window.fbq("track","PageView")});return()=>s()},[t,e]),e==="refused"?null:D.jsx("noscript",{children:D.jsx("img",{height:"1",width:"1",style:{display:"none"},src:`https://www.facebook.com/tr?id=${Nw}&ev=PageView&noscript=1`,alt:""})})}const Qj=hu({method:"GET"}).handler(Ob("afc4acc3a635dbfc35209e7ada71e1c7668afee3484884b09f91e7f7530cf115"));function Jj(t){if(t<1)return"à l'instant";if(t<60)return`il y a ${Math.round(t)} min`;const e=Math.round(t/60);if(e<24)return`il y a ${e} h`;const i=Math.round(e/24);return i<=1?"hier":`il y a ${i} jours`}const V0="social-proof-dismissed",Xj=4e3,Wj=5e3,eN=4e3;function tN(t){return t.startsWith("/admin-liens")||t.includes("paiement")||t.includes("checkout")||t.includes("merci")}function nN(){const t=Vb({select:b=>b.location.pathname}),e=jw(),[i,s]=Z.useState(!0),[o,l]=Z.useState(0),[c,d]=Z.useState(!1),h=Z.useRef(null);Z.useEffect(()=>{try{s(window.sessionStorage.getItem(V0)==="1")}catch{s(!1)}},[]);const m=i||tN(t)||e===null,{data:g}=Aj({queryKey:["social-proof-events"],queryFn:()=>Qj(),staleTime:300*1e3,enabled:!m}),v=Z.useMemo(()=>g?.items??[],[g]);if(Z.useEffect(()=>{if(m||v.length===0){d(!1);return}let b=!1;const S=(T,R)=>{h.current=setTimeout(()=>{b||R()},T)},E=()=>{d(!0),S(Wj,()=>{d(!1),S(eN,()=>{l(T=>(T+1)%v.length),E()})})};return S(Xj,E),()=>{b=!0,h.current&&clearTimeout(h.current)}},[m,v.length]),m||v.length===0)return null;const _=v[o%v.length];return D.jsxs("div",{"aria-live":"polite",className:["hidden sm:flex fixed bottom-5 left-5 z-40 max-w-[22rem] items-center gap-3","rounded-xl border border-border bg-card/95 px-4 py-3 text-card-foreground shadow-lg backdrop-blur-sm","transition-all duration-500 ease-out motion-reduce:transition-none",c?"translate-y-0 opacity-100":"pointer-events-none translate-y-3 op
56acity-0 motion-reduce:opacity-0"].join(" "),children:[D.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-accent/15",children:D.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-accent"})}),D.jsxs("div",{className:"min-w-0",children:[D.jsxs("p",{className:"font-body text-sm leading-snug",children:[D.jsx("span",{className:"font-semibold",children:_.firstName})," ",_.label]}),D.jsx("p",{className:"font-body text-xs text-muted-foreground",children:Jj(_.minutesAgo)})]}),D.jsx("button",{type:"button","aria-label":"Masquer les notifications",onClick:()=>{try{window.sessionStorage.setItem(V0,"1")}catch{}s(!0)},className:"ml-1 shrink-0 rounded p-1 text-muted-foreground transition-colors hover:text-foreground",children:D.jsx(xw,{className:"h-4 w-4"})})]})}function iN(){return D.jsxs("div",{className:"relative w-full overflow-hidden bg-[#0B0F14]",children:[D.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-30",style:{background:"radial-gradient(circle at 20% 50%, rgba(79,124,172,0.35) 0%, transparent 50%)"}}),D.jsx("div",{className:"absolute top-0 left-0 h-px w-full bg-gradient-to-r from-transparent via-[#C6A96B] to-transparent opacity-60"}),D.jsxs("div",{className:"relative z-10 mx-auto flex max-w-6xl flex-col items-center justify-center gap-3 px-4 py-3 sm:flex-row sm:justify-center sm:gap-6 sm:py-3.5",children:[D.jsx("div",{className:"flex flex-col items-center text-center sm:items-start sm:text-left",children:D.jsx("p",{className:"text-sm font-semibold text-[#F5F5F3] sm:text-[15px]",children:"Réserve gratuitement ton appel diagnostic pour l'académie"})}),D.jsxs(xt,{to:"/academie-candidature",className:"inline-flex shrink-0 items-center gap-1.5 rounded-full bg-gradient-to-br from-[#C6A96B] via-[#F5E6AD] to-[#C6A96B] px-4 py-1.5 text-sm font-bold text-[#0B0F14] shadow-[0_0_18px_rgba(198,169,107,0.35)] transition-all hover:scale-105 hover:shadow-[0_0_24px_rgba(198,169,107,0.45)]",children:["Réserver",D.jsx(Mj,{className:"h-4 w-4"})]})]}),D.jsx("div",{className:"absolute bottom-0 left-0 h-px w-full bg-gradient-to-r from-transparent via-[#C6A96B] to-transparent opacity-60"})]})}const gh="is_utm",Dw=3600*24*30,mo="is_utm_first",Lw=3600*24*180,rN={anna:"Inscrits Bootcamp Affilié Anna","pub-meta":"Inscrits Bootcamp Pub",pub:"Inscrits Bootcamp Pub",meta:"Inscrits Bootcamp Pub",facebook:"Inscrits Bootcamp Pub"},sN={pub:"Inscrits Bootcamp Pub",meta:"Inscrits Bootcamp Pub",facebook:"Inscrits Bootcamp Pub",fb:"Inscrits Bootcamp Pub",instagram:"Inscrits Bootcamp Pub",ig:"Inscrits Bootcamp Pub"};function Ao(){return typeof window<"u"&&typeof document<"u"}function ju(t){if(!Ao())return null;const e=document.cookie.split("; ").find(i=>i.startsWith(`${t}=`));return e?decodeURIComponent(e.slice(t.length+1)):null}function Nu(t,e,i){if(!Ao())return;const s=window.location.protocol==="https:"?"; Secure":"";document.cookie=`${t}=${encodeURIComponent(e)}; Max-Age=${i}; Path=/; SameSite=Lax${s}`}function Zh(){if(!Ao())return null;const t=new URLSearchParams(window.location.search),e=t.get("utm_source")??void 0,i=t.get("utm_campaign")??void 0,s=t.get("utm_medium")??void 0,o=t.get("utm_content")??void 0;return!e&&!i&&!s&&!o?null:{source:e,campaign:i,medium:s,content:o,ts:Date.now()}}function aN(){if(Ao())try{const t=Zh();if(!t)return;Nu(gh,JSON.stringify(t),Dw),ju(mo)||Nu(mo,JSON.stringify(t),Lw)}catch(t){console.warn("[utm] capture failed",t)}}function GM(){try{return Zh()}catch{return null}}function KM(){const t=ju(mo);if(!t)return null;try{const e=JSON.parse(t);return e&&typeof e=="object"?e:null}catch{return null}}function YM(){const t=ju(gh);if(t)try{const e=JSON.parse(t);if(e&&typeof e=="object")return e}catch{}if(!Ao())return null;try{const e=Zh();return e?(Nu(gh,JSON.stringify(e),Dw),ju(mo)||Nu(mo,JSON.stringify(e),Lw),e):null}catch{return null}}const oN=new Set(Object.keys(sN)),lN=new Set(Object.keys(rN));function uN(t,e){if(t!=="/challenge-septembre")return!1;const i=new URLSearchParams(e),s=(i.get("utm_source")??"").toLowerCase(),o=(i.get("utm_campaign")??"").toLowerCase();return oN.has(s)||lN.has(o)}const Qh=new Date("2026-09-20T22:10:00Z").getTime(),Mw=new Date("2026-09-23T22:01:00Z").getTime();function cN(){return Date.now()>=Qh}function dN(){const[t,e]=Z.useState(cN);return Z.useEffect(()=>{if(t)return;const i=Math.max(0,Qh-Date.now()),s=window.setTimeout(()=>e(!0),i);return()=>window.clearTimeout(s)},[t]),t}function fN(){return D.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:D.jsxs("div",{className:"max-w-md text-center",children:[D.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),D.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page non trouvée"}),D.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Désolé, cette page n'existe plus."}),D.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["Si tu veux me contacter, contacte-moi à"," ",D.jsx("a",{href:"mailto:[email protected]",className:"underline hover:text-foreground",children:"[email protected]"}),"."]}),D.jsx("div",{className:"mt-6",children:D.jsx(xt,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Retourner à l'accueil"})})]})})}function hN({error:t,reset:e}){console.error(t);const i=_t();return Z.useEffect(()=>{xj(t,{boundary:"tanstack_root_error_component"})},[t]),D.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:D.jsxs("div",{className:"max-w-md text-center",children:[D.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),D.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),D.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[D.jsx("button",{onClick:()=>{i.invalidate(),e()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),D.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const ge=cx()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Investir Simple"},{name:"description",content:"Investir passivement en autonomie"},{name:"author",content:"Lovable"},{property:"og:title",content:"Investir Simple"},{property:"og:description",content:"Investir passivement en autonomie"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:site",content:"@Lovable"},{name:"twitter:title",content:"Investir Simple"},{name:"twitter:description",content:"Investir passivement en autonomie"},{property:"og:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/rb7517r4amQMx4ku60dmObv8E4k2/social-images/social-1781270035173-Zoom_Tete_Insta.webp"},{name:"twitter:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/rb7517r4amQMx4ku60dmObv8E4k2/social-images/social-1781270035173-Zoom_Tete_Insta.webp"}
56],links:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Crete+Round&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap"},{rel:"stylesheet",href:Oj}]}),shellComponent:pN,component:mN,notFoundComponent:fN,errorComponent:hN});function pN({children:t}){return D.jsxs("html",{lang:"fr",children:[D.jsx("head",{children:D.jsx(Cx,{})}),D.jsxs("body",{children:[t,D.jsx(jx,{})]})]})}function mN(){const{queryClient:t}=ge.useRouteContext(),e=Rx(),i=dN(),s=e.pathname.startsWith("/challenge"),o=e.pathname.startsWith("/academie-candidature"),l=e.pathname==="/academie",c=uN(e.pathname,e.searchStr),d=s||o||c,h=d||l||i;return Z.useEffect(()=>{aN()},[]),D.jsxs(pj,{client:t,children:[!h&&D.jsx(iN,{}),!d&&D.jsx(Bj,{}),D.jsx(qb,{}),D.jsx(Kj,{}),D.jsx(Zj,{}),D.jsx(Hj,{}),D.jsx(nN,{})]})}const gN="modulepreload",vN=function(t){return"/"+t},F0={},be=function(e,i,s){let o=Promise.resolve();if(i&&i.length>0){let h=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");o=h(i.map(m=>{if(m=vN(m),m in F0)return;F0[m]=!0;const g=m.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":gN,g||(_.as="script"),_.crossOrigin="",_.href=m,d&&_.setAttribute("nonce",d),document.head.appendChild(_),g)return new Promise((b,S)=>{_.addEventListener("load",b),_.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return o.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return e().catch(l)})},yN=()=>be(()=>import("./index-Dd_2vzWJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])),_N=ve()({head:()=>({meta:[{title:"Investir Simple — Construis ton patrimoine simplement"},{name:"description",content:"Deviens un investisseur passif, autonome et serein. Outil de suivi patrimonial offert, podcast, académie et accompagnement personnalisé."},{property:"og:title",content:"Investir Simple — Construis ton patrimoine simplement"},{property:"og:description",content:"Deviens un investisseur passif, autonome et serein. Outil de suivi patrimonial offert, podcast, académie et accompagnement personnalisé."}]}),component:_e(yN,"component")}),bN=ve()({beforeLoad:()=>{throw Un({to:"/about",statusCode:301})}}),wN=()=>be(()=>import("./about-uzA_-j57.js"),__vite__mapDeps([16,1,12,17,18,10,13])),SN=ve()({head:()=>({meta:[{title:"À propos — Investir Simple"},{name:"description",content:"Conseiller en Investissement Financier agréé AMF, fondateur du podcast Investir Simple. Mon parcours, ma vision et ma méthode."},{property:"og:title",content:"À propos — Investir Simple"},{property:"og:description",content:"Conseiller en Investissement Financier agréé AMF, fondateur du podcast Investir Simple. Mon parcours, ma vision et ma méthode."},{property:"og:url",content:"https://investirsimple.com/about"}],links:[{rel:"canonical",href:"https://investirsimple.com/about"}]}),component:_e(wN,"component")}),EN=()=>be(()=>import("./academie-BU6rn9kx.js"),__vite__mapDeps([19,1,13,20,3,4,21,12,7,11,22,23,24,17])),TN=ve()({head:()=>({meta:[{title:"Académie Investir Simple — Deviens un investisseur rentable, passif et autonome"},{name:"description",content:"L'écosystème complet pour construire une stratégie d'investissement optimisée : 40+ heures de formation, accompagnement, outils et communauté privée."},{property:"og:title",content:"Académie Investir Simple — Deviens un investisseur rentable, passif et autonome"},{property:"og:description",content:"L'écosystème complet pour construire une stratég
56ie d'investissement optimisée : 40+ heures de formation, accompagnement, outils et communauté privée."}]}),component:_e(EN,"component")}),RN=()=>be(()=>import("./academie-candidature-DDyVhVWx.js"),__vite__mapDeps([25,1,20,3,4,21,12,7,11,13,22,23,24,17])),AN=ve()({beforeLoad:()=>{if(Date.now()>=Qh)throw Un({to:"/academie-candidatures-cloturees"})},head:()=>({meta:[{title:"Réserve ton appel stratégique — Académie Investir Simple"},{name:"description",content:"Réserve un appel stratégique offert pour découvrir comment devenir un investisseur passif et autonome en 90 jours."},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:"Réserve ton appel stratégique — Académie Investir Simple"},{property:"og:description",content:"Réserve un appel stratégique offert pour devenir un investisseur passif et autonome en 90 jours."}]}),component:_e(RN,"component")});var Pe;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function i(o){throw new Error}t.assertNever=i,t.arrayToEnum=o=>{const l={};for(const c of o)l[c]=c;return l},t.getValidEnumValues=o=>{const l=t.objectKeys(o).filter(d=>typeof o[o[d]]!="number"),c={};for(const d of l)c[d]=o[d];return t.objectValues(c)},t.objectValues=o=>t.objectKeys(o).map(function(l){return o[l]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&l.push(c);return l},t.find=(o,l)=>{for(const c of o)if(l(c))return c},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,l=" | "){return o.map(c=>typeof c=="string"?`'${c}'`:c).join(l)}t.joinValues=s,t.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})(Pe||(Pe={}));var G0;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(G0||(G0={}));const ae=Pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hi=t=>{switch(typeof t){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return Number.isNaN(t)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(t)?ae.array:t===null?ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ae.promise:typeof Map<"u"&&t instanceof Map?ae.map:typeof Set<"u"&&t instanceof Set?ae.set:typeof Date<"u"&&t instanceof Date?ae.date:ae.object;default:return ae.unknown}}
vendor: 45,467 bytes, line 56
56,Y=Pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class pi extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){const i=e||function(l){return l.message},s={_errors:[]},o=l=>{for(const c of l.issues)if(c.code==="invalid_union")c.unionErrors.map(o);else if(c.code==="invalid_return_type")o(c.returnTypeError);else if(c.code==="invalid_arguments")o(c.argumentsError);else if(c.path.length===0)s._errors.push(i(c));else{let d=s,h=0;for(;h<c.path.length;){const m=c.path[h];h===c.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(i(c))):d[m]=d[m]||{_errors:[]},d=d[m],h++}}};return o(this),s}static assert(e){if(!(e instanceof pi))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=i=>i.message){const i={},s=[];for(const o of this.issues)if(o.path.length>0){const l=o.path[0];i[l]=i[l]||[],i[l].push(e(o))}else s.push(e(o));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}}pi.create=t=>new pi(t);const vh=(t,e)=>{let i;switch(t.code){case Y.invalid_type:t.received===ae.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case Y.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,Pe.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:i=`Unrecognized key(s) in object: ${Pe.joinValues(t.keys,", ")}`;break;case Y.invalid_union:i="Invalid input";break;case Y.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Pe.joinValues(t.options)}`;break;case Y.invalid_enum_value:i=`Invalid enum value. Expected ${Pe.joinValues(t.options)}, received '${t.received}'`;break;case Y.invalid_arguments:i="Invalid function arguments";break;case Y.invalid_return_type:i="Invalid function return type";break;case Y.invalid_date:i="Invalid date";break;case Y.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:Pe.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case Y.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case Y.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case Y.custom:i="Invalid input";break;case Y.invalid_intersection_types:i="Intersection results could not be merged";break;case Y.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case Y.not_finite:i="Number must be finite";break;default:i=e.defaultError,Pe.assertNever(t)}return{message:i}};let ON=vh;function xN(){return ON}const CN=t=>{const{data:e,path:i,errorMaps:s,issueData:o}=t,l=[...i,...o.path||[]],c={...o,path:l};if(o.message!==void 0)return{...o,path:l,message:o.message};let d="";const h=s.filter(m=>!!m).slice().reverse();for(const m of h)d=m(c,{data:e,defaultError:d}).message;return{...o,path:l,message:d}};function ne(t,e){const i=xN(),s=CN({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===vh?void 0:vh].filter(o=>!!o)});t.common.issues.push(s)}class Wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){const s=[];for(const o of i){if(o.status==="aborted")return Ee;o.status==="dirty"&&e.dirty(),s.push(o.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,i){const s=[];for(const o of i){const l=await o.key,c=await o.value;s.push({key:l,value:c})}return Wt.mergeObjectSync(e,s)}static mergeObjectSync(e,i){const s={};for(const o of i){const{key:l,value:c}=o;if(l.status==="aborted"||c.status==="aborted")return Ee;l.status==="dirty"&&e.dirty(),c.status==="dirty"&&e.dirty(),l.value!=="__proto__"&&(typeof c.value<"u"||o.alwaysSet)&&(s[l.value]=c.value)}return{status:e.value,value:s}}}const Ee=Object.freeze({status:"aborted"}),Fa=t=>({status:"dirty",value:t}),pn=t=>({status:"valid",value:t}),K0=t=>t.status==="aborted",Y0=t=>t.status==="dirty",Bs=t=>t.status==="valid",Du=t=>typeof Promise<"u"&&t instanceof Promise;var ue;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(ue||(ue={}));class tr{constructor(e,i,s,o){this._cachedPath=[],this.parent=e,this.data=i,this._path=s,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Z0=(t,e)=>{if(Bs(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new pi(t.common.issues);return this._error=i,this._error}}};function xe(t){if(!t)return{};const{errorMap:e,invalid_type_error:i,required_error:s,description:o}=t;if(e&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(c,d)=>{const{message:h}=t;return c.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??s??d.defaultError}:c.code!=="invalid_type"?{message:d.defaultError}:{message:h??i??d.defaultError}},description:o}}class Ue{get description(){return this._def.description}_getType(e){return Hi(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:Hi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Wt,ctx:{common:e.parent.common,data:e.data,parsedType:Hi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const i=this._parse(e);if(Du(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){const i=this._parse(e);return Promise.resolve(i)}parse(e,i){const s=this.safeParse(e,i);if(s.success)return s.data;throw s.error}safeParse(e,i){const s={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hi(e)},o=this._parseSync({data:e,path:s.path,parent:s});return Z0(s,o)}"~validate"(e){const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hi(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:i});return Bs(s)?{value:s.value}:{issues:i.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(s=>Bs(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(e,i){const s=await this.safeParseAsync(e,i);if(s.success)return s.data;throw s.error}async safeParseAsync(e,i){const s={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hi(e)},o=this._parse({data:e,path:s.path,parent:s}),l=await(Du(o)?o:Promise.resolve(o));return Z0(s,l)}refine(e,i){const s=o=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(o):i;return this._refinement((o,l)=>{const c=e(o),d=()=>l.addIssue({code:Y.custom,...s(o)});return typeof Promise<"u"&&c instanceof Promise?c.then(h=>h?!0:(d(),!1)):c?!0:(d(),!1)})}refinement(e,i){return this._refinement((s,o)=>e(s)?!0:(o.addIssue(typeof i=="function"?i(s,o):i),!1))}_refinement(e){return new qs({schema:this,typeName:Te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return Xi.create(this,this._def)}nullable(){return Hs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mn.create(this)}promise(){return zu.create(this,this._def)}or(e){return Mu.create([this,e],this._def)}and(e){return Uu.create(this,e,this._def)}transform(e){return new qs({...xe(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const i=typeof e=="function"?e:()=>e;return new _h({...xe(this._def),innerType:this,defaultValue:i,typeName:Te.ZodDefault})}brand(){return new XN({typeName:Te.ZodBranded,type:this,...xe(this._def)})}catch(e){const i=typeof e=="function"?e:()=>e;return new bh({...xe(this._def),innerType:this,catchValue:i,typeName:Te.ZodCatch})}describe(e){const i=this.constructor;return new i({...this._def,description:e})}pipe(e){return Jh.create(this,e)}readonly(){return wh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kN=/^c[^\s-]{8,}$/i,jN=/^[0-9a-z]+$/,NN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,DN=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,LN=/^[a-z0-9_-]{21}$/i,MN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,UN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,IN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let zf;const PN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,BN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$N=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,qN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,HN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,VN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",FN=new RegExp(`^${Uw}$`);function zw(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function GN(t){return new RegExp(`^${zw(t)}$`)}function KN(t){let e=`${Uw}T${zw(t)}`;const i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function YN(t,e){return!!((e==="v4"||!e)&&PN.test(t)||(e==="v6"||!e)&&$N.test(t))}function ZN(t,e){if(!MN.test(t))return!1;try{const[i]=t.split(".");if(!i)return!1;const s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function QN(t,e){return!!((e==="v4"||!e)&&BN.test(t)||(e==="v6"||!e)&&qN.test(t))}class Yi extends Ue{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){const l=this._getOrReturnCtx(e);return ne(l,{code:Y.invalid_type,expected:ae.string,received:l.parsedType}),Ee}const s=new Wt;let o;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if(l.kind==="max")e.data.length>l.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if(l.kind==="length"){const c=e.data.length>l.value,d=e.data.length<l.value;(c||d)&&(o=this._getOrReturnCtx(e,o),c?ne(o,{code:Y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&ne(o,{code:Y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),s.dirty())}else if(l.kind==="email")zN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"email",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="emoji")zf||(zf=new RegExp(IN,"u")),zf.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"emoji",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="uuid")DN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"uuid",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="nanoid")LN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"nanoid",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="cuid")kN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"cuid",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="cuid2")jN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"cuid2",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="ulid")NN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"ulid",code:Y.invalid_string,message:l.message}),s.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),ne(o,{validation:"url",code:Y.invalid_string,message:l.message}),s.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"regex",code:Y.invalid_string,message:l.message}),s.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),s.dirty()):l.kind==="toLowerCase"?e.data=e.data.toLowerCase():l.kind==="toUpperCase"?e.data=e.data.toUpperCase():l.kind==="startsWith"?e.data.startsWith(l.value)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.invalid_string,validation:{startsWith:l.value},message:l.message}),s.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.invalid_string,validation:{endsWith:l.value},message:l.message}),s.dirty()):l.kind==="datetime"?KN(l).test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.invalid_string,validation:"datetime",message:l.message}),s.dirty()):l.kind==="date"?FN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.invalid_string,validation:"date",message:l.message}),s.dirty()):l.kind==="time"?GN(l).test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.invalid_string,validation:"time",message:l.message}),s.dirty()):l.kind==="duration"?UN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"duration",code:Y.invalid_string,message:l.message}),s.dirty()):l.kind==="ip"?YN(e.data,l.version)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"ip",code:Y.invalid_string,message:l.message}),s.dirty()):l.kind==="jwt"?ZN(e.data,l.alg)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"jwt",code:Y.invalid_string,message:l.message}),s.dirty()):l.kind==="cidr"?QN(e.data,l.version)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"cidr",code:Y.invalid_string,message:l.message}),s.dirty()):l.kind==="base64"?HN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"base64",code:Y.invalid_string,message:l.message}),s.dirty()):l.kind==="base64url"?VN.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"base64url",code:Y.invalid_string,message:l.message}),s.dirty()):Pe.assertNever(l);return{status:s.value,value:e.data}}_regex(e,i,s){return this.refinement(o=>e.test(o),{validation:i,code:Y.invalid_string,...ue.errToObj(s)})}_addCheck(e){return new Yi({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ue.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ue.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ue.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ue.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ue.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ue.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ue.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ue.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ue.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ue.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ue.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ue.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ue.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...ue.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...ue.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ue.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...ue.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...ue.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...ue.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...ue.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...ue.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...ue.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...ue.errToObj(i)})}nonempty(e){return this.min(1,ue.errToObj(e))}trim(){return new Yi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Yi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Yi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(const i of this._def.checks)i.kind==="max"&&(e===null||i.value<e)&&(e=i.value);return e}}Yi.create=t=>new Yi({checks:[],typeName:Te.ZodString,coerce:t?.coerce??!1,...xe(t)});function JN(t,e){const i=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,o=i>s?i:s,l=Number.parseInt(t.toFixed(o).replace(".","")),c=Number.parseInt(e.toFixed(o).replace(".",""));return l%c/10**o}class go extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){const l=this._getOrReturnCtx(e);return ne(l,{code:Y.invalid_type,expected:ae.number,received:l.parsedType}),Ee}let s;const o=new Wt;for(const l of this._def.checks)l.kind==="int"?Pe.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.invalid_type,expected:"integer",received:"float",message:l.message}),o.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="multipleOf"?JN(e.data,l.value)!==0&&(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.not_finite,message:l.message}),o.dirty()):Pe.assertNever(l);return{status:o.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,ue.toString(i))}gt(e,i){return this.setLimit("min",e,!1,ue.toString(i))}lte(e,i){return this.setLimit("max",e,!0,ue.toString(i))}lt(e,i){return this.setLimit("max",e,!1,ue.toString(i))}setLimit(e,i,s,o){return new go({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:s,message:ue.toString(o)}]})}_addCheck(e){return new go({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ue.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:ue.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:ue.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(e)})}get minValue(){let e=null;for(const i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(const i of this._def.checks)i.kind==="max"&&(e===null||i.value<e)&&(e=i.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Pe.isInteger(e.value))}get isFinite(){let e=null,i=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(i)&&Number.isFinite(e)}}go.create=t=>new go({checks:[],typeName:Te.ZodNumber,coerce:t?.coerce||!1,...xe(t)});class vo extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ae.bigint)return this._getInvalidInput(e);let s;const o=new Wt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),ne(s,{code:Y.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):Pe.assertNever(l);return{status:o.value,value:e.data}}_getInvalidInput(e){const i=this._getOrReturnCtx(e);return ne(i,{code:Y.invalid_type,expected:ae.bigint,received:i.parsedType}),Ee}gte(e,i){return this.setLimit("min",e,!0,ue.toString(i))}gt(e,i){return this.setLimit("min",e,!1,ue.toString(i))}lte(e,i){return this.setLimit("max",e,!0,ue.toString(i))}lt(e,i){return this.setLimit("max",e,!1,ue.toString(i))}setLimit(e,i,s,o){return new vo({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:s,message:ue.toString(o)}]})}_addCheck(e){return new vo({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:ue.toString(i)})}get minValue(){let e=null;for(const i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(const i of this._def.checks)i.kind==="max"&&(e===null||i.value<e)&&(e=i.value);return e}}vo.create=t=>new vo({checks:[],typeName:Te.ZodBigInt,coerce:t?.coerce??!1,...xe(t)});class Q0 extends Ue{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){const s=this._getOrReturnCtx(e);return ne(s,{code:Y.invalid_type,expected:ae.boolean,received:s.parsedType}),Ee}return pn(e.data)}}Q0.create=t=>new Q0({typeName:Te.ZodBoolean,coerce:t?.coerce||!1,...xe(t)});class Lu extends Ue{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){const l=this._getOrReturnCtx(e);return ne(l,{code:Y.invalid_type,expected:ae.date,received:l.parsedType}),Ee}if(Number.isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return ne(l,{code:Y.invalid_date}),Ee}const s=new Wt;let o;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),s.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Y.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),s.dirty()):Pe.assertNever(l);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Lu({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:ue.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:ue.toString(i)})}get minDate(){let e=null;for(const i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const i of this._def.checks)i.kind==="max"&&(e===null||i.value<e)&&(e=i.value);return e!=null?new Date(e):null}}Lu.create=t=>new Lu({checks:[],coerce:t?.coerce||!1,typeName:Te.ZodDate,...xe(t)});class J0 extends Ue{_parse(e){if(this._getType(e)!==ae.symbol){const s=this._getOrReturnCtx(e);return ne(s,{code:Y.invalid_type,expected:ae.symbol,received:s.parsedType}),Ee}return pn(e.data)}}J0.create=t=>new J0({typeName:Te.ZodSymbol,...xe(t)});class X0 extends Ue{_parse(e){if(this._getType(e)!==ae.undefined){const s=this._getOrReturnCtx(e);return ne(s,{code:Y.invalid_type,expected:ae.undefined,received:s.parsedType}),Ee}return pn(e.data)}}X0.create=t=>new X0({typeName:Te.ZodUndefined,...xe(t)});class W0 extends Ue{_parse(e){if(this._getType(e)!==ae.null){const s=this._getOrReturnCtx(e);return ne(s,{code:Y.invalid_type,expected:ae.null,received:s.parsedType}),Ee}return pn(e.data)}}W0.create=t=>new W0({typeName:Te.ZodNull,...xe(t)});class e_ extends Ue{constructor(){super(...arguments),this._any=!0}_parse(e){return pn(e.data)}}e_.create=t=>new e_({typeName:Te.ZodAny,...xe(t)});class t_ extends Ue{constructor(){super(...arguments),this._unknown=!0}_parse(e){return pn(e.data)}}t_.create=t=>new t_({typeName:Te.ZodUnknown,...xe(t)});class nr extends Ue{_parse(e){const i=this._getOrReturnCtx(e);return ne(i,{code:Y.invalid_type,expected:ae.never,received:i.parsedType}),Ee}}nr.create=t=>new nr({typeName:Te.ZodNever,...xe(t)});class n_ extends Ue{_parse(e){if(this._getType(e)!==ae.undefined){const s=this._getOrReturnCtx(e);return ne(s,{code:Y.invalid_type,expected:ae.void,received:s.parsedType}),Ee}return pn(e.data)}}n_.create=t=>new n_({typeName:Te.ZodVoid,...xe(t)});class Mn extends Ue{_parse(e){const{ctx:i,status:s}=this._processInputParams(e),o=this._def;if(i.parsedType!==ae.array)return ne(i,{code:Y.invalid_type,expected:ae.array,received:i.parsedType}),Ee;if(o.exactLength!==null){const c=i.data.length>o.exactLength.value,d=i.data.length<o.exactLength.value;(c||d)&&(ne(i,{code:c?Y.too_big:Y.too_small,minimum:d?o.exactLength.value:void 0,maximum:c?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&i.data.length<o.minLength.value&&(ne(i,{code:Y.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&i.data.length>o.maxLength.value&&(ne(i,{code:Y.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((c,d)=>o.type._parseAsync(new tr(i,c,i.path,d)))).then(c=>Wt.mergeArray(s,c));const l=[...i.data].map((c,d)=>o.type._parseSync(new tr(i,c,i.path,d)));return Wt.mergeArray(s,l)}get element(){return this._def.type}min(e,i){return new Mn({...this._def,minLength:{value:e,message:ue.toString(i)}})}max(e,i){return new Mn({...this._def,maxLength:{value:e,message:ue.toString(i)}})}length(e,i){return new Mn({...this._def,exactLength:{value:e,message:ue.toString(i)}})}nonempty(e){return this.min(1,e)}}Mn.create=(t,e)=>new Mn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...xe(e)});function Ns(t){if(t instanceof ft){const e={};for(const i in t.shape){const s=t.shape[i];e[i]=Xi.create(Ns(s))}return new ft({...t._def,shape:()=>e})}else return t instanceof Mn?new Mn({...t._def,type:Ns(t.element)}):t instanceof Xi?Xi.create(Ns(t.unwrap())):t instanceof Hs?Hs.create(Ns(t.unwrap())):t instanceof Ur?Ur.create(t.items.map(e=>Ns(e))):t}class ft extends Ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),i=Pe.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==ae.object){const m=this._getOrReturnCtx(e);return ne(m,{code:Y.invalid_type,expected:ae.object,received:m.parsedType}),Ee}const{status:s,ctx:o}=this._processInputParams(e),{shape:l,keys:c}=this._getCached(),d=[];if(!(this._def.catchall instanceof nr&&this._def.unknownKeys==="strip"))for(const m in o.data)c.includes(m)||d.push(m);const h=[];for(const m of c){const g=l[m],v=o.data[m];h.push({key:{status:"valid",value:m},value:g._parse(new tr(o,v,o.path,m)),alwaysSet:m in o.data})}if(this._def.catchall instanceof nr){const m=this._def.unknownKeys;if(m==="passthrough")for(const g of d)h.push({key:{status:"valid",value:g},value:{status:"valid",value:o.data[g]}});else if(m==="strict")d.length>0&&(ne(o,{code:Y.unrecognized_keys,keys:d}),s.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const g of d){const v=o.data[g];h.push({key:{status:"valid",value:g},value:m._parse(new tr(o,v,o.path,g)),alwaysSet:g in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const m=[];for(const g of h){const v=await g.key,_=await g.value;m.push({key:v,value:_,alwaysSet:g.alwaysSet})}return m}).then(m=>Wt.mergeObjectSync(s,m)):Wt.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(e){return ue.errToObj,new ft({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,s)=>{const o=this._def.errorMap?.(i,s).message??s.defaultError;return i.code==="unrecognized_keys"?{message:ue.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new ft({...this._def,unknownKeys:"strip"})}passthrough(){return new ft({...this._def,unknownKeys:"passthrough"})}extend(e){return new ft({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ft({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Te.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new ft({...this._def,catchall:e})}pick(e){const i={};for(const s of Pe.objectKeys(e))e[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new ft({...this._def,shape:()=>i})}omit(e){const i={};for(const s of Pe.objectKeys(this.shape))e[s]||(i[s]=this.shape[s]);return new ft({...this._def,shape:()=>i})}deepPartial(){return Ns(this)}partial(e){const i={};for(const s of Pe.objectKeys(this.shape)){const o=this.shape[s];e&&!e[s]?i[s]=o:i[s]=o.optional()}return new ft({...this._def,shape:()=>i})}required(e){const i={};for(const s of Pe.objectKeys(this.shape))if(e&&!e[s])i[s]=this.shape[s];else{let l=this.shape[s];for(;l instanceof Xi;)l=l._def.innerType;i[s]=l}return new ft({...this._def,shape:()=>i})}keyof(){return Iw(Pe.objectKeys(this.shape))}}ft.create=(t,e)=>new ft({shape:()=>t,unknownKeys:"strip",catchall:nr.create(),typeName:Te.ZodObject,...xe(e)});ft.strictCreate=(t,e)=>new ft({shape:()=>t,unknownKeys:"strict",catchall:nr.create(),typeName:Te.ZodObject,...xe(e)});ft.lazycreate=(t,e)=>new ft({shape:t,unknownKeys:"strip",catchall:nr.create(),typeName:Te.ZodObject,...xe(e)});class Mu extends Ue{_parse(e){const{ctx:i}=this._processInputParams(e),s=this._def.options;function o(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return i.common.issues.push(...d.ctx.common.issues),d.result;const c=l.map(d=>new pi(d.ctx.common.issues));return ne(i,{code:Y.invalid_union,unionErrors:c}),Ee}if(i.common.async)return Promise.all(s.map(async l=>{const c={...i,common:{...i.common,issues:[]},parent:null};return{result:await l._parseAsync({data:i.data,path:i.path,parent:c}),ctx:c}})).then(o);{let l;const c=[];for(const h of s){const m={...i,common:{...i.common,issues:[]},parent:null},g=h._parseSync({data:i.data,path:i.path,parent:m});if(g.status==="valid")return g;g.status==="dirty"&&!l&&(l={result:g,ctx:m}),m.common.issues.length&&c.push(m.common.issues)}if(l)return i.common.issues.push(...l.ctx.common.issues),l.result;const d=c.map(h=>new pi(h));return ne(i,{code:Y.invalid_union,unionErrors:d}),Ee}}get options(){return this._def.options}}Mu.create=(t,e)=>new Mu({options:t,typeName:Te.ZodUnion,...xe(e)});function yh(t,e){const i=Hi(t),s=Hi(e);if(t===e)return{valid:!0,data:t};if(i===ae.object&&s===ae.object){const o=Pe.objectKeys(e),l=Pe.objectKeys(t).filter(d=>o.indexOf(d)!==-1),c={...t,...e};for(const d of l){const h=yh(t[d],e[d]);if(!h.valid)return{valid:!1};c[d]=h.data}return{valid:!0,data:c}}else if(i===ae.array&&s===ae.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let l=0;l<t.length;l++){const c=t[l],d=e[l],h=yh(c,d);if(!h.valid)return{valid:!1};o.push(h.data)}return{valid:!0,data:o}}else return i===ae.date&&s===ae.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Uu extends Ue{_parse(e){const{status:i,ctx:s}=this._processInputParams(e),o=(l,c)=>{if(K0(l)||K0(c))return Ee;const d=yh(l.value,c.value);return d.valid?((Y0(l)||Y0(c))&&i.dirty(),{status:i.value,value:d.data}):(ne(s,{code:Y.invalid_intersection_types}),Ee)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([l,c])=>o(l,c)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Uu.create=(t,e,i)=>new Uu({left:t,right:e,typeName:Te.ZodIntersection,...xe(i)});class Ur extends Ue{_parse(e){const{status:i,ctx:s}=this._processInputParams(e);if(s.parsedType!==ae.array)return ne(s,{code:Y.invalid_type,expected:ae.array,received:s.parsedType}),Ee;if(s.data.length<this._def.items.length)return ne(s,{code:Y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ee;!this._def.rest&&s.data.length>this._def.items.length&&(ne(s,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const l=[...s.data].map((c,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new tr(s,c,s.path,d)):null}).filter(c=>!!c);return s.common.async?Promise.all(l).then(c=>Wt.mergeArray(i,c)):Wt.mergeArray(i,l)}get items(){return this._def.items}rest(e){return new Ur({...this._def,rest:e})}}Ur.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ur({items:t,typeName:Te.ZodTuple,rest:null,...xe(e)})};class i_ extends Ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:i,ctx:s}=this._processInputParams(e);if(s.parsedType!==ae.map)return ne(s,{code:Y.invalid_type,expected:ae.map,received:s.parsedType}),Ee;const o=this._def.keyType,l=this._def.valueType,c=[...s.data.entries()].map(([d,h],m)=>({key:o._parse(new tr(s,d,s.path,[m,"key"])),value:l._parse(new tr(s,h,s.path,[m,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of c){const m=await h.key,g=await h.value;if(m.status==="aborted"||g.status==="aborted")return Ee;(m.status==="dirty"||g.status==="dirty")&&i.dirty(),d.set(m.value,g.value)}return{status:i.value,value:d}})}else{const d=new Map;for(const h of c){const m=h.key,g=h.value;if(m.status==="aborted"||g.status==="aborted")return Ee;(m.status==="dirty"||g.status==="dirty")&&i.dirty(),d.set(m.value,g.value)}return{status:i.value,value:d}}}}i_.create=(t,e,i)=>new i_({valueType:e,keyType:t,typeName:Te.ZodMap,...xe(i)});class yo extends Ue{_parse(e){const{status:i,ctx:s}=this._processInputParams(e);if(s.parsedType!==ae.set)return ne(s,{code:Y.invalid_type,expected:ae.set,received:s.parsedType}),Ee;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ne(s,{code:Y.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),i.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ne(s,{code:Y.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),i.dirty());const l=this._def.valueType;function c(h){const m=new Set;for(const g of h){if(g.status==="aborted")return Ee;g.status==="dirty"&&i.dirty(),m.add(g.value)}return{status:i.value,value:m}}const d=[...s.data.values()].map((h,m)=>l._parse(new tr(s,h,s.path,m)));return s.common.async?Promise.all(d).then(h=>c(h)):c(d)}min(e,i){return new yo({...this._def,minSize:{value:e,message:ue.toString(i)}})}max(e,i){return new yo({...this._def,maxSize:{value:e,message:ue.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}}yo.create=(t,e)=>new yo({valueType:t,minSize:null,maxSize:null,typeName:Te.ZodSet,...xe(e)});class r_ extends Ue{get schema(){return this._def.getter()}_parse(e){const{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}r_.create=(t,e)=>new r_({getter:t,typeName:Te.ZodLazy,...xe(e)});class s_ extends Ue{_parse(e){if(e.data!==this._def.value){const i=this._getOrReturnCtx(e);return ne(i,{received:i.data,code:Y.invalid_literal,expected:this._def.value}),Ee}return{status:"valid",value:e.data}}get value(){return this._def.value}}s_.create=(t,e)=>new s_({value:t,typeName:Te.ZodLiteral,...xe(e)});function Iw(t,e){return new $s({values:t,typeName:Te.ZodEnum,...xe(e)})}class $s extends Ue{_parse(e){if(typeof e.data!="string"){const i=this._getOrReturnCtx(e),s=this._def.values;return ne(i,{expected:Pe.joinValues(s),received:i.parsedType,code:Y.invalid_type}),Ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const i=this._getOrReturnCtx(e),s=this._def.values;return ne(i,{received:i.data,code:Y.invalid_enum_value,options:s}),Ee}return pn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const i of this._def.values)e[i]=i;return e}get Values(){const e={};for(const i of this._def.values)e[i]=i;return e}get Enum(){const e={};for(const i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return $s.create(e,{...this._def,...i})}exclude(e,i=this._def){return $s.create(this.options.filter(s=>!e.includes(s)),{...this._def,...i})}}$s.create=Iw;class a_ extends Ue{_parse(e){const i=Pe.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==ae.string&&s.parsedType!==ae.number){const o=Pe.objectValues(i);return ne(s,{expected:Pe.joinValues(o),received:s.parsedType,code:Y.invalid_type}),Ee}if(this._cache||(this._cache=new Set(Pe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const o=Pe.objectValues(i);return ne(s,{received:s.data,code:Y.invalid_enum_value,options:o}),Ee}return pn(e.data)}get enum(){return this._def.values}}a_.create=(t,e)=>new a_({values:t,typeName:Te.ZodNativeEnum,...xe(e)});class zu extends Ue{unwrap(){return this._def.type}_parse(e){const{ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.promise&&i.common.async===!1)return ne(i,{code:Y.invalid_type,expected:ae.promise,received:i.parsedType}),Ee;
vendor: 4,097 bytes, line 56
56const s=i.parsedType===ae.promise?i.data:Promise.resolve(i.data);return pn(s.then(o=>this._def.type.parseAsync(o,{path:i.path,errorMap:i.common.contextualErrorMap})))}}zu.create=(t,e)=>new zu({type:t,typeName:Te.ZodPromise,...xe(e)});class qs extends Ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:i,ctx:s}=this._processInputParams(e),o=this._def.effect||null,l={addIssue:c=>{ne(s,c),c.fatal?i.abort():i.dirty()},get path(){return s.path}};if(l.addIssue=l.addIssue.bind(l),o.type==="preprocess"){const c=o.transform(s.data,l);if(s.common.async)return Promise.resolve(c).then(async d=>{if(i.value==="aborted")return Ee;const h=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return h.status==="aborted"?Ee:h.status==="dirty"||i.value==="dirty"?Fa(h.value):h});{if(i.value==="aborted")return Ee;const d=this._def.schema._parseSync({data:c,path:s.path,parent:s});return d.status==="aborted"?Ee:d.status==="dirty"||i.value==="dirty"?Fa(d.value):d}}if(o.type==="refinement"){const c=d=>{const h=o.refinement(d,l);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?Ee:(d.status==="dirty"&&i.dirty(),c(d.value),{status:i.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?Ee:(d.status==="dirty"&&i.dirty(),c(d.value).then(()=>({status:i.value,value:d.value}))))}if(o.type==="transform")if(s.common.async===!1){const c=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Bs(c))return Ee;const d=o.transform(c.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(c=>Bs(c)?Promise.resolve(o.transform(c.value,l)).then(d=>({status:i.value,value:d})):Ee);Pe.assertNever(o)}}qs.create=(t,e,i)=>new qs({schema:t,typeName:Te.ZodEffects,effect:e,...xe(i)});qs.createWithPreprocess=(t,e,i)=>new qs({schema:e,effect:{type:"preprocess",transform:t},typeName:Te.ZodEffects,...xe(i)});class Xi extends Ue{_parse(e){return this._getType(e)===ae.undefined?pn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Xi.create=(t,e)=>new Xi({innerType:t,typeName:Te.ZodOptional,...xe(e)});class Hs extends Ue{_parse(e){return this._getType(e)===ae.null?pn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Hs.create=(t,e)=>new Hs({innerType:t,typeName:Te.ZodNullable,...xe(e)});class _h extends Ue{_parse(e){const{ctx:i}=this._processInputParams(e);let s=i.data;return i.parsedType===ae.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}_h.create=(t,e)=>new _h({innerType:t,typeName:Te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...xe(e)});class bh extends Ue{_parse(e){const{ctx:i}=this._processInputParams(e),s={...i,common:{...i.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Du(o)?o.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new pi(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new pi(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}bh.create=(t,e)=>new bh({innerType:t,typeName:Te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...xe(e)});class o_ extends Ue{_parse(e){if(this._getType(e)!==ae.nan){const s=this._getOrReturnCtx(e);return ne(s,{code:Y.invalid_type,expected:ae.nan,received:s.parsedType}),Ee}
56return{status:"valid",value:e.data}}}o_.create=t=>new o_({typeName:Te.ZodNaN,...xe(t)});class XN extends Ue{_parse(e){const{ctx:i}=this._processInputParams(e),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}}class Jh extends Ue{_parse(e){const{status:i,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?Ee:l.status==="dirty"?(i.dirty(),Fa(l.value)):this._def.out._parseAsync({data:l.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?Ee:o.status==="dirty"?(i.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(e,i){return new Jh({in:e,out:i,typeName:Te.ZodPipeline})}}class wh extends Ue{_parse(e){const i=this._def.innerType._parse(e),s=o=>(Bs(o)&&(o.value=Object.freeze(o.value)),o);return Du(i)?i.then(o=>s(o)):s(i)}unwrap(){return this._def.innerType}}wh.create=(t,e)=>new wh({innerType:t,typeName:Te.ZodReadonly,...xe(e)});var Te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Te||(Te={}));const fn=Yi.create;nr.create;Mn.create;const Xh=ft.create;Mu.create;Uu.create;Ur.create;$s.create;zu.create;Xi.create;Hs.create;const WN=()=>be(()=>import("./academie-candidature-confirmation-rendez-vous-DNs2Q_Yz.js"),__vite__mapDeps([26,1,27,28,15])),eD=ve()({validateSearch:Xh({email:fn().email().optional(),firstName:fn().max(100).optional(),name:fn().max(200).optional(),attendeeName:fn().max(200).optional(),startTime:fn().max(100).optional(),endTime:fn().max(100).optional(),organizerName:fn().max(200).optional(),hostName:fn().max(200).optional(),date:fn().max(100).optional(),eventTypeSlug:fn().max(200).optional()}).passthrough(),head:()=>({meta:[{title:"Rendez-vous confirmé — Académie Investir Simple"},{name:"robots",content:"noindex"}]}),component:_e(WN,"component")}),tD=ve()({beforeLoad:()=>{throw Un({to:"/academie-candidature-confirmation-rendez-vous"})}}),nD=()=>be(()=>import("./academie-candidatures-cloturees-C7KnpOQi.js"),[]),iD=ve()({head:()=>({meta:[{title:"Candidatures fermées — Académie Investir Simple"},{name:"description",content:"Les candidatures pour l'Académie Investir Simple sont désormais fermées pour cette cohorte."},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:"Candidatures fermées — Académie Investir Simple"},{property:"og:description",content:"Les candidatures pour l'Académie Investir Simple sont désormais fermées pour cette cohorte."}]}),component:_e(nD,"component")}),rD=()=>be(()=>import("./academie-merci-BTZ8Dv6V.js"),__vite__mapDeps([29,1,30,27,15,10])),sD=ve()({head:()=>({meta:[{title:"Merci pour ton inscription — L'Académie Investir Simple"},{name:"robots",content:"noindex"}]}),component:_e(rD,"component")}),aD=()=>be(()=>import("./academie-paiement-QNMf4_v2.js"),__vite__mapDeps([31,1,32,33,34,30,7,35,36])),oD=ve()({head:()=>({meta:[{title:"L'Académie Investir Simple — Inscription (2 497 €)"},{name:"description",content:"Inscris-toi à L'Académie Investir Simple : 40+ heures de formation, accompagnement, outils et communauté privée. Paiement unique 2 497 € ou en 3 fois sans frais."},{property:"og:title",content:"L'Académie Investir Simple — Inscription"},{property:"og:description",content:"L'écosystème complet pour devenir un investisseur rentable, passif et autonome."},{name:"robots",content:"noindex"}
56]}),component:_e(aD,"component")}),lD=()=>be(()=>import("./academie-pilier1-paiement-B9wa-iB3.js"),__vite__mapDeps([37,1,32,33,34,30,7,35,36])),uD=ve()({beforeLoad:()=>{if(Date.now()>=Mw)throw Un({to:"/academie-candidatures-cloturees"})},head:()=>({meta:[{title:"Académie Investir Simple — Pilier 1 (1 497 €)"},{name:"description",content:"Accède au Pilier 1 de l'Académie Investir Simple : 40+ heures de formation, outils et accélérateurs IA. Paiement unique 1 497 € ou en 3 fois sans frais."},{property:"og:title",content:"Académie Investir Simple — Pilier 1"},{property:"og:description",content:"La partie formation & contenu de l'Académie : 40+ heures de formation, outils et accélérateurs IA."},{name:"robots",content:"noindex"}]}),component:_e(lD,"component")}),cD=()=>be(()=>import("./academie-pilier23-paiement-DVaVDbPx.js"),__vite__mapDeps([38,1,32,33,34,30,7,35,36])),dD=ve()({beforeLoad:()=>{if(Date.now()>=Mw)throw Un({to:"/academie-candidatures-cloturees"})},head:()=>({meta:[{title:"Académie Investir Simple — Piliers 2 & 3 (1 897 €)"},{name:"description",content:"Accès aux Piliers 2 & 3 de l'Académie Investir Simple : accompagnement personnalisé, plateforme Schoolmaker, communauté privée, masterclass et lives. Paiement unique 1 897 € ou en 3 fois sans frais."},{property:"og:title",content:"Académie Investir Simple — Piliers 2 & 3"},{property:"og:description",content:"Accompagnement & réseau : plateforme Schoolmaker, communauté privée, masterclass et lives."},{name:"robots",content:"noindex"}]}),component:_e(cD,"component")}),fD=()=>be(()=>import("./academie-test-live-BKqtDK4S.js"),__vite__mapDeps([39,33,34,35,36])),hD=ve()({head:()=>({meta:[{title:"TEST LIVE — Académie 1 €"},{name:"robots",content:"noindex,nofollow"}]}),component:_e(fD,"component")}),pD=()=>be(()=>import("./admin-liens-DoESfpx7.js"),__vite__mapDeps([40,9,7,41])),mD=ve()({head:()=>({meta:[{title:"Mes liens — admin"},{name:"robots",content:"noindex, nofollow"}]}),component:_e(pD,"component")}),gD="/assets/budget-annuel-vs-mensuel-4WOz4s0K.jpg",vD=()=>be(()=>import("./budget-annuel-vs-budget-mensuel-avec-sophie-de-riche-au-feminin-DU_GoX3l.js"),__vite__mapDeps([42,1,7])),l_="/budget-annuel-vs-budget-mensuel-avec-sophie-de-riche-au-feminin",yD=ve()({head:()=>({meta:[{title:"Budget annuel vs budget mensuel : avec Sophie de Riche au féminin | Investir Simple"},{name:"description",content:"Budget annuel ou budget mensuel ? Interview de Sophie (Riche au féminin) et mon avis pour choisir la méthode qui te correspond."},{property:"og:title",content:"Budget annuel vs budget mensuel : avec Sophie de Riche au féminin"},{property:"og:description",content:"Une comparaison concrète entre budget annuel et budget mensuel pour reprendre le contrôle de tes finances."},{property:"og:url",content:`https://investirsimple.com${l_}`},{property:"og:image",content:gD}],links:[{rel:"canonical",href:`https://investirsimple.com${l_}`}]}),component:_e(vD,"component")}),_D="/assets/calcul-rentabilite-locative-Brk1xloH.jpg",bD=()=>be(()=>import("./calcul-rentabilite-locative-excel-tBXq3-2L.js"),__vite__mapDeps([43,1,7])),u_="/calcul-rentabilite-locative-excel",wD=ve()({head:()=>({meta:[{title:"Calcul rentabilité locative Excel : le tableau gratuit | Investir Simple"},{name:"description",content:"Télécharge gratuitement le tableau Excel de calcul de rentabilité locative : rendement brut, net, cashflow et prix au m² en un coup d'œil."},{property:"og:title",content:"Calcul rentabilité locative Excel : le tableau gratuit"},{property:"og:description",content:"Un outil Excel simple pour calculer ton rendement locatif net, ton cashflow et vérifier que tu achètes en dessous du prix du marché."},{property:"og:url",content:`https://investirsimple.com${u_}`},{property:"og:image",content:_D}],links:[{rel:"canonical",href:`https://investirsimple.com${u_}`}]}),component:_e(bD,"component")}),SD=()=>be(()=>import("./cgv-CEAipjKK.js"),[]),ED=ve()({head:()=>({meta:[{title:"CGV — Investir Simple"},{name:"description",content:"Conditions générales d'utilisation et de vente des services Investir Simple."}]}),component:_e(SD,"component")}),TD=()=>be(()=>import("./challenge-merci-DNPiy3wV.js"),__vite__mapDeps([44,1,30,13,22,24,45,17,23])),RD=ve()({head:()=>({meta:[{title:"Merci — Challenge Septembre Investir Simple"},{name:"description",content:"Ta place pour le Challenge Septembre est réservée. Rejoins le groupe WhatsApp et note la date du 13 septembre dans ton agenda."},{name:"robots",content:"noindex"}
56]}),component:_e(TD,"component")}),AD=()=>be(()=>import("./challenge-septembre-Cs3L_S_f.js"),__vite__mapDeps([46,1,3,47,34,30,21,28,22,4,12,18,23,13,24,45,17,48,5,7,36])),OD=ve()({head:()=>({meta:[{title:"Bootcamp septembre — 3 jours pour devenir ton propre conseiller"},{name:"description",content:"Du 13 au 15 septembre 2026, 100 % en ligne à 20 h (Paris). Réserve ta place gratuitement pour le bootcamp avec Thomas Creton."},{property:"og:title",content:"Bootcamp septembre — 3 jours pour devenir ton propre conseiller"},{property:"og:description",content:"3 jours en ligne avec Thomas Creton pour structurer ton patrimoine et construire ta liberté financière, même en partant de zéro."}]}),component:_e(AD,"component")}),xD="/__l5e/assets-v1/af4d6de1-250d-47cb-8d7a-afb86e930253/portrait-new.jpg",CD={url:xD},kD=()=>be(()=>import("./coaching-CWF2ZMVi.js"),__vite__mapDeps([49,1,7])),jD=ve()({head:()=>({meta:[{title:"Coaching financier indépendant — Construis ta stratégie d'investissement | Investir Simple"},{name:"description",content:"Conseil en investissement 100 % indépendant, 0 rétrocommission. Bilan patrimonial et mission de conseil personnalisée accessibles à partir de 100k€ de patrimoine."},{property:"og:title",content:"Coaching financier indépendant — Investir Simple"},{property:"og:description",content:"Construisons ensemble ta stratégie d'investissement au prix juste. 100 % indépendant. 0 rétrocommission."},{property:"og:url",content:"https://investirsimple.com/coaching"},{property:"og:image",content:CD.url}],links:[{rel:"canonical",href:"https://investirsimple.com/coaching"}]}),component:_e(kD,"component")}),ND=()=>be(()=>import("./contact-D1TM1a8a.js"),__vite__mapDeps([50,15])),DD=ve()({head:()=>({meta:[{title:"Contact — Investir Simple"},{name:"description",content:"Contacte Thomas Creton directement pour toute question sur Investir Simple."},{property:"og:title",content:"Contact — Investir Simple"},{property:"og:description",content:"Contacte Thomas Creton directement."}]}),component:_e(ND,"component")}),LD=()=>be(()=>import("./excelsuivipatrimoine-CneJohSj.js"),__vite__mapDeps([51,1,47,34,7,52,2])),MD=ve()({head:()=>({meta:[{title:"Excel de suivi patrimonial — Téléchargement gratuit"},{name:"description",content:"Télécharge gratuitement mon outil Excel de suivi patrimonial pour faire le point sur ton budget, ton allocation et l'évolution de ton patrimoine."},{property:"og:title",content:"Excel de suivi patrimonial — Téléchargement gratuit"},{property:"og:description",content:"L'outil Excel offline pour visualiser et piloter ton patrimoine. Téléchargement immédiat et gratuit."},{property:"og:url",content:"https://investirsimple.com/excelsuivipatrimoine"}],links:[{rel:"canonical",href:"https://investirsimple.com/excelsuivipatrimoine"}]}),component:_e(LD,"component")}),UD=()=>be(()=>import("./excelsuivipatrimoineab-DtqBFgK5.js"),[]),zD=ve()({beforeLoad:()=>{throw Un({to:"/excelsuivipatrimoine",statusCode:301})},component:_e(UD,"component")}),ID="/__l5e/assets-v1/e3043cc8-1d8c-4929-aedf-735844de3f53/Kitinvestisseur.png",PD={url:ID},BD=()=>be(()=>import("./kitinvestisseur-BMe1wrZJ.js"),__vite__mapDeps([53,1,47,34,7,52,2])),$D=ve()({head:()=>({meta:[{title:"Le Kit de l'investisseur — Télécharge-le gratuitement | Investir Simple"},{name:"description",content:"Télécharge gratuitement le Kit de l'investisseur : guide 6 idées de placements à revenus passifs, tableau de rentabilité locative, calculatrice d'intérêts composés et simulateur de retraite anticipée."},{property:"og:title",content:"Le Kit de l'investisseur — Gratuit"},{property:"og:description",content:"4 outils offerts pour démarrer simplement : guide revenus passifs, tableau de rentabilité locative, calculatrice d'intérêts composés et simulateur de retraite."},{property:"og:url",content:"https://investirsimple.com/kitinvestisseur"},{property:"og:image",content:`https://investirsimple.com${PD.url}`}],links:[{rel:"canonical",href:"https://investirsimple.com/kitinvestisseur"}]}),component:_e(BD,"component")}),qD=()=>be(()=>import("./landingpagenewletter-1eff1abe-BJk26wHS.js"),__vite__mapDeps([54,1,47,34,7,36,15,52])),HD=ve()({head:()=>({meta:[{title:"Les e-mails privés Investir Simple — Newsletter gratuite"},{name:"description",content:"Rejoins plus de 10 000 personnes et reçois chaque lundi matin à 8h30 mes e-mails privés sur l'investissement, les marchés et l'intelligence financière."},{property:"og:title",content:"Les e-mails privés Investir Simple"},{property:"og:description",content:"Un mail tous les lundis matin à 8h30 pour développer ton intelligence financière et optimiser tes placements."},{property:"og:url",content:"https://investirsimple.com/landingpagenewletter-1eff1abe"}],links:[{rel:"canonical",href:"https://investirsimple.com/landingpagenewletter-1eff1abe"}]}),component:_e(qD,"component")}),VD=()=>be(()=>import("./lepodcast-BL-jd_uf.js"),__vite__mapDeps([55,1,3,47,34,8,15,14,23,52])),FD=ve()({head:()=>({meta:[{title:"Podcast Investir Simple — l'éducation financière sans jargon"},{name:"description",content:"Investir Simple, le podcast pour comprendre l'investissement et la finance personnelle. Un nouvel épisode chaque dimanche à 18h."},{property:"og:title",content:"Podcast Investir Simple"},{property:"og:description",content:"Le podcast d'éducation financière pour reprendre la main sur ton patrimoine. Nouvel épisode chaque dimanche à 18h."},{property:"og:type",content:"website"}]}),component:_e(VD,"component")}),GD=()=>be(()=>import("./listedattenteacademie-DBw05IUn.js"),__vite__mapDeps([56,1,47,34,52])),KD=ve()({head:()=>({meta:[{title:"Liste d'attente — Académie Investir Simple"}
56,{name:"description",content:"Les portes de l'Académie Investir Simple sont fermées. Inscris-toi sur la liste d'attente pour être prévenu en priorité de la prochaine ouverture."},{property:"og:title",content:"Liste d'attente — Académie Investir Simple"},{property:"og:description",content:"Inscris-toi sur la liste d'attente pour être prévenu en priorité de la prochaine ouverture de l'Académie."}]}),component:_e(GD,"component")}),YD="/assets/cto-trade-republic-vs-trading-212-f6dE6UJh.jpg",ZD=()=>be(()=>import("./meilleur-cto--trade-republic-vs-trading-212-B_L0EyAB.js"),__vite__mapDeps([57,1,7])),c_="/meilleur-cto--trade-republic-vs-trading-212",QD=ve()({head:()=>({meta:[{title:"Meilleur CTO : Trade Republic vs Trading 212 | Investir Simple"},{name:"description",content:"Comparatif complet entre Trade Republic et Trading 212 : frais, fractions d'actions, dividendes, fiscalité, sécurité des fonds. Quel est le meilleur CTO pour toi ?"},{property:"og:title",content:"Meilleur CTO : Trade Republic vs Trading 212"},{property:"og:description",content:"Avantages, inconvénients et comparatif des deux courtiers les plus populaires pour ton compte titres ordinaire."},{property:"og:url",content:`https://investirsimple.com${c_}`},{property:"og:image",content:YD}],links:[{rel:"canonical",href:`https://investirsimple.com${c_}`}]}),component:_e(ZD,"component")}),JD=()=>be(()=>import("./mentions-legales-DlXBGi6A.js"),[]),XD=ve()({head:()=>({meta:[{title:"Mentions légales — Investir Simple"},{name:"description",content:"Mentions légales du site Investir Simple : éditeur, hébergeur, directeur de la publication, propriété intellectuelle et protection des données."}]}),component:_e(JD,"component")}),WD=()=>be(()=>import("./merci-C9paMr2u.js"),__vite__mapDeps([58,27,15,14])),eL=Xh({prenom:fn().trim().max(50).optional()}),tL=ve()({validateSearch:eL,head:()=>({meta:[{title:"Merci — Investir Simple"},{name:"description",content:"Merci pour ton inscription."},{name:"robots",content:"noindex"}]}),component:_e(WD,"component")}),nL=()=>be(()=>import("./mercipplusessai-485134d8-DHOhGcUK.js"),__vite__mapDeps([59,27,22,15,14])),iL=Xh({prenom:fn().trim().max(50).optional()}),rL=ve()({validateSearch:iL,head:()=>({meta:[{title:"Merci — Patrimoine + version d'essai"},{name:"description",content:"Merci pour ton inscription à Patrimoine + version d'essai. Tu vas recevoir l'outil par email d'ici une minute maximum."},{name:"robots",content:"noindex, nofollow"}]}),component:_e(nL,"component")}),sL=()=>be(()=>import("./parrainage-Cp2BgRaB.js"),__vite__mapDeps([60,1,48,9,7,41])),aL=ve()({head:()=>({meta:[{title:"Parrainage — Investir Simple"},{name:"description",content:"Toutes les plateformes d'investissement que j'utilise, avec codes promo et bonus exclusifs : assurance vie, PEA, SCPI, crypto, immobilier, suivi de patrimoine."},{property:"og:title",content:"Offres de parrainage — Investir Simple"},{property:"og:description",content:"Profite de bonus et codes promo sur les plateformes d'investissement que j'utilise et que je recommande."}]}),component:_e(sL,"component")}),oL=()=>be(()=>import("./patrimoineplus-DTAvIeT8.js"),__vite__mapDeps([61,30,7])),lL=ve()({head:()=>({meta:[{title:"Patrimoine + Premium — L'outil offline pour piloter ton patrimoine"},{name:"description",content:"Patrimoine + Premium : l'outil Excel offline le plus complet pour suivre, projeter et optimiser ton patrimoine en toute autonomie. Accès à vie, sans abonnement."},{property:"og:title",content:"Patrimoine + Premium — Pilote ton patrimoine en toute autonomie"},{property:"og:description",content:"L'outil Excel offline pour suivre, projeter et optimiser ton patrimoine. Accès à vie, 199 €."}]}),component:_e(oL,"component")}),uL=()=>be(()=>import("./patrimoineplus-merci-DXZvN-EP.js"),__vite__mapDeps([62,1,30,27,15,10])),cL=ve()({head:()=>({meta:[{title:"Merci pour ta commande — Patrimoine + Premium"},{name:"robots",content:"noindex"}]}),component:_e(uL,"component")}),dL=()=>be(()=>import("./patrimoineplus-paiement-QeIMLrus.js"),__vite__mapDeps([63,1,32,33,34,30,7,35,36])),fL=ve()({head:()=>({meta:[{title:"Patrimoine + Premium — Version complète (199 €)"},{name:"description",content:"Commande Patrimoine + Premium : la version complète de l'out
56il de suivi patrimonial + accès à la plateforme Schoolmaker."},{property:"og:title",content:"Patrimoine + Premium — Version complète"},{property:"og:description",content:"L'outil Excel complet pour piloter ton patrimoine, paiement unique 199 €."}]}),component:_e(dL,"component")}),hL=()=>be(()=>import("./patrimoineplusversionessai-B6TWbZbQ.js"),__vite__mapDeps([64,1,6,47,34,7,35,36,52,2])),pL=ve()({head:()=>({meta:[{title:"Patrimoine Plus — Version d'essai gratuite"},{name:"description",content:"Reçois gratuitement Patrimoine Plus, l'outil Excel offline le plus complet pour suivre, projeter et optimiser ton patrimoine en toute autonomie."},{property:"og:title",content:"Patrimoine Plus — Version d'essai gratuite"},{property:"og:description",content:"L'outil Excel offline pour piloter ton patrimoine. Version d'essai entièrement gratuite."},{property:"og:url",content:"https://investirsimple.com/patrimoineplusversionessai"}],links:[{rel:"canonical",href:"https://investirsimple.com/patrimoineplusversionessai"}]}),component:_e(hL,"component")}),mL=()=>be(()=>import("./patrimoineplusversionessai-c8977ba3-Hl4OjAVP.js"),__vite__mapDeps([65,1,6,47,34,7,52,2])),gL=ve()({head:()=>({meta:[{title:"Patrimoine Plus — Version d'essai gratuite"},{name:"description",content:"Reçois gratuitement Patrimoine Plus, l'outil Excel offline le plus complet pour suivre, projeter et optimiser ton patrimoine en toute autonomie."},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:"Patrimoine Plus — Version d'essai gratuite"},{property:"og:description",content:"L'outil Excel offline pour piloter ton patrimoine. Version d'essai entièrement gratuite."},{property:"og:url",content:"https://investirsimple.com/patrimoineplusversionessai-c8977ba3"}],links:[{rel:"canonical",href:"https://investirsimple.com/patrimoineplusversionessai-c8977ba3"}]}),component:_e(mL,"component")}),vL="/assets/perdre-argent-betement-Y52E9b1t.jpg",yL=()=>be(()=>import("./perdre-de-largent-btement--6-astuces-pour-lviter-BgH7UV-f.js"),__vite__mapDeps([66,1,7])),d_="/perdre-de-largent-btement--6-astuces-pour-lviter",_L=ve()({head:()=>({meta:[{title:"Perdre de l'argent bêtement : 6 astuces pour l'éviter | Investir Simple"},{name:"description",content:"Découvre 6 astuces concrètes pour arrêter de perdre de l'argent bêtement et reprendre le contrôle de ton budget au quotidien."},{property:"og:title",content:"Perdre de l'argent bêtement : 6 astuces pour l'éviter"},{property:"og:description",content:"Banque, abonnements, pression sociale, budget… 6 leviers simples pour arrêter d'hémorragier ton compte."},{property:"og:url",content:`https://investirsimple.com${d_}`},{property:"og:image",content:vL}],links:[{rel:"canonical",href:`https://investirsimple.com${d_}`}]}),component:_e(yL,"component")}),bL=()=>be(()=>import("./politiqueconfidentialite-BCqDx8-G.js"),[]),wL=ve()({head:()=>({meta:[{title:"Politique de confidentialité — Investir Simple"},{name:"description",content:"Politique de confidentialité du site Investir Simple : finalités, conservation et droits relatifs au traitement de vos données personnelles."}]}),component:_e(bL,"component")}),SL=()=>be(()=>import("./politiquedecookies-C99BSdj0.js"),[]),EL=ve()({head:()=>({meta:[{title:"Politique de cookies — Investir Simple"},{name:"description",content:"Politique de cookies du site Investir Simple : types de cookies utilisés, consentement, gestion et droits relatifs à vos données."}]}),component:_e(SL,"component")}),TL=()=>be(()=>import("./posts-CRD4ykTf.js"),[]),RL=ve()({head:()=>({meta:[{title:"Articles — InvestirSimple"},{name:"description",content:"Tous les articles InvestirSimple : investissement, budget, immobilier locatif, coaching financier et outils pratiques."},{property:"og:title",content:"Articles — InvestirSimple"},{property:"og:description",content:"Tous les articles InvestirSimple : investissement, budget, immobilier locatif, coaching financier et outils pratiques."}]}),component:_e(TL,"component")}),AL=()=>be(()=>import("./programmes-DtqBFgK5.js"),[]),OL=ve()({beforeLoad:()=>{throw Un({to:"/academie",statusCode:301})},component:_e(AL,"component")}),xL=()=>be(()=>import("./quiz-investisseur-DBJvJRV1.js").then(t=>t.q),[]),CL=ve()({head:()=>({meta:[{title:"Quel investisseur es-tu ? — Investir Simple"},{name:"description",content:"7 questions pour découvrir ton profil d'investisseur et repartir avec deux actions concrètes."},{property:"og:title",content:"Quel investisseur es-tu ?"},{property:"og:description",content:"7 questions pour découvrir ton profil d'investisseur."}]}),component:_e(xL,"component")}),kL=ve()({beforeLoad:({location:t})=>{throw Un({to:"/quiz-investisseur",search:t.search,statusCode:301})}}),jL="/assets/tableau-gestion-budget-DYkIBI8X.jpg",NL=()=>be(()=>import("./tableau-gestion-de-budget-kowkZhAQ.js"),__vite__mapDeps([67,1,7])),f_="/tableau-gestion-de-budget",DL=ve
56()({head:()=>({meta:[{title:"Tableau gestion de budget : L'outil indispensable | Investir Simple"},{name:"description",content:"Télécharge gratuitement le tableau de gestion de budget Excel que j'utilise pour économiser 30 % de mon salaire chaque mois. Guide d'utilisation inclus."},{property:"og:title",content:"Tableau gestion de budget : L'outil indispensable"},{property:"og:description",content:"Le tableau Excel simple et gratuit pour lister tes charges fixes, budgétiser tes dépenses variables et épargner ton reste à vivre en automatique."},{property:"og:url",content:`https://investirsimple.com${f_}`},{property:"og:image",content:jL}],links:[{rel:"canonical",href:`https://investirsimple.com${f_}`}]}),component:_e(NL,"component")}),LL=()=>be(()=>import("./tableaubudget-a5247605-BBy0gkZy.js"),__vite__mapDeps([68,1,47,34,7,52,2])),ML=ve()({head:()=>({meta:[{title:"Tableau de gestion du budget — Reçois-le gratuitement | Investir Simple"},{name:"description",content:"Reçois gratuitement le tableau Excel de gestion du budget : la première étape indispensable pour reprendre en main tes finances personnelles."},{property:"og:title",content:"Tableau de gestion du budget — Gratuit"},{property:"og:description",content:"L'outil simple pour faire ton budget mensuel, comprendre où part ton argent et épargner en automatique."},{property:"og:url",content:"https://investirsimple.com/tableaubudget-a5247605"}],links:[{rel:"canonical",href:"https://investirsimple.com/tableaubudget-a5247605"}]}),component:_e(LL,"component")}),UL="/assets/coaching1-_R9UDbD6.png",zL=()=>be(()=>import("./tarifs-du-coaching-financier--comment-en-avoir-pour-son-argent--DGIo1Z7X.js"),__vite__mapDeps([69,1,7])),h_="/tarifs-du-coaching-financier--comment-en-avoir-pour-son-argent-",IL=ve()({head:()=>({meta:[{title:"Tarifs du coaching financier : comment en avoir pour son argent ? | Investir Simple"},{name:"description",content:"Combien coûte un coaching financier ? Découvre les structures de tarification, les facteurs qui influencent les prix et comment maximiser la valeur de ton accompagnement."},{property:"og:title",content:"Tarifs du coaching financier : comment en avoir pour son argent ?"},{property:"og:description",content:"Structures d'honoraires, facteurs de prix et conseils pour tirer le meilleur parti d'un coach financier."},{property:"og:url",content:`https://investirsimple.com${h_}`},{property:"og:image",content:UL}],links:[{rel:"canonical",href:`https://investirsimple.com${h_}`}]}),component:_e(zL,"component")}),PL=()=>be(()=>import("./top5etfpea-CmWnEcYs.js"),__vite__mapDeps([70,1,47,34,7,52,2])),BL=ve()({head:()=>({meta:[{title:"Top 5 ETF 2026 sur le PEA — Investir Simple"},{name:"description",content:"Télécharge gratuitement la liste des 5 meilleurs ETF 2026 éligibles au PEA, en version ESG et non ESG."},{property:"og:title",content:"Top 5 ETF 2026 sur le PEA — gratuit"},{property:"og:description",content:"La sélection des meilleurs ETF PEA, ESG et non ESG, à recevoir par email."}]}),component:_e(PL,"component")}),$L=_N.update({id:"/",path:"/",getParentRoute:()=>ge}),qL=bN.update({id:"/a-propos",path:"/a-propos",getParentRoute:()=>ge}),HL=SN.update({id:"/about",path:"/about",getParentRoute:()=>ge}),VL=TN.update({id:"/academie",path:"/academie",getParentRoute:()=>ge}),FL=AN.update({id:"/academie-candidature",path:"/academie-candidature",getParentRoute:()=>ge}),GL=eD.update({id:"/academie-candidature-confirmation-rendez-vous",path:"/academie-candidature-confirmation-rendez-vous",getParentRoute:()=>ge}),KL=tD.update({id:"/academie-candidature-merci",path:"/academie-candidature-merci",getParentRoute:()=>ge}),YL=iD.update({id:"/academie-candidatures-cloturees",path:"/academie-candidatures-cloturees",getParentRoute:()=>ge}),ZL=sD.update({id:"/academie-merci",path:"/academie-merci",getParentRoute:()=>ge}),QL=oD.update({id:"/academie-paiement",path:"/academie-paiement",getParentRoute:()=>ge}),JL=uD.update({id:"/academie-pilier1-paiement",path:"/academie-pilier1-paiement",getParentRoute:()=>ge}),XL=dD.update({id:"/academie-pilier23-paiement",path:"/academie-pilier23-paiement",getParentRoute:()=>ge}),WL=hD.update({id:"/academie-test-live",path:"/academie-test-live",getParentRoute:()=>ge}),eM=mD.update({id:"/admin-liens",path:"/admin-liens",getParentRoute:()=>ge}),tM=yD.update({id:"/budget-annuel-vs-budget-mensuel-avec-sophie-de-riche-au-feminin",path:"/budget-annuel-vs-budget-mensuel-avec-sophie-de-riche-au-feminin",getParentRoute:()=>ge}),nM=wD.update({id:"/calcul-rentabilite-locative-excel",path:"/calcul-rentabilite-locative-excel",getParentRoute:()=>ge}),iM=ED.update({id:"/cgv",path:"/cgv",getParentRoute:()=>ge}),rM=RD.update({id:"/challenge-merci",path:"/challenge-merci",getParentRoute:()=>ge}),sM=OD.update({id:"/challenge-septembre",path:"/challenge-septembre",getParentRoute:()=>ge}),aM=jD.update({id:"/coaching",path:"/coaching",getParentRoute:()=>ge}),oM=DD.update({id:"/contact",path:"/contact",getParentRoute:()=>ge}),lM=MD.update({id:"/excelsuivipatrimoine",path:"/excelsuivipatrimoine",getParentRoute:()=>ge}),uM=zD.update({id:"/excelsuivipatrimoineab",path:"/excelsuivipatrimoineab",getParentRoute:()=>ge}),cM=$D.update({id:"/kitinvestisseur",path:"/kitinvestisseur",getParentRoute:()=>ge}),dM=HD.update({id:"/landingpagenewletter-1eff1abe",path:"/landingpagenewletter-1eff1abe",getParentRoute:()=>ge}),fM=FD.update({id:"/lepodcast",path:"/lepodcast",getParentRoute:()=>ge}),hM=KD.update({id:"/listedattenteacademie",path:"/listedattenteacademie",getParentRoute:()=>ge}),pM=QD.update({id:"/meilleur-cto--trade-republic-vs-trading-212",path:"/meilleur-cto--trade-republic-vs-trading-212",getParentRoute:()=>ge}),mM=XD.update({id:"/mentions-legales",path:"/mentions-legales",getParentRoute:()=>ge}),gM=tL.update({id:"/merci",path:"/merci",getParentRoute:()=>ge}),vM=rL.update({id:"/mercipplusessai-485134d8",path:"/mercipplusessai-485134d8",getParentRoute:()=>ge}),yM=aL.update({id:"/parrainage",path:"/parrainage",getParentRoute:()=>ge}),_M=lL.update({id:"/patrimoineplus",path:"/patrimoineplus",getParentRoute:()=>ge}),bM=cL.update({id:"/patrimoineplus-merci",path:"/patrimoineplus-merci",getParentRoute:()=>ge}),wM=fL.update({id:"/patrimoineplus-paiement",path:"/patrimoineplus-paiement",getParentRoute:()=>ge}),SM=pL.update({id:"/patrimoineplusversionessai",path:"/patrimoineplusversionessai",getParentRoute:()=>ge}),EM=gL.update({id:"/patrimoineplusversionessai-c8977ba3",path:"/patrimoineplusversionessai-c8977ba3",getParentRoute:()=>ge}),TM=_L.update({id:"/perdre-de-largent-btement--6-astuces-pour-lviter",path:"/perdre-de-largent-btement--6-astuces-pour-lviter",getParentRoute:()=>ge}),RM=wL.update({id:"/politiqueconfidentialite",path:"/politiqueconfidentialite",getParentRoute:()=>ge}),AM=EL.update({id:"/politiquedecookies",path:"/politiquedecookies",getParentRoute:()=>ge}),OM=RL.update({id:"/posts",path:"/posts",getParentRoute:()=>ge}),xM=OL.update({id:"/programmes",path:"/programmes",getParentRoute:()=>ge}),CM=CL.update({id:"/quiz-investisseur",path:"/quiz-investisseur",getParentRoute:()=>ge}),kM=kL.update({id:"/quizz-investisseur",path:"/quizz-investisseur",getParentRoute:()=>ge}),jM=DL.update({id:"/tableau-gestion-de-budget",path:"/tableau-gestion-de-budget",getParentRoute:()=>ge}),NM=ML.update({id:"/tableaubudget-a5247605",path:"/tableaubudget-a5247605",getParentRoute:()=>ge}),DM=IL.update({id:"/tarifs-du-coaching-financier--comment-en-avoir-pour-son-argent-",path:"/tarifs-du-coaching-financier--comment-en-avoir-pour-son-argent-",getParentRoute:()=>ge}),LM=BL.update({id:"/top5etfpea",path:"/top5etfpea",getParentRoute:()=>ge}),MM={IndexRoute:$L,AProposRoute:qL,AboutRoute:HL,AcademieRoute:VL,AcademieCandidatureRoute:FL,Ac
56ademieCandidatureConfirmationRendezVousRoute:GL,AcademieCandidatureMerciRoute:KL,AcademieCandidaturesClotureesRoute:YL,AcademieMerciRoute:ZL,AcademiePaiementRoute:QL,AcademiePilier1PaiementRoute:JL,AcademiePilier23PaiementRoute:XL,AcademieTestLiveRoute:WL,AdminLiensRoute:eM,BudgetAnnuelVsBudgetMensuelAvecSophieDeRicheAuFemininRoute:tM,CalculRentabiliteLocativeExcelRoute:nM,CgvRoute:iM,ChallengeMerciRoute:rM,ChallengeSeptembreRoute:sM,CoachingRoute:aM,ContactRoute:oM,ExcelsuivipatrimoineRoute:lM,ExcelsuivipatrimoineabRoute:uM,KitinvestisseurRoute:cM,Landingpagenewletter1eff1abeRoute:dM,LepodcastRoute:fM,ListedattenteacademieRoute:hM,MeilleurCtoTradeRepublicVsTrading212Route:pM,MentionsLegalesRoute:mM,MerciRoute:gM,Mercipplusessai485134d8Route:vM,ParrainageRoute:yM,PatrimoineplusRoute:_M,PatrimoineplusMerciRoute:bM,PatrimoineplusPaiementRoute:wM,PatrimoineplusversionessaiRoute:SM,PatrimoineplusversionessaiC8977ba3Route:EM,PerdreDeLargentBtement6AstucesPourLviterRoute:TM,PolitiqueconfidentialiteRoute:RM,PolitiquedecookiesRoute:AM,PostsRoute:OM,ProgrammesRoute:xM,QuizInvestisseurRoute:CM,QuizzInvestisseurRoute:kM,TableauGestionDeBudgetRoute:jM,TableaubudgetA5247605Route:NM,TarifsDuCoachingFinancierCommentEnAvoirPourSonArgentRoute:DM,Top5etfpeaRoute:LM},UM=ge._addFileChildren(MM);function zM(){return D.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:D.jsxs("div",{className:"max-w-md text-center",children:[D.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),D.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page non trouvée"}),D.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Désolé, cette page n'existe plus."}),D.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["Si tu veux me contacter, contacte-moi à"," ",D.jsx("a",{href:"mailto:[email protected]",className:"underline hover:text-foreground",children:"[email protected]"}),"."]}),D.jsx("div",{className:"mt-6",children:D.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Retourner à l'accueil"})})]})})}const IM=()=>{const t=new fj;return wx({routeTree:UM,context:{queryClient:t},scrollRestoration:!0,defaultPreloadStaleTime:0,defaultNotFoundComponent:zM})};async function PM(){const t=await IM();let e;if(O0){const i=await O0.getOptions();i.serializationAdapters=i.serializationAdapters??[],window.__TSS_START_OPTIONS__=i,e=i.serializationAdapters,t.options.defaultSsr=i.defaultSsr}else e=[],window.__TSS_START_OPTIONS__={serializationAdapters:e};return e.push(kO),t.options.serializationAdapters&&e.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:e}),t.stores.ids.get().length||await ER(t),t}var BM=PM;function $M(){return BM().finally(()=>window.$_TSR?.h())}var If;function qM(){return If||(If=$M()),D.jsx(NO,{promise:If,children:t=>D.jsx(Tx,{router:t})})}Z.startTransition(()=>{_T.hydrateRoot(document,D.jsx(Z.StrictMode,{children:D.jsx(qM,{})}))});export{Mj as A,HM as B,xt as L,bo as R,xw as X,be as _,VM as a,gT as b,Yh as c,hu as d,Ob as e,Mb as f,_D as g,gD as h,GM as i,D as j,Ub as k,YM as l,PD as m,YD as n,tL as o,CD as p,rL as q,Z as r,ku as s,uT as t,dN as u,KM as v,vL as w,Vj as x,jL as y,UL as z};

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.