PageSourceSearch

https://www.inafrica.group/assets/index-DOSnIJpQ.js

js inafrica.group collected 2026-10-09 22:51:29 UTC 721,450 bytes, 160 lines download raw bytes

vendor: 8,401 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BKrIztUz.js","assets/SiteShell-CgsLrcr5.js","assets/Footer-BxMcuBYJ.js","assets/useAdminAuth-Bl6fM9Yx.js","assets/dropdown-menu-8t8394Uo.js","assets/check-B6bmwAwl.js","assets/HeroBadge-Rw-z3OmN.js","assets/africa-paths-kqx4Yfph.js","assets/CountrySheet-CqPWGDLs.js","assets/sheet-CUbPsmOp.js","assets/map-pin-D-YaRoi8.js","assets/users-CpCNzcYb.js","assets/briefcase-C6K_mZ7L.js","assets/arrow-right-lE4ZUKqB.js","assets/real-nairobi-dinner-DWapWY-L.js","assets/martino-portrait.jpg.asset-DKY4cioP.js","assets/clock-OSXkrnFR.js","assets/linkedin-DBus1Rz4.js","assets/advisory-CuSbiOEJ.js","assets/PageHeader-9VjUoB47.js","assets/LeadForm-BOE30347.js","assets/input-fSaq5Hla.js","assets/textarea-IyQBrJqw.js","assets/label-DUJUFBZE.js","assets/checkbox-DtvQMIau.js","assets/leads-CusfD-9H.js","assets/sparkles-DOh4YOmW.js","assets/arrow-left-GOFFDHkQ.js","assets/loader-circle-BPiSFlpv.js","assets/search-CEsmHtnI.js","assets/blog-DXxf-rR6.js","assets/chi-siamo-BPO-HoF6.js","assets/martino-ghielmi-CRHrx7kz.js","assets/contatti-DIR4B8YY.js","assets/mail-CfZKRLxX.js","assets/cookie-policy-B-rWHRHn.js","assets/dicono-di-noi-DGZPZiAB.js","assets/grazie-BojKPENN.js","assets/download-CHGgc6-T.js","assets/circle-check-Ce2vGCGz.js","assets/partner-CumDq4Pp.js","assets/perche-esistiamo-CQ746P8R.js","assets/privacy-YCQEQ-Hn.js","assets/programmi-BRk3jcWc.js","assets/risorse-CqaQSUwA.js","assets/file-text-DKos8pHz.js","assets/self-check-Cnr-uW51.js","assets/index-ViW5NzSh.js","assets/summit-vbEsj7Yu.js","assets/termini-BR-GYXQX.js","assets/workshop-vendere-in-africa-T9JipoGt.js","assets/companySize-CFsuhiYy.js","assets/admin.account-CZhpUdUZ.js","assets/sonner-qgjEe5y7.js","assets/admin.campaigns-Bj86xIxl.js","assets/skeleton-BWJo_-tV.js","assets/types-luzsY-u4.js","assets/plus-DPKKkmTK.js","assets/trash-2-BS7-rwVI.js","assets/admin.duplicates-B-E20rPA.js","assets/card-Gi0k9b9s.js","assets/alert-dialog-VtEmPIxq.js","assets/refresh-cw-BCYXT-b-.js","assets/admin.forgot-password-Bz_KM_93.js","assets/admin.leads-DMVAz-KM.js","assets/table-BN-yyvbu.js","assets/exportCsv-BPg8Qd0g.js","assets/admin.login-DVhnXJ9E.js","assets/admin.quality-UZe-naDG.js","assets/admin.reports-D-D31MGo.js","assets/admin.reset-password-DPkVPKyA.js","assets/blog._slug-DazTtmj_.js","assets/blog._slug-BLNaybvE.js","assets/club.index-BiQyOTNZ.js","assets/club.anteprima-CiVMpb5j.js","assets/storie.index-DezsGIvz.js","assets/storie._slug-BbB0-BU0.js","assets/storie._slug-BxzouysJ.js","assets/storie._slug-BWzlQ54j.js","assets/admin.reports.funnel-CtmERG19.js"])))=>i.map(i=>d[i]);
2function yC(t,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(t,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _h={exports:{}},bo={};var wb;function bC(){if(wb)return bo;wb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(a,s,l){var u=null;if(l!==void 0&&(u=""+l),s.key!==void 0&&(u=""+s.key),"key"in s){l={};for(var d in s)d!=="key"&&(l[d]=s[d])}else l=s;return s=l.ref,{$$typeof:t,type:a,key:u,ref:s!==void 0?s:null,props:l}}return bo.Fragment=e,bo.jsx=n,bo.jsxs=n,bo}var Sb;function _C(){return Sb||(Sb=1,_h.exports=bC()),_h.exports}var k=_C(),wh={exports:{}},Ee={};var Eb;function wC(){if(Eb)return Ee;Eb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),y=Symbol.iterator;function _(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function T(D,V,Q){this.props=D,this.context=V,this.refs=A,this.updater=Q||E}T.prototype.isReactComponent={},T.prototype.setState=function(D,V){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,V,"setState")},T.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=T.prototype;function x(D,V,Q){this.props=D,this.context=V,this.refs=A,this.updater=Q||E}var z=x.prototype=new C;z.constructor=x,w(z,T.prototype),z.isPureReactComponent=!0;var Y=Array.isArray;function M(){}var N={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function X(D,V,Q){var ie=Q.ref;return{$$typeof:t,type:D,key:V,ref:ie!==void 0?ie:null,props:Q}}function se(D,V){return X(D.type,V,D.props)}function K(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function Z(D){var V={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Q){return V[Q]})}var ne=/\/+/g;function we(D,V){return typeof D=="object"&&D!==null&&D.key!=null?Z(""+D.key):V.toString(36)}function oe(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(M,M):(D.status="pending",D.then(function(V){D.status==="pending"&&(D.status="fulfilled",D.value=V)},function(V){D.status==="pending"&&(D.status="rejected",D.reason=V)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function I(D,V,Q,ie,he){var ge=typeof D;(ge==="undefined"||ge==="boolean")&&(D=null);var ve=!1;if(D===null)ve=!0;else switch(ge){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(D.$$typeof){case t:case e:ve=!0;break;case g:return ve=D._init,I(ve(D._payload),V,Q,ie,he)}}if(ve)return he=he(D),ve=ie===""?"."+we(D,0):ie,Y(he)?(Q="",ve!=null&&(Q=ve.replace(ne,"$&/")+"/"),I(he,V,Q,"",function(Zt){return Zt})):he!=null&&(K(he)&&(he=se(he,Q+(he.key==null||D&&D.key===he.key?"":(""+he.key).replace(ne,"$&/")+"/")+ve)),V.push(he)),1;ve=0;var Ue=ie===""?".":ie+":";if(Y(D))for(var Se=0;Se<D.length;Se++)ie=D[Se],ge=Ue+we(ie,Se),ve+=I(ie,V,Q,ge,he);else if(Se=_(D),typeof Se=="function")for(D=Se.call(D),Se=0;!(ie=D.next()).done;)ie=ie.value,ge=Ue+we(ie,Se++),ve+=I(ie,V,Q,ge,he);else if(ge==="object"){if(typeof D.then=="function")return I(oe(D),V,Q,ie,he);throw V=String(D),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ve}function J(D,V,Q){if(D==null)return D;var ie=[],he=0;return I(D,ie,"","",function(ge){return V.call(Q,ge,he++)}),ie}function me(D){if(D._status===-1){var V=D._result;V=V(),V.then(function(Q){(D._status===0||D._status===-1)&&(D._status=1,D._result=Q)},function(Q){(D._status===0||D._status===-1)&&(D._status=2,D._result=Q)}),D._status===-1&&(D._status=0,D._result=V)}if(D._status===1)return D._result.default;throw D._result}var Me=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},ee={map:J,forEach:function(D,V,Q){J(D,function(){V.apply(this,arguments)},Q)},count:function(D){var V=0;return J(D,function(){V++}),V},toArray:function(D){return J(D,function(V){return V})||[]},only:function(D){if(!K(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ee.Activity=v,Ee.Children=ee,Ee.Component=T,Ee.Fragment=n,Ee.Profiler=s,Ee.PureComponent=x,Ee.StrictMode=a,Ee.Suspense=h,Ee.__
vendor: 4,461 bytes, line 2
2CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(D){return N.H.useMemoCache(D)}},Ee.cache=function(D){return function(){return D.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(D,V,Q){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ie=w({},D.props),he=D.key;if(V!=null)for(ge in V.key!==void 0&&(he=""+V.key),V)!B.call(V,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&V.ref===void 0||(ie[ge]=V[ge]);var ge=arguments.length-2;if(ge===1)ie.children=Q;else if(1<ge){for(var ve=Array(ge),Ue=0;Ue<ge;Ue++)ve[Ue]=arguments[Ue+2];ie.children=ve}return X(D.type,he,ie)},Ee.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:l,_context:D},D},Ee.createElement=function(D,V,Q){var ie,he={},ge=null;if(V!=null)for(ie in V.key!==void 0&&(ge=""+V.key),V)B.call(V,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(he[ie]=V[ie]);var ve=arguments.length-2;if(ve===1)he.children=Q;else if(1<ve){for(var Ue=Array(ve),Se=0;Se<ve;Se++)Ue[Se]=arguments[Se+2];he.children=Ue}if(D&&D.defaultProps)for(ie in ve=D.defaultProps,ve)he[ie]===void 0&&(he[ie]=ve[ie]);return X(D,ge,he)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(D){return{$$typeof:d,render:D}},Ee.isValidElement=K,Ee.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:me}},Ee.memo=function(D,V){return{$$typeof:p,type:D,compare:V===void 0?null:V}},Ee.startTransition=function(D){var V=N.T,Q={};N.T=Q;try{var ie=D(),he=N.S;he!==null&&he(Q,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(M,Me)}catch(ge){Me(ge)}finally{V!==null&&Q.types!==null&&(V.types=Q.types),N.T=V}},Ee.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ee.use=function(D){return N.H.use(D)},Ee.useActionState=function(D,V,Q){return N.H.useActionState(D,V,Q)},Ee.useCallback=function(D,V){return N.H.useCallback(D,V)},Ee.useContext=function(D){return N.H.useContext(D)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(D,V){return N.H.useDeferredValue(D,V)},Ee.useEffect=function(D,V){return N.H.useEffect(D,V)},Ee.useEffectEvent=function(D){return N.H.useEffectEvent(D)},Ee.useId=function(){return N.H.useId()},Ee.useImperativeHandle=function(D,V,Q){return N.H.useImperativeHandle(D,V,Q)},Ee.useInsertionEffect=function(D,V){return N.H.useInsertionEffect(D,V)},Ee.useLayoutEffect=function(D,V){return N.H.useLayoutEffect(D,V)},Ee.useMemo=function(D,V){return N.H.useMemo(D,V)},Ee.useOptimistic=function(D,V){return N.H.useOptimistic(D,V)},Ee.useReducer=function(D,V,Q){return N.H.useReducer(D,V,Q)},Ee.useRef=function(D){return N.H.useRef(D)},Ee.useState=function(D){return N.H.useState(D)},Ee.useSyncExternalStore=function(D,V,Q){return N.H.useSyncExternalStore(D,V,Q)},Ee.useTransition=function(){return N.H.useTransition()},Ee.version="19.2.5",Ee}var Ab;function rl(){return Ab||(Ab=1,wh.exports=wC()),wh.exports}var R=rl();const it=J_(R),Lp=yC({__proto__:null,default:it},[R]);var Sh={exports:{}},_o={},Eh={exports:{}},Ah={};var Tb;function SC(){return Tb||(Tb=1,(function(t){function e(I,J){var me=I.length;I.push(J);e:for(;0<me;){var Me=me-1>>>1,ee=I[Me];if(0<s(ee,J))I[Me]=J,I[me]=ee,me=Me;else break e}}function n(I){return I.length===0?null:I[0]}function a(I){if(I.length===0)return null;var J=I[0],me=I.pop();if(me!==J){I[0]=me;e:for(var Me=0,ee=I.length,D=ee>>>1;Me<D;){var V=2*(Me+1)-1,Q=I[V],ie=V+1,he=I[ie];if(0>s(Q,me))ie<ee&&0>s(he,Q)?(I[Me]=he,I[ie]=me,Me=ie):(I[Me]=Q,I[V]=me,Me=V);else if(ie<ee&&0>s(he,me))I[Me]=he,I[ie]=me,Me=ie;else break e}}return J}function s(I,J){var me=I.sortIndex-J.sortIndex;return me!==0?me:I.id-J.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 u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],p=[],g=1,v=null,y=3,_=!1,E=!1,w=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function z(I){for(var J=n(p);J!==null;){if(J.callback===null)a(p);else if(J.startTime<=I)a(p),J.sortIndex=J.expirationTime,e(h,J);else break;J=n(p)}}function Y(I){if(w=!1,z(I),!E)if(n(h)!==null)E=!0,M||(M=!0,Z());else{var J=n(p);
vendor: 11,016 bytes, lines 2-4
2J!==null&&oe(Y,J.startTime-I)}}var M=!1,N=-1,B=5,X=-1;function se(){return A?!0:!(t.unstable_now()-X<B)}function K(){if(A=!1,M){var I=t.unstable_now();X=I;var J=!0;try{e:{E=!1,w&&(w=!1,C(N),N=-1),_=!0;var me=y;try{t:{for(z(I),v=n(h);v!==null&&!(v.expirationTime>I&&se());){var Me=v.callback;if(typeof Me=="function"){v.callback=null,y=v.priorityLevel;var ee=Me(v.expirationTime<=I);if(I=t.unstable_now(),typeof ee=="function"){v.callback=ee,z(I),J=!0;break t}v===n(h)&&a(h),z(I)}else a(h);v=n(h)}if(v!==null)J=!0;else{var D=n(p);D!==null&&oe(Y,D.startTime-I),J=!1}}break e}finally{v=null,y=me,_=!1}J=void 0}}finally{J?Z():M=!1}}}var Z;if(typeof x=="function")Z=function(){x(K)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,we=ne.port2;ne.port1.onmessage=K,Z=function(){we.postMessage(null)}}else Z=function(){T(K,0)};function oe(I,J){N=T(function(){I(t.unstable_now())},J)}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(I){I.callback=null},t.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<I?Math.floor(1e3/I):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(I){switch(y){case 1:case 2:case 3:var J=3;break;default:J=y}var me=y;y=J;try{return I()}finally{y=me}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(I,J){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var me=y;y=I;try{return J()}finally{y=me}},t.unstable_scheduleCallback=function(I,J,me){var Me=t.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?Me+me:Me):me=Me,I){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=me+ee,I={id:g++,callback:J,priorityLevel:I,startTime:me,expirationTime:ee,sortIndex:-1},me>Me?(I.sortIndex=me,e(p,I),n(h)===null&&I===n(p)&&(w?(C(N),N=-1):w=!0,oe(Y,me-Me))):(I.sortIndex=ee,e(h,I),E||_||(E=!0,M||(M=!0,Z()))),I},t.unstable_shouldYield=se,t.unstable_wrapCallback=function(I){var J=y;return function(){var me=y;y=J;try{return I.apply(this,arguments)}finally{y=me}}}})(Ah)),Ah}var Rb;function EC(){return Rb||(Rb=1,Eh.exports=SC()),Eh.exports}var Th={exports:{}},Nt={};var Cb;function AC(){if(Cb)return Nt;Cb=1;var t=rl();function e(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Nt.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(e(299));return l(h,p,null,g)},Nt.flushSync=function(h){var p=u.T,g=a.p;try{if(u.T=null,a.p=2,h)return h()}finally{u.T=p,a.p=g,a.d.f()}},Nt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Nt.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Nt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:y,fetchPriority:_}):g==="script"&&a.d.X(h,{crossOrigin:v,integrity:y,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(h)},Nt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin);a.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Nt.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=d(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Nt.requestFormReset=function(h){a.d.r(h)},Nt.unstable_batchedUpdates=function(h,p){return h(p)},Nt.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},Nt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Nt.version="19.2.5",Nt}var xb;function X_(){if(xb)return Th.exports;xb=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(),Th.exports=AC(),Th.exports}var kb;function TC(){if(kb)return _o;kb=1;var t=EC(),e=rl(),n=X_();function a(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function u(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function d(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function h(r){if(l(r)!==r)throw Error(a(188))}function p(r){var i=r.alternate;if(!i){if(i=l(r),i===null)throw Error(a(188));return i!==r?null:r}for(var o=r,c=i;;){var f=o.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){o=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===o)return h(f),r;if(m===c)return h(f),i;m=m.sibling}throw Error(a(188))}if(o.return!==c.return)o=f,c=m;else{for(var b=!1,S=f.child;S;){if(S===o){b=!0,o=f,c=m;break}if(S===c){b=!0,c=f,o=m;break}S=S.sibling}if(!b){for(S=m.child;S;){if(S===o){b=!0,o=m,c=f;break}if(S===c){b=!0,c=m,o=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(o.alternate!==c)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?r:i}function g(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=g(r),i!==null)return i;r=r.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),x=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function Z(r){return r===null||typeof r!="object"?null:(r=K&&r[K]||r["@@iterator"],typeof r=="function"?r:null)}var ne=Symbol.for("react.client.reference");function we(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ne?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case w:return"Fragment";case T:return"Profiler";case A:return"StrictMode";case Y:return"Suspense";case M:return"SuspenseList";case X:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case E:return"Portal";case x:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case z:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case N:return i=r.displayName||null,i!==null?i:we(r.type)||"Memo";case B:i=r._payload,r=r._init;try{return we(r(i))}catch{}}return null}var oe=Array.isArray,I=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},Me=[],ee=-1;function D(r){return{current:r}}function V(r){0>ee||(r.current=Me[ee],Me[ee]=null,ee--)}function Q(r,i){ee++,Me[ee]=r.current,r.current=i}var ie=D(null),he=D(null),ge=D(null),ve=D(null);function Ue(r,i){switch(Q(ge,i),Q(he,r),Q(ie,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?Vy(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=Vy(i),r=Gy(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}V(ie),Q(ie,r)}function Se(){V(ie),V(he),V(ge)}function Zt(r){r.memoizedState!==null&&Q(ve,r);var i=ie.current,o=Gy(i,r.type);i!==o&&(Q(he,r),Q(ie,o))}function un(r){he.current===r&&(V(ie),V(he)),ve.current===r&&(V(ve),mo._currentValue=me)}var Ut,oa;function dn(r){if(Ut===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Ut=i&&i[1]||"",oa=-1<o.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Ut+r+oa}var nd=!1;function rd(r,i){if(!r||nd)return"";nd=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(H){var $=H}Reflect.construct(r,[],F)}else{try{F.call()}catch(H){$=H}r.call(F.prototype)}}else{try{throw Error()}catch(H){$=H}(F=r())&&typeof F.catch=="function"&&F.catch(function(){})}}
vendor: 5,295 bytes, lines 4-9
4catch(H){if(H&&$&&typeof H.stack=="string")return[H.stack,$.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),b=m[0],S=m[1];if(b&&S){var O=b.split(`
5`),P=S.split(`
6`);for(f=c=0;c<O.length&&!O[c].includes("DetermineComponentFrameRoot");)c++;for(;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;if(c===O.length||f===P.length)for(c=O.length-1,f=P.length-1;1<=c&&0<=f&&O[c]!==P[f];)f--;for(;1<=c&&0<=f;c--,f--)if(O[c]!==P[f]){if(c!==1||f!==1)do if(c--,f--,0>f||O[c]!==P[f]){var q=`
7`+O[c].replace(" at new "," at ");return r.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",r.displayName)),q}while(1<=c&&0<=f);break}}}finally{nd=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?dn(o):""}function ZA(r,i){switch(r.tag){case 26:case 27:case 5:return dn(r.type);case 16:return dn("Lazy");case 13:return r.child!==i&&i!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return rd(r.type,!1);case 11:return rd(r.type.render,!1);case 1:return rd(r.type,!0);case 31:return dn("Activity");default:return""}}function wm(r){try{var i="",o=null;do i+=ZA(r,o),o=r,r=r.return;while(r);return i}catch(c){return`
8Error generating stack: `+c.message+`
9`+c.stack}}var id=Object.prototype.hasOwnProperty,ad=t.unstable_scheduleCallback,sd=t.unstable_cancelCallback,JA=t.unstable_shouldYield,XA=t.unstable_requestPaint,Jt=t.unstable_now,WA=t.unstable_getCurrentPriorityLevel,Sm=t.unstable_ImmediatePriority,Em=t.unstable_UserBlockingPriority,hl=t.unstable_NormalPriority,QA=t.unstable_LowPriority,Am=t.unstable_IdlePriority,eT=t.log,tT=t.unstable_setDisableYieldValue,Rs=null,Xt=null;function Lr(r){if(typeof eT=="function"&&tT(r),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(Rs,r)}catch{}}var Wt=Math.clz32?Math.clz32:iT,nT=Math.log,rT=Math.LN2;function iT(r){return r>>>=0,r===0?32:31-(nT(r)/rT|0)|0}var pl=256,ml=262144,gl=4194304;function Ri(r){var i=r&42;if(i!==0)return i;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vl(r,i,o){var c=r.pendingLanes;if(c===0)return 0;var f=0,m=r.suspendedLanes,b=r.pingedLanes;r=r.warmLanes;var S=c&134217727;return S!==0?(c=S&~m,c!==0?f=Ri(c):(b&=S,b!==0?f=Ri(b):o||(o=S&~r,o!==0&&(f=Ri(o))))):(S=c&~m,S!==0?f=Ri(S):b!==0?f=Ri(b):o||(o=c&~r,o!==0&&(f=Ri(o)))),f===0?0:i!==0&&i!==f&&(i&m)===0&&(m=f&-f,o=i&-i,m>=o||m===32&&(o&4194048)!==0)?i:f}function Cs(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function aT(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Tm(){var r=gl;return gl<<=1,(gl&62914560)===0&&(gl=4194304),r}function od(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function xs(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function sT(r,i,o,c,f,m){var b=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var S=r.entanglements,O=r.expirationTimes,P=r.hiddenUpdates;for(o=b&~o;0<o;){var q=31-Wt(o),F=1<<q;S[q]=0,O[q]=-1;var $=P[q];if($!==null)for(P[q]=null,q=0;q<$.length;q++){var H=$[q];H!==null&&(H.lane&=-536870913)}o&=~F}c!==0&&Rm(r,c,0),m!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=m&~(b&~i))}function Rm(r,i,o){r.pendingLanes|=i,r.suspendedLanes&=~i;var c=31-Wt(i);r.entangledLanes|=i,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function Cm(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var c=31-Wt(o),f=1<<c;f&i|r[c]&i&&(r[c]|=i),o&=~f}}function xm(r,i){var o=i&-i;return o=(o&42)!==0?1:ld(o),(o&(r.suspendedLanes|i))!==0?0:o}function ld(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function cd(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function km(){var r=J.p;return r!==0?r:(r=window.event,r===void 0?32:pb(r.type))}
vendor: 7,928 bytes, line 9
9function Om(r,i){var o=J.p;try{return J.p=r,i()}finally{J.p=o}}var zr=Math.random().toString(36).slice(2),Tt="__reactFiber$"+zr,Pt="__reactProps$"+zr,la="__reactContainer$"+zr,ud="__reactEvents$"+zr,oT="__reactListeners$"+zr,lT="__reactHandles$"+zr,Nm="__reactResources$"+zr,ks="__reactMarker$"+zr;function dd(r){delete r[Tt],delete r[Pt],delete r[ud],delete r[oT],delete r[lT]}function ca(r){var i=r[Tt];if(i)return i;for(var o=r.parentNode;o;){if(i=o[la]||o[Tt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=Wy(r);r!==null;){if(o=r[Tt])return o;r=Wy(r)}return i}r=o,o=r.parentNode}return null}function ua(r){if(r=r[Tt]||r[la]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Os(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function da(r){var i=r[Nm];return i||(i=r[Nm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function wt(r){r[ks]=!0}var jm=new Set,Dm={};function Ci(r,i){fa(r,i),fa(r+"Capture",i)}function fa(r,i){for(Dm[r]=i,r=0;r<i.length;r++)jm.add(i[r])}var cT=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lm={},zm={};function uT(r){return id.call(zm,r)?!0:id.call(Lm,r)?!1:cT.test(r)?zm[r]=!0:(Lm[r]=!0,!1)}function yl(r,i,o){if(uT(i))if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+o)}}function bl(r,i,o){if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+o)}}function er(r,i,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(i,o,""+c)}}function fn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Mm(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function dT(r,i,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,m=c.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return f.call(this)},set:function(b){o=""+b,m.call(this,b)}}),Object.defineProperty(r,i,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function fd(r){if(!r._valueTracker){var i=Mm(r)?"checked":"value";r._valueTracker=dT(r,i,""+r[i])}}function Im(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),c="";return r&&(c=Mm(r)?r.checked?"true":"false":r.value),r=c,r!==o?(i.setValue(r),!0):!1}function _l(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var fT=/[\n"\\]/g;function hn(r){return r.replace(fT,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function hd(r,i,o,c,f,m,b,S){r.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?r.type=b:r.removeAttribute("type"),i!=null?b==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+fn(i)):r.value!==""+fn(i)&&(r.value=""+fn(i)):b!=="submit"&&b!=="reset"||r.removeAttribute("value"),i!=null?pd(r,b,fn(i)):o!=null?pd(r,b,fn(o)):c!=null&&r.removeAttribute("value"),f==null&&m!=null&&(r.defaultChecked=!!m),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.name=""+fn(S):r.removeAttribute("name")}function Um(r,i,o,c,f,m,b,S){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(r.type=m),i!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||i!=null)){fd(r);return}o=o!=null?""+fn(o):"",i=i!=null?""+fn(i):o,S||i===r.value||(r.value=i),r.defaultValue=i}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=S?r.checked:!!c,r.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.name=b),fd(r)}function pd(r,i,o){i==="number"&&_l(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ha(r,i,o,c){if(r=r.options,i){i={};for(var f=0;f<o.length;f++)i["$"+o[f]]=!0;for(o=0;o<r.length;o++)f=i.hasOwnProperty("$"+r[o].value),r[o].selected!==f&&(r[o].selected=f),f&&c&&(r[o].defaultSelected=!0)}else{for(o=""+fn(o),i=null,f=0;f<r.length;f++){if(r[f].value===o){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}i!==null||r[f].disabled||(i=r[f])}i!==null&&(i.selected=!0)}}function Pm(r,i,o){if(i!=null&&(i=""+fn(i),i!==r.value&&(r.value=i),o==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=o!=null?""+fn(o):""}function Bm(r,i,o,c){if(i==null){if(c!=null){if(o!=null)throw Error(a(92));if(oe(c)){if(1<c.length)throw Error(a(93));c=c[0]}o=c}o==null&&(o=""),i=o}o=fn(i),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),fd(r)}function pa(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var hT=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 $m(r,i,o){var c=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":c?r.setProperty(i,o):typeof o!="number"||o===0||hT.has(i)?i==="float"?r.cssFloat=o:r[i]=(""+o).trim():r[i]=o+"px"}function Hm(r,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var f in i)c=i[f],i.hasOwnProperty(f)&&o[f]!==c&&$m(r,f,c)}else for(var m in i)i.hasOwnProperty(m)&&$m(r,m,i[m])}function md(r){if(r.indexOf("-")===-1)return!1;switch(r){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 pT=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"]]),mT=/^[\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 wl(r){return mT.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function tr(){}var gd=null;function vd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ma=null,ga=null;function qm(r){var i=ua(r);if(i&&(r=i.stateNode)){var o=r[Pt]||null;e:switch(r=i.stateNode,i.type){case"input":if(hd(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+hn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var c=o[i];if(c!==r&&c.form===r.form){var f=c[Pt]||null;if(!f)throw Error(a(90));hd(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<o.length;i++)c=o[i],c.form===r.form&&Im(c)}break e;case"textarea":Pm(r,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&ha(r,!!o.multiple,i,!1)}}}var yd=!1;function Vm(r,i,o){if(yd)return r(i,o);yd=!0;try{var c=r(i);return c}finally{if(yd=!1,(ma!==null||ga!==null)&&(lc(),ma&&(i=ma,r=ga,ga=ma=null,qm(i),r)))for(i=0;i<r.length;i++)qm(r[i])}}function Ns(r,i){var o=r.stateNode;if(o===null)return null;var c=o[Pt]||null;if(c===null)return null;o=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bd=!1;if(nr)try{var js={};Object.defineProperty(js,"passive",{get:function(){bd=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{bd=!1}var Mr=null,_d=null,Sl=null;function Gm(){if(Sl)return Sl;var r,i=_d,o=i.length,c,f="value"in Mr?Mr.value:Mr.textContent,m=f.length;for(r=0;r<o&&i[r]===f[r];r++);var b=o-r;for(c=1;c<=b&&i[o-c]===f[m-c];c++);return Sl=f.slice(r,1<c?1-c:void 0)}function El(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Al(){return!0}function Fm(){return!1}function Bt(r){function i(o,c,f,m,b){this._reactName=o,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var S in r)r.hasOwnProperty(S)&&(o=r[S],this[S]=o?o(m):m[S]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Al:Fm,this.isPropagationStopped=Fm,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),i}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=Bt(xi),Ds=v({},xi,{view:0,detail:0}),gT=Bt(Ds),wd,Sd,Ls,Rl=v({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ad,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ls&&(Ls&&r.type==="mousemove"?(wd=r.screenX-Ls.screenX,Sd=r.screenY-Ls.screenY):Sd=wd=0,Ls=r),wd)},movementY:function(r){return"movementY"in r?r.movementY:Sd}}),Km=Bt(Rl),vT=v({},Rl,{dataTransfer:0}),yT=Bt(vT),bT=v({},Ds,{relatedTarget:0}),Ed=Bt(bT),_T=v({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),wT=Bt(_T),ST=v({},xi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),ET=Bt(ST),AT=v({},xi,{data:0}),Ym=Bt(AT),TT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RT={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"},CT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xT(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=CT[r])?!!i[r]:!1}function Ad(){return xT}var kT=v({},Ds,{key:function(r){if(r.key){var i=TT[r.key]||r.key;if(i!=="Unidentified")return i}
vendor: 4,492 bytes, line 9
9return r.type==="keypress"?(r=El(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?RT[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ad,charCode:function(r){return r.type==="keypress"?El(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?El(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),OT=Bt(kT),NT=v({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zm=Bt(NT),jT=v({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ad}),DT=Bt(jT),LT=v({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),zT=Bt(LT),MT=v({},Rl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),IT=Bt(MT),UT=v({},xi,{newState:0,oldState:0}),PT=Bt(UT),BT=[9,13,27,32],Td=nr&&"CompositionEvent"in window,zs=null;nr&&"documentMode"in document&&(zs=document.documentMode);var $T=nr&&"TextEvent"in window&&!zs,Jm=nr&&(!Td||zs&&8<zs&&11>=zs),Xm=" ",Wm=!1;function Qm(r,i){switch(r){case"keyup":return BT.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var va=!1;function HT(r,i){switch(r){case"compositionend":return eg(i);case"keypress":return i.which!==32?null:(Wm=!0,Xm);case"textInput":return r=i.data,r===Xm&&Wm?null:r;default:return null}}function qT(r,i){if(va)return r==="compositionend"||!Td&&Qm(r,i)?(r=Gm(),Sl=_d=Mr=null,va=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Jm&&i.locale!=="ko"?null:i.data;default:return null}}var VT={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 tg(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!VT[r.type]:i==="textarea"}function ng(r,i,o,c){ma?ga?ga.push(c):ga=[c]:ma=c,i=mc(i,"onChange"),0<i.length&&(o=new Tl("onChange","change",null,o,c),r.push({event:o,listeners:i}))}var Ms=null,Is=null;function GT(r){Uy(r,0)}function Cl(r){var i=Os(r);if(Im(i))return r}function rg(r,i){if(r==="change")return i}var ig=!1;if(nr){var Rd;if(nr){var Cd="oninput"in document;if(!Cd){var ag=document.createElement("div");ag.setAttribute("oninput","return;"),Cd=typeof ag.oninput=="function"}Rd=Cd}else Rd=!1;ig=Rd&&(!document.documentMode||9<document.documentMode)}function sg(){Ms&&(Ms.detachEvent("onpropertychange",og),Is=Ms=null)}function og(r){if(r.propertyName==="value"&&Cl(Is)){var i=[];ng(i,Is,r,vd(r)),Vm(GT,i)}}function FT(r,i,o){r==="focusin"?(sg(),Ms=i,Is=o,Ms.attachEvent("onpropertychange",og)):r==="focusout"&&sg()}function KT(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Cl(Is)}function YT(r,i){if(r==="click")return Cl(i)}function ZT(r,i){if(r==="input"||r==="change")return Cl(i)}function JT(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Qt=typeof Object.is=="function"?Object.is:JT;function Us(r,i){if(Qt(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),c=Object.keys(i);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var f=o[c];if(!id.call(i,f)||!Qt(r[f],i[f]))return!1}return!0}function lg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function cg(r,i){var o=lg(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=i&&c>=i)return{node:o,offset:i-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=lg(o)}}function ug(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?ug(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function dg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=_l(r.document);i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}
vendor: 16,411 bytes, line 9
9if(o)r=i.contentWindow;else break;i=_l(r.document)}return i}function xd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var XT=nr&&"documentMode"in document&&11>=document.documentMode,ya=null,kd=null,Ps=null,Od=!1;function fg(r,i,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Od||ya==null||ya!==_l(c)||(c=ya,"selectionStart"in c&&xd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ps&&Us(Ps,c)||(Ps=c,c=mc(kd,"onSelect"),0<c.length&&(i=new Tl("onSelect","select",null,i,o),r.push({event:i,listeners:c}),i.target=ya)))}function ki(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var ba={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionrun:ki("Transition","TransitionRun"),transitionstart:ki("Transition","TransitionStart"),transitioncancel:ki("Transition","TransitionCancel"),transitionend:ki("Transition","TransitionEnd")},Nd={},hg={};nr&&(hg=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Oi(r){if(Nd[r])return Nd[r];if(!ba[r])return r;var i=ba[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in hg)return Nd[r]=i[o];return r}var pg=Oi("animationend"),mg=Oi("animationiteration"),gg=Oi("animationstart"),WT=Oi("transitionrun"),QT=Oi("transitionstart"),eR=Oi("transitioncancel"),vg=Oi("transitionend"),yg=new Map,jd="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(" ");jd.push("scrollEnd");function Tn(r,i){yg.set(r,i),Ci(i,[r])}var xl=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},pn=[],_a=0,Dd=0;function kl(){for(var r=_a,i=Dd=_a=0;i<r;){var o=pn[i];pn[i++]=null;var c=pn[i];pn[i++]=null;var f=pn[i];pn[i++]=null;var m=pn[i];if(pn[i++]=null,c!==null&&f!==null){var b=c.pending;b===null?f.next=f:(f.next=b.next,b.next=f),c.pending=f}m!==0&&bg(o,f,m)}}function Ol(r,i,o,c){pn[_a++]=r,pn[_a++]=i,pn[_a++]=o,pn[_a++]=c,Dd|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Ld(r,i,o,c){return Ol(r,i,o,c),Nl(r)}function Ni(r,i){return Ol(r,null,null,i),Nl(r)}function bg(r,i,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var f=!1,m=r.return;m!==null;)m.childLanes|=o,c=m.alternate,c!==null&&(c.childLanes|=o),m.tag===22&&(r=m.stateNode,r===null||r._visibility&1||(f=!0)),r=m,m=m.return;return r.tag===3?(m=r.stateNode,f&&i!==null&&(f=31-Wt(o),r=m.hiddenUpdates,c=r[f],c===null?r[f]=[i]:c.push(i),i.lane=o|536870912),m):null}function Nl(r){if(50<oo)throw oo=0,Vf=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var wa={};function tR(r,i,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(r,i,o,c){return new tR(r,i,o,c)}function zd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function rr(r,i){var o=r.alternate;return o===null?(o=en(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function _g(r,i){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function jl(r,i,o,c,f,m){var b=0;if(c=r,typeof r=="function")zd(r)&&(b=1);else if(typeof r=="string")b=sC(r,o,ie.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case X:return r=en(31,o,i,f),r.elementType=X,r.lanes=m,r;case w:return ji(o.children,f,m,i);case A:b=8,f|=24;break;case T:return r=en(12,o,i,f|2),r.elementType=T,r.lanes=m,r;case Y:return r=en(13,o,i,f),r.elementType=Y,r.lanes=m,r;case M:return r=en(19,o,i,f),r.elementType=M,r.lanes=m,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case x:b=10;break e;case C:b=9;break e;case z:b=11;break e;case N:b=14;break e;case B:b=16,c=null;break e}b=29,o=Error(a(130,r===null?"null":typeof r,"")),c=null}return i=en(b,o,i,f),i.elementType=r,i.type=c,i.lanes=m,i}function ji(r,i,o,c){return r=en(7,r,c,i),r.lanes=o,r}function Md(r,i,o){return r=en(6,r,null,i),r.lanes=o,r}function wg(r){var i=en(18,null,null,0);return i.stateNode=r,i}function Id(r,i,o){return i=en(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var Sg=new WeakMap;function mn(r,i){if(typeof r=="object"&&r!==null){var o=Sg.get(r);return o!==void 0?o:(i={value:r,source:i,stack:wm(i)},Sg.set(r,i),i)}return{value:r,source:i,stack:wm(i)}}var Sa=[],Ea=0,Dl=null,Bs=0,gn=[],vn=0,Ir=null,Bn=1,$n="";function ir(r,i){Sa[Ea++]=Bs,Sa[Ea++]=Dl,Dl=r,Bs=i}function Eg(r,i,o){gn[vn++]=Bn,gn[vn++]=$n,gn[vn++]=Ir,Ir=r;var c=Bn;r=$n;var f=32-Wt(c)-1;c&=~(1<<f),o+=1;var m=32-Wt(i)+f;if(30<m){var b=f-f%5;m=(c&(1<<b)-1).toString(32),c>>=b,f-=b,Bn=1<<32-Wt(i)+f|o<<f|c,$n=m+r}else Bn=1<<m|o<<f|c,$n=r}function Ud(r){r.return!==null&&(ir(r,1),Eg(r,1,0))}function Pd(r){for(;r===Dl;)Dl=Sa[--Ea],Sa[Ea]=null,Bs=Sa[--Ea],Sa[Ea]=null;for(;r===Ir;)Ir=gn[--vn],gn[vn]=null,$n=gn[--vn],gn[vn]=null,Bn=gn[--vn],gn[vn]=null}function Ag(r,i){gn[vn++]=Bn,gn[vn++]=$n,gn[vn++]=Ir,Bn=i.id,$n=i.overflow,Ir=r}var Rt=null,nt=null,Ie=!1,Ur=null,yn=!1,Bd=Error(a(519));function Pr(r){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $s(mn(i,r)),Bd}function Tg(r){var i=r.stateNode,o=r.type,c=r.memoizedProps;switch(i[Tt]=r,i[Pt]=c,o){case"dialog":Ne("cancel",i),Ne("close",i);break;case"iframe":case"object":case"embed":Ne("load",i);break;case"video":case"audio":for(o=0;o<co.length;o++)Ne(co[o],i);break;case"source":Ne("error",i);break;case"img":case"image":case"link":Ne("error",i),Ne("load",i);break;case"details":Ne("toggle",i);break;case"input":Ne("invalid",i),Um(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ne("invalid",i);break;case"textarea":Ne("invalid",i),Bm(i,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||c.suppressHydrationWarning===!0||Hy(i.textContent,o)?(c.popover!=null&&(Ne("beforetoggle",i),Ne("toggle",i)),c.onScroll!=null&&Ne("scroll",i),c.onScrollEnd!=null&&Ne("scrollend",i),c.onClick!=null&&(i.onclick=tr),i=!0):i=!1,i||Pr(r,!0)}function Rg(r){for(Rt=r.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:Rt=Rt.return}}function Aa(r){if(r!==Rt)return!1;if(!Ie)return Rg(r),Ie=!0,!1;var i=r.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||ah(r.type,r.memoizedProps)),o=!o),o&&nt&&Pr(r),Rg(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));nt=Xy(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));nt=Xy(r)}else i===27?(i=nt,Qr(r.type)?(r=uh,uh=null,nt=r):nt=i):nt=Rt?_n(r.stateNode.nextSibling):null;return!0}function Di(){nt=Rt=null,Ie=!1}function $d(){var r=Ur;return r!==null&&(Vt===null?Vt=r:Vt.push.apply(Vt,r),Ur=null),r}function $s(r){Ur===null?Ur=[r]:Ur.push(r)}var Hd=D(null),Li=null,ar=null;function Br(r,i,o){Q(Hd,i._currentValue),i._currentValue=o}function sr(r){r._currentValue=Hd.current,V(Hd)}function qd(r,i,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),r===o)break;r=r.return}}function Vd(r,i,o,c){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var m=f.dependencies;if(m!==null){var b=f.child;m=m.firstContext;e:for(;m!==null;){var S=m;m=f;for(var O=0;O<i.length;O++)if(S.context===i[O]){m.lanes|=o,S=m.alternate,S!==null&&(S.lanes|=o),qd(m.return,o,r),c||(b=null);break e}m=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=o,m=b.alternate,m!==null&&(m.lanes|=o),qd(b,o,r),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===r){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Ta(r,i,o,c){r=null;for(var f=i,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;Qt(f.pendingProps.value,b.value)||(r!==null?r.push(S):r=[S])}}else if(f===ve.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(mo):r=[mo])}f=f.return}r!==null&&Vd(i,r,o,c),i.flags|=262144}function Ll(r){for(r=r.firstContext;r!==null;){if(!Qt(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function zi(r){Li=r,ar=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ct(r){return Cg(Li,r)}function zl(r,i){return Li===null&&zi(r),Cg(r,i)}function Cg(r,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},ar===null){if(r===null)throw Error(a(308));ar=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else ar=ar.next=i;return o}var nR=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){i.aborted=!0,r.forEach(function(o){return o()})}},rR=t.unstable_scheduleCallback,iR=t.unstable_NormalPriority,dt={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gd(){return{controller:new nR,data:new Map,refCount:0}}function Hs(r){r.refCount--,r.refCount===0&&rR(iR,function(){r.controller.abort()})}var qs=null,Fd=0,Ra=0,Ca=null;function aR(r,i){if(qs===null){var o=qs=[];Fd=0,Ra=Jf(),Ca={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Fd++,i.then(xg,xg),i}function xg(){if(--Fd===0&&qs!==null){Ca!==null&&(Ca.status="fulfilled");var r=qs;qs=null,Ra=0,Ca=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function sR(r,i){var o=[],c={status:"pending",value:null,reason:null,then:function(f){o.push(f)}};return r.then(function(){c.status="fulfilled",c.value=i;for(var f=0;f<o.length;f++)(0,o[f])(i)},function(f){for(c.status="rejected",c.reason=f,f=0;f<o.length;f++)(0,o[f])(void 0)}),c}var kg=I.S;I.S=function(r,i){fy=Jt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&aR(r,i),kg!==null&&kg(r,i)};var Mi=D(null);function Kd(){var r=Mi.current;return r!==null?r:Qe.pooledCache}function Ml(r,i){i===null?Q(Mi,Mi.current):Q(Mi,i.pool)}function Og(){var r=Kd();return r===null?null:{parent:dt._currentValue,pool:r}}var xa=Error(a(460)),Yd=Error(a(474)),Il=Error(a(542)),Ul={then:function(){}};function Ng(r){return r=r.status,r==="fulfilled"||r==="rejected"}function jg(r,i,o){switch(o=r[o],o===void 0?r.push(i):o!==i&&(i.then(tr,tr),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,Lg(r),r;default:if(typeof i.status=="string")i.then(tr,tr);else{if(r=Qe,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status="pending",r.then(function(c){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=c}},function(c){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,Lg(r),r}throw Ui=i,xa}}function Ii(r){try{var i=r._init;return i(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ui=o,xa):o}}var Ui=null;function Dg(){if(Ui===null)throw Error(a(459));var r=Ui;return Ui=null,r}function Lg(r){if(r===xa||r===Il)throw Error(a(483))}var ka=null,Vs=0;function Pl(r){var i=Vs;return Vs+=1,ka===null&&(ka=[]),jg(ka,r,i)}function Gs(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Bl(r,i){throw i.$$typeof===y?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function zg(r){function i(L,j){if(r){var U=L.deletions;U===null?(L.deletions=[j],L.flags|=16):U.push(j)}}function o(L,j){if(!r)return null;for(;j!==null;)i(L,j),j=j.sibling;return null}function c(L){for(var j=new Map;L!==null;)L.key!==null?j.set(L.key,L):j.set(L.index,L),L=L.sibling;return j}function f(L,j){return L=rr(L,j),L.index=0,L.sibling=null,L}function m(L,j,U){return L.index=U,r?(U=L.alternate,U!==null?(U=U.index,U<j?(L.flags|=67108866,j):U):(L.flags|=67108866,j)):(L.flags|=1048576,j)}function b(L){return r&&L.alternate===null&&(L.flags|=67108866),L}function S(L,j,U,G){return j===null||j.tag!==6?(j=Md(U,L.mode,G),j.return=L,j):(j=f(j,U),j.return=L,j)}function O(L,j,U,G){var ye=U.type;return ye===w?q(L,j,U.props.children,G,U.key):j!==null&&(j.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===B&&Ii(ye)===j.type)?(j=f(j,U.props),Gs(j,U),j.return=L,j):(j=jl(U.type,U.key,U.props,null,L.mode,G),Gs(j,U),j.return=L,j)}function P(L,j,U,G){return j===null||j.tag!==4||j.stateNode.containerInfo!==U.containerInfo||j.stateNode.implementation!==U.implementation?(j=Id(U,L.mode,G),j.return=L,j):(j=f(j,U.children||[]),j.return=L,j)}function q(L,j,U,G,ye){return j===null||j.tag!==7?(j=ji(U,L.mode,G,ye),j.return=L,j):(j=f(j,U),j.return=L,j)}function F(L,j,U){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Md(""+j,L.mode,U),j.return=L,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _:return U=jl(j.type,j.key,j.props,null,L.mode,U),Gs(U,j),U.return=L,U;case E:return j=Id(j,L.mode,U),j.return=L,j;case B:return j=Ii(j),F(L,j,U)}if(oe(j)||Z(j))return j=ji(j,L.mode,U,null),j.return=L,j;if(typeof j.then=="function")return F(L,Pl(j),U);if(j.$$typeof===x)return F(L,zl(L,j),U);Bl(L,j)}return null}function $(L,j,U,G){var ye=j!==null?j.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ye!==null?null:S(L,j,""+U,G);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case _:return U.key===ye?O(L,j,U,G):null;case E:return U.key===ye?P(L,j,U,G):null;case B:return U=Ii(U),$(L,j,U,G)}if(oe(U)||Z(U))return ye!==null?null:q(L,j,U,G,null);if(typeof U.then=="function")return $(L,j,Pl(U),G);
vendor: 6,451 bytes, line 9
9if(U.$$typeof===x)return $(L,j,zl(L,U),G);Bl(L,U)}return null}function H(L,j,U,G,ye){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return L=L.get(U)||null,S(j,L,""+G,ye);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case _:return L=L.get(G.key===null?U:G.key)||null,O(j,L,G,ye);case E:return L=L.get(G.key===null?U:G.key)||null,P(j,L,G,ye);case B:return G=Ii(G),H(L,j,U,G,ye)}if(oe(G)||Z(G))return L=L.get(U)||null,q(j,L,G,ye,null);if(typeof G.then=="function")return H(L,j,U,Pl(G),ye);if(G.$$typeof===x)return H(L,j,U,zl(j,G),ye);Bl(j,G)}return null}function ae(L,j,U,G){for(var ye=null,qe=null,fe=j,Ce=j=0,ze=null;fe!==null&&Ce<U.length;Ce++){fe.index>Ce?(ze=fe,fe=null):ze=fe.sibling;var Ve=$(L,fe,U[Ce],G);if(Ve===null){fe===null&&(fe=ze);break}r&&fe&&Ve.alternate===null&&i(L,fe),j=m(Ve,j,Ce),qe===null?ye=Ve:qe.sibling=Ve,qe=Ve,fe=ze}if(Ce===U.length)return o(L,fe),Ie&&ir(L,Ce),ye;if(fe===null){for(;Ce<U.length;Ce++)fe=F(L,U[Ce],G),fe!==null&&(j=m(fe,j,Ce),qe===null?ye=fe:qe.sibling=fe,qe=fe);return Ie&&ir(L,Ce),ye}for(fe=c(fe);Ce<U.length;Ce++)ze=H(fe,L,Ce,U[Ce],G),ze!==null&&(r&&ze.alternate!==null&&fe.delete(ze.key===null?Ce:ze.key),j=m(ze,j,Ce),qe===null?ye=ze:qe.sibling=ze,qe=ze);return r&&fe.forEach(function(ii){return i(L,ii)}),Ie&&ir(L,Ce),ye}function _e(L,j,U,G){if(U==null)throw Error(a(151));for(var ye=null,qe=null,fe=j,Ce=j=0,ze=null,Ve=U.next();fe!==null&&!Ve.done;Ce++,Ve=U.next()){fe.index>Ce?(ze=fe,fe=null):ze=fe.sibling;var ii=$(L,fe,Ve.value,G);if(ii===null){fe===null&&(fe=ze);break}r&&fe&&ii.alternate===null&&i(L,fe),j=m(ii,j,Ce),qe===null?ye=ii:qe.sibling=ii,qe=ii,fe=ze}if(Ve.done)return o(L,fe),Ie&&ir(L,Ce),ye;if(fe===null){for(;!Ve.done;Ce++,Ve=U.next())Ve=F(L,Ve.value,G),Ve!==null&&(j=m(Ve,j,Ce),qe===null?ye=Ve:qe.sibling=Ve,qe=Ve);return Ie&&ir(L,Ce),ye}for(fe=c(fe);!Ve.done;Ce++,Ve=U.next())Ve=H(fe,L,Ce,Ve.value,G),Ve!==null&&(r&&Ve.alternate!==null&&fe.delete(Ve.key===null?Ce:Ve.key),j=m(Ve,j,Ce),qe===null?ye=Ve:qe.sibling=Ve,qe=Ve);return r&&fe.forEach(function(vC){return i(L,vC)}),Ie&&ir(L,Ce),ye}function Xe(L,j,U,G){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case _:e:{for(var ye=U.key;j!==null;){if(j.key===ye){if(ye=U.type,ye===w){if(j.tag===7){o(L,j.sibling),G=f(j,U.props.children),G.return=L,L=G;break e}}else if(j.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===B&&Ii(ye)===j.type){o(L,j.sibling),G=f(j,U.props),Gs(G,U),G.return=L,L=G;break e}o(L,j);break}else i(L,j);j=j.sibling}U.type===w?(G=ji(U.props.children,L.mode,G,U.key),G.return=L,L=G):(G=jl(U.type,U.key,U.props,null,L.mode,G),Gs(G,U),G.return=L,L=G)}return b(L);case E:e:{for(ye=U.key;j!==null;){if(j.key===ye)if(j.tag===4&&j.stateNode.containerInfo===U.containerInfo&&j.stateNode.implementation===U.implementation){o(L,j.sibling),G=f(j,U.children||[]),G.return=L,L=G;break e}else{o(L,j);break}else i(L,j);j=j.sibling}G=Id(U,L.mode,G),G.return=L,L=G}return b(L);case B:return U=Ii(U),Xe(L,j,U,G)}if(oe(U))return ae(L,j,U,G);if(Z(U)){if(ye=Z(U),typeof ye!="function")throw Error(a(150));return U=ye.call(U),_e(L,j,U,G)}if(typeof U.then=="function")return Xe(L,j,Pl(U),G);if(U.$$typeof===x)return Xe(L,j,zl(L,U),G);Bl(L,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,j!==null&&j.tag===6?(o(L,j.sibling),G=f(j,U),G.return=L,L=G):(o(L,j),G=Md(U,L.mode,G),G.return=L,L=G),b(L)):o(L,j)}return function(L,j,U,G){try{Vs=0;var ye=Xe(L,j,U,G);return ka=null,ye}catch(fe){if(fe===xa||fe===Il)throw fe;var qe=en(29,fe,null,L.mode);return qe.lanes=G,qe.return=L,qe}}}var Pi=zg(!0),Mg=zg(!1),$r=!1;function Zd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jd(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Hr(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function qr(r,i,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Fe&2)!==0){var f=c.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),c.pending=i,i=Nl(r),bg(r,null,o),i}return Ol(r,c,i,o),Nl(r)}function Fs(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var c=i.lanes;c&=r.pendingLanes,o|=c,i.lanes=o,Cm(r,o)}}function Xd(r,i){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var f=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var b={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?f=m=b:m=m.next=b,o=o.next}while(o!==null);m===null?f=m=i:m=m.next=i}else f=m=i;o={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}var Wd=!1;function Ks(){if(Wd){var r=Ca;if(r!==null)throw r}}function Ys(r,i,o,c){Wd=!1;var f=r.updateQueue;$r=!1;var m=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var O=S,P=O.next;O.next=null,b===null?m=P:b.next=P,b=O;var q=r.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==b&&(S===null?q.firstBaseUpdate=P:S.next=P,q.lastBaseUpdate=O))}if(m!==null){var F=f.baseState;b=0,q=P=O=null,S=m;do{var $=S.lane&-536870913,H=$!==S.lane;if(H?(Le&$)===$:(c&$)===$){$!==0&&$===Ra&&(Wd=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ae=r,_e=S;$=i;var Xe=o;switch(_e.tag){case 1:if(ae=_e.payload,typeof ae=="function"){F=ae.call(Xe,F,$);break e}F=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=_e.payload,$=typeof ae=="function"?ae.call(Xe,F,$):ae,$==null)break e;F=v({},F,$);break e;case 2:$r=!0}}$=S.callback,$!==null&&(r.flags|=64,H&&(r.flags|=8192),H=f.callbacks,H===null?f.callbacks=[$]:H.push($))}else H={lane:$,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(P=q=H,O=F):q=q.next=H,b|=$;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;H=S,S=H.next,H.next=null,f.lastBaseUpdate=H,f.shared.pending=null}}while(!0);q===null&&(O=F),f.baseState=O,f.firstBaseUpdate=P,f.lastBaseUpdate=q,m===null&&(f.shared.lanes=0),Yr|=b,r.lanes=b,r.memoizedState=F}}function Ig(r,i){if(typeof r!="function")throw Error(a(191,r));r.call(i)}function Ug(r,i){var o=r.callbacks;
vendor: 4,963 bytes, line 9
9if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)Ig(o[r],i)}var Oa=D(null),$l=D(0);function Pg(r,i){r=mr,Q($l,r),Q(Oa,i),mr=r|i.baseLanes}function Qd(){Q($l,mr),Q(Oa,Oa.current)}function ef(){mr=$l.current,V(Oa),V($l)}var tn=D(null),bn=null;function Vr(r){var i=r.alternate;Q(ct,ct.current&1),Q(tn,r),bn===null&&(i===null||Oa.current!==null||i.memoizedState!==null)&&(bn=r)}function tf(r){Q(ct,ct.current),Q(tn,r),bn===null&&(bn=r)}function Bg(r){r.tag===22?(Q(ct,ct.current),Q(tn,r),bn===null&&(bn=r)):Gr()}function Gr(){Q(ct,ct.current),Q(tn,tn.current)}function nn(r){V(tn),bn===r&&(bn=null),V(ct)}var ct=D(0);function Hl(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||lh(o)||ch(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var or=0,Re=null,Ze=null,ft=null,ql=!1,Na=!1,Bi=!1,Vl=0,Zs=0,ja=null,oR=0;function st(){throw Error(a(321))}function nf(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!Qt(r[o],i[o]))return!1;return!0}function rf(r,i,o,c,f,m){return or=m,Re=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,I.H=r===null||r.memoizedState===null?Ev:bf,Bi=!1,m=o(c,f),Bi=!1,Na&&(m=Hg(i,o,c,f)),$g(r),m}function $g(r){I.H=Ws;var i=Ze!==null&&Ze.next!==null;if(or=0,ft=Ze=Re=null,ql=!1,Zs=0,ja=null,i)throw Error(a(300));r===null||ht||(r=r.dependencies,r!==null&&Ll(r)&&(ht=!0))}function Hg(r,i,o,c){Re=r;var f=0;do{if(Na&&(ja=null),Zs=0,Na=!1,25<=f)throw Error(a(301));if(f+=1,ft=Ze=null,r.updateQueue!=null){var m=r.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}I.H=Av,m=i(o,c)}while(Na);return m}function lR(){var r=I.H,i=r.useState()[0];return i=typeof i.then=="function"?Js(i):i,r=r.useState()[0],(Ze!==null?Ze.memoizedState:null)!==r&&(Re.flags|=1024),i}function af(){var r=Vl!==0;return Vl=0,r}function sf(r,i,o){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~o}function of(r){if(ql){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ql=!1}or=0,ft=Ze=Re=null,Na=!1,Zs=Vl=0,ja=null}function Mt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Re.memoizedState=ft=r:ft=ft.next=r,ft}function ut(){if(Ze===null){var r=Re.alternate;r=r!==null?r.memoizedState:null}else r=Ze.next;var i=ft===null?Re.memoizedState:ft.next;if(i!==null)ft=i,Ze=r;else{if(r===null)throw Re.alternate===null?Error(a(467)):Error(a(310));Ze=r,r={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},ft===null?Re.memoizedState=ft=r:ft=ft.next=r}return ft}function Gl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Js(r){var i=Zs;return Zs+=1,ja===null&&(ja=[]),r=jg(ja,r,i),i=Re,(ft===null?i.memoizedState:ft.next)===null&&(i=i.alternate,I.H=i===null||i.memoizedState===null?Ev:bf),r}function Fl(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Js(r);if(r.$$typeof===x)return Ct(r)}throw Error(a(438,String(r)))}function lf(r){var i=null,o=Re.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var c=Re.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Gl(),Re.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(r),c=0;c<r;c++)o[c]=se;return i.index++,o}function lr(r,i){return typeof i=="function"?i(r):i}function Kl(r){var i=ut();return cf(i,Ze,r)}function cf(r,i,o){var c=r.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=o;var f=r.baseQueue,m=c.pending;if(m!==null){if(f!==null){var b=f.next;f.next=m.next,m.next=b}i.baseQueue=f=m,c.pending=null}if(m=r.baseState,f===null)r.memoizedState=m;else{i=f.next;var S=b=null,O=null,P=i,q=!1;do{var F=P.lane&-536870913;if(F!==P.lane?(Le&F)===F:(or&F)===F){var $=P.revertLane;if($===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),F===Ra&&(q=!0);else if((or&$)===$){P=P.next,$===Ra&&(q=!0);continue}else F={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},O===null?(S=O=F,b=m):O=O.next=F,Re.lanes|=$,Yr|=$;F=P.action,Bi&&o(m,F),m=P.hasEagerState?P.eagerState:o(m,F)}else $={lane:F,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},O===null?(S=O=$,b=m):O=O.next=$,Re.lanes|=F,Yr|=F;P=P.next}
vendor: 6,424 bytes, line 9
9while(P!==null&&P!==i);if(O===null?b=m:O.next=S,!Qt(m,r.memoizedState)&&(ht=!0,q&&(o=Ca,o!==null)))throw o;r.memoizedState=m,r.baseState=b,r.baseQueue=O,c.lastRenderedState=m}return f===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function uf(r){var i=ut(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=r;var c=o.dispatch,f=o.pending,m=i.memoizedState;if(f!==null){o.pending=null;var b=f=f.next;do m=r(m,b.action),b=b.next;while(b!==f);Qt(m,i.memoizedState)||(ht=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),o.lastRenderedState=m}return[m,c]}function qg(r,i,o){var c=Re,f=ut(),m=Ie;if(m){if(o===void 0)throw Error(a(407));o=o()}else o=i();var b=!Qt((Ze||f).memoizedState,o);if(b&&(f.memoizedState=o,ht=!0),f=f.queue,hf(Fg.bind(null,c,f,r),[r]),f.getSnapshot!==i||b||ft!==null&&ft.memoizedState.tag&1){if(c.flags|=2048,Da(9,{destroy:void 0},Gg.bind(null,c,f,o,i),null),Qe===null)throw Error(a(349));m||(or&127)!==0||Vg(c,i,o)}return o}function Vg(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=Re.updateQueue,i===null?(i=Gl(),Re.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function Gg(r,i,o,c){i.value=o,i.getSnapshot=c,Kg(i)&&Yg(r)}function Fg(r,i,o){return o(function(){Kg(i)&&Yg(r)})}function Kg(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!Qt(r,o)}catch{return!0}}function Yg(r){var i=Ni(r,2);i!==null&&Gt(i,r,2)}function df(r){var i=Mt();if(typeof r=="function"){var o=r;if(r=o(),Bi){Lr(!0);try{o()}finally{Lr(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lr,lastRenderedState:r},i}function Zg(r,i,o,c){return r.baseState=o,cf(r,Ze,typeof c=="function"?c:lr)}function cR(r,i,o,c,f){if(Jl(r))throw Error(a(485));if(r=i.action,r!==null){var m={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){m.listeners.push(b)}};I.T!==null?o(!0):m.isTransition=!1,c(m),o=i.pending,o===null?(m.next=i.pending=m,Jg(i,m)):(m.next=o.next,i.pending=o.next=m)}}function Jg(r,i){var o=i.action,c=i.payload,f=r.state;if(i.isTransition){var m=I.T,b={};I.T=b;try{var S=o(f,c),O=I.S;O!==null&&O(b,S),Xg(r,i,S)}catch(P){ff(r,i,P)}finally{m!==null&&b.types!==null&&(m.types=b.types),I.T=m}}else try{m=o(f,c),Xg(r,i,m)}catch(P){ff(r,i,P)}}function Xg(r,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Wg(r,i,c)},function(c){return ff(r,i,c)}):Wg(r,i,o)}function Wg(r,i,o){i.status="fulfilled",i.value=o,Qg(i),r.state=o,i=r.pending,i!==null&&(o=i.next,o===i?r.pending=null:(o=o.next,i.next=o,Jg(r,o)))}function ff(r,i,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=o,Qg(i),i=i.next;while(i!==c)}r.action=null}function Qg(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function ev(r,i){return i}function tv(r,i){if(Ie){var o=Qe.formState;if(o!==null){e:{var c=Re;if(Ie){if(nt){t:{for(var f=nt,m=yn;f.nodeType!==8;){if(!m){f=null;break t}if(f=_n(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){nt=_n(f.nextSibling),c=f.data==="F!";break e}}Pr(c)}c=!1}c&&(i=o[0])}}return o=Mt(),o.memoizedState=o.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ev,lastRenderedState:i},o.queue=c,o=_v.bind(null,Re,c),c.dispatch=o,c=df(!1),m=yf.bind(null,Re,!1,c.queue),c=Mt(),f={state:i,dispatch:null,action:r,pending:null},c.queue=f,o=cR.bind(null,Re,f,m,o),f.dispatch=o,c.memoizedState=r,[i,o,!1]}function nv(r){var i=ut();return rv(i,Ze,r)}function rv(r,i,o){if(i=cf(r,i,ev)[0],r=Kl(lr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=Js(i)}catch(b){throw b===xa?Il:b}else c=i;i=ut();var f=i.queue,m=f.dispatch;return o!==i.memoizedState&&(Re.flags|=2048,Da(9,{destroy:void 0},uR.bind(null,f,o),null)),[c,m,r]}function uR(r,i){r.action=i}function iv(r){var i=ut(),o=Ze;if(o!==null)return rv(i,o,r);ut(),i=i.memoizedState,o=ut();var c=o.queue.dispatch;return o.memoizedState=r,[i,c,!1]}function Da(r,i,o,c){return r={tag:r,create:o,deps:c,inst:i,next:null},i=Re.updateQueue,i===null&&(i=Gl(),Re.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,i.lastEffect=r),r}function av(){return ut().memoizedState}function Yl(r,i,o,c){var f=Mt();Re.flags|=r,f.memoizedState=Da(1|i,{destroy:void 0},o,c===void 0?null:c)}function Zl(r,i,o,c){var f=ut();c=c===void 0?null:c;var m=f.memoizedState.inst;Ze!==null&&c!==null&&nf(c,Ze.memoizedState.deps)?f.memoizedState=Da(i,m,o,c):(Re.flags|=r,f.memoizedState=Da(1|i,m,o,c))}function sv(r,i){Yl(8390656,8,r,i)}function hf(r,i){Zl(2048,8,r,i)}function dR(r){Re.flags|=4;var i=Re.updateQueue;if(i===null)i=Gl(),Re.updateQueue=i,i.events=[r];else{var o=i.events;o===null?i.events=[r]:o.push(r)}}function ov(r){var i=ut().memoizedState;return dR({ref:i,nextImpl:r}),function(){if((Fe&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function lv(r,i){return Zl(4,2,r,i)}function cv(r,i){return Zl(4,4,r,i)}function uv(r,i){if(typeof i=="function"){r=r();var o=i(r);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function dv(r,i,o){o=o!=null?o.concat([r]):null,Zl(4,4,uv.bind(null,i,r),o)}function pf(){}function fv(r,i){var o=ut();i=i===void 0?null:i;var c=o.memoizedState;return i!==null&&nf(i,c[1])?c[0]:(o.memoizedState=[r,i],r)}function hv(r,i){var o=ut();i=i===void 0?null:i;var c=o.memoizedState;if(i!==null&&nf(i,c[1]))return c[0];if(c=r(),Bi){Lr(!0);try{r()}finally{Lr(!1)}}return o.memoizedState=[c,i],c}function mf(r,i,o){return o===void 0||(or&1073741824)!==0&&(Le&261930)===0?r.memoizedState=i:(r.memoizedState=o,r=py(),Re.lanes|=r,Yr|=r,o)}function pv(r,i,o,c){return Qt(o,i)?o:Oa.current!==null?(r=mf(r,o,c),Qt(r,i)||(ht=!0),r):(or&42)===0||(or&1073741824)!==0&&(Le&261930)===0?(ht=!0,r.memoizedState=o):(r=py(),Re.lanes|=r,Yr|=r,i)}function mv(r,i,o,c,f){var m=J.p;J.p=m!==0&&8>m?m:8;var b=I.T,S={};I.T=S,yf(r,!1,i,o);try{var O=f(),P=I.S;if(P!==null&&P(S,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var q=sR(O,c);Xs(r,i,q,sn(r))}else Xs(r,i,c,sn(r))}catch(F){Xs(r,i,{then:function(){},status:"rejected",reason:F},sn())}finally{J.p=m,b!==null&&S.types!==null&&(b.types=S.types),I.T=b}}function fR(){}function gf(r,i,o,c){if(r.tag!==5)throw Error(a(476));var f=gv(r).queue;mv(r,f,i,me,o===null?fR:function(){return vv(r),o(c)})}
vendor: 5,066 bytes, line 9
9function gv(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lr,lastRenderedState:me},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lr,lastRenderedState:o},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function vv(r){var i=gv(r);i.next===null&&(i=r.alternate.memoizedState),Xs(r,i.next.queue,{},sn())}function vf(){return Ct(mo)}function yv(){return ut().memoizedState}function bv(){return ut().memoizedState}function hR(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var o=sn();r=Hr(o);var c=qr(i,r,o);c!==null&&(Gt(c,i,o),Fs(c,i,o)),i={cache:Gd()},r.payload=i;return}i=i.return}}function pR(r,i,o){var c=sn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Jl(r)?wv(i,o):(o=Ld(r,i,o,c),o!==null&&(Gt(o,r,c),Sv(o,i,c)))}function _v(r,i,o){var c=sn();Xs(r,i,o,c)}function Xs(r,i,o,c){var f={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Jl(r))wv(i,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var b=i.lastRenderedState,S=m(b,o);if(f.hasEagerState=!0,f.eagerState=S,Qt(S,b))return Ol(r,i,f,0),Qe===null&&kl(),!1}catch{}if(o=Ld(r,i,f,c),o!==null)return Gt(o,r,c),Sv(o,i,c),!0}return!1}function yf(r,i,o,c){if(c={lane:2,revertLane:Jf(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Jl(r)){if(i)throw Error(a(479))}else i=Ld(r,o,c,2),i!==null&&Gt(i,r,2)}function Jl(r){var i=r.alternate;return r===Re||i!==null&&i===Re}function wv(r,i){Na=ql=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function Sv(r,i,o){if((o&4194048)!==0){var c=i.lanes;c&=r.pendingLanes,o|=c,i.lanes=o,Cm(r,o)}}var Ws={readContext:Ct,use:Fl,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Ws.useEffectEvent=st;var Ev={readContext:Ct,use:Fl,useCallback:function(r,i){return Mt().memoizedState=[r,i===void 0?null:i],r},useContext:Ct,useEffect:sv,useImperativeHandle:function(r,i,o){o=o!=null?o.concat([r]):null,Yl(4194308,4,uv.bind(null,i,r),o)},useLayoutEffect:function(r,i){return Yl(4194308,4,r,i)},useInsertionEffect:function(r,i){Yl(4,2,r,i)},useMemo:function(r,i){var o=Mt();i=i===void 0?null:i;var c=r();if(Bi){Lr(!0);try{r()}finally{Lr(!1)}}return o.memoizedState=[c,i],c},useReducer:function(r,i,o){var c=Mt();if(o!==void 0){var f=o(i);if(Bi){Lr(!0);try{o(i)}finally{Lr(!1)}}}else f=i;return c.memoizedState=c.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},c.queue=r,r=r.dispatch=pR.bind(null,Re,r),[c.memoizedState,r]},useRef:function(r){var i=Mt();return r={current:r},i.memoizedState=r},useState:function(r){r=df(r);var i=r.queue,o=_v.bind(null,Re,i);return i.dispatch=o,[r.memoizedState,o]},useDebugValue:pf,useDeferredValue:function(r,i){var o=Mt();return mf(o,r,i)},useTransition:function(){var r=df(!1);return r=mv.bind(null,Re,r.queue,!0,!1),Mt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,o){var c=Re,f=Mt();if(Ie){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),Qe===null)throw Error(a(349));(Le&127)!==0||Vg(c,i,o)}f.memoizedState=o;var m={value:o,getSnapshot:i};return f.queue=m,sv(Fg.bind(null,c,m,r),[r]),c.flags|=2048,Da(9,{destroy:void 0},Gg.bind(null,c,m,o,i),null),o},useId:function(){var r=Mt(),i=Qe.identifierPrefix;if(Ie){var o=$n,c=Bn;o=(c&~(1<<32-Wt(c)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Vl++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=oR++,i="_"+i+"r_"+o.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:vf,useFormState:tv,useActionState:tv,useOptimistic:function(r){var i=Mt();i.memoizedState=i.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=yf.bind(null,Re,!0,o),o.dispatch=i,[r,i]},useMemoCache:lf,useCacheRefresh:function(){return Mt().memoizedState=hR.bind(null,Re)},useEffectEvent:function(r){var i=Mt(),o={impl:r};return i.memoizedState=o,function(){if((Fe&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},bf={readContext:Ct,use:Fl,useCallback:fv,useContext:Ct,useEffect:hf,useImperativeHandle:dv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:hv,useReducer:Kl,useRef:av,useState:function(){return Kl(lr)},useDebugValue:pf,useDeferredValue:function(r,i){var o=ut();return pv(o,Ze.memoizedState,r,i)},useTransition:function(){var r=Kl(lr)[0],i=ut().memoizedState;return[typeof r=="boolean"?r:Js(r),i]},useSyncExternalStore:qg,useId:yv,useHostTransitionStatus:vf,useFormState:nv,useActionState:nv,useOptimistic:function(r,i){var o=ut();
vendor: 4,538 bytes, line 9
9return Zg(o,Ze,r,i)},useMemoCache:lf,useCacheRefresh:bv};bf.useEffectEvent=ov;var Av={readContext:Ct,use:Fl,useCallback:fv,useContext:Ct,useEffect:hf,useImperativeHandle:dv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:hv,useReducer:uf,useRef:av,useState:function(){return uf(lr)},useDebugValue:pf,useDeferredValue:function(r,i){var o=ut();return Ze===null?mf(o,r,i):pv(o,Ze.memoizedState,r,i)},useTransition:function(){var r=uf(lr)[0],i=ut().memoizedState;return[typeof r=="boolean"?r:Js(r),i]},useSyncExternalStore:qg,useId:yv,useHostTransitionStatus:vf,useFormState:iv,useActionState:iv,useOptimistic:function(r,i){var o=ut();return Ze!==null?Zg(o,Ze,r,i):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:lf,useCacheRefresh:bv};Av.useEffectEvent=ov;function _f(r,i,o,c){i=r.memoizedState,o=o(c,i),o=o==null?i:v({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var wf={enqueueSetState:function(r,i,o){r=r._reactInternals;var c=sn(),f=Hr(c);f.payload=i,o!=null&&(f.callback=o),i=qr(r,f,c),i!==null&&(Gt(i,r,c),Fs(i,r,c))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var c=sn(),f=Hr(c);f.tag=1,f.payload=i,o!=null&&(f.callback=o),i=qr(r,f,c),i!==null&&(Gt(i,r,c),Fs(i,r,c))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=sn(),c=Hr(o);c.tag=2,i!=null&&(c.callback=i),i=qr(r,c,o),i!==null&&(Gt(i,r,o),Fs(i,r,o))}};function Tv(r,i,o,c,f,m,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,b):i.prototype&&i.prototype.isPureReactComponent?!Us(o,c)||!Us(f,m):!0}function Rv(r,i,o,c){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,c),i.state!==r&&wf.enqueueReplaceState(i,i.state,null)}function $i(r,i){var o=i;if("ref"in i){o={};for(var c in i)c!=="ref"&&(o[c]=i[c])}if(r=r.defaultProps){o===i&&(o=v({},o));for(var f in r)o[f]===void 0&&(o[f]=r[f])}return o}function Cv(r){xl(r)}function xv(r){console.error(r)}function kv(r){xl(r)}function Xl(r,i){try{var o=r.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function Ov(r,i,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Sf(r,i,o){return o=Hr(o),o.tag=3,o.payload={element:null},o.callback=function(){Xl(r,i)},o}function Nv(r){return r=Hr(r),r.tag=3,r}function jv(r,i,o,c){var f=o.type.getDerivedStateFromError;if(typeof f=="function"){var m=c.value;r.payload=function(){return f(m)},r.callback=function(){Ov(i,o,c)}}var b=o.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(r.callback=function(){Ov(i,o,c),typeof f!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var S=c.stack;this.componentDidCatch(c.value,{componentStack:S!==null?S:""})})}function mR(r,i,o,c,f){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=o.alternate,i!==null&&Ta(i,o,f,!0),o=tn.current,o!==null){switch(o.tag){case 31:case 13:return bn===null?cc():o.alternate===null&&ot===0&&(ot=3),o.flags&=-257,o.flags|=65536,o.lanes=f,c===Ul?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([c]):i.add(c),Kf(r,c,f)),!1;case 22:return o.flags|=65536,c===Ul?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([c]):o.add(c)),Kf(r,c,f)),!1}throw Error(a(435,o.tag))}return Kf(r,c,f),cc(),!1}if(Ie)return i=tn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,c!==Bd&&(r=Error(a(422),{cause:c}),$s(mn(r,o)))):(c!==Bd&&(i=Error(a(423),{cause:c}),$s(mn(i,o))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,c=mn(c,o),f=Sf(r.stateNode,c,f),Xd(r,f),ot!==4&&(ot=2)),!1;var m=Error(a(520),{cause:c});if(m=mn(m,o),so===null?so=[m]:so.push(m),ot!==4&&(ot=2),i===null)return!0;c=mn(c,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,r=f&-f,o.lanes|=r,r=Sf(o.stateNode,c,r),Xd(o,r),!1;case 1:if(i=o.type,m=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Zr===null||!Zr.has(m))))return o.flags|=65536,f&=-f,o.lanes|=f,f=Nv(f),jv(f,r,o,c),Xd(o,f),!1}o=o.return}while(o!==null);return!1}var Ef=Error(a(461)),ht=!1;function xt(r,i,o,c){i.child=r===null?Mg(i,null,o,c):Pi(i,r.child,o,c)}function Dv(r,i,o,c,f){o=o.render;var m=i.ref;if("ref"in c){var b={};
vendor: 4,033 bytes, line 9
9for(var S in c)S!=="ref"&&(b[S]=c[S])}else b=c;return zi(i),c=rf(r,i,o,b,m,f),S=af(),r!==null&&!ht?(sf(r,i,f),cr(r,i,f)):(Ie&&S&&Ud(i),i.flags|=1,xt(r,i,c,f),i.child)}function Lv(r,i,o,c,f){if(r===null){var m=o.type;return typeof m=="function"&&!zd(m)&&m.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=m,zv(r,i,m,c,f)):(r=jl(o.type,null,c,i,i.mode,f),r.ref=i.ref,r.return=i,i.child=r)}if(m=r.child,!Nf(r,f)){var b=m.memoizedProps;if(o=o.compare,o=o!==null?o:Us,o(b,c)&&r.ref===i.ref)return cr(r,i,f)}return i.flags|=1,r=rr(m,c),r.ref=i.ref,r.return=i,i.child=r}function zv(r,i,o,c,f){if(r!==null){var m=r.memoizedProps;if(Us(m,c)&&r.ref===i.ref)if(ht=!1,i.pendingProps=c=m,Nf(r,f))(r.flags&131072)!==0&&(ht=!0);else return i.lanes=r.lanes,cr(r,i,f)}return Af(r,i,o,c,f)}function Mv(r,i,o,c){var f=c.children,m=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(m=m!==null?m.baseLanes|o:o,r!==null){for(c=i.child=r.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~m}else c=0,i.child=null;return Iv(r,i,m,o,c)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Ml(i,m!==null?m.cachePool:null),m!==null?Pg(i,m):Qd(),Bg(i);else return c=i.lanes=536870912,Iv(r,i,m!==null?m.baseLanes|o:o,o,c)}else m!==null?(Ml(i,m.cachePool),Pg(i,m),Gr(),i.memoizedState=null):(r!==null&&Ml(i,null),Qd(),Gr());return xt(r,i,f,o),i.child}function Qs(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Iv(r,i,o,c,f){var m=Kd();return m=m===null?null:{parent:dt._currentValue,pool:m},i.memoizedState={baseLanes:o,cachePool:m},r!==null&&Ml(i,null),Qd(),Bg(i),r!==null&&Ta(r,i,c,!0),i.childLanes=f,null}function Wl(r,i){return i=ec({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function Uv(r,i,o){return Pi(i,r.child,null,o),r=Wl(i,i.pendingProps),r.flags|=2,nn(i),i.memoizedState=null,r}function gR(r,i,o){var c=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(Ie){if(c.mode==="hidden")return r=Wl(i,c),i.lanes=536870912,Qs(null,r);if(tf(i),(r=nt)?(r=Jy(r,yn),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:Ir!==null?{id:Bn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},o=wg(r),o.return=i,i.child=o,Rt=i,nt=null)):r=null,r===null)throw Pr(i);return i.lanes=536870912,null}return Wl(i,c)}var m=r.memoizedState;if(m!==null){var b=m.dehydrated;if(tf(i),f)if(i.flags&256)i.flags&=-257,i=Uv(r,i,o);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(a(558));else if(ht||Ta(r,i,o,!1),f=(o&r.childLanes)!==0,ht||f){if(c=Qe,c!==null&&(b=xm(c,o),b!==0&&b!==m.retryLane))throw m.retryLane=b,Ni(r,b),Gt(c,r,b),Ef;cc(),i=Uv(r,i,o)}else r=m.treeContext,nt=_n(b.nextSibling),Rt=i,Ie=!0,Ur=null,yn=!1,r!==null&&Ag(i,r),i=Wl(i,c),i.flags|=4096;return i}return r=rr(r.child,{mode:c.mode,children:c.children}),r.ref=i.ref,i.child=r,r.return=i,r}function Ql(r,i){var o=i.ref;if(o===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(r===null||r.ref!==o)&&(i.flags|=4194816)}}function Af(r,i,o,c,f){return zi(i),o=rf(r,i,o,c,void 0,f),c=af(),r!==null&&!ht?(sf(r,i,f),cr(r,i,f)):(Ie&&c&&Ud(i),i.flags|=1,xt(r,i,o,f),i.child)}function Pv(r,i,o,c,f,m){return zi(i),i.updateQueue=null,o=Hg(i,c,o,f),$g(r),c=af(),r!==null&&!ht?(sf(r,i,m),cr(r,i,m)):(Ie&&c&&Ud(i),i.flags|=1,xt(r,i,o,m),i.child)}function Bv(r,i,o,c,f){if(zi(i),i.stateNode===null){var m=wa,b=o.contextType;typeof b=="object"&&b!==null&&(m=Ct(b)),m=new o(c,m),i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=wf,i.stateNode=m,m._reactInternals=i,m=i.stateNode,m.props=c,m.state=i.memoizedState,m.refs={},Zd(i),b=o.contextType,m.context=typeof b=="object"&&b!==null?Ct(b):wa,m.state=i.memoizedState,b
vendor: 11,314 bytes, line 9
9=o.getDerivedStateFromProps,typeof b=="function"&&(_f(i,o,b,c),m.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(b=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),b!==m.state&&wf.enqueueReplaceState(m,m.state,null),Ys(i,c,m,f),Ks(),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(r===null){m=i.stateNode;var S=i.memoizedProps,O=$i(o,S);m.props=O;var P=m.context,q=o.contextType;b=wa,typeof q=="object"&&q!==null&&(b=Ct(q));var F=o.getDerivedStateFromProps;q=typeof F=="function"||typeof m.getSnapshotBeforeUpdate=="function",S=i.pendingProps!==S,q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S||P!==b)&&Rv(i,m,c,b),$r=!1;var $=i.memoizedState;m.state=$,Ys(i,c,m,f),Ks(),P=i.memoizedState,S||$!==P||$r?(typeof F=="function"&&(_f(i,o,F,c),P=i.memoizedState),(O=$r||Tv(i,o,O,c,$,P,b))?(q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=P),m.props=c,m.state=P,m.context=b,c=O):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{m=i.stateNode,Jd(r,i),b=i.memoizedProps,q=$i(o,b),m.props=q,F=i.pendingProps,$=m.context,P=o.contextType,O=wa,typeof P=="object"&&P!==null&&(O=Ct(P)),S=o.getDerivedStateFromProps,(P=typeof S=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==F||$!==O)&&Rv(i,m,c,O),$r=!1,$=i.memoizedState,m.state=$,Ys(i,c,m,f),Ks();var H=i.memoizedState;b!==F||$!==H||$r||r!==null&&r.dependencies!==null&&Ll(r.dependencies)?(typeof S=="function"&&(_f(i,o,S,c),H=i.memoizedState),(q=$r||Tv(i,o,q,c,$,H,O)||r!==null&&r.dependencies!==null&&Ll(r.dependencies))?(P||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,H,O),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,H,O)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===r.memoizedProps&&$===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&$===r.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=H),m.props=c,m.state=H,m.context=O,c=q):(typeof m.componentDidUpdate!="function"||b===r.memoizedProps&&$===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&$===r.memoizedState||(i.flags|=1024),c=!1)}return m=c,Ql(r,i),c=(i.flags&128)!==0,m||c?(m=i.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:m.render(),i.flags|=1,r!==null&&c?(i.child=Pi(i,r.child,null,f),i.child=Pi(i,null,o,f)):xt(r,i,o,f),i.memoizedState=m.state,r=i.child):r=cr(r,i,f),r}function $v(r,i,o,c){return Di(),i.flags|=256,xt(r,i,o,c),i.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rf(r){return{baseLanes:r,cachePool:Og()}}function Cf(r,i,o){return r=r!==null?r.childLanes&~o:0,i&&(r|=an),r}function Hv(r,i,o){var c=i.pendingProps,f=!1,m=(i.flags&128)!==0,b;if((b=m)||(b=r!==null&&r.memoizedState===null?!1:(ct.current&2)!==0),b&&(f=!0,i.flags&=-129),b=(i.flags&32)!==0,i.flags&=-33,r===null){if(Ie){if(f?Vr(i):Gr(),(r=nt)?(r=Jy(r,yn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:Ir!==null?{id:Bn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},o=wg(r),o.return=i,i.child=o,Rt=i,nt=null)):r=null,r===null)throw Pr(i);return ch(r)?i.lanes=32:i.lanes=536870912,null}var S=c.children;return c=c.fallback,f?(Gr(),f=i.mode,S=ec({mode:"hidden",children:S},f),c=ji(c,f,o,null),S.return=i,c.return=i,S.sibling=c,i.child=S,c=i.child,c.memoizedState=Rf(o),c.childLanes=Cf(r,b,o),i.memoizedState=Tf,Qs(null,c)):(Vr(i),xf(i,S))}var O=r.memoizedState;if(O!==null&&(S=O.dehydrated,S!==null)){if(m)i.flags&256?(Vr(i),i.flags&=-257,i=kf(r,i,o)):i.memoizedState!==null?(Gr(),i.child=r.child,i.flags|=128,i=null):(Gr(),S=c.fallback,f=i.mode,c=ec({mode:"visible",children:c.children},f),S=ji(S,f,o,null),S.flags|=2,c.return=i,S.return=i,c.sibling=S,i.child=c,Pi(i,r.child,null,o),c=i.child,c.memoizedState=Rf(o),c.childLanes=Cf(r,b,o),i.memoizedState=Tf,i=Qs(null,c));else if(Vr(i),ch(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var P=b.dgst;b=P,c=Error(a(419)),c.stack="",c.digest=b,$s({value:c,source:null,stack:null}),i=kf(r,i,o)}else if(ht||Ta(r,i,o,!1),b=(o&r.childLanes)!==0,ht||b){if(b=Qe,b!==null&&(c=xm(b,o),c!==0&&c!==O.retryLane))throw O.retryLane=c,Ni(r,c),Gt(b,r,c),Ef;lh(S)||cc(),i=kf(r,i,o)}else lh(S)?(i.flags|=192,i.child=r.child,i=null):(r=O.treeContext,nt=_n(S.nextSibling),Rt=i,Ie=!0,Ur=null,yn=!1,r!==null&&Ag(i,r),i=xf(i,c.children),i.flags|=4096);return i}return f?(Gr(),S=c.fallback,f=i.mode,O=r.child,P=O.sibling,c=rr(O,{mode:"hidden",children:c.children}),c.subtreeFlags=O.subtreeFlags&65011712,P!==null?S=rr(P,S):(S=ji(S,f,o,null),S.flags|=2),S.return=i,c.return=i,c.sibling=S,i.child=c,Qs(null,c),c=i.child,S=r.child.memoizedState,S===null?S=Rf(o):(f=S.cachePool,f!==null?(O=dt._currentValue,f=f.parent!==O?{parent:O,pool:O}:f):f=Og(),S={baseLanes:S.baseLanes|o,cachePool:f}),c.memoizedState=S,c.childLanes=Cf(r,b,o),i.memoizedState=Tf,Qs(r.child,c)):(Vr(i),o=r.child,r=o.sibling,o=rr(o,{mode:"visible",children:c.children}),o.return=i,o.sibling=null,r!==null&&(b=i.deletions,b===null?(i.deletions=[r],i.flags|=16):b.push(r)),i.child=o,i.memoizedState=null,o)}function xf(r,i){return i=ec({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function ec(r,i){return r=en(22,r,null,i),r.lanes=0,r}function kf(r,i,o){return Pi(i,r.child,null,o),r=xf(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function qv(r,i,o){r.lanes|=i;var c=r.alternate;c!==null&&(c.lanes|=i),qd(r.return,i,o)}function Of(r,i,o,c,f,m){var b=r.memoizedState;b===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:f,treeForkCount:m}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=o,b.tailMode=f,b.treeForkCount=m)}function Vv(r,i,o){var c=i.pendingProps,f=c.revealOrder,m=c.tail;c=c.children;var b=ct.current,S=(b&2)!==0;if(S?(b=b&1|2,i.flags|=128):b&=1,Q(ct,b),xt(r,i,c,o),c=Ie?Bs:0,!S&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&qv(r,o,i);else if(r.tag===19)qv(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(f){case"forwards":for(o=i.child,f=null;o!==null;)r=o.alternate,r!==null&&Hl(r)===null&&(f=o),o=o.sibling;o=f,o===null?(f=i.child,i.child=null):(f=o.sibling,o.sibling=null),Of(i,!1,f,o,m,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,f=i.child,i.child=null;f!==null;){if(r=f.alternate,r!==null&&Hl(r)===null){i.child=f;break}r=f.sibling,f.sibling=o,o=f,f=r}Of(i,!0,o,null,m,c);break;case"together":Of(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function cr(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),Yr|=i.lanes,(o&i.childLanes)===0)if(r!==null){if(Ta(r,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,o=rr(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=rr(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function Nf(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Ll(r)))}function vR(r,i,o){switch(i.tag){case 3:Ue(i,i.stateNode.containerInfo),Br(i,dt,r.memoizedState.cache),Di();break;case 27:case 5:Zt(i);break;case 4:Ue(i,i.stateNode.containerInfo);break;case 10:Br(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,tf(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(Vr(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Hv(r,i,o):(Vr(i),r=cr(r,i,o),r!==null?r.sibling:null);Vr(i);break;case 19:var f=(r.flags&128)!==0;if(c=(o&i.childLanes)!==0,c||(Ta(r,i,o,!1),c=(o&i.childLanes)!==0),f){if(c)return Vv(r,i,o);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Q(ct,ct.current),c)break;return null;case 22:return i.lanes=0,Mv(r,i,o,i.pendingProps);case 24:Br(i,dt,r.memoizedState.cache)}return cr(r,i,o)}function Gv(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps)ht=!0;else{if(!Nf(r,o)&&(i.flags&128)===0)return ht=!1,vR(r,i,o);ht=(r.flags&131072)!==0}else ht=!1,Ie&&(i.flags&1048576)!==0&&Eg(i,Bs,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(r=Ii(i.elementType),i.type=r,typeof r=="function")zd(r)?(c=$i(r,c),i.tag=1,i=Bv(null,i,r,c,o)):(i.tag=0,i=Af(null,i,r,c,o));else{if(r!=null){var f=r.$$typeof;if(f===z){i.tag=11,i=Dv(null,i,r,c,o);break e}else if(f===N){i.tag=14,i=Lv(null,i,r,c,o);break e}}throw i=we(r)||r,Error(a(306,i,""))}}return i;case 0:return Af(r,i,i.type,i.pendingProps,o);case 1:return c=i.type,f=$i(c,i.pendingProps),Bv(r,i,c,f,o);case 3:e:{if(Ue(i,i.stateNode.containerInfo),r===null)throw Error(a(387));c=i.pendingProps;var m=i.memoizedState;f=m.element,Jd(r,i),Ys(i,c,null,o);var b=i.memoizedState;if(c=b.cache,Br(i,dt,c),c!==m.cache&&Vd(i,[dt],o,!0),Ks(),c=b.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:b.cache},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){i=$v(r,i,c,o);break e}else if(c!==f){f=mn(Error(a(424)),i),$s(f),i=$v(r,i,c,o);break e}else for(r=i.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,nt=_n(r.firstChild),Rt=i,Ie=!0,Ur=null,yn=!0,o=Mg(i,null,c,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Di(),c===f){i=cr(r,i,o);break e}xt(r,i,c,o)}i=i.child}return i;case 26:return Ql(r,i),r===null?(o=nb(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ie||(o=i.type,r=i.pendingProps,c=gc(ge.current).createElement(o),c[Tt]=i,c[Pt]=r,kt(c,o,r),wt(c),i.stateNode=c):i.memoizedState=nb(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return Zt(i),r===null&&Ie&&(c=i.stateNode=Qy(i.type,i.pendingProps,ge.current),Rt=i,yn=!0,f=nt,Qr(i.type)?(uh=f,nt=_n(c.firstChild)):nt=f),xt(r,i,i.pendingProps.children,o),Ql(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&Ie&&((f=c=nt)&&(c=KR(c,i.type,i.pendingProps,yn),c!==null?(i.stateNode=c,Rt=i,nt=_n(c.firstChild),yn=!1,f=!0):f=!1),f||Pr(i)),Zt(i),f=i.type,m=i.pendingProps,b=r!==null?r.memoizedProps:null,c=m.children,ah(f,m)?c=null:b!==null&&ah(f,b)&&(i.flags|=32),i.memoizedState!==null&&(f=rf(r,i,lR,null,
vendor: 4,244 bytes, line 9
9null,o),mo._currentValue=f),Ql(r,i),xt(r,i,c,o),i.child;case 6:return r===null&&Ie&&((r=o=nt)&&(o=YR(o,i.pendingProps,yn),o!==null?(i.stateNode=o,Rt=i,nt=null,r=!0):r=!1),r||Pr(i)),null;case 13:return Hv(r,i,o);case 4:return Ue(i,i.stateNode.containerInfo),c=i.pendingProps,r===null?i.child=Pi(i,null,c,o):xt(r,i,c,o),i.child;case 11:return Dv(r,i,i.type,i.pendingProps,o);case 7:return xt(r,i,i.pendingProps,o),i.child;case 8:return xt(r,i,i.pendingProps.children,o),i.child;case 12:return xt(r,i,i.pendingProps.children,o),i.child;case 10:return c=i.pendingProps,Br(i,i.type,c.value),xt(r,i,c.children,o),i.child;case 9:return f=i.type._context,c=i.pendingProps.children,zi(i),f=Ct(f),c=c(f),i.flags|=1,xt(r,i,c,o),i.child;case 14:return Lv(r,i,i.type,i.pendingProps,o);case 15:return zv(r,i,i.type,i.pendingProps,o);case 19:return Vv(r,i,o);case 31:return gR(r,i,o);case 22:return Mv(r,i,o,i.pendingProps);case 24:return zi(i),c=Ct(dt),r===null?(f=Kd(),f===null&&(f=Qe,m=Gd(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=o),f=m),i.memoizedState={parent:c,cache:f},Zd(i),Br(i,dt,f)):((r.lanes&o)!==0&&(Jd(r,i),Ys(i,null,null,o),Ks()),f=r.memoizedState,m=i.memoizedState,f.parent!==c?(f={parent:c,cache:c},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Br(i,dt,c)):(c=m.cache,Br(i,dt,c),c!==f.cache&&Vd(i,[dt],o,!0))),xt(r,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ur(r){r.flags|=4}function jf(r,i,o,c,f){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(f&335544128)===f)if(r.stateNode.complete)r.flags|=8192;else if(yy())r.flags|=8192;else throw Ui=Ul,Yd}else r.flags&=-16777217}function Fv(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!ob(i))if(yy())r.flags|=8192;else throw Ui=Ul,Yd}function tc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Tm():536870912,r.lanes|=i,Ia|=i)}function eo(r,i){if(!Ie)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function rt(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(i)for(var f=r.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=o,i}function yR(r,i,o){var c=i.pendingProps;switch(Pd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(i),null;case 1:return rt(i),null;case 3:return o=i.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),sr(dt),Se(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Aa(i)?ur(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,$d())),rt(i),null;case 26:var f=i.type,m=i.memoizedState;return r===null?(ur(i),m!==null?(rt(i),Fv(i,m)):(rt(i),jf(i,f,null,c,o))):m?m!==r.memoizedState?(ur(i),rt(i),Fv(i,m)):(rt(i),i.flags&=-16777217):(r=r.memoizedProps,r!==c&&ur(i),rt(i),jf(i,f,r,c,o)),null;case 27:if(un(i),o=ge.current,f=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==c&&ur(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return rt(i),null}r=ie.current,Aa(i)?Tg(i):(r=Qy(f,c,o),i.stateNode=r,ur(i))}return rt(i),null;case 5:if(un(i),f=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==c&&ur(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return rt(i),null}if(m=ie.current,Aa(i))Tg(i);else{var b=gc(ge.current);switch(m){case 1:m=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=b.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;
vendor: 24,211 bytes, line 9
9case"select":m=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?m.multiple=!0:c.size&&(m.size=c.size);break;default:m=typeof c.is=="string"?b.createElement(f,{is:c.is}):b.createElement(f)}}m[Tt]=i,m[Pt]=c;e:for(b=i.child;b!==null;){if(b.tag===5||b.tag===6)m.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===i)break e;for(;b.sibling===null;){if(b.return===null||b.return===i)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}i.stateNode=m;e:switch(kt(m,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ur(i)}}return rt(i),jf(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,o),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==c&&ur(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(a(166));if(r=ge.current,Aa(i)){if(r=i.stateNode,o=i.memoizedProps,c=null,f=Rt,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}r[Tt]=i,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||Hy(r.nodeValue,o)),r||Pr(i,!0)}else r=gc(r).createTextNode(c),r[Tt]=i,i.stateNode=r}return rt(i),null;case 31:if(o=i.memoizedState,r===null||r.memoizedState!==null){if(c=Aa(i),o!==null){if(r===null){if(!c)throw Error(a(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Tt]=i}else Di(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;rt(i),r=!1}else o=$d(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return i.flags&256?(nn(i),i):(nn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return rt(i),null;case 13:if(c=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=Aa(i),c!==null&&c.dehydrated!==null){if(r===null){if(!f)throw Error(a(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[Tt]=i}else Di(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;rt(i),f=!1}else f=$d(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(nn(i),i):(nn(i),null)}return nn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=i.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==f&&(c.flags|=2048)),o!==r&&o&&(i.child.flags|=8192),tc(i,i.updateQueue),rt(i),null);case 4:return Se(),r===null&&eh(i.stateNode.containerInfo),rt(i),null;case 10:return sr(i.type),rt(i),null;case 19:if(V(ct),c=i.memoizedState,c===null)return rt(i),null;if(f=(i.flags&128)!==0,m=c.rendering,m===null)if(f)eo(c,!1);else{if(ot!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(m=Hl(r),m!==null){for(i.flags|=128,eo(c,!1),r=m.updateQueue,i.updateQueue=r,tc(i,r),i.subtreeFlags=0,r=o,o=i.child;o!==null;)_g(o,r),o=o.sibling;return Q(ct,ct.current&1|2),Ie&&ir(i,c.treeForkCount),i.child}r=r.sibling}c.tail!==null&&Jt()>sc&&(i.flags|=128,f=!0,eo(c,!1),i.lanes=4194304)}else{if(!f)if(r=Hl(m),r!==null){if(i.flags|=128,f=!0,r=r.updateQueue,i.updateQueue=r,tc(i,r),eo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Ie)return rt(i),null}else 2*Jt()-c.renderingStartTime>sc&&o!==536870912&&(i.flags|=128,f=!0,eo(c,!1),i.lanes=4194304);c.isBackwards?(m.sibling=i.child,i.child=m):(r=c.last,r!==null?r.sibling=m:i.child=m,c.last=m)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Jt(),r.sibling=null,o=ct.current,Q(ct,f?o&1|2:o&1),Ie&&ir(i,c.treeForkCount),r):(rt(i),null);case 22:case 23:return nn(i),ef(),c=i.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(o&536870912)!==0&&(i.flags&128)===0&&(rt(i),i.subtreeFlags&6&&(i.flags|=8192)):rt(i),o=i.updateQueue,o!==null&&tc(i,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048),r!==null&&V(Mi),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),sr(dt),rt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function bR(r,i){switch(Pd(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return sr(dt),Se(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return un(i),null;case 31:if(i.memoizedState!==null){if(nn(i),i.alternate===null)throw Error(a(340));Di()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(nn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Di()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return V(ct),null;case 4:return Se(),null;case 10:return sr(i.type),null;case 22:case 23:return nn(i),ef(),r!==null&&V(Mi),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return sr(dt),null;case 25:return null;default:return null}}function Kv(r,i){switch(Pd(i),i.tag){case 3:sr(dt),Se();break;case 26:case 27:case 5:un(i);break;case 4:Se();break;case 31:i.memoizedState!==null&&nn(i);break;case 13:nn(i);break;case 19:V(ct);break;case 10:sr(i.type);break;case 22:case 23:nn(i),ef(),r!==null&&V(Mi);break;case 24:sr(dt)}}function to(r,i){try{var o=i.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var f=c.next;o=f;do{if((o.tag&r)===r){c=void 0;var m=o.create,b=o.inst;c=m(),b.destroy=c}o=o.next}while(o!==f)}}catch(S){Ye(i,i.return,S)}}function Fr(r,i,o){try{var c=i.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var m=f.next;c=m;do{if((c.tag&r)===r){var b=c.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=i;var O=o,P=S;try{P()}catch(q){Ye(f,O,q)}}}c=c.next}while(c!==m)}}catch(q){Ye(i,i.return,q)}}function Yv(r){var i=r.updateQueue;if(i!==null){var o=r.stateNode;try{Ug(i,o)}catch(c){Ye(r,r.return,c)}}}function Zv(r,i,o){o.props=$i(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){Ye(r,i,c)}}function no(r,i){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(f){Ye(r,i,f)}}function Hn(r,i){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(f){Ye(r,i,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(f){Ye(r,i,f)}else o.current=null}function Jv(r){var i=r.type,o=r.memoizedProps,c=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(f){Ye(r,r.return,f)}}function Df(r,i,o){try{var c=r.stateNode;$R(c,r.type,o,i),c[Pt]=i}catch(f){Ye(r,r.return,f)}}function Xv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Qr(r.type)||r.tag===4}function Lf(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Xv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Qr(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function zf(r,i,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(r),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=tr));else if(c!==4&&(c===27&&Qr(r.type)&&(o=r.stateNode,i=null),r=r.child,r!==null))for(zf(r,i,o),r=r.sibling;r!==null;)zf(r,i,o),r=r.sibling}function nc(r,i,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(c!==4&&(c===27&&Qr(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(nc(r,i,o),r=r.sibling;r!==null;)nc(r,i,o),r=r.sibling}function Wv(r){var i=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);kt(i,c,o),i[Tt]=r,i[Pt]=o}catch(m){Ye(r,r.return,m)}}var dr=!1,pt=!1,Mf=!1,Qv=typeof WeakSet=="function"?WeakSet:Set,St=null;function _R(r,i){if(r=r.containerInfo,rh=Ec,r=dg(r),xd(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var b=0,S=-1,O=-1,P=0,q=0,F=r,$=null;t:for(;;){for(var H;F!==o||f!==0&&F.nodeType!==3||(S=b+f),F!==m||c!==0&&F.nodeType!==3||(O=b+c),F.nodeType===3&&(b+=F.nodeValue.length),(H=F.firstChild)!==null;)$=F,F=H;for(;;){if(F===r)break t;if($===o&&++P===f&&(S=b),$===m&&++q===c&&(O=b),(H=F.nextSibling)!==null)break;F=$,$=F.parentNode}F=H}o=S===-1||O===-1?null:{start:S,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(ih={focusedElem:r,selectionRange:o},Ec=!1,St=i;St!==null;)if(i=St,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,St=r;else for(;St!==null;){switch(i=St,m=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)f=r[o],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&m!==null){r=void 0,o=i,f=m.memoizedProps,m=m.memoizedState,c=o.stateNode;try{var ae=$i(o.type,f);r=c.getSnapshotBeforeUpdate(ae,m),c.__reactInternalSnapshotBeforeUpdate=r}catch(_e){Ye(o,o.return,_e)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,o=r.nodeType,o===9)oh(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":oh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,St=r;break}St=i.return}}function ey(r,i,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:hr(r,o),c&4&&to(5,o);break;case 1:if(hr(r,o),c&4)if(r=o.stateNode,i===null)try{r.componentDidMount()}catch(b){Ye(o,o.return,b)}else{var f=$i(o.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(f,i,r.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(o,o.return,b)}}c&64&&Yv(o),c&512&&no(o,o.return);break;case 3:if(hr(r,o),c&64&&(r=o.updateQueue,r!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{Ug(r,i)}catch(b){Ye(o,o.return,b)}}break;case 27:i===null&&c&4&&Wv(o);case 26:case 5:hr(r,o),i===null&&c&4&&Jv(o),c&512&&no(o,o.return);break;case 12:hr(r,o);break;case 31:hr(r,o),c&4&&ry(r,o);break;case 13:hr(r,o),c&4&&iy(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=kR.bind(null,o),ZR(r,o))));break;case 22:if(c=o.memoizedState!==null||dr,!c){i=i!==null&&i.memoizedState!==null||pt,f=dr;var m=pt;dr=c,(pt=i)&&!m?pr(r,o,(o.subtreeFlags&8772)!==0):hr(r,o),dr=f,pt=m}break;case 30:break;default:hr(r,o)}}function ty(r){var i=r.alternate;i!==null&&(r.alternate=null,ty(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&dd(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var at=null,$t=!1;function fr(r,i,o){for(o=o.child;o!==null;)ny(r,i,o),o=o.sibling}function ny(r,i,o){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Rs,o)}catch{}switch(o.tag){case 26:pt||Hn(o,i),fr(r,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:pt||Hn(o,i);var c=at,f=$t;Qr(o.type)&&(at=o.stateNode,$t=!1),fr(r,i,o),fo(o.stateNode),at=c,$t=f;break;case 5:pt||Hn(o,i);case 6:if(c=at,f=$t,at=null,fr(r,i,o),at=c,$t=f,at!==null)if($t)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(o.stateNode)}catch(m){Ye(o,i,m)}else try{at.removeChild(o.stateNode)}catch(m){Ye(o,i,m)}break;case 18:at!==null&&($t?(r=at,Yy(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Ga(r)):Yy(at,o.stateNode));break;case 4:c=at,f=$t,at=o.stateNode.containerInfo,$t=!0,fr(r,i,o),at=c,$t=f;break;case 0:case 11:case 14:case 15:Fr(2,o,i),pt||Fr(4,o,i),fr(r,i,o);break;case 1:pt||(Hn(o,i),c=o.stateNode,typeof c.componentWillUnmount=="function"&&Zv(o,i,c)),fr(r,i,o);break;case 21:fr(r,i,o);break;case 22:pt=(c=pt)||o.memoizedState!==null,fr(r,i,o),pt=c;break;default:fr(r,i,o)}}function ry(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ga(r)}catch(o){Ye(i,i.return,o)}}}function iy(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ga(r)}catch(o){Ye(i,i.return,o)}}function wR(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Qv),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Qv),i;default:throw Error(a(435,r.tag))}}function rc(r,i){var o=wR(r);i.forEach(function(c){if(!o.has(c)){o.add(c);var f=OR.bind(null,r,c);c.then(f,f)}})}function Ht(r,i){var o=i.deletions;if(o!==null)for(var c=0;c<o.length;c++){var f=o[c],m=r,b=i,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Qr(S.type)){at=S.stateNode,$t=!1;break e}break;case 5:at=S.stateNode,$t=!1;break e;case 3:case 4:at=S.stateNode.containerInfo,$t=!0;break e}S=S.return}if(at===null)throw Error(a(160));ny(m,b,f),at=null,$t=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)ay(i,r),i=i.sibling}var Rn=null;function ay(r,i){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Ht(i,r),qt(r),c&4&&(Fr(3,r,r.return),to(3,r),Fr(5,r,r.return));break;case 1:Ht(i,r),qt(r),c&512&&(pt||o===null||Hn(o,o.return)),c&64&&dr&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var f=Rn;if(Ht(i,r),qt(r),c&512&&(pt||o===null||Hn(o,o.return)),c&4){var m=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){e:{c=r.type,o=r.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":m=f.getElementsByTagName("title")[0],(!m||m[ks]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(c),f.head.insertBefore(m,f.querySelector("head > title"))),kt(m,c,o),m[Tt]=r,wt(m),c=m;break e;case"link":var b=ab("link","href",f).get(c+(o.href||""));if(b){for(var S=0;S<b.length;S++)if(m=b[S],m.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&m.getAttribute("rel")===(o.rel==null?null:o.rel)&&m.getAttribute("title")===(o.title==null?null:o.title)&&m.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){b.splice(S,1);break t}}m=f.createElement(c),kt(m,c,o),f.head.appendChild(m);break;case"meta":if(b=ab("meta","content",f).get(c+(o.content||""))){for(S=0;S<b.length;S++)if(m=b[S],m.getAttribute("content")===(o.content==null?null:""+o.content)&&m.getAttribute("name")===(o.name==null?null:o.name)&&m.getAttribute("property")===(o.property==null?null:o.property)&&m.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&m.getAttribute("charset")===(o.charSet==null?null:o.charSet)){b.splice(S,1);break t}}m=f.createElement(c),kt(m,c,o),f.head.appendChild(m);break;default:throw Error(a(468,c))}m[Tt]=r,wt(m),c=m}r.stateNode=c}else sb(f,r.type,r.stateNode);else r.stateNode=ib(f,c,r.memoizedProps);else m!==c?(m===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):m.count--,c===null?sb(f,r.type,r.stateNode):ib(f,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Df(r,r.memoizedProps,o.memoizedProps)}break;case 27:Ht(i,r),qt(r),c&512&&(pt||o===null||Hn(o,o.return)),o!==null&&c&4&&Df(r,r.memoizedProps,o.memoizedProps);break;case 5:if(Ht(i,r),qt(r),c&512&&(pt||o===null||Hn(o,o.return)),r.flags&32){f=r.stateNode;try{pa(f,"")}catch(ae){Ye(r,r.return,ae)}}c&4&&r.stateNode!=null&&(f=r.memoizedProps,Df(r,f,o!==null?o.memoizedProps:f)),c&1024&&(Mf=!0);break;case 6:if(Ht(i,r),qt(r),c&4){if(r.stateNode===null)throw Error(a(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(ae){Ye(r,r.return,ae)}}break;case 3:if(bc=null,f=Rn,Rn=vc(i.containerInfo),Ht(i,r),Rn=f,qt(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Ga(i.containerInfo)}catch(ae){Ye(r,r.return,ae)}Mf&&(Mf=!1,sy(r));break;case 4:c=Rn,Rn=vc(r.stateNode.containerInfo),Ht(i,r),qt(r),Rn=c;break;case 12:Ht(i,r),qt(r);break;case 31:Ht(i,r),qt(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,rc(r,c)));break;case 13:Ht(i,r),qt(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(ac=Jt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,rc(r,c)));break;case 22:f=r.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,P=dr,q=pt;if(dr=P||f,pt=q||O,Ht(i,r),pt=q,dr=P,qt(r),c&8192)e:for(i=r.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(o===null||O||dr||pt||Hi(r)),o=null,i=r;;){if(i.tag===5||i.tag===26){if(o===null){O=o=i;try{if(m=O.stateNode,f)b=m.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=O.stateNode;var F=O.memoizedProps.style,$=F!=null&&F.hasOwnProperty("display")?F.display:null;S.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(ae){Ye(O,O.return,ae)}}}else if(i.tag===6){if(o===null){O=i;try{O.stateNode.nodeValue=f?"":O.memoizedProps}catch(ae){Ye(O,O.return,ae)}}}else if(i.tag===18){if(o===null){O=i;try{var H=O.stateNode;f?Zy(H,!0):Zy(O.stateNode,!1)}catch(ae){Ye(O,O.return,ae)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,rc(r,o))));break;case 19:Ht(i,r),qt(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,rc(r,c)));break;case 30:break;case 21:break;default:Ht(i,r),qt(r)}}function qt(r){var i=r.flags;if(i&2){try{for(var o,c=r.return;c!==null;){if(Xv(c)){o=c;break}c=c.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var f=o.stateNode,m=Lf(r);nc(r,m,f);break;case 5:var b=o.stateNode;o.flags&32&&(pa(b,""),o.flags&=-33);var S=Lf(r);nc(r,S,b);break;case 3:case 4:var O=o.stateNode.containerInfo,P=Lf(r);zf(r,P,O);break;default:throw Error(a(161))}}catch(q){Ye(r,r.return,q)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function sy(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;sy(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function hr(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ey(r,i.alternate,i),i=i.sibling}function Hi(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:Fr(4,i,i.return),Hi(i);break;case 1:Hn(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&Zv(i,i.return,o),Hi(i);break;case 27:fo(i.stateNode);case 26:case 5:Hn(i,i.return),Hi(i);break;case 22:i.memoizedState===null&&Hi(i);break;case 30:Hi(i);break;default:Hi(i)}r=r.sibling}}function pr(r,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,f=r,m=i,b=m.flags;switch(m.tag){case 0:case 11:case 15:pr(f,m,o),to(4,m);break;case 1:if(pr(f,m,o),c=m,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(P){Ye(c,c.return,P)}if(c=m,f=c.updateQueue,f!==null){var S=c.stateNode;try{var O=f.shared.hiddenCallbacks;if(O!==null)for(f.shared.hiddenCallbacks=null,f=0;f<O.length;f++)Ig(O[f],S)}catch(P){Ye(c,c.return,P)}}o&&b&64&&Yv(m),no(m,m.return);break;case 27:Wv(m);case 26:case 5:pr(f,m,o),o&&c===null&&b&4&&Jv(m),no(m,m.return);break;case 12:pr(f,m,o);break;case 31:pr(f,m,o),o&&b&4&&ry(f,m);break;case 13:pr(f,m,o),o&&b&4&&iy(f,m);break;case 22:m.memoizedState===null&&pr(f,m,o),no(m,m.return);break;case 30:break;default:pr(f,m,o)}i=i.sibling}}function If(r,i){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Hs(o))}function Uf(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Hs(r))}function Cn(r,i,o,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)oy(r,i,o,c),i=i.sibling}function oy(r,i,o,c){var f=i.flags;switch(i.tag){case 0:case 11:case 15:Cn(r,i,o,c),f&2048&&to(9,i);break;case 1:Cn(r,i,o,c);break;case 3:Cn(r,i,o,c),f&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Hs(r)));break;case 12:if(f&2048){Cn(r,i,o,c),r=i.stateNode;try{var m=i.memoizedProps,b=m.id,S=m.onPostCommit;typeof S=="function"&&S(b,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){Ye(i,i.return,O)}}else Cn(r,i,o,c);break;case 31:Cn(r,i,o,c);break;case 13:Cn(r,i,o,c);break;case 23:break;case 22:m=i.stateNode,b=i.alternate,i.memoizedState!==null?m._visibility&2?Cn(r,i,o,c):ro(r,i):m._visibility&2?Cn(r,i,o,c):(m._visibility|=2,La(r,i,o,c,(i.subtreeFlags&10256)!==0||!1)),f&2048&&If(b,i);break;case 24:Cn(r,i,o,c),f&2048&&Uf(i.alternate,i);break;default:Cn(r,i,o,c)}}function La(r,i,o,c,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var m=r,b=i,S=o,O=c,P=b.flags;switch(b.tag){case 0:case 11:case 15:La(m,b,S,O,f),to(8,b);break;case 23:break;case 22:var q=b.stateNode;b.memoizedState!==null?q._visibility&2?La(m,b,S,O,f):ro(m,b):(q._visibility|=2,La(m,b,S,O,f)),f&&P&2048&&If(b.alternate,b);break;case 24:La(m,b,S,O,f),f&&P&2048&&Uf(b.alternate,b);break;default:La(m,b,S,O,f)}i=i.sibling}}function ro(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=r,c=i,f=c.flags;switch(c.tag){case 22:ro(o,c),f&2048&&If(c.alternate,c);break;case 24:ro(o,c),f&2048&&Uf(c.alternate,c);break;default:ro(o,c)}i=i.sibling}}var io=8192;function za(r,i,o){if(r.subtreeFlags&io)for(r=r.child;r!==null;)ly(r,i,o),r=r.sibling}function ly(r,i,o){switch(r.tag){case 26:za(r,i,o),r.flags&io&&r.memoizedState!==null&&oC(o,Rn,r.memoizedState,r.memoizedProps);break;case 5:za(r,i,o);break;case 3:case 4:var c=Rn;Rn=vc(r.stateNode.containerInfo),za(r,i,o),Rn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=io,io=16777216,za(r,i,o),io=c):za(r,i,o));break;default:za(r,i,o)}}function cy(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function ao(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];St=c,dy(c,r)}cy(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)uy(r),r=r.sibling}function uy(r){switch(r.tag){case 0:case 11:case 15:ao(r),r.flags&2048&&Fr(9,r,r.return);break;case 3:ao(r);break;case 12:ao(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,ic(r)):ao(r);break;default:ao(r)}}function ic(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];St=c,dy(c,r)}cy(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:Fr(8,i,i.return),ic(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,ic(i));break;default:ic(i)}r=r.sibling}}function dy(r,i){for(;St!==null;){var o=St;switch(o.tag){case 0:case 11:case 15:Fr(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Hs(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,St=c;else e:for(o=r;St!==null;){c=St;var f=c.sibling,m=c.return;if(ty(c),c===o){St=null;break e}if(f!==null){f.return=m,St=f;break e}St=m}}
vendor: 5,751 bytes, line 9
9}var SR={getCacheForType:function(r){var i=Ct(dt),o=i.data.get(r);return o===void 0&&(o=r(),i.data.set(r,o)),o},cacheSignal:function(){return Ct(dt).controller.signal}},ER=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Qe=null,Oe=null,Le=0,Ke=0,rn=null,Kr=!1,Ma=!1,Pf=!1,mr=0,ot=0,Yr=0,qi=0,Bf=0,an=0,Ia=0,so=null,Vt=null,$f=!1,ac=0,fy=0,sc=1/0,oc=null,Zr=null,yt=0,Jr=null,Ua=null,gr=0,Hf=0,qf=null,hy=null,oo=0,Vf=null;function sn(){return(Fe&2)!==0&&Le!==0?Le&-Le:I.T!==null?Jf():km()}function py(){if(an===0)if((Le&536870912)===0||Ie){var r=ml;ml<<=1,(ml&3932160)===0&&(ml=262144),an=r}else an=536870912;return r=tn.current,r!==null&&(r.flags|=32),an}function Gt(r,i,o){(r===Qe&&(Ke===2||Ke===9)||r.cancelPendingCommit!==null)&&(Pa(r,0),Xr(r,Le,an,!1)),xs(r,o),((Fe&2)===0||r!==Qe)&&(r===Qe&&((Fe&2)===0&&(qi|=o),ot===4&&Xr(r,Le,an,!1)),qn(r))}function my(r,i,o){if((Fe&6)!==0)throw Error(a(327));var c=!o&&(i&127)===0&&(i&r.expiredLanes)===0||Cs(r,i),f=c?RR(r,i):Ff(r,i,!0),m=c;do{if(f===0){Ma&&!c&&Xr(r,i,0,!1);break}else{if(o=r.current.alternate,m&&!AR(o)){f=Ff(r,i,!1),m=!1;continue}if(f===2){if(m=i,r.errorRecoveryDisabledLanes&m)var b=0;else b=r.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){i=b;e:{var S=r;f=so;var O=S.current.memoizedState.isDehydrated;if(O&&(Pa(S,b).flags|=256),b=Ff(S,b,!1),b!==2){if(Pf&&!O){S.errorRecoveryDisabledLanes|=m,qi|=m,f=4;break e}m=Vt,Vt=f,m!==null&&(Vt===null?Vt=m:Vt.push.apply(Vt,m))}f=b}if(m=!1,f!==2)continue}}if(f===1){Pa(r,0),Xr(r,i,0,!0);break}e:{switch(c=r,m=f,m){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Xr(c,i,an,!Kr);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(f=ac+300-Jt(),10<f)){if(Xr(c,i,an,!Kr),vl(c,0,!0)!==0)break e;gr=i,c.timeoutHandle=Fy(gy.bind(null,c,o,Vt,oc,$f,i,an,qi,Ia,Kr,m,"Throttled",-0,0),f);break e}gy(c,o,Vt,oc,$f,i,an,qi,Ia,Kr,m,null,-0,0)}}break}while(!0);qn(r)}function gy(r,i,o,c,f,m,b,S,O,P,q,F,$,H){if(r.timeoutHandle=-1,F=i.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tr},ly(i,m,F);var ae=(m&62914560)===m?ac-Jt():(m&4194048)===m?fy-Jt():0;if(ae=lC(F,ae),ae!==null){gr=m,r.cancelPendingCommit=ae(Ay.bind(null,r,i,m,o,c,f,b,S,O,q,F,null,$,H)),Xr(r,m,b,!P);return}}Ay(r,i,m,o,c,f,b,S,O)}function AR(r){for(var i=r;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var f=o[c],m=f.getSnapshot;f=f.value;try{if(!Qt(m(),f))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Xr(r,i,o,c){i&=~Bf,i&=~qi,r.suspendedLanes|=i,r.pingedLanes&=~i,c&&(r.warmLanes|=i),c=r.expirationTimes;for(var f=i;0<f;){var m=31-Wt(f),b=1<<m;c[m]=-1,f&=~b}o!==0&&Rm(r,o,i)}function lc(){return(Fe&6)===0?(lo(0),!1):!0}function Gf(){if(Oe!==null){if(Ke===0)var r=Oe.return;else r=Oe,ar=Li=null,of(r),ka=null,Vs=0,r=Oe;for(;r!==null;)Kv(r.alternate,r),r=r.return;Oe=null}}function Pa(r,i){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,VR(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),gr=0,Gf(),Qe=r,Oe=o=rr(r.current,null),Le=i,Ke=0,rn=null,Kr=!1,Ma=Cs(r,i),Pf=!1,Ia=an=Bf=qi=Yr=ot=0,Vt=so=null,$f=!1,(i&8)!==0&&(i|=i&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=i;0<c;){var f=31-Wt(c),m=1<<f;i|=r[f],c&=~m}return mr=i,kl(),o}function vy(r,i){Re=null,I.H=Ws,i===xa||i===Il?(i=Dg(),Ke=3):i===Yd?(i=Dg(),Ke=4):Ke=i===Ef?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,rn=i,Oe===null&&(ot=1,Xl(r,mn(i,r.current)))}function yy(){var r=tn.current;return r===null?!0:(Le&4194048)===Le?bn===null:(Le&62914560)===Le||(Le&536870912)!==0?r===bn:!1}function by(){var r=I.H;return I.H=Ws,r===null?Ws:r}function _y(){var r=I.A;return I.A=SR,r}function cc(){ot=4,Kr||(Le&4194048)!==Le&&tn.current!==null||(Ma=!0),(Yr&134217727)===0&&(qi&134217727)===0||Qe===null||Xr(Qe,Le,an,!1)}function Ff(r,i,o){var c=Fe;Fe|=2;var f=by(),m=_y();(Qe!==r||Le!==i)&&(oc=null,Pa(r,i)),i=!1;var b=ot;e:do try{if(Ke!==0&&Oe!==null){var S=Oe,O=rn;switch(Ke){case 8:Gf(),b=6;break e;case 3:case 2:case 9:case 6:tn.current===null&&(i=!0);var P=Ke;if(Ke=0,rn=null,Ba(r,S,O,P),o&&Ma){b=0;break e}break;default:P=Ke,Ke=0,rn=null,Ba(r,S,O,P)}}TR(),b=ot;break}catch(q){vy(r,q)}while(!0);return i&&r.shellSuspendCounter++,ar=Li=null,Fe=c,I.H=f,I.A=m,Oe===null&&(Qe=null,Le=0,kl()),b}function TR(){for(;Oe!==null;)wy(Oe)}function RR(r,i){var o=Fe;Fe|=2;var c=by(),f=_y();Qe!==r||Le!==i?(oc=null,sc=Jt()+500,Pa(r,i)):Ma=Cs(r,i);e:do try{if(Ke!==0&&Oe!==null){i=Oe;var m=rn;t:switch(Ke){case 1:Ke=0,rn=null,Ba(r,i,m,1);break;case 2:case 9:if(Ng(m)){Ke=0,rn=null,Sy(i);break}i=function(){Ke!==2&&Ke!==9||Qe!==r||(Ke=7),qn(r)},m.then(i,i);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Ng(m)?(Ke=0,rn=null,Sy(i)):(Ke=0,rn=null,Ba(r,i,m,7));break;case 5:var b=null;switch(Oe.tag){case 26:b=Oe.memoizedState;case 5:case 27:var S=Oe;if(b?ob(b):S.stateNode.complete){Ke=0,rn=null;var O=S.sibling;if(O!==null)Oe=O;else{var P=S.return;P!==null?(Oe=P,uc(P)):Oe=null}break t}}Ke=0,rn=null,Ba(r,i,m,5);break;case 6:Ke=0,rn=null,Ba(r,i,m,6);break;case 8:Gf(),ot=6;break e;default:throw Error(a(462))}}CR();break}catch(q){vy(r,q)}while(!0);return ar=Li=null,I.H=c,I.A=f,Fe=o,Oe!==null?0:(Qe=null,Le=0,kl(),ot)}function CR(){for(;Oe!==null&&!JA();)wy(Oe)}function wy(r){var i=Gv(r.alternate,r,mr);r.memoizedProps=r.pendingProps,i===null?uc(r):Oe=i}function Sy(r){var i=r,o=i.alternate;
vendor: 2,344 bytes, line 9
9switch(i.tag){case 15:case 0:i=Pv(o,i,i.pendingProps,i.type,void 0,Le);break;case 11:i=Pv(o,i,i.pendingProps,i.type.render,i.ref,Le);break;case 5:of(i);default:Kv(o,i),i=Oe=_g(i,mr),i=Gv(o,i,mr)}r.memoizedProps=r.pendingProps,i===null?uc(r):Oe=i}function Ba(r,i,o,c){ar=Li=null,of(i),ka=null,Vs=0;var f=i.return;try{if(mR(r,f,i,o,Le)){ot=1,Xl(r,mn(o,r.current)),Oe=null;return}}catch(m){if(f!==null)throw Oe=f,m;ot=1,Xl(r,mn(o,r.current)),Oe=null;return}i.flags&32768?(Ie||c===1?r=!0:Ma||(Le&536870912)!==0?r=!1:(Kr=r=!0,(c===2||c===9||c===3||c===6)&&(c=tn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Ey(i,r)):uc(i)}function uc(r){var i=r;do{if((i.flags&32768)!==0){Ey(i,Kr);return}r=i.return;var o=yR(i.alternate,i,mr);if(o!==null){Oe=o;return}if(i=i.sibling,i!==null){Oe=i;return}Oe=i=r}while(i!==null);ot===0&&(ot=5)}function Ey(r,i){do{var o=bR(r.alternate,r);if(o!==null){o.flags&=32767,Oe=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(r=r.sibling,r!==null)){Oe=r;return}Oe=r=o}while(r!==null);ot=6,Oe=null}function Ay(r,i,o,c,f,m,b,S,O){r.cancelPendingCommit=null;do dc();while(yt!==0);if((Fe&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(m=i.lanes|i.childLanes,m|=Dd,sT(r,o,m,b,S,O),r===Qe&&(Oe=Qe=null,Le=0),Ua=i,Jr=r,gr=o,Hf=m,qf=f,hy=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,NR(hl,function(){return ky(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=I.T,I.T=null,f=J.p,J.p=2,b=Fe,Fe|=4;try{_R(r,i,o)}finally{Fe=b,J.p=f,I.T=c}}yt=1,Ty(),Ry(),Cy()}}function Ty(){if(yt===1){yt=0;var r=Jr,i=Ua,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=I.T,I.T=null;var c=J.p;J.p=2;var f=Fe;Fe|=4;try{ay(i,r);var m=ih,b=dg(r.containerInfo),S=m.focusedElem,O=m.selectionRange;if(b!==S&&S&&S.ownerDocument&&ug(S.ownerDocument.documentElement,S)){if(O!==null&&xd(S)){var P=O.start,q=O.end;if(q===void 0&&(q=P),"selectionStart"in S)S.selectionStart=P,S.selectionEnd=Math.min(q,S.value.length);else{var F=S.ownerDocument||document,$=F&&F.defaultView||window;if($.getSelection){var H=$.getSelection(),ae=S.textContent.length,_e=Math.min(O.start,ae),Xe=O.end===void 0?_e:Math.min(O.end,ae);!H.extend&&_e>Xe&&(b=Xe,Xe=_e,_e=b);var L=cg(S,_e),j=cg(S,Xe);
vendor: 6,910 bytes, line 9
9if(L&&j&&(H.rangeCount!==1||H.anchorNode!==L.node||H.anchorOffset!==L.offset||H.focusNode!==j.node||H.focusOffset!==j.offset)){var U=F.createRange();U.setStart(L.node,L.offset),H.removeAllRanges(),_e>Xe?(H.addRange(U),H.extend(j.node,j.offset)):(U.setEnd(j.node,j.offset),H.addRange(U))}}}}for(F=[],H=S;H=H.parentNode;)H.nodeType===1&&F.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<F.length;S++){var G=F[S];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Ec=!!rh,ih=rh=null}finally{Fe=f,J.p=c,I.T=o}}r.current=i,yt=2}}function Ry(){if(yt===2){yt=0;var r=Jr,i=Ua,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=I.T,I.T=null;var c=J.p;J.p=2;var f=Fe;Fe|=4;try{ey(r,i.alternate,i)}finally{Fe=f,J.p=c,I.T=o}}yt=3}}function Cy(){if(yt===4||yt===3){yt=0,XA();var r=Jr,i=Ua,o=gr,c=hy;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?yt=5:(yt=0,Ua=Jr=null,xy(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(Zr=null),cd(o),i=i.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Rs,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=I.T,f=J.p,J.p=2,I.T=null;try{for(var m=r.onRecoverableError,b=0;b<c.length;b++){var S=c[b];m(S.value,{componentStack:S.stack})}}finally{I.T=i,J.p=f}}(gr&3)!==0&&dc(),qn(r),f=r.pendingLanes,(o&261930)!==0&&(f&42)!==0?r===Vf?oo++:(oo=0,Vf=r):oo=0,lo(0)}}function xy(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Hs(i)))}function dc(){return Ty(),Ry(),Cy(),ky()}function ky(){if(yt!==5)return!1;var r=Jr,i=Hf;Hf=0;var o=cd(gr),c=I.T,f=J.p;try{J.p=32>o?32:o,I.T=null,o=qf,qf=null;var m=Jr,b=gr;if(yt=0,Ua=Jr=null,gr=0,(Fe&6)!==0)throw Error(a(331));var S=Fe;if(Fe|=4,uy(m.current),oy(m,m.current,b,o),Fe=S,lo(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Rs,m)}catch{}return!0}finally{J.p=f,I.T=c,xy(r,i)}}function Oy(r,i,o){i=mn(o,i),i=Sf(r.stateNode,i,2),r=qr(r,i,2),r!==null&&(xs(r,2),qn(r))}function Ye(r,i,o){if(r.tag===3)Oy(r,r,o);else for(;i!==null;){if(i.tag===3){Oy(i,r,o);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Zr===null||!Zr.has(c))){r=mn(o,r),o=Nv(2),c=qr(i,o,2),c!==null&&(jv(o,c,i,r),xs(c,2),qn(c));break}}i=i.return}}function Kf(r,i,o){var c=r.pingCache;if(c===null){c=r.pingCache=new ER;var f=new Set;c.set(i,f)}else f=c.get(i),f===void 0&&(f=new Set,c.set(i,f));f.has(o)||(Pf=!0,f.add(o),r=xR.bind(null,r,i,o),i.then(r,r))}function xR(r,i,o){var c=r.pingCache;c!==null&&c.delete(i),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Qe===r&&(Le&o)===o&&(ot===4||ot===3&&(Le&62914560)===Le&&300>Jt()-ac?(Fe&2)===0&&Pa(r,0):Bf|=o,Ia===Le&&(Ia=0)),qn(r)}function Ny(r,i){i===0&&(i=Tm()),r=Ni(r,i),r!==null&&(xs(r,i),qn(r))}function kR(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),Ny(r,o)}function OR(r,i){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(o=f.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(i),Ny(r,o)}function NR(r,i){return ad(r,i)}var fc=null,$a=null,Yf=!1,hc=!1,Zf=!1,Wr=0;function qn(r){r!==$a&&r.next===null&&($a===null?fc=$a=r:$a=$a.next=r),hc=!0,Yf||(Yf=!0,DR())}function lo(r,i){if(!Zf&&hc){Zf=!0;do for(var o=!1,c=fc;c!==null;){if(r!==0){var f=c.pendingLanes;if(f===0)var m=0;else{var b=c.suspendedLanes,S=c.pingedLanes;m=(1<<31-Wt(42|r)+1)-1,m&=f&~(b&~S),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,zy(c,m))}else m=Le,m=vl(c,c===Qe?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||Cs(c,m)||(o=!0,zy(c,m));c=c.next}while(o);Zf=!1}}function jR(){jy()}function jy(){hc=Yf=!1;var r=0;Wr!==0&&qR()&&(r=Wr);for(var i=Jt(),o=null,c=fc;c!==null;){var f=c.next,m=Dy(c,i);m===0?(c.next=null,o===null?fc=f:o.next=f,f===null&&($a=o)):(o=c,(r!==0||(m&3)!==0)&&(hc=!0)),c=f}yt!==0&&yt!==5||lo(r),Wr!==0&&(Wr=0)}function Dy(r,i){for(var o=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes&-62914561;0<m;){var b=31-Wt(m),S=1<<b,O=f[b];O===-1?((S&o)===0||(S&c)!==0)&&(f[b]=aT(S,i)):O<=i&&(r.expiredLanes|=S),m&=~S}if(i=Qe,o=Le,o=vl(r,r===i?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===i&&(Ke===2||Ke===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&sd(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||Cs(r,o)){if(i=o&-o,i===r.callbackPriority)return i;switch(c!==null&&sd(c),cd(o)){case 2:case 8:o=Em;break;case 32:o=hl;break;case 268435456:o=Am;break;default:o=hl}return c=Ly.bind(null,r),o=ad(o,c),r.callbackPriority=i,r.callbackNode=o,i}return c!==null&&c!==null&&sd(c),r.callbackPriority=2,r.callbackNode=null,2}function Ly(r,i){if(yt!==0&&yt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(dc()&&r.callbackNode!==o)return null;var c=Le;return c=vl(r,r===Qe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(my(r,c,i),Dy(r,Jt()),r.callbackNode!=null&&r.callbackNode===o?Ly.bind(null,r):null)}function zy(r,i){if(dc())return null;my(r,i,!0)}function DR(){GR(function(){(Fe&6)!==0?ad(Sm,jR):jy()})}function Jf(){if(Wr===0){var r=Ra;r===0&&(r=pl,pl<<=1,(pl&261888)===0&&(pl=256)),Wr=r}return Wr}function My(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:wl(""+r)}function Iy(r,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,r.id&&o.setAttribute("form",r.id),i.parentNode.insertBefore(o,i),r=new FormData(r),o.parentNode.removeChild(o),r}function LR(r,i,o,c,f){if(i==="submit"&&o&&o.stateNode===f){var m=My((f[Pt]||null).action),b=c.submitter;b&&(i=(i=b[Pt]||null)?My(i.formAction):b.getAttribute("formAction"),i!==null&&(m=i,b=null));var S=new Tl("action","action",null,c,f);r.push({event:S,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Wr!==0){var O=b?Iy(f,b):new FormData(f);gf(o,{pending:!0,data:O,method:f.method,action:m},null,O)}}else typeof m=="function"&&(S.preventDefault(),O=b?Iy(f,b):new FormData(f),gf(o,{pending:!0,data:O,method:f.method,action:m},m,O))},currentTarget:f}]})}}for(var Xf=0;Xf<jd.length;Xf++){var Wf=jd[Xf],zR=Wf.toLowerCase(),MR=Wf[0].toUpperCase()+Wf.slice(1);Tn(zR,"on"+MR)}Tn(pg,"onAnimationEnd"),Tn(mg,"onAnimationIteration"),Tn(gg,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(WT,"onTransitionRun"),Tn(QT,"onTransitionStart"),Tn(eR,"onTransitionCancel"),Tn(vg,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Ci("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ci("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ci("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ci("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ci("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ci("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="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(" "),IR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(co));function Uy(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],f=c.event;c=c.listeners;e:{var m=void 0;if(i)for(var b=c.length-1;0<=b;b--){var S=c[b],O=S.instance,P=S.currentTarget;if(S=S.listener,O!==m&&f.isPropagationStopped())break e;m=S,f.currentTarget=P;try{m(f)}catch(q){xl(q)}f.currentTarget=null,m=O}else for(b=0;b<c.length;b++){if(S=c[b],O=S.instance,P=S.currentTarget,S=S.listener,O!==m&&f.isPropagationStopped())break e;m=S,f.currentTarget=P;try{m(f)}catch(q){xl(q)}f.currentTarget=null,m=O}}}}function Ne(r,i){var o=i[ud];o===void 0&&(o=i[ud]=new Set);var c=r+"__bubble";o.has(c)||(Py(i,r,2,!1),o.add(c))}function Qf(r,i,o){var c=0;i&&(c|=4),Py(o,r,c,i)}var pc="_reactListening"+Math.random().toString(36).slice(2);function eh(r){if(!r[pc]){r[pc]=!0,jm.forEach(function(o){o!=="selectionchange"&&(IR.has(o)||Qf(o,!1,r),Qf(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[pc]||(i[pc]=!0,Qf("selectionchange",!1,i))}}function Py(r,i,o,c){switch(pb(i)){case 2:var f=dC;break;case 8:f=fC;break;default:f=mh}o=f.bind(null,i,o,r),f=void 0,!bd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(i,o,{capture:!0,passive:f}):r.addEventListener(i,o,!0):f!==void 0?r.addEventListener(i,o,{passive:f}):r.addEventListener(i,o,!1)}function th(r,i,o,c,f){var m=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var S=c.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=c.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=ca(S),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){c=m=b;continue e}S=S.parentNode}}c=c.return}Vm(function(){var P=m,q=vd(o),F=[];e:{var $=yg.get(r);if($!==void 0){var H=Tl,ae=r;switch(r){case"keypress":if(El(o)===0)break e;case"keydown":case"keyup":H=OT;break;case"focusin":ae="focus",H=Ed;break;case"focusout":ae="blur",H=Ed;break;case"beforeblur":case"afterblur":H=Ed;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=yT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=DT;break;case pg:case mg:case gg:H=wT;break;case vg:H=zT;break;case"scroll":case"scrollend":H=gT;break;case"wheel":H=IT;break;case"copy":case"cut":case"paste":H=ET;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Zm;break;case"toggle":case"beforetoggle":H=PT}var _e=(i&4)!==0,Xe=!_e&&(r==="scroll"||r==="scrollend"),L=_e?$!==null?$+"Capture":null:$;_e=[];for(var j=P,U;j!==null;){var G=j;if(U=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||U===null||L===null||(G=Ns(j,L),G!=null&&_e.push(uo(j,G,U))),Xe)break;j=j.return}0<_e.length&&($=new H($,ae,null,o,q),F.push({event:$,listeners:_e}))}}if((i&7)===0){e:{if($=r==="mouseover"||r==="pointerover",H=r==="mouseout"||r==="pointerout",$&&o!==gd&&(ae=o.relatedTarget||o.fromElement)&&(ca(ae)||ae[la]))break e;if((H||$)&&($=q.window===q?q:($=q.ownerDocument)?$.defaultView||$.parentWindow:window,H?(ae=o.relatedTarget||o.toElement,H=P,ae=ae?ca(ae):null,ae!==null&&(Xe=l(ae),_e=ae.tag,ae!==Xe||_e!==5&&_e!==27&&_e!==6)&&(ae=null)):(H=null,ae=P),H!==ae)){if(_e=Km,G="onMouseLeave",L="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(_e=Zm,G="onPointerLeave",L="onPointerEnter",j="pointer"),Xe=H==null?$:Os(H),U=ae==null?$:Os(ae),$=new _e(G,j+"leave",H,o,q),$.target=Xe,$.relatedTarget=U,G=null,ca(q)===P&&(_e=new _e(L,j+"enter",ae,o,q),_e.target=U,_e.relatedTarget=Xe,G=_e),Xe=G,H&&ae)t:{for(_e=UR,L=H,j=ae,U=0,G=L;G;G=_e(G))U++;G=0;for(var ye=j;ye;ye=_e(ye))G++;for(;0<U-G;)L=_e(L),U--;for(;0<G-U;)j=_e(j),G--;for(;U--;){if(L===j||j!==null&&L===j.alternate){_e=L;break t}L=_e(L),j=_e(j)}_e=null}else _e=null;H!==null&&By(F,$,H,_e,!1),ae!==null&&Xe!==null&&By(F,Xe,ae,_e,!0)}}
vendor: 1,204 bytes, line 9
9e:{if($=P?Os(P):window,H=$.nodeName&&$.nodeName.toLowerCase(),H==="select"||H==="input"&&$.type==="file")var qe=rg;else if(tg($))if(ig)qe=ZT;else{qe=KT;var fe=FT}else H=$.nodeName,!H||H.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?P&&md(P.elementType)&&(qe=rg):qe=YT;if(qe&&(qe=qe(r,P))){ng(F,qe,o,q);break e}fe&&fe(r,$,P),r==="focusout"&&P&&$.type==="number"&&P.memoizedProps.value!=null&&pd($,"number",$.value)}switch(fe=P?Os(P):window,r){case"focusin":(tg(fe)||fe.contentEditable==="true")&&(ya=fe,kd=P,Ps=null);break;case"focusout":Ps=kd=ya=null;break;case"mousedown":Od=!0;break;case"contextmenu":case"mouseup":case"dragend":Od=!1,fg(F,o,q);break;case"selectionchange":if(XT)break;case"keydown":case"keyup":fg(F,o,q)}var Ce;if(Td)e:{switch(r){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else va?Qm(r,o)&&(ze="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ze="onCompositionStart");ze&&(Jm&&o.locale!=="ko"&&(va||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&va&&(Ce=Gm()):(Mr=q,_d="value"in Mr?Mr.value:Mr.textContent,va=!0)),fe=mc(P,ze),
vendor: 6,188 bytes, lines 9-10
90<fe.length&&(ze=new Ym(ze,r,null,o,q),F.push({event:ze,listeners:fe}),Ce?ze.data=Ce:(Ce=eg(o),Ce!==null&&(ze.data=Ce)))),(Ce=$T?HT(r,o):qT(r,o))&&(ze=mc(P,"onBeforeInput"),0<ze.length&&(fe=new Ym("onBeforeInput","beforeinput",null,o,q),F.push({event:fe,listeners:ze}),fe.data=Ce)),LR(F,r,P,o,q)}Uy(F,i)})}function uo(r,i,o){return{instance:r,listener:i,currentTarget:o}}function mc(r,i){for(var o=i+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Ns(r,o),f!=null&&c.unshift(uo(r,f,m)),f=Ns(r,i),f!=null&&c.push(uo(r,f,m))),r.tag===3)return c;r=r.return}return[]}function UR(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function By(r,i,o,c,f){for(var m=i._reactName,b=[];o!==null&&o!==c;){var S=o,O=S.alternate,P=S.stateNode;if(S=S.tag,O!==null&&O===c)break;S!==5&&S!==26&&S!==27||P===null||(O=P,f?(P=Ns(o,m),P!=null&&b.unshift(uo(o,P,O))):f||(P=Ns(o,m),P!=null&&b.push(uo(o,P,O)))),o=o.return}b.length!==0&&r.push({event:i,listeners:b})}var PR=/\r\n?/g,BR=/\u0000|\uFFFD/g;function $y(r){return(typeof r=="string"?r:""+r).replace(PR,`
10`).replace(BR,"")}function Hy(r,i){return i=$y(i),$y(r)===i}function Je(r,i,o,c,f,m){switch(o){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||pa(r,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&pa(r,""+c);break;case"className":bl(r,"class",c);break;case"tabIndex":bl(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":bl(r,o,c);break;case"style":Hm(r,c,m);break;case"data":if(i!=="object"){bl(r,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=wl(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"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 m=="function"&&(o==="formAction"?(i!=="input"&&Je(r,i,"name",f.name,f,null),Je(r,i,"formEncType",f.formEncType,f,null),Je(r,i,"formMethod",f.formMethod,f,null),Je(r,i,"formTarget",f.formTarget,f,null)):(Je(r,i,"encType",f.encType,f,null),Je(r,i,"method",f.method,f,null),Je(r,i,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=wl(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=tr);break;case"onScroll":c!=null&&Ne("scroll",r);break;case"onScrollEnd":c!=null&&Ne("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=wl(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":Ne("beforetoggle",r),Ne("toggle",r),yl(r,"popover",c);break;case"xlinkActuate":er(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":er(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":er(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":er(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":er(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":er(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":er(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":er(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":er(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":yl(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=pT.get(o)||o,yl(r,o,c))}}function nh(r,i,o,c,f,m){switch(o){case"style":Hm(r,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"children":typeof c=="string"?pa(r,c):(typeof c=="number"||typeof c=="bigint")&&pa(r,""+c);break;case"onScroll":c!=null&&Ne("scroll",r);break;case"onScrollEnd":c!=null&&Ne("scrollend",r);break;case"onClick":c!=null&&(r.onclick=tr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;
vendor: 7,941 bytes, line 10
10default:if(!Dm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(f=o.endsWith("Capture"),i=o.slice(2,f?o.length-7:void 0),m=r[Pt]||null,m=m!=null?m[o]:null,typeof m=="function"&&r.removeEventListener(i,m,f),typeof c=="function")){typeof m!="function"&&m!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(i,c,f);break e}o in r?r[o]=c:c===!0?r.setAttribute(o,""):yl(r,o,c)}}}function kt(r,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",r),Ne("load",r);var c=!1,f=!1,m;for(m in o)if(o.hasOwnProperty(m)){var b=o[m];if(b!=null)switch(m){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Je(r,i,m,b,o,null)}}f&&Je(r,i,"srcSet",o.srcSet,o,null),c&&Je(r,i,"src",o.src,o,null);return;case"input":Ne("invalid",r);var S=m=b=f=null,O=null,P=null;for(c in o)if(o.hasOwnProperty(c)){var q=o[c];if(q!=null)switch(c){case"name":f=q;break;case"type":b=q;break;case"checked":O=q;break;case"defaultChecked":P=q;break;case"value":m=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(a(137,i));break;default:Je(r,i,c,q,o,null)}}Um(r,m,S,O,P,b,f,!1);return;case"select":Ne("invalid",r),c=b=m=null;for(f in o)if(o.hasOwnProperty(f)&&(S=o[f],S!=null))switch(f){case"value":m=S;break;case"defaultValue":b=S;break;case"multiple":c=S;default:Je(r,i,f,S,o,null)}i=m,o=b,r.multiple=!!c,i!=null?ha(r,!!c,i,!1):o!=null&&ha(r,!!c,o,!0);return;case"textarea":Ne("invalid",r),m=f=c=null;for(b in o)if(o.hasOwnProperty(b)&&(S=o[b],S!=null))switch(b){case"value":c=S;break;case"defaultValue":f=S;break;case"children":m=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Je(r,i,b,S,o,null)}Bm(r,c,f,m);return;case"option":for(O in o)o.hasOwnProperty(O)&&(c=o[O],c!=null)&&(O==="selected"?r.selected=c&&typeof c!="function"&&typeof c!="symbol":Je(r,i,O,c,o,null));return;case"dialog":Ne("beforetoggle",r),Ne("toggle",r),Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":Ne("load",r);break;case"video":case"audio":for(c=0;c<co.length;c++)Ne(co[c],r);break;case"image":Ne("error",r),Ne("load",r);break;case"details":Ne("toggle",r);break;case"embed":case"source":case"link":Ne("error",r),Ne("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in o)if(o.hasOwnProperty(P)&&(c=o[P],c!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Je(r,i,P,c,o,null)}return;default:if(md(i)){for(q in o)o.hasOwnProperty(q)&&(c=o[q],c!==void 0&&nh(r,i,q,c,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(c=o[S],c!=null&&Je(r,i,S,c,o,null))}function $R(r,i,o,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,b=null,S=null,O=null,P=null,q=null;for(H in o){var F=o[H];if(o.hasOwnProperty(H)&&F!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":O=F;default:c.hasOwnProperty(H)||Je(r,i,H,null,c,F)}}for(var $ in c){var H=c[$];if(F=o[$],c.hasOwnProperty($)&&(H!=null||F!=null))switch($){case"type":m=H;break;case"name":f=H;break;case"checked":P=H;break;case"defaultChecked":q=H;break;case"value":b=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:H!==F&&Je(r,i,$,H,c,F)}}hd(r,b,S,O,P,q,m,f);return;case"select":H=b=S=$=null;for(m in o)if(O=o[m],o.hasOwnProperty(m)&&O!=null)switch(m){case"value":break;case"multiple":H=O;default:c.hasOwnProperty(m)||Je(r,i,m,null,c,O)}for(f in c)if(m=c[f],O=o[f],c.hasOwnProperty(f)&&(m!=null||O!=null))switch(f){case"value":$=m;break;case"defaultValue":S=m;break;case"multiple":b=m;default:m!==O&&Je(r,i,f,m,c,O)}i=S,o=b,c=H,$!=null?ha(r,!!o,$,!1):!!c!=!!o&&(i!=null?ha(r,!!o,i,!0):ha(r,!!o,o?[]:"",!1));return;case"textarea":H=$=null;for(S in o)if(f=o[S],o.hasOwnProperty(S)&&f!=null&&!c.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Je(r,i,S,null,c,f)}for(b in c)if(f=c[b],m=o[b],c.hasOwnProperty(b)&&(f!=null||m!=null))switch(b){case"value":$=f;break;case"defaultValue":H=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==m&&Je(r,i,b,f,c,m)}Pm(r,$,H);return;case"option":for(var ae in o)$=o[ae],o.hasOwnProperty(ae)&&$!=null&&!c.hasOwnProperty(ae)&&(ae==="selected"?r.selected=!1:Je(r,i,ae,null,c,$));for(O in c)$=c[O],H=o[O],c.hasOwnProperty(O)&&$!==H&&($!=null||H!=null)&&(O==="selected"?r.selected=$&&typeof $!="function"&&typeof $!="symbol":Je(r,i,O,$,c,H));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 _e in o)$=o[_e],o.hasOwnProperty(_e)&&$!=null&&!c.hasOwnProperty(_e)&&Je(r,i,_e,null,c,$);for(P in c)if($=c[P],H=o[P],c.hasOwnProperty(P)&&$!==H&&($!=null||H!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,i));break;default:Je(r,i,P,$,c,H)}return;default:if(md(i)){for(var Xe in o)$=o[Xe],o.hasOwnProperty(Xe)&&$!==void 0&&!c.hasOwnProperty(Xe)&&nh(r,i,Xe,void 0,c,$);for(q in c)$=c[q],H=o[q],!c.hasOwnProperty(q)||$===H||$===void 0&&H===void 0||nh(r,i,q,$,c,H);return}}for(var L in o)$=o[L],o.hasOwnProperty(L)&&$!=null&&!c.hasOwnProperty(L)&&Je(r,i,L,null,c,$);for(F in c)$=c[F],H=o[F],!c.hasOwnProperty(F)||$===H||$==null&&H==null||Je(r,i,F,$,c,H)}function qy(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function HR(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var f=o[c],m=f.transferSize,b=f.initiatorType,S=f.duration;if(m&&S&&qy(b)){for(b=0,S=f.responseEnd,c+=1;c<o.length;c++){var O=o[c],P=O.startTime;if(P>S)break;var q=O.transferSize,F=O.initiatorType;q&&qy(F)&&(O=O.responseEnd,b+=q*(O<S?1:(S-P)/(O-P)))}if(--c,i+=8*(m+b)/(f.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var rh=null,ih=null;function gc(r){return r.nodeType===9?r:r.ownerDocument}function Vy(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gy(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function ah(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var sh=null;function qR(){var r=window.event;return r&&r.type==="popstate"?r===sh?!1:(sh=r,!0):(sh=null,!1)}var Fy=typeof setTimeout=="function"?setTimeout:void 0,VR=typeof clearTimeout=="function"?clearTimeout:void 0,Ky=typeof Promise=="function"?Promise:void 0,GR=typeof queueMicrotask=="function"?queueMicrotask:typeof Ky<"u"?function(r){return Ky.resolve(null).then(r).catch(FR)}:Fy;function FR(r){setTimeout(function(){throw r})}function Qr(r){return r==="head"}function Yy(r,i){var o=i,c=0;do{var f=o.nextSibling;if(r.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(f),Ga(i);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")fo(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,fo(o);for(var m=o.firstChild;m;){var b=m.nextSibling,S=m.nodeName;m[ks]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&m.rel.toLowerCase()==="stylesheet"||o.removeChild(m),m=b}}else o==="body"&&fo(r.ownerDocument.body);o=f}while(o);Ga(i)}function Zy(r,i){var o=r;r=0;do{var c=o.nextSibling;
vendor: 10,363 bytes, line 10
10if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function oh(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":oh(o),dd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function KR(r,i,o,c){for(;r.nodeType===1;){var f=o;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[ks])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(m=r.getAttribute("rel"),m==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(m!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(m=r.getAttribute("src"),(m!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===m)return r}else return r;if(r=_n(r.nextSibling),r===null)break}return null}function YR(r,i,o){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=_n(r.nextSibling),r===null))return null;return r}function Jy(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=_n(r.nextSibling),r===null))return null;return r}function lh(r){return r.data==="$?"||r.data==="$~"}function ch(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ZR(r,i){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||o.readyState!=="loading")i();else{var c=function(){i(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function _n(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var uh=null;function Xy(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(i===0)return _n(r.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}r=r.nextSibling}return null}function Wy(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return r;i--}else o!=="/$"&&o!=="/&"||i++}r=r.previousSibling}return null}function Qy(r,i,o){switch(i=gc(o),r){case"html":if(r=i.documentElement,!r)throw Error(a(452));return r;case"head":if(r=i.head,!r)throw Error(a(453));return r;case"body":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function fo(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);dd(r)}var wn=new Map,eb=new Set;function vc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var vr=J.d;J.d={f:JR,r:XR,D:WR,C:QR,L:eC,m:tC,X:rC,S:nC,M:iC};function JR(){var r=vr.f(),i=lc();return r||i}function XR(r){var i=ua(r);i!==null&&i.tag===5&&i.type==="form"?vv(i):vr.r(r)}var Ha=typeof document>"u"?null:document;function tb(r,i,o){var c=Ha;if(c&&typeof i=="string"&&i){var f=hn(i);f='link[rel="'+r+'"][href="'+f+'"]',typeof o=="string"&&(f+='[crossorigin="'+o+'"]'),eb.has(f)||(eb.add(f),r={rel:r,crossOrigin:o,href:i},c.querySelector(f)===null&&(i=c.createElement("link"),kt(i,"link",r),wt(i),c.head.appendChild(i)))}}function WR(r){vr.D(r),tb("dns-prefetch",r,null)}function QR(r,i){vr.C(r,i),tb("preconnect",r,i)}function eC(r,i,o){vr.L(r,i,o);var c=Ha;if(c&&r&&i){var f='link[rel="preload"][as="'+hn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(f+='[imagesrcset="'+hn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(f+='[imagesizes="'+hn(o.imageSizes)+'"]')):f+='[href="'+hn(r)+'"]';var m=f;switch(i){case"style":m=qa(r);break;case"script":m=Va(r)}wn.has(m)||(r=v({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:r,as:i},o),wn.set(m,r),c.querySelector(f)!==null||i==="style"&&c.querySelector(ho(m))||i==="script"&&c.querySelector(po(m))||(i=c.createElement("link"),kt(i,"link",r),wt(i),c.head.appendChild(i)))}}function tC(r,i){vr.m(r,i);var o=Ha;if(o&&r){var c=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+hn(c)+'"][href="'+hn(r)+'"]',m=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Va(r)}if(!wn.has(m)&&(r=v({rel:"modulepreload",href:r},i),wn.set(m,r),o.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(po(m)))return}c=o.createElement("link"),kt(c,"link",r),wt(c),o.head.appendChild(c)}}}function nC(r,i,o){vr.S(r,i,o);var c=Ha;if(c&&r){var f=da(c).hoistableStyles,m=qa(r);i=i||"default";var b=f.get(m);if(!b){var S={loading:0,preload:null};if(b=c.querySelector(ho(m)))S.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":i},o),(o=wn.get(m))&&dh(r,o);var O=b=c.createElement("link");wt(O),kt(O,"link",r),O._p=new Promise(function(P,q){O.onload=P,O.onerror=q}),O.addEventListener("load",function(){S.loading|=1}),O.addEventListener("error",function(){S.loading|=2}),S.loading|=4,yc(b,i,c)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(m,b)}}}function rC(r,i){vr.X(r,i);var o=Ha;if(o&&r){var c=da(o).hoistableScripts,f=Va(r),m=c.get(f);m||(m=o.querySelector(po(f)),m||(r=v({src:r,async:!0},i),(i=wn.get(f))&&fh(r,i),m=o.createElement("script"),wt(m),kt(m,"link",r),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(f,m))}}function iC(r,i){vr.M(r,i);var o=Ha;if(o&&r){var c=da(o).hoistableScripts,f=Va(r),m=c.get(f);m||(m=o.querySelector(po(f)),m||(r=v({src:r,async:!0,type:"module"},i),(i=wn.get(f))&&fh(r,i),m=o.createElement("script"),wt(m),kt(m,"link",r),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(f,m))}}function nb(r,i,o,c){var f=(f=ge.current)?vc(f):null;if(!f)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=qa(o.href),o=da(f).hoistableStyles,c=o.get(i),c||(c={type:"style",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=qa(o.href);var m=da(f).hoistableStyles,b=m.get(r);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(r,b),(m=f.querySelector(ho(r)))&&!m._p&&(b.instance=m,b.state.loading=5),wn.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},wn.set(r,o),m||aC(f,r,o,b.state))),i&&c===null)throw Error(a(528,""));return b}if(i&&c!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Va(o),o=da(f).hoistableScripts,c=o.get(i),c||(c={type:"script",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function qa(r){return'href="'+hn(r)+'"'}function ho(r){return'link[rel="stylesheet"]['+r+"]"}function rb(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function aC(r,i,o,c){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=r.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),kt(i,"link",o),wt(i),r.head.appendChild(i))}function Va(r){return'[src="'+hn(r)+'"]'}function po(r){return"script[async]"+r}function ib(r,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var c=r.querySelector('style[data-href~="'+hn(o.href)+'"]');if(c)return i.instance=c,wt(c),c;var f=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),wt(c),kt(c,"style",f),yc(c,o.precedence,r),i.instance=c;case"stylesheet":f=qa(o.href);var m=r.querySelector(ho(f));if(m)return i.state.loading|=4,i.instance=m,wt(m),m;c=rb(o),(f=wn.get(f))&&dh(c,f),m=(r.ownerDocument||r).createElement("link"),wt(m);var b=m;return b._p=new Promise(function(S,O){b.onload=S,b.onerror=O}),kt(m,"link",c),i.state.loading|=4,yc(m,o.precedence,r),i.instance=m;case"script":return m=Va(o.src),(f=r.querySelector(po(m)))?(i.instance=f,wt(f),f):(c=o,(f=wn.get(m))&&(c=v({},o),fh(c,f)),r=r.ownerDocument||r,f=r.createElement("script"),wt(f),kt(f,"link",c),r.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,yc(c,o.precedence,r));return i.instance}function yc(r,i,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,m=f,b=0;b<c.length;b++){var S=c[b];if(S.dataset.precedence===i)m=S;else if(m!==f)break}m?m.parentNode.insertBefore(r,m.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(r,i.firstChild))}function dh(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function fh(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var bc=null;function ab(r,i,o){if(bc===null){var c=new Map,f=bc=new Map;f.set(o,c)}
vendor: 4,339 bytes, line 10
10else f=bc,c=f.get(o),c||(c=new Map,f.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),f=0;f<o.length;f++){var m=o[f];if(!(m[ks]||m[Tt]||r==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(i)||"";b=r+b;var S=c.get(b);S?S.push(m):c.set(b,[m])}}return c}function sb(r,i,o){r=r.ownerDocument||r,r.head.insertBefore(o,i==="title"?r.querySelector("head > title"):null)}function sC(r,i,o){if(o===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(r=i.disabled,typeof i.precedence=="string"&&r==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function ob(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function oC(r,i,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var f=qa(c.href),m=i.querySelector(ho(f));if(m){i=m._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=_c.bind(r),i.then(r,r)),o.state.loading|=4,o.instance=m,wt(m);return}m=i.ownerDocument||i,c=rb(c),(f=wn.get(f))&&dh(c,f),m=m.createElement("link"),wt(m);var b=m;b._p=new Promise(function(S,O){b.onload=S,b.onerror=O}),kt(m,"link",c),o.instance=m}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=_c.bind(r),i.addEventListener("load",o),i.addEventListener("error",o))}}var hh=0;function lC(r,i){return r.stylesheets&&r.count===0&&Sc(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&Sc(r,r.stylesheets),r.unsuspend){var m=r.unsuspend;r.unsuspend=null,m()}},6e4+i);0<r.imgBytes&&hh===0&&(hh=62500*HR());var f=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Sc(r,r.stylesheets),r.unsuspend)){var m=r.unsuspend;r.unsuspend=null,m()}},(r.imgBytes>hh?50:800)+i);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function _c(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var wc=null;function Sc(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,wc=new Map,i.forEach(cC,r),wc=null,_c.call(r))}function cC(r,i){if(!(i.state.loading&4)){var o=wc.get(r);if(o)var c=o.get(null);else{o=new Map,wc.set(r,o);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var b=f[m];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(o.set(b.dataset.precedence,b),c=b)}c&&o.set(null,c)}f=i.instance,b=f.getAttribute("data-precedence"),m=o.get(b)||c,m===c&&o.set(null,f),o.set(b,f),this.count++,c=_c.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),m?m.parentNode.insertBefore(f,m.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),i.state.loading|=4}}var mo={$$typeof:x,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function uC(r,i,o,c,f,m,b,S,O){this.tag=1,this.containerInfo=r,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=od(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=od(0),this.hiddenUpdates=od(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function lb(r,i,o,c,f,m,b,S,O,P,q,F){return r=new uC(r,i,o,b,O,P,q,F,S),i=1,m===!0&&(i|=24),m=en(3,null,null,i),r.current=m,m.stateNode=r,i=Gd(),i.refCount++,r.pooledCache=i,i.refCount++,m.memoizedState={element:c,isDehydrated:o,cache:i}
vendor: 4,211 bytes, line 10
10,Zd(m),r}function cb(r){return r?(r=wa,r):wa}function ub(r,i,o,c,f,m){f=cb(f),c.context===null?c.context=f:c.pendingContext=f,c=Hr(i),c.payload={element:o},m=m===void 0?null:m,m!==null&&(c.callback=m),o=qr(r,c,i),o!==null&&(Gt(o,r,i),Fs(o,r,i))}function db(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function ph(r,i){db(r,i),(r=r.alternate)&&db(r,i)}function fb(r){if(r.tag===13||r.tag===31){var i=Ni(r,67108864);i!==null&&Gt(i,r,67108864),ph(r,67108864)}}function hb(r){if(r.tag===13||r.tag===31){var i=sn();i=ld(i);var o=Ni(r,i);o!==null&&Gt(o,r,i),ph(r,i)}}var Ec=!0;function dC(r,i,o,c){var f=I.T;I.T=null;var m=J.p;try{J.p=2,mh(r,i,o,c)}finally{J.p=m,I.T=f}}function fC(r,i,o,c){var f=I.T;I.T=null;var m=J.p;try{J.p=8,mh(r,i,o,c)}finally{J.p=m,I.T=f}}function mh(r,i,o,c){if(Ec){var f=gh(c);if(f===null)th(r,i,c,Ac,o),mb(r,c);else if(pC(f,r,i,o,c))c.stopPropagation();else if(mb(r,c),i&4&&-1<hC.indexOf(r)){for(;f!==null;){var m=ua(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var b=Ri(m.pendingLanes);if(b!==0){var S=m;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var O=1<<31-Wt(b);S.entanglements[1]|=O,b&=~O}qn(m),(Fe&6)===0&&(sc=Jt()+500,lo(0))}}break;case 31:case 13:S=Ni(m,2),S!==null&&Gt(S,m,2),lc(),ph(m,2)}if(m=gh(c),m===null&&th(r,i,c,Ac,o),m===f)break;f=m}f!==null&&c.stopPropagation()}else th(r,i,c,null,o)}}function gh(r){return r=vd(r),vh(r)}var Ac=null;function vh(r){if(Ac=null,r=ca(r),r!==null){var i=l(r);if(i===null)r=null;else{var o=i.tag;if(o===13){if(r=u(i),r!==null)return r;r=null}else if(o===31){if(r=d(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Ac=r,null}function pb(r){switch(r){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(WA()){case Sm:return 2;case Em:return 8;case hl:case QA:return 32;case Am:return 268435456;default:return 32}default:return 32}}var yh=!1,ei=null,ti=null,ni=null,go=new Map,vo=new Map,ri=[],hC="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 mb(r,i){switch(r){case"focusin":case"focusout":ei=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ni=null;break;case"pointerover":case"pointerout":go.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(i.pointerId)}}function yo(r,i,o,c,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:i,domEventName:o,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},i!==null&&(i=ua(i),i!==null&&fb(i)),r):(r.eventSystemFlags|=c,i=r.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),r)}function pC(r,i,o,c,f){switch(i){case"focusin":return ei=yo(ei,r,i,o,c,f),!0;case"dragenter":return ti=yo(ti,r,i,o,c,f),!0;case"mouseover":return ni=yo(ni,r,i,o,c,f),!0;case"pointerover":var m=f.pointerId;
10return go.set(m,yo(go.get(m)||null,r,i,o,c,f)),!0;case"gotpointercapture":return m=f.pointerId,vo.set(m,yo(vo.get(m)||null,r,i,o,c,f)),!0}return!1}function gb(r){var i=ca(r.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){r.blockedOn=i,Om(r.priority,function(){hb(o)});return}}else if(i===31){if(i=d(o),i!==null){r.blockedOn=i,Om(r.priority,function(){hb(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Tc(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=gh(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);gd=c,o.target.dispatchEvent(c),gd=null}else return i=ua(o),i!==null&&fb(i),r.blockedOn=o,!1;i.shift()}return!0}function vb(r,i,o){Tc(r)&&o.delete(i)}function mC(){yh=!1,ei!==null&&Tc(ei)&&(ei=null),ti!==null&&Tc(ti)&&(ti=null),ni!==null&&Tc(ni)&&(ni=null),go.forEach(vb),vo.forEach(vb)}function Rc(r,i){r.blockedOn===i&&(r.blockedOn=null,yh||(yh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,mC)))}var Cc=null;function yb(r){Cc!==r&&(Cc=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Cc===r&&(Cc=null);for(var i=0;i<r.length;i+=3){var o=r[i],c=r[i+1],f=r[i+2];if(typeof c!="function"){if(vh(c||o)===null)continue;break}var m=ua(o);m!==null&&(r.splice(i,3),i-=3,gf(m,{pending:!0,data:f,method:o.method,action:c},c,f))}}))}function Ga(r){function i(O){return Rc(O,r)}ei!==null&&Rc(ei,r),ti!==null&&Rc(ti,r),ni!==null&&Rc(ni,r),go.forEach(i),vo.forEach(i);for(var o=0;o<ri.length;o++){var c=ri[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<ri.length&&(o=ri[0],o.blockedOn===null);)gb(o),o.blockedOn===null&&ri.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var f=o[c],m=o[c+1],b=f[Pt]||null;if(typeof m=="function")b||yb(o);else if(b){var S=null;if(m&&m.hasAttribute("formAction")){if(f=m,b=m[Pt]||null)S=b.formAction;else if(vh(f)!==null)continue}else S=b.action;typeof S=="function"?o[c+1]=S:(o.splice(c,3),c-=3),yb(o)}}}function bb(){function r(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function bh(r){this._internalRoot=r}xc.prototype.render=bh.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,c=sn();ub(o,c,r,i,null,null)},xc.prototype.unmount=bh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;ub(r.current,2,null,r,null,null),lc(),i[la]=null}};function xc(r){this._internalRoot=r}xc.prototype.unstable_scheduleHydration=function(r){if(r){var i=km();r={blockedOn:null,target:r,priority:i};for(var o=0;o<ri.length&&i!==0&&i<ri[o].priority;o++);ri.splice(o,0,r),o===0&&gb(r)}};var _b=e.version;if(_b!=="19.2.5")throw Error(a(527,_b,"19.2.5"));J.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=p(i),r=r!==null?g(r):null,r=r===null?null:r.stateNode,r};var gC={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kc.isDisabled&&kc.supportsFiber)try{Rs=kc.inject(gC),Xt=kc}catch{}}return _o.createRoot=function(r,i){if(!s(r))throw Error(a(299));var o=!1,c="",f=Cv,m=xv,b=kv;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError)),i=lb(r,1,!1,null,null,o,c,null,f,m,b,bb),r[la]=i.current,eh(r),new bh(i)},_o.hydrateRoot=function(r,i,o){if(!s(r))throw Error(a(299));var c=!1,f="",m=Cv,b=xv,S=kv,O=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.formState!==void 0&&(O=o.formState)),i=lb(r,1,!0,i,o??null,c,f,O,m,b,S,bb),i.context=cb(null),o=i.current,c=sn(),c=ld(c),f=Hr(c),f.callback=null,qr(o,f,c),o=c,i.current.lanes=o,xs(i,o),qn(i),r[la]=i.current,eh(r),new xc(i)},_o.version="19.2.5",_o}var Ob;function RC(){if(Ob)return Sh.exports;Ob=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(),Sh.exports=TC(),Sh.exports}var CC=RC(),xC="__TSS_CONTEXT",np=Symbol.for("TSS_SERVER_FUNCTION"),kC="application/x-tss-framed",W_=()=>window.__TSS_START_OPTIONS__;function Q_(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function Wi(t){return t?.isNotFound===!0}function Iu(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 n=new Response(null,{status:t.statusCode,headers:e});if(n.options=t,t.throw)throw n;return n}function ew(t){return t instanceof Response&&!!t.options}function OC(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return Iu(t)}function NC(t){return t.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(e,n)=>n==="0"?"\0":n==="r"?"�":n)}const Nb=!1;function yi(t){return t[t.length-1]}function tw(t,e){return typeof t=="function"?t(e):t}const zp=Object.prototype.hasOwnProperty;function nw(t){for(const e in t)if(zp.call(t,e))return!0;return!1}const Qc=()=>Object.create(null),Fa=(t,e)=>mi(t,e,!0);function mi(t,e,n,a=0){if(t===e)return t;if(a++>500)return e;const s=Array.isArray(t)&&Array.isArray(e);if(!s&&!(hu(t)&&hu(e)))return e;const l=Object.keys(t),u=l.length,d=Object.keys(e),h=d.length;if(s?u!==t.length||h!==e.length||u&&yi(l)!==`${u-1}`||h&&yi(d)!==`${h-1}`:u!==Object.getOwnPropertyNames(t).length||h!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let p=0,g,v,y;if(s){for(;p<h&&(y=p,v=t[y],g=e[y],g=v===g?v:typeof v=="object"?mi(v,g,n,a):g,g
10===v);p++);if(p===h&&u===h)return t}else{let E=u===h,w=!0;for(;p<h;p++){y=d[p],v=t[y];const A=e[y];g=v===A?v:typeof v=="object"?mi(v,A,n,a):A,E&&=g===v&&(l[p]===y||zp.call(t,y)),w&&=Object.is(g,A),l[p]=g}if(E)return Object.getOwnPropertySymbols(t).length?e:t;if(w)return e}const _=s?d.fill(0):n?Qc():{};for(let E=0;E<h;E++)y=s?E:d[E],s?(v=t[y],E>p&&(g=e[y],g=v===g?v:typeof v=="object"?mi(v,g,n,a):g),_[y]=E<p?v:g):_[y]=l[E];return _}function hu(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}function zn(t,e,n,a){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let s=0,l=t.length;s<l;s++){const u=t[s],d=e[s];if(u!==d&&!zn(u,d,n,a))return!1}return!0}if(hu(t)&&hu(e)){if(n){for(const l in e)if((a||e[l]!==void 0)&&!zn(t[l],e[l],n,a))return!1;return!0}let s=0;if(a)s=Object.keys(t).length;else for(const l in t)t[l]!==void 0&&s++;for(const l in e)if((a||e[l]!==void 0)&&(s--===0||!zn(t[l],e[l],n,a)))return!1;return s===0}return!1}function jC(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 DC=/[\x00-\x1f\x7f"<>`{}]/g;function LC(t){return t.replace(DC,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function jb(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return LC(e)}const zC=["http:","https:","mailto:","tel:"];function Mo(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 rw=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function iw(t,e){if(!t)return!1;if(rw.test(t))return!0;const n=Mo(t);return n?!e.has(n):!1}const MC={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},IC=/[&><\u2028\u2029]/g;function UC(t){return t.replace(IC,e=>MC[e])}function wo(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){const n=/%25|%5C/gi;let a=0,s;for(e="";(s=n.exec(t))!==null;)e+=jb(t.slice(a,s.index))+s[0],a=n.lastIndex;e+=jb(a?t.slice(a):t)}return e}function PC(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function BC(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function fs(t){return t.replace(/\/{2,}/g,"/")}function aw(t){return t==="/"?t:t.replace(/^\/+/,"")}function Zn(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}function sw(t){return Zn(aw(t))}function Db(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function Lb(t,e,n="never",a){if(e.includes("//")&&(e=fs(e)),e.startsWith("/"))return e.length===1||n==="preserve"?e:n==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;const s=e===".";let l;if(a){l=s?t:t+"\0"+e;const p=a.get(l);if(p)return p}let u;if(s)u=t.split("/");else{for(t.includes("//")&&(t=fs(t)),u=t.split("/");u.length>1&&yi(u)==="";)u.pop();const p=e.split("/");for(let g=0,v=p.length;g<v;g++){const y=p[g];y===""?g?g===v-1&&u.push(y):u=[y]:y===".."?u.length>1?u.pop():u=[""]:y==="."||u.push(y)}}u.length>1&&(yi(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const d=u.join("/"),h=(s?fs(d):d)||"/";return l&&a&&a.set(l,h),h}function $C(t){const e=new Map(t.map(a=>[encodeURIComponent(a),a])),n=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return a=>a.replace(n,s=>e.get(s)??s)}function HC(t){return t==null||t===""}function qC(t,e,n){if(typeof e!="string")return""+(e??void 0);const a=t==="_splat";if(a&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let s=encodeURIComponent(e);return a&&(s=s.replaceAll("%2F","/")),n?n(s):s}function zb(t,e,n,a,s){const l=t.endsWith("/")?"/":"";let u="";for(const d of e){if(typeof d=="string"){u+=d;continue}const[h,p,g,v]=d,y=h===2,_=y&&v!==void 0?v+l:v;let E=n[p];if(!(h===3&&E==null)){if(s&&(s[p]=E,y&&(s["*"]=E)),y&&HC(E)){if(g==="/"&&!_)continue;E=""}u+=g+qC(p,E,a)+(_||"")}}return u+l||"/"}function pu(t){const e=new Map;let n,a;return{get(s){const l=e.get(s);if(l)return l.visited=!0,l.value},set(s,l){const u=e.get(s);if(u){u.value=l;return}if(e.size>=t){let h=n?.next().value;for(;!h||h.visited;)h?h.visited=!1:n=e.values(),h=n.next().value;h===a&&(n=void 0),e.delete(h.key)}const d={key:s,value:l,visited:!1};a=d,e.set(s,d)},clear(){e.clear(),n=void 0,a=void 0}}}function Io(){throw new Error("Invariant failed")}const hi=4,ow=5;function VC(t){const e=t.names;if(e)return e;const n=[];for(const a of t)typeof a!="string"&&n.push(a[1]);return t.names=n}function GC(t,e,n){const a=t.substring(e,n);
10if(a.charCodeAt(0)===36)return a.length===1?[2,"_splat","",void 0]:[1,a.substring(1),"",""];const s=a.indexOf("{");if(s>=0){const l=a.indexOf("}",s),u=a.charCodeAt(s+1)===45,d=s+(u?3:2);if(l>=0&&a.charCodeAt(d-1)===36&&(!u||d<l)){const h=a.substring(d,l);return[u?3:h?1:2,h||"_splat",a.substring(0,s),t.substring(e+l+1,h?n:t.length)]}}return a}function Uo(t,e,n,a,s,l){let u=n;const d=e.fullPath??e.from,h=e.options,p=d.length,g=d.endsWith("/")?p-1:p,v=h?.caseSensitive??t,y=h?.params?.parse??h?.parseParams;let _,E=l?n-1:0;if(!a||d.includes("$")){_=l?.slice()??[];const T=yi(_);T&&typeof T!="string"&&T[0]===2&&(_[_.length-1]=[T[0],T[1],T[2],T[3]===void 0?void 0:T[3]+d.substring(n-(d[n-2]==="/"?2:1),g)],E=p)}for(;u<p;){const T=u,C=d.indexOf("/",T);let x=C===-1?p:C;const z=GC(d,T,x);u=x+1;let Y;if(typeof z=="string"){if(!a)continue;let M=z,N;v?N=a.static??=new Map:(M=z.toLowerCase(),N=a.staticInsensitive??=new Map);const B=N.get(M);if(B)Y=B;else{const X=Ki(a);Y=X,N.set(M,X)}}else{const M=z[0];let N=z[2],B=z[3]??"";if(M===2&&(x=p,u=x+1),_&&E<x&&(E<T-1&&_.push(d.substring(E,T-1)),z[2]="/"+N,M===2&&z[3]!==void 0&&g<p&&(z[3]=B.slice(0,-1)),_.push(z),E=x),!a)continue;const X=v&&!!(N||B);v||(N=N.toLowerCase(),B=B.toLowerCase());const se=M===1?a.dynamic??=[]:M===3?a.optional??=[]:a.wildcard??=[],K=M!==2&&!y&&se.find(Z=>!Z.parse&&Z.caseSensitive===X&&Z.prefix===N&&Z.suffix===B);if(K)Y=K;else{const Z=Ki(a,M,X,N,B);Y=Z,se.push(Z),se.length===2&&s?.push(se)}}a=Y}_&&E<g&&_.push(d.substring(E,g));const w=_?.slice();if(!a)return w;if(y&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const T=Ki(a,ow);(a.pathless??=[]).push(T),a=T}const A=(e.path||!e.children)&&!e.isRoot;if(A&&g<p){const T=Ki(a,hi);a.index=T,a=T}return a.parse=y??null,a.priority=h?.params?.priority??0,a.route||(a.data=w,A&&(a.route=e)),[a,u,w]}function lw(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 Ki(t,e=0,n,a,s){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:n,prefix:a,suffix:s}}function FC(t,e){const n=Ki(),a=[];function s(l,u,d,h){const[p,g,v]=Uo(!1,l,u,d,a,h);if(l.children)for(const y of l.children)s(y,g,p,v)}for(const l of t)s(l,1,n);for(const l of a)l.sort(lw);e.masksTree=n,e.flatCache=pu(1e3)}function KC(t,e){t||="/";const n=e.flatCache.get(t);if(n!==void 0)return n;const a=Mp(t,e.masksTree);return e.flatCache.set(t,a),a}function YC(t,e,n,a,s){t||="/",a||="/";const l=e?`case\0${t}`:t;let u=s.singleCache.get(l);return u||(u=Ki(),Uo(e,{from:t},1,u),s.singleCache.set(l,u)),Mp(a,u,n)}function ZC(t,e,n=!1){const a=n?t:`nofuzz\0${t}`,s=e.matchCache.get(a);if(s!==void 0)return s;t||="/";let l;try{l=Mp(t,e.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=uw(l.route)),e.matchCache.set(a,l),l}function JC(t,e=!1){const n=Ki(),a=[],s={},l={};let u=0;function d(h,p,g,v){if(h.init(u),h.id in s&&Io(),s[h.id]=h,u!==0&&h.path){const w=Zn(h.fullPath);(!l[w]||h.fullPath.endsWith("/"))&&(l[w]=h)}u++;const[y,_,E]=Uo(e,h,p,g,a,v);if(h._interpolation=E,h.children)for(const w of h.children)d(w,_,y,E)}d(t,1,n);for(const h of a)h.sort(lw);return{processedTree:{segmentTree:n,singleCache:pu(1e3),matchCache:pu(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:l}}function Mp(t,e,n=!1){const a=t.split("/"),s=WC(t,a,e,n);if(!s)return null;const[l]=cw(t,a,s);return{route:s.node.route,rawParams:l}}function cw(t,e,n){const a=XC(n.node),s=n.node.data&&VC(n.node.data),l=Object.create(null);let u=n.extract?.part??0,d=n.extract?.node??0,h=n.extract?.path??0,p=n.extract?.param??0;for(;d<a.length;u++,d++,h++){const g=a[d];if(g.kind===hi)break;if(g.kind===ow){u--,h--;continue}const v=e[u],y=h;if(v&&(h+=v.length),g.kind===1||g.kind===3){const _=s[p++];if(g.kind===3&&n.skipped&1<<d){u--,h=y-1;continue}const E=g.suffix||g.prefix?v.substring(g.prefix.length,v.length-g.suffix.length):v;(E||g.kind===1)&&(l[_]=decodeURIComponent(E))}else if(g.kind===2){const _=g,E=t.substring(y+_.prefix.length,t.length-_.suffix.length),w=decodeURIComponent(E);l["*"]=w,l._splat=w;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:u,node:d,path:h,param:p}]}function uw(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function XC(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function WC(t,e,n,a){if(t==="/"&&n.index)return{node:n.index,skipped:0};const s=!yi(e),l=s&&t!=="/",u=e.length-(s?1:0),d=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let h=null,p=null;for(;d.length;){const g=d.pop(),{node:v,index:y,skipped:_,statics:E,dynamics:w,optionals:A}=g;let{extract:T,rawParams:C}=g;if(v.kind===2&&v.route&&!Nc(p,g))continue;if(v.parse){if(!Mb(t,e,g))continue;C=g.rawParams,T=g.extract}
10a&&v.route&&v.kind!==hi&&Nc(h,g)&&(h=g);const x=y===u;if(x&&(v.route&&(!l||v.kind===hi||v.kind===2)&&Nc(p,g)&&(p=g),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const z=x?void 0:e[y];let Y;if(x&&v.index){const M={node:v.index,index:y,skipped:_,statics:E,dynamics:w,optionals:A,extract:T,rawParams:C};let N=!0;if(v.index.parse&&(Mb(t,e,M)||(N=!1)),N){if(!w&&!A&&!_&&QC(E,u))return M;Nc(p,M)&&(p=M)}}if(v.wildcard)for(let M=v.wildcard.length-1;M>=0;M--){const N=v.wildcard[M],{prefix:B,suffix:X}=N;if(!(B&&(x||!(N.caseSensitive?z:Y??=z.toLowerCase()).startsWith(B)))){if(X){if(x)continue;const se=e.slice(y).join("/"),K=se.slice(-X.length);if((N.caseSensitive?K:K.toLowerCase())!==X||se.length-X.length<B.length)continue}d.push({node:N,index:u,skipped:_,statics:E,dynamics:w,optionals:A,extract:T,rawParams:C})}}if(v.optional){const M=_|1<<v.depth+1;for(let N=v.optional.length-1;N>=0;N--){const B=v.optional[N];d.push({node:B,index:y,skipped:M,statics:E,dynamics:w,optionals:A,extract:T,rawParams:C})}if(!x)for(let N=v.optional.length-1;N>=0;N--){const B=v.optional[N],{prefix:X,suffix:se}=B;if(X||se){const K=B.caseSensitive?z:Y??=z.toLowerCase();if(X&&!K.startsWith(X)||se&&K.indexOf(se,K.length-se.length)<X.length)continue}d.push({node:B,index:y+1,skipped:_,statics:E,dynamics:w,optionals:A+Oc(u,y),extract:T,rawParams:C})}}if(!x&&v.dynamic&&z)for(let M=v.dynamic.length-1;M>=0;M--){const N=v.dynamic[M],{prefix:B,suffix:X}=N;if(B||X){const se=N.caseSensitive?z:Y??=z.toLowerCase();if(B&&!se.startsWith(B)||X&&se.indexOf(X,se.length-X.length)<B.length)continue}d.push({node:N,index:y+1,skipped:_,statics:E,dynamics:w+Oc(u,y),optionals:A,extract:T,rawParams:C})}if(!x&&v.staticInsensitive){const M=v.staticInsensitive.get(Y??=z.toLowerCase());M&&d.push({node:M,index:y+1,skipped:_,statics:E+Oc(u,y),dynamics:w,optionals:A,extract:T,rawParams:C})}if(!x&&v.static){const M=v.static.get(z);M&&d.push({node:M,index:y+1,skipped:_,statics:E+Oc(u,y),dynamics:w,optionals:A,extract:T,rawParams:C})}if(v.pathless)for(let M=v.pathless.length-1;M>=0;M--){const N=v.pathless[M];d.push({node:N,index:y,skipped:_,statics:E,dynamics:w,optionals:A,extract:T,rawParams:C})}}if(p)return p;if(a&&h){let g=h.index;for(let y=0;y<h.index;y++)g+=e[y].length;const v=g===t.length?"/":t.slice(g);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(v),h}return null}function Oc(t,e){return 2**(t-e-1)}function QC(t,e){return t===2**(e-1)-1}function Mb(t,e,n){let a,s;try{[a,s]=cw(t,e,n)}catch{return null}if(n.rawParams=a,n.extract=s,!n.node.parse)return!0;try{if(n.node.parse(a)===!1)return null}catch{}return!0}function Nc(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===hi)>(t.node.kind===hi)||e.node.kind===hi==(t.node.kind===hi)&&e.node.depth>t.node.depth))):!0}function ex(){try{return sessionStorage}catch{return}}const tx="tsr-scroll-restoration-v1_3",dw=ex();function nx(){try{return JSON.parse(dw?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const Ka=nx(),Ib="data-scroll-restoration-id",rx=t=>t.state.__TSR_key||t.href;function ix(t){const e=t.getAttribute(Ib);if(e)return`[${Ib}="${e}"]`;let n="",a=t,s;for(;s=a.parentNode;){let l=1,u=a;for(;u=u.previousElementSibling;)l++;const d=`${a.localName}:nth-child(${l})`;n=n?`${d} > ${n}`:d,a=s}return n}let jc=!1;const eu="window";function rp(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Ub(t){const e=new Set;for(const n of t){if(n===eu)continue;const a=rp(n);a&&e.add(a)}return e}function ax(t,e){const n=t.options.scrollRestoration,a=t._scroll;n&&(a.e=!0);const s=t.options.getScrollRestorationKey||rx,l=new Set,u=d=>{const h=Ka[d]||={};for(const p of l)p===document?h[eu]={scrollX,scrollY}:p.isConnected&&(h[ix(p)]={scrollX:p.scrollLeft,scrollY:p.scrollTop})};n&&!a.s&&(a.s=!0,jc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{jc||l.add(d.target)},!0),t.subscribe("onBeforeLoad",d=>{d.fromLocation&&u(s(d.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(s(t.stores.resolvedLocation.get()??t.stores.location.get()));try{dw?.setItem(tx,JSON.stringify(Ka))}catch{}}),addEventListener("pageshow",d=>{d.persisted&&(history.scrollRestoration="manual")})),!a.r&&(a.r=!0,t.subscribe("onRendered",d=>{const h=t.options.scrollRestorationBehavior,p=t.options.scrollToTopSelectors,g=a.n,v=a.h;let y;if(l.clear(),a.n=!0,a.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const _=s(d.toLocation),E=d.fromLocation&&s(d.fromLocation);if(a.e&&E&&E!==_){const w=Ka[E];if(w){let A=Ka[_];for(const T in w){if(T===eu){if(g)continue}else{const C=rp(T);if(!C||g&&p&&(y??=Ub(p),y.has(C)))continue}A||(A=Ka[_]={}),A[T]??=w[T]}}}jc=!0;try{const w=d.toLocation.hash,A=d.toLocation.state.__hashScrollIntoViewOptions??!0;let T=!1;if(g){!w&&p&&(y??=Ub(p));const C=w&&A&&v,x=a.e?Ka[_]:void 0;if(x)for(const z in x){const{scrollX:Y,scrollY:M}=x[z];if(z===eu){if(C)continue;scrollTo({top:M,left:Y,behavior:h}),T=!0}else{const N=rp(z);N&&(N.scrollLeft=Y,N.scrollTop=M,y?.delete(N))}}if(!w){const z={top:0,left:0,behavior:h};if(T||scrollTo(z),y)for(const Y of y)Y.scrollTo(z)}}!T&&w&&A&&document.getElementById(w)?.scrollIntoView(A)}finally{jc=!1}}))}function fw(t,e=String){let n;for(const a in t){const s=t[a];s!==void 0&&(n||=new URLSearchParams).set(a,e(s))}return n?n.toString():""}function Rh(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function sx(t){const e=new URLSearchParams(t),n=Object.create(null);for(const[a,s]of e.entries()){const l=n[a];l==null?n[a]=Rh(s):Array.isArray(l)?l.push(Rh(s)):n[a]=[l,Rh(s)]}return n}const hw=/^(?:\s|["[{\d-]|fa|nu|tr)/,ox=cx(JSON.parse),lx=ux(JSON.stringify,JSON.parse);function cx(t){const e=t===JSON.parse;return n=>{n[0]==="?"&&(n=n.substring(1));const a=sx(n);for(const s in a){const l=a[s];if(typeof l=="string"){if(e&&!hw.test(l))continue;try{a[s]=t(l)}catch{}}}return a}}function ux(t,e){const n=e===JSON.parse;function a(s){if(s&&typeof s=="object")try{return t(s)}catch{}else if(e&&typeof s=="string"){if(n&&!hw.test(s))return s;try{return e(s),t(s)}catch{}}return s}return s=>{const l=fw(s,a);return l?`?${l}`:""}}const hs="__root__";function dx(t,e,n){const a=sw(t),s=`/${a}`,l=e?s:s.toLowerCase(),u=`${l}/`,d={input:({url:h})=>{const p=e?h.pathname:h.pathname.toLowerCase();return p===l?h.pathname="/":p.startsWith(u)&&(h.pathname=h.pathname.slice(s.length)),h},output:({url:h})=>(h.pathname=fs(`/${a}${h.pathname}`),h)};
10return n?{input:({url:h})=>ip(n,d.input({url:h})),output:({url:h})=>d.output({url:pw(n,h)})}:d}function ip(t,e){const n=t?.input?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function pw(t,e){const n=t?.output?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function fx(t,e){const{createMutableStore:n,createReadonlyStore:a,batch:s}=e,l=new Map,u=n("idle"),d=n(t),h=n(void 0),p=n([]),g=a(()=>p.get().map(w=>l.get(w).get())),v=a(()=>({status:u.get(),isLoading:u.get()==="pending",matches:g.get(),location:d.get(),resolvedLocation:h.get()}));function y(w){let A=l.get(w);return A||(A=n(void 0),l.set(w,A)),A}const _={status:u,location:d,resolvedLocation:h,ids:p,matches:g,byRoute:l,__store:v,getMatchStore:y,setMatches:E};function E(w){const A=p.get(),T=w.map(C=>C.routeId);s(()=>{BC(A,T)||p.set(T);for(const C of A)T.includes(C)||l.get(C).set(()=>{});for(const C of w){const x=y(C.routeId);x.get()!==C&&x.set(C)}})}return _}var gi="__TSR_index",Pb="popstate",Bb="beforeunload",hx=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function tu(t){const e=hx.exec(t);return e?"/"+t.slice(e[0].length):t}function mw(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>`	
11\r`.includes(e)?"":encodeURIComponent(e))),tu(t)}function px(t){let e=t.getLocation();const n=new Set,a=u=>{e=t.getLocation(),n.forEach(d=>d({location:e,action:u}))},s=u=>{t.notifyOnIndexChange??!0?a(u):e=t.getLocation()},l=async({task:u,navigateOpts:d,...h})=>{if(d?.ignoreBlocker??!1){u();return}const p=t.getBlockers?.()??[],g=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&p.length&&g)for(const v of p){const y=mu(h.path,h.state);if(await v.blockerFn({currentLocation:e,nextLocation:y,action:h.type})){t.onBlocked?.();return}}u()};return{get location(){return e},get length(){return t.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,d,h)=>{const p=e.state[gi];d=$b(p+1,d),l({task:()=>{t.pushState(u,d),a({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:d})},replace:(u,d,h)=>{const p=e.state[gi];d=$b(p,d),l({task:()=>{t.replaceState(u,d),a({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:d})},go:(u,d)=>{l({task:()=>{t.go(u,d?.ignoreBlocker??!1),s({type:"GO",index:u})},navigateOpts:d,type:"GO"})},back:u=>{l({task:()=>{t.back(u?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{l({task:()=>{t.forward(u?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>e.state[gi]!==0,createHref:u=>t.createHref(u),block:u=>{if(!t.setBlockers)return()=>{};const d=t.getBlockers?.()??[];return t.setBlockers([...d,u]),()=>{const h=t.getBlockers?.()??[];t.setBlockers?.(h.filter(p=>p!==u))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:a,_getBlockers:()=>t.getBlockers?.()??[]}}function $b(t,e){const n=Ip();return{...e,key:n,__TSR_key:n,[gi]:t}}function mx(t){const e=typeof document<"u"?window:void 0,n=e.history.pushState,a=e.history.replaceState;let s=[];const l=()=>s,u=N=>s=N,d=N=>mw(N),h=(()=>mu(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const N=Ip();e.history.replaceState({[gi]:0,key:N,__TSR_key:N},"")}let p=h(),g,v=!1,y=!1,_=!1,E=!1;const w=()=>p;let A;const T=()=>{A&&(M._ignoreSubscribers=!0,(A[2]?e.history.pushState:e.history.replaceState)(A[1],"",A[0]),M._ignoreSubscribers=!1,A=void 0,g=void 0)},C=(N,B,X)=>{const se=!!A;se||(g=p),p=mu(B,X),A=[p.href,X,A?.[2]||N],se||queueMicrotask(()=>T())},x=N=>{p=h(),M.notify({type:N})},z=async()=>{if(E=!1,y){y=!1;return}const N=h(),B=N.state[gi]-p.state[gi],X=B===1,se=B===-1,K=!X&&!se||v;v=!1;const Z=K?"GO":se?"BACK":"FORWARD",ne=K?{type:"GO",index:B}:{type:se?"BACK":"FORWARD"};if(_)_=!1;else{const we=l();if(typeof document<"u"&&we.length){for(const oe of we)if(await oe.blockerFn({currentLocation:p,nextLocation:N,action:Z})){y=!0,e.history.go(-B),M.notify(ne);return}}}p=h(),M.notify(ne)},Y=N=>{if(E){E=!1;return}let B=!1;const X=l();if(typeof document<"u"&&X.length)for(const se of X){const K=se.enableBeforeUnload??!0;if(K===!0){B=!0;break}if(typeof K=="function"&&K()===!0){B=!0;break}}if(B)return N.preventDefault(),N.returnValue=""},M=px({getLocation:w,getLength:()=>e.history.length,pushState:(N,B)=>C(!0,N,B),replaceState:(N,B)=>C(!1,N,B),back:N=>(N&&(_=!0,E=!0),e.history.back()),forward:N=>{N&&(_=!0,E=!0),e.history.forward()},go:(N,B)=>{v=!0,B&&(_=!0,E=!0),e.history.go(N)},createHref:N=>d(N),flush:T,destroy:()=>{e.history.pushState=n,e.history.replaceState=a,e.removeEventListener(Bb,Y,{capture:!0}),e.removeEventListener(Pb,z)},onBlocked:()=>{g&&p!==g&&(p=g)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return M._ignoreNextBeforeUnload=N=>{E=!1;try{N=new URL(N,e.document.baseURI).href,E=/^https?:/.test(N)&&(!N.includes("#")||N.split("#")[0]!==e.location.href.split("#")[0])}catch{}},e.addEventListener(Bb,Y,{capture:!0}),e.addEventListener(Pb,z),e.history.pushState=function(...N){const B=n.apply(e.history,N);
11return M._ignoreSubscribers||x("PUSH"),B},e.history.replaceState=function(...N){const B=a.apply(e.history,N);return M._ignoreSubscribers||x("REPLACE"),B},M}function mu(t,e){const n=mw(t),a=n.indexOf("#"),s=n.indexOf("?");if(!e){const l=Ip();e={[gi]:0,key:l,__TSR_key:l}}return{href:n,pathname:n.substring(0,a>0?s>0?Math.min(a,s):a:s>0?s:n.length),hash:a>-1?n.substring(a):"",search:s>-1?n.slice(s,a===-1?void 0:a):"",state:e}}function Ip(){return(Math.random()+1).toString(36).substring(7)}function Ch(t,e){return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==e||!!t.username||!!t.password}function xh(t){return t.pathname+t.search+t.hash}function Hb(t){return t.options.loader||t.options.beforeLoad||t.lazyFn||t.options.component?.preload||t.options.pendingComponent?.preload}function gx(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function Uu(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}function qb({key:t,__TSR_key:e,__TSR_index:n,__hashScrollIntoViewOptions:a,...s}){return s}function gw(t){return t.findIndex(e=>e.status==="error"||e.status==="notFound"||e._notFound)+1}function vx(t,e,n,a,s,l){a&&(e=e.slice(0,a)),s&&(n=n.slice(0,s));for(const u of e){if(l&&t._tx!==l)return;n.some(d=>d.routeId===u.routeId)||t.routesById[u.routeId].options.onLeave?.(u)}for(const u of n){if(l&&t._tx!==l)return;t.routesById[u.routeId].options[e.some(d=>d.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var yx=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 n=>(n(),!1),this.update=n=>{const a=this.options;this.options={...a,...n},this.isServer=this.options.isServer??Nb??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=mx()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const s=this.options.basepath??"/",l=this.options.rewrite,u=this.basepath!==s||a?.rewrite!==l||a?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=s,this.rewrite=s!=="/"&&sw(s)?dx(s,this.options.caseSensitive,l):l),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||Nb){this.routeTree=this.options.routeTree;let d;d=this.buildRouteTree(),this.setRoutes(d)}if(this.stores)u&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=fx(this.latestLocation,d),ax(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=JC(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&FC(this.options.routeMasks,n.processedTree),{...n,resolvePathCache:pu(1e3)}},this.subscribe=(n,a)=>{const s={eventType:n,fn:a};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{for(const a of this.subscribers)if(a.eventType===n.type)try{a.fn(n)}catch(s){console.error(s)}},this.parseLocation=(n,a)=>{const s=({pathname:h,search:p,hash:g,href:v},y)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const A=this.options.parseSearch(p),T=this.options.stringifySearch(A);return{href:h+T+g,publicHref:h+T+g,pathname:wo(h),external:!1,searchStr:T,search:Fa(a?.search,A),hash:wo(g.slice(1)),state:mi(a?.state,y)}}const _=ip(this.rewrite,new URL(v,this.origin)),E=this.options.parseSearch(_.search),w=this.options.stringifySearch(E);return _.search=w,{href:_.href.replace(_.origin,""),publicHref:v,pathname:wo(tu(_.pathname)),external:!!this.rewrite&&Ch(_,this.origin),searchStr:w,search:Fa(a?.search,E),hash:wo(_.hash.slice(1)),state:mi(a?.state,y)}},l=s(n,n.state),{__tempLocation:u,__tempKey:d}=l.state;if(u&&(!d||d===this.tempLocationKey)){const h=s(u,{...u.state,__tempLocation:void 0,key:l.state.key,__TSR_key:l.state.__TSR_key});return h.maskedLocation=l,h}return l},this.matchRoutes=(n,a,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:a},s):this.matchRoutesInternal(n,a),this.getMatchedRoutes=n=>{const a=Object.create(null),s=ZC(Zn(n),this.processedTree,!0);return s&&Object.assign(a,s.rawParams),[s?.branch||[this.routesById.__root__],a,s?.route]},this.buildLocation=n=>{{const u=this.staticLocations.get(n);if(u)return u}let a=!1;const s=(u={})=>
11{if(u.href){const we=mu(u.href,{});u={...u,to:ip(this.rewrite,new URL(we.pathname,this.origin)).pathname,search:this.options.parseSearch(we.search),hash:we.hash.slice(1)}}const d=u._fromLocation||this._pendingLocation||this.latestLocation;let h;const p=()=>(a=!0,d),g=()=>(a=!0,h??=this.matchRoutesLightweight(d)),v=u.to?`${u.to}`:".",y=Lb(v[0]==="/"?"":u.unsafeRelative==="path"?p().pathname:u.from??g()[1],v,this.options.trailingSlash,this.resolvePathCache),_=this.routesByPath[Zn(y)],E=y.includes("$");let w;if(_)w=_._branch??=uw(_);else if(E)w=[];else{const[we,oe,I]=this.getMatchedRoutes(y);w=we,this.options.notFoundRoute&&(!I||I.path!=="/"&&oe["**"])&&(w=[...w,this.options.notFoundRoute])}const A=E?_?._interpolation??Uo(!1,{fullPath:y},0):void 0;let T;for(const we of w){const oe=we.options.params?.stringify??we.options.stringifyParams;if(oe){const I=g()[3];if(T??=kh(u.params,I),!nw(T))break;T===I&&(T=Object.assign(Qc(),T));try{Object.assign(T,oe(T))}catch{}}}T??=kh(u.params,_x(u.params,A)?g()[3]:Oh);const C=n.leaveParams?y:tu(wo(A?zb(y,A,T,this.pathParamsDecoder):y)),x=wx(w,n._includeValidateSearch),z=()=>{let we=g()[2];if(n._includeValidateSearch&&this.options.search?.strict){const oe={};w.forEach(I=>{if(I.options.validateSearch)try{Object.assign(oe,nu(I.options.validateSearch,{...oe,...we}))}catch{}}),we=oe}return we},Y=x.length?Sx(x,z(),u):u.search===!0?z():typeof u.search=="function"?u.search(z()):u.search||Oh,M=this.options.stringifySearch(Y),N=u.hash===!0?p().hash:typeof u.hash=="function"?u.hash(p().hash):u.hash||void 0,B=N?`#${N}`:"",X=u.state?u.state===!0?p().state:typeof u.state=="function"?u.state(p().state):u.state:Oh,se=`${C}${M}${B}`;let K,Z,ne=!1;if(this.rewrite){const we=new URL(se,this.origin),oe=we.origin,I=pw(this.rewrite,we);K=xh(we),Ch(I,oe)?(Z=I.href,ne=!0):Z=tu(xh(I))}else K=PC(se),Z=K;return{publicHref:Z,href:K,pathname:C,search:Y,searchStr:M,state:X,hash:N??"",external:ne,unmaskOnReload:u.unmaskOnReload}},l=s(n);if(n.mask)l.maskedLocation=s({from:n.from,...n.mask});else if(this.options.routeMasks){const u=KC(l.pathname,this.processedTree);if(u){const d=Object.assign(Qc(),u.rawParams),{from:h,params:p,...g}=u.route,v=kh(p,d);l.maskedLocation=s({from:n.from,...g,params:v})}}return!a&&n._fromLocation&&!l.maskedLocation&&this.staticLocations.set(n,l),l},this.commitLocation=async({viewTransition:n,ignoreBlocker:a,...s})=>{const l=s.maskedLocation??s;if(l.external)return Vb(this,l.publicHref,{replace:s.replace,ignoreBlocker:a});let u;const d=Zn(this.latestLocation.href)===Zn(s.href)&&zn(qb(s.state),qb(this.latestLocation.state)),h=this._commitPromise;let p;const g=new Promise(v=>{p=v});if(g.resolve=()=>{p(),h?.resolve()},this._commitPromise=g,d)this.load();else{let{maskedLocation:v,hashScrollIntoView:y,..._}=s;v&&(_={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{..._,search:_.searchStr,state:{..._.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(_.unmaskOnReload??this.options.unmaskOnReload??!1)&&(_.state.__tempKey=this.tempLocationKey)),_.state={..._.state,__hashScrollIntoViewOptions:y??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=n,u=s.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](_.publicHref,_.state,{ignoreBlocker:a}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=s.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:a,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:u,...d}={})=>{const h=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=h;const p=this.commitLocation({...h,viewTransition:l,replace:n,resetScroll:a,hashScrollIntoView:s,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===h&&(this._pendingLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:a,href:s,publicHref:l,...u})=>{const d=s?Mo(s):void 0;if(d||a){if(n!==void 0||!s){const p=this.buildLocation({to:n,...u}),g=p.maskedLocation??p;s??=g.publicHref,l??=g.publicHref}return Vb(this,!d&&l?l:s,u)}return this.buildAndCommitLocation({...u,href:s,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.h=n.action.type==="PUSH"||n.action.type==="REPLACE"),await Ox(this,n)},this.startViewTransition=n=>
11{const a=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,a&&typeof document.startViewTransition=="function"){let s;if(typeof a=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,u=this.stores.resolvedLocation.get(),d=typeof a.types=="function"?a.types(Uu(l,u)):a.types;if(d===!1)return n();s={update:n,types:d}}else s=n;return document.startViewTransition(s).updateCallbackDone}return n()},this.invalidate=n=>{const a=this._committed,s=n?.filter,l=this._preloads,u=new Set,d=g=>{(!s||s(g))&&u.add(g.id)};a.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(y=>u.has(y.id))&&(l.delete(g),h.push(g));const p=g=>{if(u.has(g.id)){const v=this.routesById[g.routeId],y={...g,invalid:!0,...(n?.forcePending||g.status==="error"||g.status==="notFound")&&Hb(v)?{status:"pending",error:void 0}:void 0};return g._flight=void 0,y}return g};this._committed=a.map(p);for(const[g,v]of this._cache)u.has(g)&&(v.invalid=!0,n?.forcePending&&(v.status="pending"));for(const g of u){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:n?.sync})},this.resolveRedirect=n=>{const a=n.options;let s=n.headers.get("Location")||a.href;if(!s){const u=this.buildLocation(a);s=(u.maskedLocation??u).publicHref||"/"}let l;if(rw.test(s)||(l=Mo(s))&&!this.protocolAllowlist.has(l))throw new Error("Redirect blocked: unsafe protocol");if(l==="http:"||l==="https:"){const u=new URL(s);u.pathname.startsWith("//")?s=u.href:Ch(u,this.origin)||(s=xh(u),l=void 0)}return l&&(a.reloadDocument=!0),a.href=s,n.headers.set("Location",s),n},this.clearCache=n=>{const a=this._cache,s=this._preloads,l=n?.filter,u=[],d=[];for(const[p,g]of a)(!l||l(g))&&(d.push(p),u.push(g));const h=[];for(const[p,g]of s??[])(!l||g.some(l))&&(h.push(p),u.push(...g));for(const p of d)a.delete(p);for(const p of h)s.delete(p);for(const p of u){const g=p._flight;p._flight=void 0,g&&!--g[2]&&(this._flights?.get(p.id)===g&&this._flights.delete(p.id),h.push(g[1]))}for(const p of h)p.abort()},this.loadRouteChunk=Cr,this.preloadRoute=n=>Nx(this,n),this.matchRoute=(n,a)=>{const s={...n,to:n.to?Lb(n.from||"",n.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(s),u=this.stores.status.get()==="pending";if(a?.pending&&!u)return!1;const d=a?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=YC(l.pathname,a?.caseSensitive??!1,a?.fuzzy??!1,d.pathname,this.processedTree);return!h||n.params&&!zn(h.rawParams,n.params,!0)?!1:a?.includeSearch??!0?zn(d.search,l.search,!0)?h.rawParams:!1:h.rawParams},this.getStoreConfig=e,t.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=$C(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??lx,parseSearch:t.parseSearch??ox,protocolAllowlist:t.protocolAllowlist??zC}),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=Uo(!1,e,0)),this.routesById[e.id]=e)}matchRoutesInternal(t,e){const[n,a,s]=this.getMatchedRoutes(t.pathname);let l=n,u=!1;(s?s.path!=="/"&&a["**"]:Zn(t.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:u=!0);const d=u?Ex(this.options.notFoundMode,l):void 0,h=new Array(l.length),p=this._committed,g=(y,_)=>{const E=p[_];return E?.routeId===y.id?E:y===this.options.notFoundRoute?p.find(w=>w.routeId===y.id):void 0};let v;for(let y=0;y<l.length;y++){const _=l[y],E=h[y-1];let w,A,T;{const ne=E?.search??t.search,we=E?._strictSearch??void 0;try{const oe=nu(_.options.validateSearch,{...ne})??void 0;w={...ne,...oe},A={...we,...oe}}catch(oe){let I=oe;if(oe instanceof gu||(I=new gu(oe.message,{cause:oe})),e?.throwOnError)throw I;w=ne,A={},T=I}}let C="",x="";try{C=_.options.loaderDeps?.({search:w})??"",x=C&&JSON.stringify(C)||""}catch(ne){if(e?.throwOnError)throw ne;T??=ne}const z=Qc(),Y=_._interpolation?zb(_.fullPath,_._interpolation,a,this.pathParamsDecoder,z):_.fullPath,M=_.id+Y+x,N=g(_,y),B=this._cache.get(M)??(N?.id===M?N:void 0);v=B?._strictParams??Object.assign(z,v);let X;if(!B)try{Gb(_,v)}catch(ne){if(Wi(ne)||ew(ne)?X=ne:X=new bx(ne.message,{cause:ne}),e?.throwOnError)throw X}const se=N?"stay":"enter";let K;
11if(B)K={...B,cause:se,search:Fa(N?N.search:B.search,w),_strictSearch:A,searchError:T};else{const ne=Hb(_)?"pending":"success";K={id:M,ssr:_.options.ssr,index:y,routeId:_.id,params:N?.params??v,_strictParams:v,pathname:Y,updatedAt:Date.now(),search:N?Fa(N.search,w):w,_strictSearch:A,searchError:T,status:ne,isFetching:!1,error:void 0,paramsError:X,context:{},abortController:e?._controller??new AbortController,cause:se,loaderDeps:N?mi(N.loaderDeps,C):C,invalid:!1,preload:!1,staticData:_.options.staticData||{},fullPath:_.fullPath}}const Z=d===_.id;K._notFound&&!Z&&(K.error=void 0),K._notFound=Z,h[y]=K}for(let y=0;y<h.length;y++){const _=h[y];_.params=_.cause==="stay"?Fa(_.params,v):v,e?._controller&&(_.context={})}return h}matchRoutesLightweight(t){const e=yi(this.stores.ids.get()),n=e?this.stores.byRoute.get(e).get():void 0,a=n?.id,s=this.lightweightCache.get(t);if(s&&s[0]===a)return s[1];const[l,u]=this.getMatchedRoutes(t.pathname),d=yi(l),h={...t.search};for(const y of l)try{Object.assign(h,nu(y.options.validateSearch,h))}catch{}const p=n&&n.routeId===d.id&&n.pathname===t.pathname;let g;if(p)g=n.params;else{const y=u;for(const _ of l)try{Gb(_,y)}catch{}g=y}const v=[l,d.fullPath,h,g];return this.lightweightCache.set(t,[a,v]),v}};async function Vb(t,e,{replace:n,ignoreBlocker:a}){if(!iw(e,t.protocolAllowlist)){if(!a){const s=t.history._getBlockers();for(const l of s)if(l?.blockerFn&&await l.blockerFn({currentLocation:t.history.location,nextLocation:t.history.location,action:n?"REPLACE":"PUSH"}))return}t.history._ignoreNextBeforeUnload?.(e),n?window.location.replace(e):window.location.href=e}}var gu=class extends Error{},bx=class extends Error{};function nu(t,e){if(t==null)return{};if("~standard"in t){const n=t["~standard"].validate(e);if(n instanceof Promise)throw new gu("Async validation not supported");if(n.issues)throw new gu(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function kh(t,e){if(t===void 0||t===!0)return e;const n=Object.create(null);return t===!1||t===null?n:typeof t=="function"?(Object.assign(n,e),Object.assign(n,t(n))):Object.assign(n,e,t)}function _x(t,e){return typeof t=="function"?!0:!e||t===!1||t===null?!1:t===void 0||t===!0||e.some(n=>typeof n!="string"&&!zp.call(t,n[1]))}const Oh=Object.freeze({});function wx(t,e){const n=[];for(let a=0;a<t.length;a++){const s=t[a].options;if("search"in s)s.search?.middlewares&&n.push(...s.search.middlewares);else if(s.preSearchFilters||s.postSearchFilters){const u=({search:d,next:h})=>{const p=h(s.preSearchFilters?s.preSearchFilters.reduce((g,v)=>v(g),d):d);return s.postSearchFilters?s.postSearchFilters.reduce((g,v)=>v(g),p):p};n.push(u)}const l=s.validateSearch;if(e&&l){const u=({search:d,next:h,meta:p})=>{const g=h(d);try{const v=nu(l,g);if(p&&v)for(const y in v)y in g||(p.defaulted||=new Map).set(y,v[y]);return{...g,...v}}catch{}return g};n.push(u)}}return n}function Sx(t,e,n){const a=(s,l,u)=>{if(s>=t.length){if(!n.search)return{};if(n.search===!0)return l;const h=tw(n.search,l);return u&&(u.explicit=h),h}const d=(h,p)=>{if(p){const g=u||{};return{search:a(s+1,h,g),meta:g}}return a(s+1,h,u)};return t[s]({search:l,next:d,meta:u})};return a(0,e)}function Ex(t,e){if(t!=="root"){let n;for(let a=e.length-1;a>=0;a--){const s=e[a];if(s.options.notFoundComponent)return s.id;n||=s.children&&s.id}if(n)return n}return hs}function Gb(t,e){const n=t.options.params?.parse??t.options.parseParams;n&&Object.assign(e,n(e))}function ap(t,e){return t.options[e]?.preload?.()}function Ax(t,e){const n=ap(t,"component");let a=ap(t,"pendingComponent");return e&&(a?a=a.then(e):e()),n&&a?Promise.all([n,a]).then(()=>{}):n??a}function Cr(t,e,n){const a=()=>e===!1?void 0:e?ap(t,e):Ax(t,n),s=t._lazy;if(s)return s===!0?a():s.then(a);if(!t.lazyFn)return a();const l=t.lazyFn().then(u=>{{const{id:d,...h}=u.options;Object.assign(t.options,h),t._lazy=!0}},u=>{throw t._lazy=void 0,u});return t._lazy=l,l.then(a)}function Up(t){const e=t.findIndex(n=>n.status!=="success"||n._notFound)+1;return e&&e<t.length?t.slice(0,e):t}function vw(t){let e=t.length;for(let n=0;n<e;n++){const a=t[n];if(a._assetEnd!==void 0){e=Math.min(e,Math.max(n+1,a._assetEnd));continue}if(a.status!=="success"||a._notFound){e=n+1;break}}return e<t.length?t.slice(0,e):t}const Xn=0,xr=1,Pu=2,It=3,bi=[4];function Po(t){return typeof t[0]=="number"}function kr(t,e){return e.aborted?Promise.race([Promise.reject(e),t]):new Promise((n,a)=>{const s=()=>a(e);e.addEventListener("abort",s,{once:!0}),Promise.resolve(t).then(n,a).then(()=>e.removeEventListener("abort",s))})}function Ln(t,e){return t.routesById[e.routeId]}function Bo(t,e,n){return ew(t)?[It,t]:Wi(t)?(t.routeId||=n,[Pu,t]):e?(typeof t?.then=="function"&&(t=new Error("A Promise was thrown",{c
11ause:t})),[xr,t]):[Xn,t]}function Pp(t,e){let n=Bo(e,!0,t.id);if(n[0]!==xr)return n;try{t.options.onError?.(n[1])}catch(a){n=Bo(a,!0,t.id)}return n}function No(t,e,n,a,s){return s[0].signal.aborted?bi:Hp(t,e,n,Pp(n,a),s)}async function Tx(t,e,n,a,s,l){const[u,d]=e,h=n[0].signal,p=!!n[3];for(let g=n[6]??0;g<a;g++){const v=d[g],y=Ln(t,v);v.abortController=n[0];const _=d[g-1]?.context??t.options.context??{},E={params:v.params,location:u,navigate:C=>t.navigate({...C,_fromLocation:u}),buildLocation:t.buildLocation,cause:p?"preload":v.cause,abortController:n[0],preload:p,matches:d,routeId:y.id};try{const C=v._ctx||=y.options.context?y.options.context({...E,deps:v.loaderDeps,context:_})||{}:void 0;v.context={..._,...C}}catch(C){return Rr(t,v),[g,No(t,e,y,C,n)]}if(h.aborted)return[g,bi];const w=v.paramsError??v.searchError;if(w!==void 0)return Rr(t,v),[g,No(t,e,y,w,n)];const A=y.options.beforeLoad;if(!A)continue;const T=v.status;g>=l&&(v.status="pending",n[7]?.());try{$o(t,v,"beforeLoad",n[0]);const C=A({...E,search:v.search,context:v.context,...t.options.additionalContext}),x=await(typeof C?.then=="function"?kr(C,h):C);if(h.aborted)return[g,bi];const z=Hp(t,e,y,Bo(x,!1,y.id),n);if(z[0]!==Xn)return Rr(t,v),[g,z];v.context={...v.context,...x}}catch(C){return Rr(t,v),[g,No(t,e,y,C,n)]}finally{v.status=T,$o(t,v,!1,n[0])}}s()}function Bp(t,e,n){if(!(!n||--n[2])){if(t._flights?.get(e.id)===n){const a=t._tx;if(a&&!a[0].signal.aborted&&!a[3].includes(e)&&a[3].some(s=>s.id===e.id)&&a[3].some(s=>s.isFetching==="beforeLoad"))return;t._flights.delete(e.id)}return n[1]}}function Rr(t,e){const n=e._flight;e._flight=void 0,Bp(t,e,n)?.abort()}function Dt(t,e,n,a){const s=[];for(const l of e)if(!n?.includes(l)){const u=l._flight;if(l._flight=void 0,a&&u?.[2]===1&&t._flights?.get(l.id)===u&&n?.some(d=>d.id===l.id))u[2]=0;else{const d=Bp(t,l,u);d&&s.push(d)}}for(const l of s)l.abort()}function $p(t){for(const e of t){const n=e._flight;n&&n[2]++}}function $o(t,e,n,a){if(e.isFetching=n,a&&t._tx?.[0]!==a)return;const s=t.stores.byRoute.get(e.routeId),l=s?.get();l?.id===e.id&&s.set({...l,isFetching:n})}function yw(t,e,n,a,s,l,u){const d=e[0];return{params:n.params,location:d,navigate:h=>t.navigate({...h,_fromLocation:d}),cause:u?"preload":n.cause,abortController:s,preload:u,deps:n.loaderDeps,parentMatchPromise:l,context:n.context,route:a,...t.options.additionalContext}}async function Fb(t,e,n,a,s,l,u){const d=u[0],h=d.signal;if(h.aborted)return bi;if(!s)return[Xn,void 0];let p=n._flight;$o(t,n,"loader",d);try{if(!p){const g=new AbortController;p=[Promise.resolve().then(()=>s(yw(t,e,n,a,g,l,!!u[3]))).then(v=>Bo(v,!1,a.id),v=>Bo(v,!0,a.id)).then(v=>(v[0]!==Xn&&t._flights?.get(n.id)===p&&(t._flights.delete(n.id),p[2]||g.abort()),v[0]===xr&&p[2]?Pp(a,v[1]):v)),g,1],(t._flights??=new Map).set(n.id,p)}return n._flight=p,n.abortController=p[1],Hp(t,e,a,await kr(p[0],h),u)}catch(g){if(g!==h||!h.aborted)throw g;return Rr(t,n),bi}finally{$o(t,n,!1,d)}}function Kb(t,e,n){e[0]!==It&&(t.status="success",t.error=void 0,e[0]===Xn?(t.loaderData=e[1],t.invalid=!1,t.updatedAt=Date.now(),t.preload=n):t.invalid=!0)}function bw(t,e,n){const a=t._cache.get(e.id);if(a!==n||t._committed.some(l=>l.id===e.id&&l._flight===e._flight))return;const s={...e,_notFound:void 0,context:{}};s._flight&&s._flight[2]++,t._cache.set(e.id,s),a&&Rr(t,a)}function Yb(t,e){return e[0]===xr||e[0]===Pu?{...t,status:e[0]===xr?"error":"notFound",error:e[1],_flight:void 0}:t}function Rx(t,e,n,a,s,l,u){const d=e[1][n],h=Ln(t,d),p=!!l[3],g=t._cache.get(d.id);let v,y=!1,_;try{if(d.status==="success"&&(v=h.options.shouldReload,typeof v=="function"&&(v=v(yw(t,e,d,h,l[0],s,p))),l[0].signal.aborted&&(_=bi)),!_)if(d.status!=="success")y=!0;else{const Z=p||d.preload?h.options.preloadStaleTime??t.options.defaultPreloadStaleTime??3e4:h.options.staleTime??t.options.defaultStaleTime??0;y=!!(d.invalid||v||v===void 0&&Date.now()-d.updatedAt>=Z&&(l[5]||d.cause==="enter"||l[2].some(ne=>ne.routeId===d.routeId&&ne.id!==d.id)))}}catch(Z){d.invalid=!0,Rr(t,d),_=No(t,e,h,Z,l)}const E=h.options.loader,w=typeof E=="function",A=w?E:E?.handler,T=!p||h.options.preload!==!1;let C=T&&E?t._flights?.get(d.id):void 0;C===d._flight||_?C=void 0:C&&!y&&!p&&v===void 0?y=!0:y||(C=void 0);const x=!!(E&&y&&d.status==="success"&&!p&&!l[4]&&((w?void 0:E.staleReloadMode)??t.options.defaultStaleReloadMode)!=="blocking"),z=y&&T,Y=z&&!x&&(d.status!=="success"||!!E),M=n>=u?l[7]:void 0,N=h.lazyFn&&h._lazy!==!0?M:void 0;if(z&&!E&&(d.invalid=!1,d.updatedAt=Date.now()),C&&C[2]++,Y){const Z=d._flight;d._flight=C,Bp(t,d,Z)?.abort(),n>=u&&(d.status="pending"),M?.()}z||(d.isFetching=!1);const B=!_&&Y?Fb(t,e,d,h,A,s,l).then(Z=>(Kb(d,Z,p),Z[0]===Xn&&(E&&!l[0].signal.aborted&&bw(t,d,g),n>=u&&(d.status="pending")),Z)):Promise.resolve(_??[Xn,d.loaderData]),X=(async()=>{try{const ne=Cr(h,void 0,N);ne&&await kr(ne,l[0].signal)}catch(ne){if(!e[1].some((we,oe)=>oe<=n&&(we.status==="error"||we.status==="notFound"||we._notFound)))return[n,No(t,e,h,ne,l)]}const Z=await B;Y&&Z[0]===Xn&&d.status==="pending"&&!l[0].signal.aborted&&(d.status="success",M?.())})();if(a.push([n,B,X]),!x)return B.then(Z=>Yb(d,Z));const se={...d,status:"pending",preload:!1,_flight:C};d.invalid=!1,d.isFetching="loader";
11const K=Fb(t,e,se,h,A,s,l).then(Z=>(d.isFetching=!1,Kb(se,Z,!1),Z));return(e[2]??=[]).push([n,K,X,se]),K.then(Z=>Yb(se,Z))}async function sp(t,e,n,a,s=0){const l=n?.[1][1];let u=l?.routeId?e.findIndex(d=>d.routeId===l.routeId):n?.[0]??e.length-1;u<0&&(u=0);for(let d=u;d>=0;d--){const h=Ln(t,e[d]);try{const p=Cr(h,!1);p&&await kr(p,a)}catch(p){if(p===a&&a.aborted)throw p}if(h.options.notFoundComponent)return d}return l?.routeId?u:s}function Xi(t,e){e[2]&&(Dt(t,e[2].map(n=>n[3])),e[2]=void 0)}async function Zb(t,e,n,a){let s;try{await Promise.all(t.map(l=>l[1].then(async u=>{const d=l[0];if(!(a&&d>=await a)){if(u[0]>=It)throw[d,u];!s&&u[0]!==Xn&&(s=[d,u],await Promise.all((n??[]).map(h=>{if(!(h[0]<=d))return h[1].then(p=>{if(p[0]===It)throw[h[0],p]})})))}})))}catch(l){return l}return e??s}function Hp(t,e,n,a,s,l){for(;a[0]===It;){const u=a[1],d=u.options;try{if((d.href||u.headers.has("Location"))&&(t.resolveRedirect(u),d.reloadDocument)||(d.reloadDocument?s[3]:s[1]>=20))return a;const h=t.buildLocation({...d,_fromLocation:e[0],_includeValidateSearch:!0}),p=h.maskedLocation??h;if(p.external){const g=u.clone();return g.options={...d},g.headers.set("Location",p.publicHref),t.resolveRedirect(g),s[3]?[It,g]:[It,g,p]}return[It,u,h]}catch(h){a=l?[xr,h]:Pp(n,h),l=!0}}return a}async function _w(t,e,n,a,s,l){const u=e[1];let d=await s,h=!1;const p=u.findIndex(_=>_._notFound),g=_=>_[1][0]===Pu?sp(t,u,_,a.signal):_[0];let v=p<0?u.length:p;if((d?.[1][0]??0)>=It)v=0;else if(d){v=d[2]??=await g(d);for(const _ of n){if(_[0]>=v)break;const E=await _[1];if(E[0]!==Xn&&E[0]<It&&!("loaderData"in u[_[0]])){d=[_[0],E],v=d[2]=await g(d);break}}}for(const _ of n){if(_[0]>=v)break;const E=await _[2];if(E){d=E;break}}if((d?.[1][0]??0)>=It){const _=d[1];if(_[0]!==It||_[1].options.reloadDocument||_[2])return Xi(t,e),_;h=!0,d=[0,[xr,new Error("Too many redirects")]]}const y=d?d[2]??await g(d):p;if(y>=0){const _=d?.[1],E=_?.[0],w=u[y],A=_?.[1],T=()=>{_&&(w._notFound=void 0,E===xr?w.status="error":(A.routeId=w.routeId,w.routeId===t.routeTree.id?(w.status="success",w._notFound=!0):w.status="notFound"),w.error=A,w.isFetching=!1)};T(),_||l?.();const C=Ln(t,w);try{await kr(_?Promise.resolve().then(()=>Cr(C,E===xr?"errorComponent":"notFoundComponent")):Promise.all([Cr(C),Cr(C,"notFoundComponent")]),a.signal)}catch(x){if(x===a.signal&&a.signal.aborted)return Xi(t,e),bi}_?h&&(a.abort(),await Promise.all([...n.map(x=>x[1]),...n.map(x=>x[2]),...(e[2]??[]).map(x=>x[1])]),Xi(t,e),Dt(t,u),T()):w.status="success"}return e}async function qp(t,e,n,a=0,s=e[1].length){const l=e[1];for(let u=a;u<s;u++){const d=l[u],h=Ln(t,d).options;if(h.head||h.scripts)try{const p={ssr:t.options.ssr,matches:l,match:d,params:d.params,loaderData:d.loaderData},[g,v]=await kr(Promise.all([h.head?.(p),h.scripts?.(p)]),n);d.meta=g?.meta,d.links=g?.links,d.headScripts=g?.scripts,d.styles=g?.styles,d.scripts=v}catch(p){if(p===n&&n.aborted)break;console.error(p)}if(d.status!=="success"||d._notFound)break}return e}async function ww(t,e,n,a){const s=[e,n],l=a[0].signal;let u;try{const d=t.stores.matches.get();let h=n.findIndex(T=>T._notFound);if(t.options.notFoundMode!=="root"&&h>=0){const T=await sp(t,n,void 0,l,h);n[h]._notFound=void 0,n[T]._notFound=!0,h=T}let p=h<0?n.length:h+1,g=0;for(;g<p&&g!==h;){const T=n[g],C=a[2][g],x=d[g];if(C?.id!==T.id||C.status!=="success"||T.preload||x?.id!==T.id||x.status!=="success"||(g++,C._notFound||x._notFound))break}const v=[],y=a[6]??0;let _=y?Promise.resolve(n[y-1]):void 0;const E=()=>{for(let T=y;T<p&&!l.aborted;T++)_=Rx(t,s,T,v,_,a,g)},w=await Tx(t,s,a,p,E,g);if(w){if(a[4]=!0,p=w[0],w[1][0]===Pu){const T=await sp(t,n,w,l);w[2]=T,p=Math.min(p,T+1)}else w[1][0]>=It&&(p=0);E()}if(!l.aborted&&!a[3]){const T=[];for(const[C,x]of t._flights??[])x[2]||(t._flights.delete(C),T.push(x[1]));for(const C of T)C.abort()}const A=_w(t,s,v,a[0],Zb(v,w,s[2]),a[7]);s[2]?.length&&(s[3]=Zb(s[2],void 0,void 0,A.then(T=>Po(T)?0:Up(n).length,()=>0))),u=await A}catch(d){if(Xi(t,s),d===l&&l.aborted)return bi;throw d}return Po(u)?u:qp(t,u,l,a[6]===n.length?a[6]:0)}function op(t,e){if(t._tx!==e)return;const n=e[3],a=t.stores.matches.get();let s=t._pending;
11for(let l=0;l<n.length;l++){const u=n[l],d=u.status==="success"&&!u._notFound,h=a[l]?.id===u.id&&a[l]?.status==="pending";if(d&&!h)continue;const p=Ln(t,u),g=d||u.invalid?0:p.options.pendingMs??t.options.defaultPendingMs,v=p.options.pendingComponent??t.options.defaultPendingComponent;if(!v||typeof g!="number"||g===1/0){s&&(s[0]=e,s[2]=0,s[4]=!0);return}const y=p.options.pendingMinMs??t.options.defaultPendingMinMs??0;let _=!1;if(s?.[1]===u.id?(_=s[0]!==e,s[0]=e):(clearTimeout(s?.[3]),t._pending=s=void 0),s||(t._pending=s=[e,u.id,h?Date.now()+y:e[4]+g,void 0,h||void 0,v]),s[4]&&!_&&s[5]===v)return;if(s[5]=v,!s[4]){clearTimeout(s[3]);const A=s[2]-Date.now();if(A>0){s[3]=setTimeout(()=>op(t,e),A);return}s[2]=0}const E=n.map(A=>({...A,_flight:void 0}));E[l].status="pending";const w=s[4]=t.startTransition(()=>t.stores.setMatches(E),E).then(A=>(A&&t._pending===s&&s[4]===w&&!s[2]&&(s[2]=Date.now()+y),A));return}}function So(t,e){const n=t._pending;(t._tx===e||!t._tx?.[3].some(a=>a.id===n?.[1]))&&(clearTimeout(n?.[3]),t._pending=void 0)}async function Jb(t,e){const n=t._pending;if(!n)return;clearTimeout(n[3]);const a=n[2]-Date.now();if(!n[4]||a<=0||!Up(e[3]).some(l=>l.id===n[1]))return;let s;try{await kr(new Promise(l=>{s=setTimeout(l,a)}),e[0].signal)}catch{}clearTimeout(s)}function Sw(t,e){t._committed=e,t.stores.setMatches(e)}function Cx(t,e,n,a){const s=t._committed,l=t._lifecycleEnd,u=t._cache;for(const g of n)g.preload=!1,a&&(g._assetEnd=void 0);const d=Up(n).length,h=new Map;{const g=Date.now(),v=new Set;for(let y=0;y<n.length;y++){const _=n[y];(y<d||_.status==="success")&&v.add(_.id)}for(const y of[...s,...u.values()]){if(y.status!=="success"||v.has(y.id))continue;const _=Ln(t,y);!_.options.loader||g-y.updatedAt>=(y.preload?_.options.preloadGcTime??t.options.defaultPreloadGcTime??3e5:_.options.gcTime??t.options.defaultGcTime??3e5)||h.set(y.id,u.get(y.id)===y?y:{...y,_flight:void 0,isFetching:!1,context:{}})}}e[3]=[],t._cache=h;const p=t._lifecycleEnd=gw(n);Sw(t,n),Dt(t,[...u.values(),...s].filter(g=>g._flight&&h.get(g.id)!==g),n),vx(t,s,n,l,p,e)}async function Dc(t,e){let n=t._tx;for(;n&&n!==e;)e=n,await n[5],n=t._tx}function Ew(t,e,n){const a=n[1].options,s=n[2];if(!s)return t.navigate({...a,replace:!0,ignoreBlocker:!0});if(a.reloadDocument)return t.navigate({href:(s.maskedLocation??s).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});s._redirects=e[1]+1,t._pendingLocation=s;const l=t.commitLocation({...s,viewTransition:a.viewTransition,replace:!0,resetScroll:a.resetScroll,hashScrollIntoView:a.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{t._pendingLocation===s&&(t._pendingLocation=void 0)}),l}async function xx(t,e,n,a,s){const l=n.map(h=>({...h}));$p(l);for(const h of a)Rr(t,l[h[0]]),l[h[0]]=h[3];const u=[e[2],l];let d;try{d=await _w(t,u,a,e[0],s)}catch(h){throw Dt(t,l),h}if(Po(d)){Dt(t,l),d[0]===It&&t._tx===e&&t._committed===n&&await Ew(t,e,d);return}if(await qp(t,d,e[0].signal),t._tx!==e||t._committed!==n){Dt(t,l);return}for(const h of l){const p=t._cache.get(h.id);p?._flight&&p._flight===h._flight&&(t._cache.delete(h.id),Rr(t,p))}Sw(t,l),Dt(t,n,l)}async function kx(t,e,n,a,s,l){const u=await ww(t,e[2],e[3],[e[0],e[1],t._committed,void 0,s,n,l,a]);if(Po(u)){const v=u[0]===It&&t._tx===e;if((!v||u[1].options.reloadDocument)&&So(t,e),Dt(t,e[3]),e[3]=[],!v)return;if(t._tx!==e){So(t,e);return}await Ew(t,e,u);return}const d=u[1];if(t._tx===e&&await Jb(t,e),t._tx!==e){So(t,e),Dt(t,d),Xi(t,u);return}const h=e[2],p=Uu(h,t.stores.resolvedLocation.get()),g=u[2];await t.startViewTransition(async()=>{if(t._tx===e&&await Jb(t,e),t._tx!==e){So(t,e),Dt(t,d),Xi(t,u);return}const v=()=>{So(t,e),Cx(t,e,d,l),t._tx===e&&(t.emit({type:"onLoad",...p}),t._tx===e&&t.emit({type:"onBeforeRouteMount",...p}))},y=await t.startTransition(v,d);if(t._tx!==e){Xi(t,u);return}g?.length&&xx(t,e,d,g,u[3]).catch(console.error),t.batch(()=>{t.stores.resolvedLocation.set(h),t.stores.status.set("idle"),t._tx===e&&t.emit({type:"onResolved",...p}),y&&t._tx===e&&t.emit({type:"onRendered",...p})}),t._tx===e&&(t._commitPromise?.resolve(),t._commitPromise=void 0)})}async function Ox(t,e){const n=t._tx,a=t.stores.resolvedLocation.get(),s=a??t.stores.location.get(),l=t.latestLocation,u=t._pendingLocation,d=u?.href===l.href?u._redirects??0:0,h=t._handoff,p=h?.[0](),g=new AbortController,v=t._preflight;if(t._preflight=g,p||h?.[1](),v?.abort(),!g.signal.aborted){const z=Uu(l,a);t.emit({type:"onBeforeNavigate",...z}),g.signal.aborted||t.emit({type:"onBeforeLoad",...z})}if(g.signal.aborted){await Dc(t,n);return}const y=s.href===l.href;let _=g;const E=t.matchRoutes(l,{_controller:g});$p(E);const w=p?h[1](E):void 0;if(w?_=p:p?.abort(),g.signal.aborted){Dt(t,E),await Dc(t,n);return}t._preflight=void 0;let A;const T=()=>kx(t,x,y,()=>op(t,x),e?.sync,w),C=e?.sync?new Promise(z=>
11A=z):Promise.resolve().then(T),x=[_,d,l,E,Date.now(),C.then(()=>Dc(t,x))];if(t._tx=x,n){for(const z of t.stores.matches.get()){if(t._tx!==x)break;z.isFetching&&$o(t,z,!1)}n[0].abort(),Dt(t,n[3],x[3],!0)}if(t._tx!==x){Dt(t,x[3]),x[3]=[],A?.(),await Dc(t,x);return}t.batch(()=>{t.stores.status.set("pending"),t.stores.location.set(l)}),(w||!t._committed.length&&E[0]?.status!=="success"&&!E.some(z=>z._notFound))&&op(t,x),A?.(T()),await x[5]}async function Nx(t,e){let n=t.buildLocation(e);for(let a=0;;a++){const s=t._committed,l=new AbortController;let u,d,h;try{try{u=t.matchRoutes(n,{_controller:l}),$p(u),d=(t._preloads??=new Map).set(l,u),h=await ww(t,n,u,[l,a,s,!0])}finally{d&&(d=d.delete(l),Dt(t,u)),l.abort()}if(!Po(h))return h[1];if(!d||h.length<3)return;n=h[2]}catch(p){Wi(p)||console.error(p);return}}}async function jx(t){const e=window.$_TSR,n=t.options.serializationAdapters;n?.length&&(e.t=new Map(n.map(K=>[K.key,K.fromSerializable])),e.buffer.forEach(K=>K())),e.initialized=!0;const a=e.router;t.ssr={manifest:a.manifest},t.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const s=a.matches,l=new AbortController,u=t._preflight;t._preflight=l,u?.abort();const d=()=>t._preflight===l;let h,p,g,v;try{if(await kr(t.options.hydrate?.(a.dehydratedData),l.signal),!d())return;const K=t.history.location;g=K.href,v=K.state,t.updateLatestLocation(),h=t.latestLocation,t.stores.location.set(h),p=t.matchRoutes(h,{_controller:l})}catch(K){if(d()&&(t._preflight=void 0),l.abort(K),K!==l.signal)throw K}if(!d())return;const y=[];let _,E=0;const w=K=>{E=Math.min(E,K+1);const Z=y.splice(K);for(const ne of Z)Ln(t,ne).options.loader&&(ne.status==="success"||!ne.invalid&&"loaderData"in ne)&&bw(t,{...ne,status:"success",error:void 0,preload:!0},t._cache.get(ne.id));Dt(t,Z)},A=s.length>p.length?p.findIndex(K=>K._notFound)+1:s.length;let T=!1;for(let K=0;K<A;K++){const Z=p[K],ne=s[K];if(typeof ne.i!="string"||NC(ne.i)!==Z.id){_??=K;break}E=K+1;const we=Ln(t,Z);if(("l"in ne||ne.s==="success"&&ne.e===void 0&&we.options.loader)&&(Z.loaderData=ne.l),Z.status=ne.s,Z.ssr=ne.ssr,we.options.ssr=Z.ssr,Z.updatedAt=ne.u,Z.error=ne.e,Z._notFound||=ne.g,Z.status==="error"||Z.status==="notFound"||Z._notFound){T=!0,y.push(Z),(Z.ssr===!1||Z.ssr==="data-only")&&(_??=K);break}if(Z.status==="pending"){_??=K;break}y.push(Z),Z.ssr==="data-only"&&(_??=K)}!T&&y.length===A&&A<p.length&&(_=A);const C=y.map(async K=>{try{const Z=Ln(t,K);return await(K._notFound?Promise.all([Cr(Z),Cr(Z,"notFoundComponent")]):Cr(Z,K.status==="error"?"errorComponent":K.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let x=0;try{for(;x<C.length&&await kr(C[x],l.signal);)x++}catch{return}if(!d())return;x<y.length&&w(x);const z=Math.max(_===y.length?y.length+1:y.length,x<C.length?x:E);for(let K=0;K<z;K++){const Z=p[K],ne=Ln(t,Z),we=p[K-1]?.context??t.options.context??{};let oe;if(ne.options.context){try{oe=Z._ctx=ne.options.context({deps:Z.loaderDeps,params:Z.params,context:we,location:h,navigate:I=>t.navigate({...I,_fromLocation:h}),buildLocation:t.buildLocation,cause:Z.cause,abortController:l,preload:!1,matches:p,routeId:ne.id})||{}}catch{if(!d())return;if(Z.status!=="error"&&Z.status!=="notFound"&&!Z._notFound){_=Math.min(_??K,K),w(K);break}}if(!d())return}Z.context={...we,...oe,...y[K]&&s[K].b}}if(await qp(t,[h,p],l.signal,0,E),!d())return;const Y=_!==void 0||y.length<A,M=T&&y.length===A?p:y;let N=Y?p:M,B;if(Y&&_!==void 0){const K=N[_];B=K.ssr==="data-only"&&E>_+1?E:void 0,N=N.slice(),N[_]={...K,status:"pending",ssr:K.ssr==="data-only"?"data-only":!1,_assetEnd:B}}const X=()=>{const K=t.history.location;return Y&&!t._tx&&K.href===g&&K.state===v&&t._committed===M&&M.length&&!l.signal.aborted?l:void 0},se=[X,K=>{if(t._handoff!==se)return;t._handoff=void 0;const Z=M.length;if(!K||!X()||M.some((oe,I)=>oe.id!==K[I]?.id)){l.abort();return}let ne=B;if(ne!==void 0){for(let oe=Z;oe<ne;oe++)if(p[oe]?.id!==K[oe]?.id){ne=oe>_+1?oe:void 0;break}}const we=M.map(oe=>({...oe}));ne!==void 0&&(we[_]._assetEnd=ne),Dt(t,K.splice(0,Z,...we));for(let oe=Z;oe<K.length;oe++){const I=K[oe],J=p[oe];J?.id===I.id&&J._ctx&&(I._ctx=J._ctx),I.abortController=l}return Z}];t._committed=M,t._lifecycleEnd=gw(M),t._handoff=se,t._preflight=void 0,t.batch(()=>{t.stores.setMatches(N),t.stores.status.set("idle"),Y||t.stores.resolvedLocation.set(t.stores.location.get())})}const Or=Symbol.asyncIterator,Aw=Symbol.hasInstance,ps=Symbol.isConcatSpreadable,Nr=Symbol.iterator,Tw=Symbol.match,Rw=Symbol.matchAll,Cw=Symbol.replace,xw=Symbol.search,kw=Symbol.species,Ow=Symbol.split,Nw=Symbol.toPrimitive,ms=Symbol.toStringTag,jw=Symbol.unscopables,Dw={[Or]:0,[Aw]:1,[ps
11]:2,[Nr]:3,[Tw]:4,[Rw]:5,[Cw]:6,[xw]:7,[kw]:8,[Ow]:9,[Nw]:10,[ms]:11,[jw]:12},Dx={0:Or,1:Aw,2:ps,3:Nr,4:Tw,5:Rw,6:Cw,7:xw,8:kw,9:Ow,10:Nw,11:ms,12:jw},Lx={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},zx={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},Mx={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Be(t,e,n,a,s,l,u,d,h,p,g,v){return{t,i:e,s:n,c:a,m:s,p:l,e:u,a:d,f:h,b:p,o:g,l:v}}function Ei(t){return Be(2,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const Lw=Ei(2),zw=Ei(3),Ix=Ei(1),Ux=Ei(0),Px=Ei(4),Bx=Ei(5),$x=Ei(6),Hx=Ei(7),qx=64,Vx=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function Gx(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 ra(t){if(t.length>=qx&&!Vx.test(t))return JSON.stringify(t).slice(1,-1);let e="",n=0,a;for(let s=0,l=t.length;s<l;s++)a=Gx(t[s]),a&&(e+=t.slice(n,s)+a,n=s+1);return n===0?e=t:e+=t.slice(n),e}function Fx(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 Ai(t){return typeof t=="string"&&!t.includes("\\")?t:t.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Fx)}const Kx={parsing:1,serialization:2,deserialization:3};function Yx(t){return`Seroval Error (step: ${Kx[t]})`}const Zx=(t,e)=>Yx(t);var Mw=class extends Error{constructor(t,e){super(Zx(t)),this.cause=e}},Xb=class extends Mw{constructor(t){super("parsing",t)}},Jx=class extends Mw{constructor(t){super("deserialization",t)}};function Dr(t){return`Seroval Error (specific: ${t})`}var ia=class extends Error{constructor(t){super(Dr(1)),this.value=t}},Vp=class extends Error{constructor(t){super(Dr(2))}},Xx=class extends Error{constructor(t){super(Dr(3))}},Bu=class extends Error{constructor(t){super(Dr(4))}},Wx=class extends Error{constructor(t){super(Dr(5)),this.value=t}},Qx=class extends Error{constructor(t){super(Dr(6))}},ek=class extends Error{constructor(t){super(Dr(7))}},At=class extends Error{constructor(t){super(Dr(8))}},Iw=class extends Error{constructor(t){super(Dr(9))}};const Lc="__SEROVAL_REFS__",Uw=new Map,os=new Map;function Pw(t){return Uw.has(t)}function tk(t){return os.has(t)}function nk(t){if(Pw(t))return Uw.get(t);throw new Wx(t)}function rk(t){if(tk(t))return os.get(t);throw new Qx(t)}typeof globalThis<"u"?Object.defineProperty(globalThis,Lc,{value:os,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Lc,{value:os,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Lc,{value:os,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Lc,{value:os,configurable:!0,writable:!1,enumerable:!1});function Gp(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 ik(t){const e=zx[Gp(t)];return t.name!==e?{name:t.name}:t.constructor.name!==e?{name:t.constructor.name}:{}}function Bw(t,e){let n=ik(t);const a=Object.getOwnPropertyNames(t);for(let s=0,l=a.length,u;s<l;s++)u=a[s],u!=="name"&&u!=="message"&&(u==="stack"?e&4&&(n=n||{},n[u]=t[u]):(n=n||{},n[u]=t[u]));return n}function $w(t){return Object.isFrozen(t)?3:Object.isSealed(t)?2:Object.isExtensible(t)?0:1}function ak(t){switch(t){case Number.POSITIVE_INFINITY:return Bx;case Number.NEGATIVE_INFINITY:return $x}return t!==t?Hx:Object.is(t,-0)?Px:Be(0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Hw(t){return Be(1,void 0,ra(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function sk(t){return Be(3,void 0,""+t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ok(t){return Be(4,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function lk(t,e){const n=e.valueOf();return Be(5,t,n!==n?"":e.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ai(t,e,n){return Be(36,t,n.toString(),e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ck(t,e){return Be(6,t,void 0,ra(e.source),e.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function uk(t,e){return Be(17,t,Dw[e],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function dk(t,e){return Be(18,t,ra(nk(e)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function fk(t,e,n){return Be(25,t,n,ra(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function hk(t,e,n){return Be(9,t,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,$w(e),void 0)}function pk(t,e){return Be(21,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}const Fp=1e6;function mk(t,e,n){if(e.length>Fp)throw new ia(e);return Be(15,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,n,e.byteOffset,void 0,e.length)}function gk(t,e,n){if(e.length>Fp)throw new ia(e);return Be(16,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,n,e.byteOffset,void 0,e.length)}function vk(t,e,n){if(e.byteLength>Fp)throw new ia(e);return Be(20,t,void 0,void 0,void 0,void 0,void 0,void 0,n,e.byteOffset,void 0,e.byteLength)}function yk(t,e,n){return Be(13,t,Gp(e),void 0,ra(e.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function bk(t,e,n){return Be(14,t,Gp(e),void 0,ra(e.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function _k(t,e){return Be(7,t,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,void 0)}function wk(t,e){return Be(28,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function Sk(t,e){return Be(30,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function Ek(t,e,n){return Be(31,t,void 0,void 0,void 0,void 0,void 0,n,e,void 0,void 0,void 0)}function Ak(t,e){return Be(32,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function Tk(t,e){return Be(33,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function Rk(t,e){return Be(34,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function Ck(t,e,n,a){return Be(35,t,n,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,a)}var xk=class{constructor(t,e){this.value=t,this.replacement=e}};const Kp=()=>{const t={p:0,s:0,f:0};
13return t.p=new Promise((e,n)=>{t.s=e,t.f=n}),t},kk=t=>e=>()=>{let n=0;const a={[t](){return a},next(){if(n>e.d)return{done:!0,value:void 0};const s=n++,l=e.v[s];if(s===e.t)throw l;return{done:s===e.d,value:l}}};return a},Ok=(t,e)=>n=>()=>{let a=0,s=-1,l=!1;const u=[],d=[],h={finalize(g=0,v=d.length){for(;g<v;g++)d[g].s({done:!0,value:void 0})}};n.on({next(g){const v=d.shift();v&&v.s({done:!1,value:g}),u.push(g)},throw(g){const v=d.shift();v&&v.f(g),h.finalize(),s=u.length,l=!0,u.push(g)},return(g){const v=d.shift();v&&v.s({done:!0,value:g}),h.finalize(),s=u.length,u.push(g)}});const p={[t](){return p},next(){if(s===-1){const y=a++;if(y>=u.length){const _=e();return d.push(_),_.p}return{done:!1,value:u[y]}}if(a>s)return{done:!0,value:void 0};const g=a++,v=u[g];if(g!==s)return{done:!1,value:v};if(l)throw v;return{done:!0,value:v}}};return p},Nk=t=>{const e=atob(t),n=e.length,a=new Uint8Array(n);for(let s=0;s<n;s++)a[s]=e.charCodeAt(s);return a.buffer};var qw=class{constructor(t,e,n){this.v=t,this.t=e,this.d=n}};function Vw(t){return t instanceof qw}function Gw(t,e,n){return new qw(t,e,n)}function jk(t){const e=[];let n=-1,a=-1;const s=t[Nr]();for(;;)try{const l=s.next();if(e.push(l.value),l.done){a=e.length-1;break}}catch(l){n=e.length,a=n,e.push(l);break}return Gw(e,n,a)}const Dk=kk(Nr);function Lk(t){return Dk(t)}const zk={},Mk={},Ik={0:{},1:{},2:{},3:{},4:{},5:{}};function Fw(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Uk(t,e){Fw(t,e),e.add(t)}function Eo(t,e,n){Fw(t,e),e.set(t,n)}function ls(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function We(t,e){return t.get(ls(t,e))}function Ya(t,e,n){return t.set(ls(t,e),n),n}var cs=new WeakMap,_r=new WeakMap,wr=new WeakMap,ru=new WeakMap,kn=new WeakMap,Ao=new WeakSet,Kw=class{constructor(){Uk(this,Ao),Eo(this,cs,[]),Eo(this,_r,[]),Eo(this,wr,!0),Eo(this,ru,!1),Eo(this,kn,0)}on(t){let e=We(wr,this),n=0;if(e){for(;n<We(kn,this)&&We(_r,this)[n];n++);if(n===We(kn,this)){var a;Ya(kn,this,(a=We(kn,this),a++,a))}We(_r,this)[n]=t}return ls(Ao,this,Pk).call(this,t),()=>{if(We(wr,this)&&e){for(e=!1,We(_r,this)[n]=void 0;We(kn,this)>0&&!We(_r,this)[We(kn,this)-1];){var s;Ya(kn,this,(s=We(kn,this),s--,s))}We(_r,this).length=We(kn,this)}}}next(t){We(wr,this)&&(We(cs,this).push(t),ls(Ao,this,Nh).call(this,t,"next"))}throw(t){We(wr,this)&&(We(cs,this).push(t),ls(Ao,this,Nh).call(this,t,"throw"),Ya(wr,this,!1),Ya(ru,this,!1),We(_r,this).length=0)}return(t){We(wr,this)&&(We(cs,this).push(t),ls(Ao,this,Nh).call(this,t,"return"),Ya(wr,this,!1),Ya(ru,this,!0),We(_r,this).length=0)}};function Nh(t,e){for(let a=0;a<We(kn,this);a++){var n;(n=We(_r,this)[a])===null||n===void 0||n[e](t)}}function Pk(t){for(let e=0,n=We(cs,this).length;e<n;e++){const a=We(cs,this)[e];!We(wr,this)&&e===n-1?t[We(ru,this)?"return":"throw"](a):t.next(a)}}function Yp(t){return t instanceof Kw}function il(){return new Kw}function Bk(t,e){const n=il(),a=t[Or]();let s=!1,l=!1;async function u(){try{for(;!s;){const d=await a.next();if(d.done){l=!0,n.return(d.value);break}n.next(d.value)}}catch(d){l=!0,n.throw(d)}}return u().catch(()=>{}),n}const $k=Ok(Or,Kp);function Hk(t){return $k(t)}async function qk(t){try{return[1,await t]}catch(e){return[0,e]}}function Vk(t,e){var n;return{plugins:e.plugins,mode:t,marked:new Set,features:127^(e.disabledFeatures||0),refs:e.refs||new Map,depthLimit:e.depthLimit||1e3,compactArrayBufferViews:(n=e.compactArrayBufferViews)!==null&&n!==void 0?n:!1}}function iu(t,e){t.marked.add(e)}function Gk(t,e){const n=t.refs.size;return t.refs.set(e,n),n}function $u(t,e){const n=t.refs.get(e);return n!=null?(iu(t,n),{type:1,value:ok(n)}):{type:0,value:Gk(t,e)}}function Zp(t,e){const n=$u(t,e);return n.type===1?n:Pw(e)?{type:2,value:dk(n.value,e)}:n}function Yi(t,e){const n=Zp(t,e);if(n.type!==0)return n.value;if(e in Dw)return uk(n.value,e);throw new ia(e)}function Hu(t,e){const n=$u(t,Ik[e]);return n.type===1?n.value:Be(26,n.value,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Fk(t){const e=$u(t,zk);
13return e.type===1?e.value:Be(27,e.value,void 0,void 0,void 0,void 0,void 0,void 0,Yi(t,Nr),void 0,void 0,void 0)}function Kk(t){const e=$u(t,Mk);return e.type===1?e.value:Be(29,e.value,void 0,void 0,void 0,void 0,void 0,[Hu(t,1),Yi(t,Or)],void 0,void 0,void 0,void 0)}function Yk(t,e,n,a){return Be(n?11:10,t,void 0,void 0,void 0,a,void 0,void 0,void 0,void 0,$w(e),void 0)}function Zk(t,e,n,a){return Be(8,e,void 0,void 0,void 0,void 0,{k:n,v:a},void 0,Hu(t,0),void 0,void 0,void 0)}function Jp(t,e){if(!t.compactArrayBufferViews)return e;const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength).slice().buffer,a=e.constructor;return new a(n)}function Jk(t){if(typeof Buffer<"u")return Buffer.from(t).toString("base64");const e=new Uint8Array(t);if(typeof e.toBase64=="function")return e.toBase64();let n="";for(let a=0,s=e.length;a<s;a++)n+=String.fromCharCode(e[a]);return btoa(n)}function Xk(t,e,n){return Be(19,e,Jk(n),void 0,void 0,void 0,void 0,void 0,Hu(t,5),void 0,void 0,void 0)}function Wk(t,e){return{base:Vk(t,e),child:void 0}}var Qk=class{constructor(t,e){this._p=t,this.depth=e}parse(t){return _t(this._p,this.depth,t)}};async function e1(t,e,n){const a=[];for(let s=0,l=n.length;s<l;s++)s in n?a[s]=await _t(t,e,n[s]):a[s]=0;return a}async function t1(t,e,n,a){return hk(n,a,await e1(t,e,a))}async function Xp(t,e,n){const a=Object.entries(n),s=[],l=[];for(let u=0,d=a.length;u<d;u++)s.push(ra(a[u][0])),l.push(await _t(t,e,a[u][1]));return Nr in n&&(s.push(Yi(t.base,Nr)),l.push(wk(Fk(t.base),await _t(t,e,jk(n))))),Or in n&&(s.push(Yi(t.base,Or)),l.push(Sk(Kk(t.base),await _t(t,e,Bk(n))))),ms in n&&(s.push(Yi(t.base,ms)),l.push(Hw(n[ms]))),ps in n&&(s.push(Yi(t.base,ps)),l.push(n[ps]?Lw:zw)),{k:s,v:l}}async function jh(t,e,n,a,s){return Yk(n,a,s,await Xp(t,e,a))}async function n1(t,e,n,a){return pk(n,await _t(t,e,a.valueOf()))}async function r1(t,e,n,a){return a=Jp(t.base,a),mk(n,a,await _t(t,e,a.buffer))}async function i1(t,e,n,a){return a=Jp(t.base,a),gk(n,a,await _t(t,e,a.buffer))}async function a1(t,e,n,a){return a=Jp(t.base,a),vk(n,a,await _t(t,e,a.buffer))}async function Wb(t,e,n,a){const s=Bw(a,t.base.features);return yk(n,a,s?await Xp(t,e,s):void 0)}async function s1(t,e,n,a){const s=Bw(a,t.base.features);return bk(n,a,s?await Xp(t,e,s):void 0)}async function o1(t,e,n,a){const s=[],l=[];for(const[u,d]of a.entries())s.push(await _t(t,e,u)),l.push(await _t(t,e,d));return Zk(t.base,n,s,l)}async function l1(t,e,n,a){const s=[];for(const l of a.keys())s.push(await _t(t,e,l));return _k(n,s)}async function Yw(t,e,n,a){const s=t.base.plugins;if(s)for(let l=0,u=s.length;l<u;l++){const d=s[l];if(d.parse.async&&d.test(a))return fk(n,d.tag,await d.parse.async(a,new Qk(t,e),{id:n}))}}async function c1(t,e,n,a){const[s,l]=await qk(a);return Be(12,n,s,void 0,void 0,void 0,void 0,void 0,await _t(t,e,l),void 0,void 0,void 0)}function u1(t,e,n,a,s){const l=[],u=n.on({next:d=>{iu(this.base,e),_t(this,t,d).then(h=>{l.push(Ak(e,h))},h=>{s(h),u()})},throw:d=>{iu(this.base,e),_t(this,t,d).then(h=>{l.push(Tk(e,h)),a(l),u()},h=>{s(h),u()})},return:d=>{iu(this.base,e),_t(this,t,d).then(h=>{l.push(Rk(e,h)),a(l),u()},h=>{s(h),u()})}})}async function d1(t,e,n,a){return Ek(n,Hu(t.base,4),await new Promise(u1.bind(t,e,n,a)))}async function f1(t,e,n,a){const s=[];for(let l=0,u=a.v.length;l<u;l++)s[l]=await _t(t,e,a.v[l]);return Ck(n,s,a.t,a.d)}async function h1(t,e,n,a){if(Array.isArray(a))return t1(t,e,n,a);if(Yp(a))return d1(t,e,n,a);if(Vw(a))return f1(t,e,n,a);let s=a.constructor;if(s!==void 0&&typeof s!="function"){const d=Object.getPrototypeOf(a);s=d===null?void 0:d.constructor}if(s===xk)return _t(t,e,a.replacement);const l=await Yw(t,e,n,a);if(l)return l;switch(s){case Object:return jh(t,e,n,a,!1);case void 0:return jh(t,e,n,a,!0);case Date:return lk(n,a);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Wb(t,e,n,a);case Number:case Boolean:case String:case BigInt:return n1(t,e,n,a);case ArrayBuffer:return Xk(t.base,n,a);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return r1(t,e,n,a);case DataView:return a1(t,e,n,a);case Map:return o1(t,e,n,a);case Set:return l1(t,e,n,a)}if(s===Promise||a instanceof Promise)return c1(t,e,n,a);const u=t.base.features;if(u&32&&s===RegExp)return ck(n,a);if(u&16)switch(s){case BigInt64Array:case BigUint64Array:return i1(t,e,n,a)}if(u&1&&typeof AggregateError<"u"&&(s===AggregateError||a instanceof AggregateError))return s1(t,e,n,a);if(u&64&&typeof Temporal<"u")switch(s){case Temporal.Instant:return ai(n,0,a);case Temporal.Duration:return ai(n,1,a);case Temporal.PlainDate:return ai(n,2,a);case Temporal.PlainDateTime:return ai(n,3,a);case Temporal.PlainMonthDay:return ai(n,4,a);case Temporal.PlainTime:return ai(n,5,a);case Temporal.PlainYearMonth:return ai(n,6,a);case Temporal.ZonedDateTime:return ai(n,7,a)}if(a instanceof Error)return Wb(t,e,n,a);if(Nr in a||Or in a)return jh(t,e,n,a,!!s);throw new ia(a)}async function p1(t,e,n){const a=Zp(t.base,n);if(a.type!==0)return a.value;
13const s=await Yw(t,e,a.value,n);if(s)return s;throw new ia(n)}async function _t(t,e,n){if(e>=t.base.depthLimit)throw new Iw(t.base.depthLimit);switch(typeof n){case"boolean":return n?Lw:zw;case"undefined":return Ix;case"string":return Hw(n);case"number":return ak(n);case"bigint":return sk(n);case"object":if(n){const a=Zp(t.base,n);return a.type===0?await h1(t,e+1,a.value,n):a.value}return Ux;case"symbol":return Yi(t.base,n);case"function":return p1(t,e,n);default:throw new ia(n)}}async function m1(t,e){try{return await _t(t,0,e)}catch(n){throw n instanceof Xb?n:new Xb(n)}}function Zw(t,e){for(let n=0,a=e.length;n<a;n++){const s=e[n];t.has(s)||(t.add(s),s.extends&&Zw(t,s.extends))}}function Jw(t){if(t){const e=new Set;return Zw(e,t),[...e]}}function g1(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 ek(t)}}function v1(t){switch(t){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function y1(t){switch(t){case Or:case ps:case ms:case Nr:return!0;default:return!1}}const b1=1e6,_1=512,w1=1e4,S1=2e4;function Xw(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 E1=1e3;function A1(t,e){var n,a;const s=(n=e.maxBase64Length)!==null&&n!==void 0?n:b1;if(!Number.isSafeInteger(s)||s<0)throw new RangeError("maxBase64Length must be a non-negative safe integer");const l=e.refs||new Map;return"types"in l||Object.assign(l,{types:new Map}),{mode:t,plugins:e.plugins,refs:l,features:(a=e.features)!==null&&a!==void 0?a:127^(e.disabledFeatures||0),depthLimit:e.depthLimit||E1,maxBase64Length:s}}function T1(t){return{mode:2,base:A1(2,t),child:void 0}}var R1=class{constructor(t,e){this._p=t,this.depth=e}deserialize(t){return tt(this._p,this.depth,t)}};function Ww(t,e){if(e<0||!Number.isFinite(e)||!Number.isInteger(e))throw new At({t:4,i:e});if(t.refs.has(e))throw new Error("Conflicted ref id: "+e)}function Qw(t){return!!t&&(typeof t=="object"||typeof t=="function")&&"then"in t&&typeof t.then=="function"}function C1(t,e,n){return Ww(t.base,e),t.state.marked.has(e)&&t.base.refs.set(e,n),n}function x1(t,e,n){return Ww(t.base,e),t.base.refs.set(e,n),n}function vt(t,e,n){return t.mode===1?C1(t,e,n):x1(t,e,n)}function lp(t,e,n){if(Object.hasOwn(e,n))return e[n];throw new At(t)}function k1(t,e){return vt(t,e.i,rk(Ai(e.s)))}function _i(t,e){if(!Array.isArray(e))throw new At(t)}function O1(t,e,n){const a=n.a;_i(n,a);const s=a.length,l=vt(t,n.i,new Array(s));for(let u=0,d;u<s;u++)d=a[u],d&&(l[u]=tt(t,e,d));return Xw(l,n.o),l}function Qb(t,e,n){v1(e)?t[e]=n:Object.defineProperty(t,e,{value:n,configurable:!0,enumerable:!0,writable:!0})}function N1(t,e,n,a,s){if(typeof a=="string")Qb(n,Ai(a),tt(t,e,s));else{const l=tt(t,e,a);switch(typeof l){case"string":Qb(n,l,tt(t,e,s));break;case"symbol":y1(l)&&(n[l]=tt(t,e,s));break;default:throw new At(a)}}}function eS(t,e,n){t.base.refs.types.set(e,n)}function qu(t,e,n,a){if(t.base.refs.types.get(n)!==a)throw new At(e)}function tS(t,e,n,a){const s=n.k;if(_i(n,s),_i(n,n.v),s.length>0)for(let l=0,u=n.v,d=s.length;l<d;l++)N1(t,e,a,s[l],u[l]);return a}function j1(t,e,n){const a=vt(t,n.i,n.t===10?{}:Object.create(null));return tS(t,e,n.p,a),Xw(a,n.o),a}function D1(t,e){return vt(t,e.i,new Date(e.s))}function L1(t,e){if(!(t.base.features&64))throw new Vp(e);let n;switch(e.c){case 0:n=Temporal.Instant.from(e.s);break;case 1:n=Temporal.Duration.from(e.s);break;case 2:n=Temporal.PlainDate.from(e.s);break;case 3:n=Temporal.PlainDateTime.from(e.s);break;case 4:n=Temporal.PlainMonthDay.from(e.s);break;case 5:n=Temporal.PlainTime.from(e.s);break;case 6:n=Temporal.PlainYearMonth.from(e.s);break;case 7:n=Temporal.ZonedDateTime.from(e.s);break;default:throw new At(e)}return vt(t,e.i,n)}function z1(t,e){if(t.base.features&32){const n=Ai(e.c);if(n.length>S1)throw new At(e);return vt(t,e.i,new RegExp(n,e.m))}throw new Vp(e)}function M1(t,e,n){const a=vt(t,n.i,new Set);_i(n,n.a);for(let s=0,l=n.a,u=l.length;s<u;s++)a.add(tt(t,e,l[s]));return a}function I1(t,e,n){const a=vt(t,n.i,new Map);_i(n,n.e.k),_i(n,n.e.v);for(let s=0,l=n.e.k,u=n.e.v,d=l.length;s<d;s++)a.set(tt(t,e,l[s]),tt(t,e,u[s]));return a}function U1(t,e){if(typeof e.s!="string")throw new At(e);if(e.s.length>t.base.maxBase64Length)throw new RangeError("ArrayBuffer exceeds maxBase64Length ("+t.base.maxBase64Length+")");const n=Ai(e.s);let a;if(n.length<_1||typeof Buffer>"u")a=Nk(n);else{const s=atob(n);a=new ArrayBuffer(s.length),Buffer.from(a).write(s,"latin1")}return vt(t,e.i,a)}function P1(t,e,n){var a;const s=g1(n.c),l=tt(t,e,n.f);if(!(l instanceof ArrayBuffer))throw new At(n);const u=(a=n.b)!==null&&a!==void 0?a:0;if(u<0||u>l.byteLength)throw new At(n);return vt(t,n.i,new s(l,u,n.l))}function B1(t,e,n){var a;const s=tt(t,e,n.f);if(!(s instanceof ArrayBuffer))throw new At(n);const l=(a=n.b)!==null&&a!==void 0?a:0;if(l<0||l>s.byteLength)throw new At(n);return vt(t,n.i,new DataView(s,l,n.l))}function nS(t,e,n,a){if(n.p){const s=tS(t,e,n.p,{});Object.defineProperties(a,Object.getOwnPropertyDescriptors(s))}return a}function $1(t,e,n){return nS(t,e,n,vt(t,n.i,new AggregateError([],Ai(n.m))))}function H1(t,e,n){const a=lp(n,Mx,n.s);return nS(t,e,n,vt(t,n.i,new a(Ai(n.m))))}function q1(t,e,n){const a=Kp(),s=vt(t,n.i,a.p),l=tt(t,e,n.f);if(Qw(l))throw new At(n.f);return n.s?a.s(l):a.f(l),s}function V1(t,e,n){return vt(t,n.i,Object(tt(t,e,n.f)))}function G1(t,e,n){const a=t.base.plugins;if(a){const s=Ai(n.c);for(let l=0,u=a.length;l<u;l++){const d=a[l];if(d.tag===s)return vt(t,n.i,d.deserialize(n.s,new R1(t,e),{id:n.i}))}}throw new Xx(n.c)}function F1(t,e){const n=vt(t,e.i,vt(t,e.s,Kp()).p);return eS(t,e.s,22),n}function K1(t,e,n){const a=t.base.refs.get(n.i);if(a){qu(t,n,n.i,22);const s=tt(t,e,n.a[1]);if(Qw(s))throw new At(n.a[1]);n.t===23?a.s(s):a.f(s);return}throw new Bu("Promise")}function Y1(t,e,n){tt(t,e,n.a[0]);const a=tt(t,e,n.a[1]);if(!Vw(a))throw new At(n.a[1]);return Lk(a)}function Z1(t,e,n){tt(t,e,n.a[0]);const a=tt(t,e,n.a[1]);if(!Yp(a))throw new At(n.a[1]);return Hk(a)}function J1(t,e,n){const a=vt(t,n.i,il());eS(t,n.i,31);const s=n.a;_i(n,s);const l=s.length;if(l)for(let u=0;u<l;u++)tt(t,e,s[u]);return a}function X1(t,e,n){const a=t.base.refs.get(n.i);if(a){qu(t,n,n.i,31),a.next(tt(t,e,n.f));return}throw new Bu("Stream")}function W1(t,e,n){const a=t.base.refs.get(n.i);if(a){qu(t,n,n.i,31),a.throw(tt(t,e,n.f));return}throw new Bu("Stream")}function Q1(t,e,n){const a=t.base.refs.get(n.i);if(a){qu(t,n,n.i,31),a.return(tt(t,e,n.f));return}throw new Bu("Stream")}function eO(t,e,n){tt(t,e,n.f)}function tO(t,e,n){tt(t,e,n.a[1])}function e0(t,e){return Number.isInteger(t)&&t>=-1&&t<e}function nO(t,e,n){_i(n,n.a);const a=n.a.length;if(!(e0(n.s,a)&&e0(n.l,a)))throw new At(n);const s=vt(t,n.i,Gw([],n.s,n.l));for(let l=0;l<a;l++)s.v[l]=tt(t,e,n.a[l]);return s}function tt(t,e,n){if(e>t.base.depthLimit)throw new Iw(t.base.depthLimit);switch(e+=1,n.t){case 2:return lp(n,Lx,n.s);case 0:return Number(n.s);case 1:return Ai(String(n.s));case 3:if(String(n.s).length>w1)throw new At(n);return BigInt(n.s);case 4:return t.base.refs.get(n.i);case 18:return k1(t,n);case 9:return O1(t,e,n);case 10:case 11:return j1(t,e,n);case 5:return D1(t,n);case 6:return z1(t,n);case 7:return M1(t,e,n);case 8:return I1(t,e,n);case 19:return U1(t,n);case 16:case 15:return P1(t,e,n);case 20:return B1(t,e,n);case 14:return $1(t,e,n);case 13:return H1(t,e,n);case 12:return q1(t,e,n);case 17:return lp(n,Dx,n.s);case 21:return V1(t,e,n);case 25:return G1(t,e,n);case 22:return F1(t,n);case 23:case 24:return K1(t,e,n);case 28:return Y1(t,e,n);case 30:return Z1(t,e,n);case 31:return J1(t,e,n);case 32:return X1(t,e,n);case 33:return W1(t,e,n);case 34:return Q1(t,e,n);case 27:return eO(t,e,n);case 29:return tO(t,e,n);case 35:return nO(t,e,n);case 36:return L1(t,n);default:throw new Vp(n)}}function rO(t,e){try{return tt(t,0,e)}catch(n){throw new Jx(n)}}function iO(t,e){const n=Jw(e.plugins);return rO(T1({maxBase64Length:e.maxBase64Length,plugins:n,refs:e.refs,features:e.features,disabledFeatures:e.disabledFeatures,depthLimit:e.depthLimit}),t)}async function aO(t,e={}
13){const n=Jw(e.plugins),a=Wk(1,{compactArrayBufferViews:e.compactArrayBufferViews,plugins:n,disabledFeatures:e.disabledFeatures});return{t:await m1(a,t),f:a.base.features,m:Array.from(a.base.marked)}}function sO(t){return{tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(e,n){return{v:n.parse(t.toSerializable(e))}},async async(e,n){return{v:await n.parse(t.toSerializable(e))}},stream(e,n){return{v:n.parse(t.toSerializable(e))}}},serialize:void 0,deserialize(e,n){return t.fromSerializable(n.deserialize(e.v))}}}const oO={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 lO=class{constructor(t,e){this.stream=t,this.hint=e?.hint??"binary"}};function rS(t){const e=[];for(let n=0;n<t.length;n+=32768)e.push(String.fromCharCode.apply(null,t.subarray(n,n+32768)));return btoa(e.join(""))}function iS(t){const e=atob(t),n=new Uint8Array(e.length);for(let a=0;a<e.length;a++)n[a]=e.charCodeAt(a);return n}const cO=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function uO(t){try{return"t"+cO.decode(t)}catch{return"b"+rS(t)}}const dO=new TextEncoder;function fO(t){const e=t.slice(1);return t[0]==="t"?dO.encode(e):iS(e)}function hO(t,e,n){n?.throwIfAborted();const a=il(),s=t.getReader();let l=!0;const u=()=>{l=!1,n?.removeEventListener("abort",h),s.releaseLock()},d=p=>l?(s.cancel(p).catch(()=>{}),u(),!0):!1,h=()=>{d(n.reason)&&a.throw(n.reason)};return n?.addEventListener("abort",h),(async()=>{try{for(;l;){const{done:p,value:g}=await s.read();if(!l)return;if(p){u(),a.return(void 0);return}a.next(e(g))}}catch(p){d(p)&&a.throw(p)}})(),[a,d]}function pO(t,e){let n,a=!1;return new ReadableStream({start(s){const l=t.on({next(u){if(!a)try{s.enqueue(e(u))}catch(d){a=!0;const h=n;n=void 0,h?.(),s.error(d)}},throw(u){a||(a=!0,n=void 0,s.error(u))},return(){a||(a=!0,n=void 0,s.close())}});a?l():n=l},cancel(){const s=n;n=void 0,s?.()}})}function aS(t){return{tag:"tss/RawStream",test:e=>e instanceof lO,parse:{async:async(e,n)=>{const a=await n.parse(e.hint==="text"),[s]=hO(e.stream,e.hint==="text"?uO:rS,t);return{text:a,stream:await n.parse(s)}}},serialize:void 0,deserialize:void 0}}const mO=aS(),gO={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,e){return pO(e.deserialize(t.stream),e.deserialize(t.text)?fO:iS)}},ui={},sS=t=>new ReadableStream({start(e){t.on({next(n){try{e.enqueue(n)}catch{}},throw(n){e.error(n)},return(){try{e.close()}catch{}}})}}),vO={tag:"seroval-plugins/web/ReadableStreamFactory",test(t){return t===ui},parse:{sync(){return ui},async async(){return await Promise.resolve(ui)},stream(){return ui}},serialize(){return sS.toString()},deserialize(){return ui}};async function yO(t,e){try{for(;;){const n=await e.read();if(n.done){t.return(n.value),e.releaseLock();break}t.next(n.value)}}catch(n){e.releaseLock(),t.throw(n)}}function bO(t){t.cancel().catch(()=>{}),t.releaseLock()}function t0(t){const e=il(),n=t.getReader(),a=bO.bind(null,n);return yO(e,n).catch(a),[e,a]}const _O={tag:"seroval/plugins/web/ReadableStream",extends:[vO],test(t){return typeof ReadableStream>"u"?!1:t instanceof ReadableStream},parse:{sync(t,e){return{factory:e.parse(ui),stream:e.parse(il())}},async async(t,e){return{factory:await e.parse(ui),stream:await e.parse(t0(t)[0])}},stream(t,e){const[n,a]=t0(t);return e.addCleanup(a),{factory:e.parse(ui),stream:e.parse(n)}}},serialize(t,e){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e){const n=e.deserialize(t.stream);if(!n||typeof n!="object"||!Yp(n))throw new Error("Expected a stream source.");return sS(n)}};function oS(t){return[oO,t?aS(t):mO,_O]}const wO=oS();[...wO];function SO(t){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,n){return t(n.deserialize(e.streamId))}}}function EO(t){return[...W_()?.serializationAdapters?.map(sO)??[],...t]}function lS(t){return EO(oS(t))}var n0=new TextDecoder,Vn=new Uint8Array,AO=new ByteLengthQueuingStrategy({highWaterMark:0});function TO(t){const e=t.getReader(),n=new Map;let a=0,s,l;const u=()=>{s?.(),s=void 0},d=(v,y)=>{const _=v[1];v[1]=!1,_&&(y===1?_.close():_.error(y[0]))},h=new ReadableStream({start(v){l=v},pull:u,cancel(v){const y=[v===void 0?new Error("Framed response cancelled"):v];a=y,u(),e.cancel(v).catch(()=>{});for(const _ of n.values())d(_,y)}});function p(v){const y=n.get(v);if(y)return y;if(n.size>=1024)throw new Error("Too many raw streams");let _;const E=[new ReadableStream({start(w){_=w},cancel(){E[1]!==!1&&(E[1]=null)}},AO),_];return n.set(v,E),a!==0&&d(E,a),E}function g(v){if(v===0||v>>>0!==v)throw new RangeError("Invalid raw stream ID");return p(v)[0]}return(async()=>{let v=Vn,y=0;async function _(){for(;y===v.byteLength;){v=Vn,y=0;const w=await e.read();if(a!==0||w.done)return!1;v=w.value}return!0}async function E(w,A){if(w===0)return Vn;
13if(!await _()){if(A)return;throw new Error("Incomplete frame")}if(v.byteLength-y>=w){const x=v.subarray(y,y+w);return y+=w,y===v.byteLength&&(v=Vn,y=0),x}const T=new Uint8Array(w);let C=0;for(;C<w;){if(!await _())throw new Error("Incomplete frame");const x=Math.min(w-C,v.byteLength-y);T.set(v.subarray(y,y+x),C),y+=x,C+=x}return y===v.byteLength&&(v=Vn,y=0),T}try{for(;a===0;){let w=await E(9,!0);if(a!==0)return;if(!w){for(const Y of n.values())if(Y[1])throw new Error("Incomplete raw stream");a=1,l.close();return}const A=w[0],T=(w[1]<<24|w[2]<<16|w[3]<<8|w[4])>>>0,C=(w[5]<<24|w[6]<<16|w[7]<<8|w[8])>>>0;if(w=Vn,A>3||A===0!=(T===0)||C>16777216||A===2&&C!==0)throw new Error("Invalid frame");const x=A===0?void 0:p(T);if(x?.[1]===!1)throw new Error("Raw stream already ended");let z=await E(C);if(a!==0)return;if(!x){const Y=n0.decode(z);for(z=Vn,l.enqueue(Y);a===0&&l.desiredSize<=0;)await new Promise(M=>{s=M});continue}if(A===1){const Y=x[1];if(Y){if(-Y.desiredSize>134217728){Y.error(new Error(`Raw stream ${T} has too many unread bytes`)),x[1]=null,z=Vn;continue}const M=z.byteLength*4<z.buffer.byteLength?z.slice():z;z=Vn,Y.enqueue(M)}}else d(x,A===2?1:[new Error(n0.decode(z))])}}catch(w){if(a===0){const A=[w];a=A,e.cancel(w).catch(()=>{}),l.error(w);for(const T of n.values())d(T,A)}}finally{v=Vn,e.releaseLock()}})(),[h,g]}const Kn=Symbol.for("TSR_DEFERRED_PROMISE");function RO(t,e){const n=t;return n[Kn]||(n[Kn]={status:"pending"},n.then(a=>{n[Kn].status="success",n[Kn].data=a}).catch(a=>{n[Kn].status="error",n[Kn].error={data:gx(a),__isServerError:!0}})),n}const CO="Error preloading route! ☝️";function cS(t,e){if(t)return typeof t=="string"?t:t[e]}function xO(t){return t?.scriptFormat??"module"}function kO(t,e,n){const a=OO(e),s=cS(n,"script")??a.crossOrigin;return{...xO(t)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:a.href,...s?{crossOrigin:s}:{}}}function OO(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function zc(t,e){if(e.length===0)return;if(e.length===1){t.push(e[0]);return}const n=new Set;for(const a of e){const s=JSON.stringify(a);n.has(s)||(n.add(s),t.push(a))}}function NO(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function jO(t,e,n,a){const s=vw(t),l=[],u=[];for(const d of s)for(const h of Array.isArray(d.scripts)?d.scripts:[]){if(!h)continue;const{children:p,...g}=h;l.push({tag:"script",attrs:{...g,...a,nonce:n},children:p})}if(e)for(const d of s)for(const h of e.routes[d.routeId]?.scripts??[])u.push({tag:"script",attrs:{...h.attrs,nonce:n},children:h.children});return[l,u]}function DO([t,e],n){return[...t,...e]}var uS=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 n=this.options,a=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=hs:this.parentRoute||Io();let s=a?hs:n?.path;s&&s!=="/"&&(s=aw(s));const l=n?.id||s,u=a?hs:fs((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(l??""));s==="__root__"&&(s="/");const d=u==="__root__"?"/":s===void 0?this.parentRoute.fullPath:fs(this.parentRoute.fullPath+"/"+s);this._path=s,this._id=u,this._fullPath=d,this._to=Zn(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=>Iu({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.")}},LO=class extends uS{constructor(t){super(t)}};var Ho;function cp(t,e,n){try{return iO(t,e)}catch(a){throw fS(n),a}}async function dS(t){t.length>0&&(await Promise.allSettled(t),t.length=0)}function fS(t){for(const e of t)e.catch(()=>{});t.length=0}var zO=Object.prototype.hasOwnProperty;function hS(t){for(const e in t)if(zO.call(t,e))return!0;return!1}async function MO(t,e,n){Ho||(Ho=lS());const a=e[0],s=a.fetch??n,l=a.data instanceof FormData,u=new Headers(a.headers);if(u.set("x-tsr-serverFn","true"),l||u.set("accept",`${kC}, application/x-ndjson, application/json`),a.method==="GET"){if(l)throw new Error("FormData is not supported with GET requests");const h=await pS(a);if(h!==void 0){const p=fw({payload:h});t.includes("?")?t+=`&${p}`:t+=`?${p}`}}let d;
13return a.method==="POST"&&(d=await IO(a),typeof d=="string"&&u.set("content-type","application/json")),UO(()=>s(t,{method:a.method,headers:u,signal:a.signal,body:d}))}async function pS(t){let e;return t.data!==void 0&&(e={data:t.data}),t.context&&hS(t.context)&&((e??={}).context=t.context),e?mS(e,t.signal):void 0}async function mS(t,e){e?.throwIfAborted();let n;try{n=await aO(t,{plugins:e?lS(e):Ho})}finally{e?.throwIfAborted()}return JSON.stringify(n)}async function IO(t){if(t.data instanceof FormData){let e;return t.context&&hS(t.context)&&(e=await mS(t.context,t.signal)),e!==void 0&&t.data.set(xC,e),t.data}return pS(t)}async function UO(t){let e;try{e=await t()}catch(a){if(a instanceof Response)e=a;else throw a}if(e.headers.get("x-tss-raw")==="true")return e;const n=e.headers.get("content-type");if(n||Io(),e.headers.get("x-tss-serialized")){let a;if(n.includes("application/x-tss-framed")){const s=/;\s*v=(\d+)/.exec(n)?.[1];if(s&&+s!=1)throw new Error(`Unsupported framed protocol version ${s}`);if(!e.body)throw new Error("No response body for framed response");const[l,u]=TO(e.body);a=await PO(l,[SO(u),...Ho])}else if(n.includes("application/json")){const s=await e.json(),l=[];a=cp(s,{plugins:Ho},l),await dS(l)}if(a||Io(),a instanceof Error)throw a;return a}if(n.includes("application/json")){const a=await e.json(),s=OC(a);if(s)throw s;if(Wi(a))throw a;return a}if(!e.ok)throw new Error(await e.text());return e}async function PO(t,e){const n=t.getReader(),a={refs:new Map,plugins:e},s=d=>{n.cancel(d).catch(()=>{})};let l;const u=[];try{const d=await n.read();if(d.done)throw new Error("Stream ended before first object");l=cp(JSON.parse(d.value),a,u)}catch(d){throw s(d),n.releaseLock(),d}return(async()=>{const d=[];try{for(;;){const h=await n.read();if(h.done)return;cp(JSON.parse(h.value),a,d),fS(d)}}catch(h){s(h),console.error("Stream processing error:",h)}finally{n.releaseLock()}})(),await dS(u),l}function BO(t){const e="/_serverFn/"+t;return Object.assign((...s)=>{const l=W_()?.serverFns?.fetch;return MO(e,s,l??fetch)},{url:e,serverFnMeta:{id:t},[np]:!0})}var $O={key:"$TSS/serverfn",test:t=>typeof t!="function"||!(np in t)?!1:!!t[np],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>BO(t)},vu=R.use,gS=R.useLayoutEffect;function HO({promise:t}){if(vu)return vu(t);const e=RO(t);if(e[Kn].status==="pending")throw e;if(e[Kn].status==="error")throw e[Kn].error;return e[Kn].data}function qO(t){const e=k.jsx(VO,{...t});return t.fallback?k.jsx(R.Suspense,{fallback:t.fallback,children:e}):e}function VO(t){const e=HO(t);return t.children(e)}var Wp=class extends R.Component{constructor(...t){super(...t),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(t,e){const n=t.getResetKey();return e.error&&e.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(t){return{error:[t]}}componentDidCatch(t,e){this.props.onCatch?.(t,e)}render(){const t=this.state.error;return t?R.createElement(this.props.errorComponent??GO,{error:t[0],reset:this.reset}):this.props.children}};function GO({error:t}){const[e,n]=R.useState(!1);return k.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[k.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),k.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(a=>!a),children:e?"Hide Error":"Show Error"})]}),k.jsx("div",{style:{height:".25rem"}}),e?k.jsx("div",{children:k.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t?.message?k.jsx("code",{children:t.message}):null})}):null]})}var r0=()=>!0,FO=()=>!1;function KO({children:t,fallback:e=null}){return k.jsx(it.Fragment,{children:Qp()?t:e})}function Qp(t=!0){return it.useSyncExternalStore(YO,r0,t?FO:r0)}function YO(){return()=>{}}var vS=R.createContext(null);function Lt(t){return R.useContext(vS)}var em=R.createContext(void 0),ZO=R.createContext(void 0);function JO({update:t,notify:e,unwatched:n}){return{link:a,unlink:s,propagate:l,checkDirty:u,shallowPropagate:d};function a(p,g,v){const y=g.depsTail;if(y!==void 0&&y.dep===p)return;const _=y!==void 0?y.nextDep:g.deps;if(_!==void 0&&_.dep===p){_.version=v,g.depsTail=_;return}const E=p.subsTail;if(E!==void 0&&E.version===v&&E.sub===g)return;const w=g.depsTail=p.subsTail={version:v,dep:p,sub:g,prevDep:y,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=w),y!==void 0?y.nextDep=w:g.deps=w,E!==void 0?E.nextSub=w:p.subs=w}function s(p,g=p.sub){const v=p.dep,y=p.prevDep,_=p.nextDep,E=p.nextSub,w=p.prevSub;return _!==void 0?_.prevDep=y:g.depsTail=y,y!==void 0?y.nextDep=_:g.deps=_,E!==void 0?E.prevSub=w:v.subsTail=w,w!==void 0?w.nextSub=E:(v.subs=E)===void 0&&n(v),_}function l(p){let g=p.nextSub,v;e:do{const y=p.sub;let _=y.flags;if(_&60?_&12?_&4?!(_&48)&&h(p,y)?(y.flags=_|40,_&=1):_=0:y.flags=_&-9|32:_=0:y.flags=_|32,_&2&&e(y),_&1){const E=y.subs;if(E!==void 0){const w=(p=E).nextSub;w!==void 0&&(v={value:g,prev:v},g=w);continue}}if((p=g)!==void 0){g=p.nextSub;continue}for(;v!==void 0;)if(p=v.value,v=v.prev,p!==void 0){g=p.nextSub;continue e}break}while(!0)}function u(p,g){let v,y=0,_=!1;e:do{const E=p.dep,w=E.flags;if(g.flags&16)_=!0;else if((w&17)===17){if(t(E)){const A=E.subs;A.nextSub!==void 0&&d(A),_=!0}}else if((w&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(v={value:p,prev:v}),p=E.deps,g=E,++y;continue}if(!_){const A=p.nextDep;if(A!==void 0){p=A;continue}}for(;y--;){const A=g.subs,T=A.nextSub!==void 0;if(T?(p=v.value,v=v.prev):p=A,_){if(t(g)){T&&d(A),g=p.sub;continue}_=!1}else g.flags&=-33;g=p.sub;const C=p.nextDep;if(C!==void 0){p=C;continue e}}return _}while(!0)}function d(p){do{const g=p.sub,v=g.flags;(v&48)===32&&(g.flags=v|16,(v&6)===2&&e(g))}while((p=p.nextSub)!==void 0)}function h(p,g){let v=g.depsTail;for(;v!==void 0;){if(v===p)return!0;v=v.prevDep}return!1}}function XO(t,e,n){const a=typeof t=="object",s=a?t:void 0;return{next:(a?t.next:t)?.bind(s),error:(a?t.error:e)?.bind(s),complete:(a?t.complete:n)?.bind(s)}}const up=[];let au=0;const{link:i0,unlink:WO,propagate:QO,checkDirty:yS,shallowPropagate:a0}=JO({update(t){return t._update()},notify(t){up[dp++]=t,t.flags&=-3},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,yu(t))}});let Mc=0,dp=0,Nn,fp=0;function eN(t){try{++fp,t()}finally{--fp||bS()}}function yu(t){const e=t.depsTail;let n=e!==void 0?e.nextDep:t.deps;for(;n!==void 0;)n=WO(n,t)}function bS(){if(!(fp>0)){for(;Mc<dp;){const t=up[Mc];up[Mc++]=void 0,t.notify()}Mc=0,dp=0}}function s0(t,e){const n=typeof t=="function",a=t,s={_snapshot:n?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?0:1,get(){return Nn!==void 0&&i0(s,Nn,au),s._snapshot},subscribe(l){const u=XO(l),d={current:!1},h=tN(()=>{s.get(),d.current?(Nn=void 0,u.next?.(s._snapshot)):d.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(l){const u=Nn,d=e?.compare??Object.is;if(n)Nn=s,++au,s.depsTail=void 0;else if(l===void 0)return!1;
13n&&(s.flags=5);try{const h=s._snapshot,p=typeof l=="function"?l(h):l===void 0&&n?a(h):l;return h===void 0||!d(h,p)?(s._snapshot=p,!0):!1}finally{Nn=u,n&&(s.flags&=-5),yu(s)}}};return n?(s.flags=17,s.get=function(){const l=s.flags;if(l&16||l&32&&yS(s.deps,s)){if(s._update()){const u=s.subs;u!==void 0&&a0(u)}}else l&32&&(s.flags=l&-33);return Nn!==void 0&&i0(s,Nn,au),s._snapshot}):s.set=function(l){if(s._update(l)){const u=s.subs;u!==void 0&&(QO(u),a0(u),bS())}},s}function tN(t){const e=()=>{const a=Nn;Nn=n,++au,n.depsTail=void 0,n.flags=6;try{return t()}finally{Nn=a,n.flags&=-5,yu(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const a=this.flags;a&16||a&32&&yS(this.deps,this)?e():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,yu(this)}};return e(),n}var Dh={exports:{}},Lh={},zh={exports:{}},Mh={};var o0;function nN(){if(o0)return Mh;o0=1;var t=rl();function e(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}var n=typeof Object.is=="function"?Object.is:e,a=t.useState,s=t.useEffect,l=t.useLayoutEffect,u=t.useDebugValue;function d(v,y){var _=y(),E=a({inst:{value:_,getSnapshot:y}}),w=E[0].inst,A=E[1];return l(function(){w.value=_,w.getSnapshot=y,h(w)&&A({inst:w})},[v,_,y]),s(function(){return h(w)&&A({inst:w}),v(function(){h(w)&&A({inst:w})})},[v]),u(_),_}function h(v){var y=v.getSnapshot;v=v.value;try{var _=y();return!n(v,_)}catch{return!0}}function p(v,y){return y()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Mh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Mh}var l0;function rN(){return l0||(l0=1,zh.exports=nN()),zh.exports}var c0;function iN(){if(c0)return Lh;c0=1;var t=rl(),e=rN();function n(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var a=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=t.useRef,u=t.useEffect,d=t.useMemo,h=t.useDebugValue;return Lh.useSyncExternalStoreWithSelector=function(p,g,v,y,_){var E=l(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=d(function(){function T(M){if(!C){if(C=!0,x=M,M=y(M),_!==void 0&&w.hasValue){var N=w.value;if(_(N,M))return z=N}return z=M}if(N=z,a(x,M))return N;var B=y(M);return _!==void 0&&_(N,B)?(x=M,N):(x=M,z=B)}var C=!1,x,z,Y=v===void 0?null:v;return[function(){return T(g())},Y===null?void 0:function(){return T(Y())}]},[g,v,y,_]);var A=s(p,E[0],E[1]);return u(function(){w.hasValue=!0,w.value=A},[A]),h(A),A},Lh}var u0;function aN(){return u0||(u0=1,Dh.exports=iN()),Dh.exports}var sN=aN();function oN(t,e){return t===e}function In(t,e=a=>a,n){const a=n?.compare??oN,s=R.useCallback(u=>{const{unsubscribe:d}=t.subscribe(u);return d},[t]),l=R.useCallback(()=>t.get(),[t]);return sN.useSyncExternalStoreWithSelector(s,l,l,e,a)}var d0={};function _S(t,e){const n=R.useRef();return a=>{const s=t?.select?t.select(a):a;return t?.structuralSharing??e.options.defaultStructuralSharing?n.current=mi(n.current,s):s}}function aa(t){const e=Lt(),n=R.useContext(t.from?ZO:em),a=t.from??n,s=e.stores.getMatchStore(a),l=_S(t,e),u=In(s,d=>d?l(d):d0);if(u!==d0)return u;(t.shouldThrow??!0)&&Io()}function wS(t){return aa({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function SS(t){const{select:e,...n}=t;return aa({...n,select:a=>e?e(a.loaderDeps):a.loaderDeps})}function ES(t){return aa({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const n=t.strict===!1?e.params:e._strictParams;return t.select?t.select(n):n}})}function AS(t){return aa({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function TS(t){const e=Lt();return R.useCallback(n=>e.navigate({...n,from:n.from??t?.from}),[t?.from,e])}function RS(t){return aa({...t,select:e=>t.select?t.select(e.context):e.context})}function lN(...t){const e=R.useRef(t),n=e.current;return t.forEach((a,s)=>{zn(n[s],a,!1,!0)||(n[s]=a)}),e.current}function Ic(t,e){t.preloadRoute(e).catch(n=>{console.warn(n),console.warn(CO)})}var cN={compare:(t,e)=>t[0]===e[0]&&t[1]===e[1]};function uN(t,e){const n=typeof t=="string"&&Mo(t);if(n)return e.has(n)?t:null}function dN(t,e,n,a,s){const l=Db(t.pathname,a),u=Db(e.pathname,a);return(n?.exact?l!==u:!(l.startsWith(u)&&(l.length===u.length||l[u.length]==="/")))||(n?.includeSearch??!0)&&!zn(t.search,e.search,!n?.exact,n?.explicitUndef
13ined)?!1:n?.includeHash?s&&t.hash===e.hash:!0}function fN(t,e,n){const a=Lt(),s=R.useRef(null),l=R.useCallback(ve=>{if(s.current=ve,typeof e=="function")return e(ve);e&&(e.current=ve)},[e]),{activeOptions:u,to:d,preload:h,preloadDelay:p,hashScrollIntoView:g,replace:v,startTransition:y,resetScroll:_,viewTransition:E,ignoreBlocker:w,disabled:A,target:T,onClick:C,onBlur:x,onFocus:z,onMouseEnter:Y,onMouseLeave:M,onTouchStart:N}=t,B=Qp(!!u?.includeHash),[X,se,K]=lN(t.search,t.params,u),[Z,ne]=R.useMemo(()=>[t,{...t}],[a,t.from,t._fromLocation,t.hash,t.to,X,se,t.state,t.mask,t.unsafeRelative]),we=R.useMemo(()=>{const ve=uN(d,a.protocolAllowlist);if(ve!==void 0){const Zt=[ve??void 0];return()=>Zt}let Ue,Se;return Zt=>{Z._fromLocation||(ne._fromLocation=Zt);const un=a.buildLocation(ne),Ut=vN(un,a,A);return(!Ue||Ue[0]!==Ut)&&(Ue=[Ut,!(A||Ut&&!Mo(Ut))&&void 0],Se=[Ut,!0]),Ue[1]!==void 0&&dN(Zt,un,K,a.basepath,B)?Se:Ue}},[K,A,B,Z,ne,a,d]),[oe,I]=In(a.stores.location,we,cN),J=I===void 0&&oe,me=A||oe===void 0,Me=R.useRef(!1),ee=t.reloadDocument||J||me?!1:h??a.options.defaultPreload,D=p??a.options.defaultPreloadDelay??0,V=R.useCallback(ve=>{const Ue=ve?.isIntersecting;if(!(Ue??ee==="intent")){Ue===!1&&Ih(s);return}if(!D){Ic(a,Z);return}jo.has(s)||jo.set(s,setTimeout(()=>{jo.delete(s),Ic(a,Z)},D))},[a,Z,s,ee,D]);R.useEffect(()=>{if(!ee)return;ee==="render"&&!Me.current&&(Me.current=!0,Ic(a,Z));let ve=!0,Ue;return ee==="viewport"&&s.current&&typeof IntersectionObserver=="function"&&(Ue=new IntersectionObserver(Se=>{ve&&V(Se.pop())},{rootMargin:"100px"}),Ue.observe(s.current)),()=>{ve=!1,Ue?.disconnect(),Ih(s)}},[a,Z,ee,V,s]);const Q=mN(t,n);if(Q.ref=e?l:s,J)return Q.href=J,Q;const ie=ve=>{const Ue=T??ve.currentTarget.getAttribute("target");!me&&!(ve.metaKey||ve.altKey||ve.ctrlKey||ve.shiftKey)&&!ve.defaultPrevented&&(!Ue||Ue==="_self")&&ve.button===0&&(ve.preventDefault(),a.navigate({...Z,replace:v,resetScroll:_,hashScrollIntoView:g,startTransition:y,viewTransition:E,ignoreBlocker:w}))},he=()=>{ee==="intent"&&Ic(a,Z)},ge=()=>{ee==="intent"&&Ih(s)};return Q.onClick=Za(C,ie),Q.onBlur=Za(x,ge),Q.onFocus=Za(z,V),Q.onMouseEnter=Za(Y,V),Q.onMouseLeave=Za(M,ge),Q.onTouchStart=Za(N,he),gN(Q,t,I,oe,me,n)}var hN={},pN={className:"active"},CS=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 mN(t,e){const n={};for(const a in t)CS.has(a)||a==="type"&&e!==void 0||a==="disabled"&&e==="a"||(n[a]=t[a]);return n}function gN(t,e,n,a,s,l){const{activeProps:u,inactiveProps:d,className:h,style:p,target:g}=e,v=tw(n?u:d,{})??(n?pN:hN);Object.assign(t,v),t.href=a,l!=="a"&&(t.disabled=s),t.target=g;const y=v.style;(p||y)&&(t.style=p&&y?{...p,...y}:p||y);const _=v.className;return(h||_)&&(t.className=h?_?`${h} ${_}`:h:_),s&&(t.role="link",t["aria-disabled"]=!0),n&&(t["data-status"]="active",t["aria-current"]="page"),t}var jo=new WeakMap,Ih=t=>{clearTimeout(jo.get(t)),jo.delete(t)},Za=(t,e)=>t?n=>n.defaultPrevented||(t(n),n.defaultPrevented||e(n)):e;function vN(t,e,n){if(n)return;const a=t.maskedLocation??t,s=a.external?a.publicHref:e.history.createHref(a.publicHref)||"/";if(!((a.external||s!==a.publicHref)&&iw(s,e.protocolAllowlist)))return s}var tm=R.memo(R.forwardRef((t,e)=>{const n=t._asChild||"a",a=fN(t,e,n),s=typeof t.children=="function"?t.children({isActive:a["data-status"]==="active"}):t.children;return R.createElement(n,a,s)}),yN);function yN(t,e){let n=0;for(const a in e)if(n++,t[a]!==e[a]&&(!CS.has(a)||!zn(t[a],e[a],!1,!0)))return!1;for(const a in t)n--;return n===0}var bN=class extends uS{constructor(e){super(e),this.useMatch=n=>aa({...n,from:this.id}),this.useRouteContext=n=>RS({...n,from:this.id}),this.useSearch=n=>AS({...n,from:this.id}),this.useParams=n=>ES({...n,from:this.id}),this.useLoaderDeps=n=>SS({...n,from:this.id}),this.useLoaderData=n=>wS({...n,from:this.id}),this.useNavigate=()=>TS({from:this.fullPath}),this.Link=it.forwardRef((n,a)=>k.jsx(tm,{ref:a,from:this.fullPath,...n}))}};function _N(t){return new bN(t)}var wN=class extends LO{constructor(t){super(t),this.useMatch=e=>aa({...e,from:this.id}),this.useRouteContext=e=>RS({...e,from:this.id}),this.useSearch=e=>AS({...e,from:this.id}),this.useParams=e=>ES({...e,from:this.id}),this.useLoaderDeps=e=>SS({...e,from:this.id}),this.useLoaderData=e=>wS({...e,from:this.id}),this.useNavigate=()=>TS({from:this.fullPath}
13),this.Link=it.forwardRef((e,n)=>k.jsx(tm,{ref:n,from:this.fullPath,...e}))}};function SN(t){return new wN(t)}function Pe(t){return e=>{const n=_N(e);return n.isRoot=!1,n}}function je(t,e){let n,a,s;const l=()=>(n||(s=void 0,n=t().then(d=>{n=void 0,u.preload=void 0,a=d[e??"default"]}).catch(d=>{n=void 0,s=d})),n),u=function(h){if(s){if(jC(s)&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${s.message}`;if(!sessionStorage.getItem(p))throw sessionStorage.setItem(p,"1"),window.location.reload(),new Promise(()=>{})}throw s}if(!a)if(vu)vu(l());else throw l();return R.createElement(a,h)};return u.preload=l,u}function EN(t){const e=Lt(),n=`not-found-${In(e.stores.location,a=>a.pathname)}-${In(e.stores.status)}`;return k.jsx(Wp,{getResetKey:()=>n,onCatch:(a,s)=>{if(Wi(a))t.onCatch?.(a,s);else throw a},errorComponent:({error:a})=>{if(Wi(a))return t.fallback?.(a);throw a},children:t.children})}function AN(){return k.jsx("p",{children:"Not Found"})}function xS(t,e,n){return e.options.notFoundComponent?k.jsx(e.options.notFoundComponent,{...n}):t.options.defaultNotFoundComponent?k.jsx(t.options.defaultNotFoundComponent,{...n}):k.jsx(AN,{})}function Vu(t,e){const n=e?.options.pendingComponent??t.options.defaultPendingComponent;return n?k.jsx(n,{}):null}var TN=(t,e)=>t[0]===e[0]&&t[1]===e[1],kS=(t,e,n)=>!e.isRoot||e.options.shellComponent||e.options.wrapInSuspense||n===!1||n==="data-only"||!t.ssr,OS=R.memo(function({routeId:e}){const n=Lt();return k.jsx(RN,{router:n,match:In(n.stores.getMatchStore(e))})});function RN({router:t,match:e}){const n=t.routesById[e.routeId],a=Vu(t,n),s=n.options.errorComponent??t.options.defaultErrorComponent,l=n.options.onCatch??t.options.defaultOnCatch,u=n.isRoot?n.options.notFoundComponent??t.options.notFoundRoute?.options.component:n.options.notFoundComponent,d=e.ssr===!1||e.ssr==="data-only",h=kS(t,n,e.ssr)&&(n.options.wrapInSuspense??a??(n.options.errorComponent?.preload||d));let p=k.jsx(CN,{match:e});d&&(p=k.jsx(KO,{fallback:a,children:p})),u&&(p=k.jsx(EN,{fallback:y=>{if(y.routeId??=e.routeId,y.routeId!==e.routeId)throw y;return R.createElement(u,y)},children:p})),s&&(p=k.jsx(Wp,{getResetKey:()=>e,errorComponent:s,onCatch:(y,_)=>{if(Wi(y))throw y.routeId??=e.routeId,y;l?.(y,_)},children:p})),h&&(p=k.jsx(R.Suspense,{fallback:a,children:p}));const g=null,v=n.isRoot?n.options.shellComponent:void 0;return k.jsx(em.Provider,{value:e.routeId,children:v?k.jsxs(v,{children:[p,g]}):k.jsxs(k.Fragment,{children:[p,g]})})}var CN=R.memo(function({match:e}){const n=Lt(),a=e.routeId,s=n.routesById[a],l=R.useMemo(()=>{const d=(s.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:a,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return d?JSON.stringify(d):void 0},[a,e.loaderDeps,e._strictParams,e._strictSearch,s.options.remountDeps,n.options.defaultRemountDeps]),u=R.useMemo(()=>{const d=s.options.component??n.options.defaultComponent;return d?k.jsx(d,{},l):k.jsx(NS,{})},[l,s.options.component,n.options.defaultComponent]);if(e.status==="pending"){if(n.ssr&&!kS(n,s,e.ssr))return u;if(n._tx)throw n._tx[5];return Vu(n,s)}if(e.status==="notFound")return xS(n,s,e.error);if(e.status==="error")throw e.error;return u}),NS=R.memo(function(){const e=Lt(),n=R.useContext(em);let a,s,l;{const d=e.stores.getMatchStore(n);[a,s]=In(d,h=>[!!h._notFound,h.error],{compare:TN}),l=In(e.stores.ids,h=>h[h.indexOf(n)+1])}if(a)return xS(e,e.routesById[n],s);if(!l)return null;const u=k.jsx(OS,{routeId:l});return n===hs?k.jsx(R.Suspense,{fallback:Vu(e),children:u}):u});function jS(t,e){const n=t[1];t.length=0,n?.(e)}function xN({t}){const e=Lt(),n=e._rendered??=[];return e.startTransition=(a,s)=>new Promise(l=>{jS(n,!1),n.push(s,l),t(e),R.startTransition(a)}),gS(()=>{const a=e.history.subscribe(e.load);e.updateLatestLocation();const s=e.latestLocation,l=e.buildLocation({to:s.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Zn(s.publicHref)!==Zn(l.publicHref))return e.commitLocation({...l,replace:!0,ignoreBlocker:!0}),a;const u=e.stores.resolvedLocation.get();return u?.href===s.href&&u.state.__TSR_key===s.state.__TSR_key?n.push(e.stores.matches.get(),d=>{d&&e.emit({type:"onRendered",...Uu(u,u)})}):e._tx||e.load({sync:!0}).catch(console.error),a},[e,e.history]),null}function kN(){const t=Lt(),e=t.routesById[hs],n=Vu(t,e),a=k.jsxs(k.Fragment,{children:[k.jsx(xN,{t:R.useState()[1]}),t.ssr?k.jsx(f0,{}):k.jsx(R.Suspense,{fallback:n,children:k.jsx(f0,{})})]});return t.options.InnerWrap?k.jsx(t.options.InnerWrap,{children:a}):a}function f0(){const t=Lt(),e=t._rendered,n=In(t.stores.matches,u=>e[0]??u),a=n[0],s=a?.routeId;gS(()=>{e[0]===n&&jS(e,!0)},[e,n]);const l=s?k.jsx(OS,{routeId:s}):null;return t.options.disableGlobalCatchBoundary?l:k.jsx(Wp,{getResetKey:()=>a,onCatch:void 0,children:l})}var ON=t=>({createMutableStore:s0,createReadonlyStore:s0,batch:eN}),NN=t=>new jN(t),jN=class extends yx{constructor(t){super(t,ON)}};function DN({router:t,children:e,...n}
13){nw(n)&&t.update({...t.options,...n,context:{...t.options.context,...n.context}});const a=k.jsx(vS.Provider,{value:t,children:e});return t.options.Wrap?k.jsx(t.options.Wrap,{children:a}):a}function LN({router:t,...e}){return k.jsx(DN,{router:t,...e,children:k.jsx(kN,{})})}function DS(t){const e=Lt({warn:t?.router===void 0}),n=t?.router||e;return In(n.stores.__store,_S(t,n))}function h0(t,e){if(e)for(const[n,a]of Object.entries(e))n!=="suppressHydrationWarning"&&a!==void 0&&a!==!1&&t.setAttribute(n,typeof a=="boolean"?"":String(a))}function LS(t){const{attrs:e,children:n,nonce:a,preventScriptHoist:s}=t,l=R.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(t.tag){case"title":return k.jsx("title",{...e,suppressHydrationWarning:!0,children:n});case"meta":return k.jsx("meta",{...e,suppressHydrationWarning:!0});case"link":return k.jsx("link",{...e,precedence:e?.precedence??(e?.rel==="stylesheet"?"default":void 0),nonce:a,suppressHydrationWarning:!0});case"style":return t.inlineCss,k.jsx("style",{...e,dangerouslySetInnerHTML:l,nonce:a});case"script":return k.jsx(zN,{attrs:e,preventScriptHoist:s,children:n});default:return null}}function zN({attrs:t,children:e,preventScriptHoist:n}){Lt();const a=Qp(),s=R.useMemo(()=>e===void 0?void 0:{__html:e},[e]),l=typeof t?.type=="string"&&t.type!==""&&t.type!=="text/javascript"&&t.type!=="module";if(R.useEffect(()=>{if(!l){if(t?.src){const u=document.createElement("a");u.href=t.src;const d=u.href;for(const p of document.scripts)if(p.src===d)return;const h=document.createElement("script");return h0(h,t),document.head.appendChild(h),()=>h.remove()}if(typeof e=="string"){const u=typeof t?.type=="string"?t.type:"text/javascript",d=typeof t?.nonce=="string"?t.nonce:void 0;for(const p of document.scripts){if(p.hasAttribute("src"))continue;const g=p.getAttribute("type")??"text/javascript",v=p.getAttribute("nonce")??void 0;if(p.textContent===e&&g===u&&v===d)return}const h=document.createElement("script");return h.textContent=e,h0(h,t),document.head.appendChild(h),()=>h.remove()}}},[t,e,l]),l&&typeof e=="string")return k.jsx("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:s});if(!a){if(t?.src)return k.jsx("script",{...t,suppressHydrationWarning:!0});if(typeof e=="string")return k.jsx("script",{...t,dangerouslySetInnerHTML:s,suppressHydrationWarning:!0})}return null}function MN(t,e,n,a){n=vw(n);const s=n.map(w=>w.meta).filter(w=>w!==void 0),l=[],u={};let d;for(let w=s.length-1;w>=0;w--){const A=s[w];for(let T=A.length-1;T>=0;T--){const C=A[T];if(C)if(C.title)d||(d={tag:"title",children:C.title});else if("script:ld+json"in C)try{const x=JSON.stringify(C["script:ld+json"]);l.push({tag:"script",attrs:{type:"application/ld+json"},children:UC(x)})}catch{}else{const x=C.name??C.property;if(x){if(u[x])continue;u[x]=!0}l.push({tag:"meta",attrs:{...C,nonce:e}})}}}d&&l.push(d),e&&l.push({tag:"meta",attrs:{property:"csp-nonce",content:e}}),l.reverse();const h=n.flatMap(w=>w.links??[]).filter(w=>w!==void 0).map(w=>({tag:"link",attrs:{...w,nonce:e}})),p=t.ssr?.manifest,g=[];p&&(n.forEach(w=>{p.routes[w.routeId]?.css?.forEach(A=>{const T=NO(A);g.push({tag:"link",attrs:{rel:"stylesheet",...T,crossOrigin:cS(a,"stylesheet")??T.crossOrigin,suppressHydrationWarning:!0,nonce:e}})})}),p.inlineStyle&&g.push({tag:"style",attrs:{...p.inlineStyle.attrs,nonce:e},children:p.inlineStyle.children,inlineCss:!0}));const v=[];p&&n.forEach(w=>{p.routes[w.routeId]?.preloads?.forEach(A=>{v.push({tag:"link",attrs:{...kO(p,A,a),nonce:e}})})});const y=n.flatMap(w=>w.styles??[]).filter(w=>w!==void 0).map(({children:w,...A})=>({tag:"style",attrs:{...A,nonce:e},children:w})),_=n.flatMap(w=>w.headScripts??[]).filter(w=>w!==void 0).map(({children:w,...A})=>({tag:"script",attrs:{...A,nonce:e},children:w})),E=[];return zc(E,l),E.push(...v),zc(E,h),E.push(...g),zc(E,y),zc(E,_),E}var IN=t=>{const e=Lt(),n=e.options.ssr?.nonce,a=R.useCallback(s=>MN(e,n,s,t),[t,n,e]);return In(e.stores.matches,a,{compare:zn})};function UN(t){const e=IN(t.assetCrossOrigin),n=Lt().options.ssr?.nonce;return k.jsx(k.Fragment,{children:e.map(a=>R.createElement(LS,{...a,key:`tsr-meta-${JSON.stringify(a)}`,nonce:n}))})}var PN={suppressHydrationWarning:!0},BN=()=>{const t=Lt(),e=t.options.ssr?.nonce,n=s=>{const l=jO(s,t.ssr?.manifest,e,PN);for(const u of l[1])if(typeof u.attrs?.src=="string"){const d=u;d.preventScriptHoist=!0}return l},a=s=>DO(n(s));return $N(In(t.stores.matches,a,{compare:zn}))};function $N(t){return k.jsx(k.Fragment,{children:t.map((e,n)=>R.createElement(LS,{...e,key:`tsr-scripts-${e.tag}-${n}`}))})}const HN="/assets/styles-B-2qWThZ.css";function p0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function al(...t){return e=>{let n=!1;const a=t.map(s=>{const l=p0(s,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<a.length;s++){const l=a[s];typeof l=="function"?l():p0(t[s],null)}}}}function ln(...t){return R.useCallback(al(...t),t)}var qN=Symbol.for("react.lazy"),bu=Lp[" use ".trim().toString()];function VN(t){return typeof t=="object"&&t!==null&&"then"in t}function zS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===qN&&"_payload"in t&&VN(t._payload)}function GN(t){const e=KN(t),n=R.forwardRef((a,s)=>{let{children:l,...u}=a;zS(l)&&typeof bu=="function"&&(l=bu(l._payload));const d=R.Children.toArray(l),h=d.find(ZN);if(h){const p=h.props.children,g=d.map(v=>v===h?R.Children.count(p)>1?R.Children.only(null):R.isValidElement(p)?p.props.children:null:v);return k.jsx(e,{...u,ref:s,children:R.isValidElement(p)?R.cloneElement(p,void 0,g):null})}return k.jsx(e,{...u,ref:s,children:l})});return n.displayName=`${t}.Slot`,n}var FN=GN("Slot");function KN(t){const e=R.forwardRef((n,a)=>{let{children:s,...l}=n;if(zS(s)&&typeof bu=="function"&&(s=bu(s._payload)),R.isValidElement(s)){const u=XN(s),d=JN(l,s.props);return s.type!==R.Fragment&&(d.ref=a?al(a,u):u),R.cloneElement(s,d)}return R.Children.count(s)>1?R.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var YN=Symbol("radix.slottable");function ZN(t){return R.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===YN}function JN(t,e){const n={...e};for(const a in e){const s=t[a],l=e[a];/^on[A-Z]/.test(a)?s&&l?n[a]=(...d)=>{const h=l(...d);return s(...d),h}:s&&(n[a]=s):a==="style"?n[a]={...s,...l}
vendor: 7,178 bytes, line 13
13:a==="className"&&(n[a]=[s,l].filter(Boolean).join(" "))}return{...t,...n}}function XN(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function MS(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=MS(t[e]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}function IS(){for(var t,e,n=0,a="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=MS(t))&&(a&&(a+=" "),a+=e);return a}const m0=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,g0=IS,WN=(t,e)=>n=>{var a;if(e?.variants==null)return g0(t,n?.class,n?.className);const{variants:s,defaultVariants:l}=e,u=Object.keys(s).map(p=>{const g=n?.[p],v=l?.[p];if(g===null)return null;const y=m0(g)||m0(v);return s[p][y]}),d=n&&Object.entries(n).reduce((p,g)=>{let[v,y]=g;return y===void 0||(p[v]=y),p},{}),h=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((p,g)=>{let{class:v,className:y,..._}=g;return Object.entries(_).every(E=>{let[w,A]=E;return Array.isArray(A)?A.includes({...l,...d}[w]):{...l,...d}[w]===A})?[...p,v,y]:p},[]);return g0(t,u,h,n?.class,n?.className)},QN=(t,e)=>{const n=new Array(t.length+e.length);for(let a=0;a<t.length;a++)n[a]=t[a];for(let a=0;a<e.length;a++)n[t.length+a]=e[a];return n},e2=(t,e)=>({classGroupId:t,validator:e}),US=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),_u="-",v0=[],t2="arbitrary..",n2=t=>{const e=i2(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return r2(u);const d=u.split(_u),h=d[0]===""&&d.length>1?1:0;return PS(d,h,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=a[u],p=n[u];return h?p?QN(p,h):h:p||v0}return n[u]||v0}}},PS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const s=t[e],l=n.nextPart.get(s);if(l){const p=PS(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(_u):t.slice(e).join(_u),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(d))return g.classGroupId}},r2=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),a=e.slice(0,n);return a?t2+a:void 0})(),i2=t=>{const{theme:e,classGroups:n}=t;return a2(n,e)},a2=(t,e)=>{const n=US();for(const a in t){const s=t[a];nm(s,n,a,e)}return n},nm=(t,e,n,a)=>{const s=t.length;for(let l=0;l<s;l++){const u=t[l];s2(u,e,n,a)}},s2=(t,e,n,a)=>{if(typeof t=="string"){o2(t,e,n);return}if(typeof t=="function"){l2(t,e,n,a);return}c2(t,e,n,a)},o2=(t,e,n)=>{const a=t===""?e:BS(e,t);a.classGroupId=n},l2=(t,e,n,a)=>{if(u2(t)){nm(t(a),e,n,a);return}e.validators===null&&(e.validators=[]),e.validators.push(e2(n,t))},c2=(t,e,n,a)=>{const s=Object.entries(t),l=s.length;for(let u=0;u<l;u++){const[d,h]=s[u];nm(h,BS(e,d),n,a)}},BS=(t,e)=>{let n=t;const a=e.split(_u),s=a.length;for(let l=0;l<s;l++){const u=a[l];let d=n.nextPart.get(u);d||(d=US(),n.nextPart.set(u,d)),n=d}return n},u2=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,d2=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),a=Object.create(null);const s=(l,u)=>{n[l]=u,e++,e>t&&(e=0,a=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=a[l])!==void 0)return s(l,u),u},set(l,u){l in n?n[l]=u:s(l,u)}}},hp="!",y0=":",f2=[],b0=(t,e,n,a,s)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:a,isExternal:s}),h2=t=>{const{prefix:e,experimentalParseClassName:n}=t;let a=s=>{const l=[];let u=0,d=0,h=0,p;const g=s.length;for(let w=0;w<g;w++){const A=s[w];if(u===0&&d===0){if(A===y0){l.push(s.slice(h,w)),h=w+1;continue}if(A==="/"){p=w;continue}}A==="["?u++:A==="]"?u--:A==="("?d++:A===")"&&d--}const v=l.length===0?s:s.slice(h);let y=v,_=!1;v.endsWith(hp)?(y=v.slice(0,-1),_=!0):v.startsWith(hp)&&(y=v.slice(1),_=!0);const E=p&&p>h?p-h:void 0;return b0(l,_,y,E)};if(e){const s=e+y0,l=a;a=u=>u.startsWith(s)?l(u.slice(s.length)):b0(f2,!1,u,void 0,!0)}if(n){const s=a;a=l=>n({className:l,parseClassName:s})}return a},p2=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,a)=>{e.set(n,1e6+a)}),n=>{const a=[];let s=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",h=e.has(u);d||h?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(u)):s.push(u)}return s.length>0&&(s.sort(),a.push(...s)),a}},m2=t=>({cache:d2(t.cacheSize),parseClassName:h2(t),sortModifiers:p2(t),...n2(t)}),g2=/\s+/,v2=(t,e)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l}=e,u=[],d=t.trim().split(g2);let h="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:v,modifiers:y,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:w}=n(g);if(v){h=g+(h.length>0?" "+h:h);continue}let A=!!w,T=a(A?E.substring(0,w):E);if(!T){if(!A){h=g+(h.length>0?" "+h:h);continue}if(T=a(E),!T){h=g+(h.length>0?" "+h:h);continue}A=!1}const C=y.length===0?"":y.length===1?y[0]:l(y).join(":"),x=_?C+hp:C,z=x+T;if(u.indexOf(z)>-1)continue;u.push(z);const Y=s(T,A);for(let M=0;M<Y.length;++M){const N=Y[M];u.push(x+N)}h=g+(h.length>0?" "+h:h)}return h},y2=(...t)=>{let e=0,n,a,s="";for(;e<t.length;)(n=t[e++])&&(a=$S(n))&&(s&&(s+=" "),s+=a);return s},$S=t=>{if(typeof t=="string")return t;let e,n="";for(let a=0;a<t.length;a++)t[a]&&(e=$S(t[a]))&&(n&&(n+=" "),n+=e);return n},b2=(t,...e)=>{let n,a,s,l;const u=h=>{const p=e.reduce((g,v)=>v(g),t());return n=m2(p),a=n.cache.get,s=n.cache.set,l=d,d(h)},d=h=>{const p=a(h);if(p)return p;const g=v2(h,n);return s(h,g),g};return l=u,(...h)=>l(y2(...h))},_2=[],bt=t=>{const e=n=>n[t]||_2;return e.isThemeGetter=!0,e},HS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,si=t=>w2.test(t),xe=t=>!!t&&!Number.isNaN(Number(t)),oi=t=>!!t&&Number.isInteger(Number(t)),Uh=t=>t.endsWith("%")&&xe(t.slice(0,-1)),yr=t=>S2.test(t),VS=()=>!0,C2=t=>E2.test(t)&&!A2.test(t),rm=()=>!1,x2=t=>T2.test(t),k2=t=>R2.test(t),O2=t=>!le(t)&&!ue(t),N2=t=>Ti(t,KS,rm),le=t=>HS.test(t),Vi=t=>Ti(t,YS,C2),_0=t=>Ti(t,P2,xe),j2=t=>Ti(t,JS,VS),D2=t=>Ti(t,ZS,rm),w0=t=>Ti(t,GS,rm),L2=t=>Ti(t,FS,k2),Uc=t=>Ti(t,XS,x2),ue=t=>qS.test(t),To=t=>sa(t,YS),z2=t=>sa(t,ZS),S0=t=>sa(t,GS),M2=t=>sa(t,KS),I2=t=>sa(t,FS),Pc=t=>sa(t,XS,!0),U2=t=>sa(t,JS,!0),Ti=(t,e,n)=>{const a=HS.exec(t);return a?a[1]?e(a[1]):n(a[2]):!1},sa=(t,e,n=!1)=>{const a=qS.exec(t);return a?a[1]?e(a[1]):n:!1},GS=t=>t==="position"||t==="percentage",FS=t=>t==="image"||t==="url",KS=t=>t==="length"||t==="size"||t==="bg-size",YS=t=>t==="length",P2=t=>t==="number",ZS=t=>t==="family-name",JS=t=>t==="number"||t==="weight",XS=t=>t==="shadow",B2=()=>
vendor: 4,416 bytes, line 13
13{const t=bt("color"),e=bt("font"),n=bt("text"),a=bt("font-weight"),s=bt("tracking"),l=bt("leading"),u=bt("breakpoint"),d=bt("container"),h=bt("spacing"),p=bt("radius"),g=bt("shadow"),v=bt("inset-shadow"),y=bt("text-shadow"),_=bt("drop-shadow"),E=bt("blur"),w=bt("perspective"),A=bt("aspect"),T=bt("ease"),C=bt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...z(),ue,le],M=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],B=()=>[ue,le,h],X=()=>[si,"full","auto",...B()],se=()=>[oi,"none","subgrid",ue,le],K=()=>["auto",{span:["full",oi,ue,le]},oi,ue,le],Z=()=>[oi,"auto",ue,le],ne=()=>["auto","min","max","fr",ue,le],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...B()],J=()=>[si,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],me=()=>[si,"screen","full","dvw","lvw","svw","min","max","fit",...B()],Me=()=>[si,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],ee=()=>[t,ue,le],D=()=>[...z(),S0,w0,{position:[ue,le]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",M2,N2,{size:[ue,le]}],ie=()=>[Uh,To,Vi],he=()=>["","none","full",p,ue,le],ge=()=>["",xe,To,Vi],ve=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[xe,Uh,S0,w0],Zt=()=>["","none",E,ue,le],un=()=>["none",xe,ue,le],Ut=()=>["none",xe,ue,le],oa=()=>[xe,ue,le],dn=()=>[si,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yr],breakpoint:[yr],color:[VS],container:[yr],"drop-shadow":[yr],ease:["in","out","in-out"],font:[O2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yr],shadow:[yr],spacing:["px",xe],text:[yr],"text-shadow":[yr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",si,le,ue,A]}],container:["container"],columns:[{columns:[xe,le,ue,d]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{"inset-s":X(),start:X()}],end:[{"inset-e":X(),end:X()}],"inset-bs":[{"inset-bs":X()}],"inset-be":[{"inset-be":X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[oi,"auto",ue,le]}],basis:[{basis:[si,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,si,"auto","initial","none",le]}],grow:[{grow:["",xe,ue,le]}],shrink:[{shrink:["",xe,ue,le]}],order:[{order:[oi,"first","last","none",ue,le]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":Z()}
vendor: 4,217 bytes, line 13
13],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...me()]}],"min-inline-size":[{"min-inline":["auto",...me()]}],"max-inline-size":[{"max-inline":["none",...me()]}],"block-size":[{block:["auto",...Me()]}],"min-block-size":[{"min-block":["auto",...Me()]}],"max-block-size":[{"max-block":["none",...Me()]}],w:[{w:[d,"screen",...J()]}],"min-w":[{"min-w":[d,"screen","none",...J()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,To,Vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,U2,j2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Uh,le]}],"font-family":[{font:[z2,D2,e]}],"font-features":[{"font-features":[le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ue,le]}],"line-clamp":[{"line-clamp":[xe,"none",ue,_0]}],leading:[{leading:[l,...B()]}],"list-image":[{"list-image":["none",ue,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",ue,Vi]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[xe,"auto",ue,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oi,ue,le],radial:["",ue,le],conic:[oi,ue,le]},I2,L2]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:ie()}
vendor: 7,445 bytes, line 13
13],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-bs":[{"border-bs":ee()}],"border-color-be":[{"border-be":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,ue,le]}],"outline-w":[{outline:["",xe,To,Vi]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",g,Pc,Uc]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",v,Pc,Uc]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[xe,Vi]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",y,Pc,Uc]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[xe,ue,le]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[ue,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,le]}],filter:[{filter:["","none",ue,le]}],blur:[{blur:Zt()}],brightness:[{brightness:[xe,ue,le]}],contrast:[{contrast:[xe,ue,le]}],"drop-shadow":[{"drop-shadow":["","none",_,Pc,Uc]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",xe,ue,le]}],"hue-rotate":[{"hue-rotate":[xe,ue,le]}],invert:[{invert:["",xe,ue,le]}],saturate:[{saturate:[xe,ue,le]}],sepia:[{sepia:["",xe,ue,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,le]}],"backdrop-blur":[{"backdrop-blur":Zt()}],"backdrop-brightness":[{"backdrop-brightness":[xe,ue,le]}],"backdrop-contrast":[{"backdrop-contrast":[xe,ue,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,ue,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,ue,le]}],"backdrop-invert":[{"backdrop-invert":["",xe,ue,le]}],"backdrop-opacity":[{"backdrop-opacity":[xe,ue,le]}],"backdrop-saturate":[{"backdrop-saturate":[xe,ue,le]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,ue,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",ue,le]}],ease:[{ease:["linear","initial",T,ue,le]}],delay:[{delay:[xe,ue,le]}],animate:[{animate:["none",C,ue,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ue,le]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:un()}],"rotate-x":[{"rotate-x":un()}],"rotate-y":[{"rotate-y":un()}],"rotate-z":[{"rotate-z":un()}],scale:[{scale:Ut()}],"scale-x":[{"scale-x":Ut()}],"scale-y":[{"scale-y":Ut()}],"scale-z":[{"scale-z":Ut()}],"scale-3d":["scale-3d"],skew:[{skew:oa()}],"skew-x":[{"skew-x":oa()}],"skew-y":[{"skew-y":oa()}],transform:[{transform:[ue,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}
vendor: 8,447 bytes, line 13
13],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,le]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[xe,To,Vi,_0]}],stroke:[{stroke:["none",...ee()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$2=b2(B2);function En(...t){return $2(IS(t))}const H2=WN("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),rs=R.forwardRef(({className:t,variant:e,size:n,asChild:a=!1,...s},l)=>{const u=a?FN:"button";return k.jsx(u,{className:En(H2({variant:e,size:n,className:t})),ref:l,...s})});rs.displayName="Button";function Mn(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t?.(s),n===!1||!s.defaultPrevented)return e?.(s)}}function q2(t,e){const n=R.createContext(e),a=l=>{const{children:u,...d}=l,h=R.useMemo(()=>d,Object.values(d));return k.jsx(n.Provider,{value:h,children:u})};a.displayName=t+"Provider";function s(l){const u=R.useContext(n);if(u)return u;if(e!==void 0)return e;throw new Error(`\`${l}\` must be used within \`${t}\``)}return[a,s]}function sl(t,e=[]){let n=[];function a(l,u){const d=R.createContext(u),h=n.length;n=[...n,u];const p=v=>{const{scope:y,children:_,...E}=v,w=y?.[t]?.[h]||d,A=R.useMemo(()=>E,Object.values(E));return k.jsx(w.Provider,{value:A,children:_})};p.displayName=l+"Provider";function g(v,y){const _=y?.[t]?.[h]||d,E=R.useContext(_);if(E)return E;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[p,g]}const s=()=>{const l=n.map(u=>R.createContext(u));return function(d){const h=d?.[t]||l;return R.useMemo(()=>({[`__scope${t}`]:{...d,[t]:h}}),[d,h])}};return s.scopeName=t,[a,V2(s,...e)]}function V2(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const a=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const u=a.reduce((d,{useScope:h,scopeName:p})=>{const v=h(l)[`__scope${p}`];return{...d,...v}},{});return R.useMemo(()=>({[`__scope${e.scopeName}`]:u}),[u])}};return n.scopeName=e.scopeName,n}var Qi=globalThis?.document?R.useLayoutEffect:()=>{},G2=Lp[" useInsertionEffect ".trim().toString()]||Qi;function ol({prop:t,defaultProp:e,onChange:n=()=>{},caller:a}){const[s,l,u]=F2({defaultProp:e,onChange:n}),d=t!==void 0,h=d?t:s;{const g=R.useRef(t!==void 0);R.useEffect(()=>{const v=g.current;v!==d&&console.warn(`${a} is changing from ${v?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=d},[d,a])}const p=R.useCallback(g=>{if(d){const v=K2(g)?g(t):g;v!==t&&u.current?.(v)}else l(g)},[d,t,l,u]);return[h,p]}function F2({defaultProp:t,onChange:e}){const[n,a]=R.useState(t),s=R.useRef(n),l=R.useRef(e);return G2(()=>{l.current=e},[e]),R.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,a,l]}function K2(t){return typeof t=="function"}function Y2(t){const e=R.useRef({value:t,previous:t});return R.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}
vendor: 4,474 bytes, line 13
13function Z2(t){const[e,n]=R.useState(void 0);return Qi(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,p=Array.isArray(h)?h[0]:h;u=p.inlineSize,d=p.blockSize}else u=t.offsetWidth,d=t.offsetHeight;n({width:u,height:d})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else n(void 0)},[t]),e}var WS=X_();const J2=J_(WS);function X2(t){const e=W2(t),n=R.forwardRef((a,s)=>{const{children:l,...u}=a,d=R.Children.toArray(l),h=d.find(ej);if(h){const p=h.props.children,g=d.map(v=>v===h?R.Children.count(p)>1?R.Children.only(null):R.isValidElement(p)?p.props.children:null:v);return k.jsx(e,{...u,ref:s,children:R.isValidElement(p)?R.cloneElement(p,void 0,g):null})}return k.jsx(e,{...u,ref:s,children:l})});return n.displayName=`${t}.Slot`,n}function W2(t){const e=R.forwardRef((n,a)=>{const{children:s,...l}=n;if(R.isValidElement(s)){const u=nj(s),d=tj(l,s.props);return s.type!==R.Fragment&&(d.ref=a?al(a,u):u),R.cloneElement(s,d)}return R.Children.count(s)>1?R.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Q2=Symbol("radix.slottable");function ej(t){return R.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Q2}function tj(t,e){const n={...e};for(const a in e){const s=t[a],l=e[a];/^on[A-Z]/.test(a)?s&&l?n[a]=(...d)=>{const h=l(...d);return s(...d),h}:s&&(n[a]=s):a==="style"?n[a]={...s,...l}:a==="className"&&(n[a]=[s,l].filter(Boolean).join(" "))}return{...t,...n}}function nj(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var rj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zt=rj.reduce((t,e)=>{const n=X2(`Primitive.${e}`),a=R.forwardRef((s,l)=>{const{asChild:u,...d}=s,h=u?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(h,{...d,ref:l})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function ij(t,e){t&&WS.flushSync(()=>t.dispatchEvent(e))}var Gu="Switch",[aj]=sl(Gu),[sj,oj]=aj(Gu),QS=R.forwardRef((t,e)=>{const{__scopeSwitch:n,name:a,checked:s,defaultChecked:l,required:u,disabled:d,value:h="on",onCheckedChange:p,form:g,...v}=t,[y,_]=R.useState(null),E=ln(e,x=>_(x)),w=R.useRef(!1),A=y?g||!!y.closest("form"):!0,[T,C]=ol({prop:s,defaultProp:l??!1,onChange:p,caller:Gu});return k.jsxs(sj,{scope:n,checked:T,disabled:d,children:[k.jsx(zt.button,{type:"button",role:"switch","aria-checked":T,"aria-required":u,"data-state":rE(T),"data-disabled":d?"":void 0,disabled:d,value:h,...v,ref:E,onClick:Mn(t.onClick,x=>{C(z=>!z),A&&(w.current=x.isPropagationStopped(),w.current||x.stopPropagation())})}),A&&k.jsx(nE,{control:y,bubbles:!w.current,name:a,value:h,checked:T,required:u,disabled:d,form:g,style:{transform:"translateX(-100%)"}})]})});QS.displayName=Gu;var eE="SwitchThumb",tE=R.forwardRef((t,e)=>{const{__scopeSwitch:n,...a}=t,s=oj(eE,n);return k.jsx(zt.span,{"data-state":rE(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});tE.displayName=eE;var lj="SwitchBubbleInput",nE=R.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:a=!0,...s},l)=>{const u=R.useRef(null),d=ln(u,l),h=Y2(n),p=Z2(e);return R.useEffect(()=>{const g=u.current;if(!g)return;const v=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(v,"checked").set;if(h!==n&&_){const E=new Event("click",{bubbles:a});_.call(g,n),g.dispatchEvent(E)}},[h,n,a]),k.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:d,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nE.displayName=lj;function rE(t){return t?"checked":"unchecked"}var iE=QS,cj=tE;const su=R.forwardRef(({className:t,...e},n)=>k.jsx(iE,{className:En("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:n,children:k.jsx(cj,{className:En("pointer-events-none block h-4 w-4 roun
13ded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));su.displayName=iE.displayName;var uj=Lp[" useId ".trim().toString()]||(()=>{}),dj=0;function Do(t){const[e,n]=R.useState(uj());return Qi(()=>{n(a=>a??String(dj++))},[t]),t||(e?`radix-${e}`:"")}function qo(t){const e=R.useRef(t);return R.useEffect(()=>{e.current=t}),R.useMemo(()=>(...n)=>e.current?.(...n),[])}function fj(t,e=globalThis?.document){const n=qo(t);R.useEffect(()=>{const a=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[n,e])}var hj="DismissableLayer",pp="dismissableLayer.update",pj="dismissableLayer.pointerDownOutside",mj="dismissableLayer.focusOutside",E0,aE=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sE=R.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...h}=t,p=R.useContext(aE),[g,v]=R.useState(null),y=g?.ownerDocument??globalThis?.document,[,_]=R.useState({}),E=ln(e,N=>v(N)),w=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(A),C=g?w.indexOf(g):-1,x=p.layersWithOutsidePointerEventsDisabled.size>0,z=C>=T,Y=yj(N=>{const B=N.target,X=[...p.branches].some(se=>se.contains(B));!z||X||(s?.(N),u?.(N),N.defaultPrevented||d?.())},y),M=bj(N=>{const B=N.target;[...p.branches].some(se=>se.contains(B))||(l?.(N),u?.(N),N.defaultPrevented||d?.())},y);return fj(N=>{C===p.layers.size-1&&(a?.(N),!N.defaultPrevented&&d&&(N.preventDefault(),d()))},y),R.useEffect(()=>{if(g)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(E0=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),A0(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=E0)}},[g,y,n,p]),R.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),A0())},[g,p]),R.useEffect(()=>{const N=()=>_({});return document.addEventListener(pp,N),()=>document.removeEventListener(pp,N)},[]),k.jsx(zt.div,{...h,ref:E,style:{pointerEvents:x?z?"auto":"none":void 0,...t.style},onFocusCapture:Mn(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Mn(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Mn(t.onPointerDownCapture,Y.onPointerDownCapture)})});sE.displayName=hj;var gj="DismissableLayerBranch",vj=R.forwardRef((t,e)=>{const n=R.useContext(aE),a=R.useRef(null),s=ln(e,a);return R.useEffect(()=>{const l=a.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),k.jsx(zt.div,{...t,ref:s})});vj.displayName=gj;function yj(t,e=globalThis?.document){const n=qo(t),a=R.useRef(!1),s=R.useRef(()=>{});return R.useEffect(()=>{const l=d=>{if(d.target&&!a.current){let h=function(){oE(pj,n,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=h,e.addEventListener("click",s.current,{once:!0})):h()}else e.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{e.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),e.removeEventListener("pointerdown",l),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>a.current=!0}}function bj(t,e=globalThis?.document){const n=qo(t),a=R.useRef(!1);return R.useEffect(()=>{const s=l=>{l.target&&!a.current&&oE(mj,n,{originalEvent:l},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function A0(){const t=new CustomEvent(pp);document.dispatchEvent(t)}function oE(t,e,n,{discrete:a}){const s=n.originalEvent.target,l=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),a?ij(s,l):s.dispatchEvent(l)}var Ph="focusScope.autoFocusOnMount",Bh="focusScope.autoFocusOnUnmount",T0={bubbles:!1,cancelable:!0},_j="FocusScope",lE=R.forwardRef((t,e)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...u}=t,[d,h]=R.useState(null),p=qo(s),g=qo(l),v=R.useRef(null),y=ln(e,w=>h(w)),_=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(a){let w=function(x){if(_.paused||!d)return;const z=x.target;d.contains(z)?v.current=z:li(v.current,{select:!0})},A=function(x){if(_.paused||!d)return;const z=x.relatedTarget;z!==null&&(d.contains(z)||li(v.current,{select:!0}))},T=function(x){if(document.activeElement===document.body)for(const Y of x)Y.removedNodes.length>0&&li(d)};document.addEventListener("focusin",w),document.addEventListener("focusout",A);const C=new MutationObserver(T);return d&&C.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",A),C.disconnect()}}},[a,d,_.paused]),R.useEffect(()=>{if(d){C0.add(_);const w=document.activeElement;if(!d.contains(w)){const T=new CustomEvent(Ph,T0);d.addEventListener(Ph,p),d.dispatchEvent(T),T.defaultPrevented||(wj(Rj(cE(d)),{select:!0}),document.activeElement===w&&li(d))}return()=>{d.removeEventListener(Ph,p),setTimeout(()=>{const T=new CustomEvent(Bh,T0);d.addEventListener(Bh,g),d.dispatchEvent(T),T.defaultPrevented||li(w??document.body,{select:!0}),d.removeEventListener(Bh,g),C0.remove(_)},0)}}},[d,p,g,_]);const E=R.useCallback(w=>{if(!n&&!a||_.paused)return;
vendor: 2,699 bytes, line 13
13const A=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(A&&T){const C=w.currentTarget,[x,z]=Sj(C);x&&z?!w.shiftKey&&T===z?(w.preventDefault(),n&&li(x,{select:!0})):w.shiftKey&&T===x&&(w.preventDefault(),n&&li(z,{select:!0})):T===C&&w.preventDefault()}},[n,a,_.paused]);return k.jsx(zt.div,{tabIndex:-1,...u,ref:y,onKeyDown:E})});lE.displayName=_j;function wj(t,{select:e=!1}={}){const n=document.activeElement;for(const a of t)if(li(a,{select:e}),document.activeElement!==n)return}function Sj(t){const e=cE(t),n=R0(e,t),a=R0(e.reverse(),t);return[n,a]}function cE(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function R0(t,e){for(const n of t)if(!Ej(n,{upTo:e}))return n}function Ej(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Aj(t){return t instanceof HTMLInputElement&&"select"in t}function li(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Aj(t)&&e&&t.select()}}var C0=Tj();function Tj(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=x0(t,e),t.unshift(e)},remove(e){t=x0(t,e),t[0]?.resume()}}}function x0(t,e){const n=[...t],a=n.indexOf(e);return a!==-1&&n.splice(a,1),n}function Rj(t){return t.filter(e=>e.tagName!=="A")}var Cj="Portal",uE=R.forwardRef((t,e)=>{const{container:n,...a}=t,[s,l]=R.useState(!1);Qi(()=>l(!0),[]);const u=n||s&&globalThis?.document?.body;return u?J2.createPortal(k.jsx(zt.div,{...a,ref:e}),u):null});uE.displayName=Cj;function xj(t,e){return R.useReducer((n,a)=>e[n][a]??n,t)}var ll=t=>{const{present:e,children:n}=t,a=kj(e),s=typeof n=="function"?n({present:a.isPresent}):R.Children.only(n),l=ln(a.ref,Oj(s));return typeof n=="function"||a.isPresent?R.cloneElement(s,{ref:l}):null};ll.displayName="Presence";function kj(t){const[e,n]=R.useState(),a=R.useRef(null),s=R.useRef(t),l=R.useRef("none"),u=t?"mounted":"unmounted",[d,h]=xj(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const p=Bc(a.current);l.current=d==="mounted"?p:"none"},[d]),Qi(()=>{const p=a.current,g=s.current;if(g!==t){const y=l.current,_=Bc(p);t?h("MOUNT"):_==="none"||p?.display==="none"?h("UNMOUNT"):h(g&&y!==_?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,h]),Qi(()=>
vendor: 9,044 bytes, lines 13-50
13{if(e){let p;const g=e.ownerDocument.defaultView??window,v=_=>{const w=Bc(a.current).includes(CSS.escape(_.animationName));if(_.target===e&&w&&(h("ANIMATION_END"),!s.current)){const A=e.style.animationFillMode;e.style.animationFillMode="forwards",p=g.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=A)})}},y=_=>{_.target===e&&(l.current=Bc(a.current))};return e.addEventListener("animationstart",y),e.addEventListener("animationcancel",v),e.addEventListener("animationend",v),()=>{g.clearTimeout(p),e.removeEventListener("animationstart",y),e.removeEventListener("animationcancel",v),e.removeEventListener("animationend",v)}}else h("ANIMATION_END")},[e,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:R.useCallback(p=>{a.current=p?getComputedStyle(p):null,n(p)},[])}}function Bc(t){return t?.animationName||"none"}function Oj(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var $h=0;function Nj(){R.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??k0()),document.body.insertAdjacentElement("beforeend",t[1]??k0()),$h++,()=>{$h===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),$h--}},[])}function k0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Jn=function(){return Jn=Object.assign||function(e){for(var n,a=1,s=arguments.length;a<s;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},Jn.apply(this,arguments)};function As(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)e.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(n[a[s]]=t[a[s]]);return n}function jj(t,e,n,a){function s(l){return l instanceof n?l:new n(function(u){u(l)})}return new(n||(n=Promise))(function(l,u){function d(g){try{p(a.next(g))}catch(v){u(v)}}function h(g){try{p(a.throw(g))}catch(v){u(v)}}function p(g){g.done?l(g.value):s(g.value).then(d,h)}p((a=a.apply(t,e||[])).next())})}function Dj(t,e,n){if(n||arguments.length===2)for(var a=0,s=e.length,l;a<s;a++)(l||!(a in e))&&(l||(l=Array.prototype.slice.call(e,0,a)),l[a]=e[a]);return t.concat(l||Array.prototype.slice.call(e))}var ou="right-scroll-bar-position",lu="width-before-scroll-bar",Lj="with-scroll-bars-hidden",zj="--removed-body-scroll-bar-size";function Hh(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Mj(t,e){var n=R.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(a){var s=n.value;s!==a&&(n.value=a,n.callback(a,s))}}}})[0];return n.callback=e,n.facade}var Ij=typeof window<"u"?R.useLayoutEffect:R.useEffect,O0=new WeakMap;function Uj(t,e){var n=Mj(null,function(a){return t.forEach(function(s){return Hh(s,a)})});return Ij(function(){var a=O0.get(n);if(a){var s=new Set(a),l=new Set(t),u=n.current;s.forEach(function(d){l.has(d)||Hh(d,null)}),l.forEach(function(d){s.has(d)||Hh(d,u)})}O0.set(n,t)},[t]),n}function Pj(t){return t}function Bj(t,e){e===void 0&&(e=Pj);var n=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(l){var u=e(l,a);return n.push(u),function(){n=n.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(a=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(d){return l(d)},filter:function(){return n}}},assignMedium:function(l){a=!0;var u=[];if(n.length){var d=n;n=[],d.forEach(l),u=n}var h=function(){var g=u;u=[],g.forEach(l)},p=function(){return Promise.resolve().then(h)};p(),n={push:function(g){u.push(g),p()},filter:function(g){return u=u.filter(g),n}}}};return s}function $j(t){t===void 0&&(t={});var e=Bj(null);return e.options=Jn({async:!0,ssr:!1},t),e}var dE=function(t){var e=t.sideCar,n=As(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return R.createElement(a,Jn({},n))};dE.isSideCarExport=!0;function Hj(t,e){return t.useMedium(e),dE}var fE=$j(),qh=function(){},Fu=R.forwardRef(function(t,e){var n=R.useRef(null),a=R.useState({onScrollCapture:qh,onWheelCapture:qh,onTouchMoveCapture:qh}),s=a[0],l=a[1],u=t.forwardProps,d=t.children,h=t.className,p=t.removeScrollBar,g=t.enabled,v=t.shards,y=t.sideCar,_=t.noRelative,E=t.noIsolation,w=t.inert,A=t.allowPinchZoom,T=t.as,C=T===void 0?"div":T,x=t.gapMode,z=As(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=y,M=Uj([n,e]),N=Jn(Jn({},z),s);return R.createElement(R.Fragment,null,g&&R.createElement(Y,{sideCar:fE,removeScrollBar:p,shards:v,noRelative:_,noIsolation:E,inert:w,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:x}),u?R.cloneElement(R.Children.only(d),Jn(Jn({},N),{ref:M})):R.createElement(C,Jn({},N,{className:h,ref:M}),d))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:lu,zeroRight:ou};var qj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Vj(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=qj();return e&&t.setAttribute("nonce",e),t}function Gj(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Fj(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Kj=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Vj())&&(Gj(e,n),Fj(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Yj=function(){var t=Kj();return function(e,n){R.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},hE=function(){var t=Yj(),e=function(n){var a=n.styles,s=n.dynamic;return t(a,s),null};return e},Zj={left:0,top:0,right:0,gap:0},Vh=function(t){return parseInt(t||"",10)||0},Jj=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],a=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[Vh(n),Vh(a),Vh(s)]},Xj=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Zj;var e=Jj(t),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-n+e[2]-e[0])}},Wj=hE(),gs="data-scroll-locked",Qj=function(t,e,n,a){var s=t.left,l=t.top,u=t.right,d=t.gap;return n===void 0&&(n="margin"),`
14  .`.concat(Lj,` {
15   overflow: hidden `).concat(a,`;
16   padding-right: `).concat(d,"px ").concat(a,`;
17  }
18  body[`).concat(gs,`] {
19    overflow: hidden `).concat(a,`;
20    overscroll-behavior: contain;
21    `).concat([e&&"position: relative ".concat(a,";"),n==="margin"&&`
22    padding-left: `.concat(s,`px;
23    padding-top: `).concat(l,`px;
24    padding-right: `).concat(u,`px;
25    margin-left:0;
26    margin-top:0;
27    margin-right: `).concat(d,"px ").concat(a,`;
28    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(a,";")].filter(Boolean).join(""),`
29  }
30  
31  .`).concat(ou,` {
32    right: `).concat(d,"px ").concat(a,`;
33  }
34  
35  .`).concat(lu,` {
36    margin-right: `).concat(d,"px ").concat(a,`;
37  }
38  
39  .`).concat(ou," .").concat(ou,` {
40    right: 0 `).concat(a,`;
41  }
42  
43  .`).concat(lu," .").concat(lu,` {
44    margin-right: 0 `).concat(a,`;
45  }
46  
47  body[`).concat(gs,`] {
48    `).concat(zj,": ").concat(d,`px;
49  }
50`)},N0=function(){var t=parseInt(document.body.getAttribute(gs)||"0",10);return isFinite(t)?t:0},eD=function(){R.useEffect(function(){return document.body.setAttribute(gs,(N0()+1).toString()),function(){var t=N0()-1;t<=0?document.body.removeAttribute(gs):document.body.setAttribute(gs,t.toString())}},[])},tD=function(t){var e=t.noRelative,n=t.noImportant,a=t.gapMode,s=a===void 0?"margin":a;eD();var l=R.useMemo(function(){return Xj(s)},[s]);return R.createElement(Wj,{styles:Qj(l,!e,s,n?"":"!important")})},mp=!1;if(typeof window<"u")try{var $c=Object.defineProperty({},"passive",{get:function(){return mp=!0,!0}});window.addEventListener("test",$c,$c),window.removeEventListener("test",$c,$c)}catch{mp=!1}var Ja=mp?{passive:!1}:!1,nD=function(t){return t.tagName==="TEXTAREA"},pE=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!nD(t)&&n[e]==="visible")},rD=function(t){return pE(t,"overflowY")},iD=function(t){return pE(t,"overflowX")},j0=function(t,e){var n=e.ownerDocument,a=e;
vendor: 1,784 bytes, lines 50-53
50do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=mE(t,a);if(s){var l=gE(t,a),u=l[1],d=l[2];if(u>d)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},aD=function(t){var e=t.scrollTop,n=t.scrollHeight,a=t.clientHeight;return[e,n,a]},sD=function(t){var e=t.scrollLeft,n=t.scrollWidth,a=t.clientWidth;return[e,n,a]},mE=function(t,e){return t==="v"?rD(e):iD(e)},gE=function(t,e){return t==="v"?aD(e):sD(e)},oD=function(t,e){return t==="h"&&e==="rtl"?-1:1},lD=function(t,e,n,a,s){var l=oD(t,window.getComputedStyle(e).direction),u=l*a,d=n.target,h=e.contains(d),p=!1,g=u>0,v=0,y=0;do{if(!d)break;var _=gE(t,d),E=_[0],w=_[1],A=_[2],T=w-A-l*E;(E||T)&&mE(t,d)&&(v+=T,y+=E);var C=d.parentNode;d=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!h&&d!==document.body||h&&(e.contains(d)||e===d));return(g&&Math.abs(v)<1||!g&&Math.abs(y)<1)&&(p=!0),p},Hc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},D0=function(t){return[t.deltaX,t.deltaY]},L0=function(t){return t&&"current"in t?t.current:t},cD=function(t,e){return t[0]===e[0]&&t[1]===e[1]},uD=function(t){return`
51  .block-interactivity-`.concat(t,` {pointer-events: none;}
52  .allow-interactivity-`).concat(t,` {pointer-events: all;}
53`)},dD=0,Xa=[];function fD(t){var e=R.useRef([]),n=R.useRef([0,0]),a=R.useRef(),s=R.useState(dD++)[0],l=R.useState(hE)[0],u=R.useRef(t);R.useEffect(function(){u.current=t},[t]),R.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=Dj([t.lockRef.current],(t.shards||[]).map(L0),!0).filter(Boolean);return w.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEac
vendor: 5,041 bytes, line 53
53h(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var d=R.useCallback(function(w,A){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var T=Hc(w),C=n.current,x="deltaX"in w?w.deltaX:C[0]-T[0],z="deltaY"in w?w.deltaY:C[1]-T[1],Y,M=w.target,N=Math.abs(x)>Math.abs(z)?"h":"v";if("touches"in w&&N==="h"&&M.type==="range")return!1;var B=window.getSelection(),X=B&&B.anchorNode,se=X?X===M||X.contains(M):!1;if(se)return!1;var K=j0(N,M);if(!K)return!0;if(K?Y=N:(Y=N==="v"?"h":"v",K=j0(N,M)),!K)return!1;if(!a.current&&"changedTouches"in w&&(x||z)&&(a.current=Y),!Y)return!0;var Z=a.current||Y;return lD(Z,A,w,Z==="h"?x:z)},[]),h=R.useCallback(function(w){var A=w;if(!(!Xa.length||Xa[Xa.length-1]!==l)){var T="deltaY"in A?D0(A):Hc(A),C=e.current.filter(function(Y){return Y.name===A.type&&(Y.target===A.target||A.target===Y.shadowParent)&&cD(Y.delta,T)})[0];if(C&&C.should){A.cancelable&&A.preventDefault();return}if(!C){var x=(u.current.shards||[]).map(L0).filter(Boolean).filter(function(Y){return Y.contains(A.target)}),z=x.length>0?d(A,x[0]):!u.current.noIsolation;z&&A.cancelable&&A.preventDefault()}}},[]),p=R.useCallback(function(w,A,T,C){var x={name:w,delta:A,target:T,should:C,shadowParent:hD(T)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(z){return z!==x})},1)},[]),g=R.useCallback(function(w){n.current=Hc(w),a.current=void 0},[]),v=R.useCallback(function(w){p(w.type,D0(w),w.target,d(w,t.lockRef.current))},[]),y=R.useCallback(function(w){p(w.type,Hc(w),w.target,d(w,t.lockRef.current))},[]);R.useEffect(function(){return Xa.push(l),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:y}),document.addEventListener("wheel",h,Ja),document.addEventListener("touchmove",h,Ja),document.addEventListener("touchstart",g,Ja),function(){Xa=Xa.filter(function(w){return w!==l}),document.removeEventListener("wheel",h,Ja),document.removeEventListener("touchmove",h,Ja),document.removeEventListener("touchstart",g,Ja)}},[]);var _=t.removeScrollBar,E=t.inert;return R.createElement(R.Fragment,null,E?R.createElement(l,{styles:uD(s)}):null,_?R.createElement(tD,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function hD(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const pD=Hj(fE,fD);var vE=R.forwardRef(function(t,e){return R.createElement(Fu,Jn({},t,{ref:e,sideCar:pD}))});vE.classNames=Fu.classNames;var mD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Wa=new WeakMap,qc=new WeakMap,Vc={},Gh=0,yE=function(t){return t&&(t.host||yE(t.parentNode))},gD=function(t,e){return e.map(function(n){if(t.contains(n))return n;var a=yE(n);return a&&t.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},vD=function(t,e,n,a){var s=gD(e,Array.isArray(t)?t:[t]);Vc[n]||(Vc[n]=new WeakMap);var l=Vc[n],u=[],d=new Set,h=new Set(s),p=function(v){!v||d.has(v)||(d.add(v),p(v.parentNode))};s.forEach(p);var g=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(y){if(d.has(y))g(y);else try{var _=y.getAttribute(a),E=_!==null&&_!=="false",w=(Wa.get(y)||0)+1,A=(l.get(y)||0)+1;Wa.set(y,w),l.set(y,A),u.push(y),w===1&&E&&qc.set(y,!0),A===1&&y.setAttribute(n,"true"),E||y.setAttribute(a,"true")}catch(T){console.error("aria-hidden: cannot operate on ",y,T)}})};return g(e),d.clear(),Gh++,function(){u.forEach(function(v){var y=Wa.get(v)-1,_=l.get(v)-1;Wa.set(v,y),l.set(v,_),y||(qc.has(v)||v.removeAttribute(a),qc.delete(v)),_||v.removeAttribute(n)}),Gh--,Gh||(Wa=new WeakMap,Wa=new WeakMap,qc=new WeakMap,Vc={})}},yD=function(t,e,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),s=mD(t);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),vD(a,s,n,"aria-hidden")):function(){return null}};function bD(t){const e=_D(t),n=R.forwardRef((a,s)=>{const{children:l,...u}=a,d=R.Children.toArray(l),h=d.find(SD);if(h){const p=h.props.children,g=d.map(v=>v===h?R.Children.count(p)>1?R.Children.only(null):R.isValidElement(p)?p.props.children:null:v);return k.jsx(e,{...u,ref:s,children:R.isValidElement(p)?R.cloneElement(p,void 0,g):null})}return k.jsx(e,{...u,ref:s,children:l})});return n.displayName=`${t}.Slot`,n}function _D(t){const e=R.forwardRef((n,a)=>{const{children:s,...l}=n;if(R.isValidElement(s)){const u=AD(s),d=ED(l,s.props);return s.type!==R.Fragment&&(d.ref=a?al(a,u):u),R.cloneElement(s,d)}return R.Children.count(s)>1?R.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var wD=Symbol("radix.slottable");function SD(t){return R.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===wD}function ED(t,e){const n={...e};for(const a in e){const s=t[a],l=e[a];/^on[A-Z]/.test(a)?s&&l?n[a]=(...d)=>{const h=l(...d);return s(...d),h}:s&&(n[a]=s):a==="style"?n[a]={...s,...l}
vendor: 2,638 bytes, line 53
53:a==="className"&&(n[a]=[s,l].filter(Boolean).join(" "))}return{...t,...n}}function AD(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Ku="Dialog",[bE,c4]=sl(Ku),[TD,Un]=bE(Ku),_E=t=>{const{__scopeDialog:e,children:n,open:a,defaultOpen:s,onOpenChange:l,modal:u=!0}=t,d=R.useRef(null),h=R.useRef(null),[p,g]=ol({prop:a,defaultProp:s??!1,onChange:l,caller:Ku});return k.jsx(TD,{scope:e,triggerRef:d,contentRef:h,contentId:Do(),titleId:Do(),descriptionId:Do(),open:p,onOpenChange:g,onOpenToggle:R.useCallback(()=>g(v=>!v),[g]),modal:u,children:n})};_E.displayName=Ku;var wE="DialogTrigger",SE=R.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,s=Un(wE,n),l=ln(e,s.triggerRef);return k.jsx(zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":sm(s.open),...a,ref:l,onClick:Mn(t.onClick,s.onOpenToggle)})});SE.displayName=wE;var im="DialogPortal",[RD,EE]=bE(im,{forceMount:void 0}),AE=t=>{const{__scopeDialog:e,forceMount:n,children:a,container:s}=t,l=Un(im,e);return k.jsx(RD,{scope:e,forceMount:n,children:R.Children.map(a,u=>k.jsx(ll,{present:n||l.open,children:k.jsx(uE,{asChild:!0,container:s,children:u})}))})};AE.displayName=im;var wu="DialogOverlay",TE=R.forwardRef((t,e)=>{const n=EE(wu,t.__scopeDialog),{forceMount:a=n.forceMount,...s}=t,l=Un(wu,t.__scopeDialog);return l.modal?k.jsx(ll,{present:a||l.open,children:k.jsx(xD,{...s,ref:e})}):null});TE.displayName=wu;var CD=bD("DialogOverlay.RemoveScroll"),xD=R.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,s=Un(wu,n);return k.jsx(vE,{as:CD,allowPinchZoom:!0,shards:[s.contentRef],children:k.jsx(zt.div,{"data-state":sm(s.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),ea="DialogContent",RE=R.forwardRef((t,e)=>{const n=EE(ea,t.__scopeDialog),{forceMount:a=n.forceMount,...s}=t,l=Un(ea,t.__scopeDialog);return k.jsx(ll,{present:a||l.open,children:l.modal?k.jsx(kD,{...s,ref:e}):k.jsx(OD,{...s,ref:e})})});RE.displayName=ea;var kD=R.forwardRef((t,e)=>{const n=Un(ea,t.__scopeDialog),a=R.useRef(null),s=ln(e,n.contentRef,a);return R.useEffect(()=>{const l=a.current;if(l)return yD(l)},[]),k.jsx(CE,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Mn(t.onCloseAutoFocus,l=>{l.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Mn(t.onPointerDownOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0;(u.button===2||d)&&l.preventDefault()}
vendor: 4,911 bytes, lines 53-57
53),onFocusOutside:Mn(t.onFocusOutside,l=>l.preventDefault())})}),OD=R.forwardRef((t,e)=>{const n=Un(ea,t.__scopeDialog),a=R.useRef(!1),s=R.useRef(!1);return k.jsx(CE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{t.onCloseAutoFocus?.(l),l.defaultPrevented||(a.current||n.triggerRef.current?.focus(),l.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:l=>{t.onInteractOutside?.(l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=l.target;n.triggerRef.current?.contains(u)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&s.current&&l.preventDefault()}})}),CE=R.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=t,d=Un(ea,n),h=R.useRef(null),p=ln(e,h);return Nj(),k.jsxs(k.Fragment,{children:[k.jsx(lE,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:l,children:k.jsx(sE,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":sm(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),k.jsxs(k.Fragment,{children:[k.jsx(ND,{titleId:d.titleId}),k.jsx(DD,{contentRef:h,descriptionId:d.descriptionId})]})]})}),am="DialogTitle",xE=R.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,s=Un(am,n);return k.jsx(zt.h2,{id:s.titleId,...a,ref:e})});xE.displayName=am;var kE="DialogDescription",OE=R.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,s=Un(kE,n);return k.jsx(zt.p,{id:s.descriptionId,...a,ref:e})});OE.displayName=kE;var NE="DialogClose",jE=R.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,s=Un(NE,n);return k.jsx(zt.button,{type:"button",...a,ref:e,onClick:Mn(t.onClick,()=>s.onOpenChange(!1))})});jE.displayName=NE;function sm(t){return t?"open":"closed"}var DE="DialogTitleWarning",[u4,LE]=q2(DE,{contentName:ea,titleName:am,docsSlug:"dialog"}),ND=({titleId:t})=>{const e=LE(DE),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
54
55If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
56
57For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return R.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},jD="DialogDescriptionWarning",DD=({contentRef:t,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${LE(jD).contentName}}.`;return R.useEffect(()=>{const s=t.current?.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(a))},[a,t,e]),null},LD=_E,zD=SE,MD=AE,zE=TE,ME=RE,IE=xE,UE=OE,ID=jE;const PE=(...t)=>t.filter((e,n,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===n).join(" ").trim();const UD=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const PD=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,a)=>a?a.toUpperCase():n.toLowerCase());const z0=t=>{const e=PD(t);return e.charAt(0).toUpperCase()+e.slice(1)};var BD={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 $D=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const HD=R.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:u,...d},h)=>R.createElement("svg",{ref:h,...BD,width:e,height:e,stroke:t,strokeWidth:a?Number(n)*24/Number(e):n,className:PE("lucide",s),...!l&&!$D(d)&&{"aria-hidden":"true"},...d},[...u.map(([p,g])=>R.createElement(p,g)),...Array.isArray(l)?l:[l]]));const BE=(t,e)=>{const n=R.forwardRef(({className:a,...s},l)=>R.createElement(HD,{ref:l,iconNode:e,className:PE(`lucide-${UD(z0(t))}`,`lucide-${t}`,a),...s}));return n.displayName=z0(t),n};const qD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],VD=BE("chevron-down",qD);const GD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],FD=BE("x",GD),KD=LD,d4=zD,YD=MD,$E=R.forwardRef(({className:t,...e},n)=>k.jsx(zE,{ref:n,className:En("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));$E.displayName=zE.displayName;const HE=R.forwardRef(({className:t,children:e,...n},a)=>k.jsxs(YD,{children:[k.jsx($E,{}),k.jsxs(ME,{ref:a,className:En("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
57nded-lg",t),...n,children:[e,k.jsxs(ID,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[k.jsx(FD,{className:"h-4 w-4"}),k.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));HE.displayName=ME.displayName;const qE=({className:t,...e})=>k.jsx("div",{className:En("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});qE.displayName="DialogHeader";const VE=({className:t,...e})=>k.jsx("div",{className:En("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});VE.displayName="DialogFooter";const GE=R.forwardRef(({className:t,...e},n)=>k.jsx(IE,{ref:n,className:En("text-lg font-semibold leading-none tracking-tight",t),...e}));GE.displayName=IE.displayName;const FE=R.forwardRef(({className:t,...e},n)=>k.jsx(UE,{ref:n,className:En("text-sm text-muted-foreground",t),...e}));FE.displayName=UE.displayName;const Yu="ia_cookie_consent_v1",M0="ia_consent_v1";function Vo(){if(typeof window>"u")return null;try{const t=window.localStorage.getItem(Yu);if(!t)return null;const e=JSON.parse(t);return e.version!==1?null:{necessary:!0,analytics:!!e.analytics,marketing:!!e.marketing,timestamp:typeof e.timestamp=="string"?e.timestamp:new Date().toISOString(),version:1}}catch{return null}}function cu(t){if(typeof window>"u")return;const e={necessary:!0,analytics:t.analytics,marketing:t.marketing,timestamp:new Date().toISOString(),version:1};try{window.localStorage.setItem(Yu,JSON.stringify(e)),window.dispatchEvent(new CustomEvent("ia-consent-changed",{detail:e}))}catch{}}function f4(){if(!(typeof window>"u"))try{window.localStorage.removeItem(Yu),window.dispatchEvent(new CustomEvent("ia-consent-changed",{detail:null}))}catch{}}function ZD(){if(!(typeof window>"u"))try{if(window.localStorage.getItem(Yu))return;const t=window.localStorage.getItem(M0);if(t==="yes"||t==="no"){const e=t==="yes";cu({analytics:e,marketing:e}),window.localStorage.removeItem(M0)}}catch{}}function KE(){return Vo()?.marketing===!0}const JD=Symbol.for("@supabase/supabase-js.traceContextExtractor");function XD(){return globalThis[JD]}const WD=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class om extends Error{constructor(e,n="FunctionsError",a){super(e),this.name=n,this.context=a}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class QD extends om{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class I0 extends om{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class U0 extends om{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var gp;(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"})(gp||(gp={}));class eL{constructor(e,{headers:n={},customFetch:a,region:s=gp.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=WD(a)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return jj(this,arguments,void 0,function*(n,a={}){var s,l;let u,d,h;try{const{headers:p,method:g,body:v,signal:y,timeout:_}=a;let E={},{region:w}=a;w||(w=this.region);const A=new URL(`${this.url}/${n}`);w&&w!=="any"&&(E["x-region"]=w,A.searchParams.set("forceFunctionRegion",w));let T;const C=!!p&&Object.keys(p).some(B=>B.toLowerCase()==="content-type");v&&!C?typeof Blob<"u"&&v instanceof Blob||v instanceof ArrayBuffer?(E["Content-Type"]="application/octet-stream",T=v):typeof v=="string"?(E["Content-Type"]="text/plain",T=v):typeof FormData<"u"&&v instanceof FormData?T=v:(E["Content-Type"]="application/json",T=JSON.stringify(v)):v&&typeof v!="string"&&!(typeof Blob<"u"&&v instanceof Blob)&&!(v instanceof ArrayBuffer)&&!(typeof FormData<"u"&&v instanceof FormData)?T=JSON.stringify(v):T=v;let x=y;_&&(d=new AbortController,u=setTimeout(()=>d.abort(),_),y?(x=d.signal,h=()=>d.abort(),y.addEventListener("abort",h)):x=d.signal);const z=yield this.fetch(A.toString(),{method:g||"POST",headers:Object.assign(Object.assign(Object.assign({},E),this.headers),p),body:T,signal:x}).catch(B=>{throw new QD(B)}),Y=z.headers.get("x-relay-error");
57if(Y&&Y==="true")throw new I0(z);if(!z.ok)throw new U0(z);let M=((s=z.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim().toLowerCase(),N;return M==="application/json"?N=yield z.json():M==="application/octet-stream"||M==="application/pdf"?N=yield z.blob():M==="text/event-stream"?N=z:M==="multipart/form-data"?N=yield z.formData():N=yield z.text(),{data:N,error:null,response:z}}catch(p){return{data:null,error:p,response:p instanceof U0||p instanceof I0?p.context:void 0}}finally{u&&clearTimeout(u),h&&((l=a.signal)===null||l===void 0||l.removeEventListener("abort",h))}})}}const YE=3,P0=t=>Math.min(1e3*2**t,3e4),tL=[520,503],ZE=["GET","HEAD","OPTIONS"];var Fh=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Go(t){"@babel/helpers - typeof";return Go=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},Go(t)}function nL(t,e){if(Go(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(Go(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rL(t){var e=nL(t,"string");return Go(e)=="symbol"?e:e+""}function iL(t,e,n){return(e=rL(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function us(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B0(Object(n),!0).forEach(function(a){iL(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B0(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function $0(t,e){return new Promise(n=>{if(e?.aborted){n();return}const a=setTimeout(()=>{e?.removeEventListener("abort",s),n()},t);function s(){clearTimeout(a),n()}e?.addEventListener("abort",s)})}function aL(t,e,n,a){return!(!a||n>=YE||!ZE.includes(t)||!tL.includes(e))}var sL=class{constructor(t){var e,n,a,s,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=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(a=t.shouldStripNulls)!==null&&a!==void 0?a:!1,this.urlLengthLimit=(s=t.urlLengthLimit)!==null&&s!==void 0?s: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 n=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 u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const a=this.fetch;let l=(async()=>{let u=0;for(;;){const p={};n.headers.forEach((v,y)=>{p[y]=v}),u>0&&(p["X-Retry-Count"]=String(u));let g;
57try{g=await a(n.url.toString(),{method:n.method,headers:p,body:JSON.stringify(n.body,(v,y)=>typeof y=="bigint"?y.toString():y),signal:n.signal})}catch(v){if(v?.name==="AbortError"||v?.code==="ABORT_ERR"||!ZE.includes(n.method))throw v;if(n.retryEnabled&&u<YE){const y=P0(u);u++,await $0(y,n.signal);continue}throw v}if(aL(n.method,g.status,u,n.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,y=v!==null?Math.max(0,parseInt(v,10)||0)*1e3:P0(u);await g.text(),u++,await $0(y,n.signal);continue}return await n.processResponse(g)}})();return this.shouldThrowOnError||(l=l.catch(u=>{var d;let h="",p="",g="";const v=u?.cause;if(v){var y,_,E,w;const C=(y=v?.message)!==null&&y!==void 0?y:"",x=(_=v?.code)!==null&&_!==void 0?_:"";h=`${(E=u?.name)!==null&&E!==void 0?E:"FetchError"}: ${u?.message}`,h+=`
58
59Caused by: ${(w=v?.name)!==null&&w!==void 0?w:"Error"}: ${C}`,x&&(h+=` (${x})`),v?.stack&&(h+=`
60${v.stack}`)}else{var A;h=(A=u?.stack)!==null&&A!==void 0?A:""}const T=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(g="",p="Request was aborted (timeout or manual cancellation)",T>this.urlLengthLimit&&(p+=`. Note: Your request URL is ${T} 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="",p="HTTP headers exceeded server limits (typically 16KB)",T>this.urlLengthLimit&&(p+=`. Your request URL is ${T} 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=u?.name)!==null&&d!==void 0?d:"FetchError"}: ${u?.message}`,details:h,hint:p,code:g},data:null,count:null,status:0,statusText:""}})),l.then(t,e)}async processResponse(t){var e=this;let n=null,a=null,s=null,l=t.status,u=t.statusText;if(t.ok){var d,h;if(e.method!=="HEAD"){var p;const _=await t.text();if(_!=="")if(e.headers.get("Accept")==="text/csv")a=_;else if(e.headers.get("Accept")&&(!((p=e.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text")))a=_;else try{a=JSON.parse(_)}catch{if(n={message:_},a=null,e.shouldThrowOnError)throw new Fh({message:_,details:"",hint:"",code:""})}}const v=(d=e.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),y=(h=t.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");if(v&&y&&y.length>1&&(s=parseInt(y[1])),e.isMaybeSingle&&Array.isArray(a))if(a.length>1){if(n={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,s=null,l=406,u="Not Acceptable",e.shouldThrowOnError){var g;throw new Fh(us(us({},n),{},{hint:(g=n.hint)!==null&&g!==void 0?g:""}))}}else a.length===1?a=a[0]:a=null}else{const v=await t.text();try{n=JSON.parse(v),Array.isArray(n)&&t.status===404&&(a=[],n=null,l=200,u="OK")}catch{t.status===404&&v===""?(l=204,u="No Content"):n={message:v}}if(n&&e.shouldThrowOnError)throw new Fh(n)}return{success:n===null,error:n,data:a,count:s,status:l,statusText:u}}returns(){return this}overrideTypes(){return this}},oL=class extends sL{throwOnError(){return super.throwOnError()}select(t){let e=!1;const n=(t??"*").split("").map(a=>/\s/.test(a)&&!e?"":(a==='"'&&(e=!e),a)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:a,referencedTable:s=a}={}){const l=s?`${s}.order`:"order",u=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${u?`${u},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:a=n}={}){const s=typeof a>"u"?"offset":`${a}.offset`,l=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(s,`${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}
60explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:a=!1,wal:s=!1,format:l="text"}={}){var u;const d=[t?"analyze":null,e?"verbose":null,n?"settings":null,a?"buffers":null,s?"wal":null].filter(Boolean).join("|"),h=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"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 H0=new RegExp("[,()]");var is=class extends oL{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 n=Array.from(new Set(e)).map(a=>typeof a=="string"&&H0.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(a=>typeof a=="string"&&H0.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),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:n,type:a}={}){let s="";a==="plain"?s="pl":a==="phrase"?s="ph":a==="websearch"&&(s="w");const l=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${s}fts${l}.${e}`),this}match(t){return Object.entries(t).filter(([e,n])=>n!==void 0).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const a=n?`${n}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},lL=class{constructor(t,{headers:e={},schema:n,fetch:a,urlLengthLimit:s=8e3,retry:l}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=a,this.urlLengthLimit=s,this.retry=l}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:a}=e??{},s=n?"HEAD":"GET";let l=!1;const u=(t??"*").split("").map(p=>/\s/.test(p)&&!l?"":(p==='"'&&(l=!l),p)).join(""),{url:d,headers:h}=this.cloneRequestState();return d.searchParams.set("select",u),a&&h.append("Prefer",`count=${a}`),new is({method:s,url:d,headers:h,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:n=!0}={}){var a;const s="POST",{url:l,headers:u}=this.cloneRequestState();if(e&&u.append("Prefer",`count=${e}`),n||u.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((h,p)=>h.concat(Object.keys(p)),[]);if(d.length>0){const h=[...new Set(d)].map(p=>`"${p}"`);l.searchParams.set("columns",h.join(","))}}return new is({method:s,url:l,headers:u,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:a,defaultToNull:s=!0}={}){var l;const u="POST",{url:d,headers:h}=this.cloneRequestState();if(h.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&d.searchParams.set("on_conflict",e),a&&h.append("Prefer",`count=${a}`),s||h.append("Prefer","missing=default"),Array.isArray(t)){const p=t.reduce((g,v)=>g.concat(Object.keys(v)),[]);if(p.length>0){const g=[...new Set(p)].map(v=>`"${v}"`);d.searchParams.set("columns",g.join(","))}}return new is({method:u,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 n;const a="PATCH",{url:s,headers:l}=this.cloneRequestState();return e&&l.append("Prefer",`count=${e}`),new is({method:a,url:s,headers:l,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const n="DELETE",{url:a,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new is({method:n,url:a,headers:s,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},cL=class JE{constructor(e,{headers:n={},schema:a,fetch:s,timeout:l,urlLengthLimit:u=8e3,retry:d}={}){this.url=e,this.headers=new Headers(n),this.schemaName=a,this.urlLengthLimit=u;const h=s??globalThis.fetch;l!==void 0&&l>0?this.fetch=(p,g)=>{const v=new AbortController,y=setTimeout(()=>v.abort(),l),_=g?.signal;if(_){if(_.aborted)return clearTimeout(y),h(p,g);const E=()=>{clearTimeout(y),v.abort()};return _.addEventListener("abort",E,{once:!0}),h(p,us(us({},g),{},{signal:v.signal})).finally(()=>{clearTimeout(y),_.removeEventListener("abort",E)})}return h(p,us(us({},g),{},{signal:v.signal})).finally(()=>clearTimeout(y))}: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 lL(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 JE(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,n={},{head:a=!1,get:s=!1,count:l}={}){var u;let d;const h=new URL(`${this.url}/rpc/${e}`);let p;const g=_=>_!==null&&typeof _=="object"&&(!Array.isArray(_)||_.some(g)),v=a&&Object.values(n).some(g);v?(d="POST",p=n):a||s?(d=a?"HEAD":"GET",Object.entries(n).filter(([_,E])=>E!==void 0).map(([_,E])=>[_,Array.isArray(E)?`{${E.join(",")}}`:`${E}
60`]).forEach(([_,E])=>{h.searchParams.append(_,E)})):(d="POST",p=n);const y=new Headers(this.headers);return v?y.set("Prefer",l?`count=${l},return=minimal`:"return=minimal"):l&&y.set("Prefer",`count=${l}`),new is({method:d,url:h,headers:y,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class uL{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const a=typeof global<"u"?global:void 0;if(a&&typeof a.WebSocket<"u")return{type:"native",wsConstructor:a.WebSocket};if(typeof globalThis<"u"&&typeof n.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"&&n.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 s=globalThis.process;if(s){const l=s.versions;if(l&&l.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}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 n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
61
62Suggested solution: ${e.workaround}`),new Error(n)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const dL="2.112.1",fL=`realtime-js/${dL}`,hL="1.0.0",XE="2.0.0",pL=XE,mL=1e4,gL=100,di={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},WE={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},vp={connecting:"connecting",closing:"closing",closed:"closed"};class vL{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,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let a=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(a))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,a;const s=(a=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&a!==void 0?a:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var n,a;const s=(a=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&a!==void 0?a:{},u=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(e,n,a){var s,l;const u=new TextEncoder,d=u.encode(e.topic),h=u.encode((s=e.ref)!==null&&s!==void 0?s:""),p=u.encode((l=e.join_ref)!==null&&l!==void 0?l:""),g=u.encode(e.payload.event),v=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},y=u.encode(Object.keys(v).length===0?"":JSON.stringify(v));if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`ref length ${h.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`topic length ${d.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`userEvent length ${g.length} exceeds maximum of 255`);if(y.length>255)throw new Error(`metadata length ${y.length} exceeds maximum of 255`);const _=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+h.length+d.length+g.length+y.length,E=new ArrayBuffer(this.HEADER_LENGTH+_),w=new DataView(E),A=new Uint8Array(E);let T=0;w.setUint8(T++,this.KINDS.userBroadcastPush),w.setUint8(T++,p.length),w.setUint8(T++,h.length),w.setUint8(T++,d.length),w.setUint8(T++,g.length),w.setUint8(T++,y.length),w.setUint8(T++,n),A.set(p,T),T+=p.length,A.set(h,T),T+=h.length,A.set(d,T),T+=d.length,A.set(g,T),T+=g.length,A.set(y,T),T+=y.length;var C=new Uint8Array(E.byteLength+a.byteLength);return C.set(new Uint8Array(E),0),C.set(new Uint8Array(a),E.byteLength),C.buffer}decode(e,n){if(this._isArrayBuffer(e)){let a=this._binaryDecode(e);return n(a)}if(typeof e=="string"){const a=JSON.parse(e),[s,l,u,d,h]=a;
62return n({join_ref:s,ref:l,topic:u,event:d,payload:h})}return n({})}_binaryDecode(e){const n=new DataView(e),a=n.getUint8(0),s=new TextDecoder;if(a===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,n,s)}_decodeUserBroadcast(e,n,a){const s=n.getUint8(1),l=n.getUint8(2),u=n.getUint8(3),d=n.getUint8(4);let h=this.HEADER_LENGTH+4;const p=a.decode(e.slice(h,h+s));h=h+s;const g=a.decode(e.slice(h,h+l));h=h+l;const v=a.decode(e.slice(h,h+u));h=h+u;const y=e.slice(h,e.byteLength),_=d===this.JSON_ENCODING?JSON.parse(a.decode(y)):y,E={type:this.BROADCAST_EVENT,event:g,payload:_};return u>0&&(E.meta=JSON.parse(v)),{join_ref:null,ref:null,topic:p,event:this.BROADCAST_EVENT,payload:E}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([a])=>n.includes(a)))}}var et;(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"})(et||(et={}));const q0=(t,e,n={})=>{var a;const s=(a=n.skipTypes)!==null&&a!==void 0?a:[];return e?Object.keys(e).reduce((l,u)=>(l[u]=yL(u,t,e,s),l),{}):{}},yL=(t,e,n,a)=>{const s=e.find(d=>d.name===t),l=s?.type,u=n[t];return l&&!a.includes(l)?QE(l,u):yp(u)},QE=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return SL(e,n)}switch(t){case et.bool:return bL(e);case et.float4:case et.float8:case et.int2:case et.int4:case et.int8:case et.numeric:case et.oid:return _L(e);case et.json:case et.jsonb:return wL(e);case et.timestamp:return EL(e);case et.abstime:case et.date:case et.daterange:case et.int4range:case et.int8range:case et.money:case et.reltime:case et.text:case et.time:case et.timestamptz:case et.timetz:case et.tsrange:case et.tstzrange:return yp(e);default:return yp(e)}},yp=t=>t,bL=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},_L=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},wL=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},SL=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,a=t[n];if(t[0]==="{"&&a==="}"){let l;const u=t.slice(1,n);try{l=JSON.parse("["+u+"]")}catch{l=u?u.split(","):[]}return l.map(d=>QE(e,d))}return t},EL=t=>typeof t=="string"?t.replace(" ","T"):t,eA=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 vs=t=>typeof t=="function"?t:function(){return t},AL=typeof self<"u"?self:null,as=typeof window<"u"?window:null,Gn=AL||as||globalThis,TL="2.0.0",RL=1e4,CL=1e3,xL=100,Yn={connecting:0,open:1,closing:2,closed:3},Ft={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Sr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},bp={longpoll:"longpoll",websocket:"websocket"},kL={complete:4},_p="base64url.bearer.phx.",Gc=class{constructor(t,e,n,a){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=a,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,join_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()}
vendor: 21,092 bytes, lines 62-63
62matchReceive({status:t,response:e,_ref:n}){this.recHooks.filter(a=>a.status===t).forEach(a=>a.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})}},tA=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))}},OL=class{constructor(t,e,n){this.state=Ft.closed,this.topic=t,this.params=vs(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Gc(this,Sr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new tA(()=>{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=Ft.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this.joinPush.receive("error",a=>{this.state=Ft.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,a),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Ft.closed,this.socket.remove(this)}),this.onError(a=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,a),this.isJoining()&&this.joinPush.reset(),this.state=Ft.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 Gc(this,Sr.leave,vs({}),this.timeout).send(),this.state=Ft.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Sr.reply,(a,s)=>{this.trigger(this.replyEventName(s),a)})}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=Ft.closed,this.bindings=[]}onClose(t){this.on(Sr.close,t)}onError(t){return this.on(Sr.error,e=>t(e))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter(n=>!(n.event===t&&(typeof e>"u"||e===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=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 a=new Gc(this,t,function(){return e},n);return this.canPush()?a.send():(a.startTimeout(),this.pushBuffer.push(a)),a}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ft.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Sr.close,"leave")},n=new Gc(this,Sr.leave,vs({}),t);return n.receive("ok",()=>e()).receive("timeout",()=>e()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}filterBindings(t,e,n){return!0}isMember(t,e,n,a){return this.topic!==t?!1:a&&a!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:a}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ft.joining,this.joinPush.resend(t))}trigger(t,e,n,a){let s=this.onMessage(t,e,n,a);if(e&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let l=this.bindings.filter(u=>u.event===t&&this.filterBindings(u,e,n));for(let u=0;u<l.length;u++)l[u].callback(s,n,a||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Ft.closed}isErrored(){return this.state===Ft.errored}isJoined(){return this.state===Ft.joined}isJoining(){return this.state===Ft.joining}isLeaving(){return this.state===Ft.leaving}},Su=class{static request(t,e,n,a,s,l,u){if(Gn.XDomainRequest){let d=new Gn.XDomainRequest;return this.xdomainRequest(d,t,e,a,s,l,u)}else if(Gn.XMLHttpRequest){let d=new Gn.XMLHttpRequest;return this.xhrRequest(d,t,e,n,a,s,l,u)}else{if(Gn.fetch&&Gn.AbortController)return this.fetchRequest(t,e,n,a,s,l,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,n,a,s,l,u){let d={method:t,headers:n,body:a},h=null;return s&&(h=new AbortController,setTimeout(()=>h.abort(),s),d.signal=h.signal),Gn.fetch(e,d).then(p=>p.text()).then(p=>this.parseJSON(p)).then(p=>u&&u(p)).catch(p=>{p.name==="AbortError"&&l?l():u&&u(null)}),h}static xdomainRequest(t,e,n,a,s,l,u){return t.timeout=s,t.open(e,n),t.onload=()=>{let d=this.parseJSON(t.responseText);u&&u(d)},l&&(t.ontimeout=l),t.onprogress=()=>{},t.send(a),t}static xhrRequest(t,e,n,a,s,l,u,d){t.open(e,n,!0),t.timeout=l;for(let[h,p]of Object.entries(a))t.setRequestHeader(h,p);return t.onerror=()=>d&&d(null),t.onreadystatechange=()=>{if(t.readyState===kL.complete&&d){let h=this.parseJSON(t.responseText);d(h)}},u&&(t.ontimeout=u),t.send(s),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 n=[];for(var a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let s=e?`${e}[${a}]`:a,l=t[a];typeof l=="object"?n.push(this.serialize(l,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(l))}return n.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},NL=t=>{let e="",n=new Uint8Array(t),a=n.byteLength;for(let s=0;s<a;s++)e+=String.fromCharCode(n[s]);return btoa(e)},Qa=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(_p)&&(this.authToken=atob(e[1].slice(_p.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=Yn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+bp.websocket),"$1/"+bp.longpoll)}endpointURL(){return Su.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=Yn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Yn.open||this.readyState===Yn.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:n,token:a,messages:s}=e;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=a}else n=0;switch(n){case 200:s.forEach(l=>{setTimeout(()=>this.onmessage({data:l}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Yn.open,this.onopen({}),this.poll();break;case 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 ${n}`)}})}send(t){typeof t!="string"&&(t=NL(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,e=0){this.awaitingBatchAck=!0;const n=e+xL,a=t.slice(e,n);this.ajax("POST",{"Content-Type":"application/x-ndjson"},a.join(`
63`),()=>this.onerror("timeout"),s=>{!s||s.status!==200?(this.awaitingBatchAck=!1,this.onerror(s&&s.status),this.closeAndRetry(1011,"internal server error",!1)):n<t.length?this.batchSend(t,n):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(t,e,n){for(let s of this.reqs)s.abort();this.readyState=Yn.closed;let a=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",a)):this.onclose(a)}ajax(t,e,n,a,s){let l,u=()=>{this.reqs.delete(l),a()};l=Su.request(t,this.endpointURL(),e,n,this.timeout,u,d=>{this.reqs.delete(l),this.isActive()&&s(d)}),this.reqs.add(l)}},jL=class Co{constructor(e,n={}){let a=n.events||{state:"presence_state",diff:"presence_diff"};this.state=Object.create(null),this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(a.state,s=>{let{onJoin:l,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Co.syncState(this.state,s,l,u),this.pendingDiffs.forEach(h=>{this.state=Co.syncDiff(this.state,h,l,u)}),this.pendingDiffs=[],d()}),this.channel.on(a.diff,s=>{let{onJoin:l,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Co.syncDiff(this.state,s,l,u),d())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Co.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,n,a,s){let l=this.toNullProtoObj(this.clone(e));n=this.toNullProtoObj(n);let u=Object.create(null),d=Object.create(null);return this.map(l,(h,p)=>{n[h]||(d[h]=p)}),this.map(n,(h,p)=>{let g=l[h];if(g){let v=p.metas.map(w=>w.phx_ref),y=g.metas.map(w=>w.phx_ref),_=p.metas.filter(w=>y.indexOf(w.phx_ref)<0),E=g.metas.filter(w=>v.indexOf(w.phx_ref)<0);_.length>0&&(u[h]=p,u[h].metas=_),E.length>0&&(d[h]=this.clone(g),d[h].metas=E)}else u[h]=p}),this.syncDiff(l,{joins:u,leaves:d},a,s)}static syncDiff(e,n,a,s){e=this.toNullProtoObj(e);let{joins:l,leaves:u}=this.clone(n);return a||(a=function(){}),s||(s=function(){}),this.map(l,(d,h)=>{let p=e[d];if(e[d]=this.clone(h),p){let g=e[d].metas.map(y=>y.phx_ref),v=p.metas.filter(y=>g.indexOf(y.phx_ref)<0);e[d].metas.unshift(...v)}a(d,p,h)}),this.map(u,(d,h)=>{let p=e[d];if(!p)return;let g=h.metas.map(v=>v.phx_ref);p.metas=p.metas.filter(v=>g.indexOf(v.phx_ref)<0),s(d,p,h),p.metas.length===0&&delete e[d]}),e}static list(e,n){return n||(n=function(a,s){return s}),this.map(e,(a,s)=>n(a,s))}static map(e,n){return Object.getOwnPropertyNames(e).map(a=>n(a,e[a]))}static toNullProtoObj(e){if(Object.getPrototypeOf(e)===null)return e;let n=Object.create(null);return Object.getOwnPropertyNames(e).forEach(a=>{n[a]=e[a]}),n}static clone(e){return JSON.parse(JSON.stringify(e))}},Fc={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 n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,a,s,l,u]=JSON.parse(t);return e({join_ref:n,ref:a,topic:s,event:l,payload:u})}},binaryEncode(t){let{join_ref:e,ref:n,event:a,topic:s,payload:l}=t,u=new TextEncoder,d=u.encode(e),h=u.encode(n),p=u.encode(s),g=u.encode(a);this.assertFieldSize(d.byteLength,"join_ref"),this.assertFieldSize(h.byteLength,"ref"),this.assertFieldSize(p.byteLength,"topic"),this.assertFieldSize(g.byteLength,"event");let v=this.META_LENGTH+d.byteLength+h.byteLength+p.byteLength+g.byteLength,y=new ArrayBuffer(this.HEADER_LENGTH+v),_=new Uint8Array(y),E=new DataView(y),w=0;E.setUint8(w++,this.KINDS.push),E.setUint8(w++,d.byteLength),E.setUint8(w++,h.byteLength),E.setUint8(w++,p.byteLength),E.setUint8(w++,g.byteLength),_.set(d,w),w+=d.byteLength,_.set(h,w),w+=h.byteLength,_.set(p,w),w+=p.byteLength,_.set(g,w),w+=g.byteLength;var A=new Uint8Array(y.byteLength+l.byteLength);return A.set(_,0),A.set(new Uint8Array(l),y.byteLength),A.buffer},assertFieldSize(t,e){if(t>255)throw new Error(`unable to convert ${e} to binary: must be less than or equal to 255 bytes, but is ${t} bytes`)},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),a=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,a);case this.KINDS.reply:return this.decodeReply(t,e,a);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,a)}},decodePush(t,e,n){let a=e.getUint8(1),s=e.getUint8(2),l=e.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,d=n.decode(t.slice(u,u+a));u=u+a;let h=n.decode(t.slice(u,u+s));u=u+s;let p=n.decode(t.slice(u,u+l));u=u+l;let g=t.slice(u,t.byteLength);return{join_ref:d,ref:null,topic:h,event:p,payload:g}},decodeReply(t,e,n){let a=e.getUint8(1),s=e.getUint8(2),l=e.getUint8(3),u=e.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,h=n.decode(t.slice(d,d+a));d=d+a;let p=n.decode(t.slice(d,d+s));d=d+s;let g=n.decode(t.slice(d,d+l));d=d+l;let v=n.decode(t.slice(d,d+u));d=d+u;let y=t.slice(d,t.byteLength),_={status:v,response:y};return{join_ref:h,ref:p,topic:g,event:Sr.reply,payload:_}},decodeBroadcast(t,e,n){let a=e.getUint8(1),s=e.getUint8(2),l=this.HEADER_LENGTH+2,u=n.decode(t.slice(l,l+a));l=l+a;let d=n.decode(t.slice(l,l+s));l=l+s;let h=t.slice(l,t.byteLength);return{join_ref:null,ref:null,topic:u,event:d,payload:h}}},DL=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||RL,this.transport=e.transport||Gn.WebSocket||Qa,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=Gn&&Gn.sessionStorage}catch{}this.sessionStore=e.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Fc.encode.bind(Fc),this.defaultDecoder=Fc.decode.bind(Fc),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!==Qa?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let a=null;as&&as.addEventListener&&(as.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),a=this.connectClock)}),as.addEventListener("pageshow",s=>{a===this.connectClock&&(a=null,this.connect())}),as.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=s=>e.rejoinAfterMs?e.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>e.reconnectAfterMs?e.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(s,l,u)=>{console.log(`${s}: ${l}`,u)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=vs(e.params||{}),this.endPoint=`${t}/${bp.websocket}`,this.vsn=e.vsn||TL,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new tA(()=>{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&&vs(e.authToken)}getLongPollTransport(){return Qa}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=Su.appendParams(Su.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,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=vs(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Qa?this.connectWithFallback(Qa,this.longPollFallbackMs):this.transportConnect())}log(t,e,n){this.logger&&this.logger(t,e,n)}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(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let a=this.onMessage(s=>{s.ref===e&&(this.off([a]),t(Date.now()-n))});return!0}transportName(t){return t===Qa?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${_p}${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 n=!1,a=!0,s,l,u=this.transportName(t),d=h=>{this.log("transport",`falling back to ${u}...`,h),this.off([s,l]),a=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return d("memorized");this.fallbackTimer=setTimeout(d,e),l=this.onError(h=>{this.log("transport","error",h),a&&!n&&(clearTimeout(this.fallbackTimer),d(h))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!a){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(),CL,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();const a=this.conn;this.waitForBufferDone(a,()=>{e?a.close(e,n||""):a.close(),this.waitForSocketClosed(a,()=>{this.conn===a&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){}
vendor: 4,995 bytes, line 63
63,this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,n=1){if(n===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,n+1)},150*n)}waitForSocketClosed(t,e,n=1){if(n===5||t.readyState===Yn.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,n+1)},150*n)}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,n=this.establishedConnections;this.triggerStateCallbacks("error",t,e,n),(e===this.transport||n>0)&&this.triggerChanError(t)}triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Sr.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case Yn.connecting:return"connecting";case Yn.open:return"open";case Yn.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(([n])=>t.indexOf(n)===-1)}channel(t,e={}){let n=new OL(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:a,ref:s,join_ref:l}=t;this.log("push",`${e} ${n} (${l}, ${s})`,a)}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:n,event:a,payload:s,ref:l,join_ref:u}=e;if(l&&l===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.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",`${s.status||""} ${n} ${a} ${l&&"("+l+")"||""}`.trim(),s);for(let d=0;d<this.channels.length;d++){const h=this.channels[d];h.isMember(n,a,s,u)&&h.trigger(a,s,l,u)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([n,a])=>{try{a(...e)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}leaveOpenTopic(t){let e=this.channels.find(n=>n.topic===t&&(n.isJoined()||n.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class Lo{constructor(e,n){const a=zL(n);this.presence=new jL(e.getChannel(),a),this.presence.onJoin((s,l,u)=>{const d=Lo.onJoinPayload(s,l,u);e.getChannel().trigger("presence",d)}),this.presence.onLeave((s,l,u)=>{const d=Lo.onLeavePayload(s,l,u);e.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return Lo.transformState(this.presence.state)}static transformState(e){return e=LL(e),Object.getOwnPropertyNames(e).reduce((n,a)=>{const s=e[a];return n[a]=uu(s),n},{})}static onJoinPayload(e,n,a){const s=V0(n),l=uu(a);return{event:"join",key:e,currentPresences:s,newPresences:l}}static onLeavePayload(e,n,a){const s=V0(n),l=uu(a);return{event:"leave",key:e,currentPresences:s,leftPresences:l}}}function uu(t){return t.metas.map(e=>{const n=Object.getOwnPropertyDescriptors(e),a=Object.defineProperties({},n);return a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a})}function LL(t){return JSON.parse(JSON.stringify(t))}function zL(t){return t?.events&&{events:t.events}}function V0(t){return t?.metas?uu(t):[]}var G0;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(G0||(G0={}));class ML{get state(){return this.presenceAdapter.state}constructor(e,n){this.channel=e,this.presenceAdapter=new Lo(this.channel.channelAdapter,n)}}function IL(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
63if(typeof e.code=="number"){const n=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${n}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class UL{constructor(e,n,a){const s=PL(a);this.channel=e.getSocket().channel(n,s),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,n){return this.channel.on(e,n)}off(e,n){this.channel.off(e,n)}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,n,a){let s;try{s=this.channel.push(e,n,a)}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>gL){const l=this.channel.pushBuffer.shift();l.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${l.event}`,l.payload())}return s}updateJoinPayload(e){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),e)}canPush(){return this.socket.isConnected()&&this.state===di.joined}isJoined(){return this.state===di.joined}isJoining(){return this.state===di.joining}isClosed(){return this.state===di.closed}isLeaving(){return this.state===di.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function PL(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}const BL=/[,()"\\]/,$L=t=>BL.test(t)||t!==t.trim(),HL=t=>`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,F0=t=>{const e=t===null?"null":String(t);return $L(e)?HL(e):e},qL=t=>t===null?"null":String(t),VL=(t,e)=>{if(t==="in"){const n=Array.isArray(e)?e:[e];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(s=>F0(s)).join(",")})`}return t==="is"?`is.${qL(e)}`:`${t}.${F0(e)}`};class GL{constructor(){this.filters=[]}add(e,n,a,s=!1){const l=s?"not.":"";return this.filters.push(`${e}=${l}${VL(n,a)}`),this}eq(e,n){return this.add(e,"eq",n)}neq(e,n){return this.add(e,"neq",n)}gt(e,n){return this.add(e,"gt",n)}gte(e,n){return this.add(e,"gte",n)}lt(e,n){return this.add(e,"lt",n)}lte(e,n){return this.add(e,"lte",n)}in(e,n){return this.add(e,"in",n)}like(e,n){return this.add(e,"like",n)}ilike(e,n){return this.add(e,"ilike",n)}match(e,n){return this.add(e,"match",n)}imatch(e,n){return this.add(e,"imatch",n)}is(e,n){return this.add(e,"is",n)}isDistinct(e,n){return this.add(e,"isdistinct",n)}not(e,n,a){return this.add(e,n,a,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var K0;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(K0||(K0={}));var ds;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(ds||(ds={}));var Er;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Er||(Er={}));class zo{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,n={config:{}},a){var s,l;if(this.topic=e,this.params=n,this.socket=a,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new UL(this.socket.socketAdapter,e,this.params),this.presence=new ML(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=eA(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((l=(s=this.params.config)===null||s===void 0?void 0:s.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,n=this.timeout){var a,s,l;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:d,private:h}}=this.params,p=(s=(a=this.bindings.postgres_changes)===null||a===void 0?void 0:a.map(_=>_.filter))!==null&&s!==void 0?s:[],g=!!this.bindings[ds.PRESENCE]&&this.bindings[ds.PRESENCE].length>0||((l=this.params.config.presence)===null||l===void 0?void 0:l.enabled)===!0,v={},y={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:g}),postgres_changes:p,private:h};this.socket.accessTokenValue&&(v.access_token=this.socket.accessTokenValue),this._onError(_=>{e?.(Er.CHANNEL_ERROR,IL(_))}),this._onClose(()=>e?.(Er.CLOSED)),this.updateJoinPayload(Object.assign({config:y},v)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:_})=>
63{if(this.socket._isManualToken()||this.socket.setAuth(),_===void 0){e?.(Er.SUBSCRIBED);return}this._updatePostgresBindings(_,e)}).receive("error",_=>{this.state=di.errored;const E=Object.values(_).join(", ")||"error";e?.(Er.CHANNEL_ERROR,new Error(E,{cause:_}))}).receive("timeout",()=>{e?.(Er.TIMED_OUT)})}return this}_updatePostgresBindings(e,n){var a;const s=this.bindings.postgres_changes,l=(a=s?.length)!==null&&a!==void 0?a:0,u=[];for(let d=0;d<l;d++){const h=s[d],{filter:{event:p,schema:g,table:v,filter:y}}=h,_=e&&e[d];if(_&&_.event===p&&zo.isFilterValueEqual(_.schema,g)&&zo.isFilterValueEqual(_.table,v)&&zo.isFilterValueEqual(_.filter,y))u.push(Object.assign(Object.assign({},h),{id:_.id}));else{this.unsubscribe(),this.state=di.errored,n?.(Er.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=di.errored&&n&&n(Er.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,a){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),l=e===ds.PRESENCE||e===ds.POSTGRES_CHANGES;if(s&&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,n,a)}async httpSend(e,n,a={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const l=n instanceof ArrayBuffer||ArrayBuffer.isView(n),u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":l?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(u.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:u,body:l?n:JSON.stringify(n)},p=await this._fetchWithTimeout(d.toString(),h,(s=a.timeout)!==null&&s!==void 0?s:this.timeout);if(p.status===202)return{success:!0};if(p.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let g=p.statusText;try{const v=await p.json();g=v.error||v.message||g}catch{}return Promise.reject(new Error(g))}async send(e,n={}){var a,s;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
63in the future. Please use httpSend() explicitly for REST delivery.");const{event:l,payload:u}=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:u,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,h,(a=n.timeout)!==null&&a!==void 0?a:this.timeout);return await((s=p.body)===null||s===void 0?void 0:s.cancel()),p.ok?"ok":"error"}catch(p){return p instanceof Error&&p.name==="AbortError"?"timed out":"error"}}else return new Promise(l=>{var u,d,h;const p=this.channelAdapter.push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((h=(d=(u=this.params)===null||u===void 0?void 0:u.config)===null||d===void 0?void 0:d.broadcast)===null||h===void 0)&&h.ack)&&l("ok"),p.receive("ok",()=>l("ok")),p.receive("error",()=>l("error")),p.receive("timeout",()=>l("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,n,a){const s=new AbortController,l=setTimeout(()=>s.abort(),a),u=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(l),u}_on(e,n,a){const s=e.toLocaleLowerCase(),l=n?.filter;(l instanceof GL||typeof l=="object"&&l!==null&&typeof l.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:l.build()}));const u=this.channelAdapter.on(e,a),d={type:s,filter:n,callback:a,ref:u};return this.bindings[s]?this.bindings[s].push(d):this.bindings[s]=[d],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,n,a)=>{var s,l,u,d,h,p,g;const v=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(v,a))return!1;const y=(s=this.bindings[v])===null||s===void 0?void 0:s.find(_=>_.ref===e.ref);if(!y)return!0;if(["broadcast","presence","postgres_changes"].includes(v))if("id"in y){const _=y.id,E=(l=y.filter)===null||l===void 0?void 0:l.event;return _&&((u=n.ids)===null||u===void 0?void 0:u.includes(_))&&(E==="*"||E?.toLocaleLowerCase()===((d=n.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const _=(p=(h=y?.filter)===null||h===void 0?void 0:h.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return _==="*"||_===((g=n?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return y.type.toLocaleLowerCase()===v})}_notThisChannelEvent(e,n){const{close:a,error:s,leave:l,join:u}=WE;return n&&[a,s,l,u].includes(e)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,n,a)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:l,table:u,commit_timestamp:d,type:h,errors:p}=s;return Object.assign(Object.assign({},{schema:l,table:u,commit_timestamp:d,eventType:h,new:{},old:{},errors:p}),this._getPayloadRecords(s))}return n})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in e.bindings)for(const a of e.bindings[n])this._on(a.type,a.filter,a.callback)}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=q0(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=q0(e.columns,e.old_record)),n}}class FL{constructor(e,n){this.socket=new DL(e,n)}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,n,a,s=1e4){return new Promise(l=>{setTimeout(()=>l("timeout"),s),this.socket.disconnect(()=>{e(),l("ok")},n,a)})}push(e){this.socket.push(e)}log(e,n,a){this.socket.log(e,n,a)}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()==vp.connecting}isDisconnecting(){return this.socket.connectionState()==vp.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Y0={HEARTBEAT_INTERVAL:25e3},KL=[1e3,2e3,5e3,1e4],YL=1e4;function ZL(){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 n;return(n=Array.from(t.keys())[e])!==null&&n!==void 0?n:null},removeItem(e){t.delete(e)},setItem(e,n){t.set(e,String(n))}}}function JL(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return ZL()}const XL=`
64  addEventListener("message", (e) => {
65    if (e.data.event === "start") {
66      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
67    }
68  });`;class WL{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,n){var a;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
68,this.ref=0,this.serializer=new vL,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=l=>l?(...u)=>l(...u):(...u)=>fetch(...u),!(!((a=n?.params)===null||a===void 0)&&a.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new FL(e,s),this.httpEndpoint=eA(e),this.fetch=this._resolveFetch(n?.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 n=e.message;throw new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,n)}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&e.teardown(),n}async removeAllChannels(){const e=this.channels.map(async a=>{const s=await a.unsubscribe();return a.teardown(),s}),n=await Promise.all(e);return await this.disconnect(),n}log(e,n,a){this.socketAdapter.log(e,n,a)}connectionState(){return this.socketAdapter.connectionState()||vp.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,n={config:{}}){const a=`realtime:${e}`,s=this.getChannels().find(l=>l.topic===a);if(s)return s;{const l=new zo(`realtime:${e}`,n,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(n=>n.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}
68this._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 n,a=!1;if(e)n=e,a=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;this.accessToken?this._manuallySetToken=!1:a&&(this._manuallySetToken=!0),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const l={access_token:n,version:fL};n&&s.updateJoinPayload(l),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(WE.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),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(n,a)=>{n!=="disconnected"&&(n=="sent"&&this._setAuthSafely(),e&&e(n,a))}}_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=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.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 n;if(e)n=e;else{const a=new Blob([XL],{type:"application/javascript"});n=URL.createObjectURL(a)}return n}_initializeOptions(e){var n,a,s,l,u,d,h,p,g,v,y,_;this.worker=(n=e?.worker)!==null&&n!==void 0?n:!1,this.accessToken=(a=e?.accessToken)!==null&&a!==void 0?a:null;const E={};E.timeout=(s=e?.timeout)!==null&&s!==void 0?s:mL,E.heartbeatIntervalMs=(l=e?.heartbeatIntervalMs)!==null&&l!==void 0?l:Y0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=e?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((d=e?.heartbeatIntervalMs)!==null&&d!==void 0?d:Y0.HEARTBEAT_INTERVAL),E.transport=(h=e?.transport)!==null&&h!==void 0?h:uL.getWebSocketConstructor(),E.params=e?.params,E.logger=e?.logger,E.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),E.sessionStorage=(p=e?.sessionStorage)!==null&&p!==void 0?p:JL(),E.reconnectAfterMs=(g=e?.reconnectAfterMs)!==null&&g!==void 0?g:(C=>KL[C-1]||YL);let w,A;const T=(v=e?.vsn)!==null&&v!==void 0?v:pL;switch(T){case hL:w=(C,x)=>x(JSON.stringify(C)),A=(C,x)=>x(JSON.parse(C));break;case XE:w=this.serializer.encode.bind(this.serializer),A=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${E.vsn}`)}if(E.vsn=T,E.encode=(y=e?.encode)!==null&&y!==void 0?y:w,E.decode=(_=e?.decode)!==null&&_!==void 0?_:A,E.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,E.params=Object.assign(Object.assign({},E.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,E.autoSendHeartbeat=!this.worker}return E}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
68var Fo=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 QL(t,e,n){const a=new URL(e,t);if(n)for(const[s,l]of Object.entries(n))l!==void 0&&a.searchParams.set(s,l);return a.toString()}async function ez(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 tz(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:a,query:s,body:l,headers:u}){const d=QL(t.baseUrl,a,s),h=await ez(t.auth),p=await e(d,{method:n,headers:{...l?{"Content-Type":"application/json"}:{},...h,...u},body:l?JSON.stringify(l):void 0}),g=await p.text(),v=(p.headers.get("content-type")||"").includes("application/json"),y=v&&g?JSON.parse(g):g;if(!p.ok){const _=v?y:void 0,E=_?.error;throw new Fo(E?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:E?.type,icebergCode:E?.code,details:_})}return{status:p.status,headers:p.headers,data:y}}}}function Kc(t){return t.join("�")}var nz=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Kc(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(a=>({namespace:a}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Kc(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Kc(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Kc(t.namespace)}`}),!0}catch(e){if(e instanceof Fo&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof Fo&&n.status===409)return;throw n}}};function es(t){return t.join("�")}var rz=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${es(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${es(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${es(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${es(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/${es(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/${es(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof Fo&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof Fo&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},iz=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=tz({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new nz(this.client,e),this.tableOps=new rz(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)}
68async 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 Ko(t){"@babel/helpers - typeof";return Ko=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},Ko(t)}function az(t,e){if(Ko(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(Ko(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sz(t){var e=az(t,"string");return Ko(e)=="symbol"?e:e+""}function oz(t,e,n){return(e=sz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function be(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z0(Object(n),!0).forEach(function(a){oz(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z0(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Zu=class extends Error{constructor(t,e="storage",n,a){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=a}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Ju(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var wp=class extends Zu{constructor(t,e,n,a="storage",s){super(t,a,e,n),this.name=a==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n,this.code=s}toJSON(){return be(be({},super.toJSON()),{},{code:this.code})}},nA=class extends Zu{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function Eu(t,e,n){const a=be({},t),s=e.toLowerCase();for(const l of Object.keys(a))l.toLowerCase()===s&&delete a[l];return a[s]=n,a}function lz(t){const e={};for(const[n,a]of Object.entries(t))e[n.toLowerCase()]=a;return e}const cz=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),uz=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)},Sp=t=>{if(Array.isArray(t))return t.map(n=>Sp(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,a])=>{const s=n.replace(/([-_][a-z])/gi,l=>l.toUpperCase().replace(/[-_]/g,""));e[s]=Sp(a)}),e},dz=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),rA=t=>t.split("/").map(encodeURIComponent).join("/"),J0=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 n=e.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(t)},fz=async(t,e,n,a)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const s=t;let l=parseInt(String(s.status),10);Number.isFinite(l)||(l=500),s.json().then(u=>{const d=u?.statusCode||u?.code||l+"";e(new wp(J0(u),l,d,a,u?.code))}).catch(()=>{const u=l+"";e(new wp(s.statusText||`HTTP ${l} error`,l,u,a))})}else e(new nA(J0(t),t,a))},hz=(t,e,n,a)=>{const s={method:t,headers:e?.headers||{}};if(t==="GET"||t==="HEAD"||!a)return be(be({},s),n);if(uz(a)){var l;const u=e?.headers||{};let d;for(const[h,p]of Object.entries(u))h.toLowerCase()==="content-type"&&(d=p);s.headers=Eu(u,"Content-Type",(l=d)!==null&&l!==void 0?l:"application/json"),s.body=JSON.stringify(a)}else s.body=a;return e?.duplex&&(s.duplex=e.duplex),be(be({},s),n)};async function Ro(t,e,n,a,s,l,u){return new Promise((d,h)=>{t(n,hz(e,a,s,l)).then(p=>{if(!p.ok)throw p;if(a?.noResolveJson)return p;if(u==="vectors"){const g=p.headers.get("content-type");if(p.headers.get("content-length")==="0"||p.status===204)return{};if(!g||!g.includes("application/json"))return{}}return p.json()}).then(p=>
68d(p)).catch(p=>fz(p,h,a,u))})}function iA(t="storage"){return{get:async(e,n,a,s)=>Ro(e,"GET",n,a,s,void 0,t),post:async(e,n,a,s,l)=>Ro(e,"POST",n,s,l,a,t),put:async(e,n,a,s,l)=>Ro(e,"PUT",n,s,l,a,t),head:async(e,n,a,s)=>Ro(e,"HEAD",n,be(be({},a),{},{noResolveJson:!0}),s,void 0,t),remove:async(e,n,a,s,l)=>Ro(e,"DELETE",n,s,l,a,t)}}const pz=iA("storage"),{get:Yo,post:jn,put:Ep,head:mz,remove:Zo}=pz,on=iA("vectors");var Ts=class{constructor(t,e={},n,a="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=lz(e),this.fetch=cz(n),this.namespace=a}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=Eu(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ju(n))return{data:null,error:n};throw n}}};let aA;aA=Symbol.toStringTag;var gz=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[aA]="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(Ju(e))return{data:null,error:e};throw e}}};let sA;sA=Symbol.toStringTag;var vz=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[sA]="BlobDownloadBuilder",this.promise=null}asStream(){return new gz(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(Ju(e))return{data:null,error:e};throw e}}};const Kh={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},X0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var yz=class extends Ts{constructor(t,e={},n,a){super(t,e,a,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,a){var s=this;return s.handleOperation(async()=>{let l;const u=be(be({},X0),a);let d=be(be({},s.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),h&&l.append("metadata",s.encodeMetadata(h)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",u.cacheControl),h&&!l.has("metadata")&&l.append("metadata",s.encodeMetadata(h))):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,h&&(d["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!u.duplex&&(u.duplex="half")),a?.headers)for(const[y,_]of Object.entries(a.headers))d=Eu(d,y,_);const p=s._removeEmptyFolders(e),g=s._getFinalPath(p),v=await(t=="PUT"?Ep:jn)(s.fetch,`${s.url}/object/${g}`,l,be({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{path:p,id:v.Id,fullPath:v.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,a){var s=this;const l=s._removeEmptyFolders(t),u=s._getFinalPath(l),d=new URL(s.url+`/object/upload/sign/${u}`);return d.searchParams.set("token",e),s.handleOperation(async()=>{let h;const p=be(be({},X0),a);let g=be(be({},s.headers),{"x-upsert":String(p.upsert)});const v=p.metadata;if(typeof Blob<"u"&&n instanceof Blob?(h=new FormData,h.append("cacheControl",p.cacheControl),v&&h.append("metadata",s.encodeMetadata(v)),h.append("",n)):typeof FormData<"u"&&n instanceof FormData?(h=n,h.has("cacheControl")||h.append("cacheControl",p.cacheControl),v&&!h.has("metadata")&&h.append("metadata",s.encodeMetadata(v))):(h=n,g["cache-control"]=`max-age=${p.cacheControl}`,g["content-type"]=p.contentType,v&&(g["x-metadata"]=s.toBase64(s.encodeMetadata(v))),(typeof ReadableStream<"u"&&h instanceof ReadableStream||h&&typeof h=="object"&&"pipe"in h&&typeof h.pipe=="function")&&!p.duplex&&(p.duplex="half")),a?.headers)for(const[y,_]of Object.entries(a.headers))g=Eu(g,y,_);return{path:l,fullPath:(await Ep(s.fetch,d.toString(),h,be({headers:g},p?.duplex?{duplex:p.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let a=n._getFinalPath(t);const s=be({},n.headers);e?.upsert&&(s["x-upsert"]="true");const l=await jn(n.fetch,`${n.url}/object/upload/sign/${a}`,{},{headers:s}),u=new URL(n.url+l.url),d=u.searchParams.get("token");if(!d)throw new Zu("No token returned by API");return{signedUrl:u.toString(),path:t,token:d}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var a=this;return a.handleOperation(async()=>await jn(a.fetch,`${a.url}/object/move`,{bucketId:a.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:a.headers}))}async copy(t,e,n){var a=this;return a.handleOperation(async()=>({path:(await jn(a.fetch,`${a.url}/object/copy`,{bucketId:a.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:a.headers})).Key}))}async createSignedUrl(t,e,n){var a=this;return a.handleOperation(async()=>{let s=a._getFinalPath(t);const l=typeof n?.transform=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let u=await jn(a.fetch,`${a.url}/object/sign/${s}
68`,be({expiresIn:e},l?{transform:n.transform}:{}),{headers:a.headers});const d=new URLSearchParams;n?.download&&d.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&d.set("cacheNonce",String(n.cacheNonce));const h=d.toString();return{signedUrl:encodeURI(`${a.url}${u.signedURL}${h?`&${h}`:""}`)}})}async createSignedUrls(t,e,n){var a=this;return a.handleOperation(async()=>{const s=await jn(a.fetch,`${a.url}/object/sign/${a.bucketId}`,{expiresIn:e,paths:t},{headers:a.headers}),l=new URLSearchParams;n?.download&&l.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&l.set("cacheNonce",String(n.cacheNonce));const u=l.toString();return s.map(d=>be(be({},d),{},{signedUrl:d.signedURL?encodeURI(`${a.url}${d.signedURL}${u?`&${u}`:""}`):null}))})}download(t,e,n){const a=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;e?.transform&&this.applyTransformOptsToQuery(s,e.transform),e?.cacheNonce!=null&&s.set("cacheNonce",String(e.cacheNonce));const l=s.toString(),u=this._getFinalPath(t),d=()=>Yo(this.fetch,`${this.url}/${a}/${u}${l?`?${l}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new vz(d,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>Sp(await Yo(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await mz(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(s){if(e.shouldThrowOnError)throw s;if(Ju(s)){var a;const l=s instanceof wp?s.status:s instanceof nA?(a=s.originalError)===null||a===void 0?void 0:a.status:void 0;if(l!==void 0&&[400,404].includes(l))return{data:!1,error:s}}throw s}}getPublicUrl(t,e){const n=this._getFinalPath(t),a=new URLSearchParams;e?.download&&a.set("download",e.download===!0?"":e.download),e?.transform&&this.applyTransformOptsToQuery(a,e.transform),e?.cacheNonce!=null&&a.set("cacheNonce",String(e.cacheNonce));const s=a.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/${n}`)+(s?`?${s}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await Zo(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async purgeCache(t,e,n){var a=this;return a.handleOperation(async()=>{const s=rA(a._getFinalPath(t)),l=new URLSearchParams;e?.transformations&&l.set("transformations","true");const u=l.toString();return await Zo(a.fetch,`${a.url}/cdn/${s}${u?`?${u}`:""}`,{},{headers:a.headers},n)})}async list(t,e,n){var a=this;return a.handleOperation(async()=>{const s=e?.sortBy?be(be({},Kh.sortBy),e.sortBy):Kh.sortBy,l=be(be(be({},Kh),e),{},{sortBy:s,prefix:t||""});return await jn(a.fetch,`${a.url}/object/list/${a.bucketId}`,l,{headers:a.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const a=be({},t);return await jn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,a,{headers:n.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 bz="2.112.1",cl={"X-Client-Info":`storage-js/${bz}`};var _z=class extends Ts{constructor(t,e={},n,a){const s=new URL(t);a?.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const l=s.href.replace(/\/$/,""),u=be(be({},cl),e);super(l,u,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await Yo(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Yo(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await jn(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await Ep(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await jn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Zo(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}async purgeBucketCache(t,e,n){var a=this;return a.handleOperation(async()=>{const s=new URLSearchParams;e?.transformations&&s.set("transformations","true");const l=s.toString();return await Zo(a.fetch,`${a.url}/cdn/${rA(t)}${l?`?${l}`:""}`,{},{headers:a.headers},n)})}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():""}},wz=class extends Ts{constructor(t,e={},n){const a=t.replace(/\/$/,""),s=be(be({}
68,cl),e);super(a,s,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await jn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;t?.limit!==void 0&&n.set("limit",t.limit.toString()),t?.offset!==void 0&&n.set("offset",t.offset.toString()),t?.sortColumn&&n.set("sortColumn",t.sortColumn),t?.sortOrder&&n.set("sortOrder",t.sortOrder),t?.search&&n.set("search",t.search);const a=n.toString(),s=a?`${e.url}/bucket?${a}`:`${e.url}/bucket`;return await Yo(e.fetch,s,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Zo(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!dz(t))throw new Zu("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 n=new iz({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),a=this.shouldThrowOnError;return new Proxy(n,{get(s,l){const u=s[l];return typeof u!="function"?u:async(...d)=>{try{return{data:await u.apply(s,d),error:null}}catch(h){if(a)throw h;return{data:null,error:h}}}}})}},Sz=class extends Ts{constructor(t,e={},n){const a=t.replace(/\/$/,""),s=be(be({}
68,cl),{},{"Content-Type":"application/json"},e);super(a,s,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await on.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await on.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await on.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await on.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},Ez=class extends Ts{constructor(t,e={},n){const a=t.replace(/\/$/,""),s=be(be({},cl),{},{"Content-Type":"application/json"},e);super(a,s,n,"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 on.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await on.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");if(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 on.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await on.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 on.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},Az=class extends Ts{constructor(t,e={},n){const a=t.replace(/\/$/,""),s=be(be({}
68,cl),{},{"Content-Type":"application/json"},e);super(a,s,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await on.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await on.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await on.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await on.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},Tz=class extends Az{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new Rz(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},Rz=class extends Sz{constructor(t,e,n,a){super(t,e,a),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new Cz(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},Cz=class extends Ez{constructor(t,e,n,a,s){super(t,e,s),this.vectorBucketName=n,this.indexName=a}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,be(be({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},xz=class extends _z{constructor(t,e={},n,a){super(t,e,n,a)}from(t){return new yz(this.url,this.headers,t,this.fetch)}get vectors(){return new Tz(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new wz(this.url+"/iceberg",this.headers,this.fetch)}};const oA="2.112.1",Ar=30*1e3,xo=3,Yh=xo*Ar,kz=2*Ar,Oz="http://localhost:9999",Nz="supabase.auth.token",jz={"X-Client-Info":`gotrue-js/${oA}`},Ap="X-Supabase-Api-Version",lA={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Dz=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Zi="sb_flow_id",Lz=5,zz=600*1e3;
68class Jo extends Error{constructor(e,n,a){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function te(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class Mz extends Jo{constructor(e,n,a){super(e,n,a),this.name="AuthApiError",this.status=n,this.code=a}}function W0(t){return te(t)&&t.name==="AuthApiError"}class Dn extends Jo{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Qn extends Jo{constructor(e,n,a,s){super(e,a,s),this.name=n,this.status=a}}class Et extends Qn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Yc(t){return te(t)&&t.name==="AuthSessionMissingError"}class ts extends Qn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Zc extends Qn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Jc extends Qn{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function Iz(t){return te(t)&&t.name==="AuthImplicitGrantRedirectError"}class Q0 extends Qn{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Uz extends Qn{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 du extends Qn{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Xc(t){return te(t)&&t.name==="AuthRetryableFetchError"}class e_ extends Qn{constructor(e="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(e,"AuthRefreshDiscardedError",409,void 0)}}function Pz(t){return te(t)&&t.name==="AuthRefreshDiscardedError"}class t_ extends Qn{constructor(e,n,a){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Au extends Qn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n_=` 	
69\r=`.split(""),Bz=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<n_.length;e+=1)t[n_[e].charCodeAt(0)]=-2;for(let e=0;e<Tu.length;e+=1)t[Tu[e].charCodeAt(0)]=e;return t})();function r_(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;n(Tu[a]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;n(Tu[a]),e.queuedBits-=6}}function cA(t,e,n){const a=Bz[t];if(a>-1)for(e.queue=e.queue<<6|a,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(a===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function i_(t){const e=[],n=u=>{e.push(String.fromCodePoint(u))},a={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},l=u=>{qz(u,a,n)};for(let u=0;u<t.length;u+=1)cA(t.charCodeAt(u),s,l);return e.join("")}function $z(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 Hz(t,e){for(let n=0;n<t.length;n+=1){let a=t.charCodeAt(n);if(a>55295&&a<=56319){const s=(a-55296)*1024&65535;a=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}$z(a,e)}}function qz(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let a=1;a<6;a+=1)if((t>>7-a&1)===0){e.utf8seq=a;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&&n(e.codepoint)}}function ys(t){const e=[],n={queue:0,queuedBits:0},a=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)cA(t.charCodeAt(s),n,a);return new Uint8Array(e)}function Vz(t){const e=[];return Hz(t,n=>e.push(n)),new Uint8Array(e)}function Ji(t){const e=[],n={queue:0,queuedBits:0},a=s=>{e.push(s)};return t.forEach(s=>r_(s,n,a)),r_(null,n,a),e.join("")}function Gz(t){return Math.round(Date.now()/1e3)+t}function Fz(){return Symbol("auth-callback")}const Ot=()=>typeof window<"u"&&typeof document<"u",Gi={tested:!1,writable:!1},uA=()=>{if(!Ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Gi.tested)return Gi.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Gi.tested=!0,Gi.writable=!0}catch{Gi.tested=!0,Gi.writable=!1}return Gi.writable};function a_(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
69h((s,l)=>{e[l]=s})}catch{}return n.searchParams.forEach((a,s)=>{e[s]=a}),e}const dA=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Kz=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Tr=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},jt=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Yt=async(t,e)=>{await t.removeItem(e)};class Xu{constructor(){this.promise=new Xu.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Xu.promiseConstructor=Promise;function Wc(t){const e=t.split(".");if(e.length!==3)throw new Au("Invalid JWT structure");for(let a=0;a<e.length;a++)if(!Dz.test(e[a]))throw new Au("JWT not in base64url format");return{header:JSON.parse(i_(e[0])),payload:JSON.parse(i_(e[1])),signature:ys(e[2]),raw:{header:e[0],payload:e[1]}}}async function Yz(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function Zz(t,e){return new Promise((a,s)=>{(async()=>{for(let l=0;l<1/0;l++)try{const u=await t(l);if(!e(l,null,u)){a(u);return}}catch(u){if(!e(l,u)){s(u);return}}})()})}function fA(t){return("0"+t.toString(16)).substr(-2)}function Jz(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",a=n.length;let s="";for(let l=0;l<56;l++)s+=n.charAt(Math.floor(Math.random()*a));return s}return crypto.getRandomValues(e),Array.from(e,fA).join("")}async function Xz(t){const n=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(a);return Array.from(s).map(l=>String.fromCharCode(l)).join("")}async function Wz(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 n=await Xz(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const Qz=/^[a-zA-Z0-9_-]{8,64}$/;function fu(t){return typeof t=="string"&&Qz.test(t)?t:null}function eM(){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){const e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,fA).join("")}let t="";for(let e=0;e<32;e++)t+=Math.floor(Math.random()*16).toString(16);return t}const bs=(t,e)=>`${t}-flow-${e}-code-verifier`,Xo=t=>`${t}-flows-code-verifier`;async function lm(t,e){const n=await jt(t,Xo(e));return Array.isArray(n)?n.filter(a=>fu(a)!==null):[]}async function tM(t,e,n,a,s){await Tr(t,bs(e,n),a);const l=(await lm(t,e)).filter(u=>u!==n);for(l.push(n);l.length>Lz;){const u=l.shift();await Yt(t,bs(e,u)),s?.(u)}await Tr(t,Xo(e),l),await Tr(t,`${e}-code-verifier`,a)}async function nM(t,e,n){if(n){const s=await jt(t,bs(e,n));return{verifier:typeof s=="string"?s:null,flowId:n}}const a=await jt(t,`${e}-code-verifier`);return{verifier:typeof a=="string"?a:null,flowId:null}}async function xn(t,e,n){const a=`${e}-code-verifier`;if(!n){await Yt(t,a);return}const s=bs(e,n),l=await jt(t,s);await Yt(t,s);const u=await lm(t,e),d=u.filter(h=>h!==n);d.length!==u.length&&(d.length>0?await Tr(t,Xo(e),d):await Yt(t,Xo(e))),l!=null&&l===await jt(t,a)&&await Yt(t,a)}async function rM(t,e){const n=await lm(t,e);for(const a of n)await Yt(t,bs(e,a));await Yt(t,Xo(e)),await Yt(t,`${e}-code-verifier`)}function iM(t,e){const n=t.indexOf("#");let a=n===-1?t:t.slice(0,n);const s=n===-1?"":t.slice(n),l=a.indexOf("?");if(l!==-1){const d=a.slice(0,l),h=a.slice(l+1).split("&").filter(p=>p!==""&&p!==Zi&&!p.startsWith(`${Zi}=`));a=h.length>0?`${d}?${h.join("&")}`:d}const u=a.includes("?")?"&":"?";return`${a}${u}${Zi}=${encodeURIComponent(e)}${s}`}async function aM(t,e,n=!1,a){const s=Jz();let l=s;n&&(l+="/recovery");const u=eM();await tM(t,e,u,l,a);const d=await Wz(s);return[d,s===d?"plain":"s256",u]}const sM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function oM(t){const e=t.headers.get(Ap);if(!e||!e.match(sM))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function lM(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 cM(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 uM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function br(t){if(!uM.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function On(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 Zh(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;
69if(typeof n=="symbol"){const a=n.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="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 "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function dM(t,e){return new Proxy(t,{get:(n,a,s)=>{if(a==="__isInsecureUserWarningProxy")return!0;if(typeof a=="symbol"){const l=a.toString();if(l==="Symbol(Symbol.toPrimitive)"||l==="Symbol(Symbol.toStringTag)"||l==="Symbol(util.inspect.custom)"||l==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,a,s)}return!e.value&&typeof a=="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(n,a,s)}})}function s_(t){return JSON.parse(JSON.stringify(t))}const Fi=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)},o_=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function l_(t){var e;if(!Kz(t))throw new du(Fi(t),0);let n;try{n=await t.json()}catch(l){throw o_.includes(t.status)?new du(t.statusText||`HTTP ${t.status}`,t.status):new Dn(Fi(l),l)}if(o_.includes(t.status))throw new du(Fi(n),t.status);let a;const s=oM(t);if(s&&s.getTime()>=lA["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?a=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(a=n.error_code),a){if(a==="weak_password")throw new t_(Fi(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(a==="session_not_found")throw new Et}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((l,u)=>l&&typeof u=="string",!0))throw new t_(Fi(n),t.status,n.weak_password.reasons);throw new Mz(Fi(n),t.status||500,a)}const fM=(t,e,n,a)=>{const s={method:t,headers:e?.headers||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),s.body=JSON.stringify(a),Object.assign(Object.assign({},s),n))};async function ce(t,e,n,a){var s;const l=Object.assign({},a?.headers);l[Ap]||(l[Ap]=lA["2024-01-01"].name),a?.jwt&&(l.Authorization=`Bearer ${a.jwt}`);const u=(s=a?.query)!==null&&s!==void 0?s:{};a?.redirectTo&&(u.redirect_to=a.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",h=await hM(t,e,n+d,{headers:l,noResolveJson:a?.noResolveJson},{},a?.body);return a?.xform?a?.xform(h):{data:Object.assign({},h),error:null}}async function hM(t,e,n,a,s,l){const u=fM(e,a,s,l);let d;try{d=await t(n,Object.assign({},u))}catch(h){throw new du(Fi(h),0)}if(d.ok||await l_(d),a?.noResolveJson)return d;try{return await d.json()}catch(h){await l_(h)}}function Sn(t){var e;let n=null;gM(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=Gz(t.expires_in)));const a=(e=t.user)!==null&&e!==void 0?e:typeof t?.id=="string"?t:null;return{data:{session:n,user:a},error:null}}function c_(t){const e=Sn(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((n,a)=>
69n&&typeof a=="string",!0)&&(e.data.weak_password=t.weak_password),e}function fi(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function pM(t){return{data:t,error:null}}function mM(t){const{action_link:e,email_otp:n,hashed_token:a,redirect_to:s,verification_type:l}=t,u=As(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:e,email_otp:n,hashed_token:a,redirect_to:s,verification_type:l},h=Object.assign({},u);return{data:{properties:d,user:h},error:null}}function u_(t){return t}function gM(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Jh=["global","local","others"];class vM{constructor({url:e="",headers:n={},fetch:a,experimental:s}){this.url=e,this.headers=n,this.fetch=dA(a),this.experimental=s??{},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,n=Jh[0]){if(Jh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Jh.join(", ")}`);try{return await ce(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(a){if(te(a))return{data:null,error:a};throw a}}async inviteUserByEmail(e,n={}){try{return await ce(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:fi})}catch(a){if(te(a))return{data:{user:null},error:a};throw a}}async generateLink(e){try{const{options:n}=e,a=As(e,["options"]),s=Object.assign(Object.assign({},a),n);return"newEmail"in a&&(s.new_email=a?.newEmail,delete s.newEmail),await ce(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:mM,redirectTo:n?.redirectTo})}catch(n){if(te(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:fi})}catch(n){if(te(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,a,s,l,u,d,h;try{const p={nextPage:null,lastPage:0,total:0},g=await ce(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&a!==void 0?a:"",per_page:(l=(s=e?.perPage)===null||s===void 0?void 0:s.toString())!==null&&l!==void 0?l:""},xform:u_});if(g.error)throw g.error;const v=await g.json(),y=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(h=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return _.length>0&&(_.forEach(E=>{const w=parseInt(E.split(";")[0].split("=")[1].substring(0,1)),A=JSON.parse(E.split(";")[1].split("=")[1]);p[`${A}Page`]=w}),p.total=parseInt(y)),{data:Object.assign(Object.assign({},v),p),error:null}}catch(p){if(te(p))return{data:{users:[]},error:p};throw p}}async getUserById(e){br(e);try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:fi})}catch(n){if(te(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){br(e);try{return await ce(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:fi})}catch(a){if(te(a))return{data:{user:null},error:a};throw a}}async deleteUser(e,n=!1){br(e);try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:fi})}catch(a){if(te(a))return{data:{user:null},error:a};throw a}}async _listFactors(e){br(e.userId);try{const{data:n,error:a}=await ce(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:a}}catch(n){if(te(n))return{data:null,error:n};throw n}}async _deleteFactor(e){br(e.userId),br(e.id);
69try{return{data:await ce(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(te(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,a,s,l,u,d,h;try{const p={nextPage:null,lastPage:0,total:0},g=await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&a!==void 0?a:"",per_page:(l=(s=e?.perPage)===null||s===void 0?void 0:s.toString())!==null&&l!==void 0?l:""},xform:u_});if(g.error)throw g.error;const v=await g.json(),y=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(h=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return _.length>0&&(_.forEach(E=>{const w=parseInt(E.split(";")[0].split("=")[1].substring(0,1)),A=JSON.parse(E.split(";")[1].split("=")[1]);p[`${A}Page`]=w}),p.total=parseInt(y)),{data:Object.assign(Object.assign({},v),p),error:null}}catch(p){if(te(p))return{data:{clients:[]},error:p};throw p}}async _createOAuthClient(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await ce(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(te(a))return{data:null,error:a};throw a}}async _deleteOAuthClient(e){try{return await ce(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(te(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _listCustomProviders(e){try{const n={};return e?.type&&(n.type=e.type),await ce(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:a=>{var s;return{data:{providers:(s=a?.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(te(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _getCustomProvider(e){try{return await ce(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _updateCustomProvider(e,n){try{return await ce(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:n,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(te(a))return{data:null,error:a};throw a}}async _deleteCustomProvider(e){try{return await ce(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(te(n))return{data:null,error:n};throw n}}async _adminListPasskeys(e){On(this.experimental),br(e.userId);try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(e){On(this.experimental),br(e.userId),br(e.passkeyId);try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(te(n))return{data:null,error:n};throw n}}}function d_(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}globalThis&&uA()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");
69class yM extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}function bM(){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 hA(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function _M(t){return parseInt(t,16)}function wM(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,a=>a.toString(16).padStart(2,"0")).join("")}function SM(t){var e;const{chainId:n,domain:a,expirationTime:s,issuedAt:l=new Date,nonce:u,notBefore:d,requestId:h,resources:p,scheme:g,uri:v,version:y}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!a)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!v)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(y!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${y}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
70`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const _=hA(t.address),E=g?`${g}://${a}`:a,w=t.statement?`${t.statement}
71`:"",A=`${E} wants you to sign in with your Ethereum account:
72${_}
73
74${w}`;let T=`URI: ${v}
75Version: ${y}
76Chain ID: ${n}${u?`
77Nonce: ${u}`:""}
78Issued At: ${l.toISOString()}`;if(s&&(T+=`
79Expiration Time: ${s.toISOString()}`),d&&(T+=`
80Not Before: ${d.toISOString()}`),h&&(T+=`
81Request ID: ${h}`),p){let C=`
82Resources:`;for(const x of p){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);C+=`
83- ${x}`}T+=C}return`${A}
84${T}`}class mt extends Error{constructor({message:e,code:n,cause:a,name:s}){var l;super(e,{cause:a}),this.__isWebAuthnError=!0,this.name=(l=s??(a instanceof Error?a.name:void 0))!==null&&l!==void 0?l:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Ru extends mt{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function EM({error:t,options:e}){var n,a,s;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 mt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=l.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new mt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((a=l.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new mt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=l.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new mt({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 mt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new mt({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 mt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new mt({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 u=window.location.hostname;if(pA(u)){if(l.rp.id!==u)return new mt({message:`The RP ID "${l.rp.id}
84" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new mt({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 mt({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 mt({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 mt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function AM({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new mt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new mt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const a=window.location.hostname;if(pA(a)){if(n.rpId!==a)return new mt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new mt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new mt({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 mt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class TM{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}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 Tp=new TM;function f_(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:n,excludeCredentials:a}=t,s=As(t,["challenge","user","excludeCredentials"]),l=ys(e).buffer,u=Object.assign(Object.assign({},n),{id:ys(n.id).buffer}),d=Object.assign(Object.assign({},s),{challenge:l,user:u});if(a&&a.length>0){d.excludeCredentials=new Array(a.length);for(let h=0;h<a.length;h++){const p=a[h];d.excludeCredentials[h]=Object.assign(Object.assign({},p),{id:ys(p.id).buffer,type:p.type||"public-key",transports:p.transports})}}return d}function h_(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:n}=t,a=As(t,["challenge","allowCredentials"]),s=ys(e).buffer,l=Object.assign(Object.assign({},a),{challenge:s});if(n&&n.length>0){l.allowCredentials=new Array(n.length);for(let u=0;u<n.length;u++){const d=n[u];l.allowCredentials[u]=Object.assign(Object.assign({},d),{id:ys(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function p_(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:Ji(new Uint8Array(t.response.attestationObject)),clientDataJSON:Ji(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function m_(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,a=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Ji(new Uint8Array(s.authenticatorData)),clientDataJSON:Ji(new Uint8Array(s.clientDataJSON)),signature:Ji(new Uint8Array(s.signature)),userHandle:s.userHandle?Ji(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:a,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function pA(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Cu(){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 mA(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:EM({error:e,options:t})}}}async function gA(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:AM({error:e,options:t})}}}const RM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},CM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function xu(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),a={};for(const s of t)if(s)for(const l in s){const u=s[l];if(u!==void 0)if(Array.isArray(u))a[l]=u;else if(n(u))a[l]=u;else if(e(u)){const d=a[l];e(d)?a[l]=xu(d,u):a[l]=xu(u)}else a[l]=u}return a}function xM(t,e){return xu(RM,t,e||{})}function kM(t,e){return xu(CM,t,e||{})}class OM{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:n,friendlyName:a,signal:s},l){var u;try{const{data:d,error:h}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!d)return{data:null,error:h};const p=s??Tp.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:g}=d.webauthn.credential_options.publicKey;if(!g.name){const v=a;if(v)g.name=`${g.id}:${v}`;else{const _=(await this.client.getUser()).data.user,E=((u=_?.user_metadata)===null||u===void 0?void 0:u.name)||_?.email||_?.id||"User";g.name=`${g.id}:${E}`}}g.displayName||(g.displayName=g.name)}switch(d.webauthn.type){case"create":{const g=xM(d.webauthn.credential_options.publicKey,l?.create),{data:v,error:y}=await mA({publicKey:g,signal:p});return v?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:v}},error:null}:{data:null,error:y}}case"request":{const g=kM(d.webauthn.credential_options.publicKey,l?.request),{data:v,error:y}=await gA(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:g,signal:p}));return v?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:v}},error:null}:{data:null,error:y}}}}catch(d){return te(d)?{data:null,error:d}:{data:null,error:new Dn("Unexpected error in challenge",d)}}}async _verify({challengeId:e,factorId:n,webauthn:a}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:a})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},l){if(!n)return{data:null,error:new Jo("rpId is required for WebAuthn authentication")};try{if(!Cu())return{data:null,error:new Dn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:a},signal:s},{request:l});if(!u)return{data:null,error:d};const{webauthn:h}=u;return this._verify({factorId:e,challengeId:u.challengeId,webauthn:{type:h.type,rpId:n,rpOrigins:a,credential_response:h.credential_response}})}catch(u){return te(u)?{data:null,error:u}:{data:null,error:new Dn("Unexpected error in authenticate",u)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},l){if(!n)return{data:null,error:new Jo("rpId is required for WebAuthn registration")};try{if(!Cu())return{data:null,error:new Dn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:e});if(!u)return await this.client.mfa.listFactors().then(g=>{var v;return(v=g.data)===null||v===void 0?void 0:v.all.find(y=>y.factor_type==="webauthn"&&y.friendly_name===e&&y.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:d};const{data:h,error:p}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:n,rpOrigins:a},signal:s},{create:l});return h?this._verify({factorId:u.id,challengeId:h.challengeId,webauthn:{rpId:n,rpOrigins:a,type:h.webauthn.type,credential_response:h.webauthn.credential_response}}):{data:null,error:p}}catch(u){return te(u)?{data:null,error:u}:{data:null,error:new Dn("Unexpected error in register",u)}}}}bM();const NM={url:Oz,storageKey:Nz,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:jz,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},ns={};class Wo{get jwks(){var e,n;return(n=(e=ns[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){ns[this.storageKey]=Object.assign(Object.assign({},ns[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=ns[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ns[this.storageKey]=Object.assign(Object.assign({},ns[this.storageKey]),{cachedAt:e})}constructor(e){var n,a,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=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({},NM),e);if(this.storageKey=l.storageKey,this.instanceID=(n=Wo.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Wo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!l.debug,typeof l.debug=="function"&&(this.logger=l.debug),this.instanceID>0&&Ot()){const u=`${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(u),this.logDebugMessages&&console.trace(u)}if(this.persistSession=l.persistSession,this.autoRefreshToken=l.autoRefreshToken,this.experimental=(a=l.experimental)!==null&&a!==void 0?a:{},this.admin=new vM({url:l.url,headers:l.headers,fetch:l.fetch,experimental:this.experimental}),this.url=l.url,this.headers=l.headers,this.fetch=dA(l.fetch),this.detectSessionInUrl=l.detectSessionInUrl,this.flowType=l.flowType,this.hasCustomAuthorizationHeader=l.hasCu
84stomAuthorizationHeader,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 OM(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:uA()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=d_(this.memoryStorage)),l.userStorage&&(this.userStorage=l.userStorage)):(this.memoryStorage={},this.storage=d_(this.memoryStorage)),Ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(u){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",u)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async u=>{this._debug("received broadcast notification from other tab or client",u),(u.data.event==="TOKEN_REFRESHED"||u.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(u.data.event,u.data.session,!1)}catch(d){this._debug("#broadcastChannel","error",d)}})}l.skipAutoInitialize||this.initialize().catch(u=>{this._debug("#initialize()","error",u)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${oA}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){var e;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const n=await this.initializePromise,a=(e=this._pendingInitNotifications)!==null&&e!==void 0?e:[];this._pendingInitNotifications=null;for(const s of a)await this._notifyAllSubscribers(s.event,s.session,s.broadcast);return n}async _initialize(){var e;try{let n={},a="none";if(Ot()&&(n=a_(window.location.href),this._isImplicitGrantCallback(n)?a="implicit":await this._isPKCECallback(n)&&(a="pkce")),Ot()&&this.detectSessionInUrl&&a!=="none"){const{data:s,error:l}=await this._getSessionFromURL(n,a);if(l){if(this._debug("#_initialize()","error detecting session from URL",l),Iz(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:u,redirectType:d}=s;return this._debug("#_initialize()","detected session in URL",u,"redirect type",d),await this._saveSession(u),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return te(n)?this._returnResult({error:n}):this._returnResult({error:new Dn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,a,s;try{const l=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(a=(n=e?.options)===null||n===void 0?void 0:n.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:(s=e?.options)===null||s===void 0?void 0:s.captchaToken}},xform:Sn}),{data:u,error:d}=l;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const h=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:p,session:h},error:null})}catch(l){if(te(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signUp(e){var n,a,s;let l=null;try{let u;if("email"in e){const{email:v,password:y,options:_}=e;let E=null,w=null;this.flowType==="pkce"&&([E,w,l]=await this._getCodeChallengeAndMethod()),u=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(_?.emailRedirectTo,l),body:{email:v,password:y,data:(n=_?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:_?.captchaToken},code_challenge:E,code_challenge_method:w},xform:Sn})}else if("phone"in e){const{phone:v,password:y,options:_}=e;u=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:v,password:y,data:(a=_?.data)!==null&&a!==void 0?a:{},channel:(s=_?.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:_?.captchaToken}},xform:Sn})}else throw new Zc("You must provide either an email or phone number and a password");const{data:d,error:h}=u;if(h||!d)return await xn(this.storage,this.storageKey,l),this._returnResult({data:{user:null,session:null},error:h});const p=d.session,g=d.user;return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(u){if(await xn(this.storage,this.storageKey,l),te(u))return this._returnResult({data:{user:null,session:null},error:u});throw u}}async signInWithPassword(e){try{let n;if("email"in e){const{email:l,password:u,options:d}=e;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:l,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:c_})}else if("phone"in e){const{phone:l,password:u,options:d}=e;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:l,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:c_})}else throw new Zc("You must provide either an email or phone number and a password");const{data:a,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!a||!a.session||!a.user){const l=new ts;return this._returnResult({data:{user:null,session:null},error:l})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign({user:a.user,session:a.session},a.weak_password?{weakPassword:a.weak_password}:null),error:s})}catch(n){if(te(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,a,s,l;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(l=e.options)===null||l===void 0?void 0:l.skipBrowserRedirect})}async exchangeCodeForSession(e,n){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e,n)):this._exchangeCodeForSession(e,n)}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,a,s,l,u,d,h,p,g,v,y;let _,E;if("message"in e)_=e.message,E=e.signature;else{const{chain:w,wallet:A,statement:T,options:C}=e;let x;if(Ot())if(typeof A=="object")x=A;else{const X=window;if("ethereum"in X&&typeof X.ethereum=="object"&&"request"in X.ethereum&&typeof X.ethereum.request=="function")x=X.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 A!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=A}const z=new URL((n=C?.url)!==null&&n!==void 0?n:window.location.href),Y=await x.request({method:"eth_requestAccounts"}).then(X=>X).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!Y||Y.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const M=hA(Y[0]);let N=(a=C?.signInWithEthereum)===null||a===void 0?void 0:a.chainId;if(!N){const X=await x.request({method:"eth_chainId"});N=_M(X)}const B={domain:z.host,address:M,statement:T,uri:z.href,version:"1",chainId:N,nonce:(s=C?.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(u=(l=C?.signInWithEthereum)===null||l===void 0?void 0:l.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=C?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(h=C?.signInWithEthereum)===null||h===void 0?void 0:h.notBefore,requestId:(p=C?.signInWithEthereum)===null||p===void 0?void 0:p.requestId,resources:(g=C?.signInWithEthereum)===null||g===void 0?void 0:g.resources};_=SM(B),E=await x.request({method:"personal_sign",params:[wM(_),M]})}try{const{data:w,error:A}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:_,signature:E},!((v=e.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(y=e.options)===null||y===void 0?void 0:y.captchaToken}}:null),xform:Sn});if(A)throw A;if(!w||!w.session||!w.user){const T=new ts;return this._returnResult({data:{user:null,session:null},error:T})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:A})}catch(w){if(te(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async signInWithSolana(e){var n,a,s,l,u,d,h,p,g,v,y,_;let E,w;if("message"in e)E=e.message,w=e.signature;else{const{chain:A,wallet:T,statement:C,options:x}=e;let z;if(Ot())if(typeof T=="object")z=T;else{const M=window;if("solana"in M&&typeof M.solana=="object"&&("signIn"in M.solana&&typeof M.solana.signIn=="function"||"signMessage"in M.solana&&typeof M.solana.signMessage=="function"))z=M.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 T!="object"||!x?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");z=T}const Y=new URL((n=x?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in z&&z.signIn){const M=await z.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x?.signInWithSolana),{version:"1",domain:Y.host,uri:Y.href}),C?{statement:C}:null));let N;if(Array.isArray(M)&&M[0]&&typeof M[0]=="object")N=M[0];else if(M&&typeof M=="object"&&"signedMessage"in M&&"signature"in M)N=M;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)E=typeof N.signedMessage=="string"?N.signedMessage:new TextDecoder().decode(N.signedMessage),w=N.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}
84else{if(!("signMessage"in z)||typeof z.signMessage!="function"||!("publicKey"in z)||typeof z!="object"||!z.publicKey||!("toBase58"in z.publicKey)||typeof z.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");E=[`${Y.host} wants you to sign in with your Solana account:`,z.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${Y.href}`,`Issued At: ${(s=(a=x?.signInWithSolana)===null||a===void 0?void 0:a.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((l=x?.signInWithSolana)===null||l===void 0)&&l.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((u=x?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((d=x?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((h=x?.signInWithSolana)===null||h===void 0)&&h.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((p=x?.signInWithSolana)===null||p===void 0)&&p.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((v=(g=x?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||v===void 0)&&v.length?["Resources",...x.signInWithSolana.resources.map(N=>`- ${N}`)]:[]].join(`
85`);const M=await z.signMessage(new TextEncoder().encode(E),"utf8");if(!M||!(M instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");w=M}}try{const{data:A,error:T}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:E,signature:Ji(w)},!((y=e.options)===null||y===void 0)&&y.captchaToken?{gotrue_meta_security:{captcha_token:(_=e.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:Sn});if(T)throw T;if(!A||!A.session||!A.user){const C=new ts;return this._returnResult({data:{user:null,session:null},error:C})}return A.session&&(await this._saveSession(A.session),await this._notifyAllSubscribers("SIGNED_IN",A.session)),this._returnResult({data:Object.assign({},A),error:T})}catch(A){if(te(A))return this._returnResult({data:{user:null,session:null},error:A});throw A}}async _exchangeCodeForSession(e,n){const a=n?.flowId!=null,s=a?fu(n?.flowId):Ot()?fu(a_(window.location.href)[Zi]):null;a&&!s&&this._debug("#_exchangeCodeForSession()","provided flowId is not a valid flow id",n?.flowId);const{verifier:l,flowId:u}=a&&!s?{verifier:null,flowId:null}:await nM(this.storage,this.storageKey,s),[d,h]=(l??"").split("/");try{if(!d&&this.flowType==="pkce")throw new Uz;const{data:p,error:g}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:d},xform:Sn});if(await xn(this.storage,this.storageKey,u),g)throw g;if(!p||!p.session||!p.user){const v=new ts;return this._returnResult({data:{user:null,session:null,redirectType:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers(h==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p.session)),this._returnResult({data:Object.assign(Object.assign({},p),{redirectType:h??null}),error:g})}catch(p){if(await xn(this.storage,this.storageKey,u),te(p))return this._returnResult({data:{user:null,session:null,redirectType:null},error:p});throw p}}async signInWithIdToken(e){try{const{options:n,provider:a,token:s,access_token:l,nonce:u}=e,d=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:a,id_token:s,access_token:l,nonce:u,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Sn}),{data:h,error:p}=d;if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!h||!h.session||!h.user){const g=new ts;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:p})}catch(n){if(te(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,a,s,l,u;let d=null;try{if("email"in e){const{email:h,options:p}=e;let g=null,v=null;this.flowType==="pkce"&&([g,v,d]=await this._getCodeChallengeAndMethod());const{error:y}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:h,data:(n=p?.data)!==null&&n!==void 0?n:{},create_user:(a=p?.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:g,code_challenge_method:v},redirectTo:this._maybeAppendFlowIdToRedirect(p?.emailRedirectTo,d)});return this._returnResult({data:{user:null,session:null},error:y})}if("phone"in e){const{phone:h,options:p}=e,{data:g,error:v}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:h,data:(s=p?.data)!==null&&s!==void 0?s:{},create_user:(l=p?.shouldCreateUser)!==null&&l!==void 0?l:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},channel:(u=p?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:g?.message_id},error:v})}throw new Zc("You must provide either an email or phone number.")}catch(h){if(await xn(this.storage,this.storageKey,d),te(h))return this._returnResult({data:{user:null,session:null},error:h});throw h}}async verifyOtp(e){var n,a;try{let s,l;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,l=(a=e.options)===null||a===void 0?void 0:a.captchaToken);const{data:u,error:d}=await ce(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:l}}),redirectTo:s,xform:Sn});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const h=u.session,p=u.user;return h?.access_token&&(await this._saveSession(h),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:p,session:h},error:null})}catch(s){if(te(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var n,a,s,l;let u=null;try{let d=null,h=null;this.flowType==="pkce"&&([d,h,u]=await this._getCodeChallengeAndMethod());const p=await ce(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:this._maybeAppendFlowIdToRedirect((n=e.options)===null||n===void 0?void 0:n.redirectTo,u)}),!((a=e?.options)===null||a===void 0)&&a.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:pM});return!((s=p.data)===null||s===void 0)&&s.url&&Ot()&&!(!((l=e.options)===null||l===void 0)&&l.skipBrowserRedirect)&&window.location.assign(p.data.url),this._returnResult(p)}catch(d){if(await xn(this.storage,this.storageKey,u),te(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:n},error:a}=e;if(a)throw a;if(!n)throw new Et;const{error:s}=await ce(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if(te(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){let n=null;try{const a=`${this.url}/resend`;if("email"in e){const{email:s,type:l,options:u}=e;let d=null,h=null;this.flowType==="pkce"&&([d,h,n]=await this._getCodeChallengeAndMethod());const{error:p}=await ce(this.fetch,"POST",a,{headers:this.headers,body:{email:s,type:l,gotrue_meta_security:{captcha_token:u?.captchaToken},code_challenge:d,code_challenge_method:h},redirectTo:this._maybeAppendFlowIdToRedirect(u?.emailRedirectTo,n)});return p&&await xn(this.storage,this.storageKey,n),this._returnResult({data:{user:null,session:null},error:p})}else if("phone"in e){const{phone:s,type:l,options:u}=e,{data:d,error:h}=await ce(this.fetch,"POST",a,{headers:this.headers,body:{phone:s,type:l,gotrue_meta_security:{captcha_token:u?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:d?.message_id},error:h})}throw new Zc("You must provide either an email or phone number and a type")}catch(a){if(await xn(this.storage,this.storageKey,n),te(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}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,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await a,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const a=n();for(this.pendingInLock.push((async()=>{try{await a}catch{}})()),await a;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await a}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 n=await this.__loadSession();return await e(n)}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 n=await jt(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
85id"),await this._removeSession())),!e)return{data:{session:null},error:null};const a=e.expires_at?e.expires_at*1e3-Date.now()<Yh:!1;if(this._debug("#__loadSession()",`session has${a?"":" not"} expired`,"expires_at",e.expires_at),!a){if(this.userStorage){const u=await jt(this.userStorage,this.storageKey+"-user");u?.user?e.user=u.user:e.user=Zh()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};e.user=dM(e.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:l}=await this._callRefreshToken(e.refresh_token);if(l){if(!!(e.expires_at&&e.expires_at*1e3>Date.now())){const d=await jt(this.storage,this.storageKey);if(d&&d.refresh_token===e.refresh_token)return this._returnResult({data:{session:e},error:null})}return this._returnResult({data:{session:null},error:l})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:fi}):await this._useSession(async n=>{var a,s,l;const{data:u,error:d}=n;if(d)throw d;return!(!((a=u.session)===null||a===void 0)&&a.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Et}:await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(l=(s=u.session)===null||s===void 0?void 0:s.access_token)!==null&&l!==void 0?l:void 0,xform:fi})})}catch(n){if(te(n))return Yc(n)&&await this._removeSession(),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n)):await this._updateUser(e,n)}async _updateUser(e,n={}){let a=null;try{return await this._useSession(async s=>{const{data:l,error:u}=s;if(u)throw u;if(!l.session)throw new Et;const d=l.session;let h=null,p=null;this.flowType==="pkce"&&e.email!=null&&([h,p,a]=await this._getCodeChallengeAndMethod());const{data:g,error:v}=await ce(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(n?.emailRedirectTo,a),body:Object.assign(Object.assign({},e),{code_challenge:h,code_challenge_method:p}),jwt:d.access_token,xform:fi});if(v)throw v;return d.user=g.user,await this._saveSession(d),await this._notifyAllSubscribers("USER_UPDATED",d),this._returnResult({data:{user:d.user},error:null})})}catch(s){if(await xn(this.storage,this.storageKey,a),te(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 Et;const n=Date.now()/1e3;let a=n,s=!0,l=null;const{payload:u}=Wc(e.access_token);if(u.exp&&(a=u.exp,s=a<=n),s){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:a-n,expires_at:a},await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)}return this._returnResult({data:{user:l.user,session:l},error:null})}catch(n){if(te(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}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 n=>{var a;if(!e){const{data:u,error:d}=n;
85if(d)throw d;e=(a=u.session)!==null&&a!==void 0?a:void 0}if(!e?.refresh_token)throw new Et;const{data:s,error:l}=await this._callRefreshToken(e.refresh_token);return l?this._returnResult({data:{user:null,session:null},error:l}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(te(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){var a;try{if(!Ot())throw new Jc("No browser detected.");if(e.error||e.error_description||e.error_code)throw new Jc(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Q0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Jc("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Q0("No code detected.");const{data:x,error:z}=await this._exchangeCodeForSession(e.code,{flowId:e[Zi]});if(z)throw z;const Y=new URL(window.location.href);return Y.searchParams.delete("code"),Y.searchParams.delete(Zi),window.history.replaceState(window.history.state,"",Y.toString()),{data:{session:x.session,redirectType:(a=x.redirectType)!==null&&a!==void 0?a:null},error:null}}const{provider_token:s,provider_refresh_token:l,access_token:u,refresh_token:d,expires_in:h,expires_at:p,token_type:g}=e;if(!u||!h||!d||!g)throw new Jc("No session defined in URL");const v=Math.round(Date.now()/1e3),y=parseInt(h);let _=v+y;p&&(_=parseInt(p));const E=_-v;E*1e3<=Ar&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${E}s, should have been closer to ${y}s`);const w=_-y;v-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,_,v):v-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,_,v);const{data:A,error:T}=await this._getUser(u);if(T)throw T;const C={provider_token:s,provider_refresh_token:l,access_token:u,expires_in:y,expires_at:_,refresh_token:d,token_type:g,user:A.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:C,redirectType:e.type},error:null})}catch(s){if(te(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_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){if(!e.code)return!1;const n=fu(e[Zi]);return n&&await jt(this.storage,bs(this.storageKey,n))?!0:!!await jt(this.storage,`${this.storageKey}-code-verifier`)}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 n=>{var a;const s=async()=>{await this._removeSession()},{data:l,error:u}=n;if(u&&!Yc(u))return this._returnResult({error:u});const d=(a=l.session)===null||a===void 0?void 0:a.access_token;if(d){const{error:h}=await this.admin.signOut(d,e);if(h&&!(W0(h)&&(h.status===404||h.status===401||h.status===403)||Yc(h)))return e!=="others"&&await s(),this._returnResult({error:h})}return e!=="others"&&await s(),this._returnResult({error:null})})}onAuthStateChange(e){const n=Fz(),a={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,a),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:a}}}async _emitInitialSession(e){return await this._useSession(async n=>{var a,s;try{const{data:{session:l},error:u}=n;if(u)throw u;await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",l)),this._debug("INITIAL_SESSION","callback id",e,"session",l)}catch(l){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",l),Yc(l)||Xc(l)||W0(l)&&(l.code==="refresh_token_not_found"||l.code==="refresh_token_already_used"||l.code==="session_expired")?console.warn(l):console.error(l)}})}async resetPasswordForEmail(e,n={}){let a=null,s=null,l=null;this.flowType==="pkce"&&([a,s,l]=await this._getCodeChallengeAndMethod(!0));try{return await ce(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:a,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(n.redirectTo,l)})}catch(u){if(await xn(this.storage,this.storageKey,l),te(u))return this._returnResult({data:null,error:u});throw u}}async getUserIdentities(){var e;try{const{data:n,error:a}=await this.getUser();if(a)throw a;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;let a=null;try{const{data:s,error:l}=await this._useSession(async u=>{var d,h,p,g,v;const{data:y,error:_}=u;if(_)throw _;const{url:E,flowId:w}=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(d=e.options)===null||d===void 0?void 0:d.redirectTo,scopes:(h=e.options)===null||h===void 0?void 0:h.scopes,queryParams:(p=e.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return a=w,await ce(this.fetch,"GET",E,{headers:this.headers,jwt:(v=(g=y.session)===null||g===void 0?void 0:g.access_token)!==null&&v!==void 0?v:void 0})});if(l)throw l;return Ot()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:e.provider,url:s?.url,flowId:a},error:null})}catch(s){if(te(s))return this._returnResult({data:{provider:e.provider,url:null,flowId:a},error:s});throw s}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var a;try{const{error:s,data:{session:l}}=n;if(s)throw s;const{options:u,provider:d,token:h,access_token:p,nonce:g}=e,v=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(a=l?.access_token)!==null&&a!==void 0?a:void 0,body:{provider:d,id_token:h,access_token:p,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:Sn}),{data:y,error:_}=v;return _?this._returnResult({data:{user:null,session:null},error:_}):!y||!y.session||!y.user?this._returnResult({data:{user:null,session:null},error:new ts}):(y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("USER_UPDATED",y.session)),this._returnResult({data:y,error:_}))}catch(s){if(await xn(this.storage,this.storageKey,null),te(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var a,s;const{data:l,error:u}=n;if(u)throw u;
85return await ce(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(a=l.session)===null||a===void 0?void 0:a.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const a=Date.now();return await Zz(async s=>(s>0&&await Yz(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await ce(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Sn})),(s,l)=>{const u=200*Math.pow(2,s);return l&&Xc(l)&&Date.now()+u-a<Ar})}catch(a){if(this._debug(n,"error",a),te(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const{url:a,flowId:s}=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",a),Ot()&&!n.skipBrowserRedirect&&window.location.assign(a),{data:{provider:e,url:a,flowId:s},error:null}}async _recoverAndRefresh(){var e,n;const a="#_recoverAndRefresh()";this._debug(a,"begin");try{const s=await jt(this.storage,this.storageKey);if(s&&this.userStorage){let u=await jt(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:s.user},await Tr(this.userStorage,this.storageKey+"-user",u)),s.user=(e=u?.user)!==null&&e!==void 0?e:Zh()}else if(s&&!s.user&&!s.user){const u=await jt(this.storage,this.storageKey+"-user");u&&u?.user?(s.user=u.user,await Yt(this.storage,this.storageKey+"-user"),await Tr(this.storage,this.storageKey,s)):s.user=Zh()}if(this._debug(a,"session from storage",s),!this._isValidSession(s)){this._debug(a,"session is not valid"),s!==null&&await this._removeSession();return}const l=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Yh;if(this._debug(a,`session has${l?"":" not"} expired with margin of ${Yh}s`),l){if(this.autoRefreshToken&&s.refresh_token){const{error:u}=await this._callRefreshToken(s.refresh_token);u&&(Pz(u)?this._debug(a,"refresh discarded by commit guard",u):this._debug(a,"refresh failed",u))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:d}=await this._getUser(s.access_token);!d&&u?.user?(s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(a,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(a,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(a,"error",s),Xc(s)?console.warn(s):console.error(s);return}finally{this._debug(a,"end")}}async _callRefreshToken(e){var n,a;if(!e)throw new Et;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===e&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new Xu;const l=await jt(this.storage,this.storageKey),{data:u,error:d}=await this._refreshAccessToken(e);if(d)throw d;if(!u.session)throw new Et;const h=await jt(this.storage,this.storageKey);if(l!==null&&(h===null||h.refresh_token!==l.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:h?"replaced":"cleared"});const y={data:null,error:new e_};return this.refreshingDeferred.resolve(y),y}const g=this._sessionRemovalEpoch;if(await this._saveSession(u.session),this._sessionRemovalEpoch!==g){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, und
85oing write"),await Yt(this.storage,this.storageKey),this.userStorage&&await Yt(this.userStorage,this.storageKey+"-user");const y={data:null,error:new e_};return this.refreshingDeferred.resolve(y),y}await this._notifyAllSubscribers("TOKEN_REFRESHED",u.session);const v={data:u.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(v),v}catch(l){if(this._debug(s,"error",l),te(l)){const u={data:null,error:l};if(!Xc(l)){const d=await jt(this.storage,this.storageKey);!!(d?.expires_at&&d.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid — preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:e,result:u,expiresAt:Date.now()+kz},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(u),u}throw(a=this.refreshingDeferred)===null||a===void 0||a.reject(l),l}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,a=!0){if(this._pendingInitNotifications!==null&&a){this._pendingInitNotifications.push({event:e,session:n,broadcast:a});return}const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${a}`);try{this.broadcastChannel&&a&&this.broadcastChannel.postMessage({event:e,session:n});const l=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(e,n)}catch(h){l.push(h)}});if(await Promise.all(u),l.length>0){for(let d=0;d<l.length;d+=1)console.error(l[d]);throw l[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),a=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!a&&n.user&&await Tr(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const l=s_(s);await Tr(this.storage,this.storageKey,l)}else{const s=s_(n);await Tr(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Yt(this.storage,this.storageKey),await rM(this.storage,this.storageKey),await Yt(this.storage,this.storageKey+"-user"),this.userStorage&&await Yt(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(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Ar);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}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 n=>{const{data:{session:a}}=n;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((a.expires_at*1e3-e)/Ar);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ar}ms, refresh threshold is ${xo} ticks`),s<=xo&&await this._callRefreshToken(a.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e instanceof yM)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 n=>{const{data:{session:a}}=n;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((a.expires_at*1e3-e)/Ar);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ar}ms, refresh threshold is ${xo} ticks`),s<=xo&&await this._callRefreshToken(a.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}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 n=`#_onVisibilityChanged(${e})`;if(this._debug(n,"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()=>
85{if(document.visibilityState!=="visible"){this._debug(n,"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(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,a){let s=a?.redirectTo,l=null,u=null,d=null;this.flowType==="pkce"&&([l,u,d]=await this._getCodeChallengeAndMethod(),s=this._maybeAppendFlowIdToRedirect(s,d));const h=[`provider=${encodeURIComponent(n)}`];if(s&&h.push(`redirect_to=${encodeURIComponent(s)}`),a?.scopes&&h.push(`scopes=${encodeURIComponent(a.scopes)}`),l!=null&&u!=null){const p=new URLSearchParams({code_challenge:`${encodeURIComponent(l)}`,code_challenge_method:`${encodeURIComponent(u)}`});h.push(p.toString())}if(a?.queryParams){const p=new URLSearchParams(a.queryParams);h.push(p.toString())}return a?.skipBrowserRedirect&&h.push(`skip_http_redirect=${a.skipBrowserRedirect}`),{url:`${e}?${h.join("&")}`,flowId:d}}_maybeAppendFlowIdToRedirect(e,n){return!e||!n||!this.experimental.appendPkceFlowIdToRedirects?e??void 0:iM(e,n)}async _getCodeChallengeAndMethod(e=!1){return aM(this.storage,this.storageKey,e,n=>this._debug("#_getCodeChallengeAndMethod()","evicted oldest pending PKCE verifier slot",n))}async _unenroll(e){try{return await this._useSession(async n=>{var a;const{data:s,error:l}=n;return l?this._returnResult({data:null,error:l}):await ce(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(a=s?.session)===null||a===void 0?void 0:a.access_token})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var a,s;const{data:l,error:u}=n;if(u)return this._returnResult({data:null,error:u});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:p}=await ce(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(a=l?.session)===null||a===void 0?void 0:a.access_token});return p?this._returnResult({data:null,error:p}):(e.factorType==="totp"&&h.type==="totp"&&(!((s=h?.totp)===null||s===void 0)&&s.qr_code)&&(h.totp.qr_code=`data:image/svg+xml;utf-8,${h.totp.qr_code}`),this._returnResult({data:h,error:null}))})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){const n=async()=>{try{return await this._useSession(async a=>{var s;const{data:l,error:u}=a;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?p_(e.webauthn.credential_response):m_(e.webauthn.credential_response)})}:{code:e.code}),{data:h,error:p}=await ce(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:d,headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token});return p?this._returnResult({data:null,error:p}):(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:p}))})}catch(a){if(te(a))return this._returnResult({data:null,error:a});throw a}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(e){const n=async()=>{try{return await this._useSession(async a=>{var s;const{data:l,error:u}=a;if(u)return this._returnResult({data:null,error:u});const d=await ce(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.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:f_(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:h_(h.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(a){if(te(a))return this._returnResult({data:null,error:a});throw a}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(e){const{data:n,error:a}=await this._challenge({factorId:e.factorId});return a?this._returnResult({data:null,error:a}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:a}=await this.getUser();if(a)return{data:null,error:a};const s={all:[],phone:[],totp:[],webauthn:[]};for(const l of(e=n?.factors)!==null&&e!==void 0?e:[])s.all.push(l),l.status==="verified"&&s[l.factor_type].push(l);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,a,s,l;if(e)try{const{payload:_}=Wc(e);let E=null;_.aal&&(E=_.aal);let w=E;const{data:{user:A},error:T}=await this.getUser(e);if(T)return this._returnResult({data:null,error:T});((a=(n=A?.factors)===null||n===void 0?void 0:n.filter(z=>z.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(w="aal2");const x=_.amr||[];return{data:{currentLevel:E,nextLevel:w,currentAuthenticationMethods:x},error:null}}catch(_){if(te(_))return this._returnResult({data:null,error:_});throw _}const{data:{session:u},error:d}
85=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:h}=Wc(u.access_token);let p=null;h.aal&&(p=h.aal);let g=p;((l=(s=u.user.factors)===null||s===void 0?void 0:s.filter(_=>_.status==="verified"))!==null&&l!==void 0?l:[]).length>0&&(g="aal2");const y=h.amr||[];return{data:{currentLevel:p,nextLevel:g,currentAuthenticationMethods:y},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:a},error:s}=n;return s?this._returnResult({data:null,error:s}):a?await ce(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:a.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new Et})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new Et});const u=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&Ot()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(a){if(te(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(e,n){try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new Et});const u=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&Ot()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(a){if(te(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;return a?this._returnResult({data:null,error:a}):n?await ce(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Et})})}catch(e){if(te(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:a},error:s}=n;return s?this._returnResult({data:null,error:s}):a?(await ce(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Et})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let a=n.keys.find(d=>d.kid===e);if(a)return a;const s=Date.now();if(a=this.jwks.keys.find(d=>d.kid===e),a&&this.jwks_cached_at+zz>s)return a;const{data:l,error:u}=await ce(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!l.keys||l.keys.length===0||(this.jwks=l,this.jwks_cached_at=s,a=l.keys.find(d=>d.kid===e),!a)?null:a}async getClaims(e,n={}){try{let a=e;if(!a){const{data:_,error:E}
85=await this.getSession();if(E||!_.session)return this._returnResult({data:null,error:E});a=_.session.access_token}const{header:s,payload:l,signature:u,raw:{header:d,payload:h}}=Wc(a);if(!n?.allowExpired)try{lM(l.exp)}catch(_){throw new Au(_ instanceof Error?_.message:"JWT validation failed")}const p=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!p){const{error:_}=await this.getUser(a);if(_)throw _;return{data:{claims:l,header:s,signature:u},error:null}}const g=cM(s.alg),v=await crypto.subtle.importKey("jwk",p,g,!0,["verify"]);if(!await crypto.subtle.verify(g,v,u,Vz(`${d}.${h}`)))throw new Au("Invalid JWT signature");return{data:{claims:l,header:s,signature:u},error:null}}catch(a){if(te(a))return this._returnResult({data:null,error:a});throw a}}async signInWithPasskey(e){var n,a,s;On(this.experimental);try{if(!Cu())return this._returnResult({data:null,error:new Dn("Browser does not support WebAuthn",null)});const{data:l,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(n=e?.options)===null||n===void 0?void 0:n.captchaToken}});if(u||!l)return this._returnResult({data:null,error:u});const d=h_(l.options),h=(s=(a=e?.options)===null||a===void 0?void 0:a.signal)!==null&&s!==void 0?s:Tp.createNewAbortSignal(),{data:p,error:g}=await gA({publicKey:d,signal:h});if(g||!p)return this._returnResult({data:null,error:g??new Dn("WebAuthn ceremony failed",null)});const v=m_(p);return this._verifyPasskeyAuthentication({challengeId:l.challenge_id,credential:v})}catch(l){if(te(l))return this._returnResult({data:null,error:l});throw l}}async registerPasskey(e){var n,a;On(this.experimental);try{if(!Cu())return this._returnResult({data:null,error:new Dn("Browser does not support WebAuthn",null)});const{data:s,error:l}=await this._startPasskeyRegistration();if(l||!s)return this._returnResult({data:null,error:l});const u=f_(s.options),d=(a=(n=e?.options)===null||n===void 0?void 0:n.signal)!==null&&a!==void 0?a:Tp.createNewAbortSignal(),{data:h,error:p}=await mA({publicKey:u,signal:d});if(p||!h)return this._returnResult({data:null,error:p??new Dn("WebAuthn ceremony failed",null)});const g=p_(h);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:g})}catch(s){if(te(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){On(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;if(a)return this._returnResult({data:null,error:a});if(!n)return this._returnResult({data:null,error:new Et});const{data:s,error:l}=await ce(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:s,error:null})})}catch(e){if(te(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){On(this.experimental);try{return await this._useSession(async n=>{const{data:{session:a},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new Et});const{data:l,error:u}=await ce(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:a.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:l,error:null})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(e){var n;On(this.experimental);try{const{data:a,error:s}=await ce(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=e?.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:a,error:null})}catch(a){if(te(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyAuthentication(e){On(this.experimental);try{const{data:n,error:a}=await ce(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:Sn});return a?this._returnResult({data:null,error:a}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){On(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:a}=e;if(a)return this._returnResult({data:null,error:a});if(!n)return this._returnResult({data:null,error:new Et});const{data:s,error:l}=await ce(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:u=>({data:u,error:null})});return l?this._returnResult({data:null,error:l}):this._returnResult({data:s,error:null})})}catch(e){if(te(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){On(this.experimental);try{return await this._useSession(async n=>{const{data:{session:a},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new Et});const{data:l,error:u}=await ce(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:a.access_token,body:{friendly_name:e.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:l,error:null})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(e){On(this.experimental);try{return await this._useSession(async n=>{const{data:{session:a},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new Et});const{error:l}
85=await ce(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:a.access_token,noResolveJson:!0});return l?this._returnResult({data:null,error:l}):this._returnResult({data:null,error:null})})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}}Wo.nextInstanceID={};const jM=Wo,DM="2.112.1";let ko="",ku;if(typeof Deno<"u"){var Xh;ko="deno",ku=(Xh=Deno.version)===null||Xh===void 0?void 0:Xh.deno}else if(typeof document<"u")ko="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")ko="react-native";else{var Wh;ko="node";const t=globalThis.process;ku=t==null||(Wh=t.version)===null||Wh===void 0?void 0:Wh.replace(/^v/,"")}const vA=[`runtime=${ko}`];ku&&vA.push(`runtime-version=${ku}`);const LM={"X-Client-Info":`supabase-js/${DM}; ${vA.join("; ")}`},zM={headers:LM},MM={schema:"public"},IM={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},UM={},PM={enabled:!1,respectSamplingDecision:!0};function BM(t){if(!t||typeof t!="string")return null;const e=t.split("-");if(e.length!==4)return null;const[n,a,s,l]=e;if(n.length!==2||a.length!==32||s.length!==16||l.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(n)||!u.test(a)||!u.test(s)||!u.test(l)||a==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:a,parentId:s,traceFlags:l,isSampled:(parseInt(l,16)&1)===1}}function $M(t,e){if(!t||!e||e.length===0)return!1;let n;if(t instanceof URL)n=t;else try{n=new URL(t)}catch{return!1}for(const a of e)try{if(typeof a=="string"){if(HM(n.hostname,a))return!0}else if(a instanceof RegExp){if(a.test(n.hostname))return!0}else if(typeof a=="function"&&a(n))return!0}catch{continue}return!1}function HM(t,e){if(e===t)return!0;if(e.startsWith("*.")){const n=e.slice(2);if(t.endsWith(n)&&(t===n||t.endsWith("."+n)))return!0}return!1}function qM(t){const e=[];try{const n=new URL(t);e.push(n.hostname)}catch{}return e.push("*.supabase.co","*.supabase.in"),e.push("localhost","127.0.0.1","[::1]"),e}function Qo(t){"@babel/helpers - typeof";return Qo=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},Qo(t)}function VM(t,e){if(Qo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(Qo(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function GM(t){var e=VM(t,"string");return Qo(e)=="symbol"?e:e+""}function FM(t,e,n){return(e=GM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?g_(Object(n),!0).forEach(function(a){FM(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}const KM=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),YM=()=>Headers,yA=t=>t.startsWith("sb_publishable_")||t.startsWith("sb_secret_"),ZM="sb_temp_",v_=new Set,JM=t=>{var e,n;if(!t.startsWith("sb_")||yA(t)||t.startsWith(ZM))return;const a=(e=(n=t.match(/^sb_[a-zA-Z0-9]+_/))===null||n===void 0?void 0:n[0])!==null&&e!==void 0?e:"unknown";v_.has(a)||(v_.add(a),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type."))},y_=(t,e,n,a,s,l)=>{const u=KM(a),d=YM(),h=s?.enabled===!0,p=s?.respectSamplingDecision!==!1,g=h?qM(e):null,v=!(l?.omitApiKeyAsBearer&&yA(t));return async(y,_)=>{const E=await n();let w=new d(_?.headers);if(w.has("apikey")||w.set("apikey",t),!w.has("Authorization")){const A=E??(v?t:null);A&&w.set("Authorization",`Bearer ${A}`)}if(g){const A=XM(y,g,p);A&&(A.traceparent&&!w.has("traceparent")&&w.set("traceparent",A.traceparent),A.tracestate&&!w.has("tracestate")&&w.set("tracestate",A.tracestate),A.baggage&&!w.has("baggage")&&w.set("baggage",A.baggage))}return u(y,lt(lt({},_),{},{headers:w}))}};let b_=!1;function XM(t,e,n){const a=XD();if(!a)return b_||(b_=!0,console.warn("@supabase/supabase-js: tracePropagation is enabled but the tracing runtime is not loaded, so trace headers will not be attached. Add `import '@supabase/supabase-js/tracing'` at your application entry point (requires the OpenTelemetry API package to be installed). The CDN/UMD build does not support trace propagation.")),null;if(!$M(typeof t=="string"||t instanceof URL?t:t.url,e))return null;const s=a();if(!s||!s.traceparent)return null;if(n){const l=BM(s.traceparent);if(l&&!l.isSampled)return null}return s}function __(t){return typeof t=="boolean"?{enabled:t}:t}function WM(t){return t.endsWith("/")?t:t+"/"}function QM(t,e){var n,a,s,l,u,d;const{db:h,auth:p,realtime:g,global:v}=t,{db:y,auth:_,realtime:E,global:w}=e,A=__(t.tracePropagation),T=__(e.tracePropagation),C={db:lt(lt({},y),h),auth:lt(lt({},_),p),realtime:lt(lt({},E),g),storage:{},global:lt(lt(lt({},w),v),{},{headers:lt(lt({},(n=w?.headers)!==null&&n!==void 0?n:{}),(a=v?.headers)!==null&&a!==void 0?a:{})}),tracePropagation:{enabled:(s=(l=A?.enabled)!==null&&l!==void 0?l:T?.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(u=(d=A?.respectSamplingDecision)!==null&&d!==void 0?d:T?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return t.accessToken?C.accessToken=t.accessToken:delete C.accessToken,C}function eI(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");
85if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(WM(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var tI=class extends jM{constructor(t){super(t)}},nI=class{constructor(t,e,n){var a,s;this.supabaseUrl=t,this.supabaseKey=e;const l=eI(t);if(!e)throw new Error("supabaseKey is required.");JM(e),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 u=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:MM,realtime:UM,auth:lt(lt({},IM),{},{storageKey:u}),global:zM,tracePropagation:PM},h=QM(n??{},d);if(this.settings=h,this.storageKey=(a=h.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(s=h.global.headers)!==null&&s!==void 0?s:{},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 p;this.auth=this._initSupabaseAuthClient((p=h.auth)!==null&&p!==void 0?p:{},this.headers,h.global.fetch)}this.fetch=y_(e,t,this._getSessionToken.bind(this),h.global.fetch,h.tracePropagation),this.functionsFetch=y_(e,t,this._getSessionToken.bind(this),h.global.fetch,h.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(lt({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 cL(new URL("rest/v1",l).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch,timeout:h.db.timeout,urlLengthLimit:h.db.urlLengthLimit,retry:h.db.retry}),this.storage=new xz(this.storageUrl.href,this.headers,this.fetch,n?.storage),h.accessToken||this._listenForAuthEvents()}get functions(){return new eL(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}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 _getSessionToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:a}=await t.auth.getSession();return(e=(n=a.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:null}async _getAccessToken(){var t=this,e;return(e=await t._getSessionToken())!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:a,userStorage:s,storageKey:l,flowType:u,lock:d,debug:h,throwOnError:p,experimental:g,lockAcquireTimeout:v,skipAutoInitialize:y},_,E){const w={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new tI({url:this.authUrl.href,headers:lt(lt({},w),_),storageKey:l,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:a,userStorage:s,flowType:u,lock:d,debug:h,throwOnError:p,experimental:g,fetch:E,lockAcquireTimeout:v,skipAutoInitialize:y,hasCustomAuthorizationHeader:Object.keys(this.headers).some(A=>A.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new WL(this.realtimeUrl.href,lt(lt({},t),{},{params:lt(lt({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN"||t==="INITIAL_SESSION")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const rI=(t,e,n)=>new nI(t,e,n);function iI(){if(typeof window<"u"||globalThis.Deno!==void 0)return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}iI()&&console.warn("⚠️  Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
85ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");function aI(){if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(A=>t===A||t.endsWith("."+A)),a="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+a+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+a+")(?=[.-])","i"))?.[1]:void 0,l=window.parent&&window.parent!==window;if(!s||!l)return localStorage;const u=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),d=u?/^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:""),p=h&&d.test(h)?[h]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],g="lovable-preview-auth:result",v=2e3,y=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),_=(A,T,C)=>new Promise(x=>{const z=y();let Y=!1,M;const N=se=>{Y||(Y=!0,clearTimeout(M),window.removeEventListener("message",B),x(se))},B=se=>{if(p.indexOf(se.origin)<0)return;const K=se.data;K&&K.type===g&&K.requestId===z&&N(K)};window.addEventListener("message",B);const X={type:A,requestId:z,projectId:s,key:T};C!==void 0&&(X.value=C);for(const se of p)window.parent.postMessage(X,se);M=setTimeout(()=>N(null),v)});let E=!0;const w=250;return{getItem:async A=>{let T=await _("lovable-preview-auth:get",A);return!T&&E&&(await new Promise(C=>setTimeout(C,w)),T=await _("lovable-preview-auth:get",A)),E=!1,T&&T.ok&&typeof T.value=="string"?T.value===""?(localStorage.removeItem(A),null):T.value:localStorage.getItem(A)},setItem:(A,T)=>(localStorage.setItem(A,T),_("lovable-preview-auth:set",A,T).then(C=>{C&&C.ok&&typeof C.value=="string"&&localStorage.getItem(A)===T&&(C.value===""?localStorage.removeItem(A):localStorage.setItem(A,C.value))})),removeItem:A=>(localStorage.removeItem(A),_("lovable-preview-auth:remove",A).then(()=>{}))}}function sI(){return rI("https://wbdtxyeukggujnmzspif.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndiZHR4eWV1a2dndWpubXpzcGlmIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgyMTIxMzUsImV4cCI6MjA5Mzc4ODEzNX0.T8tYP7ZVwEC_nspZtjwioBfIkSQPsK5pRdzOvoiNoew",{auth:{storage:aI(),persistSession:!0,autoRefreshToken:!0}})}let Qh;const oI=new Proxy({},{get(t,e,n){return Qh||(Qh=sI()),Reflect.get(Qh,e,n)}}),w_="ia_session_id",cm="ia_consent_v1",S_="ia_utm",lI=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];function cI(){if(typeof window>"u")return{};try{const t=new URL(window.location.href),e={};for(const a of lI){const s=t.searchParams.get(a);s&&s.trim()&&(e[a]=s.trim().slice(0,200))}if(Object.keys(e).length>0)return window.sessionStorage.setItem(S_,JSON.stringify(e)),e;const n=window.sessionStorage.getItem(S_);return n?JSON.parse(n):{}}catch{return{}}}const uI=new Set(["form_submit","form_error","resource_download_click","resource_download_auto"]);function dI(){if(typeof window>"u")return!1;const t=Vo();if(t)return t.analytics;try{return window.localStorage.getItem(cm)==="yes"}catch{return!1}}function h4(t){if(!(typeof window>"u"))try{window.localStorage.setItem(cm,t?"yes":"no")}catch{}}function p4(){if(typeof window>"u")return null;const t=Vo();if(t)return t.analytics;try{const e=window.localStorage.getItem(cm);return e==="yes"?!0:e==="no"?!1:null}catch{return null}}function fI(){if(typeof window>"u")return"ssr";try{let t=window.sessionStorage.getItem(w_);return t||(t=crypto.randomUUID(),window.sessionStorage.setItem(w_,t)),t}catch{return"no-storage"}}function E_(t,e={}){if(typeof window>"u"||!uI.has(t)&&!dI())return;const n=cI(),a={event_name:t,page_path:window.location.pathname,metadata:{...e,...n},session_id:fI()};oI.from("analytics_events").insert(a).then(({error:l})=>{l&&typeof console<"u"&&console.warn("[analytics] insert failed",l.message)})}function hI(){const[t,e]=R.useState(!1),[n,a]=R.useState(!1),[s,l]=R.useState(!1),[u,d]=R.useState(!1);if(R.useEffect(()=>{ZD(),Vo()||e(!0);const v=()=>{Vo()||e(!0)};return window.addEventListener("ia-consent-changed",v),()=>window.removeEventListener("ia-consent-changed",v)},[]),!t)return null;const h=()=>{cu({analytics:!0,marketing:!0}),E_("cta_click",{cta:"cookie_accept_all",surface:"cookie_banner"}),e(!1),a(!1)},p=()=>{cu({analytics:!1,marketing:!1}),e(!1),a(!1)},g=()=>{cu({analytics:s,marketing:u}
85),s&&E_("cta_click",{cta:"cookie_save_custom",surface:"cookie_banner",analytics:s,marketing:u}),e(!1),a(!1)};return k.jsxs(k.Fragment,{children:[k.jsx("div",{role:"dialog","aria-label":"Preferenze cookie","data-testid":"cookie-banner",className:"fixed inset-x-0 bottom-0 z-50 border-t border-border bg-background/95 backdrop-blur shadow-2xl",children:k.jsxs("div",{className:"container-editorial py-5 flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[k.jsxs("div",{className:"text-sm text-foreground max-w-2xl leading-relaxed",children:[k.jsx("strong",{className:"font-semibold",children:"Rispettiamo la tua privacy."})," Usiamo cookie tecnici (necessari) e, con il tuo consenso, cookie analytics per capire come migliorare il sito. Nessuna profilazione pubblicitaria di default."]}),k.jsxs("div",{className:"flex flex-wrap gap-2 shrink-0",children:[k.jsx(rs,{variant:"outline",size:"sm",onClick:()=>a(!0),"data-testid":"cookie-customize",children:"Personalizza"}),k.jsx(rs,{variant:"outline",size:"sm",onClick:p,"data-testid":"cookie-reject",children:"Solo necessari"}),k.jsx(rs,{size:"sm",onClick:h,"data-testid":"cookie-accept-all",children:"Accetta tutto"})]})]})}),k.jsx(KD,{open:n,onOpenChange:a,children:k.jsxs(HE,{className:"max-w-lg",children:[k.jsxs(qE,{children:[k.jsx(GE,{className:"font-serif text-2xl",children:"Preferenze cookie"}),k.jsx(FE,{children:"Scegli quali categorie attivare. Puoi cambiare la scelta in qualsiasi momento dal footer."})]}),k.jsxs("div",{className:"space-y-4 py-2",children:[k.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-lg border border-border p-4",children:[k.jsxs("div",{children:[k.jsx("div",{className:"font-medium text-foreground",children:"Necessari"}),k.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Indispensabili per il funzionamento del sito. Sempre attivi."})]}),k.jsx(su,{checked:!0,disabled:!0,"aria-label":"Necessari (sempre attivi)"})]}),k.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-lg border border-border p-4",children:[k.jsxs("div",{children:[k.jsx("div",{className:"font-medium text-foreground",children:"Analytics"}),k.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Eventi aggregati per capire come gli utenti navigano. Nessun dato personale condiviso con terze parti."})]}),k.jsx(su,{checked:s,onCheckedChange:l,"data-testid":"cookie-toggle-analytics","aria-label":"Analytics"})]}),k.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-lg border border-border p-4",children:[k.jsxs("div",{children:[k.jsx("div",{className:"font-medium text-foreground",children:"Marketing"}),k.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Per future integrazioni (remarketing, social pixels). Non attivo di default."})]}),k.jsx(su,{checked:u,onCheckedChange:d,"data-testid":"cookie-toggle-marketing","aria-label":"Marketing"})]})]}),k.jsxs(VE,{children:[k.jsx(rs,{variant:"ghost",onClick:()=>a(!1),children:"Annulla"}),k.jsx(rs,{onClick:g,"data-testid":"cookie-save-custom",children:"Salva preferenze"})]})]})})]})}const pI="1987933868568456";let A_=!1,T_=null;function mI(){if(!(A_||typeof window>"u")){if(A_=!0,!window.fbq){const t=function(...n){t.callMethod?t.callMethod(...n):t.queue.push(n)};t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],window.fbq=t,window._fbq=t;const e=document.createElement("script");e.async=!0,e.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(e)}window.fbq("init",pI)}}function bA(){return KE()?(mI(),!0):!1}function R_(t){!bA()||T_===t||(T_=t,window.fbq("track","PageView"))}function m4(t,e){bA()&&window.fbq("track","Lead",e,{eventID:t})}function C_(t){if(typeof document>"u")return;const e=document.cookie.match(new RegExp(`(?:^|; )${t}=([^;]*)`));return e?decodeURIComponent(e[1]):void 0}function g4(){return KE()?{fbp:C_("_fbp"),fbc:C_("_fbc")}:{}}function gI(){const t=DS({select:e=>e.location.pathname});return R.useEffect(()=>{R_(t)},[t]),R.useEffect(()=>{const e=()=>R_(window.location.pathname);return window.addEventListener("ia-consent-changed",e),()=>window.removeEventListener("ia-consent-changed",e)},[]),null}const ta="https://www.inafrica.group";function um(t){const e=t.startsWith("/")?t:`/${t}`;return`${ta}${e==="/"?"":e}`}function dm(t){if(/^https?:\/\//i.test(t))return t;const e=t.startsWith("/")?t:`/${t}`;return`${ta}${e}`}function fm(t){const e=um(t.path),n=[{title:t.title},{name:"description",content:t.description},{property:"og:title",content:t.title},{property:"og:description",content:t.description},{property:"og:url",content:e},{property:"og:type",content:t.type??"website"},{name:"twitter:title",content:t.title},{name:"twitter:description",content:t.description}];if(t.image){const a=dm(t.image);n.push({property:"og:image",content:a}),n.push({name:"twitter:image",content:a})}return n}function ul(t){return{rel:"canonical",href:um(t)}}function vI(){return k.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:k.jsxs("div",{className:"max-w-md text-center",children:[k.jsx("div",{className:"eyebrow",children:"404"}),k.jsx("h1",{className:"mt-4 font-serif text-5xl text-foreground",children:"Pagina non trovata"}),k.jsx("p",{className:"mt-3 text-muted-foreground",children:"La pagina che cerchi non esiste o è stata spostata."}),k.jsx("div",{className:"mt-8",children:k.jsx(tm,{to:"/",className:"inline-flex h-11 items-center justify-center rounded-full bg-primary px-6 text-sm font-medium text-primary-foreground hover:opacity-90 transition-opacity",children:"Torna alla home"})})]})})}const $e=SN({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"inAfrica: i partner giusti per la tua impresa."},{name:"description",content:"inAfrica: i partner giusti per la tua impresa."},{name:"author",content:"inAfrica"},{property:"og:type",content:"website"},{property:"og:locale",content:"it_IT"},{property:"og:site_name",content:"inAfrica"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"stylesheet",href:HN}
85,{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=Fraunces:opsz,[email protected],400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"inAfrica.club",url:ta,logo:`${ta}/og-logo.png`,description:"Punto di accesso operativo per PMI italiane che vogliono fare business in Africa con i partner locali giusti.",areaServed:["IT","KE","SN","CI","MA","CV","NG","ZA"],sameAs:[],contactPoint:[{"@type":"ContactPoint",email:"[email protected]",contactType:"customer service",availableLanguage:["it","en"]}]})}]}),shellComponent:yI,component:bI,notFoundComponent:vI});function yI({children:t}){return k.jsxs("html",{lang:"it",children:[k.jsx("head",{children:k.jsx(UN,{})}),k.jsxs("body",{children:[t,k.jsx(BN,{})]})]})}function bI(){const{pathname:t,hash:e}=DS({select:n=>({pathname:n.location.pathname,hash:n.location.hash})});return R.useEffect(()=>{if(!(typeof window>"u")){if(e){const n=document.getElementById(e.replace(/^#/,""));if(n){n.scrollIntoView({behavior:"smooth",block:"start"});return}}window.scrollTo(0,0)}},[t,e]),k.jsxs(k.Fragment,{children:[k.jsx(NS,{}),k.jsx(hI,{}),k.jsx(gI,{})]})}const _I="modulepreload",wI=function(t){return"/"+t},x_={},De=function(e,n,a){let s=Promise.resolve();if(n&&n.length>0){let h=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=h(n.map(p=>{if(p=wI(p),p in x_)return;x_[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":_I,g||(y.as="script"),y.crossOrigin="",y.href=p,d&&y.setAttribute("nonce",d),document.head.appendChild(y),g)return new Promise((_,E)=>{y.addEventListener("load",_),y.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return s.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return e().catch(l)})},SI="/__l5e/assets-v1/c7c69f36-b7cb-46d0-9689-ac390f6ab112/hero-delegation-milano.jpg",EI={url:SI},AI=EI.url,TI=[{q:"Cos'è l'Africa Check-Up?",a:"Una valutazione strutturata della tua azienda rispetto ai mercati africani: dove ha senso andare, con quale rischio, con quale sequenza. È il punto di ingresso a tutto il resto."},{q:"A chi si rivolge?",a:"Aziende con un'offerta B2B consolidata e un orizzonte operativo di almeno 12 mesi. Non lavoriamo con chi vuole risultati immediati."},{q:"Quanto costa?",a:"I nostri modelli hanno strutture differenti. Perimetro e investimento si definiscono dopo il Check-Up, sulla base dell'analisi. Non lavoriamo come procacciatori a percentuale."},{q:"Cosa succede dopo il Check-Up?",a:"Se c'è compatibilità, produciamo una proposta scritta con perimetro, output e investimento. In caso contrario, lo comunichiamo chiaramente."},{q:"Lavorate solo in alcuni paesi?",a:"Operiamo in tutto il continente africano."},{q:"Garantite risultati?",a:"Advisory e Club includono garanzie formali. I dettagli si definiscono nella proposta."}];function k_(t){const e=RI(t),n=R.forwardRef((a,s)=>{const{children:l,...u}=a,d=R.Children.toArray(l),h=d.find(xI);if(h){const p=h.props.children,g=d.map(v=>v===h?R.Children.count(p)>1?R.Children.only(null):R.isValidElement(p)?p.props.children:null:v);return k.jsx(e,{...u,ref:s,children:R.isValidElement(p)?R.cloneElement(p,void 0,g):null})}return k.jsx(e,{...u,ref:s,children:l})});return n.displayName=`${t}.Slot`,n}function RI(t){const e=R.forwardRef((n,a)=>{const{children:s,...l}=n;if(R.isValidElement(s)){const u=OI(s),d=kI(l,s.props);return s.type!==R.Fragment&&(d.ref=a?al(a,u):u),R.cloneElement(s,d)}return R.Children.count(s)>1?R.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var CI=Symbol("radix.slottable");function xI(t){return R.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===CI}function kI(t,e){const n={...e};for(const a in e){const s=t[a],l=e[a];/^on[A-Z]/.test(a)?s&&l?n[a]=(...d)=>{const h=l(...d);return s(...d),h}:s&&(n[a]=s):a==="style"?n[a]={...s,...l}
85:a==="className"&&(n[a]=[s,l].filter(Boolean).join(" "))}return{...t,...n}}function OI(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function NI(t){const e=t+"CollectionProvider",[n,a]=sl(e),[s,l]=n(e,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:A,children:T}=w,C=it.useRef(null),x=it.useRef(new Map).current;return k.jsx(s,{scope:A,itemMap:x,collectionRef:C,children:T})};u.displayName=e;const d=t+"CollectionSlot",h=k_(d),p=it.forwardRef((w,A)=>{const{scope:T,children:C}=w,x=l(d,T),z=ln(A,x.collectionRef);return k.jsx(h,{ref:z,children:C})});p.displayName=d;const g=t+"CollectionItemSlot",v="data-radix-collection-item",y=k_(g),_=it.forwardRef((w,A)=>{const{scope:T,children:C,...x}=w,z=it.useRef(null),Y=ln(A,z),M=l(g,T);return it.useEffect(()=>(M.itemMap.set(z,{ref:z,...x}),()=>{M.itemMap.delete(z)})),k.jsx(y,{[v]:"",ref:Y,children:C})});_.displayName=g;function E(w){const A=l(t+"CollectionConsumer",w);return it.useCallback(()=>{const C=A.collectionRef.current;if(!C)return[];const x=Array.from(C.querySelectorAll(`[${v}]`));return Array.from(A.itemMap.values()).sort((M,N)=>x.indexOf(M.ref.current)-x.indexOf(N.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:u,Slot:p,ItemSlot:_},E,a]}var Wu="Collapsible",[jI,_A]=sl(Wu),[DI,hm]=jI(Wu),wA=R.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:a,defaultOpen:s,disabled:l,onOpenChange:u,...d}=t,[h,p]=ol({prop:a,defaultProp:s??!1,onChange:u,caller:Wu});return k.jsx(DI,{scope:n,disabled:l,contentId:Do(),open:h,onOpenToggle:R.useCallback(()=>p(g=>!g),[p]),children:k.jsx(zt.div,{"data-state":mm(h),"data-disabled":l?"":void 0,...d,ref:e})})});wA.displayName=Wu;var SA="CollapsibleTrigger",EA=R.forwardRef((t,e)=>{const{__scopeCollapsible:n,...a}=t,s=hm(SA,n);return k.jsx(zt.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":mm(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...a,ref:e,onClick:Mn(t.onClick,s.onOpenToggle)})});EA.displayName=SA;var pm="CollapsibleContent",AA=R.forwardRef((t,e)=>{const{forceMount:n,...a}=t,s=hm(pm,t.__scopeCollapsible);return k.jsx(ll,{present:n||s.open,children:({present:l})=>k.jsx(LI,{...a,ref:e,present:l})})});AA.displayName=pm;var LI=R.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:a,children:s,...l}=t,u=hm(pm,n),[d,h]=R.useState(a),p=R.useRef(null),g=ln(e,p),v=R.useRef(0),y=v.current,_=R.useRef(0),E=_.current,w=u.open||d,A=R.useRef(w),T=R.useRef(void 0);return R.useEffect(()=>{const C=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(C)},[]),Qi(()=>{const C=p.current;if(C){T.current=T.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const x=C.getBoundingClientRect();v.current=x.height,_.current=x.width,A.current||(C.style.transitionDuration=T.current.transitionDuration,C.style.animationName=T.current.animationName),h(a)}},[u.open,a]),k.jsx(zt.div,{"data-state":mm(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!w,...l,ref:g,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...t.style},children:w&&s})});function mm(t){return t?"open":"closed"}var zI=wA,MI=EA,II=AA,UI=R.createContext(void 0);function PI(t){const e=R.useContext(UI);return t||e||"ltr"}var Pn="Accordion",BI=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[gm,$I,HI]=NI(Pn),[Qu]=sl(Pn,[HI,_A]),vm=_A(),TA=it.forwardRef((t,e)=>{const{type:n,...a}=t,s=a,l=a;return k.jsx(gm.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?k.jsx(FI,{...l,ref:e}):k.jsx(GI,{...s,ref:e})})});TA.displayName=Pn;var[RA,qI]=Qu(Pn),[CA,VI]=Qu(Pn,{collapsible:!1}),GI=it.forwardRef((t,e)=>{const{value:n,defaultValue:a,onValueChange:s=()=>{},collapsible:l=!1,...u}=t,[d,h]=ol({prop:n,defaultProp:a??"",onChange:s,caller:Pn});return k.jsx(RA,{scope:t.__scopeAccordion,value:it.useMemo(()=>d?[d]:[],[d]),onItemOpen:h,onItemClose:it.useCallback(()=>l&&h(""),[l,h]),children:k.jsx(CA,{scope:t.__scopeAccordion,collapsible:l,children:k.jsx(xA,{...u,ref:e})})})}),FI=it.forwardRef((t,e)=>{const{value:n,defaultValue:a,onValueChange:s=()=>{},...l}=t,[u,d]=ol({prop:n,defaultProp:a??[],onChange:s,caller:Pn}),h=it.useCallback(g=>d((v=[])=>[...v,g]),[d]),p=it.useCallback(g=>d((v=[])=>v.filter(y=>y!==g)),[d]);return k.jsx(RA,{scope:t.__scopeAccordion,value:u,onItemOpen:h,onItemClose:p,children:k.jsx(CA,{scope:t.__scopeAccordion,collapsible:!0,children:k.jsx(xA,{...l,ref:e})})})}),[KI,ed]=Qu(Pn),xA=it.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:a,dir:s,orientation:l="vertical",...u}=t,d=it.useRef(null),h=ln(d,e),p=$I(n),v=PI(s)==="ltr",y=Mn(t.onKeyDown,_=>
85{if(!BI.includes(_.key))return;const E=_.target,w=p().filter(B=>!B.ref.current?.disabled),A=w.findIndex(B=>B.ref.current===E),T=w.length;if(A===-1)return;_.preventDefault();let C=A;const x=0,z=T-1,Y=()=>{C=A+1,C>z&&(C=x)},M=()=>{C=A-1,C<x&&(C=z)};switch(_.key){case"Home":C=x;break;case"End":C=z;break;case"ArrowRight":l==="horizontal"&&(v?Y():M());break;case"ArrowDown":l==="vertical"&&Y();break;case"ArrowLeft":l==="horizontal"&&(v?M():Y());break;case"ArrowUp":l==="vertical"&&M();break}const N=C%T;w[N].ref.current?.focus()});return k.jsx(KI,{scope:n,disabled:a,direction:s,orientation:l,children:k.jsx(gm.Slot,{scope:n,children:k.jsx(zt.div,{...u,"data-orientation":l,ref:h,onKeyDown:a?void 0:y})})})}),Ou="AccordionItem",[YI,ym]=Qu(Ou),kA=it.forwardRef((t,e)=>{const{__scopeAccordion:n,value:a,...s}=t,l=ed(Ou,n),u=qI(Ou,n),d=vm(n),h=Do(),p=a&&u.value.includes(a)||!1,g=l.disabled||t.disabled;return k.jsx(YI,{scope:n,open:p,disabled:g,triggerId:h,children:k.jsx(zI,{"data-orientation":l.orientation,"data-state":zA(p),...d,...s,ref:e,disabled:g,open:p,onOpenChange:v=>{v?u.onItemOpen(a):u.onItemClose(a)}})})});kA.displayName=Ou;var OA="AccordionHeader",NA=it.forwardRef((t,e)=>{const{__scopeAccordion:n,...a}=t,s=ed(Pn,n),l=ym(OA,n);return k.jsx(zt.h3,{"data-orientation":s.orientation,"data-state":zA(l.open),"data-disabled":l.disabled?"":void 0,...a,ref:e})});NA.displayName=OA;var Rp="AccordionTrigger",jA=it.forwardRef((t,e)=>{const{__scopeAccordion:n,...a}=t,s=ed(Pn,n),l=ym(Rp,n),u=VI(Rp,n),d=vm(n);return k.jsx(gm.ItemSlot,{scope:n,children:k.jsx(MI,{"aria-disabled":l.open&&!u.collapsible||void 0,"data-orientation":s.orientation,id:l.triggerId,...d,...a,ref:e})})});jA.displayName=Rp;var DA="AccordionContent",LA=it.forwardRef((t,e)=>{const{__scopeAccordion:n,...a}=t,s=ed(Pn,n),l=ym(DA,n),u=vm(n);return k.jsx(II,{role:"region","aria-labelledby":l.triggerId,"data-orientation":s.orientation,...u,...a,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});LA.displayName=DA;function zA(t){return t?"open":"closed"}var ZI=TA,JI=kA,XI=NA,MA=jA,IA=LA;const WI=ZI,UA=R.forwardRef(({className:t,...e},n)=>k.jsx(JI,{ref:n,className:En("border-b",t),...e}));UA.displayName="AccordionItem";const PA=R.forwardRef(({className:t,children:e,...n},a)=>k.jsx(XI,{className:"flex",children:k.jsxs(MA,{ref:a,className:En("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",t),...n,children:[e,k.jsx(VD,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));PA.displayName=MA.displayName;const BA=R.forwardRef(({className:t,children:e,...n},a)=>k.jsx(IA,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:k.jsx("div",{className:En("pb-4 pt-0",t),children:e})}));BA.displayName=IA.displayName;function QI({children:t}){return k.jsxs("div",{className:"flex items-center gap-3",children:[k.jsx("span",{className:"h-px w-8 bg-accent"}),k.jsx("span",{className:"eyebrow",children:t})]})}const $A=[{q:"Cosa succede dopo che invio la candidatura?",a:"Una persona del team legge la richiesta entro 48 ore lavorative. Se il profilo è in linea, ti scriviamo per fissare una call di 30 minuti. Se non lo è, ricevi comunque una risposta motivata entro 5 giorni — nessun ghosting."},{q:"Cosa significa essere 'selezionabile' per voi?",a:"Società di capitali strutturate con un progetto Africa concreto: paesi identificati, decisione di investimento entro 12 mesi, team interno disponibile a seguire il dossier. Non serve essere già operativi: serve chiarezza."},{q:"Cosa significa 'da valutare'?",a:"Profilo interessante con qualche elemento da chiarire in chiamata: paesi ancora da definire, tempi incerti, struttura aziendale leggera ma con buone ragioni. In questi casi proponiamo il Club come primo passo e l'advisory quando le condizioni maturano."},{q:"Cosa significa 'profilo non compatibile'?",a:"Aziende che oggi non hanno le condizioni per un percorso di advisory serio: paesi indicati come 'tutti' o 'non so', nessuna decisione di investimento all'orizzonte, struttura non adeguata senza una giustificazione. Suggeriamo di partire dalle risorse gratuite o dal self-check."},{q:"Perché non lavorate con tutti?",a:"Perché il nostro tempo è il vincolo. Preferiamo seguire bene cinque aziende invece di seguirne male venti, e per questo filtriamo all'ingresso."},{q:"Quanto costa parlarvi?",a:"La prima chiamata è sempre gratuita. Quotiamo solo dopo aver capito il contesto e definito un perimetro concreto. Niente pacchetti standard: ogni 
85incarico è costruito sul singolo dossier."}],eU=$A;function v4(){return k.jsx("section",{className:"container-editorial py-20 md:py-28 border-t border-border",children:k.jsxs("div",{className:"max-w-3xl mx-auto",children:[k.jsxs("div",{className:"text-center",children:[k.jsx(QI,{children:"Prima di scrivere"}),k.jsx("h2",{className:"mt-4 font-serif text-3xl md:text-4xl leading-tight tracking-tight",children:"Domande che ci fanno spesso."}),k.jsx("p",{className:"mt-4 text-base text-muted-foreground leading-relaxed",children:"Se trovi qui la risposta, hai già risparmiato un'email."})]}),k.jsx("div",{className:"mt-12",children:k.jsx(WI,{type:"single",collapsible:!0,className:"w-full",children:eU.map((t,e)=>k.jsxs(UA,{value:`item-${e}`,children:[k.jsx(PA,{className:"text-left font-serif text-lg md:text-xl leading-snug hover:no-underline",children:t.q}),k.jsx(BA,{className:"text-base text-muted-foreground leading-relaxed pb-6",children:t.a})]},e))})})]})})}function HA(t){return{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))})}}const bm=()=>HA($A),tU=()=>De(()=>
85import("./index-BKrIztUz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])),O_=dm(AI),N_="inAfrica - Presenza operativa nel continente per le aziende italiane.",j_="inAfrica - Presenza operativa nel continente per le aziende italiane.",nU=Pe()({head:()=>({meta:[{title:N_},{name:"description",content:j_},{property:"og:title",content:N_},{property:"og:description",content:j_},{property:"og:url",content:ta},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{property:"og:image",content:O_},{name:"twitter:image",content:O_}],links:[ul("/")],scripts:[HA(TI)]}),component:je(tU,"component")});var Ge;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const l={};for(const u of s)l[u]=u;return l},t.getValidEnumValues=s=>{const l=t.objectKeys(s).filter(d=>typeof s[s[d]]!="number"),u={};for(const d of l)u[d]=s[d];return t.objectValues(u)},t.objectValues=s=>t.objectKeys(s).map(function(l){return s[l]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const l=[];for(const u in s)Object.prototype.hasOwnProperty.call(s,u)&&l.push(u);return l},t.find=(s,l)=>{for(const u of s)if(l(u))return u},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function a(s,l=" | "){return s.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}t.joinValues=a,t.jsonStringifyReplacer=(s,l)=>typeof l=="bigint"?l.toString():l})(Ge||(Ge={}));var D_;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(D_||(D_={}));const de=Ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ci=t=>{switch(typeof t){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(t)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(t)?de.array:t===null?de.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?de.promise:typeof Map<"u"&&t instanceof Map?de.map:typeof Set<"u"&&t instanceof Set?de.set:typeof Date<"u"&&t instanceof Date?de.date:de.object;default:return de.unknown}}
vendor: 16,313 bytes, line 85
85,W=Ge.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 jr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(l){return l.message},a={_errors:[]},s=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(s);else if(u.code==="invalid_return_type")s(u.returnTypeError);else if(u.code==="invalid_arguments")s(u.argumentsError);else if(u.path.length===0)a._errors.push(n(u));else{let d=a,h=0;for(;h<u.path.length;){const p=u.path[h];h===u.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(n(u))):d[p]=d[p]||{_errors:[]},d=d[p],h++}}};return s(this),a}static assert(e){if(!(e instanceof jr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},a=[];for(const s of this.issues)if(s.path.length>0){const l=s.path[0];n[l]=n[l]||[],n[l].push(e(s))}else a.push(e(s));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}jr.create=t=>new jr(t);const Cp=(t,e)=>{let n;switch(t.code){case W.invalid_type:t.received===de.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case W.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ge.jsonStringifyReplacer)}`;break;case W.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ge.joinValues(t.keys,", ")}`;break;case W.invalid_union:n="Invalid input";break;case W.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ge.joinValues(t.options)}`;break;case W.invalid_enum_value:n=`Invalid enum value. Expected ${Ge.joinValues(t.options)}, received '${t.received}'`;break;case W.invalid_arguments:n="Invalid function arguments";break;case W.invalid_return_type:n="Invalid function return type";break;case W.invalid_date:n="Invalid date";break;case W.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ge.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case W.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case W.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case W.custom:n="Invalid input";break;case W.invalid_intersection_types:n="Intersection results could not be merged";break;case W.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case W.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ge.assertNever(t)}return{message:n}};let rU=Cp;function iU(){return rU}const aU=t=>{const{data:e,path:n,errorMaps:a,issueData:s}=t,l=[...n,...s.path||[]],u={...s,path:l};if(s.message!==void 0)return{...s,path:l,message:s.message};let d="";const h=a.filter(p=>!!p).slice().reverse();for(const p of h)d=p(u,{data:e,defaultError:d}).message;return{...s,path:l,message:d}};function re(t,e){const n=iU(),a=aU({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Cp?void 0:Cp].filter(s=>!!s)});t.common.issues.push(a)}class cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const a=[];for(const s of n){if(s.status==="aborted")return Ae;s.status==="dirty"&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,n){const a=[];for(const s of n){const l=await s.key,u=await s.value;a.push({key:l,value:u})}return cn.mergeObjectSync(e,a)}static mergeObjectSync(e,n){const a={};for(const s of n){const{key:l,value:u}=s;if(l.status==="aborted"||u.status==="aborted")return Ae;l.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||s.alwaysSet)&&(a[l.value]=u.value)}return{status:e.value,value:a}}}const Ae=Object.freeze({status:"aborted"}),Oo=t=>({status:"dirty",value:t}),An=t=>({status:"valid",value:t}),L_=t=>t.status==="aborted",z_=t=>t.status==="dirty",_s=t=>t.status==="valid",Nu=t=>typeof Promise<"u"&&t instanceof Promise;var pe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(pe||(pe={}));class wi{constructor(e,n,a,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=a,this._key=s}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 M_=(t,e)=>{if(_s(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 n=new jr(t.common.issues);return this._error=n,this._error}}};function ke(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:a,description:s}=t;if(e&&(n||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(u,d)=>{const{message:h}=t;return u.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??a??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:h??n??d.defaultError}},description:s}}class He{get description(){return this._def.description}_getType(e){return ci(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:ci(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new cn,ctx:{common:e.parent.common,data:e.data,parsedType:ci(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Nu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const a=this.safeParse(e,n);if(a.success)return a.data;throw a.error}safeParse(e,n){const a={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ci(e)},s=this._parseSync({data:e,path:a.path,parent:a});return M_(a,s)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ci(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:n});return _s(a)?{value:a.value}:{issues:n.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(a=>_s(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(e,n){const a=await this.safeParseAsync(e,n);if(a.success)return a.data;throw a.error}async safeParseAsync(e,n){const a={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ci(e)},s=this._parse({data:e,path:a.path,parent:a}),l=await(Nu(s)?s:Promise.resolve(s));return M_(a,l)}refine(e,n){const a=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,l)=>{const u=e(s),d=()=>l.addIssue({code:W.custom,...a(s)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(e,n){return this._refinement((a,s)=>e(a)?!0:(s.addIssue(typeof n=="function"?n(a,s):n),!1))}_refinement(e){return new Ss({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:n=>this["~validate"](n)}}optional(){return vi.create(this,this._def)}nullable(){return Es.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wn.create(this)}promise(){return Mu.create(this,this._def)}or(e){return Lu.create([this,e],this._def)}and(e){return zu.create(this,e,this._def)}transform(e){return new Ss({...ke(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Op({...ke(this._def),innerType:this,defaultValue:n,typeName:Te.ZodDefault})}brand(){return new xU({typeName:Te.ZodBranded,type:this,...ke(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Np({...ke(this._def),innerType:this,catchValue:n,typeName:Te.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return _m.create(this,e)}readonly(){return jp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sU=/^c[^\s-]{8,}$/i,oU=/^[0-9a-z]+$/,lU=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cU=/^[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,uU=/^[a-z0-9_-]{21}$/i,dU=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,fU=/^[-+]?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)?)??$/,hU=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ep;const mU=/^(?:(?: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])$/,gU=/^(?:(?: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])$/,vU=/^(([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]))$/,yU=/^(([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])$/,bU=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_U=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qA="((\\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])))",wU=new RegExp(`^${qA}$`);function VA(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function SU(t){return new RegExp(`^${VA(t)}$`)}function EU(t){let e=`${qA}T${VA(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function AU(t,e){return!!((e==="v4"||!e)&&mU.test(t)||(e==="v6"||!e)&&vU.test(t))}function TU(t,e){if(!dU.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(a));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function RU(t,e){return!!((e==="v4"||!e)&&gU.test(t)||(e==="v6"||!e)&&yU.test(t))}class pi extends He{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==de.string){const l=this._getOrReturnCtx(e);return re(l,{code:W.invalid_type,expected:de.string,received:l.parsedType}),Ae}const a=new cn;let s;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(s=this._getOrReturnCtx(e,s),re(s,{code:W.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="max")e.data.length>l.value&&(s=this._getOrReturnCtx(e,s),re(s,{code:W.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="length"){const u=e.data.length>l.value,d=e.data.length<l.value;(u||d)&&(s=this._getOrReturnCtx(e,s),u?re(s,{code:W.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&re(s,{code:W.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),a.dirty())}else if(l.kind==="email")hU.test(e.data)||(s=this._getOrReturnCtx(e,s),re
vendor: 5,897 bytes, line 85
85(s,{validation:"email",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="emoji")ep||(ep=new RegExp(pU,"u")),ep.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"emoji",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="uuid")cU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"uuid",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="nanoid")uU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"nanoid",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid")sU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"cuid",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid2")oU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"cuid2",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="ulid")lU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"ulid",code:W.invalid_string,message:l.message}),a.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),re(s,{validation:"url",code:W.invalid_string,message:l.message}),a.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"regex",code:W.invalid_string,message:l.message}),a.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(s=this._getOrReturnCtx(e,s),re(s,{code:W.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),a.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)||(s=this._getOrReturnCtx(e,s),re(s,{code:W.invalid_string,validation:{startsWith:l.value},message:l.message}),a.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(s=this._getOrReturnCtx(e,s),re(s,{code:W.invalid_string,validation:{endsWith:l.value},message:l.message}),a.dirty()):l.kind==="datetime"?EU(l).test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{code:W.invalid_string,validation:"datetime",message:l.message}),a.dirty()):l.kind==="date"?wU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{code:W.invalid_string,validation:"date",message:l.message}),a.dirty()):l.kind==="time"?SU(l).test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{code:W.invalid_string,validation:"time",message:l.message}),a.dirty()):l.kind==="duration"?fU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"duration",code:W.invalid_string,message:l.message}),a.dirty()):l.kind==="ip"?AU(e.data,l.version)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"ip",code:W.invalid_string,message:l.message}),a.dirty()):l.kind==="jwt"?TU(e.data,l.alg)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"jwt",code:W.invalid_string,message:l.message}),a.dirty()):l.kind==="cidr"?RU(e.data,l.version)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"cidr",code:W.invalid_string,message:l.message}),a.dirty()):l.kind==="base64"?bU.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"base64",code:W.invalid_string,message:l.message}),a.dirty()):l.kind==="base64url"?_U.test(e.data)||(s=this._getOrReturnCtx(e,s),re(s,{validation:"base64url",code:W.invalid_string,message:l.message}),a.dirty()):Ge.assertNever(l);return{status:a.value,value:e.data}}_regex(e,n,a){return this.refinement(s=>e.test(s),{validation:n,code:W.invalid_string,...pe.errToObj(a)})}_addCheck(e){return new pi({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...pe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...pe.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...pe.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...pe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...pe.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,...pe.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,...pe.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...pe.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...pe.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...pe.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...pe.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...pe.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...pe.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...pe.errToObj(n)})}nonempty(e){return this.min(1,pe.errToObj(e))}trim(){return new pi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new pi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new pi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}
vendor: 23,203 bytes, line 85
85get 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 n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}pi.create=t=>new pi({checks:[],typeName:Te.ZodString,coerce:t?.coerce??!1,...ke(t)});function CU(t,e){const n=(t.toString().split(".")[1]||"").length,a=(e.toString().split(".")[1]||"").length,s=n>a?n:a,l=Number.parseInt(t.toFixed(s).replace(".","")),u=Number.parseInt(e.toFixed(s).replace(".",""));return l%u/10**s}class el extends He{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)!==de.number){const l=this._getOrReturnCtx(e);return re(l,{code:W.invalid_type,expected:de.number,received:l.parsedType}),Ae}let a;const s=new cn;for(const l of this._def.checks)l.kind==="int"?Ge.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),re(a,{code:W.invalid_type,expected:"integer",received:"float",message:l.message}),s.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(a=this._getOrReturnCtx(e,a),re(a,{code:W.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),s.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(a=this._getOrReturnCtx(e,a),re(a,{code:W.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),s.dirty()):l.kind==="multipleOf"?CU(e.data,l.value)!==0&&(a=this._getOrReturnCtx(e,a),re(a,{code:W.not_multiple_of,multipleOf:l.value,message:l.message}),s.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),re(a,{code:W.not_finite,message:l.message}),s.dirty()):Ge.assertNever(l);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,a,s){return new el({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:a,message:pe.toString(s)}]})}_addCheck(e){return new el({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ge.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(n===null||a.value>n)&&(n=a.value):a.kind==="max"&&(e===null||a.value<e)&&(e=a.value)}return Number.isFinite(n)&&Number.isFinite(e)}}el.create=t=>new el({checks:[],typeName:Te.ZodNumber,coerce:t?.coerce||!1,...ke(t)});class tl extends He{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)!==de.bigint)return this._getInvalidInput(e);let a;const s=new cn;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(a=this._getOrReturnCtx(e,a),re(a,{code:W.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),s.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(a=this._getOrReturnCtx(e,a),re(a,{code:W.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),s.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),re(a,{code:W.not_multiple_of,multipleOf:l.value,message:l.message}),s.dirty()):Ge.assertNever(l);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return re(n,{code:W.invalid_type,expected:de.bigint,received:n.parsedType}),Ae}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,a,s){return new tl({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:a,message:pe.toString(s)}]})}_addCheck(e){return new tl({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}tl.create=t=>new tl({checks:[],typeName:Te.ZodBigInt,coerce:t?.coerce??!1,...ke(t)});class I_ extends He{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==de.boolean){const a=this._getOrReturnCtx(e);return re(a,{code:W.invalid_type,expected:de.boolean,received:a.parsedType}),Ae}return An(e.data)}}I_.create=t=>new I_({typeName:Te.ZodBoolean,coerce:t?.coerce||!1,...ke(t)});class ju extends He{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==de.date){const l=this._getOrReturnCtx(e);return re(l,{code:W.invalid_type,expected:de.date,received:l.parsedType}),Ae}if(Number.isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return re(l,{code:W.invalid_date}),Ae}const a=new cn;let s;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(s=this._getOrReturnCtx(e,s),re(s,{code:W.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),a.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(s=this._getOrReturnCtx(e,s),re(s,{code:W.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),a.dirty()):Ge.assertNever(l);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ju({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:pe.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:pe.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}ju.create=t=>new ju({checks:[],coerce:t?.coerce||!1,typeName:Te.ZodDate,...ke(t)});class U_ extends He{_parse(e){if(this._getType(e)!==de.symbol){const a=this._getOrReturnCtx(e);return re(a,{code:W.invalid_type,expected:de.symbol,received:a.parsedType}),Ae}return An(e.data)}}U_.create=t=>new U_({typeName:Te.ZodSymbol,...ke(t)});class P_ extends He{_parse(e){if(this._getType(e)!==de.undefined){const a=this._getOrReturnCtx(e);return re(a,{code:W.invalid_type,expected:de.undefined,received:a.parsedType}),Ae}return An(e.data)}}P_.create=t=>new P_({typeName:Te.ZodUndefined,...ke(t)});class B_ extends He{_parse(e){if(this._getType(e)!==de.null){const a=this._getOrReturnCtx(e);return re(a,{code:W.invalid_type,expected:de.null,received:a.parsedType}),Ae}return An(e.data)}}B_.create=t=>new B_({typeName:Te.ZodNull,...ke(t)});class Du extends He{constructor(){super(...arguments),this._any=!0}_parse(e){return An(e.data)}}Du.create=t=>new Du({typeName:Te.ZodAny,...ke(t)});class $_ extends He{constructor(){super(...arguments),this._unknown=!0}_parse(e){return An(e.data)}}$_.create=t=>new $_({typeName:Te.ZodUnknown,...ke(t)});class Si extends He{_parse(e){const n=this._getOrReturnCtx(e);return re(n,{code:W.invalid_type,expected:de.never,received:n.parsedType}),Ae}}Si.create=t=>new Si({typeName:Te.ZodNever,...ke(t)});class H_ extends He{_parse(e){if(this._getType(e)!==de.undefined){const a=this._getOrReturnCtx(e);return re(a,{code:W.invalid_type,expected:de.void,received:a.parsedType}),Ae}return An(e.data)}}H_.create=t=>new H_({typeName:Te.ZodVoid,...ke(t)});class Wn extends He{_parse(e){const{ctx:n,status:a}=this._processInputParams(e),s=this._def;if(n.parsedType!==de.array)return re(n,{code:W.invalid_type,expected:de.array,received:n.parsedType}),Ae;if(s.exactLength!==null){const u=n.data.length>s.exactLength.value,d=n.data.length<s.exactLength.value;(u||d)&&(re(n,{code:u?W.too_big:W.too_small,minimum:d?s.exactLength.value:void 0,maximum:u?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(re(n,{code:W.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(re(n,{code:W.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),n.common.async)return Promise.all([...n.data].map((u,d)=>s.type._parseAsync(new wi(n,u,n.path,d)))).then(u=>cn.mergeArray(a,u));const l=[...n.data].map((u,d)=>s.type._parseSync(new wi(n,u,n.path,d)));return cn.mergeArray(a,l)}get element(){return this._def.type}min(e,n){return new Wn({...this._def,minLength:{value:e,message:pe.toString(n)}})}max(e,n){return new Wn({...this._def,maxLength:{value:e,message:pe.toString(n)}})}length(e,n){return new Wn({...this._def,exactLength:{value:e,message:pe.toString(n)}})}nonempty(e){return this.min(1,e)}}Wn.create=(t,e)=>new Wn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...ke(e)});function ss(t){if(t instanceof gt){const e={};for(const n in t.shape){const a=t.shape[n];e[n]=vi.create(ss(a))}return new gt({...t._def,shape:()=>e})}else return t instanceof Wn?new Wn({...t._def,type:ss(t.element)}):t instanceof vi?vi.create(ss(t.unwrap())):t instanceof Es?Es.create(ss(t.unwrap())):t instanceof na?na.create(t.items.map(e=>ss(e))):t}class gt extends He{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(),n=Ge.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==de.object){const p=this._getOrReturnCtx(e);return re(p,{code:W.invalid_type,expected:de.object,received:p.parsedType}),Ae}const{status:a,ctx:s}=this._processInputParams(e),{shape:l,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof Si&&this._def.unknownKeys==="strip"))for(const p in s.data)u.includes(p)||d.push(p);const h=[];for(const p of u){const g=l[p],v=s.data[p];h.push({key:{status:"valid",value:p},value:g._parse(new wi(s,v,s.path,p)),alwaysSet:p in s.data})}if(this._def.catchall instanceof Si){const p=this._def.unknownKeys;if(p==="passthrough")for(const g of d)h.push({key:{status:"valid",value:g},value:{status:"valid",value:s.data[g]}});else if(p==="strict")d.length>0&&(re(s,{code:W.unrecognized_keys,keys:d}),a.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const g of d){const v=s.data[g];h.push({key:{status:"valid",value:g},value:p._parse(new wi(s,v,s.path,g)),alwaysSet:g in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const p=[];for(const g of h){const v=await g.key,y=await g.value;p.push({key:v,value:y,alwaysSet:g.alwaysSet})}return p}).then(p=>cn.mergeObjectSync(a,p)):cn.mergeObjectSync(a,h)}get shape(){return this._def.shape()}strict(e){return pe.errToObj,new gt({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,a)=>{const s=this._def.errorMap?.(n,a).message??a.defaultError;return n.code==="unrecognized_keys"?{message:pe.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new gt({...this._def,unknownKeys:"strip"})}passthrough(){return new gt({...this._def,unknownKeys:"passthrough"})}extend(e){return new gt({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new gt({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Te.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new gt({...this._def,catchall:e})}pick(e){const n={};for(const a of Ge.objectKeys(e))e[a]&&this.shape[a]&&(n[a]=this.shape[a]);return new gt({...this._def,shape:()=>n})}omit(e){const n={};for(const a of Ge.objectKeys(this.shape))e[a]||(n[a]=this.shape[a]);return new gt({...this._def,shape:()=>n})}deepPartial(){return ss(this)}partial(e){const n={};for(const a of Ge.objectKeys(this.shape)){const s=this.shape[a];e&&!e[a]?n[a]=s:n[a]=s.optional()}return new gt({...this._def,shape:()=>n})}required(e){const n={};for(const a of Ge.objectKeys(this.shape))if(e&&!e[a])n[a]=this.shape[a];else{let l=this.shape[a];for(;l instanceof vi;)l=l._def.innerType;n[a]=l}return new gt({...this._def,shape:()=>n})}keyof(){return GA(Ge.objectKeys(this.shape))}}gt.create=(t,e)=>new gt({shape:()=>t,unknownKeys:"strip",catchall:Si.create(),typeName:Te.ZodObject,...ke(e)});gt.strictCreate=(t,e)=>new gt({shape:()=>t,unknownKeys:"strict",catchall:Si.create(),typeName:Te.ZodObject,...ke(e)});gt.lazycreate=(t,e)=>new gt({shape:t,unknownKeys:"strip",catchall:Si.create(),typeName:Te.ZodObject,...ke(e)});class Lu extends He{_parse(e){const{ctx:n}=this._processInputParams(e),a=this._def.options;function s(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 n.common.issues.push(...d.ctx.common.issues),d.result;const u=l.map(d=>new jr(d.ctx.common.issues));return re(n,{code:W.invalid_union,unionErrors:u}),Ae}if(n.common.async)return Promise.all(a.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(s);{let l;const u=[];for(const h of a){const p={...n,common:{...n.common,issues:[]},parent:null},g=h._parseSync({data:n.data,path:n.path,parent:p});if(g.status==="valid")return g;g.status==="dirty"&&!l&&(l={result:g,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const d=u.map(h=>new jr(h));return re(n,{code:W.invalid_union,unionErrors:d}),Ae}}get options(){return this._def.options}}Lu.create=(t,e)=>new Lu({options:t,typeName:Te.ZodUnion,...ke(e)});function xp(t,e){const n=ci(t),a=ci(e);if(t===e)return{valid:!0,data:t};if(n===de.object&&a===de.object){const s=Ge.objectKeys(e),l=Ge.objectKeys(t).filter(d=>s.indexOf(d)!==-1),u={...t,...e};for(const d of l){const h=xp(t[d],e[d]);if(!h.valid)return{valid:!1};u[d]=h.data}return{valid:!0,data:u}}else if(n===de.array&&a===de.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let l=0;l<t.length;l++){const u=t[l],d=e[l],h=xp(u,d);if(!h.valid)return{valid:!1};s.push(h.data)}return{valid:!0,data:s}}else return n===de.date&&a===de.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class zu extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e),s=(l,u)=>{if(L_(l)||L_(u))return Ae;const d=xp(l.value,u.value);return d.valid?((z_(l)||z_(u))&&n.dirty(),{status:n.value,value:d.data}):(re(a,{code:W.invalid_intersection_types}),Ae)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([l,u])=>s(l,u)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}zu.create=(t,e,n)=>new zu({left:t,right:e,typeName:Te.ZodIntersection,...ke(n)});class na extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==de.array)return re(a,{code:W.invalid_type,expected:de.array,received:a.parsedType}),Ae;if(a.data.length<this._def.items.length)return re(a,{code:W.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ae;!this._def.rest&&a.data.length>this._def.items.length&&(re(a,{code:W.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...a.data].map((u,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new wi(a,u,a.path,d)):null}).filter(u=>!!u);return a.common.async?Promise.all(l).then(u=>cn.mergeArray(n,u)):cn.mergeArray(n,l)}get items(){return this._def.items}rest(e){return new na({...this._def,rest:e})}}na.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new na({items:t,typeName:Te.ZodTuple,rest:null,...ke(e)})};class q_ extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==de.map)return re(a,{code:W.invalid_type,expected:de.map,received:a.parsedType}),Ae;const s=this._def.keyType,l=this._def.valueType,u=[...a.data.entries()].map(([d,h],p)=>({key:s._parse(new wi(a,d,a.path,[p,"key"])),value:l._parse(new wi(a,h,a.path,[p,"value"]))}));if(a.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of u){const p=await h.key,g=await h.value;if(p.status==="aborted"||g.status==="aborted")return Ae;(p.status==="dirty"||g.status==="dirty")&&n.dirty(),d.set(p.value,g.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const h of u){const p=h.key,g=h.value;if(p.status==="aborted"||g.status==="aborted")return Ae;(p.status==="dirty"||g.status==="dirty")&&n.dirty(),d.set(p.value,g.value)}return{status:n.value,value:d}}}}q_.create=(t,e,n)=>new q_({valueType:e,keyType:t,typeName:Te.ZodMap,...ke(n)});class nl extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==de.set)return re(a,{code:W.invalid_type,expected:de.set,received:a.parsedType}),Ae;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(re(a,{code:W.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(re(a,{code:W.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const l=this._def.valueType;function u(h){const p=new Set;for(const g of h){if(g.status==="aborted")return Ae;g.status==="dirty"&&n.dirty(),p.add(g.value)}return{status:n.value,value:p}}const d=[...a.data.values()].map((h,p)=>l._parse(new wi(a,h,a.path,p)));return a.common.async?Promise.all(d).then(h=>u(h)):u(d)}min(e,n){return new nl({...this._def,minSize:{value:e,message:pe.toString(n)}})}max(e,n){return new nl({...this._def,maxSize:{value:e,message:pe.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}nl.create=(t,e)=>new nl({valueType:t,minSize:null,maxSize:null,typeName:Te.ZodSet,...ke(e)});class V_ extends He{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}V_.create=(t,e)=>new V_({getter:t,typeName:Te.ZodLazy,...ke(e)});class kp extends He{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return re(n,{received:n.data,code:W.invalid_literal,expected:this._def.value}),Ae}return{status:"valid",value:e.data}}get value(){return this._def.value}}kp.create=(t,e)=>new kp({value:t,typeName:Te.ZodLiteral,...ke(e)});function GA(t,e){return new ws({values:t,typeName:Te.ZodEnum,...ke(e)})}class ws extends He{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),a=this._def.values;return re(n,{expected:Ge.joinValues(a),received:n.parsedType,code:W.invalid_type}),Ae}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),a=this._def.values;return re(n,{received:n.data,code:W.invalid_enum_value,options:a}),Ae}return An(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return ws.create(e,{...this._def,...n})}exclude(e,n=this._def){return ws.create(this.options.filter(a=>!e.includes(a)),{...this._def,...n})}}ws.create=GA;class G_ extends He{_parse(e){const n=Ge.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==de.string&&a.parsedType!==de.number){const s=Ge.objectValues(n);return re(a,{expected:Ge.joinValues(s),received:a.parsedType,code:W.invalid_type}),Ae}if(this._cache||(this._cache=new Set(Ge.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=Ge.objectValues(n);return re(a,{received:a.data,code:W.invalid_enum_value,options:s}),Ae}return An(e.data)}get enum(){return this._def.values}}G_.create=(t,e)=>new G_({values:t,typeName:Te.ZodNativeEnum,...ke(e)});class Mu extends He{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==de.promise&&n.common.async===!1)return re(n,{code:W.invali
vendor: 4,075 bytes, line 85
85d_type,expected:de.promise,received:n.parsedType}),Ae;const a=n.parsedType===de.promise?n.data:Promise.resolve(n.data);return An(a.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Mu.create=(t,e)=>new Mu({type:t,typeName:Te.ZodPromise,...ke(e)});class Ss extends He{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:n,ctx:a}=this._processInputParams(e),s=this._def.effect||null,l={addIssue:u=>{re(a,u),u.fatal?n.abort():n.dirty()},get path(){return a.path}};if(l.addIssue=l.addIssue.bind(l),s.type==="preprocess"){const u=s.transform(a.data,l);if(a.common.async)return Promise.resolve(u).then(async d=>{if(n.value==="aborted")return Ae;const h=await this._def.schema._parseAsync({data:d,path:a.path,parent:a});return h.status==="aborted"?Ae:h.status==="dirty"||n.value==="dirty"?Oo(h.value):h});{if(n.value==="aborted")return Ae;const d=this._def.schema._parseSync({data:u,path:a.path,parent:a});return d.status==="aborted"?Ae:d.status==="dirty"||n.value==="dirty"?Oo(d.value):d}}if(s.type==="refinement"){const u=d=>{const h=s.refinement(d,l);if(a.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(a.common.async===!1){const d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return d.status==="aborted"?Ae:(d.status==="dirty"&&n.dirty(),u(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(d=>d.status==="aborted"?Ae:(d.status==="dirty"&&n.dirty(),u(d.value).then(()=>({status:n.value,value:d.value}))))}if(s.type==="transform")if(a.common.async===!1){const u=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!_s(u))return Ae;const d=s.transform(u.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(u=>_s(u)?Promise.resolve(s.transform(u.value,l)).then(d=>({status:n.value,value:d})):Ae);Ge.assertNever(s)}}Ss.create=(t,e,n)=>new Ss({schema:t,typeName:Te.ZodEffects,effect:e,...ke(n)});Ss.createWithPreprocess=(t,e,n)=>new Ss({schema:e,effect:{type:"preprocess",transform:t},typeName:Te.ZodEffects,...ke(n)});class vi extends He{_parse(e){return this._getType(e)===de.undefined?An(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}vi.create=(t,e)=>new vi({innerType:t,typeName:Te.ZodOptional,...ke(e)});class Es extends He{_parse(e){return this._getType(e)===de.null?An(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Es.create=(t,e)=>new Es({innerType:t,typeName:Te.ZodNullable,...ke(e)});class Op extends He{_parse(e){const{ctx:n}=this._processInputParams(e);let a=n.data;return n.parsedType===de.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Op.create=(t,e)=>new Op({innerType:t,typeName:Te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ke(e)});class Np extends He{_parse(e){const{ctx:n}=this._processInputParams(e),a={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Nu(s)?s.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new jr(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new jr(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}Np.create=(t,e)=>new Np({innerType:t,typeName:Te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ke(e)});class F_ extends He{_parse(e){if(this._getType(e)!==de.nan){const a=this._getOrReturnCtx(e);
85return re(a,{code:W.invalid_type,expected:de.nan,received:a.parsedType}),Ae}return{status:"valid",value:e.data}}}F_.create=t=>new F_({typeName:Te.ZodNaN,...ke(t)});class xU extends He{_parse(e){const{ctx:n}=this._processInputParams(e),a=n.data;return this._def.type._parse({data:a,path:n.path,parent:n})}unwrap(){return this._def.type}}class _m extends He{_parse(e){const{status:n,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?Ae:l.status==="dirty"?(n.dirty(),Oo(l.value)):this._def.out._parseAsync({data:l.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Ae:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(e,n){return new _m({in:e,out:n,typeName:Te.ZodPipeline})}}class jp extends He{_parse(e){const n=this._def.innerType._parse(e),a=s=>(_s(s)&&(s.value=Object.freeze(s.value)),s);return Nu(n)?n.then(s=>a(s)):a(n)}unwrap(){return this._def.innerType}}jp.create=(t,e)=>new jp({innerType:t,typeName:Te.ZodReadonly,...ke(e)});function kU(t,e={},n){return Du.create()}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=pi.create;Du.create;Si.create;Wn.create;const dl=gt.create;Lu.create;zu.create;na.create;const y4=kp.create,td=ws.create;Mu.create;vi.create;Es.create;var fl=t=>{const e="input"in t?t.input:"input",n="output"in t?t.output:"output",a="schema"in t?t.schema._input
85:t._input,s="schema"in t?t.schema._output:t._output;return{types:{input:e==="output"?s:a,output:n==="input"?a:s},parse:l=>"schema"in t?t.schema.parse(l):t.parse(l)}},Kt=(t,e)=>kU().pipe(t.catch(e));const OU=()=>De(()=>import("./advisory-CuSbiOEJ.js"),__vite__mapDeps([18,2,3,1,4,5,19,6,20,21,22,23,24,25,26,16,27,13,28,29,12])),NU=Pe()({validateSearch:fl(dl({from:Kt(Fn(),"").optional(),recommended:Kt(td(["campus","club","advisory"]),"advisory").optional()})),head:()=>({meta:[{title:"Advisory — Affiancamento 1:1 sui mercati africani | inAfrica.club"},{name:"description",content:"Affianchiamo la tua azienda dall'analisi al campo: analisi paese, ricerca partner, verifiche di affidabilità, sviluppo commerciale. Un solo interlocutore, una rete locale già pronta."},{property:"og:title",content:"Advisory — inAfrica.club"},{property:"og:description",content:"Affianchiamo la tua azienda dall'analisi al campo. Un solo interlocutore, una rete locale già pronta."},{property:"og:url",content:"https://www.inafrica.group/advisory"}],links:[{rel:"canonical",href:"https://www.inafrica.group/advisory"}],scripts:[bm()]}),component:je(OU,"component")}),jU=["Strategia","Lessons learned","Eventi"],DU=()=>De(()=>import("./blog-DXxf-rR6.js"),__vite__mapDeps([30,1,2,3,4,5,19,6,21,29,16,13])),LU=dl({q:Kt(Fn(),"").default(""),tag:Kt(td(jU).optional(),void 0)}),zU=Pe()({validateSearch:fl(LU),head:()=>({meta:fm({title:"Blog — Africa operativa, voci dal campo | inAfrica.club",description:"Articoli, analisi e lessons learned sul fare business in Africa per PMI italiane. Niente teoria — solo metodo e fatti dal campo.",path:"/blog"}),links:[ul("/blog")]}),component:je(DU,"component")}),MU=()=>De(()=>import("./call-DtqBFgK5.js"),[]),IU=Pe()({beforeLoad:()=>{throw Iu({to:"/contatti",replace:!0})},component:je(MU,"component")}),UU=()=>De(()=>import("./campus-DtqBFgK5.js"),[]),PU=Pe()({beforeLoad:()=>{throw Iu({to:"/club",replace:!0})},component:je(UU,"component")}),K_="/assets/real-evento-milano-CRMyMLq0.jpg",BU=()=>De(()=>import("./chi-siamo-BPO-HoF6.js"),__vite__mapDeps([31,1,2,3,4,5,19,6,8,7,9,10,11,12,14,32,13,17])),$U=Pe()({head:()=>({meta:[{title:"Chi siamo — Martino Ghielmi · 29 paesi | inAfrica.club"},{name:"description",content:"Operatori, non consulenti. Martino Ghielmi e un team italo-africano presente in 29 paesi del continente. Mappa interattiva, principi e presenza sul campo."},{property:"og:title",content:"Chi siamo — inAfrica.club"},{property:"og:description",content:"Operatori, non consulenti. Martino Ghielmi e un team italo-africano sul campo in 29 paesi."},{property:"og:url",content:"https://www.inafrica.group/chi-siamo"},{property:"og:image",content:"https://www.inafrica.group"+K_},{name:"twitter:image",content:"https://www.inafrica.group"+K_}],links:[{rel:"canonical",href:"https://www.inafrica.group/chi-siamo"}]}),component:je(BU,"component")}),HU=()=>De(()=>import("./contatti-DIR4B8YY.js"),__vite__mapDeps([33,1,2,3,4,5,19,6,20,21,22,23,24,25,26,16,27,13,28,32,34,10])),qU=Pe()({head:()=>({meta:[{title:"Contatti — Scrivici per parlare del tuo progetto | inAfrica.club"},{name:"description",content:"Scrivici per parlare del tuo progetto in Africa. Ti rispondiamo entro 48h, in modo riservato e senza fuffa."},{property:"og:title",content:"Contatti — inAfrica.club"},{property:"og:description",content:"Un punto di contatto diretto per imprenditori italiani che guardano all'Africa."},{property:"og:url",content:"https://www.inafrica.group/contatti"}],links:[{rel:"canonical",href:"https://www.inafrica.group/contatti"}],scripts:[bm()]}),component:je(HU,"component")}),VU=()=>De(()=>import("./cookie-policy-B-rWHRHn.js"),__vite__mapDeps([35,1,2,3,4,5,19,6])),GU=Pe()({head:()=>({meta:[{title:"Cookie Policy — inAfrica.club"},{name:"description",content:"Tipologie di cookie e strumenti di tracciamento utilizzati su inAfrica.club, finalità e modalità di gestione del consenso."},{property:"og:title",content:"Cookie Policy — inAfrica.club"},{property:"og:description",content:"Cosa salviamo nel tuo browser, cosa è necessario, cosa richiede il tuo consenso."},{name:"robots",content:"index,follow"}]}),component:je(VU,"component")}),Dp="/assets/real-capeverde-group-DhlJ_7Kh.jpg",FU=()=>De(()=>import("./dicono-di-noi-DGZPZiAB.js"),__vite__mapDeps([36,1,2,3,4,5,19,6])),KU=Pe()({head:()=>({meta:[{title:"Dicono di noi — Testimonianze PMI italiane | inAfrica.club"},{name:"description",content:"Testimonianze di PMI italiane che operano in Africa con il metodo inAfrica.club."},{property:"og:title",content:"Dicono di noi — inAfrica.club"},{property:"og:description",content:"Le parole di chi ha già fatto questo percorso con noi."},{property:"og:url",content:"https://www.inafrica.group/dicono-di-noi"},{property:"og:image",content:"https://www.inafrica.group"+Dp},{name:"twitter:image",content:"https://www.inafrica.group"+Dp}],links:[{rel:"canonical",href:"https://www.inafrica.group/dicono-di-noi"}]}),component:je(FU,"component")}),YU=()=>De(()=>import("./grazie-BojKPENN.js"),__vite__mapDeps([37,1,2,3,4,5,38,39,16,34,13])),ZU=dl({name:Kt(Fn(),"").optional(),email:Kt(Fn(),"").optional(),company:Kt(Fn(),"").optional(),kind:Kt(Fn(),"").optional(),goal:Kt(Fn(),"").optional(),pdf:Kt(Fn(),"").optional(),resource:Kt(Fn(),"").optional()}),JU=Pe()({validateSearch:fl(ZU),head:()=>({meta:[{title:"Grazie — inAfrica.club"}
85,{name:"description",content:"Abbiamo ricevuto la tua richiesta. Ti scriviamo entro 48 ore lavorative."},{name:"robots",content:"noindex, nofollow"}]}),component:je(YU,"component")}),XU=()=>De(()=>import("./partner-CumDq4Pp.js"),__vite__mapDeps([40,1,2,3,4,5,19,6,13])),WU=Pe()({head:()=>({meta:[{title:"Partner — Ecosistema locale e relazioni autentiche | inAfrica.club"},{name:"description",content:"I partner che camminano con noi: istituzioni, imprese, consulenti e reti locali che rendono possibile l'accesso operativo all'Africa."},{property:"og:title",content:"Partner — inAfrica.club"},{property:"og:description",content:"Ecosistemi locali e relazioni autentiche. I partner che rendono possibile il nostro lavoro sul campo."},{property:"og:url",content:"https://www.inafrica.group/partner"}],links:[{rel:"canonical",href:"https://www.inafrica.group/partner"}]}),component:je(XU,"component")}),QU=()=>De(()=>import("./perche-esistiamo-CQ746P8R.js"),__vite__mapDeps([41,1,2,3,4,5])),eP=Pe()({head:()=>({meta:[{title:"Perché esistiamo — La tesi dietro inAfrica Club"},{name:"description",content:"Tra un'impresa italiana e un'opportunità africana non c'è una distanza geografica: c'è una distanza relazionale. La tesi dietro inAfrica Club."},{property:"og:title",content:"Perché esistiamo — inAfrica Club"},{property:"og:description",content:"L'Africa non è un mercato: è un sistema di relazioni. La fiducia è infrastruttura. La maggior parte delle aziende fallisce perché entra da sola."},{property:"og:url",content:"https://www.inafrica.group/perche-esistiamo"}],links:[{rel:"canonical",href:"https://www.inafrica.group/perche-esistiamo"}]}),component:je(QU,"component")}),tP=()=>De(()=>import("./privacy-YCQEQ-Hn.js"),__vite__mapDeps([42,1,2,3,4,5,19,6])),nP=Pe()({head:()=>({meta:[{title:"Informativa Privacy — inAfrica.club"},{name:"description",content:"Informativa privacy ai sensi del Regolamento UE 2016/679 (GDPR) per inAfrica.club, un progetto di ViA Group Srl a Socio Unico."},{property:"og:title",content:"Informativa Privacy — inAfrica.club"},{property:"og:description",content:"Quali dati raccogliamo, perché, per quanto tempo li conserviamo e come puoi esercitare i tuoi diritti."},{name:"robots",content:"index,follow"}]}),component:je(tP,"component")}),rP=()=>De(()=>import("./programmi-BRk3jcWc.js"),__vite__mapDeps([43,1,2,3,4,5,19,6,13])),iP=Pe()({head:()=>({meta:[{title:"Programmi — Club e Advisory | inAfrica.club"},{name:"description",content:"Due livelli per operare in Africa con metodo: Club per consolidare, Advisory per accelerare. Confronto chiaro."},{property:"og:title",content:"Programmi — Club e Advisory | inAfrica.club"},{property:"og:description",content:"Due porte d'ingresso, un solo ecosistema. Scegli in base a dove sei oggi."}]}),component:je(rP,"component")}),aP=()=>De(()=>import("./risorse-CqaQSUwA.js"),__vite__mapDeps([44,1,2,3,4,5,19,6,20,21,22,23,24,25,26,16,27,13,28,38,45,11,17])),sP=dl({program:Kt(td(["campus","club","advisory","summit"]).optional(),void 0)}),oP=Pe()({validateSearch:fl(sP),head:()=>({meta:fm({title:"Risorse gratuite — Guide e report operativi | inAfrica.club",description:"Guide, report e checklist scaricabili per imprenditori italiani che vogliono entrare in Africa con metodo.",path:"/risorse",image:Dp}),links:[ul("/risorse")]}),component:je(aP,"component")}),lP=()=>De(()=>import("./self-check-Cnr-uW51.js"),__vite__mapDeps([46,1,2,3,4,5,21,23,22,24,47,39,13,27])),cP=Pe()({head:()=>({meta:[{title:"Africa Check-Up — Il tuo potenziale di business in Africa"},{name:"description",content:"Cinque minuti per capire se — e come — la tua azienda può crescere in Africa. Rispondi alle domande: analizziamo il potenziale e ti contattiamo con una valutazione."},{property:"og:title",content:"Africa Check-Up — inAfrica.club"},{property:"og:description",content:"Cinque minuti per capire se — e come — la tua azienda può crescere in Africa."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:je(lP,"component")}),uP=()=>De(()=>import("./summit-vbEsj7Yu.js"),__vite__mapDeps([48,1,2,3,4,5,24,23,25])),dP=Pe()({head:()=>({meta:[{title:"inAfrica Summit 2026 · 26 novembre, Milano"},{name:"description",content:"Un giorno a Milano con chi in Africa ci lavora davvero. 26 novembre 2026, 09:30-17:30, PARCO 
85Center."},{name:"robots",content:"noindex,nofollow"},{property:"og:type",content:"website"},{property:"og:title",content:"inAfrica Summit 2026 · Milano, 26 novembre"},{property:"og:description",content:"Imprenditori italiani e africani allo stesso tavolo. 26 novembre 2026, PARCO Center, Milano."},{name:"twitter:card",content:"summary_large_image"}]}),component:je(uP,"component")}),fP=()=>De(()=>import("./termini-BR-GYXQX.js"),__vite__mapDeps([49,1,2,3,4,5,19,6])),hP=Pe()({head:()=>({meta:[{title:"Termini e condizioni d'uso — inAfrica.club"},{name:"description",content:"Termini e condizioni di utilizzo del sito inAfrica.club, natura informativa dei contenuti, proprietà intellettuale e limitazioni di responsabilità."},{property:"og:title",content:"Termini e condizioni — inAfrica.club"},{property:"og:description",content:"Le regole che disciplinano l'uso del sito inAfrica.club e l'accesso ai servizi associati."},{name:"robots",content:"index,follow"}]}),component:je(fP,"component")}),pP=()=>De(()=>import("./workshop-vendere-in-africa-T9JipoGt.js"),__vite__mapDeps([50,2,3,13,15,51,5,21,22,24,23,25])),Y_="Vendere in Africa senza farsi male — Workshop online gratuito",Z_="I 5 errori che costano caro alle PMI italiane in Africa, e come evitarli. 14 ottobre 2026, 11:00-12:30. Online e gratuito.",mP=Pe()({head:()=>({meta:[{title:Y_},{name:"description",content:Z_},{property:"og:title",content:Y_},{property:"og:description",content:Z_},{property:"og:type",content:"website"},{property:"og:url",content:`${ta}/workshop-vendere-in-africa`},{name:"twitter:card",content:"summary_large_image"}],links:[ul("/workshop-vendere-in-africa")]}),component:je(pP,"component")}),gP=()=>De(()=>import("./admin.account-CZhpUdUZ.js"),__vite__mapDeps([52,21,23,47,53,27])),vP=Pe()({head:()=>({meta:[{title:"Account · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(gP,"component")}),yP=()=>De(()=>import("./admin.campaigns-Bj86xIxl.js"),__vite__mapDeps([54,3,55,11,26,56,21,22,23,53,47,9,57,58])),bP=Pe()({head:()=>({meta:[{title:"Campagne outreach · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(yP,"component")}),_P=()=>De(()=>import("./admin.duplicates-B-E20rPA.js"),__vite__mapDeps([59,3,60,55,11,26,53,47,56,61,27,62,58])),wP=Pe()({head:()=>({meta:[{title:"Lead duplicati · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(_P,"component")}),SP=()=>De(()=>import("./admin.forgot-password-Bz_KM_93.js"),__vite__mapDeps([63,21,23,47,53])),EP=Pe()({head:()=>({meta:[{title:"Recupero password · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(SP,"component")}),AP=()=>De(()=>import("./admin.leads-DMVAz-KM.js"),__vite__mapDeps([64,3,21,56,55,11,26,29,38,65,24,5,4,47,58,9,51,22,28,57,13,34,45,16,17,66,23,53,61,62])),TP=Pe()({head:()=>({meta:[{title:"Lead CRM · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(AP,"component")}),RP=()=>De(()=>import("./admin.login-DVhnXJ9E.js"),__vite__mapDeps([67,21,23,47,53])),CP=Pe()({head:()=>({meta:[{title:"Admin · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(RP,"component")}),xP=()=>De(()=>import("./admin.quality-UZe-naDG.js"),__vite__mapDeps([68,3,60,55,11,26,53,47,65,56,27,62])),kP=Pe()({head:()=>({meta:[{title:"Qualità lead · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(xP,"component")}),OP=()=>De(()=>import("./admin.reports-D-D31MGo.js"),__vite__mapDeps([69,3,60,55,11,26,53,47,56,4,5,66,65,27,62,38])),NP=Pe()({head:()=>({meta:[{title:"Report conversioni · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(OP,"component")}),jP=()=>De(()=>import("./admin.reset-password-DPkVPKyA.js"),__vite__mapDeps([70,21,23,47,53])),DP=Pe()({head:()=>({meta:[{title:"Reset password · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(jP,"component")}),LP="/assets/network-handshake-DB4an_1o.jpg",zP="/assets/real-senegal-mission-BGHptGO_.jpg",MP="/assets/summit-stage-0GrdvdcX.jpg",FA=[{slug:"africa-non-e-un-mercato",title:"L'Africa non è un mercato. È un sistema di relazioni.",excerpt:"Perché la maggior parte delle PMI italiane sbaglia il primo passo prima ancora di partire — e cosa cambia quando si entra costruend
85o relazioni invece che inseguendo distributori.",date:"2026-03-12",author:"Team inAfrica.club",readingMinutes:5,tag:"Strategia",coverImage:LP,body:`La domanda più ricorrente che riceviamo dalle PMI italiane è sempre la stessa: "Conoscete un buon distributore in Kenya/Senegal/Costa d'Avorio?". È una domanda comprensibile ma sbagliata, perché parte da un presupposto che in Africa non funziona: che il mercato sia un'entità neutra dove serve solo trovare il giusto canale di vendita.
86
87## Il presupposto che porta fuori strada
88
89In Europa, "distributore" è una funzione: muove prodotto, gestisce ordini, fa attività commerciale. In Africa, "distributore" è una persona — con la sua rete di relazioni, il suo posizionamento politico locale, i suoi conflitti di interesse, la sua reputazione che vale più del suo magazzino.
90
91Cercare "il distributore" significa entrare in un sistema che non è organizzato per categorie commerciali, ma per affidabilità relazionale.
92
93## Cosa significa "sistema di relazioni"
94
95Il modo concreto in cui si entra in un mercato africano funziona così: una persona di cui ci si fida presenta un'altra persona, che diventa il primo nodo della rete. Questa persona non è necessariamente il futuro distributore: è il filtro che permette di non sprecare 18 mesi su contatti sbagliati.
96
97Da quel primo nodo si costruiscono — lentamente, con presenza fisica ripetuta — le relazioni operative. È un processo che non si comprime e non si delega.
98
99## Cosa cambia operativamente
100
101- Il primo investimento non è in marketing o fiere. È nelle persone giuste da incontrare.
102- La metrica del primo anno non è "quanti deal hai chiuso" ma "quante relazioni di fiducia hai costruito".
103- Il vantaggio competitivo non è il prodotto. È la qualità del nodo da cui sei entrato.
104
105## Perché diciamo no alla maggior parte
106
107Quando un'azienda ci scrive con la frase "stiamo cercando un partner africano", spesso le rispondiamo che non siamo i giusti. Non perché non possiamo aiutarla, ma perché non è ancora pronta a entrare in un sistema relazionale: sta ancora cercando una soluzione transazionale.
108
109Il momento in cui l'azienda capisce che non sta comprando un distributore ma costruendo una presenza è il momento in cui possiamo lavorare insieme.`},{slug:"perche-le-pmi-italiane-falliscono-in-africa",title:"Perché le PMI italiane falliscono in Africa (e non è il prodotto)",excerpt:"I tre errori strutturali che vediamo ripetersi negli ultimi cinque anni. Nessuno è di prodotto. Tutti sono di metodo di ingresso.",date:"2026-02-20",author:"Team inAfrica.club",readingMinutes:6,tag:"Lessons learned",coverImage:zP,body:`Lavorando con PMI italiane in Africa negli ultimi cinque anni abbiamo visto fallimenti molto diversi tra loro per settore, dimensione e paese. Ma quasi sempre i motivi del fallimento si riducono a tre, e nessuno dei tre riguarda il prodotto italiano — che è quasi sempre eccellente.
110
111## Errore 1: ingresso senza presenza
112
113L'azienda parte con la convinzione che si possa "presidiare" un paese africano da remoto, con una persona italiana che fa due viaggi all'anno. Risultato: dopo 12 mesi non ci sono né partner consolidati né visibilità sul mercato. Si torna a casa convinti che "in Africa non si fa business".
114
115La verità è che non è stata creata nessuna condizione perché il business si facesse. Senza presenza fisica continuativa — o senza un partner locale dotato di vera autorità — non esiste relazione, e senza relazione non esiste mercato.
116
117## Errore 2: confondere i due ruoli del partner locale
118
119Il partner locale può fare due cose molto diverse: aprire porte (relazioni) o eseguire deal (operatività). Quasi mai le fa entrambe bene.
120
121Le PMI italiane sbagliano regolarmente cercando un partner unico che faccia tutto, e finiscono per delegare l'esecuzione operativa a chi è bravo solo nelle relazioni — o viceversa. Il risultato è prevedibile: rapidi accordi non eseguiti, oppure operazioni efficienti su un mercato dove però non c'è nessuna porta che si apre.
122
123## Errore 3: orizzonte temporale italiano
124
125La metrica italiana media è: "se a 12 mesi non vedo ROI, smetto". In Africa questo equivale a uscire prima ancora che il mercato cominci a riconoscere la tua presenza.
126
127Il ciclo realistico è: anno 1 = costruzione di rete. Anno 2 = primi deal pilota. Anno 3 = scala operativa. Le aziende che entrano con questo orizzonte e lo difendono internamente arrivano. Quelle che cedono alla pressione del consiglio di amministrazione al mese 14 escono con la convinzione che "l'Africa non funziona".
128
129## Cosa funziona invece
130
131Le PMI italiane che oggi hanno presenza africana strutturata hanno tre cose in comune: una persona del team con un mandato vero e tempo dedicato, un partner locale che fa una sola cosa molto bene, e un orizzonte di 24-36 mesi protetto dal vertice.
132
133Nessuna delle tre cose è facile. Tutte e tre sono possibili. Ed è esattamente qui che proviamo a essere utili.`},{slug:"summit-2026-cosa-aspettarsi",title:"Summit inAfrica 2026: cosa significa farlo davvero",excerpt:"Non un evento di marketing. Un punto di riferimento annuale dove imprese italiane, partner africani, investitori e decisori si trovano per costruire — non per ascoltare.",date:"2026-01-15",author:"Team inAfrica.club",readingMinutes:4,tag:"Eventi",coverImage:MP,body:`Tra qualche mese organizzeremo la seconda edizione del Summit inAfrica. Non lo presentiamo come "il più grande evento sull'Africa in Italia" perché non è quello che vogliamo essere. Vogliamo essere il punto di riferimento operativo annuale per chi fa business in Africa sul serio.
134
135## La differenza con un convegno
136
137Un convegno serve a divulgare. Il Summit serve a far succedere cose. La differenza pratica:
138
139- Niente panel da 6 relatori dove nessuno dice qualcosa di concreto. Solo conversazioni a due o massimo tre voci, dove le persone hanno effettivamente firmato deal sul tema di cui parlano.
140- Niente "networking break". Tavoli di lavoro chiusi, con composizione decisa in anticipo, su problemi specifici di paesi specifici.
141- Niente sponsor che parlano dal palco. Gli sponsor finanziano la qualità organizzativa, non comprano il microfono.
142
143## Chi entra
144
145L'accesso al Summit è su selezione. Non per snobismo, ma perché un Summit dove chiunque può iscriversi diventa un convegno. Ammettiamo:
146
147- PMI italiane con un progetto Africa già in valutazione seria o in esecuzione.
148- Partner locali africani con track record verificabile.
149- Investitori (corporate VC, family office, fondi PE) attivi sul continente.
150- Istituzioni che fanno la differenza operativa, non quelle che fanno solo cornice.
151
152## L'output atteso
153
154Al termine del Summit, ogni partecipante porta a casa due o tre conversazioni concrete da portare avanti nei sei mesi successivi. Non collezioni di biglietti da visita, non LinkedIn connections accumulate. Conversazioni con persone di cui sa già che si fida.
155
156È molto poco se si misura il Summit come "evento". È moltissimo se lo si misura come operazione di sistema.
157
158## Quando e dove
159
160Comunicheremo data e luogo nei prossimi mesi. Per essere tra i primi a saperlo, lascia il tuo contatto nella sezione [Summit](/summit) o iscriviti alle nostre risorse.`}];function IP(t){return FA.find(e=>e.slug===t)}function b4(){return[...FA].sort((t,e)=>t.date<e.date?1:-1)}const UP=()=>De(()=>import("./blog._slug-DazTtmj_.js"),__vite__mapDeps([71,1,2,3,4,5,27,16,13])),PP=()=>De(()=>import("./blog._slug-BLNaybvE.js"),__vite__mapDeps([72,1,2,3,4,5,27])),BP=Pe()({loader:({params:t})=>{const e=IP(t.slug);
160if(!e)throw Q_();return{post:e}},head:({loaderData:t})=>{if(!t)return{meta:[{title:"Articolo — inAfrica.club"}]};const{post:e}=t;return{meta:[...fm({title:`${e.title} — inAfrica.club`,description:e.excerpt,path:`/blog/${e.slug}`,type:"article",image:e.coverImage}),{property:"article:published_time",content:e.date},{property:"article:author",content:e.author},{property:"article:section",content:e.tag}],links:[ul(`/blog/${e.slug}`)],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:e.title,description:e.excerpt,datePublished:e.date,image:dm(e.coverImage),author:{"@type":"Organization",name:e.author},publisher:{"@type":"Organization",name:"inAfrica.club",url:ta},mainEntityOfPage:{"@type":"WebPage","@id":um(`/blog/${e.slug}`)}})}]}},notFoundComponent:je(PP,"notFoundComponent"),component:je(UP,"component")}),$P=()=>De(()=>import("./club.index-BiQyOTNZ.js"),__vite__mapDeps([73,1,2,3,4,5,19,6,20,21,22,23,24,25,26,16,27,13,28,14])),HP=Pe()({validateSearch:fl(dl({from:Kt(Fn(),"").optional(),recommended:Kt(td(["campus","club","advisory"]),"club").optional()})),head:()=>({meta:[{title:"Club — Relazioni e supporto operativo | inAfrica.club"},{name:"description",content:"Una combinazione unica di relazioni di alto livello, intelligence di mercato e supporto operativo. Adesione 12 mesi su selezione."},{property:"og:title",content:"inAfrica Club"},{property:"og:description",content:"Onboarding strategico, incontri esclusivi, piattaforma riservata. Per chi opera davvero in Africa."},{property:"og:url",content:"https://www.inafrica.group/club"}],links:[{rel:"canonical",href:"https://www.inafrica.group/club"}],scripts:[bm()]}),component:je($P,"component")}),qP=()=>De(()=>import("./club.anteprima-CiVMpb5j.js"),__vite__mapDeps([74,1,2,3,4,5,19,6,14,10,7])),VP=Pe()({head:()=>({meta:[{title:"Dentro il Club — da isolato a connesso | inAfrica"},{name:"description",content:"Cosa succede quando un'impresa entra nel Club: elenco riservato dei membri, tavoli regionali e settoriali, archivio delle sessioni. Da isolato a connesso, da idee confuse a ipotesi strategiche chiare."},{property:"og:title",content:"Dentro il Club — Anteprima"},{property:"og:description",content:"Il Club non è una piattaforma. È il luogo in cui un'impresa smette di muoversi da sola."}]}),component:je(qP,"component")}),GP=()=>De(()=>import("./storie.index-DezsGIvz.js"),__vite__mapDeps([75,1,2,3,4,5])),FP=Pe()({head:()=>({meta:[{title:"Storie reali — Percorsi documentati | inAfrica Club"},{name:"description",content:"Storie reali di aziende italiane dentro l'ecosistema inAfrica. Niente case study, niente metriche inventate: solo percorsi documentati e approvati dai protagonisti."},{property:"og:title",content:"Storie reali — inAfrica Club"},{property:"og:description",content:"Percorsi reali, approvati dai protagonisti. Non raccontiamo cosa promettiamo, raccontiamo cosa è successo."},{property:"og:url",content:"https://www.inafrica.group/storie"}],links:[{rel:"canonical",href:"https://www.inafrica.group/storie"}]}),component:je(GP,"component")}),KP="/__l5e/assets-v1/87cd6752-e235-469a-a52a-08cece51aefc/sodimax-20-years.jpg",YP={url:KP},ZP="/__l5e/assets-v1/af674acb-2fb1-4e22-9021-3713a860ba43/sodimax-cargo.webp",JP={url:ZP},XP="/__l5e/assets-v1/183579a0-91ea-4856-85a9-f5d71a485f88/massimo-dal-pozzo.jpg",WP={url:XP},QP="/__l5e/assets-v1/82795583-8c1a-4385-b333-7ee3e8c36f63/offgridsun-group.jpg",e3={url:QP},t3="/__l5e/assets-v1/6d6a1f43-c1f9-43b9-892f-4867fa5d2b20/offgridsun-field.jpg",n3={url:t3},r3="/__l5e/assets-v1/58fc1216-07a1-4a17-8b71-e22cb7fcd53d/offgridsun-partners.jpg",i3={url:r3},a3="/__l5e/assets-v1/64fed6ad-89fd-4d9c-b60c-7ae7a7a62c2e/offgridsun-workshop.jpg",s3={url:a3},o3="/__l5e/assets-v1/5155237d-e92c-4141-97b5-cac2f3764240/nicola-baggio.jpg",l3={url:o3},_4={esplorazione:"Esplorazione","primi-contatti":"Primi contatti",operativi:"Operativi",consolidati:"Consolidati"},c3=[{slug:"offgridsun",title:"OffGridSun",subtitle:"Dal primo contatto a una presenza operativa in Africa orientale.",standfirst:"Azienda italiana specializzata in soluzioni solari off-grid per i mercati emergenti.",sector:"Solare off-grid",countries:["Tanzania","Etiopia","Liberia"],updatedAt:"2026-06-22",coverImage:e3.url,coverAlt:"Il team OffGridSun con la comunità locale in Tanzania",protagonist:{name:"Nicola Baggio",role:"CEO",company:"OffGridSun",photo:l3.url,photoAlt:"Ritratto di Nicola Baggio, CEO di OffGridSun"},startingPoint:"Prima dell'ingresso nell'ecosistema, la presenza africana di OffGridSun era limitata a una rete di distributori e installatori.",changes:["Apertura di una società in Tanzania.","Joint Venture in Etiopia per il recupero dei pannelli.","Accesso a nuovi progetti in Liberia.","Maggior coinvolgimento delle diaspore africane."],changesImage:n3.url,changesImageAlt:"Attività sul campo di OffGridSun: presentazione del Jiko Makini alla comunità",documentaryImages:[{image:i3.url,alt:"Nicola Baggio con partner locali in Tanzania durante una presentazione del Jiko Makini alla comunità",caption:"Tanzania — incontro con i partner locali."},{image:s3.url,alt:"Officina di produzione locale con operai e unità Jiko Makini pronte alla distribuzione",caption:"Produzione e formazione nell'officina locale."}],pullQuote:{body:"Abbiamo avuto grandi delusioni con organizzazioni pubbliche e diversi consulenti, ma con inAfrica è stato radicalmente diverso.",attribution:"Nicola Baggio · CEO, OffGridSun"},consentNote:"Storia pubblicata con il consenso del protagonista. Contenuti limitati ai fatti approvati."},{slug:"sodimax",title:"SODIMAX",subtitle:"Da operatore di nicchia a una presenza più forte tra Italia e Africa.",standfirst:"Spedizioniere con sedi a Genova, Dakar e Abidjan.",sector:"Spedizioni e logistica",countries:["Italia","Senegal","Costa d'Avorio","Liberia","Ghana","Rwanda"],updatedAt:"2026-06-22",coverImage:JP.url,coverAlt:"Spedizione SODI
160MAX di un carico industriale pesante in porto: trasformatore Ansaldo Energia su semirimorchio",protagonist:{name:"Massimo Dal Pozzo",role:"CEO",company:"SODIMAX",photo:WP.url,photoAlt:"Ritratto di Massimo Dal Pozzo, CEO di SODIMAX"},startingPoint:"Operatore di nicchia con limitata visibilità sul mercato italiano e forte incertezza nel periodo post-pandemico.",changes:["Consolidamento dell'offerta commerciale tramite acquisizioni.","Crescita significativa del business rispetto al 2020.","Apertura in Liberia.","Apertura in Ghana.","Apertura in Rwanda."],documentaryImages:[{image:YP.url,alt:"Celebrazione dei 20 anni di SODIMAX con i partner internazionali",caption:"I 20 anni di SODIMAX, con i partner internazionali."}],pullQuote:{body:"Lavoro da trent'anni con l'Africa ma grazie a inAfrica Club sono entrato in contatto con una miriade di aziende e professionisti di grande valore che non conoscevo.",attribution:"Massimo Dal Pozzo · CEO, SODIMAX"},consentNote:"Storia pubblicata con il consenso del protagonista. Contenuti limitati ai fatti approvati."}],w4="Molti risultati non nascono da una singola consulenza. Nascono da relazioni, introduzioni e confronto continuo tra persone che operano sul territorio.";function u3(t){return c3.find(e=>e.slug===t)}const d3=()=>De(()=>import("./storie._slug-BbB0-BU0.js"),__vite__mapDeps([76,1,2,3,4,5])),f3=()=>De(()=>import("./storie._slug-BxzouysJ.js"),__vite__mapDeps([77,1,2,3,4,5])),h3=()=>De(()=>import("./storie._slug-BWzlQ54j.js"),__vite__mapDeps([78,1,2,3,4,5])),p3=Pe()({loader:({params:t})=>{const e=u3(t.slug);if(!e)throw Q_();return{story:e}},head:({loaderData:t})=>{const e=t?.story;return e?{meta:[{title:`${e.title} — Storie | inAfrica Club`},{name:"description",content:e.standfirst},{property:"og:title",content:`${e.title} — inAfrica Club`},{property:"og:description",content:e.standfirst},...e.coverImage?[{property:"og:image",content:e.coverImage},{name:"twitter:image",content:e.coverImage}]:[]]}:{meta:[{title:"Storia non trovata — inAfrica Club"},{name:"robots",content:"noindex"}]}},notFoundComponent:je(h3,"notFoundComponent"),errorComponent:je(f3,"errorComponent"),component:je(d3,"component")}),m3=()=>De(()=>import("./admin.reports.funnel-CtmERG19.js"),__vite__mapDeps([79,3,60,55,11,26,53,47,4,5,66,27,62,38])),g3=Pe()({head:()=>({meta:[{title:"Funnel risorse · inAfrica.club"},{name:"robots",content:"noindex, nofollow"}]}),component:je(m3,"component")}),v3=nU.update({id:"/",path:"/",getParentRoute:()=>$e}),y3=NU.update({id:"/advisory",path:"/advisory",getParentRoute:()=>$e}),KA=zU.update({id:"/blog",path:"/blog",getParentRoute:()=>$e}),b3=IU.update({id:"/call",path:"/call",getParentRoute:()=>$e}),_3=PU.update({id:"/campus",path:"/campus",getParentRoute:()=>$e}),w3=$U.update({id:"/chi-siamo",path:"/chi-siamo",getParentRoute:()=>$e}),S3=qU.update({id:"/contatti",path:"/contatti",getParentRoute:()=>$e}),E3=GU.update({id:"/cookie-policy",path:"/cookie-policy",getParentRoute:()=>$e}),A3=KU.update({id:"/dicono-di-noi",path:"/dicono-di-noi",getParentRoute:()=>$e}),T3=JU.update({id:"/grazie",path:"/grazie",getParentRoute:()=>$e}),R3=WU.update({id:"/partner",path:"/partner",getParentRoute:()=>$e}),C3=eP.update({id:"/perche-esistiamo",path:"/perche-esistiamo",getParentRoute:()=>$e}),x3=nP.update({id:"/privacy",path:"/privacy",getParentRoute:()=>$e}),k3=iP.update({id:"/programmi",path:"/programmi",getParentRoute:()=>$e}),O3=oP.update({id:"/risorse",path:"/risorse",getParentRoute:()=>$e}),N3=cP.update({id:"/self-check",path:"/self-check",getParentRoute:()=>$e}),j3=dP.update({id:"/summit",path:"/summit",getParentRoute:()=>$e}),D3=hP.update({id:"/termini",path:"/termini",getParentRoute:()=>$e}),L3=mP.update({id:"/workshop-vendere-in-africa",path:"/workshop-vendere-in-africa",getParentRoute:()=>$e}),z3=vP.update({id:"/admin/account",path:"/admin/account",getParentRoute:()=>$e}),M3=bP.update({id:"/admin/campaigns",path:"/admin/campaigns",getParentRoute:()=>$e}),I3=wP.update({id:"/admin/duplicates",path:"/admin/duplicates",getParentRoute:()=>$e}),U3=EP.update({id:"/admin/forgot-password",path:"/admin/forgot-password",getParentRoute:()=>$e}),P3=TP.update({id:"/admin/leads",path:"/admin/leads",getParentRoute:()=>$e}),B3=CP.update({id:"/admin/login",path:"/admin/login",getParentRoute:()=>$e}),$3=kP.update({id:"/admin/quality",path:"/admin/quality",getParentRoute:()=>$e}),YA=NP.update({id:"/admin/reports",path:"/admin/reports",getParentRoute:()=>$e}),H3=DP.update({id:"/admin/reset-password",path:"/admin/reset-password",getParentRoute:()=>$e}
160),q3=BP.update({id:"/$slug",path:"/$slug",getParentRoute:()=>KA}),V3=HP.update({id:"/club/",path:"/club/",getParentRoute:()=>$e}),G3=VP.update({id:"/club/anteprima",path:"/club/anteprima",getParentRoute:()=>$e}),F3=FP.update({id:"/storie/",path:"/storie/",getParentRoute:()=>$e}),K3=p3.update({id:"/storie/$slug",path:"/storie/$slug",getParentRoute:()=>$e}),Y3=g3.update({id:"/funnel",path:"/funnel",getParentRoute:()=>YA}),Z3={BlogSlugRoute:q3},J3=KA._addFileChildren(Z3),X3={AdminReportsFunnelRoute:Y3},W3=YA._addFileChildren(X3),Q3={IndexRoute:v3,AdvisoryRoute:y3,BlogRoute:J3,CallRoute:b3,CampusRoute:_3,ChiSiamoRoute:w3,ContattiRoute:S3,CookiePolicyRoute:E3,DiconoDiNoiRoute:A3,GrazieRoute:T3,PartnerRoute:R3,PercheEsistiamoRoute:C3,PrivacyRoute:x3,ProgrammiRoute:k3,RisorseRoute:O3,SelfCheckRoute:N3,SummitRoute:j3,TerminiRoute:D3,WorkshopVendereInAfricaRoute:L3,AdminAccountRoute:z3,AdminCampaignsRoute:M3,AdminDuplicatesRoute:I3,AdminForgotPasswordRoute:U3,AdminLeadsRoute:P3,AdminLoginRoute:B3,AdminQualityRoute:$3,AdminReportsRoute:W3,AdminResetPasswordRoute:H3,ClubAnteprimaRoute:G3,StorieSlugRoute:K3,ClubIndexRoute:V3,StorieIndexRoute:F3},e4=$e._addFileChildren(Q3);function t4({error:t,reset:e}){const n=Lt();return k.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:k.jsxs("div",{className:"max-w-md text-center",children:[k.jsx("div",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-8 w-8 text-destructive",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})})}),k.jsx("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:"Something went wrong"}),k.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"An unexpected error occurred. Please try again."}),!1,k.jsxs("div",{className:"mt-6 flex items-center justify-center gap-3",children:[k.jsx("button",{onClick:()=>{n.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"}),k.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 n4=()=>NN({routeTree:e4,context:{},defaultPreloadStaleTime:0,defaultErrorComponent:t4});async function r4(){const t=await n4();let e;return e=[],window.__TSS_START_OPTIONS__={serializationAdapters:e},e.push($O),t.options.serializationAdapters&&e.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:e}),t.stores.ids.get().length||await jx(t),t}var i4=r4;function a4(){return i4().finally(()=>window.$_TSR?.h())}var tp;function s4(){return tp||(tp=a4()),k.jsx(qO,{promise:tp,children:t=>k.jsx(LN,{router:t})})}R.startTransition(()=>{CC.hydrateRoot(document,k.jsx(R.StrictMode,{children:k.jsx(s4,{})}))});export{ln as $,WI as A,rs as B,BA as C,KD as D,QI as E,KE as F,m4 as G,TI as H,g4 as I,td as J,d4 as K,tm as L,VE as M,En as N,WN as O,VD as P,LD as Q,NU as R,MD as S,jU as T,ME as U,ID as V,IE as W,FD as X,UE as Y,zE as Z,c4 as _,zP as a,u4 as a0,Mn as a1,sl as a2,zD as a3,H2 as a4,o4 as a5,J_ as a6,IS as a7,it as a8,BP as a9,_4 as aA,p3 as aB,w4 as aC,HP as aa,p4 as ab,ll as ac,zt as ad,ol as ae,Y2 as af,Z2 as ag,GN as ah,WS as ai,qo as aj,Qi as ak,NI as al,Do as am,PI as an,al as ao,uE as ap,yD as aq,ij as ar,Nj as as,vE as at,lE as au,sE as av,J2 as aw,DS as ax,MP as ay,c3 as az,v4 as b,BE as c,zU as d,K_ as e,f4 as f,b4 as g,AI as h,Dp as i,k as j,JU as k,Fn as l,oP as m,HE as n,dl as o,qE as p,GE as q,R as r,h4 as s,E_ as t,TS as u,FE as v,oI as w,y4 as x,UA as y,PA 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.